/* Discography page — one full-height panel per release.
   The page background and text colour follow the release in view (--page / --ink). */

:root { --page: #0b0b0a; --ink: #f2f2ee; }
body.disco { background: var(--page); transition: background-color 0.9s ease; }
.disco .site-header { background: transparent !important; backdrop-filter: none !important; }
.disco .nav a[aria-current="page"] { color: var(--fg); }

/* Hero */
.disco-hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.disco-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; z-index: -2; opacity: .45; filter: grayscale(1) contrast(1.05); animation: none; transform: none; }
.disco-hero .hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,11,10,.85) 0%, rgba(11,11,10,.35) 55%, rgba(11,11,10,.55) 100%), linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
.disco-hero .hero-inner { width: 100%; padding: 120px var(--gutter) 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.disco-hero h1 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.035em; }
.filters { display: flex; flex-direction: column; align-items: flex-start; padding-left: 0.55em; margin-top: 4px; }
.filters button { font-size: clamp(24px, 3vw, 42px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.12; color: rgba(242,242,238,.32); transition: color .25s; }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--fg); }

/* Selected works: one title at a time. Words rise through a mask, then the line drifts. */
.selected { position: absolute; right: var(--gutter); bottom: 44px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.sel-label { font-size: 12px; color: rgba(242,242,238,.5); }
.sel-words { display: grid; justify-items: end; font-size: clamp(22px, 2.1vw, 30px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.2; white-space: nowrap; transition: color .3s; }
.sel-line { grid-area: 1 / 1; transform: translateX(-18px); }
.sel-line.on { transform: none; transition: transform 5.2s cubic-bezier(.2,.6,.3,1); }
.sel-line.out { transform: translateX(8px); transition: transform 1.2s ease-in; }
.sel-line .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
.sel-line .w > span { display: inline-block; transform: translateY(125%); }
.sel-line.on .w > span { transform: none; transition: transform 1.1s cubic-bezier(.2,.75,.2,1) calc(.35s + var(--k) * .11s); }
.sel-line.out .w > span { transform: translateY(-125%); transition: transform .8s cubic-bezier(.6,0,.7,.2) calc(var(--k) * .07s); }
.selected:hover .sel-words { color: var(--accent); }

/* Release panel */
.rel {
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
  padding: 110px var(--gutter) 64px; color: var(--ink); transition: color .9s ease;
}
.rel { scroll-margin-top: -72px; } /* cancel the page scroll-padding: panels land flush */
.rel[hidden] { display: none; }
.side { display: flex; flex-direction: column; min-height: 100%; }
.rel h2 { display: flex; flex-direction: column; }
.rel h2 .k { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.03em; }
.rel h2 .t { font-size: clamp(30px, 3.4vw, 50px); font-weight: 300; letter-spacing: -0.03em; padding-left: 0.5em; margin-top: 2px; }
.rel .with { padding-left: calc(0.5em * 1.6); margin: 14px 0 0; font-size: 14px; opacity: .75; }
.rel .blurb, .rel p.ph { margin: auto 0; padding: 48px 0 48px 1.05em; max-width: 44ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; }
.rel p.ph { margin-left: 1.05em; padding: 12px 16px; max-width: 30ch; }
.rel .blurb { opacity: .92; }
.rel-meta { padding-left: 1.05em; font-size: 13px; }
.rel-meta .no { display: block; font-variant-numeric: tabular-nums; opacity: .6; margin-bottom: 8px; }
.rel-meta p { margin: 0 0 12px; opacity: .8; }
.rel-meta .ph { color: inherit; border-color: currentColor; opacity: .7; }
.acts { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.acts a, .acts button { font-size: 13px; font-weight: 500; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); padding-bottom: 1px; transition: border-color .2s; }
.acts a:hover, .acts button:hover { border-color: currentColor; }

.stage { display: flex; align-items: center; justify-content: center; }
.cover-btn { display: block; width: min(100%, 72svh); aspect-ratio: 1; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.cover-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.cover-btn:hover img { transform: scale(1.025); }

/* Entrance */
.rel .side > *, .rel .stage { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.rel .stage { transition-delay: .1s; }
.rel.in .side > *, .rel.in .stage { opacity: 1; transform: none; }

/* Performances page */
.cover-btn.wide { width: 100%; aspect-ratio: 16 / 9; }
.cover-btn { position: relative; }
.cover-btn .play-icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 1px solid rgba(242,242,238,.85); border-radius: 50%; background: rgba(11,11,10,.35); transition: opacity .3s; }
.cover-btn .play-icon::before { content: ""; position: absolute; left: 53%; top: 50%; transform: translate(-50%, -50%); border-left: 13px solid #f2f2ee; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
@media (hover: hover) {
  .cover-btn .play-icon { opacity: 0; }
  .cover-btn:is(:hover, :focus-visible) .play-icon { opacity: 1; }
}
.set-player { display: block; width: min(100%, 72svh); aspect-ratio: 1; border: 0; background: rgba(0,0,0,.3); }
.set-player.wide { width: 100%; aspect-ratio: 16 / 9; }
.stage.playing .cover-btn { display: none; }
.perf-hero .hero-img { object-position: 50% 40%; opacity: .5; }
.all-mixes { margin: 0; padding: clamp(72px, 10vw, 140px) var(--gutter) 0; font-size: 14px; }
.all-mixes a { color: rgba(242,242,238,.6); border-bottom: 1px solid rgba(242,242,238,.2); transition: color .2s; }
.all-mixes a:hover { color: var(--fg); }
.all-mixes + .pager { padding-top: 48px; }
.tracklist .dialog-body { grid-template-columns: 1fr; }
.tracklist { max-width: 560px; }

/* Pager */
.pager { padding: clamp(72px, 10vw, 140px) var(--gutter) 0; }
.pager a { display: inline-flex; flex-direction: column; gap: 4px; font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.pager a:hover span:last-child { color: var(--accent); }
.disco .site-footer { margin-top: clamp(64px, 8vw, 120px); }

@media (max-width: 860px) {
  .disco-hero { align-items: flex-end; }
  .disco-hero .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .selected { position: static; align-items: flex-start; text-align: left; justify-self: start; padding-left: .55em; }
  .sel-words { justify-items: start; }
  .rel { grid-template-columns: 1fr; min-height: auto; padding-top: 96px; gap: 28px; }
  .stage { order: -1; }
  .cover-btn, .set-player { width: 100%; }
  .rel .blurb, .rel p.ph { padding: 28px 0 28px 1.05em; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rel .side > *, .rel .stage { opacity: 1; transform: none; }
  .sel-line, .sel-line .w > span { transition: none !important; }
}
