/* PLANET MASSHOLE — the public site.
   Dark, warm, restrained: the documentary's title cards (serif capitals, gold
   tracked small caps) on a projection-booth black. */

:root {
  --ink-0: #0a0b0d;          /* page */
  --ink-1: #111316;          /* surfaces, chart */
  --ink-2: #171a1e;          /* raised */
  --ink-3: #20242a;
  --line: rgba(236, 230, 218, 0.09);
  --line-2: rgba(236, 230, 218, 0.16);
  --line-3: rgba(236, 230, 218, 0.28);
  --bone: #ece6da;           /* primary text   (16.1:1 on ink-0) */
  --bone-2: #b8b1a4;         /* secondary text  (9.0:1) */
  --bone-3: #8d877d;         /* muted text      (5.4:1) */
  --gold: #d4ae62;           /* the title card's tracked caps */
  --gold-soft: rgba(212, 174, 98, 0.42);
  --rec: #e0603c;            /* the recording dot; also "failed to yield" */
  --v-failed: #e0603c;
  --v-yielded: #3399c0;
  --v-other: #62676f;

  --serif: "Cormorant Garamond", "Cormorant", "Baskerville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 4.2vw, 3.75rem);
  --max: 1320px;
  --measure: 38rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --masthead-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink-0);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; outline: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
::selection { background: rgba(212, 174, 98, 0.35); color: var(--bone); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Film grain over everything, very faint. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.075;
  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='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.25 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: 0.6rem 1rem; background: var(--bone); color: var(--ink-0);
  font-weight: 500; border-radius: 3px;
}
.skip:focus { top: 1rem; }

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

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

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.5;
}
.eyebrow .sep { color: var(--gold-soft); margin: 0 0.6em; }
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display-s {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  text-wrap: balance;
}
.logline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.45;
  color: var(--bone-2);
  max-width: 34rem;
  text-wrap: pretty;
}
.small { font-size: 0.85rem; color: var(--bone-3); }
.meta { font-size: 0.85rem; letter-spacing: 0.03em; color: var(--bone-2); white-space: pre-wrap; }

/* ---------- masthead ---------- */

.masthead {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--masthead-h);
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(to bottom, rgba(10, 11, 13, 0.72), rgba(10, 11, 13, 0));
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--serif); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone); white-space: nowrap;
}
.rec {
  display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--rec); box-shadow: 0 0 0 0 rgba(224, 96, 60, 0.6);
  animation: rec 2.4s ease-in-out infinite; flex: none;
}
@keyframes rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.nav { display: flex; gap: clamp(1rem, 2.6vw, 2.25rem); }
.nav a, .colophon-nav a {
  position: relative;
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bone-2); padding: 0.5rem 0;
  transition: color 0.3s var(--ease);
}
.nav a::after, .colophon-nav a::after {
  content: ""; position: absolute; left: 0; right: 0.24em; bottom: 0.25rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"], .colophon-nav a:hover { color: var(--bone); }
.nav a:hover::after, .nav a[aria-current="page"]::after, .colophon-nav a:hover::after { transform: scaleX(1); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 3rem; padding: 0 1.5rem;
  border: 1px solid var(--line-3); border-radius: 999px;
  background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { border-color: var(--bone-2); background: rgba(236, 230, 218, 0.06); }
.btn-primary { background: var(--bone); color: var(--ink-0); border-color: var(--bone); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn svg { width: 0.85rem; height: 0.85rem; flex: none; }
.btn-quiet { border-color: transparent; padding: 0 0.75rem; color: var(--bone-2); }
.btn-quiet:hover { background: transparent; color: var(--bone); border-color: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- verdict badge ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.3em 0.85em 0.3em 0.7em;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone); white-space: nowrap; line-height: 1.6;
  background: rgba(10, 11, 13, 0.35);
}
.badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--v-other); flex: none; }
.badge--failed .badge-dot { background: var(--v-failed); }
.badge--yielded .badge-dot { background: var(--v-yielded); }
.badge--no_obligation .badge-dot { background: var(--v-other); }
.badge--unsure .badge-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--bone-3); }

/* ---------- title card (loading, empty, no JS, errors) ---------- */

.titlecard {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92svh, 900px);
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--masthead-h) + 2rem) var(--pad) 4rem;
  background:
    radial-gradient(120% 90% at 50% 40%, #1a2227 0%, #11171a 45%, var(--ink-0) 100%);
}
.titlecard::before, .titlecard::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(60px); opacity: 0.55;
}
.titlecard::before {
  width: 60vmax; height: 40vmax; left: -10vmax; top: 10%;
  background: radial-gradient(closest-side, rgba(58, 78, 76, 0.55), transparent);
  animation: fog-a 38s ease-in-out infinite alternate;
}
.titlecard::after {
  width: 55vmax; height: 38vmax; right: -12vmax; bottom: -5%;
  background: radial-gradient(closest-side, rgba(44, 56, 70, 0.6), transparent);
  animation: fog-b 46s ease-in-out infinite alternate;
}
@keyframes fog-a { to { transform: translate(18vmax, 6vmax) scale(1.15); } }
@keyframes fog-b { to { transform: translate(-16vmax, -8vmax) scale(1.1); } }
.titlecard-inner { max-width: 72rem; display: grid; justify-items: center; gap: 1.6rem; }
.titlecard-mark {
  font-family: var(--serif); font-weight: 500; font-style: normal;
  font-size: clamp(2.1rem, 7.2vw, 5.6rem); line-height: 1;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-right: -0.2em; /* optically recentre the tracking */
  color: var(--bone);
}
.titlecard-rule {
  width: min(26rem, 64vw); height: 1px; border: 0; margin: 0.2rem 0;
  background: linear-gradient(to right, transparent, var(--line-3) 15%, var(--line-3) 85%, transparent);
}
.titlecard-sub {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.35; color: var(--bone); text-wrap: balance;
}
.titlecard-note { max-width: 34rem; color: var(--bone-2); font-size: 0.98rem; text-wrap: pretty; }
.titlecard .actions { justify-content: center; margin-top: 0.4rem; }
.titlecard--static .titlecard-inner { opacity: 0.9; }

/* ---------- hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92svh, 900px);
  display: grid; align-items: center;
  padding: calc(var(--masthead-h) + 2.5rem) var(--pad) clamp(3rem, 7vh, 5.5rem);
  background: var(--ink-0);
}
.hero-atmos {
  position: absolute; inset: -8%; z-index: -2;
  width: 116%; height: 116%; max-width: none; object-fit: cover;
  filter: blur(36px) saturate(0.7) brightness(0.42);
  transform: scale(1.05);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 80% at 70% 45%, transparent 0%, rgba(10, 11, 13, 0.55) 70%, rgba(10, 11, 13, 0.9) 100%),
    linear-gradient(to bottom, rgba(10, 11, 13, 0.5) 0%, transparent 25%, transparent 70%, var(--ink-0) 100%);
}
.hero-grid {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-copy { display: grid; gap: 1.5rem; align-content: center; }
.hero-copy .display { font-size: clamp(2.6rem, 5.2vw, 5rem); }
.hero-copy .actions { margin-top: 0.6rem; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; }
.hero-meta .small { color: var(--bone-2); font-size: 0.85rem; letter-spacing: 0.02em; white-space: pre-wrap; }

.screen {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; background: #000;
  border-radius: 2px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-2);
}
.screen img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: 58% 48%;
  animation: pushin 22s ease-in-out infinite alternate;
  transition: filter 0.6s var(--ease);
}
@keyframes pushin { from { transform: scale(1); } to { transform: scale(1.075); } }
.screen::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.play-glyph {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: clamp(4rem, 7vw, 5.5rem); height: clamp(4rem, 7vw, 5.5rem);
  transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(10, 11, 13, 0.38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(236, 230, 218, 0.55);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.play-glyph svg { width: 28%; height: 28%; margin-left: 8%; fill: var(--bone); }
.screen:hover .play-glyph, .screen:focus-visible .play-glyph {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(10, 11, 13, 0.55);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.screen:hover img { filter: brightness(1.08); }
.screen-caption {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 0.9rem; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone-3);
}

/* ---------- sections ---------- */

.section {
  width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad);
}
.section + .section { padding-top: 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head > div { display: grid; gap: 0.9rem; }
.section-head .aside { max-width: 30rem; color: var(--bone-2); font-size: 0.95rem; text-wrap: pretty; }
.epigraph {
  max-width: 50rem; margin: 0 auto; text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad) clamp(1rem, 3vw, 2rem);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.4; color: var(--bone-2); text-wrap: balance;
}
.epigraph::before {
  content: ""; display: block; width: 1px; height: 3.5rem; margin: 0 auto 2rem;
  background: linear-gradient(to bottom, transparent, var(--gold-soft));
}

/* ---------- field notes ---------- */

.notes { border-top: 1px solid var(--line); }
.figures {
  display: grid; grid-template-columns: 1.35fr repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.figure {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
  display: grid; align-content: start; gap: 0.55rem;
}
.figure + .figure { border-left: 1px solid var(--line); }
.figure-value {
  font-family: var(--sans); font-weight: 300; line-height: 1;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem); letter-spacing: -0.02em; color: var(--bone);
}
.figure-value small { font-size: 0.45em; letter-spacing: 0; color: var(--bone-2); margin-left: 0.1em; }
.figure-label {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-2);
}
.figure-label .key { width: 0.55rem; height: 0.55rem; border-radius: 1px; flex: none; }
.figure-note { font-size: 0.82rem; color: var(--bone-3); line-height: 1.45; text-wrap: pretty; }
.figure--lead .figure-value { color: var(--bone); font-size: clamp(3rem, 6vw, 4.8rem); }
.notes-empty {
  padding: 3rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--bone-2); text-align: center;
}

.chart-block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.chart-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0.75rem 2rem; margin-bottom: 1.25rem;
}
.chart-title { font-family: var(--serif); font-size: 1.45rem; font-style: italic; font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; padding: 0; margin: 0; }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--bone-2); }
.legend .key { width: 0.7rem; height: 0.7rem; border-radius: 2px; }
.chart {
  position: relative; background: var(--ink-1);
  border-radius: 4px; padding: 1.25rem 1rem 0.75rem 0.25rem;
  box-shadow: 0 0 0 1px var(--line);
}
.chart svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .grid line { stroke: rgba(236, 230, 218, 0.08); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis text { fill: var(--bone-3); font-family: var(--sans); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .axis .month { fill: var(--bone-2); }
.chart .baseline { stroke: rgba(236, 230, 218, 0.22); stroke-width: 1; shape-rendering: crispEdges; }
.chart .day { cursor: default; outline: none; }
.chart .day .hit { fill: transparent; }
.chart .day.is-active .hit { fill: rgba(236, 230, 218, 0.045); }
.chart .day:focus-visible .hit { stroke: var(--gold); stroke-width: 1.5; }
.chart .day.is-active .seg { filter: brightness(1.18); }
.chart .gap-tick { fill: rgba(236, 230, 218, 0.34); }
.chart .today { fill: var(--bone-3); font-size: 10px; letter-spacing: 0.15em; }
.tooltip {
  position: absolute; z-index: 5; pointer-events: none;
  min-width: 12.5rem; padding: 0.85rem 1rem 0.8rem;
  background: rgba(23, 26, 30, 0.97); border-radius: 4px;
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  font-size: 0.82rem; line-height: 1.4; color: var(--bone-2);
  opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s;
}
.tooltip.is-on { opacity: 1; transform: none; }
.tooltip-day { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.tooltip-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.12rem 0; }
.tooltip-row .lk { width: 0.85rem; height: 2px; border-radius: 1px; flex: none; }
.tooltip-row .lk--none { background: transparent; }
.tooltip-row strong { font-weight: 500; color: var(--bone); min-width: 1.4rem; font-variant-numeric: tabular-nums; }
.tooltip-empty { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--bone-2); }
.chart-foot { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0.5rem 1.5rem; }
.chart-foot .ledger { grid-column: 1; grid-row: 1; min-width: 0; }
.chart-foot > .small { grid-column: 2; grid-row: 1; padding-top: 0.4rem; text-align: right; }
.ledger[open] { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .chart-foot { grid-template-columns: minmax(0, 1fr); }
  .chart-foot > .small { grid-column: 1; grid-row: 2; text-align: left; padding-top: 0; }
}

.ledger { margin-top: 0.25rem; }
.ledger summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-2);
  padding: 0.4rem 0;
}
.ledger summary::-webkit-details-marker { display: none; }
.ledger summary::before { content: "+"; font-size: 1rem; line-height: 1; color: var(--gold); width: 0.8rem; }
.ledger[open] summary::before { content: "\2212"; }
.ledger summary:hover { color: var(--bone); }
.ledger-wrap { overflow-x: auto; margin-top: 1rem; -webkit-overflow-scrolling: touch; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; min-width: 34rem; }
.ledger th, .ledger td { padding: 0.55rem 0.75rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger th:first-child, .ledger td:first-child { text-align: left; }
.ledger thead th { font-weight: 400; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-3); }
.ledger td { color: var(--bone-2); }
.ledger tr.is-empty td { color: var(--bone-3); }
.ledger tfoot td { color: var(--bone); border-bottom: 0; font-weight: 400; }

/* ---------- episode grid ---------- */

.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: clamp(2.25rem, 4vw, 3.5rem) clamp(1.25rem, 2.4vw, 2rem);
  list-style: none; padding: 0;
}
.card { display: grid; gap: 1.1rem; }
.card-media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-2);
  border-radius: 2px; box-shadow: 0 0 0 1px var(--line);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.92) saturate(0.95);
}
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.045); filter: none; }
.card-dur {
  position: absolute; right: 0.6rem; bottom: 0.6rem;
  padding: 0.15rem 0.45rem; border-radius: 2px;
  background: rgba(10, 11, 13, 0.72); font-size: 0.7rem; letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums; color: var(--bone);
}
.card-body { display: grid; gap: 0.6rem; }
.card-title {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.6rem; line-height: 1.12; text-wrap: balance;
  background: linear-gradient(var(--gold-soft), var(--gold-soft)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
  justify-self: start;
}
.card:hover .card-title, .card:focus-visible .card-title { background-size: 100% 1px; }
.card-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.card-foot .small { font-size: 0.78rem; }
.card:focus-visible { outline-offset: 8px; }
.more-soon {
  margin-top: 3rem; text-align: center; font-family: var(--serif); font-style: italic;
  font-size: 1.2rem; color: var(--bone-3);
}

/* ---------- episode page ---------- */

.stage {
  background: #000;
  padding: var(--masthead-h) 0 0;
  box-shadow: 0 1px 0 var(--line);
}
.player {
  --ar: 16 / 9;
  position: relative; margin: 0 auto; background: #000;
  width: min(100%, 1400px, calc((100svh - var(--masthead-h) - 5rem) * 16 / 9));
  aspect-ratio: var(--ar);
}
.player video { width: 100%; height: 100%; background: #000; object-fit: contain; }
.player-start {
  position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; cursor: pointer;
  background: transparent; display: block; width: 100%;
}
.player-start img { width: 100%; height: 100%; object-fit: cover; }
.player-start::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 80% at 50% 50%, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.55));
}
.player-start .play-glyph { width: clamp(4.5rem, 9vw, 7rem); height: clamp(4.5rem, 9vw, 7rem); }
.player-start:hover .play-glyph, .player-start:focus-visible .play-glyph {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow: inset 0 0 0 1px var(--gold); background: rgba(10, 11, 13, 0.55);
}
.player-start-label {
  position: absolute; left: 50%; top: calc(50% + clamp(3.2rem, 6.3vw, 4.9rem)); z-index: 2;
  transform: translateX(-50%); white-space: nowrap;
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bone);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}
.player.is-started .player-start { display: none; }
.player-missing {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem;
  background: radial-gradient(120% 90% at 50% 40%, #1a2227 0%, #0d1113 70%);
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--bone-2);
}

.ep {
  width: 100%; max-width: calc(1200px + 2 * var(--pad)); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) 0;
}
.ep-head { display: grid; gap: 1.25rem; max-width: 52rem; }
.ep-head .display { font-size: clamp(2.5rem, 6vw, 5rem); }
.ep-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; }
.ep-verdict .small { font-size: 0.82rem; }
.ep-head .actions { margin-top: 0.5rem; }
.ep-body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem); margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line);
}
.ep-body h2 { margin-bottom: 1.75rem; }
.transcript { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.beat {
  display: grid; grid-template-columns: 4.25rem 1fr; gap: 0 1rem;
  padding: 1rem 0 1.1rem; border-top: 1px solid var(--line);
  transition: opacity 0.4s var(--ease);
}
.beat:first-child { border-top: 0; }
.beat-ts {
  align-self: start; justify-self: start;
  margin-top: 0.35rem; padding: 0.25rem 0.5rem; border: 0; border-radius: 3px; cursor: pointer;
  background: rgba(236, 230, 218, 0.05);
  font-size: 0.74rem; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
  color: var(--bone-2);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.beat-ts:hover { background: rgba(212, 174, 98, 0.16); color: var(--bone); }
.beat-name {
  grid-column: 2; font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone-3);
  margin-bottom: 0.35rem;
}
.beat-text {
  grid-column: 2; font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.42rem);
  line-height: 1.5; color: var(--bone-2); text-wrap: pretty;
  transition: color 0.4s var(--ease);
}
.beat.is-current .beat-text { color: var(--bone); }
.beat.is-current .beat-name { color: var(--gold); }
.beat.is-current .beat-ts { background: rgba(212, 174, 98, 0.2); color: var(--bone); }
.transcript-empty { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--bone-3); }

.panel {
  position: relative; padding: 1.75rem 1.5rem 1.6rem;
  background: var(--ink-1); border-radius: 4px; box-shadow: 0 0 0 1px var(--line);
}
.panel + .panel { margin-top: 1.5rem; }
.panel::before {
  content: ""; position: absolute; left: 1.5rem; top: 0; width: 2.5rem; height: 1px; background: var(--gold);
}
.panel .eyebrow { margin-bottom: 1.25rem; }
.facts { display: grid; gap: 1.1rem; }
.fact { display: grid; gap: 0.2rem; }
.fact dt { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-3); }
.fact dd { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; color: var(--bone); }
.fact dd small { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--bone-3); line-height: 1.45; margin-top: 0.2rem; }
.reasons { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.reasons h3 { font-size: 0.64rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-3); margin-bottom: 0.6rem; }
.reasons ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.reasons li { font-size: 0.82rem; line-height: 1.5; color: var(--bone-2); padding-left: 0.9rem; position: relative; }
.reasons li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.35rem; height: 1px; background: var(--bone-3); }
.calls { margin-top: 1.25rem; font-size: 0.8rem; color: var(--bone-3); line-height: 1.5; }
.calls strong { font-weight: 400; color: var(--bone-2); }
.credits { display: grid; gap: 0.85rem; }
.credit { display: grid; gap: 0.1rem; }
.credit dt { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-3); }
.credit dd { font-family: var(--serif); font-size: 1.2rem; color: var(--bone); }

.ep-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-top: clamp(4rem, 8vw, 6rem); padding-top: 2.5rem; border-top: 1px solid var(--line);
}
.ep-nav a {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1.25rem; align-items: center;
}
.ep-nav a.next { grid-template-columns: 1fr 9rem; text-align: right; }
.ep-nav a.next .card-media { order: 2; }
.ep-nav .card-media img { transition: transform 1s var(--ease), filter 0.5s; }
.ep-nav a:hover .card-media img { transform: scale(1.05); filter: none; }
.ep-nav-text { display: grid; gap: 0.35rem; }
.ep-nav-title { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.15; text-wrap: balance; }
.ep-nav .spacer { display: block; }

/* ---------- about ---------- */

.about { width: 100%; max-width: calc(58rem + 2 * var(--pad)); margin: 0 auto; padding: calc(var(--masthead-h) + clamp(3rem, 9vw, 7rem)) var(--pad) clamp(3rem, 8vw, 6rem); }
.about-head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.about-body { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.prose p, .prose li { font-weight: 400; font-size: 1.06rem; line-height: 1.75; color: var(--bone-2); text-wrap: pretty; }
.prose p + p { margin-top: 1.1rem; }
.prose .lede {
  font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.45; color: var(--bone);
  margin-bottom: 2rem;
}
.prose h2 {
  margin: 3rem 0 1rem; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.75rem; color: var(--bone); line-height: 1.2;
}
.prose ul { padding-left: 1.1rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--gold); }
.about-sign {
  margin-top: 3.5rem !important; font-family: var(--serif); font-style: italic; font-size: 1.4rem !important;
  color: var(--bone) !important; text-align: center;
}
.about-sign::before { content: ""; display: block; width: 3rem; height: 1px; margin: 0 auto 1.5rem; background: var(--gold-soft); }

/* ---------- colophon ---------- */

.colophon { border-top: 1px solid var(--line); margin-top: clamp(3rem, 8vw, 6rem); }
.colophon-inner {
  max-width: 44rem; margin: 0 auto; text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--pad) calc(clamp(2.5rem, 6vw, 4rem) + env(safe-area-inset-bottom));
  display: grid; justify-items: center; gap: 0.9rem;
}
.colophon-mark {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--serif); font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.9rem;
}
.colophon-line { font-size: 0.88rem; color: var(--bone-2); text-wrap: balance; }
.colophon-quiet { color: var(--bone-3); font-size: 0.8rem; max-width: 34rem; }
.colophon-nav { display: flex; gap: 2rem; margin-top: 0.5rem; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  background: var(--bone); color: var(--ink-0); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- not found / error inside a page ---------- */

.lost { min-height: 70svh; }

/* ---------- entrance motion ---------- */

.reveal { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade { animation: fade 1.2s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figure--lead { grid-column: 1 / -1; }
  .figure + .figure { border-left: 0; }
  .figure { border-top: 1px solid var(--line); }
  .figure--lead { border-top: 0; }
  .figure:nth-child(odd):not(.figure--lead) { border-left: 1px solid var(--line); }
}
@media (max-width: 860px) {
  :root { --masthead-h: 4rem; }
  .hero { align-items: start; min-height: 0; padding-top: calc(var(--masthead-h) + 0.5rem); }
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-media { order: -1; margin: 0 calc(-1 * var(--pad)); }
  .hero-media .screen { border-radius: 0; box-shadow: none; }
  .hero-media .screen-caption { padding: 0 var(--pad); }
  .ep-body { grid-template-columns: 1fr; }
  .player { width: 100%; }
  .stage { padding-top: var(--masthead-h); }
}
@media (max-width: 640px) {
  .nav .nav-notes { display: none; }
  .wordmark { font-size: 0.82rem; letter-spacing: 0.24em; }
  .nav a { letter-spacing: 0.18em; }
  .ep-nav { grid-template-columns: 1fr; gap: 1.75rem; }
  .ep-nav a, .ep-nav a.next { grid-template-columns: 7rem 1fr; text-align: left; }
  .ep-nav a.next .card-media { order: 0; }
  .beat { grid-template-columns: auto 1fr; gap: 0.6rem 0.9rem; }
  .beat-ts { grid-column: 1; grid-row: 1; margin: 0; }
  .beat-name { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .beat-text { grid-column: 1 / -1; grid-row: 2; }
  .figure-value { font-size: 2.4rem; }
  .figure--lead .figure-value { font-size: 3.4rem; }
  .card-title { font-size: 1.5rem; }
  .figure--lead, .figure:nth-child(even) { padding-left: 0; }
  .btn { padding: 0 1.2rem; letter-spacing: 0.16em; }
  .actions { gap: 0.6rem; }
  .titlecard { min-height: 86svh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  body::after { animation: none; }
  .screen img { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media (forced-colors: active) {
  .badge-dot, .figure-label .key, .legend .key { forced-color-adjust: none; }
  body::after { display: none; }
}

@media print {
  body::after, .masthead, .toast, .player-start { display: none; }
  body { background: #fff; color: #000; }
}
