@font-face {
  font-family: '3rd Man';
  src: url('../fonts/3rd-Man.woff') format('woff'), url('../fonts/3rd-Man.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #060102;
  --ember: #ff2a35;
  --blood: #7d0f1a;
  --bone: #efe6e0;
  --ash: #a39893;
  --panel: rgba(14, 3, 5, 0.74);
  --line: rgba(255, 42, 53, 0.3);
  --display: '3rd Man', 'Arial Narrow', Impact, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--bone);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

/* ---------- living background ---------- */
#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -2;
}
.veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(6, 1, 2, 0) 0%, rgba(6, 1, 2, 0.6) 85%),
    rgba(6, 1, 2, 0.12);
}

a { color: var(--bone); text-decoration-color: var(--ember); text-underline-offset: 4px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ember); color: #000; padding: 8px 14px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- 3rd Man headline treatment: black outline, no faux bold ---------- */
.brand, .hero h1, .page h2, .card h3, .prose blockquote, .tile .ph {
  font-synthesis: none;
  -webkit-text-stroke: 0.06em #000;
  paint-order: stroke fill;
  stroke-linejoin: round;
}
.prose cite { -webkit-text-stroke: 0; paint-order: normal; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px;
  background: linear-gradient(rgba(6, 1, 2, 0.92), rgba(6, 1, 2, 0.55));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand {
  font-family: var(--display); font-weight: 400; font-size: 1.6rem;
  letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
}
#nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; min-width: 0; }
#nav::-webkit-scrollbar { display: none; }
#nav a {
  padding: 8px 12px; text-decoration: none; color: var(--ash);
  font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap;
}
#nav a:hover { color: var(--bone); }
#nav a[aria-current] { color: var(--bone); border-bottom-color: var(--ember); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 9vh, 110px) 16px 24px; max-width: 1200px; margin: 0 auto; }
.hero h1 {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(6.5rem, 27vw, 19rem);
  line-height: 0.82; letter-spacing: 0.01em; text-transform: uppercase;
  color: var(--bone);
  /* soft red glow only; the sharp edge is the black outline */
  text-shadow: 0 0 34px rgba(255, 42, 53, 0.5), 0 0 80px rgba(255, 42, 53, 0.25);
}
.flicker { animation: flicker 1.1s steps(1, end) 1 both; }
@keyframes flicker {
  0% { opacity: 0; } 8% { opacity: 1; } 12% { opacity: 0.2; } 18% { opacity: 1; }
  24% { opacity: 0.4; } 30% { opacity: 1; } 100% { opacity: 1; }
}
.lede {
  max-width: 34ch; margin: 22px 0 0; font-size: clamp(1.1rem, 2.6vw, 1.4rem); color: var(--bone);
  text-shadow: 0 0 6px #060102, 0 0 14px #060102, 0 0 22px #060102;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.btn {
  display: inline-block; padding: 12px 22px; border: 1px solid var(--ember);
  color: var(--bone); background: rgba(6, 1, 2, 0.6); text-decoration: none;
  font-weight: 700; border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--ember); color: #000; }
.btn-primary { background: var(--ember); color: #000; }
.btn-primary:hover { background: var(--bone); border-color: var(--bone); }

/* ---------- thumbnail wall ---------- */
.wall {
  position: relative; overflow: hidden; padding: 36px 0 28px; perspective: 1400px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.wall-inner {
  display: flex; flex-direction: column; gap: 14px;
  transform: rotateX(9deg) rotateZ(-3deg) scale(1.1);
  transform-origin: 50% 40%;
}
.row { display: flex; gap: 14px; width: max-content; animation: slide var(--dur, 70s) linear infinite; }
.row.rev { animation-direction: reverse; }
.wall:hover .row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.wall-note { text-align: center; margin: 4px 0 56px; color: var(--ash); }

.tile {
  position: relative; display: block; flex: none; padding: 0; cursor: pointer;
  width: clamp(210px, 25vw, 340px); aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  background: #120305; color: var(--bone); font: inherit; text-align: left;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
.tile img, .tile .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .ph {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2a060b, #090102 60%, #4a0a12);
  font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: rgba(255, 42, 53, 0.7);
}
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
  font-weight: 700; font-size: 0.9rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(6, 1, 2, 0.94));
  opacity: 0; transition: opacity 0.2s;
}
.tile:hover, .tile:focus-visible {
  transform: scale(1.07); z-index: 3; border-color: var(--ember);
  box-shadow: 0 0 26px rgba(255, 42, 53, 0.55);
}
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; }

/* ---------- inner pages ---------- */
.page { max-width: 1100px; margin: 0 auto; padding: 48px 16px 64px; }
.page h2 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 10vw, 6rem); line-height: 0.9; text-transform: uppercase;
}
.page h2 { text-shadow: 0 0 18px #060102, 0 0 36px #060102; }
.page-lede {
  max-width: 56ch; color: var(--bone); margin: 12px 0 28px;
  text-shadow: 0 0 6px #060102, 0 0 14px #060102, 0 0 22px #060102;
}
.prose p { text-shadow: 0 0 6px #060102, 0 0 14px #060102, 0 0 22px #060102; }

.search input {
  width: 100%; max-width: 420px; padding: 12px 14px;
  background: var(--panel); color: var(--bone);
  border: 1px solid var(--line); border-radius: 2px; font: inherit;
}
.search input::placeholder { color: var(--ash); }
.grid {
  display: grid; gap: 16px; margin-top: 22px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.grid .tile { width: 100%; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px;
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; }
.card p { margin: 0; color: var(--bone); }
.card .meta { color: var(--ash); font-size: 0.9rem; }
.card .status { margin-top: auto; color: var(--ash); font-weight: 500; }
.card .btn { align-self: flex-start; margin-top: auto; }
.empty { color: var(--ash); margin-top: 18px; }

.prose p { max-width: 62ch; margin: 18px 0 0; }
.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 20px; max-width: 46ch;
  border-left: 3px solid var(--ember);
  font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15;
}
.prose cite { display: block; margin-top: 10px; font: 400 0.95rem var(--body); color: var(--ash); font-style: normal; }

/* ---------- footer ---------- */
.foot { padding: 28px 16px 40px; text-align: center; border-top: 1px solid var(--line); background: rgba(6, 1, 2, 0.8); }
.foot p { margin: 0; }
.foot .fine { margin-top: 6px; color: var(--ash); font-size: 0.85rem; }

/* ---------- player ---------- */
dialog#player {
  width: min(960px, 94vw); padding: 0; border: 1px solid var(--ember);
  background: var(--void); color: var(--bone);
}
dialog#player::backdrop { background: rgba(0, 0, 0, 0.82); }
.player-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
.player-bar button {
  background: none; border: 1px solid var(--line); color: var(--bone);
  padding: 6px 14px; font: inherit; cursor: pointer;
}
.player-bar button:hover { border-color: var(--ember); }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

[hidden] { display: none !important; }

/* ---------- reduced motion: no scrolling wall, no flicker ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flicker { animation: none; }
  .row { animation: none; }
  .wall { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .wall-inner { transform: none; }
}

@media (max-width: 560px) {
  .top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .wall-inner { transform: rotateX(6deg) rotateZ(-2deg) scale(1.15); }
}

/* =====================================================================
   Home: ambient rabbit hole + title
   ===================================================================== */
.home-hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  min-height: calc(100vh - 70px); min-height: calc(100svh - 70px);
  display: grid; place-items: center; padding: 24px 16px 48px;
}
.ambient {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0.35) 22%, rgba(6, 1, 2, 0) 55%),
    radial-gradient(circle at 50% 50%, rgba(6, 1, 2, 0) 50%, rgba(6, 1, 2, 0.75) 100%);
}
.ambient .hole-world { opacity: 1; }
.ambient .hole-tile { cursor: default; }
.home-copy > * { transition: opacity 0.6s; }
.home-copy h1 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(3.6rem, 12.5vw, 10rem);
  line-height: 0.82; letter-spacing: 0.01em; text-transform: uppercase;
  color: var(--bone); font-synthesis: none;
  -webkit-text-stroke: 0.06em #000; paint-order: stroke fill; stroke-linejoin: round;
  text-shadow: 0 0 34px rgba(255, 42, 53, 0.5), 0 0 80px rgba(255, 42, 53, 0.25);
}
.home-copy .actions { margin-top: 26px; }
.home-dj {
  display: block; margin: 0 auto -2.2vmin; width: auto; height: auto;
  max-width: min(520px, 70vw); max-height: 30svh; object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(255, 42, 53, 0.55)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.7));
  animation: djfloat 7s ease-in-out infinite;
}
@keyframes djfloat { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .home-dj { animation: none; } }
.home-copy .actions { justify-content: center; }

.pill {
  display: inline-block; padding: 7px 16px; background: rgba(6, 1, 2, 0.72); color: var(--bone);
  border: 1px solid var(--line); border-radius: 999px; font: 500 0.9rem var(--body);
  text-decoration: none; cursor: pointer;
}
.pill:hover { border-color: var(--ember); color: #fff; }

/* =====================================================================
   The television: dark oxblood plastic, worn, lit only by its own screen
   ===================================================================== */
.tv-stage {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  --ant: clamp(54px, 10vw, 100px); padding-top: calc(var(--ant) * 0.9); margin-bottom: 36px;
}
.tv { position: relative; z-index: 1; width: min(100%, 920px); transform-origin: 0 0; will-change: transform; }
@supports (width: 1svh) {
  .tv { width: min(100%, 920px, max(300px, calc((100svh - 260px) * 1.42))); }
}
/* contact shadow on the floor */
.tv::after {
  content: ''; position: absolute; left: 4%; right: 4%; bottom: -2.2%; height: 5%; z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.95), transparent 70%); filter: blur(7px);
}

/* rabbit ears */
.tv-ant { position: absolute; left: 50%; top: 0; width: 0; height: 0; }
.tv-ant::before, .tv-ant::after {
  content: ''; position: absolute; left: -1.5px; bottom: 0; width: 3px; height: var(--ant);
  background:
    repeating-linear-gradient(0deg, transparent 0 31%, rgba(0, 0, 0, 0.55) 31% 33%),
    linear-gradient(90deg, #4a4644, #cfc8c3 45%, #5b5754);
  border-radius: 2px; transform-origin: 50% 100%; box-shadow: 0 0 6px rgba(255, 42, 53, 0.12);
}
.tv-ant::before { transform: rotate(-29deg); }
.tv-ant::after { transform: rotate(23deg); height: calc(var(--ant) * 0.93); }
.tv-ant i {
  position: absolute; left: -26px; bottom: -3px; width: 52px; height: 15px;
  border-radius: 26px 26px 2px 2px;
  background: radial-gradient(ellipse at 50% 100%, #3b3735, #0b0a0a 72%); box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.07) inset;
}

/* cabinet */
.tv-body {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 22%; gap: 3%;
  padding: 5.2% 4.6% 5.8%;
  border-radius: 3.4% / 4.8%;
  background:
    linear-gradient(115deg, rgba(255, 150, 140, 0.16) 0%, transparent 16%, transparent 66%, rgba(0, 0, 0, 0.4) 100%),
    radial-gradient(ellipse at 0% 100%, rgba(0, 0, 0, 0.55), transparent 38%),
    radial-gradient(ellipse at 100% 100%, rgba(0, 0, 0, 0.55), transparent 38%),
    linear-gradient(170deg, #7a1019 0%, #560a11 42%, #32060a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 170, 160, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.65),
    inset 2px 0 0 rgba(255, 120, 110, 0.07), inset -2px 0 0 rgba(0, 0, 0, 0.45),
    0 0 0 2px #060102, 0 34px 70px rgba(0, 0, 0, 0.9), 0 0 130px rgba(255, 42, 53, 0.14);
}
/* plastic grain, scuffs, and screws */
.tv-body::before {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background:
    var(--noise) 0 0 / 128px 128px,
    repeating-linear-gradient(112deg, transparent 0 46px, rgba(255, 190, 180, 0.05) 46px 47px, transparent 47px 133px);
  mix-blend-mode: overlay; opacity: 0.38;
}
.tv-body::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(circle at 2.2% 3.6%, #1b1717 0 0.38%, rgba(255, 255, 255, 0.18) 0.4% 0.5%, transparent 0.55%),
    radial-gradient(circle at 97.8% 3.6%, #1b1717 0 0.38%, rgba(255, 255, 255, 0.18) 0.4% 0.5%, transparent 0.55%),
    radial-gradient(circle at 2.2% 96.4%, #1b1717 0 0.38%, rgba(255, 255, 255, 0.18) 0.4% 0.5%, transparent 0.55%),
    radial-gradient(circle at 97.8% 96.4%, #1b1717 0 0.38%, rgba(255, 255, 255, 0.18) 0.4% 0.5%, transparent 0.55%),
    linear-gradient(98deg, transparent 28%, rgba(255, 200, 190, 0.07) 28.2%, transparent 28.5%),
    linear-gradient(72deg, transparent 61%, rgba(255, 200, 190, 0.06) 61.15%, transparent 61.4%);
}
.tv-vents {
  position: absolute; left: 6%; top: 1.9%; width: 34%; height: 1.5%; opacity: 0.85;
  background: repeating-linear-gradient(90deg, #060102 0 3px, transparent 3px 8px);
}

/* recessed bezel */
.tv-frame {
  align-self: center; position: relative; padding: 3%; border-radius: 8% / 10%;
  background: linear-gradient(150deg, #0b0203, #190508 55%, #090203);
  box-shadow:
    inset 0 8px 18px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 1px 0 rgba(255, 150, 140, 0.22), 0 -1px 0 #000, 0 0 0 3px rgba(0, 0, 0, 0.55);
}

/* the glass */
.tv-screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; cursor: pointer;
  border-radius: 9% / 11%; background: #000;
  box-shadow: 0 0 70px 14px rgba(255, 215, 205, 0.16), 0 0 160px 40px rgba(255, 42, 53, 0.1);
}
.tv-static {
  position: absolute; inset: -50%; z-index: 2; opacity: 0; pointer-events: none;
  background: var(--noise) 0 0 / 128px 128px; filter: contrast(1.35) brightness(0.92);
  animation: tvnoise 0.3s steps(6) infinite; transition: opacity 0.25s;
}
@keyframes tvnoise {
  0% { transform: translate(0, 0); } 17% { transform: translate(-9%, 6%); } 33% { transform: translate(7%, -11%); }
  50% { transform: translate(-13%, -4%); } 67% { transform: translate(10%, 9%); } 83% { transform: translate(-4%, 13%); } 100% { transform: translate(0, 0); }
}
.tv-screen.tuning .tv-static { opacity: 0.95; }
.tv-screen.glitch .tv-static { opacity: 0.8; }

.tv-roll {
  position: absolute; left: 0; right: 0; top: 0; height: 26%; z-index: 3; pointer-events: none;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.1) 50%, transparent);
  animation: tvroll 6.5s linear infinite;
}
@keyframes tvroll { from { transform: translateY(-110%); } to { transform: translateY(420%); } }

.tv-glass { position: absolute; inset: 0; z-index: 4; pointer-events: none; transition: opacity 1.2s; animation: tvflick 5s steps(1) infinite; }
@keyframes tvflick { 0% { opacity: 1; } 41% { opacity: 0.86; } 43% { opacity: 1; } 78% { opacity: 0.92; } 80% { opacity: 1; } }
.tv-glass::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.32) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 0, 0, 0.07) 0 1px, rgba(0, 255, 0, 0.05) 1px 2px, rgba(0, 0, 255, 0.07) 2px 3px);
}
.tv-glass::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 38%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(ellipse at 24% 14%, rgba(255, 255, 255, 0.17), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 30%);
  box-shadow: inset 0 0 50px 14px rgba(0, 0, 0, 0.9);
}
.tv-screen.zooming .tv-glass { opacity: 0; animation: none; }

.tv-screen.tuning::after {
  content: 'Videos'; position: absolute; left: 8%; top: 9%; z-index: 5; pointer-events: none;
  font-family: var(--display); font-size: clamp(0.9rem, 2.6vw, 1.7rem); letter-spacing: 0.06em; color: #d9ffd9;
  text-shadow: 0 0 6px rgba(120, 255, 120, 0.8); text-transform: uppercase;
}

/* control panel */
.tv-panel {
  position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 6.5%;
  padding: 9% 7% 8%; border-radius: 10px;
  background: linear-gradient(180deg, #1c0508, #120305);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 1px 0 rgba(255, 150, 140, 0.18), 0 -1px 0 #000;
}
.tv-badge {
  width: 100%; padding: 6% 4%; text-align: center; text-transform: uppercase; line-height: 0.92;
  font-family: var(--display); font-size: clamp(0.7rem, 1.9vw, 1.25rem); color: #b5a8a1;
  background: linear-gradient(180deg, #2d2b2a, #121110); border: 1px solid #000; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 0 rgba(255, 150, 140, 0.16);
  text-shadow: 0 1px 0 #000;
}
.tv-knob {
  position: relative; width: 64%; aspect-ratio: 1; border-radius: 50%; flex: none;
  background: repeating-conic-gradient(#2d2c2c 0 5deg, #090909 5deg 10deg);
  box-shadow: 0 9px 12px rgba(0, 0, 0, 0.8), 0 0 0 3px #050102, inset 0 0 0 2px rgba(255, 255, 255, 0.07);
  transform: rotate(var(--rot, 25deg)); transition: transform 0.4s;
}
.tv-knob::before {
  content: ''; position: absolute; inset: 15%; border-radius: 50%;
  background: conic-gradient(from 40deg, #8c8886, #e4dfdc, #6c6967, #cdc7c3, #7c7977, #b9b3af, #8c8886);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.55), inset 0 -7px 9px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.85);
}
.tv-knob::after {
  content: ''; position: absolute; left: 50%; top: 5%; width: 6%; height: 21%; transform: translateX(-50%);
  background: #d9cbc3; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.tv-knob-b { --rot: -38deg; width: 50%; }
.tv-grille {
  flex: 1; width: 84%; min-height: 26px; border-radius: 5px;
  background: radial-gradient(circle, #000 0 36%, transparent 40%) 0 0 / 9px 9px, #2f090e;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 150, 140, 0.16);
}
.tv-led {
  width: 7%; aspect-ratio: 1; border-radius: 50%; flex: none; background: #ff2a35;
  box-shadow: 0 0 6px 2px rgba(255, 42, 53, 0.85), 0 0 18px 6px rgba(255, 42, 53, 0.4);
  animation: ledbreath 3.2s ease-in-out infinite;
}
@keyframes ledbreath { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.tv-feet { display: flex; justify-content: space-between; padding: 0 11%; position: relative; z-index: 0; }
.tv-feet i {
  width: 11%; height: clamp(8px, 1.5vw, 15px); border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, #151212, #040202); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tv-ctrl { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; align-items: center; }

/* ---------- diving ---------- */
html.is-diving { overflow: hidden; }
html.is-diving .top, html.is-diving .foot, html.is-diving .tv-ctrl, html.is-diving #video-list { opacity: 0; pointer-events: none; transition: opacity 0.5s; }
html.is-diving .tv { z-index: 35; }

/* ---------- the rabbit hole ---------- */
.hole {
  position: fixed; inset: 0; z-index: 40; overflow: hidden; opacity: 0; transition: opacity 0.7s ease;
  touch-action: none; user-select: none; -webkit-user-select: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.97) 0, rgba(0, 0, 0, 0.8) 10%, rgba(6, 1, 2, 0) 38%),
    radial-gradient(circle at 50% 50%, rgba(6, 1, 2, 0) 52%, rgba(6, 1, 2, 0.7) 100%);
}
.hole.on { opacity: 1; }
.hole-scene { position: absolute; inset: 0; perspective: 1200px; }
.hole-world { position: absolute; inset: 0; transform-style: preserve-3d; }
.hole-tile {
  position: absolute; left: 50%; top: 50%; padding: 0; overflow: hidden; cursor: pointer;
  background: #120305; border: 1px solid rgba(255, 42, 53, 0.55); box-shadow: 0 0 18px rgba(255, 42, 53, 0.28);
  backface-visibility: hidden; will-change: transform, opacity; font: inherit; color: var(--bone);
}
.hole-tile img, .hole-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hole-ph {
  display: grid; place-items: center; font-family: var(--display); font-size: clamp(1rem, 2.4vw, 1.8rem);
  color: rgba(255, 120, 128, 0.9); text-transform: uppercase;
  background: linear-gradient(135deg, #2a060b, #090102 62%, #4a0a12);
  -webkit-text-stroke: 0.06em #000; paint-order: stroke fill;
}
.hole-tile:hover { border-color: var(--ember); box-shadow: 0 0 34px rgba(255, 42, 53, 0.8); }

.hole-ui {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; justify-content: space-between; gap: 12px;
  padding: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); pointer-events: none;
}
.hole-ui > *, .hole-ui-right > * { pointer-events: auto; }
.hole-ui-right { display: flex; gap: 10px; pointer-events: none; }
.hole-title {
  position: absolute; left: 50%; bottom: calc(10% + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 3;
  width: min(92%, 900px); min-height: 1em; margin: 0; text-align: center; pointer-events: none;
  font-family: var(--display); font-size: clamp(1.6rem, 4.4vw, 3rem); line-height: 1; text-transform: uppercase;
  color: var(--bone); -webkit-text-stroke: 0.07em #000; paint-order: stroke fill; text-shadow: 0 0 30px rgba(255, 42, 53, 0.55);
}
.hole-hint {
  position: absolute; left: 0; right: 0; bottom: calc(3.5% + env(safe-area-inset-bottom, 0px)); z-index: 3; margin: 0; padding: 0 16px;
  text-align: center; pointer-events: none; transition: opacity 0.8s;
  text-shadow: 0 0 6px #060102, 0 0 14px #060102, 0 0 22px #060102;
}
.hole-hint.gone { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .tv-static { animation: none; }
}


/* =====================================================================
   About: the video in a red phone
   ===================================================================== */
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; max-width: 980px; margin: 0 auto; }
.about-grid .prose { max-width: 52ch; }
.phone { position: relative; width: min(300px, 78vw); margin: 0 auto; }
.phone-body {
  position: relative; padding: 11px; border-radius: 46px;
  background: linear-gradient(145deg, #a3121d 0%, #5c0911 55%, #2c0307 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 120, 128, 0.25), inset 0 0 14px rgba(0, 0, 0, 0.6),
              0 0 0 1px #000, 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 70px rgba(255, 42, 53, 0.25);
}
.phone-screen { position: relative; border-radius: 36px; overflow: hidden; background: #000; aspect-ratio: 406 / 720; box-shadow: 0 0 0 3px #090102; }
.phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.phone-island { position: absolute; z-index: 2; top: 10px; left: 50%; width: 30%; height: 22px; margin-left: -15%; border-radius: 99px; background: #000; pointer-events: none; }
.phone-btn { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #3a050a, #7d0f18); }
.pb-a { left: -3px; top: 92px; height: 26px; }
.pb-b { left: -3px; top: 138px; height: 48px; }
.pb-c { left: -3px; top: 198px; height: 48px; }
.pb-r { right: -3px; top: 150px; height: 74px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }


/* =====================================================================
   Connections: newest, storylines, "keep falling"
   ===================================================================== */
dialog#player { max-height: 94vh; overflow-y: auto; }
.related { padding: 14px 14px 18px; border-top: 1px solid var(--line); }
.related h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 1.4rem; letter-spacing: 0.03em; text-transform: uppercase;
  -webkit-text-stroke: 0.05em #000; paint-order: stroke fill; text-shadow: 0 0 18px rgba(255, 42, 53, 0.45); }
.related-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.rel { position: relative; flex: 0 0 min(220px, 62vw); padding: 0; text-align: left; background: #120305; color: var(--bone);
  border: 1px solid rgba(255, 42, 53, 0.35); cursor: pointer; font: inherit; scroll-snap-align: start; }
.rel:hover, .rel:focus-visible { border-color: var(--ember); box-shadow: 0 0 22px rgba(255, 42, 53, 0.5); }
.rel img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rel-tag { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(6, 1, 2, 0.85);
  border: 1px solid var(--ember); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.rel-title { display: block; padding: 8px 10px 10px; font-size: 0.85rem; line-height: 1.25; }

.tile { position: relative; }
.badge-new { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 9px; border-radius: 99px; background: var(--ember); color: #fff;
  font: 700 0.7rem var(--body); letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 0 14px rgba(255, 42, 53, 0.7); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chip { padding: 6px 14px; border-radius: 99px; background: rgba(6, 1, 2, 0.7); color: var(--bone); border: 1px solid var(--line);
  font: 500 0.88rem var(--body); cursor: pointer; }
.chip:hover { border-color: var(--ember); }
.chip[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: #fff; }

.home-latest { max-width: 1100px; margin: 0 auto; padding-top: 24px; }
.home-latest .sub-h { margin-top: 44px; }
.thread-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.thread-card { position: relative; padding: 0; overflow: hidden; text-align: left; background: #120305; color: var(--bone);
  border: 1px solid rgba(255, 42, 53, 0.4); cursor: pointer; font: inherit; }
.thread-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.55; filter: saturate(0.8); transition: opacity 0.3s; }
.thread-card:hover img, .thread-card:focus-visible img { opacity: 0.9; }
.thread-card:hover, .thread-card:focus-visible { border-color: var(--ember); box-shadow: 0 0 26px rgba(255, 42, 53, 0.55); }
.thread-name { position: absolute; left: 12px; right: 12px; bottom: 30px; font-family: var(--display); font-size: 1.5rem; line-height: 1;
  text-transform: uppercase; -webkit-text-stroke: 0.06em #000; paint-order: stroke fill; text-shadow: 0 0 18px rgba(255, 42, 53, 0.6); }
.thread-count { position: absolute; left: 12px; bottom: 9px; font-size: 0.78rem; color: var(--bone); opacity: 0.85; }


/* =====================================================================
   Members Only Club: the archway
   ===================================================================== */
.nav-club { color: var(--ember) !important; }
.nav-club:hover { text-shadow: 0 0 14px rgba(255, 42, 53, 0.8); }
.club { text-align: center; }
.arch { display: flex; justify-content: center; margin: 8px auto 28px; }
.arch-frame {
  position: relative; width: min(440px, 92vw); padding: 14px 14px 0; border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #8d1019, #3a050a 70%, #1c0306);
  box-shadow: 0 0 0 1px #000, 0 0 60px rgba(255, 42, 53, 0.45), 0 0 140px rgba(255, 42, 53, 0.2), inset 0 0 18px rgba(0, 0, 0, 0.7);
}
.arch-frame::before { content: ""; position: absolute; inset: 6px 6px 0; border-radius: 999px 999px 0 0; border: 1px solid rgba(255, 150, 156, 0.35); pointer-events: none; }
.arch-door {
  position: relative; overflow: hidden; border-radius: 999px 999px 0 0; padding: 72px 20px 34px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 42, 53, 0.35), transparent 62%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 14px, rgba(60, 4, 10, 0.55) 14px 28px),
    #12020a;
  box-shadow: inset 0 0 50px #000;
}
.arch-door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 35%, transparent 70%, rgba(0,0,0,0.6)); pointer-events: none; }
.arch-door > * { position: relative; z-index: 1; }
.arch-kicker { margin: 0 0 6px; font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: #ff9aa0; }
.club .arch-door h2 {
  margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: 0.88; text-transform: uppercase;
  -webkit-text-stroke: 0.06em #000; paint-order: stroke fill; color: var(--bone);
  text-shadow: 0 0 22px rgba(255, 42, 53, 0.8), 0 0 60px rgba(255, 42, 53, 0.4); animation: neon 4.5s infinite;
}
.arch-sub { margin: 14px 0 0; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone); opacity: 0.9; }
@keyframes neon { 0%, 100% { opacity: 1; } 46% { opacity: 1; } 48% { opacity: 0.55; } 50% { opacity: 1; } 53% { opacity: 0.7; } 55% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .club .arch-door h2 { animation: none; } }
.club-lede { margin-left: auto; margin-right: auto; max-width: 52ch; }
.club-actions { justify-content: center; margin: 18px 0 34px; }
.club-grid { text-align: left; }
.club-tile { display: block; text-decoration: none; color: inherit; }
.lock { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 9px; border-radius: 99px; background: rgba(6, 1, 2, 0.88); border: 1px solid var(--ember);
  font: 700 0.68rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.club-cta { display: inline-block; margin: 0 0 14px; }


/* =====================================================================
   The Web
   ===================================================================== */
.web-view { max-width: 1280px; margin: 0 auto; padding: 28px 16px 40px; }
.web-head h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 8vw, 4rem); line-height: 0.95; text-transform: uppercase;
  -webkit-text-stroke: 0.06em #000; paint-order: stroke fill; text-shadow: 0 0 22px rgba(255, 42, 53, 0.5); }
.web-stage { position: relative; height: min(72svh, 720px); min-height: 380px; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 50%, rgba(60, 4, 10, 0.55), rgba(6, 1, 2, 0.88) 70%); overflow: hidden; touch-action: none; }
.web-stage canvas { display: block; cursor: grab; touch-action: none; }
.web-tip { position: absolute; z-index: 3; max-width: 260px; padding: 6px 10px; background: rgba(6, 1, 2, 0.92); border: 1px solid var(--ember); font-size: 0.82rem; pointer-events: none; }
.web-ctrl { position: absolute; z-index: 3; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.web-panel { margin: 12px 2px 0; min-height: 3em; color: var(--bone); font-size: 0.95rem; line-height: 1.4; }


/* =====================================================================
   Rabbit hole: hold a video to branch
   ===================================================================== */
.hole-tile { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.hole-tile.holding { border-color: #fff; box-shadow: 0 0 40px 8px rgba(255, 42, 53, 0.9); animation: holdpulse 0.5s ease-in-out infinite alternate; z-index: 5; }
@keyframes holdpulse { to { box-shadow: 0 0 70px 18px rgba(255, 42, 53, 1); } }
.hole-branch {
  position: absolute; z-index: 4; width: min(78vmin, 640px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  transform: translate(-50%, -50%) scale(0.12); opacity: 0; pointer-events: none;
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), opacity 0.3s;
  background: radial-gradient(circle, #000 0, #12020a 100%);
  box-shadow: 0 0 0 3px #ff2a35, 0 0 80px 14px rgba(255, 42, 53, 0.65), inset 0 0 70px #000;
}
.hole-branch.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.hole-branch.land { transition: transform 0.7s cubic-bezier(.55, .05, .9, .45), opacity 0.7s; opacity: 1; }
.hole-branch .hole-scene { position: absolute; inset: 0; }
.branch-label { position: absolute; left: 0; right: 0; bottom: 8%; padding: 0 12%; text-align: center; font-family: var(--display); font-size: clamp(1rem, 3vmin, 1.6rem);
  text-transform: uppercase; -webkit-text-stroke: 0.06em #000; paint-order: stroke fill; text-shadow: 0 0 14px rgba(255, 42, 53, 0.9); }
.hole-trail { position: absolute; left: 16px; right: 16px; top: calc(62px + env(safe-area-inset-top, 0px)); margin: 0; text-align: left; font-size: 0.85rem; color: #ff9aa0; pointer-events: none; z-index: 3;
  text-shadow: 0 0 8px #000, 0 0 8px #000; }


/* =====================================================================
   Player: the video sits inside a tunnel of the videos connected to it
   ===================================================================== */
dialog#player { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; border: 0; background: rgba(2, 0, 1, 0.9); overflow: hidden; }
.player-hole { position: absolute; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.player-card { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(880px, 92vw); max-height: 94dvh; overflow-y: auto;
  background: var(--void); border: 1px solid var(--ember); box-shadow: 0 0 0 1px #000, 0 0 70px rgba(255, 42, 53, 0.5), 0 30px 80px #000; }
.rel-hint { margin: 0; padding: 12px 14px 14px; font-size: 0.85rem; color: #ff9aa0; }
.related { padding: 0; border-top: 1px solid var(--line); }
.club-cta { margin: 12px 14px 0; }
dialog#player .hole-title { z-index: 3; }
@media (max-width: 700px) { .player-card { top: 8px; transform: translate(-50%, 0); } }

/* =====================================================================
   The bottom of the hole: a phone you never reach
   ===================================================================== */
.hole-phone { position: absolute; z-index: 2; left: 50%; top: 50%; width: clamp(88px, 15vmin, 170px); transform: translate(-50%, -50%); cursor: pointer;
  transition: transform 0.9s cubic-bezier(.2, .8, .2, 1); outline: none; }
.hole-phone .phone { width: 100%; animation: phonefloat 6s ease-in-out infinite, psy 14s linear infinite; }
.hole-phone .phone-body { padding: 5px; border-radius: 22%/10%; }
.hole-phone .phone-screen { border-radius: 18%/8%; }
.hole-phone .phone-island { height: 6px; top: 4px; }
.hole-phone .phone-btn { width: 2px; }
.hole-phone::before { content: ""; position: absolute; inset: -60%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 42, 53, 0.45), rgba(120, 20, 255, 0.18) 45%, transparent 70%); animation: psy 14s linear infinite, pulse 4s ease-in-out infinite; }
.hole-phone-tip { display: block; margin-top: 12px; text-align: center; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #ff9aa0; text-shadow: 0 0 8px #000; transition: opacity 0.4s; }
.hole-phone.near { cursor: default; z-index: 5; }
.hole-phone.near::before { inset: -20%; }
.hole-phone.near .hole-phone-tip { opacity: 0; }
.hole-phone.near .phone { animation: psy 14s linear infinite; }
@keyframes phonefloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes psy { to { filter: hue-rotate(360deg) drop-shadow(0 0 18px rgba(255, 42, 53, 0.8)); } }
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hole-phone .phone, .hole-phone::before { animation: none; } }

.hole-ui { z-index: 7; }
.hole-phone.near { z-index: 5; }
