:root {
  --bg: #050505;
  --fg: #f1ece4;
  --muted: #9b958c;
  --warm: #ffb45a;
  --warm-2: #ff7a2e;
  --line: rgba(241, 236, 228, 0.14);
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- Экран входа ---------- */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: #000;
  transition: opacity 1.4s var(--ease), visibility 1.4s;
}
.gate.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__beam {
  position: absolute; left: 50%; top: -10%;
  width: 70vmin; height: 120vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 30% 100% at 50% 0%, rgba(255, 190, 110, .20), transparent 70%);
  filter: blur(8px);
  animation: beam 5s ease-in-out infinite alternate;
}
@keyframes beam { from { opacity: .55; } to { opacity: 1; } }
.gate__inner { position: relative; text-align: center; padding: 0 16px; }
.gate__logo {
  font: 700 clamp(56px, 13vw, 150px)/0.9 var(--font-display);
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 236, 228, .35);
}
.gate__progress {
  width: min(260px, 60vw); height: 1px; margin: 34px auto 10px;
  background: var(--line); overflow: hidden;
}
.gate__progress span { display: block; height: 100%; width: 0; background: var(--warm); transition: width .3s; }
.gate__percent { font: 500 12px/1 var(--font-body); letter-spacing: .3em; color: var(--muted); }
.gate__enter {
  display: block; margin: 34px auto 0;
  padding: 18px 34px;
  background: none; border: 1px solid rgba(255, 180, 90, .55); border-radius: 999px;
  font: 500 15px/1 var(--font-display); letter-spacing: .28em; text-transform: uppercase;
  cursor: pointer;
  opacity: 0; transform: translateY(8px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), background .3s, box-shadow .3s;
}
.gate__enter:not(:disabled) { opacity: 1; transform: none; }
.gate__enter:hover, .gate__enter:focus-visible {
  background: rgba(255, 180, 90, .12);
  box-shadow: 0 0 40px rgba(255, 150, 60, .35);
  outline: none;
}
.gate__silent {
  margin-top: 18px; background: none; border: 0; cursor: pointer;
  font-size: 12px; letter-spacing: .12em; color: var(--muted);
  opacity: 0; transition: opacity .8s .3s, color .2s;
}
.gate__silent:not(:disabled) { opacity: 1; }
.gate__silent:hover { color: var(--fg); }

/* ---------- Шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 48px);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top::before {
  content: ""; position: absolute; inset: 0 0 -30px; z-index: -1;
  background: linear-gradient(rgba(5,5,5,.92), rgba(5,5,5,.6) 60%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent);
  opacity: 0; transition: opacity .4s;
}
.top.is-scrolled::before { opacity: 1; }
.top__brand {
  font: 700 20px/1 var(--font-display); letter-spacing: .12em; text-decoration: none;
}
.top__nav { display: flex; gap: clamp(14px, 2.6vw, 36px); }
.top__nav a {
  font: 500 13px/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; opacity: .75; transition: opacity .2s, color .2s;
}
.top__nav a:hover { opacity: 1; color: var(--warm); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  background: #000;
}
.hero__gl, .hero__dust, .hero__fallback, .hero__grain {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__fallback { object-fit: cover; object-position: 70% 30%; display: none; }
.no-webgl .hero__fallback { display: block; }
.no-webgl .hero__gl { display: none; }
.hero__dust { pointer-events: none; mix-blend-mode: screen; }
.hero__strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hero { touch-action: pan-y; }
.hero__hint {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  opacity: 0; transition: opacity .8s;
}
.hero__hint span {
  display: inline-block; padding: 8px 14px 8px 30px; border-radius: 999px;
  background: rgba(10, 9, 8, .6); border: 1px solid rgba(255, 180, 90, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 11px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--warm);
  white-space: nowrap; position: relative;
}
.hero__hint span::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--warm); animation: hintPulse 1.6s ease-in-out infinite;
}
@keyframes hintPulse { 50% { transform: translateX(6px); opacity: .4; } }
.is-in .hero__hint { opacity: 1; transition-delay: 3.2s; }
.is-in .hero__hint.is-done { opacity: 0; transition-delay: 0s; }
.hero__grain {
  pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

.hero__content {
  position: absolute; z-index: 5;
  left: clamp(16px, 6vw, 96px); bottom: clamp(88px, 14vh, 150px);
  max-width: min(760px, 92vw);
}
.hero__kicker {
  margin: 0 0 14px;
  font: 500 13px/1 var(--font-display); letter-spacing: .42em; text-transform: uppercase;
  color: var(--warm);
  display: flex; align-items: center; gap: 14px;
}
.hero__kicker i { display: inline-block; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.hero__title {
  position: relative; margin: 0;
  font: 700 clamp(84px, 12.5vw, 210px)/.86 var(--font-display);
  white-space: nowrap;
  letter-spacing: .02em;
  color: var(--fg);
  filter: drop-shadow(0 0 calc(var(--glow, 0) * 40px) rgba(255, 160, 70, calc(var(--glow, 0) * .7)));
}
/* «Потёртая» фактура букв */
.hero__title span {
  display: block;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -16 0 0 0 11'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -16 0 0 0 11'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.hero__album { margin: 20px 0 0; font-size: 15px; color: var(--muted); letter-spacing: .02em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Появление после входа */
.hero__kicker, .hero__title, .hero__album, .hero__actions, .top {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.is-in .top { opacity: 1; transform: none; transition-delay: 1.4s; }
.is-in .hero__kicker { opacity: 1; transform: none; transition-delay: .9s; }
.is-in .hero__title { opacity: 1; transform: none; transition-delay: .6s; }
.is-in .hero__album { opacity: 1; transform: none; transition-delay: 1.1s; }
.is-in .hero__actions { opacity: 1; transform: none; transition-delay: 1.3s; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  font: 500 13px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.btn--primary { background: var(--warm); color: #140a02; }
.btn--primary:hover { background: #ffc77e; box-shadow: 0 0 36px rgba(255, 160, 70, .45); }
.btn--ghost { border: 1px solid rgba(241, 236, 228, .3); }
/* Заглушка: кнопка появится, когда продукт будет готов */
.btn--stub {
  border: 1px dashed rgba(255, 207, 122, .45); background: rgba(255, 207, 122, .06);
  color: #ffcf7a; cursor: not-allowed; font-family: var(--font-display);
}
.btn--stub::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: caret 1.4s ease-in-out infinite;
}
.btn--ghost:hover { border-color: var(--warm); color: var(--warm); }

.hero__scroll {
  position: absolute; z-index: 5; left: 50%; bottom: 26px;
  width: 22px; height: 36px; margin-left: -11px;
  border: 1px solid rgba(241, 236, 228, .35); border-radius: 12px;
  opacity: 0; transition: opacity 1s 2s;
}
.is-in .hero__scroll { opacity: 1; }
.hero__scroll span {
  position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px;
  background: var(--fg); border-radius: 2px; animation: scroll 1.8s infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Звук ---------- */
.snd {
  position: fixed; z-index: 30;
  left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px);
  display: flex; align-items: center;
  height: 48px; padding: 0 6px 0 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 9, 8, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(10px);
  transition: opacity .8s 1.6s, transform .8s 1.6s var(--ease), border-color .3s;
}
.is-in .snd { opacity: 1; transform: none; }
.snd:hover, .snd.is-open { border-color: rgba(255, 180, 90, .35); }
.snd__toggle {
  position: relative; width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.snd__bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.snd__bars i {
  width: 3px; height: 100%; background: var(--warm); border-radius: 1px;
  transform-origin: bottom; transform: scaleY(var(--h, .2));
  transition: transform .08s linear;
}
.snd__muted { display: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.snd[data-state="off"] .snd__bars, .snd[data-state="muted"] .snd__bars, .snd[data-state="idle"] .snd__bars { display: none; }
.snd[data-state="off"] .snd__muted, .snd[data-state="muted"] .snd__muted, .snd[data-state="idle"] .snd__muted { display: block; }

.snd__panel {
  display: flex; align-items: center; gap: 14px;
  max-width: 0; overflow: hidden; opacity: 0;
  transition: max-width .5s var(--ease), opacity .3s;
  white-space: nowrap;
}
.snd:hover .snd__panel, .snd.is-open .snd__panel { max-width: 520px; opacity: 1; padding-right: 8px; }
.snd__track { display: flex; flex-direction: column; gap: 3px; min-width: 110px; }
.snd__label { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.snd__title { font: 500 14px/1 var(--font-display); letter-spacing: .06em; }
.snd__vol {
  -webkit-appearance: none; appearance: none;
  width: 90px; height: 2px; background: rgba(241, 236, 228, .25); border-radius: 2px; cursor: pointer;
  accent-color: var(--warm);
}
.snd__vol::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--warm); border: 0;
}
.snd__vol::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--warm); border: 0; }
.snd__next {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; opacity: .7;
}
.snd__next:hover { opacity: 1; color: var(--warm); }
.snd__next svg { width: 14px; height: 14px; fill: currentColor; }
.snd__dim {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 11px; color: var(--muted);
}
.snd__dim input { accent-color: var(--warm); margin: 0; }

/* ---------- Переключатель режима ---------- */
.mode {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 3px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 9, 8, .55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mode button {
  position: relative; z-index: 1;
  padding: 9px 16px; background: none; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 11px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); transition: color .3s;
}
.mode button[aria-checked="true"] { color: #140a02; }
.mode__thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--warm);
  transition: transform .5s var(--ease), background .3s;
}
[data-mode="code"] .mode__thumb { transform: translateX(100%); background: #ffcf7a; }
.hero__kicker a { color: inherit; text-decoration: none; border-bottom: 1px dashed transparent; transition: border-color .2s; }
.hero__kicker a:hover { border-color: currentColor; }

/* ---------- Режим «Программист» ---------- */
.hero__ascii { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .4s; }
[data-mode="code"] .hero__ascii { opacity: 1; }
[data-mode="code"] .hero__gl, [data-mode="code"] .hero__dust, [data-mode="code"] .hero__strings,
[data-mode="code"] .hero__hint, [data-mode="code"] .hero__fallback { opacity: 0 !important; visibility: hidden; }
[data-mode="code"] .hero { background: #030303; }
.hero__code {
  position: absolute; z-index: 5;
  left: clamp(16px, 6vw, 96px); bottom: clamp(88px, 14vh, 150px);
  width: min(560px, calc(100vw - 32px));
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .5s, transform .6s var(--ease), visibility .5s;
}
[data-mode="code"] .hero__code { opacity: 1; visibility: visible; transform: none; }
[data-mode="code"] .hero__content { opacity: 0; visibility: hidden; }
.hero__content { transition: opacity .4s, visibility .4s; }
.hero__code .hero__actions { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s var(--ease); }
.hero__code.is-typed .hero__actions { opacity: 1; transform: none; }

.term {
  border: 1px solid rgba(255, 180, 90, .25); border-radius: 12px; overflow: hidden;
  background: rgba(8, 7, 6, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 60px rgba(255, 150, 60, .08);
}
.term__bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03);
  font: 400 11px/1 var(--font-mono); color: var(--muted);
}
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: 8px; }
.term__body { min-height: 150px; padding: 18px 18px 20px; font: 400 14px/1.7 var(--font-mono); color: #f3e6d2; }
.t-prompt { color: var(--warm); }
.t-out { color: #cfc6b8; padding-left: 2px; }
.t-out a { color: #ffcf7a; text-decoration: none; }
.t-out a:hover { text-decoration: underline; }
.t-dim { color: var(--muted); }
.t-caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: -2px; background: var(--warm); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Глитч-переход */
.hero__glitch {
  position: absolute; inset: 0; z-index: 8; pointer-events: none; opacity: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, rgba(255,0,80,.25), rgba(0,255,220,.2), rgba(255,200,0,.2));
  mix-blend-mode: screen;
}
.is-glitch .hero__glitch { animation: glitchFlash .72s steps(1) both; }
.is-glitch .hero__gl, .is-glitch .hero__ascii, .is-glitch .hero__content, .is-glitch .hero__code {
  animation: glitchSlice .72s steps(1) both;
}
@keyframes glitchFlash {
  0% { opacity: .9; } 10% { opacity: .2; } 20% { opacity: 1; } 35% { opacity: .5; }
  50% { opacity: .95; } 65% { opacity: .3; } 80% { opacity: .7; } 100% { opacity: 0; }
}
@keyframes glitchSlice {
  0% { clip-path: inset(10% 0 60% 0); transform: translate(-14px, 0); filter: hue-rotate(90deg) saturate(3); }
  12% { clip-path: inset(55% 0 20% 0); transform: translate(18px, 0); filter: invert(.8); }
  24% { clip-path: inset(0 0 85% 0); transform: translate(-6px, 4px); filter: none; }
  36% { clip-path: inset(30% 0 40% 0); transform: translate(24px, -2px); filter: hue-rotate(-60deg) contrast(2); }
  48% { clip-path: inset(70% 0 5% 0); transform: translate(-20px, 0); filter: saturate(4); }
  60% { clip-path: inset(5% 0 75% 0); transform: translate(10px, 0); filter: invert(1); }
  72% { clip-path: inset(40% 0 30% 0); transform: translate(-8px, 2px); filter: none; }
  86% { clip-path: inset(0 0 0 0); transform: translate(4px, 0); filter: contrast(1.6); }
  100% { clip-path: none; transform: none; filter: none; }
}

/* Порядок разделов: у программиста сначала программы */
main { display: flex; flex-direction: column; }
.hero { order: 0; } .music { order: 1; } .apps { order: 2; }
[data-mode="code"] .apps { order: 1; } [data-mode="code"] .music { order: 2; }

/* ---------- Программы ---------- */
.apps {
  position: relative;
  padding: clamp(80px, 12vw, 160px) clamp(16px, 6vw, 96px);
  background: radial-gradient(ellipse 50% 40% at 70% 30%, rgba(255, 180, 90, .07), transparent 70%), #070605;
}
.kicker--code { color: #ffcf7a; font-family: var(--font-mono); letter-spacing: .1em; text-transform: none; }
.apps__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(40px, 6vw, 72px);
}
.app {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.app:hover { border-color: rgba(255, 180, 90, .35); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.app--wide { grid-column: 1 / -1; }
.app__body { padding: clamp(20px, 2.6vw, 32px); }
.app__top { display: flex; align-items: center; gap: 18px; }
.app__icon { width: 76px; height: 76px; flex: none; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }
.app__name { margin: 0; font: 700 34px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.app__name--big { font-size: clamp(48px, 6vw, 84px); }
.app__tag { margin: 8px 0 0; font: 400 12px/1.3 var(--font-mono); color: #ffcf7a; }
.app__desc { margin: 20px 0 0; font-size: 16px; line-height: 1.55; color: #dcd4c8; }
.app__list { margin: 16px 0 0; padding: 0; list-style: none; font: 400 13px/1.6 var(--font-mono); color: var(--muted); }
.app__list li::before { content: "› "; color: var(--warm); }
.app__actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; min-height: 46px; }
.app__status {
  font: 400 12px/1 var(--font-mono); color: var(--muted);
  padding: 8px 12px; border: 1px dashed var(--line); border-radius: 999px;
}
.app__status--soon { color: #ffcf7a; border-color: rgba(255, 207, 122, .4); }
.app__status--soon::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: caret 1.4s ease-in-out infinite; }
.app__more { font: 400 12px/1 var(--font-mono); color: var(--muted); text-decoration: none; }
.app__more:hover { color: var(--fg); }
.app__aurora { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
.kicker--aurora { color: #b48cff; margin-bottom: 10px; }
.app__note { margin: 14px 0 0; font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
.app__shot { display: block; width: 100%; height: 100%; object-fit: cover; border-left: 1px solid var(--line); }

/* ---------- Альбом ---------- */
.music {
  --accent: var(--warm);
  position: relative;
  padding: clamp(80px, 12vw, 160px) clamp(16px, 6vw, 96px) clamp(80px, 10vw, 140px);
  background:
    radial-gradient(ellipse 60% 50% at 30% 45%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg);
  transition: background .8s;
  overflow: hidden;
}
.kicker {
  margin: 0 0 14px;
  font: 500 13px/1 var(--font-display); letter-spacing: .42em; text-transform: uppercase;
  color: var(--accent); transition: color .6s;
}
.music__title {
  margin: 0;
  font: 700 clamp(56px, 9vw, 140px)/.9 var(--font-display); letter-spacing: .01em; text-transform: uppercase;
}
.music__lead { margin: 18px 0 0; color: var(--muted); font-size: 16px; max-width: 520px; }

.music__stage {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  margin-top: clamp(40px, 6vw, 80px);
}

.vinyl { --slide: 18%; position: relative; width: min(62%, 420px); aspect-ratio: 1; margin-left: 2%; }
.music__stage.is-playing .vinyl { --slide: 40%; }
.vinyl__record, .vinyl__viz {
  position: absolute; transform: translateX(var(--slide));
  transition: transform 1.1s var(--ease);
}
.vinyl__record {
  inset: 3%; border-radius: 50%;
  background:
    conic-gradient(from 30deg, rgba(255,255,255,.10), transparent 12%, transparent 38%, rgba(255,255,255,.08) 50%, transparent 62%, transparent 88%, rgba(255,255,255,.10)),
    repeating-radial-gradient(circle, #0c0c0c 0 2px, #151515 2px 3px),
    #0d0d0d;
  box-shadow: 0 30px 60px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.05);
}
.vinyl__label {
  position: absolute; inset: 33%; border-radius: 50%;
  background-size: cover; background-position: center;
  box-shadow: 0 0 0 3px #0a0a0a;
  animation: spin 1.8s linear infinite; animation-play-state: paused;
}
.vinyl__label::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8%; height: 8%;
  margin: -4% 0 0 -4%; border-radius: 50%; background: var(--bg);
}
.music__stage.is-playing .vinyl__label { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.vinyl__viz { inset: -13%; width: 126%; height: 126%; pointer-events: none; }
.vinyl__sleeve {
  position: relative; z-index: 2; display: block; width: 100%; height: 100%;
  object-fit: cover;
  box-shadow: 0 40px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
}

.player { min-width: 0; position: relative; z-index: 3; }
.player__now { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.player__label { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.player__title { font: 700 clamp(28px, 3.4vw, 44px)/1.05 var(--font-display); text-transform: uppercase; color: var(--accent); transition: color .6s; }
.player__ya { font-size: 13px; color: var(--muted); text-decoration: none; }
.player__ya:hover { color: var(--fg); }
.player__tools { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 6px; }
.player__hint { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.player__shuffle {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font: 500 12px/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.player__shuffle:hover { border-color: var(--accent); color: var(--accent); }
.player__shuffle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.tracks { list-style: none; margin: 0; padding: 0; }
.track { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.tracks.is-shuffled .track { animation: dealIn .5s var(--ease) both; }
.tracks.is-shuffled .track:nth-child(n) { animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes dealIn { from { opacity: 0; transform: translateX(-14px); } }
.track__play {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: 28px 22px minmax(0, 1fr) 80px 38px; align-items: center; gap: 12px;
  padding: 14px 4px; background: none; border: 0; cursor: pointer; text-align: left;
}
.track__num { font: 500 12px/1 var(--font-display); color: var(--muted); letter-spacing: .08em; }
.track__icon { width: 18px; height: 18px; opacity: .45; transition: opacity .2s, color .2s; }
.track__icon svg { width: 100%; height: 100%; fill: currentColor; }
.track__title {
  font: 500 17px/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s;
}
.track__bar { height: 2px; background: rgba(241,236,228,.1); border-radius: 2px; overflow: hidden; }
.track__bar i { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(0); }
.track__time { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.track__ya {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  color: var(--muted); opacity: .6; transition: opacity .2s, color .2s;
}
.track__ya svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.track__ya:hover { opacity: 1; color: var(--fg); }
.track:hover .track__icon { opacity: 1; color: var(--c); }
.track:hover .track__title { color: var(--c); }
.track.is-active .track__title, .track.is-active .track__icon { color: var(--c); opacity: 1; }
.track.is-active { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%); }
.player__cta { margin-top: 28px; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Подвал ---------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 32px clamp(16px, 6vw, 96px) 96px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.foot__brand { font: 700 18px/1 var(--font-display); letter-spacing: .12em; color: var(--fg); text-decoration: none; }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot a:not(.foot__brand) { text-decoration: none; }
.foot a:not(.foot__brand):hover { color: var(--warm); }

/* ---------- Телефон ---------- */
@media (max-width: 720px) {
  .top__nav { display: none; }
  .mode button { padding: 8px 11px; font-size: 10px; letter-spacing: .12em; }
  .top__brand { font-size: 17px; }
  .hero__code { bottom: 96px; }
  .term__body { font-size: 12.5px; min-height: 130px; }
  .apps__grid { grid-template-columns: 1fr; }
  .app__aurora { grid-template-columns: 1fr; }
  .app__shot { border-left: 0; border-top: 1px solid var(--line); }
  .hero__content { bottom: 96px; }
  .hero__title { font-size: clamp(72px, 24vw, 130px); }
  .hero__kicker { font-size: 11px; letter-spacing: .32em; }
  .btn { padding: 14px 18px; font-size: 12px; }
  .hero__scroll { display: none; }
  .hero__hint { display: none; }
  .snd.is-open .snd__panel { max-width: calc(100vw - 90px); }
  .snd__track { min-width: 0; max-width: 110px; overflow: hidden; }
  .snd__title { overflow: hidden; text-overflow: ellipsis; }
  .snd__vol { width: 64px; }
  .snd__dim span { display: none; }
  .music__stage { grid-template-columns: 1fr; }
  .vinyl { width: 60%; }
  .music__stage.is-playing .vinyl { --slide: 36%; }
  .track__play { grid-template-columns: 24px 18px minmax(0, 1fr) 34px; gap: 10px; }
  .track__bar { display: none; }
  .track__title { font-size: 15px; }
  .foot { padding-bottom: 90px; }
}

@media (max-width: 400px) {
  .top { padding: 16px 12px; gap: 10px; }
  .top__brand { font-size: 15px; letter-spacing: .08em; }
  .mode button { padding: 8px 8px; letter-spacing: .05em; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__grain, .gate__beam, .hero__scroll span { animation: none; }
}
