/* ==========================================================================
   Pho 87
   80s retro neon / VHS. Synthwave horizon, chrome, scanlines.
   Display faces stay big; body copy stays calm and readable.
   ========================================================================== */

:root {
  --night: #0a0420;
  --night-2: #140a36;
  --night-3: #1f0f50;
  --magenta: #ff2bd6;
  --cyan: #2de2ff;
  --sun-a: #ffe36e;
  --sun-b: #ff8a4c;
  --sun-c: #ff2bd6;
  --rec: #ff3355;
  --text: #f4eeff;
  --muted: #cdbef2;
  --label-ink: #1a0b3d;
  --display: "Kanit", "Trebuchet MS", "Segoe UI", sans-serif;
  --neon: "Monoton", "Kanit", sans-serif;
  --vhs: "VT323", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --glow-m: 0 0 2px #fff, 0 0 8px var(--magenta), 0 0 20px var(--magenta), 0 0 42px rgba(255, 43, 214, .55);
  --glow-c: 0 0 2px #fff, 0 0 8px var(--cyan), 0 0 20px rgba(45, 226, 255, .7);
  --chrome: linear-gradient(180deg, #ffffff 0%, #e4f6ff 26%, #8fa2cf 47%, #2a1a5e 50%, #ffd6f5 53%, #ff9fe9 72%, #fff3fd 100%);
  --max: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(122, 18, 112, .28), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, rgba(45, 226, 255, .08), transparent 70%),
    var(--night);
  color: var(--text);
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Whole-page scanlines: subtle enough that body copy keeps its contrast. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .13) 2px 3px, transparent 3px 4px);
}

p, h1, h2, h3, ul, ol, figure { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
svg { display: block; max-width: 100%; }
a { color: var(--cyan); }
strong { font-weight: 600; color: #fff; }
::selection { background: var(--magenta); color: var(--night); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(45, 226, 255, .25);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 8px 14px;
  background: var(--cyan);
  color: var(--night);
  font-family: var(--vhs);
  font-size: 1.35rem;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 4, 32, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 226, 255, .3);
  box-shadow: 0 1px 0 rgba(255, 43, 214, .35), 0 10px 30px rgba(0, 0, 0, .35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
}
@media (min-width: 760px) { .header-inner { padding: 12px 32px; } }

.logo {
  font-family: var(--neon);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  text-shadow: var(--glow-m);
  white-space: nowrap;
}
.logo .n { color: #eafcff; text-shadow: var(--glow-c); }

.nav ul { display: flex; gap: 2px 14px; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--vhs);
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cyan);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-shadow: var(--glow-c); }
.nav a[aria-current="page"]::before { content: "\25B6\00a0"; font-size: .8em; }
@media (min-width: 760px) {
  .logo { font-size: 1.65rem; }
  .nav ul { gap: 4px 26px; }
  .nav a { font-size: 1.45rem; }
}

/* ---------- Shared type ---------- */

.label {
  font-family: var(--vhs);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(45, 226, 255, .55);
}
.label::before { content: "\25B6\00a0"; }

.chrome {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .chrome { color: #fff; -webkit-text-fill-color: #fff; }
}

.h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 6vw, 4.1rem);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 10px 0 22px;
  filter: drop-shadow(0 2px 0 rgba(255, 43, 214, .9)) drop-shadow(0 0 18px rgba(255, 43, 214, .35));
  padding-right: .1em;
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--vhs);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px 10px;
  border: 2px solid var(--magenta);
  border-radius: 6px;
  background: rgba(255, 43, 214, .12);
  box-shadow: 0 0 14px rgba(255, 43, 214, .55), inset 0 0 14px rgba(255, 43, 214, .3);
  text-shadow: 0 0 8px var(--magenta);
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-neon:hover { background: var(--magenta); color: var(--night); text-shadow: none; box-shadow: 0 0 26px var(--magenta); }
.btn-neon .dot { color: var(--rec); text-shadow: 0 0 8px var(--rec); }
.btn-neon:hover .dot { color: var(--night); text-shadow: none; }
.btn-neon--cyan { border-color: var(--cyan); background: rgba(45, 226, 255, .1); box-shadow: 0 0 14px rgba(45, 226, 255, .45), inset 0 0 14px rgba(45, 226, 255, .2); text-shadow: 0 0 8px var(--cyan); }
.btn-neon--cyan:hover { background: var(--cyan); box-shadow: 0 0 26px var(--cyan); }

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #04010d 0%, #10053a 45%, #24084f 100%);
}

.stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .95) 0 1px, transparent 1.6px) 0 0 / 97px 89px,
    radial-gradient(circle, rgba(45, 226, 255, .85) 0 1px, transparent 1.6px) 40px 22px / 151px 133px,
    radial-gradient(circle, rgba(255, 43, 214, .85) 0 1px, transparent 1.6px) 13px 61px / 211px 173px,
    radial-gradient(circle, rgba(255, 255, 255, .7) 0 .8px, transparent 1.3px) 70px 9px / 61px 71px;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 92%);
}

.stage {
  position: relative;
  width: 100%;
  height: clamp(300px, 52vw, 500px);
  margin-top: 8px;
  background: linear-gradient(180deg, rgba(36, 8, 79, 0) 0%, rgba(110, 18, 110, .65) 36%, #c4278e 57%, #ff5fb0 60%, var(--night) 60.2%);
}
.sun {
  position: absolute;
  left: 50%;
  bottom: 40%;
  width: min(84vw, 540px);
  transform: translateX(-50%);
}

.floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  overflow: hidden;
  perspective: 240px;
  perspective-origin: 50% 0%;
  background: linear-gradient(180deg, rgba(255, 43, 214, .28), rgba(10, 4, 32, 0) 55%);
}
.floor::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 2;
  background: #ffb3ef;
  box-shadow: 0 0 10px 2px var(--magenta), 0 0 30px 6px rgba(255, 43, 214, .6);
}
.floor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 4, 32, .85) 0%, rgba(10, 4, 32, 0) 22%, rgba(10, 4, 32, 0) 70%, var(--night) 100%);
}
.floor-grid {
  position: absolute;
  top: 0;
  left: -100%;
  right: -100%;
  height: 260%;
  transform-origin: 50% 0;
  transform: rotateX(64deg);
  background-image:
    linear-gradient(to right, rgba(255, 43, 214, .95) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(45, 226, 255, .9) 2px, transparent 2px);
  background-size: 64px 64px;
  background-position: 50% 0;
}

.tracking {
  position: absolute;
  left: 0; right: 0;
  top: -10%;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .16) 40%, rgba(45, 226, 255, .12) 60%, transparent);
  mix-blend-mode: screen;
  opacity: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  padding: clamp(72px, 11vh, 128px) 16px 0;
}
.hero-sub {
  max-width: 44ch;
  margin: 14px auto 0;
  font-size: 1.06rem;
  line-height: 1.6;
  font-weight: 400;
  color: #fff;
}

.logo-neon {
  margin: 0;
  font-family: var(--neon);
  font-weight: 400;
  font-size: clamp(3.4rem, 17vw, 10.5rem);
  line-height: 1;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: var(--glow-m);
}
.logo-neon .n { color: #eafcff; text-shadow: var(--glow-c); }

.hook {
  margin: 18px auto 0;
  max-width: 17ch;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.55rem, 5.4vw, 3.3rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -.005em;
  filter: drop-shadow(0 2px 0 var(--magenta)) drop-shadow(0 4px 16px rgba(255, 43, 214, .5));
  padding: 0 .1em;
}

.coming {
  margin-top: 18px;
  font-family: var(--vhs);
  font-size: clamp(1.3rem, 3.6vw, 1.9rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: var(--glow-c);
}
.coming .nw { white-space: nowrap; }
@media (min-width: 600px) { .coming { letter-spacing: .14em; } }
.cursor {
  display: inline-block;
  width: .55em;
  height: .9em;
  margin-left: .2em;
  vertical-align: -.08em;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* VHS on-screen display */
.osd {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  font-family: var(--vhs);
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  line-height: 1;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 2px 0 0 rgba(255, 43, 214, .85), -2px 0 0 rgba(45, 226, 255, .85);
  text-align: left;
}
.osd > * { position: absolute; }
.osd-tl { top: 16px; left: 16px; }
.osd-tr { top: 16px; right: 16px; text-align: right; }
.osd-bl { bottom: 16px; left: 16px; }
.osd-br { bottom: 16px; right: 16px; text-align: right; }
.osd small { display: block; font-size: .8em; margin-top: 4px; }
@media (min-width: 760px) {
  .osd-tl { top: 24px; left: 32px; }
  .osd-tr { top: 24px; right: 32px; }
  .osd-bl { bottom: 24px; left: 32px; }
  .osd-br { bottom: 24px; right: 32px; }
}
.osd-br { display: none; }
@media (min-width: 600px) { .osd-br { display: block; } }

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

.section { position: relative; padding: 84px 0; }
@media (min-width: 760px) { .section { padding: 120px 0; } }

.intro { max-width: 60ch; color: var(--text); }
.intro + .intro { margin-top: 14px; }

.divider {
  height: 2px;
  max-width: var(--max);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--magenta) 20%, var(--cyan) 80%, transparent);
  box-shadow: 0 0 12px rgba(255, 43, 214, .5);
}

/* Menu: late-night program guide */
.guide-head { display: grid; gap: 36px; align-items: center; margin-bottom: 44px; }
@media (min-width: 900px) { .guide-head { grid-template-columns: 1.25fr .75fr; gap: 56px; } }
.tv {
  position: relative;
  margin: 0 auto;
  width: min(100%, 440px);
  padding: 22px 22px 54px;
  border-radius: 28px;
  background: linear-gradient(160deg, #2b1a63, #170c3e 60%, #0e0628);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px rgba(255, 43, 214, .25);
}
.tv::before, .tv::after {
  content: "";
  position: absolute;
  bottom: 18px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8d7bd0, #2a1a63 70%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35);
}
.tv::before { right: 30px; }
.tv::after { right: 60px; }
.tv-brand {
  position: absolute;
  left: 30px;
  bottom: 16px;
  font-family: var(--vhs);
  font-size: 1.1rem;
  letter-spacing: .2em;
  color: var(--muted);
}
.screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 22px / 26px;
  background: radial-gradient(120% 120% at 50% 40%, #1b2a6b 0%, #0a0f33 60%, #04040f 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .9), inset 0 0 0 3px #05020f;
  display: grid;
  place-items: center;
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.screen-osd {
  position: absolute;
  top: 12px; left: 16px; right: 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--vhs);
  font-size: 1.15rem;
  color: #fff;
  text-shadow: 2px 0 0 rgba(255, 43, 214, .8), -2px 0 0 rgba(45, 226, 255, .8);
}
.channels { position: relative; height: 3.2em; overflow: hidden; width: 100%; text-align: center; font-size: clamp(1.7rem, 5vw, 2.3rem); }
.channels ul { list-style: none; margin: 0; padding: 0; }
.channels li {
  height: 3.2em;
  display: grid;
  place-items: center;
  font-family: var(--vhs);
  font-size: 1em;
  line-height: 1.05;
  color: #eafcff;
  text-shadow: var(--glow-c);
}
.channels li span { display: block; font-size: .55em; color: var(--magenta); text-shadow: 0 0 8px var(--magenta); letter-spacing: .1em; }


.guide {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) { .guide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }

.chan {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(45, 226, 255, .28);
  background: linear-gradient(180deg, rgba(31, 15, 80, .85), rgba(20, 10, 54, .85));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.chan:hover {
  transform: translateY(-3px);
  border-color: var(--magenta);
  box-shadow: 0 0 0 1px var(--magenta), 0 0 28px rgba(255, 43, 214, .35);
}
.chan-num {
  font-family: var(--vhs);
  font-size: 3rem;
  line-height: .9;
  color: #eafcff;
  text-shadow: var(--glow-c);
  text-align: center;
}
.chan-num span { display: block; font-size: .42em; letter-spacing: .2em; color: var(--cyan); text-shadow: none; }
.chan-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #fff;
}
.chan-sub {
  margin-top: 2px;
  font-family: var(--vhs);
  font-size: 1.2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ff9be8;
}
.chan-desc { margin-top: 8px; font-size: 1rem; line-height: 1.6; }
.guide-note { margin-top: 28px; font-family: var(--vhs); font-size: 1.25rem; letter-spacing: .05em; color: var(--muted); }

/* Story: timecoded scroll */
.story-grid { display: grid; gap: 44px; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
  .story-aside { position: sticky; top: 96px; }
}
.story-aside .intro { margin-bottom: 28px; }
.cassette { width: min(100%, 420px); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); }
.cassette .reel { transform-box: fill-box; transform-origin: center; }

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
  background: linear-gradient(180deg, var(--magenta), var(--cyan)) 6px 0 / 2px 100% no-repeat;
}
.timeline li { position: relative; padding: 0 0 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.tc {
  font-family: var(--vhs);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: .08em;
  color: #ff9be8;
  text-shadow: 0 0 8px rgba(255, 43, 214, .6);
}
.timeline h3 {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}
.timeline p:not(.tc) { max-width: 52ch; }

/* Waitlist VCR */
.vcr {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 18px 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2a1d66 0%, #1a0f45 55%, #120936 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 60px rgba(255, 43, 214, .15);
}
@media (min-width: 760px) { .vcr { padding: 30px 36px 34px; } }
.vcr-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.vcr-slot {
  flex: 1 1 200px;
  height: 14px;
  border-radius: 4px;
  background: #05020f;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .1);
}
.vcr-display {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #05020f;
  border: 1px solid rgba(45, 226, 255, .3);
  font-family: var(--vhs);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--cyan);
  text-shadow: var(--glow-c);
}
.rec-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px var(--rec);
}
.vcr h2 { margin-top: 22px; }
.vcr .intro { margin-bottom: 20px; }

.vcr-form {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) { .vcr-form { grid-template-columns: minmax(0, 1fr) auto; } }
.vcr-form input[type="email"] {
  min-width: 0;
  width: 100%;
  padding: 12px 14px 10px;
  border-radius: 8px;
  border: 2px solid var(--cyan);
  background: #05020f;
  color: #fff;
  font-family: var(--vhs);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: .04em;
  box-shadow: inset 0 0 14px rgba(45, 226, 255, .18);
}
.vcr-form input[type="email"]::placeholder { color: #9f92d6; }
.vcr-form input[type="email"]:focus-visible { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(45, 226, 255, .45), inset 0 0 14px rgba(45, 226, 255, .3); }
.vcr-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--magenta);
  color: #14002a;
  font-family: var(--vhs);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 43, 214, .65), inset 0 -3px 0 rgba(0, 0, 0, .25);
  transition: transform .1s ease, box-shadow .15s ease;
}
.vcr-form button:hover { box-shadow: 0 0 32px rgba(255, 43, 214, .95), inset 0 -3px 0 rgba(0, 0, 0, .25); }
.vcr-form button:active { transform: translateY(2px); }
.vcr-form button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.vcr-form button:disabled { opacity: .65; cursor: progress; }
.vcr-form button .dot { color: var(--rec); }
.vcr-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  font-family: var(--vhs);
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--cyan);
}
.vcr-status[data-state="error"] { color: #ff8fb1; }
.vcr-status[data-state="ok"] { color: #fff; text-shadow: var(--glow-c); }
.vcr-fine { margin-top: 14px; font-size: .95rem; color: var(--muted); }

/* Blog cards: VHS tapes */
.tapes { display: grid; gap: 24px; }
@media (min-width: 860px) { .tapes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tape {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1b1240, #0f0928);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tape:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .6), 0 0 26px rgba(255, 43, 214, .3); }
.tape-label {
  position: relative;
  flex: 1;
  padding: 22px 16px 16px;
  border-radius: 4px;
  background: #f4eeff;
  color: var(--label-ink);
  overflow: hidden;
}
.tape-label::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--magenta) 0 25%, var(--sun-b) 25% 50%, var(--sun-a) 50% 75%, var(--cyan) 75%);
}
.tape-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--vhs);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: .05em;
  color: #4a2a86;
}
.tape h3 {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
}
.tape h3 a { color: var(--label-ink); text-decoration: none; }
.tape h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.tape:hover h3 a { text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 3px; }
.tape-excerpt { margin-top: 8px; font-size: .98rem; line-height: 1.55; font-weight: 400; color: #33205e; }
.tape-window {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 18% 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #05020f;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9);
}
.tape-window i {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: repeating-conic-gradient(#3b2a78 0 30deg, #120936 30deg 60deg);
  box-shadow: 0 0 0 3px #2b1a63;
}
.tape-window b { flex: 1; height: 10px; margin: 0 10px; border-radius: 4px; background: #3a1d22; }

.tape-run {
  margin-top: 10px;
  text-align: center;
  font-family: var(--vhs);
  font-size: 1.1rem;
  letter-spacing: .12em;
  color: var(--muted);
}
.all-link { margin-top: 36px; text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding: 56px 16px 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 43, 214, .35);
  background: linear-gradient(180deg, rgba(255, 43, 214, .06), rgba(10, 4, 32, 0));
}
.footer-logo {
  font-family: var(--neon);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  line-height: 1;
  color: #fff;
  text-shadow: var(--glow-m);
}
.footer-logo .n { color: #eafcff; text-shadow: var(--glow-c); }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; list-style: none; margin: 22px 0 0; padding: 0; }
.footer-nav a { font-family: var(--vhs); font-size: 1.45rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-shadow: var(--glow-c); }
.footer-copy { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.footer-rewind { margin-top: 6px; font-family: var(--vhs); font-size: 1.2rem; letter-spacing: .12em; color: #9f92d6; }

/* ---------- Page head (blog index, post) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 72px 0 120px;
  text-align: center;
  background: linear-gradient(180deg, #04010d 0%, #1a0745 55%, #5a0f6e 76%, var(--night) 76.2%);
}
.page-hero .floor { height: 24%; }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero--post { padding-bottom: 150px; }
.tape-end {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px dashed rgba(205, 190, 242, .35);
  font-family: var(--vhs);
  font-size: 1.25rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-align: center;
}
.page-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 11vw, 7rem);
  line-height: .95;
  letter-spacing: -.01em;
  filter: drop-shadow(0 3px 0 var(--magenta)) drop-shadow(0 0 22px rgba(255, 43, 214, .45));
  padding: 0 .1em;
}
.page-sub { max-width: 46ch; margin: 18px auto 0; font-size: 1.12rem; color: #fff; }

.shelf { display: grid; gap: 22px; }
.shelf .tape { flex-direction: row; gap: 16px; align-items: stretch; }
.shelf .tape-window { flex-direction: column; justify-content: center; margin: 0; padding: 14px 8px; border-radius: 14px; gap: 10px; }
.shelf .tape-window b { width: 8px; height: 30px; flex: none; margin: 0; }
.shelf .tape h2 { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.1; }
.shelf .tape h2 a { color: var(--label-ink); text-decoration: none; }
.shelf .tape h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.shelf .tape:hover h2 a { text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 3px; }
@media (max-width: 559px) { .shelf .tape-window { display: none; } }

/* ---------- Post ---------- */

.post-head { text-align: center; }
.osd-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  font-family: var(--vhs);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  letter-spacing: .08em;
  color: #fff;
  text-shadow: 2px 0 0 rgba(255, 43, 214, .85), -2px 0 0 rgba(45, 226, 255, .85);
}
.post-title {
  max-width: 18ch;
  margin: 18px auto 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.01em;
  filter: drop-shadow(0 3px 0 var(--magenta)) drop-shadow(0 0 22px rgba(255, 43, 214, .45));
  padding: 0 .1em;
}
.post-dek { max-width: 52ch; margin: 18px auto 0; font-size: 1.15rem; line-height: 1.55; color: #fff; font-weight: 400; }
.crumb { margin-bottom: 20px; font-family: var(--vhs); font-size: 1.3rem; letter-spacing: .06em; }
.crumb a { color: var(--cyan); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.prose-panel {
  position: relative;
  max-width: 820px;
  margin: -64px auto 0;
  padding: 32px 20px 40px;
  border-radius: 16px;
  background: rgba(20, 10, 54, .92);
  border: 1px solid rgba(45, 226, 255, .22);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
}
@media (min-width: 760px) { .prose-panel { padding: 48px 64px 56px; } }

.prose { font-size: 1.125rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose .first { font-size: 1.3rem; line-height: 1.6; font-weight: 400; color: #fff; }
.prose h2 {
  margin-top: 2em;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 43, 214, .6);
}
.prose h2 .tc {
  display: block;
  margin-bottom: 4px;
  font-family: var(--vhs);
  font-style: normal;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .1em;
  color: var(--cyan);
  text-shadow: none;
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--magenta); }
.prose ol li::marker { font-family: var(--vhs); font-size: 1.2em; }
.prose em { font-style: italic; color: #fff; }
.prose a { color: var(--cyan); text-underline-offset: 3px; }

.post-cta { padding: 72px 0 24px; }
.post-nav { padding: 32px 0 96px; }
.post-nav ul { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; list-style: none; margin: 0; padding: 0; }

/* ---------- 404: no signal ---------- */

.nosignal {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  padding: 72px 16px;
  text-align: center;
}
.static {
  position: absolute;
  inset: -50%;
  z-index: -2;
  opacity: .22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bars {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 36%;
  z-index: -1;
  opacity: .22;
  background: linear-gradient(90deg, #c0c0c0 0 14.28%, #c0c000 14.28% 28.56%, #00c0c0 28.56% 42.84%, #00c000 42.84% 57.12%, #c000c0 57.12% 71.4%, #c00000 71.4% 85.68%, #0000c0 85.68%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.nosignal h1 {
  font-family: var(--vhs);
  font-weight: 400;
  font-size: clamp(3.5rem, 16vw, 9rem);
  line-height: .9;
  letter-spacing: .08em;
  color: #fff;
  text-shadow: 4px 0 0 rgba(255, 43, 214, .9), -4px 0 0 rgba(45, 226, 255, .9);
}
.nosignal .code { font-family: var(--neon); font-size: clamp(2.4rem, 10vw, 5rem); color: #fff; text-shadow: var(--glow-m); }
.nosignal p { max-width: 44ch; margin: 18px auto 0; color: #fff; font-weight: 400; }
.nosignal .hero-actions { margin-top: 32px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .floor-grid { animation: grid-run 1.1s linear infinite; }
  .stars { animation: twinkle 4s ease-in-out infinite alternate; }
  .tracking { animation: track 8s linear infinite; }
  .logo-neon { animation: flicker 7s linear infinite; }
  .cursor, .rec-dot { animation: blink 1.1s steps(2, start) infinite; }
  .steam path { animation: steam 3.2s ease-in-out infinite; }
  .steam path:nth-child(2) { animation-delay: -1.1s; }
  .steam path:nth-child(3) { animation-delay: -2.2s; }
  .channels ul { animation: channels 9s steps(1, end) infinite; }
  .cassette .reel { animation: spin 3.5s linear infinite; }
  .static { animation: static .5s steps(4) infinite; }
  .nosignal h1 { animation: jitter 2.4s steps(1) infinite; }
}

@keyframes grid-run { to { background-position: 50% 64px; } }
@keyframes twinkle { from { opacity: .7; } to { opacity: 1; } }
@keyframes track {
  0% { top: -10%; opacity: 0; }
  4% { opacity: .9; }
  22% { top: 105%; opacity: .7; }
  23%, 100% { top: 105%; opacity: 0; }
}
@keyframes flicker {
  0%, 18%, 20.5%, 22%, 61%, 63%, 100% { opacity: 1; }
  19%, 21.5%, 62% { opacity: .55; }
}
@keyframes blink { to { visibility: hidden; } }
@keyframes steam {
  0% { transform: translateY(6px); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: translateY(-26px); opacity: 0; }
}
@keyframes channels {
  0% { transform: translateY(0); }
  33.333% { transform: translateY(-3.2em); }
  66.666% { transform: translateY(-6.4em); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes static {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-8%, 5%); }
  50% { transform: translate(6%, -7%); }
  75% { transform: translate(-4%, -3%); }
}
@keyframes jitter {
  0%, 92%, 100% { transform: none; }
  93% { transform: translateX(-4px) skewX(-6deg); }
  96% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
