/* Tokenmaxxing for Good — reading page
   A community notebook: warm paper, people in every picture, stitched patches, his own words set as callouts.
   Pine = lean into. Brick = guard against. The dark band = the risk end of the spectrum. */

:root {
  --paper: #F4F0E8;
  --paper-2: #EAE3D6;
  --paper-3: #DDD4C3;
  --ink: #221E1A;
  --ink-2: #463F38;
  --muted: #6E655B;
  --rule: #D8CFBF;
  --lean: #22614F;
  --lean-soft: #D5E3D6;
  --guard: #A8412C;
  --guard-soft: #F1DCD1;
  --void: #14110F;
  --utopia-core: #E2B659;
  --utopia-edge: #F3DFA8;
  --link: #22614F;

  /* the people */
  --p0: #D29B2E;
  --p1: #BC6444;
  --p2: #8FA478;
  --p3: #6A94BD;
  --p4: #8B5E80;
  --p5: #DDBF8E;
  --p6: #D48E7E;
  --p7: #22614F;
  --p8: #3F5E7E;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* hand-drawn lines, tiled */
  --line-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='8'%3E%3Cpath d='M0 4.0C28 2.6 52 5.4 80 4.2S128 2.8 150 4.0S196 5.0 220 4.0' fill='none' stroke='%23221E1A' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --line-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='8'%3E%3Cpath d='M0 4.0C28 2.6 52 5.4 80 4.2S128 2.8 150 4.0S196 5.0 220 4.0' fill='none' stroke='%23CFC4B1' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --line-lean: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='8'%3E%3Cpath d='M0 4.0C28 2.6 52 5.4 80 4.2S128 2.8 150 4.0S196 5.0 220 4.0' fill='none' stroke='%2322614F' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --line-guard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='8'%3E%3Cpath d='M0 4.0C28 2.6 52 5.4 80 4.2S128 2.8 150 4.0S196 5.0 220 4.0' fill='none' stroke='%23A8412C' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --line-ink-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='8'%3E%3Cpath d='M0 4.0C28 2.6 52 5.4 80 4.2S128 2.8 150 4.0S196 5.0 220 4.0' fill='none' stroke='%23221E1A' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --line-ember: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='8'%3E%3Cpath d='M0 4.0C28 2.6 52 5.4 80 4.2S128 2.8 150 4.0S196 5.0 220 4.0' fill='none' stroke='%23C4574A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --line-lean-thin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='8'%3E%3Cpath d='M0 4.0C28 2.6 52 5.4 80 4.2S128 2.8 150 4.0S196 5.0 220 4.0' fill='none' stroke='%2322614F' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --line-ink-print: var(--line-ink); --line-rule-print: var(--line-rule); --line-lean-print: var(--line-lean); --line-guard-print: var(--line-guard);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .15 0 0 0 0 .08 .09 0 0 0 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");

  --measure: 38rem;
  --wide: 62rem;
  --gutter: 20px;
  color-scheme: light;
}

/* the accent voice: labels (lab) and warm display moments (disp).
   Civic: Bricolage Grotesque, set like a community poster. Other directions were tried on 2026-09-28; see git history. */
:root {
  --lab-font: "Bricolage Grotesque", var(--sans); --lab-style: normal; --lab-var: "wdth" 88;
  --lab-w: 700; --lab-w2: 650; --lab-scale: .68; --lab-case: uppercase; --lab-track: .07em;
  --disp-font: "Bricolage Grotesque", var(--sans); --disp-style: normal; --disp-var: "wdth" 96;
  --disp-w: 700; --disp-scale: .92; --disp-track: -0.02em;
}
.byline-label, .chapter-kicker, .area-num, .balance-label, .fig-title, .pole-label, .pr-label, .ledger-head,
.eval-row-missing .eval-state, .ti-num, .gary-label, .gary-fig-title, .slog-zone-label, .dc-label, .bridge-label,
.step-num, .steps-axis, .bridge-legend, .rel-stat-label, .rel .era-lab, .rel .today-lab, .rel-table th, .rung-num, .cdig-label {
  font-family: var(--lab-font); font-style: var(--lab-style); font-variation-settings: var(--lab-var);
  text-transform: var(--lab-case); letter-spacing: var(--lab-track);
}
.pole-label, .dc-label, .bridge-label, .dc-flow-label { text-rendering: geometricPrecision; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--grain), var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--lean); outline-offset: 3px; border-radius: 3px; }

main { padding-inline: var(--gutter); }

/* the people, everywhere */
.pc0 { fill: var(--p0); } .pc1 { fill: var(--p1); } .pc2 { fill: var(--p2); }
.pc3 { fill: var(--p3); } .pc4 { fill: var(--p4); } .pc5 { fill: var(--p5); }
.pc6 { fill: var(--p6); } .pc7 { fill: var(--p7); } .pc8 { fill: var(--p8); }
.folk-back { opacity: .45; }
.folk-mid { opacity: .72; }

/* hand-drawn strokes that draw themselves in */
.draw { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.6, .1, .3, 1) .15s; }
.js .draw.is-drawn { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .js .draw { stroke-dashoffset: 0; transition: none; } }

/* ---------- progress + top bar ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; background: transparent; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--lean), var(--p0) 65%, var(--guard)); border-radius: 0 3px 3px 0; transition: width .12s linear; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--sans); font-size: .85rem;
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 8px; background: var(--line-rule) left center / 220px 8px repeat-x; opacity: 0; transition: opacity .25s; pointer-events: none; }
.topbar.is-scrolled::after { opacity: 1; }
.topbar-title { color: var(--ink); text-decoration: none; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.08rem; font-weight: 600; opacity: 0; transition: opacity .25s; }
.topbar.is-scrolled .topbar-title { opacity: 1; }
.topbar-tokens { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.btn-pdf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none;
  font-family: var(--sans); font-size: .84rem; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s;
}
.btn-pdf::before { content: ""; width: 10px; height: 10px; background: currentColor; clip-path: polygon(35% 0, 65% 0, 65% 45%, 90% 45%, 50% 85%, 10% 45%, 35% 45%); }
.btn-pdf:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 520px) { .topbar-tokens { display: none; } .topbar-title { font-size: .98rem; } .btn-pdf { margin-left: auto; } }

/* ---------- side rail: a little person climbs the steps as you read ---------- */
.rail { display: none; }
@media (min-width: 1440px) {
  .rail {
    display: flex; flex-direction: column; gap: 18px;
    position: fixed; left: 28px; top: 50%; transform: translateY(-50%);
    width: 200px; z-index: 10;
    font-family: var(--sans); font-size: .82rem;
  }
}
.rail-rings { width: 64px; height: 77px; overflow: visible; }
.ms-stairs { fill: color-mix(in srgb, var(--ink) 14%, var(--paper-2)); transition: fill .3s; }
.ms-tread { stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.ms-person { fill: var(--p1); }
.mini-steps[data-active="5"] .ms-tread, .rail-walker.is-risk .ms-tread { stroke: var(--guard); }
.rail-walker { transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; opacity: 0; }
.rail-walker.is-on { opacity: 1; }
.rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rail-list a { color: var(--ink-2); font-size: .86rem; text-decoration: none; display: block; padding-left: 11px; border-left: 3px solid var(--rule); border-radius: 1px; transition: color .2s, border-color .2s; }
.rail-list a:hover { color: var(--ink); }
.rail-list a.is-on { color: var(--lean); font-weight: 700; border-left-color: var(--lean); }
/* the menu waits until the opening crowd has scrolled past, so it never sits on top of people */
.rail { transition: opacity .35s ease, visibility .35s; }
.rail.is-hidden { opacity: 0; visibility: hidden; }

/* ---------- hero ---------- */
.hero { max-width: var(--wide); margin: 0 auto; padding-block: clamp(56px, 10vw, 128px) 0; }
.title {
  font-family: var(--display); font-weight: 700;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: min(8.2rem, calc((100vw - 40px) / 7));
  line-height: .9; letter-spacing: -0.035em;
  margin: 0; color: var(--ink);
}
/* "for Good" tucks up under "Tokenmaxxing", as close as on the deck's title slide */
.t-type { display: block; margin-bottom: -.2em; }
.t-hand {
  display: inline-block; position: relative;
  font-family: var(--disp-font); font-style: var(--disp-style); font-variation-settings: var(--disp-var);
  font-weight: var(--disp-w); font-size: calc(.753em * var(--disp-scale)); letter-spacing: var(--disp-track);
  color: var(--lean);
  /* set as in the Giving Pledge deck: under "Tokenmaxxing" and in from it, with no underline */
  margin-left: 1.23em;
}
.subtitle {
  font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1;
  margin: clamp(26px, 3.6vw, 40px) 0 0; display: flex; flex-direction: column; gap: 8px;
}
.subtitle-main {
  font-weight: 500; font-size: clamp(1.5rem, 3.3vw, 2.2rem); line-height: 1.14; letter-spacing: -0.012em;
  color: var(--ink); text-wrap: balance;
}
.subtitle-note { font-style: italic; font-weight: 400; font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.3; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* the byline: who and when, each under its own small label, on one ruled line */
.byline {
  display: grid; grid-template-columns: max-content max-content; column-gap: clamp(32px, 6vw, 72px); align-items: start;
  max-width: 34rem; margin: 26px 0 0; padding-top: 16px; background: var(--line-rule) left top / 220px 8px repeat-x;
  font-family: var(--sans);
}
.byline-cell { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.byline-label { font-weight: var(--lab-w2); font-size: calc(1.12rem * var(--lab-scale)); line-height: 1.3; color: var(--muted); margin-bottom: 4px; }
.byline-name, .byline-date { font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--ink); }
.byline-role { font-size: .92rem; line-height: 1.4; color: var(--muted); }
.byline-role a { color: inherit; }
@media (max-width: 520px) { .byline { grid-template-columns: minmax(0, 1fr) auto; column-gap: 22px; } }

/* the crowd: tokens become people */
.crowd-band { position: relative; margin: clamp(6px, 1.6vw, 20px) calc(-1 * var(--gutter)) 0; height: clamp(128px, 15.5vw, 212px); }
.crowd-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; touch-action: manipulation; }

.lexicon-wrap { max-width: var(--wide); margin: 0 auto; padding-bottom: clamp(20px, 4vw, 40px); }
.lexicon { margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px 48px; }
.lexicon-entry dt { margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; }
.lex-word { font-weight: 600; font-size: 1.25rem; }
.lex-machine { font-family: var(--mono); font-weight: 500; font-size: 1rem; letter-spacing: 0; background: var(--paper-2); border-radius: 4px; padding: 2px 8px; box-shadow: inset 0 0 0 1px var(--rule); }
.lex-hand { position: relative; font-family: var(--disp-font); font-style: var(--disp-style); font-variation-settings: var(--disp-var); font-weight: var(--disp-w); font-size: calc(1.45rem * var(--disp-scale)); letter-spacing: var(--disp-track); line-height: 1; color: var(--lean); padding: 0 4px; margin: 0 .45em 0 .3em; }
.lex-loop { position: absolute; left: -.5em; right: -.55em; top: -.42em; bottom: -.36em; width: calc(100% + 1.05em); height: calc(100% + .78em); overflow: visible; pointer-events: none; }
.lex-loop path { stroke: var(--lean); stroke-width: 2; }
.lex-pos { font-style: italic; color: var(--muted); }
.lexicon-entry dd { margin: 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.55; }

/* ---------- prose ---------- */
.essay { display: flex; flex-direction: column; }
.prose { max-width: var(--measure); margin-inline: auto; width: 100%; }
.prose p { margin: 0 0 1.15em; }
.lede { font-size: 1.36rem; line-height: 1.5; color: var(--ink); }
.pull {
  font-size: 1.36rem; line-height: 1.48; margin-top: 1.6em !important;
  padding: 22px 0 0; background: var(--line-rule) left top / 220px 8px repeat-x;
}

.chapter { padding-block: clamp(56px, 8vw, 104px) 0; }
.chapter-head { max-width: var(--measure); margin: 0 auto clamp(28px, 4vw, 44px); width: 100%; }
.chapter-kicker { font-weight: var(--lab-w); font-size: calc(1.28rem * var(--lab-scale)); line-height: 1; color: var(--lean); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.chapter-kicker::after { content: ""; width: 54px; height: 8px; background: var(--line-lean-thin) left center / 220px 8px no-repeat; }
h2 {
  font-family: var(--display); font-weight: 650;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.04; letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}
.h-soft { display: block; margin-top: 10px; font-weight: 360; font-style: italic; letter-spacing: -0.01em; color: var(--ink-2); font-size: .8em; }

/* ---------- area headers ---------- */
.area { position: relative; }
.area-head {
  max-width: var(--measure); width: 100%; margin: 0 auto 26px;
  display: flex; align-items: center; gap: 18px; padding-top: 24px;
  background: var(--line-ink) left top / 220px 8px repeat-x;
}
.mini-steps { width: 56px; height: 67px; flex: none; overflow: visible; }
.area-num { font-weight: var(--lab-w2); font-size: calc(1.12rem * var(--lab-scale)); line-height: 1.1; color: var(--muted); margin: 0 0 6px; }
h3 {
  font-family: var(--display); font-weight: 650;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(1.85rem, 3.6vw, 2.4rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0;
}

/* ---------- lean / guard: the recurring balance ---------- */
.balance {
  max-width: var(--measure); width: 100%; margin: 0 auto 38px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px;
  font-family: var(--sans); font-size: .98rem; line-height: 1.5;
}
.balance-side { padding: 18px 0 4px; background: var(--line-lean) left top / 220px 8px repeat-x; }
.balance-guard { background-image: var(--line-guard); }
.balance-side p { margin: 0; }
.balance-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px !important; font-weight: var(--lab-w); font-size: calc(1.22rem * var(--lab-scale)); line-height: 1; }
.balance-lean .balance-label { color: var(--lean); }
.balance-guard .balance-label { color: var(--guard); }
.balance-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  .balance { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- figures ---------- */
.fig { margin: 12px auto 44px; max-width: var(--measure); width: 100%; }
.fig-wide { max-width: var(--wide); }
.fig figcaption, .gary-fig figcaption {
  font-family: var(--sans); font-size: .85rem; line-height: 1.5; color: var(--muted); margin-top: 14px;
}
.fig-title { font-weight: var(--lab-w2); font-size: calc(1.2rem * var(--lab-scale)); color: var(--ink-2); margin: 0 0 12px; }
.chip-btn, .toggle-btn {
  font-family: var(--sans); font-size: .84rem; font-weight: 600;
  border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink);
  padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.chip-btn { margin-right: 8px; }
.chip-btn:hover, .toggle-btn:hover { border-color: var(--ink); }
.toggle { align-self: flex-start; display: inline-flex; gap: 4px; padding: 3px; border: 1.5px solid var(--rule); border-radius: 999px; margin-bottom: 16px; background: var(--paper); }
.toggle .toggle-btn { border-color: transparent; background: transparent; }
.toggle .toggle-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* pendulum */
.pendulum-stage { width: 100%; overflow: hidden; }
#pendulum { width: 100%; height: auto; display: block; overflow: visible; }
.pend-arc { stroke: color-mix(in srgb, var(--ink) 38%, var(--paper)); stroke-width: 1.6; stroke-dasharray: 1 8; stroke-linecap: round; }
.pend-ticks line { stroke: var(--rule); stroke-width: 1.2; stroke-linecap: round; }
.pend-rod { stroke: var(--ink); stroke-width: 1.4; }
.pend-bob { fill: var(--ink); }
.pend-pivot { fill: var(--ink); }
.pend-ground { stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.pend-crowd path, .pend-crowd circle { transition: fill .6s; }
#pendulum[data-pole="utopia"] .pend-crowd path, #pendulum[data-pole="utopia"] .pend-crowd circle,
#pendulum[data-pole="dystopia"] .pend-crowd path, #pendulum[data-pole="dystopia"] .pend-crowd circle { fill: var(--paper-3); }
.pole { cursor: pointer; outline: none; }
.pole-core { transition: r .25s; }
.pole-utopia .pole-core { fill: var(--utopia-core); }
.pole-dystopia .pole-core { fill: var(--void); stroke: var(--guard); stroke-width: 1.5; }
.pole-label { font-weight: var(--lab-w2); font-size: calc(24px * var(--lab-scale)); fill: var(--muted); }
.pole-label-wonder { fill: var(--lean); font-weight: 700; font-size: calc(20px * var(--lab-scale) + 9px); }
.pole.is-on .pole-label { fill: var(--ink); }
.pole-wonder.is-on .pole-label { fill: var(--lean); }
.pole-dystopia.is-on .pole-label { fill: var(--guard); }
.pole:focus-visible .pole-label { text-decoration: underline; }
.pendulum-readout { max-width: 34rem; margin: 10px auto 0; text-align: center; min-height: 7.4em; }
.pr-label { font-weight: var(--lab-w); font-size: calc(1.3rem * var(--lab-scale)); line-height: 1; margin: 0 0 8px; color: var(--lean); }
.pendulum-readout[data-pole="wonder"] .pr-label { visibility: hidden; }
.pendulum-readout[data-pole="dystopia"] .pr-label { color: var(--guard); }
.pendulum-readout[data-pole="utopia"] .pr-label { color: #946A0E; }
.pr-text { margin: 0; font-size: 1.2rem; line-height: 1.45; font-style: italic; }
.pr-cite { margin: 8px 0 0; font-family: var(--sans); font-size: .84rem; color: var(--muted); }
.fig-pendulum { margin-top: 28px; }
.fig-pendulum figcaption { text-align: center; }

/* how fast this is moving: model releases, carried over from the deck */
.fig-releases { margin-top: 6px; }
.rel-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 36px; align-items: end; margin-bottom: 20px; }
.rel-intro .fig-title { margin-bottom: 8px; }
.rel-h { margin: 0; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 650; font-size: clamp(1.65rem, 3.6vw, 2.3rem); line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.rel-lede { margin: 10px 0 0; max-width: 33rem; font-size: 1.08rem; line-height: 1.5; color: var(--ink-2); }
.rel-stats { display: flex; gap: 10px; }
.rel-stat { min-width: 140px; padding: 14px 16px 12px; border-radius: 4px 4px 12px 12px; background: var(--line-ink-2) left top / 220px 8px repeat-x, var(--paper-2); }
.rel-stat-now { background-color: var(--lean-soft); }
.rel-stat p { margin: 0; }
.rel-stat-label { font-weight: var(--lab-w); font-size: calc(1.02rem * var(--lab-scale)); line-height: 1.2; color: var(--muted); }
.rel-stat .rel-stat-val { margin-top: 6px; font-family: var(--sans); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--ink); }
.rel-stat-now .rel-stat-val { color: var(--lean); }
.rel-stat .rel-stat-sub { margin-top: 5px; font-family: var(--sans); font-size: .82rem; color: var(--ink-2); }
.rel { position: relative; }
#relSvg { display: block; width: 100%; height: auto; overflow: visible; }
.rel .era { fill: transparent; }
.rel .era-2 { fill: color-mix(in srgb, var(--paper-2) 80%, transparent); }
.rel .era-3 { fill: color-mix(in srgb, var(--lean-soft) 75%, transparent); }
.rel .era-edge { stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: 1; }
.rel .era-lab { font-weight: var(--lab-w); font-size: 12px; fill: var(--ink-2); }
.rel .is-compact .era-lab { font-size: 11px; letter-spacing: .05em; }
.rel .lane-lab { font-family: var(--sans); font-weight: 700; font-size: 14px; fill: var(--ink); }
.rel .lane-line { stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: 1; }
.rel .axis { stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-width: 1; }
.rel .yr { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.rel .dot { fill: var(--lean); stroke: var(--paper); stroke-width: 2; transition: opacity .25s, transform .25s; transform-box: fill-box; transform-origin: center; }
.rel .dot.off { opacity: 0; transform: scale(.2); }
.rel .dot.hot { fill: var(--ink); }
.rel .hit { fill: transparent; cursor: pointer; }
.rel .today { stroke: var(--ink); stroke-width: 1.6; }
.rel .today-lab { font-weight: var(--lab-w); font-size: 12px; fill: var(--ink); transition: opacity .4s; }
.rel.is-playing .today-lab { opacity: 0; }
.rel .brk { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rel .brk-lab { font-family: var(--sans); font-size: 14px; fill: var(--ink-2); }
.rel .brk-lab.front { fill: var(--lean); font-weight: 700; }
.rel.table-on #relSvg { display: none; }
.rel-tip { position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); padding: 7px 11px; border-radius: 8px; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: .8rem; line-height: 1.35; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.rel-tip b { display: block; font-size: .86rem; }
.rel-tip span { color: #CFC6B8; }
.rel-table { overflow-x: auto; }
.rel-table table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .92rem; }
.rel-table th, .rel-table td { padding: 7px 14px; text-align: right; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.rel-table th:first-child, .rel-table td:first-child { text-align: left; padding-left: 0; }
.rel-table th { font-weight: var(--lab-w); font-size: calc(1rem * var(--lab-scale)); line-height: 1.25; color: var(--muted); vertical-align: bottom; }
.rel-row-now td { font-weight: 700; color: var(--lean); }
.rel-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.rel-ctl .chip-btn { margin-right: 0; }
.rel-callout { margin: 18px 0 0; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 650; font-size: clamp(1.35rem, 2.7vw, 1.8rem); line-height: 1.18; letter-spacing: -0.015em; color: var(--lean); text-wrap: balance; transition: opacity .8s, transform .8s; }
.js .rel-callout:not(.on) { opacity: 0; transform: translateY(8px); }
/* without script, the numbers stand in for the chart */
html:not(.js) #relSvg, html:not(.js) .rel-ctl { display: none; }
html:not(.js) .rel-table[hidden] { display: block; }
@media (prefers-reduced-motion: reduce) { #relPlay { display: none; } .rel-callout { transition: none; } }
@media (max-width: 760px) {
  .rel-head { grid-template-columns: 1fr; gap: 16px; }
  .rel-stat { flex: 1; min-width: 0; }
}
@media (max-width: 599px) {
  .fig-releases .rel { margin-top: 4px; }
  .rel .lane-lab { font-size: 13px; }
  .rel .yr { font-size: 11px; }
  .rel .brk-lab { font-size: 13px; }
  .rel-table th, .rel-table td { padding: 7px 8px; }
  .rel-stat { padding: 12px 14px 11px; }
  .rel-stat .rel-stat-val { font-size: 1.7rem; }
}

/* his own words, set on cloth: a woven linen swatch, pinked top and bottom, with a running stitch.
   The fabric lives in tokens. Pine canvas and denim twill were tried on 2026-09-28; he chose linen (see git history). */
:root {
  --cloth: #E4D7BD; --cloth-ink: #28221C; --cloth-mark: #1E5A48; --cloth-thread: #9A8058;
  --weave-1: repeating-linear-gradient(0deg, rgba(98, 72, 38, .13) 0 1px, transparent 1px 3px);
  --weave-2: repeating-linear-gradient(90deg, rgba(255, 252, 244, .34) 0 1px, transparent 1px 3px);
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011 .03' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .26 0 0 0 0 .14 .16 0 0 0 0'/%3E%3C/filter%3E%3Crect width='360' height='360' filter='url(%23m)'/%3E%3C/svg%3E");
}
.swatch { position: relative; width: min(22rem, 100%); margin: 14px auto 40px; }
.swatch-body { filter: drop-shadow(0 1px 1px rgba(45, 32, 16, .22)) drop-shadow(0 10px 14px rgba(45, 32, 16, .12)); }
.cloth {
  --s: 10px;
  position: relative; margin: 0 !important; color: var(--cloth-ink);
  background: var(--grain), var(--mottle), var(--weave-1), var(--weave-2), var(--cloth);
  padding: 32px 26px 32px;
  transform: rotate(var(--tilt, -0.7deg));
  -webkit-mask:
    conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) 0 0 / var(--s) calc(var(--s) / 2) repeat-x,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) 0 100% / var(--s) calc(var(--s) / 2) repeat-x,
    linear-gradient(#000 0 0) 0 calc(var(--s) / 2) / 100% calc(100% - var(--s)) no-repeat;
  mask:
    conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) 0 0 / var(--s) calc(var(--s) / 2) repeat-x,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) 0 100% / var(--s) calc(var(--s) / 2) repeat-x,
    linear-gradient(#000 0 0) 0 calc(var(--s) / 2) / 100% calc(100% - var(--s)) no-repeat;
}
/* the running stitch: one dashed outline, colored by the thread token */
.cloth::before {
  content: ""; position: absolute; inset: 15px 11px; pointer-events: none; background: var(--cloth-thread);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='5' fill='none' stroke='%23000' stroke-width='3.2' stroke-dasharray='7 5'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='5' fill='none' stroke='%23000' stroke-width='3.2' stroke-dasharray='7 5'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.swatch-quote {
  position: relative; margin: 0 !important;
  font-family: var(--display); font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: 1.16rem; line-height: 1.42; letter-spacing: -0.004em; text-wrap: pretty;
}
.swatch-quote::before {
  content: "\201C"; display: block; height: .5em; margin: -.06em 0 .12em -.04em;
  font-family: var(--display); font-weight: 800; font-size: 2.7rem; line-height: 1; color: var(--cloth-mark);
}
.swatch-quote mark { background: none; color: var(--cloth-mark); font-weight: 680; }
.swatch-short .swatch-quote { font-size: 1.42rem; line-height: 1.3; font-weight: 560; }
@media (min-width: 1120px) {
  .swatch-side { float: right; width: 17.5rem; margin: 6px -13.5rem 24px 30px; }
}
/* a small scene sitting on the cloth's top edge */
.swatch-scene { display: block; width: 124px; height: 58px; margin: 0 0 -9px 18px; position: relative; z-index: 1; overflow: visible; }
.couch { fill: var(--p1); }
.couch-back { fill: color-mix(in srgb, var(--p1) 82%, var(--ink)); }
.couch-seam { fill: none; stroke: color-mix(in srgb, var(--p1) 70%, var(--ink)); stroke-width: 1.2; stroke-linecap: round; }
.couch-leg, .side-table { fill: var(--ink-2); }
.book { fill: #FBF8F2; stroke: var(--ink); stroke-width: .9; stroke-linejoin: round; }
.mug { fill: var(--p0); }
.mug-handle { fill: none; stroke: var(--p0); stroke-width: 1.8; }
.steam { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .steam { animation: steam 3.2s ease-in-out infinite; }
  .steam + .steam { animation-delay: -1.6s; }
}
@keyframes steam { 0% { opacity: 0; transform: translateY(3px); } 35% { opacity: .9; } 100% { opacity: 0; transform: translateY(-5px); } }

.together { max-width: var(--wide); margin: 10px auto 52px; }
.together-folk { display: block; width: 100%; height: 64px; margin-bottom: -6px; position: relative; z-index: 1; }
.together .cloth { --tilt: 0deg; padding: clamp(34px, 4vw, 48px) clamp(24px, 5vw, 64px) clamp(34px, 4vw, 48px); }
.together .cloth::before { inset: 16px 14px; }
.together-quote {
  text-align: center; text-wrap: balance;
  font-family: var(--display); font-weight: 560; font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(1.4rem, 2.7vw, 2rem); line-height: 1.24; letter-spacing: -0.01em;
}
.together-quote em { font-style: inherit; color: var(--cloth-mark); font-weight: 680; }

/* good tokens ledger */
.ledger { max-width: var(--wide); width: 100%; margin: 4px auto 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.ledger-col { padding: 20px 0 8px; background: var(--line-lean) left top / 220px 8px repeat-x; }
.ledger-bad { background-image: var(--line-guard); }
.ledger-head { font-weight: var(--lab-w); font-size: calc(1.3rem * var(--lab-scale)); line-height: 1; margin: 0 0 10px; }
.ledger-good .ledger-head { color: var(--lean); }
.ledger-bad .ledger-head { color: var(--guard); }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { position: relative; padding: 10px 0 10px 32px; font-size: 1.05rem; line-height: 1.5; }
.ledger li + li { background: var(--line-rule) left top / 220px 8px repeat-x; }
.ledger li::before { content: ""; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; background: center / contain no-repeat; }
.ledger-good li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.8C6.4 14.2 8.1 16 9.6 18.4C12.3 12.6 15.6 8.5 19.8 5.2' fill='none' stroke='%2322614F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ledger-bad li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 5.6C9.6 9.4 13.8 14 18.2 18.6M18.4 5.4C14.2 9.2 10.3 13.6 5.8 18.8' fill='none' stroke='%23A8412C' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
@media (max-width: 680px) { .ledger { grid-template-columns: 1fr; gap: 22px; } }

/* evals table */
.evals { font-family: var(--sans); font-size: .93rem; padding-top: 4px; background: var(--line-ink) left top / 220px 8px repeat-x; }
.eval-row { display: grid; grid-template-columns: 1fr 1.5fr 1.3fr; gap: 12px; padding: 13px 0; align-items: baseline; }
.eval-row + .eval-row { background: var(--line-rule) left top / 220px 8px repeat-x; }
.eval-name { font-weight: 700; }
.eval-what { color: var(--muted); }
.eval-state { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; text-align: right; color: var(--muted); }
.eval-state-on { color: var(--ink-2); }
.eval-row.eval-row-missing { background: color-mix(in srgb, var(--lean-soft) 60%, transparent); border: 2px dashed color-mix(in srgb, var(--lean) 70%, transparent); border-radius: 12px; padding: 14px 14px; margin-top: 10px; }
.eval-row-missing .eval-name { color: var(--lean); }
.eval-row-missing .eval-state { font-size: calc(1.15rem * var(--lab-scale)); color: var(--lean); font-weight: var(--lab-w); }
@media (max-width: 560px) { .eval-row { grid-template-columns: 1fr; gap: 2px; } .eval-state { text-align: left; } }

/* coal bar */
.coal-bar { display: flex; height: 48px; font-family: var(--sans); font-size: .84rem; font-weight: 600; border-radius: 10px; overflow: hidden; }
.coal-retired { width: var(--w); background: var(--lean); color: var(--paper); display: flex; align-items: center; padding-left: 12px; white-space: nowrap; }
.coal-kept { flex: 1; background: repeating-linear-gradient(135deg, var(--ink) 0 2px, color-mix(in srgb, var(--ink) 80%, var(--paper)) 2px 7px); color: var(--paper); display: flex; align-items: center; padding-left: 12px; white-space: nowrap; }
.coal-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 6px; }

/* three ideas */
.three-ideas { list-style: none; max-width: var(--measure); width: 100%; margin: 0 auto 34px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.three-ideas li { padding-top: 14px; font-family: var(--sans); font-size: .96rem; line-height: 1.45; color: var(--ink-2); background: var(--line-rule) left top / 220px 8px repeat-x; }
.three-ideas li.ti-unlock { color: var(--ink); background-image: var(--line-lean); }
.three-ideas p { margin: 4px 0 0; }
.ti-num { font-weight: var(--lab-w); font-size: calc(1.35rem * var(--lab-scale)); line-height: 1; color: var(--muted); }
.ti-unlock .ti-num { color: var(--lean); }
@media (max-width: 620px) { .three-ideas { grid-template-columns: 1fr; } }

/* two stats */
.twostats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 560px) { .twostats { grid-template-columns: 1fr; } }
.ts-num { font-family: var(--display); font-weight: 350; font-variation-settings: "SOFT" 100; font-size: 3.5rem; line-height: 1; margin: 0; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ts-num span { font-size: .5em; margin-left: 2px; color: var(--muted); }
.ts-cap { font-family: var(--sans); font-size: .92rem; line-height: 1.45; color: var(--ink-2); margin: 10px 0 12px; }
.ts-bar { height: 10px; background: var(--paper-3); border-radius: 99px; overflow: hidden; }
.ts-bar div { width: var(--w); height: 100%; background: var(--ink); border-radius: 99px; }
.ts-guard .ts-bar div { background: var(--guard); }
.ts-src { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.ts-src a { color: inherit; }

.note-water { margin-top: 8px; font-size: 1.05rem; color: var(--ink-2); }

/* ---------- the approach at Gary: a stitched patch ---------- */
.gary {
  position: relative;
  max-width: var(--wide); width: 100%; margin: 24px auto 8px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0;
  padding: 16px;
  background: var(--paper-2);
  border-radius: 18px;
}
.gary::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 2px dashed color-mix(in srgb, var(--lean) 42%, transparent);
  border-radius: 12px;
}
.gary-text { position: relative; padding: clamp(14px, 2.4vw, 28px); font-size: 1.06rem; line-height: 1.6; }
.gary-text p { margin: 0 0 1em; }
.gary-text p:last-child { margin-bottom: 0; }
.gary-label { color: var(--lean); display: flex; align-items: center; gap: 10px; margin-bottom: 14px !important; font-weight: var(--lab-w); font-size: calc(1.3rem * var(--lab-scale)); line-height: 1; }
.gary-label::before {
  content: ""; width: 26px; height: 26px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M3.6 12.4C6.8 9.4 9.9 6.6 13.1 3.8C16.2 6.6 19.4 9.5 22.5 12.2M6.1 10.6C6 14.6 6.1 18.6 6.3 22.4C10.8 22.6 15.3 22.5 19.8 22.2C20 18.3 20 14.5 19.9 10.7M11 22.3C10.9 20 11 17.8 11.1 15.8C12.4 15.7 13.8 15.7 15.1 15.9C15.2 18 15.1 20.2 15 22.3' fill='none' stroke='%2322614F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gary-fig { position: relative; margin: 0; padding: clamp(18px, 2.6vw, 30px); background: var(--paper); border-radius: 12px; display: flex; flex-direction: column; }
.gary-fig-title { font-weight: var(--lab-w); font-size: calc(1.25rem * var(--lab-scale)); line-height: 1.1; color: var(--ink); margin: 0 0 14px; }
@media (max-width: 860px) {
  .gary { grid-template-columns: 1fr; padding: 12px; }
  .gary::before { inset: 5px; }
}

/* Internal Use at Gary: four rungs, each built on the one below (from the deck), and community voice */
.gary-top { grid-column: 1 / -1; position: relative; padding: clamp(14px, 2.4vw, 28px) clamp(14px, 2.4vw, 28px) 4px; }
.rungs-lede { margin: 0; max-width: 40rem; font-size: 1.12rem; line-height: 1.55; }
.rungs { list-style: none; margin: 56px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.rung {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  min-height: calc(120px + var(--n) * 24px); padding: 18px 14px 14px; color: var(--ink);
  border-radius: 4px 4px 12px 12px;
  background: var(--line-ink-2) left top / 220px 8px repeat-x, var(--rung-bg);
}
.rung:nth-child(1) { --rung-bg: var(--lean-soft); }
.rung:nth-child(2) { --rung-bg: #F0E0B8; }
.rung:nth-child(3) { --rung-bg: #EDCFBE; }
.rung:nth-child(4) { --rung-bg: #3A332D; color: #F4F0E8; }
.rung-folk { position: absolute; left: 12px; bottom: calc(100% - 3px); overflow: visible; }
.rung-num { font-weight: var(--lab-w); font-size: calc(1.02rem * var(--lab-scale)); line-height: 1; opacity: .75; }
.rung-name { font-family: var(--display); font-weight: 650; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.18rem; line-height: 1.1; letter-spacing: -0.015em; }
.rung-desc { font-family: var(--sans); font-size: .86rem; line-height: 1.42; opacity: .9; }
/* the card sits under the slog figure on wide screens, and after it when the patch stacks */
.cdig { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 12px; padding: 16px 18px 17px; border-radius: 12px; background: var(--lean-soft); }
.cdig-folk { margin-top: 3px; overflow: visible; }
.cdig p { margin: 0; }
.cdig .cdig-label { margin-bottom: 6px; font-weight: var(--lab-w); font-size: calc(1.05rem * var(--lab-scale)); line-height: 1.2; color: var(--lean); }
.cdig-label + p { font-size: 1rem; line-height: 1.55; }
@media (min-width: 861px) {
  .gary-rungs { grid-template-rows: auto auto 1fr; }
  .gary-rungs .gary-text { grid-column: 1; grid-row: 2 / span 2; }
  .gary-rungs .gary-fig { grid-column: 2; grid-row: 2; }
  .gary-rungs .cdig { grid-column: 2; grid-row: 3; align-self: start; }
}
@media (max-width: 600px) {
  .rungs { grid-template-columns: 1fr; gap: 36px; margin-top: 44px; }
  .rung { min-height: 0; margin-left: calc((var(--n) - 1) * 5%); }
  .cdig { grid-template-columns: 1fr; gap: 8px; }
}

/* slog: what agents take, what they draft for people, what people hold */
.slog { display: flex; flex-direction: column; gap: 8px; }
.slog-zone { border-radius: 12px; padding: 10px 12px 12px; }
.slog-agents { background: var(--paper-2); background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1px); background-size: 10px 10px; }
.slog-shared { background: color-mix(in srgb, var(--lean-soft) 50%, var(--paper-2)); }
.slog-people { background: var(--lean-soft); }
.slog-zone-label { font-weight: var(--lab-w); font-size: calc(1.08rem * var(--lab-scale)); line-height: 1.1; margin: 0 0 8px; color: var(--ink-2); }
.slog-when-before, .slog[data-state="before"] .slog-when-after { display: none; }
.slog[data-state="before"] .slog-when-before { display: inline; }
.slog-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.slog-list:empty::before { content: "Nothing yet"; font-family: var(--serif); font-style: italic; font-size: .9rem; color: var(--muted); }
.slog-item {
  margin: 0; -webkit-appearance: none; appearance: none;
  font-family: var(--sans); font-size: .8rem; line-height: 1.25; text-align: left; cursor: pointer;
  padding: 6px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--rule);
  transition: box-shadow .15s, opacity .3s;
}
.slog-item[data-kind="agent"] { font-family: var(--mono); font-size: .7rem; border-radius: 3px; color: var(--ink-2); border-width: 1px; }
.slog-item[data-kind="shared"] { border-style: dashed; border-color: color-mix(in srgb, var(--lean) 60%, var(--rule)); }
.slog-item[data-kind="human"] {
  font-family: var(--disp-font); font-style: var(--disp-style); font-variation-settings: var(--disp-var); font-weight: var(--lab-w);
  font-size: calc(.95rem * var(--disp-scale)); line-height: 1.15; padding: 5px 12px;
}
.slog[data-state="after"] .slog-item[data-kind="human"] { border-color: var(--lean); color: var(--lean); }
.slog[data-state="before"] .slog-item[data-kind="human"] { opacity: .5; }
.slog-item:hover, .slog-item.is-on { box-shadow: 0 0 0 2px var(--p0); }
.slog-why { margin: 12px 0 0 !important; min-height: 4.2em; font-family: var(--sans); font-size: .88rem; line-height: 1.4; color: var(--ink-2); }
.slog-why b { color: var(--ink); }
@media (max-width: 520px) {
  .slog-zone { padding: 9px 10px 10px; }
  .slog-item { padding: 5px 8px; }
  .slog-item[data-kind="agent"] { font-size: .66rem; }
  .slog-item[data-kind="human"] { padding: 4px 10px; }
}

/* token stream */
.token-stream { width: 100%; height: auto; aspect-ratio: 560 / 240; display: block; border-radius: 12px; background: var(--paper-2); }
.stream-control { margin-top: 14px; font-family: var(--sans); font-size: .86rem; }
.stream-control label { display: block; color: var(--ink-2); margin-bottom: 6px; }
.stream-control input[type="range"] { width: 100%; accent-color: var(--lean); }
.stream-meter { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .74rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sm-good { color: var(--lean); }
.sm-bad { color: var(--guard); }
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; padding-top: 18px; background: var(--line-rule) left top / 220px 8px repeat-x; }
.stat-num { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 2.2rem; font-weight: 500; line-height: 1; margin: 0 0 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-cap { font-family: var(--sans); font-size: .82rem; line-height: 1.4; color: var(--muted); margin: 0; }

/* data center */
.dc { width: 100%; height: auto; display: block; overflow: visible; }
.dc-house { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.dc-folk path, .dc-folk circle { transition: fill .5s; }
.dc[data-state="today"] .dc-folk path, .dc[data-state="today"] .dc-folk circle { fill: var(--paper-3); }
.dc-building { fill: var(--ink); }
.dc-racks rect { fill: color-mix(in srgb, var(--paper) 18%, var(--ink)); }
.dc-far-ground { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-linecap: round; }
.dc-tower { fill: color-mix(in srgb, var(--ink) 34%, var(--paper)); }
.dc-window { fill: var(--paper); opacity: .7; }
.dc-antenna { fill: none; stroke: color-mix(in srgb, var(--ink) 34%, var(--paper)); stroke-width: 1.4; stroke-linecap: round; }
.dc-label { font-weight: var(--lab-w2); font-size: calc(17px * var(--lab-scale)); fill: var(--ink-2); }
.dc-flow { fill: none; stroke-width: 2.6; stroke-linecap: round; transition: opacity .45s, stroke-width .45s; }
.dc-take, .dc-cost { stroke: var(--guard); }
.dc-give { stroke: var(--muted); stroke-width: 2; }
.dc-profit { stroke: var(--ink); stroke-width: 3.4; }
.dc-share { stroke: var(--lean); stroke-width: 3; }
.arr-guard { fill: var(--guard); } .arr-lean { fill: var(--lean); } .arr-ink { fill: var(--ink); } .arr-muted { fill: var(--muted); }
.dc-flow-label { font-family: var(--sans); font-size: 13px; font-weight: 700; transition: opacity .45s, fill .45s; }
.dc-take-label, .dc-cost-label { fill: var(--guard); }
.dc-profit-label { fill: var(--ink); }
.dc-share-label { fill: var(--lean); }
/* what moves: land, water and power in; bills out to homes; money out of town; equity back */
.dc-dot { transition: opacity .45s; }
.dc-i-water { fill: var(--p3); }
.dc-i-power { fill: var(--utopia-core); stroke: #9A7418; stroke-width: .7; stroke-linejoin: round; }
.dc-i-land { fill: var(--p2); stroke: #5F7250; stroke-width: .7; stroke-linejoin: round; }
.dc-i-bill { fill: var(--paper); stroke: var(--guard); stroke-width: 1.2; }
.dc-i-bill-mark { font-family: var(--sans); font-weight: 700; font-size: 8px; fill: var(--guard); }
.dc-i-coin { fill: var(--utopia-core); stroke: #9A7418; stroke-width: 1.2; }
.dc-i-share { fill: var(--lean); }
/* today: resources taken, bills up, and all the upside leaves town */
.dc[data-state="today"] .dc-give, .dc[data-state="today"] .dc-share, .dc[data-state="today"] .dc-share-label, .dc[data-state="today"] .dc-dot-share { opacity: 0; }
/* community ownership: the same sacrifice, shared and decided together; most of the upside stays */
.dc[data-state="owned"] .dc-take { opacity: 0; }
.dc[data-state="owned"] .dc-take-label { fill: var(--ink-2); }
.dc[data-state="owned"] .dc-cost, .dc[data-state="owned"] .dc-cost-label, .dc[data-state="owned"] .dc-dot-cost { opacity: .5; }
.dc[data-state="owned"] .dc-profit { stroke-width: 1.6; opacity: .4; }
.dc[data-state="owned"] .dc-profit-label, .dc[data-state="owned"] .dc-dot-profit { opacity: 0; }
.dc-caption { font-family: var(--sans); font-size: .9rem; line-height: 1.5; color: var(--ink-2); margin: 12px 0 0; min-height: 3em; }
.dc-paper, .dc-paper-label { display: none; }

/* waffle: a street of 100 homes */
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px 4px; max-width: 300px; }
.waffle i { aspect-ratio: 1; background: var(--paper-3); clip-path: polygon(50% 3%, 97% 45%, 88% 45%, 88% 100%, 12% 100%, 12% 45%, 3% 45%); transition: background .35s; transition-delay: calc(var(--i) * 6ms); }
.waffle i.has { background: var(--lean); }
.waffle[data-state="goal"] i.gain { background: #E7C979; }
.waffle-read { font-family: var(--sans); font-size: .92rem; margin: 14px 0 12px; color: var(--ink-2); }
.waffle-read strong { color: var(--ink); }
.pathways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-family: var(--sans); font-size: .84rem; color: var(--ink-2); }
.pathways li { display: flex; align-items: center; gap: 8px; }
.pathways svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--lean); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- existential: the dark band ---------- */
.area-dark {
  --paper: #17130F;
  --paper-2: #221C17;
  --paper-3: #2E2620;
  --ink: #F0E8DC;
  --ink-2: #D2C8BA;
  --muted: #A0968A;
  --rule: #3A3129;
  --lean: #7CC0A6;
  --lean-soft: #1E332B;
  --guard: #E38A72;
  --guard-soft: #3D2119;
  --link: #93CDB6;
  --line-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='8'%3E%3Cpath d='M0 4.0C28 2.6 52 5.4 80 4.2S128 2.8 150 4.0S196 5.0 220 4.0' fill='none' stroke='%23F0E8DC' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --line-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='8'%3E%3Cpath d='M0 4.0C28 2.6 52 5.4 80 4.2S128 2.8 150 4.0S196 5.0 220 4.0' fill='none' stroke='%233A3129' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --line-lean: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='8'%3E%3Cpath d='M0 4.0C28 2.6 52 5.4 80 4.2S128 2.8 150 4.0S196 5.0 220 4.0' fill='none' stroke='%237CC0A6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --line-guard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='8'%3E%3Cpath d='M0 4.0C28 2.6 52 5.4 80 4.2S128 2.8 150 4.0S196 5.0 220 4.0' fill='none' stroke='%23E38A72' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: dark;
  background: var(--paper);
  color: var(--ink);
  margin: clamp(64px, 9vw, 110px) calc(-1 * var(--gutter)) 0;
  padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.area-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 26rem at 50% -8rem, color-mix(in srgb, #E38A72 16%, transparent), transparent 70%),
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, .35));
}
.dark-inner { position: relative; }
.area-dark .area-head { background-image: var(--line-guard); }
.area-dark .ms-stairs { fill: #3F352C; }
.area-dark .gary::before { border-color: color-mix(in srgb, var(--lean) 38%, transparent); }
.area-dark .gary-label::before { filter: invert(1) hue-rotate(180deg) brightness(1.5); }

.share { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
.share-outer { fill: color-mix(in srgb, var(--guard) 12%, var(--paper)); stroke: var(--guard); stroke-width: 1.2; cursor: pointer; transition: fill .3s; }
.share-inner { fill: var(--lean-soft); stroke: none; cursor: pointer; transition: fill .3s; }
.share-inner-line { fill: none; stroke: var(--lean); stroke-width: 1.4; pointer-events: none; }
.share-folk { pointer-events: none; }
.share-label { font-family: var(--sans); font-size: 14px; font-weight: 700; fill: var(--ink); pointer-events: none; }
.share-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); pointer-events: none; }
.share-label-in { fill: var(--ink); }
.share-sub-in { fill: var(--lean); }
.share[data-on="outer"] .share-outer { fill: color-mix(in srgb, var(--guard) 26%, var(--paper)); }
.share[data-on="inner"] .share-inner { fill: color-mix(in srgb, var(--lean) 32%, var(--paper)); }
.share-read { font-family: var(--sans); font-size: .9rem; line-height: 1.5; color: var(--ink-2); margin: 14px 0 0; text-align: center; min-height: 3em; }

/* ---------- closing ---------- */
.closing { padding-bottom: 24px; }
.bridge { width: 100%; height: auto; display: block; overflow: visible; }
.bridge-arc { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.bridge-deck { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; }
.bridge-ground { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.bridge-hangers line { stroke: var(--ink); stroke-width: 1.1; opacity: .45; stroke-linecap: round; }
.bridge-machines rect { fill: var(--ink-2); }
.bridge-leds rect { fill: color-mix(in srgb, var(--paper) 30%, var(--ink-2)); }
.bridge-homes path { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.bridge-label { font-weight: var(--lab-w2); font-size: calc(19px * var(--lab-scale)); fill: var(--ink-2); }
.bridge-label-mid { fill: var(--lean); font-weight: 700; font-size: 22px; }
.finale {
  text-align: center;
  margin: clamp(36px, 5vw, 60px) auto clamp(64px, 9vw, 110px);
}
.finale-text {
  position: relative; display: inline-block;
  font-family: var(--disp-font); font-style: var(--disp-style); font-variation-settings: var(--disp-var); font-weight: var(--disp-w);
  font-size: calc(clamp(2.3rem, 6.6vw, 4.4rem) * var(--disp-scale)); line-height: 1.05; letter-spacing: var(--disp-track);
  color: var(--ink);
}
.finale-underline { position: absolute; left: 2%; width: 96%; bottom: -.14em; height: clamp(10px, .26em, 20px); overflow: visible; }
.finale-underline path { stroke: var(--lean); stroke-width: 5; }

/* ---------- colophon ---------- */
.colophon { margin-inline: calc(-1 * var(--gutter)); padding: 44px var(--gutter) calc(64px + env(safe-area-inset-bottom, 0px)); background: var(--line-ink) left top / 220px 8px repeat-x; }
.colophon-inner { max-width: var(--measure); margin: 0 auto; font-family: var(--serif); font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); }
.colophon-title { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 600; font-size: 1.55rem; color: var(--ink); margin: 0 0 8px; }
.colophon-cite { color: var(--muted); font-size: .86rem; }
.btn-pdf-lg { margin-top: 12px; padding: 10px 18px; font-size: .92rem; }

/* ---------- the five steps (the spectrum) ---------- */
.fig-steps { margin-top: 64px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; }
.step a {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  min-height: calc(150px + var(--n) * 54px);
  padding: 20px 14px 18px; text-decoration: none; color: var(--ink);
  border-radius: 4px 4px 12px 12px;
  background: var(--line-ink-2) left top / 220px 8px repeat-x, var(--step-bg);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.step-folk { position: absolute; left: 12px; bottom: calc(100% - 3px); overflow: visible; }
.step a:hover, .step a:focus-visible { transform: translateY(-6px); }
.step[data-ring="1"] a { --step-bg: var(--lean-soft); }
.step[data-ring="2"] a { --step-bg: #F0E0B8; }
.step[data-ring="3"] a { --step-bg: #EDCFBE; }
.step[data-ring="4"] a { --step-bg: #3A332D; color: #F4F0E8; }
.step[data-ring="5"] a { --step-bg: var(--void); color: #F4F0E8; background-image: var(--line-ember); box-shadow: 0 -18px 40px -24px color-mix(in srgb, var(--guard) 70%, transparent); }
.step[data-ring="5"] .step-folk { opacity: .8; }
.step-num { font-weight: var(--lab-w); font-size: calc(1.1rem * var(--lab-scale)); line-height: 1; opacity: .75; }
.step-name { font-family: var(--display); font-weight: 650; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.24rem; line-height: 1.1; letter-spacing: -0.015em; }
.step-q { font-family: var(--sans); font-size: .87rem; line-height: 1.45; opacity: .88; }
.step[data-ring="5"] .step-num { color: #E38A72; opacity: 1; }
.steps-axis { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 12px; background: var(--line-ink) left top / 220px 8px repeat-x; font-weight: var(--lab-w2); font-size: calc(1.08rem * var(--lab-scale)); line-height: 1.2; color: var(--muted); }
.steps-axis span:last-child::after { content: " \2192"; font-family: var(--sans); }
@media (max-width: 760px) {
  .fig-steps { margin-top: 48px; }
  .steps { grid-template-columns: 1fr; gap: 46px; }
  .step { margin-left: calc((var(--n) - 1) * 6%); }
  .step a { min-height: 0; }
  .step a:hover, .step a:focus-visible { transform: translateX(4px); }
  .steps-axis { display: none; }
}

/* narrow screens: figures scale down, so their labels scale up */
.bridge-legend { display: none; }
@media (max-width: 600px) {
  .pole-label { font-size: calc(40px * max(var(--lab-scale), .82)); }
  .pole-utopia .pole-label, .pole-dystopia .pole-label { transform: translateY(26px); }
  .pole-label-wonder { font-size: calc(44px * max(var(--lab-scale), .82)); transform: translateY(18px); }
  .fig-bridge { margin-inline: calc(-1 * var(--gutter)); width: auto; }
  .bridge-label { display: none; }
  .bridge-legend { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin: 8px 0 0; padding: 0 12px; font-weight: var(--lab-w2); font-size: calc(.98rem * max(var(--lab-scale), .76)); line-height: 1.15; color: var(--ink-2); }
  .bridge-legend span:last-child { text-align: right; }
  .bridge-legend .bl-mid { color: var(--lean); font-weight: 700; }
  .dc-label { font-size: calc(19px * max(var(--lab-scale), .94)); }
  .dc-flow-label { font-size: 17px; }
  .finale-text { font-size: calc(clamp(1.8rem, 8.2vw, 2.4rem) * var(--disp-scale)); }
}
/* the rail when it floats over the dark Existential Risk band */
.rail.on-dark { --ink: #F0E8DC; --ink-2: #D2C8BA; --muted: #A0968A; --rule: #4A4037; --lean: #7CC0A6; --paper-3: #4A4037; }

/* ---------- print (the PDF) ---------- */
@page { size: Letter; margin: 0.8in 0.85in 0.85in; }
@media print {
  :root {
    --paper: #FFFFFF; --paper-2: #F4F0E8; --paper-3: #E6DECF; --ink: #221E1A; --ink-2: #3C3630; --muted: #625A51; --rule: #D8CFBF;
    --lean: #22614F; --lean-soft: #DCE8DD; --guard: #A33D29; --guard-soft: #F3E0D6; --void: #14110F; --link: #22614F;
    color-scheme: light;
  }
  body { font-size: 11pt; line-height: 1.5; background: #fff; }
  main { padding: 0; }
  .progress, .topbar, .rail, .toggle, .chip-btn, .btn-pdf, .stream-control label, .stream-control input, .pr-cite { display: none !important; }
  .js .draw { stroke-dashoffset: 0 !important; transition: none !important; }
  .hero { padding: 1.1in 0 0; }
  .title { font-size: 58pt; }
  .crowd-band { margin: 14pt 0 0; height: 1.3in; }
  .crowd-band canvas { cursor: default; }
  .lexicon-wrap { break-after: page; }
  .steps { gap: 5pt; }
  .step a { min-height: calc(62pt + var(--n) * 20pt); padding: 10pt 9pt 9pt; }
  .step-q { font-size: 8pt; }
  .step-name { font-size: 11pt; }
  .step-num { font-size: calc(10pt * var(--lab-scale)); }
  .fig-steps { margin-top: 26pt; margin-bottom: 12pt; }
  .steps-hint { display: none; }
  /* nothing trails a chapter's last paragraph, or it spills onto an empty page */
  .chapter > .prose:last-child, .chapter > .prose:last-child > p:last-child { margin-bottom: 0; padding-bottom: 0; }
  .prose, .fig, .gary, .balance, .ledger, .chapter-head, .area-head, .three-ideas { max-width: none; }
  .chapter { padding-top: 18pt; }
  .area { break-before: page; }
  .area-dark { margin: 0; padding: 0; background: #fff; color: var(--ink); }
  .area-dark::before { display: none; }
  .area-dark {
    --paper: #FFFFFF; --paper-2: #F4F0E8; --paper-3: #E6DECF; --ink: #221E1A; --ink-2: #3C3630; --muted: #625A51; --rule: #D8CFBF;
    --lean: #22614F; --lean-soft: #DCE8DD; --guard: #A33D29; --guard-soft: #F3E0D6; --link: #22614F;
    --line-ink: var(--line-ink-print); --line-rule: var(--line-rule-print); --line-lean: var(--line-lean-print); --line-guard: var(--line-guard-print);
  }
  .area-dark .gary-label::before { filter: none; }
  .area-dark .ms-stairs { fill: var(--paper-3); }
  .fig, .balance, .gary-fig, .three-ideas, .twostats, figure, .swatch { break-inside: avoid; }
  .gary-label { break-after: avoid; }
  .balance, .ledger li, .three-ideas li { font-size: 9.5pt; }
  .gary-text { font-size: 10.5pt; }
  .lexicon-entry dd { font-size: 10.5pt; }
  .gary { display: block; padding: 10pt; }
  .gary-text { padding: 12pt 14pt; }
  .gary-fig { padding: 14pt 16pt; }
  .gary-fig > * { max-width: 4.4in; }
  .gary-fig .dc, .gary-fig .share { max-width: 3.6in; }
  .slog-zone { min-height: 0; }
  .gary-top { padding: 12pt 14pt 2pt; }
  .rungs-lede { font-size: 10.5pt; }
  .rungs { margin: 30pt 0 4pt; gap: 5pt; }
  .rung { min-height: calc(60pt + var(--n) * 12pt); padding: 9pt 8pt 7pt; gap: 3pt; }
  .rung-name { font-size: 10.5pt; }
  .rung-desc { font-size: 8pt; }
  .rung-num { font-size: calc(9pt * var(--lab-scale)); }
  .cdig { padding: 8pt 10pt; gap: 10pt; }
  .cdig-label + p { font-size: 9.5pt; }
  .gary-top, .cdig { break-inside: avoid; }
  /* on paper the cloth goes flat: plain linen and a stitched line, so the quote stays crisp, selectable text */
  .swatch-side { float: right; width: 2.3in; margin: 2pt 0 8pt 16pt; }
  /* the spectrum page is full; this one quote would push a paragraph onto a page of its own */
  .swatch-screen { display: none; }
  .swatch-body { filter: none; }
  .cloth { --tilt: 0deg; -webkit-mask: none; mask: none; background: var(--cloth); padding: 15pt 14pt 15pt; }
  .cloth::before { -webkit-mask: none; mask: none; background: none; inset: 5pt; border: .9pt dashed var(--cloth-thread); border-radius: 2pt; }
  .swatch-quote { font-size: 11.5pt; line-height: 1.38; }
  .swatch-short .swatch-quote { font-size: 13.5pt; }
  .swatch-quote::before { font-size: 24pt; }
  .swatch-scene { width: 1.1in; height: auto; margin-left: 10pt; }
  .slog-why, .slog-hint { display: none; }
  /* the banner repeats the patch's last line; alone on a page before the next part it reads as a blank page */
  .together { display: none; }
  #taking-stock, #the-spectrum, #made-for-this { break-before: page; }
  .fig-pendulum { max-width: 6in; }
  .rel-ctl, .rel-tip, .rel-table { display: none !important; }
  .rel.table-on #relSvg { display: block; }
  .rel-callout { opacity: 1 !important; transform: none !important; margin-top: 8pt; font-size: 15pt; }
  .rel-head { grid-template-columns: minmax(0, 1fr) auto; gap: 8pt 18pt; margin-bottom: 10pt; }
  .rel-h { font-size: 20pt; }
  .rel-lede { font-size: 10.5pt; }
  .rel-stat { min-width: 1.15in; padding: 8pt 10pt 7pt; }
  .rel-stat .rel-stat-val { font-size: 18pt; }
  .rel-stat .rel-stat-sub { font-size: 8pt; }
  .fig-releases figcaption { margin-top: 6pt; }
  h2, h3, .chapter-head, .area-head { break-after: avoid; }
  p { orphans: 3; widows: 3; }
  a { color: inherit; text-decoration-color: var(--rule); }
  .pendulum-readout { min-height: 0; }
  .finale-text { font-size: 34pt; }
  .finale { margin: 24pt auto; }
  .colophon { margin: 0; padding: 18pt 0 0; }
  .dc-dot { display: none; }
  .dc-paper, .dc-paper-label { display: block; }
  /* the two models side by side, so the page can compare them at a glance */
  .gary-fig:has(#dc) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20pt; align-items: start; }
  .gary-fig:has(#dc) > * { max-width: none; }
  .gary-fig:has(#dc) .gary-fig-title { grid-column: 1 / -1; }
  .dc-paper { grid-column: 1; grid-row: 2 / span 3; margin: 0; }
  .dc-paper-owned { grid-column: 2; grid-row: 2; }
  .gary-fig #dc { grid-column: 2; grid-row: 3; max-width: none; }
  .gary-fig #dcCaption { grid-column: 2; grid-row: 4; }
  .dc-flow-label { font-size: 19px; }
  .dc-label { font-size: 15px; }
  .dc-paper-label { margin: 6pt 0 4pt; font-family: var(--lab-font); font-variation-settings: var(--lab-var); text-transform: var(--lab-case); letter-spacing: var(--lab-track); font-weight: var(--lab-w); font-size: 7.5pt; color: var(--guard); }
  .dc-paper-owned { color: var(--lean); }
  .dc-caption { min-height: 0; margin-top: 4pt; font-size: 8.5pt; }
}

/* ---------- paper: handmade paper, cut and lifted (from his two reference images, 2026-10-02) ----------
   Three layers, each a class on <html>, so they can be tried one at a time:
   .paper-cut    color pieces become cut paper: the pressed-sheet relief and a soft shadow that lifts them off the page
   .paper-sheet  the page itself becomes handmade paper: a pressed surface, a few long fibres, plant flecks
   .paper-fold   folded paper: creased steps and rungs, and a folded ribbon for the bridge
   The textures are generated (site-tools/paper-textures.html). relief.webp is mid-gray where the sheet is flat;
   blended with hard-light it lightens the bumps that catch the light and darkens the hollows, on any color.
   The Pre-AI / Post-AI slog figure stays exactly as it is. Print stays flat. */
.paper-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.paper-disc, .bridge-ribbon { display: none; }
:root {
  --paper-relief: url("paper/relief.webp");
  --paper-ground: url("paper/ground.webp");
  --paper-scatter: url("paper/scatter.webp");
  --paper-shade: 60, 40, 20;
  --paper-lift: 0 1px 1px rgba(var(--paper-shade), .14), 0 2px 5px -1px rgba(var(--paper-shade), .12), 0 12px 20px -12px rgba(var(--paper-shade), .36);
  --paper-lift-sm: 0 1px 1px rgba(var(--paper-shade), .16), 0 4px 8px -4px rgba(var(--paper-shade), .26);
  --paper-lift-svg: drop-shadow(0 .9px .6px rgba(var(--paper-shade), .36)) drop-shadow(0 2.4px 2.6px rgba(var(--paper-shade), .16));
}
@media screen {
  /* cut paper: the color pieces */
  .paper-cut .step a, .paper-cut .rung, .paper-cut .rel-stat {
    background-image: var(--line-ink-2), var(--paper-relief);
    background-size: 220px 8px, 320px 320px;
    background-repeat: repeat-x, repeat;
    background-position: left top, var(--tex-at, 0 0);
    background-blend-mode: normal, hard-light;
    box-shadow: var(--paper-lift);
  }
  .paper-cut .step a { background-color: var(--step-bg); transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
  .paper-cut .step a:hover, .paper-cut .step a:focus-visible { box-shadow: 0 1px 1px rgba(var(--paper-shade), .12), 0 4px 8px -2px rgba(var(--paper-shade), .12), 0 20px 26px -14px rgba(var(--paper-shade), .4); }
  .paper-cut .step[data-ring="5"] a { background-image: var(--line-ember), var(--paper-relief); box-shadow: var(--paper-lift), 0 -18px 40px -24px color-mix(in srgb, var(--guard) 70%, transparent); }
  .paper-cut .rung { background-color: var(--rung-bg); }
  .paper-cut .rel-stat { background-color: var(--paper-2); }
  .paper-cut .rel-stat-now { background-color: var(--lean-soft); --tex-at: 131px 47px; }
  .paper-cut .step:nth-child(2) a, .paper-cut .rung:nth-child(2) { --tex-at: 97px 41px; }
  .paper-cut .step:nth-child(3) a, .paper-cut .rung:nth-child(3) { --tex-at: 211px 163px; }
  .paper-cut .step:nth-child(4) a, .paper-cut .rung:nth-child(4) { --tex-at: 59px 238px; }
  .paper-cut .step:nth-child(5) a { --tex-at: 173px 89px; }
  .paper-cut .coal-bar { box-shadow: var(--paper-lift-sm); }
  .paper-cut .coal-retired { background: var(--paper-relief) 0 0 / 320px 320px, var(--lean); background-blend-mode: hard-light; }
  .paper-cut .coal-kept {
    background: var(--paper-relief) 90px 30px / 320px 320px, repeating-linear-gradient(135deg, var(--ink) 0 2px, color-mix(in srgb, var(--ink) 80%, var(--paper)) 2px 7px);
    background-blend-mode: hard-light, normal;
  }
  /* larger sheets that carry text take the relief with soft-light: the same surface, at a reading strength */
  .paper-cut .cdig { background: var(--paper-relief) 40px 120px / 320px 320px, var(--lean-soft); background-blend-mode: soft-light; box-shadow: var(--paper-lift-sm); }
  .paper-cut .gary { background: var(--paper-relief) 0 0 / 320px 320px, var(--paper-2); background-blend-mode: soft-light; box-shadow: var(--paper-lift); }
  .paper-cut .gary:not(.gary-rungs) .gary-fig { background: var(--paper-relief) 150px 70px / 320px 320px, var(--paper); background-blend-mode: soft-light; box-shadow: var(--paper-lift-sm); }
  .paper-cut .token-stream { background: var(--paper-relief) 60px 200px / 320px 320px, var(--paper-2); background-blend-mode: soft-light; }
  .paper-cut .waffle { filter: drop-shadow(0 .8px .4px rgba(var(--paper-shade), .34)); }
  .paper-cut .waffle i { background-image: var(--paper-relief); background-size: 320px 320px; background-position: calc(var(--i) * -37px) calc(var(--i) * -23px); background-blend-mode: hard-light; }
  .paper-cut .ts-bar div { box-shadow: 0 1px 1px rgba(var(--paper-shade), .3); }

  /* cut paper: the people and the pieces inside the drawings */
  .paper-cut #crowd, .paper-cut .step-folk, .paper-cut .rung-folk, .paper-cut .cdig-folk, .paper-cut .together-folk, .paper-cut .swatch-scene { filter: var(--paper-lift-svg); }
  .paper-cut .pend-crowd, .paper-cut .pole-core, .paper-cut .paper-disc, .paper-cut .pend-lift,
  .paper-cut .bridge-machines, .paper-cut .bridge-homes, .paper-cut .bridge-folk, .paper-cut .bridge-walkers > g,
  .paper-cut .dc-house, .paper-cut .dc-tower, .paper-cut .dc-center > rect, .paper-cut .dc-folk, .paper-cut .dc-dot,
  .paper-cut .share-outer, .paper-cut .share-inner, .paper-cut .share-folk, .paper-cut .rel-dots { filter: url(#paper-lift); }
  .paper-cut .rel .dot { stroke: none; }
  /* the poles become stacked paper discs instead of a glow */
  .paper-cut .pole-glow { display: none; }
  .paper-cut .paper-disc { display: inline; }
  .paper-cut .pole-utopia .paper-disc circle:nth-child(1) { fill: #F6E7BC; }
  .paper-cut .pole-utopia .paper-disc circle:nth-child(2) { fill: #F0D488; }
  .paper-cut .pole-utopia .paper-disc circle:nth-child(3) { fill: #E8C267; }
  .paper-cut .pole-dystopia .paper-disc circle:nth-child(1) { fill: #D9A08F; }
  .paper-cut .pole-dystopia .paper-disc circle:nth-child(2) { fill: #8E3A28; }
  .paper-cut .pole-dystopia .paper-disc circle:nth-child(3) { fill: #3A1E17; }

  /* handmade paper: the page itself */
  .paper-sheet { --paper: #F0E8D8; --paper-2: #E6DBC6; --paper-3: #D9CCB4; --rule: #D3C5AC; }
  .paper-sheet body { background: var(--paper-scatter) 0 0 / 700px 700px, var(--paper-ground) 0 0 / 512px 512px, var(--paper); }
  .paper-sheet .area-dark { background: var(--paper-relief) 0 0 / 320px 320px, var(--paper); background-blend-mode: soft-light; }
  .paper-sheet .topbar { background: color-mix(in srgb, var(--paper) 86%, transparent); }
  /* at the very top a flat bar reads as a strip laid across the paper, so it frosts only once the page scrolls */
  .js.paper-sheet .topbar:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* folded paper: each step and rung carries one crease, lit from the top left */
  .paper-fold .step a, .paper-fold .rung {
    background-image: var(--line-ink-2), linear-gradient(var(--crease, 112deg), var(--fold-lite) 0 calc(var(--crease-at, 52%) - .4%), var(--fold-edge) calc(var(--crease-at, 52%) - .2%), var(--fold-dark) calc(var(--crease-at, 52%) + .3%) 100%), var(--paper-relief);
    background-size: 220px 8px, 100% 100%, 320px 320px;
    background-repeat: repeat-x, no-repeat, repeat;
    background-position: left top, 0 0, var(--tex-at, 0 0);
    background-blend-mode: normal, normal, hard-light;
    --fold-lite: rgba(255, 252, 244, .16); --fold-edge: rgba(255, 252, 244, .55); --fold-dark: rgba(60, 40, 20, .07);
  }
  .paper-fold .step[data-ring="5"] a { background-image: var(--line-ember), linear-gradient(var(--crease, 112deg), var(--fold-lite) 0 calc(var(--crease-at, 52%) - .4%), var(--fold-edge) calc(var(--crease-at, 52%) - .2%), var(--fold-dark) calc(var(--crease-at, 52%) + .3%) 100%), var(--paper-relief); }
  .paper-fold .step[data-ring="4"] a, .paper-fold .step[data-ring="5"] a, .paper-fold .rung:nth-child(4) { --fold-lite: rgba(255, 252, 244, .06); --fold-edge: rgba(255, 252, 244, .2); --fold-dark: rgba(0, 0, 0, .22); }
  .paper-fold .step:nth-child(1) a, .paper-fold .rung:nth-child(1) { --crease: 116deg; --crease-at: 47%; }
  .paper-fold .step:nth-child(2) a, .paper-fold .rung:nth-child(2) { --crease: 104deg; --crease-at: 56%; }
  .paper-fold .step:nth-child(3) a, .paper-fold .rung:nth-child(3) { --crease: 121deg; --crease-at: 50%; }
  .paper-fold .step:nth-child(4) a, .paper-fold .rung:nth-child(4) { --crease: 99deg; --crease-at: 58%; }
  .paper-fold .step:nth-child(5) a { --crease: 110deg; --crease-at: 46%; }
  /* the bridge: a folded ribbon instead of a drawn cable (app.js folds the ribbon, so without scripts the cable stays) */
  .js.paper-fold .bridge-arc { display: none; }
  .paper-fold .bridge-ribbon { display: inline; filter: url(#paper-lift); }
}

/* ---------- the cut-paper edition (2026-10-04, his picks from the paper round) ----------
   Cut paper for the figures. The handmade sheet only under the title, where nothing small has to be read.
   The title cut from paper, "for Good" laid on a gold sheet the way the Utopia disc is layered.
   His quotes on cut paper instead of linen, and every person in soft fabric, lit from the top left.
   All of it is screen-only: the PDF keeps flat color. */
:root {
  --sheet: #F0E8D8;
  --title-layer: #E8C267;
  --quote-paper: #FBF7EE;
  --quote-back: var(--lean);
  --deckle-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='22' viewBox='0 0 1200 22'%3E%3Cpath d='M0 22.0H1200V7.4L1194 8.7L1188 7.6L1182 6.6L1176 8.4L1170 9.4L1164 8.8L1158 8.1L1152 9.2L1146 9.6L1140 8.5L1134 8.8L1128 8.8L1122 9.0L1116 9.9L1110 11.0L1104 10.2L1098 9.8L1092 10.9L1086 11.3L1080 12.0L1074 11.9L1068 12.7L1062 14.1L1056 12.9L1050 13.4L1044 13.8L1038 12.8L1032 12.7L1026 11.5L1020 11.1L1014 10.5L1008 9.8L1002 10.3L996 10.9L990 10.3L984 10.3L978 9.9L972 10.4L966 11.1L960 12.3L954 12.1L948 10.6L942 10.0L936 11.0L930 10.1L924 8.8L918 9.5L912 8.6L906 9.1L900 8.9L894 8.5L888 9.8L882 9.7L876 10.1L870 10.2L864 11.6L858 12.4L852 12.6L846 12.3L840 11.4L834 10.9L828 12.0L822 10.3L816 9.8L810 10.7L804 10.3L798 8.3L792 7.4L786 8.2L780 7.5L774 7.2L768 7.8L762 7.5L756 8.4L750 7.8L744 7.4L738 7.1L732 6.4L726 6.3L720 7.0L714 6.7L708 6.9L702 5.2L696 5.2L690 6.2L684 5.5L678 5.3L672 5.4L666 5.5L660 5.7L654 7.0L648 8.0L642 9.0L636 8.1L630 8.8L624 10.1L618 10.4L612 9.9L606 8.4L600 9.7L594 10.0L588 8.8L582 7.9L576 9.0L570 8.9L564 9.6L558 9.7L552 9.1L546 10.5L540 10.0L534 10.3L528 9.9L522 11.1L516 10.0L510 9.2L504 9.9L498 10.0L492 10.1L486 10.2L480 10.0L474 9.7L468 8.8L462 9.0L456 9.7L450 9.0L444 9.2L438 10.4L432 10.6L426 11.7L420 13.0L414 12.0L408 11.2L402 12.4L396 12.6L390 12.0L384 13.1L378 13.7L372 11.7L366 11.9L360 12.9L354 12.6L348 11.7L342 11.8L336 12.2L330 12.6L324 11.8L318 12.6L312 12.9L306 12.2L300 11.4L294 11.5L288 10.6L282 10.1L276 9.1L270 9.9L264 9.2L258 7.8L252 7.0L246 7.3L240 7.8L234 6.8L228 6.1L222 8.0L216 9.2L210 7.7L204 7.1L198 8.4L192 9.3L186 9.1L180 9.6L174 9.8L168 8.2L162 7.4L156 8.1L150 8.4L144 8.1L138 6.7L132 6.6L126 8.1L120 9.3L114 9.2L108 9.0L102 9.8L96 8.9L90 8.6L84 9.8L78 9.8L72 9.8L66 9.6L60 9.2L54 8.5L48 7.8L42 8.0L36 8.0L30 6.5L24 5.4L18 6.0L12 6.7L6 6.3L0 7.4Z'/%3E%3C/svg%3E");
  --deckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='22' viewBox='0 0 1200 22'%3E%3Cpath d='M0 0H1200V14.6L1194 13.3L1188 14.4L1182 15.4L1176 13.6L1170 12.6L1164 13.2L1158 13.9L1152 12.8L1146 12.4L1140 13.5L1134 13.2L1128 13.2L1122 13.0L1116 12.1L1110 11.0L1104 11.8L1098 12.2L1092 11.1L1086 10.7L1080 10.0L1074 10.1L1068 9.3L1062 7.9L1056 9.1L1050 8.6L1044 8.2L1038 9.2L1032 9.3L1026 10.5L1020 10.9L1014 11.5L1008 12.2L1002 11.7L996 11.1L990 11.7L984 11.7L978 12.1L972 11.6L966 10.9L960 9.7L954 9.9L948 11.4L942 12.0L936 11.0L930 11.9L924 13.2L918 12.5L912 13.4L906 12.9L900 13.1L894 13.5L888 12.2L882 12.3L876 11.9L870 11.8L864 10.4L858 9.6L852 9.4L846 9.7L840 10.6L834 11.1L828 10.0L822 11.7L816 12.2L810 11.3L804 11.7L798 13.7L792 14.6L786 13.8L780 14.5L774 14.8L768 14.2L762 14.5L756 13.6L750 14.2L744 14.6L738 14.9L732 15.6L726 15.7L720 15.0L714 15.3L708 15.1L702 16.8L696 16.8L690 15.8L684 16.5L678 16.7L672 16.6L666 16.5L660 16.3L654 15.0L648 14.0L642 13.0L636 13.9L630 13.2L624 11.9L618 11.6L612 12.1L606 13.6L600 12.3L594 12.0L588 13.2L582 14.1L576 13.0L570 13.1L564 12.4L558 12.3L552 12.9L546 11.5L540 12.0L534 11.7L528 12.1L522 10.9L516 12.0L510 12.8L504 12.1L498 12.0L492 11.9L486 11.8L480 12.0L474 12.3L468 13.2L462 13.0L456 12.3L450 13.0L444 12.8L438 11.6L432 11.4L426 10.3L420 9.0L414 10.0L408 10.8L402 9.6L396 9.4L390 10.0L384 8.9L378 8.3L372 10.3L366 10.1L360 9.1L354 9.4L348 10.3L342 10.2L336 9.8L330 9.4L324 10.2L318 9.4L312 9.1L306 9.8L300 10.6L294 10.5L288 11.4L282 11.9L276 12.9L270 12.1L264 12.8L258 14.2L252 15.0L246 14.7L240 14.2L234 15.2L228 15.9L222 14.0L216 12.8L210 14.3L204 14.9L198 13.6L192 12.7L186 12.9L180 12.4L174 12.2L168 13.8L162 14.6L156 13.9L150 13.6L144 13.9L138 15.3L132 15.4L126 13.9L120 12.7L114 12.8L108 13.0L102 12.2L96 13.1L90 13.4L84 12.2L78 12.2L72 12.2L66 12.4L60 12.8L54 13.5L48 14.2L42 14.0L36 14.0L30 15.5L24 16.6L18 16.0L12 15.3L6 15.7L0 14.6Z'/%3E%3C/svg%3E");
}
.sheet, .felt { display: none; }
.title-sheet { position: relative; isolation: isolate; }
@media screen {
  /* the title and the opening crowd sit on one sheet of handmade paper, torn along the bottom */
  .paper-cut .title-sheet { margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) clamp(26px, 3.4vw, 40px); }
  .paper-cut .sheet {
    display: block; position: absolute; z-index: -1; left: 0; right: 0; top: -160px; bottom: 0; pointer-events: none;
    filter: drop-shadow(0 1px 1px rgba(var(--paper-shade), .16)) drop-shadow(0 6px 9px rgba(var(--paper-shade), .13));
  }
  .paper-cut .sheet::before {
    content: ""; position: absolute; inset: 0;
    background: var(--paper-scatter) 0 0 / 700px 700px, var(--paper-ground) 0 0 / 512px 512px, var(--sheet);
    -webkit-mask: linear-gradient(#000 0 0) left top / 100% calc(100% - 20px) no-repeat, var(--deckle) left bottom / 1200px 22px repeat-x;
    mask: linear-gradient(#000 0 0) left top / 100% calc(100% - 20px) no-repeat, var(--deckle) left bottom / 1200px 22px repeat-x;
  }
  /* at the very top the bar would read as a strip across the sheet, so it frosts only once the page scrolls */
  .js.paper-cut .topbar:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* the title, cut from paper: pressed relief inside the letters and a soft lift off the sheet */
  .paper-cut .title { filter: drop-shadow(0 1px .5px rgba(var(--paper-shade), .42)) drop-shadow(0 5px 6px rgba(var(--paper-shade), .18)); }
  .paper-cut .t-hand { filter: drop-shadow(.036em .05em 0 var(--title-layer)); }
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .paper-cut .t-cut {
      background: var(--paper-relief) 0 0 / 300px 300px, currentColor;
      background-blend-mode: hard-light;
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent;
      padding: .14em .16em .12em; margin: -.14em -.16em -.12em;
    }
  }

  /* his quotes on cut paper: a cream card, cut by hand, laid on a sheet of green */
  .paper-cut .swatch-body { position: relative; }
  .paper-cut .swatch-body::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--paper-relief) 80px 40px / 320px 320px, var(--quote-back);
    background-blend-mode: hard-light;
    transform: translate(7px, 8px) rotate(1.3deg);
    clip-path: polygon(1% 0, 100% 1.4%, 99.2% 100%, 0 98.6%);
  }
  .paper-cut .cloth {
    background: var(--paper-ground) 37px 91px / 512px 512px, var(--quote-paper);
    -webkit-mask: var(--deckle-top) 0 0 / 600px 11px repeat-x, linear-gradient(#000 0 0) 0 10px / 100% calc(100% - 20px) no-repeat, var(--deckle) 0 100% / 600px 11px repeat-x;
    mask: var(--deckle-top) 0 0 / 600px 11px repeat-x, linear-gradient(#000 0 0) 0 10px / 100% calc(100% - 20px) no-repeat, var(--deckle) 0 100% / 600px 11px repeat-x;
  }
  .paper-cut .together .swatch-body::before { transform: translate(8px, 9px) rotate(.3deg); }
  .paper-cut .cloth::before { display: none; }

  /* every person in soft fabric: a fine weave, and a light from the top left (app.js lays both over each figure) */
  .paper-cut .felt { display: inline; pointer-events: none; }
  .felt-weave { fill: url(#felt-weave); }
  .felt-shade { fill: url(#felt-shade); }
}
