:root {
  color-scheme: light;
  --paper: #fcfdfe;
  --panel: #fcfdfe;
  --ink: #071a32;
  --body-ink: #263d56;
  --muted: #566b82;
  --line: #b9c9d9;
  --line-strong: #7790a8;
  --signal: #b9f227;
  --signal-soft: rgba(185, 242, 39, .2);
  --shell-width: 1920px;
  --nav-height: 96px;
  --radius: 13px;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: transparent;
  font-family: var(--sans);
  line-height: 1.52;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, blockquote { margin-top: 0; }
:focus-visible { outline: 3px solid var(--signal); 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;
  top: -80px;
  left: 18px;
  z-index: 1000000;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
  font-weight: 700;
  transition: top 150ms ease;
}

.skip-link:focus { top: 18px; }

.grid-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), var(--shell-width));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid #26313c;
  border-radius: 20px 20px 0 0;
  background: rgba(252, 253, 254, .08);
}

.site-nav {
  position: relative;
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 26px;
  padding: 0 clamp(22px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(252, 253, 254, .18);
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.reading-progress::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--signal);
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left center;
  will-change: transform;
}

.brand {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-size: clamp(1.2rem, 1.45vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.brand-symbol {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.brand-symbol::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 20px;
  width: 28px;
  height: 26px;
  background: var(--ink);
  clip-path: polygon(0 50%, 42% 0, 100% 18%, 100% 82%, 42% 100%);
}

.brand-symbol::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 33px;
  width: 18px;
  height: 14px;
  background: var(--ink);
}

.case-meta,
.eyebrow,
.metric-label,
.chapter-nav,
dt,
.tag,
.stage-number,
.stage-owner,
.skill-name,
.footer-label,
.media-label,
.phase-label {
  font-family: var(--mono);
  font-size: .7rem;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-meta { color: var(--muted); text-align: center; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }

.nav-back,
.nav-contact {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 720;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.nav-back:hover { border-color: var(--ink); background: rgba(226, 232, 240, .62); }
.nav-contact { border-color: var(--ink); }
.nav-contact:hover { color: white; background: var(--ink); }

.case-hero { display: grid; grid-template-columns: minmax(0, 7.4fr) minmax(350px, 4.6fr); border-bottom: 1px solid var(--line); }

.hero-copy {
  min-height: 710px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(68px, 9vh, 112px) clamp(38px, 5vw, 96px);
  border-right: 1px solid var(--line);
}

.eyebrow { margin: 0; color: var(--muted); }

h1 {
  max-width: 1120px;
  margin: clamp(34px, 5vh, 58px) 0 0;
  font-size: clamp(4rem, 6.35vw, 7.7rem);
  font-weight: 800;
  line-height: .91;
  letter-spacing: -.068em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 960px;
  margin: clamp(38px, 5vh, 58px) 0 0;
  color: var(--body-ink);
  font-size: clamp(1.12rem, 1.48vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -.018em;
}

.hero-outcome { min-width: 0; display: grid; grid-template-rows: 1fr auto; background: var(--panel); }

.outcome-statement {
  display: flex;
  align-items: flex-end;
  padding: clamp(38px, 4vw, 64px);
  font-size: clamp(2rem, 2.75vw, 3.3rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.055em;
}

.outcome-role {
  display: grid;
  gap: 8px;
  padding: 24px clamp(28px, 3vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}

.outcome-role strong { color: var(--ink); font-size: 1rem; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--panel); }

.metric {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.metric:last-child { border-right: 0; }
.metric-label { color: var(--muted); }
.metric strong { display: block; margin: 28px 0 7px; font-size: clamp(2.3rem, 3.5vw, 4.2rem); line-height: .9; letter-spacing: -.055em; }
.metric span:last-child { color: var(--muted); font-size: .9rem; }

.case-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; background: var(--panel); }

.chapter-rail {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(246, 249, 251, .96);
}

.rail-heading { margin-bottom: 24px; color: var(--muted); }
.chapter-nav { display: grid; border-top: 1px solid var(--line); }

.chapter-nav a {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease, padding-left 150ms ease, background-color 150ms ease;
}

.chapter-nav a:hover { color: var(--ink); padding-left: 7px; }
.chapter-nav a.is-active { color: var(--ink); background: var(--signal-soft); padding-left: 7px; }
.chapter-nav a.is-active span:first-child { font-weight: 800; }
.case-content { min-width: 0; }

.case-section { scroll-margin-top: 22px; padding: clamp(72px, 9vh, 110px) clamp(34px, 6vw, 112px); border-bottom: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(30px, 4vw, 66px);
  margin-bottom: clamp(34px, 5vh, 62px);
}

.section-head .eyebrow { margin-top: 7px; }

h2 {
  max-width: 1160px;
  margin: 0;
  font-size: clamp(2.8rem, 4.7vw, 5.8rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.06em;
  text-wrap: balance;
}

h3 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.025em; }

.body-copy {
  max-width: 900px;
  margin-left: min(216px, 16vw);
  color: var(--body-ink);
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
}

.body-copy + .body-copy { margin-top: 18px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts div { min-height: 150px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
dt { margin-bottom: 18px; color: var(--muted); }
dd { margin: 0; font-size: 1.05rem; line-height: 1.45; }

blockquote {
  max-width: 1160px;
  margin: 52px 0 0;
  padding: clamp(34px, 4vw, 60px);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  font-size: clamp(2.15rem, 4vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.055em;
}

.ownership { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.ownership article,
.skill,
.phase-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.ownership .tag,
.phase-label {
  width: fit-content;
  margin-bottom: auto;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
}

.ownership h3,
.phase-card h3 { margin: 38px 0 12px; font-size: 1.7rem; }
.ownership article p:last-child,
.phase-card p,
.skill { color: var(--body-ink); }

.media-section { background: var(--ink); color: white; }
.media-section .eyebrow { color: #bfcbd7; }

.media-feature {
  overflow: hidden;
  border: 1px solid #52677d;
  border-radius: var(--radius);
  background: #020c19;
}

.media-feature iframe,
.media-feature img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
}

.media-still { margin-top: 14px; }
.media-feature.media-still img { aspect-ratio: auto; object-fit: contain; }

.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }

.media-card {
  overflow: hidden;
  border: 1px solid #52677d;
  border-radius: var(--radius);
  background: #020c19;
}

.media-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.media-card.contain img { padding: 12px; background: white; object-fit: contain; }

.media-caption {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-top: 1px solid #52677d;
  color: #c8d3de;
  font-size: .86rem;
}

.media-caption a { text-underline-offset: 3px; }
.media-label { color: white; }

figure { margin: 0; }
figcaption { margin-bottom: 8px; font-size: 1.35rem; font-weight: 800; }
.diagram-intro { max-width: 820px; margin-bottom: 28px; color: var(--muted); }

.pipeline { padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #f8fbfd; }

.pipeline-stage {
  position: relative;
  display: grid;
  grid-template-columns: 66px 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.pipeline-stage + .pipeline-stage { margin-top: 38px; }
.pipeline-stage + .pipeline-stage::before {
  content: "↓";
  position: absolute;
  top: -33px;
  left: 24px;
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 800;
}

.stage-number { color: var(--muted); font-size: 1.15rem; font-weight: 800; }
.stage-title { font-size: 1.08rem; }
.stage-owner { display: block; margin-top: 7px; color: var(--muted); font-size: .62rem; }
.stage-detail { margin: 0; color: var(--body-ink); }

.phase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.signal-note {
  margin: 28px 0 0;
  padding: 22px;
  border-left: 5px solid var(--signal);
  background: #f3f7fa;
  color: var(--body-ink);
  font-size: 1.03rem;
}

.dark-section { background: var(--ink); color: white; }
.dark-section .eyebrow { color: #bfcbd7; }
.dark-section .body-copy { color: #c8d3de; }

.decision {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid #52677d;
  border-radius: var(--radius);
}

.decision strong { font-size: 1.45rem; line-height: 1.18; }
.decision p { margin: 0; color: #c8d3de; }

.signal-banner {
  max-width: 1120px;
  margin: 18px 0 0;
  padding: 22px 26px;
  border-radius: 9px;
  background: var(--signal);
  color: var(--ink);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
}

.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.results li {
  min-height: 158px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--body-ink);
  font-size: 1rem;
}

.results li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.results strong { display: block; margin-bottom: 10px; color: var(--ink); font-size: clamp(1.5rem, 2.25vw, 2.7rem); line-height: 1.03; letter-spacing: -.04em; }

.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.skill { min-height: 220px; justify-content: flex-end; }
.skill-name { display: block; margin-bottom: auto; color: var(--muted); }

.takeaway { display: grid; grid-template-columns: 1fr minmax(280px, .55fr); gap: 14px; margin-top: 52px; }

.takeaway-primary,
.takeaway-secondary { padding: clamp(30px, 4vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); }

.takeaway-primary {
  background: var(--ink);
  color: white;
  font-size: clamp(2.05rem, 3.2vw, 4rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.05em;
}

.takeaway-primary p { margin: 0; }
.takeaway-secondary { display: flex; align-items: flex-end; color: var(--body-ink); }
.takeaway-secondary p { margin: 0; font-size: 1.05rem; }

.case-footer {
  min-height: 470px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  padding: clamp(64px, 9vh, 108px) clamp(34px, 6vw, 112px);
  background: var(--ink);
  color: white;
}

.footer-label { color: #bdc9d6; }
.footer-content h2 { max-width: 1040px; }
.footer-content p { max-width: 760px; color: #c4d0dc; font-size: 1.08rem; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.footer-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  border: 1px solid #718399;
  border-radius: 9px;
  color: white;
  text-decoration: none;
  font-weight: 740;
}

.footer-button.primary { border-color: var(--signal); background: var(--signal); color: var(--ink); }

.custom-cursor {
  --cursor-color: #475569;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border: 0 solid var(--cursor-color);
  border-radius: 1px;
  background: var(--cursor-color);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition: width 150ms ease, height 150ms ease, margin 150ms ease, background-color 150ms ease, border-width 150ms ease, border-color 150ms ease, border-radius 150ms ease, opacity 150ms ease;
}

.custom-cursor[data-theme="light"] { --cursor-color: #ffffff; }
.custom-cursor.is-clickable { width: 33px; height: 33px; margin: -16.5px 0 0 -16.5px; border-width: 1px; border-radius: 3px; background: transparent; }

@media (pointer: fine) {
  .custom-cursor-enabled,
  .custom-cursor-enabled body,
  .custom-cursor-enabled a,
  .custom-cursor-enabled button { cursor: none !important; }
}

@media (max-width: 1120px) {
  .page-shell { width: min(calc(100% - 32px), var(--shell-width)); }
  .site-nav { grid-template-columns: 1fr auto; }
  .case-meta { display: none; }
  .case-hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-outcome { grid-template-columns: 1fr 300px; grid-template-rows: auto; }
  .outcome-statement { min-height: 340px; }
  .outcome-role { align-content: end; border-top: 0; border-left: 1px solid var(--line); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .case-layout { grid-template-columns: 1fr; }
  .chapter-rail { display: none; }
  .body-copy { margin-left: 0; }
  .pipeline-stage { grid-template-columns: 58px 190px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --nav-height: 76px; }
  .page-shell { width: 100%; border-right: 0; border-left: 0; border-radius: 0; }
  .site-nav { padding: 0 16px; }
  .brand { gap: 9px; font-size: 1.18rem; }
  .brand-symbol { width: 38px; height: 38px; }
  .brand-symbol::before { top: 8px; left: 16px; width: 24px; height: 22px; }
  .brand-symbol::after { top: 13px; left: 27px; width: 15px; height: 12px; }
  .nav-contact { display: none; }
  .nav-back { min-height: 44px; padding: 0 12px; font-size: .8rem; }
  .hero-copy { padding: 66px 20px 70px; }
  h1 { font-size: clamp(3.2rem, 15.2vw, 5.25rem); }
  .hero-lede { font-size: 1.06rem; }
  .hero-outcome { grid-template-columns: 1fr; }
  .outcome-statement { min-height: 330px; padding: 42px 22px; font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .outcome-role { border-top: 1px solid var(--line); border-left: 0; }
  .metric { min-height: 160px; padding: 20px; }
  .metric strong { font-size: clamp(2rem, 10vw, 3.2rem); }
  .case-section { padding: 64px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 22px; }
  h2 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .facts, .ownership, .media-grid, .phase-grid, .results, .skills, .takeaway { grid-template-columns: 1fr; }
  .ownership article, .phase-card { min-height: 240px; }
  .pipeline { padding: 8px; }
  .pipeline-stage { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .pipeline-stage .stage-detail { grid-column: 1 / -1; }
  .decision { grid-template-columns: 1fr; }
  .results li:last-child:nth-child(odd) { grid-column: auto; }
  .media-caption { flex-direction: column; gap: 8px; }
  .case-footer { grid-template-columns: 1fr; gap: 24px; padding: 72px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
