/* ============================================================
   Our Turn — the living wall
   Three voices to a question, across twenty years.

   Design notes:
   · The archive's own palette (bone / ink / ember / gold, Fraunces +
     DM Sans) so this reads as the same work, not a bolt-on.
   · Ground is warm dark, because it is a room with screens in it.
   · 2006 wears gold, now wears ember. That single colour decision is
     the whole idea, so nothing else is allowed to be that saturated.
   ============================================================ */

:root {
  --bone: #f7efe1;
  --ink: #17120e;
  --ink-2: #211a14;
  --ink-3: #2c231b;
  --paper: #efe3cf;
  --muted: rgba(247, 239, 225, 0.58);
  --muted-2: rgba(247, 239, 225, 0.36);
  --line: rgba(247, 239, 225, 0.14);
  --ember: #e2551d;
  --ember-soft: rgba(226, 85, 29, 0.16);
  --gold: #e8a22b;
  --gold-soft: rgba(232, 162, 43, 0.15);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 30px 80px rgba(0, 0, 0, 0.6);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 0.55s var(--ease);
  --med: 0.28s var(--ease);
  --fast: 0.16s var(--ease);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
/* The `hidden` attribute works by setting display:none in the UA stylesheet, so
   any author rule that sets display beats it. Several overlays below are grids;
   without this they stay on screen while marked hidden. */
[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  background:
    radial-gradient(120% 80% at 50% -20%, #241c15 0%, transparent 60%),
    radial-gradient(90% 60% at 80% 110%, rgba(226, 85, 29, 0.07) 0%, transparent 60%),
    var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── shell ─────────────────────────────────────────────────── */

.stage { min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  background: rgba(23, 18, 14, 0.86);
  backdrop-filter: blur(14px);
}
.brand { font-family: var(--display); font-size: 17px; letter-spacing: 0.01em; }
.brand em { font-style: italic; color: var(--gold); }
.topbar .spacer { flex: 1; }

.ghostbtn {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: var(--fast);
}
.ghostbtn:hover { color: var(--bone); border-color: rgba(247, 239, 225, 0.34); background: rgba(247, 239, 225, 0.04); }

/* ── view switching ────────────────────────────────────────── */

.view { display: none; flex: 1; animation: rise var(--slow) both; }
.view.on { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── choose: themes + questions ────────────────────────────── */

.wrap { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 6vw, 68px) clamp(16px, 4vw, 40px) 90px; }

.kicker {
  font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ember); font-weight: 700;
}
.h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(32px, 5.6vw, 60px); line-height: 1.04;
  margin-top: 14px; letter-spacing: -0.015em;
}
.h1 em { font-style: italic; color: var(--gold); }
.lede { color: var(--muted); font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.62; max-width: 56ch; margin-top: 18px; }

.themes {
  display: grid; gap: 14px; margin-top: 44px;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}
.theme {
  text-align: left; padding: 24px 22px 20px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(160deg, rgba(247, 239, 225, 0.045), rgba(247, 239, 225, 0.012));
  transition: var(--med); position: relative; overflow: hidden;
}
.theme::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ember));
  transform: scaleX(0); transform-origin: left; transition: transform var(--med);
}
.theme:hover { transform: translateY(-3px); border-color: rgba(247, 239, 225, 0.26); background: linear-gradient(160deg, rgba(247, 239, 225, 0.08), rgba(247, 239, 225, 0.02)); }
.theme:hover::after { transform: scaleX(1); }
.theme h3 { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.theme .meta { margin-top: 10px; font-size: 12.5px; color: var(--muted-2); letter-spacing: 0.02em; }

.qlist { margin-top: 34px; display: grid; gap: 9px; }
.q {
  display: flex; align-items: flex-start; gap: 16px; text-align: left; width: 100%;
  padding: 17px 20px; border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(247, 239, 225, 0.022); transition: var(--fast);
}
.q:hover { background: rgba(247, 239, 225, 0.06); border-color: rgba(247, 239, 225, 0.24); transform: translateX(3px); }
.q .n {
  font-family: var(--display); font-size: 15px; color: var(--gold);
  min-width: 32px; padding-top: 2px; font-variant-numeric: tabular-nums;
}
.q .t { font-size: 16.5px; line-height: 1.45; flex: 1; }
.q .c { font-size: 12px; color: var(--muted-2); white-space: nowrap; padding-top: 4px; }

/* ── the wall ──────────────────────────────────────────────── */

.qhead { padding: clamp(22px, 4vw, 40px) clamp(16px, 4vw, 40px) 0; max-width: 1400px; margin: 0 auto; text-align: center; }
.qhead .theme-tag { font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted-2); }
.qhead h2 {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(23px, 3.4vw, 40px); line-height: 1.16; margin-top: 12px;
  max-width: 22ch; margin-inline: auto;
}

.wall {
  display: grid; gap: 14px; align-content: start;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px; margin: clamp(20px, 3vw, 32px) auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
  transition: grid-template-columns var(--slow);
}
.wall.focus-0 { grid-template-columns: 1.9fr 1fr 1fr; }
.wall.focus-1 { grid-template-columns: 1fr 1.9fr 1fr; }
.wall.focus-2 { grid-template-columns: 1fr 1fr 1.9fr; }

.panel {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  background: #0d0a08; border: 1px solid var(--line);
  transition: transform var(--med), box-shadow var(--med), border-color var(--med), filter var(--med), opacity var(--med);
  cursor: pointer; touch-action: manipulation;
}
.panel video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0d0a08; }

.panel::before {   /* legibility scrim, not a vignette */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 7, 5, 0.92) 0%, rgba(10, 7, 5, 0.28) 34%, transparent 62%);
}
.panel.lit { border-color: rgba(232, 162, 43, 0.55); box-shadow: var(--shadow-lift), 0 0 0 1px rgba(232, 162, 43, 0.25); transform: translateY(-6px); z-index: 5; }
.panel.dim { filter: saturate(0.55) brightness(0.62); opacity: 0.78; }
.panel.empty { display: grid; place-items: center; border-style: dashed; border-color: rgba(247, 239, 225, 0.2); cursor: default; }
.panel.empty span { color: var(--muted-2); font-size: 13.5px; }

.plate { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 18px 16px; pointer-events: none; }
.plate .who { font-family: var(--display); font-size: clamp(15px, 1.5vw, 20px); line-height: 1.2; }
.plate .sub { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.35; }

.chip {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(8px);
}
.chip.y2006 { color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(232, 162, 43, 0.42); }
.chip.now { color: #ffb59a; background: var(--ember-soft); border: 1px solid rgba(226, 85, 29, 0.5); }
.chip.you { color: var(--ink); background: var(--gold); border: 1px solid var(--gold); }

.grip {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(10, 7, 5, 0.5); border: 1px solid var(--line);
  opacity: 0; transition: var(--fast); cursor: grab; backdrop-filter: blur(8px);
}
.panel:hover .grip, .panel:focus-within .grip { opacity: 1; }
.grip:active { cursor: grabbing; }
.grip svg { width: 15px; height: 15px; stroke: var(--bone); opacity: 0.85; }

.mutedot {
  position: absolute; bottom: 16px; right: 16px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 7, 5, 0.6); border: 1px solid var(--line); backdrop-filter: blur(8px);
  opacity: 0; transition: var(--fast); pointer-events: auto;
}
.panel:hover .mutedot, .panel.lit .mutedot { opacity: 1; }

/* drop feedback */
.panel.target { border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft), var(--shadow-lift); transform: scale(1.015); }
.panel.target::after {
  content: "Drop to swap"; position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  background: rgba(23, 18, 14, 0.55); font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  backdrop-filter: blur(3px);
}

/* ── action bar ────────────────────────────────────────────── */

.actions {
  position: sticky; bottom: 0; z-index: 30; margin-top: 26px;
  padding: 14px clamp(16px, 4vw, 40px) calc(14px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  background: linear-gradient(to top, rgba(23, 18, 14, 0.97) 40%, transparent);
}
.btn {
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line); background: rgba(247, 239, 225, 0.06);
  transition: var(--fast); display: inline-flex; align-items: center; gap: 9px;
}
.btn:hover { background: rgba(247, 239, 225, 0.12); border-color: rgba(247, 239, 225, 0.3); transform: translateY(-2px); }
.btn.primary {
  background: var(--ember); border-color: var(--ember); color: #fff5ee;
  box-shadow: 0 10px 30px rgba(226, 85, 29, 0.32);
}
.btn.primary:hover { background: #f06428; box-shadow: 0 14px 40px rgba(226, 85, 29, 0.45); }

/* ── voices drawer ─────────────────────────────────────────── */

.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(12, 9, 7, 0.72);
  backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity var(--med);
}
.scrim.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
  /* A definite height, not max-height. With only a cap, the flex children size
     to content and the scrolling list collapses to a few pixels — which also
     means lazy images never enter a viewport and never load. */
  height: 82dvh; display: flex; flex-direction: column;
  background: var(--ink-2); border-top: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lift);
  transform: translateY(101%); transition: transform var(--slow);
}
.drawer.on { transform: none; }
.drawer header { padding: 18px clamp(16px, 3vw, 26px) 12px; border-bottom: 1px solid var(--line); }
.drawer .handle { width: 40px; height: 4px; border-radius: 3px; background: var(--line); margin: -6px auto 14px; }
.drawer h3 { font-family: var(--display); font-weight: 400; font-size: 21px; }
.drawer .hint { font-size: 12.5px; color: var(--muted-2); margin-top: 5px; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px clamp(16px, 3vw, 26px); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.pill {
  white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--line); color: var(--muted); transition: var(--fast); flex: none;
}
.pill:hover { color: var(--bone); border-color: rgba(247, 239, 225, 0.3); }
.pill.on { background: var(--bone); color: var(--ink); border-color: var(--bone); font-weight: 600; }

.search {
  width: calc(100% - 2 * clamp(16px, 3vw, 26px)); margin: 0 clamp(16px, 3vw, 26px) 4px;
  padding: 11px 15px; font: inherit; font-size: 14.5px; border-radius: 11px;
  background: rgba(247, 239, 225, 0.05); border: 1px solid var(--line); color: var(--bone);
}
.search::placeholder { color: var(--muted-2); }
.search:focus { outline: none; border-color: var(--gold); background: rgba(247, 239, 225, 0.08); }

.voices {
  /* flex:1 takes the remaining height; min-height:0 is what actually lets a
     flex child shrink below its content and scroll instead of overflowing. */
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px clamp(16px, 3vw, 26px) calc(26px + env(safe-area-inset-bottom));
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
}

.vcard {
  text-align: left; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: rgba(247, 239, 225, 0.035); transition: var(--fast);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.vcard:hover { border-color: rgba(247, 239, 225, 0.3); background: rgba(247, 239, 225, 0.08); transform: translateY(-2px); }
.vcard .face { aspect-ratio: 1; background: #0d0a08; position: relative; overflow: hidden; }
.vcard .face .initial {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 30px; color: var(--muted-2);
}
/* The photo sits over the initial; if it 404s it removes itself and the
   letter is what's left. Nothing has to know who has a portrait. */
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard .body { padding: 10px 11px 12px; }
.vcard .nm { font-size: 13.5px; font-weight: 600; line-height: 1.28; }
.vcard .rw { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.vcard .yr { font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; }
.vcard .yr.y2006 { color: var(--gold); background: var(--gold-soft); }
.vcard .yr.now { color: #ffb59a; background: var(--ember-soft); }
.vcard .lg { font-size: 10.5px; color: var(--muted-2); }
.vcard.dragging { opacity: 0.34; }

/* the thing that follows your finger */
.flyer {
  position: fixed; z-index: 90; pointer-events: none; width: 132px;
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lift);
  border: 1px solid rgba(232, 162, 43, 0.6); background: var(--ink-3);
  transform: translate(-50%, -50%) rotate(-2.5deg) scale(1.03);
}
.flyer .face { aspect-ratio: 1; background: #0d0a08; position: relative; overflow: hidden; }
.flyer .face .initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 28px; color: var(--muted-2); }
.flyer .nm { padding: 9px 10px; font-size: 12.5px; font-weight: 600; }

/* ── seat (record) ─────────────────────────────────────────── */

.sheet {
  position: fixed; z-index: 70; inset: auto 0 0; max-height: 92dvh; overflow-y: auto;
  background: var(--ink-2); border-top: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lift);
  transform: translateY(101%); transition: transform var(--slow);
  padding: 26px clamp(16px, 4vw, 34px) calc(30px + env(safe-area-inset-bottom));
}
.sheet.on { transform: none; }
.sheet .inner { max-width: 620px; margin: 0 auto; }
.sheet h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 30px); line-height: 1.16; }
.sheet .qref { color: var(--gold); font-style: italic; }

.rec-stage {
  margin-top: 20px; border-radius: var(--r); overflow: hidden; background: #0d0a08;
  aspect-ratio: 4 / 3; position: relative; border: 1px solid var(--line);
}
.rec-stage video, .rec-stage canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 22px; color: var(--muted); font-size: 14px; gap: 10px; }
.reclamp { position: absolute; top: 14px; left: 14px; display: none; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(226, 85, 29, 0.92); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.reclamp.on { display: flex; }
.reclamp i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.timer { font-variant-numeric: tabular-nums; font-size: 15px; color: var(--muted); text-align: center; margin-top: 12px; }
.rowbtns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

.field { margin-top: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; border-radius: 11px;
  background: rgba(247, 239, 225, 0.05); border: 1px solid var(--line); color: var(--bone);
}
.field input:focus { outline: none; border-color: var(--gold); }
.two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }

.consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; padding: 14px; border-radius: var(--r-sm); background: rgba(247, 239, 225, 0.035); cursor: pointer; }
.consent input { width: 19px; height: 19px; margin-top: 1px; flex: none; accent-color: var(--ember); }
.consent span { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ── toast ─────────────────────────────────────────────────── */

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 100; transform: translate(-50%, 20px);
  padding: 13px 22px; border-radius: 999px; background: var(--bone); color: var(--ink);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow); opacity: 0;
  pointer-events: none; transition: var(--med); max-width: 88vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .wall, .wall.focus-0, .wall.focus-1, .wall.focus-2 { grid-template-columns: 1fr; gap: 12px; }
  .panel { aspect-ratio: 16 / 11; }
  .panel.lit { transform: none; }
  .grip { opacity: 1; }          /* no hover on touch — the handle is always there */
  .qhead h2 { max-width: none; }
  .two { grid-template-columns: 1fr; }
  .drawer { height: 76dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .view { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Everything the first pass left out
   ═══════════════════════════════════════════════════════════════ */

/* ── loader ─────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 20px;
  background: rgba(23, 18, 14, 0.94); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity var(--med);
}
.loader.on { opacity: 1; }
.loader .ring {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid rgba(232, 162, 43, 0.22); border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
.loader p { color: var(--muted); font-size: 14.5px; letter-spacing: 0.02em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── film (intro + question) ────────────────────────────────── */
.film {
  position: fixed; inset: 0; z-index: 150; background: #000;
  display: grid; place-items: center; opacity: 0; transition: opacity 0.42s var(--ease);
}
.film.on { opacity: 1; }
.film video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.film .skip {
  position: absolute; right: clamp(16px, 4vw, 40px); bottom: clamp(30px, 6vw, 60px);
  padding: 12px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: var(--bone); background: rgba(247, 239, 225, 0.1);
  border: 1px solid rgba(247, 239, 225, 0.28); backdrop-filter: blur(10px); transition: var(--fast);
}
.film .skip:hover { background: rgba(247, 239, 225, 0.2); transform: translateY(-2px); }
.film-caption {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(84px, 13vw, 128px);
  max-width: min(90vw, 26ch); text-align: center; font-family: var(--display);
  font-size: clamp(18px, 2.6vw, 28px); line-height: 1.22; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}
.filmbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(247, 239, 225, 0.14); }
.filmbar span { display: block; height: 100%; width: 0; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* ── the held beat ──────────────────────────────────────────── */
.beat {
  position: fixed; inset: 0; z-index: 145; display: grid; place-items: center;
  background: var(--ink); opacity: 0; transition: opacity 0.5s var(--ease); padding: 30px;
}
.beat.on { opacity: 1; }
.beat p {
  font-family: var(--display); font-size: clamp(22px, 4vw, 40px); color: var(--muted);
  text-align: center; animation: breathe 2.6s var(--ease) infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ── one gesture, for iOS ───────────────────────────────────── */
.tapstart {
  position: fixed; inset: 0; z-index: 140; display: grid; place-items: center;
  background: rgba(12, 9, 7, 0.9); backdrop-filter: blur(5px); text-align: center; padding: 30px;
}
.tapstart-mark { font-size: 46px; color: var(--gold); }
.tapstart h3 { font-family: var(--display); font-weight: 400; font-size: 26px; margin-top: 12px; }
.tapstart p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* ── theme copy + question list extras ──────────────────────── */
.tblurb { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 9px; }
.qhead-row { display: flex; align-items: baseline; gap: 14px; margin-top: 52px; flex-wrap: wrap; }
.qhead-row .h1 { font-size: clamp(24px, 3.4vw, 36px); margin: 0; }
.q .hasfilm { color: var(--gold); font-size: 11px; padding-top: 4px; }

/* ── named speaker buttons ──────────────────────────────────── */
.speakerbar {
  display: flex; gap: 9px; justify-content: center; flex-wrap: wrap;
  max-width: 1400px; margin: 20px auto 0; padding: 0 clamp(16px, 4vw, 40px);
}
.spk {
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--line); color: var(--muted); transition: var(--fast);
  display: inline-flex; align-items: center; gap: 8px;
}
.spk .k {
  font-size: 10px; font-weight: 700; opacity: 0.6; border: 1px solid currentColor;
  border-radius: 4px; padding: 1px 5px;
}
.spk:hover { color: var(--bone); border-color: rgba(247, 239, 225, 0.34); }
.spk.on { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }

.pick { padding: 14px 16px; -webkit-appearance: none; appearance: none; }

/* ── floating mute ──────────────────────────────────────────── */
.floatmute {
  position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(92px, 12vw, 116px);
  width: 58px; height: 58px; border-radius: 50%; font-size: 22px; z-index: 45;
  background: rgba(232, 162, 43, 0.92); color: var(--ink); border: 1px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: var(--fast);
}
.floatmute:hover { transform: scale(1.07); }
.floatmute.off { background: rgba(226, 85, 29, 0.92); border-color: var(--ember); color: #fff5ee; }

/* ── interval countdown ─────────────────────────────────────── */
.countdown {
  position: fixed; left: clamp(16px, 3vw, 30px); bottom: clamp(92px, 12vw, 116px); z-index: 45;
  min-width: 158px; padding: 14px 18px; border-radius: var(--r);
  background: rgba(23, 18, 14, 0.92); border: 1px solid rgba(232, 162, 43, 0.4);
  backdrop-filter: blur(10px); text-align: center; box-shadow: var(--shadow);
}
.cd-name { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.cd-num { font-family: var(--display); font-size: 34px; line-height: 1.1; margin: 2px 0; font-variant-numeric: tabular-nums; }
.cd-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

/* ── reflection ─────────────────────────────────────────────── */
.reflect { max-width: 660px; margin: 46px auto 70px; padding: 0 clamp(16px, 4vw, 40px); text-align: center; }
.reflect h3 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.6vw, 27px); }
.reflect p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.reflect-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.reflect-row input {
  flex: 1 1 220px; padding: 14px 18px; font: inherit; font-size: 16px; text-align: center;
  border-radius: 999px; background: rgba(247, 239, 225, 0.05);
  border: 1px solid var(--line); color: var(--bone);
}
.reflect-row input:focus { outline: none; border-color: var(--gold); background: rgba(247, 239, 225, 0.09); }

/* ── word cloud ─────────────────────────────────────────────── */
.cloudwrap {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline;
  justify-content: center; padding: 22px 4px; margin-top: 10px;
  border: 1px solid var(--line); border-radius: var(--r); background: rgba(247, 239, 225, 0.02);
}
.cw { font-family: var(--display); line-height: 1.15; color: var(--bone); }
.cw:nth-child(3n) { color: var(--gold); }
.cw:nth-child(5n) { color: #ffb59a; }
.empty-note { color: var(--muted-2); font-size: 14px; grid-column: 1 / -1; text-align: center; padding: 18px; }

/* ── experiment mode ────────────────────────────────────────── */
.experiment { position: fixed; left: 50%; transform: translateX(-50%); top: 84px; z-index: 55; width: min(620px, 92vw); }
.exp-card {
  position: relative; padding: 16px 18px; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(226, 85, 29, 0.95), rgba(232, 162, 43, 0.92));
  color: #1b1209; box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}
.exp-head { display: flex; align-items: center; gap: 12px; }
.exp-mark { font-size: 20px; }
.exp-head strong { display: block; font-size: 15px; }
.exp-head span { font-size: 12.5px; opacity: 0.85; }
.exp-min { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, 0.16); font-size: 13px; }
.exp-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.exp-btns .btn { padding: 10px 16px; font-size: 13.5px; background: rgba(0, 0, 0, 0.18); border-color: rgba(0, 0, 0, 0.2); color: #1b1209; }
.exp-btns .btn:hover { background: rgba(0, 0, 0, 0.28); }
.exp-btns .btn.primary { background: #1b1209; border-color: #1b1209; color: var(--bone); box-shadow: none; }
.experiment-min {
  position: fixed; right: 18px; bottom: 18px; z-index: 55; padding: 10px 16px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(226, 85, 29, 0.95), rgba(232, 162, 43, 0.92));
  color: #1b1209; font-size: 12.5px; font-weight: 700; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

/* ── seat: identity, consent, demographics ──────────────────── */
.sheet.tall { max-height: 92dvh; }
.closex {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(247, 239, 225, 0.08); border: 1px solid var(--line); font-size: 15px;
}
.sect { font-family: var(--display); font-weight: 400; font-size: 19px; margin-top: 26px; }
.sect-sub { color: var(--muted-2); font-size: 13px; margin-top: 5px; }
.opt { color: var(--muted-2); font-weight: 400; }

.identity { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.idcard {
  text-align: left; padding: 16px 15px; border-radius: var(--r);
  border: 2px solid var(--line); background: rgba(247, 239, 225, 0.03); transition: var(--fast);
}
.idcard:hover { border-color: rgba(232, 162, 43, 0.5); background: rgba(247, 239, 225, 0.07); }
.idcard.on { border-color: var(--gold); background: var(--gold-soft); }
.idmark { display: block; font-size: 20px; color: var(--gold); }
.idcard strong { display: block; margin-top: 8px; font-size: 15px; }
.idcard span:last-child { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.4; }

.field small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted-2); line-height: 1.45; }
.field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; border-radius: 11px;
  background: rgba(247, 239, 225, 0.05); border: 1px solid var(--line); color: var(--bone);
}
.consent + .consent { margin-top: 9px; }
.consent b { color: var(--bone); }

.guides {
  margin-top: 20px; padding: 16px 18px; border-radius: var(--r);
  border: 1px solid rgba(232, 162, 43, 0.28); background: var(--gold-soft);
}
.guides h4 { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--gold); }
.guides ul { margin: 10px 0 0 18px; padding: 0; }
.guides li { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ── about ──────────────────────────────────────────────────── */
#about .inner p { color: var(--muted); font-size: 15px; line-height: 1.68; margin-top: 14px; }
#about .inner h3 { font-family: var(--display); font-weight: 400; font-size: clamp(23px, 3.2vw, 31px); line-height: 1.16; margin-top: 12px; }
#about b { color: var(--bone); font-weight: 600; }
.about-list { margin: 12px 0 0 20px; padding: 0; }
.about-list li { color: var(--muted); font-size: 14.5px; line-height: 1.9; }
.closing { color: var(--gold) !important; font-weight: 600; margin-top: 24px !important; }

@media (max-width: 900px) {
  .identity { grid-template-columns: 1fr; }
  .experiment { top: 74px; }
  .countdown { left: 12px; bottom: 88px; min-width: 132px; padding: 10px 14px; }
  .cd-num { font-size: 27px; }
  .floatmute { right: 12px; bottom: 88px; width: 52px; height: 52px; }
  .speakerbar { gap: 7px; }
  .spk { font-size: 12.5px; padding: 8px 13px; }
}

/* ═══════════════════════════════════════════════════════════════
   Meters, panel actions, read-along
   ═══════════════════════════════════════════════════════════════ */

/* A silenced voice still moves this bar. That's the point: the two people
   you aren't listening to are visibly still answering. */
.meter {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3;
  background: rgba(247, 239, 225, 0.09); overflow: hidden;
}
.meter span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--ember));
  will-change: transform;
}
.panel.lit .meter span { box-shadow: 0 0 10px rgba(232, 162, 43, 0.7); }
.panel.dim .meter span { opacity: 0.55; }

/* per-panel actions, in the plate */
.pacts { display: flex; gap: 6px; margin-top: 11px; flex-wrap: wrap; pointer-events: auto; }
.pact {
  padding: 6px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  color: var(--bone); background: rgba(10, 7, 5, 0.55);
  border: 1px solid rgba(247, 239, 225, 0.2); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(4px); transition: var(--fast);
}
.panel:hover .pact, .panel.lit .pact, .panel:focus-within .pact { opacity: 1; transform: none; }
.pact:hover { background: rgba(232, 162, 43, 0.28); border-color: var(--gold); }

/* the plate must not swallow clicks meant for the panel */
.plate { pointer-events: none; }

/* ── read along ─────────────────────────────────────────────── */
.transcript {
  margin-top: 16px; padding: 20px 22px; border-radius: var(--r);
  background: rgba(247, 239, 225, 0.035); border: 1px solid var(--line);
  color: var(--bone); font-size: 16.5px; line-height: 1.78;
  white-space: pre-wrap; max-height: 46dvh; overflow-y: auto;
}
.transcript.native {
  font-size: 17.5px; line-height: 1.9;
  /* Arabic, Hebrew and Persian answers read right to left. */
  unicode-bidi: plaintext; text-align: start;
}
#read .inner h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 29px); margin-top: 10px; }

@media (max-width: 900px) {
  .pact { opacity: 1; transform: none; font-size: 11px; padding: 5px 9px; }
  .transcript { font-size: 16px; padding: 16px 17px; max-height: 40dvh; }
}

/* A written answer is still an answer. Most of what has come through the
   portal so far is text, so it gets a panel of its own rather than being
   dropped for want of a video. */
.written {
  position: absolute; inset: 0; z-index: 1; padding: 26px 24px 108px;
  display: grid; align-content: center; overflow-y: auto;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(226, 85, 29, 0.13), transparent 60%),
    linear-gradient(160deg, #241c15, #17120e);
}
.written p {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(15px, 1.5vw, 21px); line-height: 1.5; color: var(--bone);
  text-wrap: pretty;
}
.written p::before { content: "\201C"; color: var(--ember); margin-right: 2px; }
.written p::after { content: "\201D"; color: var(--ember); margin-left: 2px; }
.panel.lit .written { background:
    radial-gradient(120% 80% at 50% 0%, rgba(232, 162, 43, 0.18), transparent 60%),
    linear-gradient(160deg, #2a2118, #17120e); }
