/* STILL MOVING — Beastymoos. Hand-written; no framework, no preprocessor.
   Colour comes only from the photograph on screen: --ground / --ink / --accent per world.
   Matte everywhere. No gradients, no blur, no rounded panels, no shadows pretending to be depth. */

@font-face { font-family: "Unbounded"; src: url(fonts/unbounded-latin.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Onest"; src: url(fonts/onest-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Azeret Mono"; src: url(fonts/azeret-mono-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --text: "Onest", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Azeret Mono", "JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --ground: #070a0f;
  --ink: #efe6d6;
  --accent: #c8963e;
  --gutter: clamp(20px, 5vw, 80px);
  --vh: 100vh;
  --pull: 0vh;
  --dim: color-mix(in srgb, var(--ink) 74%, transparent);
  --hair: color-mix(in srgb, var(--ink) 16%, transparent);
  --shadow: 0 1px 2px rgb(0 0 0 / .7), 0 0 10px rgb(0 0 0 / .3);
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; }
html.smooth { scroll-behavior: smooth; } /* in-page anchors glide; site.js adds the class after the first paint, so an arrival at index.html#faqs from another page lands at once instead of flying past every station */
body {
  margin: 0; min-height: 100vh; background: var(--ground); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.5; font-weight: 400;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
.js body.world-shift { transition: background-color 1.1s ease, color 1.1s ease; }
img, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, dl, dd, dt, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--ground);
  font-weight: 600; transform: translateY(-140%); transition: transform .15s;
}
.skip:focus { transform: none; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 22px;
  padding: 16px var(--gutter); pointer-events: none;
}
.top > * { pointer-events: auto; }
.top.solid { background: var(--ground); transition: background-color .4s; }
/* flat matte plates behind the transparent header's controls (home): the counter, HOLD STILL and the phone MENU must not
   depend on what the photograph is doing behind them — Bigfoot's fog measured them at 1.1-2.3:1 (judge, 3 Sep). No gradient: matte everywhere. */
.top:not(.solid) .counter { padding: 8px 10px; background: color-mix(in srgb, var(--ground) 84%, transparent); }
.top:not(.solid) .still, .top:not(.solid) .burger { background: color-mix(in srgb, var(--ground) 84%, transparent); }
.top.solid .mark img, .top.solid .nav a, .top.solid .status, .top.solid .still { filter: none; text-shadow: none; }
.top .mark img { width: clamp(118px, 12vw, 168px); height: auto; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .55)); }
.nav { display: flex; gap: 20px; margin-left: 8px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; text-shadow: var(--shadow); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="true"] { border-bottom-color: var(--accent); }
.menu { display: contents; }               /* desktop: the header sees nav and status as its own children */
.burger { display: none; }                  /* phones only */
.queue-bar { display: none; }               /* phones only */
.status { margin-left: auto; display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 15px; letter-spacing: .04em; text-shadow: var(--shadow); }
.status .counter { font-weight: 600; }
.queue-link { font-family: var(--text); font-weight: 600; font-size: 16px; letter-spacing: 0; text-decoration: none; padding: 8px 12px; border: 1px solid var(--accent); color: var(--ink); text-shadow: none; background: var(--ground); }
.queue-link:hover, .queue-link:focus-visible { background: var(--accent); color: var(--ground); }
.status .legend .lbl { color: var(--dim); }
.status .legend b { font-weight: 600; }
.still { font-family: var(--mono); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--hair); text-shadow: var(--shadow); }
.still[aria-pressed="true"] { background: var(--ink); color: var(--ground); text-shadow: none; }

/* ---------- the thirty-tick rail ---------- */
.rail {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 25;
  display: flex; flex-direction: column; gap: 5px;
}
.rail .tick { display: block; width: 22px; height: 8px; padding: 3px 0; }
.rail .tick span { display: block; height: 2px; width: 12px; margin-left: auto; background: var(--dim); opacity: .45; transition: width .25s, opacity .25s; }
.rail .tick.found span { opacity: .9; width: 16px; }
.rail .tick[aria-current="true"] span { width: 22px; opacity: 1; background: var(--accent); }
.rail .tick:focus-visible { outline-offset: 0; }
.rail { transition: opacity .3s; }
.rail.off { opacity: 0; pointer-events: none; }
@media (min-width: 721px) { .rail.off { opacity: .35; pointer-events: auto; } }

/* ---------- stations ---------- */
.stations { position: relative; z-index: 2; padding-bottom: var(--pull); }
.station {
  position: sticky; top: 0; height: 100vh; height: var(--vh); overflow: hidden;
  background: var(--ground); color: var(--ink);
}
.station .photo { position: absolute; inset: 0; overflow: hidden; background: var(--ground); }
.station .photo > img, .station .photo > video, .station .photo > canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
}
.station .photo > video { opacity: 0; transition: opacity .8s ease; }
.station .photo > video.ready { opacity: 1; }
.station .photo > canvas.layer { display: none; }
.station.layered .photo > canvas.layer { display: block; }
.station.layered .photo > video { opacity: 0; }

.station .copy {
  position: absolute; z-index: 3; bottom: clamp(28px, 7vh, 84px); left: var(--gutter);
  max-width: min(680px, 86vw); text-shadow: var(--shadow);
}
.station.align-right .copy { left: auto; right: calc(var(--gutter) + 30px); }
.station .no { font-family: var(--mono); font-size: 18px; letter-spacing: .08em; color: var(--ink); font-weight: 600; }
.station .name {
  font-family: var(--display); font-weight: 800; font-size: clamp(56px, 11vw, 168px); line-height: .92; letter-spacing: -.035em;
  margin: 8px 0 14px -.05em;
}
.station.will-layer .name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.station.hero.will-layer .where, .station.hero.will-layer .line { display: none; } /* the first screen: wordmark, tagline, one sentence, the name in the cave, the door */
.station .where { font-size: 17px; }
.station .where .found { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.station .line { font-size: clamp(18px, 1.9vw, 25px); line-height: 1.35; margin-top: 14px; max-width: 30ch; }
.station .open {
  display: inline-block; text-decoration: none; margin-top: 22px; font-weight: 600; font-size: 17px; padding: 12px 16px; border: 1px solid var(--ink);
  text-shadow: none; background: var(--ground); transition: background-color .2s, color .2s;
}
.station .open:hover, .station .open:focus-visible { background: var(--ink); color: var(--ground); }
.station .open .arrow { display: inline-block; margin-left: 8px; transition: transform .2s; }
.station .open:hover .arrow { transform: translateX(4px); }
.station .note { position: absolute; z-index: 3; bottom: 14px; right: 52px; font-size: 15px; color: var(--dim); text-shadow: var(--shadow); }
.station.align-right .note { right: auto; left: var(--gutter); }

/* the header wordmark waits while the big one is on the first screen, and dissolves in as the next photograph covers it */
.js.is-home-mark .top .mark, .js .is-home .top .mark { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.js .is-home .top.mark-in .mark { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
/* hero brand block (station 001 only) */
.brand { position: absolute; z-index: 3; top: clamp(92px, 16vh, 170px); left: var(--gutter); max-width: min(720px, 88vw); text-shadow: var(--shadow); }
.brand .wordmark { width: min(58vw, 640px); height: auto; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .5)); }
.brand .tagline { font-family: var(--display); font-weight: 500; font-size: clamp(17px, 2.3vw, 28px); letter-spacing: -.01em; margin-top: 18px; }
.brand .kicker { margin-top: 22px; font-size: 15px; line-height: 1.5; }
.brand .kicker .k1 { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.5vw, 21px); color: var(--accent); letter-spacing: -.01em; }
.brand .kicker .k2 { display: block; margin-top: 6px; font-family: var(--text); font-size: clamp(17px, 1.5vw, 21px); letter-spacing: 0; text-transform: none; color: var(--ink); }
.station.hero .copy { max-width: min(460px, 86vw); }
.station.hero.will-layer .brand { inset: 0; left: 0; right: 0; top: 0; max-width: none; text-align: right; pointer-events: none; }
.station.hero.will-layer .brand .brand-top { position: absolute; right: var(--gutter); top: clamp(84px, 13vh, 130px); max-width: min(560px, 86vw); }
.station.hero.will-layer .brand .kicker { position: absolute; left: calc(var(--gutter) + 30px); bottom: calc(clamp(28px, 6vh, 64px) + 122px); margin: 0; text-align: left; max-width: 36ch; } /* the sentence sits with the number and the door, clear of the name at any width */
.station.hero.will-layer .brand .tagline { font-size: clamp(17px, 1.9vw, 26px); }
.station.hero.will-layer .brand .wordmark { display: block; width: min(34vw, 470px); margin-left: auto; }
.station.hero.will-layer .copy { bottom: clamp(28px, 6vh, 64px); }
.station.hero.align-right .copy { right: var(--gutter); }

/* pull-back: the last station lets go of its background and its photo travels to the wall;
   the stations still pinned beneath it are hidden so only the wall shows through */
.stations.pulling .station:not(:last-child) { visibility: hidden; }
.station.pulling { background: transparent; pointer-events: none; }
.station.pulling .copy, .station.pulling .note { opacity: 0; transition: opacity .25s; }
.station.pulling .photo { position: fixed; inset: auto; top: 0; left: 0; width: 100vw; height: 100vh; height: var(--vh); will-change: top, left, width, height, opacity; z-index: 4; }
.station.landed .photo { visibility: hidden; }

/* ---------- the wall ---------- */
.wall { position: relative; z-index: 1; padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(60px, 10vh, 120px); }
.wall-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px var(--gutter); align-items: end; margin-bottom: 36px; }
.wall h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.6vw, 66px); line-height: .95; letter-spacing: -.035em; }
.about h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.03em; }
.wall .lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.4; max-width: 44ch; color: var(--dim); }
.plates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.plate { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--hair); }
.plate.found { grid-column: span 2; grid-row: span 2; }
.plate-btn { position: absolute; inset: 0; width: 100%; height: 100%; text-align: left; overflow: hidden; color: var(--ink); }
.plate-btn > img, .plate-btn > video, .plate-btn > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate-btn > video { opacity: 0; transition: opacity .6s; }
.plate-btn > video.ready { opacity: 1; }
.plate-btn > canvas.static { image-rendering: pixelated; opacity: .55; }
.plate-no { position: absolute; top: 8px; left: 10px; font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-shadow: var(--shadow); }
.plate-name { position: absolute; bottom: 10px; left: 12px; font-weight: 600; font-size: 17px; text-shadow: var(--shadow); }
.plate-status { position: absolute; bottom: 8px; right: 10px; font-family: var(--mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-shadow: var(--shadow); }
.plate.found .plate-status { color: var(--accent); }
.plate.sealed .plate-status { color: var(--dim); }
.plate.sealed .plate-no { color: var(--dim); }
.plate-msg { position: absolute; left: 10px; right: 10px; top: 50%; transform: translateY(-50%); font-size: 15px; line-height: 1.3; color: var(--ink); opacity: 0; transition: opacity .3s; text-shadow: var(--shadow); }
.plate.sealed.told .plate-msg { opacity: 1; }
.plate.sealed.told .plate-status { opacity: 0; }
.plate-btn:hover > video.ready, .plate-btn:focus-visible > video.ready { opacity: 1; }
.plate.found .plate-btn:focus-visible, .plate.sealed .plate-btn:focus-visible { outline-offset: -3px; }
.plate.mine::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--accent); pointer-events: none; }
.plate .plate-count { position: absolute; top: 8px; right: 10px; font-family: var(--mono); font-size: 15px; letter-spacing: .06em; color: var(--ink); text-shadow: var(--shadow); }

/* ---------- the globe ---------- */
.globe-section { position: relative; z-index: 1; padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(60px, 10vh, 120px); border-top: 1px solid var(--hair); }
.globe-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px var(--gutter); align-items: end; margin-bottom: 28px; }
.globe-section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.6vw, 66px); line-height: .95; letter-spacing: -.035em; }
.globe-section .lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.4; max-width: 44ch; color: var(--dim); }
.globe-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 24px var(--gutter); align-items: center; }
.globe { position: relative; width: min(100%, 78vh); aspect-ratio: 1 / 1; margin: 0 auto; cursor: grab; outline-offset: 8px; }
.globe.dragging { cursor: grabbing; }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.globe-label {
  position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: baseline; gap: 6px;
  margin: -38px 0 0 10px; padding: 3px 0; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  color: var(--ink); border-bottom: 1px solid var(--accent); text-shadow: 0 1px 2px rgb(0 0 0 / .7);
  transition: opacity .25s; will-change: transform;
}
.globe-label .gl-no { font-family: var(--mono); font-size: 15px; color: var(--accent); }
.globe-label.far { opacity: 0; pointer-events: none; }
.globe-search { margin: 26px 0 0 0; border-bottom-color: var(--ink); }
.globe-search .gl-no { color: var(--ink); }
.globe-search .gl-status { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: .8; }
.plate.searching .plate-status { color: var(--ink); }
.plate.searching .plate-btn { border: 1px dashed var(--dim); }
.plate.searching canvas.static { opacity: .3; }
.globe-label[data-slug="dragon"] { margin: 12px 0 0 12px; }   /* Nessie sits 4 degrees north: her label above, his below */
.globe-label[data-slug="nessie"] { margin: -44px 0 0 12px; }
.globe-list { display: grid; gap: 0; align-content: center; }
.globe-list li { border-top: 1px solid var(--hair); }
.globe-list li:last-of-type { border-bottom: 1px solid var(--hair); }
.globe-list a { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; padding: 12px 0; text-decoration: none; }
.globe-list .num { grid-row: 1 / 3; align-self: center; font-family: var(--mono); font-weight: 600; font-size: 18px; color: var(--accent); }
.globe-list b { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.globe-list .place { font-size: 16px; color: var(--dim); }
.globe-list a:hover b, .globe-list a:focus-visible b { text-decoration: underline; text-underline-offset: 4px; }
.globe-list .globe-note { padding: 14px 0 0; font-size: 15px; color: var(--dim); border: 0; }
.no-js .globe canvas, .no-js .globe-label { display: none; }
.no-js .globe { display: none; }

/* ---------- the stories continue (home) ---------- */
.ladder { position: relative; z-index: 1; padding: clamp(50px, 8vh, 100px) var(--gutter); border-top: 1px solid var(--hair); }
.ladder h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.03em; line-height: 1; margin-bottom: 24px; }
.rungs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rung { display: block; padding: 20px 20px 22px; border: 1px solid var(--hair); text-decoration: none; }
.rung:hover, .rung:focus-visible { border-color: var(--accent); }
.rung b { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.rung p { margin-top: 8px; font-size: 16px; color: var(--dim); line-height: 1.45; }
.rung .cta { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 16px; color: var(--accent); }

/* ---------- inner pages: banter, films, the search ---------- */
.page { padding: clamp(96px, 16vh, 160px) var(--gutter) clamp(60px, 10vh, 120px); }
.page-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px var(--gutter); align-items: end; margin-bottom: 36px; }
.page-head .kicker { font-family: var(--mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.1vw, 62px); line-height: .95; letter-spacing: -.035em; }
.page-head .lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 52ch; color: var(--dim); }
.page-status { font-size: 16px; color: var(--ink); border-left: 3px solid var(--accent); padding: 8px 14px; margin: 4px 0 40px; max-width: 60ch; }
.living { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.living > img, .living > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.living > video { opacity: 0; transition: opacity .8s; }
.living > video.ready { opacity: 1; }
.living .note { position: absolute; left: 0; bottom: 0; padding: 6px 12px; font-size: 15px; color: var(--dim); background: var(--ground); }
.cards { display: grid; gap: 28px; }
.card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px var(--gutter); align-items: start; padding: 28px 0; border-top: 1px solid var(--hair); }
.card .no { font-family: var(--mono); font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.card h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -.03em; line-height: 1; margin: 6px 0 4px; }
.card .sub { font-size: 16px; color: var(--dim); }
.card .line { margin-top: 14px; font-size: 18px; line-height: 1.45; }
.card .state { margin-top: 14px; font-size: 16px; line-height: 1.45; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 12px; }
.card .slot { margin-top: 12px; font-family: var(--mono); font-size: 15px; letter-spacing: .06em; color: var(--dim); }
.card .links { margin-top: 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.card .links a { font-weight: 600; font-size: 16px; text-underline-offset: 4px; }
.transcript { margin-top: 16px; }
.transcript div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--hair); }
.transcript dt { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; color: var(--dim); padding-top: 2px; }
.transcript dt.is-creature { color: var(--accent); }
.transcript dd { margin: 0; font-size: 17px; line-height: 1.45; }
.transcript dd.is-creature { font-weight: 600; }
.filed { margin-top: 12px; font-size: 15px; color: var(--dim); }
.situations { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair); }
.situations h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; }
.situations .lead { margin: 10px 0 18px; font-size: 17px; color: var(--dim); max-width: 60ch; }
.situations ol { max-width: 64ch; }
.situations li { padding: 12px 0; border-top: 1px solid var(--hair); font-size: 17px; line-height: 1.5; }
.search-current { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px var(--gutter); align-items: start; overflow: clip; }
.globe[data-labels="search"] .globe-label:not(.globe-search) { display: none; } /* the search page shows the search; the six are listed below it */
.globe-body { overflow: clip; }
.search-current .globe { width: min(100%, 64vh); }
/* ---------- the search panel under the wall (home): a glance at where we are looking, and a door ---------- */
.search-panel { position: relative; z-index: 2; background: var(--ground); padding: clamp(28px, 5vh, 56px) var(--gutter); border-top: 1px solid var(--hair); }
.search-panel .sp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px var(--gutter); align-items: center; text-decoration: none; color: inherit; }
.search-panel .kicker { font-family: var(--mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.search-panel h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.03em; line-height: 1; }
.search-panel .sp-line { margin-top: 10px; font-size: 17px; color: var(--dim); max-width: 46ch; }
.search-panel .cta { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
.search-panel .sp-thumbs { display: flex; gap: 8px; }
.search-panel .sp-thumbs li { width: clamp(120px, 14vw, 200px); }
.search-panel .sp-thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.search-panel .sp:hover h2, .search-panel .sp:focus-visible h2 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
@media (max-width: 860px) { .search-panel .sp { grid-template-columns: 1fr; } .search-panel .sp-thumbs li { flex: 1 1 0; width: auto; } }
.search-hero { margin: 0 0 clamp(36px, 6vh, 72px); }
.search-hero .cap-line { position: absolute; left: 0; bottom: 0; right: 0; padding: 10px 14px; font-size: 16px; color: var(--ink); background: color-mix(in srgb, var(--ground) 78%, transparent); }
.search-hero .note { bottom: auto; top: 0; left: auto; right: 0; }
.search-current .dispatches li { grid-template-columns: 110px minmax(0, 1fr) 220px; align-items: start; column-gap: 18px; }
.dispatches .d-photo { margin: 0; }
.dispatches .d-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.dispatches li:nth-child(3) .d-photo img, .dispatches li:nth-child(4) .d-photo img { aspect-ratio: 2 / 3; max-height: 200px; }
.dispatches .d-photo figcaption { margin-top: 6px; font-size: 15px; color: var(--dim); line-height: 1.35; }
.field { margin-top: clamp(50px, 8vh, 90px); padding-top: 28px; border-top: 1px solid var(--hair); }
.field h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; }
.field .lead { margin: 10px 0 22px; font-size: 17px; color: var(--dim); max-width: 60ch; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.field-grid figure { margin: 0; }
.field-grid img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.field-grid figcaption { margin-top: 8px; font-size: 16px; color: var(--ink); line-height: 1.4; }
.field-note { margin-top: 16px; font-size: 15px; color: var(--dim); }
.search-paras p + p { margin-top: 1em; }
.search-paras p { font-size: 18px; line-height: 1.5; max-width: 58ch; }
.dispatches { margin-top: 26px; max-width: 58ch; }
.dispatches li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); font-size: 17px; line-height: 1.45; }
.dispatches li:last-child { border-bottom: 1px solid var(--hair); }
.dispatches .d-no { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.search-next { margin-top: 22px; font-size: 16px; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 12px; max-width: 58ch; }
.past { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--hair); }
.past h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; }
.past .lead { margin: 10px 0 18px; font-size: 17px; color: var(--dim); max-width: 60ch; }
.past ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.past li a { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); text-decoration: none; }
.past .num { grid-row: 1 / 3; align-self: center; font-family: var(--mono); font-weight: 600; font-size: 18px; color: var(--accent); }
.past b { font-family: var(--display); font-weight: 700; font-size: 18px; }
.past .place { font-size: 15px; color: var(--dim); }
.past li a:hover b, .past li a:focus-visible b { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- the queue ---------- */
.queue { position: relative; z-index: 1; padding: clamp(60px, 10vh, 120px) var(--gutter); border-top: 1px solid var(--hair); }
.queue-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 32px var(--gutter); align-items: start; }
.queue h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.6vw, 66px); line-height: .95; letter-spacing: -.035em; }
.queue .lead { margin-top: 18px; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.4; max-width: 44ch; }
.queue-copy p + p { margin-top: 1em; }
.queue-copy p:not(.lead) { max-width: 60ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--dim); }
.queue-form { border: 1px solid var(--hair); padding: clamp(18px, 2.4vw, 32px); margin-top: 8px; }
.queue-form label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.queue-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.queue-form input[type="email"] { min-width: 0; font: inherit; font-size: 17px; padding: 12px 14px; background: transparent; color: var(--ink); border: 1px solid var(--dim); }
.queue-form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.queue-form button { font-weight: 600; font-size: 17px; padding: 12px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--ground); white-space: nowrap; }
.queue-form button:hover, .queue-form button:focus-visible { background: var(--accent); border-color: var(--accent); }
.queue-form button[disabled] { opacity: .6; cursor: wait; }
.queue-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.queue-small { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--dim); }
.queue-status { margin-top: 14px; font-size: 17px; line-height: 1.45; min-height: 1.45em; }
.queue-status.ok { color: var(--accent); font-weight: 600; }
.queue-form.sent .queue-row, .queue-form.sent .queue-small { display: none; }

/* ---------- the six files as articles (no-JS / reader mode); hidden once JS runs ---------- */
.js .files { display: none; }
.files { padding: 40px var(--gutter); }
.file-article { max-width: 62ch; padding: 40px 0; border-top: 1px solid var(--hair); }
.file-article h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.035em; line-height: .95; margin: 8px 0; }
.file-article p + p { margin-top: 1em; }
.file-article .no { font-family: var(--mono); font-weight: 600; font-size: 18px; }
.file-article .secondary, .file-article .small { color: var(--dim); }
.file-article dl { margin: 1.5em 0; }
.file-article dl div { display: grid; grid-template-columns: minmax(120px, .6fr) minmax(0, 1.6fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.file-article dt { font-weight: 600; color: var(--dim); }

/* ---------- about ---------- */
.about { position: relative; z-index: 1; padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(80px, 12vh, 160px); border-top: 1px solid var(--hair); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px var(--gutter); }
.about-copy { max-width: 62ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.about-copy p + p { margin-top: 1em; }
.faq .qa { padding: 18px 0 20px; border-top: 1px solid var(--hair); }
.faq .qa:last-child { border-bottom: 1px solid var(--hair); }
.faq dt { font-weight: 600; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.35; }
.faq dd { margin: 8px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink); }
.faq .qa:last-child dt { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.faq .qa:last-child dd { color: var(--accent); }
.about-copy h3 { margin: 2.2em 0 .6em; font-weight: 600; font-size: 17px; color: var(--accent); }
.about-copy .grownups { margin-top: 2em; font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.35; letter-spacing: -.01em; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .wordmark { width: 150px; }
.foot .tagline { font-family: var(--display); font-weight: 500; font-size: 16px; }
.foot .small { margin-left: auto; font-family: var(--mono); font-size: 15px; color: var(--dim); letter-spacing: .04em; }

/* ---------- the file (dialog) ---------- */
.file {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: var(--vh); max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ground); color: var(--ink); overflow: hidden; z-index: 40;
}
.file::backdrop { background: rgb(0 0 0 / .6); }
@keyframes file-in { from { opacity: 0; } to { opacity: 1; } }
.file[open] { animation: file-in .35s ease; }
.file[open] { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 560px); }
.file-photo { position: relative; overflow: hidden; background: #000; }
.file-photo > img, .file-photo > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.file-photo > video { opacity: 0; transition: opacity .8s; }
.file-photo > video.ready { opacity: 1; }
.file-photo .note { position: absolute; left: 0; bottom: 0; padding: 8px 20px; font-size: 15px; color: var(--dim); background: var(--ground); }
.file .file-note { margin-top: 26px; font-size: 15px; color: var(--dim); }
.file-read { overflow: auto; overscroll-behavior: contain; padding: 24px clamp(24px, 3vw, 48px) 60px; -webkit-overflow-scrolling: touch; }
.file-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 36px; position: sticky; top: 0; background: var(--ground); padding: 8px 0 10px; z-index: 2; }
.file-bar button { font-family: var(--mono); font-size: 16px; padding: 10px 14px; border: 1px solid var(--hair); }
.file-bar button:hover { border-color: var(--ink); }
.file-close { margin-left: auto; }
.file .no { font-family: var(--mono); font-size: 18px; letter-spacing: .08em; color: var(--ink); font-weight: 600; }
.file .name { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.4vw, 80px); line-height: .95; letter-spacing: -.035em; margin: 10px 0 8px -.04em; }
.file .secondary { font-size: 17px; color: var(--dim); }
.file .where { margin-top: 12px; font-size: 17px; }
.file .where .found { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.file .paras { margin-top: 28px; max-width: 58ch; }
.file .faq .qa { padding: 14px 0 16px; border-top: 1px solid var(--hair); }
.file .faq dt { font-weight: 600; font-size: 18px; line-height: 1.35; }
.file .faq dd { margin: 6px 0 0; font-size: 17px; line-height: 1.5; }
.file-article .faq .qa { padding: 12px 0; border-top: 1px solid var(--hair); }
.file-article .faq dt { font-weight: 600; }
.file-article .faq dd { margin: 6px 0 0; }
.file .particulars { margin-top: 32px; border-top: 1px solid var(--hair); }
.file .particulars div { display: grid; grid-template-columns: minmax(120px, .6fr) minmax(0, 1.6fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.file .particulars dt { font-weight: 600; font-size: 15px; color: var(--dim); padding-top: 2px; }
.file .particulars dd { font-size: 17px; line-height: 1.45; }
.file .cross { margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--accent); font-size: 16px; line-height: 1.5; }
.file .cross a { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.record { margin-top: 32px; border: 1px solid var(--hair); padding: 18px; }
.record .rec-title { font-size: 17px; }
.record .rec-title b { font-family: var(--display); font-weight: 700; }
.record .rec-note { color: var(--dim); display: block; margin-top: 4px; }
.record .rec-ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 16px; }
.rec-play { font-family: var(--mono); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; padding: 10px 16px; border: 1px solid var(--ink); min-width: 96px; text-align: center; }
.rec-play .p-pause { display: none; }
.rec-play[aria-pressed="true"] .p-play { display: none; }
.rec-play[aria-pressed="true"] .p-pause { display: inline; }
.rec-play[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.rec-scrub { width: 100%; margin: 0; accent-color: var(--accent); height: 28px; }
.rec-time { font-family: var(--mono); font-size: 15px; color: var(--dim); white-space: nowrap; }
.mine { margin-top: 32px; font-weight: 600; font-size: 17px; padding: 14px 18px; border: 1px solid var(--ink); width: 100%; text-align: left; transition: background-color .2s, color .2s; }
.mine .m-yes { display: none; }
.mine[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ground); }
.mine[aria-pressed="true"] .m-no { display: none; }
.mine[aria-pressed="true"] .m-yes { display: inline; }
.mine:hover { background: var(--ink); color: var(--ground); }

/* ---------- phones and narrow screens ---------- */
@media (max-width: 1100px) {
  .plates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .file[open] { grid-template-columns: minmax(0, 1.2fr) minmax(340px, 480px); }
}
@media (max-width: 860px) {
  .wall-head, .about-grid, .globe-head, .globe-body, .queue-grid, .page-head, .card, .search-current { grid-template-columns: 1fr; }
  .rungs, .past ol { grid-template-columns: 1fr; }
  .search-current .globe { width: min(100%, 92vw); }
  .search-current .dispatches li { grid-template-columns: 110px minmax(0, 1fr); }
  .dispatches .d-photo { grid-column: 1 / -1; }
  .dispatches li:nth-child(3) .d-photo img, .dispatches li:nth-child(4) .d-photo img { aspect-ratio: 3 / 2; max-height: none; }
  .field-grid { grid-template-columns: 1fr; }
  .globe { width: min(100%, 92vw); }
  .file[open] { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .file-photo { aspect-ratio: 16 / 9; height: auto; }
  .file-photo .note { right: 0; }   /* a full-width band along the photo's bottom edge, not a chip that notches the picture (judge panel, 3 Sep) */
  .file-photo > img, .file-photo > video { position: absolute; }
  .file-read { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .top { padding: 12px var(--gutter); gap: 12px; justify-content: space-between; }
  /* the hamburger: a real 44 px button, three drawn lines and the word */
  .burger { display: inline-flex; align-items: center; gap: 10px; min-width: 44px; min-height: 44px; padding: 0 4px; margin-left: auto; font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-shadow: var(--shadow); }
  .burger .lines { display: grid; gap: 5px; width: 22px; } .burger .lines i { display: block; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] .lines i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] .lines i:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] .lines i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* the menu: the whole screen below the header, on the world's ground */
  .menu { display: none; }
  .top.open .menu { display: flex; flex-direction: column; gap: 28px; position: fixed; left: 0; right: 0; top: 0; bottom: 0; padding: 92px var(--gutter) calc(80px + env(safe-area-inset-bottom)); background: var(--ground); overflow: auto; z-index: -1; }
  .top.open { background: var(--ground); }
  .top.open .menu .nav { display: flex; flex-direction: column; gap: 6px; margin: 0; }
  .top.open .menu .nav a { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 9vw, 40px); letter-spacing: -.03em; line-height: 1.2; padding: 8px 0; border-bottom: 0; text-shadow: none; }
  .top.open .menu .nav a[aria-current="true"] { color: var(--accent); }
  .top.open .menu .status { margin: 0; flex-direction: column; align-items: flex-start; gap: 16px; text-shadow: none; }
  .top.open .menu .status .counter, .top.open .menu .status .still, .top.open .menu .status .legend:not([hidden]) { display: inline-flex; }
  .top.open .menu .queue-link { display: none; }  /* the bottom bar carries it on phones */
  .queue-link { padding: 8px 10px; font-size: 15px; }
  /* Join the queue, always at the bottom of the phone's screen */
  .queue-bar { display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; min-height: var(--bar, 52px); padding: 0 var(--gutter) env(safe-area-inset-bottom); background: var(--ground); color: var(--ink); border-top: 1px solid var(--accent); font-weight: 600; font-size: 16px; text-decoration: none; }
  .queue-bar:focus-visible { outline-offset: -3px; }
  body.queue-seen .queue-bar, body:has(.stage-rail) .queue-bar { display: none; }
  body { padding-bottom: calc(var(--bar, 52px) + env(safe-area-inset-bottom)); }
  .top.open ~ .queue-bar { z-index: 60; }
  .no-js .burger { display: none; } .no-js .menu { display: contents; } .no-js .nav { display: flex; flex-wrap: wrap; gap: 12px; }
  .transcript div { grid-template-columns: 96px minmax(0, 1fr); }
  .dispatches li { grid-template-columns: 90px minmax(0, 1fr); }
  .queue-row { grid-template-columns: 1fr; }
  :root { --bar: 52px; }                    /* the Join-the-queue bar at the bottom of the phone's screen; the rail and the station copy sit above it */
  .rail { right: auto; left: var(--gutter); top: auto; bottom: calc(var(--bar, 0px) + 10px + env(safe-area-inset-bottom)); transform: none; flex-direction: row; gap: 3px; }
  .rail .tick { width: 9px; height: 18px; padding: 0 2px; display: flex; align-items: flex-end; }
  .rail .tick span { width: 5px; height: 8px; margin: 0; }
  .rail .tick.found span { width: 5px; height: 12px; }
  .rail .tick[aria-current="true"] span { width: 5px; height: 18px; }
  .station .copy { bottom: calc(var(--bar, 0px) + 46px); left: var(--gutter); right: var(--gutter); max-width: none; }
  .station .no .num { display: inline-block; padding: 3px 8px; margin-left: -8px; background: color-mix(in srgb, var(--ground) 84%, transparent); } /* the number sits on fur/fog above the copy on phones (Bigfoot: 2.9:1, judge 3 Sep) — a flat plate, no scrim */
  .station.align-right .copy { right: var(--gutter); left: var(--gutter); }
  .station .name { font-size: clamp(40px, min(15vw, calc(118vw / var(--n, 6))), 76px); }
  .station .photo > img, .station .photo > video { object-position: var(--focus, 50% 50%); }
  .station .line { max-width: none; font-size: 18px; }
  .station .note { display: none; }
  .brand { top: 84px; left: var(--gutter); right: var(--gutter); max-width: none; }
  .brand .wordmark { width: min(78vw, 360px); }
  .brand .kicker { margin-top: 14px; }
  .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .plate.found { grid-column: auto; grid-row: auto; }
  .plate-name { display: none; }
  .plate-no { top: 5px; left: 6px; }
  .plate-status { bottom: 5px; right: 6px; font-size: 15px; }
  .plate-msg { font-size: 15px; left: 6px; right: 6px; }
  .file-read { padding: 16px var(--gutter) calc(48px + env(safe-area-inset-bottom)); }
  .file-bar { margin-bottom: 20px; }
  .record .rec-ctl { grid-template-columns: auto minmax(0, 1fr); }
  .record .rec-time { grid-column: 1 / -1; }
  .foot .small { margin-left: 0; }
}
@media (max-width: 420px) {
  .status .counter { display: none; }
  .still { display: none; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.smooth { scroll-behavior: auto; }
  .globe-label { transition: none; }
  .station .photo > video, .plate-btn > video, .file-photo > video { display: none !important; }
  .station .photo > canvas.layer { display: none !important; }
  .js body.world-shift { transition: none; }
  .file[open] { animation: none; }
  .top.solid, .rail { transition: none; }
  .station .open .arrow, .rail .tick span, .plate-btn > video { transition: none; }
}
html.is-still .station .photo > video, html.is-still .plate-btn > video, html.is-still .file-photo > video { opacity: 0; }
html.is-still .station.layered .photo > canvas.layer { display: none; }
html.is-still .station.layered .photo > video { opacity: 0; }

/* ---------- the stage: films and banter. One living photograph per scene, words on a timed score. ---------- */
.is-stage .stage { position: relative; }
.stage .scenes { position: relative; z-index: 2; }
.scene {
  position: sticky; top: 0; height: 100vh; height: var(--vh); overflow: hidden;
  background: var(--ground); color: var(--ink);
}
.scene .photo { position: absolute; inset: 0; overflow: hidden; background: var(--ground); }
.scene .photo > img, .scene .photo > video, .scene .photo > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.scene .photo > video { opacity: 0; transition: opacity .8s ease; }
.scene .photo > video.ready { opacity: 1; }
.scene .photo > canvas.layer { display: none; }
.scene.layered .photo > canvas.layer { display: block; }
.scene.layered .photo > video { opacity: 0; }
/* cues: nothing eases. A line is there or it is not. */
.js .scene .cue:not(.on) { display: none !important; }
.js .cue.on { display: block; }
.js .cue.cap.links.on { display: flex; }
.no-js .cue[data-dup] { display: none; }
.scene .exchange {
  position: absolute; z-index: 3; left: calc(var(--gutter) + 30px); right: calc(var(--gutter) + 30px); bottom: clamp(28px, 6vh, 64px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; pointer-events: none;
}
.scene.align-right .exchange { left: calc(var(--gutter) + 30px); }
.scene .exchange a { pointer-events: auto; }
.scene .art.id {
  position: absolute; z-index: 3; left: calc(var(--gutter) + 30px); top: clamp(76px, 10vh, 112px); margin: 0;
  font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-shadow: var(--shadow);
}
.scene .art.id .setting { display: block; margin-top: 4px; font-family: var(--text); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 16px; color: var(--dim); }
.scene .cap { max-width: min(48ch, 62vw); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.4; text-shadow: var(--shadow); }
.scene .cap .lbl { display: block; font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.scene .cap .dir { font-family: var(--mono); font-size: 15px; letter-spacing: .04em; color: var(--dim); }
.scene .cap.art-line, .scene .cap.filed { font-family: var(--mono); font-size: 15px; letter-spacing: .02em; color: var(--dim); max-width: min(60ch, 70vw); }
.scene .cap.host.low { margin-top: 1.4em; } /* one line lower: the voice from beneath the desk */
.scene .cap.cap-status { font-family: var(--text); }
.scene .cap.end { font-size: 16px; color: var(--dim); padding-top: 10px; border-top: 1px solid var(--hair); min-width: 26ch; }
.scene .cap.end a { color: var(--ink); text-underline-offset: 4px; }
.scene .cap.links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 600; font-size: 16px; }
.scene .cap.links a { text-underline-offset: 4px; }
.scene .hint { display: none; font-family: var(--mono); font-size: 15px; color: var(--dim); text-shadow: var(--shadow); }
.scene.first.gate-open .hint { display: block; }
.scene.first .hint[hidden] { display: none; }
/* in-scene words: drawn into the photograph on desktop, plain type in the stack everywhere else */
.scene.will-layer .scene-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.scene .scene-text { font-family: var(--display); font-weight: 900; letter-spacing: -.035em; line-height: .98; text-shadow: var(--shadow); max-width: 12ch; }
.scene .scene-text.title { font-size: min(72px, calc(150vw / var(--n, 8))); }
.scene .scene-text.answer { font-size: clamp(26px, 3.2vw, 44px); font-weight: 800; max-width: 22ch; }
.scene .scene-text.answer.final { font-size: clamp(32px, 4.4vw, 64px); font-weight: 900; max-width: 18ch; }
.scene .scene-text.song { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); max-width: none; }
.scene .scene-text.song .wt { color: var(--dim); }
.scene .scene-text.answer[data-who]::before { content: attr(data-who); display: block; font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
/* the head of the first scene: read it, then any gesture begins the show */
.scene .head { position: absolute; z-index: 3; left: calc(var(--gutter) + 30px); top: clamp(84px, 13vh, 130px); max-width: min(560px, 80vw); text-shadow: var(--shadow); }
.scene .head .kicker { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.scene .head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 56px); line-height: .98; letter-spacing: -.035em; margin-bottom: 14px; }
.scene .head .lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: var(--ink); max-width: 46ch; }
.scene .head .go { margin-top: 14px; font-family: var(--mono); font-size: 15px; color: var(--dim); }
.scene.gate-open .head { display: none; }
.scene.first:not(.gate-open) .exchange, .scene.first:not(.gate-open) .ctl { display: none; }
.no-js .scene .head .go, .no-js .scene .ctl, .no-js .scene .hint { display: none; }
/* the control: a word, never a triangle */
.scene .ctl {
  position: absolute; z-index: 4; right: 52px; bottom: clamp(28px, 6vh, 64px); min-height: 44px; padding: 0 16px;
  font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ground); color: var(--ink); transition: background-color .2s, color .2s;
}
.scene .ctl:hover, .scene .ctl:focus-visible { background: var(--ink); color: var(--ground); }
.scene .note { position: absolute; z-index: 3; bottom: 10px; right: 52px; font-size: 15px; color: var(--dim); text-shadow: var(--shadow); }
.scene.done .note { display: none; }
/* after the scenes: the situations and the ladder slide over the last photograph */
.stage .after { position: relative; z-index: 3; background: var(--ground); padding: clamp(50px, 8vh, 100px) var(--gutter); margin: 0; border-top: 1px solid var(--hair); }
.stage .after.situations { margin-top: 0; padding-top: clamp(50px, 8vh, 100px); }
.stage .after-links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-weight: 600; }
.stage .after-links a { text-underline-offset: 4px; }
.stage .page-status { margin: 0; }
.stage-rail .rail-no { display: none; }
@media (max-width: 720px) {
  .scene .exchange { left: var(--gutter); right: var(--gutter); bottom: calc(124px + env(safe-area-inset-bottom)); gap: 10px; }
  .scene .art.id { left: var(--gutter); top: 72px; }
  .scene .cap { max-width: none; font-size: 17px; }
  .scene .scene-text.title { font-size: min(48px, calc(118vw / var(--n, 8))); max-width: none; }
  .scene .scene-text.answer { font-size: clamp(24px, 7vw, 32px); max-width: none; }
  .scene .scene-text.answer.final { font-size: clamp(30px, 9.5vw, 44px); max-width: none; }
  .scene .head { left: var(--gutter); top: auto; bottom: calc(124px + env(safe-area-inset-bottom)); max-width: none; right: var(--gutter); }
  .scene .head h1 { font-size: clamp(30px, 9vw, 40px); }
  .scene .ctl { right: 12px; bottom: calc(64px + env(safe-area-inset-bottom)); min-width: 48px; min-height: 48px; padding: 0 12px; }
  .scene .note { display: none; }
  /* the phone rail: six stops along the bottom, 44 px each, the current number beside them */
  .is-stage .rail { top: auto; right: auto; transform: none; left: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); flex-direction: row; gap: 0; align-items: center; }
  .is-stage .rail .tick { width: max(28px, min(44px, calc((100vw - 96px) / var(--stops, 6)))); height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; }
  .is-stage .rail .tick span { width: 12px; height: 5px; margin: 0; }
  .is-stage .rail .tick[aria-current="true"] span { width: 18px; }
  .is-stage .stage-rail .rail-no { display: inline-block; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--accent); margin-left: 4px; text-shadow: var(--shadow); }
}

/* ---------- the films wall: a band in the film's colour, the living plate, the storyboard as a notated sheet ---------- */
.wall .scenes { padding-bottom: 0; }
.wall .film { position: relative; z-index: 2; background: var(--ground); color: var(--ink); padding-bottom: 10px; }
.wall .band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px var(--gutter); align-items: center; background: var(--band, var(--accent)); color: var(--ground); padding: 26px var(--gutter); }
.wall .band .obj { width: clamp(84px, 9vw, 132px); height: clamp(84px, 9vw, 132px); }
.wall .band svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.wall .band .obj svg { width: 100%; height: 100%; stroke-width: 3.5; }
.wall .band .no { font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.wall .band .no .g { width: 30px; height: 30px; display: inline-block; } .wall .band .no .g svg { width: 100%; height: 100%; stroke-width: 2.4; }
.wall .band h2 { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4.6vw, 72px); letter-spacing: -.04em; line-height: .95; margin-top: 8px; }
.wall .band .meta { font-family: var(--mono); font-size: 15px; letter-spacing: .04em; text-align: right; max-width: 34ch; opacity: .9; }
.wall .band .meta b { font-weight: 600; }
/* the stamp: the smooth toeless oval his foot leaves, a real button. Tap it and he stamps. */
.stampbtn { width: clamp(84px, 9vw, 132px); height: clamp(84px, 9vw, 132px); position: relative; display: grid; place-items: center; }
.stampbtn svg { width: 100%; height: 100%; stroke-width: 3.5; overflow: visible; }
.stampbtn .pad { fill: currentColor; stroke: none; transition: transform .08s; transform-origin: 50% 50%; }
.stampbtn .hit { opacity: 0; } .stampbtn[aria-pressed="true"] .hit { opacity: 1; } .stampbtn[aria-pressed="true"] .pad { transform: translateY(4px) scale(1.04); }
.stampbtn:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.stampbtn .lbl { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
/* the plate: a scene in the flow, two to one, the title at depth on desktop */
.wall .scene.plate { position: relative; top: auto; height: auto; aspect-ratio: 2 / 1; overflow: hidden; }
.wall .scene.plate .exchange { left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 44px); }
.wall .scene.plate .press { position: absolute; z-index: 3; left: var(--gutter); bottom: 22px; margin: 0; font-family: var(--mono); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-shadow: var(--shadow); }
.wall .scene.plate.gate-open .press { display: none; }
.wall .scene.plate .note { right: 14px; bottom: auto; top: 10px; }
.wall .scene.plate .scene-text.title { font-size: min(64px, calc(120vw / var(--n, 8))); }
.js .wall .scene.plate .cue:not(.on) { display: none !important; }
.wall .legend { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px var(--gutter) 6px; font-family: var(--mono); font-size: 15px; color: var(--dim); align-items: center; margin: 0; }
.wall .legend .k { color: var(--ink); } .wall .legend span { display: inline-flex; align-items: center; gap: 8px; }
.wall .legend svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wall .grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin: 4px var(--gutter) 0; }
.wall .grid li button { display: block; width: 100%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.wall .grid li img { width: 100%; height: 100%; object-fit: cover; }
.wall .grid li .n { position: absolute; left: 6px; bottom: 4px; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink); text-shadow: var(--shadow); }
.wall .grid li .sz { position: absolute; right: 6px; top: 4px; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--accent); text-shadow: var(--shadow); letter-spacing: .04em; }
.wall .grid li .mv { position: absolute; right: 6px; bottom: 4px; width: 18px; height: 18px; color: var(--ink); filter: drop-shadow(0 1px 1px rgb(0 0 0 / .8)); }
.wall .grid li .mv svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wall .grid li button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wall .count { margin: 10px var(--gutter) 0; font-family: var(--mono); font-size: 15px; color: var(--dim); }
.wall .slot { margin: 18px var(--gutter) 10px; max-width: 60ch; }
.wall .film-links { margin: 0 var(--gutter) 44px; font-weight: 600; font-size: 16px; } .wall .film-links a { text-underline-offset: 4px; }
.wall .register { position: relative; z-index: 2; background: var(--ground); padding: 40px var(--gutter) 30px; border-top: 1px solid var(--hair); display: grid; grid-template-columns: auto 1fr; gap: 20px var(--gutter); align-items: center; }
.wall .register .k { font-family: var(--mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0; }
.wall .register ol { display: flex; gap: 22px; flex-wrap: wrap; } .wall .register li { display: grid; justify-items: center; gap: 6px; font-family: var(--mono); font-size: 15px; color: var(--dim); }
.wall .register li svg { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wall .register li.sealed .box { width: 44px; height: 44px; border: 1px dashed var(--hair); }
dialog.viewer { border: 0; padding: 0; background: var(--ground); color: var(--ink); width: min(96vw, 1400px); max-width: none; max-height: 96vh; }
dialog.viewer::backdrop { background: rgb(0 0 0 / .82); }
.viewer .vimg { aspect-ratio: 16 / 9; background: #000; } .viewer .vimg img { width: 100%; height: 100%; object-fit: contain; }
.viewer .vbar { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; padding: 12px 16px; align-items: baseline; }
.viewer .vn { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: -.03em; } .viewer .vt { font-size: 18px; font-weight: 600; } .viewer .vtc { font-family: var(--mono); font-size: 15px; color: var(--dim); }
.viewer .vc { grid-column: 1 / -1; font-size: 16px; color: var(--dim); }
.viewer .vk { grid-column: 1 / -1; display: flex; gap: 14px; font-family: var(--mono); font-size: 15px; } .viewer .vk button { border: 1px solid var(--hair); padding: 8px 12px; min-height: 44px; }
main.wall { padding: 0; }
.wall .page-status { margin: 0 var(--gutter) 40px; }
.wall .page-head { padding: clamp(40px, 7vh, 80px) var(--gutter) 30px; margin: 0; }
@media (max-width: 860px) {
  .wall .band { grid-template-columns: auto minmax(0, 1fr); } .wall .band .meta { grid-column: 1 / -1; text-align: left; } .stampbtn { margin-bottom: 28px; }
  .wall .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .wall .register { grid-template-columns: 1fr; }
  .wall .scene.plate { aspect-ratio: 16 / 9; }
  .wall .scene.plate .scene-text.title { font-size: min(44px, calc(112vw / var(--n, 8))); }
  .wall .scene.plate .exchange { bottom: 16px; }
  .wall .scene.plate .press { bottom: auto; top: 12px; left: var(--gutter); }
  .wall .scene.plate .note { display: none; }
}
