/* ==========================================================================
   Series pages (/sundays4lovers, /passportvibes, /pianoparty, /primetime).
   Loaded only on those pages. Everything that moves animates transform or
   opacity only, so it runs on the compositor.
   ========================================================================== */

.media-page {
  --s4l-pink: #ff9ec4;
  --s4l-peach: #ffc7a3;
  --s4l-mint: #96e8d2;
  --s4l-grad: linear-gradient(100deg, var(--s4l-pink) 0%, var(--s4l-peach) 48%, var(--s4l-mint) 100%);
  --s4l-ease: cubic-bezier(.16, 1, .3, 1);
  /* The on-site checkout (checkout.css) takes the series' colours. */
  --ck-accent: var(--s4l-grad);
  --ck-on-accent: var(--ink);
  --ck-accent-solid: var(--s4l-pink);
  background: var(--ink);
}

.media-page main { background: var(--ink); color: var(--paper); }

.s4l-shell { padding-inline: var(--pad); }

.s4l-eyebrow { margin: 0 0 18px; font-size: 13px; opacity: .6; }

.btn-grad { background: var(--s4l-grad); color: var(--ink); }
.btn-grad:hover { filter: brightness(1.05) saturate(1.1); }
.media-page .btn-ghost { color: var(--paper); }
.media-page .btn-ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.s4l-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The whole page is dark, so the header stays in its dark glass treatment
   after the hero scrolls away instead of switching to paper. */
.media-page .site-header.scrolled {
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border-bottom-color: rgba(244, 239, 227, .1);
  color: var(--paper);
}
.media-page .site-header.scrolled .brand .mark-dark { display: none; }
.media-page .site-header.scrolled .brand .mark-light { display: block; }

/* Its own header: the series logo, its sections, and the way back to Dott. */
.s4l-header nav a::after { background: linear-gradient(100deg, #ff9ec4, #96e8d2); }
.s4l-header .btn-grad { color: var(--ink); }

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

.s4l-hero {
  position: relative;
  min-height: 100svh;
  margin-top: calc(var(--header) * -1);
  /* Everything, scroll cue included, fits one screen at any height: the
     logo and spacing are sized from the viewport height below. */
  height: 100svh;
  min-height: 520px;
  padding: calc(var(--header) + 2svh) var(--pad) 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

/* The wall: columns of photos drifting past each other, tilted a touch. */
.wall {
  position: absolute;
  inset: -18% -8%;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  transform: rotate(-7deg);
  opacity: 0;
  transition: opacity 1.8s var(--s4l-ease);
}

.s4l-hero.is-ready .wall { opacity: 1; }

.wall-col {
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation: wall-up var(--d, 80s) linear infinite;
  animation-delay: calc(var(--d, 80s) * var(--o, 0) / 100);
}

.wall-col:nth-child(even) { animation-name: wall-down; }

/* Spacing comes from margin, not gap, so the doubled set is exactly twice
   the height and -50% loops with no seam. */
.wall-col img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
  border-radius: 16px;
  object-fit: cover;
  background: #241c1e;
}

.wall.is-paused .wall-col { animation-play-state: paused; }

@keyframes wall-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes wall-down { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }

/* Darkens the wall toward the middle so the title always reads. */
.s4l-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 62% 58% at 50% 50%, rgba(20, 16, 16, .86) 0%, rgba(20, 16, 16, .66) 50%, rgba(20, 16, 16, .42) 100%),
    linear-gradient(180deg, rgba(20, 16, 16, .7) 0%, rgba(20, 16, 16, 0) 22%, rgba(20, 16, 16, 0) 72%, var(--ink) 100%);
}

.s4l-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.3svh, 24px);
  max-width: 980px;
}

.s4l-kicker { margin: 0; font-size: 14px; opacity: .75; }

/* The series logo is the headline. */
.s4l-brandmark {
  /* Width from whichever runs out first: screen width, a max size, or the
     height left over after the rest of the hero (the logo is 1.88:1). */
  width: clamp(200px, min(88vw, 760px, calc((100svh - 470px) * 1.88)), 760px);
  margin: 0;
  line-height: 0;
  /* No CSS filter here or in its animation. Safari draws a filtered element
     as a bitmap at the size it had when the animation began and doesn't
     redraw it sharp afterwards, which left the logo blurred on iPhones. The
     hero's darkened centre (::after) already gives it contrast. */
}

.s4l-brandmark img { width: 100%; height: auto; }

.grad {
  background: var(--s4l-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .06em; /* keeps descenders inside the clipped box */
}

.s4l-lede {
  margin: 0;
  max-width: 34em;
  font-size: clamp(15px, min(1.6vw, 2.3svh), 20px);
  line-height: 1.45;
  opacity: .82;
}

.s4l-stats {
  display: flex;
  justify-content: center;
  gap: clamp(26px, 5vw, 60px);
  margin: 4px 0 0;
}

.s4l-stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
.s4l-stats dt { font-size: 12px; opacity: .58; }
.s4l-stats dd {
  margin: 0;
  font-size: clamp(24px, min(3.4vw, 4.6svh), 42px);
  font-weight: 500;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.s4l-hero .s4l-actions { justify-content: center; margin-top: 2px; }

/* Everything rises in one after another on load (held until the splash
   lifts, when there is one). The logo settles in from a touch larger. */
.s4l-hero-copy > * {
  animation: s4l-rise 1.1s var(--s4l-ease) both;
}
.s4l-kicker { animation-delay: .1s; }
/* "backwards", not "both": once it lands nothing is left applied, so the
   logo is drawn as plain vector at full resolution. */
.s4l-hero-copy > .s4l-brandmark { animation: s4l-settle 1.3s var(--s4l-ease) .16s backwards; }
.s4l-lede { animation-delay: .42s; }
.s4l-stats { animation-delay: .52s; }
.s4l-hero .s4l-actions { animation-delay: .62s; }

@keyframes s4l-settle {
  from { opacity: 0; transform: scale(1.06); }
}

@keyframes s4l-rise {
  from { opacity: 0; transform: translate3d(0, 34px, 0); }
}

.s4l-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(244, 239, 227, .45);
  border-radius: 999px;
}

.s4l-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--paper);
  animation: s4l-cue 2s var(--s4l-ease) infinite;
}

@keyframes s4l-cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(14px); }
}

/* --- next Sunday ------------------------------------------------------- */

.s4l-next { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 6vw, 90px); }

.s4l-empty {
  position: relative;
  padding: clamp(36px, 6vw, 80px);
  border-radius: 28px;
  background: rgba(244, 239, 227, .04);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  isolation: isolate;
}

/* A thin gradient hairline around the card. */
.s4l-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: var(--s4l-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .6;
}

.s4l-empty h2 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: .95;
  letter-spacing: -.04em;
}

.s4l-empty p { margin: 0; max-width: 40ch; font-size: 17px; line-height: 1.5; opacity: .75; }
.s4l-empty .s4l-actions { justify-content: center; margin-top: 8px; }

/* An upcoming date, as a ticket. */
.s4l-ticket {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 28px;
  background: rgba(244, 239, 227, .05);
  border: 1px solid rgba(244, 239, 227, .12);
}

.s4l-ticket-art { min-width: 0; border-radius: 18px; overflow: hidden; background: #241c1e; }
.s4l-ticket-art img { display: block; width: 100%; height: auto; }

.s4l-ticket-body { display: flex; flex-direction: column; gap: 18px; padding-right: clamp(0px, 2vw, 24px); }

.s4l-when {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.s4l-when strong {
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 500;
  line-height: .85;
  letter-spacing: -.05em;
}

.s4l-when span { font-size: clamp(18px, 2vw, 26px); opacity: .8; }
.s4l-ticket h3 { margin: 0; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.025em; }
.s4l-ticket p { margin: 0; opacity: .72; }

.s4l-more {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.s4l-more a {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(244, 239, 227, .04);
  transition: background-color .3s;
}

.s4l-more a:hover { background: rgba(244, 239, 227, .09); }
.s4l-more strong { font-size: 22px; letter-spacing: -.03em; }

/* --- section heads ----------------------------------------------------- */

.s4l-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.s4l-head h2 {
  margin: 0;
  font-size: clamp(42px, 6.6vw, 96px);
  line-height: .9;
  letter-spacing: -.045em;
}

.s4l-head h2 em {
  font-style: normal;
  background: var(--s4l-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.s4l-head p { margin: 16px 0 0; max-width: 46ch; font-size: 17px; opacity: .65; }

.rail-arrows { display: flex; gap: 8px; }

.rail-arrows button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 227, .25);
  background: transparent;
  color: var(--paper);
  font-size: 18px;
  cursor: pointer;
  transition: background-color .25s, border-color .25s, opacity .25s;
}

.rail-arrows button:hover { background: var(--paper); color: var(--ink); }
.rail-arrows button:disabled { opacity: .3; pointer-events: none; }

/* --- reel -------------------------------------------------------------- */

.s4l-reel { padding: clamp(40px, 6vw, 90px) 0; }

.reel-rail {
  display: flex;
  gap: 14px;
  padding: 0 var(--pad) 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.reel-rail::-webkit-scrollbar { display: none; }

.reel-card {
  position: relative;
  flex: 0 0 auto;
  height: clamp(380px, 56vh, 560px);
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #241c1e;
  color: var(--paper);
  cursor: pointer;
  scroll-snap-align: start;
  isolation: isolate;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  /* Its own layer, so iOS keeps the rounded clip on the video while the
     rail scrolls instead of dropping and repainting it. */
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.reel-card.is-wide { aspect-ratio: 16 / 9.4; }

.reel-card video,
.reel-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* The still sits underneath; the video fades in over it once it plays. */
.reel-card video { opacity: 0; transition: opacity .5s ease; }
.reel-card.is-live video { opacity: 1; }

/* Zoom on hover only where there is a real pointer: on phones a tap leaves
   :hover stuck on the card. */
@media (hover: hover) {
  .reel-card video, .reel-poster { transition: opacity .5s ease, transform 1.2s var(--s4l-ease); }
  .reel-card:hover video, .reel-card:hover .reel-poster { transform: scale(1.04); }
}

.reel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, 0) 42%);
  pointer-events: none;
}

.reel-meta {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reel-meta strong { font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.reel-meta span { font-size: 12px; opacity: .72; }

.reel-play {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(20, 16, 16, .5);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 227, .18);
  transition: transform .4s var(--s4l-ease), background-color .3s;
}

.reel-play::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 13px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--paper);
}

@media (hover: hover) {
  .reel-card:hover .reel-play { transform: scale(1.1); background: rgba(20, 16, 16, .66); }
}

/* --- every Sunday (setlist) ------------------------------------------- */

.s4l-setlist { padding: clamp(40px, 6vw, 90px) 0; }

.setlist { display: grid; gap: clamp(28px, 4vw, 48px); }

.setlist-year {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 60px);
  align-items: start;
}

.setlist-year h3 {
  position: sticky;
  top: calc(var(--header) + 20px);
  margin: 0;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: .85;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(244, 239, 227, .5);
}

.setlist-year ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(244, 239, 227, .14); }

.setlist-year li > * {
  position: relative;
  display: grid;
  grid-template-columns: 34px 64px minmax(0, 1fr) auto;
  gap: clamp(10px, 2vw, 24px);
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244, 239, 227, .14);
  isolation: isolate;
}

.setlist-year li > a::before {
  content: "";
  position: absolute;
  inset: 0 -14px;
  z-index: -1;
  border-radius: 14px;
  background: var(--s4l-grad);
  opacity: 0;
  transform: scaleX(.98);
  transition: opacity .35s, transform .5s var(--s4l-ease);
}

.setlist-year li > a:hover::before { opacity: .12; transform: none; }

.sl-n { font-size: 12px; opacity: .4; font-variant-numeric: tabular-nums; }
.sl-date { display: flex; align-items: baseline; gap: 6px; }
.sl-date strong { font-size: 24px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sl-date span { font-size: 12px; opacity: .6; }
.sl-venue { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -.02em; transition: transform .5s var(--s4l-ease); }
.sl-venue em { font-style: normal; font-size: .62em; opacity: .6; margin-left: 6px; }
li > a:hover .sl-venue { transform: translateX(6px); }
.sl-note { font-size: 13px; opacity: .6; text-align: right; }
.sl-note b {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--s4l-grad);
  color: var(--ink);
  font-weight: 600;
  opacity: 1;
}

/* --- archive ----------------------------------------------------------- */

.s4l-archive { padding: clamp(40px, 6vw, 90px) 0 clamp(60px, 8vw, 120px); }

.arc-year {
  margin-bottom: clamp(30px, 4vw, 56px);
  /* Off-screen years skip layout and paint until they come near. */
  content-visibility: auto;
  contain-intrinsic-size: auto 2400px;
}

.arc-head {
  position: sticky;
  top: var(--header);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 calc(var(--pad) * -1) 14px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.arc-head h3 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 500; letter-spacing: -.04em; }
.arc-head p { margin: 0; font-size: 13px; opacity: .55; }

.arc-grid { columns: 4 260px; column-gap: 12px; }

.arc-shot {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--c, #241c1e);
  cursor: zoom-in;
  break-inside: avoid;
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.98);
  transition: opacity .9s var(--s4l-ease), transform 1.1s var(--s4l-ease);
  -webkit-tap-highlight-color: transparent;
}

.arc-shot.in { opacity: 1; transform: none; }

.arc-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease, transform 1.2s var(--s4l-ease), filter .5s;
}

.arc-shot img.is-loaded { opacity: 1; }
.arc-shot:hover img { transform: scale(1.035); }
.arc-shot:focus-visible { outline-offset: 3px; }

/* Without JS the reveal never runs, so show everything. */
html:not(.js) .arc-shot,
html:not(.js) .arc-shot img { opacity: 1; transform: none; }

/* --- closing band ------------------------------------------------------ */

.s4l-band {
  padding: clamp(70px, 10vw, 150px) var(--pad);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 158, 196, .16), transparent 70%),
    var(--ink);
  border-top: 1px solid rgba(244, 239, 227, .1);
  color: var(--paper);
}

.s4l-handle {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(30px, 8vw, 128px);
  font-weight: 500;
  letter-spacing: -.05em;
  /* Room below the baseline so the @, y and _ aren't clipped by the
     gradient text box. */
  line-height: 1.2;
  padding: 0 .04em .08em;
  background: var(--s4l-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
  transition: filter .3s;
}

.s4l-handle:hover { filter: brightness(1.15); }
.s4l-band-copy { margin: 0; max-width: 36ch; opacity: .7; font-size: 17px; }
.s4l-band .s4l-actions { justify-content: center; margin-top: 10px; }

/* --- lightbox and theater ---------------------------------------------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(10, 8, 8, .94);
  color: var(--paper);
  opacity: 0;
  transition: opacity .45s var(--s4l-ease);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.lb.is-open { opacity: 1; }

.lb-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--c, transparent), transparent 70%);
  opacity: .35;
  transition: background .6s;
  pointer-events: none;
}

.lb-stage {
  position: relative;
  width: min(92vw, 1100px);
  height: min(84svh, 1000px);
  display: grid;
  place-items: center;
}

.lb-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(84svh, 1000px);
  border-radius: 14px;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity;
}

.lb-stage video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(84svh, 1000px);
  border-radius: 16px;
  background: #000;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
}

.lb-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) var(--pad) 16px;
  font-size: 13px;
}

.lb-bar span { opacity: .7; font-variant-numeric: tabular-nums; }

.lb button {
  border: 0;
  background: rgba(244, 239, 227, .1);
  color: var(--paper);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .25s, transform .3s var(--s4l-ease);
}

.lb button:hover { background: rgba(244, 239, 227, .2); }
.lb button:active { transform: scale(.94); }

.lb-close { width: 44px; height: 44px; font-size: 20px; line-height: 1; }

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  font-size: 20px;
}

.lb-prev { left: max(14px, 2vw); }
.lb-next { right: max(14px, 2vw); }

@media (hover: none) {
  .lb-prev, .lb-next { display: none; } /* swipe instead */
}

/* --- plain series pages ------------------------------------------------ */

.series-page .detail-hero.series-hero {
  margin-top: calc(var(--header) * -1);
  padding-top: calc(var(--header) + clamp(32px, 5vw, 64px));
}

.series-kicker { margin: 0; font-size: 13px; opacity: .65; }

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

@media (max-width: 860px) {
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); inset: -12% -22%; gap: 12px; }
  .wall-col:nth-child(n + 4) { display: none; }
  .wall-col img { margin-bottom: 12px; border-radius: 12px; }
  .s4l-hero { padding-bottom: 70px; }
  .s4l-ticket { grid-template-columns: 1fr; }
  .s4l-ticket-art { width: 100%; }
  .s4l-ticket-body { min-width: 0; padding-right: 0; }
  .setlist-year { grid-template-columns: 1fr; gap: 6px; }
  .setlist-year h3 { position: static; font-size: 56px; }
  .rail-arrows { display: none; }
}

@media (max-width: 620px) {
  .s4l-actions .btn { flex: 1 1 100%; justify-content: center; }
  /* Hero buttons sit side by side so the hero fits one screen. */
  .s4l-hero .s4l-actions { width: 100%; flex-wrap: nowrap; }
  .s4l-hero .s4l-actions .btn { flex: 1 1 0; padding-inline: 12px; }
  .s4l-kicker { font-size: 12px; }
  .setlist-year li > * { grid-template-columns: 26px 54px minmax(0, 1fr); padding: 13px 0; }
  .sl-note { grid-column: 3; text-align: left; margin-top: -6px; }
  .sl-note:empty { display: none; }
  .sl-date strong { font-size: 20px; }
  .arc-grid { columns: 2; column-gap: 8px; }
  .arc-shot { margin-bottom: 8px; border-radius: 10px; }
  .reel-card { height: 62vh; max-height: 520px; }
  /* On a phone the wide recap is cropped to the same tall frame as the rest;
     tapping it still plays the full wide clip. */
  .reel-card.is-wide { aspect-ratio: 9 / 16; }
  .s4l-more a { grid-template-columns: 70px minmax(0, 1fr); }
  .s4l-more a > :last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wall-col { animation: none; }
  .arc-shot { opacity: 1; transform: none; }
}

/* The mobile menu takes the series' colours on its own page. */
.media-page .mobile-menu nav a[aria-current="page"] {
  background: var(--s4l-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.media-page .mobile-menu nav a small { color: var(--s4l-pink); }

/* Short screens: drop the numbers (they're repeated under "Every Sunday")
   and the cue before anything gets squeezed. */
@media (max-height: 640px) {
  .s4l-stats { display: none; }
  .s4l-brandmark { width: clamp(200px, min(88vw, 760px, calc((100svh - 360px) * 1.88)), 760px); }
}
@media (max-height: 520px) {
  .s4l-scroll, .s4l-kicker { display: none; }
}

/* --- phones: swipe, don't scroll forever ------------------------------- */

@media (max-width: 760px) {
  .s4l-next { padding: 48px 0 28px; }
  .s4l-reel, .s4l-setlist, .s4l-archive { padding: 34px 0; }
  .s4l-head { margin-bottom: 18px; }
  .s4l-head p { font-size: 15px; margin-top: 10px; }

  /* Every Sunday: one swipeable strip of stubs, years as markers. */
  .setlist {
    display: flex;
    gap: 10px;
    padding: 0 var(--pad) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .setlist::-webkit-scrollbar { display: none; }

  .setlist-year { display: flex; gap: 10px; flex: none; }
  .setlist-year h3 {
    flex: none;
    width: 74px;
    display: grid;
    place-items: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 44px;
    border-radius: 18px;
    background: rgba(244, 239, 227, .04);
    scroll-snap-align: start;
  }
  .setlist-year ol { display: flex; gap: 10px; border: 0; }
  .setlist-year li { flex: none; scroll-snap-align: start; }
  .setlist-year li > * {
    width: 150px;
    height: 172px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px;
    border: 0;
    border-radius: 18px;
    background: rgba(244, 239, 227, .05);
  }
  .setlist-year li > a::before { inset: 0; border-radius: 18px; }
  .setlist-year li > a:active::before { opacity: .16; transform: none; }
  .sl-date strong { font-size: 34px; }
  .sl-venue { font-size: 16px; line-height: 1.15; margin-top: auto; }
  .sl-note { text-align: left; font-size: 12px; min-height: 1em; }
  .sl-note:empty { display: block; }
  li > a:hover .sl-venue { transform: none; }

  /* Archive: each year is a two-row strip you swipe through. */
  .arc-year { content-visibility: visible; contain-intrinsic-size: none; margin-bottom: 26px; }
  .arc-head { position: static; margin: 0 0 10px; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .arc-head h3 { font-size: 30px; }
  .arc-grid {
    columns: auto;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 176px);
    grid-auto-columns: 136px;
    gap: 6px;
    margin-inline: calc(var(--pad) * -1);
    padding: 0 var(--pad) 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .arc-grid::-webkit-scrollbar { display: none; }
  .arc-shot {
    aspect-ratio: auto !important;
    height: 100%;
    margin: 0;
    border-radius: 10px;
    scroll-snap-align: start;
  }

  .s4l-band { padding: 56px var(--pad); gap: 14px; }
  .s4l-band .s4l-actions { flex-wrap: nowrap; width: 100%; }
  .s4l-band .s4l-actions .btn { flex: 1 1 0; padding-inline: 12px; }
}

@media (max-width: 760px) {
  /* Plain series pages: a wide crop of the photo so the title and the
     buttons are on the first screen. */
  .series-page .series-hero .detail-art { max-width: none; aspect-ratio: 16 / 10; }
  .series-page .series-hero .detail-cta { flex-wrap: nowrap; }
  .series-page .series-hero .detail-cta .btn { flex: 1 1 auto; justify-content: center; padding-inline: 14px; }
}

/* --- calendar ------------------------------------------------------------ */

.s4l-cal { padding: clamp(40px, 6vw, 90px) 0; }

.cal {
  padding: clamp(18px, 2.4vw, 32px);
  border-radius: 28px;
  background: rgba(244, 239, 227, .035);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 227, .09);
}

.cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(16px, 2vw, 26px);
}

.cal-month {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.cal-nav { display: flex; align-items: center; gap: 8px; }

.cal-arrow, .cal-today {
  display: grid;
  place-items: center;
  height: 44px;
  border: 1px solid rgba(244, 239, 227, .16);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, opacity .2s, transform .2s var(--s4l-ease);
  -webkit-tap-highlight-color: transparent;
}
.cal-arrow { width: 44px; padding: 0; }
.cal-today { padding: 0 16px; font-size: 14px; }
.cal-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-arrow:hover, .cal-today:hover { background: rgba(244, 239, 227, .08); border-color: rgba(244, 239, 227, .3); }
.cal-arrow:active, .cal-today:active { transform: scale(.94); }
.cal-arrow:disabled { opacity: .25; pointer-events: none; }

.cal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.cal-board { touch-action: pan-y; }

.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { margin-bottom: 8px; }
.cal-dow span { font-size: 12px; text-align: center; opacity: .5; }
.cal-dow span.is-sun { opacity: 1; background: var(--s4l-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }

.cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  aspect-ratio: 1 / .86;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(244, 239, 227, .03);
  color: var(--paper);
  font: inherit;
  text-align: left;
  overflow: hidden;
}
.cal-cell.is-blank { background: none; }
.cal-cell.is-sun { background: rgba(244, 239, 227, .06); }
.cal-cell.is-gone .cal-num { opacity: .4; }

.cal-num { font-size: 15px; font-variant-numeric: tabular-nums; }
.cal-cell.is-today .cal-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  opacity: 1;
  font-weight: 600;
}

.cal-tag {
  width: 100%;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

button.cal-cell { cursor: pointer; transition: transform .3s var(--s4l-ease), box-shadow .3s, background-color .2s; -webkit-tap-highlight-color: transparent; }
button.cal-cell:active { transform: scale(.95); }

/* A past Sunday: an outlined day with its room. */
.cal-cell.has-was { background: rgba(244, 239, 227, .07); box-shadow: inset 0 0 0 1px rgba(255, 158, 196, .35); }
.cal-cell.has-was .cal-num { opacity: .85; }
.cal-cell.has-was .cal-tag { opacity: .6; }
.cal-cell.has-was:hover { background: rgba(244, 239, 227, .1); }

/* Coming up: the series' gradient. */
.cal-cell.has-up { background: var(--s4l-grad); color: var(--ink); }
.cal-cell.has-up .cal-num { font-weight: 600; opacity: 1; }
.cal-cell.has-up .cal-tag { font-weight: 500; }
.cal-cell.has-up:hover { box-shadow: 0 12px 30px -12px rgba(255, 158, 196, .7); }

.cal-cell.is-selected { box-shadow: inset 0 0 0 2px var(--paper); }
.cal-cell.has-up.is-selected { box-shadow: inset 0 0 0 2px var(--paper), 0 12px 30px -12px rgba(255, 158, 196, .7); }

.cal-side { display: grid; gap: 10px; align-content: start; }
.cal-side-head { margin: 4px 0 4px; font-size: 13px; opacity: .6; }

.cal-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(244, 239, 227, .045);
  box-shadow: inset 0 0 0 1px transparent;
  cursor: pointer;
  transition: box-shadow .3s, background-color .2s;
}
.cal-item:hover { background: rgba(244, 239, 227, .07); }
.cal-item.is-selected { box-shadow: inset 0 0 0 1.5px rgba(244, 239, 227, .5); background: rgba(244, 239, 227, .07); }
.cal-item.is-up { background: linear-gradient(135deg, rgba(255, 158, 196, .16), rgba(150, 232, 210, .08)); }
.cal-item.is-up.is-selected { box-shadow: inset 0 0 0 1.5px var(--s4l-pink); }

.cal-stamp {
  display: grid;
  place-items: center;
  align-content: center;
  height: 64px;
  border-radius: 14px;
  background: rgba(244, 239, 227, .07);
}
.cal-item.is-up .cal-stamp { background: var(--s4l-grad); color: var(--ink); }
.cal-stamp span { font-size: 11px; opacity: .7; }
.cal-stamp strong { font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }

.cal-text { display: grid; gap: 4px; align-content: center; min-width: 0; }
.cal-kicker { margin: 0; font-size: 12px; opacity: .6; }
.cal-item.is-up .cal-kicker { opacity: 1; color: var(--s4l-pink); }
.cal-text h4 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.cal-note { margin: 0; font-size: 14px; line-height: 1.45; opacity: .7; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.cal-link {
  justify-self: start;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  opacity: .8;
  cursor: pointer;
  transition: opacity .2s;
}
.cal-link:hover { opacity: 1; }

.cal-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 22px;
  border-radius: 20px;
  border: 1px dashed rgba(244, 239, 227, .18);
}
.cal-empty h4 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.cal-empty p { margin: 0 0 6px; font-size: 14px; opacity: .7; }

.cal-legend { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 12px; opacity: .6; }
.cal-legend span { width: 12px; height: 12px; border-radius: 4px; }
.cal-legend span + span, .cal-legend .is-was { margin-left: 10px; }
.cal-legend .is-up { background: var(--s4l-grad); }
.cal-legend .is-was { background: rgba(244, 239, 227, .07); box-shadow: inset 0 0 0 1px rgba(255, 158, 196, .5); }

@media (max-width: 960px) {
  .cal-body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .s4l-cal { padding: 34px 0; }
  .cal { margin-inline: calc(var(--pad) * -.5); padding: 16px 12px; border-radius: 24px; }
  .cal-top { padding-inline: 4px; }
  .cal-month { font-size: 24px; }
  .cal-today { display: none; }
  .cal-arrow { width: 40px; height: 40px; }
  .cal-dow, .cal-grid { gap: 4px; }
  .cal-cell { aspect-ratio: 1; padding: 0; align-items: center; justify-content: center; border-radius: 12px; }
  .cal-num { font-size: 15px; }
  .cal-cell.is-today .cal-num { margin: 0; }
  .cal-tag { display: none; }
  .cal-cell.has-was::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--s4l-pink);
  }
  .cal-side { margin-top: 4px; }
  .cal-item { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .cal-stamp { height: 58px; }
  .cal-legend { padding-inline: 4px; }
}
