/* swarmecology.com · Living Figure (design review 18 Oct 2026, 02-visual-direction.md)
   One meaning per color: teal = agents; blue / pink / orange = earning / persuading / stealing; the yellow highlighter = "today" and "changed".
   Hairlines and rules instead of boxes; no uppercase labels.
   Type v2 (18 Oct 2026): Fraunces (variable: opsz, wght, SOFT, WONK) for display, Instrument Sans for the interface,
   Martian Mono for IDs, dates and tags; Source Serif 4 stays for long-form reading. All OFL; licences in fonts/. */

@font-face { font-family: "Inter"; src: url("fonts/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0370-03FF, U+2190-21FF, U+2200-22FF; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-var.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-var-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/MartianMono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; size-adjust: 86%; }

:root {
  /* black, bone, marigold, crimson (Diego, 18 Oct 2026); the red eye is the mark. The site is black everywhere. */
  --bg: #0b0a09; --bg-2: #15130f; --bg-3: #1f1c17;
  --ink: #ece4d4; --ink-2: #cbc1ae; --muted: #9b917f;
  --rule: #302b24; --rule-2: #201d19; --rule-ui: #6f6658;
  --bone: #ece4d4; --marigold: #eaa221; --marigold-ink: #f3b94a; --crimson: #c8102e; --crimson-ink: #e3505f;
  --accent: var(--marigold); --accent-ink: var(--marigold-ink);
  /* data colours stay the papers' (Okabe-Ito, tuned for a dark ground) so charts match the published figures */
  --agent: #34b38f; --earn: #3a93d0; --persuade: #d88ab5; --steal: #e3792f; --subsidy: #e8aa2e;
  --agent-ink: #62d1ae; --earn-ink: #82bce8; --persuade-ink: #ebb0d0; --steal-ink: #f3a671; --subsidy-ink: #f2c462;
  --earn-tint: #172633; --persuade-tint: #2a1c25; --steal-tint: #2c1e14; --agent-tint: #15291f;
  --hl: var(--marigold); --hl-ink: #0b0a09;
  --display: "Fraunces", "Source Serif 4", Georgia, serif;
  --sans: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "Martian Mono", "IBM Plex Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --t-xs: .8125rem; --t-sm: .875rem; --t-ui: 1rem; --t-body: 1.1875rem; --t-lg: 1.3125rem;
  --t-h3: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --t-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --t-h1: clamp(2.3rem, 1.5rem + 3.4vw, 4.1rem);
  --t-display: clamp(2.4rem, 1.3rem + 2.8vw, 4.1rem);
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --measure: 40rem; --page: 76rem;
  --ease-out: cubic-bezier(.2, 0, 0, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); --ease-std: cubic-bezier(.2, 0, .2, 1);
  --ease-standard: cubic-bezier(.2, 0, 0, 1); --ease-enter: cubic-bezier(.05, .7, .1, 1); --ease-exit: cubic-bezier(.3, 0, 1, 1);
  --d-100: 100ms; --d-150: 150ms; --d-200: 200ms; --d-300: 300ms;
  --d-micro: 120ms; --d-peek: 160ms; --d-nav: 220ms; --d-depth: 260ms; --d-morph: 320ms;
  color-scheme: dark;
}

/* ---------- base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.6 var(--serif); font-optical-sizing: auto; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--rule-ui); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-color var(--d-micro) var(--ease-out); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--crimson); color: var(--bone); }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; font-optical-sizing: auto; }
h2 { font: 420 var(--t-h2)/1.06 var(--display); letter-spacing: -.02em; margin: 0 0 .5em; font-variation-settings: "SOFT" 0, "WONK" 0; }
h3 { font: 560 var(--t-h3)/1.18 var(--display); letter-spacing: -.012em; margin: 0 0 .35em; }
code, kbd { font-family: var(--mono); font-size: .9em; }
sub, sup { line-height: 0; }
table { font-variant-numeric: tabular-nums; }
.wrap, .page { width: min(100% - 2rem, var(--page)); margin-inline: auto; }
.prose { max-width: var(--measure); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 20; font-family: var(--sans); }
.skip:focus { left: 1rem; }
.meta { font: 500 var(--t-xs)/1.4 var(--mono); color: var(--muted); }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.dek { font: 400 var(--t-lg)/1.45 var(--serif); color: var(--ink-2); max-width: 44rem; margin: 0 0 var(--s4); }
a.term { text-decoration-style: dotted; text-decoration-color: var(--ink-2); }
a.term:hover { text-decoration-style: solid; }

/* kicker = the figures' italic kind tag (lowercase, never uppercase) */
.kicker, .kind { font: italic 400 var(--t-sm)/1.4 var(--display); color: var(--muted); margin: 0; letter-spacing: 0; text-transform: none; }

/* ---------- masthead (the only sticky element) */
.mast { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule-2); font-family: var(--sans); view-transition-name: masthead; }
.mast .bar { width: min(100% - 2rem, var(--page)); margin-inline: auto; height: 56px; display: flex; align-items: center; gap: var(--s6); }
.wordmark { display: flex; align-items: center; gap: .55rem; font: 560 1.16rem var(--display); letter-spacing: -.01em; text-decoration: none; color: var(--ink); flex: none; }
.wordmark svg { width: 38px; height: 34px; margin: -2px 0; }
.nav { display: flex; gap: var(--s5); font-size: .94rem; }
.nav a { text-decoration: none; color: var(--ink-2); padding: .45rem 0; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.tools { margin-left: auto; display: flex; gap: var(--s2); align-items: center; }
.tool { font: 500 .875rem/1 var(--sans); color: var(--ink-2); border: 1px solid var(--rule-ui); border-radius: 6px; min-height: 36px; padding: 0 .75rem; display: inline-flex; gap: .5rem; align-items: center; background: var(--bg); text-decoration: none; cursor: pointer; }
.tool:hover { color: var(--ink); border-color: var(--ink-2); }
.tool kbd { font: 500 .75rem var(--mono); border: 1px solid var(--rule); border-radius: 3px; padding: 0 .3rem; color: var(--muted); }
.menu { display: none; position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-sheet { position: fixed; inset: 56px 0 auto 0; max-height: calc(100dvh - 56px); overflow: auto; background: var(--bg); border-bottom: 1px solid var(--rule); box-shadow: 0 16px 32px rgb(0 0 0 / .12); padding: var(--s3) 1rem var(--s5); display: grid; gap: 0; }
.menu-sheet a { display: grid; gap: .1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule-2); text-decoration: none; color: var(--ink); font: 600 1.05rem var(--sans); min-height: 44px; }
.menu-sheet a span { font: 400 .9rem var(--sans); color: var(--muted); }
.subnav-row { border-bottom: 1px solid var(--rule-2); font-family: var(--sans); }
.subnav { width: min(100% - 2rem, var(--page)); margin-inline: auto; display: flex; flex-wrap: wrap; gap: .25rem var(--s5); font-size: .9rem; padding: .55rem 0; align-items: center; }
.subnav .sect { font-weight: 650; color: var(--ink); text-decoration: none; margin-right: var(--s2); }
.subnav a { color: var(--ink-2); text-decoration: none; padding: .2rem 0; }
.subnav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); font-weight: 600; }
@media (max-width: 860px) { .nav { display: none; } .menu { display: block; } .tool kbd { display: none; } .mast .bar { gap: var(--s4); } }

/* ---------- page head */
.phead { padding: clamp(1.75rem, 4vw, 3rem) 0 var(--s5); border-bottom: 1px solid var(--rule); }
.phead h1 { font: 380 var(--t-h1)/1.0 var(--display); letter-spacing: -.03em; margin: .5rem 0 .6rem; max-width: 56rem; font-variation-settings: "SOFT" 0, "WONK" 0; }
.phead .dek { margin-bottom: var(--s3); }
.phead .authors { font: 500 .95rem var(--sans); color: var(--ink-2); margin: 0 0 .25rem; }
.crumbs { font: 400 .85rem var(--sans); color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0 0 .5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }
.headrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: baseline; }

/* depth sounding (layer marker) */
.depth { display: inline-flex; align-items: center; gap: .5rem; font: 500 var(--t-xs)/1 var(--mono); color: var(--muted); }
.depth .bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.depth .bars i { width: 5px; background: var(--rule); border-radius: 1px; }
.depth .bars i:nth-child(1) { height: 5px; } .depth .bars i:nth-child(2) { height: 9px; } .depth .bars i:nth-child(3) { height: 13px; }
.depth .bars i.on { background: var(--ink); }

/* section head in figure grammar: title, lowercase finding, italic kind tag */
section, .band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rule); }
.band.tight { padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 0; }
.hero { border-top: 0; padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.fhead, .section-head { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s5); align-items: baseline; margin-bottom: var(--s5); }
.fhead h2, .section-head h2 { margin: 0; grid-column: 1; }
.fhead .sub, .section-head > p:not(.kicker) { grid-column: 1; font: 400 var(--t-lg)/1.35 var(--sans); color: var(--ink-2); margin: .25rem 0 0; max-width: 46rem; }
.fhead .kind, .section-head .kicker { grid-column: 2; grid-row: 1; white-space: nowrap; }
@media (max-width: 760px) { .fhead, .section-head { grid-template-columns: 1fr; } .fhead .kind, .section-head .kicker { grid-column: 1; grid-row: auto; margin-top: .4rem; } }

/* ---------- buttons, chips */
.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.05rem; border-radius: 6px; font: 600 .97rem var(--sans); text-decoration: none; border: 1px solid var(--rule-ui); color: var(--ink); background: var(--bg); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn .arr { transition: transform var(--d-micro) var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.acts { display: flex; flex-wrap: wrap; gap: var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip, .kindchip, .strandchip, .oachip, .type { font: 500 var(--t-xs)/1 var(--mono); padding: .3rem .45rem; border-radius: 3px; background: var(--bg-2); color: var(--ink); text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.chip:hover { border-color: var(--rule-ui); }
.type, .kindchip { background: transparent; border-color: var(--rule-ui); color: var(--ink-2); }
.strandchip { background: transparent; padding-left: 0; padding-right: 0; color: var(--muted); font-family: var(--sans); font-size: .82rem; white-space: normal; }
.oachip { background: transparent; color: var(--accent-ink); padding: 0; }
.idchip { font: 600 var(--t-xs)/1 var(--mono); padding: .26rem .42rem; border: 1px solid var(--rule-ui); border-radius: 3px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.hl { background: var(--hl); color: var(--hl-ink); padding: .1em .45em; border-radius: 3px; font: 600 var(--t-xs)/1.4 var(--sans); }
.badge { font: 500 var(--t-xs)/1.3 var(--mono); color: var(--ink-2); padding: 0; border: 0; text-transform: none; letter-spacing: 0; }
.badge.none { color: var(--muted); }
.badge.partly, .badge.observed { color: var(--accent-ink); }

/* glyphs, exactly as in the figures */
.g { display: inline-block; width: .78em; height: .78em; border-radius: 50%; vertical-align: -.05em; margin-right: .35em; flex: none; }
.g.auto { background: var(--agent); }
.g.dir { border: 2px solid var(--ink); background: radial-gradient(circle, var(--agent) 0 40%, transparent 44%); }
.g.hum { border: 2px solid var(--ink); }
.g.code { border: 2px dashed var(--muted); }
.g.rep, .rep { display: inline-block; width: .5em; height: .5em; border: 1.5px solid var(--ink-2); border-radius: 0; transform: rotate(45deg); margin: 0 .2em 0 .35em; vertical-align: .08em; background: none; }

/* the evidence tag: setting meter │ warrant │ actor */
.etag { display: inline-flex; align-items: stretch; flex-wrap: wrap; font: 500 var(--t-xs)/1 var(--mono); color: var(--ink-2); border: 1px solid var(--rule-ui); border-radius: 3px; background: var(--bg); vertical-align: middle; }
.etag > span { display: inline-flex; align-items: center; gap: .4em; padding: .32rem .5rem; white-space: nowrap; }
.etag > span + span { border-left: 1px solid var(--rule); }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: 3px; height: .7rem; background: var(--rule); border-radius: 1px; }
.meter i.on { background: var(--ink); }
.etag .w-proj { border: 1px dashed var(--muted); padding: .05rem .25rem; border-radius: 2px; }
.etag .w-spec { border: 1px dotted var(--muted); padding: .05rem .25rem; border-radius: 2px; }
.etag .g { margin: 0; }

/* ---------- home: hero */
.hero .page { display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); gap: var(--s7); align-items: start; }
.hero h1 { font: 360 var(--t-display)/1.0 var(--display); letter-spacing: -.03em; margin: .5rem 0 var(--s4); }
.hero h1 em { font-style: italic; font-weight: 340; color: var(--accent-ink); }
.hero .lede { font-size: 1.28rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 var(--s5); max-width: 36rem; }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; align-items: center; padding: var(--s4) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: var(--s5); max-width: 38rem; font-family: var(--sans); }
.verdict .k { font: italic 400 var(--t-sm) var(--sans); color: var(--muted); grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; }
.verdict p { margin: 0; font: 600 1.06rem/1.4 var(--sans); grid-column: 2; }
.verdict a { font-weight: 400; }
.rail { display: grid; grid-template-columns: repeat(4, 22px); gap: 3px; }
.rail i { height: 10px; border-radius: 2px; border: 1.5px dashed var(--rule-ui); }
.rail i.partly { border: 1.5px solid var(--accent); background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 5px); }
.plot { margin: 0; font-family: var(--sans); }
.plot .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.plot .ttl { font: 560 1.2rem/1.2 var(--display); margin: 0; }
.plot .sub { font-size: .94rem; color: var(--ink-2); margin: .15rem 0 .6rem; }
.plot svg { width: 100%; height: auto; display: block; overflow: visible; }
.plot svg text { font-family: var(--sans); fill: var(--ink); }
.plot .key { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .84rem; color: var(--ink-2); margin-top: .4rem; }
.plot .key span { display: inline-flex; align-items: center; }
.plot .src { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; }
.plot ol { display: none; }
.plot svg .lane { stroke-width: 2; }
.plot svg .lab { font-size: 12.5px; }
.plot svg .lanelab { font-size: 13px; font-weight: 650; }
.plot svg .tick { font-size: 12px; fill: var(--muted); }
.plot svg a:hover .lab, .plot svg a:focus .lab { text-decoration: underline; }
.plot svg .gl-auto { fill: var(--agent); stroke: var(--bg); stroke-width: 1.5; }
.plot svg .gl-dir-ring { fill: var(--bg); stroke: var(--ink); stroke-width: 1.7; }
.plot svg .gl-dir-core { fill: var(--agent); }
.plot svg .dm { font-size: 11px; fill: var(--ink-2); }
@media (max-width: 860px) {
  .hero .page { grid-template-columns: 1fr; gap: var(--s6); }
  .plot svg { display: none; }
  .plot ol { display: grid; list-style: none; padding: 0; margin: 0; }
  .plot li { display: grid; grid-template-columns: 1.2rem 1fr; gap: .1rem .5rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); font-size: .97rem; line-height: 1.35; }
  .plot li .g { margin: .25rem 0 0; }
  .plot li .m { grid-column: 2; font: 500 var(--t-xs) var(--mono); color: var(--muted); }
  .plot li a { text-decoration: none; } .plot li a:hover { text-decoration: underline; }
}

/* news river */
.river { display: grid; grid-template-columns: 1.35fr 1fr 1fr; border-top: 2px solid var(--ink); }
.item { padding: var(--s4) var(--s5) var(--s4) 0; display: grid; gap: .45rem; align-content: start; }
.item + .item { padding-left: var(--s5); border-left: 1px solid var(--rule); }
.item .meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.item h3 { font: 480 1.5rem/1.15 var(--display); margin: 0; letter-spacing: -.012em; }
.item.lead h3 { font-size: 1.6rem; }
.item h3 a { text-decoration: none; } .item h3 a:hover { text-decoration: underline; }
.item p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); }
.newsfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--s5); font: 500 .94rem var(--sans); }
.stream { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.stream li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .3rem var(--s5); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.stream .when { font: 500 var(--t-xs)/1.6 var(--mono); color: var(--muted); display: grid; gap: .35rem; align-content: start; justify-items: start; }
.stream h2 { font: 480 1.55rem/1.15 var(--display); margin: 0 0 .3rem; letter-spacing: -.012em; }
.stream h2 a { text-decoration: none; } .stream h2 a:hover { text-decoration: underline; }
.stream p { margin: 0 0 .5rem; color: var(--ink-2); font-size: 1.02rem; }
.stream li.t-register h2, .stream li.t-correction h2 { font-family: var(--sans); font-weight: 650; font-size: 1.2rem; }
.newsfilters { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font: 500 .94rem var(--sans); margin: 0 0 var(--s4); color: var(--muted); }
.newsfilters a { color: var(--ink-2); text-decoration: none; padding: .3rem 0; }
.newsfilters a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); font-weight: 650; }
@media (max-width: 860px) { .river { grid-template-columns: 1fr; } .item, .item + .item { padding: var(--s4) 0; border-left: 0; border-bottom: 1px solid var(--rule); } .stream li { grid-template-columns: 1fr; } }

/* the passage: four thresholds */
.passage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--s4); list-style: none; padding: 0; margin: 0; }
.stage { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: .55rem; }
.pbar { height: 14px; border-radius: 3px; border: 1.5px dashed var(--rule-ui); }
.pbar.partly { border: 1.5px solid var(--accent); background: repeating-linear-gradient(135deg, var(--accent) 0 2.5px, transparent 2.5px 7px); }
.stage .st { font: 500 var(--t-xs) var(--mono); color: var(--muted); display: flex; justify-content: space-between; }
.stage .st b { font-weight: 600; color: var(--ink); }
.stage h3 { font: 540 1.3rem/1.15 var(--display); margin: 0; }
.stage .def { font-size: 1rem; line-height: 1.5; color: var(--ink-2); margin: 0; }
.specimen { border-top: 1px solid var(--rule); padding-top: .7rem; display: grid; gap: .5rem; align-content: start; }
.specimen .lbl { font: italic 400 var(--t-sm) var(--sans); color: var(--muted); }
.specimen p { margin: 0; font: 500 1rem/1.45 var(--sans); }
.arrow { grid-column: 1 / -1; margin-top: var(--s5); display: flex; align-items: center; gap: .75rem; font: 400 var(--t-sm) var(--sans); color: var(--muted); }
.arrow::before { content: ""; flex: 1; height: 1.5px; background: var(--ink-2); order: 1; }
.arrow::after { content: "▸"; color: var(--ink-2); order: 2; margin-left: -.6rem; }
.arrow span:last-child { order: 3; }
@media (max-width: 860px) { .passage { grid-template-columns: 1fr; gap: var(--s6); } }

/* predictions: summary and matrix */
.summary { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); font-family: var(--sans); margin: 0 0 var(--s4); }
.summary div { display: grid; }
.summary b { font: 300 3.2rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
.summary span { font-size: var(--t-sm); color: var(--muted); }
.mcols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s7); }
.matrix { width: 100%; border-collapse: collapse; font-family: var(--sans); }
.matrix th, .matrix td { text-align: left; padding: .7rem .6rem .7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.matrix thead th { font: 500 var(--t-sm) var(--sans); color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.matrix .n { font: 600 var(--t-xs) var(--mono); white-space: nowrap; width: 4.5rem; }
.matrix .n a { text-decoration: none; }
.matrix .t { font-weight: 550; font-size: .98rem; }
.matrix .t a { text-decoration: none; } .matrix .t a:hover { text-decoration: underline; }
.matrix .tt { font: 400 var(--t-sm) var(--sans); color: var(--ink-2); white-space: nowrap; }
.ev { display: inline-flex; align-items: center; gap: .5rem; font: 500 var(--t-xs) var(--mono); color: var(--muted); white-space: nowrap; }
.ev .tally { display: inline-grid; grid-template-columns: repeat(6, 6px); gap: 2px; }
.ev .tally i { height: 12px; border: 1px solid var(--rule-ui); border-radius: 1px; }
.ev .tally i.s { background: var(--ink); border-color: var(--ink); }
.ev .tally i.t { background: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, transparent 1.5px 3.5px); }
@media (max-width: 860px) { .mcols { grid-template-columns: 1fr; } .matrix .tt, .matrix thead th:nth-child(3) { display: none; } .summary b { font-size: 2rem; } }

/* depth doors and ladder */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.door { padding: var(--s5) var(--s5) var(--s5) 0; display: grid; gap: .6rem; align-content: start; }
.door + .door { padding-left: var(--s5); border-left: 1px solid var(--rule); }
.door h3 { font: 480 1.6rem/1.1 var(--display); margin: 0; }
.door p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.door ul { list-style: none; margin: .2rem 0 0; padding: 0; font: 500 .97rem/1.9 var(--sans); }
.door li a { text-decoration: none; } .door li a:hover { text-decoration: underline; }
.door li span { color: var(--muted); font-weight: 400; }
.ladder { border-top: 2px solid var(--ink); margin-top: var(--s7); padding-top: var(--s4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); font-family: var(--sans); }
.ladder a { display: grid; gap: .25rem; text-decoration: none; padding: .25rem 0; }
.ladder a:hover b { text-decoration: underline; }
.ladder .dir { font: italic 400 var(--t-sm) var(--sans); color: var(--muted); }
.ladder b { font: 500 1.25rem/1.2 var(--display); }
.ladder .deeper { text-align: right; justify-items: end; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } .door, .door + .door { padding: var(--s4) 0; border-left: 0; border-bottom: 1px solid var(--rule); } .ladder { grid-template-columns: 1fr; } .ladder .deeper { text-align: left; justify-items: start; } }

/* follow + outside the record */
.follow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); }
.follow h2 { font: 460 1.6rem var(--display); margin: 0 0 .5rem; }
.follow p { font-size: 1rem; color: var(--ink-2); margin: 0 0 .75rem; }
.outside { border-top: 3px double var(--rule); padding-top: var(--s4); }
.outside .label { font: italic 400 var(--t-sm) var(--sans); color: var(--muted); margin: 0 0 var(--s2); }
.discuss-link { font: 600 1rem/1.4 var(--sans); color: var(--ink-2); display: inline-flex; flex-wrap: wrap; min-height: 44px; align-items: center; }
.discuss-link .x, .ext-mark { font-weight: 400; color: var(--muted); }
.ext-mark { font: 400 var(--t-xs) var(--mono); margin-left: .35rem; white-space: nowrap; }
@media (max-width: 860px) { .follow { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---------- lists, registers, library */
.caselist, .register, .library, .books, .dispatch-list, .endpoints, .revisions, .evlist, .bearing ul { list-style: none; padding: 0; margin: 0; }
.caselist li, .register li, .library li { display: grid; gap: .3rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.caselist a, .register a { text-decoration: none; font: 600 1rem/1.35 var(--sans); }
.caselist a:hover, .register a:hover { text-decoration: underline; }
.cid { font: 600 var(--t-xs)/1 var(--mono); color: var(--ink); border: 1px solid var(--rule-ui); border-radius: 3px; padding: .22rem .4rem; margin-right: .5rem; display: inline-block; vertical-align: .1em; }
.cmeta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font: 500 var(--t-xs) var(--mono); color: var(--muted); }
.ltitle { font: 600 1.06rem/1.35 var(--serif); text-decoration: none; }
.ltitle:hover { text-decoration: underline; }
.lmeta { font: 400 .88rem/1.45 var(--sans); color: var(--ink-2); }
.lchips { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }
.books li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.books .year { font: 600 var(--t-xs) var(--mono); padding-top: .25rem; }
.books p { font-size: 1rem; color: var(--ink-2); margin: .4rem 0 0; }
.books .lmeta { display: block; }
.endpoints li { display: grid; gap: .15rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.endpoints code { overflow-wrap: anywhere; }
.endpoints span { color: var(--ink-2); font-size: 1rem; }
.endpoints + p { margin-top: var(--s5); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; padding: var(--s4) 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: var(--s4); font: 500 var(--t-sm) var(--sans); color: var(--muted); }
.filters label { display: grid; gap: .3rem; min-width: 0; }
.filters label.search { flex: 1 1 16rem; }
.filters label.check { display: flex; align-items: center; gap: .45rem; color: var(--ink-2); min-height: 44px; }
.filters input[type="search"], .filters select, .findbox input { font: 400 1rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--rule-ui); border-radius: 6px; padding: .55rem .65rem; min-height: 44px; min-width: 0; max-width: 100%; }
.filters .meta { margin: 0 0 0 auto; align-self: center; }

/* key-value lists */
.kv { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: .9rem 1.5rem; margin: 1rem 0 0; }
.kv dt { font: 650 .95rem/1.4 var(--sans); }
.kv dd { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.kv dd p { margin-bottom: .5rem; }
.kv.compact { grid-template-columns: 10rem minmax(0, 1fr); gap: .6rem 1.25rem; }
@media (max-width: 640px) { .kv, .kv.compact { grid-template-columns: 1fr; gap: .2rem; } .kv dd { margin-bottom: .8rem; } }

/* cards retired: groups opened by a 2px rule, separated by hairlines */
.cards, .coming { display: grid; gap: 0 var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); border-top: 2px solid var(--ink); }
.card, .coming > div { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); min-width: 0; }
section .wrap > .card { border-top: 1px solid var(--rule); max-width: var(--measure); }
.card h3, .coming h3 { margin-bottom: .3rem; font-size: 1.15rem; }
.card h3 a, .coming h3 a { text-decoration: none; } .card h3 a:hover, .coming h3 a:hover { text-decoration: underline; }
.card p, .coming p { font-size: 1rem; color: var(--ink-2); }
.card p:last-child, .coming p:last-child { margin-bottom: 0; }
.empty { border-top: 2px solid var(--ink); padding: var(--s4) 0; }
.empty p { font-size: 1.02rem; color: var(--ink-2); }
.empty h2 { font-size: 1.35rem; }
.example-banner { display: inline-block; background: var(--hl); color: var(--hl-ink); font: 600 var(--t-xs)/1.4 var(--sans); padding: .15rem .5rem; border-radius: 3px; margin-bottom: .5rem; }

/* ---------- thresholds, predictions, framework */
.th-detail { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.th-detail > li { padding: var(--s5) 0; border-bottom: 1px solid var(--rule); max-width: 52rem; scroll-margin-top: 80px; display: grid; gap: .5rem; }
.th-head { display: grid; gap: .45rem; }
.th-head h2 { margin: 0; font-size: 1.45rem; }
.th-head .meta { margin: 0; }
.th-detail .case { font-size: 1rem; color: var(--ink-2); }
.scoreboard { list-style: none; padding: 0; margin: var(--s6) 0 0; border-top: 2px solid var(--ink); }
.scoreboard > li { padding: var(--s5) 0; border-bottom: 1px solid var(--rule); max-width: 56rem; scroll-margin-top: 80px; }
.scoreboard > li:target { background: linear-gradient(90deg, var(--hl) 0 4px, transparent 4px); padding-left: 1rem; }
.sb-head { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .2rem .8rem; align-items: baseline; margin-bottom: .5rem; }
.sb-head .pn { font: 600 var(--t-xs) var(--mono); }
.sb-head h2 { font-size: 1.2rem; margin: 0; }
.sb-head .tt { font: 400 var(--t-sm) var(--sans); color: var(--muted); }
@media (max-width: 640px) { .sb-head { grid-template-columns: 1fr; } }
.rel { font: 500 var(--t-xs)/1.3 var(--mono); color: var(--ink-2); margin-right: .35rem; white-space: nowrap; }
.rel::before { display: inline-block; margin-right: .3rem; }
.rel-supports .rel::before, .rel.rel-supports::before { content: "▲"; }
.rel-tension .rel::before, .rel.rel-tension::before { content: "▧"; }
.rel-neutral .rel::before, .rel.rel-neutral::before { content: "–"; }
.rel-meets-test .rel::before, .rel.rel-meets-test::before { content: "✓"; }
.bearing li, .evlist li { padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: 1.02rem; }
.group { margin-top: var(--s6); }
.group > h3 { font: italic 400 var(--t-sm) var(--sans); color: var(--muted); border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: 0; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { display: grid; grid-template-columns: 3.5rem 14rem minmax(0, 1fr); gap: .25rem 1.25rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.principles .no { font: 600 var(--t-xs) var(--mono); }
.principles .name { font: 650 1rem var(--sans); text-decoration: none; }
.principles a.name:hover { text-decoration: underline; }
.principles .def { color: var(--ink-2); font-size: 1.02rem; }
@media (max-width: 760px) { .principles li { grid-template-columns: 3rem 1fr; } .principles .def { grid-column: 2; } }
.conjectures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0 var(--s5); border-top: 2px solid var(--ink); }
.conj { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.fence { border-left: 2px solid var(--ink); padding: .2rem 0 .2rem 1.1rem; margin: var(--s5) 0; }
.fence p { font-size: 1.02rem; }
.fence p:last-child { margin-bottom: 0; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--rule); font: 500 .94rem var(--sans); }
.pager a { text-decoration: none; } .pager a:hover { text-decoration: underline; }
.workslist { list-style: none; padding: 0; margin: 0; columns: 2 18rem; column-gap: var(--s6); }
.workslist li { break-inside: avoid; padding: .35rem 0; font-size: .98rem; }
.workslist .meta { display: block; }

/* glossary */
.letters { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: var(--s4); font: 500 var(--t-xs) var(--mono); }
.letters a { display: inline-grid; place-items: center; min-width: 2.25rem; height: 2.25rem; border: 1px solid var(--rule-ui); border-radius: 3px; text-decoration: none; }
.glossary { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 0 1.5rem; margin: 0; border-top: 2px solid var(--ink); }
.glossary dt, .glossary dd { padding: .75rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.glossary dt { font: 650 1rem/1.4 var(--sans); scroll-margin-top: 80px; }
.glossary dt a { text-decoration: none; } .glossary dt a:hover { text-decoration: underline; }
.glossary dd { color: var(--ink-2); font-size: 1.02rem; }
@media (max-width: 700px) { .glossary { grid-template-columns: 1fr; } .glossary dt { border-bottom: 0; padding-bottom: 0; } }

/* figures: no white plate in dark mode, tap for full size */
figure { margin: var(--s6) 0; }
.fig-card { background: var(--bg); border-top: 1px solid var(--rule); padding-top: var(--s3); }
.fig-card a { display: block; }
.fig-card img { background: #fff; border-radius: 3px; padding: .5rem; }
figcaption { font: 400 .9rem/1.5 var(--sans); color: var(--ink-2); margin-top: .75rem; max-width: 52rem; }
figcaption b { color: var(--ink); }
figcaption .label { font: 500 var(--t-xs) var(--mono); color: var(--muted); margin-right: .4rem; }
.figure-entry { margin: 0 0 var(--s8); scroll-margin-top: 80px; }
.fig-links { font: 500 var(--t-xs) var(--mono); color: var(--muted); margin-top: .4rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* papers */
.paper-full { max-width: var(--measure); margin-bottom: var(--s8); scroll-margin-top: 80px; }
.paper-full .type { font: italic 400 var(--t-sm) var(--sans); color: var(--muted); border: 0; padding: 0; background: none; }
.paper-full h2 { font: 600 1.75rem/1.2 var(--serif); margin: .3rem 0 .4rem; letter-spacing: -.01em; }
.paper-full .authors { font: 500 .95rem var(--sans); margin: 0 0 .2rem; }
.paper-full h3 { margin-top: 1.25rem; font-size: 1.05rem; }
.paper-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s4) 0; }
.bib { background: var(--bg-2); border-radius: 4px; padding: .9rem 1rem; overflow-x: auto; font: 400 .82rem/1.55 var(--mono); }

/* ---------- case page */
.case-grid { display: grid; gap: var(--s7); grid-template-columns: minmax(0, 1fr) 19rem; align-items: start; }
@media (max-width: 960px) { .case-grid { grid-template-columns: minmax(0, 1fr); } }
.facts { border: 1px solid var(--rule-ui); border-radius: 4px; padding: var(--s4); font-family: var(--sans); position: sticky; top: 72px; }
.facts dl { margin: 0; display: grid; gap: .1rem; }
.facts dt { font: italic 400 var(--t-sm) var(--sans); color: var(--muted); margin-top: .6rem; }
.facts dd { margin: 0; font: 500 .95rem/1.4 var(--sans); overflow-wrap: anywhere; }
.facts h2 { font: italic 400 var(--t-sm) var(--sans); color: var(--muted); margin: var(--s4) 0 .35rem; }
.facts .cite p { font: 400 .88rem/1.5 var(--serif); color: var(--ink-2); margin: 0; overflow-wrap: anywhere; }
.facts .related ul { list-style: none; padding: 0; margin: 0; }
.facts .related li { font: 500 .92rem/1.4 var(--sans); padding: .4rem 0; border-top: 1px solid var(--rule); }
.facts .related li .meta { font-size: .8rem; }
@media (max-width: 960px) { .facts { position: static; } }
.readings > div { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.readings p { margin: 0; padding: var(--s4) var(--s4) var(--s4) 0; font-size: 1.02rem; }
.readings p + p { padding-left: var(--s4); border-left: 1px solid var(--rule); }
@media (max-width: 640px) { .readings > div { grid-template-columns: 1fr; } .readings p + p { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } }
.sources { padding-left: 1.2rem; }
.sources li { margin-bottom: 1rem; font-size: 1.02rem; }
.srole { display: block; font: 500 var(--t-xs) var(--mono); color: var(--muted); }
.sources blockquote { margin: .4rem 0; padding: .1rem 0 .1rem .9rem; border-left: 2px solid var(--ink); color: var(--ink-2); font-style: italic; }
.revisions li { padding: .45rem 0; border-bottom: 1px solid var(--rule); font-size: .98rem; }
.withdrawn-banner { border-left: 4px solid var(--ink); padding: .5rem 0 .5rem 1rem; font: 600 .95rem var(--sans); }
.casetag { margin: .5rem 0 .25rem; }

/* ---------- dispatches */
.story-head { padding: clamp(2rem, 5vw, 3.5rem) 0 var(--s5); border-bottom: 1px solid var(--rule); }
.story-head h1 { font: 400 clamp(2.4rem, 1.5rem + 3.6vw, 4.2rem)/1.02 var(--display); letter-spacing: -.028em; max-width: 46rem; margin: .35em 0; }
.byline { font: 500 .9rem var(--sans); color: var(--muted); margin: .75rem 0 0; }
.correction-flag { font: 600 .85rem var(--sans); margin-top: .5rem; }
.story-lead { margin: var(--s5) auto 0; }
.story-grid { padding-block: var(--s6) var(--s8); }
.story-body { max-width: 42rem; margin-inline: auto; font-size: 1.15rem; line-height: 1.68; }
.story-body > p { margin-bottom: 1.15em; }
.story-body h2 { font-size: 1.5rem; margin: var(--s6) 0 .75rem; }
.story-fig, .story-body .video, .story-body .video-link { margin: var(--s6) 0; }
.evidence-card { border-top: 1px solid var(--rule-ui); border-bottom: 1px solid var(--rule-ui); padding: .8rem 0; margin: var(--s5) 0; font: 500 1rem/1.5 var(--sans); }
.evidence-card .tagline { display: block; font: 500 var(--t-xs) var(--mono); color: var(--muted); margin-top: .35rem; }
blockquote.document { margin: var(--s5) 0; padding: var(--s4); background: var(--bg-2); font: 400 1.02rem/1.55 var(--serif); border-radius: 3px; }
blockquote.document cite { display: block; margin-top: .5rem; font: 500 var(--t-xs) var(--mono); color: var(--muted); font-style: normal; }
.video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #0d1012; border-radius: 3px; overflow: hidden; display: grid; place-items: center; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { font: 600 1rem var(--sans); color: #fff; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .4); border-radius: 6px; min-height: 44px; padding: 0 1.2rem; cursor: pointer; }
.video-play .meta { color: rgb(255 255 255 / .75); }
.framework-box, .other-reading, .how-reported, .corrections, .story-cases, .discuss { margin: var(--s6) 0; padding-top: var(--s3); border-top: 2px solid var(--ink); font-size: 1rem; }
.framework-box h2, .other-reading h2, .how-reported h2, .corrections h2, .story-cases h2, .discuss h2 { font: italic 400 var(--t-sm) var(--sans); color: var(--muted); margin: 0 0 .5rem; }
.framework-box dl { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .5rem 1rem; margin: 0; }
.framework-box dd { margin: 0; }
.framework-box ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 640px) { .framework-box dl { grid-template-columns: 1fr; } }
.discuss { border-top: 3px double var(--rule); }
.dispatch-list li { padding: var(--s5) 0; border-bottom: 1px solid var(--rule); max-width: 46rem; }
.dispatch-list h2 { font: 460 1.8rem/1.12 var(--display); margin: .2rem 0 .3rem; }
.dispatch-list h2 a { text-decoration: none; } .dispatch-list h2 a:hover { text-decoration: underline; }

/* find */
.findbox { margin: var(--s4) 0; }
.findbox input { width: 100%; max-width: 36rem; font-size: 1.1rem; }
.az { list-style: none; padding: 0; margin: 0; columns: 2 22rem; column-gap: var(--s6); }
.az li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px solid var(--rule-2); display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .5rem; font-size: 1rem; }
.az .k { font: 500 var(--t-xs)/1.9 var(--mono); color: var(--muted); }
.az a { text-decoration: none; } .az a:hover { text-decoration: underline; }

/* ---------- footer */
footer.site { border-top: 1px solid var(--rule); padding: var(--s6) 0 var(--s7); font: 400 .9rem/1.6 var(--sans); color: var(--muted); }
footer.site .page { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s6); }
footer.site .reflexive { font: italic 400 1rem var(--serif); color: var(--ink-2); margin: 0 0 .4rem; }
footer.site nav { display: grid; gap: .25rem; }
footer.site nav a { color: var(--ink-2); text-decoration: none; } footer.site nav a:hover { text-decoration: underline; }
@media (max-width: 760px) { footer.site .page { grid-template-columns: 1fr; } }
.notfound { min-height: 55vh; display: grid; align-content: center; }

/* ---------- motion: cross-document view transitions (instant under reduced motion) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: var(--d-150) var(--ease-exit) both se-fade-out; }
::view-transition-new(root) { animation: var(--d-200) var(--ease-standard) both se-fade-in; }
/* continuity: the masthead and section menu hold still; the clicked title becomes the page title */
.subnav-row { view-transition-name: subnav; }
.phead h1, .story-head h1, .hero h1 { view-transition-name: page-title; }
::view-transition-group(page-title) { animation-duration: var(--d-300); animation-timing-function: var(--ease-standard); }
::view-transition-old(page-title), ::view-transition-new(page-title) { animation-duration: var(--d-200); height: 100%; object-fit: none; object-position: left top; overflow: clip; }
::view-transition-group(masthead), ::view-transition-group(subnav) { animation-duration: 0ms; }
::view-transition-old(subnav), ::view-transition-new(subnav) { animation-duration: 120ms; }
@keyframes se-fade-out { to { opacity: 0; } }
@keyframes se-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*) { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 150ms !important; }
}
@media print { .mast, .subnav-row, footer.site, .ladder, .tools { display: none; } body { font-size: 11pt; } }

/* ---------- orientation: a quiet reading-progress line under the masthead (scroll-driven where supported) */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; scale: 0 1; pointer-events: none; background: var(--crimson); opacity: .75; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .progress { animation: se-progress linear both; animation-timeline: scroll(root); }
    @keyframes se-progress { to { scale: 1 1; } }
  }
}

/* ---------- peek: a preview card on hover or focus (peek.js); the link still navigates */
.peek { position: absolute; z-index: 30; padding: .85rem 1rem .8rem; background: var(--bg); color: var(--ink); border: 1px solid var(--rule-ui); border-radius: 10px;
  box-shadow: 0 12px 32px rgb(0 0 0 / .14), 0 2px 6px rgb(0 0 0 / .06); font-family: var(--sans); cursor: pointer;
  opacity: 0; translate: 0 4px; pointer-events: none; transition: opacity var(--d-100) var(--ease-exit), translate var(--d-100) var(--ease-exit); }
.peek[data-side="above"] { translate: 0 -4px; }
.peek.on { opacity: 1; translate: 0 0; pointer-events: auto; transition-duration: var(--d-150); transition-timing-function: var(--ease-enter); }
.peek p { margin: 0; }
.peek .pk-k { font: 500 var(--t-xs)/1.3 var(--mono); color: var(--muted); }
.peek .pk-t { font: 500 1.12rem/1.2 var(--display); margin: .3rem 0 .35rem; text-wrap: balance; }
.peek .pk-d { font: 400 .92rem/1.45 var(--sans); color: var(--ink-2); }
.peek .pk-go { font: 500 .8rem var(--sans); color: var(--muted); margin-top: .55rem; }
@media (prefers-reduced-motion: reduce) { .peek, .peek.on { translate: 0 0; transition: opacity var(--d-100) linear; } }

/* ---------- sticky context: the page title in the masthead once it has scrolled away (opacity only, 150 ms) */
.mast .ctx { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none;
  font: 500 1rem/1.2 var(--display); color: var(--ink); padding-left: var(--s4); border-left: 1px solid var(--rule);
  opacity: 0; pointer-events: none; transition: opacity var(--d-150) var(--ease-standard); }
.mast.past .ctx { opacity: 1; pointer-events: auto; }
@media (max-width: 860px) {
  .mast .bar { position: relative; }
  .mast .ctx { position: absolute; left: calc(38px + .55rem); right: 9.25rem; border: 0; padding: 0; font-size: 1.02rem; }
  .mast.past .wm-t { visibility: hidden; }
}

/* ---------- the Find palette ("/" or Ctrl/⌘K): keyboard first and unanimated by design */
.palette { padding: 0; border: 0; margin: 0; background: transparent; width: 100%; max-width: none; height: 100%; max-height: none; inset: 0; color: var(--ink); }
.palette::backdrop { background: rgb(8 10 12 / .38); }
.pal-box { width: min(660px, calc(100% - 24px)); margin: min(12vh, 104px) auto 0; background: var(--bg); border: 1px solid var(--rule-ui); border-radius: 12px;
  box-shadow: 0 28px 72px rgb(0 0 0 / .28); display: flex; flex-direction: column; max-height: min(72vh, 660px); overflow: hidden; font-family: var(--sans); }
.pal-in { display: flex; align-items: center; gap: .65rem; padding: 0 1rem; border-bottom: 1px solid var(--rule); }
.pal-in svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pal-in input { flex: 1; min-width: 0; min-height: 56px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 1.12rem var(--sans); }
.pal-in input::-webkit-search-cancel-button { display: none; }
.palette kbd { font: 500 .72rem/1 var(--mono); color: var(--muted); border: 1px solid var(--rule); border-radius: 4px; padding: .2rem .35rem; background: var(--bg-2); }
.pal-list { overflow: auto; overscroll-behavior: contain; padding: .25rem 0 .5rem; }
.pal-g { font: italic 400 var(--t-sm) var(--display); color: var(--muted); padding: .7rem 1rem .3rem; }
.pal-o { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: .05rem .8rem; padding: .5rem 1rem; color: var(--ink); text-decoration: none; }
.pal-o .pk { grid-row: span 2; font: 500 var(--t-xs)/1.7 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-o .pt { font: 500 1rem/1.3 var(--sans); }
.pal-o .pt mark { background: var(--hl); color: var(--hl-ink); border-radius: 2px; padding: 0 .05em; }
.pal-o .pd { font: 400 .86rem/1.35 var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-o .pd:empty { display: none; }
.pal-o[aria-selected="true"] { background: var(--bg-2); box-shadow: inset 3px 0 0 var(--accent); }
.pal-empty { padding: 1.25rem 1rem; margin: 0; color: var(--muted); font-size: .95rem; }
.pal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; margin: 0; padding: .65rem 1rem; border-top: 1px solid var(--rule); font: 500 .8rem var(--sans); color: var(--muted); }
.pal-foot a { margin-left: auto; color: var(--ink-2); }
@media (max-width: 640px) { .pal-box { margin-top: 8px; max-height: calc(100dvh - 16px); } .pal-foot span { display: none; } .pal-o { grid-template-columns: 4.2rem minmax(0, 1fr); } }

/* ---------- facets (facets.js): live counts, choices kept in the URL, rows that move to their new place */
.facets { display: none; margin-bottom: var(--s4); }
.facets.on { display: block; }
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .7rem 0; background: var(--bg); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); font: 500 var(--t-sm) var(--sans); color: var(--muted); }
@media (min-width: 761px) { .fbar { position: sticky; top: 57px; z-index: 5; } }
.fsearch { flex: 1 1 16rem; }
.fsearch input, .fsort select { font: 400 1rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--rule-ui); border-radius: 6px; padding: .5rem .65rem; min-height: 42px; width: 100%; }
.fsort { display: flex; align-items: center; gap: .5rem; }
.fsort select { width: auto; }
.fcount { margin: 0 0 0 auto; font: 500 .9rem var(--sans); color: var(--ink-2); }
.fcount b { font: 600 1rem var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.freset { font: 500 .9rem var(--sans); color: var(--ink); background: none; border: 1px solid var(--rule-ui); border-radius: 6px; min-height: 36px; padding: 0 .8rem; cursor: pointer; }
.fpanel { border-bottom: 1px solid var(--rule); padding: .35rem 0 .75rem; }
.fpanel > summary { font: 500 .9rem var(--sans); color: var(--ink-2); cursor: pointer; padding: .4rem 0; list-style: none; min-height: 36px; }
.fpanel > summary::-webkit-details-marker { display: none; }
.fpanel > summary::before { content: "▸\00a0"; color: var(--muted); }
.fpanel[open] > summary::before { content: "▾\00a0"; }
.fgroup { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .4rem 1rem; padding: .4rem 0; align-items: start; }
.flabel { font: italic 400 var(--t-sm)/2.3 var(--display); color: var(--muted); }
.fchips { display: flex; flex-wrap: wrap; gap: .35rem; }
.fchip { display: inline-flex; align-items: center; gap: .45rem; min-height: 34px; padding: 0 .7rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); color: var(--ink);
  font: 500 .86rem/1.2 var(--sans); text-align: left; cursor: pointer; transition: background-color var(--d-100) linear, border-color var(--d-100) linear, color var(--d-100) linear; }
.fchip .n { font: 500 .72rem var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.fchip:hover { border-color: var(--ink-2); }
.fchip:active { scale: .97; }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fchip[aria-pressed="true"] .n { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.fchip.zero { color: var(--muted); border-style: dashed; }
@media (max-width: 760px) { .fgroup { grid-template-columns: 1fr; gap: .2rem; } .flabel { line-height: 1.5; } .fcount { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .fchip:active { scale: 1; } }

/* rows moving to their new place: pointer-driven changes only (facets.js), 200 ms; leaving rows fade in 100 ms */
::view-transition-group(*.frow) { animation-duration: var(--d-200); animation-timing-function: var(--ease-standard); }
::view-transition-old(*.frow), ::view-transition-new(*.frow) { animation-duration: var(--d-200); }
::view-transition-old(*.frow):only-child { animation: var(--d-100) var(--ease-exit) both se-fade-out; }
::view-transition-new(*.frow):only-child { animation: var(--d-150) var(--ease-enter) both se-fade-in; }
html:active-view-transition-type(reorder)::view-transition-old(root) { display: none; }
html:active-view-transition-type(reorder)::view-transition-new(root) { animation: none; }

/* ---------- literature: Theagenesis */
.works { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s8); }
.work:first-child { border-top: 0; padding-top: 0; }
.work { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: var(--s6) var(--s7); align-items: start; padding-top: var(--s5); border-top: 1px solid var(--rule); }
.wcover img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 18px 50px rgb(0 0 0 / .55); }
.work h2 { font: 340 clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem)/1 var(--display); letter-spacing: -.03em; margin: .35rem 0 .5rem; }
.wtext { font: 400 1.12rem/1.6 var(--serif); color: var(--ink-2); max-width: 38rem; margin: var(--s4) 0 var(--s5); }
.wfiles { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.wfiles .btn { flex-direction: column; align-items: flex-start; justify-content: center; gap: .1rem; min-height: 52px; padding: .45rem 1rem; }
.wfiles .sz { font: 500 var(--t-xs) var(--mono); opacity: .75; }
.wnote { margin-top: var(--s7); max-width: 44rem; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } .wcover { max-width: 15rem; } }

/* ---------- reading aids (reading.js): margin contents, heading anchors, sidenotes, the sheet */
.h-anchor { margin-left: .4em; font: 400 .7em var(--sans); color: var(--muted); text-decoration: none; opacity: 0; transition: opacity var(--d-100) linear; }
:is(h2, h3):hover > .h-anchor, .h-anchor:focus-visible { opacity: 1; }
@media (hover: none) { .h-anchor { display: none; } }
.mtoc { position: fixed; top: 132px; width: 13.5rem; z-index: 4; font-family: var(--sans); transition: opacity var(--d-150) var(--ease-standard); }
.mtoc.off { opacity: 0; pointer-events: none; }
.mtoc-h { font: italic 400 var(--t-sm) var(--display); color: var(--muted); margin: 0 0 .5rem; }
.mtoc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.mtoc a { display: block; padding: .32rem 0 .32rem .85rem; margin-left: -1px; border-left: 2px solid transparent; font: 400 .88rem/1.35 var(--sans); color: var(--muted); text-decoration: none;
  transition: color var(--d-100) linear, border-color var(--d-100) linear; }
.mtoc a:hover { color: var(--ink); }
.mtoc a[aria-current] { color: var(--ink); border-left-color: var(--accent); }
.sidenote { position: absolute; width: 15rem; font: 400 .86rem/1.5 var(--sans); color: var(--ink-2); }
.sidenote p { margin: 0 0 .4em; display: inline; }
.sidenote .sn-n { font: 600 var(--t-xs) var(--mono); color: var(--accent-ink); margin-right: .4rem; }
.sheet { padding: 0; border: 0; margin: auto 0 0; width: 100%; max-width: none; max-height: 80dvh; background: transparent; color: var(--ink); }
.sheet::backdrop { background: rgb(0 0 0 / .5); }
.sh-box { background: var(--bg-2); border-top: 1px solid var(--rule-ui); border-radius: 16px 16px 0 0; padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom)); font-family: var(--sans); }
.sheet[open] .sh-box { transition: translate var(--d-200) var(--ease-enter), opacity var(--d-150) linear; }
@starting-style { .sheet[open] .sh-box { translate: 0 28px; opacity: 0; } }
.sh-k { font: 500 var(--t-xs) var(--mono); color: var(--muted); margin: 0; }
.sh-t { font: 500 1.35rem/1.2 var(--display); margin: .35rem 0 .4rem; }
.sh-d { font: 400 1rem/1.55 var(--sans); color: var(--ink-2); }
.sh-d p { margin: 0 0 .6em; }
.sh-act { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.sh-act .btn { flex: 1 1 auto; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .sheet[open] .sh-box { transition: none; } }

/* ---------- home: the papers in six figures (pstory.js). Wide: the figure stays pinned and changes with a 200 ms
   cross-fade as each explanation reaches the middle of the screen. Narrow, or without JavaScript: a plain stack. */
.pstory { border-top: 0; padding: 0; }
.ps-steps { list-style: none; margin: 0; padding: 0; }
.ps-step { width: min(100% - 2rem, var(--page)); margin-inline: auto; padding: clamp(2.5rem, 7vw, 4rem) 0; border-top: 1px solid var(--rule); }
.ps-step.first { border-top: 0; padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.ps-text h1 { font: 360 clamp(2.3rem, 1.3rem + 2.3vw, 3.3rem)/1.02 var(--display); letter-spacing: -.03em; margin: .6rem 0 var(--s4); }
.ps-text h1 em { font-style: italic; font-weight: 340; color: var(--accent-ink); }
.ps-text h2 { font: 380 clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem)/1.05 var(--display); letter-spacing: -.025em; margin: .45rem 0 var(--s4); }
.ps-text > p { font: 400 1.1rem/1.6 var(--serif); color: var(--ink-2); max-width: 36rem; }
.ps-k { font: 500 var(--t-xs) var(--mono); color: var(--muted); margin: 0; }
.ps-k span { color: var(--accent-ink); }
.ps-text > p.ps-links { font: 500 .92rem/1.5 var(--sans); color: var(--muted); margin-top: var(--s4); }
.ps-text .acts { margin: var(--s5) 0 0; }
.ps-fig { margin: var(--s5) 0 0; }
.ps-fig img { width: 100%; height: auto; background: #fff; border-radius: 6px; padding: clamp(6px, 1.5vw, 14px); }
.ps-fig figcaption { font: italic 400 .9rem var(--display); color: var(--muted); margin-top: .5rem; }
.ps-stage { display: none; }
@media (min-width: 1000px) {
  .pstory.js { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); column-gap: clamp(2rem, 4vw, 4rem); width: min(100% - 2rem, var(--page)); margin-inline: auto; }
  .pstory.js .ps-steps { grid-column: 1; grid-row: 1; }
  .pstory.js .ps-stage { display: block; grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: 76px; height: calc(100vh - 100px); cursor: zoom-in; }
  .pstory.js .ps-step { width: auto; min-height: 92vh; display: flex; align-items: center; border-top: 0; padding: 3rem 0; }
  .pstory.js .ps-step.first { min-height: calc(100vh - 80px); padding-top: 1.5rem; }
  .pstory.js .ps-step:last-child { min-height: 100vh; }
  .pstory.js .ps-fig { display: none; }
  .ps-stage img { position: absolute; inset: 0 0 36px; margin: auto; width: auto; height: auto; max-width: 100%; max-height: calc(100% - 36px);
    background: #fff; border-radius: 6px; padding: 14px; box-shadow: 0 24px 64px rgb(0 0 0 / .55); opacity: 0; transition: opacity var(--d-200) var(--ease-standard); }
  .ps-stage img.on { opacity: 1; }
  .ps-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font: italic 400 .9rem var(--display); color: var(--muted); }
  .ps-cap .n { font: 500 var(--t-xs) var(--mono); color: var(--accent-ink); font-style: normal; }
}
@media (prefers-reduced-motion: reduce) { .ps-stage img { transition: none; } }

/* ---------- predictions: one list, rows open in place (instantly; the content fades in over 150 ms) */
.pr-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin: var(--s5) 0 var(--s2); font: 500 .9rem var(--sans); color: var(--muted); }
.pr-tools .meta { margin: 0; }
.linkbtn { background: none; border: 0; padding: .3rem 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-ui); text-underline-offset: .2em; cursor: pointer; }
.linkbtn:hover { color: var(--ink); text-decoration-color: currentColor; }
.preds { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.preds > li { border-bottom: 1px solid var(--rule); scroll-margin-top: 72px; }
.preds summary { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) 8rem 5.5rem 1.4rem; gap: .2rem 1rem; align-items: baseline; padding: .9rem 0; cursor: pointer; list-style: none; }
.preds summary::-webkit-details-marker { display: none; }
.preds summary::after { content: "+"; font: 300 1.4rem/1 var(--sans); color: var(--muted); justify-self: end; transition: rotate var(--d-150) var(--ease-standard); }
.preds details[open] > summary::after { rotate: 45deg; color: var(--accent); }
.preds .pn { font: 600 var(--t-xs) var(--mono); color: var(--ink-2); }
.preds .pt { font: 500 1.08rem/1.35 var(--sans); }
.preds summary:hover .pt { text-decoration: underline; text-decoration-color: var(--rule-ui); text-underline-offset: .2em; }
.preds .ptt { font: 400 var(--t-sm) var(--sans); color: var(--muted); }
.preds .pev { font: 500 var(--t-xs) var(--mono); color: var(--muted); }
.preds .pbody { padding: 0 2.4rem 1.4rem 5.6rem; max-width: 56rem; }
.preds .pbody .lead { font-size: 1.12rem; }
.preds .plink { font: 500 .88rem var(--sans); margin: .5rem 0 0; }
.preds > li:target > details > summary .pn { color: var(--accent-ink); }
@media (prefers-reduced-motion: no-preference) { .preds details[open] > .pbody { animation: se-fade-in var(--d-150) var(--ease-enter); } }
@media (max-width: 760px) {
  .preds summary { grid-template-columns: 3.8rem minmax(0, 1fr) 1.4rem; }
  .preds .ptt, .preds .pev { grid-column: 2; grid-row: 2; }
  .preds .pev { justify-self: end; }
  .preds summary::after { grid-column: 3; grid-row: 1; }
  .preds .pbody { padding: 0 0 1.25rem; }
}

/* ---------- freshness: what changed last, on the first screen */
.newlink { display: block; margin: 0 0 1.1rem; font: 500 .95rem/1.5 var(--sans); color: var(--ink); text-decoration: none; }
.newlink .hl { margin-right: .35rem; }
.newlink .d { color: var(--muted); font-weight: 400; white-space: nowrap; }
.newlink:hover { text-decoration: underline; text-decoration-color: var(--rule-ui); text-underline-offset: .2em; }
.fresh { font: 500 .92rem/1.5 var(--sans); color: var(--ink-2); margin: .25rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
