@font-face {
  font-family: 'Revolusi';
  /* Subset WOFF2 (created by tools/optimize-media.sh) with the full TTF as
     fallback, so the wordmark still renders before optimisation is run. */
  src: url('../fonts/revolusi-mhuncho.woff2') format('woff2'),
       url('../fonts/Revolusi Timur Tengah.ttf') format('truetype');
  font-display: swap;
}

:root {
  --background: #0b0b0c;
  --surface: #111112;
  --heading: #241315;
  --border: #363235;
  --text: #e5e2de;
  --muted: #b2adaa;
  --red: #9c414b;
  --backdrop-shade: .15;
  color-scheme: dark;
  font-family: Tahoma, Verdana, sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.75rem; }
/* No px font-size on :root, so rem units follow the visitor's browser text
   size preference; the old 14px base is restored here as a scalable rem. */
body { margin: 0; background: var(--background); color: var(--text); position: relative; isolation: isolate; font-size: 0.875rem; }
a { color: inherit; text-underline-offset: 0.1875rem; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
img { display: block; max-width: 100%; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #e3a4ab; outline-offset: 4px; }
::selection { background: #80323b; color: #fff; }
h1, h2, h3, p, dl { margin: 0; }
.skip-link { position: fixed; left: 0.75rem; top: 0.75rem; z-index: 100; padding: 0.625rem 1rem; background: #eee; color: #111; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* The image stays still until the page scrolls. */
.site-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #06090a; }
/* The backdrop figure stands right of centre: 80% keeps him in frame when portrait screens crop the sides. */
.site-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 40%; transform: scale(1.06); will-change: transform; }
.site-backdrop::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--backdrop-shade)); pointer-events: none; }
.topbar { min-height: 2.75rem; padding: 0.625rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--background); border-bottom: 1px solid var(--border); font-size: 0.75rem; }
.topbar a { text-decoration: none; }
.topbar span { color: var(--muted); }
.hero { min-height: 28.75rem; height: calc(100vh - 6.25rem); height: calc(100svh - 6.25rem); position: relative; }
#hero-wordmark { position: absolute; bottom: 6.5rem; left: 1.75rem; right: 1.75rem; font-family: 'Revolusi', Tahoma, sans-serif; font-weight: 400; font-size: clamp(6.25rem, 16vw, 25rem); line-height: .9; letter-spacing: -.04em; color: #f4f2ee; pointer-events: none; }
.hero-bottom { position: absolute; bottom: 1.75rem; left: 2rem; right: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.hero-bottom a { font-size: 0.875rem; color: #fff; }
.hero-bottom .hero-track { font-size: 1.625rem; font-weight: 700; text-decoration: none; }
.hero-track span { padding-left: 1.25rem; font-size: 1.25rem; font-weight: 400; }
.hero-era { margin: 0; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; color: #cfc8c4; }
.site-nav { position: sticky; top: 0; z-index: 20; min-height: 3.5rem; display: flex; align-items: stretch; gap: 1.5rem; padding: 0 1.5rem; background: #111112; border-top: 2px solid #6c2831; border-bottom: 1px solid var(--border); }
.site-nav a { display: flex; align-items: center; text-decoration: none; padding: 0.8125rem 1rem; font-size: 0.875rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current='location'] { background: #32181d; color: #fff; }
.site-nav .nav-home { font-family: 'Revolusi', Tahoma, sans-serif; font-size: 1.5rem; line-height: 1; padding-left: 0; padding-right: 1.5rem; border-right: 1px solid var(--border); }
.nav-sections { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.site-nav .nav-top { margin-left: auto; font-size: 1.25rem; }

/* Continuous desktop layout, with simple section borders and title bars. */
.site-body { display: grid; grid-template-columns: 14rem minmax(0, 1fr) 18.125rem; gap: 1.5rem; padding: 1.5rem; align-items: start; background: var(--background); }
.artist-sidebar, .music-sidebar, .primary-content { min-width: 0; display: grid; gap: 1.5rem; align-content: start; }
.panel { border: 1px solid var(--border); background: var(--surface); min-width: 0; scroll-margin-top: 1.25rem; }
.panel-heading { padding: 0.625rem 0.875rem; min-height: 2.875rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); background: var(--heading); }
.panel-heading h2 { font-size: 1.0625rem; line-height: 1.35; font-weight: 700; }
.panel-heading > a, .panel-heading > span { font-size: 0.75rem; color: #c5b7b8; }
.panel-body { padding: 1rem; }
.panel-body p + p { margin-top: 1rem; }
.fan-note { padding-top: 0.875rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); }
.artist-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.artist-facts { padding: 0.875rem 0; margin: 0.875rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 0.75rem; }
.artist-facts > div { display: grid; grid-template-columns: 3.625rem minmax(0, 1fr); gap: 0.5rem; }
.artist-facts > div + div { margin-top: 0.4375rem; }
.artist-facts dt { color: var(--muted); }
.artist-facts dd { margin: 0; }
.link-list { padding: 0; margin: 0; list-style: none; }
.link-list li + li { border-top: 1px solid #2a282a; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.6875rem 0.875rem; text-decoration: none; font-size: 0.8125rem; }
.link-list a:hover { background: #1b191a; text-decoration: underline; }
.link-list a span { color: #b6878d; }
.sidebar-photo-link { display: block; text-decoration: none; border: 1px solid var(--border); }
.sidebar-photo-link img { width: 100%; height: auto; }
.sidebar-photo-link > span { display: flex; justify-content: space-between; background: #171314; padding: 0.625rem 0.875rem; font-size: 0.75rem; }
.video-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-player img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.video-player > button { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 1.25rem; border: 0; background: #0002; }
.video-player > button > span { padding: 0.8125rem 1.25rem; border: 1px solid #bcb5b5; background: #111e; font-size: 0.9375rem; }
.video-player > button > span > span { font-size: 0.75rem; margin-right: 0.75rem; }
.video-player > button:hover > span { background: #55212b; }
.video-player iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-footer { padding: 0.6875rem 0.875rem; display: flex; justify-content: space-between; gap: 1.125rem; align-items: center; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); }
.video-footer a { color: var(--text); }
.record-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.625rem, 1fr)); gap: 1.5rem 1.125rem; padding: 1.125rem; }
.album { min-width: 0; }
.album-link { display: block; text-decoration: none; }
.album .cover { display: block; aspect-ratio: 1; border: 1px solid var(--border); background: #1b1b1b; }
.album .cover img { width: 100%; height: 100%; object-fit: cover; }
.album-name { display: block; margin-top: 0.5625rem; font-size: 0.8125rem; line-height: 1.45; }
.album-type { display: block; font-size: 0.6875rem; color: var(--muted); margin-top: 0.1875rem; }
.album-type a { color: #caabad; }
.album-link:hover .album-name { text-decoration: underline; }
.album-link:hover .cover { border-color: #ab7077; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; padding: 1rem; }
.gallery-item { display: block; padding: 0; width: 100%; border: 1px solid #454044; background: #080808; aspect-ratio: 4 / 5; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover { border-color: #c59ba0; }
.video-archive summary { cursor: pointer; padding: 0.875rem; font-size: 0.8125rem; }
.video-archive iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-top: 1px solid var(--border); }
.project-art { display: block; }
.project-art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.project-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding: 0.75rem 0.875rem; border-top: 1px solid var(--border); font-size: 0.75rem; }
.spotify-player { width: 100%; height: 22rem; border: 0; display: block; background: #181818; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem; border-top: 1px solid var(--border); background: var(--background); color: var(--muted); font-size: 0.75rem; }
.site-footer > a { white-space: nowrap; }

/* Native dialog handles focus and Escape. */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 1.25rem 1.75rem; border: 0; background: #080808f5; color: var(--text); overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; }
.lightbox::backdrop { background: #000c; }
.lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
#lb-caption { font-size: 0.75rem; color: #d1cac7; }
#lb-img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox button { background: #191719; border: 1px solid #665b60; padding: 0.5rem 1rem; min-height: 2.625rem; font-size: 0.8125rem; white-space: nowrap; }
.lightbox button:hover { background: #3b1c24; }
.lightbox-controls { display: flex; justify-content: center; gap: 1rem; }

/* Shared 404 page. */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
.nf-wrap { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; text-align: center; padding: 1.5rem; }
.nf-404 { font-size: clamp(3rem, 8vw, 6.25rem); line-height: 1; }
.nf-mini { font-family: 'Revolusi', Tahoma, sans-serif; font-size: 1.875rem; }
.nf-note { margin: 0; font-size: 0.75rem; color: var(--muted); }

@media (min-width: 2100px) {
  .site-body { grid-template-columns: 16.25rem minmax(0, 1fr) 21.25rem; gap: 1.75rem; padding: 1.75rem; }
  .record-grid { grid-template-columns: repeat(auto-fill, minmax(10.625rem, 1fr)); }
}
@media (max-width: 1360px) {
  .site-body { grid-template-columns: 12.5rem minmax(0, 1fr) 16.25rem; gap: 1.125rem; padding: 1.25rem; }
  .artist-sidebar, .music-sidebar, .primary-content { gap: 1.125rem; }
  .record-grid { grid-template-columns: repeat(auto-fill, minmax(7.75rem, 1fr)); gap: 1.25rem 0.875rem; padding: 0.875rem; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .site-body { grid-template-columns: 11.875rem minmax(0, 1fr); }
  .music-sidebar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .site-nav { gap: 0.75rem; padding: 0 1.25rem; }
  .site-nav a { padding-left: 0.8125rem; padding-right: 0.8125rem; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 4.125rem; }
  .topbar { padding: 0.5625rem 1rem; font-size: 0.6875rem; }
  .hero { height: calc(100vh - 6.25rem); height: calc(100svh - 6.25rem); min-height: 25.625rem; }
  .hero-era { display: none; }
  #hero-wordmark { font-size: 18vw; left: 1.125rem; right: 1.125rem; bottom: 6.25rem; }
  .hero-bottom { left: 1.25rem; right: 1.25rem; bottom: 1.75rem; }
  .hero-bottom .hero-track { font-size: 1.3125rem; }
  .hero-bottom > a:last-child { font-size: 0.75rem; }
  .site-nav { gap: 0; padding: 0 0.75rem; }
  .site-nav .nav-home { display: none; }
  .nav-sections { flex: 1; }
  .site-nav a { padding: 0.875rem 0.75rem; font-size: 0.8125rem; }
  .site-nav .nav-top { padding-right: 0.25rem; padding-left: 1rem; }
  .site-body { display: flex; flex-direction: column; padding: 1rem; gap: 1.25rem; }
  .primary-content { order: 0; width: 100%; gap: 1.25rem; }
  .artist-sidebar { order: 1; width: 100%; grid-template-columns: 1fr 1fr; align-items: start; }
  .artist-photo { max-height: 18.75rem; object-position: center 35%; }
  .sidebar-photo-link { display: none; }
  .music-sidebar { order: 2; width: 100%; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .record-grid { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.625rem; padding: 0.75rem; }
  .site-footer { padding: 1.25rem 1rem; font-size: 0.6875rem; align-items: start; }
  .lightbox { padding: 1rem; }
}
@media (max-width: 480px) {
  .topbar { min-height: 2.5rem; font-size: 0.625rem; }
  .hero { min-height: 24.375rem; }
  .hero-bottom { left: 1rem; right: 1rem; }
  .hero-bottom .hero-track { font-size: 1.1875rem; }
  .hero-track span { padding-left: 0.5rem; font-size: 1rem; }
  .hero-bottom > a:last-child { font-size: 0.6875rem; }
  .site-body { padding: 0.75rem; }
  .panel-heading { padding: 0.625rem 0.75rem; gap: 0.75rem; }
  .panel-heading h2 { font-size: 1rem; }
  .panel-heading > a, .panel-heading > span { font-size: 0.6875rem; }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.875rem; padding: 0.875rem; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5625rem; padding: 0.75rem; }
  .artist-sidebar, .music-sidebar { grid-template-columns: 1fr; }
  .artist-photo { aspect-ratio: 1; max-height: none; }
  .artist-facts { font-size: 0.8125rem; }
  .panel-body { font-size: 0.875rem; }
  .video-player > button > span { font-size: 0.8125rem; padding: 0.625rem 0.875rem; }
  .video-footer { align-items: start; flex-direction: column; gap: 0.25rem; font-size: 0.6875rem; }
  .site-footer { flex-direction: column; gap: 0.875rem; }
  .lightbox-toolbar { gap: 0.75rem; align-items: start; }
  #lb-caption { font-size: 0.6875rem; }
  .lightbox button { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-backdrop img { transform: none !important; }
}
/* Compact record lists keep artwork, credits and dates together. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.catalogue-section { container-type: inline-size; }
.catalogue-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.625rem 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.catalogue-toolbar label { font-size: 0.8125rem; color: var(--muted); }
.catalogue-toolbar input { width: min(22.5rem, 65%); border: 1px solid #5b5156; border-radius: 0; background: #0b0b0c; color: var(--text); padding: 0.5rem 0.625rem; font: inherit; font-size: 0.8125rem; }
.catalogue-toolbar input:focus-visible, .catalogue-toolbar select:focus-visible { outline: 2px solid #e3a4ab; outline-offset: 2px; }
.catalogue-toolbar select { margin-left: auto; border: 1px solid #5b5156; border-radius: 0; background: #0b0b0c; color: var(--text); padding: 0.5rem 0.625rem; font: inherit; font-size: 0.8125rem; cursor: pointer; }
.catalogue-list, .catalogue-tracks { list-style: none; padding: 0; margin: 0; }
.catalogue-group-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.4375rem 1rem; border-bottom: 1px solid #2a282a; background: #171314; font-size: 0.75rem; letter-spacing: 0.08em; color: #caabad; }
.catalogue-group-title span { font-weight: 400; letter-spacing: 0; color: var(--muted); }
.catalogue-tracks { display: grid; grid-template-columns: minmax(0, 1fr); }
.catalogue-track { border-bottom: 1px solid #2a282a; min-width: 0; }
/* The whole row is the link; the Listen label is only a visual cue. */
.catalogue-link { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 0.875rem; align-items: center; height: 100%; padding: 0.8125rem 1rem; text-decoration: none; }
.catalogue-link:hover { background: #1b191a; }
.catalogue-link:hover .catalogue-title { text-decoration: underline; }
.catalogue-link:focus-visible { outline-offset: -3px; }
.catalogue-art { width: 3.5rem; height: 3.5rem; object-fit: cover; border: 1px solid #40383c; background: #171315; }
.catalogue-info { min-width: 0; }
.catalogue-title { display: block; font-size: 0.875rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.catalogue-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.75rem; margin-top: 0.3125rem; font-size: 0.75rem; color: #b9b1b0; line-height: 1.5; }
.catalogue-year { padding-left: 0.75rem; border-left: 1px solid #514347; color: #caabad; white-space: nowrap; }
.catalogue-listen { font-size: 0.75rem; white-space: nowrap; color: #b6878d; }
.catalogue-link:hover .catalogue-listen { color: #fff; }
/* Alternate takes sit under the title, outside the row link. */
.catalogue-versions { margin-top: -0.375rem; padding: 0 1rem 0.75rem 5.375rem; font-size: 0.6875rem; color: var(--muted); }
.catalogue-versions a { color: #caabad; }
.catalogue-message { grid-column: 1 / -1; padding: 1.5rem 1rem; color: var(--muted); font-size: 0.8125rem; }
.catalogue-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1rem; font-size: 0.75rem; color: var(--muted); }
.catalogue-more { background: #1b181a; border: 1px solid #5b5156; padding: 0.4375rem 0.6875rem; font-size: 0.75rem; }
.catalogue-more:hover { background: #3b1c24; }
.catalogue-source { padding: 0 1rem 0.875rem; font-size: 0.6875rem; color: var(--muted); }
@container (min-width: 940px) {
  .catalogue-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue-track:nth-child(odd) { border-right: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .catalogue-toolbar { gap: 0.625rem; padding: 0.75rem; }
  .catalogue-toolbar label { font-size: 0.6875rem; }
  .catalogue-toolbar input { flex: 1; min-width: 0; font-size: 0.75rem; }
  .catalogue-toolbar select { margin-left: 0; font-size: 0.75rem; }
  .catalogue-link { grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: 0.625rem; padding: 0.75rem; }
  .catalogue-group-title { padding: 0.4375rem 0.75rem; }
  .catalogue-versions { padding: 0 0.75rem 0.625rem 4.125rem; }
  .catalogue-art { width: 2.75rem; height: 2.75rem; }
  .catalogue-title { font-size: 0.8125rem; }
  .catalogue-meta { font-size: 0.6875rem; gap: 0.125rem 0.5rem; }
  .catalogue-year { padding-left: 0.5rem; }
  .catalogue-listen { font-size: 0.6875rem; }
  .catalogue-footer { flex-wrap: wrap; padding: 0.75rem; gap: 0.625rem; }
}

/* Click-to-load placeholder for third-party players (Spotify in Listen). */
.embed-player { position: relative; min-height: 12.5rem; display: grid; place-items: center; background: #181818; }
.embed-player > button { display: grid; place-items: center; width: 100%; height: 100%; min-height: 12.5rem; padding: 1.25rem; border: 0; background: none; }
.embed-player > button > span { padding: 0.8125rem 1.25rem; border: 1px solid #bcb5b5; background: #111e; font-size: 0.9375rem; }
.embed-player > button > span > span { font-size: 0.75rem; margin-right: 0.75rem; }
.embed-player > button:hover > span { background: #55212b; }

/* Fan edits: vertical TikTok players, click-to-load like the other embeds. */
.fan-edit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1rem; }
.fan-edit { margin: 0; min-width: 0; display: grid; gap: 0.5rem; align-content: start; }
.fan-edit-player { position: relative; aspect-ratio: 9 / 16; background: radial-gradient(circle at 50% 38%, #2a1a20 0%, #0d0d0f 78%); border: 1px solid var(--border); overflow: hidden; }
.fan-edit-player > button { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 1rem; border: 0; background: none; }
.fan-edit-player > button > span { padding: 0.6875rem 1rem; border: 1px solid #bcb5b5; background: #111e; font-size: 0.8125rem; text-align: center; }
.fan-edit-player > button > span > span { display: block; font-size: 1.375rem; margin-bottom: 0.375rem; }
.fan-edit-player > button:hover > span { background: #55212b; }
.fan-edit-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fan-edit figcaption { font-size: 0.75rem; color: var(--muted); }
.fan-edit figcaption a { color: #caabad; }
.fan-edit-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 1rem; padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
.fan-edit-footer p { margin: 0; font-size: 0.75rem; color: var(--muted); }
.fan-edit-footer p a { color: #caabad; }
.submit-soon { padding: 0.5rem 0.875rem; border: 1px dashed #59464c; background: #1a1518; color: #9c8f93; font-size: 0.75rem; cursor: default; }
@media (max-width: 760px) { .fan-edit-grid { grid-template-columns: 1fr; } }

/* Sidebar panels built by sidebar.js. Each sidebar runs the full height of the
   main column, and its .sidebar-sticky group stays in view while the main
   column scrolls; screens too short to show the group whole skip that. */
.sidebar-sticky { display: grid; gap: inherit; align-content: start; }
@media (min-width: 761px) and (min-height: 50rem) {
  .artist-sidebar { align-self: stretch; display: flex; flex-direction: column; }
  .artist-sidebar .sidebar-sticky { position: sticky; top: 5.25rem; }
}
@media (min-width: 1101px) and (min-height: 50rem) {
  .music-sidebar { align-self: stretch; display: flex; flex-direction: column; }
  .music-sidebar .sidebar-sticky { position: sticky; top: 5.25rem; }
}
/* Where a sidebar becomes a grid of panels, the group's panels join that grid. */
@media (max-width: 1100px) { .music-sidebar .sidebar-sticky { display: contents; } }
@media (max-width: 760px) { .sidebar-sticky { display: contents; } }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #2a282a; }
.stat { display: grid; gap: 0.125rem; padding: 0.75rem 0.875rem; background: var(--surface); text-decoration: none; }
a.stat:hover { background: #1b191a; }
.stat-value { font-size: 1.375rem; font-weight: 700; line-height: 1.2; color: #f4f2ee; }
.stat-label { font-size: 0.6875rem; color: var(--muted); }

/* Eras: a timeline whose rule runs through the centre of the thumbnails. */
.era-list { position: relative; list-style: none; margin: 0; padding: 0.375rem 0; }
.era-list::before { content: ''; position: absolute; left: 1.75rem; top: 1rem; bottom: 1rem; width: 1px; background: var(--border); }
.era { position: relative; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.625rem; align-items: center; padding: 0.25rem 0.875rem; text-decoration: none; }
.era:hover { background: #1b191a; }
.era:hover .era-name { text-decoration: underline; }
.era-art { width: 1.75rem; height: 1.75rem; object-fit: cover; border: 1px solid #40383c; background: #171315; }
.is-current .era-art { border-color: #c59ba0; }
.era-name { display: block; font-size: 0.8125rem; line-height: 1.35; overflow-wrap: anywhere; }
.era-meta { display: block; font-size: 0.6875rem; line-height: 1.5; color: var(--muted); }
.era-now { padding: 0 0.3125rem; border: 1px solid #a66d77; font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: #e7c2c7; }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid #2a282a; }
.side-track { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.75rem; align-items: center; padding: 0.625rem 0.875rem; text-decoration: none; }
.side-track:hover { background: #1b191a; }
.side-track:hover .side-track-title { text-decoration: underline; }
.side-track img { width: 2.75rem; height: 2.75rem; object-fit: cover; border: 1px solid #40383c; background: #171315; }
.side-track-title { display: block; font-size: 0.8125rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.side-track-meta { display: block; margin-top: 0.125rem; font-size: 0.6875rem; color: var(--muted); }
.latest-drop .side-track { grid-template-columns: 4rem minmax(0, 1fr); padding: 0.875rem; }
.latest-drop .side-track img { width: 4rem; height: 4rem; }
.side-empty { padding: 0.875rem; font-size: 0.75rem; color: var(--muted); }
.stat:focus-visible, .era:focus-visible, .side-track:focus-visible { outline-offset: -3px; }
.panel-action { border: 1px solid #5b5156; background: #1b181a; padding: 0.25rem 0.625rem; font-size: 0.75rem; white-space: nowrap; }
.panel-action:hover { background: #3b1c24; }

/* Footer with contact and legal links. */
.site-footer { flex-wrap: wrap; }
.footer-info { min-width: 0; display: grid; gap: 0.625rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.375rem; font-size: 0.75rem; }
.footer-links a, .footer-links button { padding: 0; border: 0; background: none; font: inherit; font-size: 0.75rem; color: #caabad; text-decoration: underline; text-underline-offset: 0.1875rem; }
.footer-links a:hover, .footer-links button:hover { color: #fff; }
.footer-links > span { color: #5a5457; }

/* Cookie consent banner (UK PECR). Shown by consent.js, hidden by default. */
.cookie-consent { position: fixed; right: 0.75rem; bottom: 0.75rem; z-index: 60; display: grid; gap: 0.875rem; max-width: 26rem; padding: 1rem 1rem 1.125rem; border: 1px solid #4a3b40; border-top: 2px solid #6c2831; background: #161214; box-shadow: 0 1rem 2rem #000c; }
.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 0; font-size: 0.75rem; line-height: 1.55; color: var(--text); }
.cookie-consent a { color: #e3a4ab; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions button { min-height: 2.5rem; padding: 0.5rem 0.875rem; border: 1px solid #59464c; background: #201519; font-size: 0.75rem; color: #e7c2c7; }
.cookie-actions button:hover { background: #3b1c24; }
.cookie-actions #cookie-accept { background: #55212b; border-color: #a66d77; color: #fff; }
@media (max-width: 480px) { .cookie-consent { left: 0.75rem; max-width: none; } }

/* Legal pages: privacy policy, cookie policy, terms of use. */
.legal-wrap { max-width: 60rem; margin: 0 auto; padding: 1.5rem 2rem; }
.legal-wrap .panel-heading h1 { font-size: 1.375rem; line-height: 1.35; }
.legal-body { padding: 1.5rem 2rem 2.25rem; display: grid; gap: 1.375rem; }
.legal-body h2 { font-size: 1.0625rem; line-height: 1.4; }
.legal-body p, .legal-body li { font-size: 0.9375rem; }
.legal-body ul { margin: 0; padding-left: 1.5rem; display: grid; gap: 0.5rem; }
.legal-body p + p { margin-top: 0; }
.legal-updated { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.legal-note { padding: 1rem 1.25rem; border: 1px solid var(--border); background: #171314; font-size: 0.875rem; color: #cfc8c4; }
.legal-note a { color: #e3a4ab; }
.legal-note .link-button { padding: 0; border: 0; background: none; font: inherit; font-size: inherit; color: #e3a4ab; text-decoration: underline; text-underline-offset: 0.1875rem; }
.legal-note .link-button:hover { color: #fff; }
.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 0.625rem 0.875rem; text-align: left; vertical-align: top; }
.legal-table thead th { background: var(--heading); }
.legal-table tbody th { font-weight: 700; }
@media (max-width: 760px) { .legal-wrap { padding: 1rem; } .legal-body { padding: 1rem 1rem 1.5rem; } .legal-body p, .legal-body li { font-size: 0.875rem; } .legal-table { font-size: 0.8125rem; } }

/* The Masks: a plain list of stills, which assets/js/masks.js upgrades (.is-live) to a
   stage pinned for several screens of scrolling while a 3D mask repaints through the eras. */
.masks { padding: 3rem 1.5rem; background: rgba(11, 11, 12, 0.88); border-bottom: 1px solid var(--border); }
.masks-stage { max-width: 75rem; margin: 0 auto; }
.masks-canvas, .masks-rail { display: none; }
.masks-copy h2 { font-size: 0.75rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: #cfc8c4; }
.masks-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.mask-era img { width: 100%; height: auto; }
.mask-num { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #e3a4ab; }
.mask-caption h3 { margin: 0.25rem 0 0.625rem; font-size: 1.5rem; line-height: 1.2; color: #f4f2ee; }
.mask-caption h3 span { display: block; margin-top: 0.25rem; font-size: 0.875rem; font-weight: 400; color: var(--muted); }
.mask-text { color: var(--muted); max-width: 30rem; }
.masks-key { margin: 1.5rem 0 0; max-width: 30rem; font-size: 0.75rem; line-height: 1.5; color: var(--muted); }
.masks-key strong { font-weight: 400; color: #cfc8c4; }

.masks.is-live { height: 400vh; height: 400svh; padding: 0; background: none; border: 0; }
.masks.is-live .masks-stage { position: sticky; top: 0; height: 100vh; height: 100svh; max-width: none; display: grid; grid-template-columns: minmax(15rem, 25rem) 1fr auto; align-items: center; gap: 2rem; padding: 4.5rem 4vw 2rem; overflow: hidden; background: radial-gradient(ellipse 60% 70% at var(--mask-x) var(--mask-y), transparent 35%, rgba(0, 0, 0, 0.6) 100%); }
.masks.is-live .masks-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.masks.is-live .masks-copy, .masks.is-live .masks-rail { z-index: 1; }
.masks.is-live .masks-list { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 1rem; }
.masks.is-live .mask-era { grid-area: 1 / 1; }
/* Until the 3D is ready (or if it can't load) the active era's still stands in for it,
   in the box masks.js works out for the mask. */
.masks.is-live .mask-era img { position: absolute; left: var(--mask-x); top: var(--mask-y); width: var(--mask-w); height: var(--mask-h); max-width: none; object-fit: contain; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.masks.is-live .mask-era.is-active img { opacity: 1; }
.masks.is-live.is-3d .mask-era img { visibility: hidden; }
.masks.is-live .mask-caption { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.45s, transform 0.45s; }
.masks.is-live .mask-era.is-active .mask-caption { opacity: 1; transform: none; }
.masks.is-live .mask-caption h3 { font-size: 2rem; }
.masks.is-live .masks-rail { grid-column: 3; display: flex; flex-direction: column; gap: 0.25rem; }
.masks-rail a { padding: 0.375rem 0.75rem; border-left: 2px solid var(--border); font-size: 0.8125rem; text-decoration: none; color: var(--muted); }
.masks-rail a[aria-current='true'] { border-color: var(--red); color: #fff; }
@media (max-width: 760px) {
  .masks { padding: 2rem 1rem; }
  .masks-list { grid-template-columns: 1fr; gap: 2rem; }
  .mask-era img { max-width: 20rem; margin: 0 auto; }
}
/* Phones and portrait tablets stack the stage: rail, mask, caption. Same query as masks.js. */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .masks.is-live { height: 320vh; height: 320svh; padding: 0; }
  .masks.is-live .masks-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; align-items: end; gap: 0; padding: 4.25rem 1rem 1.25rem; background: radial-gradient(ellipse 80% 55% at var(--mask-x) var(--mask-y), transparent 35%, rgba(0, 0, 0, 0.6) 100%); }
  .masks.is-live .masks-rail { grid-row: 1; grid-column: 1; flex-direction: row; justify-content: center; }
  .masks-rail a { border-left: 0; border-bottom: 2px solid var(--border); }
  .masks.is-live .masks-copy { grid-row: 3; padding: 1rem; background: rgba(11, 11, 12, 0.72); }
  .masks.is-live .mask-caption h3 { font-size: 1.375rem; }
  .masks.is-live .mask-text { font-size: 0.8125rem; }
  /* The rail and the menu already name the section; keep the pinned caption short. */
  .masks.is-live .masks-copy > h2 { display: none; }
  .masks.is-live .masks-list { margin-top: 0; }
  .masks.is-live .masks-key { margin-top: 0.625rem; font-size: 0.6875rem; }
  .masks.is-live .masks-key-more { display: none; }
}
/* Short phones: a tighter caption panel, so the mask keeps its size. */
@media (max-width: 760px) and (max-height: 720px) {
  .masks.is-live .masks-stage { padding-bottom: 0.5rem; }
  .masks.is-live .masks-copy { padding: 0.625rem 0.75rem; }
}
/* Landscape phones: the short names note is all that fits beside the caption. */
@media (max-height: 500px) {
  .masks.is-live .masks-key { margin-top: 0.625rem; }
  .masks.is-live .masks-key-more { display: none; }
}

/* Things he's said about the mask, dropped between the panels at uneven spots down the page. */
.scatter-quote { margin: 0; padding: 0.5rem 0 0.5rem 0.875rem; max-width: 34rem; border-left: 2px solid var(--red); }
.scatter-quote blockquote { margin: 0; font-size: 1.125rem; font-style: italic; line-height: 1.4; color: #f4f2ee; }
.scatter-quote figcaption { margin-top: 0.375rem; font-size: 0.75rem; color: var(--muted); }
.scatter-right { justify-self: end; padding: 0.5rem 0.875rem 0.5rem 0; border-left: 0; border-right: 2px solid var(--red); text-align: right; }
.scatter-in { margin-left: 12%; }
.scatter-mid { justify-self: center; }
.scatter-big { max-width: 42rem; }
.scatter-big blockquote { font-size: 1.625rem; line-height: 1.3; }
.artist-sidebar .scatter-quote, .music-sidebar .scatter-quote { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .scatter-in { margin-left: 6%; }
  .scatter-big blockquote { font-size: 1.375rem; }
}
