/* ==========================================================================
   BRONDERBILITY MUSIC — Minimal Distortion
   Layout: a black field with one centred signal column (hero), captions pinned
   to the edges, and every section split into a narrow label rail + wide content.
   ========================================================================== */
:root {
  --bg: #000000;
  --fg: #FFFFFF;
  --accent: #FF3300;            /* the only colour: red distortion */
  --muted: #8E8885;             /* warm grey, leans toward the red */
  --dim: #4B4644;
  --line: #1B1817;
  --hover: rgba(255, 255, 255, 0.03);
  --glass: rgba(0, 0, 0, 0.84);
  --scrim: rgba(0, 0, 0, 0.7);

  --font-display: "Martian Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-s: 12px;
  --fs-m: 13px;
  --fs-l: 18px;
  --fs-xl: clamp(18px, 2vw, 26px);

  --gutter: clamp(16px, 2.7vw, 52px);
  --rail: minmax(190px, 250px);
  --section: clamp(110px, 13vw, 200px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  padding-inline: var(--gutter);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-s);
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
img { max-width: 100%; }
canvas { display: block; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip { position: fixed; left: var(--gutter); top: -60px; z-index: 200; background: var(--fg); color: var(--bg); padding: 10px 14px; font-size: var(--fs-2xs); }
.skip:focus { top: 12px; }

.dash { display: block; width: 22px; height: 2px; background: var(--accent); flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-2xs); letter-spacing: 0.22em; font-weight: 500;
  padding-bottom: 4px; border-bottom: 1px solid var(--fg);
  transition: color 0.25s, border-color 0.25s;
}
.link-arrow span { display: inline-block; transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover span { transform: translateX(6px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font-size: var(--fs-xs); letter-spacing: 0.24em; font-weight: 500;
  padding: 17px 28px; background: var(--fg); color: var(--bg);
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--accent); color: var(--fg); }
.btn--full { width: 100%; }

.btn-line {
  font-size: var(--fs-2xs); letter-spacing: 0.22em; font-weight: 500;
  padding: 11px 16px; border: 1px solid var(--dim);
  transition: border-color 0.25s, color 0.25s;
}
.btn-line:hover, .btn-line.is-on { border-color: var(--accent); color: var(--accent); }
.btn-line--small { padding: 7px 12px; }

/* ---------- glitch: text ---------- */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0; padding: inherit;
  pointer-events: none; opacity: 0; white-space: nowrap;
}
.glitch::before { color: var(--accent); }
.glitch::after { color: var(--fg); background: var(--bg); }
.glitch.is-glitching { animation: g-base 0.36s steps(1) 1; }
.glitch.is-glitching::before { animation: g-a 0.36s steps(1) 1; }
.glitch.is-glitching::after { animation: g-b 0.36s steps(1) 1; }
@keyframes g-base {
  0% { transform: translateX(-2px); }
  25% { transform: translateX(2px); }
  50% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
  100% { transform: none; }
}
@keyframes g-a {
  0% { opacity: 1; transform: translateX(-4px); clip-path: inset(10% 0 62% 0); }
  20% { opacity: 1; transform: translateX(5px); clip-path: inset(58% 0 16% 0); }
  40% { opacity: 1; transform: translateX(-3px); clip-path: inset(30% 0 46% 0); }
  60% { opacity: 1; transform: translateX(6px); clip-path: inset(78% 0 4% 0); }
  80% { opacity: 1; transform: translateX(-5px); clip-path: inset(2% 0 84% 0); }
  100% { opacity: 0; }
}
@keyframes g-b {
  0% { opacity: 1; transform: translateX(5px); clip-path: inset(66% 0 12% 0); }
  25% { opacity: 1; transform: translateX(-6px); clip-path: inset(14% 0 70% 0); }
  50% { opacity: 1; transform: translateX(3px); clip-path: inset(44% 0 38% 0); }
  75% { opacity: 1; transform: translateX(-2px); clip-path: inset(86% 0 2% 0); }
  100% { opacity: 0; }
}

/* ---------- glitch: images ---------- */
.glitch-img { position: relative; display: block; overflow: hidden; background: var(--line); }
.glitch-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.glitch-img::before, .glitch-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background-image: var(--img); background-size: cover; background-position: center;
}
.glitch-img::before { background-color: var(--accent); background-blend-mode: multiply; mix-blend-mode: screen; }
.glitch-img.is-glitching::before { animation: gi-a 0.42s steps(1) 1; }
.glitch-img.is-glitching::after { animation: gi-b 0.42s steps(1) 1; }
@keyframes gi-a {
  0% { opacity: 0.9; transform: translateX(-8px); clip-path: inset(8% 0 70% 0); }
  25% { opacity: 0.9; transform: translateX(10px); clip-path: inset(48% 0 30% 0); }
  50% { opacity: 0.9; transform: translateX(-5px); clip-path: inset(72% 0 12% 0); }
  75% { opacity: 0.9; transform: translateX(7px); clip-path: inset(22% 0 60% 0); }
  100% { opacity: 0; }
}
@keyframes gi-b {
  0% { opacity: 1; transform: translateX(12px); clip-path: inset(60% 0 28% 0); }
  33% { opacity: 1; transform: translateX(-9px); clip-path: inset(18% 0 74% 0); }
  66% { opacity: 1; transform: translateX(6px); clip-path: inset(84% 0 6% 0); }
  100% { opacity: 0; }
}

/* ---------- header ---------- */
.header {
  position: fixed; z-index: 70; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 24px;
  padding: calc(env(safe-area-inset-top, 0px) + 30px) var(--gutter) 22px;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
}
.header.is-scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-top: calc(env(safe-area-inset-top, 0px) + 16px); padding-bottom: 15px;
  border-bottom-color: var(--line);
}
.header.is-menu { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.logo { font-size: var(--fs-s); font-weight: 500; letter-spacing: 0.3em; white-space: nowrap; }
.nav { display: flex; gap: clamp(24px, 3.6vw, 60px); margin-left: auto; }
.nav__link { position: relative; font-size: var(--fs-xs); letter-spacing: 0.2em; font-weight: 500; padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 0; height: 2px;
  background: var(--accent); transform: translateX(-50%); transition: width 0.35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.header__tools { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 44px); margin-left: clamp(24px, 3.6vw, 60px); }
.cart-btn { display: flex; gap: 6px; font-size: var(--fs-xs); letter-spacing: 0.2em; font-weight: 500; padding: 6px 0; font-variant-numeric: tabular-nums; }
.cart-btn__count { color: var(--muted); transition: color 0.3s; }
.cart-btn.has-items .cart-btn__count { color: var(--accent); }
.cart-btn:hover { color: var(--accent); }
.eq-btn { width: 30px; height: 26px; display: grid; place-items: center; }
.eq-btn canvas { width: 30px; height: 26px; }
.burger { display: none; position: relative; width: 34px; height: 34px; }
.burger span { position: absolute; left: 6px; right: 6px; height: 1.5px; background: var(--fg); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:first-child { top: 13px; }
.burger span:last-child { top: 20px; }
.burger[aria-expanded="true"] span:first-child { top: 16px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 16px; transform: rotate(-45deg); }

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 65; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 26px);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.55s var(--ease), visibility 0s 0.55s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.55s var(--ease); }
.menu__nav { display: flex; flex-direction: column; }
.menu__link { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.menu.is-open .menu__link { animation: menu-in 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
@keyframes menu-in { from { transform: translateY(16px); opacity: 0; } }
.menu__label { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 7.6vw, 40px); letter-spacing: 0.12em; line-height: 1.1; }
.menu__meta { font-size: var(--fs-2xs); color: var(--muted); text-align: right; }
.menu__link:hover .menu__label, .menu__link:active .menu__label { color: var(--accent); }
.menu__foot { display: grid; gap: 18px; }
.menu__line { width: 100%; height: 44px; }
.menu__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-2xs); }

/* ---------- hero ---------- */
.hero {
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(env(safe-area-inset-top, 0px) + clamp(124px, 16vh, 176px));
  padding-bottom: clamp(40px, 6vh, 80px);
}
.hero__top { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 24px; }
.hero__side { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.2em; line-height: 1.55; font-weight: 500; padding-top: clamp(76px, 7.4vw, 104px); }
.hero__side--right { justify-self: end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; padding-top: clamp(60px, 6.2vw, 88px); }
.hero__list { list-style: none; margin: 0; padding: 0; }
.hero__list a { transition: color 0.25s; }
.hero__list a:hover { color: var(--accent); }
.hero__center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__eyebrow { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.3em; min-height: 1.6em; white-space: nowrap; padding-left: 0.3em; }
.hero__title {
  margin: clamp(22px, 2.8vw, 36px) 0 0;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 5vw, 78px); letter-spacing: 0.3em; line-height: 1.18;
}
.hero__title .glitch { padding-left: 0.3em; }
.hero__sub { margin: clamp(20px, 2.6vw, 32px) 0 0; font-size: var(--fs-xs); letter-spacing: 0.38em; padding-left: 0.38em; }

.hero__wave { position: relative; width: min(1180px, 100%); height: clamp(96px, 11vw, 150px); margin-top: clamp(36px, 6vh, 72px); cursor: pointer; touch-action: pan-y; }
.hero__wave canvas { width: 100%; height: 100%; }
.hero__tip {
  position: absolute; top: 0; transform: translate(-50%, -110%);
  padding: 3px 7px; font-size: var(--fs-2xs); background: var(--bg); border: 1px solid var(--line);
  pointer-events: none; font-variant-numeric: tabular-nums;
}

/* ---------- player ---------- */
.player {
  width: min(900px, 100%); margin-top: clamp(26px, 5vh, 56px);
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center;
  gap: 0 clamp(20px, 4.4vw, 60px);
}
.player__cover { width: 96px; height: 96px; }
.player__body { min-width: 0; }
.player__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.player__titles { min-width: 0; }
.player__title { margin: 0; font-size: var(--fs-m); letter-spacing: 0.26em; font-weight: 500; }
.player__artist { margin: 7px 0 0; font-size: var(--fs-2xs); color: var(--muted); letter-spacing: 0.2em; }
.player__time { margin: 0; font-size: var(--fs-2xs); letter-spacing: 0.14em; white-space: nowrap; font-variant-numeric: tabular-nums; }

.progress { position: relative; height: 20px; margin-top: 12px; cursor: pointer; touch-action: none; --p: 0%; }
.progress::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--dim); }
.progress__fill { position: absolute; left: 0; top: 50%; height: 2px; transform: translateY(-50%); width: var(--p); background: var(--fg); }
.progress__knob {
  position: absolute; top: 50%; left: var(--p); width: 9px; height: 9px; border-radius: 50%;
  background: var(--fg); transform: translate(-50%, -50%); transition: transform 0.2s, background 0.2s;
}
.progress:hover .progress__knob, .progress.is-drag .progress__knob { transform: translate(-50%, -50%) scale(1.35); background: var(--accent); }

.player__controls { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 30px); }
.ctrl { width: 46px; height: 46px; display: grid; place-items: center; }
.ctrl svg { width: 22px; height: 22px; fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: square; transition: stroke 0.2s; }
.ctrl:hover svg { stroke: var(--accent); }
.ctrl--play .i-pause { display: none; }
body.is-playing .ctrl--play .i-play { display: none; }
body.is-playing .ctrl--play .i-pause { display: block; }
.ctrl--sm { width: 40px; height: 40px; }
.ctrl--sm svg { width: 18px; height: 18px; }

/* ---------- sections ---------- */
.section { padding-top: var(--section); }
.hero + .section { padding-top: clamp(64px, 7vw, 120px); }
.split { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.sec-head__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-l); letter-spacing: 0.24em; line-height: 1.3; text-wrap: balance; }
.sec-head__text { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.16em; line-height: 1.7; max-width: 32ch; }

/* ---------- beat store ---------- */
.store { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr) minmax(200px, 260px); gap: clamp(32px, 4.4vw, 90px); align-items: start; }
.store__browse { margin-top: 26px; }
.store__main { min-width: 0; }
.store__visual { margin: 0; display: flex; flex-direction: column; gap: 14px; padding-top: 52px; }
.store__img { width: 100%; aspect-ratio: 27 / 19; }
.coords { font-size: var(--fs-2xs); letter-spacing: 0.16em; font-variant-numeric: tabular-nums; }

.filters { display: flex; gap: 4px 26px; flex-wrap: wrap; margin-bottom: 14px; }
.filter { position: relative; padding: 9px 0; font-size: var(--fs-2xs); letter-spacing: 0.2em; color: var(--muted); white-space: nowrap; transition: color 0.25s; }
.filter__n { color: var(--dim); margin-left: 6px; font-variant-numeric: tabular-nums; }
.filter:hover { color: var(--fg); }
.filter.is-active { color: var(--fg); }
.filter.is-active::after { content: ""; position: absolute; left: 0; bottom: 3px; width: 16px; height: 2px; background: var(--accent); }

.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track {
  position: relative;
  display: grid; grid-template-columns: 150px 34px minmax(0, 1fr) 56px 48px 38px; align-items: center;
  column-gap: 16px; min-height: 66px; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background 0.25s;
}
.track:hover { background: var(--hover); }
.track__wave { height: 38px; width: 100%; }
.track__wave canvas { width: 100%; height: 100%; }
.track__no { font-size: var(--fs-2xs); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; display: flex; align-items: center; height: 14px; }
.track__eq { display: none; gap: 2px; align-items: flex-end; height: 11px; }
.track__eq i { display: block; width: 2px; height: 100%; background: var(--accent); animation: eq 0.9s ease-in-out infinite; transform-origin: bottom; }
.track__eq i:nth-child(2) { animation-delay: -0.3s; }
.track__eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.track.is-current .track__num { color: var(--accent); }
body.is-playing .track.is-current .track__num { display: none; }
body.is-playing .track.is-current .track__eq { display: flex; }
.track__main { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 13px 0; text-align: left; }
.track__title { font-size: var(--fs-xs); letter-spacing: 0.22em; font-weight: 500; }
.track__tags { font-size: var(--fs-2xs); letter-spacing: 0.16em; color: var(--muted); }
.track__tags b { font-weight: 400; color: var(--dim); white-space: nowrap; }
.track__dur, .track__price { font-size: var(--fs-2xs); font-variant-numeric: tabular-nums; letter-spacing: 0.1em; }
.track__dur { color: var(--muted); }
.track__price { font-weight: 500; }
.track__add { width: 38px; height: 38px; display: grid; place-items: center; justify-self: end; }
.track__add svg { width: 14px; height: 14px; stroke: var(--fg); stroke-width: 1.3; transition: transform 0.35s var(--ease), stroke 0.25s; }
.track__add:hover svg { stroke: var(--accent); transform: rotate(90deg); }
.track__add.is-in svg { stroke: var(--accent); transform: rotate(45deg); }
.track.is-hidden { display: none; }
.tracks__more { display: none; margin-top: 26px; }

/* ---------- signal monitor ---------- */
.readouts { width: 100%; margin: 10px 0 0; font-size: var(--fs-2xs); letter-spacing: 0.14em; }
.readouts div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.readouts dt { color: var(--muted); }
.readouts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.signal { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.signal__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--fs-2xs); letter-spacing: 0.2em; }
.signal__status { display: inline-flex; align-items: center; gap: 10px; }
.signal__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
body.is-playing .signal__status i { background: var(--accent); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.signal__spectrum { width: 100%; height: clamp(180px, 22vw, 300px); }
.signal__axis { position: relative; height: 16px; font-size: var(--fs-2xs); letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.signal__axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.signal__axis span:first-child { transform: none; }
.signal__axis span:last-child { transform: translateX(-100%); }
.signal__scope { width: 100%; height: clamp(70px, 8vw, 110px); margin-top: 18px; }

/* ---------- genres ---------- */
.genres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) clamp(24px, 4vw, 64px); }
.genre { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); min-width: 0; }
.genre::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.6s var(--ease); }
.genre:hover::before, .genre.is-active::before { width: 100%; }
.genre__viz { width: 100%; height: clamp(110px, 11vw, 150px); margin-bottom: 10px; }
.genre__head { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-2xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.genre__live { color: var(--accent); display: none; }
.genre.is-active .genre__live { display: inline; }
.genre__title { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: 0.14em; line-height: 1.15; }
.genre__sub { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.24em; }
.genre__desc { margin: 0; font-size: var(--fs-2xs); letter-spacing: 0.16em; color: var(--muted); max-width: 42ch; }
.genre__actions { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 12px; }

/* ---------- licenses & kits ---------- */
.store-body { min-width: 0; display: flex; flex-direction: column; gap: clamp(72px, 8vw, 120px); }
.licenses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.license { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 22px 24px; border: 1px solid var(--line); transition: border-color 0.3s; min-width: 0; }
.license:hover { border-color: var(--dim); }
.license.is-selected { border-color: var(--fg); }
.license--featured::before { content: ""; position: absolute; top: -1px; left: -1px; width: 34px; height: 2px; background: var(--accent); }
.license__top { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-2xs); color: var(--muted); }
.license__tag { color: var(--accent); }
.license__name { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.22em; font-weight: 500; }
.license__format { margin: 0; font-size: var(--fs-2xs); color: var(--muted); }
.license__price { margin: 8px 0 4px; font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: 0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.license__price small { font-size: 0.42em; letter-spacing: 0.16em; margin-right: 6px; color: var(--muted); }
.license__list { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 9px; font-size: var(--fs-2xs); letter-spacing: 0.12em; color: var(--muted); }
.license__list li { display: flex; gap: 8px; }
.license__list li::before { content: "—"; color: var(--dim); }
.license__btn { margin-top: auto; }

.kits-block { display: flex; flex-direction: column; gap: 28px; }
.kits-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.kits-head__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-l); letter-spacing: 0.24em; }
.kits-head__text { margin: 0; font-size: var(--fs-2xs); color: var(--muted); }
.kits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 30px); }
.kit { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kit__img { width: 100%; aspect-ratio: 1; }
.kit__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kit__title { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.2em; font-weight: 500; }
.kit__meta { margin: 6px 0 0; font-size: var(--fs-2xs); color: var(--muted); letter-spacing: 0.12em; }
.kit__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; font-weight: 500; }

/* ---------- about ---------- */
.about { min-width: 0; display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); }
.about__lead { margin: 0; max-width: 32ch; font-family: var(--font-display); font-weight: 300; font-size: var(--fs-xl); letter-spacing: 0.1em; line-height: 1.5; text-wrap: balance; }
.about__text { margin: 0; max-width: 64ch; font-size: var(--fs-xs); letter-spacing: 0.12em; line-height: 1.85; color: var(--muted); }
.stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; gap: 10px; }
.stats dt { font-size: var(--fs-2xs); color: var(--muted); }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3.2vw, 46px); line-height: 1; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); text-align: left; }
.service span { font-size: var(--fs-m); letter-spacing: 0.2em; transition: color 0.25s; }
.service small { font-size: var(--fs-2xs); color: var(--muted); letter-spacing: 0.14em; }
.service i { font-style: normal; text-align: right; transition: transform 0.35s var(--ease), color 0.25s; }
.service:hover span, .service:hover i { color: var(--accent); }
.service:hover i { transform: translateX(6px); }

/* ---------- contact ---------- */
.mail { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin-top: 10px; }
.mail__addr { font-size: var(--fs-xs); text-transform: none; letter-spacing: 0.08em; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.socials { display: flex; gap: clamp(22px, 3vw, 46px); font-size: var(--fs-2xs); letter-spacing: 0.2em; font-weight: 500; }
.socials a { transition: color 0.25s; }
.socials a:hover { color: var(--accent); }
.socials--col { margin-top: 14px; }

.form { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-2xs); letter-spacing: 0.2em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; letter-spacing: 0.04em; text-transform: none;
  color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--dim); border-radius: 0;
  padding: 10px 0 12px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color 0.3s;
}
.field select {
  cursor: pointer; padding-right: 24px; text-transform: uppercase; font-size: 13px; letter-spacing: 0.16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff'/%3E%3C/svg%3E") no-repeat right 4px center;
}
.field option { background: var(--bg); color: var(--fg); }
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--accent); }
.field__err { font-size: var(--fs-2xs); color: var(--accent); }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { margin: 0; max-width: 52ch; font-size: var(--fs-2xs); letter-spacing: 0.14em; line-height: 1.7; color: var(--muted); }
.form__status b { color: var(--fg); font-weight: 500; }

/* ---------- footer ---------- */
.footer { display: flex; flex-direction: column; gap: 28px; padding-block: var(--section) calc(env(safe-area-inset-bottom, 0px) + 36px); }
body.has-dock .footer { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 116px); }
.footer__line { width: 100%; height: 64px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: var(--fs-2xs); letter-spacing: 0.2em; font-weight: 500; }
.footer__row--small { color: var(--muted); font-weight: 400; }

/* ---------- dock player ---------- */
.dock {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(120px, 240px) auto auto auto;
  align-items: center; gap: 0 clamp(14px, 2vw, 30px);
  padding: 12px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s 0.5s;
}
.dock.is-visible { transform: none; visibility: visible; transition: transform 0.5s var(--ease); }
.dock__progress { position: absolute; left: 0; right: 0; top: -8px; height: 15px; cursor: pointer; touch-action: none; --p: 0%; }
.dock__progress span { position: absolute; left: 0; top: 7px; height: 2px; width: var(--p); background: linear-gradient(90deg, var(--fg) calc(100% - 16px), var(--accent) 0); }
.dock__cover { width: 44px; height: 44px; object-fit: cover; display: block; background: var(--line); }
.dock__info { min-width: 0; }
.dock__title, .dock__tags { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__title { font-size: var(--fs-xs); letter-spacing: 0.2em; font-weight: 500; }
.dock__tags { margin-top: 3px; font-size: var(--fs-2xs); color: var(--muted); }
.dock__spectrum { width: 100%; height: 28px; }
.dock__time { font-size: var(--fs-2xs); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dock__controls { display: flex; gap: 2px; }
.dock__vol { display: flex; align-items: center; gap: 10px; font-size: var(--fs-2xs); color: var(--muted); }
.dock__vol input { width: 84px; }

input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; height: 18px; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--dim); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--dim); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--fg); border: 0; }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: var(--fg); border: 0; }
input[type="range"]:hover::-webkit-slider-thumb { background: var(--accent); }

/* ---------- cart ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s 0.35s; }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s; }
.cart {
  position: fixed; z-index: 85; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--line);
  padding: calc(env(safe-area-inset-top, 0px) + 28px) clamp(18px, 3vw, 36px) calc(env(safe-area-inset-bottom, 0px) + 26px);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s 0.5s;
}
.cart.is-open { transform: none; visibility: visible; transition: transform 0.5s var(--ease); }
.cart__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cart__title { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.26em; font-weight: 500; font-variant-numeric: tabular-nums; }
.cart__close { font-size: var(--fs-2xs); letter-spacing: 0.2em; padding: 8px 0; transition: color 0.25s; }
.cart__close:hover { color: var(--accent); }
.cart__list { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.citem { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.citem img { width: 56px; height: 56px; object-fit: cover; display: block; background: var(--line); }
.citem__body { min-width: 0; }
.citem__title { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.18em; font-weight: 500; }
.citem__sub { margin: 4px 0 0; font-size: var(--fs-2xs); color: var(--muted); }
.citem select {
  margin-top: 10px; max-width: 100%; font: inherit; font-size: var(--fs-2xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg); background: transparent; border: 1px solid var(--dim); border-radius: 0; padding: 7px 28px 7px 9px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff'/%3E%3C/svg%3E") no-repeat right 9px center;
}
.citem select option { background: var(--bg); }
.citem__side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; font-weight: 500; }
.citem__remove { font-size: var(--fs-2xs); color: var(--muted); font-weight: 400; transition: color 0.25s; }
.citem__remove:hover { color: var(--accent); }
.cart__empty { margin: 0; padding: 28px 0; font-size: var(--fs-2xs); color: var(--muted); line-height: 1.8; }
.cart__foot { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.cart__total { display: flex; justify-content: space-between; font-size: var(--fs-s); letter-spacing: 0.22em; font-weight: 500; font-variant-numeric: tabular-nums; }
.cart__note { margin: 0; font-size: var(--fs-2xs); color: var(--muted); line-height: 1.75; }
.cart__note b { color: var(--fg); font-weight: 500; text-transform: none; }

/* ---------- toasts & artifacts ---------- */
.toasts { position: fixed; z-index: 90; left: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: calc(100% - 2 * var(--gutter)); transition: bottom 0.4s var(--ease); }
body.has-dock .toasts { bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }
.toast { padding: 12px 18px; background: var(--bg); border: 1px solid var(--line); border-left: 2px solid var(--accent); font-size: var(--fs-2xs); letter-spacing: 0.18em; animation: toast-in 0.4s var(--ease) both; }
.toast.is-out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { transform: translateX(-12px); opacity: 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes toast-out { to { transform: translateX(-12px); opacity: 0; } }

.artifacts { position: fixed; inset: 0; z-index: 75; pointer-events: none; overflow: hidden; }
.artifact { position: absolute; background: var(--accent); }
.artifact--white { background: var(--fg); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  .store { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .store__head { grid-column: 1; grid-row: 1; }
  .store__main { grid-column: 2; grid-row: 1 / span 2; }
  .store__visual { grid-column: 1; grid-row: 2; padding-top: 12px; }
  .licenses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .hero__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 0; }
  .hero__center { grid-column: 1 / -1; grid-row: 1; }
  .hero__side { grid-row: 2; padding-top: clamp(36px, 6vw, 56px); }
  .hero__side--right { padding-top: clamp(36px, 6vw, 56px); gap: 12px; }
  .hero__title { font-size: clamp(30px, 6.4vw, 66px); }
}

@media (min-width: 861px) {
  .split > .sec-head { position: sticky; top: 112px; }
}

@media (max-width: 860px) {
  :root { --section: clamp(96px, 20vw, 140px); }
  .nav { display: none; }
  .burger { display: block; }
  .header__tools { margin-left: auto; gap: 14px; }
  .logo { font-size: var(--fs-xs); letter-spacing: 0.24em; }

  .split, .store { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .store__head, .store__main, .store__visual { grid-column: auto; grid-row: auto; }
  .store__browse { display: none; }
  .tracks__more { display: inline-flex; }
  .store__visual { padding-top: 0; }
  .store__img { aspect-ratio: 16 / 9; }

  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }

  .genres { grid-template-columns: minmax(0, 1fr); }

  .licenses {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .licenses::-webkit-scrollbar { display: none; }
  .license { scroll-snap-align: start; }

  .kits { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
  .kit { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .kit__img { width: 84px; }
  .kits-head { border-bottom: 0; padding-bottom: 0; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .service { grid-template-columns: minmax(0, 1fr) 24px; row-gap: 6px; }
  .service small { grid-column: 1; grid-row: 2; }
  .service i { grid-column: 2; grid-row: 1 / span 2; }

  .form { grid-template-columns: minmax(0, 1fr); gap: 30px; }

  .dock { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0 14px; padding-top: 10px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); }
  .dock__cover { width: 40px; height: 40px; }
  .dock__spectrum, .dock__time, .dock__vol, .dock__prev { display: none; }
  body.has-dock .toasts { bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); }
}

@media (max-width: 600px) {
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 112px); }
  .hero__eyebrow { font-size: var(--fs-2xs); letter-spacing: 0.22em; padding-left: 0.22em; }
  .hero__title { font-size: min(44px, calc((100vw - 2 * var(--gutter)) / 11.9)); letter-spacing: 0.16em; }
  .hero__title .glitch { padding-left: 0.16em; }
  .hero__sub { font-size: var(--fs-2xs); letter-spacing: 0.26em; padding-left: 0.26em; }
  .hero__side { font-size: var(--fs-2xs); }
  .hero__wave { height: 92px; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(var(--gutter) * -1); }

  .player { grid-template-columns: 64px minmax(0, 1fr); gap: 18px 16px; }
  .player__cover { width: 64px; height: 64px; }
  .player__meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .player__title { font-size: var(--fs-xs); letter-spacing: 0.2em; }
  .progress { margin-top: 6px; }
  .player__controls { grid-column: 1 / -1; justify-content: center; gap: 34px; }
  .player__controls .ctrl { width: 52px; height: 52px; }

  .track {
    grid-template-columns: 26px minmax(0, 1fr) auto 34px;
    grid-template-areas: "no main price add" "no wave wave dur";
    column-gap: 12px; row-gap: 6px; padding: 14px 0 12px; min-height: 0;
  }
  .track__no { grid-area: no; align-self: start; height: auto; padding-top: 1px; }
  .track__main { grid-area: main; padding: 0; }
  .track__price { grid-area: price; align-self: start; }
  .track__add { grid-area: add; align-self: start; width: 34px; height: 30px; margin-top: -8px; }
  .track__wave { grid-area: wave; height: 24px; }
  .track__dur { grid-area: dur; text-align: right; align-self: center; }

  .cart-btn__label { display: none; }
  .form__foot .btn { width: 100%; }
  .license { padding: 22px 18px 20px; }
}

@media (hover: none) {
  .track:hover { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
