/* ==========================================================================
   Sad Song Queens — main stylesheet (v3)
   v3 = v1 LAYOUT (sections, grids, bands, hero composition, footer)
      + v2 TYPOGRAPHY (scale, line-heights, tracking, weights, role mapping)
      + Apple-ratio capsule buttons + v2 frosted sticky nav.
   Every value comes from tokens.css. Motion comes from css/cinematic-motion.css
   via data-cm attributes; section 9 only holds the glue the kit needs.
   Page-only layout lives in css/pages/<page>.css. See docs/v3-design-notes.md.

   1. Fonts  2. Base  3. Type + primitives  3b. Layout grid  4. Buttons
   5. Header / Footer  6. Sections (v1 layout on the grid)  7. Episode cards /
   archive  8. Utilities  9. Motion glue  10. Responsive
   ========================================================================== */

/* ---- 1. Fonts ---- */
@font-face {
  font-family: "TrashHand";
  src: url("../assets/fonts/TrashHand.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fonseca";
  src: url("../assets/fonts/Fonseca-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Aptos";
  src: url("../assets/fonts/Aptos.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Aptos";
  src: url("../assets/fonts/Aptos-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Aptos";
  src: url("../assets/fonts/Aptos-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* ---- 2. Base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* No forced smooth scrolling (motion-kit rule). Anchors and keyboard focus clear
   the sticky nav (56px + 1px hairline) with room for the 5px focus ring. */
html { scroll-padding-top: var(--scroll-offset); }

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--family-body);
  font-size: var(--fs-body-md);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { line-height: var(--leading-tight); text-wrap: balance; }

p { text-wrap: pretty; }

a { color: var(--link); text-decoration: none; transition: color var(--dur-quick) var(--ease); }
a:hover { color: var(--link-hover); }

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

::selection { background: var(--selection-bg); color: var(--text-primary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- 3. Type + primitives (v2 scale on v1 markup) ---- */
.container { margin-inline: var(--grid-margin-narrow); }   /* 980px well, ≥22px page margins */
.container--wide { margin-inline: var(--grid-margin); }    /* 1248px well, ≥22px page margins */

.eyebrow {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-accent);
}

/* TrashHand tiers: .display = h1 on every page; .h2 = band/card h2;
   .h2.headline = section-level h2. Fonseca = h3/card titles. Aptos = the rest. */
.display {
  font-family: var(--family-display);
  font-weight: 400;
  font-size: var(--fs-display-xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  max-width: var(--measure-headline);
}
.h2 {
  font-family: var(--family-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}
.headline { font-size: var(--fs-section); }

/* Short lead under a headline (19–24px) and the 20px intro paragraph */
.subhead {
  font-size: var(--fs-subhead);
  line-height: var(--leading-relaxed);
  color: var(--text-lead);
  max-width: var(--measure-subhead);
}
.lead { font-size: var(--fs-body-lg); line-height: var(--leading-relaxed); color: var(--text-lead); max-width: var(--measure-lead); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

/* Page intro: eyebrow + display h1 + lead, shared by inner pages. Also a .grid,
   so each line is a full-width grid item that can be placed with --col / --span. */
/* Full-width intro (Episodes, Listen; client 2026-11-18): the subhead spans the intro row */
.page-intro--full > .subhead { max-width: var(--intro-measure); }
.page-intro { --stack-gap: var(--stack-gap-h1); --grid-row-gap: var(--stack-gap); display: grid; row-gap: var(--stack-gap); justify-items: start; padding-block: var(--space-7) var(--space-5); }

/* Centered stack (h2-level section CTAs on about/listen) */
.stack-center { --stack-gap: var(--stack-gap-h2); --grid-row-gap: var(--stack-gap); display: grid; row-gap: var(--stack-gap); justify-items: center; text-align: center; }

.skip-link {
  position: absolute;
  top: var(--space-2); left: var(--space-2);
  z-index: 100;
  padding: var(--space-2) var(--space-3);
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 700;
  border-radius: var(--radius-sm);
  translate: 0 -300%;
}
.skip-link:focus { translate: 0 0; color: var(--text-on-accent); }

/* ---- 3b. Layout grid (tokens.css "layout grid"; docs §13) ----
   .grid = 12 / 8 / 4 equal columns with the Apple gutter. Every direct child is
   placed by custom properties (component rules and utilities use one
   mechanism; the archived grid editor wrote the same properties):
                   --col (start line, integer, unset = auto-flow)
                   --span (columns, default = full row)
                   --row / --row-span
   Tablet (735–1068) reads --col-md / --span-md / --row-md / --row-span-md and
   otherwise scales --span to 8 columns (span × 2/3, rounded) and auto-flows in
   DOM order (the desktop --col / --row / --row-span do NOT carry over: a desktop
   4 | 4 | 4 pinned to one row would need 3 + 3 + 3 = 9 of 8 columns).
   Phone (≤734) reads --col-sm / --span-sm / --row-sm / --row-span-sm and
   otherwise stacks every item full width in DOM order.
   Spans are clamped to the columns left after --col. The one way to get an
   implicit (extra) column is to pin several items to the same row of one tier
   (--row / --row-md / --row-sm) with spans that add up to more than that tier's
   columns, so give pinned rows explicit per-tier spans. No dense auto-flow:
   order stays predictable.
   The placement properties don't inherit, so a nested .grid starts clean. */
@property --col         { syntax: "*"; inherits: false; }
@property --span        { syntax: "*"; inherits: false; }
@property --row         { syntax: "*"; inherits: false; }
@property --row-span    { syntax: "*"; inherits: false; }
@property --col-md      { syntax: "*"; inherits: false; }
@property --span-md     { syntax: "*"; inherits: false; }
@property --row-md      { syntax: "*"; inherits: false; }
@property --row-span-md { syntax: "*"; inherits: false; }
@property --col-sm      { syntax: "*"; inherits: false; }
@property --span-sm     { syntax: "*"; inherits: false; }
@property --row-sm      { syntax: "*"; inherits: false; }
@property --row-span-sm { syntax: "*"; inherits: false; }
@property --grid-row-gap { syntax: "*"; inherits: false; }

.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  row-gap: var(--grid-row-gap, calc(var(--grid-row) * 3));
}
.grid > * {
  grid-column: var(--col, auto) / span min(var(--span, var(--grid-columns)), var(--grid-columns) + 1 - var(--col, 1));
  grid-row: var(--row, auto) / span var(--row-span, 1);
}
@media (734px < width <= 1068px) {
  .grid > * {
    grid-column: var(--col-md, auto) / span min(var(--span-md, calc(var(--span, 12) * 2 / 3)), var(--grid-columns) + 1 - var(--col-md, 1));
    grid-row: var(--row-md, auto) / span var(--row-span-md, 1);
  }
}
@media (width <= 734px) {
  .grid > * {
    grid-column: var(--col-sm, auto) / span min(var(--span-sm, var(--grid-columns)), var(--grid-columns) + 1 - var(--col-sm, 1));
    grid-row: var(--row-sm, auto) / span var(--row-span-sm, 1);
  }
}

/* Authoring utilities (declared before the components, so a component's own
   placement wins). */
.span-1 { --span: 1; } .span-2 { --span: 2; } .span-3 { --span: 3; } .span-4 { --span: 4; }
.span-5 { --span: 5; } .span-6 { --span: 6; } .span-7 { --span: 7; } .span-8 { --span: 8; }
.span-9 { --span: 9; } .span-10 { --span: 10; } .span-11 { --span: 11; } .span-12 { --span: 12; }
.col-1 { --col: 1; } .col-2 { --col: 2; } .col-3 { --col: 3; } .col-4 { --col: 4; }
.col-5 { --col: 5; } .col-6 { --col: 6; } .col-7 { --col: 7; } .col-8 { --col: 8; }
.col-9 { --col: 9; } .col-10 { --col: 10; } .col-11 { --col: 11; } .col-12 { --col: 12; }
.span-md-1 { --span-md: 1; } .span-md-2 { --span-md: 2; } .span-md-3 { --span-md: 3; } .span-md-4 { --span-md: 4; }
.span-md-5 { --span-md: 5; } .span-md-6 { --span-md: 6; } .span-md-7 { --span-md: 7; } .span-md-8 { --span-md: 8; }
.col-md-1 { --col-md: 1; } .col-md-2 { --col-md: 2; } .col-md-3 { --col-md: 3; } .col-md-4 { --col-md: 4; }
.col-md-5 { --col-md: 5; } .col-md-6 { --col-md: 6; } .col-md-7 { --col-md: 7; } .col-md-8 { --col-md: 8; }
.span-sm-1 { --span-sm: 1; } .span-sm-2 { --span-sm: 2; } .span-sm-3 { --span-sm: 3; } .span-sm-4 { --span-sm: 4; }
.col-sm-1 { --col-sm: 1; } .col-sm-2 { --col-sm: 2; } .col-sm-3 { --col-sm: 3; } .col-sm-4 { --col-sm: 4; }

/* ---- 4. Buttons — Apple capsule, em-based ratios (tokens.css "buttons") ----
   v3 overrides the brand kit's 4px .btn rule at client request (v1 keeps 4px).
   No hover lift (Apple buttons don't move); hover = lighter fill. */
.btn {
  position: relative; /* anchors the ::before hit area */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 0;
  border-radius: var(--radius-btn);
  font: var(--weight-btn) var(--fs-btn) / var(--leading-btn) var(--family-body);
  letter-spacing: var(--tracking-btn);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-quick) var(--ease), color var(--dur-quick) var(--ease),
              box-shadow var(--dur-quick) var(--ease);
}
/* Hit area ≥ --size-touch-min (44px) without changing the capsule: an invisible
   layer extends a shorter pill 1px (42px default) to 6.6px (30.8px nav pill)
   above and below; taller pills (.btn--lg 49px) keep inset 0. */
.btn::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block: min(0px, (100% - var(--size-touch-min)) / 2);
  border-radius: inherit;
}
.btn--lg { font-size: var(--fs-btn-lg); padding: var(--btn-pad-y-lg) var(--btn-pad-x-lg); }
/* Primary: filled mango capsule */
.btn--solid { background: var(--accent); color: var(--text-on-accent); font-weight: var(--weight-btn-strong); }
.btn--solid:hover { background: var(--accent-hover); color: var(--text-on-accent); }
/* Secondary: v1 hairline outline capsule; hover fills lighter */
.btn--ghost { background: transparent; color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn--ghost:hover { background: var(--btn-ghost-hover); color: var(--text-primary); }

/* Rows of adjacent buttons: ≈1.25em apart */
.btn-row, .hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--btn-gap); }
/* A wrapped row in a centered stack stays centered */
.stack-center .btn-row, .band--center .btn-row { justify-content: center; }
/* Equal-width button pair (client 2026-11-17, about "Cry along with us"): every
   pill takes the width of the widest one (1fr tracks under fit-content sizing);
   stacked full-width pair on narrow phones. Stacks at ≤32rem (was 30rem): with the
   20px type floor (2026-11-17) the two 214px pills + gap need ~452px of row, so at
   481–496px the 1fr tracks could no longer stay equal side by side. */
.btn-row--equal { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--btn-gap); }
.stack-center .btn-row--equal { justify-self: center; }
@media (max-width: 32rem) { .btn-row--equal { grid-auto-flow: row; justify-self: stretch; } }

/* A CTA sits --btn-stack-gap (≈1.5em of body) below the paragraph above it.
   Stacks declare their own row gap as --stack-gap; the CTA adds the rest. */
:where(.hero__copy, .band__copy, .page-intro, .promo-banner__copy, .site-footer__intro, .stack-center)
  > :is(.btn, .btn-row, .hero__actions) {
  margin-top: calc(var(--btn-stack-gap) - var(--stack-gap, 0px));
}

/* ---- 5. Header / Footer ---- */
/* Global nav (v2): slim sticky bar, frosted glass over translucent ink-950,
   hairline bottom border. Solid ink fallback when backdrop-filter is missing. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  font-size: var(--fs-nav-base); /* pinned: the body floor (2026-11-17) does not reach the header */
  background: var(--bg-nav-solid);
  border-bottom: 1px solid var(--border-hairline);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--bg-nav);
    -webkit-backdrop-filter: var(--nav-blur);
    backdrop-filter: var(--nav-blur);
  }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--size-nav);
}
.site-header__brand { display: flex; flex: none; align-items: center; gap: var(--space-2); padding-block: calc((var(--size-touch-min) - var(--size-wordmark)) / 2); } /* 44px hit area in the 56px bar */
/* Full-color queen bust at 22px (the one documented exception to the 100px
   logo floor); the wordmark keeps its v1 height. */
.site-header__brand img { height: var(--size-logo); width: auto; }
.site-header__brand .site-header__wordmark { height: var(--size-wordmark); }

.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav a { color: var(--text-nav); font-size: var(--fs-nav); font-weight: 600; white-space: nowrap; }
/* Text links render in caps (HTML text unchanged); the Support pill does not */
.site-nav a:not(.btn) { text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.site-nav a:hover { color: var(--text-primary); }
.site-nav a[aria-current="page"] { color: var(--text-accent); }
/* Inline bar only: 44px tall text-link hit areas, centred in the 56px bar
   (the dropdown below 52rem sets its own padding) */
@media (width > 52rem) {
  .site-nav a:not(.btn) { padding-block: calc((var(--size-touch-min) - var(--fs-nav) * var(--leading-relaxed)) / 2); }
}
/* Compact capsule CTA in the bar: 16px (pinned nav size), bold, not uppercase */
.site-nav .btn {
  font-size: var(--fs-nav);
  font-weight: var(--weight-btn-strong);
  padding: var(--btn-pad-y-sm) var(--btn-pad-x-sm);
}
.site-nav .btn--solid, .site-nav .btn--solid:hover, .site-nav .btn--solid[aria-current="page"] { color: var(--text-on-accent); }

/* 44 × 44 hit box around the 24px glyph, never squeezed; the negative end
   margin puts the glyph's right edge on the content edge (the extra 10px sits
   in the page margin), so the box takes 34px of the row */
.nav-toggle {
  display: none;
  flex: none;
  background: none;
  border: 0;
  padding: calc((var(--size-touch-min) - var(--size-nav-glyph)) / 2);
  margin-inline-end: calc((var(--size-touch-min) - var(--size-nav-glyph)) / -2);
  color: var(--text-primary);
  cursor: pointer;
}

/* Footer — kept from v1 (layout AND type). Only the button style is v3.
   It pins v1's body metrics so the v2 body scale doesn't leak in. */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--bg-footer);
  margin-top: 0; /* last section pb + footer pt = 144px, the section rhythm (audit SPACING-06, client 2026-11-17) */
  font-size: var(--fs-body);
  line-height: var(--leading-body);
}
.site-footer .h2 { font-size: var(--fs-footer-headline); font-weight: 700; line-height: var(--leading-tight); letter-spacing: normal; }
.site-footer__top {
  position: relative;
  z-index: 1;
  --grid-row-gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-7) var(--space-6);
}
/* Grid placement: intro 5 | social 2 (centred on the page axis) | links 5;
   tablet 3 | 2 | 3; stacked and centred ≤56rem (§10). Side by side, the three
   columns are centred vertically on each other (client 2026-11-16). */
.site-footer__intro  { --span: 5; --span-md: 3; }
.site-footer__social { --span: 2; --span-md: 2; justify-self: center; }
.site-footer__links  {
  --span: 5; --span-md: 3; justify-self: end;
}
.site-footer__intro { --stack-gap: var(--stack-gap-h2); display: grid; gap: var(--stack-gap); justify-items: start; }
.site-footer__tagline {
  color: var(--text-muted);
  font-size: var(--fs-body);
  max-width: var(--measure-note);
}
.site-footer__social { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size-social-icon);
  height: var(--size-social-icon);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: background-color var(--dur-quick) var(--ease), transform var(--dur-quick) var(--ease);
}
.social-icon:hover { background: var(--bg-card-hover); color: var(--text-primary); transform: translateY(-2px); }
.social-icon svg { width: var(--size-social-glyph); height: var(--size-social-glyph); }
.social-icon--instagram { color: var(--social-instagram); }
.social-icon--tiktok { color: var(--social-tiktok); }
.social-icon--spotify { color: var(--social-spotify); }
.social-icon--podcast { color: var(--social-podcast); }
.social-icon--youtube { color: var(--social-youtube); }
.site-footer__links ul { list-style: none; padding: 0; display: grid; gap: var(--space-3); justify-items: end; text-align: right; }
.site-footer__links a { display: inline-block; color: var(--text-primary); font-weight: 700; font-size: var(--fs-h2); } /* inline-block: hit box = the 1.6 line box (48.6px at 30.4px), not the 38px glyph box */
.site-footer__links a:hover { color: var(--text-accent); }

/* Full-bleed one-line wordmark below the top row (including the social icon
   stack) — sized wide enough that the outer L and Y crop at the page edges.
   Uses flex centering (not text-align) because text-align does not reliably
   center nowrap content that overflows an overflow:hidden container. */
.site-footer__mini-wordmark {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}
.site-footer__mini-wordmark span {
  white-space: nowrap;
  font-family: var(--family-heading);
  font-weight: 700;
  font-size: var(--fs-footer-wordmark);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--footer-wordmark);
  user-select: none;
}

.site-footer__legal {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-3);
  font-size: var(--fs-body);
  color: var(--text-muted);
  --grid-row-gap: var(--space-3);
  align-items: center;
}
/* Grid placement: credit centred on the page axis, copyright left, sign-off right.
   The credit never wraps. Above the phone tier the row is its own 3-track grid
   (1fr | max-content | 1fr, on the shared gutter) instead of 4 | 4 | 4 / 3 | 2 | 3:
   with floor-size text (20px) the nowrap credit outgrew its 2-of-8 tablet track and
   ran into the copyright at 735–1254px. Its own max-content track keeps it exactly on
   the page axis and can never overlap; the equal 1fr sides take the copyright, which
   wraps (balanced) where the row can't fit one line (review fix 2026-11-17). */
.site-footer__legal > * { --span: 4; --span-md: 3; }
.site-footer__legal > :first-child { justify-self: start; }
.site-footer__legal > :last-child { justify-self: end; }
.site-footer__legal-credit { --span-md: 2; justify-self: center; white-space: nowrap; font-size: var(--fs-footer-credit); color: var(--text-muted); } /* subdued: the row's muted ink, one step under the floor (client 2026-11-20) */
@media (width > 734px) {
  .site-footer__legal { grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr); }
  .site-footer__legal > * { --span: 1; --span-md: 1; }
  .site-footer__legal > :first-child { text-wrap: balance; }
}

/* ---- 6. Sections (v1 layout) ---- */
/* Hero: 2-col text/portrait over the brand texture, fading to the page at the
   bottom. It slides up under the frosted nav so the bar has texture to blur. */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--size-nav) * -1);
  padding-top: var(--size-nav);
  background: url("../assets/img/bg-hero.webp") center / cover no-repeat fixed, var(--bg-page);
}
.hero::after { content: ""; position: absolute; inset: 0; background: var(--grad-fade-bottom); }
.hero__inner {
  position: relative;
  z-index: 1;
  --grid-row-gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-7);
}
/* Grid placement: copy 7 | portrait 5 (v1's 1.4fr : 1fr); tablet 5 | 3;
   stacked ≤56rem with the portrait first (§10) */
.hero__copy { --span: 7; --stack-gap: var(--stack-gap-h1); display: grid; gap: var(--stack-gap); justify-items: start; }
.hero__portrait { --span: 5; position: relative; justify-self: stretch; display: grid; justify-items: center; } /* stretch so the img % width resolves against the column */
/* Studio photo (client 2026-11-20, moved here from the now-hidden promo banner):
   square, rounded and lifted like the "Why we started" photo. The earlier cut-out
   (assets/img/hosts-hero.webp) is kept on disk for later. */
.hero__portrait img {
  position: relative;
  width: min(32rem, 100%);
  height: auto;
  aspect-ratio: var(--ratio-square);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Platform row: centered "Listen On" label above a row of full-color logos.
   The four 60px badges are spread evenly across the full wide content well
   (.container--wide: 1248px at ≥1292px), first badge on the well's left edge,
   last on its right edge, so they line up with the sections below. The well
   only narrows with the window, so the gaps shrink but never below --platforms-gap-min
   (flex gap = a floor, no wrap). Below the container width where four fit at
   that floor (714px of badges + 3 × 32px = 810px), the 2×2 grid takes over. */
.platforms { padding-block: var(--space-6); }
/* .grid: label and logo row are full-width items, centred in their row.
   The inner is the size container the badge row queries (real width, not the
   viewport, so page margins and text zoom are already accounted for). */
.platforms__inner { justify-items: center; container: platforms / inline-size; }
.platforms__label { display: block; text-align: center; }
.platforms__logos {
  width: min(100%, var(--size-platforms-row));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--platforms-gap-min);
}
.platforms__logos > a { flex-shrink: 0; } /* guard: badges never squash in the row */
.platforms__logos img {
  height: var(--size-platform-badge);
  width: auto;
  filter: drop-shadow(var(--shadow-soft));
}
/* Four at 60px + 3 minimum gaps no longer fit (container < 810px): a centred
   two-column grid with aligned columns (no 3+1 orphan, no ragged wrap). Below
   the 2×2's own 60px width (406px container) all four shrink together, so
   they stay one height and never overlap (≈42px at a 320px window). */
@container platforms (width < 810px) {
  .platforms__logos {
    width: auto;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    justify-items: start;
    gap: var(--space-4) var(--platforms-gap-min);
  }
  .platforms__logos img {
    height: min(var(--size-platform-badge), (100cqw - var(--platforms-gap-min)) / var(--platforms-grid-aspect));
  }
  /* Shrunken badges (< 44px below a ~352px window) keep a 44px tall link */
  .platforms__logos > a { display: grid; align-items: center; min-height: var(--size-touch-min); }
}

/* Generic section rhythm */
.section { padding-block: var(--space-7); }
/* .grid: title block 8 | action 4 (pinned to the end, on the title's baseline row) */
.section__head { align-items: end; margin-bottom: var(--space-6); }
.section__head > :first-child { --span: 8; }
.section__head > :last-child { --span: 4; justify-self: end; }
.section__head .eyebrow { display: block; margin-bottom: var(--stack-gap-h2); }

/* Bands — ONE tokenized format (tokens.css "Semantic: band"; docs §4 + §13).
   Surface (every band): v1's wide block (gradient, --radius-lg, full container
   width) with v2's inner ratios: --space-card padding, 16px eyebrow→headline→
   body rhythm, CTA at --btn-stack-gap. A band is one block (one grid item) of
   its section grid.
   Two kinds:
   - Image band: .band.band--split.band--align-left|right.grid >
     .band__media > img.band__art[--cover|--photo]  +  .band__copy
   - Copy-only / stacked-figure band: .band.band--center (no tile).
   Image bands: media and copy share ONE row height (Apple HIG Layout: align
   and group related items). The copy sets the row height. .band__media is an
   equal-height media TILE: it fills its columns edge to edge and stretches to
   the copy's row (a size container, so the art never adds height), on
   --band-media-bg with --band-media-radius. Logo and cover art are a square of
   the tile's shorter side (--band-art-box), shown whole (contain: crown and
   cover lettering never cropped); the queen rests on the tile floor, the cover
   is centred. Photos fill the tile (cover) around their focal point, cropped at
   the sides only, so faces are never cut. So the tile always matches the text
   block at any width or text size; the tile ↔ copy gap is the grid gutter
   (+ --band-split-pad).
   Placement: media --band-media-span | copy the rest (3 | 9; 4 | 8 while the
   wide well is fluid; tablet 3 | 5). align-left = media left, copy left-aligned;
   align-right = copy in the left columns flush right, media right (mirrored,
   DOM order unchanged). Stacked (≤56rem on the tablet tier, every phone): the
   tile first, full width, then the copy with its alignment (§10). */
.band {
  background: var(--grad-band);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: var(--space-card);
  box-shadow: var(--shadow-card);
}
.band--textured { background: var(--grad-band), url("../assets/img/bg-texture.webp") center / cover; }
.band--center:not(.grid) { grid-template-columns: 1fr; gap: var(--space-6); justify-items: center; text-align: center; }
.band--center .band__copy { justify-items: center; }
.band__copy { --stack-gap: var(--stack-gap-h2); display: grid; gap: var(--stack-gap); justify-items: start; }
/* Review fix 2026-11-16: the copy column never grows past its box (an `auto`
   column grew to the widest nowrap button and got clipped by .band's
   overflow at large default text on phones); a too-long button wraps to a
   two-line capsule instead. No effect at 16px default text. */
.band__copy { grid-template-columns: minmax(0, 1fr); }
.band__copy .btn { max-width: 100%; white-space: normal; text-align: center; }
/* Narrow phones (≤30rem): band leads drop to body size so the 228–298px copy column
   reaches the 35–60 char mobile measure (audit TYPE-2, client 2026-11-17) */
@media (max-width: 30rem) { .band__copy .lead { font-size: var(--fs-body-md); } }
.band__copy p { color: var(--text-lead); max-width: var(--measure-body); }
/* Explicit copy alignment (client: image bands are never centred) */
.band--align-left .band__copy { justify-items: start; text-align: left; }
.band--align-right .band__copy { justify-items: end; text-align: right; }

/* Image band (split) */
.band--split { --grid-row-gap: var(--band-stack-gap); }
.band--split > .band__media {
  --span: var(--band-media-span); --span-md: var(--band-media-span-md);
  align-self: stretch;
  container-type: size;
  display: grid;
  place-items: var(--band-art-place);
  padding: var(--band-media-pad);
  background: var(--band-media-bg);
  border-radius: var(--band-media-radius);
}
.band--split > .band__copy {
  --span: calc(var(--grid-columns) - var(--band-media-span));
  --span-md: calc(var(--grid-columns) - var(--band-media-span-md));
  padding-inline-start: var(--band-split-pad);
}
/* Band text fills its column out to the band's inner padding: right inset = left inset (client 2026-11-17) */
.band--split > .band__copy > :is(p, h2, .eyebrow) { max-width: var(--band-copy-measure); }
.band--split.band--align-right > .band__copy {
  --col: 1; --row: 1; --col-md: 1; --row-md: 1;
  padding-inline: 0 var(--band-split-pad);
}
.band--split.band--align-right > .band__media {
  --col: calc(var(--grid-columns) + 1 - var(--band-media-span)); --row: 1;
  --col-md: calc(var(--grid-columns) + 1 - var(--band-media-span-md)); --row-md: 1;
}
/* Art: logo (default) and cover = contained square; photo = fills the tile */
.band--split > .band__media > .band__art {
  width: var(--band-art-box);
  height: var(--band-art-box);
  object-fit: var(--band-art-fit);
}
.band--split > .band__media > .band__art--cover { place-self: var(--band-cover-place); border-radius: var(--band-cover-radius); }
.band--split > .band__media > .band__art--photo {
  width: 100cqw;
  height: 100cqh;
  place-self: center;
  object-fit: var(--band-photo-fit);
  object-position: var(--band-photo-focus);
  border-radius: var(--band-photo-radius);
}
/* Short centered band/stack paragraphs break evenly (no two-word last line) */
.band--center .band__copy p, .stack-center p { text-wrap: balance; }

/* Cinematic wide media insert (about page studio shot) */
.media-cinematic {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ratio-wide);
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-md);
}

/* Full-bleed promo banner: text left, half-bleed image right with a faded
   left edge so it blends out of the background instead of a hard crop.
   Background matches the episode-card surface color. */
.promo-banner { position: relative; overflow: hidden; background: var(--bg-card); padding-block: var(--space-7); }
.promo-banner__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 48%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 34%);
  mask-image: linear-gradient(to right, transparent 0%, black 34%);
}
.promo-banner__inner { position: relative; z-index: 1; }
/* Grid placement: copy in the left 6 (tablet 5) columns, held to a 30rem measure */
.promo-banner__copy { --span: 6; --span-md: 5; --stack-gap: var(--stack-gap-h2); display: grid; gap: var(--stack-gap); max-width: 30rem; justify-items: start; }

/* "Why we started" feature: section headline + lead / rounded photo (canvas
   2026-11-16 removed the tag and the small queen logo; the h2 is now a direct
   stack item, so there is no brand-lockup row).
   .grid: copy 6 | photo 6 on the shared gutter (photo starts on column line 7 /
   tablet 5 like every other section); the copy pads its inner edge so the
   copy → photo gap still reads as v1's 48px. Stacked ≤56rem (§10). */
.feature { --grid-row-gap: var(--space-6); align-items: center; }
.feature > * { --span: 6; }
.feature__copy { --stack-gap: var(--stack-gap-h2); display: grid; gap: var(--stack-gap); justify-items: start; padding-inline-end: var(--grid-split-pad); }

/* Split sections (home band, Why feature, promo): one tokenized type + spacing
   set (tokens.css "Split sections"). Sizes override the per-component roles. */
.split-copy { --stack-gap: var(--split-stack-gap); --btn-stack-gap: var(--split-cta-gap); }
.split-copy > .eyebrow { font-size: var(--split-fs-eyebrow); }
.split-copy > h2 { font-size: var(--split-fs-heading); }
.split-copy > p:not(.eyebrow) {
  font-size: var(--split-fs-body);
  line-height: var(--split-lh-body);
  max-width: var(--split-measure);
  color: var(--text-lead);
}
.band:has(> .split-copy) { padding-block: var(--split-pad-block); }
.promo-banner:has(.split-copy) { padding-block: var(--split-pad-block); }
.feature__photo {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ratio-classic);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---- 7. Episode cards / archive ---- */
/* .grid: cards span 4 of 12 / 4 of 8 / 4 of 4 (classes set in js/main.js
   episodeCard) on the shared gutter (24 / 20 / 16px), rows 32px apart (8pt × 4) */
.episode-grid { --grid-row-gap: var(--space-5); list-style: none; padding: 0; }
/* The hover lift comes from the kit (data-cm="hover", fine pointers only) */
.episode-card {
  position: relative; /* stretched-link anchor */
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color var(--dur-quick) var(--ease);
}
.episode-card:hover { background: var(--bg-card-hover); }
.episode-card__art { aspect-ratio: var(--ratio-square); height: auto; object-fit: cover; width: 100%; }
.episode-card__body { padding: var(--space-4); display: grid; gap: var(--space-2); align-content: start; }
.episode-card__meta { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); color: var(--text-secondary); }
.episode-card__meta .chip { padding-block: 0; }
.episode-card h3 { font-size: var(--fs-h3); font-family: var(--family-heading); letter-spacing: 0.01em; }
.episode-card h3 a { color: var(--text-primary); }
.episode-card h3 a:hover { color: var(--text-accent); }
/* Whole card is the tap target without extra tab stops; focus ring on the card */
.episode-card h3 a::after { content: ""; position: absolute; inset: 0; }
.episode-card:has(h3 a:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: var(--focus-offset); }
.episode-card:has(h3 a:focus-visible) h3 a:focus-visible { outline: none; }
.episode-card__song { color: var(--text-accent); font-weight: 600; font-size: var(--fs-small); }
/* Shown in full (no line clamp: it cut 1–2 lines at 320px and more with larger
   text; ui-ux-pro-max dynamic-type). Grid rows keep the cards equal height. */
.episode-card__excerpt { color: var(--text-secondary); font-size: var(--fs-small); }

/* Episode archive controls */
.filters { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; margin-bottom: var(--space-6); }
.filters__search {
  flex: 1 1 16rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--control-pad-y) var(--space-3); /* same height as the filter pills (47px ≤480, 51px above, at the floor size) */
  color: var(--text-primary);
  font: var(--fs-body) var(--family-body);
}
.filters__search::placeholder { color: var(--text-muted); }
.filters__search:focus { outline: 2px solid var(--focus-ring); outline-offset: 0; }
.filter-pill {
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  padding: var(--control-pad-y) var(--space-4);
  font: 600 var(--fs-body) var(--family-body);
  cursor: pointer;
  transition: background-color var(--dur-quick) var(--ease), border-color var(--dur-quick) var(--ease),
              color var(--dur-quick) var(--ease);
}
.filter-pill:hover { color: var(--text-primary); border-color: var(--text-primary); }
.filter-pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }

.empty-note { color: var(--text-muted); text-align: center; padding-block: var(--space-7); }

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

/* ---- 9. Motion glue (Cinematic Motion Kit) ----
   The kit's reveal/stagger rules set `transition` for opacity + translate only,
   which would make a kit hover lift (transform) snap. Elements that both
   reveal and hover get one combined transition list here. The entrance delay
   applies to opacity/translate only, never to the hover. */
.cm-ready [data-cm~="reveal"][data-cm~="hover"],
.cm-ready [data-cm~="stagger"] > [data-cm-item][data-cm~="hover"] {
  transition: opacity var(--cm-duration) var(--cm-ease) var(--cm-delay),
              translate var(--cm-duration) var(--cm-ease) var(--cm-delay),
              transform var(--dur-hover) var(--ease-cm),
              background-color var(--dur-quick) var(--ease);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .episode-card[data-cm~="hover"] {
    transition: transform var(--dur-hover) var(--ease-cm), background-color var(--dur-quick) var(--ease);
  }
}

/* ---- 10. Responsive ----
   Grid tiers switch at 1068px / 734px (§3b). The v1 component stack points
   below are kept so every section keeps its v1 look; they mostly change grid
   placement properties (--span-md, --row-md …), never the grid itself.
   They are em-based (they follow the reader's text size) but are clamped to the
   tablet/phone tiers: "(≤56rem and ≤1068px), or ≤734px". Without the clamp, a
   larger default font (56rem > 1068px from 19.1px up) applied the stacked
   cosmetics to the desktop 12-column tier, which never reads the -md values
   (half-stacked hybrid); and the phone tier always stacks. */
@media (width <= 56rem) and (width <= 1068px), (width <= 734px) {
  /* Footer top: stacked and centred (minmax(0, 1fr) tracks + wrapping icons fix
     v1's phone overflow, where a 1fr track grew to the 5-icon row's width) */
  .site-footer__top { justify-items: center; text-align: center; padding-block: var(--space-6); }
  .site-footer__top > * { --span-md: 8; justify-self: center; }
  .site-footer__intro { justify-items: center; }
  .site-footer__social { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .site-footer__links ul { justify-items: center; text-align: center; }
  /* Hero: one column, portrait first */
  .hero__inner { padding-block: var(--space-6); }
  .hero__copy { --span-md: 8; --row-md: 2; --row-sm: 2; }
  .hero__portrait { --span-md: 8; --row-md: 1; --row-sm: 1; }
  .hero__portrait img { width: min(24rem, 86vw); }
  /* Feature: one column, centred */
  .feature > * { --span-md: 8; }
  .feature__copy { justify-items: center; text-align: center; padding-inline-end: 0; }
  /* Image bands: stacked. The media tile spans the full copy column at
     --band-stack-ratio, capped at --band-stack-media-max tall, with the art (a
     square of the tile height, photos included) centred in it; then the copy
     with its alignment (left / right). One rule from 896px down to 320px, so
     nothing jumps at the 734/735 tier edge. */
  .band--split > .band__media,
  .band--split.band--align-right > .band__media {
    --span-md: var(--grid-columns); --row-md: 1; --col-md: 1;
    justify-self: stretch;
    align-self: start;
    aspect-ratio: var(--band-stack-ratio);
    max-height: var(--band-stack-media-max);
  }
  .band--split > .band__copy,
  .band--split.band--align-right > .band__copy { --span-md: var(--grid-columns); --row-md: 2; --col-md: 1; padding-inline: 0; }
  .band--split > .band__media > .band__art--photo { width: var(--band-art-box); height: var(--band-art-box); }
}

@media (width <= 48rem) and (width <= 1068px), (width <= 734px) {
  .promo-banner__media { display: none; }
  .promo-banner__copy { --span-md: 8; max-width: none; justify-items: center; text-align: center; }
}

/* Nav collapses before the inline links + CTA can squeeze (v2 dropdown).
   52rem, not v2's 46rem: the uppercase, tracked links + bold pill + 34px
   wordmark need ~830px on one line (they wrapped/overlapped at 737–805px). */
@media (max-width: 52rem) {
  /* 8px minimum brand ↔ toggle gap (space-between spreads them anyway) so the
     44px toggle fits at 320px, also at 24px default text */
  .site-header__inner { gap: var(--space-2); }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-nav-menu);
    border-bottom: 1px solid var(--border-hairline);
    padding: var(--space-2) var(--grid-margin-min) var(--space-5); /* items on the logo's 22px line */
  }
  .site-nav a { padding-block: var(--space-3); font-size: var(--fs-nav-menu); border-bottom: 1px solid var(--border-hairline); }
  /* Menu CTA: the large capsule (18px, 49px tall), not smaller than the 20px links above it */
  .site-nav .btn { margin-top: var(--space-4); padding: var(--btn-pad-y-lg) var(--btn-pad-x-lg); font-size: var(--fs-nav-menu-btn); border-bottom: 0; }
  .site-nav.is-open { display: flex; }
}

@media (max-width: 40rem) {
  /* Centred (copy-only / figure) bands: v2 tile ratio media→copy (16 + 8px = --space-4,
     equal to the 24px --space-card padding at this width) */
  .band--center:not(.grid) { gap: var(--space-4); }
}

/* Phone tier (grid stacks every item full width): action under the title,
   footer legal lines centred */
@media (max-width: 734px) {
  .section__head > :last-child { justify-self: start; }
  .site-footer__legal { text-align: center; }
  .site-footer__legal > :first-child,
  .site-footer__legal > :last-child,
  .site-footer__legal-credit { justify-self: center; }
}

/* Hero CTA pair on narrow phones: the two large capsules need ~347px, so below
   25rem they step down to the default capsule (same Apple ratios, em-based) and
   keep v1's one-row pair instead of stacking. */
@media (max-width: 25rem) {
  .hero__actions > .btn--lg { font-size: var(--fs-btn); padding: var(--btn-pad-y) var(--btn-pad-x); }
}

/* Without JavaScript the hamburger can't open the menu, so the collapsed nav
   shows its links inline under the brand instead; JS-only archive controls hide. */
@media (scripting: none) {
  .filters, .archive-count { display: none; }
}
@media (scripting: none) and (max-width: 52rem) {
  .site-header { position: relative; }
  .site-header__inner { flex-wrap: wrap; gap: var(--space-4); padding-block: var(--space-2); }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-4);
    padding: 0;
    background: none;
    border: 0;
  }
  .site-nav a { padding-block: var(--space-1); font-size: var(--fs-nav); border-bottom: 0; }
  .site-nav .btn { margin-top: 0; padding: var(--btn-pad-y-sm) var(--btn-pad-x-sm); }
}
