/* Upon This Rock
   Type: Bodoni Moda (display, optical size follows font size, matching the UTR letters and the
   footer reference), EB Garamond (reading text), Archivo (sans-serif text).
   Breakpoints: stacked < 900px, phone < 700px.
   Linework: 1px. Gold rings are concentric with the holy centre of their painting
   (Mary's halo, the monstrance, Christ's halo, the Virgin's medallion, the painted disc).
   Painted planes: navy and red with one paint texture, anchored in the corner of their section. */

/* Self-hosted, SIL Open Font License (assets/fonts/LICENSES.md). */
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/bodoni-moda-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/bodoni-moda-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/eb-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/eb-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f8f5ed;
  --ink: #142331;
  --muted: #4d4a44;
  --gold: #896638;
  --line: #cbbd9f;
  --navy: #183448;
  --red: #9c4934;
  --texture: url("assets/paint-surface-640.webp");

  --display: "Bodoni Moda", Didot, "Bodoni 72", serif;
  --text: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --label: 12.5px;
  --body: clamp(19px, 1.35vw, 21px);
  --lead: clamp(22px, 1.8vw, 26px);
  --h2: clamp(44px, 5.2vw, 80px);

  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
  --section: clamp(96px, 11vw, 176px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  overflow-x: clip;
}
::selection {
  background: #e7d6b2;
  color: var(--ink);
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
/* Bodoni's hairlines thin out as its optical size rises; capping it at 18 keeps them sturdy and
   readable at every heading size. Only the two giant display pieces use the automatic size. */
h1,
h2,
h3,
.recent-number,
.stack-title,
.stack-num,
.christ-title {
  font-variation-settings: "opsz" 18;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
}
.skip:focus {
  top: 16px;
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Shared ---------- */
.eyebrow,
.descriptor {
  font-family: var(--sans);
  font-size: var(--label);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow span[aria-hidden] {
  padding: 0 0.4em;
}
.eyebrow time {
  white-space: nowrap;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  color: var(--gold);
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 150ms ease;
}
.text-link:hover {
  text-decoration-color: currentColor;
}
.text-link span {
  transition: translate 200ms var(--ease);
}
.text-link:hover span {
  translate: 2px -2px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0 26px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #5f4520;
  background-image: url("assets/gold-leaf-v1.webp");
  background-size: 220px;
  background-blend-mode: soft-light;
  color: #fffaf0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    scale 120ms ease;
}
.button:hover {
  background-color: #4f381a;
}
/* A slow band of light crosses the gold leaf on hover. */
.button::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, #fff4d266 44%, #fffaf0aa 50%, #fff4d266 56%, transparent 75%);
  translate: -130% 0;
  pointer-events: none;
}
.button:hover::after {
  translate: 130% 0;
  transition: translate 1100ms var(--ease);
}
.button[aria-pressed="true"] {
  background-color: var(--navy);
}
.button:active {
  scale: 0.98;
}
.lbl-short {
  display: none;
}
.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
}
.link-row--center {
  justify-content: center;
}
.short-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
}
.cross {
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
}
.plane {
  position: absolute;
  pointer-events: none;
}
.plane i,
.plane b,
.footer-plane i,
.footer-plane b {
  position: absolute;
  background-color: var(--red);
  background-image: var(--texture);
  background-size: 480px;
  background-blend-mode: soft-light;
}
.plane i,
.plane b {
  inset: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.plane b {
  background-color: var(--navy);
  clip-path: polygon(100% 22%, 100% 100%, 22% 100%);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
  view-transition-name: site-header;
  transition: translate 380ms var(--ease);
  width: min(100% - 2 * var(--gutter), 1440px);
  height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.header[data-hidden] {
  translate: 0 -100%;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.header nav {
  display: flex;
  gap: 36px;
}
.header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 150ms ease;
}
.header nav a:hover {
  color: var(--gold);
}

/* ---------- Hero ----------
   The monogram is sized so the whole hero fits the first screen; its art box (2048 x 683 units)
   is a little wider than the page, its empty margins bleeding off. The letters are the supplied
   paintings set on one cap line, centred in the box. Hairlines: one at the left, one down the
   right through the corner's seam, one between the T and the R. The T's ring shows only its top
   and right; the R has its full ring. The corner is one triangle split navy | red at 65% of its
   width (--tw). Phones drop the rings and lines. */
.hero {
  --hs: clamp(32px, 3.6vw, 56px);
  --aw: min(118cqi, 1720px, (100svh - 72px - 290px) * 2.9985);
  --al: calc((100cqi - var(--aw)) / 2);
  --tw: min(40cqi, 620px);
  --pw: min(30cqi, 500px);
  position: relative;
  container-type: inline-size;
  margin-inline: auto;
  padding: max(var(--hs), var(--aw) * 104 / 2048) 0 calc(var(--hs) * 0.9);
  overflow: clip;
  isolation: isolate;
}
.hero-art {
  position: relative;
  z-index: 1;
  width: var(--aw);
  margin-left: var(--al);
  aspect-ratio: 2048 / 683;
}
.hero-art .ring {
  position: absolute;
  z-index: 0;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
}
/* Concentric with Mary's halo (art units: centre 1017, 100.2; halo radius 126.8, ring 175): a
   three-quarter arc, open at the lower left. */
.hero-ring {
  left: calc(842 / 2048 * 100%);
  top: calc(-74.8 / 683 * 100%);
  width: calc(350 / 2048 * 100%);
  border-bottom-color: transparent !important;
  rotate: 45deg;
}
/* Around the R (centre 1600, 250; radius 290): it clears the stem on the left, passes over the
   bowl, and its lowest arc runs through the R's lower opening, meeting the stem and the leg. */
.hero-art .ring-r {
  left: calc(1300 / 2048 * 100%);
  top: calc(-40 / 683 * 100%);
  width: calc(580 / 2048 * 100%);
}
.hero-roundel {
  position: absolute;
  z-index: 0;
  top: -8cqi;
  right: -12cqi;
  display: block;
  width: 30cqi;
  max-width: none;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
/* Peter: height is a share of the hero so his feet always stand on the ground line; his finger
   crosses the U's outer stroke (art x 330). */
.hero-peter {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: calc(var(--al) + var(--aw) * 330 / 2048 - var(--pw) * 0.637);
  width: var(--pw);
  aspect-ratio: 2 / 3;
  pointer-events: none;
}
.hero-peter img {
  display: block;
  width: 100%;
  height: 100%;
}
.masked-art {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.art-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hero-copy {
  position: relative;
  z-index: 3;
  margin-top: calc(var(--hs) * 0.15);
  padding-inline: var(--gutter);
  text-align: center;
}
.hero h1 {
  font-size: clamp(22px, 3vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.34em;
  margin-right: -0.34em; /* trailing tracking would push the title off-centre */
  text-transform: uppercase;
  white-space: nowrap;
}
.descriptor {
  margin-top: 14px;
  color: var(--ink);
}
.hero .descriptor {
  margin-top: 18px;
  margin-right: -0.36em;
  font-family: var(--text);
  font-size: clamp(11px, 0.95vw, 14px);
  letter-spacing: 0.36em;
}
.hero-listen {
  min-height: 50px;
  padding: 0 34px;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
}
.hero .short-rule {
  margin: 22px auto 14px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 36px;
}
.hero-rule {
  position: absolute;
  z-index: 0;
  left: 5.5%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.hero-rule--r {
  left: auto;
  right: calc(var(--tw) * 0.35);
  background: var(--gold);
  opacity: 0.55;
}
/* Between the T and the R, from under the crossbar to below the baseline. */
.hero-rule--mid {
  left: calc(1251 / 2048 * 100%);
  top: calc(250 / 683 * 100%);
  bottom: auto;
  height: calc(420 / 683 * 100%);
  background: var(--gold);
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--line);
}
.hero-plane {
  z-index: 1;
  right: 0;
  bottom: 0;
  width: var(--tw);
  aspect-ratio: 2.05;
}
.hero-plane i,
.hero-plane b {
  background-size: 360px;
  background-blend-mode: overlay;
}
.hero-plane i {
  background-color: var(--navy);
  clip-path: polygon(0 100%, 65% 35%, 65% 100%);
}
.hero-plane b {
  background-color: var(--red);
  clip-path: polygon(65% 35%, 100% 0, 100% 100%, 65% 100%);
}

/* ---------- Latest episode ----------
   The numeral (scripts/numeral_weave.py; the figure's placement is pinned in
   data/numeral-placements.json). On phones the text sits above and the numeral below bleeds off
   both edges; on tablet and desktop see the grid below. Its ground (y 925 of 1024) continues
   across the page as the gold ground line. */
.featured {
  position: relative;
  isolation: isolate;
  margin: 0 auto;
  padding-top: clamp(40px, 5vw, 88px);
  background-color: #f0e8d9;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 44px);
  overflow-x: clip;
}
.feature-art {
  --art-w: min(110vw, 112svh * 1.5);
  position: relative;
  display: block;
  /* the section (and its tint) ends on the ground line; the drawing's strip below it hangs out */
  margin-bottom: calc(var(--art-w) * -99 / 1536);
  width: var(--art-w);
  margin-left: calc((100% - var(--art-w)) / 2);
}
.feature-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -100vw;
  bottom: calc(99 / 1024 * 100%);
  left: -100vw;
  height: 1px;
  background: var(--gold);
}
/* The painted wedge the numeral stands on, rising from the ground line to the page's left edge, and
   the gold ring behind the 7 (drawing units: centre 1150, 540; radius 330). */
.feature-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -100vw;
  bottom: calc(99 / 1024 * 100%);
  width: calc(100vw + 50%);
  height: 48%;
  background-color: var(--red);
  background-image: var(--texture);
  background-size: 360px;
  background-blend-mode: overlay;
  clip-path: polygon(calc(100vw - 1px) 38%, 100% 100%, 0 100%, 0 38%);
  pointer-events: none;
}
.feature-ring {
  position: absolute;
  z-index: -1;
  left: calc(820 / 1536 * 100%);
  top: calc(210 / 1024 * 100%);
  width: calc(660 / 1536 * 100%);
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
}
.number-composition {
  width: 100%;
  height: auto;
  overflow: visible;
}
.feature-copy {
  order: -1;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(32px, 5vw, 96px);
  align-items: end;
}
.fc-body {
  padding-bottom: 10px;
}
.feature-copy h2,
.feature-copy h1 {
  font-size: clamp(44px, 5.2vw, 84px);
  line-height: 1.02;
}
.feature-copy h2 a:hover {
  color: var(--gold);
}
.feature-subtitle {
  display: block;
  margin-top: 12px;
  font-family: var(--text);
  font-size: 0.42em;
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--muted);
}
.feature-summary {
  max-width: 34ch;
  margin-bottom: 24px;
  font-size: var(--lead);
  line-height: 1.4;
  color: var(--muted);
}
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

/* Tablet and desktop: numeral on the left (bleeding off the page edge), copy on the right
   standing on the numeral's gold ground line (99/1536 of its width above its base). Phones
   keep the stacked version above. */
@media (min-width: 700px) {
  .featured {
    --nw: min(58vw, 72svh * 1.5);
    display: grid;
    /* the digits end at 86% of the drawing, so its empty right margin sits under the gap */
    grid-template-columns: calc(var(--nw) * 0.88) minmax(0, 1fr);
    column-gap: clamp(24px, 3vw, 48px);
    align-items: end;
    padding-right: var(--gutter);
  }
  .feature-art {
    --art-w: var(--nw);
    width: var(--nw);
    margin-left: calc(var(--nw) * -0.07);
  }
  .feature-copy {
    order: 0;
    width: auto;
    margin: 0 0 14px;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .feature-copy h2,
  .feature-copy h1 {
    margin-bottom: 20px;
    font-size: clamp(36px, 4.4vw, 68px);
  }
  .fc-body {
    padding-bottom: 0;
  }
}
/* Tablet: the digits stand as tall as the copy beside them. */
@media (min-width: 700px) and (max-width: 1099px) {
  .featured {
    --nw: 70vw;
    grid-template-columns: calc(var(--nw) * 0.8) minmax(0, 1fr);
    column-gap: 36px;
  }
  .feature-ring {
    display: none;
  }
  .feature-copy h2,
  .feature-copy h1 {
    font-size: clamp(32px, 4.2vw, 44px);
  }
}
@media (min-width: 700px) and (max-width: 899px) {
  .home-feature .feature-summary {
    display: none;
  }
}

/* ---------- Recent episodes ----------
   The heading stands behind the Disputation; everything is in the painting's units (cqi) so the
   overlap is the same at every width. The ring is concentric with the monstrance. */
.recent {
  position: relative;
  margin-top: calc(var(--section) * 1.35);
  overflow-x: clip;
}
.recent-weave {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}
.recent-weave h2 {
  position: relative;
  z-index: 0;
  margin-left: 5cqi;
  font-size: 12cqi;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.recent-weave img {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: -9cqi;
  mask: linear-gradient(#000 88%, transparent 100%);
  pointer-events: none;
}
.recent-ring {
  position: absolute;
  z-index: 1;
  left: 35cqi;
  top: calc(12cqi - 9cqi + 0.183 * 100cqi / 3 - 15cqi);
  width: 30cqi;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
}
.recent-all {
  display: flex;
  width: fit-content;
  margin: 28px auto 0;
}
.recent-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 5vw, 88px);
  margin-top: clamp(20px, 2.4vw, 36px);
  border-top: 1px solid var(--line);
}
.recent-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.recent-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}
.recent-item:hover::after {
  transform: scaleX(1);
}
.recent-number {
  font-family: var(--display);
  font-size: 46px;
  line-height: 1;
  color: var(--gold);
}
.recent-item h3 {
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.12;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 150ms ease;
}
.recent-item h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.recent-item:hover h3 {
  color: var(--gold);
}
.recent-meta {
  margin-top: 6px;
  font-size: 17px;
  color: var(--muted);
}
.recent-arrow {
  color: var(--gold);
  font-size: 22px;
}
.recent-item:focus-within {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}
.recent-item:focus-within a {
  outline: none;
}

/* ---------- About and the Living Christ ----------
   Desktop: the copy on the left, the Christ panel on the right running to the viewport edge.
   The panel keeps the source panel's proportion (1.636); Christ is a separate layer whose halo
   rises above it and whose hand reaches below it (figure = 1.212 × panel height). */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: center;
  margin-top: var(--section);
  padding-left: max(var(--gutter), (100% - var(--max)) / 2);
}
.about-copy h2 {
  margin-bottom: 28px;
  font-size: clamp(40px, 4.2vw, 66px);
  line-height: 1.04;
}
.about-copy p:not(.eyebrow) {
  max-width: 46ch;
  margin-bottom: 16px;
  color: var(--muted);
}
.about-copy .link-row {
  margin-top: 12px;
}
.christ-scene {
  container-type: inline-size;
}
.christ-band {
  --bh: calc(100cqi / 1.636);
  position: relative;
  width: 100%;
  height: var(--bh);
  margin: calc(var(--bh) * 0.16) 0 calc(var(--bh) * 0.08);
  background-color: #10253a;
  background-image: var(--texture);
  background-size: 520px;
  background-blend-mode: soft-light;
}
.christ-figure {
  position: absolute;
  z-index: 1;
  right: 0;
  /* the robe is cut at row 957 of 1017, so this puts the cut exactly on the band's bottom edge and
     only the hand hangs below */
  bottom: calc(var(--bh) * -0.0715);
  height: calc(var(--bh) * 1.212);
  width: auto;
  max-width: none;
}
.christ-ring {
  position: absolute;
  z-index: 0;
  right: calc(var(--bh) * (0.427 - 0.36));
  top: calc(var(--bh) * (0.034 - 0.36));
  width: calc(var(--bh) * 0.72);
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.christ-title {
  position: absolute;
  z-index: 2;
  left: 7cqi;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--display);
  font-size: calc(var(--bh) * 0.13);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  pointer-events: none;
}
.ct-small {
  display: block;
  font-size: 0.5em;
  letter-spacing: 0.08em;
  margin-bottom: 0.1em;
}
.ct-sub {
  display: block;
  margin-top: 0.6em;
  font-family: var(--sans);
  font-size: max(11px, 0.12em);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.18em;
}
.ct-sub::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-bottom: 1.4em;
  background: var(--gold);
}

/* ---------- The Living Christ (home): one full-bleed navy band ----------
   Copy on the left; Christ on the right, from the source panel's proportions: figure height =
   1.212 × band, halo 14.8% of the band above its top, hand 6.4% below its bottom. The ring is
   concentric with his halo, in the figure's own coordinates. */
.living {
  --bh: clamp(460px, 40vw, 660px);
  margin-top: calc(var(--section) + var(--bh) * 0.15);
  padding-bottom: calc(var(--bh) * 0.07);
}
.living-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--bh);
  background-color: #10253a;
  background-image: var(--texture);
  background-size: 520px;
  background-blend-mode: soft-light;
}
.living-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  padding-block: clamp(48px, 5vw, 80px);
  color: var(--paper);
}
.living-copy > * {
  max-width: min(36rem, 42vw);
}
.living .christ-title {
  position: static;
  translate: none;
  font-size: calc(var(--bh) * 0.13);
  pointer-events: auto;
}
.living .christ-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 0.42em;
  background: var(--gold);
}
.living-copy p {
  margin: 28px 0 34px;
  max-width: min(31ch, 42vw);
  font-size: var(--lead);
  line-height: 1.45;
  color: #e9e1d2;
}
.living-figure {
  position: absolute;
  z-index: 1;
  right: 0;
  /* the robe is cut at row 957 of 1017, so this puts the cut exactly on the band's bottom edge and
     only the hand hangs below */
  bottom: calc(var(--bh) * -0.0715);
  height: calc(var(--bh) * 1.212);
  aspect-ratio: 802 / 1017;
  pointer-events: none;
}
.living-figure img {
  width: 100%;
  height: 100%;
}
.living-ring {
  position: absolute;
  z-index: -1;
  right: 6.97%;
  top: -14.7%;
  width: 75.3%;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
/* Desktop: the copy moves over to sit close beside Christ (his figure is 0.956 of the band height
   wide), so the two read as one composition rather than two edges of the band. */
@media (min-width: 1100px) {
  .living-copy {
    width: auto;
    margin: 0;
    padding-left: max(var(--gutter), calc(100% - var(--bh) * 0.956 - min(38rem, 42vw) - 2vw));
  }
  .living .christ-title {
    font-size: calc(var(--bh) * 0.145);
  }
}

/* ---------- Subscribe: one clean row of places to listen ---------- */
.subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px 48px;
  margin-top: var(--section);
  padding-block: 36px;
  border-block: 1px solid var(--line);
}
.subscribe h2 {
  font-size: clamp(34px, 3.4vw, 52px);
}
.subscribe-list,
.listen-on {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(20px, 3vw, 44px);
  padding: 0;
  list-style: none;
}
.subscribe-list a,
.listen-on a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 150ms ease;
}
.subscribe-list a:hover,
.listen-on a:hover {
  color: var(--gold);
}
.listen-on {
  margin-top: 18px;
}
.episode-hero .listen-on a {
  color: #fffaf0;
  font-size: 13px;
}
.episode-hero .listen-on a:hover {
  color: #efd8a6;
}
@media (max-width: 699px) {
  .subscribe {
    display: block;
  }
  .subscribe-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
  }
  .subscribe-list a {
    font-size: 13px;
    letter-spacing: 0.12em;
  }
}

/* ---------- Four details: full bleed ---------- */
.sacred-strip {
  display: grid;
  grid-template-columns: 5fr 3fr 4fr 6fr;
  grid-template-rows: auto;
  align-items: end;
  gap: clamp(12px, 1.6vw, 24px);
  width: min(100% - 2 * var(--gutter), 1440px);
  margin: calc(var(--section) * 1.1) auto 0;
}
.sacred-strip img {
  width: 100%;
  object-fit: cover;
}
.sacred-strip img:nth-child(1) {
  aspect-ratio: 4 / 5;
}
.sacred-strip img:nth-child(2) {
  aspect-ratio: 3 / 4;
  margin-bottom: 18%;
}
.sacred-strip img:nth-child(3) {
  aspect-ratio: 1;
  margin-bottom: 34%;
}
.sacred-strip img:nth-child(4) {
  aspect-ratio: 5 / 6;
}

/* ---------- Footer: the supplied composition ----------
   Fitted to the mockup (source-art/user-selections-20260924b/footer-layout-reference-v2.png) by landmarks and
   measured from the garland width (--gw = 0.922 of the viewport). The garland (the mockup's own, cut out)
   runs 11.3% of its width off the right edge with its crown whole at the footer's top; the left cherub's
   foot and the last cherub hang down over the wordmark. Wordmark baseline 0.682gw, link bar 0.805gw,
   footer 0.877gw tall. Three hairline arcs thread behind the garland and the wordmark; the red disc sits
   behind the last cherub, over a navy triangle in the corner. */
.site-footer {
  --gw: min(92.2vw, 1500px);
  --gy: clamp(32px, 4vw, 64px);
  position: relative;
  isolation: isolate;
  margin-top: clamp(96px, 9vw, 160px);
  overflow: clip;
}
/* The clean break above the footer: a hairline across the page. */
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.footer-stage {
  position: relative;
  height: calc(var(--gy) + var(--gw) * 0.877);
}
.footer-art {
  position: absolute;
  z-index: 4;
  right: calc(var(--gw) * -0.15); /* the lower-right cherub's foot runs off the edge */
  top: var(--gy);
  width: var(--gw);
  max-width: none;
  pointer-events: none;
}
.footer-ring,
.footer-arc {
  position: absolute;
  z-index: 1;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
}
/* Behind the garland's left half. */
.footer-ring {
  right: calc(var(--gw) * 0.301);
  top: calc(var(--gy) + var(--gw) * 0.161);
  width: calc(var(--gw) * 0.452);
}
/* A wide arc sweeping up from the lower left, behind the wordmark. */
.footer-arc {
  right: calc(var(--gw) * -0.131);
  top: calc(var(--gy) + var(--gw) * 0.516);
  width: calc(var(--gw) * 1.308);
  opacity: 0.8;
}
.footer-line {
  position: absolute;
  left: 5.2%;
  top: calc(var(--gy) + var(--gw) * 0.186);
  height: calc(var(--gw) * 0.371);
  width: 1px;
  background: var(--gold);
  opacity: 0.8;
}
.footer-plane {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}
.footer-plane i {
  right: 0;
  bottom: 0;
  width: calc(var(--gw) * 0.319);
  height: calc(var(--gw) * 0.176);
  background-color: var(--navy);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.footer-plane b,
.footer-plane-ring {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: 50% -50%;
}
.footer-plane b {
  right: calc(var(--gw) * 0.018);
  bottom: calc(var(--gw) * 0.158);
  width: calc(var(--gw) * 0.266);
  translate: 50% 50%;
}
/* Rises out of the navy corner to the disc, which covers it. */
.footer-plane-ring {
  right: calc(var(--gw) * -0.013);
  bottom: calc(var(--gw) * -0.113);
  width: calc(var(--gw) * 0.616);
  translate: 50% 50%;
  border: 1px solid var(--gold);
}
.footer-mark {
  position: absolute;
  z-index: 3;
  inset: 0 var(--gutter);
}
/* The traced wordmark (wordmark-traced-v2.svg): about 1232 x 200 mockup px, cap line to the R's tail (baseline at 166.1). Its cap
   line sits at 0.565gw so the baseline falls at 0.682gw, as in the mockup. */
.footer-wordmark {
  position: absolute;
  left: 0;
  top: calc(var(--gy) + var(--gw) * 0.592);
  display: block;
  width: min(calc(var(--gw) * 0.79), 100%);
  color: var(--ink);
  transition: color 150ms ease;
}
.footer-wordmark svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
  overflow: visible;
}
.footer-wordmark:hover {
  color: var(--navy);
}
.footer-bar {
  position: absolute;
  left: 0;
  top: calc(var(--gy) + var(--gw) * 0.805 - 22px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  width: calc(100% + var(--gutter) - var(--gw) * 0.131);
}
.footer-bar .cross {
  font-size: 26px;
}
.footer-rule {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.footer-bar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(18px, 3vw, 46px);
}
.footer-bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 2px;
  font-family: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 150ms ease;
}
.footer-bar nav a:hover {
  color: var(--gold);
}

/* ---------- Episodes archive ---------- */
.archive {
  padding-top: clamp(40px, 5vw, 80px);
}
.archive-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.archive h1 {
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}
.archive-heading .italic {
  font-size: var(--lead);
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
  text-align: right;
}
.archive-controls {
  display: flex;
  gap: 48px;
  margin-top: 32px;
}
.archive-controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 260px;
  font-family: var(--sans);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.archive-controls label:last-child {
  flex: 0 0 260px;
}
input,
select {
  width: 100%;
  min-height: 50px;
  padding: 8px 0;
  font-family: var(--text);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
input:focus-visible,
select:focus-visible {
  outline: none;
  border-bottom-color: var(--gold);
}
.gallery-intro {
  margin-top: 32px;
  max-width: 40ch;
  font-size: var(--lead);
  font-style: italic;
  color: var(--muted);
}
.result-count {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gold);
}
.empty-state {
  margin: 48px auto;
  font-size: var(--lead);
}

/* Each painting keeps its own proportions and fills its frame. They stack as you scroll,
   oldest first; each rests at a slight angle. */
.framed {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar);
  overflow: hidden;
  border-radius: 12px;
  background: var(--navy);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* A print lifting off the page: soft overall shadow plus two curled lower corners. */
.paper {
  position: relative;
  display: block;
  isolation: isolate;
}
.paper::before,
.paper::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 14px;
  width: 46%;
  height: 22%;
  box-shadow: 0 18px 16px #1423314d;
  pointer-events: none;
}
.paper::before {
  left: 10px;
  rotate: -3deg;
}
.paper::after {
  right: 10px;
  rotate: 3deg;
}
.framed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 450ms var(--ease);
}
.art-stack {
  position: relative;
  padding: 6svh 0 16svh;
}
.stack-piece {
  --w: min(840px, 84vw, calc(60svh * var(--ar)));
  position: sticky;
  top: calc(50svh - var(--w) / var(--ar) / 2 + var(--stack-offset, 0) * clamp(18px, 2.8svh, 28px));
  width: var(--w);
  margin: 0 auto 44svh;
  translate: var(--dx, 0) 0;
}
.stack-piece:nth-child(6n + 1) {
  --tilt: -2deg;
  --dx: -6vw;
}
.stack-piece:nth-child(6n + 2) {
  --tilt: 1.6deg;
  --dx: 5vw;
}
.stack-piece:nth-child(6n + 3) {
  --tilt: -1deg;
  --dx: -2vw;
}
.stack-piece:nth-child(6n + 4) {
  --tilt: 2.2deg;
  --dx: 7vw;
}
.stack-piece:nth-child(6n + 5) {
  --tilt: -1.4deg;
  --dx: -4vw;
}
.stack-piece:nth-child(6n) {
  --tilt: 1deg;
  --dx: 3vw;
}
.stack-piece:last-child {
  margin-bottom: 0;
}
.stack-piece .framed {
  box-shadow:
    0 1px 2px #1423311f,
    0 10px 24px -12px #1423313d;
}
.stack-open {
  position: relative;
  display: block;
}
.stack-label {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 1.8vw, 24px);
  padding: 22% clamp(18px, 3%, 32px) clamp(16px, 2.6%, 28px);
  border-radius: 0 0 12px 12px;
  background: linear-gradient(transparent, #0b141c33 30%, #0b141cc4);
  color: #fffaf0;
  pointer-events: none;
}
.stack-num {
  flex: none;
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 120px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: #fffaf0;
}
.stack-text {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-bottom: 0.2em;
}
.stack-label .stack-meta {
  margin: 0;
  color: #efd8a6;
}
.stack-label {
  transition: opacity 220ms ease;
}
.stack-piece[data-covered] .stack-label {
  opacity: 0;
}
.stack-title {
  display: block;
  max-width: 24ch;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.stack-cta {
  display: none;
}
.stack-open:hover .stack-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Episode dialog */
.episode-modal {
  width: min(1120px, 100% - 32px);
  max-height: 90dvh;
  padding: 64px 48px 48px;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.episode-modal::backdrop {
  background: #0e1b25c4;
  backdrop-filter: blur(6px);
}
.episode-modal[open] {
  animation: modal-in 240ms var(--ease);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.modal-close {
  position: absolute;
  right: 20px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--sans);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.modal-close span {
  font-size: 26px;
  letter-spacing: 0;
}
.modal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.framed--modal {
  width: min(100%, calc(62dvh * var(--ar)));
  margin-inline: auto;
}
.modal-art > p {
  margin-top: 12px;
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
}
.modal-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.04;
}
.modal-summary {
  margin-bottom: 24px;
  font-size: var(--lead);
  line-height: 1.4;
  color: var(--muted);
}
.modal-copy audio {
  width: 100%;
}
.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 12px;
}
body:has(.episode-modal[open]) {
  overflow: hidden;
}

/* ---------- Episode page ----------
   The episode's painting is the hero, full bleed. Number, title, play and Spotify sit on it over a
   shade that darkens toward the lower left, so the text reads on light and dark paintings alike. */
.episode-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100svh - 72px), max(560px, 62vw));
  overflow: hidden;
  color: #fffaf0;
}
.episode-hero-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.episode-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(to top, #0b141ceb 0%, #0b141c99 34%, #0b141c1a 68%, transparent 100%),
    linear-gradient(to right, #0b141c8c, transparent 60%);
}
.episode-hero-copy {
  padding-block: 96px clamp(40px, 6vw, 88px);
}
.episode-hero .back-link {
  position: absolute;
  top: 20px;
  left: var(--gutter);
  color: #fffaf0;
  text-shadow: 0 1px 12px #0b141c99;
}
.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 18px;
}
.episode-hero-num {
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 150px);
  line-height: 0.9;
  color: #efd8a6;
}
.episode-hero h1 {
  max-width: 18ch;
  margin: 14px 0 28px;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.02;
  text-shadow: 0 2px 24px #0b141c80;
}
.episode-hero .feature-subtitle {
  color: #efe6d4;
}
.episode-hero .player {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 0;
  padding: 0;
  border: 0;
}
.episode-hero .text-link {
  color: #fffaf0;
}
.episode-page .show-notes {
  margin-top: var(--section);
}
.framed--page {
  width: min(100%, calc(72svh * var(--ar)));
  margin-inline: auto;
  box-shadow: 0 24px 48px -18px #14233159;
}
.episode-art figcaption {
  margin-top: 16px;
  font-size: 16px;
  font-style: italic;
  text-align: center;
  color: var(--muted);
}
.player {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 28px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
.player .native-audio {
  flex: 1 0 100%;
}
.player-ready .native-audio,
html:not(.js) .play-episode {
  display: none;
}
audio {
  display: block;
  width: 100%;
  height: 48px;
}
.player > .text-link {
  margin: 0;
}
.audio-fallback {
  margin-top: 10px;
}
.audio-fallback a {
  text-decoration: underline;
}
.show-notes {
  max-width: 720px;
  margin: var(--section) auto 0;
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
}
.show-notes h2 {
  margin-bottom: 32px;
  font-size: var(--h2);
  line-height: 1.02;
}
.show-notes p,
.show-notes li {
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.6;
}
.show-notes ul,
.show-notes ol {
  margin: 0 0 24px;
  padding-left: 1.2em;
}
.show-notes li {
  margin-bottom: 10px;
}
.show-notes h3,
.show-notes h4 {
  display: block;
  margin: 40px 0 12px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}
.show-notes a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.episode-pagination {
  margin-block: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- About page ---------- */
/* About: the Delivery of the Keys full bleed, the opening set over its lower left. */
.about-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100svh - 72px), 60.35vw);
  color: #fffaf0;
}
.about-hero img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}
.about-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(to top, #0b141ce0 0%, #0b141c8c 30%, transparent 62%),
    linear-gradient(to right, #0b141c80, transparent 55%);
}
.about-hero-copy {
  padding-block: 48px clamp(40px, 6vw, 96px);
}
.about-hero h1 {
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.98;
  text-shadow: 0 2px 30px #0b141c80;
}
.about-hero h1 em {
  font-style: italic;
  color: #efd8a6;
}
.about-hero p {
  max-width: 34ch;
  margin: 24px 0 30px;
  font-size: var(--lead);
  line-height: 1.45;
  color: #efe6d4;
}
.about-opening {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: end;
  padding-top: clamp(48px, 6vw, 96px);
}
.about-opening > .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}
.about-opening h1 {
  font-size: clamp(60px, 8vw, 124px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.about-opening h1 em {
  font-weight: 400;
}
.about-intro {
  padding-bottom: 8px;
  font-size: var(--lead);
  line-height: 1.4;
}
.about-intro .short-rule {
  margin-bottom: 20px;
}
.about-intro .text-link {
  margin-top: 12px;
}
.about-listen {
  max-width: 640px;
  margin-top: var(--section);
  text-align: center;
}
.about-listen h2 {
  margin-bottom: 18px;
  font-size: var(--h2);
  font-weight: 400;
}
.about-listen > p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--muted);
}
.art-credits {
  max-width: 880px;
  margin-top: var(--section);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.art-credits h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 3.4vw, 48px);
  font-weight: 400;
}
.art-credits p,
.art-credits li {
  max-width: 68ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}
.art-credits ul {
  padding-left: 1.2em;
}
.art-credits li {
  margin: 14px 0;
}
.art-credits a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tablet keeps the composition; the link row tightens to stay on one line. */
@media (max-width: 1099px) {
  .footer-bar nav {
    gap: 0 clamp(12px, 1.9vw, 22px);
  }
  .footer-bar nav a {
    font-size: 12.5px;
    letter-spacing: 0.14em;
  }
}
@media (max-width: 899px) {
  .footer-bar {
    gap: 14px;
    width: calc(100% + var(--gutter) - var(--gw) * 0.06);
  }
  .footer-bar nav {
    flex-wrap: nowrap;
    gap: 0 12px;
  }
  .footer-bar nav a {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .footer-rule {
    min-width: 12px;
  }
  .footer-plane i {
    width: calc(var(--gw) * 0.28);
    height: calc(var(--gw) * 0.15);
  }
}

/* Tablet hero: the monogram runs a little wider than the page. */
@media (min-width: 700px) and (max-width: 1099px) {
  .hero {
    --aw: min(113cqi, (100svh - 72px - 300px) * 2.9985);
  }
}

/* ---------- Stacked: < 900px ---------- */
@media (max-width: 899px) {
  .hero {
    --tw: 36vw;
  }
  .living {
    --bh: clamp(400px, 54vw, 500px);
  }
  .recent-index {
    grid-template-columns: 1fr;
  }
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 32px;
  }
  .about-copy h2 {
    font-size: clamp(30px, 4.4vw, 40px);
  }
  .episode-opening {
    grid-template-columns: 1fr;
  }
  .episode-art {
    order: -1;
  }
  .about-opening {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Phone: < 700px ---------- */
@media (max-width: 699px) {
  :root {
    --label: 11.5px;
    --body: 19px;
    --lead: 21px;
    --h2: 38px;
  }
  .header {
    height: 60px;
  }
  .brand .cross {
    font-size: 26px;
  }
  .header nav {
    gap: 22px;
  }

  /* Phone hero, after the mobile mockup: the letters close up (U +45, R −45 art units) and
     span 96vw; Peter stands on the ground line, bleeding off the left edge, his finger in the U;
     the title and its one button are centred; the split corner closes the hero at the right. */
  .hero {
    --hs: 28px;
    padding: calc(6vw + 24px) 0 64px;
  }
  .l-u {
    transform: translateX(30px);
  }
  .l-r {
    transform: translateX(-30px);
  }
  .hero-rule--mid,
  .hero-rule--r {
    display: none;
  }
  .hero-copy {
    margin-top: 7vw;
  }
  .hero h1 {
    font-size: 5.5vw;
    letter-spacing: 0.26em;
    margin-right: -0.26em;
  }
  .hero .descriptor {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-right: -0.1em;
  }
  .descriptor {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .hero .short-rule {
    display: none;
  }
  .hero-actions {
    gap: 10px;
    margin-top: 18px;
  }
  .lbl-long {
    display: none;
  }
  .lbl-short {
    display: inline;
  }
  .hero-actions .text-link {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--gold);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .hero-listen {
    min-height: 44px;
    padding: 0 22px;
    font-size: 12px;
  }
  .hero {
    --tw: 56vw;
  }
  .hero::after {
    left: 0;
    right: 0;
  }

  /* Latest episode: title and button above; the numeral fills the width and bleeds both edges. */
  .home-feature {
    margin-top: 0;
  }
  .feature-art {
    --art-w: 120vw;
  }
  .home-feature .meta-rest,
  .home-feature .feature-summary {
    display: none;
  }
  .home-feature .eyebrow::after {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    margin-top: 12px;
    background: var(--gold);
  }
  .home-feature .feature-subtitle,
  .feature-notes {
    display: none;
  }
  .feature-copy h1,
  .feature-copy h2 {
    font-size: 40px;
  }

  /* The Disputation grows to 140% and bleeds both edges; 14.29cqi is the viewport's left edge. */
  .recent-weave {
    width: 140%;
    margin-left: -20%;
  }
  .recent-weave h2 {
    margin-left: calc(14.29cqi + var(--gutter));
    font-size: calc((100vw - 2 * var(--gutter)) / 6.9);
  }
  /* Same 75% occlusion as desktop: the figures rise up through the heading. */
  .recent-weave img {
    margin-top: calc((100vw - 2 * var(--gutter)) / 6.9 * -0.75);
  }
  .recent-ring {
    top: calc((100vw - 2 * var(--gutter)) / 6.9 * 0.58 + 0.183 * 100cqi / 3 - 15cqi);
  }
  .feature-copy {
    grid-template-columns: 1fr;
  }
  .fc-body {
    padding-bottom: 0;
  }
  .living {
    margin-top: var(--section);
    padding-bottom: 6vw;
  }
  .living-band {
    display: flow-root; /* keeps Christ's negative margin inside, so the hand spills below the band */
    min-height: 0;
    padding-top: 52px;
  }
  .living-copy {
    padding-block: 0 8px;
  }
  .living-copy > *,
  .living-copy p {
    max-width: none;
  }
  .living .christ-title {
    font-size: 13vw;
  }
  .living-figure {
    position: relative;
    right: auto;
    bottom: auto;
    width: 58vw;
    height: auto;
    /* the robe's cut (row 957 of 1017) sits exactly on the band's bottom edge: 58vw x 60/802 */
    margin: -8vw 0 -4.339vw auto;
  }
  .living-ring {
    display: none;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0;
  }
  .about-copy {
    width: min(100% - 2 * var(--gutter), var(--max));
    margin-inline: auto;
  }
  .about-copy h2 {
    font-size: var(--h2);
  }
  .recent-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    min-height: 64px;
  }
  .recent-number {
    font-size: 26px;
  }
  .recent-item h3 {
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    font-size: clamp(20px, 5.9vw, 24px);
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .recent-arrow {
    display: none;
  }
  .recent-meta {
    display: none;
  }

  .christ-title {
    font-size: calc(var(--bh) * 0.15);
  }
  .ct-sub {
    font-size: 11px;
  }
  /* Phone: the four details run left to right in one row that scrolls sideways. */
  .sacred-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 58vw;
    gap: 12px;
    width: 100%;
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .sacred-strip img {
    scroll-snap-align: start;
  }
  .sacred-strip img:nth-child(n) {
    aspect-ratio: 3 / 4;
    margin-bottom: 0;
  }

  /* Phone footer: the same locked composition as desktop (every shape measured from the garland), with
     the wordmark across the width and the links in two columns beneath it. */
  .site-footer {
    --gw: 92.2vw;
  }
  .footer-stage {
    height: auto;
    padding-top: calc(var(--gy) + var(--gw) * 0.877 + 8px);
    padding-bottom: 28px;
  }
  .footer-bar {
    position: static;
    flex-wrap: wrap;
    width: 100%;
    gap: 4px 20px;
  }
  .footer-mark {
    position: static;
    margin-inline: var(--gutter);
  }
  .footer-wordmark {
    position: absolute;
    left: var(--gutter);
    width: calc(var(--gw) * 0.877);
  }
  .footer-bar nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0 28px;
  }
  .footer-bar nav a {
    font-size: 12px;
    letter-spacing: 0.12em;
    white-space: normal;
  }
  .footer-bar .cross,
  .footer-rule {
    display: none;
  }

  .archive-heading {
    display: block;
  }
  .archive-heading .italic {
    margin-top: 16px;
    text-align: left;
  }
  .archive-heading .italic br {
    display: none;
  }
  .archive-controls {
    flex-direction: column;
    gap: 20px;
  }
  .archive-controls label,
  .archive-controls label:last-child {
    flex: auto;
  }
  .stack-piece {
    --w: min(840px, 88vw, calc(54svh * var(--ar)));
    top: calc(50svh - var(--w) / var(--ar) / 2 + var(--stack-offset, 0) * 14px);
    translate: 0 0;
  }
  .stack-label {
    padding: 30% 16px 14px;
    gap: 12px;
  }
  .stack-num {
    font-size: 52px;
  }
  .stack-title {
    font-size: 18px;
  }
  .episode-modal {
    padding: 60px 20px 24px;
  }
  .modal-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .framed--modal {
    width: min(100%, calc(34dvh * var(--ar)));
  }
  .episode-opening h1 {
    font-size: 42px;
  }
  .show-notes p,
  .show-notes li {
    font-size: 19px;
  }
}

@media (max-width: 479px) {
  .header nav { gap: 16px; }
}

/* ---------- Recent episodes: painting preview follows the pointer (initRecent) ---------- */
.recent-thumb {
  display: none;
}
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .recent-thumb {
    display: block;
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 50%;
    width: 180px;
    max-width: none;
    height: auto;
    translate: 24px -60%;
    rotate: -3deg;
    opacity: 0;
    scale: 0.9;
    box-shadow: 0 22px 40px -18px #14233180;
    pointer-events: none;
    transition:
      opacity 260ms var(--ease),
      scale 420ms var(--ease),
      rotate 600ms var(--ease);
  }
  .recent-item:hover .recent-thumb {
    opacity: 1;
    scale: 1;
    rotate: 0deg;
  }
  /* The preview takes the arrow's place; titles keep clear of it. */
  .recent-text {
    padding-right: 96px;
  }
  .recent-arrow {
    transition: opacity 200ms ease;
  }
  .recent-item:hover .recent-arrow {
    opacity: 0;
  }
}

/* ---------- Persistent player ---------- */
body:has(.player-bar[data-state="open"]) {
  padding-bottom: 104px;
}
.player-bar {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(var(--viewport-bottom, 0px) + max(16px, env(safe-area-inset-bottom)));
  width: min(760px, 100% - 32px);
  display: grid;
  grid-template-columns: 56px 44px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 8px;
  background: #fbf8f1f0;
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px #14233170;
  translate: -50% 0;
  view-transition-name: player;
  transition:
    opacity 320ms var(--ease),
    translate 520ms var(--ease);
}
.player-bar[data-state="closed"] {
  opacity: 0;
  translate: -50% 140%;
  pointer-events: none;
}
.pb-art {
  width: 56px;
  height: 56px;
  object-fit: cover;
}
.pb-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--gold);
  color: #fffaf0;
  transition:
    background-color 150ms ease,
    scale 120ms ease;
}
.pb-toggle:hover {
  background-color: #74552d;
}
.pb-toggle:active {
  scale: 0.94;
}
.pb-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.pb-toggle .i-pause,
.player-bar[data-playing] .pb-toggle .i-play {
  display: none;
}
.player-bar[data-playing] .pb-toggle .i-pause {
  display: block;
}
.pb-text {
  min-width: 0;
}
.pb-title {
  display: block;
  overflow: hidden;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pb-title span {
  margin-right: 0.5em;
  color: var(--gold);
}
.pb-range {
  --p: 0%;
  width: 100%;
  min-height: 0;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}
.pb-range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--gold) var(--p), var(--line) var(--p));
}
.pb-range::-moz-range-track {
  height: 2px;
  background: linear-gradient(90deg, var(--gold) var(--p), var(--line) var(--p));
}
.pb-range::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  appearance: none;
}
.pb-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
}
.pb-time {
  font-family: var(--sans);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.pb-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 22px;
  color: var(--muted);
}
.pb-close:hover {
  color: var(--ink);
}
@media (max-width: 699px) {
  .player-bar {
    left: 0;
    bottom: var(--viewport-bottom, 0px);
    width: 100%;
    grid-template-columns: 48px 44px minmax(0, 1fr) 32px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-inline: 0;
    border-bottom: 0;
    translate: 0 0;
  }
  .player-bar[data-state="closed"] {
    translate: 0 110%;
  }
  .pb-art {
    width: 48px;
    height: 48px;
  }
  .pb-time {
    display: none;
  }
}

@media (max-width: 699px) {
  .about-hero,
  .episode-hero {
    min-height: 128vw;
  }
  .about-hero::before,
  .episode-hero::before {
    background: linear-gradient(to top, #0b141cf2 0%, #0b141cc4 45%, #0b141c4d 75%, #0b141c1a 100%);
  }
  .about-hero img {
    object-position: 50% 0;
  }
}

@media (max-width: 699px) {
  .hero {
    --pw: 30vw;
  }
  .hero-peter {
    left: -9vw;
  }
}

@media (max-width: 699px) {
  /* Christ rises beside the button, so the band is shorter */
  .living-figure {
    width: 48vw;
    margin-top: -16vw;
    margin-bottom: -3.59vw; /* 48vw x 60/802: the robe's cut on the band's edge */
  }
  .living-copy .button {
    position: relative;
    z-index: 3;
    min-height: 44px;
    padding: 0 16px;
    font-size: 11px;
  }
  .recent {
    margin-top: 56px;
  }
  .hero {
    --aw: 138vw;
    --al: -19vw;
  }
}

/* ---------- Motion (only when html.motion: JS present and motion allowed) ---------- */
@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}
/* Gold rings trace themselves once as their section arrives. */
.motion [data-draw] {
  --sweep: 0deg;
  mask: conic-gradient(from 210deg, #000 var(--sweep), transparent 0);
  transition: --sweep 1800ms cubic-bezier(0.65, 0, 0.35, 1) var(--draw-delay, 0ms);
}
.motion [data-draw][data-drawn] {
  --sweep: 360deg;
}
/* Rules: vertical ones grow down from the top, horizontal ones grow out from the left. The gold
   ground lines and the Living Christ dash are pseudo-elements of their host, drawn with it. */
.motion .hero-rule[data-line],
.motion .footer-line[data-line] {
  transform-origin: top;
  scale: 1 0;
  transition: scale 1400ms cubic-bezier(0.65, 0, 0.35, 1) var(--draw-delay, 0ms);
}
.motion .short-rule[data-line],
.motion .footer-rule[data-line],
.motion .feature-art[data-line]::after,
.motion .living .christ-title[data-line]::after,
.motion .hero[data-line]::after,
.motion .site-footer[data-line]::after {
  transform-origin: left;
  scale: 0 1;
  transition: scale 1400ms cubic-bezier(0.65, 0, 0.35, 1) calc(var(--draw-delay, 0ms) + 200ms);
}
.motion [data-line][data-drawn],
.motion [data-line][data-drawn]::after {
  scale: 1 1;
}
.motion .hero-ring[data-draw] {
  transition-delay: 300ms;
}

/* Page changes cross-fade; nothing moves. The header and player stay put. */
::view-transition-old(root) {
  animation: vt-out 100ms ease both;
}
::view-transition-new(root) {
  animation: vt-in 180ms ease 90ms both;
}
@keyframes vt-out {
  to {
    opacity: 0;
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
  }
}

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

/* Review finishing pass: listener access and deliberate small-screen compositions. */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.header:focus-within { transform: none; translate: 0 0; }
.player-bar[data-state="closed"] { visibility: hidden; }
.pb-status, .pb-fallback { font-family: var(--sans); font-size: 12px; line-height: 1.45; }
.pb-status:empty { display: none; }
.pb-fallback { text-decoration: underline; text-underline-offset: 3px; }
.pb-range:disabled { opacity: 0.4; cursor: default; }
.pb-close { min-width: 44px; min-height: 44px; }
.archive-controls { flex-wrap: wrap; gap: 20px 32px; }
.archive-controls label, .archive-controls label:last-child { flex: 0 0 min(240px, 100%); }
.episode-card[hidden] { display: none !important; }
.art-stack[data-view="list"] { display: block; padding: 0 var(--gutter); max-width: 1100px; margin-inline: auto; }
.art-stack[data-view="list"] .stack-piece { position: relative; top: auto; width: 100%; margin: 0; padding: 0; translate: none; }
.art-stack[data-view="list"] .paper { display: block; width: 100%; aspect-ratio: auto; border-bottom: 1px solid var(--line); border-radius: 0; }
.art-stack[data-view="list"] .paper::before, .art-stack[data-view="list"] .paper::after,
.art-stack[data-view="list"] .framed { display: none; }
.art-stack[data-view="list"] .stack-label { position: static; display: flex; background: none; color: var(--ink); opacity: 1; padding: 24px 0; border-radius: 0; }
.art-stack[data-view="list"] .stack-num { color: var(--gold); font-size: 42px; flex: 0 0 64px; }
.art-stack[data-view="list"] .stack-title { font-size: clamp(22px, 3vw, 32px); }
.art-stack[data-view="list"] .eyebrow { color: var(--muted); }
.references-page .about-opening { display: block; }
.references-page .about-opening p { max-width: 40em; margin-top: 24px; }
.reference-list li { padding-block: 24px; border-bottom: 1px solid var(--line); }
.reference-list h3 { font-size: 28px; }
.reference-list p + p { margin-top: 8px; }
@media (max-width: 699px) {
  .hero-copy { margin-top: 6vw; }
  .hero { --aw: 140vw; --al: calc((100vw - var(--aw)) / 2); }
  .hero h1 { font-size: clamp(18px, 5.5vw, 34px); }
  .hero-actions .text-link { min-height: 44px; }
  .home-feature .meta-rest { display: inline; }
  .home-feature .meta-rest time, .home-feature .meta-rest time + span { display: none; }
  .recent-item h3 { white-space: normal; overflow: visible; line-height: 1.15; }
  .recent-meta { display: block; margin-top: 5px; font-size: 12px; }
  .recent-meta time, .recent-meta [aria-hidden] { display: none; }
  .modal-copy { order: -1; display: flex; flex-direction: column; align-items: flex-start; }
  .modal-copy .eyebrow { order: -3; }
  .modal-copy h2 { order: -2; font-size: clamp(28px, 7vw, 38px); }
  .modal-copy .play-episode { order: -1; margin-bottom: 20px; }
  .modal-summary { font-size: 19px; margin-bottom: 12px; }
  .archive-controls { flex-direction: row; gap: 12px 20px; }

  .art-stack[data-view="list"] .stack-num { flex-basis: 44px; font-size: 32px; }
  .art-stack[data-view="list"] .stack-label { padding-block: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .stack-piece { position: relative; top: auto; margin-bottom: 48px; translate: none; }
  .stack-piece[data-covered] .stack-label { opacity: 1; }
}

/* Named masthead, shared by home and episode pages. */
.brand { gap: 16px; text-decoration: none; }
.brand-name { font-family: var(--text); font-size: clamp(15px, 1.4vw, 21px); font-weight: 400; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 699px) {
  .brand { gap: 9px; }
  .brand-name { font-size: 13px; letter-spacing: .1em; }
  .header nav { gap: 14px; }
  .header nav a { font-size: 11px; letter-spacing: .08em; }
  .header .nav-subscribe { display: none; }
}

/* Vector UI marks retain the same appearance on iOS, Android and desktop. */
.icon { display: inline-block; flex: none; vertical-align: -.12em; }
.icon-arrow-up-right { width: 1em; height: 1em; }
.cross { display: inline-flex; align-items: center; justify-content: center; }
.icon-cross { width: .6em; height: 1em; }
@media (prefers-reduced-motion: reduce) {
  .stack-piece { top: auto; }
}

/* A calm platform choice before playback, with a native dialog's focus and Escape handling. */
.listen-modal { margin: auto; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 46px 36px 30px; border: 1px solid var(--gold); color: var(--ink); background: var(--paper); overflow-y: auto; }
.listen-modal::backdrop { background: #0e1b25a6; }
.listen-modal[open] { animation: listen-in 180ms ease-out; }
.listen-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; }
.listen-modal h2 { margin: 18px 0; font-size: clamp(30px, 7vw, 44px); line-height: 1.08; }
.listen-modal h2:focus { outline: none; }
#listen-choice-episode { font-size: 19px; line-height: 1.4; margin-bottom: 24px; color: var(--muted); }
.listen-here { width: 100%; }
.listen-choices { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.listen-choices a { display: flex; align-items: center; min-height: 54px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 14px; transition: color 150ms ease; }
.listen-choices a:hover { color: var(--gold); }
body:has(.listen-modal[open]) { overflow: hidden; }
@keyframes listen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
::view-transition-group(player) { animation: none; z-index: 100; }
::view-transition-old(player), ::view-transition-new(player) { animation: none; }
@media (max-width: 699px) { .listen-modal { padding: 42px 24px 24px; } }
@media (prefers-reduced-motion: reduce) { .listen-modal[open] { animation: none; } }

/* Compact episode artwork: keep natural SVG geometry and its ground line. */
@media (min-width: 700px) {
  .home-feature { --nw: min(42vw, 620px); grid-template-columns: var(--nw) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); }
  .home-feature .feature-art { margin-left: 0; }
}
@media (max-width: 699px) {
  .home-feature .feature-art { --art-w: 84vw; }
}
.footer-wordmark img { display: block; width: 100%; height: auto; }

/* A short art sequence on the homepage; the complete archive stays a listening index. */
.home-stack { padding: clamp(28px, 4vw, 64px) 0 0; }
.home-stack .stack-piece {
  --w: min(780px, 78vw, calc(62svh * var(--ar)));
  margin-bottom: 32svh;
}
.home-stack .stack-piece:last-child { margin-bottom: 0; }
.home-stack .stack-open:focus-visible { outline-offset: 8px; }
.recent-all { margin-top: clamp(48px, 7vw, 96px); }

.archive-subscribe {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px clamp(24px, 4vw, 64px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.archive-subscribe > span {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.archive-subscribe ul { display: flex; flex-wrap: wrap; gap: 8px clamp(18px, 2.5vw, 38px); margin: 0; padding: 0; list-style: none; }
.archive-subscribe a { display: inline-flex; align-items: center; min-height: 36px; font-size: clamp(17px, 1.6vw, 21px); text-decoration: none; }
.archive-subscribe a:hover, .archive-subscribe a:focus-visible { color: var(--gold); }
.archive-controls { align-items: end; justify-content: space-between; margin: 20px 0 30px; }
.archive-controls .result-count { margin: 0 0 12px; }
.archive-controls label { flex-basis: 210px; }
.archive-controls select { min-height: 42px; font-size: 18px; }
.episode-list { padding-bottom: clamp(90px, 12vw, 180px); border-top: 1px solid var(--line); }
.archive-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
}
.archive-num { color: var(--gold); font-family: var(--display); font-size: clamp(35px, 3.4vw, 52px); line-height: 1; }
.archive-row-main h2 { max-width: 38ch; font-size: clamp(23px, 2.35vw, 35px); line-height: 1.12; font-weight: 500; text-wrap: balance; }
.archive-row-main h2 a { text-decoration: none; }
.archive-row-main h2 a:hover, .archive-row-main h2 a:focus-visible { color: var(--gold); }
.archive-duration { display: inline-block; margin-top: 10px; color: var(--muted); font-family: var(--sans); font-size: 13px; }
.archive-row-actions { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.archive-row-actions > * { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; white-space: nowrap; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.archive-play { gap: 8px; padding: 0 20px; border: 1px solid var(--gold); color: var(--ink); }
.archive-play svg { width: 14px; height: 14px; }
.archive-play:hover, .archive-play:focus-visible { background: var(--gold); color: var(--paper); }
.archive-options, .archive-notes { border-bottom: 1px solid transparent; }
.archive-options:hover, .archive-notes:hover, .archive-options:focus-visible, .archive-notes:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 899px) {
  .archive-row { grid-template-columns: 54px minmax(0, 1fr); gap: 12px 18px; }
  .archive-row-actions { grid-column: 2; flex-wrap: wrap; gap: 4px 20px; }
  .archive-row-actions > * { font-size: 12px; }
  .archive-play { padding-inline: 14px; }
}
@media (max-width: 699px) {
  .home-stack .stack-piece { --w: min(88vw, calc(55svh * var(--ar))); margin-bottom: 26svh; }
  .archive-subscribe { gap: 6px 16px; padding: 20px 0; }
  .archive-subscribe > span { width: 100%; }
  .archive-subscribe ul { column-gap: 20px; }
  .archive-subscribe a { min-height: 42px; font-size: 16px; }
  .archive-controls { flex-direction: row; align-items: end; }
  .archive-controls label { flex: 0 0 150px; }
  .archive-row { padding-block: 24px; grid-template-columns: 42px minmax(0, 1fr); }
  .archive-num { font-size: 30px; }
  .archive-row-main h2 { font-size: clamp(21px, 5.8vw, 27px); }
  .archive-row-actions { grid-column: 1 / -1; padding-left: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-stack .stack-piece { position: relative; top: auto; margin-bottom: 32px; }
}

/* Homepage listening column; the assembly painting now introduces the archive. */
.recent-layout { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.5fr); gap: clamp(40px, 6vw, 100px); overflow: visible; padding-bottom: var(--section); }
.recent-sidebar { position: sticky; top: 20svh; align-self: start; }
.recent-heading h2 { font-size: clamp(44px, 5vw, 76px); line-height: 1.02; font-weight: 400; letter-spacing: -.035em; margin-bottom: 28px; }
.recent-subscribe { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.recent-subscribe h3 { font-size: 20px; font-weight: 400; }
.recent-subscribe .subscribe-list { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.recent-subscribe .subscribe-list a { letter-spacing: .08em; }
.recent-layout .home-stack { min-width: 0; padding-top: 0; }
.recent-layout .stack-piece { --w: min(45vw, calc(62svh * var(--ar))); --dx: 0px; }
.archive-art-hero { margin-top: clamp(40px, 6vw, 90px); }
.archive-art-hero h1 { position: relative; z-index: 0; margin-left: 5cqi; font-size: 12cqi; font-weight: 400; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.archive-art-hero + .archive-intro { padding-top: 0; }
@media (max-width: 799px) {
  .recent-layout { display: flex; flex-direction: column; gap: 0; }
  .recent-sidebar { display: contents; }
  .recent-heading { order: 0; }
  .recent-heading h2 { font-size: clamp(40px, 9vw, 64px); margin-bottom: 20px; }
  .recent-layout .home-stack { order: 1; padding-top: 48px; }
  .recent-layout .stack-piece { --w: min(80vw, calc(55svh * var(--ar))); }
  .recent-subscribe { order: 2; margin-top: 60px; }
  .archive-art-hero { margin-top: 40px; }
}
@media (max-width: 699px) {
  .archive-art-hero h1 { margin-left: calc(14.29cqi + var(--gutter)); font-size: calc((100vw - 2 * var(--gutter)) / 6.9); }
}

/* Gold geometry is registered to the heading and section margins. */
.recent-layout { padding-top: clamp(40px, 5vw, 72px); border-block: 1px solid var(--line); }
.recent-heading { position: relative; isolation: isolate; padding-bottom: 64px; }
.recent-heading::before {
  content: ""; position: absolute; z-index: -1;
  width: clamp(180px, 18vw, 250px); aspect-ratio: 1;
  right: 0; bottom: -16px;
  border: 1px solid var(--gold); border-radius: 50%; opacity: .45;
  pointer-events: none;
}
.recent-heading::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold); opacity: .5;
  pointer-events: none;
}
.recent-subscribe { margin-top: 32px; padding-top: 0; border-top: 0; }
.recent-layout .home-stack::before {
  content: ""; position: absolute;
  left: calc(clamp(40px, 6vw, 100px) / -2); top: 0; bottom: 0;
  width: 1px; background: var(--gold); opacity: .3; pointer-events: none;
}
main:has(.living) + .site-footer::after { content: none; }
@media (max-width: 1023px) {
  .recent-layout { display: flex; flex-direction: column; gap: 0; }
  .recent-sidebar { display: contents; }
  .recent-heading {
    order: 0; position: sticky; top: 64px; z-index: 10;
    padding: 18px 0 28px; background: var(--paper);
  }
  .recent-heading h2 { font-size: clamp(36px, 7vw, 56px); line-height: 1.05; margin-bottom: 12px; }
  .recent-heading .text-link { font-size: 16px; }
  .recent-heading::before { width: 130px; left: clamp(160px, 24vw, 260px); right: auto; bottom: -24px; opacity: .35; }
  .recent-heading::after { bottom: 0; }
  .recent-layout .home-stack { order: 1; padding-top: 48px; }
  .recent-layout .home-stack::before { left: 0; top: 28px; bottom: 0; opacity: .25; }
  .recent-layout .stack-piece {
    --w: min(78vw, calc((100svh - 300px) * var(--ar)));
    top: calc(230px + var(--stack-offset, 0) * 8px);
  }
  .recent-subscribe { order: 2; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .recent-layout .stack-piece { position: relative; top: auto; }
}

/* The circle rests on the rule; its right edge shares the column edge. */
.recent-heading::before {
  width: min(68%, 220px);
  left: auto;
  right: 0;
  bottom: 0;
}
@media (max-width: 1023px) {
  .recent-heading { padding-bottom: 48px; }
  .recent-heading::before { width: 100px; right: 0; bottom: 0; }
  .recent-layout .stack-piece { top: calc(260px + var(--stack-offset, 0) * 8px); --w: min(78vw, calc((100svh - 330px) * var(--ar))); }
}

/* Equal breathing room around the feature; the painted wedge belongs to its base. */
.home-feature {
  --feature-space: clamp(48px, 6vw, 88px);
  padding-top: var(--feature-space);
  padding-bottom: var(--feature-space);
  align-items: center;
}
.home-feature .feature-art { margin-bottom: 0; }
.home-feature .feature-copy { margin-bottom: 0; }
.home-feature .feature-art::before,
.home-feature .feature-art::after { content: none; }
.home-feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 54%;
  height: var(--feature-space);
  background: var(--red) var(--texture);
  background-size: 360px;
  background-blend-mode: overlay;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  pointer-events: none;
}
@media (max-width: 699px) {
  .home-feature::before { width: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  .recent-layout .stack-piece { top: auto; }
}

/* Center the T's artwork bounds (x 775–1228.5) on the page axis. */
.hero-art { margin-left: calc(50% - var(--aw) * 1001.75 / 2048); }
/* Peter overlaps the U at every width: his fingertip (0.635 of his width) lands inside the U's
   left stem (art x 372). The art box's left edge is 50% - aw * 1001.75/2048 (centred on the T). */
.hero { --pw: min(29cqi, 470px); --ux: 372; }
.hero-peter {
  left: calc(50% + var(--aw) * (var(--ux) - 1001.75) / 2048 - var(--pw) * 0.635);
  z-index: 2;
}
.hero-roundel { right: -15cqi; }
.hero-plane { right: -4cqi; }
@media (max-width: 699px) {
  .hero { --pw: 36vw; --ux: 402; } /* the U is shifted +30 on phones */
}
/* Cards pass over the pinned title, including its ornamental background. */
@media (max-width: 1023px) {
  .recent-heading { top: 12px; z-index: 1; padding-top: 8px; }
  .recent-layout .home-stack { position: relative; z-index: 2; }
  .recent-layout .stack-piece { top: calc(170px + var(--stack-offset, 0) * 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .recent-layout .stack-piece { top: auto; }
}

/* The latest-episode band arches up over the hero: its top edge is lowest at the centre (on the
   hero's base line) and rises at both ends, on top of everything in the hero (Peter, the corner,
   the rules). Measured in vw so the arch keeps its shape on tablet and phone. */
.home-feature {
  --dip: clamp(40px, 6.5vw, 110px);
  z-index: 3;
  overflow: visible;
  margin-top: 0;
}
.home-feature::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: calc(var(--dip) * -1 + 1px);
  height: var(--dip);
  background: radial-gradient(ellipse 58% 100% at 50% 0, transparent 99.4%, #f0e8d9 100%);
  pointer-events: none;
}
.hero {
  z-index: 1;
}
/* No straight gold rule along the hero's base: the arch is the edge. */
.hero::after {
  content: none;
}
.home-feature .feature-ring {
  display: block;
  left: -55%;
  top: -55%;
  width: 110%;
  z-index: -1;
  opacity: .65;
}
.home-feature .number-composition { position: relative; z-index: 1; }
/* Use the site's existing gold-leaf artwork, rather than a flat gold fill. */
.recent-heading::before {
  background: #c8a355 url('assets/gold-leaf-v1.webp') center / cover;
  border: 0;
  opacity: .55;
}
@media (max-width: 699px) {
  .home-feature { --dip: 8vw; }
  .home-feature .feature-ring { left: -75%; top: -105%; width: 130%; }
}
.recent-heading::before { bottom: 42px; }
@media (max-width: 1023px) {
  .recent-heading::before { width: 140px; right: 12px; bottom: 24px; }
}
@media (max-width: 699px) {
  .home-feature .feature-ring { top: -145%; }
}

/* ---------- Pass 19: coherent recent-episodes gold motif, spacing, small-screen 07 ----------
   One set of rules replacing the earlier layered ones for these pieces. */
.recent-heading::before {
  content: none;
}
.recent-heading {
  --d: clamp(112px, 12vw, 196px);
}
.recent-disc,
.recent-halo {
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}
.recent-disc {
  right: 0;
  bottom: 0;
  width: var(--d);
  background: #c8a355 url("assets/gold-leaf-v1.webp") center / cover;
  opacity: 0.8;
}
/* 1.5x the disc; centre 12% of the disc up and right of the disc's centre */
.recent-halo {
  right: calc(var(--d) * -0.37);
  bottom: calc(var(--d) * -0.13);
  width: calc(var(--d) * 1.5);
  border: 1px solid var(--gold);
}
.recent.recent-layout {
  margin-top: clamp(32px, 4vw, 56px);
}
@media (max-width: 1023px) {
  .recent-heading {
    --d: 96px;
  }
  .recent-halo {
    right: calc(var(--d) * -0.2);
  }
}

/* Hero: more room around the button */
.hero .short-rule {
  margin: 28px auto 30px;
}
.hero-listen {
  min-height: 54px;
  padding: 0 40px;
}
.hero {
  padding-bottom: calc(var(--hs) * 1.3);
}

/* Latest episode on tablet and phone: the numeral and title share the band at a real size */
@media (min-width: 700px) and (max-width: 1023px) {
  .home-feature {
    --nw: 52vw;
  }
  .home-feature .feature-copy h2 {
    font-size: clamp(38px, 5.6vw, 56px);
  }
}
@media (max-width: 699px) {
  .home-feature {
    display: grid;
    grid-template-columns: 54vw minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding-inline: 0 var(--gutter);
  }
  .home-feature .feature-art {
    --art-w: 62vw;
    order: 0;
    margin-left: -2vw;
  }
  .home-feature .feature-copy {
    order: 1;
    width: auto;
    margin: 0;
    display: block;
  }
  .home-feature .feature-copy h2 {
    margin-bottom: 14px;
    font-size: clamp(26px, 7.4vw, 34px);
  }
  .home-feature .feature-copy .button {
    min-height: 44px;
    padding: 0 14px;
    font-size: 11px;
  }
  .home-feature .feature-notes,
  .home-feature .feature-subtitle {
    display: none;
  }
  .hero-actions {
    margin-top: 24px;
  }
}
@media (max-width: 699px) {
  .home-feature .feature-copy .button {
    padding: 0 12px;
    letter-spacing: 0.08em;
    white-space: normal;
    text-align: left;
  }
  .recent-halo {
    right: calc(var(--d) * -0.08);
  }
  .recent-disc {
    right: calc(var(--d) * 0.12);
  }
}

/* ---------- Show notes: one structure for every episode (built by notes_html) ----------
   Intro in the reading measure; small gold section labels on a hairline; each reflection question
   has a gold numeral in the margin; the reference list is quieter. */
.show-notes {
  max-width: 44rem;
  margin-inline: auto;
}
.show-notes h2 {
  margin-bottom: 36px;
}
.show-notes > p:first-of-type {
  font-size: var(--lead);
  line-height: 1.5;
}
.show-notes p,
.show-notes li {
  font-size: var(--body);
  line-height: 1.62;
}
.show-notes p + p,
.show-notes ul {
  margin-top: 18px;
}
.show-notes ul {
  padding-left: 1.1em;
}
.show-notes li + li {
  margin-top: 10px;
}
.show-notes .notes-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 64px 0 24px;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.show-notes .notes-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.show-notes .notes-refs {
  padding-left: 0;
  list-style: none;
}
.show-notes .notes-refs li {
  font-size: 17px;
  color: var(--muted);
  padding-left: 1.4em;
  text-indent: -1.4em;
}
.show-notes .notes-q {
  position: relative;
  margin: 40px 0 10px;
  padding-left: 56px;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
}
.show-notes .notes-num {
  position: absolute;
  left: 0;
  top: -0.12em;
  font-family: var(--display);
  font-size: 1.6em;
  line-height: 1;
  color: var(--gold);
}
.show-notes .notes-a {
  margin-top: 0;
  padding-left: 56px;
  color: var(--muted);
}
@media (max-width: 699px) {
  .show-notes .notes-q,
  .show-notes .notes-a {
    padding-left: 40px;
  }
}

/* ---------- Pass 20 ----------
   The ring behind the 07 scales with the numeral and stays inside its half of the band. */
.home-feature .feature-ring {
  left: -18%;
  top: -34%;
  width: 92%;
}
@media (max-width: 1023px) {
  .home-feature .feature-ring {
    left: -12%;
    top: -26%;
    width: 78%;
  }
}
@media (max-width: 699px) {
  .home-feature .feature-ring {
    left: -8%;
    top: -18%;
    width: 70%;
  }
}

/* Recent episodes on tablet and phone: no dividing rules; the gold disc and ring sit centred on the
   heading's line, just past the end of the words. */
@media (max-width: 1023px) {
  .recent.recent-layout {
    border-block: 0;
  }
  .recent-heading::after,
  .recent-layout .home-stack::before,
  .recent-subscribe {
    border-top: 0;
  }
  .recent-heading::after,
  .recent-layout .home-stack::before {
    content: none;
  }
  .recent-heading {
    --d: clamp(60px, 11vw, 96px);
    display: grid;
    grid-template-columns: auto var(--d);
    justify-content: start;
    align-items: center;
    column-gap: calc(var(--d) * 0.45);
    padding-bottom: 20px;
  }
  .recent-heading h2 {
    grid-area: 1 / 1;
    margin-bottom: 0;
  }
  .recent-heading .text-link {
    grid-area: 2 / 1 / 3 / 3;
    margin-top: 10px;
  }
  .recent-disc,
  .recent-halo {
    position: relative;
    grid-area: 1 / 2;
    right: auto;
    bottom: auto;
    justify-self: center;
  }
  .recent-disc {
    width: var(--d);
  }
  /* the ring is 1.5x the disc, nudged up and right of it */
  .recent-halo {
    width: calc(var(--d) * 1.5);
    translate: calc(var(--d) * 0.12) calc(var(--d) * -0.12);
  }
}

/* Pass 21: no rule above Recent episodes at any width; tighter vertical rhythm through the latest
   episode band and the start of Recent episodes. */
.recent.recent-layout {
  border-top: 0;
  padding-top: clamp(16px, 2.5vw, 40px);
}
.home-feature {
  --feature-space: clamp(28px, 3.5vw, 56px);
}

/* ---------- Pass 22: the footer mirrored ----------
   The garland is flipped and runs off the LEFT edge; every shape measured from it swaps sides with
   it (same offsets, measured from the left), and the wordmark and link bar move to the right. */
.footer-art {
  right: auto;
  left: calc(var(--gw) * -0.15);
  scale: -1 1;
}
.footer-ring {
  right: auto;
  left: calc(var(--gw) * 0.301);
}
.footer-arc {
  right: auto;
  left: calc(var(--gw) * -0.131);
}
.footer-line {
  left: auto;
  right: 5.2%;
}
.footer-plane i {
  right: auto;
  left: 0;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.footer-plane b {
  right: auto;
  left: calc(var(--gw) * 0.018);
  translate: -50% 50%;
}
.footer-plane-ring {
  right: auto;
  left: calc(var(--gw) * -0.013);
  translate: -50% 50%;
}
.footer-wordmark {
  left: auto;
  right: 0;
}
.footer-bar {
  left: auto;
  right: 0;
  flex-direction: row-reverse;
}
@media (max-width: 699px) {
  .footer-wordmark {
    left: auto;
    right: var(--gutter);
  }
  .footer-bar,
  .footer-bar nav {
    justify-content: flex-end;
  }
}
@media (max-width: 699px) {
  .footer-bar {
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
  }
  .footer-bar nav {
    margin-left: auto;
  }
}

/* Pass 24: sideways-scroll fixes found by the breakpoint sweep (320–1920px). */
.archive-art-hero { overflow-x: clip; }
.archive-art-hero h1 { max-width: calc(100vw - var(--gutter) * 2); white-space: normal; }
.recent-heading { overflow-x: clip; overflow-y: visible; }
.player-bar { max-width: 100vw; box-sizing: border-box; }
.player-bar .pb-close { flex-shrink: 0; }
main, .site-footer { overflow-x: clip; }
@media (max-width: 699px) {
  .hero .descriptor { font-size: 11px; }
}

/* Pass 24: the home stack on tablet and phone. Each painting sticks centred in the space below the
   pinned heading (never taller than that space), so the next one slides up and settles on top of
   it, a few px lower each time, rather than pushing it up. Released only when the stack ends. */
@media (max-width: 1023px) {
  .recent-layout {
    --head: 150px;
  }
  .recent-layout .stack-piece {
    /* every painting fits one box (--bh tall) and sticks with that box centred, so all of them
       stop on the same line and pile up; each sits 10px lower than the one before */
    --bh: calc(100svh - var(--head) - 96px);
    --w: min(80vw, calc(var(--bh) * var(--ar)));
    --i: 0;
    top: calc(var(--head) + 24px + (var(--bh) - var(--w) / var(--ar)) / 2 + var(--i) * 10px);
    /* gaps go on the next card's top margin: a sticky item's own bottom margin would end its
       range early and peel it off the pile */
    margin-top: 0;
    margin-bottom: 0;
    translate: 0 0;
  }
  .recent-layout .stack-piece + .stack-piece { margin-top: 60svh; }
  .recent-layout .stack-piece:nth-child(2) { --i: 1; }
  .recent-layout .stack-piece:nth-child(3) { --i: 2; }
  .recent-layout .stack-piece:nth-child(4) { --i: 3; }
  /* the last painting keeps a full screen of runway, so it too settles on the pile before the
     whole stack scrolls away together */
  .recent-layout .stack-piece:last-child { margin-bottom: 0; }
  /* runway as a spacer inside the stack (sticky items are confined to the content box, and a sticky
     item's own margin shrinks its range), so the last painting
     settles on the pile and the four then leave together */
  .recent-layout .home-stack::after { content: ""; display: block; height: 40svh; }
  .recent-layout .home-stack { margin-bottom: 0; }
  /* Subscribe and listen follows the stack; it only arrives once the paintings have left */
  .recent-subscribe { position: relative; z-index: 3; background: var(--paper); }
}
@media (max-width: 699px) {
  .recent-layout {
    --head: 132px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .recent-layout .stack-piece { position: relative; top: auto; margin-bottom: 32px; }
}

/* ---------- Pass 24: phone menu ---------- */
.menu-toggle {
  display: none;
}
@media (max-width: 699px) {
  .menu-toggle {
    display: inline-grid;
    align-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0 10px;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: translate 250ms var(--ease), rotate 250ms var(--ease), opacity 150ms ease;
  }
  .header[data-menu-open] .menu-toggle span:nth-child(1) { translate: 0 7.5px; rotate: 45deg; }
  .header[data-menu-open] .menu-toggle span:nth-child(2) { opacity: 0; }
  .header[data-menu-open] .menu-toggle span:nth-child(3) { translate: 0 -7.5px; rotate: -45deg; }
  .header nav {
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity 200ms ease, translate 250ms var(--ease), visibility 0s linear 250ms;
  }
  .header[data-menu-open] nav {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition: opacity 200ms ease, translate 250ms var(--ease);
  }
  .header nav a {
    min-height: 52px;
    font-size: 15px;
    letter-spacing: 0.2em;
    border-top: 1px solid var(--line);
  }
  .header nav a:first-child {
    border-top: 0;
  }
}
@media (max-width: 699px) {
  .header { clip-path: none; box-shadow: none; }
  .header::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--paper); }
  .header { position: sticky; }
}
@media (max-width: 699px) {
  .header nav .nav-subscribe { display: flex; }
}

/* ---------- Pass 25: phone refinements ---------- */
@media (max-width: 699px) {
  /* Hero tighter: less air around the UTR and between title, descriptor and button; Peter
     stands higher so his hand reaches up into the U. */
  .hero {
    padding-top: calc(4vw + 8px);
    padding-bottom: 48px;
  }
  .hero-copy {
    margin-top: 2vw !important;
  }
  .hero .descriptor {
    margin-top: 6px;
  }
  .hero-actions {
    margin-top: 14px !important;
  }
  .hero-peter {
    bottom: 5vw;
  }
  /* Recent episodes: more room above; the gold disc and ring sit snug after the words */
  .recent.recent-layout {
    padding-top: 44px;
  }
  .recent-heading {
    --d: 52px;
    column-gap: 14px;
  }
  .recent-halo {
    translate: calc(var(--d) * 0.1) calc(var(--d) * -0.1);
  }
  .recent-heading .text-link {
    margin-top: 4px;
  }
  /* the four details follow Subscribe and listen closely */
  .recent-layout {
    padding-bottom: 32px;
  }
  .sacred-strip {
    margin-top: 24px;
  }
}
@media (max-width: 1023px) {
  .recent-layout { padding-bottom: 32px; }
  .sacred-strip { margin-top: 24px; }
}

/* Recent artwork varies in width: size its caption against the card, not the viewport. */
.home-stack .paper { container-type: inline-size; }
.home-stack .stack-label {
  gap: clamp(8px, 3cqw, 18px);
  padding: 12% 5% 5%;
  box-sizing: border-box;
  max-width: 100%;
}
.home-stack .stack-num { font-size: clamp(30px, 16cqw, 88px); }
.home-stack .stack-text { flex: 1; min-width: 0; gap: 5px; }
.home-stack .stack-title {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: clamp(14px, 4.5cqw, 27px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  white-space: normal;
}
.home-stack .stack-meta { font-size: clamp(11px, 3.3cqw, 16px); }
/* Featured playback and the third, floral homepage direction. */
.feature-eyebrow{font:11px/1.4 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin:0 0 14px}
.home-feature .feature-art{position:relative}
.number-play{position:absolute;bottom:6%;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:9px;padding:12px 18px;min-height:44px;white-space:nowrap;border-radius:30px;background:var(--navy);color:#fffaf0;font:12px/1.3 var(--sans);box-shadow:0 2px 12px #0002}
.feature-art:hover .number-play{background:#856632}
.option-three .v3-hero{position:relative;isolation:isolate;min-height:790px;height:min(960px,76vw);overflow:hidden;background:var(--paper)}
.v3-garland{position:absolute;z-index:2;width:74%;height:auto;right:-5%;top:-7%;pointer-events:none}
.v3-halo{position:absolute;width:70vw;aspect-ratio:1;border:1px solid var(--gold);border-radius:50%;right:-12%;top:-23%;opacity:.65}
.v3-intro{position:absolute;z-index:3;left:5%;bottom:7%;width:90%}
.v3-intro h1{width:86%;margin:0 0 24px}
.v3-intro h1 img{width:100%;height:auto}
.v3-intro p{font-size:18px;margin:8px 0}
.v3-intro .v3-tagline{font-style:italic;font-size:24px}
.v3-intro .button{margin-top:22px;gap:10px}
.option-three .recent-layout{margin-top:0;padding-top:64px;border-top:1px solid var(--line)}
.option-three .living{margin-top:90px}
.v3-footer{padding:60px var(--gutter);display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid var(--line)}
.v3-footer p{font:32px/1.1 var(--display)}
.v3-footer nav{display:flex;gap:28px}
@media(max-width:699px){
.feature-eyebrow{font-size:9px;margin-bottom:8px}.number-play{bottom:1%;padding:10px 12px;font-size:10px;gap:5px}
.option-three .v3-hero{height:auto;min-height:0;padding:86vw 0 44px}.v3-garland{width:112%;max-width:none;top:-4vw;right:-17%}.v3-halo{width:105vw;top:-22vw;right:-23%}
.v3-intro{position:relative;left:auto;bottom:auto;width:auto;margin:0 6%;text-align:center}.v3-intro h1{width:100%;margin-bottom:22px}.v3-intro p{font-size:15px}.v3-intro .v3-tagline{font-size:21px}.v3-intro .button{margin-top:18px}.option-three .recent-layout{padding-top:34px}.v3-footer{flex-direction:column;padding-block:40px}}
@media(min-width:700px){.option-three .v3-hero{min-height:700px;height:min(850px,66vw)}.v3-garland{width:65%;top:0}.v3-intro{z-index:1}.v3-intro .button{position:relative;z-index:4}}
.option-three .recent-layout .stack-piece:nth-child(5){--i:4}
@media(max-width:420px){.design-selector>span{display:none}}
/* V3: the garland hangs from the left, with the opening copy nested below its branches. */
.option-three .v3-garland{left:-5%;right:auto;transform:scaleX(-1);width:70%;top:-5%}
.option-three .v3-halo{left:-12%;right:auto}
.option-three .v3-intro{left:8%;width:84%;bottom:6%;text-align:right}
.option-three .v3-intro h1{width:100%;margin-bottom:12px}
.option-three .v3-intro p{margin:5px 0}
.option-three .v3-intro .button{margin-top:14px}
.option-three .v3-hero{min-height:650px;height:min(810px,63vw)}
.option-three .living{margin-top:70px}
@media(max-width:699px){
.option-three .v3-hero{min-height:0;height:auto;padding:76vw 0 30px}
.option-three .v3-garland{width:110%;left:-18%;top:-7vw}
.option-three .v3-intro{left:auto;bottom:auto;width:auto;margin:0 6%;text-align:center}
.option-three .v3-halo{left:-25%;right:auto}
.option-three .living{margin-top:48px}
}
.home-feature .feature-play{display:inline-grid;place-items:center;width:48px;height:48px;min-width:48px;padding:0;border:1px solid var(--gold);border-radius:50%;background:var(--navy);color:var(--paper);cursor:pointer}
.home-feature .feature-notes{display:inline-flex!important;align-items:center;min-height:44px}
.option-three main{overflow:visible}
.option-three .header{z-index:5;background:transparent}
.option-three .v3-hero{overflow:visible;isolation:auto;min-height:580px;height:47vw;max-height:760px}
.option-three .v3-garland{width:65%;left:-8%;top:-115px;z-index:6}
.option-three .v3-intro{left:57%;width:38%;bottom:auto;top:28%;text-align:left;z-index:7}
.option-three .v3-intro h1{margin-bottom:24px}
.option-three .v3-intro p{font-size:17px}
.option-three .v3-halo{top:-160px;width:60vw}
.option-three .v3-v2{position:relative}
@media(max-width:699px){
.option-three .v3-hero{height:auto;min-height:0;max-height:none;padding:68vw 0 36px}
.option-three .v3-garland{width:94%;left:-23%;top:-60px}
.option-three .v3-intro{position:relative;left:auto;top:auto;width:auto;margin:0 7%;text-align:center}
.option-three .v3-intro h1{width:88%;margin:0 auto 18px}
.option-three .v3-intro p{font-size:15px}
.option-three .header .brand{position:relative;z-index:8}
}
/* Let the last recent painting settle before the OCIA section enters. */
.recent-layout .recent-subscribe{border-top:0}
.recent-layout .home-stack::after{content:"";display:block;height:65svh}
.recent-layout{border-bottom:0}
.recent-layout + .living{margin-top:calc(48px + var(--bh) * .15)}
@media(prefers-reduced-motion:reduce){.recent-layout .home-stack::after{height:0}}
.recent-heading::after{content:none}
/* Keep the OCIA copy and figure in separate rows on phones, including narrow devices. */
@media(max-width:699px){
 .living-band{display:flex;flex-direction:column;align-items:stretch;padding-top:40px}
 .living-copy{flex:none;padding-bottom:0}
 .living-copy p{overflow-wrap:break-word}
 .living-copy .button{max-width:100%;white-space:normal;height:auto;padding:14px 16px;line-height:1.4}
 .living-figure{flex:none;position:relative;width:64%;height:auto;aspect-ratio:802/1017;margin:24px 0 -4.79vw auto;bottom:auto;right:auto;align-self:flex-end}
 .living-figure img{display:block;object-fit:contain}
}
/* Only foliage tips cross the desktop header; the wordmark has its own clear column. */
@media(min-width:700px){
 .option-three .v3-garland{top:-20px;width:61%;left:-8%}
 .option-three .v3-hero{height:52vw;min-height:620px;max-height:850px}
 .option-three .v3-intro{left:52%;width:44%;top:29%}
 .option-three .v3-halo{top:-45px}
}
@media(max-width:699px){
 .option-three .v3-hero{padding:94vw 0 40px;overflow:hidden}
 .option-three .v3-garland{top:12px;left:-15%;width:112%}
 .option-three .v3-intro{margin:0 5%}
 .option-three .v3-intro h1{width:100%;margin-bottom:20px}
 .option-three .v3-halo{top:10px}
}
/* Floral hero flows into the blue band, while all episode controls remain unobscured. */
.option-three .v3-halo{top:12px}
@media(min-width:700px){
 .option-three .v3-hero{height:49vw;min-height:590px;max-height:none}
 .option-three .v3-intro{left:50%;width:47%;top:29%}
 .option-three .v3-intro p{font-size:clamp(17px,1.45vw,24px)}
 .option-three .v3-garland{width:61%;top:-20px}
 .option-three .v3-v2:has(.latest-section){z-index:7}
 .option-three .latest-section{position:relative;padding-top:90px}
}
@media(max-width:699px){
 .option-three .v3-hero{padding-bottom:38px}
 .option-three .v3-intro p{font-size:17px}
 .option-three .v3-garland{z-index:2}
 .option-three .v3-v2:has(.latest-section){z-index:7}
}
/* V1: a quiet text-only OCIA invitation. */
.living--text{padding-bottom:0}
.living--text .living-band{min-height:0;padding:0}
.living--text .living-copy{padding-block:clamp(48px,7vw,100px);text-align:center}
.living--text .living-copy>*{max-width:680px;margin-inline:auto}
.living--text .living-copy p{max-width:42ch}
.living--text .christ-title::after{margin-inline:auto}
/* Reserve a real lower margin for the title above the arch-shaped section edge. */
@media(max-width:699px){
 .hero{padding-bottom:120px}
 .hero-copy{margin-top:24px!important;padding-inline:18px}
 .hero h1{font-size:clamp(18px,5.4vw,34px);letter-spacing:.18em;margin-right:-.18em;line-height:1.25}
 .hero .descriptor{max-width:28ch;margin:12px auto 0;font-size:12px;line-height:1.6;letter-spacing:.1em}
 .hero .short-rule{margin-top:18px}
 .hero-peter{bottom:0}
 .hero-plane{bottom:0;max-height:88px}
 .living--text .living-copy{padding-block:48px}
}
/* A controlled floral overlap into the latest episode on tablet and desktop. */
@media(min-width:700px){
 .option-three .v3-hero{height:47vw;min-height:0}
 .option-three .v3-garland{width:61%;top:0}
 .option-three .v3-v2:has(.latest-section){z-index:auto}
 .option-three .latest-section .latest-layout{position:relative;z-index:8}
 .option-three .latest-section{padding-top:clamp(72px,6vw,120px)}
}

/* Pass 26: Peter smaller on tablet and desktop, still standing on the hero's base line with his
   hand reaching into the U. */
@media (min-width: 700px) {
  .hero { --pw: min(19cqi, 330px); }
  .hero-peter { bottom: 0; }
}

/* Pass 27: phone hero without the Listen button. The UTR and title sit a little lower, St Peter is
   larger (his head level with the title), and the empty space above the arch is cut back. */
@media (max-width: 699px) {
  .hero { --pw: 40vw; padding-top: calc(8vw + 14px); padding-bottom: 64px; }
  .hero-copy { margin-top: 36px !important; }
  .hero-peter { left: -12vw; bottom: 0; }
}
@media (max-width: 699px) { .feature-eyebrow { font-size: 11px !important; } }

/* Pass 28: a bigger garland; the lettering sits lower and to the right so only the trailing sprigs
   and the cherub's foot reach onto it. Every shape is measured from --gw, so all scale together. */
.site-footer { --gw: min(106vw, 1760px); }
.footer-stage { height: calc(var(--gy) + var(--gw) * 0.87); }
.footer-wordmark { top: calc(var(--gy) + var(--gw) * 0.632); width: min(calc(var(--gw) * 0.66), 100%); }
.footer-bar { top: calc(var(--gy) + var(--gw) * 0.78 - 22px); }
@media (max-width: 699px) {
  .site-footer { --gw: 108vw; }
  .footer-stage { padding-top: calc(var(--gy) + var(--gw) * 0.8); }
  .footer-wordmark { top: calc(var(--gy) + var(--gw) * 0.6); width: calc(100% - var(--gutter) * 2); }
}

/* Pass 28: edge to edge on iPhone. The page is drawn under the Dynamic Island and the Safari
   toolbar (viewport-fit=cover); the sticky header clears the island, and page content keeps its
   gutters outside the rounded corners. The paper runs to every edge, so no blank band shows. */
html { background: var(--paper); }
.header {
  padding-top: env(safe-area-inset-top);
  height: calc(72px + env(safe-area-inset-top));
}
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.site-footer { padding-bottom: env(safe-area-inset-bottom); }

/* Pass 29: iOS edge to edge. No theme-color (it makes Safari paint the status and toolbar areas
   solid); the sticky header is frosted glass, so the page shows through under the Dynamic Island. */
.header {
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
@media (max-width: 699px) {
  .header::before { background: color-mix(in srgb, var(--paper) 78%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
  .header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Pass 29: Recent episodes on tablet and phone.
   The title and a compact Subscribe row are one sticky block; the paintings pile up below it, each
   a little off-centre and tilted, and the whole group scrolls away together when the pile ends. */
@media (max-width: 1023px) {
  .recent-layout { --head: 205px; }
  .recent-sidebar {
    display: block;
    position: sticky;
    top: calc(env(safe-area-inset-top) + 6px);
    z-index: 10;
    order: 0;
    padding: 12px 0 10px;
    background: var(--paper);
  }
  .recent-heading { position: static; top: auto; padding: 0 0 6px; background: none; }
  .recent-subscribe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 18px;
    margin: 6px 0 0 !important;
    padding: 10px 0 0 !important;
    border-top: 1px solid var(--line) !important;
  }
  .recent-subscribe h3 { margin: 0; font-size: 15px; font-weight: 500; }
  .recent-subscribe .subscribe-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0 16px; margin: 0; }
  .recent-subscribe .subscribe-list a { min-height: 36px; font-size: 12px; letter-spacing: 0.12em; }
  /* a little irregular: no tilt, each painting a slightly different width, nudged a few px */
  .recent-layout .stack-piece { rotate: none; translate: var(--nudge, 0) 0; --w: min(calc(80vw * var(--k, 1)), calc(var(--bh) * var(--ar))); }
  .recent-layout .stack-piece:nth-child(1) { --nudge: -4vw; --k: 0.9; }
  .recent-layout .stack-piece:nth-child(2) { --nudge: 4.5vw; --k: 1; }
  .recent-layout .stack-piece:nth-child(3) { --nudge: -3vw; --k: 0.84; }
  .recent-layout .stack-piece:nth-child(4) { --nudge: 3vw; --k: 0.95; }
}
@media (max-width: 699px) {
  .recent-layout { --head: 215px; }
}
@media (max-width: 1023px) {
  /* The title block's sticky range ends where the pile's does: its bottom margin reaches down to
     the pile's lower edge (100svh - 72px), cancelled by the stack's top margin, so the title and
     the paintings leave together. */
  .recent-sidebar { margin-bottom: calc(100svh - 72px - var(--head) - 150px); }
  .recent-layout .home-stack { margin-top: calc(-1 * (100svh - 72px - var(--head) - 150px)); padding-top: 48px !important; }
  .recent-layout { padding-bottom: 0; }
}



/* Pass 31: Recent episodes on tablet and phone.
   "Recent episodes / Explore all episodes" pins at the top on its own. Each painting slides up and
   settles on the pile; every painting is the same width (no shrunken landscape cards) and they all
   share one bottom line. When the last one lands, Subscribe and listen rises from below and meets
   the pile's bottom edge; the heading, the pile and Subscribe then scroll away together.
   app.js measures the heading and the Subscribe block into --head-h and --sub-h. */
@media (max-width: 1023px) {
  .recent-layout { --head-h: 132px; --sub-h: 92px; }
  .recent-sidebar { display: contents; }
  .recent-heading { order: 0; }
  .recent-layout .home-stack { order: 1; }
  .recent-subscribe {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 18px;
    margin: 32px 0 0 !important;
    padding: 14px 0 18px !important;
    border-top: 1px solid var(--line) !important;
    background: var(--paper);
  }
  .recent-layout .stack-piece { --nudge: 0; --k: 1; }
}
@media (max-width: 1023px) {
  html.motion .recent-layout {
    --top: calc(env(safe-area-inset-top) + 6px);
    --gap: 14px;
    /* the pile's shared bottom line leaves exactly enough room for Subscribe below it */
    --pile-bottom: calc(100svh - var(--sub-h) - env(safe-area-inset-bottom) - 8px);
    --pile-room: calc(var(--pile-bottom) - var(--top) - var(--head-h) - var(--gap));
    --reach: calc(var(--pile-bottom) - var(--top) - var(--head-h));
    position: relative;
    padding-bottom: var(--sub-h) !important;
  }
  /* The heading's margin box reaches down to the pile's bottom line, so it is released at the
     same scroll position as the paintings; the stack's negative margin cancels it in layout. */
  html.motion .recent-heading {
    position: sticky;
    top: var(--top);
    z-index: 3;
    margin-bottom: var(--reach);
    background: var(--paper);
  }
  html.motion .recent-layout .home-stack {
    margin: calc(var(--gap) - var(--reach)) 0 0 !important;
    padding: 0 !important;
  }
  html.motion .recent-layout .stack-piece {
    --w: min(calc(100vw - 2 * var(--gutter) - 6vw), calc(var(--pile-room) * var(--ar)));
    top: calc(var(--pile-bottom) - var(--w) / var(--ar));
    margin: 0 auto;
    rotate: none;
    translate: var(--nudge) 0;
  }
  html.motion .recent-layout .stack-piece + .stack-piece { margin-top: 55svh; }
  html.motion .recent-layout .stack-piece:nth-child(4n + 1) { --nudge: -2.5vw; }
  html.motion .recent-layout .stack-piece:nth-child(4n + 2) { --nudge: 2.5vw; }
  html.motion .recent-layout .stack-piece:nth-child(4n + 3) { --nudge: -1.5vw; }
  html.motion .recent-layout .stack-piece:nth-child(4n + 4) { --nudge: 1.5vw; }
  /* After the last painting lands, this runway is the distance Subscribe travels up into place. */
  html.motion .recent-layout .home-stack::after {
    content: "";
    display: block;
    height: calc(100svh - var(--pile-bottom) + 4svh);
  }
  html.motion .recent-subscribe {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    margin: 0 !important;
  }
}

/* Pass 31: iOS Safari 26+ colours its status-bar and toolbar areas from fixed/sticky elements at
   the screen edges, even ones hidden with opacity or visibility. The closed player is removed
   entirely so it can never paint the toolbar solid. */
.player-bar[data-state="closed"] {
  display: none;
  transition-behavior: allow-discrete;
}
