@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B1220;
  --bg-raised: #111B2D;
  --text: #EEF3F7;
  --text-soft: #B9C7D6;
  --text-mute: #93A4B8;
  --gold: #C8963E;
  --gold-soft: #DDB56E;
  --mark-teal: #4A93C8;
  --mark-gold: #BB8A35;
  --teal-light: #7FB2D0;
  --rule: rgba(238, 243, 247, .14);

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

html { scrollbar-color: #2B3A52 var(--bg); }
body { caret-color: var(--gold-soft); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: .005em;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--text);
  text-decoration-color: var(--gold);
  text-underline-offset: .24em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .3s var(--ease), color .3s var(--ease);
}
a:hover { color: var(--gold-soft); text-decoration-thickness: 2px; }

::selection { background: var(--gold); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: .5rem 1rem;
  background: var(--text);
  color: var(--bg);
  z-index: 10;
}
.skip:focus { top: .75rem; }
.skip:hover { color: var(--bg); }

.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.stack { display: grid; gap: 1.25rem; max-width: 46rem; }
.stack h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.body-lg {
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  max-width: 38rem;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 620;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.header-link {
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
  padding: .5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.header-link:hover { color: var(--text); border-bottom-color: var(--gold); }

/* Hero */
.hero { position: relative; background: var(--bg); }
.hero-media {
  position: relative;
  margin-top: 4.5rem;
  height: 46vh;
  height: 46svh;
  min-height: 18rem;
  overflow: hidden;
}
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 50%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 80% at 62% 52%, rgba(11, 18, 32, 0) 55%, rgba(11, 18, 32, .5) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 18, 32, 0) 18%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 18, 32, 0) 35%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  padding-block: 0 clamp(3.5rem, 8vw, 5rem);
  margin-top: -2rem;
}
.hero-title {
  font-size: clamp(2.05rem, 4.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero-title span { display: block; width: fit-content; max-width: 100%; }
@media (max-width: 40rem) {
  .hero-title { font-size: clamp(1.55rem, 7.8vw, 2.05rem); }
}
.hero-title .accent { color: var(--gold-soft); }
.lede {
  max-width: 33rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-soft);
}
.button {
  display: inline-flex;
  align-items: center;
  margin-top: 1.75rem;
  padding: .95rem 2.1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 620;
  text-decoration: none;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.button:hover { background: #FFFFFF; color: var(--bg); transform: translateY(-1px); }
.button:active { transform: translateY(0); }

@media (min-width: 56rem) {
  .hero {
    min-height: clamp(36rem, 74vh, 50rem);
    min-height: clamp(36rem, 74svh, 50rem);
    display: grid;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    margin-top: 0;
    height: auto;
    min-height: 0;
  }
  .hero-media img,
  .hero-media video { object-position: 62% 15%; }
  .hero-media::after {
    background:
      radial-gradient(ellipse 80% 75% at 62% 52%, rgba(11, 18, 32, 0) 55%, rgba(11, 18, 32, .5) 100%),
      linear-gradient(180deg, rgba(11, 18, 32, .55) 0%, rgba(11, 18, 32, .25) 30%, rgba(11, 18, 32, 0) 45%),
      linear-gradient(90deg, rgba(11, 18, 32, .78) 0%, rgba(11, 18, 32, .35) 38%, rgba(11, 18, 32, 0) 58%),
      linear-gradient(0deg, var(--bg) 0%, rgba(11, 18, 32, 0) 22%);
  }
  /* Headline sits in the sky above the horizon; supporting copy anchors to the water below. */
  .hero-inner {
    margin-top: 0;
    grid-template-rows: auto auto 1fr;
    min-height: clamp(36rem, 74vh, 50rem);
    min-height: clamp(36rem, 74svh, 50rem);
    padding-block: 6rem 2rem;
    gap: 0;
    align-content: start;
  }
  .hero-title { white-space: nowrap; margin-top: clamp(0rem, 4vh, 2.5rem); }
  .hero-foot { margin-top: clamp(1.75rem, 4vh, 2.75rem); }
}

/* Problem */
.proof-strip {
  display: grid;
  gap: .9rem;
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-block: 1px solid var(--rule);
}
.stage {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--gold-soft);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
}
.stage .orbit-icon { width: 1.25rem; height: 1.25rem; margin: 0; fill: currentColor; vertical-align: 0; }
.proof-fact {
  max-width: 40rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 450;
  line-height: 1.3;
  color: var(--text);
}
.proof-meta { margin-top: .9rem; font-size: .95rem; line-height: 1.7; }
.proof-meta a { color: var(--text-soft); text-decoration-color: rgba(200, 150, 62, .55); }
.proof-meta a:hover { color: var(--gold-soft); text-decoration-color: var(--gold); }
/* Phones and tablets: the fact leads; the stage marker opens the source line instead of sitting above as an eyebrow. */
@media (max-width: 55.99rem) {
  .stage { display: inline; }
  .stage .orbit-icon { display: inline-block; vertical-align: -.25em; margin-right: .4rem; }
  .stage::after { content: "\00B7" / ""; margin-inline: .5rem; color: var(--text-soft); font-weight: 400; }
}
/* Large screens: the stage marker takes the left column, the fact and source the right. */
@media (min-width: 56rem) {
  .proof-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); grid-template-areas: "stage fact" ". source"; column-gap: 3rem; row-gap: .6rem; align-items: start; }
  .proof-meta { display: contents; }
  .proof-fact { grid-area: fact; }
  .stage { grid-area: stage; padding-top: .45rem; }
  .proof-meta a { grid-area: source; justify-self: start; font-size: .95rem; }
}
.problem { padding-block: var(--section); }
@media (min-width: 56rem) {
  /* Rise into the hero's faded lower edge so the page flows out of the water. */
  .problem { position: relative; z-index: 1; padding-top: clamp(2.5rem, 4vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); margin-top: -6rem; }
  .approach-band { margin-top: clamp(-6rem, -6vw, -2rem); }
}

.compare {
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  display: grid;
  gap: 3rem;
}
.side h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
.side > p { margin-top: .2rem; color: var(--text-mute); font-size: .95rem; }
.side svg { width: 100%; height: auto; margin-top: 1.75rem; overflow: visible; }
.side path { fill: none; stroke-linecap: round; }
.strands path { stroke: var(--mark-teal); stroke-width: 2.5; }
.out { stroke: var(--mark-gold); stroke-width: 5; filter: drop-shadow(0 0 6px rgba(187, 138, 53, .55)); }
.node { fill: var(--mark-gold); stroke: var(--bg); stroke-width: 2; }
.tries path { stroke: var(--text-soft); stroke-width: 2.5; opacity: .75; }
.step { fill: var(--bg); stroke: var(--text-soft); stroke-width: 2.5; }
.compare figcaption {
  font-size: .875rem;
  color: var(--text-mute);
}
@media (min-width: 48rem) {
  .compare { grid-template-columns: 1fr 1fr; gap: 0; }
  .side { padding-right: clamp(1.5rem, 4vw, 3.5rem); }
  .side + .side {
    padding-right: 0;
    padding-left: clamp(1.5rem, 4vw, 3.5rem);
    border-left: 1px solid var(--rule);
  }
  .compare figcaption { grid-column: 1 / -1; margin-top: 1.5rem; }
}
@media (max-width: 47.99rem) {
  .side + .side { padding-top: 2.5rem; border-top: 1px solid var(--rule); }
  .side + .side svg { height: 3.5rem; }
  .compare figcaption { margin-top: -.5rem; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .side path {
      stroke-dasharray: 1;
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 40%;
    }
    .side .out { animation-range: entry 30% cover 48%; }
    .node, .step { animation: appear linear both; animation-timeline: view(); animation-range: entry 28% cover 46%; }
  }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* Bands: full-bleed cinematic image strips with no text over them */
.band {
  position: relative;
  overflow: hidden;
  height: clamp(16rem, 42vw, 38rem);
}
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 18, 32, 0) 28%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 18, 32, 0) 38%);
  pointer-events: none;
}

/* Approach: the ripple as a full-bleed band, the thesis rising out of it */
.approach { padding-bottom: var(--section); }
.approach-band img { object-position: 72% 50%; }
.approach-head { position: relative; margin-top: clamp(-5rem, -6vw, -2.5rem); }

/* The signal chain: three stations joined by one gold line */
.chain {
  list-style: none;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
  position: relative;
}
.chain::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--mark-gold), rgba(187, 138, 53, .25));
}
.chain li {
  position: relative;
  padding-left: 1.75rem;
}
.chain h3 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.chain p { margin-top: .6rem; max-width: 22rem; }
@media (min-width: 56rem) {
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; padding-top: 2.25rem; }
  .chain::before {
    left: 0; right: 0; top: 0; bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(90deg, rgba(187, 138, 53, .35), var(--mark-gold));
  }
  .chain li { padding-left: 0; }
}

/* The gold line draws itself as the chain scrolls into view. Static line without support or with reduced motion. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chain { view-timeline-name: --chain; }
    .chain::before {
      transform-origin: top;
      animation: chain-draw-y linear both;
      animation-timeline: --chain;
      animation-range: entry 0% cover 50%;
    }
    @media (min-width: 56rem) {
      .chain::before { transform-origin: left; animation-name: chain-draw-x; }
    }
  }
}
@keyframes chain-draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes chain-draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Why now */
.why {
  background: var(--bg-raised);
  padding-block: var(--section);
  border-block: 1px solid var(--rule);
}
.why h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.figures {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 52rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}
.figures strong {
  font-weight: 560;
  color: var(--gold-soft);
  white-space: nowrap;
}
.source {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: .875rem;
  color: var(--text-mute);
}

/* Contact: text first, closing image as the last band */
.contact { padding-top: var(--section); }
.contact-copy { position: relative; z-index: 1; }
.contact-copy p {
  max-width: 34rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.contact-copy .address {
  display: inline-block;
  margin-top: .35rem;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 560;
  letter-spacing: 0;
  color: var(--gold-soft);
  overflow-wrap: anywhere;
}
.contact-copy .button { margin-top: 1.75rem; font-size: 1rem; color: var(--bg); font-family: var(--sans); }
.contact-copy .button:hover { color: var(--bg); }
.contact-band { margin-top: clamp(-2rem, -3vw, -1rem); }
.contact-band img { object-position: 78% 50%; }

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding-block: 3rem;
  font-size: .9375rem;
  color: var(--text-mute);
}
.site-footer strong { color: var(--text); font-weight: 600; }
.site-footer a { color: var(--text-soft); }
.footer-grid { display: grid; gap: 1.5rem; }
.note { font-size: .875rem; max-width: 30rem; }
@media (min-width: 56rem) {
  .footer-grid { grid-template-columns: 1fr 1fr 1.4fr; gap: 3rem; }
}

/* 404 */
.notfound {
  min-height: 80vh;
  display: grid;
  align-content: center;
  justify-items: start;
  padding-block: 8rem var(--section);
}
.notfound h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.notfound p { margin-top: 1rem; max-width: 32rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-media video { display: none; }
}
