:root {
  --bg: #0a0d1a;
  --ink: #f3ebdf;
  --muted: rgba(243, 235, 223, .62);
  --line: rgba(243, 235, 223, .14);
  --accent: #e6b84a;
  --serif: 'Prata', Georgia, serif;
  --sans: 'Onest', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.7, 0, .2, 1);
}

/* Шрифтовые варианты: заголовки и рукописные подписи */
html[data-font="kurale"] { --serif: 'Kurale', Georgia, serif; --hand: 'Marck Script', cursive; }
html[data-font="alice"] { --serif: 'Alice', Georgia, serif; --hand: 'Caveat', cursive; }
html[data-font="ruslan"] { --serif: 'Ruslan Display', Georgia, serif; --hand: 'Bad Script', cursive; }
html[data-font="yeseva"] { --serif: 'Yeseva One', Georgia, serif; --hand: 'Marck Script', cursive; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
canvas { display: block; }
svg { display: block; }
::selection { background: var(--accent); color: #111; }

@media (pointer: fine) {
  html, a, button, [data-cursor] { cursor: none; }
}

/* Зерно поверх всего: статичная плитка, рисуется один раз в JS */
.grain { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .06; background-size: 180px 180px; }

/* Звёздное небо под всем сайтом */
main, .footer { position: relative; z-index: 1; }
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.stars .layer { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 900px); will-change: transform; }
.stars .s2 { animation: twinkle 4.5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .4; } to { opacity: 1; } }
.comet {
  position: absolute; top: 14%; left: 78%; width: 150px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, #fff6d8, rgba(255, 246, 216, 0)); box-shadow: 0 0 8px rgba(255, 246, 216, .6);
  animation: comet 13s linear 4s infinite; will-change: transform, opacity;
}
.comet.c2 { top: 46%; left: 42%; animation-duration: 19s; animation-delay: 11s; }
@keyframes comet {
  0% { opacity: 0; transform: translate(0, 0) rotate(-24deg); }
  1.5% { opacity: 1; }
  7% { opacity: 0; transform: translate(-460px, 205px) rotate(-24deg); }
  100% { opacity: 0; transform: translate(-460px, 205px) rotate(-24deg); }
}
.music, .justplay, .about { isolation: isolate; }
.music::before, .justplay::before, .about::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 46% at 88% 18%, rgba(63, 214, 198, .12), transparent 70%),
              radial-gradient(36% 40% at 8% 80%, rgba(230, 184, 74, .09), transparent 70%);
}

/* Переключатель шрифтов */
.fontbar {
  position: fixed; right: 14px; top: 50%; z-index: 70; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 999px;
  background: rgba(14, 16, 28, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.fontbar span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 4px; }
.fontbar button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font-size: 15px; transition: background-color .3s, color .3s; }
.fontbar button:hover { background: rgba(255, 255, 255, .08); }
.fontbar button.is-active { background: var(--accent); color: #111; }
.fontbar [data-font="kurale"] { font-family: 'Kurale'; }
.fontbar [data-font="alice"] { font-family: 'Alice'; }
.fontbar [data-font="ruslan"] { font-family: 'Ruslan Display'; }
.fontbar [data-font="yeseva"] { font-family: 'Yeseva One'; }
.fontbar [data-font="prata"] { font-family: 'Prata'; }
@media (max-width: 640px) { .fontbar { top: auto; bottom: 96px; transform: none; right: 8px; } .fontbar button { width: 30px; height: 30px; font-size: 13px; } }

/* Курсор-кисточка */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor::before {
  content: ''; position: absolute; width: 12px; height: 12px; left: -6px; top: -6px; border-radius: 50%;
  background: var(--accent); transition: transform .45s cubic-bezier(.2, .8, .2, 1), background-color .6s, opacity .3s;
}
.cursor.is-hover::before { transform: scale(3.2); opacity: .45; }
.cursor.is-label::before { transform: scale(7.6); }
.cursor-label {
  position: absolute; transform: translate(-50%, -50%); font-size: 12px; font-weight: 600; color: #120f0d;
  white-space: nowrap; opacity: 0; transition: opacity .25s;
}
.cursor.is-label .cursor-label { opacity: 1; transition-delay: .1s; }
@media (pointer: coarse) { .cursor { display: none; } }

/* Типографика */
.wrap { padding: 0 var(--pad); max-width: 1500px; margin: 0 auto; }
.eyebrow::before { content: '✦ '; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; transition: color .6s; }
.title { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.4vw, 104px); line-height: 1.02; letter-spacing: -.01em; }
.subtitle { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
.lead { max-width: 44ch; color: var(--muted); margin-top: 26px; font-size: 18px; }
.hand { font-family: var(--hand); font-size: 27px; line-height: 1.15; color: var(--accent); }

/* Фирменный приём: текст «прописывается» кистью */
.brush {
  -webkit-mask-image: linear-gradient(100deg, #000 40%, transparent 58%);
  mask-image: linear-gradient(100deg, #000 40%, transparent 58%);
  -webkit-mask-size: 270% 100%; mask-size: 270% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1.5s var(--ease), mask-position 1.5s var(--ease);
}
.brush.is-in { -webkit-mask-position: 0 0; mask-position: 0 0; }
.swash { width: min(320px, 62%); height: 22px; margin-top: 16px; overflow: visible; }
.swash path { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s .55s var(--ease), stroke .6s; }
.swash path + path { stroke-width: 2.5; opacity: .55; transition-delay: .8s; }
.swash.is-in path { stroke-dashoffset: 0; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s .25s, transform 1.1s .25s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; border: 0;
  background: var(--accent); color: #120f0d; font: 500 15px/1 var(--sans); text-decoration: none;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .6s, box-shadow .35s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.btn svg { width: 14px; height: 14px; }

/* Навигация */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad) 34px; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent) 30%, transparent);
}
.nav.on-hero { background: linear-gradient(to bottom, rgba(0, 0, 0, .38), transparent); }
.brand { font-family: var(--serif); font-size: 21px; text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand em { font-family: var(--hand); font-style: normal; font-size: 22px; color: var(--accent); transition: color .6s; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; text-decoration: none; opacity: .82; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 90, 78, .16); color: #ff9a90; font-size: 13px; text-decoration: none; }
.live-pill i, .live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a4e; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Первый экран */
.hero { height: 100vh; height: 100svh; overflow: hidden; position: relative; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 60% 50%; will-change: transform; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 8, 12, .74) 0%, rgba(10, 8, 12, .28) 52%, rgba(10, 8, 12, 0) 75%),
              linear-gradient(0deg, rgba(10, 8, 12, .62), transparent 36%);
}
.hero-content { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(96px, 17vh, 170px); }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8.6vw, 150px); line-height: .98; letter-spacing: -.015em; }
.hero-title .line { display: block; }
.hero-title .line:nth-child(2) { padding-left: .55em; }
.hero-title .line:nth-child(3) { padding-left: 1.1em; }
.hero-title .line:nth-child(2) .brush { transition-delay: .25s; }
.hero-title .line:nth-child(3) .brush { transition-delay: .5s; }
.hero-hint { margin-top: 26px; }
.hero-done { position: absolute; left: var(--pad); top: 38vh; max-width: 16ch; text-align: left; font-size: clamp(26px, 2.6vw, 38px); color: #fff4e3; opacity: 0; transform: rotate(-4deg); text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.hero-meta {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; justify-content: space-between; gap: 16px;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .hero-title { font-size: 10.6vw; }
  .hero-title .line:nth-child(2) { padding-left: .3em; }
  .hero-title .line:nth-child(3) { padding-left: .6em; }
  .hero-meta span:first-child { display: none; }
}

/* Живопись */
.paint { height: 100vh; height: 100svh; overflow: hidden; position: relative; }
.paint-track { display: flex; align-items: center; gap: clamp(40px, 5vw, 96px); height: 100%; padding: 0 var(--pad); width: max-content; will-change: transform; }
.paint-head { flex: 0 0 auto; width: min(500px, 84vw); }
.paint-end { flex: 0 0 auto; width: min(380px, 70vw); padding-right: 6vw; }
.paint-end .hand { font-size: 34px; }
.card { flex: 0 0 auto; }
.card:nth-of-type(odd) { transform: translateY(-5vh); }
.card:nth-of-type(even) { transform: translateY(6vh); }
.card-inner {
  position: relative; height: min(58vh, 540px, calc(80vw / var(--ar))); aspect-ratio: var(--ar);
  border-radius: 4px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.card-inner canvas { width: 100%; height: 100%; }
.card-glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .38), transparent 46%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .4s; }
.card:hover .card-glare { opacity: 1; }
.card-play {
  position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .04em;
  background: rgba(10, 8, 12, .72); color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.card:hover .card-play { opacity: 1; transform: none; }
.card-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 16px; }
.card-cap h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.card-cap span { color: var(--muted); font-size: 13px; }
.paint-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 34px; height: 1px; background: var(--line); }
.paint-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Музыка */
.music, .live, .orders, .about, .justplay { padding: clamp(110px, 17vh, 190px) 0; position: relative; }
.pulse { transform-origin: left center; will-change: transform; }
.deck { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 6vw; align-items: center; margin-top: clamp(56px, 9vh, 100px); }
.deck-stage { position: relative; aspect-ratio: 1.5 / 1; }
.deck-sleeve { position: absolute; left: 0; top: 0; width: 66.6%; aspect-ratio: 1; z-index: 2; border-radius: 3px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .85); }
.deck-sleeve canvas { width: 100%; height: 100%; }
.deck-sleeve::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .14), transparent 35%, transparent 70%, rgba(0, 0, 0, .25)); pointer-events: none; }
.deck-vinyl { position: absolute; left: 3%; top: 3%; width: 60.6%; aspect-ratio: 1; z-index: 1; transition: transform 1.2s var(--ease); }
.deck.is-out .deck-vinyl { transform: translateX(52%); }
.deck-vinyl::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 20deg, transparent 0 9%, rgba(255, 255, 255, .13) 13%, transparent 19% 55%, rgba(255, 255, 255, .08) 61%, transparent 68%);
}
.vinyl-disc {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  background: repeating-radial-gradient(circle, #121212 0 1.5px, #1c1c1c 1.5px 3px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
  animation: spin 2.2s linear infinite; animation-play-state: paused;
}
.deck.is-playing .vinyl-disc { animation-play-state: running; }
/* свечение в такт: заранее размытое пятно, меняется только opacity (дёшево) */
.glow { position: absolute; pointer-events: none; opacity: 0; will-change: opacity; }
.deck-vinyl .glow { inset: -14%; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 38%, transparent 70%); filter: blur(30px); z-index: -1; }
.vinyl-label { position: absolute; left: 33%; top: 33%; width: 34%; height: 34%; border-radius: 50%; }
.vinyl-disc::after { content: ''; position: absolute; left: 50%; top: 50%; width: 3%; height: 3%; transform: translate(-50%, -50%); border-radius: 50%; background: #0b0a0c; }
@keyframes spin { to { transform: rotate(360deg); } }
.deck-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.8vw, 60px); line-height: 1.04; }
.deck-meta { color: var(--muted); margin-top: 14px; font-variant-numeric: tabular-nums; }
.deck-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.crate { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); margin-top: clamp(70px, 11vh, 120px); }
.crate button { all: unset; display: block; width: 100%; }
.crate canvas { width: 100%; aspect-ratio: 1; border-radius: 3px; box-shadow: 0 22px 34px -20px rgba(0, 0, 0, .85); transition: transform .6s cubic-bezier(.2, .8, .2, 1), outline-color .4s; outline: 1px solid transparent; outline-offset: 6px; }
.crate button:hover canvas { transform: translateY(-10px) rotate(-1.5deg); }
.crate .is-active canvas { outline-color: var(--accent); }
.crate .t { display: block; margin-top: 16px; font-size: 15px; }
.crate .m { display: block; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.soon { margin-top: clamp(90px, 14vh, 150px); border-top: 1px solid var(--line); padding-top: 48px; }
.soon-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); margin-top: 40px; }
.soon-art { position: relative; border-radius: 3px; overflow: hidden; }
.soon-art canvas { width: 100%; aspect-ratio: 1; }
.soon-pct { position: absolute; right: 12px; top: 12px; font-family: var(--hand); font-size: 26px; color: #2a2025; }
.soon-bar { height: 2px; background: var(--line); margin: 16px 0 12px; }
.soon-bar i { display: block; height: 100%; background: var(--accent); }
.soon-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.soon-meta span { color: var(--muted); }
.soon-btn { margin-top: 16px; padding: 11px 18px; font-size: 13.5px; }
.soon-card.is-playing .soon-btn { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }

/* Эфиры */
.live-main { position: relative; aspect-ratio: 16 / 8; border-radius: 6px; overflow: hidden; margin-top: clamp(56px, 9vh, 96px); }
.live-main canvas { width: 100%; height: 100%; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.live-main:hover canvas { transform: scale(1.03); }
.live-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 6, 8, .78), transparent 50%); pointer-events: none; }
.live-main iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.live-badge { position: absolute; left: 20px; top: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #ff5a4e; color: #fff; font-size: 13px; font-weight: 500; }
.live-badge i { background: #fff; }
.live-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(12, 10, 16, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.live-play svg { width: 30px; height: 30px; margin-left: 4px; }
.live-main:hover .live-play { transform: scale(1.12); }
.live-caption { position: absolute; left: 24px; bottom: 22px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.live-caption span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.live-caption strong { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); }
.live-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.tile .thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 5px; overflow: hidden; }
.tile canvas { width: 100%; height: 100%; }
.tile .len { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 4px; background: rgba(0, 0, 0, .6); font-size: 12px; font-variant-numeric: tabular-nums; }
.tile .kind { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 8, 12, .7); font-size: 11.5px; }
.tile h4 { font-weight: 500; font-size: 15px; margin-top: 12px; line-height: 1.35; }
.tile p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.live-more { margin-top: 44px; }

/* Лаборатория */
.lab { height: 100vh; height: 100svh; overflow: hidden; position: relative; }
.lab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-inner { position: absolute; left: 0; right: 0; bottom: 11vh; pointer-events: none; }
.lab .lead { color: rgba(243, 235, 223, .75); }

/* Заказы */
.orders { padding-top: clamp(80px, 12vh, 140px); }
.order-list { list-style: none; margin-top: 56px; border-top: 1px solid var(--line); }
.order-list li {
  position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line); isolation: isolate; transition: color .5s, padding .6s var(--ease);
}
.order-list li::before { content: ''; position: absolute; inset: 0 -20px; z-index: -1; background: var(--accent); border-radius: 4px 80px 80px 4px; transform: scaleX(0); transform-origin: left; transition: transform .75s var(--ease); }
.order-list li:hover { color: #071012; padding-left: 26px; }
.order-list li:hover::before { transform: scaleX(1); }
.order-list .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .5s; }
.order-list .t { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 36px); line-height: 1.15; }
.order-list .d { color: var(--muted); transition: color .5s; }
.order-list li:hover .n, .order-list li:hover .d { color: rgba(7, 16, 18, .72); }
.orders-btn { margin-top: 44px; }

/* Просто включи */
.jp-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.jp-btn {
  position: relative; width: clamp(150px, 19vw, 260px); aspect-ratio: 1; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 62%);
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.jp-btn svg { width: 26%; height: 26%; margin-left: 6%; }
.jp-btn::before, .jp-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: ring 3.2s infinite cubic-bezier(.2, .8, .2, 1); }
.jp-btn::after { animation-delay: 1.6s; }
.jp-btn:hover { transform: scale(1.06); }
@keyframes ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.55); opacity: 0; } }

/* Обо мне */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 7vw; align-items: center; }
.about-photo { position: relative; }
.about-photo canvas { width: 100%; aspect-ratio: 4 / 5; border-radius: 999px 999px 6px 6px; }
.about-photo .hand { position: absolute; right: -6px; bottom: -40px; transform: rotate(-5deg); }
.about .lead::first-letter { font-family: var(--serif); font-size: 3.4em; float: left; line-height: .82; margin: .08em .12em 0 0; color: var(--accent); }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.tools li { padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }

/* Подвал */
.footer { padding: 90px 0 150px; border-top: 1px solid var(--line); overflow: hidden; }
.marquee { overflow: hidden; }
.marquee-inner { display: flex; width: max-content; white-space: nowrap; font-family: var(--serif); font-size: clamp(64px, 12vw, 200px); line-height: 1.05; will-change: transform; }
.marquee-inner span { padding-right: .35em; }
.marquee-inner em { font-style: normal; color: var(--accent); padding-right: .35em; }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 56px; color: var(--muted); font-size: 14px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

/* Плеер */
.player {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 14px; width: min(640px, calc(100% - 24px)); padding: 10px 14px 12px 10px; border-radius: 18px;
  background: rgba(20, 16, 26, .94);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: translate(-50%, 150%); transition: transform .9s var(--ease);
}
.player.is-on { transform: translate(-50%, 0); }
.player .glow { inset: -10px; border-radius: 26px; box-shadow: 0 0 40px 2px var(--accent); z-index: -1; }
.pl-cover { width: 46px; height: 46px; border-radius: 8px; flex: none; background: #2a2328; }
.pl-info { flex: 1; min-width: 0; }
.pl-title, .pl-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-title { font-size: 15px; font-weight: 500; }
.pl-sub { font-size: 12.5px; color: var(--muted); }
.pl-spectrum { width: 84px; height: 30px; flex: none; }
.pl-controls { display: flex; align-items: center; gap: 2px; }
.pl-controls button { border: 0; background: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: background-color .3s; }
.pl-controls button:hover { background: rgba(255, 255, 255, .08); }
.pl-controls svg { width: 17px; height: 17px; }
.pl-controls .pl-toggle { background: var(--ink); color: #121014; width: 42px; height: 42px; }
.pl-controls .pl-toggle:hover { background: var(--accent); }
.pl-progress { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pl-progress i { display: block; height: 100%; width: 0; background: var(--accent); }

/* Оверлеи */
.overlay-close { position: absolute; top: 20px; right: var(--pad); z-index: 5; border: 0; padding: 11px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--ink); font-size: 14px; }
.overlay-close:hover { background: rgba(255, 255, 255, .2); }

.viewer { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 4vw; align-items: center; padding: 7vh var(--pad); }
.viewer[hidden], .jp[hidden] { display: none; }
.viewer-bg { position: absolute; inset: 0; background: rgba(10, 8, 12, .95); }
.viewer-frame { position: relative; justify-self: center; transform-origin: 0 0; border-radius: 3px; overflow: hidden; box-shadow: 0 50px 100px -40px #000; }
.viewer-frame canvas { width: 100%; height: 100%; }
.viewer-side { position: relative; }
.v-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.05; }
.v-desc { color: var(--muted); margin: 18px 0 30px; }
.v-time { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.v-bar { height: 2px; background: var(--line); margin: 10px 0 28px; }
.v-bar i { display: block; height: 100%; background: var(--accent); width: 100%; }
.v-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (max-width: 820px) {
  .viewer { grid-template-columns: 1fr; align-content: center; gap: 28px; padding-top: 80px; }
  .viewer-side { padding-bottom: 20px; }
}

.jp { position: fixed; inset: 0; z-index: 85; background: #050405; }
.jp, .jp *, .viewer, .viewer * { cursor: auto; }
.jp button, .viewer button { cursor: pointer; }
.jp-buttons { position: absolute; top: 20px; right: var(--pad); z-index: 5; display: flex; gap: 8px; transition: opacity .5s; }
.overlay-btn { border: 0; padding: 11px 18px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: var(--ink); font-size: 14px; }
.overlay-btn:hover { background: rgba(255, 255, 255, .26); }
.jp.is-idle { cursor: none; }
.jp.is-idle .jp-buttons { opacity: 0; }
.jp canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.jp-fade { position: absolute; inset: 0; background: #050405; pointer-events: none; }
.jp-caption { position: absolute; left: var(--pad); bottom: 36px; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.jp-n { font-size: 12px; letter-spacing: .18em; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.jp-title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 44px); }
.jp-track { font-family: var(--hand); font-size: 26px; color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 110px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #121014; font-size: 14px; pointer-events: none; transition: opacity .4s, transform .4s; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Мобильная раскладка */
@media (max-width: 900px) {
  .deck { grid-template-columns: 1fr; }
  .crate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 70px; }
  .about-photo { max-width: 380px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .lead { font-size: 16.5px; }
  .crate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soon-grid { grid-template-columns: 1fr; }
  .live-main { aspect-ratio: 4 / 3; }
  .live-play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .order-list li { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 14px; padding: 24px 0; }
  .order-list .d { grid-column: 2; }
  .jp-inner { grid-template-columns: 1fr; justify-items: start; }
  .pl-spectrum, .pl-prev { display: none; }
}
