/* JBRecords — redesign 2026
   Layout: a concert hall after dark. The stage (video) opens the page, then a lit
   CD shelf you browse like a record shop: covers, spines or a programme list. */
:root {
  --hall: #0b0c13;        /* page ground: indigo-black of the darkened hall */
  --panel: #13151f;       /* raised surfaces: dialog, toolbar, list rows */
  --line: #272a3a;        /* hairlines and borders */
  --ink: #eceae2;         /* warm off-white text */
  --mute: #9c9eb2;        /* secondary text */
  --brass: #d1cd56;       /* JBRecords logo colour, the one accent */
  --spot: #4a3fc4;        /* stage-light violet, glow only */
  --brass-ink: #16160a;   /* text on brass */

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-xs: .78rem; --s-sm: .9rem; --s-md: 1rem; --s-lg: 1.25rem;
  --s-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --s-2xl: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
  --s-hero: clamp(3rem, 1.6rem + 7vw, 7.4rem);

  --wrap: 1240px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 68px;
  --bar-h: 34px;                       /* area switcher above the header */
  --top: calc(var(--bar-h) + var(--header-h));
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--hall); color: var(--ink);
  font: 400 var(--s-md)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* paints the band above a sticky header on notched phones */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--hall);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 400; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brass); color: var(--brass-ink); padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.eyebrow, .catno, .label {
  font: 500 var(--s-xs)/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
}
.catno { letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { font: 400 var(--s-2xl)/1.02 var(--f-display); letter-spacing: -.01em; }
.section-head h2 em { font-style: italic; color: var(--brass); }
.section-head p { color: var(--mute); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; padding: .7rem 1.25rem;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; text-decoration: none;
  font-weight: 600; font-size: var(--s-sm); letter-spacing: .01em;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn--brass { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.btn--brass:hover { background: var(--ink); border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--hall) 60%, transparent); transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h)); left: 0; right: 0; z-index: 50; height: var(--header-h);
  transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: color-mix(in srgb, var(--hall) 86%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 28px; height: auto; }
.brand span { font: 600 var(--s-md)/1 var(--f-body); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { text-decoration: none; padding: .55rem .9rem; border-radius: 999px; font-size: var(--s-sm); font-weight: 500; color: var(--ink); opacity: .82; transition: opacity .2s, background .2s; }
.nav a:hover, .nav a[aria-current="true"], .nav a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.nav .nav__cta { background: var(--brass); color: var(--brass-ink); opacity: 1; margin-left: .4rem; }
.nav .nav__cta:hover { background: var(--ink); }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; inset: calc(var(--top) + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--hall); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter-r) 1.2rem var(--gutter-l);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: .95rem .4rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: var(--s-lg); }
  .nav .nav__cta { margin: 1rem 0 0; text-align: center; border-radius: 999px; border: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(88svh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__video, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__video { object-fit: cover; filter: saturate(.9) contrast(1.05); }
.hero__shade {
  z-index: -1;
  background:
    radial-gradient(120% 80% at 80% 10%, color-mix(in srgb, var(--spot) 35%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--hall) 55%, transparent) 0%, color-mix(in srgb, var(--hall) 20%, transparent) 35%, color-mix(in srgb, var(--hall) 80%, transparent) 72%, var(--hall) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--hall) 75%, transparent), transparent 70%);
}
.hero__inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem 3rem; align-items: end; padding-block: calc(var(--top) + 4rem) 4.5rem; }
.hero__copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero__title { font: 400 var(--s-hero)/.92 var(--f-display); letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; font-style: italic; }
.hero__title .dash { color: var(--brass); font-style: normal; }
.hero .lead { font-size: var(--s-lg); max-width: 42ch; color: color-mix(in srgb, var(--ink) 88%, transparent); animation: fade-up .9s .35s var(--ease) both; }
.hero .eyebrow { color: var(--brass); animation: fade-up .9s .05s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; animation: fade-up .9s .5s var(--ease) both; }
.hero__actions .btn:not(.btn--brass) { background: color-mix(in srgb, var(--hall) 45%, transparent); backdrop-filter: blur(6px); }
.hero__controls { position: absolute; right: var(--gutter-r); bottom: 1.25rem; display: flex; gap: .5rem; }

/* featured release in the hero: jewel case with the disc sliding out */
.feature { justify-self: end; width: min(100%, 360px); text-decoration: none; display: grid; gap: 1rem; animation: fade-up 1s .45s var(--ease) both; }
.feature__stage { position: relative; aspect-ratio: 1.12; margin-right: 22%; }
.feature__stage .disc { position: absolute; top: 4%; bottom: 4%; left: 6%; width: auto; animation: disc-out 1.4s 1s var(--ease) both, spin 9s 2.4s linear infinite; }
.feature__stage img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: 0 30px 60px -20px #000, 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
.feature__cap { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); padding-top: .8rem; margin-right: 22%; }
.feature__cap strong { font: italic 400 var(--s-lg)/1.2 var(--f-display); }
.feature:hover .feature__stage img { transform: translateY(-4px); }
.feature__stage img { transition: transform .5s var(--ease); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 5.5rem; }
  .feature { justify-self: start; width: min(78%, 300px); }
}

/* ---------- the disc (CD) ---------- */
.disc {
  --label: var(--spine, #2a2d44);
  aspect-ratio: 1; width: 100%; border-radius: 50%; position: relative;
  background:
    radial-gradient(circle, var(--hall) 0 7%, #d9dbe2 7.4% 9.5%, color-mix(in srgb, #fff 30%, transparent) 9.6% 10.4%, transparent 10.5%),
    radial-gradient(circle, transparent 0 15%, var(--label) 15.2% 33%, transparent 33.2%),
    repeating-radial-gradient(circle, transparent 0 1.1px, rgba(255,255,255,.035) 1.2px 1.6px),
    conic-gradient(from 20deg, #babfca, #efe6c6, #a9d0e6, #cdb9ea, #e5f0b8, #b4bccc, #e9cdc4, #b4dcd8, #c6bcec, #babfca);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 18px 40px -16px #000;
}
.disc::after { /* moving glint */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0 20%, rgba(255,255,255,.55) 25%, transparent 31% 70%, rgba(255,255,255,.35) 75%, transparent 80%);
  mix-blend-mode: soft-light;
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 2.5rem; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; gap: .9rem; align-items: baseline; white-space: nowrap; }
.marquee__item b { font: italic 400 var(--s-xl)/1 var(--f-display); }
.marquee__item i { font: normal 500 var(--s-xs) var(--f-mono); color: var(--brass); letter-spacing: .06em; }

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 3rem + 4vw, 7rem); }

/* new releases slider */
.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 30%, 340px); gap: clamp(1.25rem, 3vw, 2.75rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: .5rem 18% 2rem .5rem; scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; display: grid; gap: 1rem; }
.slider__nav { display: flex; gap: .5rem; align-items: center; }
.slider__progress { height: 2px; background: var(--line); margin-top: .5rem; overflow: hidden; border-radius: 2px; }
.slider__progress span { display: block; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(.2); }
@supports (animation-timeline: scroll()) {
  .slider { timeline-scope: --slider; }
  .slider__track { scroll-timeline: --slider x; }
  .slider__progress span { animation: grow linear both; animation-timeline: --slider; }
}

/* ---------- cover card (shared by slider and catalog grid) ---------- */
.case { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.case__media { position: relative; aspect-ratio: 1.12; }
.case__media .disc { position: absolute; top: 5%; bottom: 5%; left: 5%; width: auto; transition: transform .8s var(--ease); }
.case__media img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; background: var(--panel);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 40px -24px #000; transition: transform .6s var(--ease), box-shadow .6s; }
.case:hover .case__media .disc, .case:focus-visible .case__media .disc { transform: translateX(34%) rotate(140deg); }
.case:hover .case__media img, .case:focus-visible .case__media img { transform: translateX(-4%); box-shadow: 0 30px 50px -24px #000; }
.case__play { position: absolute; left: .6rem; bottom: .6rem; z-index: 2; }

.meta { display: grid; gap: .3rem; min-width: 0; }
.meta h3 { font: 400 var(--s-lg)/1.2 var(--f-display); }
.meta .sub { font: italic 400 var(--s-sm)/1.3 var(--f-display); color: var(--mute); }
.meta .who { font-size: var(--s-sm); color: var(--mute); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.meta .snippet { font-size: var(--s-xs); color: var(--mute); border-left: 2px solid var(--brass); padding-left: .6rem; margin-top: .2rem; }
mark { background: color-mix(in srgb, var(--brass) 30%, transparent); color: var(--ink); border-radius: 2px; padding: 0 .1em; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: .35rem 0 0; padding: 0; }
.tags li { font: 500 .7rem/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); }

/* ---------- catalog ---------- */
.catalog { position: relative; }
.toolbar {
  position: sticky; top: calc(var(--top) + env(safe-area-inset-top, 0px)); z-index: 20;
  background: color-mix(in srgb, var(--hall) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--line); margin-bottom: 2rem;
}
.toolbar__row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; padding-block: .85rem; }
.search { position: relative; flex: 1 1 280px; min-width: 0; }
.search svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--mute); pointer-events: none; }
.search input {
  width: 100%; min-height: 46px; padding: .6rem 2.8rem .6rem 2.8rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); outline: none; transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--mute); }
.search input:focus { border-color: var(--brass); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 18%, transparent); }
.search .clear { position: absolute; right: .35rem; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border: 0; }
.select { min-height: 46px; padding: .5rem 2.2rem .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: right 1.1rem center, right .8rem center; background-size: 5px 5px; background-repeat: no-repeat; }
.views { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--panel); }
.views button { border: 0; background: none; min-height: 38px; padding: .3rem .85rem; border-radius: 999px; font-size: var(--s-sm); font-weight: 500; color: var(--mute); display: inline-flex; gap: .4rem; align-items: center; transition: background .2s, color .2s; }
.views button svg { width: 16px; height: 16px; }
.views button[aria-pressed="true"] { background: var(--ink); color: var(--hall); }
.chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .85rem; margin-top: -.1rem; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 36px; padding: .3rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-size: var(--s-sm); display: inline-flex; gap: .45rem; align-items: center; transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.chip small { font: 500 .72rem var(--f-mono); color: var(--mute); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.chip[aria-pressed="true"] small { color: var(--brass-ink); }
.chip:disabled { opacity: .35; cursor: default; }
.results { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; color: var(--mute); font-size: var(--s-sm); }
.results strong { color: var(--ink); font-weight: 600; }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 3rem clamp(1.25rem, 3vw, 2.5rem); }
.grid .item { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.grid .case__media .disc { left: 8%; }
@media (max-width: 760px) {
  .toolbar { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .select { flex: 1 1 auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .grid .tags { display: none; }
  .meta h3 { font-size: 1.05rem; }
}
@media (max-width: 420px) { .views button { padding-inline: .6rem; } .views button svg { display: none; } }

/* shelf view: CD spines on one shelf, the focused one opens to its cover */
.shelf { display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; padding: 1.5rem .25rem 0; scroll-snap-type: x proximity; scrollbar-width: thin; }
.shelf::after { content: ""; flex: none; width: 1px; }
.spine {
  --w: 46px; --h: min(clamp(300px, 46vh, 400px), calc((100vw - 120px) / 1.12));
  flex: none; width: var(--w); height: var(--h); position: relative; overflow: hidden; scroll-snap-align: center;
  border: 0; padding: 0; border-radius: 2px 2px 0 0; background: var(--spine); color: var(--ink);
  box-shadow: inset 3px 0 0 rgba(255,255,255,.14), inset -2px 0 0 rgba(0,0,0,.35), 0 10px 0 -6px rgba(0,0,0,.6);
  transition: width .6s var(--ease), transform .4s var(--ease);
}
.spine__text {
  position: absolute; inset: 0 auto 0 0; width: var(--w); display: flex; justify-content: space-between; align-items: center;
  writing-mode: vertical-rl; transform: rotate(180deg); padding: 1rem 0; gap: 1rem; text-align: left;
}
.spine__text b { font: 400 1rem/1 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 75%; }
.spine__text i { font: normal 500 .68rem/1 var(--f-mono); letter-spacing: .06em; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.spine img { position: absolute; left: var(--w); top: 0; height: 100%; width: auto; max-width: none; object-fit: cover; opacity: 0; transition: opacity .4s .1s; }
/* open spine: hover on desktop, keyboard focus, or first tap on touch screens (.is-open) */
@media (hover: hover) { .spine:hover { width: calc(var(--w) + var(--h) * 1.12); } .spine:hover img { opacity: 1; } }
.spine:focus-visible, .spine.is-open { width: calc(var(--w) + var(--h) * 1.12); }
.spine:focus-visible img, .spine.is-open img { opacity: 1; }
.spine__tap {
  position: absolute; right: .6rem; bottom: .6rem; z-index: 2; padding: .4rem .7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--hall) 80%, transparent); backdrop-filter: blur(6px); color: var(--ink);
  font: 500 .72rem/1 var(--f-body); white-space: nowrap; opacity: 0; transform: translateY(6px);
  transition: opacity .3s .3s, transform .3s .3s var(--ease); pointer-events: none;
}
.spine.is-open .spine__tap { opacity: 1; transform: none; }
.spine:focus-visible { outline-offset: -3px; }
.shelf-board { height: 14px; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #2b2d3d, #15161f); box-shadow: 0 20px 30px -18px #000; }
.shelf-hint { margin-top: 1rem; color: var(--mute); font-size: var(--s-sm); }

/* list view */
.list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 64px 7.5rem minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 1.25rem; align-items: center;
  padding: .8rem .5rem; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; width: 100%;
  transition: background .2s;
}
.row:hover { background: var(--panel); }
.row img { width: 64px; aspect-ratio: 1.12; object-fit: cover; border-radius: 2px; }
.row .t { font: 400 var(--s-lg)/1.2 var(--f-display); }
.row .who { color: var(--mute); font-size: var(--s-sm); }
.row .go { width: 18px; height: 18px; color: var(--mute); transition: transform .3s var(--ease), color .2s; }
.row:hover .go { transform: translateX(4px); color: var(--brass); }
@media (max-width: 760px) {
  .row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: .9rem; }
  .row img { width: 56px; }
  .row .catno-col, .row .who-col { display: none; }
  .row .t + .catno { display: block; }
}
.row .t + .catno { display: none; margin-top: .2rem; }

.empty { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 1rem; justify-items: center; }
.empty h3 { font: italic 400 var(--s-xl)/1.1 var(--f-display); }
.empty p { color: var(--mute); }
.empty .suggest { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }

/* ---------- artists ---------- */
.artists { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.artist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.artist:nth-child(even) .artist__photo { order: 2; }
.artist__photo { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 3.2; }
.artist__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.artist:hover .artist__photo img { transform: scale(1.04); }
.artist__body { display: grid; gap: 1.1rem; min-width: 0; }
.artist__body h3 { font: 400 var(--s-2xl)/1 var(--f-display); }
.artist__body h3 em { color: var(--brass); }
.artist__body p { color: color-mix(in srgb, var(--ink) 82%, transparent); max-width: 60ch; }
.artist__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.artist__facts dt { font: 500 var(--s-xs) var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.artist__facts dd { margin: .25rem 0 0; font: 400 var(--s-lg)/1.2 var(--f-display); }
@media (max-width: 760px) { .artist { grid-template-columns: 1fr; } .artist:nth-child(even) .artist__photo { order: 0; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); }
.contact__cards { display: grid; gap: 1rem; align-content: start; }
.contact__intro { color: var(--mute); max-width: 48ch; }
.person { border-top: 1px solid var(--line); padding-top: 1.1rem; display: grid; gap: .45rem; }
.person h3 { font: 400 var(--s-xl)/1.1 var(--f-display); }
.person .line { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.person .line a { text-decoration: none; font-size: var(--s-lg); border-bottom: 1px solid var(--line); transition: border-color .2s, color .2s; user-select: all; }
.person .line a:hover { border-color: var(--brass); color: var(--brass); }
.copy { min-height: 32px; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: none; font: 500 .72rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.copy:hover { color: var(--ink); border-color: var(--ink); }
.form { display: grid; gap: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font: 500 var(--s-xs) var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--hall); border-radius: 4px; padding: .8rem .9rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 15%, transparent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #e0866f; }
.hp { position: absolute; left: -9999px; }
.form__status { font-size: var(--s-sm); min-height: 1.4em; }
.form__status.ok { color: var(--brass); }
.form__status.err { color: #e9a08e; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__form.flash .form { animation: flash 1.2s var(--ease); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem calc(2.5rem + var(--player-h, 0px)); color: var(--mute); font-size: var(--s-sm); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.site-footer .brand span { color: var(--ink); }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.tagline { font: italic 400 var(--s-lg) var(--f-display); color: var(--ink); }

/* ---------- album dialog ---------- */
.album {
  width: min(1120px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--ink); overflow: hidden;
}
.album::backdrop { background: color-mix(in srgb, #05060a 78%, transparent); backdrop-filter: blur(6px); }
.album[open] { animation: dialog-in .5s var(--ease); }
.album[open]::backdrop { animation: fade .4s ease; }
.album__inner { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-rows: minmax(0, 1fr); height: min(780px, calc(100dvh - 2rem)); }
.album__art { position: relative; padding: clamp(1.5rem, 4vw, 3rem); background: radial-gradient(90% 70% at 30% 30%, color-mix(in srgb, var(--spine, var(--spot)) 75%, transparent), transparent 70%), var(--hall); display: grid; gap: 1.25rem; align-content: center; overflow: hidden; }
.album__stage { position: relative; margin-right: 18%; perspective: 1400px; }
.album__stage .disc { position: absolute; top: 5%; bottom: 5%; left: 4%; width: auto; animation: disc-out 1.1s .25s var(--ease) both, spin 8s 1.3s linear infinite; }
.album.is-playing .album__stage .disc { animation-duration: 1.1s, 2.2s; }
.flip { position: relative; aspect-ratio: 1.12; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.flip.is-flipped { transform: rotateY(180deg); }
.flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; backface-visibility: hidden; box-shadow: 0 40px 70px -30px #000, 0 0 0 1px rgba(255,255,255,.08); background: var(--panel); }
.flip .back { transform: rotateY(180deg); }
.album__art-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-right: 18%; }
.album__info { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.album__art { overflow-y: auto; }
.album__body { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.album__head { padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 1rem; display: grid; gap: .55rem; border-bottom: 1px solid var(--line); }
.album__top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.album__top .ctrl { display: flex; gap: .4rem; }
.album__head h2 { font: 400 clamp(1.6rem, 1.1rem + 1.4vw, 2.5rem)/1.08 var(--f-display); letter-spacing: -.005em; overflow-wrap: break-word; }
.album__head h2.is-long { font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); }
.album__head .sub { font: italic 400 var(--s-lg)/1.3 var(--f-display); color: var(--mute); }
.album__head .who { color: var(--mute); }
.tabs { display: flex; gap: .25rem; margin-top: .6rem; }
.tab { border: 0; background: none; padding: .55rem .9rem; border-radius: 999px; font-size: var(--s-sm); font-weight: 500; color: var(--mute); }
.tab[aria-selected="true"] { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.tab small { font: 500 .7rem var(--f-mono); }
.album__body { overflow-y: auto; padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 2rem; flex: 1; min-height: 0; overscroll-behavior: contain; }
.panel[hidden] { display: none; }
.panel { animation: fade-up .4s var(--ease); }
.program { display: grid; gap: 1.1rem; font-size: var(--s-sm); line-height: 1.65; }
.program p, .program ul { margin: 0; }
.program b, .program strong { font: 400 var(--s-lg)/1.3 var(--f-display); color: var(--ink); }
.program ul { padding-left: 1.1rem; color: var(--mute); }
.program li::marker { color: var(--brass); }
.about { display: grid; gap: 1rem; color: color-mix(in srgb, var(--ink) 85%, transparent); }
.about > * + * { padding-top: 1rem; border-top: 1px solid var(--line); }
.quote { margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.quote p { font: italic 400 var(--s-lg)/1.45 var(--f-display); }
.quote p::before { content: "„"; color: var(--brass); }
.quote p::after { content: "”"; color: var(--brass); }
.quote cite { font: 500 var(--s-xs) var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); font-style: normal; }
.album__foot { display: flex; gap: .6rem; flex-wrap: wrap; padding: 1rem clamp(1.25rem, 3vw, 2rem); border-top: 1px solid var(--line); background: var(--panel); }
/* short windows (laptops, zoomed-in browsers): scroll the whole info column so the title never gets squeezed */
@media (min-width: 861px) and (max-height: 700px) {
  .album__info { overflow-y: auto; }
  .album__body { overflow: visible; flex: none; }
  .album__foot { position: sticky; bottom: 0; }
}
@media (max-width: 860px) {
  .album { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .album__inner { grid-template-columns: 1fr; max-height: none; height: 100%; overflow-y: auto; }
  .album__art { padding-top: calc(1.25rem + env(safe-area-inset-top, 0px)); }
  .album__stage { max-width: 320px; }
  .album__body { overflow: visible; }
  .album__foot { position: sticky; bottom: 0; padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- audio player ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.player.is-on { transform: none; }
.player .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding-block: .7rem; }
.player .disc { width: 46px; animation: spin 2.4s linear infinite; animation-play-state: paused; }
.player.is-playing .disc { animation-play-state: running; }
.player__meta { display: grid; gap: .3rem; min-width: 0; }
.player__meta b { font: 400 var(--s-md)/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__seek { display: flex; align-items: center; gap: .6rem; font: 500 .72rem var(--f-mono); color: var(--mute); font-variant-numeric: tabular-nums; }
.player__seek input { flex: 1; accent-color: var(--brass); min-width: 0; }
.player__ctrl { display: flex; gap: .4rem; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 3px; background: var(--brass); height: 30%; animation: eq .9s ease-in-out infinite alternate; animation-play-state: paused; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
.player.is-playing .eq i { animation-play-state: running; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(1.5rem + var(--player-h, 0px) + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 70; background: var(--ink); color: var(--hall); padding: .7rem 1.1rem; border-radius: 999px; font-size: var(--s-sm); font-weight: 500; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

/* ---------- scroll reveals (CSS scroll-driven; content stays visible where unsupported) ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}

/* ---------- keyframes ---------- */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: .001; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes disc-out { from { transform: translateX(0); } to { transform: translateX(36%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes grow { from { transform: scaleX(.12); } to { transform: scaleX(1); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brass) 60%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}
.program .dur { font: 500 .78rem var(--f-mono); color: var(--mute); margin-left: .4rem; font-variant-numeric: tabular-nums; }

.btn .ext { width: 14px; height: 14px; opacity: .7; margin-left: -.2rem; }

/* album window on phones: one column, the whole window scrolls (cover first, then details) */
@media (max-width: 860px) {
  .album__inner { grid-template-columns: 1fr; grid-template-rows: auto auto; height: 100%; max-height: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .album__art { overflow: visible; padding-bottom: 1.5rem; }
  .album__stage { width: min(78%, 340px); max-width: none; }
  .album__info { overflow: visible; min-height: auto; }
  .album__body { overflow: visible; flex: none; }
  .album__foot { position: sticky; bottom: 0; z-index: 2; }
  .album__top { position: sticky; top: 0; }
}

/* catalog numbers never break mid-number */
.catno { white-space: nowrap; }
.album__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; white-space: normal; }
.album__meta span { white-space: nowrap; }

/* shelf spines: the catalog number keeps its full length, only the title shortens with "…" */
.spine__text i { flex: none; white-space: nowrap; }
.spine__text b { flex: 0 1 auto; min-height: 0; min-width: 0; }

/* programme: composer lines (bold in the source text) use the body font, semi-bold, so every album reads the same */
.program b, .program strong { font: 600 1em/1.5 var(--f-body); color: var(--ink); }

/* ---------- back to top ---------- */
.totop {
  --p: 0;
  position: fixed; z-index: 60; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1rem + var(--player-h, 0px) + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--hall) 82%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--ink); cursor: pointer; box-shadow: 0 12px 30px -12px #000;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease), bottom .3s var(--ease), color .2s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 100%; height: 100%; display: block; fill: none; }
.totop__track { stroke: var(--line); stroke-width: 2; }
.totop__ring { stroke: var(--brass); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: calc(var(--p) * 100) 100; transform: rotate(-90deg); transform-origin: 50% 50%; }
.totop__arrow { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.totop:hover { color: var(--brass); }
.totop:hover .totop__arrow { transform: translateY(-2px); }
.totop:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .totop, .totop__arrow { transition: opacity .2s; } }
