/* themes.css — the three visual systems the block library can wear.
 *
 * Keyed by data-theme on <html>: "vid" | "oliver" | "slow2". Every block and
 * hero is written against the neutral class names below (.blk .wrap .kicker
 * .lede .btn .card .stat .joinform …); the theme only changes the tokens and a
 * few signature rules, so a block reads as /vid, /oliver or /slow2 without
 * knowing which one it is in.
 *
 * Tokens, in the order they matter:
 *   colour   --paper --surface --ink --body --muted --line --line-strong
 *            --accent --accent-deep --accent-fg --night --night-fg --map-fill --map-stroke
 *   type     --font-body --font-display --font-ui  (+ --h1 --h2 --h3 sizes, --display-weight, --display-ls)
 *   shape    --radius --radius-lg --shadow --shadow-lift --btn-radius --btn-shadow --card-border
 *   rhythm   --wrap --gutter --sec-pad --sec-rule
 *
 * No caution yellow anywhere (Dan, Sep 3). /oliver's chartreuse "signal" is
 * replaced by its sage and its red.
 */

/* ===================== tokens ===================== */

:root {
  color-scheme: light;
  --wrap: 1080px;
  --gutter: 28px;
  --sec-pad: clamp(64px, 8vw, 104px);
}

/* ---- vid: light, clean, cinematic. One blue, a pink underline. ---- */
html[data-theme="vid"] {
  --paper: #f7f9ff;
  --surface: #ffffff;
  --surface-raised: #eef3ff;
  --ink: #172033;
  --body: #3f4c63;
  --muted: #647189;
  --line: rgba(23, 32, 51, .11);
  --line-strong: rgba(23, 32, 51, .2);
  --accent: #2457ff;
  --accent-deep: #173fc9;
  --accent-fg: #ffffff;
  --accent-2: #ff5c8a;
  --night: #05070d;
  --night-fg: #e9efff;
  --map-fill: #ffffff;
  --map-stroke: #aab8d0;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Manrope', -apple-system, Helvetica, Arial, sans-serif;
  --font-ui: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --display-weight: 560;
  --display-ls: -.05em;
  --h1: clamp(46px, 8vw, 92px);
  --h2: clamp(38px, 6vw, 66px);
  --h3: 24px;
  --body-size: 16px;
  --radius: 3px;
  --radius-lg: 3px;
  --shadow: 0 12px 34px rgba(32, 49, 89, .06);
  --shadow-lift: 0 18px 48px rgba(32, 49, 89, .1);
  --card-border: 1px solid var(--line);
  --btn-radius: 3px;
  --btn-shadow: none;
  --btn-border: 1px solid var(--accent);
  --btn-font: 750 12.5px/1.2 var(--font-ui);
  --btn-ls: .02em;
  --sec-rule: 1px solid var(--line);
  --page-bg: radial-gradient(circle at 86% 5%, rgba(36, 87, 255, .1), transparent 28rem), radial-gradient(circle at 4% 42%, rgba(255, 92, 138, .07), transparent 24rem), var(--paper);
}

/* ---- oliver: warm editorial. Serif body, condensed display, near-white, site red. ---- */
html[data-theme="oliver"] {
  --paper: #f7f9f8;
  --surface: #ffffff;
  --surface-raised: #eef3f1;
  --ink: #20292f;
  --body: #46525a;
  --muted: #6d777c;
  --line: #d5dcda;
  --line-strong: #b8c2c0;
  --accent: #a63d52;
  --accent-deep: #792e40;
  --accent-fg: #ffffff;
  --accent-2: #68847a;          /* sage */
  --sage-pale: #dfeae6;
  --night: #292438;
  --night-fg: #f7f9f8;
  --map-fill: #e8efec;
  --map-stroke: #66766f;
  --font-body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-display: 'Archivo', 'Arial Narrow', Impact, sans-serif;
  --font-ui: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --display-weight: 800;
  --display-ls: -.06em;
  --h1: clamp(64px, 11vw, 140px);
  --h2: clamp(44px, 7vw, 76px);
  --h3: 28px;
  --body-size: 18px;
  --radius: 2px;
  --radius-lg: 2px;
  --shadow: 4px 4px 0 var(--accent-2);
  --shadow-lift: 6px 6px 0 var(--accent-2);
  --card-border: 1px solid var(--ink);
  --btn-radius: 2px;
  --btn-shadow: 3px 3px 0 var(--ink);
  --btn-border: 1.5px solid var(--ink);
  --btn-font: 700 13px/1.15 var(--font-ui);
  --btn-ls: .045em;
  --sec-rule: 1px solid var(--line-strong);
  --page-bg: var(--paper);
}

/* ---- slow2: warm paper, plum, hairlines, no shadows. ---- */
html[data-theme="slow2"] {
  --paper: #f7f2e8;
  --surface: #fffdf8;
  --surface-raised: #eee6d9;
  --ink: #29251f;
  --body: #4a443c;
  --muted: #696158;
  --line: #d7cec0;
  --line-strong: #aaa092;
  --accent: #7a3f58;
  --accent-deep: #5e2c42;
  --accent-fg: #fffdf8;
  --accent-2: #9a536f;
  --night: #29251f;
  --night-fg: #fffdf8;
  --map-fill: #eee6d9;
  --map-stroke: #958b7e;
  --font-body: 'Instrument Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', Helvetica, Arial, sans-serif;
  --font-ui: 'Instrument Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --display-weight: 600;
  --display-ls: -.055em;
  --h1: clamp(54px, 7.5vw, 94px);
  --h2: clamp(40px, 6vw, 68px);
  --h3: 26px;
  --body-size: 18px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: none;
  --shadow-lift: none;
  --card-border: 1px solid var(--line);
  --btn-radius: 10px;
  --btn-shadow: none;
  --btn-border: 1px solid var(--accent);
  --btn-font: 600 15px/1.35 var(--font-ui);
  --btn-ls: 0;
  --sec-rule: 1px solid var(--line);
  --page-bg: var(--paper);
}

/* ===================== base ===================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
strong, b { font-weight: 700; color: var(--ink); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-ls); line-height: 1; text-wrap: balance; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.wrap { width: min(100%, var(--wrap)); margin: 0 auto; padding: 0 var(--gutter); }
.blk { padding: var(--sec-pad) 0; border-top: var(--sec-rule); }
.blk h2 { max-width: 860px; font-size: var(--h2); margin-bottom: 24px; }
.blk h3 { font-size: var(--h3); line-height: 1.1; }
.kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--accent); font-family: var(--font-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; }
.lede { max-width: 760px; color: var(--body); font-size: clamp(17px, 2vw, 22px); line-height: 1.5; }
.lede strong { color: var(--ink); }
.muted { color: var(--muted); font-size: 14px; }
.src { display: block; margin-top: 10px; font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.src a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; cursor: help; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 22px;
  background: var(--accent); color: var(--accent-fg);
  border: var(--btn-border); border-radius: var(--btn-radius); box-shadow: var(--btn-shadow);
  font: var(--btn-font); letter-spacing: var(--btn-ls); text-decoration: none; text-align: center; cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-fg); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
html[data-theme="vid"] .btn:hover { box-shadow: 0 9px 22px rgba(36, 87, 255, .2); transform: translateY(-1px); }
html[data-theme="oliver"] .btn { border-color: var(--ink); }
html[data-theme="oliver"] .btn:hover { border-color: var(--ink); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
html[data-theme="oliver"] .btn-ghost { background: var(--surface); }
html[data-theme="slow2"] .btn:hover { transform: translateY(-1px); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: var(--sec-rule); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.topbar .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 8px var(--gutter); max-width: 1180px; margin: 0 auto; }
.wordmark { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.wordmark em { font-style: normal; color: var(--accent); }
.topbar .btn { min-height: 38px; padding: 8px 14px; }
html[data-theme="oliver"] .topbar { border-bottom: 1px solid var(--ink); }
html[data-theme="oliver"] .wordmark { font-weight: 800; }
html[data-theme="oliver"] .wordmark em { color: var(--accent-deep); }

/* cards (why, people, orgs, precedents) */
.cards { display: grid; gap: 14px; margin-top: 44px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px 24px 28px; font-size: 16px; line-height: 1.55; color: var(--body); }
.card h3 { margin-bottom: 12px; color: var(--ink); }
.card p + p { margin-top: 10px; }
.card .btn { margin-top: 18px; }
html[data-theme="vid"] .card { background: rgba(255,255,255,.88); overflow: hidden; }
html[data-theme="vid"] .card::before { content: ''; position: absolute; top: 0; left: 22px; width: 44px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
html[data-theme="oliver"] .card:nth-child(3n+2) { box-shadow: 4px 4px 0 var(--surface-raised); }
html[data-theme="oliver"] .card:nth-child(3n+3) { box-shadow: 4px 4px 0 rgba(166, 61, 82, .6); }
html[data-theme="slow2"] .card { background: rgba(255, 253, 248, .78); }

/* why: three proofs as a rule-separated row on slow2, cards elsewhere */
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.proof { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px 22px; font-size: 16px; line-height: 1.55; color: var(--body); }
.proof a { font-weight: 600; }
html[data-theme="slow2"] .proofs { gap: 0; border-block: 1px solid var(--line); }
html[data-theme="slow2"] .proof { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 28px 26px 28px 0; }
html[data-theme="slow2"] .proof + .proof { padding-left: 26px; border-left: 1px solid var(--line); }
.closer { margin-top: 44px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(26px, 4vw, 44px); line-height: 1.12; letter-spacing: -.035em; }
.closer span { color: var(--accent); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.stat { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px 22px; color: var(--body); font-size: 15px; line-height: 1.5; }
.stat .big { display: block; margin-bottom: 12px; color: var(--accent); font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(46px, 6vw, 66px); line-height: 1; letter-spacing: -.05em; }
.stat b { display: block; margin-bottom: 8px; color: var(--ink); font-size: 18px; line-height: 1.25; }
.stat .src { margin-top: 14px; }
.stat-caveat { margin-top: 32px; max-width: 760px; color: var(--muted); font-size: 15px; }
html[data-theme="slow2"] .stats { gap: 38px; }
html[data-theme="slow2"] .stat { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 0; }
html[data-theme="vid"] .stat { background: rgba(255,255,255,.88); position: relative; overflow: hidden; }
html[data-theme="vid"] .stat::before { content: ''; position: absolute; top: 0; left: 22px; width: 44px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* map */
.mapwrap { margin-top: 40px; }
.map { position: relative; padding: clamp(14px, 2.6vw, 30px); background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); color: var(--ink); }
.map svg { display: block; width: 100%; height: auto; }
.map .states path { fill: var(--map-fill); stroke: var(--map-stroke); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map { --ev-font: var(--font-ui); --ev-tip-radius: var(--radius); --ev-tip-border: var(--line-strong); --ev-tip-bg: var(--surface); --ev-tip-fg: var(--ink); --ev-tip-muted: var(--body); --ev-tip-link: var(--accent-deep); --ev-focus: var(--ink); --ev-stroke: var(--surface); --ev-legend-fg: var(--muted); }
.map-note { margin-top: 18px; max-width: 760px; font-family: var(--font-ui); font-size: 14px; color: var(--muted); }
html[data-theme="slow2"] .map { border-radius: 24px; }

/* people */
.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.co { display: grid; align-content: start; gap: 9px; min-width: 0; padding: 22px 18px; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--body); font-size: 15px; line-height: 1.42; }
.co b { color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; line-height: 1.1; letter-spacing: -.025em; }
.co .chip { margin-top: 4px; }
html[data-theme="slow2"] .people { gap: 0; border-block: 1px solid var(--line); }
html[data-theme="slow2"] .co { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
html[data-theme="slow2"] .co + .co { border-left: 1px solid var(--line); }
.findhead { margin-top: 56px; }
.findhead h3 { margin-bottom: 10px; font-size: clamp(26px, 4vw, 40px); }
.findhead p { max-width: 680px; color: var(--body); }
.chip { display: inline-block; font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--accent); line-height: 1.35; }

/* actions */
.acards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.acard { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px 26px 30px; }
.acard-top { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 5px 15px; margin-bottom: 16px; }
.anum { grid-row: 1 / 3; color: var(--accent); font-family: var(--font-display); font-weight: var(--display-weight); font-size: 18px; line-height: 1.25; }
.acard h3 { align-self: start; font-size: clamp(24px, 2.5vw, 31px); }
.acard .chip { grid-column: 2; justify-self: start; color: var(--muted); }
.acard p { color: var(--body); max-width: 640px; font-size: 16px; }
.acard .btn { margin-top: 20px; }
.sub-links { margin-top: 18px; display: grid; gap: 11px; font-size: 16px; color: var(--body); }
.sub-links a { font-weight: 600; }
.orgrow { display: grid; grid-template-columns: 116px 1fr; gap: 10px; align-items: baseline; }
.orgrow .orgname { font-weight: 700; min-width: 0; }
.orgrow span:last-child { color: var(--muted); font-size: 15px; }
.aftercard { margin: 44px auto 0; max-width: 760px; text-align: center; color: var(--muted); font-size: 16px; }
html[data-theme="vid"] .acard { background: rgba(255,255,255,.88); }
html[data-theme="vid"] .anum { color: var(--accent); font-weight: 600; }
html[data-theme="oliver"] .anum { font-family: var(--font-display); }

/* orgs (channels) */
.orgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 40px; }
.org { display: block; padding: 18px 20px; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--body); font-size: 16px; line-height: 1.5; text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.org b { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight); font-size: 21px; letter-spacing: -.02em; }
.org:hover { border-color: var(--accent); color: var(--body); transform: translateY(-1px); }
.org .arrow { color: var(--accent); font-family: var(--font-ui); font-weight: 700; }
html[data-theme="slow2"] .orgs { gap: 0; border-top: 1px solid var(--line); }
html[data-theme="slow2"] .org { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 4px; }
html[data-theme="slow2"] .org:hover { transform: none; padding-left: 10px; }

/* capture / statement forms (one contract, shared) */
.joinbox { margin-top: 40px; max-width: 760px; padding: 26px 28px 28px; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.joinbox .chip { display: inline-block; margin-bottom: 10px; }
.joinbox h3 { margin-bottom: 10px; font-size: clamp(24px, 3vw, 32px); }
.joinbox > p { color: var(--body); font-size: 16px; max-width: 620px; }
.joinform { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 560px) { .joinform { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; } }
.joinform input { width: 100%; min-width: 0; padding: 12px 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--btn-radius); font: 400 16px/1.4 var(--font-ui); }
.joinform input::placeholder { color: var(--muted); }
.joinform input:focus { background: var(--surface); border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent); outline-offset: 0; }
.joinform input[aria-invalid="true"] { border-color: var(--accent); }
.joinform .btn { white-space: nowrap; }
.joinnote { margin-top: 11px; font-family: var(--font-ui); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.joinerr { margin-top: 11px; font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--accent-deep); }
.joindone { margin-top: 18px; display: grid; gap: 8px; }
.joindone h3 { font-size: clamp(24px, 3vw, 32px); }
.joindone p { color: var(--body); font-size: 16px; }
html[data-theme="oliver"] .joinform input { border: 1.5px solid var(--ink); border-radius: 2px; background: var(--surface); }

/* capture band: oliver's dark #join */
html[data-theme="oliver"] .blk-capture { background: var(--night); color: var(--night-fg); border-top-color: var(--accent); }
html[data-theme="oliver"] .blk-capture h2, html[data-theme="oliver"] .blk-capture h3, html[data-theme="oliver"] .blk-capture strong { color: #fff; }
html[data-theme="oliver"] .blk-capture .lede, html[data-theme="oliver"] .blk-capture .joinbox > p, html[data-theme="oliver"] .blk-capture .joindone p { color: rgba(247,249,248,.78); }
html[data-theme="oliver"] .blk-capture .kicker { color: #d4a7b1; }
html[data-theme="oliver"] .blk-capture .joinbox { background: transparent; border: 0; box-shadow: none; padding: 0; margin-top: 30px; }
html[data-theme="oliver"] .blk-capture .joinnote { color: rgba(247,249,248,.56); }
html[data-theme="oliver"] .blk-capture .joinerr { color: #f0b9c6; }
html[data-theme="oliver"] .blk-capture .joinform input { border-color: var(--surface); }
html[data-theme="oliver"] .blk-capture .btn { border-color: var(--surface); box-shadow: 3px 3px 0 var(--surface); }
html[data-theme="oliver"] .blk-capture .btn:hover { box-shadow: 1px 1px 0 var(--surface); }
html[data-theme="oliver"] .blk-capture .btn-ghost { color: #fff; }

/* precedents */
.precedents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.precedent { background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px 22px; color: var(--body); font-size: 16px; line-height: 1.55; }
.precedent .year { display: block; margin-bottom: 8px; color: var(--accent); font-family: var(--font-display); font-weight: var(--display-weight); font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.precedent b { display: block; margin-bottom: 6px; font-size: 19px; }
html[data-theme="slow2"] .precedents { gap: 0; border-block: 1px solid var(--line); }
html[data-theme="slow2"] .precedent { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 26px 24px 26px 0; }
html[data-theme="slow2"] .precedent + .precedent { padding-left: 24px; border-left: 1px solid var(--line); }
.precedents-src { margin-top: 18px; }

/* chatbot placeholder */
.chat { margin-top: 40px; max-width: 780px; padding: 26px 28px 28px; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.chat-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 4px 10px; border: 1px dashed var(--line-strong); border-radius: 999px; font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chat-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chat-egs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chat-egs button { padding: 8px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--body); font: 500 14px/1.3 var(--font-ui); cursor: pointer; text-align: left; }
.chat-egs button:hover { border-color: var(--accent); color: var(--accent-deep); }
.chat-note { margin-top: 12px; font-family: var(--font-ui); font-size: 13.5px; color: var(--muted); }
.chat-reply { margin-top: 14px; padding: 14px 16px; background: var(--paper); border-left: 3px solid var(--accent); font-size: 15px; color: var(--body); }

/* statement */
.stmt { max-width: 900px; margin-top: 8px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(24px, 3.2vw, 38px); line-height: 1.22; letter-spacing: -.03em; color: var(--ink); }
.stmt strong { color: var(--accent); font-weight: inherit; }
.stmt-count { margin-top: 22px; font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--muted); }
html[data-theme="oliver"] .stmt { font-family: var(--font-body); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
html[data-theme="oliver"] .stmt strong { font-weight: 600; }

/* closing + footer */
.blk-closing { padding-bottom: 0; }
.closing-line { max-width: 940px; padding-bottom: var(--sec-pad); font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(40px, 7.5vw, 86px); line-height: 1.02; letter-spacing: -.055em; }
.closing-line em { color: var(--accent); font-style: normal; }
footer.site { padding: 36px 0 46px; background: var(--surface-raised); border-top: var(--sec-rule); color: var(--ink); font-family: var(--font-ui); font-size: 13px; }
footer.site .foot-links { display: flex; gap: 10px 22px; flex-wrap: wrap; margin: 14px 0 16px; font-size: 14px; }
footer.site .foot-links a { color: var(--accent-deep); text-decoration: none; font-weight: 600; }
footer.site .foot-fine { color: var(--muted); font-size: 13px; }
footer.site .foot-fine a { color: inherit; }
html[data-theme="oliver"] footer.site { background: var(--sage-pale); border-top: 1px solid var(--ink); }
html[data-theme="oliver"] .closing-line em { color: var(--accent-deep); font-family: var(--font-body); font-style: italic; font-weight: 500; letter-spacing: -.04em; }
html[data-theme="vid"] footer.site { background: transparent; }

/* share */
.sharebox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.sharebox .url { flex: 1 1 280px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--btn-radius); font: 500 15px/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===================== heroes ===================== */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 112px); }
.hero h1 { max-width: 1000px; font-size: var(--h1); line-height: .92; margin-bottom: 30px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { max-width: 680px; color: var(--body); font-size: clamp(20px, 2.6vw, 30px); font-weight: 500; line-height: 1.32; }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .src { margin-top: 18px; }
html[data-theme="oliver"] .hero h1 em { display: block; color: var(--accent-deep); font-family: var(--font-body); font-style: italic; font-weight: 500; letter-spacing: -.06em; }
html[data-theme="oliver"] .hero h1 { line-height: .84; }

/* photo-line: warm photo, scrim, one line, one button */
.hero-photo { background: linear-gradient(rgba(16,20,16,.5), rgba(16,20,16,.66)), var(--hero-photo) center 40% / cover no-repeat; }
.hero-photo h1, .hero-photo .hero-lede, .hero-photo .hero-lede strong { color: #fdfdf8; }
.hero-photo h1 em { color: #fdfdf8; }
html[data-theme="oliver"] .hero-photo h1 em { color: #f3d3da; }
html[data-theme="vid"] .hero-photo h1 em { color: #cfe0ff; }
html[data-theme="slow2"] .hero-photo h1 em { color: #f0d4df; }
.hero-photo .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero-photo .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.hero-photo .credit { position: absolute; right: 12px; bottom: 10px; font-family: var(--font-ui); font-size: 10.5px; letter-spacing: .02em; color: rgba(255,255,255,.6); }
.hero-photo .credit a { color: inherit; }

/* majority: the three numbers as the first screen */
.hero-majority .stats { margin-top: 0; margin-bottom: 40px; }
.hero-majority .stat .big { font-size: clamp(64px, 9vw, 120px); }

/* estimate: guess, then see */
.guess { max-width: 640px; margin-top: 30px; padding: 24px 26px 26px; background: var(--surface); border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.guess-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; }
.guess output { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -.05em; color: var(--accent); min-width: 3.2ch; text-align: right; }
.guess input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; }
.guess-scale { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.guess .btn { margin-top: 18px; }
.reveal-box { margin-top: 30px; max-width: 760px; }
.reveal-box .big { display: block; color: var(--accent); font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(72px, 12vw, 160px); line-height: .9; letter-spacing: -.06em; margin-bottom: 14px; }
.reveal-box h2 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 14px; }
.reveal-box p { max-width: 640px; color: var(--body); font-size: clamp(17px, 2vw, 21px); }

/* statement as hero */
.hero-statement .stmt { font-size: clamp(26px, 3.8vw, 46px); }
.hero-statement .joinbox { margin-top: 34px; }

/* film: full-bleed frames that settle on the CTA (reduced port of /vid) */
html.film-on body { overflow: hidden; height: 100vh; }
#film { position: fixed; inset: 0; z-index: 100; background: #05070d; color: #fff; overflow: hidden; transition: opacity .5s ease; }
#film.out { opacity: 0; pointer-events: none; }
#film .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; filter: brightness(.66) saturate(1.05); }
#film .frame.on { opacity: 1; }
#film .grain { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px), radial-gradient(circle at 50% 50%, transparent 20%, rgba(0,0,0,.56) 100%); }
#film .word { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 16px; text-align: center; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(34px, 8.5vw, 74px); line-height: 1; letter-spacing: -.045em; text-shadow: 0 2px 26px rgba(0,0,0,.8), 0 0 6px rgba(0,0,0,.45); text-wrap: balance; }
#film .word.hot { color: #ff5c8a; }
#film .hl { position: absolute; left: 20px; top: 16px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(40px, 10vw, 150px); line-height: 1; letter-spacing: -.055em; color: #fff; text-shadow: 0 2px 26px rgba(0,0,0,.6); white-space: nowrap; }
#film .hint { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-family: var(--font-ui); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #b8c3d8; pointer-events: none; }
#film .hint i { display: block; font-style: normal; font-size: 18px; color: var(--accent); animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
#film .prog { position: absolute; left: 0; top: 0; height: 3px; background: var(--accent); width: 0; }
@media (prefers-reduced-motion: reduce) { #film .hint i { animation: none; } }
.hero-film { padding-top: clamp(28px, 4vw, 48px); }
.hero-film .settled { display: grid; gap: 24px; }
.hero-film .still { position: relative; height: 40vh; min-height: 220px; border-radius: var(--radius-lg); border: var(--card-border); overflow: hidden; display: grid; place-items: center; text-align: center; padding: 16px; background: var(--hero-still) center / cover no-repeat; box-shadow: var(--shadow-lift); }
.hero-film .still::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(4,7,13,.14), rgba(4,7,13,.42)); }
.hero-film .still span { position: relative; z-index: 1; color: #fff; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(30px, 6vw, 52px); line-height: 1.02; letter-spacing: -.045em; text-shadow: 0 2px 26px rgba(0,0,0,.8); }
.hero-film .pitch { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(24px, 3.2vw, 36px); line-height: 1.16; letter-spacing: -.04em; color: var(--ink); }
.hero-film .pitch b { display: inline-block; padding: 0 3px; background: linear-gradient(transparent 58%, color-mix(in srgb, var(--accent-2, var(--accent)) 42%, transparent) 58%); color: var(--ink); font-weight: inherit; }
@media (min-width: 900px) {
  .hero-film .settled { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 28px 54px; }
  .hero-film .still { height: 52vh; min-height: 340px; max-height: 560px; grid-row: 1 / span 2; }
}

/* ===================== responsive ===================== */
@media (max-width: 900px) {
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-theme="slow2"] .co + .co { border-left: 0; }
  html[data-theme="slow2"] .co:nth-child(3n+2), html[data-theme="slow2"] .co:nth-child(3n+3) { border-left: 1px solid var(--line); }
  html[data-theme="slow2"] .co:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .cards-3, .cards-2, .stats, .proofs, .acards, .orgs, .precedents { grid-template-columns: 1fr; }
  html[data-theme="slow2"] .proof, html[data-theme="slow2"] .precedent { padding: 22px 0; }
  html[data-theme="slow2"] .proof + .proof, html[data-theme="slow2"] .precedent + .precedent { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  html[data-theme="slow2"] .stats { gap: 22px; }
  .orgrow { grid-template-columns: 1fr; gap: 2px; }
  .guess-row { grid-template-columns: 1fr; }
  .guess output { text-align: left; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .blk { padding: 60px 0; }
  .hero { padding: 60px 0 56px; }
  .hero-cta { display: grid; }
  .hero-cta .btn { width: 100%; }
  .people { grid-template-columns: 1fr 1fr; }
  html[data-theme="slow2"] .co:nth-child(n) { border-left: 0; border-top: 0; }
  html[data-theme="slow2"] .co:nth-child(even) { border-left: 1px solid var(--line); }
  html[data-theme="slow2"] .co:nth-child(n+3) { border-top: 1px solid var(--line); }
  .joinbox, .chat, .guess { padding: 22px 18px 24px; }
  .topbar .btn { font-size: 12px; }
}
