/* ==========================================================================
   ROTOR — vinyl records
   Dark by default; the light palette is a token swap on [data-theme="light"].
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

/* The `hidden` attribute is applied by the UA stylesheet, so ANY author
   `display` rule silently beats it. Without this line the modals -- which are
   `display: grid; position: fixed; inset: 0` -- stay laid out over the whole
   page at opacity 0 and swallow every click on the site. */
[hidden] { display: none !important; }

:root {
  --bg:        #0b0b0d;
  --bg-raised: #131317;
  --bg-sunk:   #08080a;
  --line:      rgba(232, 228, 220, 0.14);
  --line-soft: rgba(232, 228, 220, 0.07);
  --fg:        #e8e4dc;
  --fg-muted:  rgba(232, 228, 220, 0.62);
  --fg-faint:  rgba(232, 228, 220, 0.38);
  --accent:    #e0803c;
  --accent-2:  #f0b070;
  --accent-ink:#1a1005;
  --good:      #7cc98a;
  --bad:       #e0645c;

  --radius: 3px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --serif: 'Georgia', 'Times New Roman', serif;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

[data-theme="light"] {
  --bg:        #f6f4ef;
  --bg-raised: #ffffff;
  --bg-sunk:   #ece8e0;
  --line:      rgba(20, 18, 14, 0.16);
  --line-soft: rgba(20, 18, 14, 0.08);
  --fg:        #14120e;
  --fg-muted:  rgba(20, 18, 14, 0.66);
  --fg-faint:  rgba(20, 18, 14, 0.42);
  --accent:    #b7601f;
  --accent-2:  #8f4a15;
  --accent-ink:#fff6ec;
  --shadow: 0 24px 60px rgba(40, 30, 20, 0.16);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body.locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: -60px; left: 1rem; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── film grain ── */
body::after {
  content: '';
  position: fixed; inset: -100%;
  z-index: 300; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-3%,2%); }
  50% { transform: translate(2%,-3%); }
  75% { transform: translate(-2%,-2%); }
}

/* ── shared type ── */
.eyebrow {
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.12; letter-spacing: -0.01em;
  max-width: 18ch;
}

.section-inner { max-width: 1240px; margin: 0 auto; padding: 6rem 1.5rem; }

/* ── split text ── */
.split-mask {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: 0.14em; margin-bottom: -0.14em;
}
.split-inner {
  display: inline-block; transform: translateY(115%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.split.in .split-inner { transform: none; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85em 1.7em; border: 1px solid transparent;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); background: var(--line-soft); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--fg); transition: background 0.25s ease;
}
.icon-btn:hover { background: var(--line-soft); }
.icon-btn svg { width: 19px; height: 19px; }

.badge {
  position: absolute; top: 1px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 9px; font-size: 0.6rem; font-weight: 700; line-height: 1;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.brand-disc {
  width: 22px; height: 22px; border-radius: 50%;
  background:
    radial-gradient(circle, var(--accent) 0 18%, transparent 19%),
    repeating-radial-gradient(circle, var(--fg) 0 1px, transparent 1px 3px);
  opacity: 0.9;
  animation: spin 4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.brand-word {
  font-family: var(--serif); font-size: 1.15rem;
  letter-spacing: 0.3em; text-transform: uppercase;
}

.main-nav { display: flex; gap: 1.6rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.main-nav a { color: var(--fg-muted); position: relative; padding: 0.3rem 0; transition: color 0.2s ease; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover { color: var(--fg); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; }

.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--fg-faint); pointer-events: none; }
#search {
  width: 210px; padding: 0.5rem 1.9rem 0.5rem 2.1rem;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 0.82rem;
  transition: width 0.3s var(--ease), border-color 0.2s ease;
}
#search:focus { width: 260px; border-color: var(--accent); outline: none; }
#search::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 6px; width: 20px; height: 20px;
  color: var(--fg-faint); font-size: 1.1rem; line-height: 1;
}
.search-clear:hover { color: var(--fg); }

.currency {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.5rem 0.5rem; font-size: 0.78rem;
}

.i-sun { display: none; }
[data-theme="light"] .i-sun { display: block; }
[data-theme="light"] .i-moon { display: none; }

/* ── free-shipping meter ── */
.ship-bar { position: relative; background: var(--bg-sunk); overflow: hidden; }
.ship-bar-fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent) 12%, transparent));
  transition: width 0.6s var(--ease);
}
.ship-bar p {
  position: relative; text-align: center;
  padding: 0.4rem 1rem; font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  max-width: 1240px; margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem; align-items: center;
}

.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.4rem;
}

.hero-lead { color: var(--fg-muted); max-width: 46ch; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-facts { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-facts dt { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); }
.hero-facts dd { font-family: var(--serif); font-size: 2rem; line-height: 1.1; }

/* ── turntable, pure CSS ── */
.turntable { display: grid; place-items: center; }

.tt-plinth {
  position: relative; width: min(100%, 420px); aspect-ratio: 1 / 0.92;
  background: linear-gradient(150deg, var(--bg-raised), var(--bg-sunk));
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 7%;
}

.tt-platter {
  position: absolute; left: 6%; top: 8%;
  width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: var(--bg-sunk);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  display: grid; place-items: center;
}

.tt-record {
  position: relative; width: 94%; aspect-ratio: 1; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      #16161a 0 2px, #0e0e11 2px 3px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 10px 30px rgba(0,0,0,0.5);
  animation: spin 4.6s linear infinite;
  animation-play-state: running;
  display: grid; place-items: center;
}

.tt-label {
  width: 36%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent) 70%);
  display: grid; place-items: center;
}

.tt-spindle {
  position: absolute; width: 4%; aspect-ratio: 1; border-radius: 50%;
  background: var(--fg); opacity: 0.75;
}

.tt-arm {
  position: absolute; right: 11%; top: 13%;
  width: 6px; height: 46%;
  background: linear-gradient(var(--fg-faint), var(--fg-muted));
  border-radius: 3px; transform-origin: 50% 6px;
  transform: rotate(24deg);
  transition: transform 1.1s var(--ease);
}
.tt-arm::before {
  content: ''; position: absolute; left: -7px; top: -9px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-raised); border: 1px solid var(--line);
}
.tt-head {
  position: absolute; left: -5px; bottom: -6px;
  width: 16px; height: 12px; border-radius: 2px;
  background: var(--fg-muted);
}
.turntable:hover .tt-arm { transform: rotate(-6deg); }

.tt-controls {
  position: absolute; right: 8%; bottom: 8%;
  display: flex; align-items: center; gap: 0.6rem;
}
.tt-knob {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-raised); border: 1px solid var(--line);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.35);
}
.tt-speed {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.1em; color: var(--fg-faint);
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */

.marquee {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-sunk); overflow: hidden; padding: 0.7rem 0;
}
.marquee-track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.marquee span {
  font-family: var(--serif); font-size: 0.95rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint);
  white-space: nowrap;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ==========================================================================
   CATALOGUE
   ========================================================================== */

.catalog { max-width: 1240px; margin: 0 auto; padding: 5rem 1.5rem; }

.catalog-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem;
}

.catalog-controls { display: flex; align-items: flex-end; gap: 0.7rem; flex-wrap: wrap; }

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-label { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); }
.field input, .field select, .field textarea {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.6rem 0.75rem; font-size: 0.85rem;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field.invalid input { border-color: var(--bad); }
.field-error { display: block; color: var(--bad); font-size: 0.7rem; font-style: normal; min-height: 1em; }

.view-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { padding: 0.55rem 0.7rem; color: var(--fg-faint); transition: background 0.2s ease, color 0.2s ease; }
.view-toggle button.active { background: var(--line-soft); color: var(--fg); }
.view-toggle svg { width: 16px; height: 16px; }

.filters-toggle { display: none; }
.filter-tally {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  background: var(--accent); color: var(--accent-ink); border-radius: 9px;
  font-size: 0.62rem; font-weight: 700;
}

.catalog-body { display: grid; grid-template-columns: 230px 1fr; gap: 2.5rem; align-items: start; }

/* ── filters ── */
.filters {
  position: sticky; top: 92px;
  display: flex; flex-direction: column; gap: 1.8rem;
  padding-right: 0.5rem;
}
.filter-group h3 {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-faint); margin-bottom: 0.8rem; font-weight: 600;
}
.checks { display: flex; flex-direction: column; gap: 0.55rem; }

.check {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.86rem; color: var(--fg-muted); cursor: pointer;
  transition: color 0.2s ease;
}
.check:hover { color: var(--fg); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box {
  width: 15px; height: 15px; border: 1px solid var(--line);
  border-radius: 2px; flex-shrink: 0; position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check-box::after {
  content: ''; position: absolute; left: 4px; top: 1px;
  width: 4px; height: 8px; border: solid var(--accent-ink);
  border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease);
}
.check input:checked + .check-box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-tally { margin-left: auto; font-size: 0.72rem; color: var(--fg-faint); font-variant-numeric: tabular-nums; }

/* ── dual range ── */
.range-pair { position: relative; height: 26px; }
.range-pair input {
  position: absolute; inset: 0; width: 100%; height: 26px;
  -webkit-appearance: none; appearance: none;
  background: none; pointer-events: none; margin: 0;
}
.range-pair input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  cursor: grab;
}
.range-pair input::-moz-range-thumb {
  pointer-events: auto; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg); cursor: grab;
}
.range-track {
  position: absolute; left: 0; right: 0; top: 12px; height: 2px;
  background: var(--line); border-radius: 2px; pointer-events: none;
}
.range-fill { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 2px; }
.range-read { font-size: 0.76rem; color: var(--fg-muted); font-variant-numeric: tabular-nums; margin-top: 0.4rem; }

/* ── switch ── */
.switch { display: flex; align-items: center; gap: 0.65rem; font-size: 0.86rem; color: var(--fg-muted); cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch-track {
  width: 34px; height: 19px; border-radius: 10px;
  background: var(--line); position: relative; transition: background 0.25s ease;
}
.switch-dot {
  position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--fg-muted);
  transition: transform 0.25s var(--ease), background 0.25s ease;
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track .switch-dot { transform: translateX(15px); background: var(--accent-ink); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── results ── */
.active-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.6rem; border: 1px solid var(--line);
  border-radius: 100px; font-size: 0.72rem; color: var(--fg-muted);
}
.chip button { color: var(--fg-faint); font-size: 0.95rem; line-height: 1; }
.chip button:hover { color: var(--bad); }

.result-count { font-size: 0.76rem; color: var(--fg-faint); margin-bottom: 1.2rem; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 2rem 1.4rem; }
.grid.list { grid-template-columns: 1fr; gap: 1rem; }

/* ── product card ── */
.card { position: relative; display: flex; flex-direction: column; }

.card-art {
  position: relative; aspect-ratio: 1; margin-bottom: 0.9rem;
  perspective: 900px;
}

/* The record slides out from behind the sleeve on hover. */
.card-disc {
  position: absolute; inset: 0; left: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--disc-label, #333) 0 17%, transparent 17.5%),
    repeating-radial-gradient(circle at 50% 50%, #1a1a1e 0 2px, #0d0d10 2px 3.4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transform: translateX(0) rotate(0deg);
  transition: transform 0.7s var(--ease);
}
.card-disc::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 210deg, transparent 0 42%, rgba(255,255,255,0.09) 47%, transparent 52% 100%);
}
.card:hover .card-disc { transform: translateX(30%) rotate(28deg); }

.card-sleeve {
  position: absolute; inset: 0; overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  transition: transform 0.7s var(--ease);
}
.card:hover .card-sleeve { transform: translateY(-4px); }
.card-sleeve svg { width: 100%; height: 100%; }

.card-flags { position: absolute; left: 0.55rem; top: 0.55rem; display: flex; flex-direction: column; gap: 0.3rem; z-index: 2; }
.flag {
  padding: 0.22rem 0.5rem; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; border-radius: 2px;
}
.flag-sale { background: var(--bad); color: #fff; }
.flag-new { background: var(--accent); color: var(--accent-ink); }
.flag-last { background: var(--fg); color: var(--bg); }

.card-quick {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; gap: 0.4rem; padding: 0.55rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}
.card:hover .card-quick, .card:focus-within .card-quick { opacity: 1; transform: none; }
.card-quick .btn { flex: 1; padding: 0.6em 0.6em; font-size: 0.66rem; }

.heart {
  position: absolute; right: 0.5rem; top: 0.5rem; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px); display: grid; place-items: center;
  color: var(--fg); transition: color 0.2s ease, background 0.2s ease;
}
.heart svg { width: 16px; height: 16px; }
.heart.on { color: var(--bad); }
.heart.on svg { fill: var(--bad); stroke: var(--bad); }

.card-artist { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.card-title { font-family: var(--serif); font-size: 1.02rem; line-height: 1.25; margin: 0.2rem 0 0.35rem; }
.card-meta { font-size: 0.72rem; color: var(--fg-faint); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.card-foot { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.55rem; }
.price { font-family: var(--mono); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.price-was { font-family: var(--mono); font-size: 0.78rem; color: var(--fg-faint); text-decoration: line-through; }

.stars { display: inline-flex; gap: 1px; color: var(--accent); }
.stars svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.stars .off { opacity: 0.22; }

/* list layout */
.grid.list .card {
  flex-direction: row; gap: 1.2rem; align-items: center;
  border: 1px solid var(--line-soft); padding: 0.8rem; border-radius: var(--radius);
}
.grid.list .card-art { width: 110px; flex-shrink: 0; margin: 0; }
.grid.list .card-quick { position: static; opacity: 1; transform: none; padding: 0; max-width: 260px; margin-top: 0.6rem; }
.grid.list .card-body { flex: 1; }

/* ── empty state ── */
.empty { text-align: center; padding: 4rem 1rem; }
.empty-disc {
  display: block; width: 70px; height: 70px; margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, var(--line) 0 2px, transparent 2px 4px);
}
.empty h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 0.4rem; }
.empty p { color: var(--fg-muted); margin-bottom: 1.4rem; }

/* ==========================================================================
   RAILS
   ========================================================================== */

.staff-rail, .recent-rail {
  display: flex; gap: 1.4rem; overflow-x: auto;
  padding-bottom: 1rem; scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.staff-rail::-webkit-scrollbar, .recent-rail::-webkit-scrollbar { display: none; }
.staff-rail > *, .recent-rail > * { flex: 0 0 230px; scroll-snap-align: start; }

.staff { background: var(--bg-sunk); border-block: 1px solid var(--line-soft); }
.staff-note {
  font-size: 0.78rem; color: var(--fg-muted); font-style: italic;
  border-left: 2px solid var(--accent); padding-left: 0.7rem; margin-top: 0.6rem;
}

/* ==========================================================================
   STORY / PROMISES
   ========================================================================== */

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.story-text { color: var(--fg-muted); margin-top: 1.2rem; max-width: 46ch; }

.promises { list-style: none; display: flex; flex-direction: column; }
.promises li { display: flex; gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid var(--line-soft); }
.promises li:last-child { border-bottom: 1px solid var(--line-soft); }
.promises span { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); padding-top: 0.25rem; }
.promises h3 { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; margin-bottom: 0.25rem; }
.promises p { color: var(--fg-muted); font-size: 0.88rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.accordion { max-width: 780px; }
.acc-item { border-bottom: 1px solid var(--line-soft); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.25rem 0; text-align: left;
  font-family: var(--serif); font-size: 1.05rem;
}
.acc-sign { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.acc-sign::before, .acc-sign::after {
  content: ''; position: absolute; background: var(--accent);
  transition: transform 0.35s var(--ease);
}
.acc-sign::before { left: 0; top: 6px; width: 14px; height: 2px; }
.acc-sign::after { left: 6px; top: 0; width: 2px; height: 14px; }
.acc-item.open .acc-sign::after { transform: scaleY(0); }
.acc-panel { overflow: hidden; height: 0; transition: height 0.4s var(--ease); }
.acc-panel p { color: var(--fg-muted); padding-bottom: 1.3rem; max-width: 62ch; }

/* ==========================================================================
   NEWSLETTER + FOOTER
   ========================================================================== */

.newsletter { background: var(--bg-sunk); border-top: 1px solid var(--line-soft); }
.nl-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.nl-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.nl-sub { color: var(--fg-muted); font-size: 0.88rem; }
.nl-form { display: flex; gap: 0.5rem; flex-wrap: wrap; position: relative; }
.nl-form input {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.85rem 1rem; min-width: 250px;
}
.nl-form input:focus { border-color: var(--accent); outline: none; }
.nl-form .field-error { position: absolute; bottom: -1.3rem; left: 0; }

.site-footer { border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-grid h4 { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 0.9rem; }
.footer-grid a, .footer-grid p { display: block; color: var(--fg-muted); font-size: 0.86rem; margin-bottom: 0.35rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-note { margin-top: 0.9rem; }
.copyright { text-align: center; padding: 1.5rem; font-size: 0.72rem; color: var(--fg-faint); border-top: 1px solid var(--line-soft); }

/* ==========================================================================
   DRAWERS / MODALS
   ========================================================================== */

.scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.35s ease;
}
.scrim.show { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
  width: min(420px, 100vw);
  background: var(--bg-raised); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.45s var(--ease);
}
.drawer.show { transform: none; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line-soft);
}
.drawer-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem; }
.drawer-foot { border-top: 1px solid var(--line-soft); padding: 1.2rem; }

.line-item { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); }
.line-item:first-child { padding-top: 0; }
.li-art { width: 62px; height: 62px; flex-shrink: 0; border: 1px solid var(--line-soft); overflow: hidden; }
.li-art svg { width: 100%; height: 100%; }
.li-main { flex: 1; min-width: 0; }
.li-artist { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.li-title { font-family: var(--serif); font-size: 0.95rem; line-height: 1.25; }
.li-meta { font-size: 0.7rem; color: var(--fg-faint); }
.li-remove { font-size: 0.7rem; color: var(--fg-faint); text-decoration: underline; margin-top: 0.3rem; }
.li-remove:hover { color: var(--bad); }
.li-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }

.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.stepper button { width: 26px; height: 26px; color: var(--fg-muted); }
.stepper button:hover { color: var(--fg); }
.stepper span { min-width: 24px; text-align: center; font-family: var(--mono); font-size: 0.8rem; }

.drawer-empty { text-align: center; padding: 3rem 1rem; color: var(--fg-muted); }

.promo { display: flex; gap: 0.5rem; margin-bottom: 0.4rem; }
.promo input { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.75rem; font-size: 0.82rem; }
.promo-note { font-size: 0.72rem; min-height: 1.1em; margin-bottom: 0.7rem; }
.promo-note.ok { color: var(--good); }
.promo-note.err { color: var(--bad); }

.totals { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.totals > div { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--fg-muted); }
.totals > div.grand { color: var(--fg); font-size: 1.05rem; padding-top: 0.6rem; border-top: 1px solid var(--line-soft); }
.totals dd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.totals .save { color: var(--good); }

/* ── modals ── */
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 1.5rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.modal.show { opacity: 1; }
.modal-card {
  position: relative; width: min(900px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.4s var(--ease);
}
.modal.show .modal-card { transform: none; }
.modal-close { position: absolute; right: 0.6rem; top: 0.6rem; z-index: 3; font-size: 1.4rem; }

.pm-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; }
.pm-art { position: relative; aspect-ratio: 1; }
.pm-art .card-sleeve, .pm-art .card-disc { position: absolute; inset: 0; }
.pm-art .card-disc { transform: translateX(22%) rotate(14deg); }
.pm-artist { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.pm-title { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; margin: 0.3rem 0 0.8rem; }
.pm-price { font-family: var(--mono); font-size: 1.5rem; margin: 1rem 0; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.2rem; font-size: 0.84rem; margin: 1.2rem 0; }
.spec dt { color: var(--fg-faint); }
.tracklist { list-style: none; font-size: 0.84rem; margin: 1.2rem 0; max-height: 190px; overflow-y: auto; }
.tracklist li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line-soft); color: var(--fg-muted); }
.tracklist .tk-no { color: var(--fg-faint); font-family: var(--mono); font-size: 0.74rem; }
.tracklist .tk-len { font-family: var(--mono); font-size: 0.74rem; color: var(--fg-faint); }

.rating-block { display: flex; gap: 1.5rem; align-items: center; margin: 1.2rem 0; }
.rating-score { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 0.22rem; }
.rating-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; color: var(--fg-faint); }
.rating-row .bar { flex: 1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rating-row .bar i { display: block; height: 100%; background: var(--accent); }

/* ── checkout ── */
.checkout-card { width: min(880px, 100%); padding: 2rem; display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.steps { grid-column: 1 / -1; list-style: none; display: flex; gap: 1.5rem; margin-bottom: 0.5rem; }
.steps li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.steps span {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font-size: 0.7rem;
}
.steps li.active { color: var(--fg); }
.steps li.active span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps li.done span { background: var(--good); border-color: var(--good); color: var(--bg); }

.co-title { grid-column: 1 / 2; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
#co-form { grid-column: 1 / 2; display: flex; flex-direction: column; gap: 1rem; }
.co-step { border: 0; display: flex; flex-direction: column; gap: 1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.co-note { font-size: 0.74rem; color: var(--fg-faint); }
.co-actions { display: flex; gap: 0.7rem; justify-content: flex-end; }

.ship-options { display: flex; flex-direction: column; gap: 0.5rem; }
.ship-option {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ship-option:hover { border-color: var(--fg-faint); }
.ship-option input { accent-color: var(--accent); }
.ship-option.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ship-option .so-name { font-size: 0.88rem; }
.ship-option .so-eta { font-size: 0.72rem; color: var(--fg-faint); }
.ship-option .so-price { margin-left: auto; font-family: var(--mono); font-size: 0.85rem; }

.card-preview {
  aspect-ratio: 1.6; max-width: 320px; padding: 1.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); border-radius: 8px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow);
}
.cp-chip { width: 38px; height: 27px; border-radius: 4px; background: rgba(0,0,0,0.18); }
.cp-number { font-family: var(--mono); font-size: 1.05rem; letter-spacing: 0.08em; }
.cp-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

.co-summary {
  grid-column: 2 / 3; grid-row: 2 / span 3;
  background: var(--bg-sunk); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.2rem;
  position: sticky; top: 0;
}
.co-summary h3 { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 0.9rem; }
.co-sum-line { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: var(--fg-muted); padding: 0.3rem 0; }
.co-sum-line.grand { color: var(--fg); font-size: 1rem; border-top: 1px solid var(--line-soft); margin-top: 0.5rem; padding-top: 0.6rem; }
.co-sum-line span:last-child { font-family: var(--mono); }

.done { text-align: center; padding: 1.5rem 0; }
.done-disc {
  display: block; width: 74px; height: 74px; margin: 0 auto 1.2rem; border-radius: 50%;
  background:
    radial-gradient(circle, var(--good) 0 18%, transparent 19%),
    repeating-radial-gradient(circle, var(--line) 0 2px, transparent 2px 4px);
  animation: spin 3s linear infinite;
}
.done h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 0.4rem; }

/* ==========================================================================
   TOASTS
   ========================================================================== */

.toasts {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 0.5rem;
  align-items: center; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--fg); color: var(--bg);
  padding: 0.7rem 1.1rem; border-radius: 100px;
  font-size: 0.82rem; box-shadow: var(--shadow);
  animation: toast-in 0.4s var(--ease);
}
.toast.leaving { animation: toast-out 0.3s ease forwards; }
.toast svg { width: 15px; height: 15px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .turntable { order: -1; max-width: 340px; margin: 0 auto; }
  .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pm-body { grid-template-columns: 1fr; }
  .checkout-card { grid-template-columns: 1fr; }
  .co-summary { grid-column: 1; grid-row: auto; position: static; }
  .co-title, #co-form { grid-column: 1; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  #search { width: 150px; }
  #search:focus { width: 190px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .filters-toggle { display: inline-flex; }
  .catalog-body { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: auto 0 0 0; z-index: 110; top: auto;
    max-height: 82vh; overflow-y: auto;
    background: var(--bg-raised); border-top: 1px solid var(--line);
    padding: 1.4rem; border-radius: 12px 12px 0 0;
    transform: translateY(100%); transition: transform 0.45s var(--ease);
  }
  .filters.show { transform: none; }
}

@media (max-width: 560px) {
  .section-inner, .catalog, .hero { padding-left: 1rem; padding-right: 1rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.5rem 0.9rem; }
  .row { grid-template-columns: 1fr; }
  .currency { display: none; }
  .hero-facts { gap: 1.5rem; }
  .drawer { width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  .split-inner { transform: none; transition: none; }
  .brand-disc, .tt-record, .done-disc { animation: none; }
  .marquee-track { animation: none; }
  .card:hover .card-disc { transform: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ── photography ──
   CC0 shots, credited in photos/CREDITS.json. Used for framing only: the
   catalogue keeps its generated sleeves, because real album art is somebody
   else's copyright and a shop full of it would not be shippable. */
.band { position: relative; min-height: 400px; display: grid; place-items: center; overflow: hidden; border-block: 1px solid var(--line-soft); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.34));
}
.band-copy { position: relative; z-index: 2; text-align: center; max-width: 24ch; padding: 4rem 1.5rem; color: #fff; }
.band-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.1; }
.band-copy .eyebrow { color: var(--accent-2); }

.story-shot {
  margin-bottom: 2rem; overflow: hidden;
  border: 1px solid var(--line-soft); aspect-ratio: 4 / 3;
}
.story-shot img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) contrast(1.05);
  transition: transform .9s var(--ease);
}
.story-shot:hover img { transform: scale(1.04); }

/* ── phones ──
   The header was the one thing pushing the page wider than the screen: brand +
   a fixed-width search + the icon row added up to more than 390px, and because
   the body clips overflow it showed as a sideways scroll with no scrollbar.
   The search now takes whatever space is left instead of demanding 150px. */
@media (max-width: 560px) {
  .header-inner { gap: 0.5rem; padding-inline: 0.75rem; }
  .brand-word { font-size: 0.95rem; letter-spacing: 0.18em; }
  .brand-disc { width: 18px; height: 18px; }

  .header-tools { flex: 1 1 auto; min-width: 0; gap: 0.1rem; }
  .search-wrap { flex: 1 1 auto; min-width: 0; }
  #search,
  #search:focus { width: 100%; min-width: 0; }

  .icon-btn { width: 40px; height: 40px; }

  /* Small type is fine on a desktop label and unreadable on a phone. */
  .eyebrow { font-size: 0.72rem; }
  .card-meta, .result-count, .card-artist { font-size: 0.78rem; }
  .flag, .portfolio-year { font-size: 0.66rem; }

  /* Comfortable targets in the filter sheet. */
  .check { padding: 0.3rem 0; }
  .check-box { width: 20px; height: 20px; }
  .check-box::after { left: 6px; top: 2px; width: 5px; height: 10px; }
  .switch-track { width: 42px; height: 24px; }
  .switch-dot { width: 20px; height: 20px; }
  .switch input:checked + .switch-track .switch-dot { transform: translateX(18px); }
}

@media (max-width: 560px) {
  /* Card actions and toggles: 32px is a miss-prone target on glass. */
  .card-quick .btn { padding: 0.85em 0.6em; font-size: 0.7rem; }
  .heart { width: 40px; height: 40px; }
  .view-toggle button { padding: 0.75rem 0.9rem; }
  .stepper button { width: 34px; height: 34px; }
  .chip { padding: 0.45rem 0.7rem; font-size: 0.76rem; }
  .chip button { font-size: 1.05rem; padding: 0 0.2rem; }
  .badge { min-width: 19px; height: 19px; font-size: 0.66rem; }
  .tk-no, .tk-len, .rating-row { font-size: 0.76rem; }
}
