/* ==========================================================================
   The Balance Theory — page sections & components
   Depends on tokens in site.css.
   ========================================================================== */

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

.hero {
  /* One measure for the space above the hero's words (under the header) and
     below them (above the film), so the two always match. The film is the
     hero's last thing, so no padding under it: the next section's own
     padding sets that gap. */
  --hero-space: clamp(2.25rem, 4vw, 3.75rem);
  /* On wide screens the words sit this much higher than that measure, and the
     space above the film grows by the same amount, so the film stays put. */
  --hero-lift: 0px;
  /* The headline runs 85% of the site-wide h1 size. Set here, not in site.css,
     so other pages' h1s keep theirs; the film's offset below reads it too. */
  --h1-size: clamp(2.55rem, 1.02rem + 7.14vw, 7.225rem);
  position: relative;
  padding-block: var(--hero-space) 0;
  overflow: clip;
}

@media (min-width: 861px) {
  .hero { --hero-lift: clamp(1rem, 2.2vw, 2.25rem); }
}

/* Butter blob drifting behind the headline. */
.hero::before {
  content: "";
  position: absolute;
  top: -18vh;
  right: -12vw;
  width: min(58vw, 40rem);
  aspect-ratio: 1;
  background: radial-gradient(circle at 40% 40%, var(--butter), transparent 62%);
  opacity: 0.75;
  filter: blur(10px);
  animation: drift 22s var(--ease-in-out) infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-6%, 5%) scale(1.07); }
  66% { transform: translate(4%, -4%) scale(0.95); }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  margin-top: calc(-1 * var(--hero-lift));
}

.hero__title { margin-block: 0.35em 0; }

.hero__title .line {
  /* Inline, with <br>s between, so the phone and wide-screen line breaks
     can differ (see .br-phone / .br-wide). */
  display: inline-block;
  vertical-align: top;
  /* The clip box is what makes the rise animation read as type sliding into
     place, but line-height is 0.94 — tighter than the font's em box — so a bare
     overflow:hidden shears the descenders off "doing", "g", "y". The padding
     extends the mask below the baseline and the negative margin takes the space
     back, leaving the line rhythm untouched. */
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
  /* Same trick on the right, for the italic "theory" leaning past its box. */
  padding-right: 0.12em;
  margin-right: -0.12em;
  overflow: hidden;
}

.hero__title .line > span {
  display: block;
  /* Starts far enough down to clear the padded mask, or the ascenders peek
     through before the animation begins. */
  transform: translateY(140%);
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  to { transform: translateY(0); }
}

/* By piece: "theory" and "and" share the middle line on wide screens. */
.hero__title .line:nth-of-type(1) > span { --delay: 0.15s; }
.hero__title .line:nth-of-type(2) > span { --delay: 0.28s; }
.hero__title .line:nth-of-type(3) > span { --delay: 0.28s; }
.hero__title .line:nth-of-type(4) > span { --delay: 0.41s; }

/* Phones: the headline on two lines, sized so "We have a theory" runs the
   full width, and the intro a little narrower so it sits in three lines
   (from 360px to 430px wide phones). */
@media (max-width: 640px) {
  .hero__title { font-size: min(calc((100vw - 2 * var(--gutter)) / 6.75), 4.5rem); }
  .hero__aside .lede { max-width: 85%; }
}

/* The highlight in the hero intro waits for the text to finish fading up, so
   it sweeps across type that has landed rather than type still moving. */
.hero__aside .mark { transition-delay: 1.3s; }

/* Level with the middle of the headline's letters, not its foot. The
   headline's box has room above "We" and below the "p" tail that the letters
   don't fill, so centring on the box alone sits high; the margin (half of it
   counts once centred) takes it down to the letters' middle. */
.hero__aside {
  display: grid;
  gap: 1.5rem;
  align-self: center;
  margin-top: calc(0.47 * var(--h1-size));
  animation: fade-up 1s var(--ease) 0.6s backwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(1.5rem); }
}

/* --- Hero film ----------------------------------------------------------
   Edge to edge under the headline. It sits between the hero's two .shell
   blocks, so it gets the full page width without a 100vw sum (which counts
   the scrollbar and overhangs the page). 16:9 while that fits, but never
   taller than most of the screen on a wide monitor and never a thin strip on
   a phone; either way the clip is cropped from the centre. The vh line is the
   fallback for browsers without svh. */

.hero__film {
  /* The same --hero-space as above the hero, but measured from the tail of
     the "p" in "simple." rather than from the headline's box, which the
     descenders hang about 0.19em below. */
  margin-top: calc(var(--hero-space) + 0.19 * var(--h1-size) + var(--hero-lift));
  height: clamp(18rem, 56.25vw, 88vh);
  height: clamp(18rem, 56.25vw, 88svh);
  background: var(--paper-deep);
  animation: fade-up 1s var(--ease) 0.7s backwards;
}

/* Stacked on phones, the buttons are the last thing above the film, so no
   allowance for descenders. */
@media (max-width: 860px) {
  .hero__film { margin-top: var(--hero-space); }
}

.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Topic tiles & ticker -------------------------------------------------
   Their own section (#topics), after "What the show is". */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 1vw, 0.85rem);
}

@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.topics__strip {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-color: var(--ink-15);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__aside { margin-top: 0; }
}

/* --- Platform links ----------------------------------------------------- */

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

.platform {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--ink-15);
  border-radius: 999px;
  font-family: var(--label);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.platform:hover,
.platform:focus-visible {
  transform: translateY(-3px);
  background: var(--butter);
  border-color: var(--ink);
}

.platform svg { width: 0.95rem; height: 0.95rem; fill: currentColor; }

.section--ink .platform {
  border-color: rgba(244, 237, 225, 0.25);
  background: transparent;
}

.section--ink .platform:hover { color: var(--ink); }

/* --- Premise (what the show is) ----------------------------------------- */

.premise__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.premise__statement {
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.1rem + 2.7vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.premise__statement em { font-family: var(--display-italic); font-style: italic; }

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

/* --- Next up (shop + Ask Erika, side by side) ---------------------------- */

.nextup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nextup__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border: 1px solid var(--ink-15);
  border-radius: 1.5rem;
}

.nextup__card--deep { background: var(--paper-deep); border-color: transparent; }

.nextup__card h2.display { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); }

.nextup__card .cluster { margin-top: auto; padding-top: 0.5rem; }

/* The site's standard large button reads tiny under a lede this size. */
.nextup__card .btn {
  padding: 1.3em 2.4em;
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
}

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

/* --- Topic tiles ---------------------------------------------------------
   Four doors into the archive. A tile can carry a
   muted clip (data-video, started by site.js); without one it is ink with a
   butter glow, so it never looks unfinished. No transition is set on .tile
   itself: it would replace the reveal transition from [data-reveal]. */

/* Columns come from the .tiles grid above.
   Each tile spans three rows of this grid (number, name, blurb) and lays its
   parts on them through subgrid, so tiles side by side share row heights: a
   blurb that wraps onto an extra line moves every name in that row together,
   never just its own. The middle row carries the tile's minimum height
   (a min-height on the tile itself is ignored once its rows are a subgrid)
   and takes any spare height, which leaves room above the name for a clip. */
.tiles {
  grid-auto-rows: auto minmax(clamp(2.5rem, 7vw, 5.5rem), 1fr) auto;
}

.tile {
  position: relative;
  display: grid;
  grid-row: span 3;
  grid-template-rows: auto 1fr auto;
  grid-template-rows: subgrid;
  gap: 0.75rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 0.25rem;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* The clipping lives here, not on .tile, so the tile itself never cuts off
   its own text. */
.tile__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
}

/* Painted in order: glow, then the clip over it, then shade over both so
   the words always read. */
.tile__media::before,
.tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tile__media::before {
  background: radial-gradient(circle at 85% 10%, var(--butter), transparent 55%);
  opacity: 0.22;
  transition: opacity 0.6s var(--ease);
}

.tile__media::after {
  background: linear-gradient(to top, rgba(22, 19, 15, 0.85), rgba(22, 19, 15, 0.1) 65%);
}

.tile:hover .tile__media::before,
.tile:focus-visible .tile__media::before { opacity: 0.6; }

.tile__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease), filter 0.7s var(--ease), transform 0.9s var(--ease);
}

.tile.has-video .tile__video { opacity: 1; }

.tile:hover .tile__video {
  filter: none;
  transform: scale(1);
}

.tile__num {
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--butter);
}

.tile__name {
  align-self: end;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.015em;
  transition: transform 0.55s var(--ease);
}

.tile:hover .tile__name { transform: translateX(0.4rem); }

.tile__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(244, 237, 225, 0.25);
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--paper-60);
}

.tile__arrow {
  color: var(--butter);
  transition: transform 0.45s var(--ease);
}

.tile:hover .tile__arrow { transform: translateX(0.28em); }

@media (max-width: 560px) {
  .tile__foot { font-size: 0.8125rem; }
}

/* --- Proof / stats ------------------------------------------------------ */

.stats {
  display: grid;
  /* 15rem keeps "Top 10%" (the widest frame of the countdown) inside its
     column at full number size; narrower screens drop to two columns. */
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-block: clamp(2rem, 5vw, 3.5rem);
}

.stat__value {
  font-family: var(--display);
  font-size: clamp(2.75rem, 1.25rem + 4.4vw, 5.25rem);
  white-space: nowrap;
  /* Room for the "p" in "Top", which at full size would drop into the label. */
  padding-bottom: 0.14em;
  line-height: 0.9;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 0.06em;
}

/* Prefix/suffix ("Top", "%", "M+") set at full number size, so "Top 1%"
   reads as one figure. */
.stat__prefix { margin-right: 0.2em; }

.stat__label {
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper-60);
  margin-top: 0.85rem;
  max-width: 20ch;
}

.section--ink .stat__value { color: var(--butter); }

/* Phones: two by two, numbers a size down so "Top 10%" (the widest frame of
   the countdown) still fits half the width. */
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .stats .stat__value { font-size: clamp(2rem, 9.5vw, 2.75rem); }
}

/* --- YouTube comment wall ----------------------------------------------- */

.ytwall__label {
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper-60);
  margin-bottom: 1.5rem;
}

/* Montage: the screenshots are scattered and overlap like prints pinned to a
   board. Each card has its own tilt and stacking order; hovering one brings
   it to the front and straightens it. */
.ytc { position: relative; margin: 0; }

.ytc:nth-child(1) { --tilt: -3deg;   z-index: 1; }
.ytc:nth-child(2) { --tilt: 2.5deg;  z-index: 3; }
.ytc:nth-child(3) { --tilt: -1.5deg; z-index: 2; }
.ytc:nth-child(4) { --tilt: 2deg;    z-index: 4; }
.ytc:nth-child(5) { --tilt: -2.5deg; z-index: 5; }

.ytc:hover,
.ytc:focus-within { z-index: 10; }

/* Wide screens: a 12-column board, three cards on top and two tucked into
   the gaps below. Overlaps are kept to edges and corners, which on a YouTube
   comment are empty (below the avatar, right of "Reply"), so no words are
   covered. The top row is bottom-aligned so each card's lift above the row
   line, and so each overlap, is set here rather than by comment length. */
@media (min-width: 861px) {
  .ytwall {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding-block: 0.5rem 1.5rem;
  }

  .ytc:nth-child(-n + 3) { grid-row: 1; align-self: end; }
  /* Just below the row line: the tilts alone make the corners cross, and any
     deeper would cover the like counts on the top row. */
  .ytc:nth-child(n + 4) { grid-row: 2; align-self: start; margin-top: 0.5rem; }

  .ytc:nth-child(1) { grid-column: 1 / span 4; }
  .ytc:nth-child(2) { grid-column: 5 / span 4; margin: 0 -0.75rem 1.75rem; }
  .ytc:nth-child(3) { grid-column: 9 / span 4; margin-bottom: 0.25rem; }
  .ytc:nth-child(4) { grid-column: 3 / span 4; }
  .ytc:nth-child(5) { grid-column: 7 / span 4; margin-left: 1rem; margin-right: -1rem; }
}

/* Narrow screens: one zig-zag stack, each card tucked under the last. */
@media (max-width: 860px) {
  .ytwall {
    display: flex;
    flex-direction: column;
    padding-inline: 0.25rem;
  }

  .ytc { width: min(90%, 26rem); }
  .ytc:nth-child(odd) { align-self: flex-start; }
  .ytc:nth-child(even) { align-self: flex-end; }
  .ytc + .ytc { margin-top: -0.75rem; }
}

/* The screenshot: YouTube's dark theme, type and pixel spacing, deliberately
   in px so it looks captured rather than restyled. The whole card links to
   the comment on YouTube. */
.ytc__shot,
.ytc__shot:hover {
  color: #f1f1f1;
  text-decoration: none;
}

.ytc__shot {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px 22px 16px;
  background: #0f0f0f;
  font-family: Roboto, Arial, sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow:
    0 1.25rem 2.5rem -0.75rem rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  rotate: var(--tilt, 0deg);
  transition:
    rotate 0.5s var(--ease),
    scale 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.ytc:hover .ytc__shot,
.ytc__shot:focus-visible {
  rotate: 0deg;
  scale: 1.03;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 2rem 4rem -1rem rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

.ytc__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--av, #606060);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.ytc__meta { font-size: 13px; line-height: 18px; margin-bottom: 2px; }
.ytc__meta cite { font-style: normal; font-weight: 500; margin-right: 4px; }
.ytc__meta span { color: #aaa; }

.ytc__text { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }

.ytc__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #aaa;
}

.ytc__actions svg { width: 16px; height: 16px; fill: #f1f1f1; }
.ytc__down { transform: rotate(180deg); margin-left: 8px; }
.ytc__actions span { margin-left: 16px; color: #f1f1f1; font-weight: 500; }

/* --- Guest wall --------------------------------------------------------- */

/* One row that scrolls sideways: swipe, trackpad, or the arrows (site.js).
   --per is how many cards show at once. The arrows get their own columns
   either side, so they never sit on a photo. */
.guestrail {
  --per: 3;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --arrow: 3rem;
  --space: clamp(0.75rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: var(--arrow) minmax(0, 1fr) var(--arrow);
  column-gap: var(--space);
  align-items: start;
  container-type: inline-size;
}

.guestgrid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.guestgrid::-webkit-scrollbar { display: none; }

.guestcard {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

/* Arrows sit level with the middle of the photos. Photo width = the middle
   column (row width less both arrow columns) split across --per cards. */
.guestrail__arrow {
  margin-top: calc(
    (100cqw - 2 * var(--arrow) - 2 * var(--space) - (var(--per) - 1) * var(--gap)) / var(--per) / 2
    - var(--arrow) / 2
  );
  display: grid;
  place-items: center;
  width: var(--arrow);
  height: var(--arrow);
  border: 1px solid var(--ink-15);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--label);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.guestrail__arrow:hover,
.guestrail__arrow:focus-visible {
  background: var(--butter);
  border-color: var(--ink);
}

/* Soft-cornered photo box. Empty = placeholder; an <img> inside fills it. */
.guestcard__photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--ink-15);
  border-radius: 14px;
  background: var(--paper-deep);
  margin-bottom: 1rem;
}

.guestcard__photo:empty::after {
  content: "Photo";
  font-family: var(--label);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.guestcard__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.guestcard:hover .guestcard__photo img { transform: scale(1.04); }

/* Name on the left, Spotify / Apple / YouTube icons on the right. */
.guestcard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.guestcard__links {
  display: flex;
  gap: 0.35rem;
  flex: none;
}

.guesticon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--ink-15);
  border-radius: 999px;
  color: var(--ink);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.guesticon:hover,
.guesticon:focus-visible {
  transform: translateY(-2px);
  background: var(--butter);
  border-color: var(--ink);
}

.guesticon svg { width: 0.9rem; height: 0.9rem; fill: currentColor; }

.guestcard__name {
  font-family: var(--display);
  font-size: clamp(1.15rem, 0.8rem + 1.2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  transition: color 0.4s var(--ease);
}

.guestcard__note {
  margin-top: 0.4rem;
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-45);
  line-height: 1.7;
  transition: color 0.4s var(--ease);
}

.guestcard:hover .guestcard__note { color: var(--clay); }

.guestgrid__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

/* Half the usual space under the guest section, to match the tighter gap
   above its button. */
#guests { padding-bottom: calc(var(--section-y) / 2); }

@media (max-width: 600px) {
  .guestrail { --per: 1; --arrow: 2.5rem; --space: 0.5rem; }
  .guestcard__photo { border-radius: 10px; }
  .guestgrid__more .btn { white-space: normal; text-align: center; }
}

/* --- About --------------------------------------------------------------
   The copy sits over a full-bleed film. The overlay is dark behind the text
   on the left and fades to nothing, so the right of the clip (where Erika
   sits) plays at full brightness. On phones the text spans the width, so the
   overlay is even. The film is at z-index -1 inside an isolated section, so
   it can never cover the copy. */

.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.about__film {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
}

/* The fade is tied to the copy, not the screen: it begins 4rem inside the
   right edge of the 40rem column (the text there is still on 0.87) and clears
   28rem later, whatever the screen width. The stops trace an ease-in-out
   curve, so there is no visible edge where the fade starts or ends. */
.about__film::after {
  --fade-start: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter) + 36rem);
  --step: 3.5rem;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(22, 19, 15, 0.92) 0%,
    rgba(22, 19, 15, 0.9) var(--fade-start),
    rgba(22, 19, 15, 0.866) calc(var(--fade-start) + var(--step)),
    rgba(22, 19, 15, 0.768) calc(var(--fade-start) + var(--step) * 2),
    rgba(22, 19, 15, 0.622) calc(var(--fade-start) + var(--step) * 3),
    rgba(22, 19, 15, 0.45) calc(var(--fade-start) + var(--step) * 4),
    rgba(22, 19, 15, 0.278) calc(var(--fade-start) + var(--step) * 5),
    rgba(22, 19, 15, 0.131) calc(var(--fade-start) + var(--step) * 6),
    rgba(22, 19, 15, 0.034) calc(var(--fade-start) + var(--step) * 7),
    rgba(22, 19, 15, 0) calc(var(--fade-start) + var(--step) * 8));
}

.about__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__copy { max-width: 40rem; }

/* Over moving footage the usual dimmed lede is too faint. */
.about .lede { color: rgba(244, 237, 225, 0.8); }

@media (max-width: 860px) {
  .about__film::after { background: rgba(22, 19, 15, 0.78); }

  /* Phones crop the wide film to a tall slice; centre it on Erika, who sits
     about two-thirds of the way across, not on the middle of the frame. */
  .about__video { object-position: 70% 50%; }
}

/* --- Episode cards ------------------------------------------------------ */

.epgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

/* Every card uses the same fixed slots — one guest line (blank if none), three
   title lines, two summary lines — so all cards look identical whatever the
   episode data. Spare height from the grid row sits above the footer. */
.epcard {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--paper-deep) 55%, transparent);
  border: 1px solid var(--ink-15);
  border-radius: 0.35rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transform-style: preserve-3d;
}

.epcard:hover {
  --ty: -4px;
  background: var(--paper);
  box-shadow: 0 1.5rem 2.5rem -1rem rgba(22, 19, 15, 0.28);
}

.epcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--label);
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.epcard__rank {
  color: var(--ink);
  background: var(--butter);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

.epcard__guest {
  font-family: var(--label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  /* Always one line: long names truncate, missing names keep the space. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epcard__guest:empty::before { content: "\00a0"; }

.epcard__top { grid-row: 1; }
.epcard__head { grid-row: 2; margin-top: 1rem; }

.epcard__title {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 0.3rem;
  /* Always three lines tall; the odd longer title ends in an ellipsis. */
  min-height: calc(3 * 1.1em);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.epcard__summary {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-70);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Slot rules scoped to episode cards: shop products reuse the summary style. */
.epcard > .epcard__summary {
  grid-row: 3;
  align-self: start;
  margin-top: 0.6rem;
  min-height: calc(2 * 1.55em);
}

.epcard__foot {
  grid-row: 4;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ink-15);
}

.epcard__tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-family: var(--label);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.epcard__tag { border: 1px solid var(--ink-15); border-radius: 999px; padding: 0.2rem 0.5rem; }

/* Archive cards carry up to three tags, which can wrap to a second line.
   Every card keeps room for two lines, so the dividers, tags and buttons
   line up across a row however many tags each card has. */
#epgrid .epcard__tags { min-height: 3.2rem; align-content: flex-start; }

/* Watch / listen links — YouTube leads, as the show's home */
.epcard__listen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
}

.eplink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.4rem;
  border: 1px solid var(--ink-15);
  border-radius: 999px;
  font-family: var(--label);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.eplink:hover,
.eplink:focus-visible {
  background: var(--butter);
  border-color: var(--ink);
}

.eplink--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.eplink--primary:hover,
.eplink--primary:focus-visible {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper);
}

/* --- Filter chips ------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

.chip {
  padding: 0.5rem 1rem;
  border: 1px solid var(--ink-15);
  border-radius: 999px;
  background: transparent;
  font-family: var(--label);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.chip:hover { transform: translateY(-2px); border-color: var(--ink); }

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.search {
  width: min(22rem, 100%);
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink-15);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9375rem;
  transition: border-color 0.35s var(--ease);
}

.search:focus { border-color: var(--ink); outline-offset: 4px; }

.epcount {
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-45);
}

/* --- Products ----------------------------------------------------------- */

.prodgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.product {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--ink-15);
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--paper-deep) 45%, transparent);
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 2rem 3rem -1.25rem rgba(22, 19, 15, 0.25);
}

.product::after {
  /* Diagonal butter shard that slides in from the corner. */
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 60%;
  aspect-ratio: 1;
  background: var(--butter);
  transform: rotate(45deg) translateY(-120%);
  transition: transform 0.7s var(--ease);
  z-index: -1;
}

.product:hover::after { transform: rotate(45deg) translateY(0); }

.product__badge {
  justify-self: start;
  font-family: var(--label);
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

.product__badge--soon { background: transparent; color: var(--ink-45); border: 1px solid var(--ink-15); }

.product h3 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.05;
}

.product__price {
  font-family: var(--label);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}

.product__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-70);
}

.product__list li { display: flex; gap: 0.6rem; }
.product__list li::before { content: "—"; color: var(--butter-deep); flex: none; }

/* "Notify me" form on a coming-soon card, and its thank-you line. */
.product__notify { align-self: end; max-width: none; }
.product__notify input { flex-basis: 12rem; }
.product__consent { color: var(--ink-45); margin-top: -0.25rem; }
.product__consent[hidden],
.product__notify[hidden] { display: none; }
.product__done {
  align-self: end;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
}
.product__done[hidden] { display: none; }

/* --- Shop shelves: "Start free" and "Go deeper" -------------------------- */

.shelf + .shelf { margin-top: clamp(4.5rem, 10vw, 8rem); }
.shelf__head { display: grid; gap: 0.6rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: 46rem; }
.shelf__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  line-height: 1;
}
.shelf__title em { font-style: italic; }
.shelf__lede { color: var(--ink-70); }

.freegrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(34rem, 100%), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.freecard {
  display: grid;
  grid-template-columns: minmax(7rem, 13rem) 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--ink-15);
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--paper-deep) 45%, transparent);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.freecard:hover { transform: translateY(-4px); box-shadow: 0 2rem 3rem -1.25rem rgba(22, 19, 15, 0.22); }
.freecard__cover {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 1.25rem 2rem -1rem rgba(22, 19, 15, 0.35);
  transform: rotate(-2deg);
  transition: transform 0.55s var(--ease);
}
.freecard:hover .freecard__cover { transform: rotate(0deg) scale(1.02); }
.freecard__body { display: grid; gap: 0.9rem; justify-items: start; }
.freecard h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.35rem);
  line-height: 1.02;
}
.freecard__body > p { color: var(--ink-70); font-size: 0.9375rem; max-width: 52ch; }

.progcard {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--ink-15);
  border-radius: 0.5rem;
}
.progcard:has(.progcard__side) { grid-template-columns: 1.1fr 1fr; }
.progcard + .progcard { margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.progcard__main {
  display: grid;
  gap: 1rem;
  align-content: start;
  justify-items: start;
  padding: clamp(1.75rem, 5vw, 3.5rem);
}
.progcard__main > p { max-width: 46ch; }
.progcard h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  line-height: 0.98;
  max-width: 14ch;
}
.progcard__side {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: color-mix(in srgb, var(--paper-deep) 60%, transparent);
}
.progcard__meta { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1rem; font-size: 0.9375rem; }
.progcard__meta dt {
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  padding-top: 0.25rem;
}
.progcard__notify { width: 100%; max-width: 30rem; margin-top: 0.5rem; }
.progcard__notify[hidden], .progcard .signup__note[hidden] { display: none; }
.progcard__done { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); line-height: 1.15; }
.progcard__done[hidden] { display: none; }

/* The flagship: ink card, butter badge. */
.progcard--flag {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
/* Soft butter glow, as in the page header. */
.progcard--flag::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  right: -10%;
  width: min(36rem, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 238, 139, 0.2), rgba(242, 238, 139, 0.06) 55%, rgba(242, 238, 139, 0) 100%);
  pointer-events: none;
}
.progcard--flag .progcard__main > p { color: var(--paper-60); }
.progcard--flag .product__badge { background: var(--butter); color: var(--ink); }
.progcard--flag .progcard__side { background: rgba(244, 237, 225, 0.06); }
.progcard--flag .product__list { color: var(--paper-60); }

@media (max-width: 760px) {
  .progcard:has(.progcard__side) { grid-template-columns: 1fr; }
  .freecard { grid-template-columns: 1fr; }
  .freecard__cover { max-width: 9rem; }
}

/* --- Free download gate (shop) ----------------------------------------- */

.gate {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 0;
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2.5rem 5rem -1.5rem rgba(22, 19, 15, 0.45);
  overflow: auto;
}
.gate::backdrop { background: rgba(22, 19, 15, 0.55); backdrop-filter: blur(4px); }
.gate[open] { animation: gate-in 0.45s var(--ease); }
@keyframes gate-in { from { opacity: 0; transform: translateY(1rem); } }
.gate > div { display: grid; gap: 1.1rem; }
.gate > div[hidden] { display: none; }
.gate__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-70);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.gate__close:hover { background: var(--ink-08); color: var(--ink); }
.gate__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  line-height: 1.02;
  padding-right: 2rem;
}
.gate__title em { font-style: italic; }
.gate__lede { color: var(--ink-70); max-width: 44ch; }
.gate__form { display: grid; gap: 1.1rem; }
.gate__form .btn { justify-self: start; }
.gate .btn[data-gate-link] { justify-self: start; }
.gate .btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .gate[open] { animation: none; } }

/* --- Multi-step form ---------------------------------------------------- */

/* Contact page title: a label for the page, not a statement, so smaller than
   the site h1. The extra class beats h1.display's size in site.css. */
.pagehead .contacthead__title { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.5rem); }

/* Phones: once an option is chosen, the other three fold away (forms.js
   adds .is-chosen when the buttons are stacked one per row), leaving the
   choice above its form; this button brings them back. */
.tracks.is-chosen .track[aria-pressed="false"] { display: none; }

.tracks__change {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
  /* Clears the sticky masthead when scrolled to. */
  scroll-margin-top: 6rem;
}

.tracks__change[hidden] { display: none; }

.tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.1rem);
  /* Clears the sticky masthead, plus breathing room, when scrolled to. */
  scroll-margin-top: 7rem;
}

/* Drawn from the home page cards (.nextup__card, .showlink), each its own:
   deep paper, ink, white, butter. A butter arrow only ever sits on white.
   Hover lifts; the chosen card keeps its colour and gains a ring (an ink
   fill would read as the ink card). Lift uses `translate`,
   not `transform`, and the transition repeats the reveal's own, so the
   scroll-in from [data-reveal] still plays. */
.track {
  --card-bg: var(--paper-deep);
  --card-line: transparent;
  --card-fg: var(--ink);
  --chip: var(--paper);
  --go-bg: var(--ink);
  --go-fg: var(--paper);
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.6rem;
  min-height: clamp(9rem, 20vw, 13rem);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  background: var(--card-bg);
  color: var(--card-fg);
  border: 1px solid var(--card-line);
  border-radius: 1.5rem;
  text-align: left;
  cursor: pointer;
  transition:
    opacity 0.85s var(--ease) var(--delay, 0s),
    transform 0.85s var(--ease) var(--delay, 0s),
    translate 0.4s var(--ease),
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.track:nth-child(2) {
  --card-bg: var(--ink);
  --card-fg: var(--paper);
  --card-line: var(--ink);
  --chip: rgba(244, 237, 225, 0.14);
  --go-bg: transparent;
  --go-fg: var(--paper);
  --go-line: var(--paper);
}

.track:nth-child(2) .track__desc { color: var(--paper-60); }

.track:nth-child(3) {
  --card-bg: #fffdf8;
  --card-line: var(--ink-15);
  --chip: var(--paper-deep);
  --go-bg: var(--butter);
  --go-fg: var(--ink);
}

.track:nth-child(4) {
  --card-bg: var(--butter);
  --chip: #fffdf8;
}

.track:hover {
  border-color: var(--ink);
  translate: 0 -4px;
  box-shadow: 0 1.1rem 2rem -1.2rem rgba(22, 19, 15, 0.35);
}

.track:active { translate: 0 -1px; }

/* site.css leaves clip-path: inset(0) on revealed elements, which cuts off
   the ring and hover shadow outside the card's square edge (only the bits
   inside the rounded corners showed). Plain reveals never use the clip. */
.track.is-revealed { clip-path: none; }

.track[aria-pressed="true"] {
  translate: 0 -4px;
  /* Drawn over the card's own edge, not floating outside it. */
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  box-shadow: 0 1.1rem 2rem -1.2rem rgba(22, 19, 15, 0.35);
}

/* Once one is chosen, the others step back until hovered. */
.tracks:has([aria-pressed="true"]) .track[aria-pressed="false"]:not(:hover) { opacity: 0.6; }

.track__num {
  justify-self: start;
  padding: 0.4em 0.8em;
  border-radius: 999px;
  background: var(--chip);
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.track__name {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  line-height: 1.05;
}

.track__desc { font-size: 0.875rem; color: var(--ink-70); transition: color 0.4s var(--ease); }

.track__go {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--go-line, transparent);
  border-radius: 50%;
  background: var(--go-bg);
  color: var(--go-fg);
  transition: rotate 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* Points down, at where the questions open below. */
.track:hover .track__go,
.track[aria-pressed="true"] .track__go { rotate: 90deg; }

.flow-shell {
  margin-top: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--ink-15);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--paper-deep) 40%, transparent);
  overflow: hidden;
}

.flow-shell[hidden] { display: none; }

.flow__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--ink-15);
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow__progress {
  flex: 1;
  max-width: 14rem;
  height: 2px;
  background: var(--ink-15);
  border-radius: 999px;
  overflow: hidden;
}

.flow__progress i {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: var(--clay);
  transition: width 0.5s var(--ease);
}

.flow__body { padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.25rem); }

.step {
  display: grid;
  gap: 1rem;
  animation: step-in 0.5s var(--ease) backwards;
}

.step[hidden] { display: none; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(1.25rem); }
}

.step--back { animation-name: step-in-back; }

@keyframes step-in-back {
  from { opacity: 0; transform: translateY(-1.25rem); }
}

.step__q {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.step__hint { font-size: 0.9375rem; color: var(--ink-70); max-width: 52ch; }

.field {
  width: 100%;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink-15);
  background: transparent;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  transition: border-color 0.4s var(--ease);
}

.field::placeholder { color: var(--ink-45); }
.field:focus { outline: none; border-bottom-color: var(--clay); }

textarea.field { min-height: 7rem; resize: vertical; line-height: 1.5; }

.options { display: grid; gap: 0.6rem; }

.option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--ink-15);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.option:hover { border-color: var(--ink); transform: translateX(4px); }
.option input { accent-color: var(--clay); width: 1rem; height: 1rem; }
.option:has(input:checked) { background: var(--butter); border-color: var(--ink); }

.step__error {
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
}

.step__error[hidden] { display: none; }

/* Group question (e.g. audience): a percentage split slider, then rows of
   tick-box chips. The slider borrows the quiz's .slider__input. */
.group { display: grid; gap: clamp(1.75rem, 4vw, 2.5rem); }

.group__part { min-width: 0; margin: 0; padding: 0; border: 0; }

.group__label {
  margin-bottom: 0.85rem;
  padding: 0;
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.group__label span { margin-left: 0.6em; color: var(--ink-45); }

.split {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
}

.split b {
  font-family: var(--display-italic);
  font-size: 1.5em;
  font-style: italic;
  font-weight: 400;
}

.options--chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.options--chips .option { padding: 0.6rem 1.05rem; border-radius: 999px; }
.options--chips .option:hover { transform: none; }

/* List question (e.g. links): separate one-line entries, then "Add another". */
.list { display: grid; gap: 0.6rem; }

/* Every answer box in the enquiry forms is white, so it's clear where to type. */
.flow-shell .field {
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--ink-15);
  border-radius: 0.75rem;
  background: #fffdf8;
}

.flow-shell .field:focus { border-color: var(--clay); }

.list__add {
  justify-self: start;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.list__add:hover { color: var(--ink); }

/* Dropdown question: the white answer box with a chevron. */
.flow-shell select.field {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2316130f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 0.75rem;
  cursor: pointer;
}

/* Date question: one calendar box, or From and To side by side for a range. */
.dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 0.75rem;
}

.dates[data-mode="single"] .dates__to { display: none; }
.dates__part { display: grid; gap: 0.5rem; }
.dates .group__label { margin: 0; }

/* Enquiry hints run the full width of the panel, not a narrow column. */
.flow-shell .step__hint { max-width: none; }

/* A little more room between a question and its list of choices. */
.flow-shell .step > .options { margin-top: 0.75rem; }

/* Thank-you screen: centred, more air under the title, and each line of the
   message (a span per line in forms.js) balanced within a comfortable width,
   so no single word is left hanging. */
.step--done {
  gap: clamp(1.25rem, 3vw, 1.85rem);
  justify-items: center;
  text-align: center;
}

.flow-shell .step--done .step__hint { max-width: 58em; }
.step--done .step__hint > span { display: block; text-wrap: balance; }

.flow__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem clamp(1.25rem, 3vw, 2.25rem);
  border-top: 1px solid var(--ink-15);
}

/* display:flex above would otherwise keep the buttons showing once sent. */
.flow__foot[hidden] { display: none; }

.flow__keys {
  font-family: var(--label);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.flow__keys kbd {
  font-family: inherit;
  border: 1px solid var(--ink-15);
  border-radius: 3px;
  padding: 0.15em 0.4em;
}

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

.signup {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  max-width: 34rem;
}

.signup input {
  flex: 1 1 15rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid rgba(244, 237, 225, 0.3);
  border-radius: 999px;
  background: transparent;
  color: inherit;
}

.signup input::placeholder { color: var(--paper-60); }
.signup input:focus { outline: none; border-color: var(--butter); }

.signup__note {
  font-family: var(--label);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-60);
  line-height: 1.7;
  max-width: 52ch;
}

/* Same form on a paper background rather than an ink one. */
.signup--light input {
  border-color: var(--ink-15);
  color: var(--ink);
}

.signup--light input::placeholder { color: var(--ink-45); }
.signup--light input:focus { border-color: var(--ink); }
.signup--light + .signup__note { color: var(--ink-45); }

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

.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

/* A dark newsletter section runs straight on into the footer, so the gap
   between them shrinks and the icons sit just under its heading. */
#club.section--ink:last-child { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
main:has(> #club.section--ink:last-child) + .footer { padding-top: 0; }

/* Newsletter heading and lede start on the same line: trim the space above
   each first line so both cap tops sit at the top of the grid. */
#club .premise__grid > .stack > :first-child { text-box: trim-start cap alphabetic; }

/* The same two columns as the newsletter above (see .premise__grid): icons on
   the left under its heading, then one closing row of copyright, menu and logo.
   .footer__top only groups the markup, so its children are placed on this
   grid directly. */
.footer .shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: clamp(2rem, 6vw, 5rem);
  row-gap: clamp(2rem, 4vw, 2.75rem);
  align-items: start;
}

.footer__top { display: contents; }

/* Centred in the closing row, between the copyright and the logo, set small
   like the copyright. The padding clears the rule above that row. */
.footer__nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  /* Level with the middle of the logo. */
  align-items: center;
  align-content: center;
  gap: 0.5rem 1.5rem;
  padding-top: 1.75rem;
}

.footer__nav a {
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-60);
  transition: color 0.3s var(--ease);
}

.footer__nav a:hover,
.footer__nav a:focus-visible { color: var(--butter); }

/* Every place to listen, then every place to follow. */
.footer__social {
  grid-column: 1;
  grid-row: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer__brand {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  /* Clears the rule drawn along the top of .footer__base, which shares
     this row. */
  padding-top: 1.75rem;
}

.footer__logo {
  display: block;
  width: clamp(4.5rem, 3.5rem + 2vw, 6rem);
  height: auto;
}

.footicon {
  display: grid;
  place-items: center;
  /* Seven icons at this size run the width of the newsletter heading above. */
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(244, 237, 225, 0.25);
  border-radius: 50%;
  color: var(--paper);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.footicon:hover,
.footicon:focus-visible {
  background: var(--butter);
  border-color: var(--butter);
  color: var(--ink);
  transform: translateY(-2px);
}

.footicon svg { width: 1rem; height: 1rem; fill: currentColor; }

.footer__base {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  /* Copyright is level with the middle of the logo. */
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(244, 237, 225, 0.18);
  font-family: var(--label);
  font-size: 0.5625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--paper-60);
}

/* .footer__base spans the whole closing row and comes last in the markup, so
   it would sit over the menu and logo that share the row and take their
   clicks. Lift them above it. */
.footer__nav,
.footer__brand { z-index: 1; }

/* One column on phones: icons first, straight under the newsletter, then
   the menu on its own row (six links won't fit beside the copyright and
   logo), then copyright and logo. After the rules above so it wins. */
@media (max-width: 860px) {
  .footer .shell { grid-template-columns: minmax(0, 1fr); }
  .footer__social { grid-column: 1; grid-row: 1; justify-content: center; gap: 0.45rem; }
  /* All seven on one centred row, down to a 360px-wide phone. */
  .footicon { width: 2.3rem; height: 2.3rem; }
  .footer__nav { grid-column: 1; grid-row: 2; justify-self: center; justify-content: center; text-align: center; padding-top: 0; }
  .footer__base { grid-column: 1; grid-row: 3; justify-content: center; }
  .footer__brand { grid-column: 1; grid-row: 4; justify-self: center; padding-top: 0; }
}

/* --- Page header (interior pages)--------------------------------------- */

.pagehead {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: clip;
}

.pagehead::before {
  content: "";
  position: absolute;
  top: -35%;
  left: 55%;
  width: min(46vw, 30rem);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--butter), transparent 65%);
  opacity: 0.6;
  animation: drift 20s var(--ease-in-out) infinite;
  z-index: -1;
  pointer-events: none;
}

.pagehead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

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

/* Shop headline is sized like the quiz headline (see .quizhead__title).
   No left padding, so "conversations" lines up with the line above it. */
.shophead__title .mark { padding-inline: 0 0.06em; }

/* --- Toast -------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  z-index: 9600;
  transform: translate(-50%, 1.5rem);
  opacity: 0;
  pointer-events: none;
  padding: 0.85rem 1.35rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  max-width: calc(100vw - 2rem);
  text-align: center;
}

.toast.is-open { transform: translate(-50%, 0); opacity: 1; }

/* --- Fact list ----------------------------------------------------------
   Replaces paragraphs of biography with something scannable. Inherits the
   surrounding colour so it works on paper and on ink.
   ------------------------------------------------------------------------ */

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  max-width: 34rem;
}

.facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  font-size: 0.9375rem;
}

.facts li span {
  font-family: var(--label);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.5;
  flex: none;
}

.section--ink .facts li { border-bottom-color: rgba(244, 237, 225, 0.2); }

@media (max-width: 560px) {
  .facts li { flex-direction: column; gap: 0.15rem; padding-block: 0.65rem; }
}

/* --- Show links (home) ---------------------------------------------------
   Three doors under "Our approach", drawn like the quiz teaser below.
   Each card reveals on its own (staggered), so no transition sits on
   .showlink itself: it would replace the reveal transition from
   [data-reveal]. Hover motion lives on the fill and the children. */

.showlinks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.5rem);
  margin-top: clamp(3rem, 8vw, 5.5rem);
}

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

/* Sit tight against the links so the four read as one set. */
.showlinks + .quizcta { margin-top: clamp(0.5rem, 1vw, 0.85rem); }

.showlink {
  --card-bg: var(--butter);
  --card-fg: var(--ink);
  --card-fill: var(--ink);
  --card-fill-fg: var(--paper);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--ink);
  border-radius: 1.25rem;
  background: var(--card-bg);
  color: var(--card-fg);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}

.showlink--white {
  --card-bg: #fffdf8;
  --card-fill: var(--butter);
  --card-fill-fg: var(--ink);
}

.showlink--ink {
  --card-bg: var(--ink);
  --card-fg: var(--paper);
  --card-fill: #fffdf8;
  --card-fill-fg: var(--ink);
}

/* Same wipe as .btn: the fill rises from the base on hover. */
.showlink::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--card-fill);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}

.showlink:hover::after,
.showlink:focus-visible::after { transform: translateY(0); }

.showlink__name {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  transition: color 0.4s var(--ease);
}

.showlink__name em { font-family: var(--display-italic); font-style: italic; }

.showlink__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--label);
  transition: color 0.4s var(--ease), transform 0.45s var(--ease);
}

.showlink:hover .showlink__name,
.showlink:hover .showlink__arrow,
.showlink:focus-visible .showlink__name,
.showlink:focus-visible .showlink__arrow { color: var(--card-fill-fg); }

.showlink:hover .showlink__arrow { transform: translateX(0.28em); }

/* --- Quiz teaser (home) ------------------------------------------------- */

.quizcta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--ink);
  border-radius: 0.35rem;
  background: var(--butter);
}

.quizcta__text {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 34ch;
  text-wrap: pretty;
}

.quizcta__text em { font-family: var(--display-italic); font-style: italic; }

/* --- Balance quiz ------------------------------------------------------- */

.quiz { scroll-margin-top: 5.5rem; }

.quiz [hidden] { display: none; }

.quiz__step { animation: step-in 0.5s var(--ease) backwards; }

/* quiz.js fades the current step out before the next one fades in. */
.quiz__step.is-leaving {
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.quiz__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.quiz__count { color: var(--ink-45); }

/* Smaller than the site h1 so the quiz itself starts higher up the page.
   The extra class beats h1.display's size in site.css. */
.pagehead .quizhead__title,
.pagehead .shophead__title {
  max-width: 9.5em;
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 5rem);
  line-height: 1;
}

/* One line across the page wherever it fits. */
.quizhead__lede,
.shophead__lede { max-width: none; }

/* The shop sentence is longer, so it scales with the column to stay on one line. */
.shophead__lede { font-size: clamp(1.0625rem, 1.65vw, 1.375rem); }

.quiz__intro {
  justify-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.quiz__intro .step__hint { max-width: 64ch; text-wrap: balance; }

/* The result chart rides alongside the scores. */
.quiz__chart {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.quiz__soon {
  font-family: var(--label);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.quiz__foot {
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* How many episodes: between the step label and the button. */
.quiz__howmany {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.quiz__counts { justify-content: center; margin: 0 0 1.75rem; }
.quiz__counts .chip { min-width: 3.5rem; font-size: 0.8125rem; }

@media (max-width: 860px) {
  .quiz__grid { grid-template-columns: 1fr; }
  .quiz__chart { position: static; }
  .quiz__chart .radar { max-width: 26rem; }
}

.sliders { display: grid; }

.slider {
  display: grid;
  gap: 0.45rem;
  padding-block: clamp(1.1rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--ink-15);
}

.slider:first-child { border-top: 1px solid var(--ink-15); }

.slider__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.slider__label,
.slider__value {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.slider__value { font-family: var(--display-italic); font-style: italic; }

.slider__value::after {
  content: "/10";
  margin-left: 0.2em;
  font-family: var(--label);
  font-size: 0.5625rem;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--ink-45);
}

.slider__blurb { font-size: 0.9375rem; color: var(--ink-70); }

.slider__input {
  --pct: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2.25rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.slider__input:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }

.slider__input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--ink) var(--pct), var(--ink-15) var(--pct));
}

.slider__input::-moz-range-track { height: 4px; border-radius: 999px; background: var(--ink-15); }
.slider__input::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--ink); }

.slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: calc((4px - 1.6rem) / 2);
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--butter);
  box-shadow: 0 0.35rem 0.8rem rgba(22, 19, 15, 0.18);
  transition: transform 0.3s var(--ease);
}

.slider__input::-moz-range-thumb {
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--butter);
  box-shadow: 0 0.35rem 0.8rem rgba(22, 19, 15, 0.18);
}

.slider__input:active::-webkit-slider-thumb { transform: scale(1.12); }

.slider__scale {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  font-family: var(--label);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-45);
}

/* Step 1: each slider sits on its own side of the chart, first on top and
   then clockwise, so every rating lines up with the corner it moves. */
.quiz__ring {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    ".    top    ."
    "left chart  right"
    ".    bottom .";
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem) clamp(1.25rem, 3vw, 2.5rem);
}

.quiz__ring .sliders { display: contents; }

.quiz__ring .quiz__chart {
  grid-area: chart;
  position: static;
  justify-self: center;
  width: min(100%, 26rem);
}

.slider--top { grid-area: top; }
.slider--right { grid-area: right; }
.slider--bottom { grid-area: bottom; }
.slider--left { grid-area: left; }

.quiz__ring .slider {
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.5rem) clamp(0.75rem, 1.5vw, 1rem);
  background: color-mix(in srgb, var(--paper-deep) 55%, transparent);
  border: 1px solid var(--ink-15);
  border-radius: 0.35rem;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.quiz__ring .slider__label,
.quiz__ring .slider__value { font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); }

/* The lowest area, matching its accent dot on the chart. */
.quiz__ring .slider.is-low {
  border-color: var(--clay);
  box-shadow: 0 0 0 1px var(--clay);
}

.quiz__ring .slider.is-low .slider__label {
  font-family: var(--display-italic);
  font-style: italic;
}

@media (max-width: 900px) {
  .quiz__ring {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "chart  chart"
      "top    right"
      "bottom left";
    row-gap: clamp(1rem, 2.5vw, 1.5rem);
  }

  .quiz__ring .quiz__chart { width: min(100%, 18rem); }
}

@media (max-width: 640px) {
  .quiz__ring {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "chart" "top" "right" "bottom" "left";
  }
}

.radar { width: 100%; height: auto; overflow: visible; }
.radar__ring { fill: none; stroke: var(--ink-15); }
.radar__axis { stroke: var(--ink-15); }

.radar__shape {
  fill: var(--butter);
  fill-opacity: 0.85;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.radar__point { fill: var(--ink); }
.radar__point--low { fill: var(--clay); }

.radar__label { font-family: var(--display); font-size: 18px; fill: var(--ink); }
.radar__label--low { fill: var(--clay); font-family: var(--display-italic); font-style: italic; }
.radar__score { font-family: var(--label); font-size: 11px; font-style: normal; fill: var(--ink-45); }

.quiz__gate { display: grid; gap: 1.25rem; max-width: 38rem; }

.quiz__field { display: grid; gap: 0.25rem; }

.quiz__field > span {
  font-family: var(--label);
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.quiz__consent { font-size: 0.8125rem; color: var(--ink-45); max-width: 52ch; }

.quiz__scores {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  max-width: 30rem;
}

.quiz__scores li {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9375rem;
}

.quiz__scores b { font-family: var(--label); font-size: 0.6875rem; font-weight: 500; text-align: right; }

.quiz__bar { height: 4px; border-radius: 999px; background: var(--ink-15); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: var(--pct, 0%); background: var(--ink); }

.quiz__scores .is-low { color: var(--clay); }
.quiz__scores .is-low .quiz__bar i { background: var(--clay); }

.quiz__subhead { margin-block: clamp(3rem, 7vw, 4.5rem) clamp(1.5rem, 3vw, 2rem); }

/* quiz.js moves focus to the result headline so screen readers announce it.
   It isn't something to click, so no focus ring: after typing an email
   (and on iPhones, where tapping a button doesn't take focus) the ring
   would otherwise box the headline. */
.quiz__headline:focus { outline: none; }

.quiz__actions { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.quiz__audit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem 3rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 0.35rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* The whole panel links to the shop; hovering it moves the button's arrow. */
.quiz__audit:hover .btn__arrow { transform: translateX(0.28em); }

.quiz__audit h3 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
}

.quiz__audit p:not(.kicker) { color: var(--paper-60); max-width: 44ch; }

@media (max-width: 640px) {
  .quiz__audit { grid-template-columns: 1fr; }
  .quiz__scores li { grid-template-columns: 8.5rem minmax(0, 1fr) 2.75rem; gap: 0.7rem; }
}

/* --- Ask Erika ---------------------------------------------------------- */

.ask__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

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

.rec {
  border: 1px solid var(--ink-15);
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--paper-deep) 40%, transparent);
  overflow: hidden;
}

/* The recorder borrows the enquiry flow's head and foot, which set their own
   display, so hidden parts need a rule that outranks them. */
.rec [hidden] { display: none; }

.rec__body {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2.25rem);
  text-align: center;
}

.rec__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(5.5rem, 14vw, 7rem);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--butter);
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.rec__btn:hover:not(:disabled) { transform: scale(1.04); }
.rec__btn:disabled { cursor: progress; opacity: 0.6; }

.rec__icon {
  width: 38%;
  height: 38%;
  border-radius: 50%;
  background: var(--clay);
  transition: border-radius 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}

/* Recording: the dot becomes a stop square and a ring pulses outward. */
.rec[data-state="recording"] .rec__btn { background: var(--ink); }

.rec[data-state="recording"] .rec__icon {
  border-radius: 0.3rem;
  transform: scale(0.8);
  background: var(--butter);
}

.rec[data-state="recording"] .rec__btn::after {
  content: "";
  position: absolute;
  inset: -0.6rem;
  border: 1px solid var(--clay);
  border-radius: 50%;
  animation: rec-pulse 1.6s var(--ease) infinite;
}

@keyframes rec-pulse {
  from { transform: scale(0.92); opacity: 1; }
  to { transform: scale(1.2); opacity: 0; }
}

.rec__meter {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 2.5rem;
}

.rec__meter span {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--ink-15);
  transform: scaleY(var(--level, 0.08));
  transition: transform 0.08s linear;
}

.rec[data-state="recording"] .rec__meter span { background: var(--clay); }

.rec__time {
  font-family: var(--label);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-45);
}

.rec__time span { color: var(--ink); }

.rec__hint { font-size: 0.9375rem; color: var(--ink-70); max-width: 36ch; }

.rec__review {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 3vw, 2.25rem) clamp(1.75rem, 4vw, 2.5rem);
}

.rec__review audio { width: 100%; max-width: 30rem; }

.rec__form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem);
  border-top: 1px solid var(--ink-15);
}

.rec__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.rec__check input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--clay);
}

.rec__note { font-size: 0.8125rem; color: var(--ink-70); max-width: 42ch; }

/* --- About the show (podcast.html) -------------------------------------- */

/* The glow runs up behind the menu and off the right edge instead of
   floating under it. Clipping sideways only lets it reach up behind the
   header, which is see-through at the top of the page. */
.showhead { overflow: visible; overflow-x: clip; }

.showhead::before {
  top: -15rem;
  left: auto;
  right: -18vw;
  width: min(75vw, 60rem);
  aspect-ratio: 1.4;
  background: radial-gradient(ellipse, var(--butter), transparent 65%);
}

.showhead__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.showhead__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.35rem;
  box-shadow: 0 2rem 3.5rem -1.5rem rgba(22, 19, 15, 0.35);
}

/* Same scale as the home page's section three (.premise__statement). The
   extra class beats h1.display's size in site.css. */
.showhead .showhead__title {
  font-size: clamp(1.75rem, 1.1rem + 2.7vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

/* Both intro paragraphs share one size, between .lede and body copy. */
.showhead__copy > p {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 50ch;
  text-wrap: pretty;
}

/* Host name links to About Erika; a faint underline shows it's clickable. */
.showfacts .link::after { transform: scaleX(1); opacity: 0.35; transition: opacity 0.35s var(--ease); }
.showfacts .link:hover::after,
.showfacts .link:focus-visible::after { opacity: 1; }

.showhead__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.showhead__listen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.showhead__listen .guesticon { width: 2.5rem; height: 2.5rem; }
.showhead__listen .guesticon svg { width: 1rem; height: 1rem; }

.showfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem clamp(1.25rem, 3vw, 2.25rem);
  padding: 1rem 0;
  border-block: 1px solid var(--ink-15);
  list-style: none;
  font-size: 0.9375rem;
}

.showfacts span {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--label);
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-45);
}

/* YouTube plaque */
/* Statement left, photo right, so it doesn't sit under the cover art above.
   The gap matches the padding and the text block is centred in its column,
   so the space left of the statement equals the space between it and the
   photo. The colour block is a banner shorter than the photo: it spans the
   full content width, lined up with the section above, and the photo stands
   proud of it above and below.
   --plaque-shift pulls the photo in so its centre sits under the centre of
   the About the show copy column above: that column's centre is 26.25% of
   (width - gap) in from the right, from .showhead__grid's 0.95fr/1.05fr split. */
.plaque {
  --plaque-pad: clamp(1.25rem, 3vw, 2.75rem);
  --plaque-photo: 22rem;
  --plaque-shift: max(0px, calc((100% - clamp(2rem, 6vw, 5rem)) * 0.2625 - var(--plaque-photo) / 2));
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--plaque-photo));
  gap: var(--plaque-pad);
  align-items: center;
  padding-left: var(--plaque-pad);
  padding-right: var(--plaque-shift);
}

.plaque::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: clamp(1rem, 2.5vw, 2rem);
  inset-inline: 0;
  background: var(--paper-deep);
  border-radius: 1.5rem;
}

.plaque__text { justify-self: center; }

.plaque__photo {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 22rem;
  overflow: hidden;
  border: 1px dashed var(--ink-45);
  border-radius: 1rem;
}

.plaque__photo img { width: 100%; height: 100%; object-fit: cover; }
.plaque__photo picture { display: block; width: 100%; height: 100%; }
.plaque__photo:has(img, svg) { border: 0; }

.plaque__placeholder {
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.plaque h2.plaque__title { font-size: clamp(2rem, 1.1rem + 2.6vw, 3.5rem); }

@media (max-width: 640px) {
  .plaque h2.plaque__title { font-size: min(calc((100vw - 2 * var(--gutter) - 2 * var(--plaque-pad)) / 9.7), 3rem); }
}

/* Handwritten sign-off under the headline. Its own data-reveal fires when the
   line itself scrolls into view (not when the card's top edge does), then each
   stroke draws in turn; --at and --dur on every path are set from the stroke
   lengths so the pen moves at an even speed. The reveal's fade is switched off
   here: the drawing is the entrance. */
.plaque__thanks { margin-top: clamp(0.75rem, 2vw, 1.25rem); }
.plaque__thanks[data-reveal] { opacity: 1; transform: none; }

.scrawl {
  display: block;
  width: auto;
  height: clamp(3.5rem, 2.6rem + 2.2vw, 5rem);
  max-width: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 30;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scrawl path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

.plaque__thanks.is-revealed .scrawl path {
  animation: scrawl var(--dur) cubic-bezier(0.35, 0.1, 0.6, 0.95) calc(0.4s + var(--at)) both;
}

/* Opacity hides the round cap that would otherwise dot each stroke's start
   before the pen reaches it. */
@keyframes scrawl {
  0% { stroke-dashoffset: 1; opacity: 0; }
  1% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .plaque__thanks .scrawl path { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* Archive: headline at the home page's section-three scale */
.archive__title { font-weight: 400; }

/* Headline and tagline on the left; the link to the curated list on the
   right, level with the tagline and above the search. When the headline
   needs the room, the button wraps under it and stays on the right. */
.archive__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem 2rem;
}

.archive__head .btn { margin-left: auto; }

/* Three picks between the tagline and the filters: a thumbnail with the
   views on a butter circle over its bottom-left corner, then the title and
   the watch / listen logos. The title keeps a fixed height so the logos
   line up. */
.archive__featured { margin-top: clamp(2.5rem, 6vw, 3.5rem); }

.featgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
  gap: clamp(2.5rem, 5vw, 3rem) clamp(1.25rem, 3vw, 2rem);
}

.featcard {
  display: grid;
  align-content: start;
}

/* The thumbnail link clips the image, not the frame, so the circle can hang
   past the corner. */
.featcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

.featcard__thumb {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 0.35rem;
  background: var(--ink);
}

.featcard__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.featcard:hover .featcard__thumb img { transform: scale(1.04); }

/* The circle covers the thumbnail's bottom-left corner, over the left end of
   a paper pill holding the label. Clicks pass through to the thumbnail link. */
.featcard__stat {
  position: absolute;
  left: -0.75rem;
  bottom: -1.75rem;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.featcard__views {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-content: center;
  width: clamp(3.75rem, 3.3rem + 1.2vw, 4.25rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--butter);
  color: var(--ink);
  box-shadow: 0 0.5rem 1rem -0.5rem rgba(22, 19, 15, 0.5);
  font-family: var(--display);
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.featcard__statlabel {
  padding: 0.55rem 0.95rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.featcard__views svg { width: 1.6rem; height: 1.6rem; }

.featcard__views + .featcard__statlabel {
  margin-left: -1.4rem;
  padding-left: 1.9rem;
}

/* Clears the part of the circle that hangs below the thumbnail. */
.featcard__title {
  margin-top: 2.5rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  min-height: calc(3 * 1.1em);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featcard__title a {
  text-decoration: underline 1px transparent;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.35s var(--ease);
}

.featcard:hover .featcard__title a { text-decoration-color: currentColor; }

.featcard__listen {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.featcard__listen .guesticon { width: 2.5rem; height: 2.5rem; }
.featcard__listen .guesticon svg { width: 1rem; height: 1rem; }

.archive__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.archive__bar .filters { margin: 0; }

/* Phones: the topic chips stay on one row that scrolls sideways, running to
   the screen edges, with the last visible chip fading out on the right so
   it's obvious there are more. */
@media (max-width: 640px) {
  .archive__bar .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0.25rem var(--gutter);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 4.5rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 4.5rem), transparent);
  }

  .archive__bar .filters.is-end { -webkit-mask-image: none; mask-image: none; }
  .archive__bar .filters::-webkit-scrollbar { display: none; }
  .archive__bar .filters .chip { flex: none; }
}

/* The search spans the archive on its own row above the topic chips, big
   enough to type a whole question into. */
.archive__bar:has(.archive__search) {
  display: grid;
  justify-content: stretch;
  gap: 1rem;
}

.archive__search {
  width: 100%;
  padding: 1rem 1.4rem;
  font-size: 1.0625rem;
}

.archive__count { margin-block: 1.25rem clamp(1.25rem, 3vw, 1.75rem); }

@media (max-width: 860px) {
  .showhead__grid,
  .plaque { grid-template-columns: 1fr; }
  .showhead__cover { max-width: 28rem; }
  .plaque { padding: var(--plaque-pad); }
  .plaque::before { inset: 0; }
  /* One column on phones, so the statement, the signature and the photo
     all centre. */
  .plaque__text { justify-self: center; text-align: center; }
  .plaque__thanks .scrawl { margin-inline: auto; }
  .plaque__photo { max-width: 20rem; justify-self: center; }
}

/* --- About Erika (about.html) ---------------------------------------------
   Laid out like a media kit: name and portrait, press logos, bio, the home
   page's film-and-facts panel, audience numbers and a guest quote, bookings,
   gallery. Reuses .pagehead (butter glow), .about, .facts and .stats.
   ------------------------------------------------------------------------ */

.erika-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

/* The extra class beats h1.display's size in site.css; the surname takes its
   own line so the name never breaks mid-way. */
.erika-head .erika-head__name { font-size: clamp(3.25rem, 1.4rem + 5.6vw, 7rem); }
.erika-head__name em { display: block; }

/* Headline highlights: a slimmer butter band than body copy gets, sized to
   the display type, sweeping in like every other .mark. */
.erika-head .display .mark,
.erika-split .display .mark { background-size: 0% 0.2em; background-position: 0 86%; }

.erika-head .display .mark.is-revealed,
.erika-split .display .mark.is-revealed { background-size: 100% 0.2em; }

.erika-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  /* Extra room under the name, on top of the column's own gap. */
  margin: clamp(0.5rem, 1.5vw, 1.25rem) 0 0;
  padding: 0;
  list-style: none;
}

.erika-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1.35rem 0.4rem 0.4rem;
  border: 1px solid var(--ink-15);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.erika-social a:hover,
.erika-social a:focus-visible {
  transform: translateY(-2px);
  background: var(--butter);
  border-color: var(--ink);
}

.erika-social__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

.erika-social__icon svg { width: 0.95rem; height: 0.95rem; fill: currentColor; }

.erika-social__text { display: grid; line-height: 1.25; }

.erika-social__label {
  font-family: var(--label);
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.erika-social__handle { font-size: 0.9375rem; }

.erika-head__portrait { margin: 0; }

.erika-head__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 1.25rem;
  box-shadow: 0 2rem 3.5rem -1.5rem rgba(22, 19, 15, 0.35);
}

/* The caption hangs 2rem below the photo (1rem gap + 1rem line), so the text
   column carries the same 2rem underneath: the name and handles then centre
   on the photo itself rather than on photo plus caption. */
.erika-head__grid > .stack { padding-bottom: 2rem; }

.erika-head__portrait figcaption {
  margin-top: 1rem;
  line-height: 1rem;
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-70);
}

/* Featured in: a ruled band of one-colour logos under the header. */
.press {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem clamp(2rem, 6vw, 4.5rem);
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
  border-block: 1px solid var(--ink-15);
}

.press__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem clamp(2.5rem, 6vw, 4.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Flex, so an image leaves no baseline gap and every logo centres on the label. */
.press__logos li { display: flex; align-items: center; opacity: 0.78; }

.press__logos a { display: block; transition: transform 0.4s var(--ease); }
.press__logos a:hover,
.press__logos a:focus-visible { transform: translateY(-2px); }

.press__logos img {
  width: auto;
  height: calc(clamp(1.5rem, 1.1rem + 1vw, 2.1rem) * var(--scale, 1));
}

/* The reveal fades to full opacity; logos settle a little softer. */
.press__logos li.is-revealed { opacity: 0.78; }

/* Bio and bookings: heading left, copy right. The heading's cap line and the
   paragraph's first line are trimmed to their letter tops, so the two start
   level. */
.erika-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.erika-split > .display,
.erika-split__copy > p:first-child { text-box: trim-both cap alphabetic; }

@supports not (text-box: trim-both cap alphabetic) {
  .erika-split > .display { margin-top: -0.08em; }
  .erika-split__copy > p:first-child { margin-top: -0.3em; }
}

.erika-split__copy > p {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 50ch;
  text-wrap: pretty;
}

/* In a nutshell: the home page's .about panel, facts only. */
.erika-film .about__copy { max-width: 34rem; }

/* Tall enough to show the whole 16:9 film on wide screens (capped at 90% of
   the screen height), with the rows centred in it. Short content alone made
   the panel shallow and cropped the top and bottom of the clip. */
.erika-film {
  display: flex;
  align-items: center;
  min-height: min(56.25vw, 90svh);
}

.erika-film > .shell { width: 100%; }

/* Without the home page's headline and intro, the rows sit lower over busier
   footage, so the labels go butter and the values full paper. */
.erika-film .facts li { color: var(--paper); border-bottom-color: rgba(244, 237, 225, 0.28); }
.erika-film .facts li span { color: var(--butter); opacity: 1; }

/* Numbers, then what guests say, in butter. */
#numbers .stats { margin-bottom: 0; }

/* The home page's YouTube comment wall (.ytwall), in #community. */

/* Ten cards here, not the home page's five: the same pinned-board rows of
   three then two, twice over. Scoped to this page so the home wall is
   untouched; cards 1–5 keep the shared rules. */
.erika-community .ytc:nth-child(6)  { --tilt: -2deg;   z-index: 6; }
.erika-community .ytc:nth-child(7)  { --tilt: 3deg;    z-index: 8; }
.erika-community .ytc:nth-child(8)  { --tilt: -2.5deg; z-index: 7; }
.erika-community .ytc:nth-child(9)  { --tilt: 1.5deg;  z-index: 9; }
.erika-community .ytc:nth-child(10) { --tilt: -1.5deg; z-index: 10; }

.erika-community .ytc:hover,
.erika-community .ytc:focus-within { z-index: 20; }

@media (min-width: 861px) {
  /* Close under the row above so the ten read as one board; any closer and
     the tallest card would cover a like count above it. */
  .erika-community .ytc:nth-child(n + 6):nth-child(-n + 8) { grid-row: 3; align-self: end; margin-top: 0.25rem; }
  .erika-community .ytc:nth-child(n + 9) { grid-row: 4; align-self: start; margin-top: 0.5rem; }

  .erika-community .ytc:nth-child(6)  { grid-column: 1 / span 4; }
  .erika-community .ytc:nth-child(7)  { grid-column: 5 / span 4; margin-inline: -0.75rem; margin-bottom: 1.75rem; }
  .erika-community .ytc:nth-child(8)  { grid-column: 9 / span 4; margin-bottom: 0.25rem; }
  .erika-community .ytc:nth-child(9)  { grid-column: 3 / span 4; }
  .erika-community .ytc:nth-child(10) { grid-column: 7 / span 4; margin-left: 1rem; margin-right: -1rem; }
}

/* The dark numbers panel ends just under the guest quote, on a wave. The
   comment wall sits below on a beige band (the home page's shop-card colour)
   that ends on the same wave, just above Bookings. The panel is lifted above
   the band so its wave paints over it. */
#numbers,
#community,
#bookings { --wave: clamp(2rem, 4vw, 3.5rem); }

#numbers {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

#numbers::after,
#community::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 100%;
  height: var(--wave);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%2316130f' d='M0 0H1440V38C1310 78 1150 84 980 60C810 36 660 6 480 14C300 22 150 66 0 50Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

#community::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23e9dfcd' d='M0 0H1440V38C1310 78 1150 84 980 60C810 36 660 6 480 14C300 22 150 66 0 50Z'/%3E%3C/svg%3E");
}

#community {
  position: relative;
  background: var(--paper-deep);
  padding-block: calc(var(--wave) + var(--section-y) * 0.5) clamp(2rem, 5vw, 3.5rem);
}

#community .ytwall__label { color: var(--ink-45); }

/* The reveal's clip-path trims each card to its untilted box, which hid the
   tilted corners and shadow. */
.erika-community .ytc[data-reveal] { clip-path: none; }

/* Clears the beige wave, then half a section break before the headline. */
#bookings { padding-top: calc(var(--wave) + var(--section-y) * 0.5); }

.erika-quotes {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: clamp(3rem, 8vw, 5.5rem);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid rgba(244, 237, 225, 0.2);
}

.erika-quote { margin: 0; text-align: center; }

.erika-quote blockquote { margin: 0; }

/* The measure sits on the quote itself so ch follows its display size. */
.erika-quote p {
  max-width: 30ch;
  margin-inline: auto;
  font-family: var(--display-italic);
  font-style: italic;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--butter);
  text-wrap: balance;
}

/* Book Erika: the headline on the left with the enquiry note boxed beneath
   it; on the right the topics as a ruled table in the manner of .facts, its
   first row level with the headline, and the button flush right below. */
.erika-book__intro { align-content: start; }

.erika-book__intro > .display { text-box: trim-both cap alphabetic; }

.erika-book__note {
  max-width: 24rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 1rem;
  color: var(--ink);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  text-align: center;
  text-wrap: pretty;
}

/* Photo above the note: same width and corner radius as the note's box. The
   image is pinned to the frame so object-position always applies. */
.erika-book__photo {
  position: relative;
  max-width: 24rem;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
}

.erika-book__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 40%;
}

.erika-book__cta { justify-content: flex-end; }

.topics {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topics li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.35rem 1.5rem;
  align-items: start;
  padding-block: 0.9rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-70);
}

.topics li > span {
  padding-top: 0.3em;
  font-family: var(--label);
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
}

.topics li > p { grid-column: 2; margin: 0; }

.topics strong { display: block; font-weight: 400; color: var(--ink); }

/* When the table opens its column, its first row is trimmed to the cap line
   so it starts level with the headline beside it. */
.erika-split__copy > .topics:first-child li:first-child { padding-top: 0; }
.erika-split__copy > .topics:first-child li:first-child > span { padding-top: 0; }

.erika-split__copy > .topics:first-child li:first-child > span,
.erika-split__copy > .topics:first-child li:first-child strong { text-box: trim-start cap alphabetic; }


/* Gallery: 26 photos fitted like a puzzle, fixed in place (no carousel).
   A 5-column grid of square cells, 9 rows deep, inside the page margins; the
   tiles, in page order, take the areas a–z named below: three large squares,
   seven tall, three wide, thirteen small. Empty tiles show a dashed frame; a
   tile holding an image drops it. The section follows Bookings on the same
   paper, so it skips its own top padding and the gap matches the other
   section breaks. */
.erika-gallery { padding-top: 0; }

.erika-gallery .display { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(9, minmax(0, 1fr));
  grid-template-areas:
    "a a b c c"
    "a a d c c"
    "e f g h i"
    "e f j k k"
    "l m j n o"
    "l p p q o"
    "r s s q t"
    "u s s v t"
    "w x y y z";
  gap: clamp(0.5rem, 1.1vw, 1rem);
  /* Square cells: 5 wide by 9 deep. */
  aspect-ratio: 5 / 9;
}

.gallery__item {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px dashed var(--ink-45);
  border-radius: clamp(0.4rem, 0.9vw, 0.85rem);
  background: var(--paper-deep);
}

.gallery__item:nth-child(1) { grid-area: a; }
.gallery__item:nth-child(2) { grid-area: b; }
.gallery__item:nth-child(3) { grid-area: c; }
.gallery__item:nth-child(4) { grid-area: d; }
.gallery__item:nth-child(5) { grid-area: e; }
.gallery__item:nth-child(6) { grid-area: f; }
.gallery__item:nth-child(7) { grid-area: g; }
.gallery__item:nth-child(8) { grid-area: h; }
.gallery__item:nth-child(9) { grid-area: i; }
.gallery__item:nth-child(10) { grid-area: j; }
.gallery__item:nth-child(11) { grid-area: k; }
.gallery__item:nth-child(12) { grid-area: l; }
.gallery__item:nth-child(13) { grid-area: m; }
.gallery__item:nth-child(14) { grid-area: n; }
.gallery__item:nth-child(15) { grid-area: o; }
.gallery__item:nth-child(16) { grid-area: p; }
.gallery__item:nth-child(17) { grid-area: q; }
.gallery__item:nth-child(18) { grid-area: r; }
.gallery__item:nth-child(19) { grid-area: s; }
.gallery__item:nth-child(20) { grid-area: t; }
.gallery__item:nth-child(21) { grid-area: u; }
.gallery__item:nth-child(22) { grid-area: v; }
.gallery__item:nth-child(23) { grid-area: w; }
.gallery__item:nth-child(24) { grid-area: x; }
.gallery__item:nth-child(25) { grid-area: y; }
.gallery__item:nth-child(26) { grid-area: z; }

/* Pinned to the tile, not sized by it: a percentage height inside the grid
   tile fell back to the photo's own proportions, so tall photos spilled out
   and each photo's object-position focal point did nothing. */
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__item:has(img) { border: 0; background: none; }

.gallery__placeholder {
  font-family: var(--label);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-45);
}

@media (max-width: 860px) {
  .erika-head__grid,
  .erika-split { grid-template-columns: 1fr; }
  .erika-head__grid > .stack { padding-bottom: 0; }
  .erika-head__portrait { max-width: 28rem; }
  .erika-book__cta { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .topics li { grid-template-columns: 1fr; }
  .topics li > p { grid-column: auto; }

  /* Five columns leave phone tiles too small to see, so phones get two
     columns of fixed-height rows; tiles keep their shape from their class
     and the dense flow fills any holes. */
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-template-areas: none;
    grid-auto-rows: 10.5rem;
    grid-auto-flow: dense;
    aspect-ratio: auto;
  }

  .gallery .gallery__item { grid-area: auto; }
  .gallery .gallery__item--big { grid-column: span 2; grid-row: span 2; }
  .gallery .gallery__item--tall { grid-row: span 2; }
  .gallery .gallery__item--wide { grid-column: span 2; }

  /* The tiles fill an odd number of cells, which left one gap at the end in
     two columns; the last photo spans both to close it. */
  .gallery .gallery__item:last-child { grid-column: span 2; }
}

/* --- Studio gallery (podcast.html) ----------------------------------------
   15 photos of Erika with guests as a collage on a 4 × 7 grid: three big
   tiles, four tall, eight single. Each photo's tile comes from its order
   (letters a–o below). Phones get two columns, with the --big/--tall
   classes giving tiles their shape. */
.showgallery .display { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

/* No space of its own above: the archive's bottom spacing alone separates
   its Load more button from the gallery, instead of two sections' worth. */
.showgallery { padding-top: 0; }

.collage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(8rem, 15vw, 14rem);
  grid-template-areas:
    "a a b c"
    "a a d c"
    "e f f g"
    "h f f g"
    "h i j j"
    "k i j j"
    "l m n o";
  gap: clamp(0.5rem, 1.2vw, 1rem);
}

.collage__item {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper-deep);
}

.collage__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.collage__item:hover img { transform: scale(1.04); }

.collage__item:nth-child(1) { grid-area: a; }
.collage__item:nth-child(2) { grid-area: b; }
.collage__item:nth-child(3) { grid-area: c; }
.collage__item:nth-child(4) { grid-area: d; }
.collage__item:nth-child(5) { grid-area: e; }
.collage__item:nth-child(6) { grid-area: f; }
.collage__item:nth-child(7) { grid-area: g; }
.collage__item:nth-child(8) { grid-area: h; }
.collage__item:nth-child(9) { grid-area: i; }
.collage__item:nth-child(10) { grid-area: j; }
.collage__item:nth-child(11) { grid-area: k; }
.collage__item:nth-child(12) { grid-area: l; }
.collage__item:nth-child(13) { grid-area: m; }
.collage__item:nth-child(14) { grid-area: n; }
.collage__item:nth-child(15) { grid-area: o; }

@media (max-width: 700px) {
  .collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: none;
    grid-auto-rows: clamp(7rem, 40vw, 12rem);
    grid-auto-flow: dense;
  }

  .collage > .collage__item { grid-area: auto; border-radius: 10px; }
  .collage > .collage__item--big { grid-column: span 2; grid-row: span 2; }
  .collage > .collage__item--tall { grid-row: span 2; }
}
