:root {
  color-scheme: light;
  --night: #0f0f20;
  --night-deep: #090914;
  --night-raised: #1a1a2a;
  --paper: #f7f7f7;
  --paper-raised: #ffffff;
  --ink: #202024;
  --muted: #626269;
  --line: #d7d7da;
  --line-dark: #33333f;
  --accent: #c43c22;
  --accent-bright: #f87632;
  --accent-soft: #fae8e3;
  --route-blue: #1595d3;
  --red: #d94135;
  --green: #54a44c;
  --white: #ececf1;
  --content: 75rem;
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --gutter: var(--page-gutter);
  --section-space: clamp(5rem, 11vw, 10rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button, a { color: inherit; font: inherit; }
a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 4px; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--night);
  background: var(--accent-bright);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.dark-section { color: var(--white); background: var(--night); }
.eyebrow,
.section-number,
figcaption,
.project-facts dt,
.snapshot-grid article > span,
.priority-column > span,
.outcome-card > span,
.test-caveat > span {
  font-family: "Manrope", "Helvetica Neue", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 1rem; color: var(--accent); }
.dark-section .eyebrow { color: var(--accent-bright); }

.site-header {
  position: fixed;
  background: rgba(15, 15, 32, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 5rem;
  padding: 0 var(--page-gutter);
  color: #ececf1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 1.8rem;
  height: auto;
}

.nav-toggle {
  display: grid;
  place-content: center;
  gap: 0.4rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.45rem;
  height: 1px;
  background: currentColor;
  transition: transform 180ms var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
  transform: translateY(0.22rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(3) {
  transform: translateY(-0.22rem) rotate(-45deg);
}

.site-navigation {
  position: absolute;
  top: 4.25rem;
  right: var(--page-gutter);
  display: none;
  flex-direction: column;
  min-width: 12rem;
  padding: 0.5rem;
  color: #ececf1;
  background: #1a1a2a;
  border: 1px solid var(--line-dark);
}

.site-navigation.is-open {
  display: flex;
}

.site-navigation a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.site-navigation a:hover {
  color: var(--accent-bright);
}

.hero {
  display: grid;
  gap: 2.5rem;
  position: relative;
  min-height: auto;
  padding: clamp(8rem, 18vw, 11rem) var(--page-gutter) clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, var(--content));
  margin-inline: auto;
}
.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.7rem, 10vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}
.hero-deck { max-width: 42rem; margin: 1.75rem 0 0; color: #cfcfd6; font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.55; text-wrap: pretty; }
.project-facts { display: grid; gap: 1rem; max-width: 58rem; margin: 3rem 0 0; }
.project-facts div { padding-top: 0.75rem; border-top: 1px solid var(--line-dark); }
.project-facts dt { color: #9898a5; }
.project-facts dd { margin: 0.35rem 0 0; color: #ececf1; font-size: 0.92rem; }
.hero-route { position: absolute; z-index: 0; top: 6rem; right: -5rem; width: 23rem; height: 23rem; opacity: 0.2; }
.route-line { position: absolute; top: 50%; left: 2rem; width: 18rem; height: 0.8rem; background: var(--accent); transform: rotate(-28deg); }
.route-node { position: absolute; z-index: 1; display: grid; place-items: center; width: 4rem; height: 4rem; color: var(--night); background: var(--white); border: 0.7rem solid var(--accent); border-radius: 50%; font: 600 1rem "Manrope", "Helvetica Neue", sans-serif; }
.node-start { bottom: 2rem; left: 0; }
.node-end { top: 1rem; right: 1rem; }
.hero-media { position: relative; z-index: 2; max-width: var(--content); }
.hero-media img { width: 100%; background: #e9e8e4; }
.evidence-figure { margin: 0; }
.hero-media.evidence-figure { margin: clamp(2.5rem, 7vw, 5rem) auto 0; }
.evidence-figure img { width: 100%; height: auto; }
figcaption { padding-top: 0.75rem; color: var(--muted); }
.dark-section figcaption { color: #9898a5; }
.hero-outcome { max-width: var(--content); margin: 4rem auto 0; padding: 2rem 0 3rem; border-top: 1px solid var(--line-dark); }
.hero-outcome > span { color: var(--accent-bright); font: 600 0.72rem "Manrope", "Helvetica Neue", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-outcome p { margin: 0.5rem 0 1.5rem; color: #9898a5; }
.hero-outcome strong { display: block; max-width: 62rem; font-size: clamp(1.6rem, 4.8vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }

.section { max-width: var(--content); margin: 0 auto; padding: var(--section-space) var(--gutter); }
.section-heading { display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem; }
.section-number { color: var(--accent); padding-top: 0.25rem; }
.section-heading h2,
.context h2,
.reframe h2,
.decision-section h2,
.solution-intro h2,
.test-section h2 {
  max-width: 55rem;
  margin: 0;
  font-size: clamp(2.35rem, 6.4vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.section-lede { max-width: 46rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.08rem; }
.compact-heading h2 { max-width: 48rem; }

.snapshot-grid { display: grid; gap: 1px; margin-top: 3.5rem; background: var(--line); border: 1px solid var(--line); }
.snapshot-grid article { padding: 1.5rem; background: var(--paper); }
.snapshot-grid article > span { color: var(--accent); }
.snapshot-grid h3 { margin: 1.1rem 0 0.6rem; font-size: 1.3rem; line-height: 1.2; }
.snapshot-grid p { margin: 0; color: var(--muted); }

.context { display: grid; gap: 4rem; padding: var(--section-space) var(--gutter); }
.context-copy { max-width: 48rem; }
.context-copy > p:last-child { max-width: 40rem; margin: 2rem 0 0; color: #bcbcc5; font-size: 1.1rem; }
.decision-clock { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.decision-clock div { min-height: 8.5rem; padding: 1.25rem; background: var(--night); }
.decision-clock span { color: var(--accent-bright); font: 600 0.75rem "Manrope", "Helvetica Neue", sans-serif; }
.decision-clock p { margin: 2rem 0 0; font-size: clamp(1rem, 3.2vw, 1.5rem); font-weight: 600; }

.wide-evidence { margin-top: 3.5rem; }
.wide-evidence img { background: var(--paper-raised); border: 1px solid var(--line); }
.before-grid { display: grid; gap: 1px; margin-top: 4rem; background: var(--line); border: 1px solid var(--line); }
.before-grid article { min-height: 14rem; padding: 1.5rem; background: var(--paper); }
.before-grid span { color: var(--accent); font: 600 0.8rem "Manrope", "Helvetica Neue", sans-serif; }
.before-grid h3 { margin: 3rem 0 0.7rem; font-size: 1.25rem; }
.before-grid p { margin: 0; color: var(--muted); }
.evidence-pair { display: grid; gap: 2rem; margin-top: 4rem; }
.evidence-pair figure img { aspect-ratio: 1.88; object-fit: cover; background: #e3e3df; }

.reframe { padding: var(--section-space) var(--gutter); }
.reframe > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.reframe-grid { display: grid; gap: 1.5rem; align-items: center; }
.reframe-grid span { color: #9898a5; font: 600 0.72rem "Manrope", "Helvetica Neue", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.reframe-before p { margin: 0.75rem 0 0; color: #9898a5; font-size: clamp(1.6rem, 4vw, 2.7rem); text-decoration: line-through; text-decoration-color: var(--red); }
.reframe-arrow { color: var(--accent-bright); font-size: 2rem; }
.reframe-after h2 { margin-top: 0.75rem; }
.reframe-note { max-width: 42rem; margin-top: 3rem; padding-left: 1rem; color: #bcbcc5; border-left: 4px solid var(--accent); }

.neutral-frame img { padding: clamp(0.5rem, 2vw, 1.5rem); background: #e8e8e4; }

.decision-section { display: grid; gap: 4rem; padding: var(--section-space) var(--gutter); }
.decision-copy { max-width: 48rem; }
.decision-copy > p:last-child { max-width: 42rem; margin: 2rem 0 0; color: #bcbcc5; font-size: 1.08rem; }
.route-identity { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; }
.line-swatch,
.stop-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  font-weight: 700;
}
.line-swatch {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--white);
  background: var(--route-blue);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.05;
  text-align: center;
}
.stop-number { color: var(--night); background: var(--white); border: 0.75rem solid var(--route-blue); border-radius: 50%; aspect-ratio: 1; justify-self: center; width: 8rem; font: 700 2.4rem "Manrope", "Helvetica Neue", sans-serif; }
.identity-plus, .identity-equals { justify-self: center; color: #8f8f9c; font-size: 1.5rem; }
.route-identity strong { text-align: center; font-size: 1.35rem; line-height: 1.25; }

.priority-flow { display: grid; gap: 1rem; margin-top: 4rem; }
.priority-column { padding: 1.5rem; border: 1px solid var(--line); }
.priority-column > span { color: var(--accent); }
.priority-column p { margin: 1rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.priority-column b { display: inline-block; width: 2rem; color: var(--accent); font-family: "Manrope", "Helvetica Neue", sans-serif; }
.priority-column.mvp { color: var(--white); background: var(--night); border-color: var(--night); }
.priority-column.mvp p { border-color: var(--line-dark); }
.flow-arrow { display: none; color: var(--accent); font-size: 1.5rem; }
.ruled-out { margin-top: 4rem; padding: 2rem; background: var(--paper-raised); border-left: 0.4rem solid var(--red); }
.ruled-out ul { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.ruled-out li { display: grid; gap: 0.3rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.ruled-out li span { color: var(--muted); }

.solution-section { background: var(--paper-raised); }
.solution-intro { padding: var(--section-space) var(--gutter); }
.solution-intro > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.solution-intro > p:last-child { max-width: 44rem; margin-top: 2rem; color: #bcbcc5; }
.journey-demo { max-width: var(--content); margin: 0 auto; padding: var(--section-space) var(--gutter); }
.journey-controls { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.journey-controls button { min-height: 4rem; padding: 0.7rem; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.journey-controls button:nth-child(2n) { border-right: 0; }
.journey-controls button:nth-last-child(-n+2) { border-bottom: 0; }
.journey-controls button span { display: block; color: var(--accent); font: 600 0.7rem "Manrope", "Helvetica Neue", sans-serif; }
.journey-controls button[aria-selected="true"] { color: var(--white); background: var(--night); }
.journey-controls button[aria-selected="true"] span { color: var(--accent-bright); }
.journey-panel { display: grid; gap: 3rem; margin-top: 3rem; }
.journey-copy h3 { max-width: 40rem; margin: 0; font-size: clamp(2rem, 5vw, 4.3rem); letter-spacing: -0.05em; line-height: 1; }
.journey-copy > p:not(.eyebrow, .decision-annotation) { max-width: 38rem; color: var(--muted); }
.decision-annotation { max-width: 35rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.decision-annotation span { display: block; margin-bottom: 0.5rem; color: var(--accent); font: 600 0.7rem "Manrope", "Helvetica Neue", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.journey-media img { max-height: 38rem; object-fit: contain; background: #e8e8e4; }

.test-section { display: grid; gap: 3rem; padding: var(--section-space) var(--gutter); }
.test-copy { max-width: 48rem; }
.test-copy > p:last-child { max-width: 42rem; margin-top: 2rem; color: #bcbcc5; }
.test-section blockquote { max-width: 55rem; margin: 0; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.test-section blockquote > span { color: var(--accent-bright); font-size: 5rem; line-height: 0.5; }
.test-section blockquote p { margin: 0.7rem 0 1rem; font-size: clamp(2.2rem, 6.5vw, 5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.test-section cite { color: #9898a5; font: normal 0.72rem "Manrope", "Helvetica Neue", sans-serif; }
.test-caveat { max-width: 42rem; padding: 1.25rem; color: #bcbcc5; border: 1px solid var(--line-dark); }
.test-caveat > span { color: var(--accent-bright); }
.test-caveat p { margin: 0.65rem 0 0; }

.outcome-grid { display: grid; gap: 1px; margin-top: 4rem; background: var(--line); border: 1px solid var(--line); }
.outcome-card { min-height: 18rem; padding: 1.5rem; background: var(--paper); }
.outcome-card > span { color: var(--accent); }
.outcome-card h3 { margin: 3.5rem 0 0.8rem; font-size: 1.45rem; line-height: 1.2; }
.outcome-card p { margin: 0; color: var(--muted); }
.outcome-card.not-claimed > span { color: var(--red); }
.next-test { display: grid; gap: 2rem; margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.next-test h3 { max-width: 34rem; margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.05em; line-height: 1; }
.next-test ol { margin: 0; padding: 0; list-style: none; }
.next-test li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.next-test li span { color: var(--accent); font: 600 0.75rem "Manrope", "Helvetica Neue", sans-serif; }
.reflection { margin-top: 5rem; padding: 2rem; color: #ffffff; background: var(--accent); }
.reflection .eyebrow { color: #ffffff; }
.reflection > p:last-child { max-width: 57rem; margin: 0; font-size: clamp(1.7rem, 4.7vw, 3.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }

.mockup-gallery { padding: var(--section-space) var(--gutter); border-top: 1px solid var(--line-dark); }
.mockup-gallery > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.mockup-gallery-heading { display: grid; gap: 2rem; }
.mockup-gallery-heading h2 {
  max-width: 52rem;
  margin: 0;
  font-size: clamp(2.35rem, 6.4vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.mockup-gallery-heading > p { max-width: 39rem; margin: 0; color: #bcbcc5; }
.mockup-grid { display: grid; gap: 2.5rem; margin-top: 4rem; }
.mockup-frame {
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: clamp(0.5rem, 1.5vw, 1rem);
  background: #e4e5e1;
  overflow: hidden;
}
.mockup-frame img { width: 100%; height: auto; }
.mockup-gallery figcaption { display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem; color: #9898a5; }
.mockup-gallery figcaption span { color: var(--accent-bright); }

.site-footer { display: grid; gap: 1.5rem; align-items: center; padding: 2.5rem var(--gutter); color: #cfcfd6; background: var(--night-deep); border-top: 1px solid var(--line-dark); font-size: 0.85rem; }
.site-footer p { margin: 0; }
.site-footer > a:last-child { color: var(--accent-bright); text-underline-offset: 0.2rem; }

@media (min-width: 42rem) {
  .project-facts { grid-template-columns: repeat(2, 1fr); }
  .snapshot-grid, .outcome-grid { grid-template-columns: repeat(3, 1fr); }
  .context { grid-template-columns: 1.1fr 0.9fr; align-items: end; }
  .before-grid { grid-template-columns: repeat(2, 1fr); }
  .evidence-pair { grid-template-columns: repeat(2, 1fr); }
  .reframe-grid { grid-template-columns: minmax(12rem, 0.65fr) auto minmax(0, 1.35fr); }
  .decision-section { grid-template-columns: minmax(0, 1fr) minmax(23rem, 0.8fr); align-items: center; }
  .route-identity { grid-template-columns: 1fr auto 6rem auto 1fr; }
  .stop-number { width: 6rem; min-height: 6rem; border-width: 0.55rem; font-size: 1.8rem; }
  .route-identity strong { text-align: left; }
  .priority-flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; }
  .flow-arrow { display: block; }
  .ruled-out li { grid-template-columns: minmax(11rem, 0.7fr) minmax(0, 1.3fr); }
  .journey-controls { grid-template-columns: repeat(4, 1fr); }
  .journey-controls button { border-bottom: 0; }
  .journey-controls button:nth-child(2n) { border-right: 1px solid var(--line); }
  .journey-controls button:last-child { border-right: 0; }
  .next-test { grid-template-columns: 0.9fr 1.1fr; }
  .mockup-gallery-heading { grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr); align-items: end; }
  .site-footer { grid-template-columns: auto 1fr auto; }
}

@media (min-width: 58rem) {
  .nav-toggle {
    display: none;
  }

  .site-navigation,
  .site-navigation.is-open {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 1.75rem;
    min-width: auto;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .site-navigation a {
    padding: 0;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 0.7fr);
    column-gap: 4rem;
    align-items: end;
  }

  .hero-copy .eyebrow,
  .hero-copy h1 {
    grid-column: 1;
  }

  .hero-deck {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    margin-top: 0;
    padding-bottom: 1rem;
  }

  .project-facts {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .project-facts { grid-template-columns: repeat(4, 1fr); }
  .hero-route { top: 4rem; right: 3rem; width: 34rem; height: 34rem; }
  .route-line { left: 3rem; width: 27rem; }
  .route-node { width: 5.5rem; height: 5.5rem; }
  .section-heading { grid-template-columns: 4rem 1fr; gap: 2rem; }
  .before-grid { grid-template-columns: repeat(4, 1fr); }
  .decision-clock { grid-template-columns: repeat(4, 1fr); }
  .journey-panel { grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1.3fr); align-items: center; }
  .test-section { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .test-caveat { grid-column: 2; }
  .mockup-grid { grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr); align-items: start; }
}

@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; }
}

[id] {
  scroll-margin-top: 6.5rem;
}
