:root {
  --petrol: #0E3A36;
  --petrol-deep: #092A27;
  --brand: #40A798;
  --concrete: #E6EFED;
  --paper: #FFFFFF;
  --ink: #13261F;
  --muted: #51655F;
  --line: #C3D3CF;
  --mist: #D3E6E2;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --section-gap: clamp(72px, 11vw, 152px);
  --ease: cubic-bezier(0.6, 0, 0.2, 1);
  --slide-time: 6.5s;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3, .hero-title, .service-name {
  font-stretch: 112%;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h3 { font-size: 1.25rem; line-height: 1.2; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.wrap {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--brand);
  color: var(--petrol-deep);
  padding: 12px 16px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 100; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--paper);
  transition: background-color 0.3s, padding 0.3s;
}
.site-header.is-solid { background: var(--petrol-deep); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  transition: padding 0.3s;
}
.is-solid .header-inner { padding-block: 14px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo { display: block; width: auto; height: 40px; transition: height 0.3s; }
.is-solid .brand-logo { height: 34px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-list a {
  text-decoration: none;
  font-weight: 500;
  padding-block: 6px;
  background: linear-gradient(var(--brand), var(--brand)) left bottom / 0 2px no-repeat;
  transition: background-size 0.25s var(--ease);
}
.nav-list a:hover { background-size: 100% 2px; }
.nav-list .nav-cta {
  padding: 10px 18px;
  background: var(--brand);
  color: var(--petrol-deep);
  font-weight: 600;
}
.nav-list .nav-cta:hover { background: #5CBDAF; }

.menu-toggle {
  display: none;
  padding: 8px 14px;
  font-weight: 600;
  border: 2px solid rgb(255 255 255 / 0.5);
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: max(660px, 100svh);
  color: var(--paper);
  background: var(--petrol-deep);
  overflow: hidden;
}

.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide.is-active img { animation: drift 10s linear forwards; }

.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(9 42 39 / 0.92), rgb(9 42 39 / 0) 55%),
    linear-gradient(to right, rgb(9 42 39 / 0.85), rgb(14 58 54 / 0.45) 60%, rgb(14 58 54 / 0.3));
}

@keyframes drift {
  from { transform: scale(1.03); }
  to { transform: scale(1.14); }
}

.hero-content {
  position: relative;
  width: 100%;
  padding-block: 140px 0;
}

.hero-titles { display: grid; max-width: 15em; font-size: clamp(2.75rem, 7.4vw, 6.25rem); }
.hero-title {
  grid-area: 1 / 1;
  font-size: 1em;
  line-height: 1;
  letter-spacing: -0.025em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35em);
  transition: opacity 0.5s, transform 0.5s, visibility 0s 0.5s;
}
.hero-title.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.8s 0.35s, transform 0.9s 0.35s var(--ease), visibility 0s;
}

.hero-lede {
  max-width: 34em;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--mist);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Slide control, drawn as a scale rule */
.hero-rule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  margin-top: clamp(48px, 8vh, 96px);
}
.hero-step {
  position: relative;
  padding: 18px 16px 26px 0;
  text-align: left;
  font-weight: 500;
  color: rgb(255 255 255 / 0.65);
  border-top: 2px solid rgb(255 255 255 / 0.3);
  transition: color 0.3s;
}
.hero-step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 2px;
  height: 12px;
  background: rgb(255 255 255 / 0.6);
}
.hero-step::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-step:hover, .hero-step.is-active { color: var(--paper); }
.hero-step.is-active::before { background: var(--brand); }
.hero-step.is-active::after { animation: fill var(--slide-time) linear forwards; }
.is-paused .hero-step.is-active::after { animation-play-state: paused; }

@keyframes fill { to { transform: scaleX(1); } }

.hero-pause {
  align-self: start;
  padding: 18px 0 0 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.65);
  border-top: 2px solid rgb(255 255 255 / 0.3);
}
.hero-pause:hover { color: var(--paper); }

/* Buttons and links */

.button {
  display: inline-block;
  padding: 15px 26px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}
.button-primary { background: var(--brand); color: var(--petrol-deep); }
.button-primary:hover { background: #5CBDAF; }
.button-quiet { border-color: rgb(255 255 255 / 0.4); }
.button-quiet:hover { border-color: var(--paper); }

.text-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--brand);
}
.text-link:hover { border-bottom-color: var(--petrol); }

/* Sections */

.section { padding-block: var(--section-gap); }

.section-intro {
  max-width: 34em;
  margin-top: 16px;
  font-size: 1.1875rem;
  color: var(--muted);
}

/* Statement that inks in as you scroll */
.statement {
  max-width: 24em;
  font-size: clamp(1.625rem, 3.8vw, 3.25rem);
  font-stretch: 108%;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.js .statement .word {
  color: rgb(19 38 31 / 0.16);
  transition: color 0.35s;
}
.js .statement .word.is-lit { color: var(--ink); }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px clamp(32px, 7vw, 112px);
  margin-top: clamp(56px, 9vw, 120px);
}
.about-photo { overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-body { max-width: 34em; }
.about-body h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 24px; }
.about-body p { color: var(--muted); }
.about-body p + p { margin-top: 1.1em; }

/* Images wipe in once when they enter the screen */
.js .reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { clip-path: inset(0); }

/* Services */

.services {
  background: var(--petrol);
  color: var(--paper);
}
.services .section-intro { color: var(--mist); }

.service-list {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgb(255 255 255 / 0.22);
}
.service { border-bottom: 1px solid rgb(255 255 255 / 0.22); }

.service-name {
  display: block;
  width: 46%;
  padding: 22px 0;
  text-align: left;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: rgb(255 255 255 / 0.5);
  transition: color 0.25s, padding-left 0.35s var(--ease);
}
.service-name:hover { color: var(--paper); }
.service.is-active .service-name {
  color: var(--brand);
  padding-left: 22px;
  background: linear-gradient(var(--brand), var(--brand)) left center / 8px 8px no-repeat;
}

.service-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0s 0.4s;
}
.service.is-active .service-panel {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s, visibility 0s;
}
.service-panel img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease);
}
.service.is-active .service-panel img { transform: none; }
.service-panel p {
  padding-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--mist);
}

/* Stages on a rule that fills as you scroll */

.approach { background: var(--concrete); }

.stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 2px solid var(--line);
  counter-reset: stage;
}
.stages::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--petrol);
  transform: scaleX(var(--p, 1));
  transform-origin: left;
}
.stages li {
  position: relative;
  padding: 28px 24px 0 0;
  counter-increment: stage;
  transition: opacity 0.5s, transform 0.6s var(--ease);
}
.js .stages li { opacity: 0.25; transform: translateY(10px); }
.js .stages li.is-on { opacity: 1; transform: none; }
.stages li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 2px;
  height: 16px;
  background: var(--petrol);
}
.stages h3::before {
  content: counter(stage);
  display: block;
  margin-bottom: 12px;
  font-size: 3rem;
  font-weight: 300;
  font-stretch: 100%;
  line-height: 1;
  color: var(--petrol);
}
.stages p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Sectors */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
  margin-top: clamp(32px, 5vw, 56px);
}
.sector {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--petrol-deep);
  color: var(--paper);
}
.sector img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.sector::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(9 42 39 / 0.9), rgb(9 42 39 / 0.05) 60%);
}
.sector span {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 18px 20px;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.2;
}
.sector span::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.sector:hover img { transform: scale(1.07); }
.sector:hover span::after { transform: scaleX(1); }

/* Contact and footer */

.contact-band {
  background: var(--petrol-deep);
  color: var(--paper);
}
.contact {
  display: grid;
  gap: 40px clamp(32px, 6vw, 96px);
  padding-block: var(--section-gap) clamp(56px, 8vw, 96px);
}
.contact-title { font-size: clamp(2.5rem, 6.4vw, 5.25rem); letter-spacing: -0.025em; }
.contact-intro {
  max-width: 30em;
  margin-block: 20px 32px;
  font-size: 1.1875rem;
  color: var(--mist);
}

.email-options {
  margin-top: 20px;
  color: var(--mist);
}
.email-options a, .copy-email {
  color: var(--paper);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.email-options a:hover, .copy-email:hover { text-decoration-color: var(--paper); }
.copy-status { margin-left: 6px; color: var(--brand); font-weight: 500; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: 0.9375rem;
  color: var(--mist);
}

/* Smaller screens */

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: grid;
    align-content: center;
    padding: 96px var(--gutter) 40px;
    background: var(--petrol-deep);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0s 0.25s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transition: opacity 0.25s, visibility 0s; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav-list a { font-size: 2rem; font-weight: 600; font-stretch: 112%; }
  .nav-list .nav-cta { margin-top: 12px; font-size: 1.25rem; padding: 14px 22px; }

  .stages {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 2px solid var(--line);
  }
  .stages::before {
    top: 0;
    left: -2px;
    width: 2px;
    height: 100%;
    transform: scaleY(var(--p, 1));
    transform-origin: top;
  }
  .stages li { padding: 0 0 40px 28px; }
  .stages li:last-child { padding-bottom: 0; }
  .stages li::before { top: 0; left: -2px; width: 16px; height: 2px; }
  .stages p { max-width: 34em; }

  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; align-items: start; }

  .service-name { width: 100%; }
  .service-panel {
    position: static;
    width: 100%;
    height: auto;
    display: none;
    padding-bottom: 28px;
  }
  .service.is-active .service-panel { display: flex; }
  .service-panel img { flex: none; aspect-ratio: 16 / 10; order: 2; margin-top: 20px; }
  .service-panel p { padding-top: 0; }

  .hero-slides::after {
    background:
      linear-gradient(to top, rgb(9 42 39 / 0.95), rgb(9 42 39 / 0.55) 70%, rgb(9 42 39 / 0.35));
  }
  .hero-step span { font-size: 0.875rem; }
  .hero-pause { display: none; }
  .hero-rule { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .hero-step.is-active::after { transform: scaleX(1); }
  .hero-pause { display: none; }
  .hero-rule { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
