:root {
  --basalt: #121212;
  --basalt-soft: #191919;
  --shale: #222222;
  --mineral: #f7f5f2;
  --mineral-soft: #ebe7e2;
  --ink: #121212;
  --muted-dark: #9ca59f;
  --muted-light: #68716b;
  --signal: #f7f5f2;
  --signal-dim: #d8d2ca;
  --line-dark: rgba(240, 238, 229, 0.13);
  --line-light: rgba(17, 22, 18, 0.15);
  --shell: 1400px;
  --pad: clamp(22px, 4vw, 68px);
  --display: "Helvetica Neue", "Avenir Next", Avenir, Inter, Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--basalt);
}

body {
  margin: 0;
  background: var(--basalt);
  color: var(--mineral);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--signal);
  color: var(--basalt);
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

svg {
  display: block;
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--signal);
  color: var(--basalt);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 154px;
  border-bottom: 1px solid transparent;
  transition:
    height 300ms var(--ease),
    background-color 300ms ease,
    border-color 300ms ease,
    backdrop-filter 300ms ease;
}

.site-header.is-scrolled {
  height: 94px;
  border-color: var(--line-dark);
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: clamp(24px, 3vw, 48px);
  align-items: center;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: var(--mineral);
}

.brand-lockup {
  width: clamp(142px, 12vw, 170px);
  height: auto;
  flex: 0 0 auto;
  display: block;
}

.site-header .brand-lockup {
  width: clamp(475px, 37.5vw, 550px);
  transition: width 300ms var(--ease);
}

.site-header.is-scrolled .brand-lockup {
  width: clamp(285px, 23vw, 330px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 47px);
}

.desktop-nav a,
.header-cta {
  color: rgba(240, 238, 229, 0.72);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.header-cta:hover {
  color: var(--mineral);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-cta span {
  color: var(--signal);
  font-size: 0.92rem;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.eyebrow {
  margin: 0;
  color: rgba(240, 238, 229, 0.62);
  font-family: var(--mono);
  font-size: clamp(0.63rem, 0.7vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  padding-inline: 0.8em;
  color: var(--signal);
}

.eyebrow.dark {
  color: rgba(17, 22, 18, 0.58);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: clamp(205px, 20vh, 240px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 9vw 100%,
    var(--basalt);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: min(670px, 72vh);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.hero-copy {
  max-width: 980px;
  align-self: center;
  padding-bottom: 4vh;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 24px 0 27px;
  color: var(--mineral);
  font-size: clamp(3.8rem, 7vw, 7.25rem);
  font-weight: 480;
  letter-spacing: -0.073em;
  line-height: 0.81;
}

.hero-copy h1 em,
.display-heading em {
  color: var(--signal);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 720px;
  margin: 0;
  color: rgba(240, 238, 229, 0.68);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 400;
  line-height: 1.55;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 20px 0 24px;
  border: 1px solid transparent;
  font-size: 0.81rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition:
    color 260ms ease,
    background-color 260ms ease,
    border-color 260ms ease;
}

.button::before {
  position: absolute;
  inset: 100% 0 auto;
  height: 100%;
  background: var(--mineral);
  content: "";
  transition: transform 360ms var(--ease);
}

.button:hover::before {
  transform: translateY(-100%);
}

.button > * {
  position: relative;
  z-index: 1;
}

.button-primary {
  background: var(--signal);
  color: var(--basalt);
}

.button-arrow {
  font-size: 1.05rem;
}

.light-section {
  position: relative;
  background: var(--mineral);
  color: var(--ink);
}

.dark-section {
  position: relative;
  background: var(--basalt);
  color: var(--mineral);
}

.services {
  padding-block: clamp(100px, 13vw, 190px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(70px, 9vw, 125px);
  border: 1px solid var(--line-light);
  background: var(--line-light);
}

.service-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  background: var(--mineral);
}

.service-index {
  color: rgba(18, 18, 18, 0.44);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

.service-card h3 {
  max-width: 310px;
  margin: clamp(50px, 6vw, 82px) 0 22px;
  font-size: clamp(1.45rem, 2.1vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.service-card p {
  max-width: 360px;
  margin: 0;
  color: var(--muted-light);
  font-size: 0.92rem;
  line-height: 1.62;
}

.service-scope {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid var(--line-light);
  color: rgba(18, 18, 18, 0.54);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  line-height: 1.55;
  text-transform: uppercase;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.55fr);
  column-gap: clamp(50px, 8vw, 145px);
  align-items: end;
}

.section-intro > .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 29px;
}

.display-heading {
  margin: 0;
  font-size: clamp(2.9rem, 5.6vw, 6.2rem);
  font-weight: 470;
  letter-spacing: -0.067em;
  line-height: 0.97;
}

.light-section .display-heading em {
  color: var(--ink);
}

.section-lead,
.method-lead {
  max-width: 475px;
  margin: 0 0 0.2em;
  color: var(--muted-light);
  font-size: clamp(0.98rem, 1.2vw, 1.15rem);
  line-height: 1.6;
}

.method {
  padding-block: clamp(110px, 14vw, 195px) clamp(80px, 10vw, 135px);
}

.method::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(240, 238, 229, 0.025);
  content: "";
}

.method-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.48fr);
  gap: clamp(50px, 8vw, 135px);
  align-items: end;
}

.method-heading .eyebrow {
  margin-bottom: 27px;
}

.method-lead {
  color: rgba(240, 238, 229, 0.58);
}

.process-list {
  margin-top: clamp(75px, 9vw, 130px);
}

.process-step {
  display: grid;
  min-height: 190px;
  grid-template-columns: 0.45fr 1.05fr 1.1fr 120px;
  gap: clamp(20px, 3vw, 55px);
  align-items: center;
  border-top: 1px solid var(--line-dark);
}

.process-step:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.process-index {
  color: rgba(240, 238, 229, 0.34);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.process-name h3 {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 2.5vw, 2.7rem);
  font-weight: 470;
  letter-spacing: -0.045em;
}

.process-name span {
  color: var(--signal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
}

.process-step > p {
  max-width: 390px;
  margin: 0;
  color: rgba(240, 238, 229, 0.55);
  font-size: 0.88rem;
  line-height: 1.58;
}

.process-icon {
  justify-self: end;
  width: 88px;
}

.integrate-icon {
  position: relative;
  display: grid;
  height: 62px;
  place-items: center;
}

.integrate-icon span {
  position: absolute;
  width: 64px;
  height: 34px;
  border: 1px solid rgba(240, 238, 229, 0.26);
  border-radius: 50%;
}

.integrate-icon span:first-child {
  transform: translateY(-11px);
}

.integrate-icon span:last-child {
  transform: translateY(11px);
}

.interpret-icon svg {
  width: 100%;
}

.interpret-icon path {
  fill: none;
  stroke: rgba(240, 238, 229, 0.42);
  stroke-width: 1.2;
}

.interpret-icon circle {
  fill: var(--signal);
}

.prioritise-icon {
  display: grid;
  gap: 8px;
}

.prioritise-icon span {
  height: 3px;
  background: linear-gradient(90deg, var(--signal) 79%, rgba(240, 238, 229, 0.12) 79%);
}

.prioritise-icon span:nth-child(2) {
  background: linear-gradient(90deg, var(--mineral) 55%, rgba(240, 238, 229, 0.12) 55%);
  opacity: 0.65;
}

.prioritise-icon span:nth-child(3) {
  background: linear-gradient(90deg, var(--mineral) 32%, rgba(240, 238, 229, 0.12) 32%);
  opacity: 0.35;
}

.contact {
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}

.contact-contours {
  position: absolute;
  inset: 0;
  opacity: 0.38;
}

.contact-contours svg {
  width: 100%;
  height: 100%;
}

.contact-contours path {
  fill: none;
  stroke: rgba(240, 238, 229, 0.15);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.contact-contours path:nth-child(3) {
  stroke: rgba(247, 245, 242, 0.28);
}

.contact-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 110px;
  text-align: center;
}

.contact-inner h2 {
  margin: 30px 0 43px;
  font-size: clamp(3rem, 6.8vw, 7.3rem);
  font-weight: 460;
  letter-spacing: -0.072em;
  line-height: 0.92;
}

.contact-button {
  min-width: 195px;
}

.site-footer {
  background: var(--basalt);
}

.footer-top {
  display: grid;
  min-height: 145px;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
}

.footer-top > p {
  justify-self: center;
  margin: 0;
  color: rgba(240, 238, 229, 0.42);
  font-size: 0.73rem;
}

.footer-top > a:last-child {
  justify-self: end;
  color: rgba(240, 238, 229, 0.68);
  font-size: 0.73rem;
}

.footer-top > a:last-child span {
  margin-left: 7px;
  color: var(--signal);
}

.footer-bottom {
  display: grid;
  min-height: 82px;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  color: rgba(240, 238, 229, 0.28);
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-bottom span:nth-child(2) {
  justify-self: center;
}

.footer-bottom a {
  justify-self: end;
  transition: color 180ms ease;
}

.footer-bottom a:hover {
  color: var(--mineral);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 750ms var(--ease),
    transform 750ms var(--ease);
}

.reveal-delay-1 {
  transition-delay: 90ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

.reveal-delay-3 {
  transition-delay: 270ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 6.5vw, 5.5rem);
  }

  .process-step {
    grid-template-columns: 0.34fr 0.8fr 1fr 90px;
  }

}

@media (max-width: 900px) {
  .site-header {
    height: 96px;
  }

  .site-header.is-scrolled {
    height: 78px;
  }

  .site-header .brand-lockup {
    width: min(360px, calc(100vw - 88px));
  }

  .site-header.is-scrolled .brand-lockup {
    width: min(280px, calc(100vw - 88px));
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 38px;
    height: 38px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 21px;
    height: 1px;
    background: var(--mineral);
    transition: transform 260ms var(--ease);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    inset: 95px 0 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    padding: 45px var(--pad);
    background: rgba(18, 18, 18, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 250ms ease,
      transform 300ms var(--ease);
  }

  .site-header.is-scrolled .mobile-nav {
    inset: 77px 0 0;
  }

  .mobile-nav.is-open {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav a {
    padding-block: 18px;
    border-bottom: 1px solid var(--line-dark);
    font-size: clamp(1.4rem, 6vw, 2.3rem);
    font-weight: 480;
    letter-spacing: -0.04em;
  }

  .mobile-nav a:last-child {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    color: var(--signal);
  }

  .hero {
    min-height: auto;
    padding-top: 145px;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-copy h1 {
    font-size: clamp(3.8rem, 12.5vw, 6.4rem);
  }

  .hero-intro {
    max-width: 610px;
  }

  .section-intro,
  .method-heading {
    grid-template-columns: 1fr;
  }

  .section-lead,
  .method-lead {
    margin-top: 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 280px;
  }

  .process-step {
    grid-template-columns: 75px 0.8fr 1.1fr 75px;
    gap: 20px;
  }

}

@media (max-width: 700px) {
  :root {
    --pad: 20px;
  }

  .hero-copy h1 {
    margin-top: 20px;
    font-size: clamp(3.4rem, 16vw, 4.9rem);
    line-height: 0.84;
  }

  .display-heading {
    font-size: clamp(2.65rem, 12vw, 4.5rem);
  }

  .service-card {
    min-height: 0;
  }

  .service-card h3 {
    margin-top: 42px;
  }

  .process-step {
    min-height: 0;
    grid-template-columns: 45px 1fr;
    gap: 19px;
    padding-block: 31px;
  }

  .process-name {
    grid-column: 2;
  }

  .process-step > p {
    grid-column: 2;
  }

  .process-icon {
    display: none;
  }

  .contact {
    min-height: 570px;
  }

  .contact-inner h2 {
    font-size: clamp(3rem, 14vw, 5.4rem);
  }

  .footer-top {
    min-height: 235px;
    grid-template-columns: 1fr;
    gap: 20px;
    align-content: center;
  }

  .footer-top > p,
  .footer-top > a:last-child {
    justify-self: start;
  }

  .footer-bottom {
    min-height: 105px;
    grid-template-columns: 1fr auto;
  }

  .footer-bottom span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 410px) {
  .hero-copy h1 {
    font-size: 3.1rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
