/* ============================================================
   Threshold Garden — case study v3
   Fluid editorial single-scroll · full information density
   Palette + type identity from the original five-page showcase
   (tg-shared.css), fluid machinery from the revised case study.
   Zero dependencies; fonts vendored locally.
   ============================================================ */

/* ---------- fonts (vendored, latin subsets, variable) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(./fonts/fraunces-var.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url(./fonts/fraunces-italic-var.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(./fonts/jetbrains-mono-var.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(./fonts/inter-var.woff2) format('woff2');
}

/* ---------- tokens ---------- */
:root {
  /* ground + ink (original tg-shared values) */
  --paper: #F5F1E8;
  --paper-2: #EAE3D2;
  --ink: #1E2B2B;
  --ink-2: #495B58;
  --ink-3: #7E908D;
  --rule: #C3BCAD;
  --rule-2: #D8D2C2;
  /* accents */
  --teal: #3E8F8A;
  --teal-deep: #205C58;
  --teal-soft: #CDE4E0;
  --teal-mist: #E4F0ED;
  --pink: #DC9FAF;
  --pink-deep: #B06378;
  --pink-soft: #F3DCE1;
  --pink-mist: #F9EDEF;
  --indigo: #3A5A8C;
  --indigo-mist: #E9EDF4;
  --gold: #b8843b;
  --gold-text: #8a5e22;
  --gold-mist: #F6EFDF;
  /* dark grounds (depth ladder) */
  --night: #14201F;
  --night-2: #182B29;
  --night-3: #0D1716;
  --white: #F7F3EA;
  /* type */
  --serif: 'Fraunces', 'Iowan Old Style', Baskerville, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  /* fluid rhythm */
  --section-pad: clamp(64px, 8vw, 148px);
  --gutter: clamp(20px, 4.5vw, 84px);
  --measure: 62ch;
}

/* ---------- reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* paper grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 40;
  opacity: .13; mix-blend-mode: multiply;
  background:
    repeating-linear-gradient(0deg, rgba(30,43,43,.05) 0 1px, transparent 1px 3px),
    radial-gradient(1100px 500px at 18% -5%, rgba(62,143,138,.09), transparent 60%),
    radial-gradient(900px 480px at 88% 108%, rgba(220,159,175,.08), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); }
b, strong { font-weight: 600; }
code, kbd { font-family: var(--mono); }

/* ---------- shared type roles ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 14px;
}
.eyebrow.rose { color: var(--pink-deep); }
.eyebrow.gold { color: var(--gold-text); }
.eyebrow.light { color: var(--teal-soft); }
.micro-label {
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
}
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 380;
  letter-spacing: -.02em;
  line-height: 1.06;
  margin: 0;
}
h2 { font-size: clamp(30px, 3.6vw, 52px); font-variation-settings: 'opsz' 100; }
h2 i, h1 i { font-style: italic; font-weight: 320; color: var(--pink-deep); }
.on-dark h2 i, .on-dark h1 i { color: var(--pink); }
h3 { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; }
p { margin: 0; }
.body-copy { font-size: 14.5px; line-height: 1.66; color: var(--ink-2); max-width: var(--measure); }
.body-copy b { color: var(--ink); }
.lead {
  font-family: var(--serif); font-weight: 320;
  font-variation-settings: 'opsz' 110;
  font-size: clamp(19px, 2vw, 25px); line-height: 1.42;
  color: var(--ink); max-width: 30em;
}
.lead em { font-style: italic; color: var(--teal-deep); }
.lead em.pk { color: var(--pink-deep); }
.fig-cap {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .02em; line-height: 1.6;
  color: var(--ink-3); margin-top: 10px;
}
.fig-cap b { color: var(--ink-2); font-weight: 500; }

/* ---------- section machinery ---------- */
.chapter-section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  overflow: clip;
}
.chapter-section.ink { background: var(--night); color: var(--white); }
.chapter-section.ink-2 { background: var(--night-2); color: var(--white); }
.chapter-section.ink-3 { background: var(--night-3); color: var(--white); }
.on-dark .body-copy, .ink .body-copy, .ink-2 .body-copy, .ink-3 .body-copy { color: rgba(247,243,234,.78); }
.on-dark .body-copy b, .ink .body-copy b, .ink-2 .body-copy b, .ink-3 .body-copy b { color: var(--white); }
.on-dark .micro-label { color: rgba(247,243,234,.55); }
.on-dark .fig-cap { color: rgba(247,243,234,.5); }
.on-dark .fig-cap b { color: rgba(247,243,234,.75); }

.section-index {
  position: absolute;
  top: clamp(18px, 3vw, 44px);
  right: var(--gutter);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(72px, 10vw, 150px); font-weight: 300;
  line-height: 1; color: currentColor;
  opacity: .13; pointer-events: none; user-select: none;
}

/* asymmetric 12-col grid helper */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(14px, 2vw, 32px);
}

/* section header lockup */
.sec-head { max-width: 1400px; margin: 0 auto; }
.sec-head .crumb {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.sec-head .crumb::after { content: ''; height: 1px; flex: 0 1 180px; background: currentColor; opacity: .4; }
.on-dark .sec-head .crumb { color: rgba(247,243,234,.5); }

/* pull quote */
.pull-quote {
  font-family: var(--serif); font-style: italic; font-weight: 320;
  font-size: clamp(19px, 2.1vw, 27px); line-height: 1.45;
  color: var(--ink);
}
.pull-quote em, .pull-quote b { font-style: normal; font-weight: 500; color: var(--pink-deep); }

/* tinted callouts (summary / takeaway) */
.callout {
  border-left: 3px solid var(--teal);
  background: var(--teal-mist);
  padding: 16px 20px;
}
.callout.rose { border-color: var(--pink-deep); background: var(--pink-mist); }
.callout.gold { border-color: var(--gold); background: var(--gold-mist); }
.callout .lab {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal-deep); margin-bottom: 7px;
}
.callout.rose .lab { color: var(--pink-deep); }
.callout.gold .lab { color: var(--gold-text); }
.callout p { font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.callout.serif-voice p {
  font-family: var(--serif); font-weight: 320; font-style: italic;
  font-size: 17px; line-height: 1.45;
}
.callout.serif-voice p b { font-style: normal; font-weight: 500; color: var(--pink-deep); }

/* keyboard keys */
kbd {
  display: inline-block;
  font-size: 9.5px; font-weight: 500; letter-spacing: .04em;
  padding: 2px 6px 1.5px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-2);
  line-height: 1.4;
}
.on-dark kbd { background: rgba(247,243,234,.08); border-color: rgba(247,243,234,.25); color: rgba(247,243,234,.8); }

/* generic quote block */
.quote {
  border-left: 3px solid var(--teal);
  background: var(--teal-mist);
  padding: 14px 18px;
  font-family: var(--serif); font-style: italic; font-weight: 340;
  font-size: 15.5px; line-height: 1.5; color: var(--ink);
}
.quote.pk { border-color: var(--pink-deep); background: var(--pink-mist); }
.quote .src {
  display: block; margin-top: 8px;
  font-family: var(--mono); font-style: normal;
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- fixed chrome: nav + progress ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: transparent; z-index: 60;
}
.reading-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--pink));
}
.case-nav {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 55;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-2);
  transition: transform .35s ease;
}
.case-nav.is-hidden { transform: translateY(-110%); }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark-mark {
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: .08em;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 50%;
}
.wordmark b { font-family: var(--serif); font-weight: 500; font-size: 15px; display: block; line-height: 1.1; }
.wordmark small { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.case-nav nav { display: flex; gap: clamp(10px, 2vw, 26px); }
.case-nav nav a {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-2);
  padding: 4px 2px; border-bottom: 2px solid transparent;
}
.case-nav nav a.is-active { color: var(--teal-deep); border-bottom-color: var(--teal); }
.print-button {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer;
}

/* buttons */
.button {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  padding: 12px 22px; border-radius: 999px;
}
.button-light { background: var(--paper); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--paper); }
.text-link { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.text-link.light { color: var(--teal-soft); }

/* reveal on scroll (JS adds .is-visible; print & reduced motion neutralize) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--night-3); color: rgba(247,243,234,.65);
  padding: 40px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
}
.site-footer b { color: var(--white); font-weight: 500; }
.site-footer a { color: var(--teal-soft); text-decoration: none; }

/* ---------- responsive ---------- */
@media screen and (max-width: 1100px) {
  .case-nav nav { display: none; }
}
@media screen and (max-width: 760px) {
  .grid-12 { display: block; }
  .section-index { font-size: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .commit-lanes svg g[fill] circle { opacity: 1 !important; }
  .audit-matrix .am-track i, .es-chart .fill, .fix-row .fx-bars i { transform: none !important; }
}

/* ============================================================
   S1 · COVER
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(24px, 4vh, 56px);
  background: var(--night);
}
.hero-backdrop {
  position: absolute; inset: 0;
  background: url(./assets/eigen-clock-hi.jpg) center 40% / cover no-repeat;
  filter: brightness(1.12) saturate(1.05);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(860px 640px at 24% 58%, rgba(13,23,22,.55), transparent 70%),
    linear-gradient(100deg, rgba(13,23,22,.92) 12%, rgba(13,23,22,.5) 48%, rgba(13,23,22,.05) 78%),
    linear-gradient(0deg, rgba(13,23,22,.84) 0%, transparent 30%),
    linear-gradient(180deg, rgba(13,23,22,.5) 0%, transparent 20%);
}
.hero > *:not(.hero-backdrop):not(.hero-shade) { position: relative; }
.hero-top {
  display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(247,243,234,.6);
  padding-top: 54px;
}
.hero-copy { align-self: end; max-width: 760px; }
.hero h1 {
  font-size: clamp(58px, 9vw, 132px);
  font-weight: 340; line-height: .95; letter-spacing: -.03em;
  font-variation-settings: 'opsz' 144;
  color: var(--white);
}
.hero-kicker {
  font-family: var(--serif); font-style: italic; font-weight: 320;
  font-size: clamp(19px, 2.2vw, 28px);
  color: var(--pink); margin-top: 18px;
}
.hero-lead {
  margin-top: 16px; max-width: 54ch;
  font-size: 15px; line-height: 1.65; color: rgba(247,243,234,.78);
}
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.hero-formulas {
  display: grid; grid-template-columns: repeat(3, minmax(0, 300px));
  gap: clamp(12px, 1.6vw, 24px);
}
.hero-formulas > div {
  border-top: 2px solid var(--teal);
  padding: 12px 14px 14px;
  background: rgba(13,23,22,.55);
  backdrop-filter: blur(3px);
}
.hero-formulas > div:nth-child(2) { border-top-color: var(--pink); }
.hero-formulas > div:nth-child(3) { border-top-color: var(--gold); }
.hero-formulas span {
  display: block; font-family: var(--mono); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(247,243,234,.55);
}
.hero-formulas strong {
  display: block; font-family: var(--serif); font-weight: 420;
  font-size: clamp(19px, 1.9vw, 26px); color: var(--white); margin: 6px 0 4px;
}
.hero-formulas small { font-size: 11.5px; color: rgba(247,243,234,.62); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 3.5vw, 64px);
  border-top: 1px solid rgba(247,243,234,.18);
  padding: 16px 0 6px;
}
.hero-meta p { font-size: 12px; color: rgba(247,243,234,.75); }
.hero-meta span {
  display: block; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(247,243,234,.45);
  margin-bottom: 3px;
}

/* ============================================================
   S2 · BACKGROUND & EVIDENCE
   ============================================================ */
.bg-open { row-gap: 40px; margin-top: 8px; }
.bg-lead { grid-column: 1 / span 5; }
.concept-grid {
  grid-column: 7 / span 6;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px 24px; align-content: start;
  margin-top: 14px;
}
.concept {
  border-top: 1px solid var(--ink);
  padding-top: 13px;
  display: grid; grid-template-columns: 34px 1fr; column-gap: 11px;
}
.concept:nth-child(even) { transform: translateY(18px); }
.concept .cicon { grid-row: 1 / 3; margin-top: 3px; }
.concept h4 {
  font-family: var(--serif); font-weight: 500; font-size: 16px;
  margin: 0 0 6px; color: var(--ink); line-height: 1.15;
}
.concept h4 .ch {
  color: var(--teal-deep); font-family: var(--mono);
  font-size: 9px; font-weight: 400; letter-spacing: .15em;
  margin-left: 6px; vertical-align: 2px; text-transform: uppercase;
}
.concept p { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.acronyms {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 26px;
  font-family: var(--mono); font-size: 9px; color: var(--ink-3);
}
.acronyms b { color: var(--teal-deep); font-weight: 500; letter-spacing: .08em; }

.howto {
  max-width: 1400px; margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px 18px;
}
.step {
  background: var(--paper-2); border: 1px solid var(--rule-2);
  border-top: 2.5px solid var(--teal); padding: 14px 16px 16px;
}
.step:nth-child(3) { border-top-color: var(--pink); transform: translateY(14px); }
.step:nth-child(4) { border-top-color: var(--gold); transform: translateY(28px); }
.step .sn { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-3); }
.step svg { display: block; margin: 8px 0; }
.step h5 { margin: 0 0 5px; font-family: var(--serif); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.step h5 small {
  display: block; font-family: var(--mono); font-weight: 400;
  font-size: 9px; letter-spacing: .1em; color: var(--teal-deep);
  text-transform: uppercase; margin-top: 4px;
}
.step:nth-child(3) h5 small { color: var(--pink-deep); }
.step:nth-child(4) h5 small { color: var(--gold-text); }
.step p { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }

.evidence-band { max-width: 1400px; margin: 84px auto 0; row-gap: 48px; }
.es-chart { grid-column: 1 / span 6; }
.ev-decisions { grid-column: 8 / span 5; }
.dbar-row {
  display: grid; grid-template-columns: 190px 1fr 58px;
  gap: 8px 16px; align-items: center; margin-bottom: 16px;
}
.dbar-row .lbl { font-size: 12px; color: var(--ink); font-weight: 500; line-height: 1.3; }
.dbar-row .lbl small { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.dbar-row .track { height: 30px; background: var(--paper-2); position: relative; }
.dbar-row .fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--teal); }
.dbar-row .fill.pk { background: var(--pink); }
.dbar-row .fill.gold { background: var(--gold); }
.dbar-row .fill.ind { background: var(--indigo); }
.dbar-row .val { font-family: var(--serif); font-size: 22px; font-weight: 400; text-align: right; }
.ev-row {
  display: grid; grid-template-columns: 1fr 24px 1fr; gap: 8px 10px;
  align-items: start; padding: 18px 0; border-top: 1px solid var(--rule-2);
}
.ev-row .e { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.ev-row .e b {
  display: block; font-size: 9.5px; font-family: var(--mono);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px;
  color: var(--teal-deep); font-weight: 500;
}
.ev-row .ar { font-family: var(--mono); color: var(--pink-deep); font-size: 15px; text-align: center; padding-top: 16px; }
.ev-row .d { font-size: 13px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.ev-row .d b { color: var(--pink-deep); font-weight: 600; }

@media screen and (max-width: 1100px) {
  .bg-lead, .concept-grid, .es-chart, .ev-decisions { grid-column: 1 / -1; }
  .concept:nth-child(even), .step:nth-child(3), .step:nth-child(4) { transform: none; }
  .howto { grid-template-columns: 1fr; }
  .hero-formulas { grid-template-columns: 1fr; }
}

/* ============================================================
   S3 · DISCOVERY
   ============================================================ */
.chapter-section.paper-2 { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 12%, var(--paper-2) 88%, var(--paper) 100%); }
.disc-open { row-gap: 44px; }
.disc-question { grid-column: 1 / span 6; }
.method-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px;
  margin-top: 30px; border-top: 1px solid var(--rule); padding-top: 18px;
}
.method-strip span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.method-strip p { font-size: 12.5px; color: var(--ink-2); }
.method-strip b { color: var(--ink); font-weight: 600; }
.istats {
  grid-column: 8 / span 5;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  align-content: start;
}
.istat { border-top: 2.5px solid var(--teal); background: var(--paper); padding: 12px 14px 14px; }
.istat.p { border-top-color: var(--pink); transform: translateY(16px); }
.istat.g { border-top-color: var(--gold); }
.istat.i { border-top-color: var(--indigo); transform: translateY(16px); }
.istat b { font-family: var(--serif); font-weight: 380; font-size: 40px; line-height: 1; display: block; }
.istat p { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }

.disc-themes-band { margin-top: 72px; row-gap: 40px; }
.themes { grid-column: 1 / span 7; }
.theme-row {
  display: grid; grid-template-columns: 1fr auto 48px;
  gap: 10px 18px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--rule-2);
}
.theme-row .t-lbl { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.theme-row .t-lbl small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.theme-row .dots { display: flex; gap: 6px; }
.theme-row .dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.2px solid var(--rule); background: transparent; }
.theme-row .dots i.on { background: var(--teal); border-color: var(--teal); }
.theme-row.rose .dots i.on { background: var(--pink); border-color: var(--pink); }
.theme-row b { font-family: var(--serif); font-size: 19px; font-weight: 420; text-align: right; }
.disc-quotes { grid-column: 9 / span 4; display: grid; gap: 16px; align-content: start; margin-top: 26px; }
.disc-quotes .quote { margin: 0; }

.personas { max-width: 1400px; margin: 84px auto 0; }
.persona-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.5vw, 40px); align-items: start; }
.persona {
  background: var(--paper); border: 1px solid var(--rule-2);
  border-top: 3px solid var(--teal);
  padding: clamp(18px, 2vw, 30px);
}
.persona.pk { border-top-color: var(--pink); transform: translateY(34px) rotate(.3deg); }
.persona.tl { transform: rotate(-.25deg); }
.p-head { display: flex; gap: 16px; align-items: center; }
.p-avatar { flex: none; }
.p-head h3 { font-size: 21px; }
.p-head h3 i { font-weight: 320; color: var(--teal-deep); }
.persona.pk .p-head h3 i { color: var(--pink-deep); }
.p-meta { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.p-quote {
  font-family: var(--serif); font-style: italic; font-weight: 340;
  font-size: 16.5px; line-height: 1.45; color: var(--ink);
  margin: 18px 0 0; padding: 12px 16px;
  background: var(--teal-mist); border-left: 3px solid var(--teal);
}
.persona.pk .p-quote { background: var(--pink-mist); border-color: var(--pink-deep); }
.p-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.p-cols span { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.p-cols ul { margin: 8px 0 0; padding-left: 16px; }
.p-cols li { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin-bottom: 6px; }
.spectrums { margin-top: 22px; display: grid; gap: 12px; }
.spectrum {
  display: grid; grid-template-columns: 86px 1fr 96px auto; gap: 12px; align-items: center;
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.spectrum span:first-child { text-align: right; }
.sp-track { position: relative; height: 2px; background: var(--rule); }
.sp-track i {
  position: absolute; top: 50%; left: var(--x);
  width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--teal); border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--teal);
}
.persona.pk .sp-track i { background: var(--pink-deep); box-shadow: 0 0 0 1px var(--pink-deep); }
.spectrum b { color: var(--teal-deep); font-weight: 500; white-space: nowrap; }
.persona.pk .spectrum b { color: var(--pink-deep); }
.design-read {
  margin-top: 22px; padding: 13px 16px;
  background: var(--paper-2); border-left: 3px solid var(--gold);
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
}
.design-read b { color: var(--ink); font-weight: 600; }

.field-band { margin-top: 96px; row-gap: 40px; }
.map-wrap { grid-column: 1 / span 7; margin: 0; }
.map-wrap svg { width: 100%; height: auto; background: var(--paper); border: 1px solid var(--rule-2); }
.map-wrap .axl { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; fill: var(--ink-3); }
.map-wrap .mpt text { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); text-anchor: middle; }
.map-wrap .mpt.tg text { fill: var(--pink-deep); font-size: 12.5px; }
.obs-stack { grid-column: 9 / span 4; }
.obs { border-top: 1px solid var(--rule); padding: 14px 0 16px; }
.obs span { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--gold-text); }
.obs h4 { font-family: var(--serif); font-weight: 500; font-size: 16.5px; margin: 6px 0; }
.obs p { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.obs p b { color: var(--ink); }

.targets {
  max-width: 1400px; margin: 76px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.tgt { border-top: 2.5px solid var(--teal); background: var(--paper); padding: 16px 18px 18px; }
.tgt.p { border-top-color: var(--pink); transform: translateY(16px); }
.tgt.g { border-top-color: var(--gold); transform: translateY(32px); }
.tgt span { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.tgt h4 { font-family: var(--serif); font-weight: 500; font-size: 17.5px; margin: 8px 0 7px; line-height: 1.25; }
.tgt p { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }

@media screen and (max-width: 1100px) {
  .disc-question, .istats, .themes, .disc-quotes, .map-wrap, .obs-stack { grid-column: 1 / -1; }
  .persona-pair { grid-template-columns: 1fr; }
  .persona.pk, .istat.p, .istat.i, .tgt.p, .tgt.g { transform: none; }
  .targets { grid-template-columns: 1fr; }
}

/* ============================================================
   S4 · CONCEPT & WORLD (dark)
   ============================================================ */
.world-open { row-gap: 36px; align-items: end; }
.world-copy { grid-column: 1 / span 5; }
.world-copy h2 { font-size: clamp(34px, 4vw, 58px); }
.world-lead { grid-column: 7 / span 6; padding-bottom: 6px; }

.flow-spine { margin: 72px 0 0; }
.flow-spine svg { width: 100%; height: auto; }
.fs-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; }
.fs-title { font-family: var(--serif); font-size: 19px; fill: var(--white); }
.fs-code { font-family: var(--mono); font-size: 13px; fill: #CDE4E0; }
.fs-mini { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; fill: rgba(247,243,234,.62); }
.fs-hand { font-family: var(--serif); font-style: italic; font-size: 13.5px; fill: rgba(247,243,234,.55); }

.art-rows { margin-top: 88px; }
.art-row {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(18px, 3vw, 48px); align-items: center;
  padding: 34px 0;
  border-top: 1px solid rgba(247,243,234,.14);
}
.art-row.flip { grid-template-columns: 5fr 7fr; }
.art-row.flip figure { order: 2; }
.art-row figure { margin: 0; }
.art-row img {
  width: 100%; border: 1px solid rgba(247,243,234,.14);
  transform: rotate(-.35deg);
}
.art-row.flip img { transform: rotate(.35deg); }
.art-time {
  display: inline-block; font-family: var(--mono); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px;
  margin-bottom: 12px;
}
.art-time.t { color: #7FC4BE; }
.art-time.p { color: #E8B7C4; }
.art-time.i { color: #A9BCE0; }
.art-info h3 { font-size: clamp(21px, 2vw, 28px); color: var(--white); }
.art-info h3 i { font-weight: 320; color: var(--pink); }
.art-ch { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: rgba(247,243,234,.5); margin: 8px 0 12px; }
.art-info > p:not(.art-ch) { font-size: 13.5px; line-height: 1.6; color: rgba(247,243,234,.75); max-width: 46ch; }
.art-info b { color: var(--white); }
.palette { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.palette i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(247,243,234,.3); }
.palette small { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,243,234,.5); margin-left: 6px; }

.studies-strip { margin-top: 80px; }
.studies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.2vw, 34px); }
.studies-grid figure { margin: 0; }
.studies-grid img, .char-study img {
  width: 100%; background: var(--paper);
  border: 1px solid rgba(247,243,234,.2);
}
.studies-grid figure:nth-child(2) { transform: translateY(20px) rotate(.3deg); }
.studies-grid figure:nth-child(3) { transform: rotate(-.3deg); }

/* ============================================================
   S5 · CHARACTER & MODELING (dark 2)
   ============================================================ */
.char-open { row-gap: 44px; }
.char-copy { grid-column: 1 / span 4; }
.char-copy .eyebrow i { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 12px; }
.compact-roles { display: grid; gap: 8px; margin-top: 26px; }
.compact-roles span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  color: rgba(247,243,234,.7);
  border-left: 2px solid var(--teal); padding: 5px 0 5px 12px;
}
.compact-roles span:nth-child(2) { border-color: var(--pink); }
.compact-roles span:nth-child(3) { border-color: var(--gold); }
.compact-roles b { color: var(--white); margin-right: 6px; }
.char-breakdown { grid-column: 6 / span 7; margin: 0; }
.char-breakdown svg { width: 100%; height: auto; background: rgba(13,23,22,.5); border: 1px solid rgba(247,243,234,.14); }
.cb-t { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; }
.cb-d { font-family: var(--sans); font-size: 11.5px; fill: rgba(247,243,234,.68); }

.model-plates { margin-top: 84px; }
.mp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; }
.mp-stat { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: rgba(247,243,234,.6); }
.mp-stat b { color: var(--gold); font-family: var(--serif); font-size: 16px; }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 30px); margin-top: 18px; }
.mp { margin: 0; }
.mp img { width: 100%; border: 1px solid rgba(247,243,234,.14); background: #101d1c; min-height: 120px; }

.char-study { margin: 84px auto 0; max-width: 1080px; }

/* ============================================================
   S6 · GAMEPLAY
   ============================================================ */
.gp-heading { max-width: 900px; }
.chapters-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 36px);
  margin-top: 64px;
}
.chapter-col:nth-child(2) { transform: translateY(30px); }
.chapter-col:nth-child(3) { transform: translateY(60px); }
.ch-head { display: flex; gap: 14px; align-items: center; border-top: 3px solid var(--teal); padding-top: 14px; }
.ch-head.p { border-top-color: var(--pink); }
.ch-head.i { border-top-color: var(--indigo); }
.ch-no { font-family: var(--serif); font-size: 40px; font-weight: 320; line-height: 1; color: var(--teal-deep); }
.ch-head.p .ch-no { color: var(--pink-deep); }
.ch-head.i .ch-no { color: var(--indigo); }
.ch-head h3 { font-size: 21px; }
.ch-head p { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.ch-eq {
  display: block; margin: 14px 0 12px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  background: var(--paper-2); padding: 9px 12px;
  border-left: 3px solid var(--gold);
}
.phase {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 10px;
  align-items: center; padding: 9px 0;
  border-bottom: 1px solid var(--rule-2);
}
.ph-n { font-family: var(--mono); font-size: 13px; color: var(--ink-3); text-align: center; }
.ph-n.u { color: var(--teal-deep); font-weight: 600; }
.ph-n.v { color: var(--pink-deep); font-weight: 600; }
.ph-n.m { color: var(--gold-text); font-weight: 600; }
.phase b { font-size: 12.5px; }
.phase small { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }
.keys { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 120px; }
.win {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em;
  color: var(--gold-text); background: var(--gold-mist);
  padding: 8px 10px; margin-top: 12px;
}
.ch-shot { margin: 16px 0 0; }
.ch-shot img { width: 100%; border: 1px solid var(--rule); }
.chfig { margin: 18px 0 0; background: var(--paper); border: 1px solid var(--rule-2); }
.chfig svg { width: 100%; height: auto; display: block; }
.cf-lab { font-family: var(--mono); font-size: 12px; }
.cf-mini { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; fill: var(--ink-3); }
.moment {
  margin-top: 14px;
  font-family: var(--serif); font-style: italic; font-weight: 330;
  font-size: 14.5px; line-height: 1.5; color: var(--ink-2);
  border-left: 2px solid var(--rule); padding-left: 12px;
}

.coop-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 110px; max-width: 1400px;
}
.coop { border-top: 2.5px solid var(--teal); background: var(--paper-2); padding: 14px 16px 16px; }
.coop.p { border-top-color: var(--pink); }
.coop.g { border-top-color: var(--gold); }
.coop span { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.coop b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 420; margin: 6px 0; }
.coop p { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.coop p b { display: inline; font-family: var(--sans); font-size: inherit; font-weight: 600; color: var(--ink); }

.moments { margin-top: 84px; }
.moments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.frame { margin: 0; }
.frame:nth-child(even) { transform: translateY(22px); }
.frame-slot {
  aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--rule); background: var(--teal-mist);
}
.frame-slot img { width: 100%; height: 100%; object-fit: cover; }
.frame figcaption { margin-top: 10px; }
.frame figcaption span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; color: var(--ink-3); }
.frame figcaption b { display: block; font-family: var(--serif); font-weight: 500; font-size: 16px; margin: 4px 0 5px; }
.frame figcaption p { font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }

@media screen and (max-width: 1100px) {
  .world-copy, .world-lead, .char-copy, .char-breakdown { grid-column: 1 / -1; }
  .art-row, .art-row.flip { grid-template-columns: 1fr; }
  .art-row.flip figure { order: 0; }
  .studies-grid { grid-template-columns: 1fr; }
  .studies-grid figure:nth-child(2), .studies-grid figure:nth-child(3) { transform: none; }
  .chapters-grid { grid-template-columns: 1fr; }
  .chapter-col:nth-child(2), .chapter-col:nth-child(3) { transform: none; }
  .coop-strip { grid-template-columns: 1fr; margin-top: 60px; }
  .moments-grid { grid-template-columns: 1fr 1fr; }
  .frame:nth-child(even) { transform: none; }
  .mp-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   S7 · INTERFACE (dark)
   ============================================================ */
.ui-open { row-gap: 30px; align-items: end; }
.ui-heading { grid-column: 1 / span 6; }
.ui-lead { grid-column: 8 / span 5; padding-bottom: 8px; }

.ui-panels {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 34px);
  margin-top: 64px;
}
.ui-panel { margin: 0; }
.ui-panel:nth-child(2) { transform: translateY(28px); }
.ui-panel:nth-child(3) { transform: translateY(56px); }
.ui-img {
  border: 1px solid rgba(247,243,234,.16);
  background: #101d1c;
  min-height: 180px;
  display: grid; place-items: center;
}
.ui-img img { width: 100%; }
.ui-tag {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  color: #7FC4BE; border: 1px solid currentColor;
  padding: 3px 9px; border-radius: 999px;
}
.ui-tag.rose { color: #E8B7C4; }
.ui-tag.gold { color: #E0BC7A; }
.ui-panel h3 { color: var(--white); margin: 10px 0 8px; }
.ui-panel figcaption p { font-size: 12.5px; line-height: 1.6; color: rgba(247,243,234,.72); }
.ui-panel figcaption p b { color: var(--white); }
.ui-panel figcaption p i { font-style: italic; }

.ui-diagrams { margin-top: 96px; row-gap: 44px; }
.input-pipeline { grid-column: 1 / span 6; margin: 0; }
.state-routing { grid-column: 7 / span 6; margin: 0; }
.input-pipeline svg, .state-routing svg {
  width: 100%; height: auto;
  background: rgba(13,23,22,.5);
  border: 1px solid rgba(247,243,234,.14);
}
.ip-t { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; }
.ip-d { font-family: var(--sans); font-size: 11.5px; fill: rgba(247,243,234,.65); }
.ip-code { font-family: var(--mono); font-size: 13px; fill: #CDE4E0; }
.ip-mini { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; fill: rgba(247,243,234,.45); }

.ui-principles { margin-top: 84px; }
.prin-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.prin-row article { border-top: 1px solid rgba(247,243,234,.25); padding-top: 12px; }
.prin-row article:nth-child(even) { transform: translateY(18px); }
.prin-row b { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: #7FC4BE; }
.prin-row h4 { font-family: var(--serif); font-weight: 500; font-size: 15.5px; color: var(--white); margin: 8px 0 6px; line-height: 1.25; }
.prin-row p { font-size: 11.5px; line-height: 1.5; color: rgba(247,243,234,.66); }

.ui-ledger { margin-top: 76px; max-width: 1080px; }
.ui-ledger article {
  display: grid; grid-template-columns: 1fr 40px 1.3fr;
  gap: 12px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid rgba(247,243,234,.14);
}
.ui-ledger span { font-size: 13px; color: rgba(247,243,234,.55); }
.ui-ledger b { font-family: var(--mono); color: var(--pink); text-align: center; }
.ui-ledger strong { font-size: 13.5px; font-weight: 500; color: var(--white); }

/* ============================================================
   S8 · CRAFT
   ============================================================ */
.craft-open { row-gap: 44px; }
.craft-heading { grid-column: 1 / span 5; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.stack-chips span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 6px 12px; color: var(--ink-2);
}
.stack-chips b { color: var(--teal-deep); font-weight: 600; }
.arch-fig { grid-column: 6 / span 7; margin: 0; }
.arch-fig svg { width: 100%; height: auto; background: var(--paper); border: 1px solid var(--rule-2); }
.af-t { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; font-weight: 500; }
.af-d { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-2); }
.af-code { font-family: var(--mono); font-size: 11.5px; fill: var(--ink); }
.af-mini { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; fill: var(--ink-3); }

.bets { max-width: 1400px; margin: 76px auto 0; }
.bet {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 18px;
  align-items: start; padding: 16px 0; border-top: 1px solid var(--rule-2);
}
.bet-n { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink-3); }
.bet b { font-family: var(--serif); font-weight: 500; font-size: 17px; }
.bet p { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); margin-top: 4px; max-width: 70ch; }
.bet code { font-size: 11px; background: var(--paper-2); padding: 1px 6px; }
.bet-tag {
  font-family: var(--mono); font-style: normal; font-size: 9px;
  letter-spacing: .16em; padding: 4px 10px; border-radius: 999px;
}
.bet-tag.t { background: var(--teal-mist); color: var(--teal-deep); }
.bet-tag.p { background: var(--pink-mist); color: var(--pink-deep); }
.bet-tag.g { background: var(--gold-mist); color: var(--gold-text); }

.perf-band {
  display: grid; grid-template-columns: 6.5fr 5.5fr;
  gap: clamp(24px, 3vw, 56px);
  max-width: 1400px; margin: 92px auto 0;
}
.detective-fig { margin: 22px 0 0; }
.detective-fig svg { width: 100%; height: auto; background: var(--paper); border: 1px solid var(--rule-2); }
.pf-t { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; fill: var(--ink-3); }
.pf-lab { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); }
.pf-val { font-family: var(--mono); font-size: 11.5px; fill: var(--ink); }
.pf-d { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-2); }
.pf-big { font-family: var(--serif); font-size: 24px; fill: var(--pink-deep); }
.fix-row {
  display: grid; grid-template-columns: 1fr 130px auto; gap: 14px;
  align-items: center; padding: 11px 0; border-top: 1px solid var(--rule-2);
}
.fx-lbl { font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.fx-lbl small { display: block; font-size: 10.5px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.fx-bars { display: grid; gap: 4px; }
.fx-bars i { display: block; height: 9px; width: var(--w); background: var(--rule); min-width: 2px; }
.fx-bars i.after { background: var(--teal); }
.fix-row b { font-family: var(--mono); font-size: 11px; color: var(--teal-deep); white-space: nowrap; }
.governor { margin-top: 24px; border-top: 1px solid var(--rule-2); padding-top: 16px; }
.gov-tiers { display: flex; gap: 10px; margin: 6px 0 8px; }
.gov-tiers span {
  font-family: var(--mono); font-size: 12px;
  border: 1px solid var(--rule); padding: 6px 14px;
  color: var(--ink-3);
}
.gov-tiers span.on { background: var(--teal-mist); border-color: var(--teal); color: var(--teal-deep); font-weight: 500; }

.sound-judge {
  display: flex; gap: 18px; align-items: center;
  max-width: 1400px; margin: 84px auto 0;
  background: var(--indigo-mist); border-left: 3px solid var(--indigo);
  padding: 18px 22px;
}
.sound-judge svg { flex: none; }
.sound-judge p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.sound-judge b { color: var(--indigo); }

@media screen and (max-width: 1100px) {
  .ui-heading, .ui-lead, .input-pipeline, .state-routing, .craft-heading, .arch-fig { grid-column: 1 / -1; }
  .ui-panels { grid-template-columns: 1fr; }
  .ui-panel:nth-child(2), .ui-panel:nth-child(3) { transform: none; }
  .prin-row { grid-template-columns: 1fr 1fr; }
  .prin-row article:nth-child(even) { transform: none; }
  .perf-band { grid-template-columns: 1fr; }
  .ui-ledger article { grid-template-columns: 1fr 24px 1.15fr; }
}

/* ============================================================
   S9 · PROCESS
   ============================================================ */
.proc-open { row-gap: 40px; }
.proc-lead { grid-column: 1 / span 5; }
.ba-pair {
  grid-column: 7 / span 6;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  align-content: start;
}
.ba-col svg { width: 100%; height: auto; background: var(--paper); border: 1px solid var(--rule-2); }
.ba-col img { width: 100%; border: 1px solid var(--rule); }
.ba-tag {
  display: inline-block; margin-bottom: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.ba-tag.before { background: var(--paper-2); color: var(--ink-3); }
.ba-tag.after { background: var(--teal-mist); color: var(--teal-deep); }
.v0-lab { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; fill: var(--ink-3); }
.v0-wall { font-family: var(--mono); font-size: 22px; fill: var(--pink-deep); }
.v0-cap { font-family: var(--serif); font-style: italic; font-size: 13px; fill: var(--ink-2); }

.deltas { max-width: 1400px; margin: 76px auto 0; }
.deltas article {
  display: grid; grid-template-columns: 1fr 44px 1.4fr 110px;
  gap: 14px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--rule);
}
.deltas article p:first-child { font-size: 13px; color: var(--ink-3); }
.deltas b { font-family: var(--mono); color: var(--pink-deep); text-align: center; }
.deltas article p:nth-of-type(2) { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.deltas small { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-align: right; }

.passes-line { margin: 88px 0 0; }
.passes-line svg { width: 100%; height: auto; }
.pl-t { font-family: var(--serif); font-size: 15px; fill: var(--ink); }
.pl-d { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; fill: var(--ink-3); }

.passes-cards {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  max-width: 1400px; margin: 30px auto 0;
}
.passes-cards article { background: var(--pink-mist); border-top: 2.5px solid var(--pink); padding: 12px 14px 14px; }
.passes-cards span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--pink-deep); }
.passes-cards b { display: block; font-family: var(--serif); font-weight: 500; font-size: 15.5px; margin: 6px 0; }
.passes-cards p { font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }

.commit-lanes { margin: 92px 0 0; }
.commit-lanes svg { width: 100%; height: auto; background: var(--paper); border: 1px solid var(--rule-2); }
.cl-lab { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; fill: var(--ink-3); }
.cl-note { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; fill: var(--pink-deep); }
.cl-d { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; fill: var(--ink-3); }

.evo-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  max-width: 1400px; margin: 76px auto 0;
}
.evo-stats article { background: var(--paper); padding: 18px 20px 20px; }
.evo-stats span { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.evo-stats b { display: block; font-family: var(--serif); font-weight: 380; font-size: clamp(26px, 2.6vw, 40px); margin: 8px 0 6px; }
.evo-stats p { font-size: 11.5px; color: var(--ink-2); }

/* ============================================================
   S10 · EVALUATION & CLOSING (darkest)
   ============================================================ */
.eval-open { row-gap: 44px; }
.eval-heading { grid-column: 1 / span 6; }
.audit-matrix { grid-column: 8 / span 5; align-self: center; }
.am-row {
  display: grid; grid-template-columns: 110px 1fr 40px;
  gap: 14px; align-items: center; padding: 8px 0;
}
.am-row span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,243,234,.65); }
.am-track { height: 22px; background: rgba(247,243,234,.08); position: relative; }
.am-track i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); }
.am-row b { font-family: var(--serif); font-size: 20px; color: var(--white); text-align: right; }
.am-total { margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,243,234,.55); }
.am-total b { font-family: var(--serif); font-size: 26px; color: var(--gold); letter-spacing: 0; margin-right: 6px; }

.findings {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 26px);
  margin-top: 84px;
}
.findings article { border-top: 1px solid rgba(247,243,234,.22); padding-top: 14px; }
.findings article:nth-child(even) { transform: translateY(20px); }
.findings span { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: rgba(247,243,234,.5); }
.findings h4 { font-family: var(--serif); font-weight: 500; font-size: 16.5px; color: var(--white); margin: 8px 0; line-height: 1.3; }
.findings p { font-size: 12px; line-height: 1.55; color: rgba(247,243,234,.62); }
.findings b { display: block; margin-top: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; color: #7FC4BE; font-weight: 500; }

.playtest-block { margin-top: 110px; }
.pt-heading { max-width: 760px; }
.pt-body { margin-top: 44px; row-gap: 40px; }
.pt-protocol { grid-column: 1 / span 8; }
.proto-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proto-stats article { background: rgba(247,243,234,.05); border-top: 2.5px solid var(--teal); padding: 14px 16px 16px; }
.proto-stats article:nth-child(2) { border-top-color: var(--pink); }
.proto-stats article:nth-child(3) { border-top-color: var(--gold); }
.proto-stats b { font-family: var(--serif); font-size: 30px; font-weight: 380; color: var(--white); }
.proto-stats span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: rgba(247,243,234,.55); margin: 4px 0 8px; }
.proto-stats p { font-size: 11.5px; line-height: 1.5; color: rgba(247,243,234,.66); }
.hypos { margin-top: 30px; }
.h-row {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: baseline;
  padding: 10px 0; border-top: 1px solid rgba(247,243,234,.14);
}
.h-row b { font-family: var(--mono); color: var(--gold); }
.h-row span { font-size: 13px; color: rgba(247,243,234,.8); }
.h-row em { font-family: var(--mono); font-style: normal; font-size: 9.5px; letter-spacing: .06em; color: rgba(247,243,234,.45); }
.session-script { margin-top: 30px; }
.session-script > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.session-script span {
  font-size: 11px; color: rgba(247,243,234,.7);
  border-left: 2px solid var(--teal); padding: 4px 0 4px 10px;
}
.session-script span b { display: block; font-family: var(--mono); font-size: 10px; color: var(--white); }
.analysis-loop { display: flex; gap: 12px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.analysis-loop span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: rgba(247,243,234,.7); }
.analysis-loop span b { color: #7FC4BE; }
.analysis-loop i { color: rgba(247,243,234,.4); font-style: normal; }
.pt-photos { grid-column: 10 / span 3; display: grid; gap: 16px; align-content: start; }
.photo-placeholder {
  position: relative; min-height: 170px;
  border: 1.5px dashed rgba(247,243,234,.3);
  padding: 14px; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.photo-placeholder::before, .photo-placeholder::after {
  content: ''; position: absolute; left: -12%; right: -12%; top: 50%;
  height: 1px; background: rgba(247,243,234,.18);
}
.photo-placeholder::before { transform: rotate(22deg); }
.photo-placeholder::after { transform: rotate(-22deg); }
.photo-placeholder span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; color: rgba(247,243,234,.45); position: relative; z-index: 1; }
.photo-placeholder b { font-family: var(--serif); font-weight: 500; font-size: 15px; color: var(--white); margin: 4px 0; position: relative; z-index: 1; }
.photo-placeholder p { font-size: 10.5px; line-height: 1.5; color: rgba(247,243,234,.55); position: relative; z-index: 1; }

.final-display { margin-top: 110px; }
.fd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.fd-grid figure { margin: 0; }
.fd-grid figure:nth-child(2) { transform: translateY(20px); }
.fd-grid img { width: 100%; border: 1px solid rgba(247,243,234,.16); }

.closing-band { margin-top: 110px; row-gap: 40px; align-items: start; }
.limits { grid-column: 1 / span 4; }
.limits ul { margin: 0; padding-left: 18px; }
.limits li { font-size: 12.5px; line-height: 1.6; color: rgba(247,243,234,.68); margin-bottom: 8px; }
.closing-statement { grid-column: 6 / span 7; }

@media screen and (max-width: 1100px) {
  .proc-lead, .ba-pair, .eval-heading, .audit-matrix, .pt-protocol, .pt-photos, .limits, .closing-statement { grid-column: 1 / -1; }
  .ba-pair { grid-template-columns: 1fr; }
  .deltas article { grid-template-columns: 1fr 24px 1.2fr; }
  .deltas small { display: none; }
  .passes-cards { grid-template-columns: 1fr 1fr; }
  .findings { grid-template-columns: 1fr; }
  .findings article:nth-child(even) { transform: none; }
  .proto-stats, .session-script > div { grid-template-columns: 1fr; }
  .fd-grid { grid-template-columns: 1fr; }
  .fd-grid figure:nth-child(2) { transform: none; }
  .evo-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- ui showcase (annotated real frame) ---------- */
.ui-showcase { margin: 64px 0 0; }
.ui-stage { position: relative; border: 1px solid rgba(247,243,234,.16); }
.ui-stage img { width: 100%; display: block; }
.ui-pin {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.6px solid #7FC4BE;
  background: rgba(13,23,22,.55);
  display: grid; place-items: center;
  box-shadow: 0 0 0 5px rgba(127,196,190,.16);
}
.ui-pin i { font-family: var(--mono); font-style: normal; font-size: 14px; color: #7FC4BE; }
.ui-pin.b { border-color: #E8B7C4; box-shadow: 0 0 0 5px rgba(232,183,196,.16); }
.ui-pin.b i { color: #E8B7C4; }
.ui-pin.c { border-color: #E0BC7A; box-shadow: 0 0 0 5px rgba(224,188,122,.16); }
.ui-pin.c i { color: #E0BC7A; }
.ui-panels { margin-top: 40px; }
.ui-panel h3 { color: var(--white); margin: 10px 0 8px; }
.ui-panel p { font-size: 12.5px; line-height: 1.6; color: rgba(247,243,234,.72); }
.ui-panel p b { color: var(--white); }

/* ---------- model triads ---------- */
.mp-triad { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.mp-triad img { width: 100%; border: 1px solid rgba(247,243,234,.14); background: #101d1c; min-height: 0; }
.mp > img { display: none; }


/* ============================================================
   Enhancement batch: motion, live anims, gesture, filmstrip
   ============================================================ */
/* moments videos */
.mo-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-print { display: none; }

/* live concept anims (screen) replace static chfig svg */
.chfig.has-live { position: relative; padding: 12px 12px 6px; }
.chfig.has-live > svg { display: none; }
.ca-live { min-height: 190px; }
.ca-live .ca-caption { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin: 6px 0 4px; line-height: 1.5; }
.ca-tabs { display: flex; gap: 6px; margin-top: 6px; }
.ca-tabs button {
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--paper-2); border: 1px solid var(--rule-2); border-radius: 999px;
  padding: 3px 10px; color: var(--ink-2); cursor: pointer;
}
.ca-tabs button.on { background: var(--teal-mist); border-color: var(--teal); color: var(--teal-deep); }

/* gesture band */
.gesture-band { margin-top: 84px; row-gap: 30px; align-items: center; }
.gesture-photo { grid-column: 1 / span 5; margin: 0; }
.gesture-photo img { width: 100%; border: 1px solid rgba(247,243,234,.16); transform: rotate(-.3deg); }
.gesture-copy { grid-column: 7 / span 6; }

/* evolution filmstrip */
.evolution-film { margin-top: 76px; }
.film-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.film-grid figure { margin: 0; }
.film-grid figure:nth-child(even) { transform: translateY(14px); }
.film-grid img { width: 100%; border: 1px solid var(--rule); aspect-ratio: 16/9; object-fit: cover; }
.film-grid .fig-cap b { color: var(--pink-deep); }

/* field notes */
.field-note {
  max-width: 620px; margin: 26px 0 0;
  border-left: 3px solid var(--gold); background: var(--gold-mist);
  padding: 14px 18px;
}
.field-note span { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); display: block; margin-bottom: 6px; }
.field-note p { font-family: var(--serif); font-style: italic; font-weight: 330; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.field-note p b { font-style: normal; font-weight: 500; color: var(--gold-text); }
.on-dark .field-note.on-dark-note, .ink .field-note, .ink-2 .field-note, .ink-3 .field-note {
  background: rgba(201,150,63,.1); border-color: var(--gold);
}
.ink .field-note p, .ink-2 .field-note p, .ink-3 .field-note p { color: rgba(247,243,234,.85); }
.ink .field-note p b, .ink-2 .field-note p b, .ink-3 .field-note p b { color: var(--gold); }
.deltas .field-note { margin: 14px 0 10px; }

/* bibliography + project glance */
.bib { font-family: var(--mono); font-size: 9px; letter-spacing: .03em; line-height: 1.6; color: var(--ink-3); margin-top: 16px; max-width: 62ch; }
.project-glance { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; line-height: 1.7; color: var(--ink-3); margin-top: 18px; border-top: 1px solid var(--rule-2); padding-top: 12px; max-width: 46ch; }

/* chapter dots (scrollspy) */
.chapter-dots {
  position: fixed; right: clamp(8px, 1.4vw, 22px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 50;
}
.chapter-dots a { position: relative; width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 26%, transparent); transition: background .25s, transform .25s; }
.chapter-dots a:hover { transform: scale(1.35); }
.chapter-dots a.on { background: var(--pink-deep); transform: scale(1.3); }
.chapter-dots a i {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-style: normal; font-size: 9px; letter-spacing: .1em;
  color: var(--paper); background: var(--ink); border-radius: 4px; padding: 3px 8px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.chapter-dots a:hover i { opacity: 1; }
.dots-dark .chapter-dots a { background: rgba(247,243,234,.3); }
.dots-dark .chapter-dots a.on { background: var(--pink); }

/* growing bars on reveal (screen only) */
.audit-matrix .am-track i, .es-chart .fill, .fix-row .fx-bars i {
  transform-origin: left center; transform: scaleX(0);
  transition: transform 1s var(--ease, cubic-bezier(.22,.61,.36,1));
}
.audit-matrix.is-visible .am-track i, .es-chart.is-visible .fill, .perf-fixes.is-visible .fx-bars i { transform: scaleX(1); }
.audit-matrix.is-visible .am-track i { transition-delay: .15s; }
.es-chart.is-visible .dbar-row:nth-child(3) .fill { transition-delay: .12s; }
.es-chart.is-visible .dbar-row:nth-child(4) .fill { transition-delay: .24s; }
.es-chart.is-visible .dbar-row:nth-child(5) .fill { transition-delay: .36s; }

/* commit lane dots pop on reveal */
.commit-lanes svg g[fill] circle { opacity: 0; }
.commit-lanes.is-visible svg g[fill] circle { animation: lanePop .4s cubic-bezier(.34,1.2,.64,1) both; }
.commit-lanes.is-visible svg g[fill]:nth-of-type(1) circle { animation-delay: calc(.1s * var(--i, 0) + 0s); }
@keyframes lanePop { from { opacity: 0; transform: scale(.2); transform-origin: center; transform-box: fill-box; } to { opacity: 1; transform: scale(1); } }

/* section top feathers: soften ground switches */
.world::after, .interface::after, .evaluation::after, .gameplay::after, .craft::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 110px; pointer-events: none;
}
.world::after { background: linear-gradient(180deg, var(--paper-2), transparent); opacity: .16; }
.interface::after { background: linear-gradient(180deg, var(--paper), transparent); opacity: .14; }
.evaluation::after { background: linear-gradient(180deg, var(--paper-2), transparent); opacity: .13; }
.gameplay::after { background: linear-gradient(180deg, var(--night-2), transparent); opacity: .16; }
.craft::after { background: linear-gradient(180deg, var(--night), transparent); opacity: .12; }

/* study-wide spans the grid row */
.studies-grid figure.study-wide { grid-column: 1 / -1; transform: none; }
.studies-grid figure.study-wide img { max-height: none; }

/* ultra-wide */
@media screen and (min-width: 1800px) {
  .sec-head, .howto, .evidence-band, .personas, .targets, .bets, .coop-strip, .deltas, .evo-stats, .passes-cards, .sound-judge { max-width: 1580px; }
}
@media screen and (max-width: 900px) {
  .ui-pin { display: none; }
  .chapter-dots { display: none; }
  .film-grid { grid-template-columns: 1fr 1fr; }
  .film-grid figure:nth-child(even) { transform: none; }
  .gesture-photo, .gesture-copy { grid-column: 1 / -1; }
}

/* ---------- print base (16:9 pages, one section per page) ---------- */
@page { size: 36in 20.25in; margin: 0; }
@media print {
  :root { --section-pad: 0.34in; --gutter: 0.5in; }
  html { font-size: 14px; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body::before, .case-nav, .reading-progress { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .chapter-section { break-before: page; min-height: 20.15in; }
  .hero { break-before: auto; height: 20.15in; min-height: 0; }
  .site-footer { display: none; }
  a { text-decoration: none; color: inherit; }

  /* flatten decorative staggers: vertical rhythm is wasted space on paper */
  .concept:nth-child(even), .step:nth-child(3), .step:nth-child(4),
  .istat.p, .istat.i, .tgt.p, .tgt.g, .persona.pk, .persona.tl,
  .chapter-col:nth-child(2), .chapter-col:nth-child(3),
  .frame:nth-child(even), .ui-panel:nth-child(2), .ui-panel:nth-child(3),
  .prin-row article:nth-child(even), .findings article:nth-child(even),
  .fd-grid figure:nth-child(2), .studies-grid figure:nth-child(2),
  .studies-grid figure:nth-child(3), .art-row img, .art-row.flip img { transform: none !important; }

  /* tighten band spacing */
  .howto { margin-top: 0.22in; }
  .evidence-band { margin-top: 0.27in; }
  .disc-themes-band { margin-top: 0.24in; }
  .personas { margin-top: 0.27in; }
  .field-band { margin-top: 0.27in; }
  .targets { margin-top: 0.02in; }
  .flow-spine { margin-top: 0.24in; }
  .art-rows { margin-top: 0.24in; }
  .studies-strip { margin-top: 0.24in; }
  .model-plates { margin-top: 0.25in; }
  .char-study { margin-top: 0.25in; }
  .chapters-grid { margin-top: 0.02in; }
  .coop-strip { margin-top: 0.03in; }
  .moments { margin-top: 0.25in; }
  .ui-showcase { margin-top: 0.02in; }
  .ui-diagrams { margin-top: 0.27in; }
  .ui-principles { margin-top: 0.25in; }
  .ui-ledger { margin-top: 0.22in; }
  .bets { margin-top: 0.24in; }
  .perf-band { margin-top: 0.27in; }
  .sound-judge { margin-top: 0.24in; }
  .deltas { margin-top: 0.22in; }
  .passes-line { margin-top: 0.25in; }
  .commit-lanes { margin-top: 0.25in; }
  .evo-stats { margin-top: 0.22in; }
  .findings { margin-top: 0.24in; }
  .playtest-block { margin-top: 0.03in; }
  .final-display { margin-top: 0.03in; }
  .closing-band { margin-top: 0.03in; }

  /* keep each band on one page */
  .grid-12, .howto, .evidence-band > div, .theme-row, .persona, .map-wrap, .obs-stack,
  .targets, .flow-spine, .art-row, .studies-grid figure, .char-breakdown, .mp,
  .chapter-col, .coop-strip, .moments-grid figure, .ui-showcase, .input-pipeline,
  .state-routing, .prin-row article, .ui-ledger article, .arch-fig, .bet,
  .detective-fig, .fix-row, .governor, .sound-judge, .ba-pair, .deltas article,
  .passes-line, .passes-cards, .commit-lanes, .evo-stats, .audit-matrix,
  .findings article, .proto-stats, .hypos, .session-script, .pt-photos,
  .fd-grid figure, .limits, .closing-statement { break-inside: avoid; }

  /* densify: 28in-wide 16:9 pages give a 2688px canvas — poster-density layout */
  .sec-head, .howto, .evidence-band, .personas, .targets, .bets, .coop-strip,
  .deltas, .evo-stats, .passes-cards, .sound-judge, .perf-band { max-width: 3230px; }
  .ui-ledger, .char-study { max-width: 2100px; }

  /* cap image heights so photo bands stay dense */
  .art-row img { max-height: 640px; width: auto; max-width: 100%; object-fit: contain; }
  .ch-shot img { max-height: 350px; width: auto; max-width: 100%; }
  .fd-grid img { max-height: 400px; width: auto; max-width: 100%; }
  .ba-col img { max-height: 320px; width: auto; max-width: 100%; }
  .ui-stage img { max-height: 1150px; width: auto; max-width: 100%; margin: 0 auto; }
  .studies-grid img { max-height: 460px; width: auto; max-width: 100%; }
  .char-study img { max-height: 600px; width: auto; max-width: 100%; margin: 0 auto; }
  .hero-backdrop { filter: brightness(1.12) saturate(1.05); }

  /* big vector figures: cap heights so width-proportional scaling can't eat the page */
  .map-wrap svg { max-height: 720px; width: auto; max-width: 100%; display: block; margin: 0 auto; }
  .chfig svg { max-height: 300px; width: auto; max-width: 100%; margin: 0 auto; }
  .flow-spine svg { max-height: 400px; width: auto; max-width: 100%; margin: 0 auto; }
  .char-breakdown svg { max-height: 820px; width: auto; max-width: 100%; margin: 0 auto; }
  .input-pipeline svg, .state-routing svg { max-height: 620px; width: auto; max-width: 100%; margin: 0 auto; }
  .arch-fig svg { max-height: 780px; width: auto; max-width: 100%; margin: 0 auto; }
  .detective-fig svg { max-height: 560px; width: auto; max-width: 100%; margin: 0 auto; }
  .passes-line svg { max-height: 300px; width: auto; max-width: 100%; margin: 0 auto; }
  .commit-lanes svg { max-height: 560px; width: auto; max-width: 100%; margin: 0 auto; }
  .ba-col svg { max-height: 320px; width: auto; max-width: 100%; }

  /* art direction: three columns on paper instead of three stacked rows */
  .art-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .art-rows > .micro-label { grid-column: 1 / -1; }
  .art-row, .art-row.flip { display: block; border-top: 1px solid rgba(247,243,234,.14); padding: 24px 0 0; }
  .art-row figure { margin: 0 0 16px; }
  .art-row img, .art-row.flip img { max-height: 460px; width: 100%; object-fit: cover; }

  /* moments: the section tail reads as a four-still plate page */
  .mp-grid { grid-template-columns: 1fr 1fr; }
  .moments-grid { grid-template-columns: 1fr 1fr; gap: 34px 56px; }
  .frame-slot { aspect-ratio: auto; height: 640px; }
  .frame figcaption b { font-size: 22px; }
  .frame figcaption p { font-size: 14px; max-width: 70ch; }
  .studies-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px 48px; }
  .studies-grid img { max-height: 520px; width: auto; max-width: 100%; margin: 0 auto; }
  .studies-grid figure.study-wide { grid-column: 1 / -1; }
  .studies-grid figure.study-wide img { max-height: 600px; }

  /* --- final fit pass: measured per-section budgets --- */
  /* world & gameplay: two intentional pages each */
  .studies-strip { break-before: page; padding-top: 0.3in; }
  .moments { break-before: page; padding-top: 0.3in; }
  .world, .interface { min-height: 40.35in; }

  /* discovery: -11% */
  .disc-themes-band { margin-top: 0.12in; }
  .personas { margin-top: 0.13in; }
  .field-band { margin-top: 0.13in; }
  .targets { margin-top: 0.1in; }
  .persona { padding: 18px 22px; }
  .theme-row { padding: 8px 0; }
  .map-wrap svg { max-height: 620px; }
  .p-quote { margin-top: 12px; padding: 9px 14px; }
  .p-cols { margin-top: 13px; }
  .spectrums { margin-top: 14px; }
  .design-read { margin-top: 14px; }

  /* interface: -14% */
  .ui-stage img { max-height: 670px; }
  .ui-showcase { margin-top: 0.09in; }
  .ui-panels { margin-top: 12px; }
  .ui-diagrams { margin-top: 0.14in; }
  .input-pipeline svg, .state-routing svg { max-height: 470px; }
  .ui-principles { margin-top: 0.08in; }
  .ui-ledger { margin-top: 0.08in; }
  .ui-ledger article { padding: 6px 0; }

  /* craft: -7% */
  .arch-fig svg { max-height: 690px; }
  .bets { margin-top: 0.13in; }
  .bet { padding: 11px 0; }
  .perf-band { margin-top: 0.14in; }
  .detective-fig svg { max-height: 520px; }
  .sound-judge { margin-top: 0.13in; padding: 13px 18px; }

  /* process: -8% */
  .ba-col img { max-height: 280px; }
  .ba-col svg { max-height: 280px; }
  .deltas { margin-top: 0.12in; }
  .deltas article { padding: 9px 0; }
  .passes-line { margin-top: 0.13in; }
  .passes-line svg { max-height: 260px; }
  .commit-lanes { margin-top: 0.13in; }
  .commit-lanes svg { max-height: 500px; }
  .evo-stats { margin-top: 0.12in; }

  /* --- enhancement batch: print statics --- */
  .mo-video, .ca-live, .chapter-dots { display: none !important; }
  .mo-print { display: block !important; width: 100%; height: 100%; object-fit: cover; }
  .chfig.has-live > svg { display: block !important; }
  .world::after, .interface::after, .evaluation::after, .gameplay::after, .craft::after { display: none; }
  .audit-matrix .am-track i, .es-chart .fill, .fix-row .fx-bars i { transform: none !important; transition: none !important; }
  .commit-lanes svg g[fill] circle { opacity: 1 !important; animation: none !important; }
  .film-grid figure:nth-child(even) { transform: none !important; }
  .field-note { break-inside: avoid; }
  .evolution-film, .gesture-band { break-inside: avoid; }

  /* S7 grows: page 1 = annotated frame + both diagrams; page 2 = gesture + principles + ledger */
  .ui-diagrams { margin-top: 0.2in; }
  .input-pipeline svg, .state-routing svg { max-height: 430px; }
  .gesture-band { break-before: page; padding-top: 0.3in; margin-top: 0; }
  .gesture-photo img { max-height: 660px; width: auto; }
  .gesture-copy .body-copy { font-size: 15px; max-width: 58ch; }
  .ui-principles { margin-top: 0.3in; }
  .ui-ledger { margin-top: 0.24in; }
  .ui-ledger article { padding: 9px 0; }
  .prin-row h4 { font-size: 17px; }
  /* S9 grows: split after the film strip */
  .passes-line { break-before: page; padding-top: 0.28in; }
  .evolution-film { margin-top: 0.22in; }
  .film-grid img { max-height: 450px; }
  .project-glance { margin-top: 10px; padding-top: 8px; }
  /* S2 + S10 gained small blocks: shave */
  .howto { margin-top: 0.18in; }
  .evidence-band { margin-top: 0.2in; }
  .bib { margin-top: 8px; }
  .findings { margin-top: 0.12in; }
  .am-row { padding: 6px 0; }
  .playtest-block { margin-top: 0.16in; }
  .final-display { margin-top: 0.18in; }
  .closing-band { margin-top: 0.18in; }
  .fd-grid img { max-height: 296px; }
  .field-note { margin-top: 12px; padding: 9px 14px; }
  .field-note p { font-size: 13px; }
  .proto-stats article { padding: 11px 14px 12px; }
  .session-script { margin-top: 20px; }
  .hypos { margin-top: 20px; }
}

/* site fit: back link in the case nav */
.case-nav nav a.nav-back { color: var(--gold-text); border-bottom-color: transparent; }
.case-nav nav a.nav-back:hover { color: var(--teal-deep); }
.site-footer a { color: var(--teal-soft); }
