/* ===== Experience layer: 3D, depth, beat pulse, vibrance (loaded after styles.css) ===== */
:root{
  --mag:#ff3dbd; --mag2:#ff7ad9; --magglow:rgba(255,61,189,.42);
  --electric:linear-gradient(100deg,#2f63ff 0%,#5b86ff 30%,#7fe3ff 62%,#ff7ad9 100%);
  --beat:0;          /* 0→1 on every beat while a beat plays (set by experience.js) */
  --px:0; --py:0;    /* pointer position over the hero, -1…1 */
}

/* --- vibrance: a hot magenta light joins the blue, glows breathe --- */
.hero .lights b:nth-child(2){background:radial-gradient(circle,#ff3dbd,transparent 65%);opacity:.38}
.hero .lights::after{content:"";position:absolute;width:30%;height:40%;left:28%;top:8%;border-radius:50%;filter:blur(110px);background:radial-gradient(circle,#7fe3ff,transparent 65%);opacity:.35;animation:drift 26s ease-in-out infinite alternate-reverse}
.el{filter:drop-shadow(0 0 30px rgba(47,99,255,.45)) drop-shadow(0 0 60px rgba(255,61,189,.18))}
.btn-hot{background:linear-gradient(100deg,#2f63ff,#4b6dff 55%,#b14dff00),#2f63ff;position:relative;overflow:hidden}
.btn-hot::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.35) 50%,transparent 70%);transform:translateX(-120%);transition:transform .7s ease}
.btn-hot:hover::after{transform:translateX(120%)}
.track span::after{background:linear-gradient(135deg,#7fe3ff,#ff7ad9)}
.tier.hot{border-color:transparent;background:linear-gradient(var(--bg2),var(--bg2)) padding-box,conic-gradient(from var(--spin,0deg),#2f63ff,#7fe3ff,#ff7ad9,#2f63ff) border-box;border:1.5px solid transparent;animation:ring 6s linear infinite}
@property --spin{syntax:'<angle>';inherits:false;initial-value:0deg}
@keyframes ring{to{--spin:360deg}}
.badge,.tier .bd{background:linear-gradient(100deg,#7fe3ff,#ff9ae2)}
.kick::before{background:linear-gradient(90deg,#2f63ff,#ff7ad9)}

/* --- 3D depth in the hero: layers move at different speeds with the pointer --- */
.hero{perspective:1400px}
.hero .ghost{transform:translate3d(calc(-50% + var(--px) * -24px),calc(var(--py) * -14px),0)}
.hero .lights{transform:translate3d(calc(var(--px) * 30px),calc(var(--py) * 20px),0) scale(calc(1 + var(--beat) * .035))}
.hgrid > .rv:first-child{transform:translate3d(calc(var(--px) * -10px),calc(var(--py) * -6px),0)}
.deck{transform-style:preserve-3d;transform:rotateY(calc(-14deg + var(--px) * 10deg)) rotateX(calc(6deg + var(--py) * -8deg));transition:transform .25s ease-out}
.deck .sleeve{transform:translateZ(60px);box-shadow:0 60px 110px rgba(0,0,0,.7),0 0 0 1px rgba(170,190,255,.14),0 0 calc(40px + var(--beat) * 50px) rgba(47,99,255,calc(.18 + var(--beat) * .35))}
.deck .vinyl{transform:translateZ(10px)}
.deck .seal{transform:translateZ(110px)}
.deck .now{transform:translateZ(130px)}
.deck::after{content:"";position:absolute;left:8%;right:4%;bottom:-6%;height:14%;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.65),transparent);transform:translateZ(-40px) rotateX(80deg);pointer-events:none}

/* --- piano: a glossy floor reflection + beat glow --- */
.piano-stage::after{content:"";position:absolute;left:4%;right:4%;bottom:-6px;height:70px;background:radial-gradient(50% 100% at 50% 0%,rgba(47,99,255,calc(.25 + var(--beat) * .45)),transparent 70%);filter:blur(12px);pointer-events:none}
.wk.on{background:linear-gradient(180deg,#5b86ff 0%,#a9c4ff 30%,#ffe3f6 85%,#ff9ae2 100%);box-shadow:inset 0 -6px 0 #ff7ad9,0 0 40px rgba(47,99,255,.9),0 0 90px rgba(255,61,189,.45)}

/* --- 3D tilt cards (pointer-driven) with a moving glare --- */
.tilt{transform-style:preserve-3d;transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(0);transition:transform .35s cubic-bezier(.2,.7,.2,1);will-change:transform}
.tilt.live{transition:transform .08s linear}
.tilt::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:5;opacity:0;transition:opacity .3s;
  background:radial-gradient(420px circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.16),rgba(127,227,255,.06) 30%,transparent 60%)}
.tilt.live::before{opacity:1}
.tier,.rev,.freebox,.big,.portrait{position:relative}
.card.tilt .cv{transform:translateZ(30px)}
.card.tilt .ci{transform:translateZ(18px)}
.tier.tilt > *{transform:translateZ(22px)}

/* --- sections arrive in 3D instead of a flat fade --- */
.rv{transform:perspective(1100px) translate3d(0,46px,0) rotateX(14deg);transform-origin:50% 100%}
.rv.in{transform:none}
.rv.tilt.in{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}

/* --- section ghost words drift with scroll for depth --- */
.sec > .ghost{transform:translate3d(calc(-50% + var(--sx,0px)),0,0)}

/* --- beat pulse: things that breathe on the beat while music plays --- */
body.on-beat .eq i{background:var(--mag2)}
.player{box-shadow:0 24px 70px rgba(0,0,0,.6),0 0 calc(var(--beat) * 40px) rgba(47,99,255,calc(var(--beat) * .55))}
.player .pbig{transform:scale(calc(1 + var(--beat) * .08))}
.row.on.playing{box-shadow:inset 3px 0 0 var(--ice),0 0 calc(var(--beat) * 30px) rgba(47,99,255,calc(var(--beat) * .25))}
.stat b{text-shadow:0 0 calc(var(--beat) * 24px) rgba(127,227,255,.5)}

/* --- intro: drop the needle --- */
.intro{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:radial-gradient(700px 500px at 50% 40%,rgba(29,77,255,.35),transparent 70%),#03040a;transition:opacity .7s ease,visibility .7s;perspective:1000px}
.intro.gone{opacity:0;visibility:hidden}
.intro .rec{width:min(56vmin,360px);aspect-ratio:1;border-radius:50%;position:relative;transform:rotateX(58deg);animation:introSpin 1.2s cubic-bezier(.3,.6,.2,1) forwards;
  background:radial-gradient(circle,#2f63ff 0 15%,#000 15.5% 17%,transparent 17.5%),repeating-radial-gradient(circle,#13172a 0 1px,#07080f 1.5px 3px);box-shadow:0 0 0 2px #1c2240,0 40px 120px rgba(47,99,255,.45)}
.intro .rec::after{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,transparent 0 12%,rgba(170,200,255,.22) 16%,transparent 22% 55%,rgba(255,122,217,.16) 60%,transparent 66%);animation:spin 1.1s linear infinite}
@keyframes introSpin{from{transform:rotateX(58deg) scale(.6);opacity:0}to{transform:rotateX(0deg) scale(1);opacity:1}}
.intro .word{position:absolute;text-align:center;font:900 clamp(30px,6vw,76px)/.9 var(--display);letter-spacing:-.03em;text-transform:uppercase;pointer-events:none}
.intro .word small{display:block;font:800 11px var(--body);letter-spacing:.42em;color:var(--ice);margin-top:16px}
.intro .go{position:absolute;bottom:12vh;display:flex;gap:10px;flex-wrap:wrap;justify-content:center;padding:0 16px}
.intro .bar{position:absolute;bottom:7vh;width:160px;height:3px;border-radius:3px;background:rgba(170,190,255,.15);overflow:hidden}
.intro .bar i{display:block;height:100%;width:0;background:var(--electric);animation:load 2.6s linear forwards}
@keyframes load{to{width:100%}}

@media (prefers-reduced-motion:reduce){
  .tilt,.deck,.hero .ghost,.hero .lights,.hgrid > .rv:first-child,.rv{transform:none!important}
  .intro{display:none}
}
@media (hover:none){ .tilt{transform:none} .deck{transform:rotateY(-8deg) rotateX(4deg)} }
