/* story.html (storyboard v7). Design system: docs/storyboard/v7.html "Design system"; Zero ref §4. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; src: url("../fonts/fraunces-latin-full-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; src: url("../fonts/inter-latin-opsz-normal.woff2") format("woff2"); font-display: swap; }

:root {
  --vermk: 0; --promise: 0;          /* the break's vermilion cut and the promise light start off */
  --ink: #171310; --cream: #f6efe2; --verm: #c8361f; --gold: #d9a441;
  --serif: "Fraunces", Georgia, serif;     /* Audrey, Dec 2: Fraunces back, not the Playfair and swash pair */
  --swash: "Fraunces", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);           /* Zero's one easing (§4.5) */
  --out-expo: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d0b09; color: var(--cream); }
body { font: 16px/1.5 "Inter", system-ui, sans-serif; overscroll-behavior: none; touch-action: pan-x; }

/* the worlds: instant cuts between them (Zero: "cut, don't fade", §4.2) */
.world { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; display: block; visibility: hidden; pointer-events: none; z-index: 1; background: transparent; }
.world.active { visibility: visible; pointer-events: auto; }
/* (Dec 2, her: "transitions need to be clean between scenes") the world you leave dissolves over the next one */
.world.leaving { visibility: visible; pointer-events: none; z-index: 4; animation: world-out 0.7s cubic-bezier(.45, 0, .55, 1) both; }
@keyframes world-out { from { opacity: 1; } to { opacity: 0; } }
.w-void { z-index: 2; }
.w-museum { z-index: 3; }
/* the cut after the pull (Dec 2): in fast, out slower */
.cut { position: fixed; inset: 0; z-index: 9; pointer-events: none; background: #0b0a09; opacity: 0; transition: opacity 0.7s var(--ease); }
.cut.on { opacity: 1; transition: opacity 0.16s linear; }
.flash { position: fixed; inset: 0; z-index: 8; pointer-events: none; background: #fff; opacity: 0; }
.flash.go { animation: flash 0.42s var(--ease); }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }

/* the words: one sentence across the story (§3.2). Zero focuses over 4 s, but our beats are shorter: Audrey (Dec 2) found
   the words unreadable, so they sharpen in about 1 s and carry a firmer shadow. */
.words { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.word {
  position: absolute; margin: 0; max-width: 86vw;
  font: 400 calc(var(--size) * 100vh)/0.95 var(--serif); letter-spacing: -0.02em; color: var(--cream);
  text-shadow: 0 0.02em 0.08em rgba(0, 0, 0, 0.45), 0 0.04em 0.6em rgba(0, 0, 0, 0.45);
  opacity: 0; filter: blur(8px); transform: translateY(0.06em) scale(1.02);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.word.on { opacity: 1; filter: blur(0); transform: none; transition: opacity 0.7s var(--out-expo), filter 1.1s var(--out-expo), transform 1.6s var(--out-expo); }
.word .sw { font-family: var(--swash); font-style: italic; font-weight: 500; font-size: 1.55em; line-height: 0; letter-spacing: -0.04em; margin-right: -0.04em; vertical-align: -0.06em; }
.at-center { left: 50%; top: 50%; translate: -50% -50%; text-align: center; white-space: nowrap; }
.at-tl { left: 7vw; top: 16vh; }
.at-br { right: 7vw; bottom: 14vh; text-align: right; }
.at-bl { left: 7vw; bottom: 14vh; }
.at-bru { right: 7vw; bottom: 27vh; text-align: right; }
.at-tr { right: 7vw; top: 16vh; text-align: right; }
.at-top { left: 50%; top: 13vh; translate: -50% 0; text-align: center; white-space: nowrap; }   /* a band above the map */
.w-choice { outline: none; touch-action: pan-y; }   /* the line above a bottom-right line */
.word.mono { font: 600 13px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; filter: none; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); top: auto; bottom: 25vh; }
.word.mono.on { opacity: 0.92; }
@media (max-width: 700px) {
  .word { font-size: calc(var(--size) * 72vh); }
  .at-center { white-space: normal; width: 90vw; }
  .at-tl, .at-bl { left: 6vw; } .at-br, .at-bru, .at-tr { right: 6vw; }
}

/* the timeline (Dec 2): a map's scale bar in a frosted pill, top centre */
.ruler { position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 12; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 16px 0 12px; border-radius: 999px; color: var(--chrome-ink); }
.r-north { width: 13px; height: 16px; flex: none; }
.r-bar { display: flex; width: clamp(170px, 22vw, 300px); height: 9px; border: 1.5px solid currentColor; border-radius: 1px; position: relative; }
.r-seg { position: relative; height: 100%; flex-basis: 0; padding: 0; border: 0; background: transparent; cursor: default; }
.r-seg + .r-seg { border-left: 1px solid currentColor; }
.r-seg.odd { background: color-mix(in srgb, currentColor 30%, transparent); }          /* alternating, like a scale bar */
.r-fill { position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); }
.r-deg { display: none; position: absolute; left: -1px; top: -15px; translate: -50% 0; font: 500 9px/1 var(--mono); letter-spacing: 0.04em; opacity: 0.7; white-space: nowrap; pointer-events: none; }
.r-seg::before { content: ""; position: absolute; left: -1.5px; top: -5px; width: 1.5px; height: 18px; background: currentColor; }   /* the tick at each boundary */
.r-seg.can { cursor: pointer; }
.r-seg.can:hover .r-fill { opacity: 0.85; }
.r-seg:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.r-lab { font: 600 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; min-width: 4.6em; }
@media (max-width: 700px) { .ruler { left: auto; right: 10px; translate: none; gap: 8px; padding: 0 12px 0 10px; } .r-bar { width: 110px; } .r-lab { display: none; } .r-deg { display: none; } }

.cue.show { opacity: 0.8; }
@keyframes cue { 0% { top: -100%; } 70%, 100% { top: 100%; } }

/* sound: a small round button, top left (§5.1) */
.sound { position: fixed; top: 14px; left: 14px; z-index: 13; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffffff1a; cursor: pointer;
  background: #0006; -webkit-backdrop-filter: saturate(120%) blur(14px); backdrop-filter: saturate(120%) blur(14px); display: flex; align-items: center; justify-content: center; gap: 3px; }
.sound span { width: 2px; height: 6px; border-radius: 1px; background: var(--cream); opacity: 0.8; }
.sound[aria-pressed="true"] span { animation: wave 1.1s var(--ease) infinite; }
.sound[aria-pressed="true"] span:nth-child(2) { animation-delay: 0.15s; } .sound[aria-pressed="true"] span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 14px; } }

.noscript { position: fixed; inset: auto 0 40% 0; text-align: center; }
.noscript a { color: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  .word, .word.on { transition: opacity 0.4s linear !important; filter: none !important; transform: none !important; }
  .cue::after { animation: none; top: 0; }
  .flash.go { animation: none; }
  .sound[aria-pressed="true"] span { animation: none; }
}

/* the break: the frame cuts to vermilion on the crack (v7; Zero ref §5.3, the red shift that snaps back) */
html::after { content: ""; position: fixed; inset: 0; z-index: 7; pointer-events: none; background: #b3261a; mix-blend-mode: multiply; opacity: calc(var(--vermk, 0) * 0.7); }

/* the passport and pins (v7-museum "Dopamine max"): there from the first screen (Dec 2) */
.passport { position: fixed; top: 12px; right: 14px; z-index: 13; display: none; }
.passport.show { display: block; }
/* phones: the ruler takes the top right corner, so the passport sits just under it (morning check, Dec 2: it covered the ruler) */
@media (max-width: 700px) { .passport { top: 66px; right: 10px; } }
.pp-btn { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid #ffffff1a; cursor: pointer;
  background: #0006; -webkit-backdrop-filter: saturate(120%) blur(14px); backdrop-filter: saturate(120%) blur(14px); color: var(--cream); font: 500 11px/1 var(--mono); letter-spacing: 0.06em; }
.pp-orange { width: 30px; height: 30px; }
.pp-btn.glint { animation: glint 1.2s var(--ease); }
@keyframes glint { 0% { box-shadow: 0 0 0 0 #ffd27a00; } 30% { box-shadow: 0 0 0 6px #ffd27a66, 0 0 40px 6px #ffd27a55; } 100% { box-shadow: 0 0 0 0 #ffd27a00; } }
.pp-panel { position: absolute; right: 0; top: 52px; width: min(380px, 92vw); max-height: 78vh; overflow: auto; padding: 20px 22px; border-radius: 16px;
  background: #f3ecdfef; color: #241b14; box-shadow: 0 20px 60px #0008; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pp-kicker, .pp-sub { font: 600 10px/1 var(--mono); letter-spacing: 0.18em; color: #7a6650; margin: 0 0 6px; }
.pp-sub { margin-top: 18px; }
.pp-title { font: 400 30px/1.05 var(--serif); margin: 0 0 14px; }
.pp-stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-stamps li { display: flex; align-items: center; gap: 8px; font: 400 14px/1.25 var(--serif); color: #8a7864; }
.pp-stamps li.got { color: #241b14; }
.pp-ink { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px dashed #b8a48a; }
.pp-stamps li.got .pp-ink { border: 2px solid #c8361f; background: radial-gradient(circle, #c8361f 0 30%, #0000 32%); transform: rotate(-12deg); }
.pp-stamps small { font: 500 10px var(--mono); color: #8a7864; }
.pp-pins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pp-pins li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font: 400 10px/1.2 "Inter", sans-serif; color: #8a7864; }
.pp-pins li.got { color: #241b14; }
.pp-pins svg { width: 46px; height: 46px; filter: drop-shadow(0 2px 3px #0003); }
.pp-pins li:not(.got) span { display: none; }
.pp-pins li:not(.got):hover span, .pp-pins li:not(.got):focus-within span { display: block; }
.pp-done { margin: 16px 0 0; font: 400 15px/1.4 var(--serif); }
.pp-map, .pp-reset { font: 600 11px/1 var(--mono); letter-spacing: 0.08em; border-radius: 999px; cursor: pointer; padding: 9px 14px; }
.pp-map { background: #241b14; color: #f6efe2; border: 0; margin-left: 6px; }
.pp-reset { margin-top: 18px; background: none; border: 1px solid #b8a48a; color: #7a6650; }
.pp-toast { position: fixed; top: 76px; right: 18px; z-index: 13; padding: 10px 16px; border-radius: 999px; pointer-events: none;
  background: #f3ecdf; color: #241b14; font: 400 16px/1.2 var(--serif); box-shadow: 0 10px 30px #0006; opacity: 0; translate: 0 -8px; transition: opacity .4s var(--ease), translate .4s var(--ease); }
.pp-toast.show { opacity: 1; translate: 0 0; }
.pp-toast.big { font-size: 20px; padding: 14px 22px; background: linear-gradient(120deg, #f6e2b0, #f3ecdf 40%, #f6e2b0); }
@media (prefers-reduced-motion: reduce) { .pp-btn.glint { animation: none; } .pp-toast { transition: opacity .3s linear; translate: none; } }

/* segment 1, the promise: Zero's paradise light (§4.2) as soft white-gold rays and a glow over the peel */
.rays { position: fixed; inset: -20%; z-index: 6; pointer-events: none; opacity: var(--promise, 0); mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 60% 34% at 50% 8%, #fff6dfcc, #ffe7b055 45%, #0000 72%),   /* (Dec 2: the glow above the napkin, not washing out the peel) */
    repeating-conic-gradient(from 200deg at 30% -10%, #fff4d800 0deg 7deg, #fff4d82e 9deg 11deg, #fff4d800 13deg 19deg);
  animation: rays 24s linear infinite; }
@keyframes rays { to { rotate: 4deg; } }
@media (prefers-reduced-motion: reduce) { .rays { animation: none; } }

/* the ruler and labels stay readable on light scenes (the tube, the atlas) */
.word.mono, .g-label { filter: drop-shadow(0 0 1.5px #0009) drop-shadow(0 0 8px #0005); }

/* a reel opens over the story; Instagram's player loads only now (her yes, Dec 1) */
.reel-box { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: #000a; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.reel-frame { display: grid; gap: 10px; justify-items: center; }
.reel-frame iframe { width: min(400px, 92vw); height: min(720px, 80vh); border: 0; border-radius: 14px; background: #fff; }
.reel-frame a { color: var(--cream); font: 500 12px/1 var(--mono); letter-spacing: 0.06em; }
.reel-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #ffffff33; background: #0008; color: #fff; font-size: 22px; cursor: pointer; }

/* the proof (Dec 2): the Greenland map takes the pointer; a hand cursor while you hold Greenland */
.w-true { cursor: grab; touch-action: none; outline: none; }
.w-true.grabbing { cursor: grabbing; }
html[data-world="truesize"] .word.mono { color: #7a1a12; text-shadow: 0 0 10px rgba(243, 236, 222, 0.95); filter: none; }

/* ---------- Zero's finish on every screen (Dec 2: "i need everything to be ZERO QUALITY") ----------
   Zero's words are never flat white with a shadow: each screen tints them with a soft gradient (sage on white,
   cream on red), the capital is a big flourished letter, and the punchline glows like a neon script. Heavy
   moving grain over everything; things drifting in the air. Tints are ours (vermilion, umber, cream, moonlight). */
:root { --w1: #fff8ec; --w2: #ecd3b8; --wsh: rgba(10, 6, 4, 0.5); }
html[data-seg="pull"] { --w1: #fff3dc; --w2: #e9b273; --wsh: rgba(0, 0, 0, 0.7); }   /* the opening is dark now: warm light words */
html[data-seg="promise"] { --w1: #b8692a; --w2: #4f230c; --wsh: rgba(255, 243, 226, 0.75); }
html[data-seg="break"] { --w1: #fff5ec; --w2: #f3bda8; --wsh: rgba(70, 4, 0, 0.6); }
html[data-world="truesize"] { --w1: #b3261a; --w2: #4e0c07; --wsh: rgba(246, 238, 222, 0.95); }
html[data-world="paper"] { --w1: #fbf6ec; --w2: #b8c5e2; --wsh: rgba(2, 6, 18, 0.65); }
html[data-world="tube"] { --w1: #fff7e6; --w2: #e8c385; --wsh: rgba(0, 0, 0, 0.55); }
html[data-world="museum"] { --w1: #ffffff; --w2: #e6dcc8; --wsh: rgba(14, 8, 2, 0.85); }
.word:not(.mono) {
  color: transparent; text-shadow: none; padding: 0.75em 0.3em 0.25em; margin: -0.75em -0.3em -0.25em;   /* room for the big capital, or the gradient clips it */
  background: linear-gradient(172deg, var(--w1) 18%, var(--w2) 92%); -webkit-background-clip: text; background-clip: text;
  filter: blur(8px) drop-shadow(0 0.02em 0.06em var(--wsh)) drop-shadow(0 0.05em 0.45em var(--wsh));
}
.word.on:not(.mono) { filter: blur(0) drop-shadow(0 0.02em 0.06em var(--wsh)) drop-shadow(0 0.05em 0.45em var(--wsh)); }
.word .sw { font-size: 1.9em; font-weight: 400; margin-right: -0.06em; }
/* the neon punchline, like Zero's glowing script "Job" */
.word.neon:not(.mono) {
  background: none; -webkit-text-stroke: 0.02em rgba(255, 250, 238, 0.98); color: rgba(20, 14, 10, 0.35);
  filter: blur(8px) drop-shadow(0 0 0.04em rgba(0, 0, 0, 0.9)) drop-shadow(0 0 0.06em rgba(255, 244, 222, 0.95)) drop-shadow(0 0 0.32em rgba(255, 196, 140, 0.6));
}
.word.neon.on:not(.mono) { filter: blur(0) drop-shadow(0 0 0.04em rgba(0, 0, 0, 0.9)) drop-shadow(0 0 0.06em rgba(255, 244, 222, 0.95)) drop-shadow(0 0 0.32em rgba(255, 196, 140, 0.6)); }
html[data-world="truesize"] .word.mono { color: #7a1a12; text-shadow: 0 0 10px rgba(243, 236, 222, 0.95); filter: none; }
@media (prefers-reduced-motion: reduce) { .word:not(.mono), .word.neon:not(.mono) { filter: drop-shadow(0 0.05em 0.45em var(--wsh)) !important; } }
/* grain: four noise tiles stepped through twelve times a second */
.grain { position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0.11; mix-blend-mode: overlay; background-size: 880px 220px; animation: grain 0.34s steps(4) infinite; }
@keyframes grain { to { background-position: -880px 0; } }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }
.motes { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 8; pointer-events: none; opacity: 0; transition: opacity 0.9s var(--ease); }
.motes.on { opacity: 1; }
/* the white-out between the portal and the museum */
html::before { content: ""; position: fixed; inset: 0; z-index: 8; pointer-events: none; background: #fffaf0; opacity: var(--white, 0); }
/* the promise as Zero's paradise (Dec 2): warm sunlight pouring in from above, deep warm edges, everything golden */
.grade { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: calc(var(--promise, 0) * 1.15); background: radial-gradient(ellipse 60% 50% at 50% 16%, rgba(255, 214, 150, 0.9), rgba(255, 190, 120, 0.3) 45%, transparent 70%), radial-gradient(ellipse 48% 46% at 50% 52%, transparent 55%, rgba(60, 28, 6, 0.9) 100%); mix-blend-mode: soft-light; }
/* on the red-ink map, the ruler is printed in the same ink */

/* ---------- Zero-clean glass for every piece of chrome (Dec 2: "our glass thing is not as clean as the zero one") ----------
   Zero's pills: a light, frosted, slightly milky glass with a bright top edge and a soft shadow, crisp text. On light
   screens the glass turns milkier and the text dark. */
:root { --chrome-ink: #fbf6ec; --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.07)); --glass-line: rgba(255, 255, 255, 0.24); --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); }
html[data-world="truesize"], html[data-seg="promise"] { --chrome-ink: #2a1a12; --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5)); --glass-line: rgba(255, 255, 255, 0.85); --glass-shadow: 0 10px 28px rgba(60, 30, 10, 0.18); }
html[data-world="truesize"] { --chrome-ink: #7a1a12; }
.glass, .sound, .pp-btn {
  background: var(--glass-bg); border: 1px solid var(--glass-line); color: var(--chrome-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  transition: background 0.6s var(--ease), color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.sound span { background: var(--chrome-ink); }
.pp-btn { color: var(--chrome-ink); font: 600 11px/1 var(--mono); letter-spacing: 0.08em; height: 38px; padding: 4px 16px 4px 4px; }
.sound { width: 38px; height: 38px; }
/* a pin arriving (Dec 2): big in the middle, sparks, its name, then off into the passport */
.pp-award { position: fixed; left: 50%; top: 46%; translate: -50% -50%; z-index: 30; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pp-award svg { width: 132px; height: 132px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 30px rgba(255, 214, 140, 0.45)); }
.pa-k { margin: 10px 0 0; font: 600 11px/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: #ffd98c; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.pa-n { margin: 0; font: italic 400 34px/1.1 var(--serif); color: #fff8ec; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75); }
.pp-award.go .pa-k, .pp-award.go .pa-n { animation: paIn 0.7s var(--ease) both 0.18s; }
@keyframes paIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.pa-sparks { position: absolute; left: 50%; top: 66px; width: 0; height: 0; }
.pa-sparks i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ffe2a0; box-shadow: 0 0 10px #ffd27a; opacity: 0; }
.pp-award.go .pa-sparks i { animation: spark 0.9s var(--ease) both 0.15s; }
@keyframes spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(calc(var(--x) * 120px), calc(var(--y) * 120px)) scale(0.3); } }
.pp-award::before { content: ""; position: absolute; left: 50%; top: 40%; width: 520px; height: 360px; translate: -50% -50%; z-index: -1; background: radial-gradient(closest-side, rgba(8, 6, 4, 0.72), rgba(8, 6, 4, 0)); }
/* plates (Dec 2): what you're looking at, named like a museum label, with a fact from the fact-checked notes */
.plate { position: absolute; left: 50%; bottom: 22px; width: min(420px, 80vw); margin: 0; padding: 14px 18px 15px; border-radius: 14px;
  opacity: 0; transform: translate(-50%, 10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.plate.on { opacity: 1; transform: translate(-50%, 0); }
.plate b { display: block; font: 600 10px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 7px; opacity: 0.85; }
.plate span { display: block; font: 400 15px/1.38 var(--serif); }
@media (max-width: 700px) { .plate, .plate.on { left: 12px; right: 12px; bottom: 14px; width: auto; transform: none; padding: 11px 14px; } .plate span { font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .plate { transition: opacity 0.3s linear; } }

/* the cursor on the story's own screens: a little world (Dec 2) */
/* the cursor is a little world (Dec 2, her: "a little better rendition of the world"): real Natural Earth coastlines on a shaded globe, drawn by tools/cursor-world.mjs */
html { cursor: url("../images/cursor-world.svg") 16 16, auto; }
a, button, [role="button"], .gate { cursor: url("../images/cursor-world-point.svg") 16 16, pointer; }

/* a pin earned: a quiet note under the passport pill, never a centrepiece (Dec 2) */
.pp-note { position: fixed; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--glass-bg); border: 1px solid var(--glass-line); color: var(--chrome-ink); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  font: 600 10px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.pp-note svg { width: 22px; height: 22px; }
.pp-note b { font-weight: 700; }

/* ---------- clear instructions (Dec 2, Audrey: "should be more clear what individuals are supposed to do") ----------
   Each thing to do is a glass pill at the bottom middle: a small moving picture of the gesture and plain words. */
.word.mono.gate-word { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 12px; border-radius: 999px;
  font: 600 15px/1 var(--mono); letter-spacing: .06em; text-transform: none; text-shadow: none; filter: none !important;
  background: var(--glass-bg); border: 1px solid var(--glass-line); color: var(--chrome-ink); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); white-space: nowrap; bottom: 31vh; }
.word.mono.gate-word.on { opacity: 1; }
html[data-world="truesize"] .word.mono.gate-word { color: #7a1a12; text-shadow: none; }
.gi { width: 26px; height: 26px; flex: none; overflow: visible; }
.gi-dot { fill: currentColor; } .gi-trail { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 3; opacity: .55; }
.gi-drag .gi-dot { animation: giDrag 1.6s cubic-bezier(.5,0,.3,1) infinite; }
.gi-move .gi-dot { offset-path: path("M5 16c3-7 9-9 14-8"); animation: giMove 1.8s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes giDrag { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(10px); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
@keyframes giMove { 0% { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 75% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.cue.cue-pill { position: fixed; left: 50%; bottom: 5vh; translate: -50% 0; z-index: 12; display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px;
  width: auto; height: auto; background: var(--glass-bg); border: 1px solid var(--glass-line); color: var(--chrome-ink); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  font: 600 13px/1 var(--mono); letter-spacing: .06em; opacity: 0; transition: opacity .5s ease; pointer-events: none; overflow: visible; }
.cue.cue-pill::after, .cue.cue-pill::before { content: none; display: none; }
.cue.cue-pill.show { opacity: 1; }
.gi-wheel { fill: currentColor; animation: giWheel 1.4s ease-in-out infinite; }
@keyframes giWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(5px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.g-label { letter-spacing: .12em; }
@media (prefers-reduced-motion: reduce) { .gi-dot, .gi-wheel { animation: none !important; } }
@media (max-width: 700px) { .word.mono.gate-word { font-size: 13px; } }

/* ---------- every statement readable at a glance (Dec 2, Audrey: "the specific statements need to be more highlighted
   ... someone who is completely new to this website should understand what happens here") ----------
   A soft halo sits behind each line: dark on the dark screens, cream on the light ones, so the words always lift off
   whatever is moving behind them. */
:root { --scrim: rgba(8, 6, 5, 0.62); }
html[data-world="truesize"] { --scrim: rgba(250, 244, 232, 0.6); }
html[data-seg="promise"] { --scrim: rgba(244, 236, 220, 0.42); }   /* over the parchment: just enough */
.word:not(.mono)::before { content: ''; position: absolute; z-index: -1; inset: -0.45em -0.7em; border-radius: 50%;
  background: radial-gradient(closest-side, var(--scrim), transparent); pointer-events: none; }
.word.neon:not(.mono)::before { inset: -0.5em -0.9em; }
@media (max-width: 700px) { .word:not(.mono) { font-size: max(calc(var(--size) * 72vh), 28px); } }   /* small lines never shrink below 28px on phones */

/* the choice: the map refuses (Dec 2, branch pill-choice) */
/* the map's error windows (Dec 2): a classic system dialog, a new one stepped down and right on every press */
.ch-errs { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.ch-win { position: absolute; left: 50%; top: 34vh; width: min(380px, 86vw); translate: calc(-50% + var(--dx, 0px)) var(--dy, 0px); pointer-events: auto;
  background: #f0f0f0; color: #111; border: 1px solid #8a8a8a; border-radius: 8px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .2); font: 400 14px/1.4 -apple-system, "Segoe UI", Inter, Arial, sans-serif;
  animation: chPop .16s cubic-bezier(.2, 1.4, .4, 1) both; }
.ch-bar { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 4px 0 12px;
  background: linear-gradient(#fbfbfb, #e6e6e6); border-bottom: 1px solid #c4c4c4; font-weight: 600; font-size: 13px; }
.ch-x { width: 34px; height: 24px; border: 0; border-radius: 4px; background: none; font: 400 18px/1 Arial, sans-serif; color: #222; cursor: pointer; }
.ch-x:hover, .ch-x:focus-visible { background: #e81123; color: #fff; outline: none; }
.ch-body { display: flex; align-items: center; gap: 14px; padding: 18px 18px 8px; }
.ch-body p { margin: 0; }
.ch-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 700 20px/1 Arial, sans-serif; font-style: normal;
  color: #fff; background: radial-gradient(circle at 35% 30%, #ff6a5e, #d0150c 70%); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .3); }
.ch-foot { display: flex; justify-content: flex-end; padding: 8px 14px 14px; }
.ch-ok { min-width: 78px; padding: 5px 14px; border: 1px solid #0063b1; border-radius: 4px; background: #fdfdfd; color: #111; font: inherit; cursor: pointer; box-shadow: inset 0 0 0 1px #9fd1ff; }
.ch-ok:hover, .ch-ok:focus-visible { background: #e5f1fb; outline: none; }
@keyframes chPop { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .ch-win { animation: none; } }

/* the museum plate sits bottom left, like a wall label, so the scroll pill in the middle never covers it (Dec 2) */
.plate { left: 28px; bottom: 26px; width: min(360px, 40vw); transform: translate(0, 12px); }
.plate.on { transform: translate(0, 0); }
@media (max-width: 700px) { .plate, .plate.on { left: 12px; right: 12px; bottom: 70px; width: auto; transform: none; } }
/* a line set indoors, on the light marble of the museum: dark ink with a cream halo (Dec 2) */
.word.ink:not(.mono) { --w1: #4a2c16; --w2: #22140a; --wsh: rgba(255, 246, 230, .7); --scrim: rgba(252, 246, 234, .6); }

/* ---------- the UI font (Dec 2, Audrey: "the font is really ugly right now"): Inter for every label, pill and
   instruction, sentence case, a little letter-spacing; Fraunces stays for the story's words and room names ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-opsz-normal.woff2") format("woff2"); }
:root { --mono: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* no passport, stamps or pins on screen (Dec 2, her call) */
.pp-btn, .pp-panel, .pp-note, .pp-award { display: none !important; }

/* the little-world pointer on everything you can press (later rules had set the plain hand) */
html :is(a[href], button:not(:disabled), [role="button"], summary, label[for]) { cursor: url("../images/cursor-world-point.svg") 16 16, pointer !important; }

/* Dec 2 (Audrey: "the press down the orange part" was unclear): the hold control had no styles at all, so it was
   invisible and the story just stopped. Now it is the same glass pill as every other instruction, centred low, with a
   ring that fills gold while you hold and a pressing fingertip that shows what to do. */
.gate { position: fixed; left: 50%; bottom: 6vh; translate: -50% 12px; z-index: 13; display: flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px; border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  opacity: 0; pointer-events: none; transition: opacity .45s ease, translate .45s ease, scale .15s ease; user-select: none; -webkit-user-select: none; touch-action: none; }
.gate.show { opacity: 1; translate: -50% 0; pointer-events: auto; }
.gate.down { scale: .96; }
.gate svg { width: 46px; height: 46px; flex: none; rotate: -90deg; overflow: visible; }
.gate .g-track { fill: rgba(255, 250, 240, .16); stroke: rgba(255, 250, 240, .35); stroke-width: 6; }
.gate .g-fill { fill: none; stroke: #e8b45c; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 276.5; }
.gate::before { content: ""; position: absolute; left: 8px; top: 8px; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff6e4 0 7px, rgba(255, 246, 228, .0) 8px); animation: gatePress 1.6s ease-in-out infinite; pointer-events: none; }
.gate.down::before { animation: none; background: radial-gradient(circle at 50% 50%, #e8b45c 0 9px, rgba(232, 180, 92, 0) 12px); }
@keyframes gatePress { 0%, 100% { transform: scale(1); opacity: .9; } 45%, 60% { transform: scale(.72); opacity: 1; } }
.gate .g-label { font: 600 13px/1.2 var(--mono); letter-spacing: .04em; color: var(--chrome-ink); filter: none; white-space: nowrap; }
html.reduce .gate::before { animation: none; }
@media (max-width: 700px) { .gate .g-label { font-size: 12.5px; } }

/* the peel instruction sits under the orange instead of across it (Dec 2) */
.word.mono.gate-word.below-fruit { top: 68vh !important; }

/* the quiet scroll cue (Dec 2): a thin line drawing down, no words, no mouse */
.cue.cue-line { position: fixed; left: 50%; bottom: 4.5vh; translate: -50% 0; z-index: 12; width: 1.5px; height: 46px; padding: 0; border: 0; background: rgba(255, 246, 228, .18);
  border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .8s ease; pointer-events: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cue.cue-line.show { opacity: .9; }
.cue.cue-line::before, .cue.cue-line::after { content: none !important; display: none !important; }
.cue.cue-line i { position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: #fff6e4; border-radius: 2px; animation: cueDraw 1.8s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes cueDraw { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(260%); } }
html[data-world="truesize"] .cue.cue-line, html[data-world="peel"] .cue.cue-line { background: rgba(60, 40, 20, .18); }
html[data-world="truesize"] .cue.cue-line i, html[data-world="peel"] .cue.cue-line i { background: #3b2a1a; }
html.reduce .cue.cue-line i { animation: none; height: 100%; opacity: .6; }

/* the choice's second line sits a line lower, so the two never meet (Dec 2) */
.word.at-tr.second-line { top: calc(16vh + var(--size, .075) * 100vh * 1.25); }

/* ---------- quiet instructions (Dec 2, her: the pill "doesn't really fit the vibe of the website") ----------
   No box, no glass: the site's own italic serif, small, with a thin gesture mark drawing itself beside it. Cream on the
   dark screens, ink on the paper ones. */
.word.mono.gate-word, .gate { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 6px 4px !important; font: italic 400 21px/1.2 Fraunces, Georgia, serif !important; letter-spacing: 0 !important; color: #f6ecd8;
  text-shadow: 0 0 18px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .5) !important; gap: 12px; }
.word.mono.gate-word .gi { width: 22px; height: 22px; opacity: .85; }
.word.mono.gate-word .gi-trail { stroke-width: 1.2; opacity: .5; }
.gate .g-label { font: italic 400 21px/1.2 Fraunces, Georgia, serif !important; letter-spacing: 0 !important; color: inherit !important; }
.gate svg { width: 30px !important; height: 30px !important; }
.gate::before { left: 4px !important; top: 6px !important; width: 30px !important; height: 30px !important; }
html[data-seg="promise"] .gate, html[data-world="truesize"] .word.mono.gate-word { color: #3b2a1a !important; text-shadow: 0 0 14px rgba(250, 244, 232, .9), 0 0 2px rgba(250, 244, 232, .9) !important; }
html[data-seg="promise"] .gate .g-track { fill: rgba(59, 42, 26, .08); stroke: rgba(59, 42, 26, .35); }
html[data-seg="promise"] .gate .g-fill { stroke: #a8341c; }
html[data-seg="promise"] .gate::before { background: radial-gradient(circle at 50% 50%, #3b2a1a 0 5px, rgba(59, 42, 26, 0) 6px) !important; }
/* the Greenland instruction sits low, under the map's middle, clear of "Same size?" */
.word.mono.gate-word.drag-hint { top: auto !important; bottom: 10vh; }

/* over the museum's dusk sky the dark halo read as a brown smudge (Dec 2): a halo in the sky's own deep blue instead */
html[data-seg="museum"] { --scrim: rgba(34, 40, 78, 0.34); }
/* the choice's softer glow (Dec 2): a lighter halo, or it reads as a smudge */
html[data-seg="choice"] { --scrim: rgba(16, 15, 18, 0.26); }

/* phones (Dec 2): long lines were wrapping into four big lines over the pictures, and "Same size?" sat on Greenland */
@media (max-width: 700px) {
  .word.long:not(.mono) { font-size: max(calc(var(--size) * 46vh), 26px); }
  html[data-seg="truth"] .word.at-tl:not(.mono) { top: auto; bottom: 7vh; }
}

/* the punchlines (Dec 2, fresh-eyes review: the outlined, embossed glow read as WordArt): solid cream serif with one
   soft warm glow, no outline, no hollow letters */
.word.neon:not(.mono) { -webkit-text-stroke: 0 !important; color: #fbf3e2 !important; filter: blur(8px) drop-shadow(0 0 0.28em rgba(255, 200, 150, 0.45)) !important; }
.word.neon.on:not(.mono) { filter: blur(0) drop-shadow(0 0 0.28em rgba(255, 200, 150, 0.45)) !important; }

/* T11: the still story, for browsers without 3D (Dec 2) */
html.nogl, html.nogl body { overflow: auto !important; height: auto !important; background: #120e0a; }
html.nogl body > *:not(.nogl-page):not(script) { display: none !important; }
.nogl-page { max-width: 640px; margin: 0 auto; padding: 18vh 28px 14vh; color: #f3e9d6; font-family: Fraunces, Georgia, serif; }
.nogl-orange { width: 120px; height: 120px; margin: 0 auto 12vh; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb35c, #e86a12 55%, #8a3200); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.nogl-line { margin: 0 0 14vh; font: 400 clamp(32px, 6vw, 56px)/1.08 Fraunces, Georgia, serif; letter-spacing: -0.02em; }
.nogl-title { margin: 0 0 8vh; font: italic 400 clamp(40px, 8vw, 72px)/1 Fraunces, Georgia, serif; color: #fbf3e2; text-align: center; }
.nogl-note { margin: 0 auto; max-width: 30em; font: italic 400 16px/1.5 Fraunces, Georgia, serif; color: #cbbda4; text-align: center; }

/* the halos behind the opening's lines and "Introducing" read as smudges (Dec 2): lighter there */
html[data-seg="pull"] { --scrim: rgba(8, 6, 5, 0.36); }
html[data-seg="launch"] { --scrim: rgba(8, 6, 5, 0.3); }

/* the choice is clean (Dec 2, her: "way cleaner"): no film grain over the hands */
html[data-seg="choice"] .grain { opacity: 0 !important; transition: opacity .6s ease; }
/* on the clean, light choice the words are dark ink with a pale halo (Dec 2) */
html[data-seg="choice"] { --scrim: rgba(246, 240, 230, 0.0); }
html[data-seg="choice"] .word:not(.mono) { --w1: #3a2a1e; --w2: #1e150e; --wsh: rgba(255, 248, 236, .55); color: #2a1d14; }
html[data-seg="choice"] .word.mono.gate-word { color: #2a1d14 !important; text-shadow: 0 0 14px rgba(250, 244, 232, .9) !important; }

/* said once (Dec 2, her: "hold and instructions are redundant just say once"): the press is only its line, no hold ring or
   pulsing dot beside it */
.gate svg, .gate::before { display: none !important; }
.gate { padding: 6px 0 !important; gap: 0 !important; }

/* her mark, from her site (Dec 2): "Audrey Huang" in Instrument Serif with her moon as the full stop, top-left beside
   the sound button, quiet until you point at it */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
.ah-mark { position: fixed; top: 20px; left: 64px; z-index: 13; display: inline-flex; align-items: baseline; gap: 1px; text-decoration: none;
  font: 400 21px/1 "Instrument Serif", Georgia, serif; letter-spacing: -0.01em; color: var(--chrome-ink, #fbf6ec); opacity: .78; transition: opacity .3s ease; }
.ah-mark img { width: 7px; height: 7px; border-radius: 50%; margin-left: 2px; transform: translateY(-1px); }
.ah-mark:hover, .ah-mark:focus-visible { opacity: 1; outline: none; }
html.nogl .ah-mark { display: none; }
@media (max-width: 700px) { .ah-mark { top: 22px; left: 60px; font-size: 18px; } }

/* ---------- modern pass (Dec 2, her: "it looks too old it doesn't look natural and modern enough ... i like the rendering
   quality", her reference pick: Kimbell / Menil). The story's words take her site's serif, flat and quiet: no swash
   capitals, no gradient lettering, no film grain. The marked word is italic, like "I build." on her site. ---------- */
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root { --serif: "Instrument Serif", Georgia, serif; --swash: "Instrument Serif", Georgia, serif; }
.word:not(.mono) { letter-spacing: -0.012em; line-height: 1; padding: 0.2em 0.2em 0.1em; margin: -0.2em -0.2em -0.1em;
  background: none; color: var(--w1); }
.word .sw, .word.neon .sw { font: inherit; font-style: italic; font-size: 1em; line-height: inherit; letter-spacing: -0.01em; margin: 0; vertical-align: baseline; }
.word:not(.mono), .word.on:not(.mono) { filter: none; }
.word:not(.mono) { filter: blur(8px); }
.word.on:not(.mono) { filter: blur(0); text-shadow: 0 0.03em 0.5em var(--wsh); }
html[data-seg="promise"] .word:not(.mono) { color: #3b2414; }
html[data-world="truesize"] .word:not(.mono) { color: #8f1f15; }
.grain, html[data-seg="choice"] .grain { opacity: 0 !important; animation: none !important; }
.gate .g-label, .word.mono.gate-word { font-family: "Instrument Serif", Georgia, serif !important; }
@media (prefers-reduced-motion: reduce) { .word:not(.mono), .word.neon:not(.mono) { filter: none !important; } }
.word.neon:not(.mono) { filter: blur(8px) !important; }
.word.neon.on:not(.mono) { filter: blur(0) !important; text-shadow: 0 0.03em 0.5em rgba(0, 0, 0, 0.55); }

/* the opening in daylight (Dec 2, Kimbell / Menil): the words are ink on pale stone, with a soft light halo */
html[data-seg="pull"]:not(.night) { --w1: #2b211a; --w2: #2b211a; --wsh: rgba(250, 246, 238, 0.7); --scrim: rgba(246, 241, 232, 0.4); --chrome-ink: #2a1a12;
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4)); --glass-line: rgba(255, 255, 255, 0.8); --glass-shadow: 0 10px 28px rgba(60, 40, 20, 0.12); }

/* the feed and the news in daylight (Dec 2, Kimbell / Menil): ink words, light glass bar */
html.day[data-world="paper"] { --w1: #2b211a; --w2: #2b211a; --wsh: rgba(250, 246, 238, 0.75); --scrim: rgba(246, 241, 232, 0.45); --chrome-ink: #2a1a12;
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4)); --glass-line: rgba(255, 255, 255, 0.8); --glass-shadow: 0 10px 28px rgba(60, 40, 20, 0.12); }
html.day[data-world="paper"] .word.neon:not(.mono) { color: #2b211a !important; }
html.day[data-world="paper"] .word.neon.on:not(.mono) { text-shadow: 0 0.03em 0.5em rgba(250, 246, 238, 0.8); }
html.day[data-world="paper"] .word.mono { color: #2b211a; text-shadow: 0 0 12px rgba(250, 246, 238, 0.9); }

/* the break in daylight (Dec 2, fresh-eyes after her "too old"): no red flood. "But," is the one garnet thing, the
   bar stays light, and the crack's colour cut is only a breath */
html.day[data-seg="break"] { --w1: #8c2f39; --w2: #8c2f39; --wsh: rgba(250, 246, 238, 0.7); --scrim: rgba(246, 241, 232, 0.4); --chrome-ink: #2a1a12;
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4)); --glass-line: rgba(255, 255, 255, 0.8); --glass-shadow: 0 10px 28px rgba(60, 40, 20, 0.12); }
html.day[data-seg="break"] .word.neon:not(.mono) { color: #8c2f39 !important; }
html.day[data-seg="break"] .word.neon.on:not(.mono) { text-shadow: none; }
html.day::after { background: #8c2f39; opacity: calc(var(--vermk, 0) * 0.18); }

/* the launch in daylight (Dec 2): "Introducing" in ink on the stone, light bar */
html.day[data-world="tube"] { --w1: #2b211a; --w2: #2b211a; --wsh: rgba(250, 246, 238, 0.8); --scrim: rgba(246, 241, 232, 0.55); --chrome-ink: #2a1a12;
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4)); --glass-line: rgba(255, 255, 255, 0.8); --glass-shadow: 0 10px 28px rgba(60, 40, 20, 0.12); }
html.day[data-world="tube"] .word.neon:not(.mono) { color: #2b211a !important; }
html.day[data-world="tube"] .word.neon.on:not(.mono) { text-shadow: 0 0.03em 0.5em rgba(250, 246, 238, 0.85); }

/* the choice in daylight (Dec 2): the bar and her mark in ink, so they don't vanish on the pale stone */
html.day[data-seg="choice"], html.day[data-seg="launch"] { --chrome-ink: #2a1a12;
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4)); --glass-line: rgba(255, 255, 255, 0.8); --glass-shadow: 0 10px 28px rgba(60, 40, 20, 0.12); }

/* the launch in daylight (Dec 2, fresh-eyes): "Introducing" on the stone under the map, not on top of it */
html.day[data-world="tube"] .word.at-center:not(.mono) { top: 70%; }

/* the top bar without labels (Dec 2, her answer "Cut the labels"): just the compass and the ruler, no "80° N · THE PROMISE".
   The nav keeps its aria-label and each segment its "Go to ..." label for screen readers. */
.ruler .r-lab, .ruler .r-deg { display: none !important; }
.ruler { padding-right: 12px; }

/* the title at blue hour (Dec 2, her sky photos): the halo behind "Peel Back the Map" is soft slate, not navy */
html.day[data-seg="museum"] { --scrim: rgba(52, 56, 72, 0.26); }

/* the instructions in daylight (Dec 2, her: "i can't see anything", "the font is hard to read"): "Peel it back." and the
   others were cream on the pale room, nearly invisible. On the light screens they're deep ink, a little bigger, on a
   soft light halo */
html.day .word.mono.gate-word, html.day .gate .g-label { color: #16110c !important; text-shadow: 0 0 10px rgba(250, 246, 238, 0.95), 0 0 2px rgba(250, 246, 238, 0.95) !important; font-size: 19px !important; }
html.day .word.mono.gate-word .gi { stroke: #16110c; color: #16110c; }

/* readable words (Dec 2, her: "the font is hard to read"): deep ink, and sharp in half a second instead of a slow blur-in */
.word.on:not(.mono) { transition: opacity 0.45s var(--out-expo), filter 0.5s var(--out-expo), transform 0.9s var(--out-expo) !important; }
html.day[data-seg="pull"] .word:not(.mono), html.day[data-world="paper"] .word:not(.mono), html.day[data-world="tube"] .word:not(.mono) { color: #16110c; }

/* Bigger, centred words (Dec 2, her: "the words aren't big enough aren't centered enough"): about 1.6x the old size,
   on one line, shrunk to fit by engine.js (--fit). Corner lines now sit centred: the first of a pair high, the second
   low, so the middle stays clear for the orange, the map or the hands. */
.word:not(.mono) { font-size: calc(var(--size) * 160vh * var(--fit, 1)) !important; white-space: nowrap !important; max-width: none !important; line-height: 1; text-align: center !important; }
.word.at-tl:not(.mono), .word.at-tr:not(.mono), .word.at-top:not(.mono) { left: 50% !important; right: auto !important; top: 15vh !important; bottom: auto !important; translate: -50% 0 !important; }
.word.at-br:not(.mono), .word.at-bl:not(.mono) { left: 50% !important; right: auto !important; top: auto !important; bottom: 13vh !important; translate: -50% 0 !important; }
.word.at-bru:not(.mono) { left: 50% !important; right: auto !important; top: auto !important; bottom: 27vh !important; translate: -50% 0 !important; }
.word.at-tr.second-line:not(.mono) { top: calc(15vh + var(--size) * 160vh * 1.1) !important; }
@media (max-width: 700px) { .word:not(.mono) { font-size: calc(var(--size) * 110vh * var(--fit, 1)) !important; } }

/* in the museum the story's ruler steps aside for the museum's own top bar (Dec 2) */
html[data-seg="explore"] .ruler { display: none !important; }

@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* "Introducing", quiet (Dec 2, her note: "the introducing thing is really ugly"). It was a heavy headline with a cloudy
   halo, competing with the title that follows. Like Apple's event slides and film credits, it's now a small kicker in
   spaced capitals, ink on the stone, no halo, handing over to "Peel Back the Map" */
html.day[data-seg="launch"] { --scrim: transparent; }
html.day[data-seg="launch"] .word.at-center:not(.mono) {
  font: 500 clamp(15px, 1.35vw, 20px)/1 "Hanken Grotesk", system-ui, sans-serif !important;
  letter-spacing: 0.42em !important; text-transform: uppercase; padding-left: 0.42em;
  color: #3a2e25 !important; text-shadow: none !important; top: 50%; }   /* (Dec 2) in the white of the peeled-open orange as it comes to you */
html.day[data-seg="launch"] .word.at-center:not(.mono) * { text-shadow: none !important; }

/* the museum's top bar is cream in light mode, so the story's name and sound button turn ink over it (Dec 2) */
html[data-seg="explore"][data-museum-theme="light"] { --chrome-ink: #1a1816; }
html[data-seg="explore"][data-museum-theme="light"] .ah-mark { opacity: .92; }
/* (Dec 2, fresh-eyes T20) the launch plays and moves on by itself, so no scroll cue under the year */
html[data-seg="launch"] .cue { opacity: 0 !important; transition: opacity .3s; }
/* "Drag Greenland onto Africa." just under Greenland, larger (Dec 2, fresh-eyes T23: it was small faded italic at the
   bottom, far from the piece you drag). truesize.js sets --gl-x and --gl-y from Greenland's lowest point. */
html.day[data-seg="truth"] .word.mono.gate-word.drag-hint { top: calc(var(--gl-y, 60vh) + 34px) !important; bottom: auto !important;
  left: var(--gl-x, 50%) !important; font-size: 24px !important; }
@media (max-width: 700px) { html.day[data-seg="truth"] .word.mono.gate-word.drag-hint { font-size: 19px !important; left: 50% !important; } }
/* "Peel it back." the same size as "Drag Greenland onto Africa." (Dec 2): every instruction reads at a glance, 24px
   (19px on phones), ink, right under what you touch */
html.day[data-seg="pull"] .word.mono.gate-word.below-fruit { font-size: 24px !important; }
@media (max-width: 700px) { html.day[data-seg="pull"] .word.mono.gate-word.below-fruit { font-size: 19px !important; } }
.word.mono.gate-word { justify-content: center; }   /* (on phones the box is full width; the words sit in its middle) */
/* T27: the choice's line at the same size as every other instruction */
html.day[data-seg="choice"] .word.mono.gate-word { font-size: 24px !important; }
@media (max-width: 700px) { html.day[data-seg="choice"] .word.mono.gate-word { font-size: 19px !important; } }
/* T30 (Dec 2, fresh eyes 7: the orange cut into the words): words never touch the orange. The opening's first line
   sits a little higher; the press lines ("You believed / the Map was the / World.") sit under the orange, not over it */
@media (min-width: 701px) {
  html[data-seg="pull"] .word.at-tl:not(.mono) { top: 9vh !important; }
  html[data-seg="promise"] .word.at-top:not(.mono) { top: auto !important; bottom: 15vh !important; }
}
/* "But," above the peel, on clean cream (Dec 2, fresh eyes 8) */
@media (min-width: 701px) { html[data-seg="break"] .word.at-top:not(.mono) { top: 7vh !important; } }
/* T32 (Dec 2, fresh eyes 8: the light rays read "old", not calm): in daylight the press keeps only the soft wash of
   light from above, like the Kimbell's vaults (her reference), with no striped beams. ?night keeps the rays. */
html.day .rays { background: radial-gradient(ellipse 70% 40% at 50% 6%, #fff7e6b0, #fff0d040 50%, #0000 76%) !important; animation: none !important; }
/* (Dec 2, fresh eyes 11) "that's Wrong." a little higher, so the torn halves sit clear below it */
@media (min-width: 701px) { html[data-seg="break"] .word.at-center:not(.mono) { top: 37% !important; } }

/* T40 (Dec 2, fresh eyes 15): the title lands in ink on the cream the peel opened to, then turns cream as the cream
   lifts off the dusk sky (--white falls from 1 to 0), with its shadow and halo coming in only on the sky. The ink turns
   quickly in the middle of the fade (white 0.65 to 0.4), so it never sits grey on grey */
html.day[data-seg="museum"] .word.neon:not(.mono) { color: color-mix(in srgb, #16110c clamp(0%, (var(--white, 0) - 0.4) * 400%, 100%), #fbf3e2) !important; }
html.day[data-seg="museum"] .word.neon.on:not(.mono) { text-shadow: 0 0.03em 0.5em rgba(0, 0, 0, calc(0.55 * (1 - var(--white, 0)))); }
html.day[data-seg="museum"] { --scrim: rgba(52, 56, 72, calc(0.26 * (1 - var(--white, 0)))); }

/* ---------- "See the Tears." as Zero's third stage (Dec 2, her: "zeros screens are so tough rlly emulate this",
   "love this font and this big word idea"): the dark, the one huge word with its swash capital glowing mint, the light
   bar and words turning pale so they read on the dark ---------- */
@font-face { font-family: "Bona Nova Swash"; font-style: italic; font-weight: 400; src: url("../fonts/bonanova-latin-italic.woff2") format("woff2"); font-display: swap; }
html.day[data-world="paper"][data-seg="tears"] { --w1: #f4fbf2; --w2: #bfe2c6; --wsh: rgba(0, 10, 4, 0.6); --scrim: transparent; --chrome-ink: #e9f4e8;
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)); --glass-line: rgba(255, 255, 255, 0.22); --glass-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
html.day[data-world="paper"][data-seg="tears"] .word:not(.mono):not(.big-word) { color: #e8f6e6; }
.word.big-word:not(.mono) { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -0.025em; line-height: 1;
  background: linear-gradient(176deg, #f6fdf4 30%, #c9e8cf 95%); -webkit-background-clip: text; background-clip: text;
  filter: blur(10px) drop-shadow(0 0 0.03em rgba(225, 255, 228, 0.85)) drop-shadow(0 0 0.22em rgba(110, 215, 145, 0.45)); }
.word.big-word.on:not(.mono) { filter: blur(0) drop-shadow(0 0 0.03em rgba(225, 255, 228, 0.85)) drop-shadow(0 0 0.22em rgba(110, 215, 145, 0.45)); }
.word.big-word .cap { font: italic 400 1.5em/0 "Bona Nova Swash", "Instrument Serif", Georgia, serif; font-feature-settings: "swsh" 1; margin-right: -0.1em; vertical-align: -0.04em; }
@media (prefers-reduced-motion: reduce) { .word.big-word:not(.mono) { filter: drop-shadow(0 0 0.22em rgba(110, 215, 145, 0.45)) !important; } }
html.day[data-world="paper"][data-seg="tears"] .word.big-word:not(.mono) { color: transparent; -webkit-text-fill-color: transparent; background: linear-gradient(176deg, #f6fdf4 30%, #c9e8cf 95%); -webkit-background-clip: text; background-clip: text; }
/* Zero's flowing capital (Dec 2, her OK to download): Pinyon Script, SIL Open Font License (fonts/LICENSE-pinyonscript.txt) */
@font-face { font-family: "Pinyon Script"; font-style: normal; font-weight: 400; src: url("../fonts/pinyonscript-latin.woff") format("woff"); font-display: swap; }
.word.big-word .cap { font: 400 1.75em/0 "Pinyon Script", "Bona Nova Swash", Georgia, serif; font-feature-settings: normal; margin-right: -0.16em; vertical-align: -0.02em; }

/* instructions in their own voice (Dec 2, her: "the instructions for 'hold space to press it flat' needs to be slightly
   more subtle", "instructions need to be a diff font"): the story speaks in the big serif, the instructions whisper in
   small spaced capitals of Hanken Grotesk, softer ink, a lighter halo. ":not(#_)" outranks the older per-screen sizes. */
html:not(#_) .word.mono.gate-word, html:not(#_) .gate .g-label {
  font: 500 12.5px/1.45 "Hanken Grotesk", Inter, system-ui, sans-serif !important; font-style: normal !important;
  text-transform: uppercase; letter-spacing: 0.16em !important; color: rgba(246, 236, 216, 0.78) !important;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.4) !important; filter: none !important; }
html.day:not(#_) .word.mono.gate-word, html.day:not(#_) .gate .g-label { color: rgba(22, 17, 12, 0.58) !important; text-shadow: 0 0 10px rgba(250, 246, 238, 0.85) !important; }
html:not(#_) .word.mono.gate-word .gi { width: 16px; height: 16px; opacity: 0.6; }
@media (max-width: 700px) { html:not(#_) .word.mono.gate-word, html:not(#_) .gate .g-label { font-size: 11.5px !important; letter-spacing: 0.14em !important; } }

/* "Same size?" kept off Greenland (Dec 2, her: "the same size text overlaps greenland which is bad"): at the top it
   sat right on Greenland and its dashed outline. It sits low instead, bottom-left over the southern ocean on a computer
   and under Africa on a phone, clear of Greenland and the path you drag it along. */
html:not(#_) .word.truth-q:not(.mono) { top: auto !important; bottom: 11vh !important; left: 6vw !important; right: auto !important; translate: 0 0 !important; }
@media (max-width: 700px) { html:not(#_) .word.truth-q:not(.mono) { left: 50% !important; translate: -50% 0 !important; bottom: 12vh !important; } }

/* T53 (Dec 2, fresh eyes 17: the big "Tears." read as a neon render): a soft moonlit halo, not a glow tube */
html:not(#_) .word.big-word.on:not(.mono) { filter: blur(0) drop-shadow(0 0 0.02em rgba(230, 250, 232, 0.35)) drop-shadow(0 0 0.35em rgba(110, 200, 140, 0.18)) !important; }

/* (T55, Dec 2, fresh eyes 17: "A 3-minute speech" sat right on top of "keeps one Side." on wide screens, descenders
   touching ascenders.) The pair opens a clear gap: the second line drops a little, the first lifts a hair, and both
   keep room from the pads above and the scroll hint below. Phones already had the gap. */
@media (min-width: 701px) {
  html[data-seg="system"] .word.at-bru:not(.mono) { bottom: 27.5vh !important; }
  html[data-seg="system"] .word.speech-b:not(.mono) { bottom: 9.5vh !important; }
}

/* T54 (Dec 2): "See the" already stands in the dark that "Tears." lands in, so the sentence reads as one move */
html.day.pre-dark[data-world="paper"][data-seg="system"] { --w1: #f4fbf2; --w2: #bfe2c6; --wsh: rgba(0, 10, 4, 0.6); --scrim: transparent; --chrome-ink: #e9f4e8;
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)); --glass-line: rgba(255, 255, 255, 0.22); --glass-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
html.day.pre-dark[data-world="paper"][data-seg="system"] .word:not(.mono):not(.big-word) { color: #e8f6e6; }

/* (T63, Dec 2, fresh eyes 18: "the drag hint sits on the map's own lines, low contrast") The hint stays small and
   soft, as she asked for every instruction, but it sits on its own patch of clean paper, so no coastline runs through
   the letters. Like T57's press hint on clean paper. */
html.day:not(#_)[data-seg="truth"] .word.mono.gate-word.drag-hint {
  padding: 7px 14px 6px 16px !important; border-radius: 999px !important; background: rgba(246, 241, 232, 0.92) !important;
  box-shadow: 0 0 18px 10px rgba(246, 241, 232, 0.7) !important; color: rgba(22, 17, 12, 0.72) !important; text-shadow: none !important; }

/* (T64, Dec 2, fresh eyes 18: "the 'peel it back' hint under the orange is tiny pale caps and nearly invisible") The
   first thing anyone has to do, so it reads at a glance: still her quiet spaced capitals, a size up and steadier ink. */
html.day:not(#_)[data-seg="pull"] .word.mono.gate-word.below-fruit { font-size: 15px !important; letter-spacing: 0.2em !important; color: rgba(22, 17, 12, 0.8) !important; }
html.day:not(#_)[data-seg="pull"] .word.mono.gate-word.below-fruit .gi { width: 19px; height: 19px; opacity: 0.8; }
@media (max-width: 700px) { html.day:not(#_)[data-seg="pull"] .word.mono.gate-word.below-fruit { font-size: 13.5px !important; letter-spacing: 0.16em !important; } }

/* Dec 2, her: "tears looks weird". The script T (Pinyon) read as "Jears" and its top was cut off. Now a plain italic T in
   the word's own serif, like the italic first letters elsewhere in the story, so it reads "Tears." at a glance */
html:not(#_) .word.big-word .cap { font: italic 400 1em/1 "Instrument Serif", Georgia, serif; font-feature-settings: normal; margin-right: 0.01em; vertical-align: 0; }

/* ---------- the waiting screen (Dec 2, her: "even the waiting page is kinda ugly beginning needs more interesting") ----------
   Before the 3D orange is ready the page sat on near-black and the dark words vanished into it. Now: warm paper with a soft
   pool of light (the same paper the orange will float on), and an ink orange drawn in one line whose peel spirals off and
   back, where the real fruit will appear. It fades the moment the orange's first frame is on screen (html.peel-ready). */
.wait { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: grid; justify-items: center; align-content: start;
  background: radial-gradient(60% 55% at 47% 40%, #f7f1e6 0%, #ebe3d5 55%, #d9cfbf 100%); transition: opacity 0.9s ease, visibility 0.9s; }
html.peel-ready .wait { opacity: 0; visibility: hidden; }
.wait-fruit { width: min(34vh, 58vw); height: auto; margin-top: calc(44vh - min(17vh, 29vw)); overflow: visible; }
.wait-fruit * { fill: none; stroke: #2a1d14; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wait-fruit .wf-body { fill: rgba(240, 138, 28, 0.12); stroke-dasharray: 390; stroke-dashoffset: 390; animation: wfDraw 1.4s cubic-bezier(.6,.1,.2,1) .15s forwards; }
.wait-fruit .wf-stem, .wait-fruit .wf-leaf { opacity: 0; animation: wfIn .5s ease 1.3s forwards; }
.wait-fruit .wf-leaf { fill: rgba(92, 120, 52, 0.25); }
.wait-fruit .wf-peel { stroke: #c8561a; stroke-width: 2.2; stroke-dasharray: 640; stroke-dashoffset: 640; animation: wfPeel 2.8s cubic-bezier(.55,.05,.35,1) 1.2s infinite; }
.wait p { margin: 22px 0 0; font: 500 12px/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: rgba(42, 29, 20, 0.62); opacity: 0; animation: wfIn .6s ease .6s forwards; }
@keyframes wfDraw { to { stroke-dashoffset: 0; } }
@keyframes wfIn { to { opacity: 1; } }
@keyframes wfPeel { 0% { stroke-dashoffset: 640; } 55% { stroke-dashoffset: 0; } 75% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wait-fruit * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; } .wait p { animation: none; opacity: 1; } }
