/* ============================================================
   INTO THE BLUR RECORDS — design system
   Palette pulled from the reference boards: ink-black night film,
   bone paper, signal red-orange, sodium yellow, acid green, blue hour.
   ============================================================ */

:root {
  /* core */
  --ink: #141513;          /* deepened from the reference charcoal #292b28 */
  --ink-2: #1b1c19;
  --ink-3: #262724;
  --bone: #ede4d3;
  --bone-dim: #b3a995;     /* 8.4:1 on ink */
  --line: rgba(237, 228, 211, .16);
  --line-strong: rgba(237, 228, 211, .38);

  /* signal colours */
  --blur: #e0502f;         /* primary brand red */
  --sodium: #f4c20d;       /* production */
  --acid: #3ee05a;         /* vlog */
  --bloom: #e0306a;
  --hour: #6f8cff;         /* blue hour */

  /* page accent (overridden per page) */
  --accent: var(--blur);
  --on-accent: var(--ink);

  /* type */
  --f-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* rhythm */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --header-h: 72px;
  --player-h: 76px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 160ms;
  --t-med: 320ms;

  --z-grain: 900;
  --z-header: 100;
  --z-player: 110;
  --z-drawer: 200;
  --z-toast: 300;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--bone); color: var(--ink); padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- film grain over everything ---------- */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: var(--z-grain); pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .09;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  margin: 0;
}
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--bone-dim); margin: 0 0 16px; }
.eyebrow b { color: var(--accent); font-weight: 500; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 60ch; color: var(--bone); }
.muted { color: var(--bone-dim); }
h1, h2, h3 { text-wrap: balance; }
.h-xl { font-size: clamp(48px, 8vw, 116px); }
.h-lg { font-size: clamp(48px, 8vw, 120px); }
.h-md { font-size: clamp(34px, 4.6vw, 64px); }
.h-sm { font-size: clamp(22px, 2.2vw, 30px); }

/* motion-blur text: a horizontally smeared ghost behind the letters */
.smear { position: relative; display: inline-block; isolation: isolate; }
.smear::before {
  content: attr(data-text); position: absolute; inset: 0; z-index: -1;
  color: var(--accent); filter: blur(12px); transform: translateX(0) scaleX(1); transform-origin: left;
  opacity: 0;   /* hidden at rest: the smear only appears on hover */ transition: transform var(--t-med) var(--ease-out), opacity var(--t-med);
  pointer-events: none;
}
.smear:hover::before { transform: translateX(.14em) scaleX(1.1); opacity: .45; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 140px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid > * { background: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--bone);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--b); background: transparent; color: var(--b);
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border-radius: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  touch-action: manipulation;
}
.btn:hover { background: var(--b); color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); background: transparent; border-radius: 0;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.icon-btn svg { width: 20px; height: 20px; }
.chip {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); background: transparent;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tag {
  display: inline-block; padding: 4px 8px; border: 1px solid currentColor;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; line-height: 1;
}
.tag-solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: 40px; }
.brand-word { font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1; text-transform: uppercase; }
.brand-word small { display: block; margin-top: 1px; font-size: 10px; font-weight: 500; letter-spacing: .2em; }
.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--bone-dim); transition: color var(--t-fast);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--accent); }
.nav a .lock { width: 12px; height: 12px; margin-left: 6px; opacity: .7; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.cart-count {
  position: absolute; transform: translate(12px, -12px); min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--blur); color: var(--ink); font: 700 11px/18px var(--f-mono); text-align: center;
}
.cart-count:empty { display: none; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { min-height: 56px; font-size: 15px; border-bottom: 1px solid var(--line); padding: 0; }
  .nav a[aria-current="page"]::after { left: 0; right: auto; width: 24px; bottom: 12px; }
  .brand-word { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(72dvh, 720px); display: flex; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .hero-art { position: absolute; inset: 0; overflow: hidden; }
.hero .hero-art img { width: 104%; max-width: none; height: 100%; object-fit: cover; object-position: center 45%; animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(-3%); } }
/* text gets the left side, the pathway keeps the middle */
.hero .hero-art::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to right, rgba(20,21,19,.72) 0%, rgba(20,21,19,.35) 32%, transparent 55%),
  linear-gradient(to top, var(--ink) 0%, rgba(20,21,19,.25) 30%, transparent 55%); }
.hero .wrap { position: relative; padding-bottom: clamp(32px, 5vw, 64px); }
.hero h1 { font-size: clamp(52px, 8vw, 124px); opacity: .9; }
.hero h1 .row { display: block; }
.hero-meta { display: grid; gap: 20px; justify-items: start; }
.hero-meta p { margin: 0; max-width: 32ch; }
.hero-meta .serif { font-size: clamp(20px, 2vw, 28px); line-height: 1.15; }
@media (max-width: 700px) { .hero { min-height: 64dvh; } .hero .hero-art::after { background: linear-gradient(to top, var(--ink) 0%, rgba(20,21,19,.55) 45%, transparent 75%); } }

/* page hero (inner pages) */
.page-hero { position: relative; padding: clamp(64px, 10vw, 150px) 0 clamp(40px, 6vw, 80px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--accent), transparent 70%); opacity: .28; filter: blur(40px);
  transform: scaleX(1.6); pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero .lede { margin-top: 28px; }

/* ---------- cover art ---------- */
.cover { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--ink-3); }
.cover.sleeve { background: none; }   /* die-cut hole shows the record behind */
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .sleeve-disc {
  position: absolute; top: 4%; right: 4%; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, #111 0 2px, #1b1b1b 2px 3px);
  box-shadow: 0 0 0 1px #000 inset; z-index: -1;
}

/* ---------- release cards ---------- */
.releases { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width: 900px; }
.release-card { position: relative; display: flex; flex-direction: column; text-decoration: none; container-type: inline-size; }
.release-card .cover-wrap { position: relative; isolation: isolate; padding: 20px; transition: background var(--t-med); }
.release-card .disc {
  position: absolute; top: 20px; left: 20px; width: calc(100% - 40px); aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: var(--label, none) center / 33.1% no-repeat, repeating-radial-gradient(circle, #111 0 1.5px, #1a1a1a 1.5px 3px);
  transition: transform 600ms var(--ease-out);
}
.release-card:hover .disc, .release-card:focus-visible .disc { transform: translateX(22%) rotate(40deg); }
.release-card .cover { box-shadow: 8px 0 24px rgba(0,0,0,.45); transition: transform 600ms var(--ease-out); }
.release-card:hover .cover { transform: translateX(-4%); }
.release-card .meta { padding: 0 20px 20px; display: grid; gap: 4px; }
.release-card .meta .top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 6px; }
.release-card h3 { margin: 0; font-family: var(--f-display); font-variation-settings: "wdth" 70; font-weight: 700; font-size: 24px; line-height: 1; text-transform: uppercase; }
.release-card .artist { font-family: var(--f-serif); font-style: italic; font-size: 22px; line-height: 1.1; color: var(--bone-dim); }
.release-card .price { font-family: var(--f-mono); font-size: 13px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.release-card .quick-play {
  position: absolute; right: 32px; top: calc(100cqw - 84px); /* sits over the cover's bottom-right corner */
}
.quick-play {
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--bone); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: transform var(--t-fast), background var(--t-fast);
}
.quick-play:hover { transform: scale(1.06); background: var(--accent); }
.quick-play svg { width: 20px; height: 20px; }

/* ---------- featured release (home) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature .cover-stack { position: relative; isolation: isolate; max-width: 560px; }
.feature .cover-stack .cover { box-shadow: 10px 0 40px rgba(0,0,0,.5); }
.feature .cover-stack .disc {
  position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: var(--label, none) center / 33.1% no-repeat, repeating-radial-gradient(circle, #111 0 1.5px, #1a1a1a 1.5px 3px);
}
.feature .cover-stack.playing .disc { animation: spin calc(6s / var(--rate, 1)) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } .feature .cover-stack { max-width: 78%; } }

/* ---------- tracklist ---------- */
.tracklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tracklist li { border-bottom: 1px solid var(--line); }
.track-btn {
  width: 100%; display: grid; grid-template-columns: 44px 44px 1fr auto; align-items: center; gap: 8px;
  min-height: 56px; padding: 0 8px; background: transparent; border: 0; text-align: left;
  transition: background var(--t-fast);
}
.track-btn:hover { background: var(--ink-3); }
.track-btn .pi { width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; }
.track-btn .pi svg { width: 14px; height: 14px; }
.track-btn .pos { font-family: var(--f-mono); font-size: 13px; color: var(--bone-dim); }
.track-btn .t { font-weight: 600; }
.track-btn .d { font-family: var(--f-mono); font-size: 13px; color: var(--bone-dim); font-variant-numeric: tabular-nums; }
.track-btn[aria-pressed="true"] { background: var(--ink-3); }
.track-btn[aria-pressed="true"] .pi { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.track-btn[aria-pressed="true"] .t { color: var(--accent); }
.eq { display: inline-flex; gap: 2px; align-items: end; height: 12px; margin-left: 10px; vertical-align: middle; }
.eq i { width: 3px; background: var(--accent); animation: eq .8s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.55s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* ---------- release detail ---------- */
.release-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(280px, .8fr); gap: clamp(24px, 3vw, 48px); align-items: start; padding-top: clamp(32px, 5vw, 64px); }
.release-detail .art { position: relative; isolation: isolate; }
.release-detail .art .disc {
  position: absolute; inset: 3%; border-radius: 50%; z-index: -1;
  background: var(--label, none) center / 33.1% no-repeat, repeating-radial-gradient(circle, #111 0 1.5px, #1a1a1a 1.5px 3px);
  transform: translateX(0); transition: transform 900ms var(--ease-out);
}
.release-detail .art.playing .disc { animation: spin calc(5s / var(--rate, 1)) linear infinite; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 1px solid var(--line); background: var(--ink-3); overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.info h1 { font-size: clamp(40px, 5vw, 72px); }
.info .artist-name { font-family: var(--f-serif); font-style: italic; font-size: clamp(28px, 3vw, 40px); line-height: 1; margin: 0 0 20px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 24px 0; font-size: 15px; }
.specs dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); padding-top: 3px; }
.specs dd { margin: 0; }
.buybox { border: 1px solid var(--line-strong); background: var(--ink-2); padding: 20px; display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.buybox .price-lg { font-family: var(--f-display); font-variation-settings: "wdth" 70; font-weight: 700; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.format-opts { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.format-opts legend { margin-bottom: 8px; }
.format-opt { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 1px solid var(--line-strong); cursor: pointer; }
.format-opt input { position: absolute; opacity: 0; }
.format-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.format-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.format-opt span:last-child { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.small-print { font-size: 13px; color: var(--bone-dim); margin: 0; }
@media (max-width: 1100px) { .release-detail { grid-template-columns: 1fr 1fr; } .release-detail .buy-col { grid-column: 1 / -1; } .buybox { position: static; } }
@media (max-width: 700px) { .release-detail { grid-template-columns: 1fr; } }

/* ---------- global audio player ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-player);
  height: calc(var(--player-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--ink-2) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 2fr) auto; gap: 16px; align-items: center;
  padding-inline: var(--gutter);
}
.player .now { display: flex; gap: 12px; align-items: center; min-width: 0; }
.player .now .thumb { width: 48px; height: 48px; flex: none; background: var(--ink-3); overflow: hidden; }
.player .now .txt { min-width: 0; }
.player .now .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .now .a { font-size: 13px; color: var(--bone-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .ctrls { display: flex; gap: 6px; align-items: center; }
.player .ctrls .play { width: 48px; height: 48px; border-radius: 50%; background: var(--bone); color: var(--ink); border: 0; }
.player .ctrls .play:hover { background: var(--accent); }
.player .ctrls .icon-btn { border-color: transparent; }
.player .scrub { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--bone-dim); font-variant-numeric: tabular-nums; }
.player .wave { position: relative; height: 40px; cursor: pointer; touch-action: none; }
.player .wave canvas { width: 100%; height: 100%; }
.player .tag { color: var(--accent); }
.player[data-empty="true"] .scrub, .player[data-empty="true"] .ctrls .skip-btn { opacity: .4; }
@media (max-width: 800px) {
  .player { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; gap: 10px; }
  .player .scrub { position: absolute; left: 0; right: 0; top: -1px; display: block; }
  .player .scrub .time, .player .scrub .tag { display: none; }
  .player .wave { height: 4px; }
  .player .ctrls .skip-btn { display: none; }
}

/* ---------- video player ---------- */
.vp { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; user-select: none; border: 1px solid var(--line); }
.vp video, .vp canvas.vp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vp .vp-big {
  position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%;
  background: var(--bone); color: var(--ink); border: 0; display: grid; place-items: center;
  transition: transform var(--t-fast), opacity var(--t-med), background var(--t-fast);
}
.vp .vp-big:hover { transform: scale(1.06); background: var(--accent); }
.vp .vp-big svg { width: 32px; height: 32px; }
.vp.playing .vp-big { opacity: 0; pointer-events: none; }
.vp .vp-title { position: absolute; left: 20px; top: 16px; right: 20px; pointer-events: none; transition: opacity var(--t-med); }
.vp.playing:not(.show-ui) .vp-title { opacity: 0; }
.vp .vp-bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 12px 8px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 8px; align-items: center;
  transition: opacity var(--t-med), transform var(--t-med);
}
.vp.playing:not(.show-ui) .vp-bar { opacity: 0; transform: translateY(8px); }
.vp .vp-bar .icon-btn { border-color: transparent; color: #fff; }
.vp .vp-bar .icon-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.vp .vp-time { font-family: var(--f-mono); font-size: 12px; color: #ddd; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vp .vp-range { position: relative; height: 44px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.vp .vp-range .rail { position: relative; width: 100%; height: 4px; background: rgba(255,255,255,.22); }
.vp .vp-range .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.vp .vp-range .knob { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); }
.vp .vp-range:focus-visible { outline-offset: -4px; }
.vp:fullscreen { aspect-ratio: auto; border: 0; }
.vp-placeholder-note { position: absolute; right: 16px; top: 16px; }

/* ---------- vlog ---------- */
.vlog-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: clamp(24px, 3vw, 40px); }
.vlog-main .now-info h2 { margin: 20px 0 8px; font-size: clamp(28px, 3vw, 44px); }
.ep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); align-self: start; max-height: 720px; overflow: auto; }
.ep-list button { width: 100%; display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px; border: 0; background: var(--ink); text-align: left; transition: background var(--t-fast); }
.ep-list button:hover { background: var(--ink-3); }
.ep-list button[aria-current="true"] { background: var(--ink-3); box-shadow: inset 3px 0 0 var(--accent); }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.ep-thumb .dur { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.8); padding: 2px 5px; font: 11px var(--f-mono); }
.ep-list .ep-t { font-weight: 700; line-height: 1.25; font-size: 15px; }
.ep-list .ep-m { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); margin-top: 4px; }
.ep-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ep-card { display: block; width: 100%; padding: 0 0 20px; border: 0; background: var(--ink); text-align: left; }
.ep-card .ep-thumb { margin-bottom: 14px; }
.ep-card .ep-t, .ep-card .ep-m { padding: 0 16px; }
.ep-card .ep-t { font-size: 18px; font-weight: 700; line-height: 1.25; }
.ep-card:hover .ep-thumb img { transform: scale(1.04); }
.ep-thumb img { transition: transform 600ms var(--ease-out); width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .vlog-main { grid-template-columns: 1fr; } .ep-list { max-height: none; } }

/* ---------- production / subscription ---------- */
.member-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--ink)); }
.plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.plan { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.plan.featured { background: var(--accent); color: var(--on-accent); }
.plan.featured .muted { color: rgba(12,11,10,.72); }
.plan.featured .btn { --b: var(--ink); }
.plan.featured .btn-accent { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.plan .amount { font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 700; font-size: clamp(64px, 8vw, 110px); line-height: .85; font-variant-numeric: tabular-nums; }
.plan .amount small { font-size: .28em; font-weight: 700; margin-left: 6px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; align-items: start; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

.courses { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.course { display: flex; flex-direction: column; }
.course .course-art { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.course .course-art img { width: 100%; height: 100%; object-fit: cover; }
.course .course-art .lvl { position: absolute; left: 16px; top: 16px; background: var(--ink); color: var(--bone); }
.course .body { padding: 20px; display: grid; gap: 12px; flex: 1; align-content: start; }
.course h3 { margin: 0; font-family: var(--f-display); font-variation-settings: "wdth" 70; font-weight: 700; font-size: 28px; line-height: 1; text-transform: uppercase; }
.modules { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.modules li button, .modules li > span {
  width: 100%; display: grid; grid-template-columns: 28px 1fr 20px; gap: 10px; align-items: center; min-height: 44px; padding: 0 4px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font-size: 15px;
}
.modules li button:hover { background: var(--ink-3); }
.modules .n { font-family: var(--f-mono); font-size: 12px; color: var(--bone-dim); }
.modules svg { width: 16px; height: 16px; color: var(--bone-dim); }
.modules .locked { color: var(--bone-dim); }
.modules details summary { cursor: pointer; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 12px 4px; color: var(--bone-dim); list-style: none; }
.modules details summary::-webkit-details-marker { display: none; }

.tips { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tip { position: relative; padding: 20px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; overflow: hidden; }
.tip h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.tip .swatch { position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; filter: blur(30px); opacity: .45; transform: scaleX(1.8); pointer-events: none; }
.tip.is-locked h3 { filter: blur(0); }
.tip .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.lesson-dialog { width: min(960px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-strong); background: var(--ink); color: var(--bone); }
.lesson-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.lesson-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.lesson-dialog header h2 { margin: 0; font-size: 18px; }
.lesson-dialog .vp { border: 0; }
.lesson-dialog .notes { padding: 20px; }

/* ---------- label / artists ---------- */
.manifesto { font-family: var(--f-serif); font-style: italic; font-size: clamp(30px, 4.2vw, 64px); line-height: 1.08; max-width: 22ch; margin: 0; }
.manifesto em { font-style: normal; font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.artists { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.artist { padding: 0 0 20px; }
.artist .portrait { aspect-ratio: 4 / 5; position: relative; overflow: hidden; margin-bottom: 16px; }
.artist .portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.artist:hover .portrait img { transform: scale(1.04) translateX(-2%); }
.artist h3 { margin: 0 16px; font-family: var(--f-display); font-variation-settings: "wdth" 62; font-weight: 700; font-size: 40px; line-height: .9; text-transform: uppercase; }
.artist p { margin: 8px 16px 0; color: var(--bone-dim); font-size: 15px; }
.artist .mono { margin: 6px 16px 0; color: var(--bone); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); background: var(--ink-2); color: var(--bone);
  font: 16px var(--f-body); border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field .help { font-size: 13px; color: var(--bone-dim); }
.field .err { font-size: 13px; color: #ff7a63; min-height: 0; }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: #ff7a63; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 260px; }

/* ---------- teasers (home) ---------- */
.teasers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.teaser { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 320px; padding: clamp(24px, 3vw, 48px); text-decoration: none; overflow: hidden; isolation: isolate; }
.teaser .bg { position: absolute; inset: 0; z-index: -1; transition: transform 900ms var(--ease-out); }
.teaser:hover .bg { transform: scale(1.06) translateX(-2%); }
.teaser.t-sodium { color: var(--ink); } .teaser.t-sodium .bg { background: var(--sodium); }
.teaser.t-acid .bg { background: #062a10; }
.teaser h2 { font-size: clamp(52px, 7vw, 104px); }
.teaser p { max-width: 40ch; margin: 0; font-size: 17px; }
.teaser .go { display: inline-flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.teaser .go svg { width: 18px; height: 18px; transition: transform var(--t-fast); }
.teaser:hover .go svg { transform: translateX(6px); }

/* ---------- cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity var(--t-med); }
.drawer.open .scrim { opacity: 1; }
.drawer .panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%);
  background: var(--ink-2); border-left: 1px solid var(--line-strong);
  display: grid; grid-template-rows: auto 1fr auto; transform: translateX(100%); transition: transform var(--t-med) var(--ease-out);
}
.drawer.open .panel { transform: none; }
.drawer header, .drawer footer { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer footer { border-top: 1px solid var(--line); border-bottom: 0; display: grid; }
.drawer .items { overflow: auto; padding: 8px 20px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-t { font-weight: 700; line-height: 1.2; }
.cart-item .ci-m { font-size: 13px; color: var(--bone-dim); }
.cart-empty { padding: 48px 0; text-align: center; color: var(--bone-dim); }
.total-row { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--player-h) + 16px + env(safe-area-inset-bottom)); z-index: var(--z-toast);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--bone); color: var(--ink); padding: 12px 18px; font-weight: 600; max-width: calc(100vw - 32px);
  transition: opacity var(--t-med), transform var(--t-med) var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); margin: 0 0 12px; font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer-grid a:hover { color: var(--accent); }
.footer-word { width: 100%; max-width: 1100px; height: auto; margin-top: 56px; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 13px; color: var(--bone-dim); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  body::after { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* keep text columns above the record that slides out from behind a sleeve */
.feature > :last-child, .release-detail .info, .release-detail .buy-col { position: relative; z-index: 1; }

.nav .soon { margin-left: 8px; padding: 2px 5px; border: 1px solid currentColor; font-size: 9px; letter-spacing: .12em; line-height: 1; opacity: .8; }

/* ---------- pitch fader (turntable-style, ±8%) ---------- */
.player .pitch { display: grid; grid-template-columns: auto 120px 52px 28px; gap: 8px; align-items: center; }
.player .pitch label { font-size: 11px; color: var(--bone-dim); }
.player .pitch output { font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; color: var(--bone-dim); }
.player .pitch.off-zero output { color: var(--accent); }
.pitch-reset { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line-strong); background: transparent; font: 11px var(--f-mono); }
.pitch-reset:hover { background: var(--bone); color: var(--ink); }
.pitch input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; touch-action: none; }
.pitch input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, transparent calc(50% - 1px), var(--bone-dim) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) center / 100% 10px no-repeat, var(--line-strong); }
.pitch input[type=range]::-moz-range-track { height: 2px; background: var(--line-strong); }
.pitch input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 22px; margin-top: -10px; background: var(--bone); border: 0; border-radius: 0; box-shadow: inset 0 -2px 0 var(--accent); }
.pitch input[type=range]::-moz-range-thumb { width: 12px; height: 22px; background: var(--bone); border: 0; border-radius: 0; }
.pitch input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1000px) { .player .pitch { grid-template-columns: 96px 48px 28px; } .player .pitch label { display: none; } }
@media (max-width: 800px) {
  .player { grid-template-columns: minmax(0, 1fr) auto auto; }
  .player .pitch { grid-template-columns: 72px 28px; gap: 6px; }
  .player .pitch output { display: none; }
}

/* ---------- page transition: red motion-smear wipe ---------- */
.wipe, html.wipe-in::after {
  content: ""; position: fixed; inset: 0 -40% 0 -40%; z-index: 2000; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(20,21,19,.22) 0 2px, transparent 2px 7px, rgba(20,21,19,.12) 7px 9px, transparent 9px 17px),
    linear-gradient(90deg, transparent 0%, rgba(224,80,47,.55) 10%, var(--blur) 22%, var(--blur) 78%, rgba(224,80,47,.55) 90%, transparent 100%);
  filter: blur(6px);
}
.wipe { transform: translateX(-100%); animation: wipe-cover 380ms cubic-bezier(.7,0,.84,0) forwards; }
html.wipe-in::after { transform: translateX(0); animation: wipe-reveal 520ms cubic-bezier(.16,1,.3,1) 40ms forwards; }
@keyframes wipe-cover { to { transform: translateX(0); } }
@keyframes wipe-reveal { to { transform: translateX(100%); } }

/* ---------- motion-smear hover on headings ---------- */
.display, .release-card h3 { transition: text-shadow 280ms var(--ease-out), transform 280ms var(--ease-out); }
.display:hover, .release-card:hover h3, .release-card:focus-within h3 {
  text-shadow: .08em 0 .08em rgba(224,80,47,.35);
}

@media (prefers-reduced-motion: reduce) {
  .wipe, html.wipe-in::after { display: none; }
  .display:hover, .release-card:hover h3 { transform: none; }
}

/* roster: cards at a fixed max width, no empty grey cells beside them */
.grid.artists { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 320px)); background: none; border: 0; gap: 16px; }
.artists .artist { border: 1px solid var(--line); }

/* releases: cards at a set width, no empty grey cells beside them */
.grid.releases { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 380px)); max-width: none; background: none; border: 0; gap: 16px; }
.releases .release-card { border: 1px solid var(--line); background: var(--ink); }
.alerts-line { margin: 20px 0 0; font-size: 14px; color: var(--bone-dim); }
.alerts-line a { color: var(--bone); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.alerts-line a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- legal / long-form pages ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 24px; letter-spacing: .01em; margin: 44px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--bone); line-height: 1.7; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--bone); text-underline-offset: 3px; }
.prose .updated { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); }
.prose .draft-note { border: 1px dashed var(--accent); padding: 14px 16px; font-size: 14px; color: var(--bone-dim); margin-bottom: 32px; }
mark.ph { background: none; color: var(--accent); border-bottom: 1px dashed var(--accent); }
.footer-legal nav { display: flex; gap: 16px; }
.footer-legal nav a { color: var(--bone-dim); text-decoration: none; }
.footer-legal nav a:hover { color: var(--bone); }

/* the HTML hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* invisible 44px tap area around the small pitch reset button */
.pitch-reset { position: relative; }
.pitch-reset::before { content: ""; position: absolute; inset: -8px; }
