/* ============================================================
   16EGREES° — COLD OPEN · CAT № 16D-001
   Palette: Tarmac #05070C · Motorway #0E1626 · Headlight #E9F0FA
            Wet Steel #7C8DA6 · Meltwater #9CC8DE · Sodium #E39B3B
            Rec Red #E5484D (REC dot + UNMIXED stamp only)
   ============================================================ */

:root {
  --tarmac: #05070C;
  --motorway: #0E1626;
  --headlight: #E9F0FA;
  --steel: #7C8DA6;
  --meltwater: #9CC8DE;
  --sodium: #E39B3B;
  --rec: #E5484D;
  --hairline: rgba(124, 141, 166, 0.22);
  --font-display: "Archivo", Arial, sans-serif;
  --font-display-cond: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Switzer", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --ease-cine: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bar: cubic-bezier(0.77, 0, 0.18, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--tarmac);
  background-image:
    radial-gradient(1100px 500px at 85% -5%, rgba(227, 155, 59, 0.045), transparent 60%),
    radial-gradient(900px 600px at 8% 30%, rgba(14, 22, 38, 0.85), transparent 70%),
    radial-gradient(700px 500px at 92% 78%, rgba(156, 200, 222, 0.035), transparent 65%);
  color: var(--headlight);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--meltwater); color: var(--tarmac); }

a { color: var(--meltwater); }

:focus-visible {
  outline: 2px solid var(--meltwater);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- Letterbox — the cinematic frame ---------- */

.letterbox {
  position: fixed;
  left: 0;
  right: 0;
  height: 24px;
  background: #020308;
  z-index: 60;
  transition: height 1.2s var(--ease-bar);
  pointer-events: none;
}
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }

/* Boot state: bars cover the screen until JS opens them */
html.js .letterbox { height: 51vh; }
body.lb-hero .letterbox { height: clamp(44px, 9vh, 96px); }
body.lb-page .letterbox { height: 22px; }
body.lb-close .letterbox { height: clamp(60px, 11vh, 130px); }
body.lb-breathe .letterbox { height: clamp(40px, 6vh, 64px); }

/* Failsafe: if script.js never runs (blocked, 404, throw), boot() never adds
   .play — after 4s the frame opens and all boot-hidden content shows itself. */
@keyframes lbFailsafe { to { height: 24px; } }
@keyframes revealFailsafe { to { opacity: 1; transform: none; clip-path: none; } }
@keyframes wordmarkFailsafe { to { opacity: 1; letter-spacing: 0.02em; } }
html.js body:not(.play) .letterbox { animation: lbFailsafe 0.9s var(--ease-bar) 4s forwards; }
html.js body:not(.play) .reveal,
html.js body:not(.play) .hero__tagline,
html.js body:not(.play) .comback,
html.js body:not(.play) .slab,
html.js body:not(.play) .slab .dossier__row,
html.js body:not(.play) .slab__stamp,
html.js body:not(.play) .wordmark__deg { animation: revealFailsafe 0.9s ease 4s forwards; }
html.js body:not(.play) .wordmark { animation: wordmarkFailsafe 0.9s ease 4s forwards; }

/* ---------- Thermometer — the scroll cools ---------- */

.thermo {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 1.4s ease 0.4s;
}
body.play .thermo { opacity: 1; }

.thermo__scale {
  position: relative;
  width: 1px;
  height: 34vh;
  background:
    repeating-linear-gradient(to bottom,
      rgba(124, 141, 166, 0.55) 0 1px,
      rgba(124, 141, 166, 0.14) 1px calc(34vh / 16));
}
.thermo__mercury {
  position: absolute;
  bottom: 0;
  left: -1px;
  width: 3px;
  height: 100%;
  background: linear-gradient(to top, rgba(227, 155, 59, 0.15), var(--sodium));
  box-shadow: 0 0 10px rgba(227, 155, 59, 0.5);
  transform-origin: bottom;
}
.thermo__readout {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--meltwater);
  writing-mode: vertical-rl;
}

/* ---------- Hero — COLD OPEN · 16.0° ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  touch-action: pan-y; /* keep page scroll, let horizontal drags reach the fog wipe */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__scene,
.hero__fog {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__scene { z-index: 1; }
.hero__fog { z-index: 2; pointer-events: none; }

/* CSS-only night behind the canvases (and the no-JS fallback) */
.hero__scene {
  background:
    radial-gradient(340px 220px at 70% 38%, rgba(227, 155, 59, 0.16), transparent 70%),
    radial-gradient(280px 200px at 24% 55%, rgba(156, 200, 222, 0.10), transparent 70%),
    radial-gradient(500px 340px at 50% 85%, rgba(14, 22, 38, 0.9), transparent 75%),
    linear-gradient(180deg, #04060B 0%, #0A1220 55%, #05070C 100%);
}

.hero__dashcam {
  position: absolute;
  z-index: 4;
  top: calc(clamp(44px, 9vh, 96px) + 20px);
  left: clamp(18px, 4vw, 48px);
  color: var(--meltwater);
  font-size: 11px;
  white-space: nowrap;
}

.rec-dot {
  color: var(--rec);
  margin-left: 0.5em;
  animation: recBlink 1.3s steps(2, start) infinite;
}
.rec-dot[hidden] { display: none; }

@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.1; }
}

.hero__beam {
  position: absolute;
  z-index: 3;
  top: 20%;
  left: 50%;
  width: 55vmax;
  aspect-ratio: 1.6;
  margin-left: -27.5vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(233, 240, 250, 0.34), rgba(233, 240, 250, 0) 70%);
  filter: blur(28px);
  opacity: 0;
  pointer-events: none;
}
body.play .hero__beam--a { animation: beamSweep 1.6s cubic-bezier(0.5, 0, 0.4, 1) 0.55s both; }
body.play .hero__beam--b { animation: beamSweep 1.7s cubic-bezier(0.5, 0, 0.4, 1) 0.72s both; opacity: 0; transform: scale(0.7); }

@keyframes beamSweep {
  0%   { opacity: 0; transform: translate(-65vw, 8vh) scale(0.35); }
  35%  { opacity: 0.85; }
  100% { opacity: 0; transform: translate(65vw, -6vh) scale(1.5); }
}

.hero__card {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 20px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125, "wght" 880;
  font-size: clamp(44px, 12.5vw, 176px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--headlight);
  text-shadow: 0 0 60px rgba(156, 200, 222, 0.12);
  position: relative;
}
html.js .wordmark { opacity: 0; letter-spacing: 0.5em; }
html.js .wordmark.is-resolved,
.wordmark.is-resolved {
  opacity: 1;
  letter-spacing: 0.02em;
  transition: opacity 1.3s ease, letter-spacing 1.9s var(--ease-cine);
}

/* the single 1px specular glint along the wordmark's top edge */
.wordmark::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 200, 222, 0.85), transparent);
  opacity: 0;
}
.wordmark.is-resolved::after { animation: glintSweep 1.4s ease-in-out 1.5s both; }

@keyframes glintSweep {
  0%   { opacity: 0; transform: translateX(-40%); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(260%); }
}

.wordmark__deg {
  color: var(--sodium);
  text-shadow: 0 0 34px rgba(227, 155, 59, 0.65);
}
html.js .wordmark__deg { opacity: 0; }
.wordmark.is-resolved .wordmark__deg { animation: degBloom 1.1s ease 1.1s both; }

@keyframes degBloom {
  0%   { opacity: 0; text-shadow: 0 0 0 rgba(227, 155, 59, 0); }
  60%  { opacity: 1; text-shadow: 0 0 60px rgba(227, 155, 59, 0.95); }
  100% { opacity: 1; text-shadow: 0 0 34px rgba(227, 155, 59, 0.65); }
}

.hero__tagline {
  margin-top: 22px;
  font-family: var(--font-display-cond);
  font-weight: 600;
  font-stretch: condensed;
  font-variation-settings: "wdth" 62, "wght" 620;
  font-size: clamp(10px, 1.4vw, 14px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--steel);
}
html.js .hero__tagline { opacity: 0; transform: translateY(8px); }
body.play .hero__tagline {
  opacity: 1;
  transform: none;
  transition: opacity 1.2s ease 2.3s, transform 1.2s var(--ease-cine) 2.3s;
}

.hero__hint {
  position: absolute;
  z-index: 4;
  bottom: calc(clamp(44px, 9vh, 96px) + 52px);
  left: clamp(18px, 4vw, 48px);
  color: var(--meltwater);
  opacity: 0;
}
body.play .hero__hint {
  animation: hintFade 5s ease 3.4s both;
}
@keyframes hintFade {
  0% { opacity: 0; }
  15%, 70% { opacity: 0.95; }
  100% { opacity: 0.8; }
}

.hero__scrollcue {
  position: absolute;
  z-index: 4;
  bottom: calc(clamp(44px, 9vh, 96px) + 18px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--meltwater);
  opacity: 0;
}
body.play .hero__scrollcue {
  opacity: 0.8;
  transition: opacity 1.5s ease 4.2s;
}
.hero__scrollcue::after {
  content: "";
  display: block;
  width: 1px;
  height: 16px;
  margin: 8px auto 0;
  background: var(--steel);
  animation: cueDrop 2.2s var(--ease-cine) infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Sections shared ---------- */

main section {
  position: relative;
  padding: clamp(90px, 15vh, 170px) clamp(20px, 7vw, 90px);
  max-width: 1200px;
  margin: 0 auto;
}

.section-mark {
  color: var(--steel);
  letter-spacing: 0.2em;
  margin-bottom: clamp(28px, 5vh, 54px);
}
.section-mark::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--hairline);
  margin-right: 14px;
  vertical-align: middle;
}

/* Scroll reveals — title-card grammar */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 1s var(--ease-cine);
}

/* ---------- Glass panels ---------- */

.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(14, 22, 38, 0.72), rgba(14, 22, 38, 0.42));
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(2, 3, 8, 0.6);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px 220px at var(--gx, 50%) var(--gy, 20%), rgba(233, 240, 250, 0.07), transparent 70%);
  pointer-events: none;
}
.glass::after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 200, 222, 0.45), transparent);
  opacity: 0.7;
  pointer-events: none;
}

[data-tilt] {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out;
  will-change: transform;
}

/* ---------- CONDITIONS · 14.0° — live LDN temperature gate ---------- */

.conditions { padding-top: clamp(70px, 10vh, 110px) !important; padding-bottom: clamp(70px, 10vh, 110px) !important; }

.conditions__panel {
  max-width: 640px;
  padding: clamp(22px, 4vw, 34px);
}
.conditions__line {
  color: var(--meltwater);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  min-height: 1.4em;
}
.conditions__line.is-cold {
  color: var(--sodium);
  text-shadow: 0 0 18px rgba(227, 155, 59, 0.45);
}
.conditions__note {
  margin-top: 14px;
  color: rgba(233, 240, 250, 0.6);
  font-size: 15px;
  max-width: 44ch;
}

/* ---------- THE PLATE · 12.0° ---------- */

.comback {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125, "wght" 900;
  font-size: clamp(44px, 10.5vw, 145px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--headlight);
}
html.js .comback { opacity: 0; }
html.js .comback.in { animation: flexIn 1.3s var(--ease-cine) both; }

@keyframes flexIn {
  0%   { opacity: 0; font-variation-settings: "wdth" 62, "wght" 900; transform: translateY(20px); }
  70%  { opacity: 1; font-variation-settings: "wdth" 128, "wght" 900; transform: none; }
  100% { opacity: 1; font-variation-settings: "wdth" 125, "wght" 900; }
}

.plate__intro {
  margin: 18px 0 clamp(40px, 7vh, 70px);
  color: var(--steel);
  max-width: 40ch;
}

.slab {
  max-width: 720px;
  padding: clamp(24px, 4.5vw, 46px);
  transform: perspective(1100px) rotate(-1.2deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
html.js .slab { opacity: 0; transform: perspective(1100px) rotate(-1.2deg) translateY(30px); }
html.js .slab.in {
  opacity: 1;
  transform: perspective(1100px) rotate(-1.2deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: opacity 0.7s ease, transform 0.9s var(--ease-cine);
}

.slab__stamp {
  position: absolute;
  top: 16px;
  right: -10px;
  z-index: 2;
  transform: rotate(-7deg);
  border: 2px solid var(--rec);
  color: var(--rec);
  padding: 7px 13px;
  font-family: var(--font-display-cond);
  font-weight: 800;
  font-stretch: condensed;
  font-variation-settings: "wdth" 62, "wght" 800;
  font-size: clamp(10px, 1.4vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  box-shadow: inset 0 0 12px rgba(229, 72, 77, 0.12);
}
html.js .slab.in .slab__stamp { animation: stampIn 0.34s steps(3, end) 1.15s both; }
html:not(.js) .slab__stamp { opacity: 0.92; }

@keyframes stampIn {
  0%   { opacity: 0; transform: rotate(-7deg) scale(1.7); }
  60%  { opacity: 1; transform: rotate(-7deg) scale(1.04); }
  100% { opacity: 0.92; transform: rotate(-7deg) scale(1); }
}

.dossier { position: relative; z-index: 1; }

.dossier__row {
  display: grid;
  grid-template-columns: minmax(92px, 130px) 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(124, 141, 166, 0.18);
  font-size: 12.5px;
}
.dossier__row:last-child { border-bottom: 0; }
.dossier__row dt { color: var(--steel); }
.dossier__row dd { color: var(--headlight); letter-spacing: 0.1em; }

html.js .slab .dossier__row { opacity: 0; clip-path: inset(0 100% 0 0); }
html.js .slab.in .dossier__row {
  animation: rowIn 0.32s steps(7, end) both;
  animation-delay: calc(var(--i, 0) * 95ms + 250ms);
}
.dossier__row:nth-child(1) { --i: 0; }
.dossier__row:nth-child(2) { --i: 1; }
.dossier__row:nth-child(3) { --i: 2; }
.dossier__row:nth-child(4) { --i: 3; }
.dossier__row:nth-child(5) { --i: 4; }
.dossier__row:nth-child(6) { --i: 5; }
.dossier__row:nth-child(7) { --i: 6; }
.dossier__row:nth-child(8) { --i: 7; }
.dossier__row:nth-child(9) { --i: 8; }

@keyframes rowIn {
  from { opacity: 1; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

.dossier__redacted { cursor: help; }
.dossier__redacted.is-peeking { color: var(--meltwater); }

.plate__note {
  margin-top: clamp(40px, 7vh, 70px);
  max-width: 46ch;
  color: rgba(233, 240, 250, 0.75);
}

/* ---------- EXHIBIT B · 10.0° — recovered fragments ---------- */

.exhibit__title {
  font-family: var(--font-display);
  font-weight: 860;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112, "wght" 860;
  font-size: clamp(30px, 5.5vw, 64px);
  letter-spacing: 0.02em;
  margin-bottom: clamp(28px, 5vh, 48px);
}

.exhibit__sheet {
  max-width: 680px;
  padding: clamp(22px, 4vw, 40px);
}
.exhibit__intro {
  font-size: 10.5px;
  margin-bottom: 18px;
}

.bars { list-style: none; }
.bar {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(124, 141, 166, 0.18);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(233, 240, 250, 0.82);
  cursor: pointer;
  transition: color 0.25s ease;
}
.bar:last-child { border-bottom: 0; }
.bar__no { font-size: 10px; }
.bar.is-peeking .bar__text { color: var(--meltwater); }
.bar:hover .bar__text,
.bar:focus-visible .bar__text { color: var(--headlight); }

/* ---------- BOOTH GLASS · 8.0° ---------- */

.booth__panel {
  max-width: 800px;
  height: clamp(180px, 30vh, 260px);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.booth__panel.is-holding {
  border-color: rgba(156, 200, 222, 0.45);
  box-shadow: 0 0 0 1px rgba(156, 200, 222, 0.12), 0 30px 80px rgba(2, 3, 8, 0.6);
}

.booth__hint {
  margin-top: 14px;
  color: var(--meltwater);
  font-size: 10.5px;
}
.booth__wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(2.5px);
  opacity: 0.9;
}
.booth__status {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
}
.rec-dot--live {
  color: var(--steel);
  margin-left: 0;
  animation: none;
}
.booth__panel.is-flat .rec-dot--live {
  color: var(--rec);
  animation: recBlink 0.9s steps(2, start) infinite;
}

.booth__copy {
  margin-top: clamp(32px, 5vh, 50px);
  max-width: 52ch;
  color: rgba(233, 240, 250, 0.75);
}

/* ---------- THE SEAM · 6.0° — stamp tape ---------- */

.seam {
  position: relative;
  padding: clamp(28px, 5vh, 48px) 0;
  border-top: 1px solid rgba(124, 141, 166, 0.14);
  border-bottom: 1px solid rgba(124, 141, 166, 0.14);
  background: rgba(14, 22, 38, 0.3);
  overflow: hidden;
}

.seam__tape { overflow: hidden; white-space: nowrap; }
.seam__tape--b {
  filter: blur(2.5px);
  opacity: 0.35;
  margin-top: -6px;
}

.seam__inner {
  display: inline-block;
  will-change: transform;
  font-family: var(--font-display-cond);
  font-weight: 850;
  font-stretch: condensed;
  font-variation-settings: "wdth" 62, "wght" 850;
  font-size: clamp(30px, 5.5vw, 62px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(233, 240, 250, 0.9);
}

.seam .tok {
  display: inline-block;
  margin-right: 1.1em;
  transform: rotate(var(--r, 0deg));
}
.seam .tok--dim { color: rgba(124, 141, 166, 0.55); }
.seam .tok:nth-child(4n)   { --r: 1.6deg; }
.seam .tok:nth-child(4n+1) { --r: -1.2deg; }
.seam .tok:nth-child(4n+2) { --r: 0.8deg; }
.seam .tok:nth-child(4n+3) { --r: -1.8deg; }

/* ---------- THE PASSENGER LIST · 3.0° ---------- */

.list { text-align: center; }
.list .section-mark { text-align: left; }

.list__headline {
  font-family: var(--font-display);
  font-weight: 860;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112, "wght" 860;
  font-size: clamp(34px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0.015em;
  color: var(--headlight);
}

.list__sub {
  margin: 26px auto 46px;
  max-width: 46ch;
  color: rgba(233, 240, 250, 0.72);
}

/* Conversion-safety rule: this panel stays permanently clear.
   No fog, no canvas, nothing decorative over the form. */
.list__form {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  text-align: left;
  background: linear-gradient(160deg, rgba(14, 22, 38, 0.66), rgba(14, 22, 38, 0.42));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.5s ease;
}
.list__form:focus-within {
  border-color: rgba(156, 200, 222, 0.45);
  box-shadow: 0 0 0 1px rgba(156, 200, 222, 0.14), 0 24px 70px rgba(2, 3, 8, 0.55);
}

.wiper {
  position: absolute;
  inset: -30%;
  background: linear-gradient(105deg, transparent 42%, rgba(233, 240, 250, 0.13) 50%, transparent 58%);
  transform: translateX(-130%);
  pointer-events: none;
}
.list__form.wiping .wiper { animation: wipe 0.9s ease-in-out both; }

@keyframes wipe {
  from { transform: translateX(-130%); }
  to   { transform: translateX(130%); }
}

.list__form label { display: block; margin-bottom: 10px; }

.list__row { display: flex; gap: 10px; }

.list__form input {
  flex: 1;
  min-width: 0;
  background: rgba(5, 7, 12, 0.6);
  border: 1px solid rgba(124, 141, 166, 0.35);
  border-radius: 2px;
  color: var(--headlight);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.list__form input::placeholder { color: rgba(156, 200, 222, 0.75); }
.list__form input:focus {
  outline: none;
  border-color: var(--meltwater);
  box-shadow: 0 0 0 1px rgba(156, 200, 222, 0.35), 0 0 24px rgba(156, 200, 222, 0.12);
}

.cta {
  font-family: var(--font-display-cond);
  font-weight: 800;
  font-stretch: semi-condensed;
  font-variation-settings: "wdth" 76, "wght" 800;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--headlight);
  background: transparent;
  border: 1px solid rgba(156, 200, 222, 0.45);
  border-radius: 2px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.4s ease, transform 0.15s ease;
}
/* The page's only warm interaction — the one thing it wants you to touch */
.cta:hover,
.cta:focus-visible {
  background: var(--sodium);
  border-color: var(--sodium);
  color: #171006;
  box-shadow: 0 0 40px rgba(227, 155, 59, 0.35);
}
.cta:active { transform: translateY(1px); }

.list__micro { margin-top: 14px; font-size: 10.5px; }
.list__error { margin-top: 12px; color: var(--rec); font-size: 10.5px; }
.list__error:empty { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.list__receipt {
  margin: 22px auto 0;
  color: var(--meltwater);
  min-height: 1.4em;
  letter-spacing: 0.14em;
}

/* ---------- CREDITS ROLL · 0.0° ---------- */

.credits {
  text-align: center;
  padding-bottom: calc(clamp(60px, 11vh, 130px) + 50px) !important;
}
.credits .section-mark { text-align: left; }

.credits__viewport {
  height: 200px;
  overflow: hidden;
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.credits__roll p {
  padding: 13px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
}
html.js .credits__roll { animation: creditsRoll var(--roll-dur, 26s) linear infinite; }
.credits__viewport:hover .credits__roll,
.credits__viewport:focus-within .credits__roll,
.credits__viewport.is-paused .credits__roll { animation-play-state: paused; }

/* Without JS the roll is static — show all of it */
html:not(.js) .credits__viewport {
  height: auto;
  -webkit-mask-image: none;
  mask-image: none;
}

@keyframes creditsRoll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.credits__role { font-size: 10px; }
.credits__name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 96, "wght" 720;
  font-size: 17px;
  letter-spacing: 0.13em;
}

.credits__socials {
  margin: 46px 0 54px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Condensation-droplet links */
.drop {
  display: inline-block;
  position: relative;
  padding: 15px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--headlight);
  border: 1px solid rgba(156, 200, 222, 0.26);
  border-radius: 48% 52% 55% 45% / 58% 46% 54% 42%;
  background: radial-gradient(ellipse at 30% 22%, rgba(233, 240, 250, 0.14), rgba(14, 22, 38, 0.55) 65%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-cine), border-color 0.3s ease;
}
.drop:hover,
.drop:focus-visible {
  border-color: rgba(156, 200, 222, 0.6);
  animation: dropWobble 0.7s var(--ease-cine);
  transform: scale(1.12);
}

@keyframes dropWobble {
  0%   { transform: scale(1) rotate(0deg); }
  30%  { transform: scale(1.16) rotate(1.6deg); }
  55%  { transform: scale(1.1) rotate(-1.2deg); }
  100% { transform: scale(1.12) rotate(0deg); }
}

.credits__wallpaper { margin-bottom: 46px; }

/* Cold secondary button — the amber CTA stays the page's only warmth */
.btn-cold {
  background: transparent;
  border: 1px solid rgba(156, 200, 222, 0.35);
  border-radius: 2px;
  color: var(--meltwater);
  padding: 13px 22px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.btn-cold:hover,
.btn-cold:focus-visible {
  border-color: var(--meltwater);
  color: var(--headlight);
  box-shadow: 0 0 26px rgba(156, 200, 222, 0.18);
}
.btn-cold:disabled { opacity: 0.6; cursor: wait; }

.credits__mark {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125, "wght" 900;
  font-size: clamp(34px, 6.5vw, 62px);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.credits__deg {
  color: var(--sodium);
  display: inline-block;
  animation: degPulse 8s ease-in-out infinite;
}

@keyframes degPulse {
  0%, 100% { text-shadow: 0 0 12px rgba(227, 155, 59, 0.3); opacity: 0.85; }
  50%      { text-shadow: 0 0 38px rgba(227, 155, 59, 0.85); opacity: 1; }
}

.credits__legal { font-size: 10px; letter-spacing: 0.22em; }

/* ---------- Sodium streetlamp pass (ambient, page-wide) ---------- */

.lamp {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(227, 155, 59, 0.05) 47%, rgba(227, 155, 59, 0.1) 52%, transparent 66%);
  background-size: 260% 100%;
  background-position: 130% 0;
}
.lamp.pass { animation: lampSweep 3s ease-in-out both; }

@keyframes lampSweep {
  0%   { opacity: 0; background-position: 130% 0; }
  30%  { opacity: 1; }
  100% { opacity: 0; background-position: -30% 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  body { font-size: 16px; }
  .list__row { flex-direction: column; }
  .cta { width: 100%; padding: 16px 24px; }
  .slab__stamp { right: 6px; }
  .hero__dashcam { font-size: 9.5px; }
  .hero__hint { bottom: calc(clamp(44px, 9vh, 96px) + 92px); }
  .credits__roll p { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .thermo { display: none; }
  .dossier__row { grid-template-columns: 86px 1fr; gap: 10px; font-size: 11.5px; }
  .slab { padding-top: 78px; }
  .slab__stamp { top: 20px; }
}

/* ---------- Reduced motion — the film becomes a still ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .letterbox { height: 24px; }
  html.js .reveal,
  html.js .comback,
  html.js .slab,
  html.js .slab .dossier__row,
  html.js .wordmark,
  html.js .wordmark__deg,
  html.js .hero__tagline,
  html.js .slab__stamp {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  html.js .wordmark { letter-spacing: 0.02em; }
  body.play .hero__hint { opacity: 0.8; }
  body.play .hero__scrollcue { opacity: 0.8; }
  html.js .credits__roll { animation: none; }
  .credits__viewport {
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .thermo { opacity: 1; }
}

/* ---------- LISTEN · 7.0° — the glass comes off ---------- */

/* .cta as an anchor rather than a button */
.cta--link {
  display: inline-block;
  text-decoration: none;
  color: var(--headlight);
}

.hero__listen { margin-top: clamp(20px, 3.4vh, 34px); }

.listen { text-align: center; }
.listen .section-mark { text-align: left; }

.listen__headline {
  font-family: var(--font-display);
  font-weight: 880;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118, "wght" 880;
  font-size: clamp(38px, 8vw, 108px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: var(--headlight);
}

.listen__sub {
  margin: clamp(16px, 2.6vh, 26px) auto 0;
  max-width: 46ch;
  color: rgba(233, 240, 250, 0.75);
}

.listen__actions { margin-top: clamp(26px, 4.6vh, 44px); }

.listen__player {
  margin: clamp(28px, 5vh, 48px) auto 0;
  max-width: 640px;
  padding: 12px;
}
.listen__player iframe {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 12px;
}

.listen__note { margin-top: clamp(16px, 2.4vh, 24px); }

/* ---------- Spotify artist mark — cold until you touch it ---------- */

.credits__links {
  margin-top: clamp(30px, 5vh, 52px);
  display: flex;
  justify-content: center;
}

.spotify-mark {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.16s ease;
}

/* the bloom that opens behind it, like the sodium lamp passing */
.spotify-mark__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(29, 185, 84, 0.28), rgba(29, 185, 84, 0) 70%);
  opacity: 0;
  transform: scale(0.55);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.6s var(--ease-cine);
}

.spotify-mark__glyph {
  width: 21px;
  height: 21px;
  flex: none;
  fill: var(--headlight);
  opacity: 0.45;
  transition: fill 0.35s ease, opacity 0.35s ease;
}

.spotify-mark__word {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.42em;
  margin-right: -0.42em; /* absorb the trailing letter-space so it stays centred */
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.35s ease;
}

.spotify-mark:hover .spotify-mark__glyph,
.spotify-mark:focus-visible .spotify-mark__glyph {
  fill: #1DB954; /* Spotify green — their brand colour, left untouched */
  opacity: 1;
}
.spotify-mark:hover .spotify-mark__word,
.spotify-mark:focus-visible .spotify-mark__word { color: var(--headlight); }
.spotify-mark:hover .spotify-mark__glow,
.spotify-mark:focus-visible .spotify-mark__glow { opacity: 1; transform: scale(1); }
.spotify-mark:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  .spotify-mark,
  .spotify-mark__glow,
  .spotify-mark__glyph,
  .spotify-mark__word { transition: none; }
}

/* ---------- THE CATALOGUE · 5.0° — release rows ----------
   Whole row is one <a>: works on tap, not just hover (UX: don't
   gate primary actions behind hover), and keeps one tab stop. */

.cat__list { list-style: none; }

.cat__item + .cat__item { margin-top: 12px; }

.cat__row {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 30px);
  padding: clamp(18px, 2.6vw, 26px) clamp(16px, 2.4vw, 28px);
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: linear-gradient(160deg, rgba(14, 22, 38, 0.62), rgba(14, 22, 38, 0.34));
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.3s var(--ease-cine);
}

/* the sodium bloom that opens from the left edge on approach */
.cat__row::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 150px at 0% 50%, rgba(227, 155, 59, 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.cat__no {
  flex: none;
  align-self: flex-start;
  font-size: 11px;
  color: var(--sodium);
  opacity: 0.75;
  transition: opacity 0.35s ease;
}

.cat__body { flex: 1 1 auto; min-width: 0; }

.cat__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 860;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112, "wght" 860;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--headlight);
}

.cat__meta {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--steel);
}

.cat__tail {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
}

.cat__listen {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(156, 200, 222, 0.28);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--meltwater);
  white-space: nowrap;
  transition: border-color 0.35s ease, color 0.35s ease, box-shadow 0.4s ease;
}

.cat__glyph {
  width: 14px;
  height: 14px;
  flex: none;
  fill: currentColor;
  transition: fill 0.35s ease;
}

.cat__year { flex: none; font-size: 11px; color: var(--steel); transition: color 0.35s ease; }

/* hover AND keyboard focus get the identical treatment */
.cat__row:hover,
.cat__row:focus-visible {
  border-color: rgba(156, 200, 222, 0.4);
  background: linear-gradient(160deg, rgba(18, 28, 47, 0.8), rgba(14, 22, 38, 0.46));
  transform: translateY(-2px);
}
.cat__row:hover::before,
.cat__row:focus-visible::before { opacity: 1; }
.cat__row:hover .cat__no,
.cat__row:focus-visible .cat__no { opacity: 1; }
.cat__row:hover .cat__listen,
.cat__row:focus-visible .cat__listen {
  border-color: rgba(29, 185, 84, 0.55);
  color: var(--headlight);
  box-shadow: 0 0 26px rgba(29, 185, 84, 0.16);
}
.cat__row:hover .cat__glyph,
.cat__row:focus-visible .cat__glyph { fill: #1DB954; }
.cat__row:hover .cat__year,
.cat__row:focus-visible .cat__year { color: var(--meltwater); }
.cat__row:active { transform: translateY(0); }

.cat__foot {
  margin-top: clamp(22px, 3.4vh, 34px);
  text-align: center;
  font-size: 10.5px;
}

/* stack the row on narrow screens so nothing is cramped or clipped */
@media (max-width: 640px) {
  .cat__row { flex-wrap: wrap; }
  .cat__tail { width: 100%; justify-content: space-between; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .cat__row,
  .cat__row::before,
  .cat__no,
  .cat__listen,
  .cat__glyph,
  .cat__year { transition: none; }
  .cat__row:hover,
  .cat__row:focus-visible { transform: none; }
}

/* two CTAs side by side; the second stays cold so Spotify keeps the warm accent */
.listen__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.cta--ghost { color: var(--meltwater); border-color: rgba(156, 200, 222, 0.3); }
.cta--ghost:hover,
.cta--ghost:focus-visible {
  background: transparent;
  border-color: var(--meltwater);
  color: var(--headlight);
  box-shadow: 0 0 30px rgba(156, 200, 222, 0.18);
}

/* ---------- SUB-ZERO · 0.0° — the reward for going all the way down ---------- */

.subzero {
  max-width: 520px;
  margin: clamp(34px, 5.5vh, 60px) auto 0;
  padding: clamp(22px, 3.4vw, 32px);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1.1s var(--ease-cine);
}
.subzero.in { opacity: 1; transform: none; }
.subzero[hidden] { display: none; }

.subzero__mark {
  color: var(--meltwater);
  letter-spacing: 0.24em;
  text-shadow: 0 0 26px rgba(156, 200, 222, 0.4);
}

.subzero__line {
  margin-top: 14px;
  color: rgba(233, 240, 250, 0.82);
  font-size: 16px;
}

.subzero__cta {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 22px;
  border: 1px solid rgba(227, 155, 59, 0.5);
  border-radius: 999px;
  color: var(--sodium);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.4s ease;
}
.subzero__cta:hover,
.subzero__cta:focus-visible {
  background: var(--sodium);
  color: #171006;
  box-shadow: 0 0 34px rgba(227, 155, 59, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .subzero { transition: none; }
}

/* Apple Music's embed needs a taller frame than Spotify's */
.listen__player--apple { margin-top: clamp(14px, 2vh, 20px); }
.listen__player--apple iframe { height: 175px; }

/* ---------- 404 · off the map ---------- */

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(70px, 12vh, 140px) clamp(20px, 7vw, 90px);
}
.lost .section-mark { margin-bottom: clamp(20px, 3.4vh, 36px); }

.lost__code {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125, "wght" 900;
  font-size: clamp(88px, 22vw, 240px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--headlight);
  text-shadow: 0 0 60px rgba(156, 200, 222, 0.12);
}

.lost__line {
  margin-top: clamp(16px, 2.6vh, 26px);
  max-width: 40ch;
  color: rgba(233, 240, 250, 0.75);
}

.lost__actions { margin-top: clamp(26px, 4.4vh, 44px); }
.lost__foot { margin-top: clamp(26px, 4.4vh, 46px); font-size: 10.5px; }
