/* Case-study system — shared by every case study, short and full.
   One chassis, three dialects: each study's own stylesheet imports this file and then
   overrides only the dialect slots (accent, deep surface, diagram primitive, composition,
   signature). Everything else — type, grid, spacing, chrome, annotation, evidence labels,
   components, motion and accessibility — lives here. See "Three Dialects" for the spec. */

@font-face { font-family: "Geist"; src: url("fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Neutrals (shared) */
  --paper: #f1eee7;
  --paper-2: #e6e1d7;
  --white: #fbfaf7;
  --ink: #171816;
  --ink-2: #20211f;
  --ink-3: #2c2d2a;
  --text: #33332f;
  --muted: #5e5d57;            /* 5.70:1 on paper, 5.07:1 on paper-2 */
  --muted-on-ink: #a8a8a1;
  --text-on-ink: #d9d9d2;
  --line: rgba(23, 24, 22, .16);
  --line-strong: rgba(23, 24, 22, .32);
  --line-on-ink: rgba(255, 255, 255, .16);

  /* Functional: product-state semantics only, never decoration */
  --positive: #1e7a4c;
  --caution: #9a5b00;
  --critical: #b3261e;

  /* Dialect slots — each study overrides these, and only these */
  --accent: var(--ink);             /* marks and large type */
  --accent-ink: var(--ink);         /* accent as small text on light */
  --accent-on-deep: var(--text-on-ink);
  --accent-tint: var(--paper-2);    /* the signature device only */
  --deep: var(--ink);               /* what "dark" means in this study */
  --deep-2: var(--ink-2);
  --deep-3: var(--ink-3);

  /* Legacy names still used inline by the encrypted full studies. Do not use in new code. */
  --orange: var(--accent);
  --orange-deep: var(--accent-ink);
  --blue: var(--accent-ink);
  --blue-soft: var(--accent-tint);
  --acid: var(--accent-on-deep);
  --yellow: var(--caution);

  /* Type */
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Grid */
  --wrap: min(1240px, calc(100vw - 80px));
  --wide: min(1500px, calc(100vw - 40px));
  --header: 64px;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-state: 120ms;
  --t-hover: 200ms;
  --t-reveal: 400ms;
  --t-draw: 700ms;
  --reveal-distance: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
:is(.ink, .console) :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 5000; padding: 10px 14px; background: var(--ink); color: var(--white); text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

.wrap { width: var(--wrap); margin-inline: auto; }
.wide { width: var(--wide); margin-inline: auto; }
.section { position: relative; padding: clamp(88px, 10vw, 160px) 0; }

/* Surfaces. Paper reads; white stages screens; dark means what each dialect says it means. */
.paper { background: var(--paper); }
.paper-2 { background: var(--paper-2); }
.white { background: var(--white); }
.ink { background: var(--ink); color: var(--white); }
.console { background: var(--deep); color: var(--white); }
/* Retired surfaces. Kept only so the encrypted full studies still read; they now land on light grounds. */
.electric, .acid { background: var(--paper-2); color: var(--ink); }
.orange { background: var(--paper); color: var(--ink); }

/* ---------- Chrome: progress, header, chapter rail ---------- */
.progress { position: fixed; z-index: 4100; top: 0; left: 0; width: 100%; height: 3px; pointer-events: none; }
.progress span { position: relative; z-index: 1; display: block; width: 0; height: 100%; background: var(--accent); }
.progress.acts::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, transparent calc(33.333% - 1px), var(--paper) calc(33.333% - 1px) 33.333%, transparent 33.333% calc(66.666% - 1px), var(--paper) calc(66.666% - 1px) 66.666%, transparent 66.666%);
}
.site-header {
  position: fixed; z-index: 90; top: 0; left: 0; width: 100%; height: var(--header);
  display: flex; align-items: center; gap: 24px; padding: 0 28px;
  border-bottom: 1px solid var(--line); background: rgba(241, 238, 231, .92); backdrop-filter: blur(18px);
}
.wordmark { font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.site-header nav { display: flex; gap: 26px; margin: auto; }
.site-header nav a { font: 700 11px/1 var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.site-header nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.header-index { font: 11px var(--mono); letter-spacing: .06em; white-space: nowrap; color: var(--muted); }
.header-index b { color: var(--ink); font-weight: 700; }
.site-header .header-cta { padding: 9px 12px; border: 1px solid var(--ink); font: 700 11px/1 var(--mono); letter-spacing: .06em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.site-header .header-cta:hover { background: var(--ink); color: var(--white); }
body.has-portfolio-shell .site-header { top: var(--portfolio-shell-offset, var(--portfolio-shell-height)); }

.chapter-rail {
  position: fixed; z-index: 80; left: 4px; top: 50%; width: 32px; padding: 3px; overflow: hidden;
  transform: translateY(-50%); background: var(--paper); border: 1px solid var(--line);
  transition: width .28s var(--ease), box-shadow .28s;
}
.chapter-rail:hover, .chapter-rail:focus-within { width: 178px; box-shadow: 0 16px 40px rgba(23, 24, 22, .14); }
.chapter-rail a { display: flex; align-items: center; gap: 10px; width: 170px; height: 36px; padding: 0 5px; color: var(--muted); border-bottom: 1px solid rgba(23, 24, 22, .08); text-decoration: none; transition: color .2s, background .2s; }
.chapter-rail a:last-child { border: 0; }
.chapter-rail b { flex: 0 0 20px; font: 11px var(--mono); }
.chapter-rail span { opacity: 0; transform: translateX(-5px); font-size: 12px; font-weight: 650; white-space: nowrap; transition: opacity .2s, transform .2s; }
.chapter-rail:hover span, .chapter-rail:focus-within span { opacity: 1; transform: none; }
.chapter-rail a:hover, .chapter-rail a:focus-visible { color: var(--ink); background: rgba(23, 24, 22, .06); }
/* Inset, because the rail clips anything drawn outside it. */
.chapter-rail a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.chapter-rail a.active { color: var(--ink); background: var(--accent-tint); box-shadow: inset 2px 0 0 var(--accent); }
.chapter-rail a.active b { color: var(--accent-ink); font-weight: 700; }
/* Act groups (used by Lineage): a quiet rule when closed, the act's name when open */
.chapter-rail .rail-act { display: block; width: 170px; height: 18px; margin: 4px 0 0; padding: 0 5px; overflow: hidden; border-top: 2px solid var(--ink); color: var(--ink); font: 700 11px/16px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.chapter-rail .rail-act:first-child { margin-top: 0; }
.chapter-rail .rail-act em { font-style: normal; opacity: 0; transition: opacity .2s; }
.chapter-rail:hover .rail-act em, .chapter-rail:focus-within .rail-act em { opacity: 1; }

/* ---------- Type ---------- */
.kicker, .section-no, .eyebrow, .label { margin: 0; font: 700 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.section-no { margin-bottom: 22px; }
.section-no .act { color: var(--ink); }
:is(.ink, .console) .section-no, :is(.ink, .console) .label { color: var(--muted-on-ink); }
:is(.ink, .console) .section-no .act { color: var(--white); }
.display { margin: 0; font-size: clamp(46px, 6.4vw, 92px); font-weight: 560; letter-spacing: -.06em; line-height: .92; text-wrap: balance; }
.display em { font-style: normal; color: var(--accent); }
:is(.ink, .console) .display em { color: var(--accent-on-deep); }
.statement { margin: 0; font-size: clamp(58px, 8.6vw, 128px); font-weight: 520; letter-spacing: -.07em; line-height: .88; text-wrap: balance; }
.statement em { font-style: normal; color: var(--accent); }
:is(.ink, .console) .statement em { color: var(--accent-on-deep); }
.section-head { display: grid; grid-template-columns: minmax(180px, .34fr) 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .section-no { align-self: start; margin: 12px 0 0; }
.section-head.stacked { display: block; }
.section-head.stacked .section-no { margin: 0 0 24px; }
.section-head > .lead { grid-column: 2; max-width: 60ch; margin: 0; }
.section-head.stacked > .lead { margin-top: 24px; }

.prose { max-width: 64ch; }
.prose p, p.body { margin: 0 0 18px; color: var(--text); font-size: 18px; line-height: 1.62; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 650; }
.lead { margin: 0 0 18px; font-size: clamp(21px, 2vw, 25px); line-height: 1.42; letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }
:is(.ink, .console) .prose p, :is(.ink, .console) p.body { color: var(--text-on-ink); }
:is(.ink, .console) .prose strong, :is(.ink, .console) .lead { color: var(--white); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.explain { display: grid; grid-template-columns: minmax(180px, .34fr) 1fr; gap: 40px; margin-top: clamp(40px, 5vw, 64px); }
.explain > .label { margin-top: 4px; }

.principle {
  display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; padding: 7px 11px;
  border: 1px solid currentColor; border-radius: 2px; font: 700 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
/* Principle tags stay tag-sized wherever they sit (paragraph styles would otherwise enlarge them) */
:is(.decision-outcome, .journey-copy, .trace-card, .prose, .boundary, .lens-note) .principle { margin-bottom: 0; font-size: 11px; line-height: 1.2; }

.lens-note { display: grid; grid-template-columns: minmax(150px, .3fr) 1fr; gap: 28px; margin-top: 40px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lens-note .label { color: var(--ink); }
.lens-note .label b { display: block; margin-top: 6px; color: var(--ink); font: 650 16px/1.25 var(--sans); letter-spacing: -.01em; text-transform: none; }
.lens-note p { max-width: 64ch; margin: 0; color: var(--text); font-size: 17px; line-height: 1.6; }
:is(.ink, .console) .lens-note { border-color: var(--line-on-ink); }
:is(.ink, .console) .lens-note .label { color: var(--white); }
:is(.ink, .console) .lens-note .label b { color: var(--white); }
:is(.ink, .console) .lens-note p { color: var(--text-on-ink); }

details.more { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.more summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; cursor: pointer; font: 700 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font: 400 22px/1 var(--sans); }
details.more[open] summary::after { content: "−"; }
details.more .more-body { max-width: 70ch; padding: 0 0 24px; }
details.more .more-body p { margin: 0 0 14px; color: var(--text); font-size: 16px; line-height: 1.6; }
:is(.ink, .console) details.more { border-color: var(--line-on-ink); }
:is(.ink, .console) details.more .more-body p { color: var(--text-on-ink); }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }
:is(.ink, .console) .text-link:hover { color: var(--white); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background var(--t-hover), color var(--t-hover), border-color var(--t-hover);
}
.button:hover { background: var(--ink-3); border-color: var(--ink-3); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: var(--white); }
:is(.ink, .console) .button { background: var(--white); border-color: var(--white); color: var(--ink); }
:is(.ink, .console) .button:hover { background: var(--paper-2); border-color: var(--paper-2); }
:is(.ink, .console) .button.secondary { background: transparent; border-color: var(--white); color: var(--white); }
:is(.ink, .console) .button.secondary:hover { background: var(--white); color: var(--ink); }

/* Reveal on scroll (only when JS runs and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(var(--reveal-distance)); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hero skeleton ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header) + 72px) 0 72px; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero-copy { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 72px; }
.hero h1 { margin: 18px 0 0; font-size: clamp(92px, 14vw, 208px); font-weight: 640; line-height: .74; letter-spacing: -.09em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-thesis { margin: 0 0 12px; font-size: clamp(30px, 3.2vw, 48px); font-weight: 560; letter-spacing: -.05em; line-height: 1.02; }
.hero-thesis b { color: var(--accent); font-weight: inherit; }
.hero-sub { max-width: 44ch; margin: 18px 0 0; color: var(--text); font-size: 18px; line-height: 1.55; }
/* Project scope is descriptive text, shared with the home-page cards. */
.scale-marker { margin: 22px 0 0; color: var(--muted); font: 500 13px/1.4 var(--sans); letter-spacing: 0; }
.hero-stage { position: relative; width: min(1450px, 92vw); margin: 72px auto 40px; }
.browser-frame { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; box-shadow: 0 30px 80px rgba(23, 24, 22, .18); }
.browser-chrome { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 13px; background: #f6f6f4; border-bottom: 1px solid #d8d8d4; color: #6f6f69; font: 11px var(--mono); }
.browser-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #cacac5; }
.browser-chrome span { margin: auto; }
.hero-notes { display: grid; grid-template-columns: 1fr 1fr; }
.hero-note {
  display: flex; align-items: center; gap: 12px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  color: var(--muted); font: 11px/1.3 var(--mono); letter-spacing: .03em; text-transform: uppercase; text-align: left; cursor: pointer;
}
.hero-note:last-child { flex-direction: row-reverse; text-align: right; }
.hero-note b { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); color: var(--ink); }
.hero-note:hover { color: var(--ink); }
.hero-note[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.hero-note[aria-pressed="true"] b { background: var(--ink); color: var(--white); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 24px 26px 26px 0; border-right: 1px solid var(--line); }
.facts > div + div { padding-left: 26px; }
.facts > div:last-child { border-right: 0; }
.facts dt { margin-bottom: 10px; color: var(--muted); font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.25; }
.facts dd small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 450; line-height: 1.45; }
.reading-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 18px; border: 1px solid var(--line); }
.reading-path > * { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-right: 1px solid var(--line); text-decoration: none; }
.reading-path > *:last-child { border-right: 0; }
.reading-path span { color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.reading-path strong { font-size: 17px; letter-spacing: -.02em; }
.reading-path small { color: var(--muted); font-size: 13px; }
.reading-path a:hover { background: var(--ink); color: var(--white); }
.reading-path a:hover span, .reading-path a:hover small { color: var(--muted-on-ink); }
.reading-path .here { background: var(--paper-2); box-shadow: inset 0 3px 0 var(--ink); }
.scroll-cue { display: flex; align-items: center; gap: 10px; width: max-content; margin: 34px auto 0; font: 11px var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.scroll-cue span { position: relative; width: 7px; height: 24px; border: 1px solid var(--ink); border-radius: 6px; }
.scroll-cue span::after { content: ""; position: absolute; top: 3px; left: 2px; width: 2px; height: 5px; background: var(--ink); animation: scrollCue 1.4s var(--ease) 2; }
@keyframes scrollCue { 50% { transform: translateY(10px); opacity: .3; } }

/* ---------- Annotated screens (the shared annotation language: always ink) ---------- */
.shot { position: relative; margin: 0; overflow: hidden; }
.shot img { width: 100%; }
.shot .hotspot {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border: 2px solid var(--ink); background: transparent;
  box-shadow: 0 0 0 2px #fff;
  opacity: 0; transform: scale(.985); pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.shot .hotspot::after { content: attr(data-n); position: absolute; left: -2px; top: -27px; padding: 4px 7px; background: var(--ink); color: #fff; font: 700 11px/1 var(--mono); white-space: nowrap; box-shadow: 0 0 0 2px #fff; }
/* Before: grey. After / in focus: ink, and the rest of the screen dims while the note is read. */
.flip-toggle { display: none; }
/* Placed by case-study.js so a label stays inside its screen and clear of its neighbours. */
.shot .hotspot.label-end::after { left: auto; right: -2px; }
.shot .hotspot.label-below::after { top: calc(100% + 6px); }
.shot .hotspot.label-inside::after { top: 4px; left: 4px; }
.shot .hotspot.label-inside.label-end::after { left: auto; right: 4px; }
.shot.is-before .hotspot, .shot.is-orange .hotspot { border-color: var(--muted); }
.shot.is-before .hotspot::after, .shot.is-orange .hotspot::after { background: var(--muted); }
.shot.is-focus .hotspot, .shot.is-acid .hotspot { box-shadow: 0 0 0 2px #fff, 0 0 0 9999px rgba(23, 24, 22, .28); }
[data-active="1"] .hotspot[data-spot~="1"], [data-active="2"] .hotspot[data-spot~="2"], [data-active="3"] .hotspot[data-spot~="3"],
[data-active="4"] .hotspot[data-spot~="4"], [data-active="5"] .hotspot[data-spot~="5"], [data-active="6"] .hotspot[data-spot~="6"] { opacity: 1; transform: none; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; position: relative; }
.zoom::after {
  content: "View larger"; position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; background: rgba(23, 24, 22, .86); color: var(--white);
  font: 600 11px/1 var(--mono); opacity: 0; transition: opacity .2s;
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }

/* Provenance: every figure says what it is */
.artifact-bar { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.artifact-bar b { color: var(--ink); }
:is(.ink, .console) .artifact-bar { color: var(--muted-on-ink); }
:is(.ink, .console) .artifact-bar b { color: var(--white); }

.markers { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.markers button {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 74px; padding: 16px; border: 0;
  border-right: 1px solid var(--line); background: transparent; color: var(--ink); font: 11px/1.35 var(--mono); letter-spacing: .02em; text-align: left; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s;
}
.markers li:last-child button { border-right: 0; }
.markers button b { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 11px; }
.markers button:hover { background: rgba(23, 24, 22, .05); }
.markers button[aria-pressed="true"] { background: var(--paper-2); box-shadow: inset 0 -3px 0 var(--ink); }
:is(.ink, .console) .markers button { border-color: var(--line-on-ink); color: var(--white); }
:is(.ink, .console) .markers button b { background: var(--white); color: var(--ink); }
:is(.ink, .console) .markers button:hover { background: rgba(255, 255, 255, .06); }
:is(.ink, .console) .markers button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); box-shadow: inset 0 -3px 0 var(--white); }

.marker-copy { margin-block: 0; padding: 0; list-style: none; }
.marker-copy > li { display: grid; grid-template-columns: minmax(180px, .34fr) 1fr; gap: 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.js .marker-copy > li { display: none; }
.js .marker-copy > li.is-active { display: grid; }
.marker-copy h3 { margin: 0; font-size: 24px; font-weight: 620; letter-spacing: -.03em; line-height: 1.1; }
.marker-copy p { max-width: 64ch; margin: 0 0 10px; color: var(--text); font-size: 17px; line-height: 1.6; }
:is(.ink, .console) .marker-copy > li { border-color: var(--line-on-ink); }
:is(.ink, .console) .marker-copy p { color: var(--text-on-ink); }
/* Compact marker notes that sit in a toolbar */
.marker-copy.inline { flex: 1 1 280px; min-width: 0; }
.marker-copy.inline > li { display: block; padding: 0; border: 0; }
.js .marker-copy.inline > li { display: none; }
.js .marker-copy.inline > li.is-active { display: block; }
.marker-copy.inline p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; }

/* ---------- Inputs strip (what shaped the work) ---------- */
.evidence-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--line-strong); background: var(--white); }
.evidence-strip p { min-height: 140px; margin: 0; padding: 24px; border-right: 1px solid var(--line); }
.evidence-strip p:last-child { border-right: 0; }
.evidence-strip span { display: block; margin-bottom: 26px; color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; }
.evidence-strip b { display: block; font-size: 16px; }
.evidence-strip small { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---------- Anatomy: the parts of the solution, three columns ---------- */
.anatomy { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.anatomy article { position: relative; min-height: 420px; padding: 30px; overflow: hidden; border-right: 1px solid var(--line-strong); }
.anatomy article:last-child { border-right: 0; }
.anatomy h3 { margin: 48px 0 4px; font-size: 36px; font-weight: 650; letter-spacing: -.035em; }
.anatomy .q { margin: 0 0 18px; color: var(--muted); font: 500 15px/1.4 var(--sans); }
.anatomy p { position: relative; z-index: 1; max-width: 34ch; margin: 0 0 40px; color: var(--text); font-size: 16px; line-height: 1.55; }
.anatomy ul { position: relative; z-index: 1; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.anatomy li { padding: 9px 0; border-top: 1px solid var(--line); font: 12px var(--mono); }
.anatomy li span { float: right; color: var(--muted); }

/* ---------- Constraints: each tied to what it shaped ---------- */
.constraints { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; margin-top: 130px; }
.constraints h3 { max-width: 460px; margin: 0; font-size: clamp(34px, 4vw, 56px); font-weight: 580; letter-spacing: -.05em; line-height: .98; }
.constraint-grid { display: grid; grid-template-columns: 1fr 1fr; }
.constraint-grid article { display: flex; align-items: flex-start; gap: 18px; min-height: 124px; padding: 24px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }
.constraint-grid article:nth-child(even) { border-right: 0; }
.constraint-grid article:last-child { grid-column: span 2; border-right: 0; }
.constraint-grid b { font: 11px var(--mono); color: var(--muted); }
.constraint-grid span { font-size: 18px; font-weight: 700; line-height: 1.2; }
.constraint-grid small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; font-weight: 450; line-height: 1.4; }
.constraint-grid .shaped { display: block; margin-top: 10px; color: var(--ink); font: 600 14px/1.35 var(--sans); font-style: normal; }

/* Statement line: one sentence the section stands on. (.maxim, .acid-note, .handoff-line are older names.) */
.statement-line, .maxim, .acid-note { margin-block: 110px 0; padding-top: 34px; border-top: 1px solid var(--line-strong); font-size: clamp(42px, 6.4vw, 96px); font-weight: 580; letter-spacing: -.065em; line-height: .92; }
.statement-line em, .maxim em { display: block; font-style: normal; color: var(--accent); }
.statement-line b, .acid-note b { color: var(--accent); font-weight: inherit; }
.handoff-line { margin-block: 44px 0; font-size: clamp(34px, 5vw, 70px); font-weight: 560; letter-spacing: -.06em; line-height: .96; }
.handoff-line b { color: var(--accent); font-weight: inherit; }
:is(.ink, .console) :is(.statement-line, .maxim, .acid-note) { border-color: var(--line-on-ink); }
:is(.ink, .console) :is(.statement-line em, .maxim em, .statement-line b, .acid-note b, .handoff-line b) { color: var(--accent-on-deep); }

/* ---------- Comparison: two originals with shared markers ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-card { margin: 0; padding: 18px; background: var(--white); border: 1px solid var(--line); }
.compare-card img { border: 1px solid var(--line); }
:is(.ink, .console) .compare-card { background: var(--ink-3); border-color: var(--line-on-ink); }
:is(.ink, .console) .compare-card img { border-color: rgba(255, 255, 255, .18); }
.compare-markers { margin-top: 14px; background: var(--white); border: 1px solid var(--line); }
:is(.ink, .console) .compare-markers { background: var(--ink-2); border-color: var(--line-on-ink); }
.compare-copy > li { grid-template-columns: 1fr 1fr; }
.compare-copy .was, .compare-copy .now { display: block; margin-bottom: 8px; font: 700 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.compare-copy .was { color: var(--muted); }
.compare-copy .now { color: var(--accent-ink); }
:is(.ink, .console) .compare-copy .was { color: var(--muted-on-ink); }
:is(.ink, .console) .compare-copy .now { color: var(--accent-on-deep); }
.compare-panel { padding: 26px 26px 6px; }
.compare-panel .compare-copy { width: auto; }

/* Forces: why the direction changed */
.forces { display: grid; grid-template-columns: 1fr 1fr 70px 1.1fr; gap: 0; margin-top: 90px; border: 1px solid var(--line-strong); }
.force { padding: 30px; border-right: 1px solid var(--line-strong); }
.force .label { color: var(--muted); }
.force h3 { margin: 36px 0 10px; font-size: 25px; font-weight: 620; letter-spacing: -.03em; line-height: 1.08; }
.force p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.55; }
.forces .join { display: grid; place-items: center; border-right: 1px solid var(--line-strong); color: var(--muted); font-size: 34px; }
.force.result { background: var(--paper); color: var(--ink); border-right: 0; box-shadow: inset 0 3px 0 var(--accent); }
.force.result .label { color: var(--ink); }
.force.result p { color: var(--text); }
:is(.ink, .console) .forces { border-color: var(--line-on-ink); }
:is(.ink, .console) .force { border-color: var(--line-on-ink); }
:is(.ink, .console) .force .label { color: var(--muted-on-ink); }
:is(.ink, .console) .force p { color: var(--text-on-ink); }
:is(.ink, .console) .forces .join { border-color: var(--line-on-ink); color: var(--muted-on-ink); }
:is(.ink, .console) .force.result { background: var(--paper); color: var(--ink); }
:is(.ink, .console) .force.result .label { color: var(--ink); }
:is(.ink, .console) .force.result p { color: var(--text); }

/* ---------- Decision card: question · options · judgement · why · trade-off · principle ---------- */
.decision { margin-top: 90px; }
.decision:first-of-type { margin-top: 0; }
.decision-card { border: 1px solid var(--line-strong); background: var(--white); }
.white .decision-card { background: var(--paper); }
.decision-question { display: flex; align-items: start; justify-content: space-between; gap: 30px; padding: 32px; border-bottom: 1px solid var(--line); }
.decision-question .label { flex: 0 0 auto; }
.decision-question h3 { max-width: 760px; margin: 0; font-size: clamp(30px, 4vw, 56px); font-weight: 600; letter-spacing: -.055em; line-height: .96; text-align: right; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.option-grid > div { position: relative; min-height: 250px; padding: 54px 26px 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border-right: 1px solid var(--line); text-align: center; }
.option-grid > div:last-child { border-right: 0; }
.option-grid .opt { position: absolute; top: 20px; left: 24px; margin: 0; font: 11px var(--mono); color: var(--muted); }
.option-grid strong { font-size: 22px; letter-spacing: -.03em; line-height: 1.1; }
.option-grid small { color: var(--muted); font: 14px/1.45 var(--sans); }
.option-grid .chosen { box-shadow: inset 0 0 0 2px var(--ink); }
.option-grid .chosen .opt { color: var(--ink); }
.option-grid .chosen small { color: var(--text); }
.option-grid .chosen em { position: absolute; right: 16px; top: 16px; padding: 6px 8px; background: var(--ink); color: var(--white); font: normal 11px var(--mono); letter-spacing: .06em; }
.glyph { position: relative; width: 92px; height: 64px; }
.glyph i { position: absolute; display: block; }
.decision-matrix { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.decision-matrix > * { min-width: 0; overflow-wrap: anywhere; margin: 0; padding: 12px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.decision-matrix > *:nth-child(4n) { border-right: 0; }
.decision-matrix b { color: var(--muted); font: 11px/1.3 var(--mono); letter-spacing: .06em; hyphens: manual; }
.decision-matrix strong { font-size: 13px; }
.decision-matrix i { color: var(--text); font-style: normal; letter-spacing: 4px; }
.decision-matrix i.hi { color: var(--ink); font-weight: 700; }
.decision-matrix i.lo { color: var(--muted); }
.decision-outcome { display: grid; grid-template-columns: minmax(180px, .34fr) 1fr; gap: 40px; margin: 0; padding: 28px 32px; }
.decision-outcome > span { font: 700 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.decision-outcome p { margin: 0 0 12px; color: var(--text); font-size: 17px; line-height: 1.6; }
.decision-outcome p:last-child { margin-bottom: 0; }
.decision-outcome .tradeoff { padding-left: 16px; border-left: 3px solid var(--ink); }
.decision-visual { padding: 26px 32px; border-bottom: 1px solid var(--line); }
.matrix-note { margin: 0; padding: 10px 20px; color: var(--muted); font: 14px/1.45 var(--sans); border-bottom: 1px solid var(--line); }

/* ---------- Evidence pair: before → after, or two parts of one idea ---------- */
.evidence-pair { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: start; gap: 0; margin-top: 14px; padding: 26px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.evidence-pair figure { margin: 0; }
.evidence-pair img { border: 1px solid var(--line); background: #fff; }
.evidence-pair figcaption { margin-top: 12px; color: var(--text); font-size: 14px; line-height: 1.5; }
.evidence-pair .pair-arrow { align-self: center; text-align: center; color: var(--ink); font-size: 34px; }
.evidence-pair .delta { display: block; margin-top: 10px; color: var(--ink); font: 600 11px/1.4 var(--mono); letter-spacing: .02em; }
.evidence-pair.forms { grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.evidence-pair.forms img { width: 100%; max-height: 520px; object-fit: contain; object-position: top; }
.evidence-pair.triple { grid-template-columns: 1fr 48px 1fr 48px 1fr; }
:is(.ink, .console) .evidence-pair { background: var(--ink-3); border-color: var(--line-on-ink); color: var(--white); }
:is(.ink, .console) .evidence-pair img { border-color: rgba(255, 255, 255, .2); }
:is(.ink, .console) .evidence-pair figcaption { color: var(--text-on-ink); }

.prototype-shot { margin-top: 14px; border: 1px solid var(--line); background: var(--white); }
.prototype-shot .artifact-bar { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.prototype-shot .artifact-bar a { color: var(--ink); }

/* Segmented control */
.segmented { display: inline-flex; border: 1px solid var(--ink); }
.segmented button { min-height: 44px; padding: 0 18px; border: 0; border-right: 1px solid var(--ink); background: transparent; font-weight: 650; cursor: pointer; }
.segmented button:last-child { border-right: 0; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
:is(.ink, .console) .segmented { border-color: var(--white); }
:is(.ink, .console) .segmented button { border-color: var(--white); color: var(--white); }
:is(.ink, .console) .segmented button[aria-pressed="true"] { background: var(--white); color: var(--ink); }

.pill { display: inline-block; padding: 6px 10px; border-radius: 999px; font: 700 11px/1 var(--mono); border: 1px solid currentColor; }
.pill.edit { color: var(--positive); }
.pill.view { color: var(--muted); }
.pill.none { color: var(--critical); text-decoration: line-through; }
.demo-foot, .demo-note { margin: 16px 0 0; color: var(--muted); font: 14px/1.5 var(--sans); }

/* Workspace: a screen with a toolbar that explains it */
.workspace { margin-top: 14px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); }
.workspace .ws-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.workspace .ws-bar p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; max-width: 60ch; }
.workspace .shot { background: #fff; }

/* Transformation row: before → decision → after */
.transformation-list article { display: grid; grid-template-columns: 1fr 1.2fr 1fr; min-height: 200px; margin-bottom: 12px; border: 1px solid var(--line-strong); background: var(--white); }
.transformation-list article > div { display: flex; flex-direction: column; justify-content: center; padding: 28px; border-right: 1px solid var(--line); }
.transformation-list article > div:last-child { border-right: 0; box-shadow: inset 0 3px 0 var(--accent); }
.transformation-list .label { margin-bottom: 26px; color: var(--muted); font-size: 11px; }
.transformation-list b { font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.transformation-list small { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.transformation-list .decision-cell { position: relative; background: var(--paper-2); color: var(--ink); }
.transformation-list .decision-cell p { margin: 0; font-size: 21px; letter-spacing: -.02em; line-height: 1.25; }
.transformation-list .decision-cell::before, .transformation-list .decision-cell::after { content: "→"; position: absolute; top: 50%; transform: translateY(-50%); color: var(--ink); font-size: 22px; }
.transformation-list .decision-cell::before { left: -12px; }
.transformation-list .decision-cell::after { right: -12px; }

/* ---------- Journey stage: a strip of screens driving one annotated stage ---------- */
.story-strip { width: min(1700px, 100vw); margin: 0 auto; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-strip button { min-width: 0; display: flex; flex-direction: column; padding: 0; border: 0; background: var(--paper); text-align: left; cursor: pointer; }
.white .story-strip button { background: var(--white); }
.story-strip .frame { width: 100%; height: 300px; overflow: hidden; border-bottom: 1px solid var(--line); }
.story-strip img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .6s ease; }
.story-strip button:hover img { transform: scale(1.03); }
.story-strip .cap { display: flex; gap: 16px; min-height: 96px; padding: 20px; }
.story-strip .cap b { color: var(--muted); font: 11px var(--mono); }
.story-strip .cap span { font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.story-strip .cap small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 450; }
.story-strip button[aria-pressed="true"] { box-shadow: inset 0 -4px 0 var(--ink); background: var(--white); }
.story-strip button[aria-pressed="true"] .cap b { color: var(--ink); }
.journey-stage { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; margin-top: 40px; border: 1px solid var(--line-strong); background: var(--white); }
.journey-stage .shot { border-right: 1px solid var(--line); background: #fff; }
.journey-copy { display: flex; flex-direction: column; padding: 30px; }
.journey-copy h3 { margin: 18px 0 14px; font-size: 30px; font-weight: 620; letter-spacing: -.04em; line-height: 1.02; }
.journey-copy p:not([class]) { margin: 0 0 14px; color: var(--text); font-size: 17px; line-height: 1.6; }
.journey-copy .text-link { margin-top: auto; }

/* Prototype band */
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-top: 40px; padding: 32px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); }
.cta-band h3 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.cta-band p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.55; max-width: 60ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Boundary / edge-state card: rule · reason · recovery ---------- */
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.boundary { display: flex; flex-direction: column; border: 1px solid var(--ink); border-top-width: 3px; background: var(--white); }
.boundary .crop { position: relative; height: 230px; overflow: hidden; border-bottom: 1px solid var(--ink); background: #fff; }
.boundary .crop img { position: absolute; left: 0; top: 0; width: var(--cw, 180%); max-width: none; transform: translate(var(--cx, 0), var(--cy, 0)); }
.boundary .crop.fit img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: left top; transform: none; }
.boundary .body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.boundary .label { color: var(--ink); }
.boundary h3 { margin: 14px 0 10px; font-size: 25px; font-weight: 620; letter-spacing: -.035em; line-height: 1.05; }
.boundary p { margin: 0 0 12px; color: var(--text); font-size: 15px; line-height: 1.55; }
.boundary .recovery { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 14px; }
.boundary .recovery b { display: block; margin-bottom: 4px; font: 700 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- One-image summary: before and after sequences ---------- */
.summary-flows { display: grid; grid-template-columns: 1fr 140px 1fr; border: 1px solid var(--line-strong); }
.flow { display: flex; flex-direction: column; align-items: center; min-height: 620px; padding: 42px; }
.flow > .label { align-self: flex-start; margin-bottom: 32px; }
.flow p, .flow strong { width: min(100%, 320px); margin: 0; padding: 12px; border: 1px solid var(--line-strong); font-size: 17px; text-align: center; }
.flow i { color: var(--muted); font-style: normal; }
.flow.before { color: var(--muted); }
.flow.before .rebuild { border-style: dashed; color: var(--ink); }
.flow.before .rebuild::after { content: " · rebuilt"; color: var(--muted); font: 11px var(--mono); }
.flow.after { background: var(--white); color: var(--ink); box-shadow: inset 0 3px 0 var(--accent); }
.flow.after p { border-color: var(--ink); }
.flow.after i { color: var(--ink); }
.flow.after strong { border: 0; background: var(--ink); color: var(--white); }
.summary-axis { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ink); color: var(--white); }
.summary-axis span { font: 700 11px var(--mono); letter-spacing: .1em; writing-mode: vertical-rl; }
.summary-axis i { margin-top: 20px; font-size: 34px; font-style: normal; }

/* ---------- Outcome ladder and the claims block ---------- */
.outcomes { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.ladder article { display: grid; grid-template-columns: 70px 1fr; align-items: center; min-height: 112px; padding: 16px 0; border-top: 1px solid var(--line-strong); }
.ladder article:last-child { border-bottom: 1px solid var(--line-strong); }
.ladder article > span { color: var(--muted); font: 11px var(--mono); }
.ladder b { color: var(--ink); font: 11px var(--mono); letter-spacing: .1em; }
.ladder p { margin: 8px 0 0; font-size: 20px; line-height: 1.3; }
:is(.ink, .console) .ladder article { border-color: #4b4c46; }
:is(.ink, .console) .ladder article > span { color: var(--muted-on-ink); }
:is(.ink, .console) .ladder b { color: var(--white); }
.claims { display: grid; grid-template-columns: 1fr 1fr; margin-top: 70px; border: 1px solid var(--line-strong); }
.claims > div { padding: 28px; }
.claims > div:first-child { border-right: 1px solid var(--line-strong); }
.claims .label { color: var(--ink); }
.claims > div:last-child .label { color: var(--muted); }
.claims p { margin: 14px 0 0; color: var(--text); font-size: 16px; line-height: 1.6; }
/* dark claims: inside a dark section, or a claims block that is itself dark */
:is(.ink, .console) .claims, :is(.ink, .console) .claims > div:first-child,
.claims:is(.ink, .console), .claims:is(.ink, .console) > div:first-child { border-color: var(--line-on-ink); }
:is(.ink, .console) .claims .label, .claims:is(.ink, .console) .label { color: var(--white); }
:is(.ink, .console) .claims > div:last-child .label, .claims:is(.ink, .console) > div:last-child .label { color: var(--muted-on-ink); }
:is(.ink, .console) .claims p, .claims:is(.ink, .console) p { color: var(--text-on-ink); }

/* ---------- Reflection, next reading, footer ---------- */
.reflection { padding-bottom: 40px; }
.reflection-list article { display: grid; grid-template-columns: 90px 1fr 1.2fr; align-items: center; gap: 20px; min-height: 170px; border-top: 1px solid rgba(23, 24, 22, .4); }
.reflection-list article:last-child { border-bottom: 1px solid rgba(23, 24, 22, .4); }
.reflection-list span { font: 11px var(--mono); }
.reflection-list p { margin: 0; font-size: 18px; line-height: 1.5; }
.reflection-list h3 { margin: 0; font-size: clamp(28px, 3.5vw, 48px); font-weight: 600; letter-spacing: -.05em; line-height: .98; }
.closing-line { margin-block: 110px 0; font-size: clamp(46px, 7vw, 104px); font-weight: 600; letter-spacing: -.07em; line-height: .9; }
.closing-line em { display: block; font-style: normal; color: var(--accent); }
.next-reading { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border: 1px solid rgba(23, 24, 22, .45); }
.next-reading a { display: flex; flex-direction: column; gap: 10px; min-height: 160px; padding: 26px; border-right: 1px solid rgba(23, 24, 22, .45); text-decoration: none; transition: background .2s, color .2s; }
.next-reading a:last-child { border-right: 0; }
.next-reading span { font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.next-reading strong { margin-top: auto; font-size: 26px; font-weight: 620; letter-spacing: -.04em; line-height: 1; }
.next-reading small { font-size: 14px; line-height: 1.45; }
.next-reading a:hover { background: var(--ink); color: var(--white); }
.page-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 90px; padding-top: 24px; border-top: 1px solid rgba(23, 24, 22, .45); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.page-foot p { margin: 0; }

/* Image dialog */
.zoom-dialog { width: min(1500px, 96vw); max-height: 94vh; padding: 0; border: 0; background: var(--ink); color: var(--white); }
.zoom-dialog::backdrop { background: rgba(10, 10, 9, .82); }
.zoom-dialog .zd-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 16px; background: var(--ink); border-bottom: 1px solid var(--line-on-ink); }
.zoom-dialog .zd-bar p { margin: 0; color: var(--text-on-ink); font-size: 14px; line-height: 1.4; }
.zoom-dialog .zd-close { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 1px solid var(--white); background: transparent; color: var(--white); cursor: pointer; }
.zoom-dialog img { width: 100%; background: #fff; }

/* The behaviour map (shared component) sits between sections */
.ux-behavior-map { position: relative; }

/* ---------- Full-study components shared by every full study ---------- */
.long-hero { padding: calc(var(--header) + 80px) 0 80px; }
.long-hero .statement { font-size: clamp(56px, 8vw, 118px); }
.long-hero .two-col { margin-top: 48px; }
.lock-button { padding: 9px 12px; border: 1px solid var(--ink); background: transparent; font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.lock-button:hover { background: var(--ink); color: var(--white); }
.chapter-lead { max-width: 60ch; }
.fig { margin: 0; padding: 18px; border: 1px solid var(--line); background: var(--white); }
.fig img { border: 1px solid var(--line); background: #fff; }
.fig figcaption { margin-top: 12px; color: var(--text); font-size: 14px; line-height: 1.5; }
:is(.ink, .console) .fig { border-color: var(--line-on-ink); background: var(--ink-3); }
:is(.ink, .console) .fig figcaption { color: var(--text-on-ink); }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fig-row { margin-top: 48px; }
.scope-equation { display: grid; grid-template-columns: 1fr 60px 1fr 60px 1fr 60px 1.2fr; align-items: stretch; margin-top: 48px; border: 1px solid var(--line); background: var(--white); }
.scope-equation > div { padding: 26px 22px; }
.scope-equation > i { display: grid; place-items: center; border-inline: 1px solid var(--line); color: var(--accent-ink); font-size: 30px; font-style: normal; }
.scope-equation span { display: block; margin-bottom: 20px; color: var(--muted); font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.scope-equation b { font-size: 22px; letter-spacing: -.02em; }
.scope-equation .result { background: var(--accent-tint); }
.exhibit-caption { margin-block: 12px 0; color: var(--muted); font: 14px/1.5 var(--sans); }
:is(.ink, .console) .exhibit-caption { color: var(--muted-on-ink); }
.record { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border: 1px solid var(--line); }
.record > div { padding: 24px 26px; }
.record > div:first-child { border-right: 1px solid var(--line); background: var(--accent-tint); }
.record .label { margin-bottom: 12px; }
.record p { margin: 0; font-size: 17px; line-height: 1.55; }
.desk { margin-top: 48px; border: 1px solid var(--line-on-ink); }
.desk-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-on-ink); }
.desk-cols { display: grid; grid-template-columns: 1fr 1fr; }
.desk-cols article { padding: 26px; }
.desk-cols article:first-child { border-right: 1px solid var(--line-on-ink); }
.desk-cols article:last-child { background: var(--ink-3); }
.desk-cols .label { color: var(--muted-on-ink); }
.desk-cols article:last-child .label { color: var(--white); }
.desk-cols h4 { margin: 18px 0 10px; font-size: 24px; font-weight: 620; letter-spacing: -.03em; }
.desk-cols p { margin: 0; color: var(--text-on-ink); font-size: 16px; line-height: 1.6; }
.desk-cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.desk-cols.three article:nth-child(2) { border-right: 1px solid var(--line-on-ink); }
.desk-conclusion { margin: 0; padding: 18px 20px; border-top: 1px solid var(--line-on-ink); background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.5; box-shadow: inset 3px 0 0 var(--accent); }
.boundary-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.boundary-pair article { padding: 26px; border: 1px solid var(--ink); background: var(--white); }
.boundary-pair .label { color: var(--ink); }
.boundary-pair h4 { margin: 18px 0 10px; font-size: 26px; font-weight: 620; letter-spacing: -.035em; line-height: 1.05; }
.boundary-pair p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.55; }
.logic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.logic article { padding: 24px; border: 1px solid var(--line-on-ink); }
.logic .label { color: var(--white); }
.logic ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }
.logic li { position: relative; padding: 12px 0 12px 40px; border-top: 1px solid var(--line-on-ink); color: var(--text-on-ink); font-size: 15px; line-height: 1.5; counter-increment: step; }
.logic li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 13px; color: var(--muted-on-ink); font: 11px var(--mono); }
.logic li b { color: var(--white); }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 3px solid var(--ink); }
.stages article { position: relative; padding: 26px 22px 26px 0; border-right: 1px solid var(--line); }
.stages article + article { padding-left: 22px; }
.stages article:last-child { border-right: 0; }
.stages article::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); }
.stages article + article::before { left: 22px; }
.stages .label { color: var(--muted); }
.stages h3 { margin: 14px 0 10px; font-size: 22px; font-weight: 620; letter-spacing: -.03em; line-height: 1.1; }
.stages p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.55; }
.validation-map { margin-top: 48px; border: 1px solid var(--line); background: var(--white); }
.validation-map .desk-top { border-color: var(--line); }
.validation-map h3 { margin: 0; padding: 24px 22px 10px; font-size: 26px; font-weight: 620; letter-spacing: -.035em; }
.validation-map dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 12px 22px 22px; gap: 0 28px; }
.validation-map dl div { padding: 16px 0; border-top: 1px solid var(--line); }
.validation-map dt { margin-bottom: 8px; color: var(--ink); font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.validation-map dd { margin: 0; color: var(--text); font-size: 16px; line-height: 1.55; }
.source-list { margin-block: 40px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.source-list li { display: grid; grid-template-columns: minmax(200px, .4fr) 1fr; gap: 30px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.source-list b { font-size: 16px; }
.source-list span { color: var(--text); font-size: 16px; line-height: 1.55; }
.unlock { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header) + 40px) 0 60px; }
.unlock-card { width: min(640px, calc(100vw - 32px)); padding: 36px; border: 1px solid var(--ink); background: var(--white); }
.unlock-card h1 { margin: 16px 0 12px; font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -.06em; line-height: .95; }
.unlock-card h1 em { font-style: normal; color: var(--accent); }
.unlock-card p { margin: 0 0 14px; color: var(--text); font-size: 17px; line-height: 1.55; }
.unlock-card form { display: grid; gap: 10px; margin-top: 26px; }
.unlock-card label { font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.unlock-card input[type="password"] { min-height: 52px; padding: 0 14px; border: 1px solid var(--ink); background: var(--paper); font: 500 18px var(--sans); }
.unlock-card .check { display: flex; align-items: center; gap: 10px; font: 500 14px var(--sans); letter-spacing: 0; text-transform: none; }
.unlock-card .error { min-height: 22px; margin: 0; color: var(--critical); font-size: 15px; font-weight: 600; }
.unlock-card .inside { margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.unlock-card .inside ol { margin: 10px 0 0; padding-left: 20px; color: var(--text); font-size: 15px; line-height: 1.7; }
.unlock-card .back { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .chapter-rail { display: none; }
  .forces { grid-template-columns: 1fr 1fr; }
  .forces .join { display: none; }
  .force { border-bottom: 1px solid var(--line-strong); }
  :is(.ink, .console) .force { border-bottom-color: var(--line-on-ink); }
  .force.result { grid-column: span 2; }
  .force:nth-child(2) { border-right: 0; }
}
@media (max-width: 1000px) {
  :root { --wrap: calc(100vw - 48px); }
  .site-header nav { display: none; }
  .site-header .header-index { margin-left: auto; }
  .hero-copy, .two-col, .outcomes, .constraints, .journey-stage, .cta-band { grid-template-columns: 1fr; gap: 40px; }
  .section-head, .explain, .decision-outcome, .lens-note, .marker-copy > li { grid-template-columns: 1fr; gap: 18px; }
  .anatomy { grid-template-columns: 1fr; }
  .anatomy article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .anatomy article:last-child { border-bottom: 0; }
  .compare-copy > li { grid-template-columns: 1fr; }
  /* Tablet: pairs stay side by side, because the comparison is the argument */
  .evidence-pair { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); padding: 18px; }
  .evidence-pair.triple { grid-template-columns: 1fr; gap: 16px; }
  .evidence-pair.triple .pair-arrow { transform: rotate(90deg); }
  .evidence-pair.forms { grid-template-columns: 1fr 1fr; }
  .journey-stage .shot { border-right: 0; border-bottom: 1px solid var(--line); }
  .story-strip { grid-template-columns: 1fr 1fr; }
  .boundary-grid { grid-template-columns: 1fr; }
  .transformation-list article { grid-template-columns: 1fr; }
  .transformation-list article > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .transformation-list .decision-cell::before, .transformation-list .decision-cell::after { display: none; }
  .reflection-list article { grid-template-columns: 60px 1fr; padding: 24px 0; }
  .reflection-list h3 { grid-column: 2; }
  .next-reading { grid-template-columns: 1fr; }
  .next-reading a { border-right: 0; border-bottom: 1px solid rgba(23, 24, 22, .45); }
  .next-reading a:last-child { border-bottom: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facts > div:nth-child(3) { padding-left: 0; }
  .markers { grid-template-columns: 1fr 1fr; }
  .markers li:nth-child(odd) button { border-right: 1px solid var(--line); }
  :is(.ink, .console) .markers li:nth-child(odd) button { border-right-color: var(--line-on-ink); }
  .markers li:nth-child(even) button { border-right: 0; }
  .markers li button { border-bottom: 1px solid var(--line); }
  :is(.ink, .console) .markers li button { border-bottom-color: var(--line-on-ink); }
  .fig-pair, .desk-cols, .desk-cols.three, .boundary-pair, .logic, .record { grid-template-columns: 1fr; }
  .desk-cols article:first-child, .record > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .desk-cols article:first-child, .desk-cols.three article { border-right: 0; border-bottom-color: var(--line-on-ink); }
  .scope-equation { grid-template-columns: 1fr; }
  .scope-equation > i { min-height: 44px; border-inline: 0; border-block: 1px solid var(--line); }
  .stages { grid-template-columns: 1fr 1fr; }
  .stages article:nth-child(2) { border-right: 0; }
  .stages article:nth-child(3) { padding-left: 0; }
  .stages article:nth-child(3)::before { left: 0; }
  .validation-map dl { grid-template-columns: 1fr; }
  .source-list li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 700px) {
  :root { --wrap: calc(100vw - 32px); --wide: calc(100vw - 16px); --header: 56px; }
  .section { padding: 76px 0; }
  .site-header { padding: 0 16px; gap: 12px; }
  .site-header .header-cta { display: none; }
  .hero { padding-top: calc(var(--header) + 44px); }
  .hero h1 { font-size: 25vw; }
  .hero-stage { width: calc(100vw - 16px); margin: 48px auto 28px; }
  .hero-notes { grid-template-columns: 1fr; }
  .hero-note:last-child { flex-direction: row; text-align: left; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts > div:last-child { border-bottom: 0; }
  .reading-path { grid-template-columns: 1fr; }
  .reading-path > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .reading-path > *:last-child { border-bottom: 0; }
  .display { font-size: 44px; }
  .statement { font-size: 52px; }
  .evidence-strip { grid-template-columns: 1fr; }
  .evidence-strip p { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .constraint-grid { grid-template-columns: 1fr; }
  .constraint-grid article, .constraint-grid article:last-child { grid-column: auto; border-right: 0; }
  .forces { grid-template-columns: 1fr; }
  .force, .force:nth-child(2) { border-right: 0; }
  .force.result { grid-column: auto; }
  .decision-question { display: block; padding: 24px; }
  .decision-question h3 { margin-top: 26px; text-align: left; }
  .option-grid { grid-template-columns: 1fr; }
  .option-grid > div { min-height: 190px; padding-top: 58px; border-right: 0; border-bottom: 1px solid var(--line); }
  .option-grid .opt { right: 90px; line-height: 1.35; }
  .decision-matrix > * { padding: 10px 8px; }
  .decision-matrix i { letter-spacing: 1px; }
  .decision-outcome { padding: 24px; }
  .decision-visual { padding: 20px 24px; }
  .compare { grid-template-columns: 1fr; }
  /* The encrypted full studies set these grids inline; phones still stack them as key and value rows */
  .record, .scope-equation { grid-template-columns: 1fr !important; }
  .evidence-pair { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .evidence-pair .pair-arrow { transform: rotate(90deg); }
  .evidence-pair.forms { grid-template-columns: 1fr; }
  .story-strip { --cols: 1; grid-template-columns: 1fr; }
  .story-strip .frame { height: 220px; }
  .journey-copy { padding: 22px; }
  .cta-band { padding: 24px; }
  .cta-band .actions { justify-content: flex-start; }
  .summary-flows { grid-template-columns: 1fr; }
  .summary-axis { min-height: 70px; flex-direction: row; gap: 18px; }
  .summary-axis span { writing-mode: initial; }
  .summary-axis i { margin: 0; transform: rotate(90deg); }
  .flow { min-height: 0; padding: 28px 12px; }
  .claims { grid-template-columns: 1fr; }
  .claims > div:first-child { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  :is(.ink, .console) .claims > div:first-child, .claims:is(.ink, .console) > div:first-child { border-bottom-color: var(--line-on-ink); }
  .markers { grid-template-columns: 1fr; }
  .markers li button, .markers li:nth-child(odd) button { border-right: 0; }
  .shot .hotspot::after { top: -24px; }
  .flip-toggle { display: flex; grid-column: 1 / -1; margin-bottom: 4px; }
  .flip-toggle .segmented { width: 100%; }
  .flip-toggle .segmented button { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 6px 10px; font-size: 14px; line-height: 1.2; }
  .flip-key { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border: 1px solid currentColor; font: 700 11px/1 var(--mono); }
  .can-flip[data-showing="a"] > figure:nth-of-type(2), .can-flip[data-showing="b"] > figure:nth-of-type(1), .can-flip > .pair-arrow { display: none; }
  .page-foot { flex-direction: column; align-items: flex-start; }
  .stages { grid-template-columns: 1fr; border-top: 0; }
  .stages article, .stages article + article { padding: 24px 0 24px 26px; border-right: 0; border-left: 1px solid var(--line); }
  .stages article::before, .stages article + article::before { left: -8px; top: 28px; }
  .unlock-card { padding: 24px; }
}
/* Touch: every control gets a 44px target. Hit areas grow; the look doesn't. */
@media (pointer: coarse) {
  .site-header .wordmark { display: inline-block; padding-block: 11px; }
  .scroll-cue, .lock-button, .back .text-link { min-height: 44px; }
  .text-link:not(p *, li *) { position: relative; }
  .text-link:not(p *, li *)::before { content: ""; position: absolute; inset: calc(50% - 22px) 0; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --t-state: 0ms; --t-hover: 0ms; --t-reveal: 0ms; --t-draw: 0ms; --reveal-distance: 0px; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span::after { animation: none; }
  .story-strip img, .shot .hotspot, .chapter-rail, .chapter-rail span { transition: none; }
}
