/* War of the Worlds — Live. A 1938 living room at 8 pm. */

:root {
  --ink: #0d0a08;
  --ink-2: #16100c;
  --ink-3: #221813;
  --cream: #efe4cc;
  --cream-dim: #b9ab90;
  --paper: #ebe1c8;
  --paper-ink: #1d1712;
  --amber: #ffb648;
  --amber-soft: rgba(255, 182, 72, 0.16);
  --mars: #d8431f;
  --mars-deep: #8f2210;
  --walnut-hi: #8a5329;
  --walnut: #5c3418;
  --walnut-lo: #2f170a;
  /* 1930s faces: Alternate Gothic (League Gothic revival) for headlines,
     a worn typewriter for the wire, Caslon for body text, blackletter for nameplates. */
  --display: "League Gothic", "Arial Narrow", sans-serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --mono: "Special Elite", "Courier New", monospace;
  --blackletter: "UnifrakturMaguntia", serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 22% -10%, rgba(255, 168, 76, 0.14), transparent 60%),
    radial-gradient(900px 600px at 105% 105%, rgba(216, 67, 31, 0.12), transparent 60%),
    var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  font-synthesis: none; /* the period faces have one weight; never fake-bold them */
}

.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #ffd08a; }

button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px var(--gutter);
  border-bottom: 1px solid rgba(239, 228, 204, 0.14);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.brand {
  font-family: var(--blackletter);
  font-size: 27px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream);
}
.brand span { color: var(--mars); padding: 0 0.2em; }
.brand em {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  margin-left: 10px;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(20px, 3vw, 36px);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--amber);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mars);
  box-shadow: 0 0 0 0 rgba(216, 67, 31, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 67, 31, 0.65); }
  70% { box-shadow: 0 0 0 12px rgba(216, 67, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 67, 31, 0); }
}

h1 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.6rem, 12vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: 0.005em;
  margin: 0;
  max-width: 7.4em;
  animation: rise 0.9s cubic-bezier(.2, .7, .2, 1) both;
}
h1 .mars {
  color: var(--mars);
  text-shadow: 0 0 38px rgba(216, 67, 31, 0.45);
  animation: mars-glow 3.2s 1.6s ease-in-out infinite alternate;
}
@keyframes mars-glow {
  from { text-shadow: 0 0 24px rgba(216, 67, 31, 0.35); }
  to { text-shadow: 0 0 54px rgba(255, 80, 30, 0.75), 0 0 12px rgba(255, 120, 60, 0.5); }
}
/* The headline comes on like a tube warming up */
.hero h1 { animation: flicker 1.5s linear both; }
@keyframes flicker {
  0% { opacity: 0; }
  6% { opacity: 0.85; }
  9% { opacity: 0.1; }
  14% { opacity: 1; }
  19% { opacity: 0.3; }
  23% { opacity: 0.95; }
  27% { opacity: 0.55; }
  32%, 100% { opacity: 1; }
}

/* ---------- Times Square news ticker ---------- */
.zipper {
  position: relative;
  overflow: hidden;
  height: 46px;
  background: #040302;
  border-bottom: 1px solid #2a1d12;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.95);
}
.zipper::before, .zipper::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 70px;
  z-index: 1;
  pointer-events: none;
}
.zipper::before { left: 0; background: linear-gradient(90deg, #040302, transparent); }
.zipper::after { right: 0; background: linear-gradient(-90deg, #040302, transparent); }
.zipper-track {
  display: inline-flex;
  white-space: nowrap;
  animation: zip var(--zip-dur, 60s) linear infinite;
  will-change: transform;
  filter: drop-shadow(0 0 5px rgba(255, 168, 60, 0.75));
}
.zipper-track span {
  font-family: var(--display);
  font-size: 36px;
  line-height: 46px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd27a;
  padding-right: 2.2em;
  -webkit-mask-image: radial-gradient(circle at center, #000 46%, transparent 60%);
  -webkit-mask-size: 4px 4px;
  mask-image: radial-gradient(circle at center, #000 46%, transparent 60%);
  mask-size: 4px 4px;
}
.zipper-track span.hot { color: #ff7a4a; }
@keyframes zip { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Night scene behind the hero ---------- */
.hero > :not(.hero-scene):not(.hero-photo) { position: relative; z-index: 1; }
.hero-photo { z-index: 2; }
.hero-scene {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.beam {
  position: absolute;
  bottom: 10%;
  width: 180px;
  height: 140%;
  background: linear-gradient(to top, rgba(255, 236, 190, 0.13), rgba(255, 236, 190, 0) 85%);
  clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0);
  transform-origin: 50% 100%;
  filter: blur(3px);
}
.beam.b1 { left: 58%; animation: sweep 13s ease-in-out infinite alternate; }
.beam.b2 { left: 84%; animation: sweep 9s -4s ease-in-out infinite alternate-reverse; }
@keyframes sweep { from { transform: rotate(-28deg); } to { transform: rotate(24deg); } }

.horizon { position: absolute; left: 0; bottom: 0; width: 100%; height: 52%; }
.horizon .land { fill: #060403; }
.horizon .fire { animation: fire 4s ease-in-out infinite alternate; }
@keyframes fire { from { opacity: 0.55; } to { opacity: 1; } }
.tripod-walk { animation: stalk 95s -34s linear infinite; }
@keyframes stalk {
  from { transform: translate(1750px, 300px); }
  to { transform: translate(-260px, 300px); }
}
.tripod { fill: #060403; stroke: #060403; animation: bob 2.6s ease-in-out infinite; }
.tripod .leg { stroke-width: 7; stroke-linecap: round; fill: none; }
.tripod .l1 { transform-origin: 0px -150px; animation: stride 2.6s ease-in-out infinite; }
.tripod .l3 { transform-origin: 0px -150px; animation: stride 2.6s -1.3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes stride { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.tripod .eye { fill: #ff3b1a; stroke: none; filter: drop-shadow(0 0 6px #ff3b1a); animation: eye 2.2s ease-in-out infinite alternate; }
@keyframes eye { from { opacity: 0.55; } to { opacity: 1; } }
.tripod .ray { stroke: #ff5a2a; stroke-width: 3; fill: none; opacity: 0; filter: drop-shadow(0 0 6px #ff5a2a); animation: ray 9s 3s infinite; }
@keyframes ray { 0%, 86%, 100% { opacity: 0; } 88% { opacity: 1; } 90% { opacity: 0.2; } 92% { opacity: 0.95; } 96% { opacity: 0; } }

/* Sound waves from the radio while it plays */
.waves { position: absolute; left: 50%; top: 32%; width: 0; height: 0; z-index: -1; }
.waves i {
  position: absolute;
  left: -150px; top: -150px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 2px solid rgba(255, 182, 72, 0.3);
  opacity: 0;
}
.radio-wrap[data-on="true"] .waves i { animation: ripple 2.7s ease-out infinite; }
.radio-wrap[data-on="true"] .waves i:nth-child(2) { animation-delay: 0.9s; }
.radio-wrap[data-on="true"] .waves i:nth-child(3) { animation-delay: 1.8s; }
@keyframes ripple {
  from { transform: scale(0.55); opacity: 0.8; }
  to { transform: scale(1.6); opacity: 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.lede {
  max-width: 600px;
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.45;
  color: var(--cream);
  margin: 24px 0 0;
  animation: rise 0.9s 0.12s cubic-bezier(.2, .7, .2, 1) both;
}
.lede strong { color: var(--amber); font-weight: 700; }

.when {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(239, 228, 204, 0.14);
  max-width: 760px;
  animation: rise 0.9s 0.3s cubic-bezier(.2, .7, .2, 1) both;
}
.when-label { flex-basis: 100%; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim); }
.countdown { display: flex; gap: 8px; }
.countdown .unit {
  min-width: 58px;
  padding: 7px 8px 5px;
  border: 1px solid rgba(255, 182, 72, 0.3);
  background: linear-gradient(180deg, rgba(255, 182, 72, 0.08), rgba(255, 182, 72, 0.02));
  border-radius: 3px;
  text-align: center;
}
.countdown b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.airtime .linkish { margin-top: 4px; display: inline-block; }

.btn.huge {
  padding: 18px 28px 18px 24px;
  font-size: 17px;
  letter-spacing: 0.1em;
  box-shadow: 0 0 0 0 rgba(216, 67, 31, 0.5);
  animation: beckon 2.4s 1.4s infinite;
}
@keyframes beckon {
  0% { box-shadow: 0 0 0 0 rgba(216, 67, 31, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(216, 67, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 67, 31, 0); }
}
.play-tri {
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
  margin-right: 2px;
}

/* Push-button presets, like a 1938 set */
.presets {
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, #3a2111, #24140a);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 210, 160, 0.12);
}
.preset {
  border: none;
  border-radius: 3px 3px 5px 5px;
  padding: 8px 4px 9px;
  background: linear-gradient(180deg, #f1e6cd, #cdbd98);
  color: #2a1d12;
  box-shadow: 0 4px 0 #8a7752, 0 6px 8px rgba(0, 0, 0, 0.45);
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  transition: transform 0.08s, box-shadow 0.08s, background 0.2s;
}
.preset small { display: block; font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.08em; color: #7a2a14; margin-bottom: 2px; }
.preset:hover { background: linear-gradient(180deg, #fff4dc, #d9c9a3); }
.preset:active, .preset.down { transform: translateY(3px); box-shadow: 0 1px 0 #8a7752, 0 2px 4px rgba(0, 0, 0, 0.45); }
.preset.down { background: linear-gradient(180deg, #ffd27f, #e3a74a); }
.preset:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Bulletin banner */
.bulletin {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--gutter);
  background:
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.12) 0 14px, transparent 14px 28px),
    var(--mars);
  color: #fff6e6;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(.2, .9, .2, 1), visibility 0.45s;
}
.bulletin.show { transform: none; visibility: visible; animation: bulletin-stripes 1s linear infinite; }
@keyframes bulletin-stripes { to { background-position: 40px 0, 0 0; } }
.b-tag {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  padding: 3px 7px;
  border-radius: 2px;
  white-space: nowrap;
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }
.b-time { font-family: var(--mono); font-weight: 700; font-size: 14px; white-space: nowrap; }
.b-text {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(20px, 3.2vw, 38px);
  line-height: 1;
  letter-spacing: 0.01em;
}

/* Dead air: the reporter's mic goes silent */
.deadair {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  background: rgba(3, 2, 1, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  pointer-events: none;
}
.deadair::before {
  content: "";
  position: absolute;
  inset: -50%;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.35s steps(4) infinite;
}
.deadair span {
  position: relative;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(239, 228, 204, 0.45);
  animation: blink 1.4s steps(2) infinite;
}
.deadair.on { opacity: 1; visibility: visible; }
.countdown small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.airtime { font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--cream-dim); }
.airtime strong { color: var(--cream); font-weight: 700; font-size: 16px; display: block; }

.live-now {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  color: var(--amber);
  line-height: 1;
}
.live-now span { color: var(--cream-dim); font-family: var(--mono); font-size: 14px; display: block; letter-spacing: 0.1em; margin-top: 8px; font-weight: 400; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; animation: rise 0.9s 0.2s cubic-bezier(.2, .7, .2, 1) both; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 3px;
  border: 1px solid rgba(239, 228, 204, 0.3);
  background: transparent;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { border-color: var(--amber); background: var(--amber-soft); color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--mars); border-color: var(--mars); color: #fff7ea; font-weight: 700; }
.btn.primary:hover { background: #e9522c; border-color: #e9522c; }
.btn.small { padding: 8px 12px; font-size: 12px; }
.btn[hidden] { display: none; }

/* ---------- Stage ---------- */

.stage {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px var(--gutter) 72px;
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.set { position: sticky; top: 20px; display: grid; gap: 18px; justify-items: center; }

/* The radio */
.radio-wrap { position: relative; width: min(100%, 340px); }
.radio-wrap::before {
  content: "";
  position: absolute;
  inset: -18% -30% -8%;
  background: radial-gradient(closest-side, rgba(255, 170, 70, 0.0), transparent 70%);
  transition: background 1.2s;
  z-index: -1;
}
.radio-wrap[data-on="true"]::before {
  background: radial-gradient(closest-side, rgba(255, 170, 70, 0.22), transparent 70%);
  animation: tube 3.2s ease-in-out infinite;
}
@keyframes tube { 50% { opacity: 0.75; } }

.cabinet {
  position: relative;
  aspect-ratio: 34 / 41;
  border-radius: 50% 50% 14px 14px / 34% 34% 14px 14px;
  background:
    repeating-linear-gradient(97deg, rgba(0, 0, 0, 0.0) 0 7px, rgba(0, 0, 0, 0.09) 7px 9px, rgba(255, 220, 170, 0.04) 9px 13px),
    radial-gradient(120% 80% at 30% 15%, var(--walnut-hi), var(--walnut) 45%, var(--walnut-lo));
  box-shadow:
    inset 0 2px 0 rgba(255, 210, 160, 0.25),
    inset 0 -18px 40px rgba(0, 0, 0, 0.45),
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 2px 0 rgba(0, 0, 0, 0.8);
  padding: 9% 11% 0;
}
.cabinet::after { /* bevelled inner arch */
  content: "";
  position: absolute;
  inset: 4.5% 6% 30%;
  border-radius: 50% 50% 8px 8px / 36% 36% 8px 8px;
  border: 3px solid rgba(255, 210, 160, 0.12);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.grille {
  position: relative;
  height: 54%;
  border-radius: 50% 50% 6px 6px / 40% 40% 6px 6px;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #6e5233, #4c361f);
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.7);
}
.grille::before { /* light from inside the set */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 50% 60%, rgba(255, 176, 80, 0.0), transparent 70%);
  transition: background 1s;
}
.radio-wrap[data-on="true"] .grille::before {
  background: radial-gradient(60% 55% at 50% 60%, rgba(255, 176, 80, 0.32), transparent 70%);
  animation: speak 0.9s ease-in-out infinite alternate;
}
@keyframes speak { from { opacity: 0.65; } to { opacity: 1; } }
.fret { position: absolute; inset: 0; width: 100%; height: 100%; }

.dial {
  position: relative;
  margin: 7% auto 0;
  width: 86%;
  height: 13%;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a1d12, #120c07);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 210, 160, 0.18);
  overflow: hidden;
}
.dial .scale {
  position: absolute;
  inset: 0 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(10px, 2.6vw, 13px);
  color: rgba(239, 228, 204, 0.35);
  transition: color 0.8s;
}
.radio-wrap[data-on="true"] .dial { background: radial-gradient(120% 140% at 50% 50%, #f7c272, #b7741f 55%, #4a2c10); }
.radio-wrap[data-on="true"] .dial .scale { color: rgba(40, 20, 6, 0.85); }
.needle {
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 2px;
  left: 12%;
  background: var(--mars);
  box-shadow: 0 0 6px rgba(216, 67, 31, 0.8);
}

.knobs {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6% 2% 0;
}
.knob {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background:
    repeating-conic-gradient(from 0deg, rgba(0, 0, 0, 0.25) 0 6deg, rgba(255, 255, 255, 0.04) 6deg 12deg),
    radial-gradient(circle at 35% 30%, #5b3a22, #26140a 70%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6), inset 0 2px 2px rgba(255, 210, 160, 0.25);
  position: relative;
  transition: transform 0.6s cubic-bezier(.3, 1.4, .5, 1);
}
.knob::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 12px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cream);
  opacity: 0.8;
}
.knob.big { width: 72px; height: 72px; }
.knob:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.knob:hover { filter: brightness(1.15); }
.knob.turned { transform: rotate(250deg); }

.onair-badge {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 13px;
  padding: 5px 10px 4px;
  border-radius: 3px;
  color: rgba(239, 228, 204, 0.25);
  border: 1px solid rgba(239, 228, 204, 0.15);
  transition: all 0.4s;
}
.radio-wrap[data-on="true"] .onair-badge {
  color: #fff3e0;
  background: var(--mars);
  border-color: var(--mars);
  box-shadow: 0 0 18px rgba(216, 67, 31, 0.55);
}

.radio-hint {
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  margin: 14px 0 0;
}
.radio-hint b { color: var(--amber); font-weight: 700; }

/* Broadcast clock + controls */
.transport {
  width: min(100%, 440px);
  display: grid;
  gap: 10px;
  justify-items: center;
}
.clock {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  text-align: center;
}
.clock b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 0.02em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.clock .live-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 11px;
  border-radius: 2px;
  background: var(--mars);
  color: #fff3e0;
  letter-spacing: 0.14em;
  vertical-align: 2px;
}
.transport-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.player-frame {
  width: min(100%, 440px);
  border: 1px solid rgba(239, 228, 204, 0.16);
  background: #000;
  padding: 6px;
  border-radius: 4px;
}
.player-box { position: relative; aspect-ratio: 16 / 9; min-height: 200px; }
.player-box iframe, .player-box > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-credit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  margin: 6px 2px 0;
}
.player-fail { padding: 14px; font-family: var(--mono); font-size: 13px; }

/* ---------- The wire ---------- */

.wire-head { border-bottom: 2px solid var(--cream); padding-bottom: 12px; margin-bottom: 4px; }
.wire-head h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 0.9;
  margin: 0;
}
.wire-head p { margin: 8px 0 0; color: var(--cream-dim); font-size: 15px; }
.wire-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--cream-dim); letter-spacing: 0.04em; }
.legend { display: inline-flex; gap: 6px; align-items: center; }
.swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.swatch.air { background: var(--amber); }
.swatch.real { background: var(--mars); }
.swatch.you { background: var(--cream); }
.linkish { background: none; border: none; padding: 0; color: var(--amber); text-decoration: underline; text-underline-offset: 3px; font-family: var(--mono); font-size: 12px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed-empty {
  padding: 26px 0;
  color: var(--cream-dim);
  font-style: italic;
  border-bottom: 1px solid rgba(239, 228, 204, 0.12);
}

.item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(239, 228, 204, 0.12);
}
.item.fresh { animation: wire-in 0.7s cubic-bezier(.2, .7, .2, 1) both; }
.item.air.fresh, .item.real.fresh { animation: wire-in 0.7s cubic-bezier(.2, .7, .2, 1) both, flash 2.4s ease-out; }
@keyframes wire-in {
  from { opacity: 0; translate: 0 -10px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes flash {
  from { background-color: rgba(255, 182, 72, 0.2); }
  to { background-color: rgba(255, 182, 72, 0); }
}
.item time {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--cream);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.item time small { display: block; font-weight: 400; font-size: 11px; color: var(--cream-dim); letter-spacing: 0.04em; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.item.air .tag { color: var(--amber); }
.item.real .tag { color: #ff6a45; }
.item p { margin: 4px 0 0; }
.item.air p { font-family: var(--mono); font-size: 15px; line-height: 1.5; color: #f3e8d2; }
.item.real p { font-size: 17px; }
.item .src { font-family: var(--mono); font-size: 11px; color: var(--cream-dim); margin-top: 6px; display: inline-block; }
.item .src a { color: var(--cream-dim); }
.item .conf {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0 5px;
  margin-left: 6px;
  color: var(--cream-dim);
}

/* telephone moments */
.item.phone {
  margin: 8px 0;
  padding: 20px 18px;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 3px;
  border-bottom: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.4deg);
}
.item.phone time { color: var(--paper-ink); }
.item.phone time small { color: #6d5f4b; }
.item.phone .tag { color: var(--mars-deep); }
.item.phone h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 26px;
  line-height: 1;
  margin: 6px 0 6px;
}
.item.phone p { font-size: 16px; }
.choices { display: grid; gap: 8px; margin-top: 14px; }
.choice {
  text-align: left;
  padding: 11px 14px;
  border: 1.5px solid var(--paper-ink);
  background: transparent;
  color: var(--paper-ink);
  border-radius: 3px;
  font-family: var(--serif);
  font-size: 16px;
  transition: background 0.15s, color 0.15s;
}
.choice:hover:not(:disabled) { background: var(--paper-ink); color: var(--paper); }
.choice:disabled { cursor: default; opacity: 0.45; }
.choice.picked { background: var(--mars); border-color: var(--mars); color: #fff7ea; opacity: 1; }
.choice-note { font-family: var(--mono); font-size: 13px; margin-top: 10px; color: #4a3d2e; }

.item.reveal {
  margin: 10px 0;
  padding: 22px 18px;
  border: 2px solid var(--mars);
  border-radius: 3px;
  grid-template-columns: 1fr;
}
.item.reveal h3 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 0.95;
  margin: 4px 0 8px;
  color: var(--cream);
}

/* ---------- Email sign-up ---------- */

.subscribe { flex-basis: 100%; margin-top: 8px; max-width: 560px; }
.subscribe.wide { margin-top: 34px; max-width: 640px; }
.subscribe.compact { margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(239, 228, 204, 0.14); }
.sub-label { display: block; font-size: 16px; color: var(--cream); margin-bottom: 10px; }
.sub-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-row input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  font-family: var(--serif);
  font-size: 17px;
  padding: 12px 14px;
  border-radius: 3px;
  border: 1px solid rgba(239, 228, 204, 0.3);
  background: rgba(13, 10, 8, 0.7);
  color: var(--cream);
}
.sub-row input[type="email"]:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.sub-row input[type="email"]::placeholder { color: rgba(239, 228, 204, 0.4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sub-note { margin: 8px 0 0; font-family: var(--mono); font-size: 12px; color: var(--cream-dim); }
.sub-note.error { color: #ff8a66; }
.sub-done { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--amber); }

/* ---------- Real images ---------- */

.zoomable { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.zoomable img { display: block; width: 100%; height: auto; }

.hero-photo {
  position: absolute;
  right: var(--gutter);
  top: clamp(40px, 8vw, 96px);
  width: min(34vw, 420px);
  margin: 0;
  transform: rotate(2.2deg);
  animation: rise 1s 0.35s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-photo .zoomable {
  padding: 12px 12px 66px;
  background: #e8dcc0;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 2px 0 rgba(0, 0, 0, 0.4);
}
.hero-photo img { filter: sepia(0.35) contrast(1.05) brightness(0.95); }
.hero-photo figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  color: #3a2f22;
}
.hero-photo figcaption a { color: #6d5f4b; }
@media (min-width: 1081px) {
  .hero.has-photo h1 { font-size: clamp(3.1rem, 8.2vw, 8.4rem); }
  .hero.has-photo h1, .hero.has-photo .lede { max-width: calc(100% - min(34vw, 420px) - 48px); }
}
@media (max-width: 1080px) {
  .hero-photo { position: static; width: min(100%, 460px); margin: 0 0 34px; transform: rotate(-1deg); }
}

.papers { background: linear-gradient(180deg, #19120d, #0f0b08); border-top: 1px solid rgba(239, 228, 204, 0.14); }
.papers-inner { max-width: 1280px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.papers .eyebrow { font-family: var(--mono); letter-spacing: 0.2em; text-transform: uppercase; font-size: 13px; color: var(--amber); margin: 0 0 12px; }
.papers h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 0.9;
  margin: 0 0 12px;
  max-width: 16ch;
}
.papers-lede { color: var(--cream-dim); margin: 0 0 34px; }
.newsstand {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 34px 26px;
  align-items: start;
}
.clip { margin: 0; transition: transform 0.25s cubic-bezier(.2, .7, .2, 1); }
.clip:nth-child(3n + 1) { transform: rotate(-1.4deg); }
.clip:nth-child(3n + 2) { transform: rotate(0.9deg) translateY(10px); }
.clip:nth-child(3n) { transform: rotate(-0.4deg); }
.clip:hover { transform: rotate(0) translateY(-6px); }
.clip .zoomable {
  background: #e6dcc3;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}
.clip img { max-height: 440px; object-fit: cover; object-position: top; filter: contrast(1.08); }
.clip figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12px; line-height: 1.45; color: var(--cream-dim); }
.clip figcaption b { display: block; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; color: var(--cream); text-transform: uppercase; line-height: 1.05; margin-bottom: 4px; }
.clip figcaption a { color: var(--cream-dim); }

.item figure { margin: 12px 0 0; max-width: 320px; }
.item figure .zoomable { background: #e6dcc3; padding: 6px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); }
.item figure img { max-height: 240px; object-fit: cover; object-position: top; filter: sepia(0.2) contrast(1.05); }
.item figcaption { font-family: var(--mono); font-size: 11px; color: var(--cream-dim); margin-top: 6px; }
.item figcaption a { color: var(--cream-dim); }

dialog.img-dialog {
  border: none;
  padding: 18px 18px 14px;
  background: #0a0705;
  color: var(--cream);
  max-width: min(96vw, 1100px);
  max-height: 96vh;
  border-radius: 4px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85);
}
dialog.img-dialog::backdrop { background: rgba(5, 3, 2, 0.85); }
.img-dialog img { display: block; max-width: 100%; max-height: calc(96vh - 90px); margin: 0 auto; }
.img-caption { font-family: var(--mono); font-size: 12px; color: var(--cream-dim); margin: 10px 0 0; max-width: 900px; }
.img-caption a { color: var(--amber); }

/* ---------- Epilogue ---------- */

.epilogue {
  border-top: 1px solid rgba(239, 228, 204, 0.14);
  background: var(--paper);
  color: var(--paper-ink);
}
.epilogue-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.epilogue .eyebrow { font-family: var(--mono); letter-spacing: 0.2em; text-transform: uppercase; font-size: 13px; color: var(--mars-deep); margin: 0 0 12px; }
.epilogue h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.88;
  margin: 0 0 28px;
  max-width: 14ch;
}
.epilogue .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px 44px;
  border-top: 3px double var(--paper-ink);
  padding-top: 26px;
}
.epilogue h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 24px; margin: 0 0 8px; letter-spacing: 0.02em; }
.epilogue p { margin: 0 0 12px; font-size: 16.5px; }
.epilogue .big-num { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 0.9; color: var(--mars-deep); display: block; }
.epilogue a { color: var(--mars-deep); }
.epilogue .sources { font-family: var(--mono); font-size: 12px; margin-top: 30px; color: #4a3d2e; }
.dyk { margin-top: 44px; border-top: 3px double var(--paper-ink); padding-top: 22px; }
.dyk ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px 40px;
}
.dyk li { position: relative; padding-left: 26px; font-size: 16px; }
.dyk li::before { content: "✶"; position: absolute; left: 0; top: -1px; color: var(--mars-deep); font-size: 18px; }

/* ---------- Next ---------- */

.next { max-width: 1280px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.next h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 5vw, 60px); line-height: 0.9; margin: 0 0 8px; }
.next > p { color: var(--cream-dim); margin: 0 0 26px; max-width: 620px; }
.episodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.episode {
  border: 1px solid rgba(239, 228, 204, 0.18);
  border-radius: 4px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(239, 228, 204, 0.04), transparent);
}
.episode .date { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.episode h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 28px; line-height: 0.95; margin: 8px 0; }
.episode p { margin: 0; color: var(--cream-dim); font-size: 15px; }

footer {
  border-top: 1px solid rgba(239, 228, 204, 0.14);
  padding: 28px var(--gutter) 48px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--cream-dim);
}
footer p { max-width: 900px; margin: 0 0 8px; }

/* ---------- Front page dialog ---------- */

dialog.card-dialog {
  border: none;
  padding: 0;
  background: var(--ink-2);
  color: var(--cream);
  width: min(96vw, 980px);
  max-height: 94vh;
  border-radius: 6px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}
dialog.card-dialog::backdrop { background: rgba(5, 3, 2, 0.78); backdrop-filter: blur(3px); }
.card-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; }
.card-preview { background: #0a0705; padding: 18px; display: grid; place-items: center; }
.card-preview canvas { width: 100%; height: auto; max-height: 82vh; object-fit: contain; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); }
.card-side { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.card-side h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: 0.9; margin: 0; }
.card-side .type { font-family: var(--mono); color: var(--amber); letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; }
.card-side p { margin: 0; color: var(--cream); font-size: 16px; }
.card-side label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-dim); display: grid; gap: 6px; }
.card-side input {
  font: inherit;
  font-family: var(--serif);
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 12px;
  border-radius: 3px;
  border: 1px solid rgba(239, 228, 204, 0.3);
  background: var(--ink);
  color: var(--cream);
}
.card-side input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.close-x { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--cream-dim); font-size: 26px; line-height: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(calc(100% + 40px));
  visibility: hidden;
  background: var(--cream);
  color: var(--paper-ink);
  font-family: var(--mono);
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), visibility 0.35s;
  z-index: 60;
}
.toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }

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

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .set { position: static; }
  .card-layout { grid-template-columns: 1fr; }
  .card-preview canvas { max-height: 56vh; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .countdown .unit { min-width: 62px; padding: 8px 6px 6px; }
  .countdown b { font-size: 36px; }
  .item { grid-template-columns: 1fr; gap: 2px; }
  .item time { display: flex; gap: 8px; align-items: baseline; }
  .item time small { display: inline; }
  .knob { width: 46px; height: 46px; }
  .knob.big { width: 62px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { animation: none; }
  .tripod-walk { animation: none; transform: translate(1150px, 300px); }
  .zipper-track { animation: none; }
}
