/* ─────────────────────────────────────────────────────────────
   THE EGGPLANT FILES — the studio theme (2026-10-24)
   Laid over css/style.css: every page on the same navy (ANGIE, Oct 26: "Navy blue everywhere"; no light or dark
   switch), one sky blue, a grotesk with an italic serif for the odd word, small mono labels in brackets, numbered rows, a lot of air.
   style.css still draws the props (the cassettes and their decks, the eggplant's stages, the bingo card);
   this file restyles everything around them and adds the page shell (js/shell.js): the loader, the header,
   Settings, the menu, the tile transition, the cursor, the cover's folder, dust and room, and the tapes list.
   ───────────────────────────────────────────────────────────── */

@font-face { font-family: "Courier Prime"; src: url("../assets/fonts/courier-prime-regular-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../assets/fonts/courier-prime-bold-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../assets/fonts/courier-prime-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../assets/fonts/courier-prime-bold-italic-latin.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ───────────── tokens ───────────── */
:root {
  /* the navy Museum Of Said Things opened on (ANGIE, Oct 25: "the same blue color, not purple"), now on every page */
  --ea-bg: #0b132b;
  --ea-bg-2: #132042;
  --ea-surface: #101b38;
  --ea-ink: #f1f5ff;
  --ea-ink-2: rgba(241, 245, 255, .7);
  --ea-ink-3: rgba(241, 245, 255, .46);
  --ea-line: rgba(241, 245, 255, .13);
  --ea-line-2: rgba(241, 245, 255, .24);
  --ea-accent: #38bdf8;
  --ea-accent-ink: #7dd3fc;        /* the blue for small text on the navy (contrast) */
  --ea-accent-soft: rgba(56, 189, 248, .14);
  --ea-on-accent: #04101f;
  --ea-red: #ff6b5e;
  --ea-green: #5fd38a;
  /* one typewriter for everything (her card "Typewriter everywhere", Oct 27); the old names all point at it */
  --one-font: "Courier Prime", "Courier New", Courier, monospace;
  --ea-font: var(--one-font);
  --ea-mono: var(--one-font);
  --ea-serif: var(--one-font);
  --ea-prop-type: var(--one-font);
  --ea-prop-body: var(--one-font);
  --ea-ease: cubic-bezier(.7, 0, .2, 1);
  --ea-ease-out: cubic-bezier(.16, 1, .3, 1);
  --ea-radius: 18px;
  --ea-gutter: clamp(16px, 2.4vw, 36px);
  --ea-head-h: 76px;
  --ea-nav-h: 46px; /* the sections row under the header (its capsule and the gap over it) */

  /* style.css's own tokens, pointed at the studio palette so every component follows the theme */
  --desk: var(--ea-bg);
  --desk-2: var(--ea-bg-2);
  --paper: var(--ea-surface);
  --paper-2: var(--ea-bg-2);
  --paper-edge: var(--ea-line-2);
  --ink: var(--ea-ink);
  --ink-soft: var(--ea-ink-2);
  --ink-faint: var(--ea-ink-3);
  --eggplant: var(--ea-accent-ink);
  --eggplant-2: var(--ea-accent);
  --eggplant-glow: var(--ea-accent);
  --stamp: var(--ea-red);
  --leaf: var(--ea-green);
  --highlight: #f6e05e;
  --on-desk: var(--ea-ink);
  --on-desk-soft: var(--ea-ink-2);
  --radius: var(--ea-radius);
  --shadow: none;
  --font-type: var(--ea-mono);
  --font-body: var(--ea-font);
  /* the manila's fibres: a story page's folder, the incident folders */
  --ff-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .22 0 0 0 0 .06 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* the props keep their own type: a cassette label, the folder, a rubber stamp are typed, not set */
.t3, .say-deck, .cv-folder, .stamp, .stamp-big, .ph, .crt, .phone, .terminal, .qb-stamp, .vm-stamp, .t3-seal {
  --font-type: var(--ea-prop-type);
  --font-body: var(--ea-prop-body);
}
/* a cassette is a cassette in either theme: paper labels, dark ink */
.t3 { --ink: #221c17; --ink-soft: #544a3f; --ink-faint: #8a7d6c; --paper: #f1e8d4; --paper-2: #e7dcc2; --paper-edge: #d6c7a6; }

/* ───────────── base ───────────── */
html { background: var(--ea-bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--ea-bg);
  color: var(--ea-ink);
  font-family: var(--ea-font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .6s var(--ea-ease), color .6s var(--ea-ease);
}
::selection { background: var(--ea-accent); color: #fff; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--ea-accent); outline-offset: 3px; }
.skip { background: var(--ea-ink); color: var(--ea-bg); border-radius: 999px; font-family: var(--ea-mono); font-size: 12px; }
.ea-label {
  margin: 0; font-family: var(--ea-mono); font-size: 12px; line-height: 1.3; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ea-ink-2); font-weight: 450;
}
.ea-accent, .ea-em { font-family: var(--ea-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.noscript { color: var(--ea-ink); font-family: var(--ea-mono); }

/* ───────────── the loader ───────────── */
.ea-loader {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ea-ink); color: var(--ea-bg); padding: var(--ea-gutter);
  /* if js/shell.js never runs, the loader lets go by itself */
  animation: ea-loader-gone .6s var(--ea-ease) 6s forwards;
}
html:not(.js) .ea-loader { display: none; }
.ea-loader.is-done { display: none; }
.ea-loader-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ea-loader-words { margin: 0; display: flex; flex-direction: column; font-size: clamp(28px, 4.4vw, 64px); line-height: .98; letter-spacing: -.04em; font-weight: 500; }
.ea-loader-words i { font-family: var(--ea-serif); font-weight: 400; color: var(--ea-accent); }
.ea-loader-count { margin: 0; display: grid; grid-template-columns: auto auto; align-items: start; font-variant-numeric: tabular-nums; }
.ea-loader-count b { font-weight: 500; font-size: clamp(72px, 15vw, 240px); line-height: .8; letter-spacing: -.06em; }
.ea-loader-count > span { font-size: clamp(24px, 3vw, 44px); line-height: 1; margin-top: .1em; }
.ea-loader-count small { grid-column: 1 / -1; justify-self: end; font-family: var(--ea-mono); font-size: 12px; text-transform: uppercase; opacity: .6; margin-top: 10px; }
.ea-loader-bar { height: 1px; background: rgba(245, 239, 255, .18); margin-top: 22px; overflow: hidden; }
.ea-loader-bar i { display: block; height: 100%; width: 0; background: var(--ea-accent); }
@keyframes ea-loader-gone { to { opacity: 0; visibility: hidden; } }

/* ───────────── the header ───────────── */
.ea-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; gap: 16px;
  min-height: var(--ea-head-h); padding: 14px var(--ea-gutter);
  transition: background-color .4s var(--ea-ease), backdrop-filter .4s, transform .5s var(--ea-ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.ea-head.is-scrolled {
  background: color-mix(in srgb, var(--ea-bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--ea-line);
}
.ea-head.is-away { transform: translateY(-100%); }
body[data-view="cover"] .ea-head:not(.is-scrolled) { color: var(--ea-ink); }
.ea-logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap;
  font-weight: 550; font-size: 15px; letter-spacing: -.02em;
}
.ea-logo img { width: 22px; height: 22px; }
.ea-nav { display: flex; gap: 26px; margin: 0 auto; }
.ea-nav a {
  position: relative; text-decoration: none; font-size: 14px; color: var(--ea-ink-2); padding: 6px 0;
  transition: color .3s;
}
.ea-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ea-ease);
}
.ea-nav a:hover, .ea-nav a[aria-current="page"] { color: var(--ea-ink); }
.ea-nav a:hover::after, .ea-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.ea-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
body[data-view="cover"] .ea-nav + #hud[hidden] + .ea-actions,
body[data-view="guide"] .ea-nav + #hud[hidden] + .ea-actions { margin-left: 0; }
body[data-view="scene"] .ea-logo { display: none; }

.ea-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; isolation: isolate;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ea-line-2);
  background: transparent; color: var(--ea-ink); font: 500 14px/1 var(--ea-font); letter-spacing: -.01em; white-space: nowrap;
  transition: color .45s var(--ea-ease), border-color .45s var(--ea-ease);
}
.ea-pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ea-ink);
  transform: translateY(101%); transition: transform .5s var(--ea-ease);
}
.ea-pill:hover, .ea-pill[aria-expanded="true"] { color: var(--ea-bg); border-color: var(--ea-ink); }
.ea-pill:hover::before, .ea-pill[aria-expanded="true"]::before { transform: none; }
.ea-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ea-accent); box-shadow: 0 0 0 3px var(--ea-accent-soft); }
/* a label that rolls up on hover: the second copy waits underneath */
.ea-roll { position: relative; display: inline-block; overflow: hidden; line-height: 1.2; }
.ea-roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.ea-roll, .ea-roll::after { transition: transform .5s var(--ea-ease); }
.ea-pill:hover .ea-roll { transform: translateY(-100%); }
.ea-burger { display: inline-grid; gap: 4px; width: 14px; }
.ea-burger i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ea-ease); }
.ea-menu-btn[aria-expanded="true"] .ea-burger i:first-child { transform: translateY(2.75px) rotate(45deg); }
.ea-menu-btn[aria-expanded="true"] .ea-burger i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* the game's top bar lives inside the header on story pages */
.ea-head #hud {
  position: static; flex: 1 1 auto; min-width: 0; padding: 0; background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; gap: 10px 14px;
}
.ea-head #hud .brand { color: var(--ea-ink); font-family: var(--ea-font); text-transform: none; letter-spacing: -.02em; font-size: 15px; font-weight: 550; display: inline-flex; align-items: center; gap: 10px; }
.ea-head #hud .brand-egg { width: 22px; height: 22px; vertical-align: middle; filter: none; }
.ea-head #hud .brand-egg-live { filter: none; width: 22px; height: 22px; margin-top: -11px; }
.ea-head .stats { gap: 14px; }
.ea-head .stat { font-family: var(--ea-mono); font-size: 12px; text-transform: uppercase; gap: 6px; }
.ea-head .stat b { font-family: var(--ea-font); font-size: 15px; font-weight: 600; }
.ea-head .stat small { color: var(--ea-ink-2); font-size: 11px; letter-spacing: .02em; }
.ea-head .tools { gap: 6px; }
.ea-head .tools button {
  height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ea-line-2); background: transparent;
  color: var(--ea-ink); font: 500 13px/1 var(--ea-mono); transition: background-color .3s, border-color .3s, color .3s;
}
.ea-head .tools button:hover { background: var(--ea-ink); color: var(--ea-bg); border-color: var(--ea-ink); }
.ea-head .tools .count .of { opacity: .5; }
.ea-head .tools .tool-name { font: inherit; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--ea-ink-2); margin: 0 1px 0 3px; }
.ea-head .tools button:hover .tool-name { color: inherit; }
@media (max-width: 1180px) { .ea-head .tools .tool-name { display: none; } } /* the bar stays one row; the counts keep their titles */
.ea-head .tools button.has-new { border-color: var(--ea-accent); }
.ea-head .tools button.has-new::after { box-shadow: 0 0 0 2px var(--ea-bg); background: var(--ea-red); }

/* Settings: the switches under the header */
.ea-settings {
  position: absolute; top: calc(100% - 4px); right: var(--ea-gutter); width: 260px; padding: 16px;
  border-radius: 16px; background: var(--ea-surface); border: 1px solid var(--ea-line);
  box-shadow: 0 30px 60px -20px rgba(0, 4, 16, .6); display: grid; gap: 4px; color: var(--ea-ink);
  transform-origin: top right;
}
.ea-settings .ea-label { margin-bottom: 8px; }
.ea-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 10px 0; background: none; border: 0; border-top: 1px solid var(--ea-line); color: inherit;
  font: 500 15px/1.2 var(--ea-font); letter-spacing: -.01em; text-align: left;
}
.ea-switch i {
  position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--ea-line-2);
  transition: background-color .4s var(--ea-ease);
}
.ea-switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .45s var(--ea-ease);
}
.ea-switch[aria-checked="true"] i { background: var(--ea-accent); }
.ea-switch[aria-checked="true"] i::after { transform: translateX(16px); }

/* ───────────── the menu ───────────── */
.ea-menu {
  position: fixed; inset: 0; z-index: 65; background: var(--ea-bg); color: var(--ea-ink);
  padding: calc(var(--ea-head-h) + 24px) var(--ea-gutter) var(--ea-gutter); overflow-y: auto;
}
.ea-menu-in { display: flex; flex-direction: column; min-height: 100%; gap: 28px; max-width: 1600px; margin: 0 auto; }
.ea-menu-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ea-line); }
.ea-menu-list li { border-bottom: 1px solid var(--ea-line); overflow: hidden; }
.ea-menu-list a, .ea-menu-list button {
  display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 12px 0; text-decoration: none; color: inherit;
  background: none; border: 0; text-align: left; font: 500 clamp(34px, 6.4vw, 96px)/1 var(--ea-font); letter-spacing: -.05em;
  transition: color .4s var(--ea-ease), padding-left .6s var(--ea-ease);
}
.ea-menu-list small { font: 450 12px/1 var(--ea-mono); letter-spacing: 0; color: var(--ea-ink-3); transform: translateY(-.9em); }
.ea-menu-list a:hover, .ea-menu-list button:hover, .ea-menu-list a[aria-current="page"] { color: var(--ea-accent); padding-left: 18px; }
.ea-menu-list a:hover span, .ea-menu-list button:hover span { font-family: var(--ea-serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; }
.ea-menu-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ea-menu-settings { display: flex; flex-wrap: wrap; gap: 0 28px; min-width: min(100%, 520px); }
.ea-menu-settings .ea-switch { width: auto; flex: 1 1 140px; border-top: 0; border-bottom: 1px solid var(--ea-line); }
.ea-menu-help { margin: 0; font-family: var(--ea-mono); font-size: 12px; color: var(--ea-ink-2); text-transform: uppercase; }
html.ea-menu-open { overflow: hidden; }
/* the Menu (Angie, Oct 27 05:28: "very elegant minimal menu buttons"): a plain list, a hairline between the pages,
   the number quiet beside the name; the page you're on and the one under the pointer turn blue */
.ea-menu-list small { transform: none; }
.ea-menu-list a:hover span, .ea-menu-list button:hover span { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; }
.ea-menu-list button[aria-current="page"] { color: var(--ea-accent); padding-left: 18px; }
.ea-menu-list a:focus-visible, .ea-menu-list button:focus-visible { outline: 2px solid var(--ea-accent); outline-offset: 2px; }
.ea-menu-list a, .ea-menu-list button { padding: 16px 0; }

/* ───────────── the page ───────────── */
main {
  max-width: none; margin: 0; padding: calc(var(--ea-head-h) + var(--ea-nav-h) + clamp(28px, 6vw, 96px)) var(--ea-gutter) clamp(48px, 8vw, 120px);
}
body[data-view="cover"] main, body[data-view="room"] main { padding: 0; }

/* A story page: a wide title, a reading column, the media wider than the text */
.dossier {
  background: none; box-shadow: none; border-radius: 0; padding: 0; margin: 0; color: var(--ea-ink); animation: none;
}
.dossier {
  --col: min(760px, 100%);
  position: relative; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--col) minmax(0, 1fr); column-gap: 0;
}
.dossier > * { grid-column: 2; min-width: 0; }
.dossier > .folder-tab, .dossier > .scene-head, .dossier > .media, .dossier > .choices, .dossier > .ending-panel, .dossier > .guide-live.guide-tapes, .dossier > .guide-live.guide-incidents { grid-column: 1 / -1; }
.dossier > .egg-weight, .dossier > .stamp { grid-column: auto; }
.dossier .folder-tab {
  position: static; max-width: none; box-shadow: none; border-radius: 0; background: none; padding: 0 0 14px; margin: 0 0 clamp(22px, 3vw, 40px);
  border-bottom: 1px solid var(--ea-line); color: var(--ea-ink-2); font: 450 12px/1.3 var(--ea-mono); letter-spacing: .02em; text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 12px;
}
.dossier .folder-tab::before { content: "(" ; margin-right: -12px; }
.dossier .folder-tab::after { content: ")"; margin-right: auto; margin-left: -12px; }
.dossier > .stamp {
  top: 44px; right: 0; font-size: 12px; letter-spacing: .14em; padding: 3px 10px; border-width: 2px; opacity: .78;
  color: var(--ea-red); border-color: var(--ea-red); mix-blend-mode: normal;
}
.dossier .egg-weight { top: 64px; right: 6px; }
.scene-head { margin: 0 0 clamp(32px, 5vw, 72px); padding-right: 0; max-width: 1180px; }
.scene-head .chapter {
  margin: 0 0 18px; font: 450 12px/1.3 var(--ea-mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ea-accent-ink);
}
.scene-head .chapter::before { content: "("; }
.scene-head .chapter::after { content: ")"; }
.scene-head h1, .guide-page .scene-head h1 {
  margin: 0; font-family: var(--ea-font); font-weight: 500; font-size: clamp(42px, 7vw, 116px);
  line-height: .94; letter-spacing: -.055em; text-wrap: balance; outline: none; max-width: 15ch;
}
.scene-head h1 .ea-split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.timestamp {
  margin: 22px 0 0; display: inline-flex; align-items: center; gap: 10px; color: var(--ea-ink-2);
  font: 450 13px/1.3 var(--ea-mono); text-transform: uppercase; letter-spacing: .02em;
}
.timestamp::before { content: "↪"; font-family: var(--ea-font); color: var(--ea-accent); font-size: 18px; text-transform: none; }

/* the outcome of your last choice */
.outcome {
  background: var(--ea-surface); color: var(--ea-ink); transform: none; box-shadow: none; animation: none;
  border: 1px solid var(--ea-line); border-radius: var(--ea-radius); padding: clamp(20px, 2.4vw, 32px); margin: 0 0 clamp(28px, 4vw, 56px);
  position: relative; overflow: hidden;
}
.outcome::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ea-accent); }
.outcome .tape { display: none; }
.you-chose { color: var(--ea-ink-2); font-size: 15px; margin-bottom: 12px !important; }
.you-chose span { font: 450 12px/1.3 var(--ea-mono); text-transform: uppercase; letter-spacing: .02em; color: var(--ea-accent-ink); margin-right: 10px; }
.you-chose span::before { content: "[ "; }
.you-chose span::after { content: " ]"; }
.outcome .result { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; letter-spacing: -.02em; font-weight: 450; }
.gains li { font: 450 12px/1.2 var(--ea-mono); padding: 6px 10px; border-radius: 999px; background: var(--ea-bg-2); border: 1px solid var(--ea-line); color: var(--ea-ink); }
.gains .up { background: rgba(47, 138, 74, .12); border-color: rgba(47, 138, 74, .35); }
.gains .down, .gains .dossier { background: rgba(210, 54, 43, .1); border-color: rgba(210, 54, 43, .3); }
.gains .debt, .gains .bingo { background: var(--ea-accent-soft); border-color: rgba(56, 189, 248, .35); }
.gains .exhibit, .gains .script { background: var(--ea-surface); border-color: var(--ea-line-2); }

/* media: the photo, the clip and the tape, framed like work on a studio page */
.media { margin: 0 0 clamp(36px, 5vw, 80px); gap: clamp(14px, 1.6vw, 24px); }
.media-row { gap: clamp(14px, 1.6vw, 24px); grid-template-columns: 1.3fr 1fr; }
.m figcaption { font: 450 12px/1.4 var(--ea-mono); text-transform: uppercase; letter-spacing: .02em; color: var(--ea-ink-2); text-align: left; margin-top: 12px; }
.polaroid { background: var(--ea-bg-2); padding: 0; transform: none; box-shadow: none; border-radius: var(--ea-radius); overflow: hidden; }
.polaroid img { aspect-ratio: 16 / 8.2; background: var(--ea-bg-2); }
.polaroid .clip { display: none; }
.ph-image {
  aspect-ratio: 16 / 8.2; border-radius: inherit;
  background:
    radial-gradient(60% 80% at 70% 20%, rgba(56, 189, 248, .55), transparent 70%),
    radial-gradient(50% 70% at 10% 100%, rgba(255, 120, 200, .18), transparent 70%),
    linear-gradient(160deg, #1b1226, #0c0812);
  color: #f2eaff;
}
.ph-label { font-size: 12px; letter-spacing: .18em; }
.crt { border-radius: var(--ea-radius); padding: 0; background: #0b0a0e; box-shadow: none; overflow: hidden; }
.crt video, .ph-video { border-radius: 0; }
.m-audio { background: none; }
.deck3d:not(.say-tape) .say-deck { border-radius: var(--ea-radius); }

/* the story text */
.body { font-size: clamp(18px, 1.3vw, 21px); line-height: 1.6; letter-spacing: -.014em; }
.body p { margin: 0 0 1.05em; }
.body strong { color: inherit; font-weight: 650; }
.body em { font-family: var(--ea-serif); font-style: italic; font-size: 1.12em; letter-spacing: -.01em; }
.transcript {
  margin: 1.6em 0; padding: 0 0 0 clamp(18px, 2vw, 28px); background: none; border-left: 2px solid var(--ea-accent);
}
.transcript .who { font: 450 12px/1.3 var(--ea-mono); letter-spacing: .02em; color: var(--ea-accent-ink); margin-bottom: 10px; }
.transcript p { font-size: clamp(22px, 2.1vw, 32px); line-height: 1.22; letter-spacing: -.035em; font-weight: 500; text-wrap: pretty; }

/* the three cards (manipulation, fallacy, fun fact): numbered rows, like a studio's service list */
.analyst {
  margin: 0; padding: 18px 0; border: 0; border-top: 1px solid var(--ea-line); border-radius: 0; background: none;
  display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 6px 24px; align-items: baseline;
}
.analyst + :not(.analyst) { margin-top: 1.4em; }
.body > .analyst:last-child, .guide-live .analyst:last-child { border-bottom: 1px solid var(--ea-line); }
:not(.analyst) + .analyst { margin-top: 1.4em; }
.analyst .tag, .analyst.tagged .tag {
  position: static; background: none; padding: 0; color: var(--ea-accent-ink);
  font: 450 12px/1.4 var(--ea-mono); letter-spacing: .02em; text-transform: uppercase;
}
.analyst p { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.45; }
.analyst.tagged { border-color: var(--ea-line); background: none; }

.document {
  background: var(--ea-surface); border: 1px solid var(--ea-line); border-radius: var(--ea-radius); box-shadow: none;
  padding: clamp(20px, 2.6vw, 36px);
}
.document h3 { font: 500 14px/1.3 var(--ea-mono); letter-spacing: .04em; border-bottom: 1px solid var(--ea-line); text-align: left; padding-bottom: 12px; }
.document p { font-size: 16px; }
.fold-hint { text-align: left; font: 450 12px/1.3 var(--ea-mono); letter-spacing: .02em; color: var(--ea-red); }
.document.fold > summary { position: relative; }
.document.fold > summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; line-height: 1; transition: transform .5s var(--ea-ease); }
.document.fold[open] > summary::after { transform: rotate(45deg); }

.phone { border-radius: 30px; background: #0f0d13; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.bubble { font-family: var(--ea-font); }
.bubble.me { background: var(--ea-accent); }
.terminal { border-radius: var(--ea-radius); }
mark.declassified { background: linear-gradient(transparent 30%, var(--ea-accent-soft) 30%, var(--ea-accent-soft) 92%, transparent 92%); color: inherit; }
.redact { background: var(--ea-ink); }
.redact:hover::after { background: var(--ea-accent); font-family: var(--ea-mono); }
a.inline-link { color: var(--ea-accent-ink); }

/* outbound links */
.links { border: 0; border-top: 1px solid var(--ea-line); border-radius: 0; background: none; padding: 18px 0 0; }
.links h2 { font: 450 12px/1.3 var(--ea-mono); letter-spacing: .02em; color: var(--ea-ink-2); }
.links a { color: var(--ea-ink); }
.links a b { font-weight: 550; text-decoration-color: var(--ea-accent); }
.links a small { font-family: var(--ea-mono); color: var(--ea-ink-3); }

/* the song cards stay a lit stage, on the new type */
.track-card { border-radius: var(--ea-radius); box-shadow: none; background: radial-gradient(120% 140% at 0% 0%, #4b1f86 0%, #1e0f33 55%, #0f0819 100%); }
.tc-head, .tc-sheet-title, .tc-sec { font-family: var(--ea-mono); letter-spacing: .04em; }
.tc-lyric p { font-family: var(--ea-font); font-style: normal; font-weight: 500; letter-spacing: -.035em; }
.tc-his { font-family: var(--ea-serif); font-style: italic; font-size: 1rem; }
.tc-full-note { font-family: var(--ea-font); font-weight: 450; letter-spacing: -.02em; }
.tc-play, .tc-row { font-family: var(--ea-font); }
.tc-sheet li { grid-template-columns: minmax(0, 1fr); }
.tc-sheet .tc-sec, .tc-sheet .tc-line { grid-column: 1; }

/* ───────────── choices: big rows that fill purple ───────────── */
.choices { margin-top: clamp(40px, 6vw, 96px); border-top: 0; padding-top: 0; }
.choices h2 { font: 450 12px/1.3 var(--ea-mono); letter-spacing: .02em; color: var(--ea-ink-2); margin: 0 0 18px; }
.choices h2::before { content: "("; }
.choices h2::after { content: ")"; }
.choices ol { gap: 0; border-top: 1px solid var(--ea-ink); }
.choices.single ol { max-width: none; }
.choice {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: 0 clamp(12px, 2vw, 28px);
  width: 100%; padding: clamp(20px, 2.4vw, 34px) clamp(4px, 1vw, 12px); background: none; color: var(--ea-ink);
  border: 0; border-bottom: 1px solid var(--ea-line-2); border-radius: 0; box-shadow: none; transform: none;
  font: 500 clamp(21px, 2.3vw, 36px)/1.12 var(--ea-font); letter-spacing: -.04em; text-align: left;
  transition: color .5s var(--ea-ease);
}
.choice::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ea-accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ea-ease);
}
.choice::after {
  content: "→"; justify-self: end; font-size: .9em; transform: translateX(-8px); opacity: .5;
  transition: transform .6s var(--ea-ease), opacity .4s;
}
.choice:hover, .choice:focus-visible { color: #fff; transform: none; box-shadow: none; background: none; }
.choice:hover::before, .choice:focus-visible::before { transform: none; }
.choice:hover::after, .choice:focus-visible::after { transform: none; opacity: 1; }
.choice:active { transform: none; box-shadow: none; }
.choice .letter {
  width: 44px; height: 44px; background: none; color: inherit; border: 1px solid currentColor; border-radius: 50%;
  font: 450 13px/1 var(--ea-mono); letter-spacing: 0; opacity: .8;
}
.choice .label { padding-top: 0; }
.choice small { font: 450 12px/1.3 var(--ea-mono); letter-spacing: .02em; text-transform: uppercase; color: inherit; opacity: .6; margin-top: 8px; }
.choice.locked { color: var(--ea-ink-3); border-style: solid; border-color: var(--ea-line); background: none; cursor: not-allowed; }
.choice.locked::before, .choice.locked::after { display: none; }
.choice.locked:hover { color: var(--ea-ink-3); }
.choice.locked .letter { border-style: dashed; }
/* a wrong answer (js/engine.js wrongAnswer()): the row fills red, its words are struck through, it shakes and buzzes,
   and the note under the answers says what giving in costs */
.choice.is-wrong, .choice.is-wrong:hover, .choice.is-wrong:focus-visible { color: #fff; cursor: not-allowed; }
.choice.is-wrong::before { background: var(--ea-red); transform: none; }
.choice.is-wrong::after { content: "✗"; transform: none; opacity: 1; }
.choice.is-wrong .label { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(255, 255, 255, .8); }
.choice.shake { animation: wrong-shake .45s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes wrong-shake {
  10%, 90% { translate: -2px 0; } 20%, 80% { translate: 4px 0; } 30%, 50%, 70% { translate: -7px 0; } 40%, 60% { translate: 7px 0; } 100% { translate: 0 0; }
}
.wrong-note {
  margin: 18px 0 0; padding: 14px 18px; border-left: 3px solid var(--ea-red); background: rgba(210, 54, 43, .08);
  font: 400 17px/1.45 var(--ea-font); color: var(--ea-ink);
}
.wrong-note b { font: 500 12px/1 var(--ea-mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ea-red); margin-right: 6px; }
.wrong-note span { display: block; margin-top: 6px; font: 450 12px/1.3 var(--ea-mono); text-transform: uppercase; color: var(--ea-ink-2); }
@media (prefers-reduced-motion: reduce) { .choice.shake { animation: none; } }
.kbd-hint { font: 450 12px/1.3 var(--ea-mono); text-transform: uppercase; color: var(--ea-ink-3); margin-top: 18px; }
kbd { font-family: var(--ea-mono); background: var(--ea-surface); border-color: var(--ea-line-2); color: var(--ea-ink); border-radius: 6px; }

/* ───────────── buttons ───────────── */
.btn, a.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ea-line-2); background: transparent; color: var(--ea-ink);
  font: 500 16px/1.1 var(--ea-font); letter-spacing: -.02em; text-decoration: none; box-shadow: none;
  transition: color .5s var(--ea-ease), border-color .5s var(--ea-ease), transform .5s var(--ea-ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--ea-ink);
  transform: translateY(102%); transition: transform .55s var(--ea-ease);
}
.btn:hover, .btn:focus-visible { color: var(--ea-bg); border-color: var(--ea-ink); transform: none; box-shadow: none; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn.primary { background: var(--ea-accent); border-color: var(--ea-accent); color: var(--ea-on-accent); box-shadow: none; }
.btn.primary:hover, .btn.primary:focus-visible { color: var(--ea-bg); border-color: var(--ea-ink); }

/* ───────────── endings ───────────── */
.ending-panel { margin-top: clamp(40px, 6vw, 96px); border-top: 1px solid var(--ea-ink); padding-top: clamp(28px, 4vw, 56px); max-width: 1180px; }
.stamp-big {
  font-size: clamp(30px, 6vw, 84px); letter-spacing: .06em; border-width: 6px; padding: 6px 24px; border-radius: 8px;
  color: var(--ea-red); border-color: var(--ea-red);
}
.grade-best .stamp-big, .grade-good .stamp-big { color: var(--ea-green); border-color: var(--ea-green); }
.rank { font: 500 clamp(28px, 3.6vw, 56px)/1.02 var(--ea-font); letter-spacing: -.05em; margin: 0 0 32px; }
.rank span { font: 450 12px/1.3 var(--ea-mono); letter-spacing: .02em; color: var(--ea-ink-2); margin-bottom: 12px; }
.ledger { gap: 0 32px; margin-bottom: 28px; }
.ledger div { border-bottom: 1px solid var(--ea-line); padding: 14px 0; }
.ledger dt { color: var(--ea-ink-2); }
.ledger dd { font-family: var(--ea-mono); font-weight: 500; }
.fine-print { font-style: normal; font-family: var(--ea-mono); font-size: 12px; text-transform: uppercase; color: var(--ea-ink-2); }
.fine-print a { color: var(--ea-accent-ink); }
.badges li { background: var(--ea-surface); border: 1px solid var(--ea-line); border-radius: 14px; padding: 12px 14px; }
.badges small { color: var(--ea-ink-2); }
.tip { background: var(--ea-accent-soft); border-radius: 14px; padding: 16px 18px; }
.endings-found h3 { font: 450 12px/1.3 var(--ea-mono); letter-spacing: .02em; }
.endings-found li { border: 1px dashed var(--ea-line-2); border-radius: 12px; color: var(--ea-ink-3); }
.endings-found li.got { background: var(--ea-surface); border-style: solid; color: var(--ea-ink); }
.endings-found li.current { border-color: var(--ea-accent); box-shadow: 0 0 0 3px var(--ea-accent-soft); }
.end-actions { gap: 10px; margin-top: 32px; }
.notebook h3 { font: 500 22px/1.2 var(--ea-font); letter-spacing: -.03em; }
.nb-line { border-bottom-color: var(--ea-line-2); }
.nb-line label, .nb-prev { font-family: var(--ea-mono); }
.nb-note { font-style: normal; font-family: var(--ea-mono); font-size: 11px; text-transform: uppercase; }

/* ───────────── the cover ───────────── */
.cover { padding: 0; position: relative; }
.cv-label { margin: 0; font: 450 12px/1.3 var(--ea-mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ea-ink-2); }

html.js body::after {
  content: ""; position: fixed; inset: -50%; z-index: 175; pointer-events: none; background: var(--ea-grain); opacity: .045;
  animation: ea-grain 1.4s steps(6) infinite;
}
html[data-quality="low"] body::after { display: none; }
.cover .cover-actions { justify-content: flex-start; margin: clamp(24px, 3vw, 40px) 0 0; gap: 10px; }
.cover .content-note { margin: clamp(20px, 2.4vw, 32px) 0 0; max-width: 58ch; font-size: 12.5px; line-height: 1.5; color: var(--ea-ink-3); }

:root {
  /* paper fibres and the stamp's worn ink, drawn by the browser (no image files) */
  --ea-kraft-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .08 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --ea-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  --ea-ink-wear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='120'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='300' height='120' filter='url(%23w)'/%3E%3C/svg%3E") center / cover;
}
@keyframes ea-scroll { to { transform: translateY(350%); } }

.cv-room .subtitle { margin: 18px 0 0; max-width: 24ch; color: var(--ea-ink); font-size: clamp(30px, 4.4vw, 72px); line-height: 1.02; letter-spacing: -.05em; font-weight: 500; text-align: left; }

/* the room (#/room): you walk round it as you scroll, and the folder opens on page one (js/room.js) */
.cv-room { position: relative; padding: calc(var(--ea-head-h) + var(--ea-nav-h) + 40px) var(--ea-gutter) clamp(60px, 8vw, 120px); }
.cv-room-copy { max-width: 1100px; }
.room-page h1.cv-label { margin: 0; }
.cv-room.is-live { height: 760vh; padding: 0; }
.cv-room.is-live .cv-room-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #050a18; color: #f1f5ff; }
/* no pixel of the room goes fully black (not while it's arriving or leaving, when the stage must stay see-through) */
.cv-room.is-live .cv-room-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #0b132b; mix-blend-mode: lighten; }
.cv-room.is-live .cv-room-stage.is-arriving::before, .is-leaving .cv-room-stage::before { display: none; }
.cv-room-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cv-room.is-live .cv-room-copy { position: absolute; inset: 0; max-width: none; pointer-events: none; z-index: 2; }
.cv-room.is-live .cv-room-copy > .cv-label { position: absolute; left: var(--ea-gutter); top: calc(var(--ea-head-h) + var(--ea-nav-h) + 12px); color: rgba(241, 245, 255, .6); outline: none; }
.cv-room.is-live .subtitle { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.cv-room .cv-beat {
  position: absolute; left: var(--ea-gutter); bottom: clamp(40px, 9vh, 120px); margin: 0; max-width: min(15ch, 92vw);
  font: 500 clamp(34px, 5.6vw, 96px)/.98 var(--ea-font); letter-spacing: -.055em; color: #f1f5ff; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.cv-room .cv-beat.is-right { left: auto; right: var(--ea-gutter); text-align: right; }
.cv-room-progress { position: absolute; z-index: 3; left: var(--ea-gutter); right: var(--ea-gutter); bottom: 22px; height: 1px; background: rgba(241, 245, 255, .16); }
.cv-room-progress i { display: block; height: 100%; width: 100%; background: var(--ea-accent-ink); transform-origin: left; transform: scaleX(0); }
.cv-room-count { position: absolute; z-index: 3; right: calc(var(--ea-gutter) - 8px); top: calc(var(--ea-head-h) + var(--ea-nav-h) + 6px); margin: 0; padding: 6px 8px; border-radius: 6px; background: rgba(5, 12, 32, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 450 12px/1 var(--ea-mono); color: rgba(241, 245, 255, .72); font-variant-numeric: tabular-nums; } /* a dark chip, so a note on the wall behind it never eats the count */
/* at the desk: how it began; keep going and the folder opens */
.cv-open { margin-top: 48px; }
.cv-open-title { margin: 12px 0 0; font: 500 clamp(40px, 6.2vw, 108px)/.95 var(--ea-font); letter-spacing: -.055em; color: var(--ea-ink); text-wrap: balance; }
.cv-room.is-live .cv-open { position: absolute; z-index: 4; left: 50%; top: calc(var(--ea-head-h) + var(--ea-nav-h) + 3vh); transform: translateX(-50%); width: min(92vw, 1000px); margin: 0; text-align: center; pointer-events: none; }
.cv-room.is-live .cv-open > .cv-label { color: rgba(241, 245, 255, .7); }
.cv-room.is-live .cv-open-title { color: #f1f5ff; text-shadow: 0 2px 40px rgba(0, 0, 0, .55); }
.cv-room.is-live .cv-open.is-on .cv-egg { pointer-events: auto; }
/* the way in without the 3D (no WebGL, or reduced motion): an eggplant to tap. With the landscape or the room drawn,
   the eggplant in the scene is the one you tap, so this one stays out of the way. */
.cv-egg {
  display: grid; place-items: center; width: 104px; height: 104px; margin: 22px 0 10px; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; transition: transform .5s var(--ea-ease);
}
.cv-room.is-live .cv-egg { margin-inline: auto; }
.cv-egg img { width: 96px; height: 96px; filter: drop-shadow(0 14px 22px rgba(40, 10, 70, .35)); }
.cv-egg:hover { transform: translateY(-4px) rotate(-8deg); }
.cv-egg:focus-visible { outline: 2px solid var(--ea-accent); outline-offset: 4px; }
.cv-land.is-live .cv-land-stage:not(.is-flat) .cv-egg, .cv-room.is-live .cv-room-stage:not(.is-flat) .cv-egg { display: none; }
.cv-keep {
  position: absolute; z-index: 3; right: var(--ea-gutter); bottom: 46px; margin: 0; display: flex; align-items: center; gap: 10px;
  font: 450 12px/1 var(--ea-mono); text-transform: uppercase; color: rgba(241, 245, 255, .72);
}
.cv-keep i { display: block; width: 1px; height: 42px; background: rgba(241, 245, 255, .22); position: relative; overflow: hidden; }
.cv-keep i::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: #f1f5ff; animation: ea-scroll 2s var(--ea-ease) infinite; }
.cv-room-haze { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 95% at 50% 46%, transparent 52%, rgba(4, 10, 30, .7) 100%); }
.cv-room-haze i { position: absolute; left: 0; right: 0; height: 24%; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cv-room-haze i:first-child { top: 0; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.cv-room-haze i:last-child { bottom: 0; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
.cv-room-haze::after { content: ""; position: absolute; inset: -50%; background: var(--ea-grain); opacity: .16; animation: ea-grain 1.2s steps(6) infinite; }
html[data-quality="low"] .cv-room-haze i { display: none; }
@keyframes ea-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); } }
.cv-room-fallback { position: absolute; inset: 0; background: radial-gradient(60% 50% at 60% 55%, rgba(56, 189, 248, .2), transparent 70%), #050a18; }
html.is-room-dark body[data-view="room"] .ea-head:not(.is-menu) { color: #f1f5ff; }
html.is-room-dark body[data-view="room"] .ea-head:not(.is-menu) .ea-pill:not(.ea-cta):not(.ea-settings-btn) { color: #f1f5ff; border-color: rgba(241, 245, 255, .3); }
html.is-room-dark body[data-view="room"] .ea-head .ea-settings-btn { color: #f1f5ff; }
html.is-room-dark body[data-view="room"] .ea-head:not(.is-menu) .ea-pill:not(.ea-cta)::before { background: #f1f5ff; }
html.is-room-dark body[data-view="room"] .ea-head:not(.is-menu) .ea-pill:not(.ea-cta):hover { color: #050a18; }
html.is-room-dark body[data-view="room"] .ea-head.is-scrolled { background: rgba(5, 10, 24, .55); border-bottom-color: rgba(241, 245, 255, .1); }

/* the next page, at the end of the page (the slim footer under it): a ring that fills, its name; then it opens */
.ea-next {
  display: block; position: relative; z-index: 1; height: 100vh; height: 100svh; text-decoration: none; --fill: 0%;
  color: #f1f5ff; background: radial-gradient(90% 70% at 50% 110%, #1e3f8f, #0f1c40 60%, #070d1f);
}
.ea-next[hidden] { display: none; }
.ea-next { overflow: hidden; overflow: clip; }
.ea-next-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: transform; }
.ea-next-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ea-next-scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 95% at 50% 46%, transparent 52%, rgba(4, 10, 30, .7) 100%); }
.ea-next.is-live { background: #050a18; }
.ea-next.is-live .ea-next-scene::before { content: ""; position: absolute; inset: -50%; z-index: 1; background: var(--ea-grain); opacity: .16; animation: ea-grain 1.2s steps(6) infinite; } /* the room page's own grain */
.ea-next.is-plain { background: var(--ea-bg-2); color: var(--ea-ink); }
.ea-next.is-plain .ea-next-scene::after { display: none; }
.ea-next.is-plain .ea-next-label { color: var(--ea-ink-2); }
.ea-next.is-plain .ea-next-ring circle { stroke: var(--ea-line-2); }
.ea-next.is-plain .ea-next-ring .ea-next-fill { stroke: var(--ea-ink); }
.ea-next.is-plain .ea-next-title { background-image: linear-gradient(90deg, var(--ea-ink) var(--fill), color-mix(in srgb, var(--ea-ink) 22%, transparent) var(--fill)); }
.ea-next-in { z-index: 1; }
.cover.is-live-home > .cv-how, .cover.is-live-home > .cv-fine { display: none; }
.ea-next-in {
  position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: 1fr auto; justify-items: center;
  gap: clamp(10px, 1.6vw, 20px); padding: 14px var(--ea-gutter) clamp(18px, 2.6vw, 36px); text-align: center;
}
.ea-next-mid {
  align-self: center; display: grid; justify-items: center; gap: 12px; transform: translate3d(0, calc(var(--lift, 0px) * -.5), 0);
  opacity: clamp(0, calc((var(--fill-k, 1) - .1) * 5), 1); /* a thin strip shows only the name; the ring comes as it opens */
}
.ea-next-title { transform: translate3d(0, calc(var(--lift, 0px) * -1), 0); }
.ea-next-ring { position: relative; width: clamp(88px, 8vw, 128px); aspect-ratio: 1; display: grid; place-items: center; font: 400 22px/1 var(--ea-font); }
.ea-next-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ea-next-ring circle { fill: none; stroke: rgba(241, 245, 255, .22); stroke-width: 1.2; }
.ea-next-ring .ea-next-fill { stroke: #fff; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--fill-k, 0)); }
.ea-next-ring i { font-style: normal; animation: ea-bob 1.8s ease-in-out infinite; }
@keyframes ea-bob { 50% { transform: translateY(5px); } }
.ea-next-label { font: 450 12px/1 var(--ea-mono); text-transform: uppercase; letter-spacing: .04em; color: rgba(241, 245, 255, .8); }
.ea-next-title {
  font: 400 clamp(60px, 7vw, 136px)/.86 var(--ea-serif); letter-spacing: -.01em; padding-bottom: .04em;
  background: linear-gradient(90deg, #fff var(--fill), rgba(241, 245, 255, .26) var(--fill)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* the five cards as a numbered list */
.cv-how { padding: clamp(80px, 12vw, 180px) var(--ea-gutter) clamp(40px, 6vw, 90px); }
.cover .how {
  max-width: none; margin: 22px 0 0; display: block; font-size: inherit; border-top: 1px solid var(--ea-ink);
}
.cover .how li { display: block; border-bottom: 1px solid var(--ea-line-2); }
.cover .how-card {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1fr) 40px; align-items: baseline; gap: 6px 24px;
  padding: clamp(18px, 2.2vw, 30px) 0; background: none; border: 0; border-radius: 0; color: var(--ea-ink); transform: none; box-shadow: none;
  transition: color .5s var(--ea-ease), padding .6s var(--ea-ease);
}
.cover .how-card::before {
  content: ""; position: absolute; inset: 0 calc(var(--ea-gutter) * -1); z-index: -1; background: var(--ea-accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ea-ease);
}
.cover .how-card:hover, .cover .how-card:focus-visible { color: #fff; background: none; border: 0; box-shadow: none; transform: none; padding-left: 14px; }
.cover .how-card:hover::before, .cover .how-card:focus-visible::before { transform: none; }
.how-n { font: 450 12px/1 var(--ea-mono); color: inherit; opacity: .55; }
.cover .how b { display: block; color: inherit; font-weight: 500; font-size: clamp(24px, 3vw, 48px); line-height: 1; letter-spacing: -.05em; }
.how-text { font-size: clamp(15px, 1.15vw, 18px); color: inherit; opacity: .72; line-height: 1.35; }
.cover .how-go { position: static; transform: none; justify-self: end; color: inherit; font-size: 22px; font-weight: 400; transition: transform .6s var(--ea-ease); }
.cover .how-card:hover .how-go { transform: translateX(4px) rotate(-45deg); }

/* the fine print */
.cv-fine { padding: 0 var(--ea-gutter) clamp(60px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px clamp(24px, 4vw, 64px); align-items: start; }
.cv-fine > .cv-label { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--ea-line); }
.cover .cover-footer { grid-column: 2; grid-row: 2 / span 4; margin: 0; max-width: 46ch; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.35; letter-spacing: -.025em; color: var(--ea-ink); }
.cover .found { grid-column: 1; margin: 0; font: 500 16px/1.3 var(--ea-font); color: var(--ea-ink); }
.cover .found a { color: var(--ea-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .6s var(--ea-ease); }
.cover .found a:hover { background-size: 0 1px; background-position: 100% 100%; }
.cover .found:last-child:not(:has(a)) { font-family: var(--ea-mono); font-size: 12px; text-transform: uppercase; color: var(--ea-ink-2); }

/* ───────────── guide pages ───────────── */
.guide-page .body { font-size: clamp(18px, 1.3vw, 21px); }
/* a guide page reads like every page (Angie, Oct 27 05:30, "consistent and uniform"): one quiet line over the title
   (the case file and the page), the title, a line under it, then the text and the shelves in one column, all on one
   left edge */
.guide-page { --col: min(1100px, 100%); }
.guide-page > .folder-tab, .guide-page > .scene-head, .guide-page > .guide-live.guide-tapes, .guide-page > .guide-live.guide-incidents { grid-column: 2; }
.guide-page .scene-head .chapter { display: none; } /* the same words as the line over it */
.dossier.guide-page .scene-head h1 { max-width: none; }
.dossier.guide-page .scene-head { margin-bottom: clamp(24px, 3vw, 40px); }
.guide-page .timestamp::before { content: none; }
.guide-page .body { max-width: 72ch; }
.guide-live { margin: clamp(28px, 4vw, 56px) 0; }
/* the foot of a guide page: one button, back to the room (Angie, Oct 26) */
.guide-page .cover-actions { gap: 10px; margin-top: clamp(40px, 6vw, 80px); }
.guide-meter i { background: var(--ea-line-2); }
.guide-meter i.on { background: var(--ea-green); }
.audit-list { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.4; letter-spacing: -.02em; padding-left: 0; list-style: none; counter-reset: q; gap: 0; border-top: 1px solid var(--ea-line); }
.audit-list li { counter-increment: q; display: grid; grid-template-columns: 56px 1fr; padding: 16px 0; border-bottom: 1px solid var(--ea-line); }
.audit-list li::before { content: counter(q, decimal-leading-zero); font: 450 12px/2 var(--ea-mono); color: var(--ea-ink-3); }
.qb-list { border-top: 1px solid var(--ea-line); }
.qb-row { border-bottom: 1px solid var(--ea-line); padding: 16px 0; }
.qb-num { font-family: var(--ea-mono); }
.qb { font-family: var(--ea-mono); background: transparent; border: 1px solid var(--ea-line-2); color: var(--ea-ink-2); }
.qb:hover { border-color: var(--ea-ink); color: var(--ea-ink); }
.qb[aria-pressed="true"] { background: var(--ea-accent); border-color: var(--ea-accent); color: #fff; }
.qb-result { background: var(--ea-accent-soft); border-radius: 14px; }
.qb-stamp { color: var(--ea-accent-ink); border-color: var(--ea-accent-ink); }
.qb-count { font-family: var(--ea-mono); }

/* the locker, bingo and the field manual, on the page and in the drawer */
.exhibits li, .scripts li { background: var(--ea-surface); border: 1px solid var(--ea-line); border-radius: 14px; box-shadow: none; }
.exhibits li.missing, .scripts li.missing { background: transparent; border-style: dashed; color: var(--ea-ink-3); }
.scripts li { border-left: 3px solid var(--ea-green); }
.scripts li.missing { border-left: 1px dashed var(--ea-line-2); }
.ex-code { font-family: var(--ea-mono); color: var(--ea-red); }
.scripts .sc-line { font-family: var(--ea-font); font-weight: 500; letter-spacing: -.02em; font-size: 18px; }
.sq { background: var(--ea-surface); border: 1px solid var(--ea-line-2); border-radius: 10px; color: var(--ea-ink); }
.sq.on { background: var(--ea-accent-soft); border-color: rgba(56, 189, 248, .45); }
.dab { background: rgba(56, 189, 248, .2); box-shadow: 0 0 0 2px rgba(56, 189, 248, .45); }
.check { color: var(--ea-accent-ink); }
.darvo-head { font-family: var(--ea-mono); border-bottom: 1px solid var(--ea-ink); }
.darvo-title { font-family: var(--ea-mono); }

/* ───────────── the tapes (Museum Of Said Things, and a chapter's own tape) ─────────────
   One card per tape (ANGIE, Oct 25: "see all of the tapes, play button and synopsis ... compact and user friendly",
   then "return 3d tapes to the tape page"): the cassette you can spin, the play key, who said it, how and when, the
   waveform and the time, then the words and the synopsis. On a wide screen the cards sit two across. One size of type
   throughout. */
.tk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.tk-shelf { margin: clamp(36px, 5vw, 56px) 0 0; padding: 0 0 12px; border-bottom: 1px solid var(--ea-ink); font: inherit; font-weight: 600; letter-spacing: 0; text-transform: none; }
.guide-tapes .tk { display: block; border-bottom: 1px solid var(--ea-line); }
.m-audio.tk-fig {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "play cap cap" "play track time" ". quote quote" ". syn syn" ". ana ana";
  align-items: center; gap: 2px 14px; margin: 0; padding: 16px 0;
}
.m-audio.tk-fig.deck3d { grid-template-areas: "tape tape tape" "play cap cap" "play track time" ". quote quote" ". syn syn" ". ana ana"; padding: 22px 0 20px; perspective: 1000px; perspective-origin: 50% 20%; }
.tk-fig.deck3d > .t3 { grid-area: tape; justify-self: start; width: min(100%, 320px); margin: 0 0 10px -6px; }
.m-audio.tk-fig .say-deck.dk-min { display: contents; }
.tk-fig .dk-play { grid-area: play; align-self: center; }
.tk-fig .dk-track { grid-area: track; }
.tk-fig .time { grid-area: time; }
.tk-fig.loaded .dk-head { opacity: 1; }
.m-audio.tk-fig .dk-min .ph-label, .tk-fig .dk-min .time { font: inherit; letter-spacing: 0; text-transform: none; color: var(--ea-ink-2); }
.tk-cap { grid-area: cap; margin: 0; min-width: 0; }
.tk-cap b { font-weight: 600; }
.tk-cap small, .tk-n { font-size: inherit; color: var(--ea-ink-2); }
.tk-quote { grid-area: quote; margin: 6px 0 0; }
.tk-syn { grid-area: syn; margin: 4px 0 0; color: var(--ea-ink-2); }
/* a tape's analysis (the Case Office's "+ Add analysis", Oct 30): open under the synopsis, under a thin rule */
.tk-ana { grid-area: ana; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--ea-line-2, rgba(29, 24, 19, .28)); }
.tk-ana-h { margin: 0 0 4px; font: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ea-ink); }
.tk-quote p, .tk-syn p, .tk-ana p { margin: 0; max-width: none; }
.tk-quote p + p, .tk-syn p + p, .tk-ana p + p { margin-top: .7em; }
.tk-fig figcaption, .tk-fig .dev-info { grid-column: 2 / -1; margin-top: 6px; }
.ff-av > .tk-fig { max-width: 460px; padding: 0; }


/* ───────────── Incident by incident (#/guide/incidents, #/incident/<id>) ─────────────
   A folder structure (Angie, Oct 26 22:06: "keep everything exactly the same but redesign it as a folder structure";
   her card "Both"). The list: a row of closed manila folders, the incident's number on the tab, its title on a white
   label, who's in it, what happens and its chapter typed on the cover; under the pointer the folder lifts and the
   sheet inside slides up. The folder's paper and type are the story page's (one typewriter, one size). */
.inc-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(30px, 3.4vw, 48px) clamp(18px, 2.4vw, 32px);
}
.inc { min-width: 0; }
.inc-a {
  --inc-ink: #3a2f12;
  position: relative; display: block; height: 100%; padding-top: 34px; color: var(--inc-ink); text-decoration: none;
  transition: transform .7s var(--ea-ease-out);
}
/* the back of the folder, its tab up off the top edge */
.inc-a::before {
  content: ""; position: absolute; inset: 33px 0 0; border-radius: 12px;
  background: var(--ff-fiber), linear-gradient(180deg, #d9b877, #c99f59);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7); transition: box-shadow .7s var(--ea-ease-out);
}
.inc-tab {
  position: absolute; top: 0; left: calc(14px + var(--tab, 0) * (58% - 28px) / 2); width: 42%; height: 35px; padding: 12px 16px 0;
  border-radius: 12px 12px 0 0; background: var(--ff-fiber), #d9b877;
  font: 400 13px/1 var(--ea-prop-type); letter-spacing: .05em; text-transform: uppercase; color: #4c3b1f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* the sheet inside, its top just showing over the front cover */
.inc-paper {
  position: absolute; z-index: 1; left: 7%; right: 7%; top: 44px; height: 60%; border-radius: 2px;
  background: repeating-linear-gradient(180deg, transparent 0 17px, rgba(29, 24, 19, .09) 17px 18px) 0 26px / 100% 100% no-repeat, linear-gradient(180deg, #fbf8f0, #f3ecdc);
  box-shadow: 0 1px 2px rgba(60, 40, 10, .25); transition: transform .7s var(--ea-ease-out);
}
.inc-cover {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; min-height: 250px; margin-top: 22px;
  padding: 24px clamp(18px, 2vw, 26px) 20px; border-radius: 6px 6px 12px 12px;
  background: var(--ff-fiber), linear-gradient(172deg, #edd5a0, #e1c283 55%, #d6b271);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 -6px 12px -8px rgba(90, 55, 15, .5);
  font: 400 16px/1.5 var(--ea-prop-body); letter-spacing: 0;
}
/* the label: white, typed */
.inc-t {
  display: grid; gap: 6px; margin: 0; padding: 14px 16px 13px; background: #fffdf7; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(60, 40, 10, .22); transform: rotate(-.6deg);
}
.inc-t b { font: 400 18px/1.25 var(--ea-prop-type); color: #1d1813; }
.inc-t small { font: inherit; font-size: 14px; color: rgba(29, 24, 19, .66); }
.inc-syn { color: var(--inc-ink); }
/* "With the recording": a red dot, like a tape that's on */
.inc-rec { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1.3 var(--ea-prop-type); letter-spacing: .05em; text-transform: uppercase; color: #5b4824; }
.inc-rec i { width: 9px; height: 9px; border-radius: 50%; background: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .18); }
.inc-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-top: auto; padding-top: 12px;
  border-top: 1px dashed rgba(58, 47, 18, .35); font: 400 13px/1.3 var(--ea-prop-type); letter-spacing: .05em; text-transform: uppercase; color: #5b4824;
}
.inc-go { margin-left: auto; white-space: nowrap; }
.inc-go i { display: inline-block; font-style: normal; transition: transform .6s var(--ea-ease-out); }
.inc-a:hover, .inc-a:focus-visible { transform: translateY(-6px); outline: none; }
.inc-a:hover::before, .inc-a:focus-visible::before { box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .85); }
.inc-a:hover .inc-paper, .inc-a:focus-visible .inc-paper { transform: translateY(-18px); }
.inc-a:hover .inc-go i, .inc-a:focus-visible .inc-go i { transform: translateX(5px); }
.inc-a:focus-visible .inc-cover { box-shadow: 0 0 0 3px var(--ea-accent), 0 -6px 12px -8px rgba(90, 55, 15, .5); }
.inc-none { color: var(--ea-ink-2); }
@media (prefers-reduced-motion: reduce) { .inc-a, .inc-paper, .inc-go i { transition: none; } }

/* One incident: her page on the paper sheet, her sections as the site's quiet buttons over it (js/engine.js
   renderIncident, fileTabs, wireIncident). Her page is as tall as itself, so the site scrolls once. The sections and
   the deck (Oct 26, the critics and the visitors: "it lost its interactivity") ride along under the header: play,
   the time, the line being said as it's said, why it matters. */
body[data-view="incident"] main { padding: calc(var(--ea-head-h) + var(--ea-nav-h) + 6px) var(--ea-gutter) 0; }
.incident-page { --inc-pad: clamp(5px, .7vw, 10px); --inc-ink: #3a2f12; max-width: 1440px; margin: 0 auto; }
.inc-bar { display: flex; justify-content: flex-end; padding: 0 0 12px; } /* only "Next incident", when there's one */
.inc-bar a { color: var(--ea-ink-2); text-decoration: none; white-space: nowrap; transition: color .3s; }
.inc-bar a:hover { color: var(--ea-accent); }
.inc-next { order: 3; margin-left: auto; }
/* the tabs and the deck stay on screen, under the header, and move up with it when it slides away */
.inc-top {
  position: sticky; z-index: 5; top: calc(var(--ea-head-h) + var(--ea-nav-h)); background: var(--ea-bg);
  transition: top .5s var(--ea-ease);
}
body:has(.ea-head.is-away) .inc-top { top: 0; }
/* on the paper: one card, her sections on top and the deck under them */
body[data-sheet="paper"] .inc-top { margin-bottom: 14px; padding: 10px; border: 1px solid var(--ea-line); border-radius: 16px; background: var(--ea-surface); }
/* her page's sections: the same quiet buttons as the header's row, in ink on the paper, the open one filled (her
   Oct 27 05:28, "go back to very elegant minimal menu buttons") */
.inc-tabs {
  position: relative; z-index: 1; display: flex; width: max-content; max-width: 100%; gap: 2px; margin: 0 auto 12px; padding: 3px;
  overflow-x: auto; scrollbar-width: none; border: 1px solid var(--ea-line-2); border-radius: 999px; background: rgba(29, 24, 19, .03);
}
.inc-tabs::-webkit-scrollbar { display: none; }
.inc-ftab {
  flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: center; height: 34px; margin: 0; padding: 0 16px;
  border: 0; border-radius: 999px; background: none; color: var(--ea-ink-2); cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.inc-ftab i { display: none; } /* the numbers: the header's row has none either */
.inc-ftab > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.inc-ftab b { font-weight: inherit; }
.inc-ftab-rest { display: none; } /* one word each ("Audio", "Psychology" ...): the full names don't fit a row */
.inc-ftab:hover { color: var(--ea-ink); background: rgba(29, 24, 19, .06); }
.inc-ftab:focus-visible { outline: 2px solid var(--ea-accent); outline-offset: 2px; }
.inc-ftab.is-on { background: var(--ea-ink); color: var(--pp-tone); cursor: default; }
/* the deck: the rest of the manila band, under the sections */
.inc-deck {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  min-height: 78px; padding: 4px clamp(4px, 1vw, 12px) 10px; color: var(--ea-ink); background: none;
}
.inc-play {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: #1d1813; color: #fbf3df; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(40, 25, 5, .7);
  transition: transform .4s var(--ea-ease-out), background-color .3s;
}
.inc-play:hover { transform: scale(1.06); }
.inc-play:focus-visible { outline: 2px solid var(--ea-accent); outline-offset: 3px; }
.inc-play i { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor; }
.inc-deck.is-playing .inc-play i { width: 14px; height: 18px; margin: 0; border: 0; border-left: 5px solid; border-right: 5px solid; }
/* a ring breathes round the button while the tape runs */
.inc-play::after { content: ""; position: absolute; inset: -5px; border: 2px solid #1d1813; border-radius: 50%; opacity: 0; pointer-events: none; }
.inc-deck.is-playing .inc-play::after { animation: inc-breathe 1.8s var(--ea-ease-out) infinite; }
@keyframes inc-breathe { from { transform: scale(.92); opacity: .55; } to { transform: scale(1.3); opacity: 0; } }
.inc-play[hidden] { display: none; }
.inc-play[hidden] ~ .inc-say { grid-column: 1 / 3; }
.inc-say { min-width: 0; }
.inc-meta { margin: 0 0 4px; color: var(--ea-ink-2); }
.inc-line {
  margin: 0; font: 400 16px/1.45 var(--ea-prop-body); color: #1d1813;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.inc-line:empty { display: none; }
.inc-who { font-weight: 700; margin-right: 2px; }
.inc-who::after { content: ":"; }
/* each word lands as it's said */
.inc-words > span { display: inline-block; animation: inc-word .5s var(--ea-ease-out) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes inc-word { from { opacity: 0; transform: translateY(.45em); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.inc-why-btn {
  margin: 0; padding: 0 16px; height: 36px; border: 1px solid var(--ea-line-2); border-radius: 999px; background: transparent; color: var(--ea-ink);
  cursor: pointer; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s;
}
.inc-why-btn:hover, .inc-why-btn[aria-expanded="true"] { background: var(--ea-ink); border-color: var(--ea-ink); color: var(--pp-tone); }
.inc-why-btn:focus-visible { outline: 2px solid var(--ea-accent); outline-offset: 2px; }
.inc-why-btn[hidden] { display: none; }
.inc-why { grid-column: 1 / -1; margin-top: 8px; padding: 12px 16px 13px; border-radius: 10px; background: var(--ea-bg); }
.inc-why[hidden] { display: none; }
.inc-why p { margin: 0; }
.inc-why-tag { margin-bottom: 4px !important; font-weight: 700; color: var(--ea-ink); }
.inc-why-tag:empty { display: none; }
.inc-why-text { font: 400 15px/1.5 var(--ea-prop-body); color: #1d1813; max-height: 9em; overflow-y: auto; }
.inc-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ea-line); opacity: 0; transition: opacity .4s; }
.inc-prog i { display: block; height: 100%; background: var(--ea-accent); transform: scaleX(0); transform-origin: left; transition: transform .2s linear; }
.inc-deck.is-clocked .inc-prog { opacity: 1; }
.inc-deck[data-state="plain"] { min-height: 14px; padding: 0; }
.inc-deck[data-state="plain"] > * { display: none; }
/* the sheet: white, in a thin manila edge, fading in once her page has loaded */
.inc-stage {
  position: relative; margin: 0 0 18px; padding: 0; overflow: hidden; border: 1px solid var(--ea-line); border-radius: 14px; background: #fafaf9;
}
.inc-frame {
  display: block; width: 100%; height: 70vh; border: 0; background: #fafaf9; opacity: 0; transition: opacity .6s var(--ea-ease);
}
.inc-stage.is-open .inc-frame { opacity: 1; }
body[data-view="incident"] .ea-top { display: none; }
@media (max-width: 720px) {
  body[data-view="incident"] main { padding-left: 8px; padding-right: 8px; }
  .incident-page { --inc-pad: 4px; }
  .inc-bar { padding: 0 8px 10px; }
  .inc-next { order: 2; }
  /* a phone holds her sections by their first words, across the width */
  .inc-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); width: 100%; border-radius: 22px; }
  .inc-ftab { padding: 0 8px; }
  .inc-deck { grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; min-height: 0; padding: 4px 2px 8px; }
  .inc-play { width: 46px; height: 46px; }
  .inc-line { font-size: 15px; -webkit-line-clamp: 3; }
  .inc-why-btn { grid-column: 1 / -1; justify-self: start; }
  .inc-play[hidden] ~ .inc-say { grid-column: 1 / -1; }
  .inc-why { margin-top: 0; padding: 10px 13px 11px; }
  .inc-why-text { font-size: 14px; max-height: 6em; }
  /* with why it matters open, the line keeps two rows, so the deck never covers half the screen */
  .inc-deck:has(.inc-why:not([hidden])) .inc-line { -webkit-line-clamp: 2; }
  .inc-stage { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .inc-ftab, .inc-top, .inc-play, .inc-prog i { transition: none; }
  .inc-words > span { animation: none; }
  .inc-deck.is-playing .inc-play::after { animation: none; opacity: .4; transform: scale(1.12); }
}

/* a story page's way in, the last note of its psychological commentary: this chapter's incidents, then all of them */
.ff-inc { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 12px; }
.ff-inc p { margin: 2px 0 0; }
.ff-note.ff-incidents a { color: var(--ea-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ea-line-2); }
.ff-note.ff-incidents a:hover { color: var(--ea-accent); }
.ff-inc a b { font-weight: 600; }

/* the shorts, in a row you swipe (the spinning wall stands in for it when WebGL is there: js/shell.js videoReel) */
.vreel { margin: 0 0 clamp(20px, 3vw, 36px); }
.has-reel .vreel { display: none; }
.vr-list {
  list-style: none; margin: 0; padding: 4px 0 14px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 20vw, 200px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.vr { scroll-snap-align: start; }
.vr-open { display: grid; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vr-open:focus-visible { outline: 2px solid var(--ea-accent); outline-offset: 3px; border-radius: 14px; }
.vr-frame { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: radial-gradient(90% 60% at 50% 40%, #1e3f8f, #0a1430); }
.vr-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.vr-frame[data-state="ready"] video { opacity: 1; }
.vr-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; margin: 0; padding: 12px; color: rgba(238, 246, 255, .72); text-align: center; }
.vr-ph b { font: italic 400 64px/1 var(--ea-serif); letter-spacing: -.02em; color: rgba(238, 246, 255, .9); }
.vr-frame[data-state="ready"] .vr-ph { display: none; }
.vr-cap small { font-size: inherit; color: var(--ea-ink-3); }

/* a short, full screen with its sound (the viewer: #dlg-vr) */
#dlg-vr {
  width: 100vw; height: 100%; inset: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; overflow: hidden;
  background: #070d1f; color: #eef6ff; color-scheme: dark;
}
#dlg-vr[open] { animation: ea-vr-in .45s ease-out both; }
@keyframes ea-vr-in { from { opacity: 0; } to { opacity: 1; } }
#dlg-vr::backdrop { background: #070d1f; }
#dlg-vr .dlg-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 0; background: linear-gradient(rgba(7, 13, 31, .85), rgba(7, 13, 31, 0)); -webkit-backdrop-filter: none; backdrop-filter: none;
}
#dlg-vr .dlg-head h2 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 16px/1.3 var(--ea-font); letter-spacing: 0; color: #eef6ff; }
.vr-nav { display: flex; align-items: center; gap: 6px; flex: none; }
#dlg-vr .vr-step, #dlg-vr .dlg-close {
  display: grid; place-items: center; width: 40px; min-width: 0; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(238, 246, 255, .32); background: none; color: #eef6ff; font: 400 16px/1 var(--ea-font); box-shadow: none; cursor: pointer;
}
#dlg-vr .vr-step:hover:not(:disabled), #dlg-vr .dlg-close:hover { background: #eef6ff; color: #070d1f; }
#dlg-vr .vr-step:disabled { opacity: .3; cursor: default; }
#dlg-vr .dlg-body { height: 100%; padding: 68px 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 12px; }
.vr-view { position: relative; margin: 0; height: 100%; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: radial-gradient(90% 60% at 50% 40%, #1e3f8f, #0a1430); }
.vr-view video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vr-view .vr-ph { display: none; }
.vr-view[data-state="missing"] video { display: none; }
.vr-view[data-state="missing"] .vr-ph { display: grid; }
.vr-view-cap { max-width: 60ch; margin: 0; text-align: center; color: rgba(238, 246, 255, .8); }

/* ───────────── dialogs: a drawer from the right ───────────── */
dialog {
  width: min(640px, 100vw); max-width: 100vw; height: 100%; max-height: none; margin: 0 0 0 auto; inset: 0 0 0 auto;
  border-radius: 0; background: var(--ea-bg); color: var(--ea-ink); box-shadow: -40px 0 80px -20px rgba(20, 5, 40, .3);
  border-left: 1px solid var(--ea-line); overscroll-behavior: contain;
}
dialog[open] { animation: ea-drawer .7s var(--ea-ease-out) both; }
dialog::backdrop { background: rgba(12, 6, 20, .38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
#dlg-confirm { width: min(560px, 100vw); height: auto; inset: auto 0 0 auto; margin: auto 0 0 auto; border-radius: 22px 0 0 0; border-top: 1px solid var(--ea-line); }
@keyframes ea-drawer { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.dlg-head { background: color-mix(in srgb, var(--ea-bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ea-line); padding: 18px 24px; }
.dlg-head h2 { font: 500 clamp(22px, 2.4vw, 32px)/1.05 var(--ea-font); letter-spacing: -.045em; }
.dlg-close {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ea-line-2); color: var(--ea-ink); font-size: 14px;
  display: grid; place-items: center; padding: 0; transition: background-color .3s, color .3s, transform .6s var(--ea-ease);
}
.dlg-close:hover { background: var(--ea-ink); color: var(--ea-bg); transform: rotate(90deg); }
.dlg-body { padding: 22px 24px 40px; }
.dlg-sub { color: var(--ea-ink-2); font-size: 15px; }

/* ───────────── toasts ───────────── */
.toast {
  background: var(--ea-ink); color: var(--ea-bg); border: 0; border-radius: 14px; padding: 12px 16px;
  font: 450 14px/1.35 var(--ea-font); letter-spacing: -.01em; box-shadow: 0 20px 40px -12px rgba(20, 5, 40, .4);
}
.toast.big { background: var(--ea-accent); color: #fff; font-family: var(--ea-font); font-size: 16px; font-weight: 500; }

/* ───────────── footer ───────────── */
/* one slim line at the very bottom of the page (Angie, Oct 25: "much smaller, only at the very bottom"): the file
   version, the link to Stuck in the Middle (Angie, Oct 26: "For anyone caught in between" is a footer link), the help
   line, back to top */
.site-foot {
  position: relative; z-index: 2; max-width: none; margin: 0; padding: 14px var(--ea-gutter) calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; text-align: left;
  font: 400 12px/1.5 var(--ea-font); background: var(--ea-bg); color: var(--ea-ink-2); border-top: 1px solid var(--ea-line);
}
.site-foot p { margin: 0; }
.site-foot .build { font: inherit; opacity: 1; color: inherit; }
.site-foot a { color: inherit; }
.site-foot a:hover { color: var(--ea-accent); }
.ea-foot-help { flex: 1 1 auto; text-align: center; }
.ea-top { background: none; border: 0; padding: 0; color: inherit; font: inherit; display: inline-flex; gap: 6px; cursor: pointer; }
.ea-top:hover { color: var(--ea-accent); }
@media (max-width: 720px) { .site-foot { justify-content: flex-start; } .ea-foot-help { flex-basis: 100%; text-align: left; order: -1; } .ea-foot-link { flex-basis: 100%; order: -2; } }
/* The room (the main page) and the lake walk you on into the next page before their foot is ever reached, so on those
   two the footer stays on screen: the same slim line over the bottom of the scene, light on dark (Angie, Oct 26: "I
   don't see a footer"). The scene's own progress line and "Keep scrolling" sit just above it. */
body[data-view="room"] .site-foot, body[data-view="cover"] .site-foot {
  --foot-h: 48px;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; border-top: 0;
  background: linear-gradient(rgba(5, 10, 24, 0), rgba(5, 10, 24, .78) 55%); color: rgba(241, 245, 255, .78);
}
body[data-view="room"] .site-foot a:hover, body[data-view="cover"] .site-foot a:hover { color: #fff; }
body[data-view="room"] .ea-top, body[data-view="cover"] .ea-top { display: none; }
body[data-view="room"] .cv-room-progress { bottom: calc(22px + 48px); }
body[data-view="room"] .cv-keep { bottom: calc(46px + 48px); }
body[data-view="cover"] .cv-land .cv-keep { bottom: calc(26px + 48px); }
@media (max-width: 720px) {
  body[data-view="room"] .site-foot, body[data-view="cover"] .site-foot { gap: 2px 16px; padding-top: 18px; }
  body[data-view="room"] .site-foot .build, body[data-view="cover"] .site-foot .build { display: none; }
  body[data-view="room"] .cv-room-progress { bottom: calc(22px + 72px); }
  body[data-view="room"] .cv-keep { bottom: calc(46px + 72px); }
  body[data-view="room"] .cv-room .cv-beat { bottom: calc(64px + 72px); }
}
.cv-how, .cv-fine { overflow-x: clip; } /* the rows' purple fill reaches into the gutters, never past the page */

/* ───────────── the page change ───────────── */
/* the page change (js/shell.js ringCut): the old page in .ea-portal-old over the new one, the ring opening a hole in it */
.ea-dip { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #120a20; opacity: 0; }
.ea-portal { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 320; pointer-events: none; }
.ea-portal.is-flat { background: #f1f7ff; }
.ea-portal-old { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: #0b0614; }
.ea-portal-old canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ea-portal-page { overflow: hidden; background: var(--ea-bg); } /* a story page's still copy, over the next chapter while the ring opens */

/* ───────────── the cursor (mouse only) ───────────── */
.ea-cursor { position: fixed; left: 0; top: 0; z-index: 180; pointer-events: none; display: none; }
html.has-cursor .ea-cursor { display: block; }
.ea-cursor-ring {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ea-accent); transition: transform .45s var(--ea-ease), opacity .3s, background-color .3s;
}
.ea-cursor-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6); opacity: 0; white-space: nowrap;
  font: 500 11px/1 var(--ea-mono); text-transform: uppercase; letter-spacing: .02em; color: #fff; transition: opacity .3s, transform .45s var(--ea-ease);
}
.ea-cursor.is-link .ea-cursor-ring { transform: scale(.5); }
.ea-cursor.is-label .ea-cursor-ring { transform: scale(6.4); }
.ea-cursor.is-label .ea-cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ea-cursor.is-down .ea-cursor-ring { transform: scale(.8); }
.ea-cursor.is-label.is-down .ea-cursor-ring { transform: scale(5.6); }
.ea-cursor.is-hidden { opacity: 0; }
/* while a page changes the dot becomes a small spinning ring (the studio's loading cursor) */
html.is-ringing .ea-cursor-ring { transform: scale(1.5); background: transparent; border: 1.5px solid #3fc8ff; border-right-color: transparent; animation: ea-spin .7s linear infinite; }
/* the dot is an eggplant (Angie, Oct 30: "remove ... the blue circle, make it an eggplant"); the blue disc only comes up
   behind a word ("Open", "Spin") and the spinning ring only while a page changes */
.ea-cursor-ring { transform: scale(0); }
.ea-cursor-egg {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(-24deg); font-size: 20px; line-height: 1;
  font-style: normal; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); transition: transform .45s var(--ea-ease), opacity .3s;
}
.ea-cursor.is-link .ea-cursor-ring, .ea-cursor.is-down .ea-cursor-ring { transform: scale(0); }
.ea-cursor.is-link .ea-cursor-egg { transform: translate(-50%, -50%) rotate(-24deg) scale(.8); }
.ea-cursor.is-down .ea-cursor-egg { transform: translate(-50%, -50%) rotate(-10deg) scale(.85); }
.ea-cursor.is-label .ea-cursor-egg, html.is-ringing .ea-cursor-egg { opacity: 0; transform: translate(-50%, -50%) rotate(-24deg) scale(.4); }
@keyframes ea-spin { to { rotate: 360deg; } }

/* ───────────── the shorts wall (the studio's Work page) ───────────── */
/* a ring of glass cards round you over dark navy water (js/reel.js), one screen tall: the Shorts page (#/guide/shorts,
   its own page since Oct 25 22:41, in the Lab's blue); each card a vertical video */
.dossier > .ea-reel { grid-column: 1 / -1; }
.ea-reel {
  position: relative; width: 100vw; margin: calc(-1 * (var(--ea-head-h) + var(--ea-nav-h) + clamp(28px, 6vw, 96px))) 0 clamp(48px, 7vw, 110px) calc(50% - 50vw);
  height: 100vh; height: 100svh;
}
.ea-reel.is-flat { display: none; }
html.has-reel body { overflow-x: clip; }
.ea-reel-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #eef6ff; background: #0b132b;
  touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
}
.ea-reel-stage.is-grab { cursor: grabbing; }
.ea-reel-stage[data-hover="tape"] { cursor: pointer; }
html.has-cursor .ea-reel-stage[data-hover="tape"], html.has-cursor .ea-reel-stage[data-hover="drag"], html.has-cursor .ea-reel-stage.is-grab { cursor: none; }
.ea-reel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ea-reel-haze {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(5, 10, 26, .55), rgba(5, 10, 26, 0) 16%), radial-gradient(130% 95% at 50% 46%, transparent 58%, rgba(5, 10, 26, .6));
}
.ea-reel-haze::after { content: ""; position: absolute; inset: -50%; background: var(--ea-grain); opacity: .06; animation: ea-grain 1.2s steps(6) infinite; }
html[data-quality="low"] .ea-reel-haze::after { display: none; }
.ea-reel-label, .ea-reel-hint { position: absolute; z-index: 2; top: calc(var(--ea-head-h) + var(--ea-nav-h) + 12px); margin: 0; font: 450 12px/1.3 var(--ea-mono); text-transform: uppercase; letter-spacing: .02em; color: rgba(238, 246, 255, .62); pointer-events: none; }
.ea-reel-label { left: var(--ea-gutter); }
.ea-reel-hint { right: var(--ea-gutter); text-align: right; max-width: 30ch; }
.ea-reel-title.ea-display {
  position: absolute; z-index: 2; left: var(--ea-gutter); bottom: clamp(72px, 11vh, 120px); margin: 0; max-width: min(9ch, 36vw); pointer-events: none;
  font-family: var(--ea-serif); font-weight: 400; text-transform: uppercase; letter-spacing: -.012em; line-height: .88;
  font-size: clamp(44px, 6vw, 110px); color: #f1f7ff; text-shadow: 0 2px 40px rgba(0, 0, 0, .55);
}
.ea-reel-title em { font-style: italic; text-transform: none; letter-spacing: -.025em; }
.ea-reel-ui { position: absolute; z-index: 3; left: 50%; bottom: clamp(16px, 3vh, 30px); transform: translateX(-50%); display: grid; justify-items: center; gap: clamp(14px, 3vh, 34px); }
.ea-reel-pill {
  display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 26px 0 34px; border-radius: 999px; cursor: pointer;
  font: 500 17px/1 var(--ea-font); letter-spacing: -.01em; color: #fff;
  background: linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, 0)), rgba(14, 40, 96, .62); border: 1px solid rgba(125, 190, 255, .5);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 40px -12px rgba(47, 139, 255, .7);
  transition: background-color .35s, border-color .35s, box-shadow .35s;
}
.ea-reel-pill:disabled { cursor: default; opacity: .6; }
.ea-reel-pill:disabled span { display: none; }
.ea-reel-pill:hover:not(:disabled) { background-color: rgba(26, 72, 160, .74); border-color: rgba(186, 222, 255, .85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 50px -10px rgba(56, 150, 255, .9); }
.ea-reel-pill:focus-visible, .ea-reel-arrow:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 3px; }
.ea-reel-now { margin: 0; max-width: min(80vw, 520px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font: 500 clamp(17px, 1.6vw, 22px)/1.2 var(--ea-font); letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.ea-reel-now small { font: 450 12px/1 var(--ea-mono); color: rgba(238, 246, 255, .7); margin-right: 6px; vertical-align: 2px; }
.ea-reel-arrow {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(186, 222, 255, .45); background: rgba(10, 28, 66, .45); color: #fff; font: 400 16px/1 var(--ea-font);
  transition: background-color .3s, border-color .3s;
}
.ea-reel-arrow:hover { background: rgba(47, 139, 255, .6); border-color: rgba(186, 222, 255, .85); }
.ea-reel-count { margin: 0; display: flex; align-items: center; gap: 18px; font: 450 12px/1 var(--ea-mono); color: rgba(238, 246, 255, .86); font-variant-numeric: tabular-nums; }
.ea-reel-count b { font-weight: 450; min-width: 2ch; text-align: center; }
.ea-reel-ticks { display: flex; align-items: center; gap: 6px; height: 18px; }
.ea-reel-ticks i { width: 1px; height: 14px; background: rgba(238, 246, 255, .3); transition: transform .35s var(--ea-ease), background-color .35s; }
.ea-reel-ticks i.is-on { background: #fff; transform: scale(3, 1.25); }
@media (max-width: 720px) {
  .ea-reel-hint { display: none; }
  .ea-reel-title.ea-display { left: 16px; right: 16px; max-width: none; top: calc(var(--ea-head-h) + var(--ea-nav-h) + 40px); bottom: auto; font-size: clamp(40px, 11.5vw, 62px); }
  .ea-reel-pill { height: 46px; padding: 0 22px 0 28px; font-size: 15px; }
  .ea-reel-ticks { gap: 4px; }
  .ea-reel-count { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ea-reel-haze::after { animation: none; } }

/* the peek: a card that rides beside the pointer over a list (js/shell.js) */
.ea-peek { position: fixed; left: 0; top: 0; z-index: 170; pointer-events: none; width: 230px; aspect-ratio: 4 / 5; margin: 0 0 0 150px; opacity: 0; will-change: transform; }
.ea-peek-card {
  position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 16px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(90% 70% at 70% 18%, rgba(56, 189, 248, .6), transparent 62%), #0d1830; color: #f1f5ff;
  box-shadow: 0 30px 70px -20px rgba(0, 4, 16, .8), 0 0 60px rgba(56, 189, 248, .22), inset 0 0 0 1px rgba(125, 211, 252, .25);
}
.ea-peek-card::after { /* a little grain, like a print */
  content: ""; position: absolute; inset: 0; background: var(--ea-kraft-grain); opacity: .35; mix-blend-mode: overlay;
}
.ea-peek-card small { font: 450 11px/1 var(--ea-mono); letter-spacing: .04em; opacity: .8; }
.ea-peek-glyph { align-self: center; justify-self: center; font-size: 104px; line-height: 1; filter: drop-shadow(0 14px 18px rgba(30, 0, 70, .45)); }
.ea-peek-card b { font: 500 22px/1.05 var(--ea-font); letter-spacing: -.04em; }

/* ───────────── small screens ───────────── */
@media (max-width: 900px) {
  :root { --ea-head-h: 64px; }
  .cv-fine { grid-template-columns: 1fr; }
  .cover .cover-footer { grid-column: 1; grid-row: auto; }
  .cover .how-card { grid-template-columns: 54px minmax(0, 1fr) 28px; }
  .how-text { grid-column: 2; grid-row: 2; }
  .cover .how-go { grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .ea-head { gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
  .ea-settings-btn { display: none; }
  .ea-pill { height: 38px; padding: 0 14px; }
  .ea-menu-word { display: none; }
  .ea-menu-btn { width: 38px; padding: 0; justify-content: center; }
  .ea-settings { right: 12px; left: 12px; width: auto; }
  /* story pages on a phone: the same two rows as every page, the game's bar (its eggplant, the counts, sound and
     restart) and the menu on top, the sections under them */
  body[data-view="scene"] .ea-head #hud { order: 1; flex: 1 1 auto; }
  body[data-view="scene"] .ea-actions { order: 2; margin-left: 0; }
  body[data-view="scene"] .ea-head #hud .tools { margin-left: auto; }
  .ea-head #hud { gap: 6px 8px; }
  .ea-head #hud .brand span { display: none; }
  .ea-head .stats { order: 3; width: 100%; justify-content: flex-start; gap: 16px; }
  .ea-head .stats:not(:has(.stat:not([hidden]))) { display: none; }
  .ea-head .tools button { height: 34px; padding: 0 9px; }
  .ea-head .tools .count .of { display: none; }
  body[data-view="scene"] main { padding-top: calc(var(--ea-head-h) + var(--ea-nav-h) + 22px); }
  .dossier > .stamp { top: 34px; font-size: 10px; }
  .dossier .egg-weight { top: 34px; right: 0; }
  .scene-head h1, .guide-page .scene-head h1 { font-size: clamp(36px, 10.4vw, 56px); max-width: none; }
  .media-row { grid-template-columns: 1fr; }
  .analyst { grid-template-columns: 1fr; gap: 6px; }
  .choice { grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 0 12px; padding: 18px 2px; font-size: 20px; }
  .choice .letter { width: 32px; height: 32px; font-size: 11px; }
  .cover .cover-actions { margin-top: 20px; }
  .cv-room .cv-beat { bottom: 64px; max-width: calc(100vw - 32px); }
  .cv-room.is-live .cv-open-title { font-size: clamp(36px, 10vw, 54px); }
  .cv-keep { bottom: 34px; }
  .cv-room .cv-beat.is-right { left: var(--ea-gutter); right: auto; text-align: left; }
  #dlg-confirm { border-radius: 22px 22px 0 0; width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  .ea-loader { display: none; }
  html.js body::after, .cv-room-haze::after, .cv-keep i::after { animation: none; }
}

/* ─────────────────────────────────────────────────────────────
   THE STUDIO PASS (Oct 24, from Angie's screen recordings of the studio's site)
   Tall condensed serif headlines in capitals with one italic word, that bend in and out on a wave with green and cyan
   fringes (js/shell.js, warp); small mono labels that decode; purple chips; a header in mono capitals with a glass
   pill; and the home page: a lavender landscape you fly over (js/land.js) with the words in beats over it.
   ───────────────────────────────────────────────────────────── */
.ea-display, .cover .ea-display, .scene-head .ea-display {
  position: relative; margin: 0; font-family: var(--ea-serif); font-weight: 400; font-style: normal; text-transform: uppercase;
  font-size: clamp(46px, 7.2vw, 132px); line-height: .86; letter-spacing: -.012em; text-wrap: balance; outline: none;
}
.ea-display em { font-style: italic; text-transform: none; letter-spacing: -.025em; color: inherit; font-family: inherit; font-weight: 400; }
.ea-display .ea-wd { white-space: nowrap; }
.ea-display.is-warped .ea-ch { will-change: transform; }
.ea-chip {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin: 0; padding: 5px 9px 4px; border-radius: 6px;
  background: rgba(56, 140, 230, .6); color: #f1f5ff; font: 500 11px/1 var(--ea-mono); letter-spacing: .05em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ea-copy { margin: 0; max-width: 46ch; font: 450 13px/1.5 var(--ea-mono); letter-spacing: .01em; text-transform: uppercase; }

/* the header: mono capitals, a gear, a glass pill (white over a scene, ink on the paper) */
.ea-settings-btn { border-color: transparent; padding: 0 10px; font: 450 12px/1 var(--ea-mono); letter-spacing: .04em; text-transform: uppercase; }
.ea-settings-btn::before { display: none; }
.ea-settings-btn:hover, .ea-settings-btn[aria-expanded="true"] { color: inherit; border-color: transparent; }
.ea-gear { transition: transform .8s var(--ea-ease); }
.ea-settings-btn:hover .ea-gear, .ea-settings-btn[aria-expanded="true"] .ea-gear { transform: rotate(90deg); }
.ea-menu-btn { font: 450 12px/1 var(--ea-mono); letter-spacing: .04em; text-transform: uppercase; }
html.is-scene .ea-head:not(.is-menu) { color: #fff; background: none; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.is-scene .ea-head:not(.is-menu) .ea-pill:not(.ea-cta):not(.ea-settings-btn) { color: #fff; border-color: rgba(255, 255, 255, .4); }
html.is-scene .ea-head:not(.is-menu) .ea-pill:not(.ea-cta)::before { background: #fff; } /* over the open menu (paper) it goes back to ink, so its X shows */
html.is-scene .ea-head:not(.is-menu) .ea-settings-btn { color: #fff; }
html.is-scene .ea-head:not(.is-menu) .ea-menu-btn:hover { color: #0b132b; }
html.is-scene .ea-logo { text-shadow: 0 1px 12px rgba(6, 16, 50, .25); }

/* the home page: the landscape, sticky, with the words in beats over it */
.cv-land { position: relative; }
.cv-land:not(.is-live) { color: #fff; background: linear-gradient(#35538f, #1d3466 55%, #0b132b); padding: calc(var(--ea-head-h) + var(--ea-nav-h) + 48px) var(--ea-gutter) clamp(60px, 9vw, 120px); }
.cv-land:not(.is-live) .cv-beats { display: grid; gap: clamp(72px, 11vw, 150px); }
.cv-land:not(.is-live) .cv-beat { display: grid; gap: 18px; justify-items: start; }
.cv-land.is-live { height: 820vh; }
.cv-land.is-live .cv-land-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff;
  background: linear-gradient(#35538f, #22396e 52%, #1d4496 52.2%, #0e2356);
}
.cv-land-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cv-land-haze {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 14, 40, .34), rgba(6, 14, 40, 0) 52%), radial-gradient(130% 100% at 50% 40%, transparent 60%, rgba(4, 10, 32, .38));
}
.cv-land-haze::after { content: ""; position: absolute; inset: -50%; background: var(--ea-grain); opacity: .07; animation: ea-grain 1.2s steps(6) infinite; }
html[data-quality="low"] .cv-land-haze::after { display: none; }
.cv-land.is-live .cv-beats { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cv-land.is-live .cv-beat {
  position: absolute; top: 0; bottom: 0; left: var(--ea-gutter); width: min(52vw, 880px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(14px, 1.6vw, 22px);
  padding-top: calc(var(--ea-head-h) + var(--ea-nav-h)); will-change: opacity, transform; text-shadow: 0 2px 40px rgba(6, 16, 50, .3);
}
.cv-land.is-live .cv-beat.is-right { left: auto; right: var(--ea-gutter); width: min(44vw, 760px); }
.cv-land.is-live .cv-beat.is-on .cover-actions, .cv-land.is-live .cv-beat.is-on .content-note a { pointer-events: auto; }
.cv-beat .ea-display { font-size: clamp(46px, 6.9vw, 128px); }
.cv-beat-hero .ea-display { font-size: clamp(52px, 8.4vw, 156px); max-width: 8.5ch; }
.cv-beat-end .ea-display { font-size: clamp(44px, 6vw, 112px); }
.cv-beat .ea-copy { color: rgba(255, 255, 255, .92); }
.cv-beat .ea-copy + .ea-copy { margin-top: calc(-1 * clamp(6px, .9vw, 12px)); } /* a beat's small lines sit together */
.cover .cv-beat .cover-actions { margin: 6px 0 0; gap: 10px; justify-content: flex-start; }
.cover .cv-beat .content-note {
  margin: 2px 0 0; max-width: 54ch; font: 450 11px/1.55 var(--ea-mono); text-transform: uppercase; letter-spacing: .01em; color: rgba(255, 255, 255, .92);
  padding: 10px 12px; border-radius: 12px; background: rgba(24, 8, 52, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cv-beat .btn:not(.primary) {
  color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cv-beat .btn:not(.primary)::before { background: #fff; }
.cv-beat .btn:not(.primary):hover { color: #2a1040; border-color: #fff; }
.cv-beat .btn.primary { box-shadow: 0 18px 50px -12px rgba(110, 40, 230, .75); }
.cv-land .cv-keep { left: 50%; right: auto; transform: translateX(-50%); bottom: 26px; flex-direction: column-reverse; gap: 12px; color: rgba(255, 255, 255, .85); }
.cv-land .cv-keep i { background: rgba(255, 255, 255, .3); }
.cv-land .cv-keep i::after { background: #fff; }
.cv-land-stage[data-hover="folder"], .cv-land-stage[data-hover="egg"], .cv-land-stage[data-hover="cloud"] { cursor: pointer; }
html.has-cursor .cv-land-stage[data-hover] { cursor: none; }

/* below the landscape: the five cards and the fine print, on the deep purple of the lake at night */
.cover .cv-how, .cover .cv-fine { background: #0b132b; color: #f1f5ff; --ea-ink: #f1f5ff; --ea-ink-2: rgba(241, 245, 255, .68); --ea-ink-3: rgba(241, 245, 255, .42); --ea-line: rgba(241, 245, 255, .12); --ea-line-2: rgba(241, 245, 255, .22); }
.cover .cv-how { margin: 0; }
.cover .how b { font-family: var(--ea-serif); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(30px, 3.6vw, 60px); line-height: .9; }

@media (max-width: 900px) {
  .cv-land.is-live .cv-beat, .cv-land.is-live .cv-beat.is-right {
    left: 16px; right: 16px; width: auto; justify-content: flex-end; padding: 0 0 clamp(64px, 11vh, 110px);
  }
  .cv-land-haze { background: linear-gradient(0deg, rgba(6, 14, 40, .7), rgba(6, 14, 40, .35) 30%, rgba(6, 14, 40, 0) 60%), radial-gradient(130% 100% at 50% 40%, transparent 60%, rgba(4, 10, 32, .38)); }
  .cv-beat-hero .ea-display { font-size: clamp(40px, 11.6vw, 64px); max-width: none; }
  .cv-beat .ea-display, .cv-beat-end .ea-display { font-size: clamp(40px, 11.5vw, 66px); }
  .cv-land .cv-keep { display: none; }
}
@media (max-width: 720px) {
  .cover .cv-beat .cover-actions .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
  .cover .cv-beat .content-note { font-size: 10px; }
}
@media (max-width: 720px) and (max-height: 700px) {
  .cv-land.is-live .cv-beat { gap: 10px; padding-bottom: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-land-haze::after { animation: none; }
}

/* the room in the studio's capitals */
.cv-room .cv-beat.ea-display { font-family: var(--ea-serif); font-weight: 400; letter-spacing: -.012em; font-size: clamp(44px, 6.2vw, 116px); line-height: .88; max-width: min(17ch, 92vw); color: #f1f5ff; text-shadow: 0 2px 40px rgba(0, 0, 0, .45); }
/* the studio's stepped headline (shell.js stepLines): each line where the browser broke it, the second behind its ↳;
   measured a step narrower, so the stepped line still fits on one line */
.cv-beat.is-stepped .ea-ln { display: block; }
.cv-beat.ea-display.is-measuring { box-sizing: border-box; padding-right: 1.15em; }
.cv-room.is-live .cv-open .ea-chip { margin: 0 auto; }
.cv-open-title.ea-display { font-size: clamp(52px, 7.4vw, 136px); line-height: .86; letter-spacing: -.012em; }

/* a story page's title, in the same capitals (the light "How it began" of the studio's About) */
.scene-head h1, .guide-page .scene-head h1 {
  font-family: var(--ea-serif); font-weight: 400; text-transform: uppercase; letter-spacing: -.012em; line-height: .88;
  font-size: clamp(50px, 7.8vw, 132px); max-width: 16ch;
}
.scene-head h1 em { font-style: italic; text-transform: none; letter-spacing: -.025em; }
@media (max-width: 720px) {
  .scene-head h1, .guide-page .scene-head h1 { font-size: clamp(42px, 12.4vw, 64px); }
  .cv-room .cv-beat.ea-display { font-size: clamp(38px, 11vw, 60px); }
  .cv-open-title.ea-display { font-size: clamp(42px, 12vw, 64px); }
  /* a phone's strip is short: a smaller ring, and it waits until the strip is half open, so it never sits on the name */
  .ea-next-ring { width: 64px; font-size: 18px; }
  .ea-next-mid { gap: 8px; opacity: clamp(0, calc((var(--fill-k, 1) - .45) * 4), 1); }
}
@media (prefers-reduced-motion: reduce) { .ea-next-ring i { animation: none; } }

/* ───────────── a story page: the classified file ─────────────
   An open manila folder on the page: on a wide screen the inside of its front cover on the left, holding the note on
   your last choice, the photo, the tapes, the footage and the psychological commentary, in view as you read (.ff-side),
   and the back cover on the right with the typed sheet on it, the same paper and type as page one in the room's
   folder; narrower, the back cover alone, the note and the photo at the top of the sheet and the rest just above the
   answers (js/engine.js placeSide). Paper is paper in either theme, so the file keeps its own ink. */
.dossier.is-file {
  display: block; max-width: 1240px; padding-top: 40px;
  --ff-front: clamp(250px, 23vw, 320px);
  --ff-pad: clamp(10px, 2.2vw, 30px);
  --ff-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='1.2' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}
.dossier.is-file > * { grid-column: auto; }
.ff { position: relative; display: grid; grid-template-columns: var(--ff-front) minmax(0, 1fr); align-items: stretch; }
.ff-front, .ff-back { position: relative; background: var(--ff-fiber), linear-gradient(165deg, #ecd39c, #e0c081 52%, #cfa865); }
.ff-front {
  border-radius: 16px 0 0 16px;
  background: var(--ff-fiber),
    linear-gradient(90deg, transparent calc(100% - 26px), rgba(120, 82, 30, .2) calc(100% - 26px) calc(100% - 23px), transparent calc(100% - 23px) calc(100% - 14px), rgba(120, 82, 30, .2) calc(100% - 14px) calc(100% - 12px), transparent calc(100% - 12px)),
    linear-gradient(200deg, #e4c78c, #d3ae6a);
  box-shadow: inset -14px 0 18px -14px rgba(90, 55, 15, .5), 0 30px 50px -30px rgba(60, 30, 90, .45);
}
.ff-back {
  padding: var(--ff-pad); border-radius: 0 16px 16px 0;
  box-shadow: inset 10px 0 14px -12px rgba(90, 55, 15, .4), 0 30px 50px -30px rgba(60, 30, 90, .45), 0 2px 0 #b98f47;
}
/* the folder's own tab, up off its top edge, typed like its label */
.dossier.is-file .folder-tab {
  position: absolute; left: var(--ff-pad); bottom: calc(100% - 1px); display: block; margin: 0; padding: 11px 20px 9px;
  max-width: calc(100% - 2 * var(--ff-pad)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--ff-fiber), #e9cf97; border: 0; border-radius: 12px 12px 0 0; box-shadow: none;
  font: 400 13px/1 var(--ea-prop-type); letter-spacing: .05em; text-transform: uppercase; color: #4c3b1f;
}
.dossier.is-file .folder-tab::before, .dossier.is-file .folder-tab::after { content: none; }

/* the sheet (and the front cover's inside, which holds paper too) */
.sheet, .ff-side {
  --ea-ink: #1d1813; --ea-ink-2: rgba(29, 24, 19, .7); --ea-ink-3: rgba(29, 24, 19, .48);
  --ea-line: rgba(29, 24, 19, .14); --ea-line-2: rgba(29, 24, 19, .26);
  --ea-surface: #fffdf7; --ea-bg-2: #f1ebdd; --ea-accent: #0b6fa4; --ea-accent-ink: #0b6fa4; --ea-accent-soft: rgba(11, 111, 164, .12);
  --ea-red: #bf3227; --ea-green: #2f7a44;
  --ink: #1d1813; --ink-soft: rgba(29, 24, 19, .7); --ink-faint: rgba(29, 24, 19, .48);
  --paper: #fffdf7; --paper-2: #f1ebdd; --paper-edge: rgba(29, 24, 19, .2); --eggplant: #0b6fa4; --eggplant-2: #0b6fa4; --stamp: #bf3227;
  --sheet-type: "Special Elite", "Courier New", monospace;
  --sheet-body: "Courier Prime", "Courier New", ui-monospace, monospace;
  color: var(--ea-ink); color-scheme: light;
}
.sheet {
  position: relative; z-index: 2;
  padding: clamp(50px, 6vw, 86px) clamp(18px, 5.4vw, 82px) clamp(32px, 4vw, 60px);
  background: var(--ff-grain), linear-gradient(180deg, #fbf8f0, #f7f2e6);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(60, 40, 10, .2), 0 16px 34px -16px rgba(60, 40, 10, .45);
  font-family: var(--sheet-body);
}
/* the fastener through the top of the sheet */
.sheet::before {
  content: ""; position: absolute; top: 18px; left: 50%; width: 132px; height: 11px; transform: translateX(-50%); border-radius: 6px;
  background: linear-gradient(180deg, #e7e8ec, #a8acb4 60%, #8c9099); box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}
.sheet::after {
  content: ""; position: absolute; top: 15px; left: 50%; width: 92px; height: 17px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle at 8px 50%, #c9c3b5 3px, transparent 4px), radial-gradient(circle at calc(100% - 8px) 50%, #c9c3b5 3px, transparent 4px);
}
.sheet > .stamp {
  position: absolute; z-index: 1; top: clamp(44px, 5.2vw, 70px); right: clamp(16px, 4.4vw, 64px); margin: 0;
  padding: 4px 12px 3px; border: 3px solid var(--ea-red); border-radius: 4px; color: var(--ea-red);
  font: 400 15px/1.2 var(--sheet-type); letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(6deg); opacity: .82; mix-blend-mode: multiply;
}
.sheet > .egg-weight { top: clamp(30px, 4vw, 52px); right: clamp(8px, 3.6vw, 52px); }
.sheet .scene-head { position: relative; margin: 0 0 clamp(24px, 3vw, 38px); padding: 0 0 18px; max-width: none; border-bottom: 3px double rgba(29, 24, 19, .5); }
.sheet .scene-head .chapter { margin: 0 0 14px; padding-right: 130px; font: 400 13px/1.35 var(--sheet-type); letter-spacing: .08em; text-transform: uppercase; color: #6a5a46; }
.sheet .scene-head .chapter::before, .sheet .scene-head .chapter::after { content: none; }
.dossier.is-file .sheet .scene-head h1 {
  max-width: 19ch; margin: 0; font: 400 clamp(30px, 4.1vw, 58px)/1.07 var(--sheet-type); letter-spacing: 0; text-transform: uppercase; color: var(--ea-ink);
}
.dossier.is-file .sheet .scene-head h1 em {
  font-family: inherit; font-style: normal; font-size: inherit; letter-spacing: 0; text-transform: inherit;
  background: linear-gradient(transparent 55%, rgba(11, 111, 164, .18) 55%, rgba(11, 111, 164, .18) 88%, transparent 88%);
}
.sheet .timestamp { margin-top: 16px; font: 400 13px/1.3 var(--sheet-type); letter-spacing: .06em; color: #6a5a46; }
.sheet .timestamp::before { content: none; }

/* the note on your last choice: a sticky note; the photo: a print, paper-clipped */
:is(.sheet, .ff-side) .ff-aside { margin: 0 0 clamp(26px, 3.4vw, 40px); }
:is(.sheet, .ff-side) .ff-aside-in { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 32px; }
:is(.sheet, .ff-side) .ff-aside-in > * { flex: 1 1 240px; min-width: 0; }
:is(.sheet, .ff-side) .outcome {
  position: relative; overflow: visible; margin: 0; padding: 22px 20px 18px; border: 0; border-radius: 2px;
  background: linear-gradient(180deg, #fff7b0, #fdeb7a); color: #2a2410; transform: rotate(-1.4deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 12px 20px -12px rgba(80, 60, 0, .55);
}
:is(.sheet, .ff-side) .outcome::before {
  content: ""; position: absolute; top: -11px; bottom: auto; left: 50%; width: 76px; height: 22px; transform: translateX(-50%) rotate(2deg);
  background: rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
:is(.sheet, .ff-side) .you-chose { margin: 0 0 8px !important; font: 700 23px/1.12 "Caveat", cursive; color: #3a2f12; }
:is(.sheet, .ff-side) .you-chose span { display: block; margin: 0 0 6px; font: 400 11px/1 var(--sheet-type); letter-spacing: .1em; text-transform: uppercase; color: #8a6d1a; }
:is(.sheet, .ff-side) .you-chose span::before, :is(.sheet, .ff-side) .you-chose span::after { content: none; }
:is(.sheet, .ff-side) .outcome .result { font: 400 16px/1.5 var(--sheet-body); letter-spacing: 0; }
:is(.sheet, .ff-side) .gains li { background: rgba(255, 255, 255, .55); border-color: rgba(42, 36, 16, .2); }
:is(.sheet, .ff-side) .m-image { position: relative; margin: 0; padding: 10px 10px 2px; background: #fff; border-radius: 2px; transform: rotate(1.6deg); box-shadow: 0 2px 3px rgba(0, 0, 0, .14), 0 18px 28px -16px rgba(40, 20, 0, .5); }
:is(.sheet, .ff-side) .m-image .polaroid { border-radius: 0; overflow: visible; background: #ece6da; }
:is(.sheet, .ff-side) .m-image :is(.polaroid img, .ph-image) { aspect-ratio: 4 / 3; border-radius: 0; }
:is(.sheet, .ff-side) .m-image .polaroid .clip { display: block; top: -22px; left: 26px; width: 16px; height: 50px; border: 3px solid #9a9ca5; border-radius: 9px; border-bottom-color: transparent; box-shadow: 0 1px 1px rgba(0, 0, 0, .15); }
:is(.sheet, .ff-side) .m-image figcaption { margin: 0; padding: 8px 4px 10px; text-align: center; font: 700 21px/1.15 "Caveat", cursive; letter-spacing: 0; text-transform: none; color: #3a2f12; }
:is(.sheet, .ff-side) .m-image figcaption .hash { font-family: var(--sheet-body); }
:is(.sheet, .ff-side) .ph-label { font-family: var(--sheet-type); }

/* the typed page */
.sheet .body { font: 400 clamp(16.5px, 1.24vw, 18.5px)/1.72 var(--sheet-body); letter-spacing: 0; }
.sheet .body p { margin: 0 0 1em; }
.sheet .body strong { font-weight: 700; }
.sheet .body em { font-family: inherit; font-style: italic; font-size: inherit; letter-spacing: 0; }
.sheet .transcript { margin: 1.5em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--ea-accent); }
.sheet .transcript .who { margin-bottom: 8px; color: var(--ea-ink-2); }
.sheet .transcript p { font: 700 clamp(19px, 1.7vw, 24px)/1.36 var(--sheet-body); letter-spacing: -.01em; }
.sheet .document { margin: 1.4em 0; padding: clamp(16px, 2.4vw, 28px); background: rgba(255, 252, 240, .7); border: 1.5px dashed rgba(29, 24, 19, .34); border-radius: 2px; }
.sheet .document h3 { font: 400 14px/1.3 var(--sheet-type); letter-spacing: .08em; border-bottom-color: rgba(29, 24, 19, .22); }
.sheet .document p { font: 400 16px/1.6 var(--sheet-body); }
.sheet .analyst { display: block; margin: 1.3em 0; padding: 16px 18px; background: rgba(255, 252, 240, .7); border: 1px solid rgba(29, 24, 19, .16); border-left: 4px solid var(--ea-red); }
.sheet .analyst .tag { display: block; margin-bottom: 6px; font: 400 12px/1.3 var(--sheet-type); letter-spacing: .08em; color: var(--ea-red); }
.sheet .analyst p { font: 400 16.5px/1.55 var(--sheet-body); }
.sheet .links a { color: var(--ea-ink); }

/* the answers: a typed questionnaire, a box for each, a highlighter on the one you're on */
.sheet .choices { margin-top: clamp(30px, 4vw, 54px); padding-top: 22px; border-top: 3px double rgba(29, 24, 19, .5); }
.sheet .choices h2 { margin: 0 0 12px; font: 400 14px/1.3 var(--sheet-type); letter-spacing: .1em; text-transform: uppercase; color: var(--ea-red); }
.sheet .choices h2::before, .sheet .choices h2::after { content: none; }
.sheet .choices ol { border-top: 0; gap: 2px; }
.sheet .choice {
  grid-template-columns: 30px minmax(0, 1fr) 22px; gap: 0 16px; padding: 14px 10px; border-bottom: 1px dashed rgba(29, 24, 19, .24);
  font: 400 clamp(17px, 1.4vw, 20px)/1.42 var(--sheet-body); letter-spacing: 0; color: var(--ea-ink);
}
.sheet .choice::before {
  background: linear-gradient(transparent 6%, rgba(255, 224, 80, .7) 6%, rgba(255, 224, 80, .7) 94%, transparent 94%);
  transform: scaleX(0); transform-origin: left center; transition: transform .45s var(--ea-ease);
}
.sheet .choice::after { color: rgba(29, 24, 19, .55); }
.sheet .choice:hover, .sheet .choice:focus-visible { color: var(--ea-ink); }
.sheet .choice:hover::before, .sheet .choice:focus-visible::before { transform: none; }
.sheet .choice .letter { width: 28px; height: 28px; border: 2px solid currentColor; border-radius: 3px; font: 700 13px/1 var(--sheet-body); opacity: 1; }
.sheet .choice.is-wrong, .sheet .choice.is-wrong:hover, .sheet .choice.is-wrong:focus-visible { color: #8d271e; }
.sheet .choice.is-wrong::before { background: rgba(191, 50, 39, .1); transform: none; }
.sheet .choice.is-wrong::after { color: var(--ea-red); }
.sheet .choice.is-wrong .label { text-decoration-color: var(--ea-red); }
.sheet .choice.is-wrong .letter { position: relative; color: transparent; border-color: var(--ea-red); }
.sheet .choice.is-wrong .letter::after { content: "✗"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ea-red); font-size: 20px; }
.sheet .wrong-note { background: rgba(191, 50, 39, .07); font: 400 16px/1.5 var(--sheet-body); }
.sheet .wrong-note b { font-family: var(--sheet-type); }
.sheet .wrong-note span { font-family: var(--sheet-type); }
.sheet .kbd-hint { font: 400 12px/1.3 var(--sheet-type); letter-spacing: .06em; color: var(--ea-ink-3); }
/* the right answer (js/engine.js turnPage): it goes green with a check, DECRYPTED slams onto the sheet, and under the
   answers its line and the hook into the next chapter, with "Turn the page" filling as the page gets ready to turn */
.sheet .choice.is-right, .sheet .choice.is-right:hover, .sheet .choice.is-right:focus-visible { color: #14532d; }
.sheet .choice.is-right::before { background: linear-gradient(transparent 6%, rgba(120, 220, 140, .55) 6%, rgba(120, 220, 140, .55) 94%, transparent 94%); transform: none; }
.sheet .choice.is-right::after { content: "✓"; color: #15803d; transform: none; opacity: 1; }
.sheet .choice.is-right .letter { position: relative; color: transparent; border-color: #15803d; }
.sheet .choice.is-right .letter::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #15803d; font-size: 20px; }
.sheet .choices.is-solved .choice:not(.is-right) { opacity: .38; cursor: default; }
.sheet .choices.is-solved .choice:not(.is-right)::before { transform: scaleX(0); }
.sheet .choices.is-solved .kbd-hint { display: none; }
.right-note .stamp-solved {
  position: absolute; top: -22px; right: clamp(8px, 2vw, 22px); z-index: 2; padding: 6px 14px 4px; border: 3px solid #15803d; border-radius: 4px;
  color: #15803d; background: rgba(250, 247, 238, .7); font: 400 clamp(16px, 1.8vw, 22px)/1.1 var(--sheet-type); letter-spacing: .18em; text-transform: uppercase;
  transform: rotate(-7deg); animation: stamp-slam .5s cubic-bezier(.2, 1.6, .4, 1) both; pointer-events: none; mix-blend-mode: multiply;
}
@keyframes stamp-slam { 0% { transform: rotate(-7deg) scale(2.6); opacity: 0; } 60% { opacity: .95; } 100% { transform: rotate(-7deg) scale(1); opacity: .92; } }
.right-note {
  position: relative; margin: 30px 0 0; padding: 18px 20px; border-left: 3px solid #15803d; background: rgba(21, 128, 61, .08);
  animation: rn-in .55s var(--ea-ease-out) both;
}
@keyframes rn-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.right-note p { margin: 0; }
.rn-line { font: 400 17px/1.5 var(--sheet-body); color: var(--ea-ink); }
.rn-line b { margin-right: 6px; font: 400 13px/1 var(--sheet-type); letter-spacing: .1em; text-transform: uppercase; color: #15803d; }
.rn-hook { margin-top: 14px !important; padding-top: 14px; border-top: 1px dashed rgba(29, 24, 19, .26); font: 700 clamp(19px, 1.7vw, 23px)/1.38 var(--sheet-body); color: var(--ea-ink); }
.rn-hook span { display: block; margin-bottom: 6px; font: 400 12px/1.3 var(--sheet-type); letter-spacing: .1em; text-transform: uppercase; color: var(--ea-red); }
.rn-go { position: relative; overflow: hidden; margin-top: 16px; }
.rn-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, .85); transform-origin: left; animation: rn-bar var(--turn, 6500ms) linear both; }
@keyframes rn-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .right-note .stamp-solved, .right-note { animation: none; } }
.sheet kbd { background: #fff; border-color: rgba(29, 24, 19, .25); color: var(--ea-ink); }
.sheet .ending-panel { border-top: 3px double rgba(29, 24, 19, .5); }
.sheet .stamp-big { font-size: clamp(28px, 4.4vw, 64px); margin: 6px 0 clamp(34px, 4vw, 52px); }
.sheet .rank { font: 400 clamp(26px, 3.2vw, 44px)/1.1 var(--sheet-type); letter-spacing: 0; text-transform: uppercase; }
.sheet .rank span { font: 400 12px/1.3 var(--sheet-type); letter-spacing: .1em; }
.sheet .notebook h3 { font: 400 20px/1.25 var(--sheet-type); letter-spacing: .02em; }
.sheet .ledger dt, .sheet .ledger dd, .sheet .nb-line label, .sheet .nb-prev, .sheet .nb-note, .sheet .fine-print { font-family: var(--sheet-body); }
.sheet .badges li, .sheet .endings-found li.got { background: rgba(255, 253, 247, .8); }

/* the extras (js/engine.js extrasHTML): the tapes and the footage, then the psychological commentary typed on a page of
   its own; on the inside of the front cover on a wide screen, just above the answers on the sheet when narrower.
   One typewriter face at one size (Angie, Oct 25: the files look like forensic dossier files, one size, no dropdowns). */
.ff-extras { --ff-type: 400 16px/1.6 var(--sheet-body); display: grid; gap: clamp(30px, 3.4vw, 44px); color: var(--ea-ink); font: var(--ff-type); letter-spacing: 0; }
.sheet > .ff-extras { margin: clamp(34px, 4vw, 52px) 0 0; padding-top: clamp(30px, 3.6vw, 44px); border-top: 1px dashed var(--ea-line-2); }
.ff-av { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 30px 32px; align-items: start; }
.ff-side .ff-av { grid-template-columns: minmax(0, 1fr); }
.ff-sub { color: var(--ea-ink); }
/* the psychological commentary, typed on a page of its own (Angie, Oct 25: "make psychological commentary look like a
   page also"): the file's paper, fastener and type, a stamp, the chapter over its title, under the sheet */
.ff-paper {
  --ea-ink: #1d1813; --ea-ink-2: rgba(29, 24, 19, .78); --ea-ink-3: rgba(29, 24, 19, .5); --ea-line: rgba(29, 24, 19, .14); --ea-line-2: rgba(29, 24, 19, .28);
  --ea-red: #bf3227; --ea-accent: #0b6fa4;
  --sheet-type: "Special Elite", "Courier New", monospace; --sheet-body: "Courier Prime", "Courier New", ui-monospace, monospace;
  position: relative; margin: 0; padding: clamp(48px, 5vw, 64px) clamp(18px, 3.6vw, 48px) clamp(30px, 3.6vw, 44px);
  color: var(--ea-ink); color-scheme: light; border-radius: 3px; font: 400 16px/1.65 var(--sheet-body); letter-spacing: 0;
  background: var(--ff-grain), linear-gradient(180deg, #fbf8f0, #f7f2e6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(60, 40, 10, .2), 0 16px 34px -16px rgba(60, 40, 10, .45);
}
.ff-paper::before {
  content: ""; position: absolute; top: 18px; left: 50%; width: 132px; height: 11px; transform: translateX(-50%); border-radius: 6px;
  background: linear-gradient(180deg, #e7e8ec, #a8acb4 60%, #8c9099); box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}
.ff-paper > .stamp {
  position: static; display: inline-block; margin: 0 0 16px; padding: 4px 12px 3px;
  border: 3px solid var(--ea-red); border-radius: 4px; color: var(--ea-red); font: 400 14px/1.2 var(--sheet-type); letter-spacing: .14em;
  text-transform: uppercase; transform: rotate(-3deg); opacity: .82; mix-blend-mode: multiply;
}
/* the fun fact, typed on the sheet right under the story (Angie, Oct 30; a card by the tape before that): a thin rule,
   its title, its lines in the story's type */
.sheet > .ff-fact { margin: clamp(26px, 3vw, 36px) 0 0; padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px dashed var(--ea-line-2); color: var(--ea-ink); font: 400 clamp(16.5px, 1.24vw, 18.5px)/1.72 var(--sheet-body); letter-spacing: 0; }
.sheet > .ff-fact .ff-fact-h { margin: 0 0 10px; font-weight: 700; color: var(--ea-ink); }
.sheet > .ff-fact p { margin: 0 0 1em; }
.sheet > .ff-fact p:last-child { margin-bottom: 0; }
.ff-paper-title { margin: 0 0 clamp(24px, 3vw, 34px); padding: 0 0 16px; border-bottom: 3px double rgba(29, 24, 19, .5); font: 400 clamp(24px, 2.6vw, 34px)/1.1 var(--sheet-type); letter-spacing: 0; text-transform: uppercase; color: var(--ea-ink); }
.ff-paper .ff-note + .ff-note { margin-top: clamp(26px, 3vw, 36px); padding-top: clamp(22px, 2.6vw, 30px); border-top: 1px dashed var(--ea-line-2); }
.ff-paper .ff-h { margin: 0 0 12px; font: 400 14px/1.35 var(--sheet-type); letter-spacing: .08em; text-transform: uppercase; color: var(--ea-ink); }
.ff-paper p { max-width: 68ch; margin: 0 0 .9em; font: inherit; color: var(--ea-ink); }
.ff-paper p:last-child { margin-bottom: 0; }
.ff-paper b, .ff-paper strong { font-weight: 700; color: var(--ea-ink); }
.ff-paper .ff-sub { font-weight: 700; }
.sheet .ff-paper { box-shadow: 0 1px 2px rgba(60, 40, 10, .18), 0 10px 22px -14px rgba(60, 40, 10, .4); }
.ff-side .ff-paper { padding: 44px 20px 28px; }
.ff-side .ff-paper-title { font-size: 22px; }
@media (max-width: 720px) {
  .ff-paper { padding: 42px 16px 26px; }
  .ff-paper::before, .ff-side .ff-paper::before { width: 96px; top: 16px; }
  .ff-paper > .stamp { padding: 3px 8px 2px; border-width: 2px; font-size: 11px; }
  .ff-paper-title { font-size: 22px; }
}

/* what the extras hold, in the same type: the tapes and the player, the footage, the evidence links */
.ff-av > .m-audio { max-width: 400px; margin: 0; }
.ff-extras .deck3d { perspective: 1000px; perspective-origin: 50% 20%; }
.ff-extras .deck3d .t3 { position: relative; z-index: 2; width: min(100%, 340px); margin: 0; }
.ff-extras .m-audio .dk-min .ph-label, .ff-extras .dk-min .time { font: var(--ff-type); letter-spacing: 0; text-transform: none; }
.ff-extras .m figcaption { margin-top: 10px; font: var(--ff-type); letter-spacing: 0; text-transform: none; color: var(--ea-ink-2); }
.ff-extras .m-video { max-width: 560px; margin: 0; }
.ff-extras .m figcaption .hash { font-family: var(--sheet-body); }
.ff-extras .ph-video .rec, .ff-extras .ph-video .ph-label, .ff-extras .ph-video .ph-sub { font: var(--ff-type); letter-spacing: 0; text-transform: none; }
.ff-extras .links { margin: 0; padding: 0; border: 0; background: none; font: inherit; }
.ff-extras .links h2 { display: none; }
.ff-extras .links ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ff-extras .links li { margin: 0; padding: 0; border: 0; background: none; }
.ff-extras .links a { display: inline; font: inherit; color: var(--ea-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ea-line-2); }
.ff-extras .links a:hover { color: var(--ea-accent); }
.ff-extras .links a b { font-weight: 600; }
.ff-extras .links small { margin-left: 8px; font: inherit; color: var(--ea-ink-3); }
.ff-extras .links p { margin: 2px 0 0; }

@media (min-width: 721px) { body[data-view="scene"] main { padding-top: calc(var(--ea-head-h) + var(--ea-nav-h) + clamp(24px, 4vw, 56px)); } }
@media (min-width: 1100px) {
  /* the inside of the front cover: the note, the photo, the tapes, the footage and the commentary, in order, beside
     the sheet; the folder is as tall as the longer side. When that's the cover, the back cover and its sheet scroll
     until the answers are in view and wait there (sticky; js/engine.js placeSide measures it as --ff-back-h), so the
     quiz stays on screen while you read the rest of the commentary, and the two sides end together. */
  .dossier.is-file { --ff-front: clamp(330px, 31vw, 420px); }
  .ff-front { grid-column: 1; grid-row: 1; }
  .ff-side { grid-column: 1; grid-row: 1; position: relative; z-index: 2; min-width: 0; display: grid; align-content: start; gap: 40px; padding: clamp(56px, 6vw, 92px) 30px 44px 24px; }
  .ff-back { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: min(calc(var(--ea-head-h) + var(--ea-nav-h) + 24px), calc(100vh - var(--ff-back-h, 0px) - 24px)); }
  .ff-side .ff-aside { margin: 0; }
  .ff-side .ff-aside-in { display: grid; gap: 34px; }
  .ff-side .ff-aside-in > .m-image { margin: 0 6px; }
}
@media (max-width: 1099px) {
  .ff { grid-template-columns: minmax(0, 1fr); }
  .ff-front, .ff-side { display: none; }
  .ff-back { border-radius: 16px; }
  .sheet .ff-aside-in > .m-image { flex: 0 1 340px; margin-left: auto; }
}
@media (max-width: 720px) {
  .dossier.is-file { padding-top: 36px; --ff-pad: 8px; }
  .dossier.is-file .folder-tab { padding: 10px 14px 8px; font-size: 11px; }
  .sheet { padding: 46px 18px 26px; }
  .sheet::before { width: 96px; top: 16px; }
  .sheet::after { width: 64px; top: 13px; }
  .sheet > .stamp { top: 40px; right: 12px; padding: 3px 8px 2px; border-width: 2px; font-size: 10px; }
  .dossier.is-file .sheet > .egg-weight { top: 22px; right: 4px; }
  .sheet .scene-head .chapter { padding-right: 92px; font-size: 11.5px; }
  .dossier.is-file .sheet .scene-head h1 { font-size: clamp(26px, 7.8vw, 36px); max-width: none; }
  .sheet .choice { grid-template-columns: 28px minmax(0, 1fr) 18px; gap: 0 12px; padding: 13px 4px; font-size: 17px; }
  .sheet .choice .letter { width: 26px; height: 26px; }
  .sheet .ff-aside-in > .m-image { flex-basis: 100%; max-width: 86%; }
}

/* ───────────── the sections, across the top: one row of quiet buttons ─────────────
   (Angie, Oct 27 05:28: "Go back to very elegant minimal menu buttons".) A slim capsule under the header, centred and
   the same on every page, story pages too: the sections in it as plain words, the one you're on a filled pill.
   Nothing in it moves, hides or scrolls, so a tap lands where it's aimed; a phone holds the five by short names. */
body {
  /* the white pages' paper (see below): its tone and its fine fibres, drawn by the browser */
  --pp-tone: #f7f3ea;
  --pp-fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .16 0 0 0 .34 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
.ea-head { flex-wrap: wrap; row-gap: 10px; }
.ea-head .ea-nav { order: 9; flex: 1 1 100%; display: flex; justify-content: center; min-width: 0; margin: 0; gap: 0; }
.ea-nav-in {
  display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 3px;
  border: 1px solid rgba(241, 245, 255, .16); border-radius: 999px; background: rgba(241, 245, 255, .04);
}
.ea-head .ea-nav-in > a, .ea-head .ea-nav-in > button {
  flex: 0 1 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 0; height: 34px; margin: 0; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent; color: rgba(241, 245, 255, .72); cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s;
}
.ea-head .ea-nav-in > a::after, .ea-head .ea-nav-in > button::after { content: none; }
.ea-head .ea-nav-in small { display: none; } /* the numbers stay in the Menu */
.ea-head .ea-nav-in > :hover { color: #f1f5ff; background: rgba(241, 245, 255, .09); }
.ea-head .ea-nav-in > :focus-visible { outline: 2px solid var(--ea-accent); outline-offset: 2px; }
.ea-head .ea-nav-in > [aria-current="page"] { background: #f1f5ff; color: #0b132b; }
.ea-nav .tab-short { display: none; }
/* over the room's night the capsule gets a pane of dark glass, so the words read over any wall */
html.is-scene .ea-nav-in { background: rgba(5, 10, 24, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ea-head.is-menu .ea-nav { visibility: hidden; }
body[data-view="cover"] .ea-nav + #hud[hidden] + .ea-actions,
body[data-view="guide"] .ea-nav + #hud[hidden] + .ea-actions,
body[data-view="lab"] .ea-nav + #hud[hidden] + .ea-actions,
body[data-view="incident"] .ea-nav + #hud[hidden] + .ea-actions { margin-left: auto; }
@media (max-width: 720px) {
  .ea-head { row-gap: 8px; }
  .ea-nav-in { display: flex; width: 100%; }
  .ea-head .ea-nav-in > a, .ea-head .ea-nav-in > button { flex: 1 1 auto; padding: 0 6px; }
  .ea-nav .tab-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* still read out */
  .ea-nav .tab-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .ea-head .ea-nav-in > * { transition: none; } }

/* ───────────── the white pages (Angie, Oct 27: "make the pages just white pages", then paper): every page but the
   room, the story's folder and the shorts wall is a sheet of paper on the navy desk, just under the header; inside
   it, the site's colours turn to ink on paper, so every page's own parts follow. */
body[data-sheet="paper"] main {
  --ea-bg: var(--pp-tone); --ea-bg-2: #ede6d6; --ea-surface: #fffdf8;
  --ea-ink: #1d1813; --ea-ink-2: rgba(29, 24, 19, .72); --ea-ink-3: rgba(29, 24, 19, .5);
  --ea-line: rgba(29, 24, 19, .13); --ea-line-2: rgba(29, 24, 19, .26);
  --ea-accent: #0b6fa4; --ea-accent-ink: #0b6fa4; --ea-accent-soft: rgba(11, 111, 164, .1); --ea-on-accent: #ffffff;
  --ea-red: #c0392b; --ea-green: #1f8a4c;
  /* style.css's tokens are set from these on :root, so they're set again here to pick up the sheet's values */
  --desk: var(--ea-bg); --desk-2: var(--ea-bg-2); --paper: var(--ea-surface); --paper-2: var(--ea-bg-2); --paper-edge: var(--ea-line-2);
  --ink: var(--ea-ink); --ink-soft: var(--ea-ink-2); --ink-faint: var(--ea-ink-3);
  --eggplant: var(--ea-accent-ink); --eggplant-2: var(--ea-accent); --eggplant-glow: var(--ea-accent);
  --stamp: var(--ea-red); --leaf: var(--ea-green); --on-desk: var(--ea-ink); --on-desk-soft: var(--ea-ink-2);
  color-scheme: light;
  max-width: 1440px; min-height: calc(100vh - var(--ea-head-h) - var(--ea-nav-h));
  margin: calc(var(--ea-head-h) + var(--ea-nav-h) + 14px) auto 0; padding: clamp(28px, 5vw, 76px) clamp(18px, 4vw, 64px) clamp(48px, 7vw, 96px);
  color: var(--ea-ink); border-radius: 14px 14px 0 0;
  /* paper, not a flat white: light falls from the top, the edges turn a shade, fibres run through it and it's a little
     uneven (soft blotches, each fading out inside its own tile, so no tile shows an edge) */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 420px),
    linear-gradient(90deg, rgba(120, 86, 34, .06), transparent 4%, transparent 96%, rgba(120, 86, 34, .07)),
    var(--pp-fibre),
    radial-gradient(closest-side at 32% 38%, rgba(150, 110, 50, .06), transparent) 0 0 / 940px 1240px,
    radial-gradient(closest-side at 70% 64%, rgba(150, 110, 50, .045), transparent) 0 0 / 660px 820px,
    var(--pp-tone);
  /* and a stack of sheets under it, each a little further out, before the shadow on the desk */
  --pp-lift: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 -60px 80px -60px rgba(120, 86, 34, .16),
    var(--pp-lift) calc(var(--pp-lift) * 1.2) 0 -1px #ebe3d0, var(--pp-lift) calc(var(--pp-lift) * 1.2) 3px -1px rgba(0, 0, 0, .45),
    calc(var(--pp-lift) * 2) calc(var(--pp-lift) * 2.4) 0 -2px #ddd2bb, calc(var(--pp-lift) * 2) calc(var(--pp-lift) * 2.4) 4px -2px rgba(0, 0, 0, .5),
    0 46px 90px -34px rgba(0, 0, 0, .85), 0 12px 26px -14px rgba(0, 0, 0, .55);
}
@media (min-width: 1441px) { body[data-sheet="paper"] main { border-radius: 14px; margin-bottom: 40px; } }
@media (max-width: 1440px) { body[data-sheet="paper"] main { margin-left: var(--ea-gutter); margin-right: var(--ea-gutter); } }
@media (max-width: 720px) {
  body[data-sheet="paper"] main { --pp-lift: 3px; margin-left: 6px; margin-right: 12px; padding: 26px 16px 48px; border-radius: 10px 10px 0 0; }
}

/* ───────────── the Forensic Dynamics Lab (#/lab/…; js/lab.js, css/lab.css): its dark terminal, wider than a page ───────────── */
body[data-view="lab"] main { max-width: 1440px; } /* its white sheet: css above */
@media (max-width: 720px) { body[data-view="lab"] main { padding-left: 6px; padding-right: 6px; } }
#lab .lab-root { border-radius: 22px; }
/* the pager at a lab page's foot: the section before, the way back into the story, the next section */
.ea-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; padding-top: 24px; }
#lab .ea-pager-a, .ea-pager-a {
  display: inline-grid; gap: 6px; justify-items: start; min-height: 44px; padding: 12px 18px; border-radius: 14px;
  border: 1px solid var(--ea-line-2); background: transparent; color: var(--ea-ink); text-decoration: none;
  font: 500 15px/1.2 var(--ea-font); letter-spacing: -.01em; cursor: pointer; transition: background-color .3s, border-color .3s;
}
.ea-pager-a small { color: var(--ea-ink-3); }
#lab .ea-pager-a:hover { background: var(--ea-accent-soft); border-color: var(--ea-accent); }
.ea-pager-next { justify-items: end; text-align: right; }

/* a story page holds still at its top for a moment as it opens (shell.js holdTop), so a fling from the page before
   doesn't carry into it */
html.is-holding, html.is-holding body { overflow: hidden; }

/* the end of the home page (Oct 25): past the last line, the ring onto the room; the room it opens onto is built out of
   sight in the stage while you read */
.cv-land-next { position: absolute; inset: 0; z-index: -1; visibility: hidden; pointer-events: none; overflow: hidden; }

/* the player under every tape (Oct 25, ANGIE: "more elegant and minimal"): a round play key, the waveform as a thin
   line you can tap or drag, and the time. No deck, no screen, no seal: until a recording is on file, "Audio coming
   soon" sits where the line goes. It takes the colour of what it sits on (light on the dark fields, ink on paper). */
.m-audio .say-deck.dk-min {
  --vfd: currentColor; --dk-accent: #9b5cff;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  margin: 0; padding: 16px 2px 2px; color: inherit; background: none; box-shadow: none; border-radius: 0; transform: none;
}
.dk-min .dk-play {
  position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  color: #fff; background: var(--dk-accent); box-shadow: 0 10px 24px -10px rgba(155, 92, 255, .95); cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.dk-min .dk-play:hover:not(:disabled) { transform: scale(1.06); box-shadow: 0 12px 30px -8px rgba(155, 92, 255, 1); }
.dk-min .dk-play:active:not(:disabled) { transform: scale(.95); }
.dk-min .dk-play:focus-visible { outline: 2px solid var(--dk-accent); outline-offset: 3px; }
.dk-min .dk-play .key-ico { font-size: 13px; line-height: 1; margin-left: 2px; }
.dk-min .dk-play.down .key-ico { margin-left: 0; font-size: 11px; letter-spacing: -.1em; }
.dk-min .dk-play .key-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dk-min .dk-play:disabled { cursor: default; color: inherit; background: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent); opacity: .5; }
.dk-min .dk-track { position: relative; min-width: 0; height: 30px; }
.m-audio .dk-min .dk-wave { height: 100%; }
.m-audio .dk-min .dk-bars i { border-radius: 2px; background: color-mix(in srgb, currentColor 22%, transparent); box-shadow: none; }
.m-audio .dk-min .dk-bars.lit i { background: var(--dk-accent); box-shadow: none; }
.m-audio .dk-min .dk-head { top: -3px; bottom: -3px; width: 1px; margin-left: 0; background: currentColor; box-shadow: none; }
.m-audio .dk-min .dk-wave:not(.has-wave)[data-src]::after { justify-content: flex-start; font: 450 11px/1 var(--ea-mono); letter-spacing: .08em; color: color-mix(in srgb, currentColor 50%, transparent); }
.dk-min .time { min-width: 4.2ch; text-align: right; font: 450 12px/1 var(--ea-mono); font-variant-numeric: tabular-nums; color: color-mix(in srgb, currentColor 62%, transparent); }
.m-audio .dk-min .ph { position: absolute; inset: 0; display: none; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; margin: 0; padding: 0; background: none; border-radius: 0; text-align: left; }
.m-audio[data-state="missing"] .dk-min .ph { display: flex; }
.m-audio[data-state="missing"] .dk-min .dk-wave, .m-audio[data-state="missing"] .dk-min .time { visibility: hidden; }
.m-audio .dk-min .ph-label { display: inline; font: 450 11px/1.3 var(--ea-mono); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, currentColor 62%, transparent); }
@media (prefers-reduced-motion: reduce) { .dk-min .dk-play { transition: none; } }

/* ───────────── one typewriter, one size (her card "Typewriter everywhere", Oct 27, and her rule of Oct 25: one font,
   the same size everywhere). Every word on every page is Courier Prime at one size; a title is the same type, bold
   and one step bigger. Left at their own size: the props drawn to size (a cassette's label, a stamp, the folder on
   the desk, the photo and footage slots, the phone and terminal mock-ups), the loader, and the room's and the lake's
   big lines, which are part of the scene. Her incident pages get the same type laid over them (js/engine.js). */
:root { --one-size: 16px; --one-title: 20px; }
@media (max-width: 720px) { :root { --one-size: 15px; --one-title: 18px; } }
body, body * { font-family: var(--one-font) !important; letter-spacing: 0 !important; }
body, body :not(:where(.t3, .t3 *, .say-deck *, .stamp, .stamp *, .stamp-big, .qb-stamp, .vm-stamp, .t3-seal, .ph *, .crt *,
  .phone *, .terminal *, .cv-folder *, .egg-weight, .egg-weight *, .ea-loader *, .cv-room *, .cv-land *, .ea-next *,
  .ea-reel *, .ea-peek *, .ea-cursor, .ea-cursor *)) { font-size: var(--one-size) !important; }
body :is(h1, h2, h3, h4, h5, h6):not(:where(.t3 *, .cv-room *, .cv-land *, .ea-loader *, .ea-reel *)),
body :is(.ea-menu-list a, .ea-menu-list button) { font-size: var(--one-title) !important; font-weight: 700 !important; line-height: 1.3 !important; }
body :is(h1, h2, h3, h4, h5, h6) * { font-size: inherit !important; font-weight: inherit !important; }

/* ───────────── one look (Angie, Oct 27 05:30: "Make everything consistent and uniform. Font family, etc, make it very
   user friendly and easy to navigate") ─────────────
   Words as they're written, never turned into capitals by the styles; no italic word inside a title; one blue for
   what you can press and what's marked. The props (the stamps, the cassettes, the polaroids, the phones and screens),
   the loader and the big lines of the room, the lake and the shorts wall keep their own. */
body :not(:where(.t3, .t3 *, .say-deck *, .stamp, .stamp *, .stamp-big, .qb-stamp, .vm-stamp, .t3-seal, .ph *, .crt *,
  .phone *, .terminal *, .cv-folder *, .egg-weight, .egg-weight *, .ea-loader *, .ea-display, .ea-display *, .ea-peek *,
  .ea-cursor, .ea-cursor *)) { text-transform: none !important; }
body :is(h1, h2, h3, h4, h5, h6):not(.ea-display) :is(i, em) { font-style: normal !important; }

/* ───────────── the sweep (Angie, Oct 27 19:38: "check the site for inconsistencies and fix") ─────────────
   What still looked like another site: one button that was filled blue, the Chapter 5 song card and its player in
   purple and yellow, the photo slots' pink glow, a lilac box on For a Friend, and the glass buttons over the lake
   pressing purple. All of it now takes the site's navy and its one blue; every button is the same outline. */
.btn.primary { background: transparent; border-color: var(--ea-line-2); color: var(--ea-ink); }
.btn.primary:hover, .btn.primary:focus-visible { color: var(--ea-bg); border-color: var(--ea-ink); }
.cv-beat .btn.primary { box-shadow: none; }
.cv-beat .btn:not(.primary):hover { color: #0b132b; }
/* the song card: the site's navy, its words in white, its marks in the one blue */
.track-card { background: radial-gradient(120% 140% at 0% 0%, #1d3266 0%, #101c3d 55%, #0b132b 100%); --highlight: #7dd3fc; --eggplant-glow: #38bdf8; }
.track-card.is-hidden { background: #0b132b; box-shadow: 0 0 0 1px rgba(56, 189, 248, .25); }
.track-card :is(.tc-name, .tc-sec, .tc-play small, .tc-row small) { color: rgba(241, 245, 255, .66); }
.track-card .tc-full-note { color: #f1f5ff; }
.tc-play, .tc-row { border-color: rgba(241, 245, 255, .3); background: transparent; }
.tc-play:hover, .tc-row:hover, .tc-play.playing, .tc-row.playing { background: rgba(56, 189, 248, .2); }
.tc-sheet { border-top-color: rgba(241, 245, 255, .2); }
/* every tape's play key and line: the one blue, on paper and on the dark fields alike */
.m-audio .say-deck.dk-min { --dk-accent: #0b6fa4; }
.dk-min .dk-play { box-shadow: 0 10px 24px -10px rgba(11, 111, 164, .8); }
.dk-min .dk-play:hover:not(:disabled) { box-shadow: 0 12px 30px -8px rgba(11, 111, 164, .95); }
/* the empty photo slot: navy with a blue glow */
.ph-image {
  background: radial-gradient(60% 80% at 70% 20%, rgba(56, 189, 248, .5), transparent 70%), radial-gradient(50% 70% at 10% 100%, rgba(56, 189, 248, .14), transparent 70%), linear-gradient(160deg, #142247, #0b132b);
  color: #f1f5ff;
}
/* For a Friend's "how to stay fair" box: words on the paper between two thin rules, no lilac box */
.qb-navigate { background: none; border: 0; border-top: 1px solid var(--ea-line); border-bottom: 1px solid var(--ea-line); border-radius: 0; box-shadow: none; padding: 18px 0 14px; }
.qb-navigate h2 { color: var(--ea-ink); }
/* the keyboard tip under a pop quiz is for a keyboard: not on a phone or tablet */
@media (hover: none) and (pointer: coarse) { .kbd-hint { display: none; } }
