/* ==========================================================================
   The Lizzy T Show
   A warm room, lit in layers. Nothing here is lit by a single hard source —
   light pools from the sign, the sconces, the shelf strip, and the window,
   and everything sits in the falloff between them.
   Palette sampled from the studio reference: warm brown-blacks, tungsten
   cream, wood amber.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Palette — six values, no more. Sampled from the room. */
  --bottle:   #171210;  /* base. warm near-black, brown not grey */
  --cellar:   #221A15;  /* one step up. cards, dock, rundown rows */
  --pewter:   #9A8B7A;  /* mineral taupe. rules, labels, secondary text */
  --ember:    #5A3324;  /* the jewel note. curtain in shadow. washes, active */
  --filament: #E7C592;  /* tungsten. the sign, live state, focus. nowhere else */
  --bone:     #F0E7D6;  /* text. warm cream, the colour of the lit wall */

  /* Components, so alpha variants stay tied to the palette above. */
  --bottle-rgb:   23 18 16;
  --cellar-rgb:   34 26 21;
  --pewter-rgb:   154 139 122;
  --ember-rgb:    90 51 36;
  --filament-rgb: 231 197 146;
  --bone-rgb:     240 231 214;

  --bone-body: rgb(var(--bone-rgb) / 0.86);   /* body copy, glare taken off */
  --bone-dim:  rgb(var(--bone-rgb) / 0.54);
  --rule:      rgb(var(--pewter-rgb) / 0.24);
  --rule-soft: rgb(var(--pewter-rgb) / 0.13);

  /* Type */
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --step-wordmark: clamp(3rem, 9.4vw, 8.25rem);
  --step-head:     clamp(2.1rem, 4.6vw, 3.4rem);
  --step-sub:      clamp(1.4rem, 2.4vw, 1.8rem);
  --step-lede:     clamp(1.15rem, 2vw, 1.375rem);
  --step-body:     1.0625rem;
  --step-label:    0.75rem;
  --step-micro:    0.6875rem;

  /* Layout */
  --gutter: clamp(18px, 4.5vw, 64px);
  --indent: clamp(20px, 2.6vw, 34px);
  --edge: calc(var(--gutter) + var(--indent));
  --measure: 62ch;
  --dock-h: clamp(64px, 9vh, 82px);

  /* Motion — weighted, never springy */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --slow: 640ms;
  --med: 420ms;
  --fast: 220ms;
}

/* --- Reset -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background: var(--bottle);
  color: var(--bone-body);
  font-family: var(--body);
  font-size: var(--step-body);
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }

/* --- Texture: grain + the room's light, in layers ----------------------- */

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
}

/* fine grain — you should only notice it when it's gone */
body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* Six sources, same arrangement as the room. None of them is hard — the
   whole point is the falloff between them. */
body::after {
  background:
    /* the sign: brightest thing in the room, high and centred */
    radial-gradient(46vw 34vh at 50% 11%, rgb(var(--filament-rgb) / 0.085), transparent 68%),
    /* two sconces flanking it, lower and softer */
    radial-gradient(22vw 21vh at 26% 33%, rgb(var(--filament-rgb) / 0.05), transparent 70%),
    radial-gradient(22vw 21vh at 74% 33%, rgb(var(--filament-rgb) / 0.05), transparent 70%),
    /* shelf strip running down the left edge */
    radial-gradient(15vw 62vh at 0% 46%, rgb(var(--filament-rgb) / 0.06), transparent 72%),
    /* daylight through the curtain — the one cool source, and the weakest */
    radial-gradient(20vw 44vh at 100% 25%, rgb(var(--bone-rgb) / 0.045), transparent 70%),
    /* floor bounce: warm, wide, low */
    radial-gradient(92vw 40vh at 50% 100%, rgb(var(--ember-rgb) / 0.32), transparent 74%);
}

/* --- The rail: the signature -------------------------------------------- */

.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--gutter);
  width: 2px;
  z-index: 4;
  pointer-events: none;
}

.rail__track {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--rule) 6%,
    var(--rule) 94%,
    transparent 100%
  );
}

.rail__filament {
  position: absolute;
  left: 0;
  right: 0;
  top: 12%;
  bottom: 12%;
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--filament) 14%,
    var(--filament) 86%,
    transparent 100%
  );
  /* the shelf strip, not a filament: wider bloom, no hard core */
  box-shadow:
    0 0 8px rgb(var(--filament-rgb) / 0.42),
    0 0 30px rgb(var(--filament-rgb) / 0.26),
    0 0 92px rgb(var(--filament-rgb) / 0.16);
  opacity: 0.40;                    /* archived: a steady low ember */
  transform-origin: top;
}

/* live: it breathes. 8s, ±6% — slow enough that you feel it, not watch it */
[data-live='true'] .rail__filament {
  opacity: 0.82;
  animation: breathe 8s var(--ease) infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.76; }
  50%      { opacity: 0.88; }
}

/* --- Skip link + focus -------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--filament);
  color: #100C0A;
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: var(--step-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.skip:focus { left: var(--edge); top: 0.75rem; }

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

/* --- Shared bits -------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.label {
  font-family: var(--mono);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pewter);
}

.mono { font-family: var(--mono); letter-spacing: 0.1em; }

.wrap {
  padding-inline: var(--edge) var(--gutter);
  max-width: 1500px;
}

section { position: relative; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: clamp(4rem, 9vh, 7rem) clamp(1.75rem, 3vh, 2.5rem);
}

.section-head h2 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 60, 'wght' 600;
  font-size: var(--step-head);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
}

/* --- Nav ---------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter) 1.1rem var(--edge);
  background: linear-gradient(to bottom, rgb(var(--bottle-rgb) / 0.92), rgb(var(--bottle-rgb) / 0));
  backdrop-filter: blur(3px);
}

.onair {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: var(--step-micro);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pewter);
}

.onair__lamp {
  width: 7px;
  height: 7px;
  background: var(--pewter);
  box-shadow: none;
  transition: background var(--med) var(--ease), box-shadow var(--med) var(--ease);
}

[data-live='true'] .onair { color: var(--filament); }
[data-live='true'] .onair__lamp {
  background: var(--filament);
  box-shadow: 0 0 5px var(--filament), 0 0 14px rgb(var(--filament-rgb) / 0.5);
}

.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.1rem); }

.nav__links a {
  font-family: var(--mono);
  font-size: var(--step-micro);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pewter);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current='page'] { color: var(--bone); border-bottom-color: var(--filament); }

@media (max-width: 820px) {
  .nav { padding-inline: var(--gutter); }
  .nav__links { gap: 0.95rem; }
  .nav__links a { font-size: 0.625rem; letter-spacing: 0.1em; }
  .nav__links a[data-optional] { display: none; }
  .onair__long { display: none; }
}

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

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: clamp(5rem, 11vh, 7rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-inline: var(--edge) 0;
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.hero__type { min-width: 0; }

.wordmark {
  font-family: var(--display);
  font-size: var(--step-wordmark);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--bone);
  font-variation-settings: 'opsz' 144, 'wght' 700;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.wordmark__line { display: block; white-space: nowrap; }

/* second line outdents by exactly one indent, so the T-cell's left border
   lands on the rail — the rail is the T's stem, continued down the page */
.wordmark__line--t {
  display: flex;
  align-items: stretch;
  gap: 0.1em;
  margin-left: calc(var(--indent) * -1);
}

.wordmark__t {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 2px solid var(--filament);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 0.06em 0.14em 0.06em 0.2em;
  box-shadow: inset 18px 0 40px rgb(var(--filament-rgb) / 0.10);
}

.hero__thesis {
  font-size: var(--step-lede);
  line-height: 1.5;
  color: var(--bone-body);
  max-width: 26ch;
  margin-bottom: clamp(1.75rem, 4vh, 2.5rem);
  text-wrap: balance;
}

/* the play control: a channel strip, not a pill */
.strip {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--cellar);
  color: var(--bone);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--filament);
  padding: 0.95rem 1.6rem 0.95rem 1.25rem;
  font-family: var(--mono);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--med) var(--ease), box-shadow var(--med) var(--ease),
              transform var(--med) var(--ease);
}

.strip:hover {
  background: #232A1D;
  box-shadow: inset 20px 0 46px rgb(var(--filament-rgb) / 0.10), 0 0 0 1px var(--rule);
  transform: translateX(2px);
}

.strip__icon { width: 12px; height: 14px; fill: var(--filament); flex: none; }

/* portrait: hard architectural crop, keyed from the left. no scrim. */
.hero__plate {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 70svh;
  align-self: center;
  justify-self: end;
  width: 100%;
  background: var(--cellar);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
}

.hero__plate img { width: 100%; height: 100%; object-fit: cover; }

/* the key light, coming from the rail side */
.hero__plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgb(var(--filament-rgb) / 0.09) 0%, transparent 42%);
  pointer-events: none;
}

.plate__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.5rem 0.8rem;
  background: rgb(var(--bottle-rgb) / 0.82);
  font-family: var(--mono);
  font-size: var(--step-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

@media (max-width: 860px) {
  .hero { min-height: auto; padding-bottom: 0; }
  .hero__inner {
    grid-template-columns: 1fr;
    padding-inline: var(--edge) var(--gutter);
    gap: clamp(1.5rem, 4vh, 2.25rem);
  }
  .hero__plate { order: -1; aspect-ratio: 5 / 4; max-height: 44svh; justify-self: stretch; }
  .hero__type { max-width: none; }
  .hero__thesis { max-width: 30ch; }
  .strip { width: 100%; justify-content: flex-start; }
}

/* --- Dock: the lower third ---------------------------------------------- */

.dock {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: auto minmax(0, 20rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  min-height: var(--dock-h);
  padding: 0.85rem var(--gutter) 0.85rem var(--edge);
  background: rgb(var(--cellar-rgb) / 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule);
}

.dock__meta { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.dock__id {
  font-family: var(--mono);
  font-size: var(--step-micro);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pewter);
}

.dock__title {
  font-family: var(--display);
  font-variation-settings: 'opsz' 30, 'wght' 500;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--filament);
  cursor: pointer;
  transition: background var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.play:hover { background: rgb(var(--filament-rgb) / 0.07); box-shadow: inset 12px 0 28px rgb(var(--filament-rgb) / 0.10); }
.play svg { width: 13px; height: 15px; fill: var(--filament); }
.play__pause { display: none; }
.play[aria-pressed='true'] .play__play { display: none; }
.play[aria-pressed='true'] .play__pause { display: block; }

.scrub { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }

.scrub__time {
  font-family: var(--mono);
  font-size: var(--step-micro);
  letter-spacing: 0.08em;
  color: var(--pewter);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.scrub__bar {
  position: relative;
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  min-width: 60px;
}
.scrub__bar::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--rule);
}
.scrub__fill {
  position: absolute;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--filament);
  box-shadow: 0 0 6px rgb(var(--filament-rgb) / 0.6);
}
.scrub__bar input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.dock__links { display: flex; gap: 1rem; flex: none; }
.dock__links a {
  font-family: var(--mono);
  font-size: var(--step-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pewter);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.dock__links a:hover { color: var(--bone); }

@media (max-width: 860px) {
  .dock {
    grid-template-columns: auto minmax(0, 1fr);
    padding-inline: var(--gutter);
    row-gap: 0.5rem;
  }
  .dock__links { display: none; }
  .scrub { grid-column: 1 / -1; }
}

/* --- Latest episode ----------------------------------------------------- */

.latest__body { display: grid; gap: clamp(1.5rem, 3vw, 3rem); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.latest__desc { max-width: var(--measure); }
.latest__desc p + p { margin-top: 1rem; }

.latest h3 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 48, 'wght' 600;
  font-size: var(--step-sub);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin-bottom: 0.85rem;
}

@media (max-width: 860px) { .latest__body { grid-template-columns: 1fr; } }

/* --- Segments: the rundown ---------------------------------------------- */

.rundown { border-top: 1px solid var(--rule); }

.rundown__row {
  display: grid;
  grid-template-columns: 3.5rem 5.5rem minmax(0, 12rem) minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  padding: clamp(1.1rem, 2.2vh, 1.6rem) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background var(--med) var(--ease);
}

/* plum wash slides in from the rail */
.rundown__row::before {
  content: '';
  position: absolute;
  inset: 0 0 0 calc(var(--edge) * -1);
  background: linear-gradient(to right, var(--ember), rgb(var(--ember-rgb) / 0));
  opacity: 0;
  transition: opacity var(--med) var(--ease);
  pointer-events: none;
}
.rundown__row:hover::before { opacity: 0.55; }

.rundown__row > * { position: relative; }

.rundown__no {
  font-family: var(--mono);
  font-size: var(--step-label);
  font-weight: 500;
  color: var(--filament);
  opacity: 0.7;
  letter-spacing: 0.08em;
}

.rundown__time {
  font-family: var(--mono);
  font-size: var(--step-label);
  color: var(--pewter);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.rundown__name {
  font-family: var(--mono);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
}

.rundown__what { color: var(--bone-body); max-width: 52ch; }

@media (max-width: 760px) {
  .rundown__row {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 0.35rem 1rem;
    row-gap: 0.4rem;
  }
  .rundown__time { grid-column: 1; grid-row: 2; }
  .rundown__name { grid-column: 2; grid-row: 1; }
  .rundown__what { grid-column: 2; grid-row: 2; }
}

/* --- About -------------------------------------------------------------- */

.about__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: start;
}
.about__text { max-width: var(--measure); }
.about__text p + p { margin-top: 1.15rem; }
.about__text p:first-child::first-line { color: var(--bone); }

.about__plate {
  aspect-ratio: 4 / 5;
  background: var(--cellar);
  border: 1px solid var(--rule-soft);
  position: relative;
  overflow: hidden;
}
.about__plate img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .about__body { grid-template-columns: 1fr; }
  .about__plate { aspect-ratio: 3 / 2; }
}

/* --- Newsletter --------------------------------------------------------- */

.news {
  /* The band is the lightest ground on the page — ember sits well above the
     base. Secondary text has to come up to meet it or it drops under 4.5:1
     against the solid end of the gradient. Scoped, so the rest of the page
     keeps the quieter values. */
  --bone-dim: rgb(var(--bone-rgb) / 0.70);
  --pewter: #C6B49E;

  background: linear-gradient(105deg, var(--ember) 0%, rgb(var(--ember-rgb) / 0.34) 58%, transparent 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: clamp(3rem, 7vh, 5rem);
}

.news__inner {
  padding-block: clamp(3rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: end;
}

.news h2 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 60, 'wght' 600;
  font-size: var(--step-head);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-block: 0.75rem 1rem;
  max-width: 16ch;
}

.news__promise { max-width: 46ch; color: var(--bone-body); }

.form__row { display: flex; gap: 0.75rem; margin-bottom: 0.85rem; }

.form input[type='email'] {
  flex: 1;
  min-width: 0;
  background: rgb(var(--bottle-rgb) / 0.55);
  border: 1px solid var(--rule);
  border-bottom-color: var(--pewter);
  padding: 0.95rem 1rem;
  color: var(--bone);
  font-size: var(--step-body);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.form input[type='email']::placeholder { color: rgb(var(--bone-rgb) / 0.58); }
.form input[type='email']:focus { background: rgb(var(--bottle-rgb) / 0.8); border-bottom-color: var(--filament); }
.form input[aria-invalid='true'] { border-color: #C4736B; }

.form button { border: 1px solid var(--rule); border-left: 2px solid var(--filament); }

.form__note { font-size: 0.8125rem; color: var(--bone-dim); }

.form__msg {
  font-family: var(--mono);
  font-size: var(--step-label);
  letter-spacing: 0.06em;
  margin-top: 0.85rem;
  min-height: 1.25rem;
  line-height: 1.5;
}
.form__msg[data-state='ok'] { color: var(--filament); }
.form__msg[data-state='err'] { color: #E0928A; }

@media (max-width: 860px) {
  .news__inner { grid-template-columns: 1fr; }
  .form__row { flex-direction: column; }
  .form button { justify-content: flex-start; }
}

/* --- Platforms ---------------------------------------------------------- */

.platforms__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.platform {
  flex: 1 1 auto;
  min-width: 150px;
  padding: clamp(1.4rem, 3vh, 2rem) 1.25rem;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background var(--med) var(--ease);
}
.platform:last-child { border-right: 0; }
.platform:hover { background: rgb(var(--ember-rgb) / 0.42); }

.platform__name {
  font-family: var(--mono);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
}
.platform__note { font-size: 0.8125rem; color: var(--pewter); }

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

.foot {
  padding-block: clamp(3rem, 7vh, 5rem) clamp(2rem, 5vh, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.foot h3 { margin-bottom: 0.7rem; }
.foot a { color: var(--bone-body); text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot a:hover { color: var(--bone); border-bottom-color: var(--filament); }
.foot ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; }

.foot__legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule-soft);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: var(--step-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* --- Archive page ------------------------------------------------------- */

.archive { padding-top: clamp(5rem, 11vh, 7rem); min-height: 100svh; }
.archive .section-head { padding-top: 0; }

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-bottom: clamp(1.5rem, 3vh, 2rem);
}

.search {
  position: relative;
  flex: 0 1 320px;
  min-width: 200px;
}
.search input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pewter);
  padding: 0.7rem 0 0.7rem 1.6rem;
  color: var(--bone);
  font-size: var(--step-body);
}
.search input::placeholder { color: rgb(var(--bone-rgb) / 0.58); }
.search input:focus { border-bottom-color: var(--filament); }
.search svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; stroke: var(--pewter); fill: none; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--pewter);
  padding: 0.5rem 0.95rem;
  font-family: var(--mono);
  font-size: var(--step-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease),
              border-color var(--fast) var(--ease);
}
.chip:hover { color: var(--bone); }
.chip[aria-pressed='true'] {
  background: var(--ember);
  border-color: rgb(var(--pewter-rgb) / 0.4);
  color: var(--bone);
}

.count {
  font-family: var(--mono);
  font-size: var(--step-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-left: auto;
}

.eplist { border-top: 1px solid var(--rule); list-style: none; padding: 0; margin: 0; }

.ep {
  display: grid;
  grid-template-columns: 3.5rem 6.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  padding: clamp(1.1rem, 2.2vh, 1.5rem) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background var(--med) var(--ease);
}
.ep::before {
  content: '';
  position: absolute;
  inset: 0 0 0 calc(var(--edge) * -1);
  background: linear-gradient(to right, var(--ember), rgb(var(--ember-rgb) / 0));
  opacity: 0;
  transition: opacity var(--med) var(--ease);
  pointer-events: none;
}
.ep:hover::before { opacity: 0.5; }
.ep > * { position: relative; }

.ep__no { font-family: var(--mono); font-size: var(--step-label); font-weight: 500; color: var(--filament); opacity: 0.7; }
.ep__date { font-family: var(--mono); font-size: var(--step-micro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pewter); }
.ep__main { min-width: 0; display: block; }
.ep__blurb { display: block; }
.ep__title {
  font-family: var(--display);
  font-variation-settings: 'opsz' 36, 'wght' 500;
  font-size: 1.1875rem;
  line-height: 1.25;
  color: var(--bone);
  text-decoration: none;
}
.ep__title:hover { color: var(--filament); }
.ep__blurb { font-size: 0.9375rem; color: var(--bone-dim); margin-top: 0.2rem; }
.ep__len { font-family: var(--mono); font-size: var(--step-micro); color: var(--pewter); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .ep { grid-template-columns: 2.6rem minmax(0, 1fr) auto; row-gap: 0.3rem; }
  .ep__date { grid-column: 2; grid-row: 2; }
  .ep__main { grid-column: 2; grid-row: 1; }
  .ep__len { grid-column: 3; grid-row: 1; }
}

.empty {
  padding: clamp(3rem, 8vh, 5rem) 0;
  max-width: 46ch;
}
.empty p { color: var(--bone-body); margin-top: 0.5rem; }
.empty button {
  margin-top: 1.25rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--filament);
  color: var(--bone);
  padding: 0.8rem 1.3rem;
  font-family: var(--mono);
  font-size: var(--step-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.empty[hidden] { display: none; }

/* --- Load sequence ------------------------------------------------------ */

.rail__filament { transform: scaleY(0); }
[data-ready='true'] .rail__filament {
  transform: scaleY(1);
  transition: transform 900ms var(--ease), opacity var(--slow) var(--ease);
}

.lift { opacity: 0; transform: translateY(12px); }
[data-ready='true'] .lift {
  opacity: 1;
  transform: none;
  transition: opacity var(--slow) var(--ease) var(--d, 0ms),
              transform var(--slow) var(--ease) var(--d, 0ms);
}

/* --- Reduced motion: freeze everything at final state ------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rail__filament { transform: scaleY(1); }
  [data-live='true'] .rail__filament { opacity: 0.82; }
  .lift { opacity: 1; transform: none; }
  .strip:hover { transform: none; }
}
