:root {
  --shell-width: 1180px;
  --nav-height: 84px;
  --radius: 20px;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --card: #f3f2ef;
  --card-highlight: rgba(255, 255, 255, .88);
}

body { background: #f8fafb; }
.grid-background { opacity: .68; }

.page-shell {
  width: min(calc(100% - 48px), var(--shell-width));
  margin: 24px auto 0;
  overflow: visible;
  border-top: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background: rgba(252, 253, 254, .9);
  box-shadow: 0 28px 80px rgba(7, 26, 50, .06);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--nav-height);
  grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
  gap: 22px;
  padding: 0 clamp(22px, 3vw, 40px);
  border-radius: 23px 23px 0 0;
  background: rgba(252, 253, 254, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  gap: 12px;
  font-size: clamp(1.12rem, 1.2vw, 1.3rem);
}

.brand-symbol { width: 42px; height: 42px; }
.brand-symbol::before { top: 9px; left: 18px; width: 26px; height: 24px; }
.brand-symbol::after { top: 15px; left: 30px; width: 16px; height: 13px; }
.case-meta { font-size: .64rem; letter-spacing: .06em; }

.nav-back,
.nav-contact {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 650;
}

.nav-back:hover { background: var(--card); }
.nav-contact:hover { background: var(--signal); color: var(--ink); }

.case-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .72fr);
  align-items: stretch;
  gap: clamp(28px, 4vw, 52px);
  padding: clamp(72px, 9vh, 96px) clamp(36px, 4vw, 52px) clamp(56px, 8vh, 80px);
  border-bottom: 0;
}

.hero-copy {
  min-height: 0;
  justify-content: center;
  padding: 24px 0 30px;
  border-right: 0;
  border-bottom: 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-client-logo {
  display: block;
  width: auto;
  max-width: var(--hero-logo-width, 116px);
  height: var(--hero-logo-height, 32px);
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.hero-client-logo--mark { --hero-logo-width: 54px; --hero-logo-height: 42px; }
.hero-client-logo--vertical { --hero-logo-width: 48px; --hero-logo-height: 48px; }

.eyebrow,
.metric-label,
.chapter-nav,
dt,
th,
.tag,
.stage-number,
.stage-owner,
.skill-name,
.footer-label,
.media-label,
.phase-label,
.evidence-label,
.flow-kind,
.flow-step,
.layer-number,
.model-label {
  font-size: .67rem;
  letter-spacing: .065em;
}

h1 {
  max-width: 760px;
  margin: clamp(30px, 4vh, 42px) 0 0;
  font-family: var(--display);
  font-size: clamp(3.35rem, 5vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero-lede {
  max-width: 700px;
  margin: clamp(30px, 4vh, 40px) 0 0;
  font-size: clamp(1.08rem, 1.25vw, 1.25rem);
  line-height: 1.58;
  letter-spacing: -.012em;
}

.hero-outcome {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(119, 144, 168, .34);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(236, 239, 240, .5)), var(--card);
}

.outcome-statement {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  padding: clamp(30px, 3vw, 40px);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.outcome-statement strong {
  font-size: clamp(4.5rem, 7vw, 6rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.07em;
}

.outcome-statement span { max-width: 250px; }

.outcome-role {
  align-content: normal;
  gap: 10px;
  padding: 26px clamp(28px, 3vw, 38px);
  border-top: 1px solid var(--line);
  border-left: 0;
  background: rgba(255, 255, 255, .44);
}

.outcome-role strong { max-width: 300px; font-size: .92rem; line-height: 1.5; }

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(28px, 3vw, 40px) clamp(30px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.metric {
  min-height: 176px;
  padding: 22px;
  border: 1px solid rgba(119, 144, 168, .28);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--card-highlight), rgba(236, 239, 240, .4)), var(--card);
}

.metric:last-child { border-right: 1px solid rgba(119, 144, 168, .28); }

.metric strong {
  margin: 24px 0 8px;
  font-family: var(--display);
  font-size: clamp(2.45rem, 3.5vw, 3.7rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.055em;
}

.case-layout { grid-template-columns: 196px minmax(0, 1fr); background: transparent; }

.chapter-rail {
  top: calc(var(--nav-height) + 18px);
  display: block;
  min-height: 0;
  height: fit-content;
  padding: 42px 18px;
  background: transparent;
}

.rail-heading { margin: 0 10px 20px; }
.chapter-nav { gap: 4px; border-top: 0; }

.chapter-nav a {
  min-height: 46px;
  grid-template-columns: 24px 1fr;
  padding: 8px 10px;
  border-bottom: 0;
  border-radius: 12px;
  line-height: 1.25;
}

.chapter-nav a:hover { padding-left: 13px; background: var(--card); }
.chapter-nav a.is-active { padding-left: 13px; background: var(--ink); color: white; }
.chapter-nav a.is-active span:first-child { color: var(--signal); }

.case-section {
  scroll-margin-top: calc(var(--nav-height) + 24px);
  padding: clamp(72px, 8vh, 92px) clamp(34px, 5vw, 56px);
}

.section-head { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: clamp(36px, 5vh, 50px); }
.section-head .eyebrow { margin-top: 0; }

h2 {
  max-width: 840px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 3.8vw, 3.7rem);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -.04em;
}

h3 { font-family: var(--display); font-weight: 500; }

.body-copy {
  max-width: 760px;
  margin-left: 0;
  font-size: clamp(1.04rem, 1.15vw, 1.16rem);
  line-height: 1.65;
}

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

.facts div,
.requirement,
.strategy-card,
.creator-card,
.phase-card,
.evidence,
.control,
.flow-node {
  border: 1px solid rgba(119, 144, 168, .28);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--card-highlight), rgba(236, 239, 240, .4)), var(--card);
}

.facts div { min-height: 164px; padding: 22px; }
dt { margin-bottom: 24px; }
dd { font-size: .99rem; line-height: 1.52; }

blockquote {
  max-width: none;
  margin: 44px 0 0;
  padding: clamp(38px, 5vw, 56px);
  border-radius: 24px;
  font-family: var(--display);
  font-size: clamp(2.25rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.table-wrap { border-color: rgba(119, 144, 168, .36); border-radius: 24px; }
th, td { padding: 24px; }
th { background: #efefec; }
tbody tr:nth-child(even) td { background: rgba(243, 242, 239, .5); }

.ownership,
.strategy-grid,
.creator-grid,
.phase-grid,
.skills,
.evidence-row { gap: 14px; }

.ownership article,
.skill,
.phase-card,
.strategy-card,
.creator-card {
  min-height: 250px;
  padding: 24px;
  border-color: rgba(119, 144, 168, .28);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--card-highlight), rgba(236, 239, 240, .4)), var(--card);
}

.ownership .tag,
.phase-label,
.strategy-card .tag,
.creator-card .tag {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.ownership h3,
.phase-card h3 { margin: 42px 0 12px; font-size: 1.65rem; }

figure { margin: 0; }
figcaption { font-family: var(--display); font-size: 1.55rem; font-weight: 500; letter-spacing: -.025em; }
.diagram-intro { margin-bottom: 32px; line-height: 1.6; }

.pipeline { padding: 0; border: 0; background: transparent; }

.pipeline-stage {
  grid-template-columns: 52px 184px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border-color: rgba(119, 144, 168, .3);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--card-highlight), rgba(236, 239, 240, .38)), var(--card);
}

.pipeline-stage + .pipeline-stage { margin-top: 12px; }
.pipeline-stage + .pipeline-stage::before { display: none; }

.stage-number,
.layer-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  font-size: .72rem;
}

.stage-title { font-size: 1.12rem; }
.stage-detail { line-height: 1.62; }

.signal-note,
.measurement-note,
.technical-output {
  padding: 22px 24px;
  border: 1px solid rgba(119, 144, 168, .3);
  border-left: 0;
  border-radius: 16px;
  background: var(--signal-soft);
  line-height: 1.55;
}

.decision-section,
.dark-section,
.models-section,
.media-section {
  margin: 18px;
  padding: clamp(58px, 7vh, 76px) clamp(28px, 4vw, 44px);
  border: 0;
  border-radius: 24px;
}

.decision { grid-template-columns: 160px 1fr; gap: 34px; padding: clamp(28px, 4vw, 42px); border-radius: 20px; }
.decision strong { font-family: var(--display); font-size: 1.45rem; font-weight: 500; }

.saving,
.signal-banner {
  margin-top: 14px;
  padding: 22px 24px;
  border-radius: 16px;
  font-size: clamp(1.15rem, 1.45vw, 1.4rem);
  font-weight: 650;
}

.results { gap: 14px; border: 0; }

.results li {
  min-height: 148px;
  padding: 24px;
  border: 1px solid rgba(119, 144, 168, .28);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--card-highlight), rgba(236, 239, 240, .4)), var(--card);
  line-height: 1.5;
}

.results strong {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.1;
}

.skill { min-height: 220px; line-height: 1.6; }

.takeaway { grid-template-columns: 1fr minmax(260px, .48fr); gap: 14px; }

.takeaway-primary,
.takeaway-secondary { border-radius: 24px; }

.takeaway-primary {
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.media-feature,
.media-card { border-radius: 20px; }
.media-feature iframe,
.media-feature img,
.media-card img { border-radius: 18px 18px 0 0; }

.requirements { gap: 14px; }
.requirement { min-height: 240px; padding: 24px; }

.evidence { min-height: 154px; padding: 22px; }
.evidence strong { font-family: var(--display); font-weight: 500; }

.flow {
  padding: 14px;
  border-color: rgba(119, 144, 168, .3);
  border-radius: 24px;
  background: rgba(243, 242, 239, .6);
}

.flow-row { gap: 12px; }
.flow-node { padding: 20px; }
.flow-step { border-radius: 999px; background: var(--signal); color: var(--ink); }

.plane-layers { display: grid; gap: 12px; border-top: 0; }

.layer {
  grid-template-columns: 52px 184px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(119, 144, 168, .3);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--card-highlight), rgba(236, 239, 240, .38)), var(--card);
}

.controls { gap: 12px; }
.control { padding: 18px; }

.strategy-card,
.creator-card { border-color: rgba(119, 144, 168, .28); }
.principle { border-radius: 20px; }
.feedback-loop { border-radius: 20px; }

.models { gap: 14px; }

.model {
  min-height: 300px;
  padding: 24px;
  border-color: #52677d;
  border-radius: 20px;
}

.model h3 { font-family: var(--display); font-weight: 500; }

.case-footer {
  min-height: 0;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 48px;
  padding: clamp(72px, 9vh, 96px) clamp(34px, 5vw, 56px);
  border-radius: 0 0 24px 24px;
}

.footer-content h2 { max-width: 780px; font-size: clamp(2.5rem, 4.3vw, 4.25rem); }
.footer-content p { margin-top: 28px; line-height: 1.6; }
.footer-actions { margin-top: 34px; }

.footer-button {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 650;
}

@media (max-width: 1020px) {
  :root { --nav-height: 80px; }

  .page-shell { width: min(calc(100% - 32px), var(--shell-width)); margin-top: 16px; }
  .site-nav { grid-template-columns: 1fr auto; }
  .case-meta { display: none; }

  .case-hero { grid-template-columns: 1fr; gap: 28px; padding: 72px 40px 30px; }
  .hero-outcome { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
  .outcome-statement { min-height: 260px; }
  .outcome-role { align-content: end; border-top: 0; border-left: 1px solid var(--line); }

  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 32px 32px; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid rgba(119, 144, 168, .28); }

  .case-layout { grid-template-columns: 1fr; }

  .chapter-rail {
    position: sticky;
    top: var(--nav-height);
    z-index: 12;
    display: block;
    width: 100%;
    height: auto;
    padding: 9px 24px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(252, 253, 254, .94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    scrollbar-width: none;
  }

  .chapter-rail::-webkit-scrollbar { display: none; }
  .rail-heading { display: none; }
  .chapter-nav { width: max-content; display: flex; gap: 4px; }
  .chapter-nav a { min-height: 42px; grid-template-columns: 22px auto; white-space: nowrap; }

  .case-section { scroll-margin-top: calc(var(--nav-height) + 62px); padding: 72px 40px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline-stage,
  .layer { grid-template-columns: 50px 160px minmax(0, 1fr); }
  .case-footer { padding-inline: 40px; }
}

@media (max-width: 720px) {
  :root { --nav-height: 76px; }

  .page-shell {
    width: 100%;
    margin-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav { padding-inline: 16px; border-radius: 0; }
  .brand { gap: 9px; font-size: 1.16rem; }
  .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-actions { gap: 0; }
  .nav-contact { display: none; }
  .nav-back { min-height: 42px; padding-inline: 12px; font-size: .78rem; }

  .case-hero { padding: 56px 20px 24px; }
  .hero-kicker { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-client-logo { max-width: 104px; height: 30px; }
  .hero-client-logo--mark,
  .hero-client-logo--vertical { max-width: 48px; height: 42px; }

  h1 { font-size: clamp(2.85rem, 13vw, 4rem); line-height: 1.01; }
  .hero-lede { font-size: 1.05rem; line-height: 1.56; }

  .hero-outcome { grid-template-columns: 1fr; border-radius: 20px; }
  .outcome-statement { min-height: 220px; padding: 28px; }
  .outcome-statement strong { font-size: 4.5rem; }
  .outcome-role { padding: 24px 28px; border-top: 1px solid var(--line); border-left: 0; }

  .metrics { gap: 10px; padding: 10px 14px 14px; }
  .metric { min-height: 146px; padding: 17px; border-radius: 16px; }
  .metric strong { font-size: clamp(2rem, 10vw, 2.8rem); }
  .metric span:last-child { font-size: .78rem; line-height: 1.35; }

  .chapter-rail { padding: 8px 14px; }
  .case-section { padding: 64px 20px; }
  h2 { font-size: clamp(2.25rem, 10vw, 3rem); }

  .facts,
  .requirements,
  .ownership,
  .strategy-grid,
  .creator-grid,
  .phase-grid,
  .models,
  .results,
  .skills,
  .takeaway,
  .evidence-row,
  .controls.two { grid-template-columns: 1fr; }

  .facts div { min-height: 150px; }
  blockquote { padding: 34px 28px; border-radius: 20px; font-size: clamp(2rem, 9.5vw, 3rem); }
  .ownership article { min-height: 240px; }

  .pipeline-stage,
  .layer { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: 16px; }
  .pipeline-stage .stage-detail,
  .layer .layer-body { grid-column: 1 / -1; }

  .flow-row,
  .flow-row.three { grid-template-columns: 1fr; }
  .flow-row.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .decision-section,
  .dark-section,
  .models-section,
  .media-section { margin: 10px; padding: 56px 18px; border-radius: 20px; }

  .decision { grid-template-columns: 1fr; gap: 20px; }
  .results li { min-height: 136px; }
  .media-grid { grid-template-columns: 1fr; }

  .case-footer { grid-template-columns: 1fr; gap: 22px; padding: 68px 20px; border-radius: 0; }
  .footer-content h2 { font-size: clamp(2.4rem, 11vw, 3.35rem); }
}

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