/* ==========================================================================
   EP Visual Design — static rebuild
   Converted from the styled-components in the React build.
   Breakpoints (em, as in the original):
     25em 400px · 31.25em 500px · 37.5em 600px · 43.75em 700px
     48em 768px · 64em 1024px · 66.875em 1070px · 112.5em 1800px
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "CartoGothic Pro";
  src: url("../fonts/CartoGothicPro-Book.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CartoGothic Pro";
  src: url("../fonts/CartoGothicPro-Italic.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "CartoGothic Pro";
  src: url("../fonts/CartoGothicPro-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CartoGothic Pro";
  src: url("../fonts/CartoGothicPro-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens & base -------------------------------------------------------- */
html {
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);
  --teal: #3cbfc0;
  --green: #19c196;
  --red: #f93555;
  --blue: #105eab;
  --gray-bg: #f2f2f2;
  --ease: 225ms ease-in-out;

  /* Shared backgrounds */
  --bg-slate:
    linear-gradient(126.83deg, hsla(224, 13%, 29%, 0.25) 0%, hsla(215, 23%, 10%, 0.25) 100%),
    linear-gradient(190.58deg, rgba(65, 70, 84, 0.3) 13.74%, rgba(0, 0, 0, 0.3) 77.07%),
    var(--black);
  --bg-night: linear-gradient(126.83deg, #141920 0%, #010101 100%);
  --hover-glow:
    linear-gradient(180deg, rgba(90, 228, 195, 0.33) 0%, rgba(30, 121, 188, 0.33) 100%),
    linear-gradient(311.79deg, rgba(2, 202, 122, 0.3) 15.82%, rgba(58, 203, 208, 0.3) 64.98%);

  box-sizing: border-box;
  font-size: 100%;
}

*, *::before, *::after { box-sizing: inherit; }

body {
  font: 300 100%/1.5 "CartoGothic Pro", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

b, strong { font-weight: bold; }
i, em { font-style: italic; }

abbr { font-feature-settings: "kern", "liga", "clig", "calt", "c2sc", "smcp"; }
@supports (font-variant-caps: all-small-caps) {
  abbr { font-feature-settings: normal; font-variant-caps: all-small-caps; }
}

img, object, video { max-width: 100%; }
svg use { pointer-events: none; }
[hidden] { display: none !important; }

.visually-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

dl dt { font-weight: bold; line-height: 1; margin-bottom: 0.5rem; }
dl dd { margin: 0 0 1rem; }

/* Gradient text used for several headings */
.gradient-text,
.philosophy h2,
.tiles-dark .headline {
  background: linear-gradient(180deg, var(--teal), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Animations ----------------------------------------------------------- */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeSlideIn { to { opacity: 1; top: 0; } }
@keyframes floating {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(3px); }
  100% { transform: translateY(0); }
}
@keyframes loaderBar {
  0%   { transform: scaleY(1); }
  50%  { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}
.floating { animation: floating 2000ms ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ==========================================================================
   Navigation (shared)
   ========================================================================== */
.nav-toggle {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.9);
  border: 0;
  display: flex;
  height: 3rem;
  justify-content: center;
  position: fixed;
  right: 0;
  top: 0;
  width: 3rem;
  transition: background-color var(--ease);
  z-index: 110;
}
.nav-toggle:hover,
.nav-toggle:focus { background-color: rgba(255, 255, 255, 0.1); }
.nav-toggle:hover { cursor: pointer; }
.nav-toggle svg { height: 2.25rem; width: 2.25rem; }

.site-nav {
  align-items: center;
  background: var(--bg-slate);
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  position: fixed;
  right: -100vw;
  top: 0;
  width: 100vw;
  z-index: 100;
}
.site-nav.open { right: 0; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100vw;
}
.site-nav a {
  align-items: center;
  color: var(--white);
  display: flex;
  font-size: 2.25rem;
  font-weight: 300;
  justify-content: center;
  letter-spacing: 1px;
  line-height: 1;
  padding: 0.45rem 0;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--ease);
}
.site-nav a:hover,
.site-nav a:focus { background: var(--hover-glow); }
.site-nav a[aria-current="page"] { background: var(--hover-glow); }

@media screen and (min-width: 37.5em) {
  .nav-toggle { display: none; }

  .site-nav {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #717476;
    flex-direction: row;
    height: auto;
    left: 0;
    right: auto;
    top: 0;
  }
  /* Home page only: nav drops in after the splash animation */
  .site-nav[data-animate="true"] {
    animation: fadeSlideIn 1000ms ease-in-out 2000ms forwards;
    opacity: 0;
    top: -52px;
  }
  .site-nav ul {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    text-align: left;
  }
  .site-nav li { margin: 0 1rem; }
  .site-nav a {
    border-radius: 2px;
    font-size: 0.75rem;
    padding: 0.25rem;
  }
  .site-nav a:hover,
  .site-nav a:focus { transform: translateY(-3px); }
}

/* ==========================================================================
   Footer (shared)
   ========================================================================== */
.site-footer {
  align-items: center;
  background: var(--bg-night);
  color: #fafafa;
  display: flex;
  font-size: 0.875rem;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
}
.site-footer .contain {
  align-items: center;
  display: flex;
  flex-direction: column;
  max-width: 61.25rem;
  width: 100%;
}
.site-footer p { margin: 1rem 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a {
  border-radius: 2px;
  color: var(--white);
  display: block;
  line-height: 1;
  padding: 0.25rem;
  text-decoration: none;
  transition: all var(--ease);
}
.site-footer a:hover,
.site-footer a:focus { background: var(--hover-glow); }

@media screen and (min-width: 31.25em) {
  .site-footer .contain { flex-direction: row; justify-content: space-between; }
  .site-footer ul { display: flex; }
  .site-footer a { margin-left: 0.5rem; }
  .site-footer a:hover,
  .site-footer a:focus { transform: translateY(-3px); }
}

/* ==========================================================================
   Home
   ========================================================================== */
.home-splash {
  align-items: center;
  background: var(--bg-slate);
  background-size: cover;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.home-splash > img {
  animation: fadeIn 1000ms ease-in-out 1000ms forwards;
  max-width: 80%;
  opacity: 0;
  position: relative;
  z-index: 20;
}
.home-splash h2 {
  animation: fadeIn 1000ms ease-in-out 2000ms forwards;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.125rem;
  line-height: 1.1;
  opacity: 0;
  padding: 0.5rem 1.5rem 0;
  position: relative;
  text-transform: uppercase;
  z-index: 20;
}
@media screen and (min-width: 31.25em) {
  .home-splash h2 { font-size: 1.5rem; padding: 0; }
}

/* Background slideshow (replaces react-slideshow-image's Fade) */
.slideshow {
  display: none;
  height: 100vh;
  left: 0;
  opacity: 0.1;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}
@media screen and (min-width: 48em) {
  .slideshow { display: block; }
}
.slideshow img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transition: opacity 500ms ease;
  width: 100%;
}
.slideshow img.is-active { opacity: 1; }

/* Capability tile mosaic */
.home-tiles-wrap { background-color: #0d0d0f; }

.home-tiles {
  background-color: #0d0d0f;
  display: grid;
  gap: 0.625rem;
  grid-auto-rows: 160px;
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 375px;
}
.home-tiles > div {
  align-items: center;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}
.home-tiles p {
  color: var(--white);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.1;
  max-width: 18.75rem;
  text-align: center;
}
.home-tiles .tile-fade { opacity: 0.4; transition: opacity var(--ease); }
.home-tiles .tile-fade:hover { opacity: 1; }

/* Decorative tiles hidden on the smallest screens */
.home-tiles > div:nth-child(4),
.home-tiles > div:nth-child(8),
.home-tiles > div:nth-child(9) { display: none; }

/* 1 — group photo */
.home-tiles > div:nth-child(1) {
  background: url("../images/EPV-group-photo-large.jpg") no-repeat center / cover;
}
/* 2, 3 — intro statements */
.home-tiles > div:nth-child(2),
.home-tiles > div:nth-child(3) { padding: 0; }
.home-tiles > div:nth-child(2) {
  background: url("../images/GettyImages-1177642284.jpg") no-repeat center / cover;
}
.home-tiles > div:nth-child(3) {
  background: url("../images/GettyImages-182190350.jpg") no-repeat center / cover;
}
.home-tiles > div:nth-child(2) p,
.home-tiles > div:nth-child(3) p {
  padding: 1.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.85);
}
.home-tiles > div:nth-child(2) p { background-color: rgba(0, 0, 0, 0.65); }
.home-tiles > div:nth-child(3) p { background-color: rgba(0, 0, 0, 0.85); }

/* 5, 6, 7 — service tiles */
.home-tiles > div:nth-child(5),
.home-tiles > div:nth-child(6),
.home-tiles > div:nth-child(7) {
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  position: relative;
}
.home-tiles > div:nth-child(5) {
  background: url("../images/GettyImages-1142539858.jpg") no-repeat center / cover;
}
.home-tiles > div:nth-child(7) {
  background: url("../images/GettyImages-1133778313.jpg") no-repeat center;
}
.home-tiles > div:nth-child(5) p,
.home-tiles > div:nth-child(6) p,
.home-tiles > div:nth-child(7) p {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
}
.home-tiles > div:nth-child(5) p { background-color: rgba(0, 0, 0, 0.85); max-width: 26rem; }
.home-tiles > div:nth-child(6) p {
  background-color: rgba(0, 0, 0, 0.75);
  max-width: 24rem;
  position: relative;
  z-index: 20;
}
.home-tiles > div:nth-child(7) p { background-color: rgba(0, 0, 0, 0.75); max-width: none; width: 100%; }
.home-tiles > div:nth-child(6) video {
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

@media screen and (min-width: 25em) {
  .home-tiles > div:nth-child(2),
  .home-tiles > div:nth-child(3) { padding: 3rem; }
}

@media screen and (min-width: 33.4211em) {
  .home-tiles {
    grid-auto-rows: 270px;
    grid-template-columns: repeat(2, 1fr);
    max-width: 88.5rem;
    padding: 0.625rem;
  }
  .home-tiles > div:nth-child(1) {
    filter: grayscale(100%);
    transition: filter var(--ease);
  }
  .home-tiles > div:nth-child(1):hover { filter: grayscale(0); }
  .home-tiles > div:nth-child(4) {
    background: url("../images/GettyImages-1075599562.jpg") no-repeat center / cover;
    display: block;
  }

  .home-tiles > div:nth-child(1) { grid-area: 1 / 1 / span 2 / span 2; }
  .home-tiles > div:nth-child(2) { grid-area: 3 / 2; }
  .home-tiles > div:nth-child(3) { grid-area: 4 / 2; }
  .home-tiles > div:nth-child(4) { grid-area: 3 / 1 / span 2; }
  .home-tiles > div:nth-child(5) { grid-area: auto / 1 / auto / span 2; }
  .home-tiles > div:nth-child(6) { grid-area: 6 / 1 / auto / span 2; }
  .home-tiles > div:nth-child(7) { grid-area: 5 / 1 / auto / span 2; }
  .home-tiles > div:nth-child(8) { grid-area: 7 / 2; }
  .home-tiles > div:nth-child(9) { grid-area: 7 / 1; }
}

@media screen and (min-width: 33.4375rem) {
  .home-tiles > div:nth-child(5) p,
  .home-tiles > div:nth-child(6) p { max-width: none; }
}

@media screen and (min-width: 37.5em) {
  .home-tiles > div:nth-child(5),
  .home-tiles > div:nth-child(6),
  .home-tiles > div:nth-child(7) { align-items: center; }
  .home-tiles > div:nth-child(5) p,
  .home-tiles > div:nth-child(6) p,
  .home-tiles > div:nth-child(7) p {
    flex-grow: 0;
    max-width: 24rem;
    width: 100%;
  }
  .home-tiles > div:nth-child(8) {
    background: url("../images/GettyImages-1069993336.jpg") no-repeat center / cover;
    display: block;
    padding: 0;
  }
  .home-tiles > div:nth-child(9) {
    background: url("../images/GettyImages-1133836004.jpg") no-repeat center / cover;
    display: block;
    padding: 0;
  }
}

@media screen and (min-width: 53.125em) {
  .home-tiles > div:nth-child(2) p,
  .home-tiles > div:nth-child(3) p { font-size: 1.25rem; }
}

@media screen and (min-width: 66.875em) {
  .home-tiles {
    grid-auto-rows: 320px;
    grid-template-columns: 1fr 1.035fr 1fr;
    max-width: 1316px;
  }
  .home-tiles > div:nth-child(1) {
    background: url("../images/EPV-group-photo-small.jpg") no-repeat center;
  }
  .home-tiles > div:nth-child(1) { grid-area: 1 / 2 / span 2; }
  .home-tiles > div:nth-child(2) { grid-area: 1 / 1; }
  .home-tiles > div:nth-child(3) { grid-area: 1 / 3 / span 2; }
  .home-tiles > div:nth-child(4) { grid-area: 2 / 1 / span 2; }
  .home-tiles > div:nth-child(5) { grid-area: 5 / 2 / auto / span 2; }
  .home-tiles > div:nth-child(6) { grid-area: 3 / 2 / auto / span 2; }
  .home-tiles > div:nth-child(7) { grid-area: 4 / 1 / auto / span 2; }
  .home-tiles > div:nth-child(8) { grid-area: 4 / 3; }
  .home-tiles > div:nth-child(9) { grid-area: 5 / 1; }
}

/* Diverse experience / client logos */
.experience {
  margin: 0 auto;
  max-width: 68.75rem;
  padding: 3rem 0;
}
.experience .contain {
  margin: 0 auto;
  max-width: 75ch;
  padding: 0 3rem;
  text-align: center;
}
.experience h2 {
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
@media screen and (min-width: 31.25em) {
  .experience h2 { font-size: 3rem; font-weight: 300; }
}
.experience p { margin: 0 0 1.5rem; }
.experience img { width: 100%; }

/* ==========================================================================
   Who We Are
   ========================================================================== */
.who-intro {
  background: var(--bg-slate);
  color: var(--white);
  padding: 5.3125rem 0 0;
}
@media screen and (min-width: 80.625em) {
  .who-intro { padding-bottom: 5.3125rem; }
}
.who-intro .contain { padding: 0 3rem; }
@media screen and (min-width: 43.75em) {
  .who-intro .contain { padding: 0; }
}
.who-intro h1 { font-size: 1.5rem; font-weight: 300; text-align: center; }
@media screen and (min-width: 31.25em) {
  .who-intro h1 { font-size: 3rem; }
}
.who-intro p {
  line-height: 1.1;
  margin: 0 auto;
  max-width: 55ch;
  text-align: center;
}
.who-intro .lead {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 3rem;
  text-transform: uppercase;
}
@media screen and (min-width: 31.25em) {
  .who-intro .lead { font-size: 1.4rem; }
}

.intro-video { align-items: center; display: flex; justify-content: center; }

.team { padding: 3rem; }
.team ul {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 60rem;
  padding: 0;
}
@media screen and (min-width: 31.25em) {
  .team ul { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
}
@media screen and (min-width: 40.625em) {
  .team ul { grid-template-columns: repeat(3, 1fr); }
}
.team-member { list-style: none; margin: 0 0 3rem; overflow: hidden; padding: 0; }
@media screen and (min-width: 31.25em) {
  .team-member { margin-bottom: 0; }
}
.team-member figure { margin: 0; }
.team-member img { margin-bottom: 0.25rem; }
.team-member h3,
.team-member h4 { line-height: 1.1; }
.team-member h3 { font-size: 1.25rem; font-weight: normal; margin: 0 0 0.25rem; }
.team-member h4 { font-weight: 300; margin: 0; }

.philosophy {
  background: url("../images/GettyImages-1051534808.jpg") no-repeat center / cover;
  color: var(--white);
  padding: 3rem;
}
.philosophy .contain { margin: 0 auto; max-width: 75ch; }
.philosophy h2 {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  text-align: center;
}
@media screen and (min-width: 31.25em) {
  .philosophy h2 { font-size: 4rem; text-transform: uppercase; }
}
.philosophy p { font-size: 1.2rem; font-weight: 300; margin: 0; }

/* ==========================================================================
   What We Do
   ========================================================================== */
.what-hero {
  align-items: center;
  background-color: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.what-hero .intro {
  align-items: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 30;
}
.what-hero .intro h1,
.what-hero .intro h2 { font-weight: 300; line-height: 1; margin: 0; opacity: 0; }
.what-hero .intro h1 { animation: fadeIn 1000ms ease-in-out 1000ms forwards; }
.what-hero .intro h2 {
  animation: fadeIn 1000ms ease-in-out 2000ms forwards;
  font-size: 1.1rem;
  text-align: center;
}
@media screen and (min-width: 37.5em) {
  .what-hero .intro h1 { font-size: 4rem; }
  .what-hero .intro h2 { font-size: 2rem; }
}
.what-hero .shroud {
  background-color: rgba(0, 0, 0, 0.8);
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 20;
}
.what-hero video { height: auto; max-width: 1800px; width: 100%; }

.section-tiles-grid { margin: 0 auto; max-width: 61.25rem; }
.landing-tiles {
  list-style: none;
  margin: 0 auto;
  max-width: 43.25rem;
  padding: 1rem 0;
  width: 90%;
}
@media screen and (min-width: 43.75em) {
  .landing-tiles { padding: 3rem 0; }
}
@media screen and (min-width: 68.75em) {
  .landing-tiles { max-width: 61.25rem; }
}
.landing-tiles p { margin: 0; }
.landing-tile { margin-bottom: 0.25rem; }
.landing-tile .content { padding: 1.5rem; }
.landing-tile .headline { font-size: 1.1rem; font-weight: 600; line-height: 1.19048; }
@media screen and (min-width: 68.75em) {
  .tile-head { font-size: 1.2rem; }
}
.tile-head p { margin-bottom: 1rem; }
.tile-head .content > :last-child { margin-bottom: 0; }
.tile-show { align-items: center; display: flex; justify-content: center; }
.tile-media video { width: 100%; }

.landing-tile-wide figure {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  position: relative;
  transition: all var(--ease);
}
.landing-tile-wide figure img { opacity: 0.2; transition: opacity var(--ease); }
.landing-tile-wide figcaption {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  line-height: 1.1;
  padding: 0 1rem;
  position: absolute;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  top: 0;
  transition: opacity var(--ease);
  width: 100%;
}
.landing-tile-wide figcaption:hover { cursor: default; }
.landing-tile-wide figcaption h2 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 300;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}
@media screen and (min-width: 68.75em) {
  .landing-tile-wide figcaption h2 { font-size: 1.8rem; }
}
.landing-tile-wide figure:hover img { opacity: 1; }
.landing-tile-wide figure:hover figcaption { opacity: 0; }

@media screen and (min-width: 45.9375em) {
  .landing-tiles { align-items: stretch; display: flex; flex-wrap: wrap; width: 100%; }
  .landing-tile { flex: 1.4224 0 38.8574%; margin-bottom: 1.3125rem; margin-right: 1.3125rem; }
  .landing-tile-wide { flex: 1 0 80%; }
  .tile-head { flex: 1.4224 0 40.2798%; }
  .tile-show { flex: 1 0 28.3199%; }
}

/* Light variant */
.tiles-light { background-color: #f5f5f7; }
.tiles-light .landing-tile { background-color: var(--white); border-bottom: 1px solid #d2d2d7; }
.tiles-light .landing-tile a { color: var(--green); transition: color var(--ease); }
.tiles-light .landing-tile a:hover,
.tiles-light .landing-tile a:focus { color: var(--teal); }
.tiles-light .landing-tile-wide { background-color: var(--black); }

/* Dark variant */
.tiles-dark { background: var(--bg-night); }
.tiles-dark .landing-tile { background-color: var(--black); border-bottom: 1px solid #333; color: var(--white); }
@media screen and (min-width: 45.9375em) {
  .tiles-dark .tile-show { position: relative; }
  .tiles-dark .tile-show .tile-media { height: 100%; position: absolute; width: 100%; }
  .tiles-dark .tile-show .tile-media video { height: 100%; object-fit: cover; }
}

/* ==========================================================================
   How We Do It
   ========================================================================== */
.approach-intro { background-color: #fafafa; padding: 8rem 1.5rem 4.3125rem; }
.approach-intro .contain { margin: 0 auto; max-width: 60rem; }
.approach-intro h1,
.approach-intro h2,
.approach-intro p { font-weight: 300; margin: 0; }
.approach-intro h1,
.approach-intro h2 { line-height: 1; margin-bottom: 0.5rem; }
.approach-intro h2 { color: var(--green); font-size: 0.8rem; text-transform: uppercase; }
@media screen and (min-width: 60em) {
  .approach-intro h2 { font-size: 1.1rem; }
}
.approach-intro .infographic { overflow: hidden; padding: 1.5rem 0 0; text-align: center; }
.approach-intro .infographic img { margin: 0 auto; max-width: 18.75rem; width: 100%; }
@media screen and (min-width: 37.5em) {
  .approach-intro .contain { display: grid; gap: 3rem; grid-template-columns: 26% auto; }
  .approach-intro .infographic { grid-column: 1 / span 2; }
  .approach-intro .infographic img { max-width: 40.5rem; }
}

.approach-phase .grid { display: grid; grid-template-columns: 1fr; margin: 0 auto; }
@media screen and (min-width: 48em) {
  .approach-phase .grid {
    background-color: #fff;
    background-size: contain;
    grid-template-columns: repeat(2, 1fr);
  }
}
.approach-phase .contain { color: var(--white); display: flex; padding: 3rem; width: 100%; }
.approach-phase h2 { font-weight: normal; line-height: 1; margin: 0 0 0.5rem; }
@media screen and (min-width: 40.625em) {
  .approach-phase h2 { font-size: 1.8rem; }
}
.approach-phase h2 img { display: block; height: 96px; margin-bottom: 1rem; }
.approach-phase p { margin-top: 0; }
.approach-phase .contain > :last-child { margin-bottom: 0; }
.approach-phase .img { align-self: center; padding: 0 3rem; }
.approach-phase .push-left,
.approach-phase .push-right {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media screen and (min-width: 48em) {
  .approach-phase .contain.text-right { justify-content: flex-end; }
  .approach-phase .push-left { justify-self: start; max-width: 55ch; }
  .approach-phase .push-right { justify-self: end; max-width: 55ch; }
  .approach-phase .push-right-img { justify-self: end; }
}

/* On small screens the illustration sits above the copy */
#approach-discover .contain,
#approach-develop .contain { grid-row-start: 2; }
#approach-discover .img,
#approach-develop .img { grid-row-start: 1; }
@media screen and (min-width: 48em) {
  #approach-discover .contain,
  #approach-develop .contain,
  #approach-discover .img,
  #approach-develop .img { grid-row-start: auto; }
}

#approach-discover .contain { background: linear-gradient(239.69deg, #21875d -10.01%, #77d7b3 77.72%); }
#approach-design .contain   { background: linear-gradient(90deg, #206da0 2.25%, #65c8d0 99.42%); }
#approach-develop .contain  { background: linear-gradient(90deg, #a73594 2.29%, #752091 99.45%); }
#approach-deploy .contain   { background: linear-gradient(241.58deg, #f95574 -10.67%, #b82d98 132.28%); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-page { background-color: var(--black); }
.contact {
  align-items: center;
  background: url("../images/GettyImages-1160720443.jpg") no-repeat center var(--black);
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  min-height: calc(100vh - 133px);
  padding: 5.3125rem 3rem;
}
@media screen and (min-width: 31.25em) {
  .contact { min-height: calc(100vh - 73px); }
}
.contact h1 {
  align-items: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  font-size: 2rem;
  font-weight: 300;
  margin: 0 0 0.5rem;
  text-align: center;
}
.contact h1 svg { height: 150px; margin-bottom: 1.5rem; width: 300px; }
.contact p { margin: 0 0 0.5rem; }
.contact ul { list-style: none; margin: 1rem auto 0; padding: 0; width: 11.25rem; }
.contact li { display: flex; margin-bottom: 0.5rem; }
.contact li svg { height: 24px; margin-right: 0.5rem; width: 24px; }
.contact a {
  color: var(--teal);
  display: inline-block;
  padding: 0.1rem;
  transition: all var(--ease);
}
.contact a:hover,
.contact a:focus { color: var(--green); }

/* ==========================================================================
   Privacy
   ========================================================================== */
.privacy {
  margin: 0 auto;
  max-width: 65ch;
  min-height: calc(100vh - 133px);
  padding: 5.3125rem 3rem;
}
@media screen and (min-width: 31.25em) {
  .privacy {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 73px);
  }
}
.privacy h1 { font-size: 2rem; font-weight: 300; margin: 0 0 0.5rem; }
.privacy p { margin: 0 0 0.5rem; }

/* ==========================================================================
   MC20 Masks
   ========================================================================== */
.github-corner {
  display: block;
  height: 5rem;
  left: 0;
  position: fixed;
  top: 0;
  transform: scaleX(-1);
  width: 5rem;
  z-index: 90;
}
@media screen and (min-width: 37.5em) {
  .github-corner { left: auto; right: 0; top: 3.125rem; transform: scaleX(1); }
}

.masks-intro {
  align-items: center;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 3rem;
}
@media screen and (min-width: 37.5em) {
  .masks-intro { padding: 5rem; }
}
.masks-intro .container { margin: 0 auto; max-width: 55ch; text-align: center; }
.masks-intro h1 {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  max-width: 30ch;
  text-align: center;
}
@media screen and (min-width: 37.5em) { .masks-intro h1 { font-size: 3.25rem; } }
@media screen and (min-width: 48em)   { .masks-intro h1 { font-size: 2.5rem; } }
@media screen and (min-width: 64em)   { .masks-intro h1 { font-size: 3.5rem; max-width: 50ch; } }
.masks-intro > img { margin-bottom: 3rem; max-width: 25rem; width: 100%; }
.masks-intro p {
  background-color: var(--white);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  padding: 0.1rem;
}
.masks-intro a { color: var(--green); transition: color var(--ease); }
.masks-intro a:hover,
.masks-intro a:focus { color: var(--teal); }

.gh-buttons { align-items: center; display: flex; justify-content: center; margin: 1.5rem auto 1rem; }
.gh-button {
  align-items: center;
  background: linear-gradient(180deg, #2a3037 0%, #1f2327 100%);
  border: 0;
  border-radius: 4px;
  color: var(--white) !important;
  display: flex;
  font-size: 14px;
  justify-content: center;
  margin: 0 0.25rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}
.gh-button:hover,
.gh-button:focus {
  background: linear-gradient(180deg, #666 0%, #1f2327 100%);
  cursor: pointer;
}
.gh-button svg { height: 24px; margin-right: 0.25rem; width: 24px; }

/* Text sections */
.text-section .container { margin: 0 auto; max-width: 75ch; padding: 3rem; }
.text-section .container.pad-top { padding-top: 3rem; }
@media screen and (min-width: 40.625em) {
  .text-section .container { padding: 7.125rem 3rem 3rem; }
  .text-section .container.pad-top { padding-top: 3rem; }
}
@media screen and (min-width: 45.625em) {
  .text-section .container { padding-left: 0; padding-right: 0; }
}
.text-section .container h2 { font-size: 2rem; font-weight: 300; margin: 0 0 0.5rem; text-align: center; }
.text-section .container h3 { font-size: 1.25rem; font-weight: 300; margin: 0 0 0.5rem; }
.text-section .container h4 { font-size: 1rem; font-weight: bold; line-height: 1; margin: 0; }
.text-section .container p,
.text-section .container ul,
.text-section .container dl { font-size: 1.125rem; }
@media screen and (min-width: 43.75em) {
  .text-section .container h2 { font-size: 4rem; }
  .text-section .container h3 { font-size: 2rem; }
  .text-section .container h4 { font-size: 1.2rem; }
  .text-section .container p,
  .text-section .container ul,
  .text-section .container dl { font-size: 1.65rem; }
}
.text-section ul.spread { margin: 0 0 3rem; }
.text-section ul.spread li { line-height: 1.1; padding: 0.5rem; }
.text-section dd { margin-left: 1.5rem; }
.text-section .container a { color: var(--green); text-decoration: none; transition: all var(--ease); }
.text-section .container a:hover,
.text-section .container a:focus { background-color: var(--teal); color: white; }

/* 3D model viewer */
.model-viewer {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 56.25rem;
}
.model-viewer .stage {
  background-color: var(--gray-bg);
  height: 300px;
  overflow: hidden;
  position: relative;
  width: 300px;
}
@media screen and (min-width: 40.625em) {
  .model-viewer .stage { height: 600px; width: 600px; }
}
.model-viewer canvas { display: block; height: 100% !important; width: 100% !important; }
.model-viewer .caption { color: darkgray; font-size: 80%; margin: 0; padding: 0.25rem 0; }

.loader {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  position: absolute;
}
.loader span {
  animation: loaderBar 1s cubic-bezier(0.2, 0.68, 0.18, 1.08) infinite both;
  background-color: #b92c2c;
  border-radius: 2px;
  display: inline-block;
  height: 35px;
  margin: 2px;
  width: 4px;
}
.loader span:nth-child(1) { animation-delay: 0.1s; }
.loader span:nth-child(2) { animation-delay: 0.2s; }
.loader span:nth-child(3) { animation-delay: 0.3s; }
.loader span:nth-child(4) { animation-delay: 0.4s; }
.loader span:nth-child(5) { animation-delay: 0.5s; }

/* Current situation cards */
.situation-cards {
  display: grid;
  gap: 1.875rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0 auto 3rem;
  max-width: 68.75rem;
  padding: 0;
}
@media screen and (min-width: 43.75em) {
  .situation-cards { font-size: 1.5rem; }
}
@media screen and (min-width: 64em) {
  .situation-cards { grid-template-columns: repeat(3, 1fr); padding: 0 1.5rem; }
}
.situation-card {
  background: linear-gradient(90deg, #fafafa 0%, #fff 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 21.25rem;
  overflow: hidden;
}
@media screen and (min-width: 43.75em) {
  .situation-card { max-width: 28.125rem; }
}
.situation-card h3 {
  color: var(--white);
  font-weight: bold;
  margin: 0;
  padding: 1rem;
  text-align: center;
  text-shadow: 0 -2px 2px rgba(0, 0, 0, 0.3);
}
.situation-card p { margin: 0; padding: 1.5rem; }
@media screen and (min-width: 48em) {
  .situation-card p { padding: 3rem; }
}
.situation-card.red h3  { background: var(--red); }
.situation-card.gray h3 { background: linear-gradient(180deg, #666 0%, #333 100%); }
.situation-card.blue h3 { background: var(--blue); }

/* Our solution icon list */
.solution-list {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 3rem auto;
  list-style: none;
  margin: 0 auto 3rem;
  max-width: 36.25rem;
  padding: 0 1.5rem;
}
.solution-list li { padding: 0; }
.solution-list svg { height: 3rem; width: 3rem; }
.solution-list h3 { font-size: 1.8rem; margin: 0 0 0.5rem; }
.solution-list p { margin: 0; }
.solution-list .red  { color: var(--red); }
.solution-list .gray { color: #333; }
.solution-list .blue { color: var(--blue); }
@media screen and (min-width: 37.5em) {
  .solution-list { gap: 1.875rem; grid-template-columns: repeat(4, 1fr); }
  .solution-list svg { height: 6rem; width: 6rem; }
  .solution-list li:nth-child(odd) { grid-column: 1 / span 1; justify-self: end; }
  .solution-list li:nth-child(even) { grid-column: 2 / span 3; }
  .solution-list p { font-size: 1.25rem; }
}

/* Photo gallery sections */
.gallery-section { background-color: var(--gray-bg); padding: 3rem; }
@media screen and (min-width: 48em) {
  .gallery-section {
    border: 30px solid var(--white);
    border-top: 0;
    padding-top: 7.125rem;
  }
}
.gallery-section .container { margin: 0 auto; max-width: 86.25rem; }
.gallery-section h2 {
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1;
  margin: 0 0 0.5rem;
  text-align: center;
}
.gallery-section h3 {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
  margin: 0;
  text-align: center;
}
@media screen and (min-width: 43.75em) {
  .gallery-section h2 { font-size: 4rem; }
  .gallery-section h3 { font-size: 1.75rem; }
}
.gallery-section ul { margin: 1.5rem auto; max-width: 65ch; padding: 0 3rem; }
.grid-3 {
  display: grid;
  gap: 1.875rem;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 3rem 0 0;
}
.grid-3 img { width: 100%; }
@media screen and (min-width: 48em) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 .span-row-2 { grid-area: 2 / 2 / span 2; width: 100%; }
}

/* Printing specs */
.grid-2x2 {
  display: grid;
  font-size: 1.125rem;
  gap: 1.875rem;
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 75ch;
}
.grid-2x2 > div { background-color: var(--gray-bg); padding: 3rem; }
.grid-2x2 > div > :last-child { margin-bottom: 0; }
.grid-2x2 h3 { margin: 0 0 0.5rem; }
.grid-2x2 dt { font-weight: normal; }
.grid-2x2 dd { margin-left: 1.5rem; }
.grid-2x2 ul { padding-left: 0.5rem; }
@media screen and (min-width: 37.5em) {
  .grid-2x2 { grid-template-columns: repeat(2, 1fr); }
  .grid-2x2 > div:nth-child(1) { grid-column: 1; }
  .grid-2x2 > div:nth-child(2) { grid-area: 2 / 1; }
  .grid-2x2 > div:nth-child(3) { grid-area: 1 / 2 / span 2; }
}
