/* Random or Reason: the landing page and the notes, from the designer's tokens (handoff 2026-11-22).
   Markup is written by scripts/build_random_or_reason.py; behaviour in random-or-reason.js. */
:root {
  --ink: #17171C; --paper: #F4EEDF; --paper-light: #FBF8F1; --paper-fur: #F1EBDD; --white: #FFFFFF;
  --text-muted: #33312C; --text-caption: #4A4740;
  --yellow: #F2D64B; --red: #D9472F; --red-text: #B5361F;
  --news: #E4DFD1; --engraving-paper: #E9DEC3; --engraving-ink: #2A1C10;
  --pixel-bg: #17171C; --pixel-tile: #22222A; --pixel-text: #F4EEDF; --pixel-muted: #D2CCBE;
  --verdict-grounded: #A9B646; --verdict-likely-read: #F1B7BF; --verdict-autopilot: #F2D64B;
  --verdict-random: #9DB9DD; --verdict-unclear: #D9472F; --verdict-unchecked: #F4EEDF;
  --aqua-paper: #FBF9F4;
  --riso-red: #FF5A52; --riso-blue: #2B4FD8; --riso-blue-dark: #1B2F8A; --riso-blue-text: #1E3AA8;
  --font-sans: 'Inter Tight', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-display: 'Dela Gothic One', 'Inter Tight', sans-serif;
  --fs-hero-number: clamp(96px, 22vw, 300px);
  --fs-h1: clamp(48px, 8vw, 124px);
  --fs-h2: clamp(34px, 4.6vw, 68px);
  --fs-h3: clamp(24px, 2.6vw, 36px);
  --fs-lede: 20px; --fs-body: 17px; --fs-small: 15px; --fs-kicker: 13px; --fs-caption: 12px;
  --ls-heading: -0.03em;
  --container: 1240px; --gutter: 24px; --section-pad: clamp(48px, 7vw, 104px); --gap-columns: 40px;
  --rule: 1.5px solid var(--ink); --rule-heavy: 2px solid var(--ink); --rule-double: 3px double var(--ink);
  --radius-control: 4px; --radius-chip: 2px;
  --dur-micro: .2s; --ease-fold: cubic-bezier(.6, 0, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--yellow); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-body);
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: inherit; }
a:hover { opacity: .75; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--riso-blue); outline-offset: 3px; }
code { font-family: var(--font-mono); }
.em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
h1 em, h2 em, h3 em, p em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.wrap { max-width: var(--container); margin: 0 auto; padding: var(--section-pad) var(--gutter); }
.kicker { font-family: var(--font-mono); font-size: var(--fs-kicker); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; }
.h2 { margin: 0; font-size: var(--fs-h2); line-height: 1; letter-spacing: var(--ls-heading); font-weight: 700; }
.h3 { margin: 0; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.lede { margin: 0; font-size: var(--fs-lede); line-height: 1.5; font-weight: 500; }
.src { margin: 0; font-family: var(--font-mono); font-size: var(--fs-caption); line-height: 1.6; color: var(--text-caption); }
.src a, .note a { text-underline-offset: 2px; }
.col { display: flex; flex-direction: column; min-width: 0; }
.row { display: flex; flex-wrap: wrap; min-width: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn { border: 0; border-radius: var(--radius-control); padding: 14px 22px; min-height: 48px; font-size: 16px; font-weight: 700;
  background: var(--ink); color: var(--paper); text-decoration: none; display: inline-flex; align-items: center;
  transition: opacity var(--dur-micro) ease; }
.btn:hover { opacity: .82; }
html:not(.js) .js-only { display: none; }
.js .no-js { display: none; }
main { overflow-x: clip; }
.seg { align-self: flex-start; display: flex; flex-wrap: wrap; padding: 3px; border: var(--rule); border-radius: var(--radius-control); }
.seg button { border: 0; padding: 12px 16px; min-height: 44px; border-radius: var(--radius-chip); font-size: 15px; font-weight: 700;
  background: transparent; color: inherit; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.div { height: 34px; background: var(--ink); }
.scene { position: relative; width: min(100%, 460px); aspect-ratio: 400 / 250; }
.scene > img, .scene > svg, .scene > picture, .scene > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }

/* ---------- header and hero ---------- */
.top { background: var(--yellow); }
.top .wrap { padding-top: 20px; display: flex; flex-direction: column; gap: 22px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px;
  border-bottom: var(--rule); }
.logo { font-family: var(--font-display); font-size: 18px; text-decoration: none; text-transform: uppercase; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 13px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.menu > a { padding: 12px; text-decoration: none; }
.menu > a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; padding: 10px 12px; border: var(--rule); border-radius: var(--radius-control); }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: var(--rule); min-width: 200px; text-transform: none; letter-spacing: 0; }
.langs li a { display: block; padding: 8px 10px; text-decoration: none; font-family: var(--font-sans); font-size: 15px; font-weight: 600; }
.langs li a[aria-current] { background: var(--ink); color: var(--paper); }
.hero-kicker { margin: 0; }
.hero-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; margin: 0; font-weight: 700; }
.hero-num { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-hero-number); line-height: .86; letter-spacing: -0.02em; }
.hero-line { flex: 1 1 320px; min-width: 0; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.hero-src { margin: -14px 0 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; }
.hero-act { display: flex; flex-direction: column; gap: 12px; }
.hero-lead { margin: 0; max-width: 680px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; font-weight: 600; }
.hero-act label { font-family: var(--font-mono); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.burrow { position: relative; margin-top: 44px; }
.stage { position: absolute; left: 56%; bottom: 100%; width: 40%; height: auto; display: block; overflow: visible; pointer-events: none;
  clip-path: inset(-600px -4000px 0 -4000px); }
.stage img { width: 100%; height: auto; display: block; }
.strip { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: var(--ink); border-radius: 6px; }
.strip input { flex: 1 1 320px; min-width: 0; padding: 16px 14px; min-height: 56px; border: 0; background: transparent;
  color: var(--paper); font-family: var(--font-mono); font-size: clamp(14px, 1.3vw, 18px); }
.strip button { border: 0; padding: 16px 26px; min-height: 56px; border-radius: var(--radius-control); font-size: 17px;
  font-weight: 800; background: var(--yellow); color: var(--ink); }
.strip button.done { background: var(--white); }
.hero-note { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; }
.hero-or { align-self: flex-start; font-weight: 700; font-size: 16px; text-underline-offset: 4px; }

/* ---------- research note ---------- */
.research { background: var(--paper); }
.research .wrap { display: flex; flex-direction: column; gap: 32px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.mast { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 16px; border-bottom: var(--rule-double); }
.mast .meta { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.research .cols { gap: 40px 56px; }
.research .left { flex: 1.15 1 440px; gap: 20px; }
.research .h2 { font-size: clamp(34px, 4.4vw, 64px); }
.newspaper { columns: 2 240px; column-gap: 32px; column-rule: 1px solid var(--ink); font-size: 17px; line-height: 1.6; }
.newspaper p { margin: 0 0 12px; }
.newspaper p:last-child { margin: 0; }
.pull { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; padding-top: 8px; }
.pull picture, .pull img { width: 150px; height: auto; display: block; }
.pull p { flex: 1 1 260px; margin: 0; padding: 14px 18px; background: var(--yellow); font-size: 19px; line-height: 1.4; font-weight: 700; }
.research .right { flex: 1 1 400px; gap: 28px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.stats li { flex: 1 1 150px; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--white); }
.stats li:nth-child(2) { background: var(--ink); color: var(--yellow); }
.stats li:nth-child(3) { background: var(--yellow); }
.stats b { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; }
.stats span { font-size: 15px; line-height: 1.4; font-weight: 600; }
.bars { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: var(--rule-heavy); margin: 0; }
.bars figcaption { font-family: var(--font-mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 64px; gap: 14px; align-items: center; }
.bar-row span { font-size: 16px; font-weight: 600; }
.bar-row i { display: block; height: 26px; background: #E3DCC8; }
.bar-row i::after { content: ""; display: block; height: 100%; width: var(--w); background: #8A867C; }
.bar-row.right i::after { background: var(--ink); }
.bar-row.wrong i::after { background: var(--red); }
.bar-row b { font-family: var(--font-display); font-weight: 400; font-size: 24px; text-align: right; }
.thin { height: 10px; background: var(--paper); border-top: var(--rule-double); }

/* ---------- maze ---------- */
.maze { background: var(--paper-light); }
.maze .wrap { display: flex; flex-direction: column; gap: 40px; }
.maze .cols { align-items: center; gap: 40px 56px; }
.maze .pic { flex: 1 1 340px; display: flex; justify-content: center; }
.maze .pic img { width: min(100%, 440px); height: auto; display: block; }
.maze .text { flex: 1.25 1 480px; gap: 20px; }
.maze p { margin: 0; }
.maze .body { font-size: 17px; line-height: 1.6; }
.maze .cols2 { align-items: flex-start; gap: 40px 56px; }
.maze .chains { flex: 1.3 1 520px; }
.maze .chains .h3 { margin-bottom: 16px; }
.maze .chains > p { margin-bottom: 18px; }
.chain { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 14px 0; border-top: var(--rule); }
.chain b { flex: 0 0 150px; font-size: 17px; }
.chain code { flex: 1 1 240px; font-size: 15px; line-height: 1.5; }
.tag { font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 8px; border: var(--rule); }
.chain:first-of-type .tag { background: var(--ink); color: var(--paper-light); }
.chain-note { margin: 0; padding: 12px 0; border-top: var(--rule); font-family: var(--font-mono); font-size: 13px; color: var(--text-caption); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 18px 0 0; list-style: none; border-top: var(--rule);
  font-size: 16px; font-weight: 700; }
.chips li { padding: 10px 14px; border: var(--rule); border-radius: var(--radius-control); }
.maze .side { flex: 1 1 340px; gap: 20px; }
.watch { display: flex; align-items: center; gap: 18px; padding: 16px; border: var(--rule); }
.watch picture, .watch img { flex: none; width: 132px; height: auto; display: block; }
.watch p { font-size: 16px; line-height: 1.5; }
.thin2 { height: 12px; background: var(--paper-light); border-top: var(--rule-heavy); border-bottom: var(--rule-heavy); }

/* ---------- demo ---------- */
.demo { position: relative; background-color: var(--news); background-image: radial-gradient(rgba(23,23,28,.2) 1.1px, rgba(23,23,28,0) 1.6px);
  background-size: 7px 7px; overflow: clip; }
.demo .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.demo .text { flex: 1 1 360px; gap: 20px; }
.demo .text p { margin: 0; font-size: 18px; line-height: 1.55; background: var(--news); }
.demo .btn { align-self: flex-start; }
.ground { position: absolute; bottom: 0; width: 121px; height: auto; display: block; pointer-events: none; }
.ground.g1 { left: 3%; }
.ground.g2 { left: 44%; transform: scaleX(-1); }
.ground.g3 { right: 5%; width: 132px; transform: scaleX(-1); }
.chat { position: relative; flex: 1 1 460px; min-width: 0; background: var(--paper); border: var(--rule-heavy); display: flex;
  flex-direction: column; min-height: 540px; margin-top: 70px; }
.perch { position: absolute; bottom: 100%; width: 121px; height: auto; display: block; pointer-events: none; }
.perch.p1 { right: 28px; }
.perch.p2 { left: 36px; width: 99px; transform: scaleX(-1); }
.chat-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: var(--rule-heavy);
  background-color: var(--paper); background-image: radial-gradient(rgba(23,23,28,.3) 1.1px, rgba(23,23,28,0) 1.5px);
  background-size: 6px 6px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.chat-head span { background: var(--paper); padding: 0 4px; }
.chat-log { display: flex; flex-direction: column; gap: 14px; padding: 18px; flex: 1; }
.msg { align-self: flex-start; max-width: 88%; padding: 14px 16px; border: var(--rule); background: var(--white); font-size: 15px; line-height: 1.6; }
.msg ol { margin: 0; padding-left: 20px; }
.msg .more { font-family: var(--font-mono); font-size: 13px; color: var(--text-caption); }
.msg b { display: block; margin-bottom: 6px; }
.you { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.you q { quotes: none; padding: 12px 18px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 700; }
.you small { padding: 4px 10px; border: var(--rule); background: var(--white); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.ask { font-size: 16px; line-height: 1.5; font-weight: 600; background-image: radial-gradient(rgba(23,23,28,.16) 1px, rgba(23,23,28,0) 1.5px); background-size: 6px 6px; }
.ask span { background: var(--white); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 2px 4px; }
.ok-note { align-self: flex-start; padding: 8px 12px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.chat-input { padding: 12px 16px; border-top: var(--rule-heavy); font-family: var(--font-mono); font-size: 13px; color: var(--text-caption); }
[data-mode="auto"] .cons, [data-mode="cons"] .auto { display: none; }
.chat-log [data-step] { animation: rr-pop .45s ease both; }
.chat-log [data-step][hidden] { display: none; }
.dots { height: 36px; background-color: var(--news); background-image: radial-gradient(var(--ink) 34%, rgba(23,23,28,0) 37%); background-size: 12px 12px; }

/* ---------- signals (engraving) ---------- */
.signals { background: var(--engraving-paper); color: var(--engraving-ink); }
.signals .wrap { display: flex; flex-wrap: wrap; gap: 40px; }
.signals .text { flex: 1 1 380px; gap: 22px; }
.signals .text p { margin: 0; font-size: 18px; line-height: 1.55; }
.signals .text .note { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.siglist { flex: 1.4 1 480px; min-width: 0; margin: 0; padding: 0; list-style: none; border-bottom: 1.5px solid var(--engraving-ink); counter-reset: sig; }
.siglist li { display: flex; gap: 18px; align-items: baseline; padding: 20px 0; border-top: 1.5px solid var(--engraving-ink); counter-increment: sig; }
.siglist li::before { content: counter(sig, decimal-leading-zero); font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 34px; line-height: 1; width: 52px; flex: none; }
.siglist h3 { margin: 0 0 4px; font-size: 20px; }
.siglist p { margin: 0; font-size: 17px; line-height: 1.45; }
.okchip { margin-left: 6px; padding: 3px 8px; border: 1.5px solid var(--engraving-ink); border-radius: 3px; font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; vertical-align: middle; }
.hatch { height: 30px; background-color: var(--engraving-paper); background-image: repeating-linear-gradient(115deg, var(--engraving-ink) 0 1.5px, rgba(42,28,16,0) 1.5px 6px);
  border-top: 1.5px solid var(--engraving-ink); border-bottom: 1.5px solid var(--engraving-ink); }

/* ---------- verdicts (pixel) ---------- */
.verdicts { background: var(--pixel-bg); color: var(--pixel-text); }
.verdicts .wrap { display: flex; flex-direction: column; gap: 32px; }
.verdicts .head { align-items: flex-end; justify-content: space-between; gap: 24px; }
.verdicts .text { flex: 1 1 420px; gap: 18px; }
.verdicts .kicker { color: var(--yellow); }
.verdicts .text p { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.55; }
.pixels { flex: 1.6 1 520px; min-width: 0; }
.pixels img { width: 100%; height: auto; display: block; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.vgrid li { border: 3px solid var(--pixel-text); padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--pixel-tile); }
.vgrid .sw { display: flex; gap: 4px; }
.vgrid .sw i { width: 14px; height: 14px; background: var(--c); }
.vgrid .sw i:nth-child(2) { opacity: .6; }
.vgrid .sw i:nth-child(3) { opacity: .3; }
.vgrid h3 { margin: 0; font-size: 19px; line-height: 1.2; }
.vgrid code { font-size: 13px; color: var(--yellow); }
.vgrid p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--pixel-muted); }
.checker { height: 24px; background: conic-gradient(#C9A06B 25%, var(--ink) 0 50%, #C9A06B 0 75%, var(--ink) 0) 0 0 / 24px 24px; }

/* ---------- science (watercolour) ---------- */
.science { position: relative; overflow: clip; background: var(--aqua-paper); }
.science > .wcbg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.science .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.science .pic { flex: 1 1 380px; display: flex; justify-content: center; }
.fly { position: relative; width: min(100%, 500px); aspect-ratio: 400 / 250; }
.fly img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.fly .rr-flyB, .fly .rr-flyC { opacity: 0; }
.science .text { flex: 1.3 1 480px; gap: 20px; }
.science .lead { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; }
.science .watchlink { font-family: var(--font-mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.science ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.55; }
.paper-edge { height: 56px; overflow: hidden; background: var(--paper); }
.paper-edge img { display: block; width: 100%; height: 56px; }

/* ---------- install (riso) ---------- */
.install { background: var(--paper); }
.install .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.install .text { flex: 1 1 360px; gap: 18px; }
.install .kicker, .install .h2 { color: var(--riso-blue); }
.install .h2 em { color: #E0423A; }
.install ol { margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.8; }
.install .req { margin: 0; font-family: var(--font-mono); font-size: 13px; }
.badge { align-self: flex-start; padding: 10px 14px; border: 2px solid var(--riso-blue); color: var(--riso-blue-text); font-size: 14px;
  font-weight: 700; line-height: 1.4; background-color: var(--paper); background-image: radial-gradient(rgba(43,79,216,.28) 1.2px, rgba(43,79,216,0) 1.6px);
  background-size: 6px 6px; }
.install .text > a { align-self: flex-start; font-size: 16px; font-weight: 700; color: var(--riso-blue-text); }
.install .hook { margin: 0; font-size: 15px; line-height: 1.55; }
.install .hook code { font-size: 14px; }
.install .text picture, .install .text > img { width: min(100%, 460px); }
.install .text picture img { width: 100%; height: auto; display: block; }
.splash { position: relative; flex: 1.3 1 520px; min-width: 0; margin: 10px 0 0 12px; }
.splash > svg { position: absolute; left: 50%; top: 85%; width: 1px; height: 1px; overflow: visible; pointer-events: none; z-index: 2; }
.plate { transform-origin: 50% 85%; background-color: var(--riso-red); background-image: radial-gradient(var(--riso-blue) 1.7px, rgba(43,79,216,0) 2.1px); background-size: 7px 7px; }
.plate > div { transform: translate(-12px, -10px); background: var(--riso-blue); color: var(--white); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.plate .tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.plate .seg { border-color: var(--white); }
.plate .seg button[aria-pressed="true"] { background: var(--white); color: var(--riso-blue-text); }
.plate .copy { border: 0; padding: 12px 18px; min-height: 44px; border-radius: var(--radius-control); font-size: 15px; font-weight: 800; background: var(--riso-red); color: var(--ink); }
.plate .copy.done { background: var(--white); color: var(--riso-blue-text); }
.plate pre { margin: 0; padding: 20px; background: var(--riso-blue-dark); font-family: var(--font-mono); font-size: 14px; line-height: 1.7;
  color: var(--white); white-space: pre-wrap; word-break: break-all; user-select: all; }
.plate pre::before { content: "$ "; color: #FFB3AE; user-select: none; }
.plate .os-name { font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.js .plate [data-os].off { display: none; }
.plate .hint { font-family: var(--font-mono); font-size: 12px; }
.rdots { height: 30px; background-color: var(--riso-red); background-image: radial-gradient(var(--riso-blue) 1.7px, rgba(43,79,216,0) 2.1px); background-size: 7px 7px; }

/* ---------- notes on the landing ---------- */
.notes { background: var(--ink); color: var(--paper); }
.notes .wrap { display: flex; flex-direction: column; gap: 28px; }
.notes .head { justify-content: space-between; align-items: flex-end; gap: 20px; }
.notes .head p { margin: 0; max-width: 420px; font-size: 18px; line-height: 1.5; color: var(--pixel-muted); }
.nlist { margin: 0; padding: 0; list-style: none; border-bottom: 1.5px solid rgba(244,238,223,.4); }
.nlist li { border-top: 1.5px solid rgba(244,238,223,.4); }
.nlist a { display: flex; gap: 16px; padding: 18px 0; text-decoration: none; }
.nlist a::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; background: var(--yellow); }
.nlist .d { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--pixel-muted); }
.nlist b { display: block; font-size: 19px; }
.nlist .s { display: block; font-size: 16px; line-height: 1.5; color: var(--pixel-muted); }
.notes .more { display: flex; flex-wrap: wrap; gap: 12px; }
.notes .more a { padding: 14px 20px; border: 1.5px solid var(--paper); text-decoration: none; font-weight: 700; }
.notes .more a:first-child { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ---------- share + faq + footer ---------- */
.faq { background: var(--paper-fur); }
.faq .wrap { display: flex; flex-direction: column; gap: 48px; }
.share { align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 40px; border-bottom: var(--rule); }
.share .pic { flex: 1 1 320px; display: flex; justify-content: center; }
.share .pic picture, .share .pic img { width: min(100%, 440px); height: auto; display: block; }
.share .text { flex: 1.2 1 420px; gap: 20px; }
.share .say { margin: 0; font-size: clamp(26px, 3vw, 42px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.share .btn { align-self: flex-start; padding: 16px 26px; min-height: 54px; font-size: 17px; }
.qa { gap: 40px; }
.qa .h2 { flex: 1 1 260px; }
.qa-list { flex: 2 1 520px; min-width: 0; border-top: var(--rule); }
.qa details { border-bottom: var(--rule); padding: 20px 0; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 20px; font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 28px; font-weight: 400; transition: transform .25s ease; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa h3 { margin: 0; font-size: inherit; }
.qa p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; border-top: var(--rule);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.foot a { font-weight: 600; }
.frieze { background: var(--yellow); padding: 24px 0 0; overflow: clip; }
.frieze picture, .frieze img { display: block; width: 100%; height: 330px; object-fit: cover; object-position: 50% 100%; }

/* ---------- notes pages ---------- */
.page-notes { background: var(--paper); }
.ntop .wrap { padding-bottom: clamp(40px, 6vw, 80px); gap: clamp(32px, 5vw, 64px); }
.ntop .hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 56px; }
.ntop h1 { flex: 2 1 520px; min-width: 0; margin: 0; font-size: var(--fs-h1); line-height: .95; letter-spacing: var(--ls-heading); font-weight: 700; }
.ntop .hero p { flex: 1 1 300px; min-width: 0; margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; font-weight: 500; }
.nmain { max-width: var(--container); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(48px, 7vw, 96px); display: flex; flex-direction: column; gap: 32px; }
.nmeta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-mono);
  font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.nmeta a { padding: 12px 16px; border: var(--rule); text-decoration: none; font-family: var(--font-sans); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.card { display: flex; flex-direction: column; background: var(--white); border: var(--rule); }
.card.big { flex-direction: row; flex-wrap: wrap; }
.card .pic { background: var(--paper-light); border-bottom: var(--rule); }
.card.big .pic { flex: 1 1 380px; min-width: 0; background: var(--yellow); display: flex; align-items: center; border-bottom: 0; border-right: var(--rule); }
.card .pic img { width: 100%; height: auto; display: block; }
.card .body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 24px; flex: 1; }
.card.big .body { flex: 1.3 1 440px; min-width: 0; padding: clamp(24px, 3vw, 44px); gap: 16px; }
.chip { align-self: flex-start; padding: 4px 9px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.card h2, .card h3 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.card.big h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.02; letter-spacing: var(--ls-heading); }
.card h2 a, .card h3 a { text-decoration: none; }
.card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.card.big p { font-size: 19px; }
.card .foot2 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; }
.card time { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-caption); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.post { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(48px, 7vw, 96px); }
.crumbs { margin: 0 0 24px; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.post .chip { display: inline-block; margin-bottom: 16px; }
.post h1 { margin: 0 0 20px; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: var(--ls-heading); }
.post .lede { margin-bottom: 28px; color: var(--text-muted); }
.post .body { font-size: 18px; line-height: 1.65; }
.post .body ul { padding-left: 22px; }
.post .body li { margin: 6px 0; }
.post .body code { font-size: .92em; padding: 1px 5px; background: var(--white); border: 1px solid #D8D0BC; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: var(--rule); font-weight: 700; }
.nfoot { background: var(--paper); }
.nfoot .foot { max-width: var(--container); margin: 0 auto; padding: 20px var(--gutter) 28px; }

/* ---------- motion ---------- */
@keyframes rr-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rr-sm-0{0.000%{visibility:visible}4.157%{visibility:visible}4.167%{visibility:hidden}33.323%{visibility:hidden}33.333%{visibility:visible}37.490%{visibility:visible}37.500%{visibility:hidden}66.657%{visibility:hidden}66.667%{visibility:visible}70.823%{visibility:visible}70.833%{visibility:hidden}100%{visibility:hidden}}
@keyframes rr-sm-1{0%{visibility:hidden}4.157%{visibility:hidden}4.167%{visibility:visible}8.323%{visibility:visible}8.333%{visibility:hidden}37.490%{visibility:hidden}37.500%{visibility:visible}41.657%{visibility:visible}41.667%{visibility:hidden}70.823%{visibility:hidden}70.833%{visibility:visible}74.990%{visibility:visible}75.000%{visibility:hidden}100%{visibility:hidden}}
@keyframes rr-sm-2{0%{visibility:hidden}8.323%{visibility:hidden}8.333%{visibility:visible}12.490%{visibility:visible}12.500%{visibility:hidden}41.657%{visibility:hidden}41.667%{visibility:visible}45.823%{visibility:visible}45.833%{visibility:hidden}74.990%{visibility:hidden}75.000%{visibility:visible}79.157%{visibility:visible}79.167%{visibility:hidden}100%{visibility:hidden}}
@keyframes rr-sm-3{0%{visibility:hidden}12.490%{visibility:hidden}12.500%{visibility:visible}16.657%{visibility:visible}16.667%{visibility:hidden}45.823%{visibility:hidden}45.833%{visibility:visible}49.990%{visibility:visible}50.000%{visibility:hidden}79.157%{visibility:hidden}79.167%{visibility:visible}83.323%{visibility:visible}83.333%{visibility:hidden}100%{visibility:hidden}}
@keyframes rr-sm-4{0%{visibility:hidden}16.657%{visibility:hidden}16.667%{visibility:visible}20.823%{visibility:visible}20.833%{visibility:hidden}49.990%{visibility:hidden}50.000%{visibility:visible}54.157%{visibility:visible}54.167%{visibility:hidden}83.323%{visibility:hidden}83.333%{visibility:visible}87.490%{visibility:visible}87.500%{visibility:hidden}100%{visibility:hidden}}
@keyframes rr-sm-5{0%{visibility:hidden}20.823%{visibility:hidden}20.833%{visibility:visible}24.990%{visibility:visible}25.000%{visibility:hidden}54.157%{visibility:hidden}54.167%{visibility:visible}58.323%{visibility:visible}58.333%{visibility:hidden}87.490%{visibility:hidden}87.500%{visibility:visible}91.657%{visibility:visible}91.667%{visibility:hidden}100%{visibility:hidden}}
@keyframes rr-sm-6{0%{visibility:hidden}24.990%{visibility:hidden}25.000%{visibility:visible}29.157%{visibility:visible}29.167%{visibility:hidden}58.323%{visibility:hidden}58.333%{visibility:visible}62.490%{visibility:visible}62.500%{visibility:hidden}91.657%{visibility:hidden}91.667%{visibility:visible}95.823%{visibility:visible}95.833%{visibility:hidden}100%{visibility:hidden}}
@keyframes rr-sm-7{0%{visibility:hidden}29.157%{visibility:hidden}29.167%{visibility:visible}33.323%{visibility:visible}33.333%{visibility:hidden}62.490%{visibility:hidden}62.500%{visibility:visible}66.657%{visibility:visible}66.667%{visibility:hidden}95.823%{visibility:hidden}95.833%{visibility:visible}100%{visibility:visible}}
.rr-sm { visibility: hidden; }
.rr-sm-0 { visibility: visible; }
@keyframes rr-fly { 0% { transform: translate(6%, 10%) scale(.96); } 50% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-55%, -70%) scale(1.3); } }
@keyframes rr-flyA { 0%, 54% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes rr-flyB { 0%, 54% { opacity: 0; } 70%, 78% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes rr-flyC { 0%, 76% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes rr-wc-l { from { transform: translateX(150px); } to { transform: translateX(-300px); } }
@keyframes rr-wc-r { from { transform: translateX(-150px); } to { transform: translateX(300px); } }
@keyframes rr-gr-l { from { transform: translateX(70px); } to { transform: translateX(-190px); } }
@keyframes rr-gr-r { from { transform: translateX(-70px); } to { transform: translateX(190px); } }
@keyframes rr-cross { from { transform: translateX(-22%); } to { transform: translateX(10%); } }
@keyframes rr-fold { 0% { transform: scale(1, 1); border-radius: 0; } 10% { transform: scale(1.03, .96); border-radius: 0; } 34% { transform: scale(.2, .1); border-radius: 50%; }
  40% { transform: scale(.25, .085); border-radius: 50%; } 62% { transform: scale(.22, .1); border-radius: 50%; } 86% { transform: scale(1.04, .97); border-radius: 0; } 100% { transform: scale(1, 1); border-radius: 0; } }
@keyframes rr-fold-in { 0%, 10% { border-radius: 0; } 34%, 62% { border-radius: 50%; } 86%, 100% { border-radius: 0; } }
@keyframes rr-drop { 0%, 22% { transform: translate(0, 0) scale(.2); opacity: 0; } 26% { transform: translate(0, 0) scale(.5); opacity: 1; }
  46% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 1; animation-timing-function: ease-in; }
  62% { transform: translate(calc(var(--dx) * 1.06), calc(var(--dy) + 28px)) scale(.9); opacity: 1; animation-timing-function: ease-in-out; }
  84% { transform: translate(0, 0) scale(.3); opacity: 1; } 88%, 100% { transform: translate(0, 0) scale(.2); opacity: 0; } }
@keyframes rr-blot { 0%, 30% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } 32% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 1; }
  42% { transform: translate(var(--dx), var(--dy)) scale(1.2); opacity: 1; } 50%, 64% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 1; }
  80% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 1; } 81%, 100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
.rr-drop, .rr-blot { opacity: 0; }
.rr-fold .plate { animation: rr-fold 1.6s var(--ease-fold); }
.rr-fold .plate > div { animation: rr-fold-in 1.6s var(--ease-fold); overflow: hidden; }
.rr-fold .rr-drop { animation: rr-drop 1.6s cubic-bezier(.2, .7, .3, 1); }
.rr-fold .rr-blot { animation: rr-blot 1.6s ease-out; }

/* Scroll-driven scenes. Each scene host names a view timeline; its frames and layers follow it.
   Browsers without animation-timeline get the same progress from random-or-reason.js as --p (0..1),
   applied as a negative delay on a paused one-second animation. */
.rr-sm-0 { --sm: rr-sm-0; } .rr-sm-1 { --sm: rr-sm-1; } .rr-sm-2 { --sm: rr-sm-2; } .rr-sm-3 { --sm: rr-sm-3; }
.rr-sm-4 { --sm: rr-sm-4; } .rr-sm-5 { --sm: rr-sm-5; } .rr-sm-6 { --sm: rr-sm-6; } .rr-sm-7 { --sm: rr-sm-7; }
@supports (animation-timeline: view()) {
  [data-sda] { view-timeline-name: --rr; }
  .science { view-timeline-name: --rrsci; }
  [data-sda] .rr-sm { animation: var(--sm) step-end both; animation-timeline: --rr; animation-range: entry 0% exit 100%; }
  .rr-rab { animation: rr-cross linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .fly { animation: rr-fly linear both; animation-timeline: --rr; animation-range: entry 0% exit 100%; }
  .fly .rr-flyA { animation: rr-flyA linear both; animation-timeline: --rr; animation-range: entry 0% exit 100%; }
  .fly .rr-flyB { animation: rr-flyB linear both; animation-timeline: --rr; animation-range: entry 0% exit 100%; }
  .fly .rr-flyC { animation: rr-flyC linear both; animation-timeline: --rr; animation-range: entry 0% exit 100%; }
  .wcbg .rr-wc-l { animation: rr-wc-l linear both; animation-timeline: --rrsci; animation-range: entry 0% exit 100%; }
  .wcbg .rr-wc-l2 { animation: rr-wc-l linear both; animation-timeline: --rrsci; animation-range: entry 20% exit 100%; }
  .wcbg .rr-wc-r { animation: rr-wc-r linear both; animation-timeline: --rrsci; animation-range: entry 0% exit 100%; }
  .wcbg .rr-wc-r2 { animation: rr-wc-r linear both; animation-timeline: --rrsci; animation-range: entry 20% exit 100%; }
  .wcbg .rr-gr-l { animation: rr-gr-l linear both; animation-timeline: --rrsci; animation-range: entry 0% exit 100%; }
  .wcbg .rr-gr-r { animation: rr-gr-r linear both; animation-timeline: --rrsci; animation-range: entry 0% exit 100%; }
}
@supports not (animation-timeline: view()) {
  .sda [data-sda] .rr-sm, .sda .rr-rab, .sda .fly, .sda .fly img, .sda .wcbg [class^="rr-"] {
    animation-duration: 1s; animation-play-state: paused; animation-fill-mode: both; animation-delay: calc(var(--p, 0) * -.999s); }
  .sda [data-sda] .rr-sm { animation-name: var(--sm); animation-timing-function: step-end; }
  .sda .rr-rab { animation-name: rr-cross; animation-timing-function: linear; }
  .sda .fly { animation-name: rr-fly; animation-timing-function: linear; }
  .sda .fly .rr-flyA { animation-name: rr-flyA; } .sda .fly .rr-flyB { animation-name: rr-flyB; } .sda .fly .rr-flyC { animation-name: rr-flyC; }
  .sda .wcbg .rr-wc-l, .sda .wcbg .rr-wc-l2 { animation-name: rr-wc-l; } .sda .wcbg .rr-wc-r, .sda .wcbg .rr-wc-r2 { animation-name: rr-wc-r; }
  .sda .wcbg .rr-gr-l { animation-name: rr-gr-l; } .sda .wcbg .rr-gr-r { animation-name: rr-gr-r; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fly .rr-flyB, .fly .rr-flyC { display: none; }
}
@media (max-width: 800px) {
  .burrow { margin-top: 112px; }
  .stage { left: 34%; width: 62%; }
  .chat { margin-top: 90px; min-height: 0; }
}
@media (max-width: 520px) {
  .bar-row { grid-template-columns: 1fr 64px; }
  .bar-row i { grid-column: 1 / -1; grid-row: 2; }
  .chain b { flex-basis: 100%; }
  .menu > a { padding: 10px 6px; }
  .top .wrap { gap: 16px; }
  .hero-line { font-size: 26px; }
}
