/* =========================================================
   PAPERBOY RADIO - uzivo.css
   1970s analog radio studio in strict B&W editorial.
   Paper background for readability. Ink accents, heavy rules,
   dotted halftone textures, and a single ink-filled strip
   give the dark/analog feel without inverting the whole page.
   ========================================================= */

/* ---------- Body / page shell ---------- */
.radio-body {
  background:
    /* subtle halftone dot field, very soft */
    radial-gradient(circle at 1px 1px, rgba(10,10,10,0.05) 1px, transparent 1.2px) 0 0 / 10px 10px,
    var(--paper);
  color: var(--ink);
}

/* =========================================================
   MASTHEAD / NAV - dark variants (inverted) for this page
   ========================================================= */
.masthead--dark {
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--rule-thick) solid var(--ink);
}
.masthead--dark .masthead__strip {
  color: rgba(250,250,247,0.75);
  border-bottom: var(--rule-thin) solid rgba(250,250,247,0.18);
}
.masthead--dark .masthead__strip span { opacity: 1; }

.nav--dark {
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--rule-thin) solid rgba(250,250,247,0.22);
}
.nav--dark .nav__wordmark { color: var(--paper); }
.nav--dark .nav__sub { color: rgba(250,250,247,0.7); }
.nav--dark .nav__sep { color: rgba(250,250,247,0.4); }
.nav--dark .nav__links a { color: var(--paper); }
.nav--dark .nav__links a:hover { text-decoration-thickness: 2px; }
.nav--dark .nav__burger { color: var(--paper); }

/* Light button variant - for placement on dark nav */
.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--light:hover {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}

/* =========================================================
   STUDIO
   ========================================================= */
.studio {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-8);
}

/* ---------- Strip: ON AIR lamp + frequency + clock ---------- */
.studio__strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  margin: 32px 0 0;
  border: var(--rule-med) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.studio__strip-l, .studio__strip-r {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.on-air {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border: var(--rule-thin) solid rgba(250,250,247,0.6);
  font-weight: 600;
}
.on-air__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border-radius: 50%;
  opacity: 0.35;
}
.on-air.is-live .on-air__dot {
  background: var(--paper);
  opacity: 1;
  animation: onAirBlink 0.8s steps(2, end) infinite;
}
@keyframes onAirBlink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}
.on-air__label { letter-spacing: 0.22em; }
.studio__freq, .studio__loc { opacity: 0.8; }
.studio__time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  font-weight: 500;
}

/* =========================================================
   HERO
   ========================================================= */
.studio__hero {
  padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 5vw, 64px);
  border-bottom: var(--rule-thin) solid var(--ink);
  max-width: 1000px;
}
.studio__kicker { display: block; margin-bottom: 18px; }
.studio__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(46px, 8.5vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.studio__title em { font-style: italic; font-weight: var(--fw-black); }
.studio__dek {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  color: var(--graphite);
  max-width: 680px;
  margin: 0;
}

/* =========================================================
   CONSOLE - grid: deck (left) + form (right)
   ========================================================= */
.console {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.15fr);
  border: var(--rule-thick) solid var(--ink);
  margin: clamp(32px, 5vw, 56px) 0;
  background: var(--paper-pure);
}
.console > * { padding: clamp(28px, 3.2vw, 44px); }
.console__deck {
  border-right: var(--rule-thin) solid var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(10,10,10,0.09) 1px, transparent 1.2px) 0 0 / 7px 7px,
    var(--newsprint);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}
.console__deck::before {
  content: "CONSOLE / DECK A";
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--graphite);
}

/* =========================================================
   DECK: reels
   ========================================================= */
.deck__reels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
}
.reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  justify-self: center;
}
.reel__disc {
  position: relative;
  width: 118px;
  height: 118px;
  border: var(--rule-med) solid var(--ink);
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(10,10,10,0.06) 0deg 30deg,
      transparent 30deg 60deg
    ),
    var(--paper-pure);
  animation: reelSpin 6s linear infinite;
}
.reel__spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: var(--rule-med);
  background: var(--ink);
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) rotate(0deg);
}
.reel__spoke:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.reel__spoke:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); }
.reel__hub {
  position: absolute;
  top: 50%; left: 50%;
  width: 28px; height: 28px;
  background: var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--paper-pure), 0 0 0 5px var(--ink);
}
.reel__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--graphite);
}
/* Both reels spin the same direction - tape moves one way */
.reel--l .reel__disc,
.reel--r .reel__disc { animation-direction: normal; }

@keyframes reelSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* The tape line between reels */
.deck__tape {
  width: 100%;
  min-width: 40px;
  height: 0;
  border-top: 2px dashed var(--graphite);
  align-self: center;
  margin-top: -14px;
  position: relative;
}
.deck__tape::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed var(--pencil);
}

/* =========================================================
   DECK: VU meter
   ========================================================= */
.vu {
  border-top: var(--rule-thin) dashed var(--graphite);
  border-bottom: var(--rule-thin) dashed var(--graphite);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vu__row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 14px;
}
.vu__side {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
}
.vu__bars {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 3px;
  height: 22px;
}
.vu__bars > span {
  background: rgba(10,10,10,0.1);
  border: var(--rule-thin) solid rgba(10,10,10,0.25);
  transition: background 60ms linear;
}
.vu__bars > span.is-on { background: var(--ink); border-color: var(--ink); }
.vu__bars > span:nth-child(n+12) { /* top end - hotter feel */ background: rgba(10,10,10,0.05); }
.vu__bars > span:nth-child(n+12).is-on { background: var(--ink); }

@keyframes vuBounce {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1); }
}

/* =========================================================
   DECK: tuning dial
   ========================================================= */
.deck__dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}
.dial {
  position: relative;
  width: 240px;
  height: 120px;
  border: var(--rule-med) solid var(--ink);
  border-bottom: 0;
  border-top-left-radius: 240px;
  border-top-right-radius: 240px;
  background:
    /* tick marks around the arc */
    repeating-conic-gradient(
      from 180deg at 50% 100%,
      var(--ink) 0deg 0.7deg,
      transparent 0.7deg 10deg
    ),
    /* halftone ambience */
    radial-gradient(circle at 50% 100%, rgba(10,10,10,0.08) 0%, rgba(10,10,10,0) 70%),
    var(--paper-pure);
  overflow: hidden;
}
.dial__ticks {
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(
      from 180deg at 50% 100%,
      var(--ink) 0deg 0.4deg,
      transparent 0.4deg 5deg
    );
  opacity: 0.45;
  mask-image: radial-gradient(circle at 50% 100%, transparent 58%, #000 60%, #000 70%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 100%, transparent 58%, #000 60%, #000 70%, transparent 72%);
}
.dial__needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--ink);
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(0deg);
  animation: dialSwing 4s ease-in-out infinite alternate;
}
.dial__center {
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  background: var(--ink);
  border-radius: 50%;
  border: 3px solid var(--paper-pure);
  box-shadow: 0 0 0 1.5px var(--ink);
}
@keyframes dialSwing {
  0%   { transform: translateX(-50%) rotate(-45deg); }
  100% { transform: translateX(-50%) rotate(45deg); }
}
.dial__readout {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  padding: 6px 12px;
  border: var(--rule-thin) solid var(--ink);
  background: var(--paper-pure);
}
.dial__readout #dialReadout { font-weight: 600; }

/* =========================================================
   FORM
   ========================================================= */
.console__form { display: flex; flex-direction: column; gap: 20px; }
.console__form-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 6px;
  padding-bottom: 14px;
  border-bottom: var(--rule-thin) dashed var(--pencil);
}
.console__n {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--graphite);
  align-self: start;
  margin-top: 6px;
}
.console__h {
  grid-column: 2;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.console__p {
  grid-column: 2;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--graphite);
  margin: 0;
}

/* Inputs - match editorial conventions */
.console__form .qform {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.console__form .qform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.console__form .qform label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.console__form .qform label > span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.console__form .qform input[type="text"],
.console__form .qform input[type="email"] {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 13px 14px;
  border: var(--rule-thin) solid var(--ink);
  background: var(--paper-pure);
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-width var(--dur-fast), padding var(--dur-fast);
}
.console__form .qform input:focus {
  border-width: var(--rule-med);
  padding: 12px 13px;
}
.console__form .qform label.has-error input {
  border-color: var(--ink);
  border-width: var(--rule-med);
  padding: 12px 13px;
  background: rgba(10,10,10,0.04);
}

/* Compact consent check */
.console__terms {
  padding: 10px 0 2px;
  border-top: var(--rule-thin) dashed var(--pencil);
}
.qcheck--compact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--graphite);
}
.qcheck--compact input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: var(--rule-thin) solid var(--ink);
  background: var(--paper-pure);
  margin-top: 2px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.qcheck--compact input[type="checkbox"]:checked {
  background: var(--ink);
}
.qcheck--compact input[type="checkbox"]:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--paper);
  display: block;
}

/* Actions row */
.console__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.console__submit { flex: 1 1 auto; min-width: 260px; }
.console__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
  max-width: 260px;
  line-height: 1.5;
}
.console__alert {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border: var(--rule-med) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-transform: uppercase;
}
.console__alert[hidden] { display: none; }

/* =========================================================
   BOOTH - post-submit "connecting" view
   ========================================================= */
.booth {
  border: var(--rule-thick) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  margin: clamp(32px, 5vw, 56px) 0;
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.booth[hidden] { display: none; }
.booth.is-visible { opacity: 1; }
.booth::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(250,250,247,0.06) 1px, transparent 1.2px) 0 0 / 10px 10px;
  pointer-events: none;
}
.booth__inner {
  position: relative;
  padding: clamp(40px, 6vw, 88px) clamp(28px, 5vw, 72px);
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.booth__lamp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: var(--rule-thin) solid rgba(250,250,247,0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.booth__lamp-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border-radius: 50%;
  animation: boothLampPulse 1.1s ease-in-out infinite;
}
@keyframes boothLampPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.72); }
}

.booth__h {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin: 0;
}
.booth__p {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5;
  color: rgba(250,250,247,0.82);
  max-width: 52ch;
  margin: 0;
}

.booth__progress {
  width: 100%;
  height: 10px;
  border: var(--rule-thin) solid rgba(250,250,247,0.55);
  background: transparent;
  margin-top: 8px;
}
.booth__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--paper);
}

.booth__meta {
  display: inline-flex;
  gap: 12px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(250,250,247,0.72);
  text-transform: uppercase;
}
.booth__meta-v {
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.booth__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  margin-top: 10px;
}
.booth__ctas .btn {
  border-color: var(--paper);
}
.booth__ctas .btn--dark {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.booth__ctas .btn--dark:hover {
  background: transparent;
  color: var(--paper);
}

/* Sound toggle - paper outline, animates bars when pressed */
.btn--sound {
  background: transparent;
  color: var(--paper);
  border: var(--rule-thin) solid var(--paper);
  padding: 18px 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn--sound:hover { background: var(--paper); color: var(--ink); }
.btn--sound:hover .sound-wave > span { background: var(--ink); }
.sound-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.sound-wave > span {
  display: inline-block;
  width: 3px;
  height: 5px;
  background: var(--paper);
  transform-origin: 50% 100%;
}
.btn--sound[aria-pressed="true"] .sound-wave > span {
  animation: soundWave 900ms ease-in-out infinite;
}
.btn--sound[aria-pressed="true"] .sound-wave > span:nth-child(1) { animation-delay: 0ms; }
.btn--sound[aria-pressed="true"] .sound-wave > span:nth-child(2) { animation-delay: 140ms; }
.btn--sound[aria-pressed="true"] .sound-wave > span:nth-child(3) { animation-delay: 260ms; }
.btn--sound[aria-pressed="true"] .sound-wave > span:nth-child(4) { animation-delay: 380ms; }
@keyframes soundWave {
  0%, 100% { height: 5px; }
  50%      { height: 18px; }
}

/* Join CTA - dim until ready */
.booth__join {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  flex: 1 1 auto;
  min-width: 240px;
  justify-content: space-between;
}
.booth__join.is-ready {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

.booth__fallback {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.7);
  margin: 4px 0 0;
}
.booth__fallback a { color: var(--paper); text-underline-offset: 3px; }

/* =========================================================
   FOOT NOTES - 3-col reference markers
   ========================================================= */
.studio__notes {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
  border-top: var(--rule-thin) solid var(--ink);
}
.studio__notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--rule-med) solid var(--ink);
  border-left: var(--rule-thin) solid var(--ink);
}
.studio__note {
  padding: 28px 24px;
  border-right: var(--rule-thin) solid var(--ink);
  border-bottom: var(--rule-thin) solid var(--ink);
  background: var(--paper-pure);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}
.studio__note-n {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.studio__note h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
}
.studio__note p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--graphite);
  margin: auto 0 0;
  padding-top: 10px;
  border-top: var(--rule-thin) dashed var(--rule-soft);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .console {
    grid-template-columns: 1fr;
  }
  .console__deck {
    border-right: 0;
    border-bottom: var(--rule-thin) solid var(--ink);
    order: 2;
  }
  .console__form { order: 1; }

  .reel__disc { width: 88px; height: 88px; }
  .reel__hub  { width: 22px; height: 22px; }
  .studio__notes-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .studio { padding: 0 18px; }
  .studio__strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }
  .studio__strip-l, .studio__strip-r { gap: 12px; flex-wrap: wrap; }
  .studio__hero { padding: 48px 0 28px; }
  .studio__title { font-size: clamp(36px, 11vw, 56px); }
  .studio__dek { font-size: 16px; }

  .console > * { padding: 24px 18px; }
  .console__form .qform__row { grid-template-columns: 1fr; }
  .console__actions { gap: 10px; }
  .console__submit { min-width: 0; width: 100%; }
  .console__hint { max-width: none; }

  .reel__disc { width: 72px; height: 72px; }
  .reel__hub  { width: 18px; height: 18px; box-shadow: 0 0 0 3px var(--paper-pure), 0 0 0 4px var(--ink); }
  .vu__bars { gap: 2px; height: 16px; }
  .dial { width: 180px; height: 90px; }

  .booth__inner { padding: 32px 20px; }
  .booth__h { font-size: 32px; }
  .booth__ctas { flex-direction: column; }
  .booth__join, .btn--sound { width: 100%; justify-content: center; }

  .studio__notes-grid { grid-template-columns: 1fr; }
  .studio__note { min-height: 0; padding: 20px 18px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .reel__disc,
  .dial__needle,
  .on-air.is-live .on-air__dot,
  .booth__lamp-dot,
  .btn--sound[aria-pressed="true"] .sound-wave > span,
  .vu__bars > span {
    animation: none !important;
    transition: none !important;
  }
  .booth { transition: none; }
}
