/* UI layer — sections. Loads after baseline-ui.css. Tokens only (tokens.css); no invented colours. */
/* Anton (declared in tokens.css with font-display: swap). Declared again here, later, with font-display: block: the
   display text stays invisible for the ~0.9 s the preloaded font needs instead of painting in a fallback face and
   jumping when Anton arrives (different ascent → the heading moved ~24 px: CLS 0.0138). Same file, same unicode-range. */
@font-face {
  font-family: Anton;
  src: url("../../fonts/anton-sd.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
  unicode-range: U+0020-007E, U+00A0-017F, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2039-203A, U+20AC;
}
:root {
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --panel: rgb(5 11 26 / 0.71); /* --c-ink; 15 points more transparent than Round 3 (owner, Round 4: D-U37); red display text gets a halo, see .display */
  --panel-2: rgb(5 11 26 / 0.78);
  --line: rgb(242 230 201 / 0.14);
  --line-2: rgb(242 230 201 / 0.32);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --row-top: 8px; --row-h: 52px; --row-island: 66px; /* the fixed top row (chip left, language switch right); --row-island = where it steps down under the island */
  /* accents lifted from the film: blue-hour sky, terracotta wall, dusk lilac, mint of the lamp glass */
  --c-sky: #9fd6ee; --c-coral: #ff9a80; --c-lilac: #c3b4ff; --c-mint: #7fe3c0;
}

:focus-visible { outline: 2px solid var(--c-cream); outline-offset: 2px; }
#main, #footer { font-size: var(--fs-1); color: var(--c-cream); }
#main :is(h1, h2, h3, h4, p, ol, ul, dl, dd) { margin: 0; }
#main :is(ol, ul) { padding: 0; list-style: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1120px, 100% - 2 * var(--gut)); margin-inline: auto; }
.panel { position: relative; background: linear-gradient(160deg, rgb(5 11 26 / 0.79) 0%, rgb(8 19 44 / 0.78) 55%, rgb(14 34 78 / 0.75) 100%); border: 1px solid rgb(242 230 201 / 0.2); border-radius: 20px; padding: var(--sp-5); box-shadow: 0 22px 60px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(242 230 201 / 0.1); }
.panel::before { content: ""; position: absolute; left: var(--sp-5); top: -1px; width: 56px; height: 5px; border-radius: 0 0 5px 5px; background: var(--c-red); } /* the red tab: one mark on every card */
.display { font: 400 var(--fs-4) / 0.92 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--c-red); text-shadow: 0 0 2px rgb(5 11 26 / 0.9), 0 0 6px rgb(5 11 26 / 0.7), 0 0 18px rgb(5 11 26 / 0.65); }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-cream-dim); }
.lead { font-size: var(--fs-2); line-height: 1.35; color: var(--c-cream-dim); max-width: 38ch; }

/* ---- Buttons --------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 var(--sp-4); font: 700 var(--fs-0) / 1 var(--font-body); text-decoration: none;
  color: var(--c-cream); background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  cursor: pointer; transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:hover { background: rgb(242 230 201 / 0.1); border-color: rgb(242 230 201 / 0.55); }
.btn--solid { color: var(--c-night); background: var(--c-cream); border-color: var(--c-cream); }
.btn--solid:hover { background: #fff6dc; border-color: #fff6dc; }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; background: transparent; border-style: dashed; }

/* ---- Act 0 · Hero: a poster, not a form. Giant name, a tilted sticker, one big play button, the artist's links. ------ */
#intro { position: relative; isolation: isolate; }
#intro::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgb(5 11 26 / 0.88) 0%, rgb(5 11 26 / 0.66) 44%, rgb(5 11 26 / 0) 82%), linear-gradient(0deg, rgb(5 11 26 / 0.6) 0%, rgb(5 11 26 / 0) 38%),
    radial-gradient(42% 36% at 90% 74%, rgb(255 154 128 / 0.2), transparent 72%), radial-gradient(40% 34% at 76% 10%, rgb(159 214 238 / 0.16), transparent 72%); } /* a soft side fade, not a box */
.hero { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: var(--sp-4); padding-block: clamp(72px, 9svh, 110px) clamp(110px, 14svh, 140px); }
.hero__tag { margin: 0; padding: 7px 13px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-ink); background: var(--c-ochre); border-radius: 5px; transform: rotate(-2.5deg); box-shadow: 3px 3px 0 rgb(5 11 26 / 0.85); }
.hero__name { font: 400 clamp(3.6rem, min(18vw, 21svh), 14rem) / 0.82 var(--font-display); letter-spacing: 0.005em; text-transform: uppercase; color: var(--c-red); width: min-content; text-shadow: 0 0 2px rgb(5 11 26 / 0.9), 0 0 26px rgb(5 11 26 / 0.8); } /* min-content: SAM / DAVIES stacked */
.hero__lead { max-width: 28ch; font-size: clamp(1.15rem, 2.1vw, 1.65rem); line-height: 1.3; font-weight: 600; text-shadow: 0 0 14px rgb(5 11 26 / 0.9); }
.hero__actions { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-2); min-height: 64px; } /* reserved: the button and the icons arrive with the data, nothing below may move (CLS 0) */
.go-cta { justify-self: start; display: inline-flex; align-items: center; gap: 14px; max-width: 100%; min-height: 64px; padding: 8px 26px 8px 8px; text-align: left; font: 800 1.05rem / 1.2 var(--font-body); color: var(--c-ink); background: var(--c-cream); border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 10px 30px rgb(0 0 0 / 0.45), 4px 4px 0 var(--c-red); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.go-cta:hover { transform: translate(-1px, -2px); box-shadow: 0 14px 34px rgb(0 0 0 / 0.5), 6px 6px 0 var(--c-red); }
.go-cta__ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; color: var(--c-cream); background: var(--c-red); }
.go-cta__ico .ico { width: 22px; height: 22px; }
.social { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; color: var(--c-cream); background: rgb(5 11 26 / 0.62); border: 1px solid rgb(242 230 201 / 0.42); border-radius: 50%; transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease); }
.social a:hover { color: var(--c-ink); background: var(--c-cream); border-color: var(--c-cream); transform: translateY(-2px); }
.social .ico { width: 22px; height: 22px; }
.social--sm a { width: 44px; height: 44px; }
.facts { display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--sp-4) var(--sp-6); margin-top: var(--sp-3); min-height: 84px; }
.fact { padding-left: var(--sp-3); border-left: 3px solid var(--c-ochre); }
.fact dt { font: 400 var(--fs-3) / 1 var(--font-display); color: var(--c-cream); }
.fact dd { margin-top: 4px; max-width: 18ch; font-size: var(--fs-0); line-height: 1.3; color: var(--c-cream-dim); overflow-wrap: anywhere; }
.cue { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: var(--sp-3) 0 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-cream); text-shadow: 0 1px 8px rgb(0 0 0 / 0.7); } /* follows the content, so it can never sit on it */
.cue .ico { animation: cue 1.8s var(--ease) infinite; }
@media (max-height: 700px) { .cue { display: none; } }
@media (max-width: 640px) { .hero { padding-block: 76px 150px; } .hero__actions { min-height: 184px; } .facts { min-height: 78px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); } .fact { padding-left: 10px; } .fact dt { font-size: 1.9rem; } .fact dd { font-size: 0.75rem; } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(6px); opacity: 1; } }

/* ---- Pinned acts. The pin spans exactly its act of the scroll story: core publishes the act spans
   (--act-span-N) and the stage length, so margins pull the pin start/end onto the act boundaries
   (derivation in docs/decisions-ui.md D-U05). flow-root stops the negative margin collapsing out. */
#chronology, #plaza { display: flow-root; position: relative; }
.pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; pointer-events: none; }
#chronology .pin { margin-top: calc(var(--act-span-0, 0.25) * -100vh); margin-bottom: calc(var(--act-span-2, 0.38) * -100vh); }
#plaza .pin { margin-top: calc((var(--act-span-0, 0.25) + var(--act-span-1, 0.37)) * -100vh); }
/* Fades follow --p (the scroll position core publishes) instead of act flips + timers: nothing pops, it all scrubs with the scroll.
   Ramps are 1/40 of the story (~15 vh of scroll) wide. a1/a2 = act boundaries from the core spans. */
.tl { --v: min(clamp(0, (var(--p, 0) - var(--act-span-0, 0.25)) * 40, 1), clamp(0, (var(--act-span-0, 0.25) + var(--act-span-1, 0.37) - var(--p, 0)) * 40, 1)); opacity: var(--v); transform: translateY(calc((1 - var(--v)) * 16px)); }
#plaza .wrap { opacity: clamp(0, (var(--p, 0) - var(--act-span-0, 0.25) - var(--act-span-1, 0.37)) * 40, 1); }
.plaza, .about { opacity: 0; transform: translateY(16px); transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
#plaza:not([data-step="1"]) .about, #plaza[data-step="1"] .plaza { opacity: 1; transform: none; }
#plaza .wrap { display: grid; align-items: center; }
#plaza .wrap > * { grid-area: 1 / 1; }

/* ---- Act 1 · Chronology: a corridor of posters ----------------------------------------------
   Wall bills (cream / sky / coral paper) and arched door plaques (albums, walnut) hang on both sides of the alley and
   come down it as you scroll. timeline.js writes one number, --u (smoothed card index), on the list; each card works
   out its own distance d = --i − --u here: ahead (d>0) it recedes toward the vanishing point, behind (d<0) it passes
   the viewer and leaves. At d = 0 it sits at --th degrees, readable. Flat fallback below for reduced motion. */
#chronology { overflow-x: clip; }
#chronology .wrap { width: 100%; }
.tl { display: grid; justify-items: center; gap: var(--sp-3); width: 100%; --x0: 2vw; --th: 15deg; --fa: 0.85; --fb: 3.2; }
.tl > .eyebrow, .tl__rail { padding: 7px 14px; color: var(--c-cream); background: rgb(5 11 26 / 0.8); border-radius: var(--radius-pill); }
.tl__list { display: grid; width: 100%; justify-items: center; align-items: center; }
.tl__card {
  --paper: var(--c-cream); --ink-t: var(--c-ink); --ink-2: rgb(5 11 26 / 0.76); --yr: var(--c-red);
  grid-area: 1 / 1; position: relative; display: grid; gap: var(--sp-2); width: min(82vw, 400px); padding: var(--sp-4) var(--sp-5) var(--sp-5);
  color: var(--ink-t); background: var(--paper); border-radius: 6px; opacity: 0; transition: opacity 240ms var(--ease);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(5 11 26 / 0.14);
}
.tl__card[aria-current="step"] { opacity: 1; }
.tl__card:nth-child(odd) { --sd: -1; }
.tl__card:nth-child(even) { --sd: 1; }
.tl__card[data-k="ep"] { --paper: var(--c-sky); --yr: var(--c-navy); }
.tl__card[data-k="single"]:nth-child(3n) { --paper: var(--c-coral); --yr: var(--c-ink); }
.tl__card::before, .tl__card::after { content: ""; position: absolute; top: -9px; width: 62px; height: 22px; background: rgb(242 163 58 / 0.82); box-shadow: 0 2px 4px rgb(0 0 0 / 0.25); }
.tl__card::before { left: -16px; transform: rotate(-38deg); }
.tl__card::after { right: -16px; transform: rotate(38deg); }
.tl__card[data-k="album"] { /* door */
  --paper: #3a2316; --ink-t: var(--c-cream); --ink-2: rgb(242 230 201 / 0.82); --yr: var(--c-ochre);
  padding-top: var(--sp-7); border-radius: 50% 50% 6px 6px / 84px 84px 6px 6px;
  background: repeating-linear-gradient(90deg, rgb(0 0 0 / 0) 0 31px, rgb(0 0 0 / 0.22) 31px 33px), linear-gradient(180deg, #4b2d1b, #2a170f);
}
.tl__card[data-k="album"]::before { display: none; }
.tl__card[data-k="album"]::after { inset: 9px; width: auto; height: auto; background: none; box-shadow: none; transform: none; border: 2px solid rgb(242 163 58 / 0.55); border-radius: 50% 50% 4px 4px / 78px 78px 4px 4px; pointer-events: none; }
.tl__year { font: 400 clamp(4.2rem, 17vw, 6.4rem) / 0.84 var(--font-display); color: var(--yr); }
.tl__body { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: var(--sp-4); align-items: start; }
.tl__cover { order: 2; width: 96px; height: 96px; border: 4px solid #fbf6e8; border-radius: 4px; transform: rotate(3deg); box-shadow: 0 8px 18px rgb(0 0 0 / 0.4); object-fit: cover; background: var(--c-navy); }
.tl__kind { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); background: var(--ink-t); transform: rotate(-1.5deg); }
.tl__title { margin-top: var(--sp-1); font-size: var(--fs-2); line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.tl__date, .tl__text { margin-top: var(--sp-1); font-size: var(--fs-0); color: var(--ink-2); }
.tl__rail { display: flex; gap: 4px; width: min(100% - 2 * var(--gut), 420px); padding-block: 11px; }
.tl__rail li { flex: 1; height: 3px; border-radius: 2px; background: rgb(242 230 201 / 0.3); transition: background-color 240ms var(--ease); }
.tl__rail li.is-on { background: var(--c-ochre); }
@media (min-width: 860px) { .tl { --x0: min(30vw, 440px); --th: 24deg; --fa: 0.45; --fb: 1.5; } .tl__card { width: 400px; } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduced"]) .tl__list { perspective: 1100px; perspective-origin: 50% 40%; }
  html:not([data-motion="reduced"]) .tl__card {
    --d: calc(var(--i) - var(--u, 0)); --a: max(var(--d) - 0.15, 0); --b: max(var(--d) * -1 - 0.15, 0);
    transform:
      translate3d(calc(var(--sd) * (var(--x0) + var(--b) * 7vw)), calc(var(--a) * -3svh), calc(var(--b) * 360px - var(--a) * 360px))
      rotateY(calc(var(--sd) * -1 * (var(--th) + var(--a) * 4deg + var(--b) * 10deg))) rotateZ(calc(var(--sd) * 1.1deg));
    opacity: clamp(0, calc(1 - var(--a) * var(--fa) - var(--b) * var(--fb)), 1);
    z-index: calc(40 - max(var(--d), var(--d) * -1) * 10);
    transition: none;
  }
}

/* ---- Act 2 · About (step 0) and the plaza line (step 1) -------------------------------------
   The act is ~2.3 screens long: first the artist (photo + a few facts), then "Now, the music." — timeline.js sets #plaza[data-step]. */
.about { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-6); align-items: center; width: min(100%, 940px); margin-inline: auto; }
.about__photo { position: relative; margin: 0; padding: 9px 9px 0; width: min(38vw, 300px); background: #fbf6e8; border-radius: 3px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.55); transform: rotate(-2.5deg); }
.about__photo::before, .about__photo::after { content: ""; position: absolute; top: -9px; width: 62px; height: 22px; background: rgb(242 163 58 / 0.82); box-shadow: 0 2px 4px rgb(0 0 0 / 0.25); }
.about__photo::before { left: -16px; transform: rotate(-38deg); }
.about__photo::after { right: -16px; transform: rotate(38deg); }
.about__photo img { display: block; width: 100%; height: auto; aspect-ratio: 520 / 576; object-fit: cover; background: var(--c-night); }
.about__photo figcaption { padding: 9px 4px 11px; font: 400 1.05rem / 1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink); }
.about__txt { display: grid; gap: var(--sp-3); padding: var(--sp-5); }
.about__txt .display { font-size: var(--fs-3); }
.about__list { display: grid; gap: var(--sp-2); }
.about__list li { position: relative; padding-left: 20px; font-size: var(--fs-0); line-height: 1.35; color: var(--c-cream); }
.about__list li::before { content: ""; position: absolute; left: 1px; top: 0.5em; width: 8px; height: 8px; background: var(--c-ochre); transform: rotate(45deg); }
@media (max-width: 639px) { .about { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--sp-4); } .about__photo { width: min(50vw, 210px); } .about__txt { width: 100%; padding: var(--sp-4); } }

/* ---- Act 2 · Night plaza --------------------------------------------------------------- */
.plaza { width: min(100%, 860px); margin-inline: auto; text-align: left; }
.plaza .display { font-size: clamp(3.4rem, 11vw, 8.5rem); line-height: 0.86; text-shadow: 0 0 2px rgb(5 11 26 / 0.9), 0 0 26px rgb(5 11 26 / 0.8); }
.plaza p { margin-top: var(--sp-4); font-size: var(--fs-2); line-height: 1.35; color: var(--c-cream); max-width: 30ch; }

/* ---- After the video: shared section rhythm -------------------------------------------- */
#discography, #links, #quiz { padding-block: var(--sp-7) 0; }
.sec-head { display: grid; gap: var(--sp-3); justify-items: start; margin-bottom: var(--sp-4); }
.sec-head .display { font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.88; }
/* Title bars (section / group / plaza headings): a red (or ochre) rule and a fade from ink — a title, not a box. */
.sec-head, .group__head, .plaza.panel { padding: var(--sp-4) var(--sp-5); background: linear-gradient(90deg, rgb(5 11 26 / 0.75) 0%, rgb(5 11 26 / 0.47) 58%, rgb(5 11 26 / 0) 100%); border: 0; border-left: 6px solid var(--c-red); border-radius: 0; box-shadow: none; }
.plaza.panel::before { display: none; }
.group__head { border-left-color: var(--c-ochre); }

/* ---- Discography ----------------------------------------------------------------------- */
.filters { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.filters__group { display: flex; min-width: 0; align-items: center; gap: var(--sp-3); }
.filters__label { flex: none; min-width: 3.5em; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-cream-dim); }
.filters__chips { display: flex; flex: 1 1 auto; min-width: 0; gap: var(--sp-2); overflow-x: auto; padding: 3px; margin: -3px; scrollbar-width: none; scroll-snap-type: x proximity; }
.filters__chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; min-height: 44px; padding: 0 var(--sp-4); font: 700 var(--fs-0) / 1 var(--font-body); color: var(--c-cream); background: rgb(5 11 26 / 0.67); border: 1px solid var(--line-2); border-radius: var(--radius-pill); cursor: pointer; scroll-snap-align: start; transition: background-color 180ms var(--ease); }
.chip-btn:hover { background: rgb(242 230 201 / 0.14); }
.chip-btn[aria-pressed="true"] { color: var(--c-night); background: var(--c-cream); border-color: var(--c-cream); }

.group { margin-top: var(--sp-6); }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-4); }
.group__head h3 { font: 400 var(--fs-4) / 1 var(--font-display); text-transform: uppercase; color: var(--c-red); }
.group__head p { font-size: var(--fs-0); color: var(--c-cream-dim); }
.rel-list { display: grid; gap: var(--sp-4); }
.rel { overflow: hidden; padding: var(--sp-4) var(--sp-4) var(--sp-3); min-width: 0; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
@media (hover: hover) { .rel:hover { transform: translateY(-3px); box-shadow: 0 28px 70px rgb(0 0 0 / 0.55), inset 0 1px 0 rgb(242 230 201 / 0.14); } .rel:hover .rel__cover { transform: rotate(0) scale(1.04); } }
.rel__head { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: var(--sp-4); align-items: start; margin-bottom: var(--sp-3); }
.rel__cover { width: 112px; height: 112px; border: 4px solid var(--c-cream); border-radius: 5px; object-fit: cover; background: var(--c-navy); transform: rotate(-3deg); box-shadow: 0 10px 24px rgb(0 0 0 / 0.5); transition: transform 220ms var(--ease); }
.rel__kind { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-ink); background: var(--c-ochre); transform: rotate(-1.5deg); }
.rel__year { position: absolute; right: 0; top: -0.14em; font: 400 clamp(4.5rem, 9vw, 7rem) / 1 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgb(242 230 201 / 0.26); pointer-events: none; user-select: none; }
@media (max-width: 560px) { .rel__year { display: none; } }
.rel__title { margin-top: var(--sp-2); font-size: var(--fs-2); line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
.rel__artists, .rel__count { margin-top: 2px; font-size: var(--fs-0); color: var(--c-cream-dim); overflow-wrap: anywhere; }
.trk-list { border-top: 1px solid var(--line); }
.trk { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: 10px 8px; border-bottom: 1px solid var(--line); border-radius: var(--radius-2); transition: background-color 180ms var(--ease); }
.trk:hover { background: rgb(242 230 201 / 0.05); }
.trk:last-child { border-bottom: 0; }
.trk.is-playing { outline: 0; background: linear-gradient(90deg, rgb(227 6 19 / 0.26), rgb(227 6 19 / 0) 75%); }
.trk__play { position: relative; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; color: var(--c-cream); background: transparent; border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; transition: background-color 180ms var(--ease), transform 180ms var(--ease); }
.trk__play:hover { background: rgb(242 230 201 / 0.12); }
.trk__play.is-playing { outline: 0; color: var(--c-cream); background: var(--c-red); border-color: var(--c-red); }
.trk__play .ico--pause, .trk__play.is-playing .ico--play { display: none; }
.trk__play.is-playing .ico--pause { display: block; }
.trk__text { min-width: 0; }
.trk__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
.trk__meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.8125rem; color: var(--c-cream-dim); }
.trk__info { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.75rem; letter-spacing: 0.02em; color: var(--c-cream-dim); font-variant-numeric: tabular-nums; }
.trk__actions { display: flex; gap: var(--sp-2); }
.trk__actions .btn { min-width: 44px; padding: 0 12px; }
.btn__txt { display: none; }
.empty { display: grid; justify-items: start; gap: var(--sp-3); margin-top: var(--sp-5); }
@media (min-width: 560px) { .btn__txt { display: inline; } .trk__actions .btn { padding: 0 var(--sp-4); } }
@media (min-width: 900px) { .rel-list { grid-template-columns: 1fr 1fr; } .rel--wide { grid-column: 1 / -1; } }

/* ---- Links: tiles ------------------------------------------------------------------------ */
.links { display: grid; gap: var(--sp-3); justify-items: stretch; }
.links > p { color: var(--c-cream-dim); }
.links__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--sp-3); margin-top: var(--sp-3) !important; }
.tile { display: flex; align-items: center; gap: var(--sp-3); min-height: 72px; padding: 12px 16px; color: var(--c-cream); text-decoration: none; background: rgb(242 230 201 / 0.05); border: 1px solid rgb(242 230 201 / 0.22); border-radius: 16px; transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), border-color 180ms var(--ease); }
.tile:hover { color: var(--c-ink); background: var(--c-cream); border-color: var(--c-cream); transform: translateY(-2px); }
.tile__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgb(242 230 201 / 0.1); border: 1px solid rgb(242 230 201 / 0.28); transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.tile:hover .tile__ico { color: var(--c-cream); background: var(--c-ink); border-color: var(--c-ink); }
.tile__txt { display: grid; min-width: 0; }
.tile__txt strong { font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.tile__txt small { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-ochre); }
.tile:hover small { color: rgb(5 11 26 / 0.7); }
.tile__go { margin-left: auto; opacity: 0.55; }

/* ---- Quiz ------------------------------------------------------------------------------ */
.quiz { display: grid; gap: var(--sp-4); overflow: hidden; }
.quiz::after { content: "?"; content: "?" / ""; position: absolute; right: var(--sp-5); top: 0.04em; font: 400 clamp(9rem, 22vw, 16rem) / 1 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgb(242 230 201 / 0.16); pointer-events: none; }
.quiz .btn--solid { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.quiz .display:focus { outline: 0; }
.quiz__lead { color: var(--c-cream-dim); }
.quiz__tip { font-size: var(--fs-0); color: var(--c-cream-dim); }
.quiz__bar { height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; background: var(--c-ochre); transform-origin: left; transform: scaleX(var(--q, 0)); }
.quiz__count { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-cream-dim); }
.quiz__q { font-size: var(--fs-2); line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.quiz__q:focus { outline: 0; }
.quiz__opts { display: grid; gap: var(--sp-3); }
.opt { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); width: 100%; min-height: 56px; padding: var(--sp-2) var(--sp-4); text-align: left; font: 700 var(--fs-1) / 1.25 var(--font-body); color: var(--c-cream); background: rgb(242 230 201 / 0.06); border: 1px solid var(--line-2); border-radius: var(--radius-2); cursor: pointer; transition: background-color 180ms var(--ease), border-color 180ms var(--ease); overflow-wrap: anywhere; }
.opt:hover:not([aria-disabled="true"]) { background: rgb(242 230 201 / 0.13); border-color: rgb(242 230 201 / 0.6); }
.opt__key { display: grid; place-items: center; width: 28px; height: 28px; font-size: 0.8125rem; border: 1px solid var(--line-2); border-radius: 8px; }
.opt__tag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.opt[aria-disabled="true"] { cursor: default; }
.opt.is-correct { color: var(--c-night); background: var(--c-ochre); border-color: var(--c-ochre); }
.opt.is-correct .opt__key { border-color: var(--c-night); }
.opt.is-wrong { border: 2px solid var(--c-red); background: rgb(227 6 19 / 0.14); }
.opt.is-dim { opacity: 0.55; }
.quiz__fb { display: grid; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-left: 3px solid var(--c-ochre); background: rgb(242 230 201 / 0.06); border-radius: 0 var(--radius-2) var(--radius-2) 0; }
.quiz__fb strong { font-size: var(--fs-1); }
.quiz__fb p { font-size: var(--fs-0); color: var(--c-cream-dim); }
.quiz__score { font: 400 var(--fs-5) / 0.9 var(--font-display); color: var(--c-red); }
.quiz__rank { font-size: var(--fs-2); font-weight: 700; }
.quiz__row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
@media (min-width: 700px) { .quiz__opts { grid-template-columns: 1fr 1fr; } }

/* ---- Footer + persistent chip ---------------------------------------------------------- */
#footer { padding-bottom: calc(var(--sp-9) + env(safe-area-inset-bottom, 0px)); }
.footer { display: grid; gap: var(--sp-3); justify-items: center; margin-top: var(--sp-8); padding: var(--sp-6) var(--sp-5); text-align: center; background: linear-gradient(0deg, rgb(5 11 26 / 0.73) 0%, rgb(5 11 26 / 0.4) 100%); border-radius: 20px; }
.footer p { margin: 0; }
.footer__note { font-weight: 700; }
.footer__contact a { color: var(--c-cream); }
.footer__legal { font-size: var(--fs-0); color: var(--c-cream-dim); }
.chip {
  position: fixed; left: calc(env(safe-area-inset-left, 0px) + 12px); top: calc(env(safe-area-inset-top, 0px) + var(--row-top)); z-index: var(--z-lang); pointer-events: none;
  box-sizing: border-box; height: var(--row-h); max-width: calc(100vw - 206px); margin: 0; padding: 0 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: calc(var(--row-h) - 2px);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; color: var(--c-cream); background: var(--ov-bg); border: 1px solid var(--ov-line); border-radius: var(--radius-pill); box-shadow: var(--ov-shadow);
  transition: top var(--dur-2) var(--ease-out);
}
@media (max-width: 999px) { html[data-modal="closed"]:not([data-player="idle"]) .chip { top: calc(env(safe-area-inset-top, 0px) + var(--row-island)); } }

@media (max-width: 400px) { .chip { max-width: calc(100vw - 190px); padding: 0 10px; font-size: 0.6875rem; letter-spacing: 0; } }

/* Creator credit — bottom-right of the first screen, the glass twin of the top-left chip. It sits in .intro__screen (the hero's
   full-width wrapper), so it follows the hero's bottom edge — inside the hero's bottom padding, never over the content — and scrolls away with it. */
.intro__screen { position: relative; }
.credit {
  position: absolute; z-index: 2; right: calc(env(safe-area-inset-right, 0px) + 12px + var(--sbw, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  display: inline-flex; align-items: center; gap: 7px; box-sizing: border-box; min-height: var(--row-h); padding: 0 16px; white-space: nowrap;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; color: var(--c-cream-dim);
  background: var(--ov-bg); border: 1px solid var(--ov-line); border-radius: var(--radius-pill); box-shadow: var(--ov-shadow);
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.credit__name { color: var(--c-cream); font-weight: 800; letter-spacing: 0.04em; }
.credit .ico { width: 16px; height: 16px; color: var(--c-cream); }
.credit:hover { color: var(--c-cream); background: rgb(242 230 201 / 0.16); border-color: var(--c-cream); }
@media (max-width: 400px) { .credit { padding: 0 12px; font-size: 0.6875rem; gap: 5px; } }

/* ---- Language switch cross-fade (≤ 120 ms, none under reduced motion) ------------------- */
@keyframes lang-fade { from { opacity: 0.55; } to { opacity: 1; } }
html.is-lang-swap[data-modal="closed"] :is(#main, #footer, #island) { animation: lang-fade 120ms linear; }
html.is-lang-swap[data-modal="open"] .modal__bar { animation: lang-fade 120ms linear; }

/* ---- Palette: the film's own accents, used sparingly ------------------------------------------
   Red stays the artist colour (display text, tabs); ochre = lamplight. Added: sky (blue hour), coral (terracotta wall),
   lilac (dusk), mint (lamp glass). Release type → colour: album ochre · EP sky · single coral. Text on them is always ink. */
.rel[data-k="ep"]::before { background: var(--c-sky); }
.rel[data-k="single"]::before { background: var(--c-coral); }
.rel[data-k="ep"] .rel__kind { background: var(--c-sky); }
.rel[data-k="single"] .rel__kind { background: var(--c-coral); }
.group[data-group="ep"] .group__head { border-left-color: var(--c-sky); }
.group[data-group="ep"] .group__head h3 { color: var(--c-sky); }
.group[data-group="single"] .group__head { border-left-color: var(--c-coral); }
.group[data-group="single"] .group__head h3 { color: var(--c-coral); }
.fact:nth-child(2) { border-left-color: var(--c-sky); }
.fact:nth-child(3) { border-left-color: var(--c-coral); }
.about__txt::before { background: var(--c-coral); }
.about__list li:nth-child(4n+2)::before { background: var(--c-sky); }
.about__list li:nth-child(4n+3)::before { background: var(--c-coral); }
.about__list li:nth-child(4n)::before { background: var(--c-lilac); }
.plaza.panel { border-left-color: var(--c-coral); }
.links::before { background: var(--c-mint); }
.links__list > :nth-child(5n+1) { --tc: var(--c-ochre); }
.links__list > :nth-child(5n+2) { --tc: var(--c-sky); }
.links__list > :nth-child(5n+3) { --tc: var(--c-coral); }
.links__list > :nth-child(5n+4) { --tc: var(--c-lilac); }
.links__list > :nth-child(5n) { --tc: var(--c-mint); }
.tile__ico { color: var(--tc, var(--c-cream)); border-color: var(--tc, rgb(242 230 201 / 0.28)); }
.quiz::before { background: var(--c-lilac); }
.quiz::after { -webkit-text-stroke-color: rgb(195 180 255 / 0.24); }
.quiz__bar span { background: linear-gradient(90deg, var(--c-ochre), var(--c-coral)); }
.opt__key { border-color: rgb(195 180 255 / 0.55); }
.footer { background: linear-gradient(90deg, var(--c-red), var(--c-ochre), var(--c-sky), var(--c-lilac)) top / 100% 3px no-repeat, linear-gradient(0deg, rgb(5 11 26 / 0.73) 0%, rgb(5 11 26 / 0.4) 100%); }

@media (prefers-reduced-motion: reduce) {
  .tl, .plaza, .about, .tl__card { transform: none !important; transition: opacity 1ms !important; }
  .cue .ico { animation: none; }
  .go-cta, .rel, .rel__cover, .social a, .tile, .trk__play { transition: none !important; transform: none !important; }
  html.is-lang-swap * { animation: none !important; }
}
