:root {
  --ink: #151515;
  --ink-soft: #242421;
  --paper: #eeeadd;
  --paper-light: #f8f5ea;
  --signal: #ef4b2f;
  --signal-dark: #a82d1f;
  --acid: #d8e04f;
  --muted: #5f5e56;
  --line: rgba(21,21,21,.22);
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: var(--ink); background: var(--acid); transform: translateY(-160%); }
.skip:focus { transform: none; }
.reading-progress { position: fixed; inset: 0 0 auto; z-index: 50; height: 4px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--signal); }
.site-head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; min-height: 74px; padding: 0 clamp(18px,5vw,72px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.16); background: #0b0b0a; }
.brand { display: flex; align-items: center; gap: 12px; width: max-content; color: inherit; text-decoration: none; }
.brand > span { display: grid; place-items: center; width: 42px; height: 42px; color: var(--acid); border: 1px solid var(--acid); font-family: var(--serif); font-size: .9rem; }
.brand strong { display: block; font-size: .86rem; letter-spacing: .02em; }
.brand small { display: block; color: #a5a59b; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.site-head nav { display: flex; gap: 26px; margin-right: 34px; font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.site-head nav a, .case-link { color: inherit; text-decoration: none; }
.site-head nav a:hover { color: var(--acid); }
.case-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; color: var(--acid); border: 1px solid #51514d; font-family: var(--mono); font-size: .65rem; letter-spacing: .04em; text-transform: uppercase; }

.hero { position: relative; overflow: hidden; min-height: min(780px,calc(100vh - 74px)); color: #f7f3e8; background: var(--ink); }
.hero::before { position: absolute; inset: 0; content: ""; opacity: .44; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), rgba(255,255,255,.08) calc(12.5% - 1px), rgba(255,255,255,.08) 12.5%); }
.hero::after { position: absolute; right: -8vw; bottom: -28vw; width: 70vw; height: 70vw; content: ""; border: 1px solid rgba(216,224,79,.2); border-radius: 50%; box-shadow: 0 0 0 8vw rgba(216,224,79,.025), 0 0 0 16vw rgba(216,224,79,.02); }
.hero-grid { position: absolute; inset: 0; opacity: .32; background: repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(255,255,255,.045) 40px); }
.hero-inner { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 70px clamp(20px,6vw,88px) 82px; }
.hero-register { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: clamp(52px,8vw,105px); color: #aaa9a0; font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.hero-register span:first-child { color: var(--acid); }
.kicker { margin: 0 0 15px; color: var(--signal); font-family: var(--mono); font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { max-width: 1050px; margin: 0; font-family: var(--serif); font-size: clamp(4.6rem,10.8vw,10rem); font-weight: 400; line-height: .72; letter-spacing: -.065em; }
.hero h1 em { color: var(--acid); font-weight: 400; }
.dek { max-width: 800px; margin: 40px 0 0; color: #d0cdc2; font-family: var(--serif); font-size: clamp(1.25rem,2vw,1.75rem); line-height: 1.35; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 42px; color: #aaa9a0; font-family: var(--mono); font-size: .65rem; letter-spacing: .04em; text-transform: uppercase; }

.thesis { padding: clamp(55px,8vw,105px) clamp(22px,8vw,120px); color: #f8f5ea; border-top: 1px solid #3a3a34; background: var(--signal-dark); }
.thesis p { max-width: 1120px; margin: 0 auto; font-family: var(--serif); font-size: clamp(2rem,4.8vw,5rem); line-height: 1.02; letter-spacing: -.04em; }
.article-shell { display: grid; grid-template-columns: minmax(0,820px) 260px; gap: clamp(50px,8vw,110px); max-width: 1220px; margin: 0 auto; padding: 95px clamp(20px,4vw,50px) 120px; }
.article-body { min-width: 0; overflow-wrap: break-word; }
.article-body section { scroll-margin-top: 24px; }
.article-body h2 { margin: 0 0 25px; font-family: var(--serif); font-size: clamp(2.6rem,5vw,5.2rem); font-weight: 400; line-height: .93; letter-spacing: -.05em; }
.article-body section + section { margin-top: 115px; padding-top: 25px; border-top: 1px solid var(--line); }
.article-body p, .article-body li { color: #3f3e38; font-size: 1.04rem; }
.article-body > section > p { max-width: 72ch; }
.article-body a { color: #8c271d; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body .lead { color: var(--ink); font-family: var(--serif); font-size: 1.38rem; line-height: 1.42; }
.section-label { margin: 0 0 16px; color: var(--signal-dark) !important; font-family: var(--mono); font-size: .7rem !important; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.story-switch { display: grid; grid-template-columns: 1fr 1fr; margin: 38px 0 0; border: 1px solid var(--ink); }
.story-switch button { min-height: 54px; padding: 10px 16px; color: var(--ink); border: 0; background: transparent; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.story-switch button + button { border-left: 1px solid var(--ink); }
.story-switch button.active { color: #fff; background: var(--ink); }
.record-stack { border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.record-card { display: grid; grid-template-columns: 92px 1fr 120px; gap: 18px; align-items: start; padding: 20px; border-bottom: 1px solid var(--line); background: var(--paper-light); }
.record-card time, .record-card span { color: var(--signal-dark); font-family: var(--mono); font-size: .65rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.record-card p { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.08rem; line-height: 1.42; }
.record-card .context-text { color: #315746; }
.record-card span { color: var(--muted); text-align: right; }
.story-result { padding: 24px; color: #fff; background: var(--ink); }
.story-result span { color: var(--acid); font-family: var(--mono); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.story-result p { margin: 8px 0 0; color: #e2ded2; font-family: var(--serif); font-size: 1.2rem; }
.story-result.context { background: #244838; }
.noscript-note { padding: 18px; border: 1px solid var(--line); }

.sequence { display: grid; grid-template-columns: 1fr 1fr; margin: 40px 0; border: 1px solid var(--ink); }
.sequence section { padding: 22px; }
.sequence section + section { margin: 0; padding-top: 22px; border: 0; border-left: 1px solid var(--ink); }
.sequence section > span { font-family: var(--mono); font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sequence ol { margin: 20px 0 0; padding: 0; list-style: none; }
.sequence li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; min-height: 64px; margin: 0; border-top: 1px solid var(--line); }
.sequence li b { color: var(--signal-dark); font-family: var(--mono); font-size: .67rem; }
.sequence li strong { color: var(--ink); font-size: .86rem; }
.sequence .inverted { color: #fff; background: var(--ink); }
.sequence .inverted li { border-color: rgba(255,255,255,.18); }
.sequence .inverted li b { color: var(--acid); }
.sequence .inverted li strong { color: #fff; }
.analysis-note { margin: 42px 0; padding: 30px; border-left: 7px solid var(--signal); background: var(--paper-light); }
.analysis-note span { color: var(--signal-dark); font-family: var(--mono); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.analysis-note p { margin: 9px 0 0; color: var(--ink) !important; font-family: var(--serif); font-size: 1.4rem !important; line-height: 1.3; }
.law-note, .power-test { margin: 38px 0; padding: 25px; border: 1px solid var(--ink); background: var(--acid); }
.law-note span, .power-test span { font-family: var(--mono); font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.law-note p, .power-test p { margin: 10px 0 0; color: var(--ink); font-size: .9rem; }
.handoff-diagram { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; margin: 40px 0; }
.handoff-diagram div { min-height: 175px; padding: 18px; color: #fff; background: var(--ink); }
.handoff-diagram span { color: var(--acid); font-family: var(--mono); font-size: .68rem; }
.handoff-diagram strong, .handoff-diagram small { display: block; }
.handoff-diagram strong { margin-top: 40px; font-family: var(--serif); font-size: 1.18rem; font-weight: 400; line-height: 1.1; }
.handoff-diagram small { margin-top: 10px; color: #c2c0b6; font-size: .74rem; }
.handoff-diagram > i { color: var(--signal); font-style: normal; }
.power-test { color: #fff; border: 0; background: var(--signal-dark); }
.power-test p { color: #fff; font-family: var(--serif); font-size: 1.25rem; }
.asymmetry { display: grid; grid-template-columns: 1fr 1fr; margin: 36px 0; border: 1px solid var(--ink); }
.asymmetry div { min-height: 230px; padding: 23px; }
.asymmetry div + div { color: #fff; background: var(--ink); }
.asymmetry span { color: var(--signal-dark); font-family: var(--mono); font-size: .65rem; text-transform: uppercase; }
.asymmetry div + div span { color: var(--acid); }
.asymmetry strong { display: block; margin: 55px 0 10px; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.asymmetry p { margin: 0; font-size: .8rem; }
.asymmetry div + div p { color: #bbb9af; }
.guardrails { margin: 38px 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.guardrails li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.guardrails > li > span { color: var(--signal-dark); font-family: var(--mono); font-size: .64rem; font-weight: 800; }
.guardrails strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.guardrails p { margin: 7px 0 0; font-size: .84rem; }
.conclusion { padding: 38px !important; color: #fff; border: 0 !important; background: var(--ink); }
.conclusion h2 { color: #fff; }
.conclusion .section-label { color: var(--acid) !important; }
.conclusion p { color: #c8c5ba; }
.sources ol { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sources li { display: grid; grid-template-columns: 1fr 220px; gap: 20px; margin: 0; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.sources li span { color: var(--muted); font-family: var(--mono); font-size: .64rem; line-height: 1.5; text-transform: uppercase; }
.method-note { margin-top: 70px; padding: 26px; border: 1px solid var(--line); background: var(--paper-light); }
.method-note > span { color: var(--signal-dark); font-family: var(--mono); font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.method-note p { margin: 10px 0 0; color: #5d5b53; font-size: .76rem; }

.article-rail { align-self: start; position: sticky; top: 26px; min-width: 0; }
.article-rail nav { border-top: 5px solid var(--signal); background: var(--ink); }
.article-rail nav > span { display: block; padding: 16px; color: var(--acid); border-bottom: 1px solid rgba(255,255,255,.14); font-family: var(--mono); font-size: .64rem; text-transform: uppercase; }
.article-rail nav a { display: flex; align-items: center; min-height: 44px; padding: 11px 16px; color: #ceccc2; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .74rem; text-decoration: none; }
.article-rail nav a:hover { color: #fff; background: var(--ink-soft); }
.rail-note { margin-top: 14px; padding: 17px; border: 1px solid var(--line); }
.rail-note span { color: var(--signal-dark); font-family: var(--mono); font-size: .64rem; text-transform: uppercase; }
.rail-note p { margin: 8px 0 0; color: var(--muted); font-size: .75rem; }
.related { max-width: 1220px; margin: 0 auto; padding: 0 clamp(20px,4vw,50px) 95px; }
.related > span { color: var(--signal-dark); font-family: var(--mono); font-size: .65rem; text-transform: uppercase; }
.related a { display: block; margin-top: 10px; padding: 26px; color: #fff; background: var(--signal-dark); text-decoration: none; }
.related strong, .related small { display: block; }
.related strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; }
.related small { margin-top: 5px; color: #ead6ce; }
.site-foot { display: grid; grid-template-columns: 1fr auto; gap: 30px; padding: 42px clamp(18px,5vw,72px); color: #aaa9a0; border-top: 1px solid rgba(255,255,255,.15); background: #0b0b0a; font-size: .72rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--acid); }

:where(a, button, [tabindex]):focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }

@media (max-width: 900px) {
  .site-head { grid-template-columns: 1fr auto; }
  .site-head nav { display: none; }
  .article-shell { grid-template-columns: 1fr; padding-top: 58px; }
  .article-rail { position: static; grid-row: 1; }
  .article-rail nav { display: flex; max-width: 100%; overflow-x: auto; }
  .article-rail nav > span, .article-rail nav a { flex: 0 0 auto; }
  .rail-note { display: none; }
}

@media (max-width: 640px) {
  .site-head { min-height: 64px; padding: 0 14px; }
  .brand > span { width: 38px; height: 38px; }
  .case-link { max-width: 120px; padding: 7px; text-align: center; }
  .hero { min-height: 680px; }
  .hero-inner { padding: 52px 18px 65px; }
  .hero-register { margin-bottom: 65px; }
  .hero h1 { font-size: clamp(4.2rem,22vw,6.2rem); }
  .thesis { padding: 55px 20px; }
  .thesis p { font-size: 2.1rem; }
  .article-shell { gap: 38px; padding-right: 18px; padding-left: 18px; }
  .article-body section + section { margin-top: 82px; }
  .article-body h2 { font-size: 3rem; }
  .record-card { grid-template-columns: 72px 1fr; }
  .record-card span { grid-column: 2; text-align: left; }
  .sequence { grid-template-columns: 1fr; }
  .sequence section + section { border-top: 1px solid var(--ink); border-left: 0; }
  .handoff-diagram { grid-template-columns: 1fr; }
  .handoff-diagram > i { text-align: center; transform: rotate(90deg); }
  .asymmetry { grid-template-columns: 1fr; }
  .sources li { grid-template-columns: 1fr; gap: 6px; }
  .conclusion { margin-right: -18px; margin-left: -18px; padding: 30px 18px !important; }
  .site-foot { grid-template-columns: 1fr; }
  .site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

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

@media print {
  @page { margin: 18mm; }
  :root { --paper: #fff; --paper-light: #fff; }
  html, body { color: #000; background: #fff; }
  .skip, .reading-progress, .site-head, .story-switch, .story-result, .article-rail, .related, .site-foot { display: none !important; }
  .hero { min-height: 0; color: #000; background: #fff; }
  .hero::before, .hero::after, .hero-grid { display: none; }
  .hero-inner { padding: 0 0 30px; }
  .hero-register, .hero-register span:first-child { color: #444; }
  .hero h1, .hero h1 em { color: #000; font-size: 58pt; }
  .dek, .hero-meta { color: #333; }
  .thesis { padding: 25px 0; color: #000; border: 0; background: #fff; }
  .thesis p { font-size: 24pt; }
  .article-shell { display: block; max-width: none; padding: 30px 0; }
  .article-body section + section { break-before: auto; }
  .record-card, .sequence section, .analysis-note, .law-note, .power-test, .asymmetry div, .handoff-diagram div, .guardrails li, .sources li, .method-note { break-inside: avoid; }
  .context-text[hidden], .case-text { display: block !important; }
  .case-text::before, .context-text::before { display: block; margin: 0 0 4px; color: #444; font-family: var(--mono); font-size: 7.5pt; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .case-text::before { content: "Selected narrative"; }
  .context-text { padding-top: 9px; border-top: 1px solid #bbb; }
  .context-text::before { content: "Surrounding context"; }
  .sequence .inverted, .story-result, .conclusion { color: #000; border: 1px solid #777 !important; background: #fff; }
  .sequence .inverted li strong, .conclusion h2, .conclusion p { color: #000; }
  .analysis-note, .law-note, .power-test, .asymmetry div, .asymmetry div + div, .handoff-diagram div, .method-note { color: #000; border-color: #777; background: #fff; }
  .power-test p, .asymmetry div + div p, .handoff-diagram small { color: #222; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .72em; overflow-wrap: anywhere; }
}
