/* Visible and still by default, including when JavaScript fails to load */
.hero{--vinyl-spin-duration:22s;--vinyl-drift-duration:8s;--vinyl-ease:cubic-bezier(.22,1,.36,1)}
.vinyl-art{position:relative;min-width:0;width:min(100%,620px);justify-self:center;aspect-ratio:1.15;perspective:1000px;isolation:isolate;user-select:none}
.vinyl-art:before{content:'';position:absolute;inset:4% -4% -6%;z-index:-1;background:radial-gradient(ellipse at 58% 50%,#71468824,transparent 65%);pointer-events:none}
.vinyl-shadow{position:absolute;left:7%;right:7%;bottom:12%;height:10%;border-radius:50%;background:#0009;filter:blur(20px);transform:rotate(-7deg) scale(.98);opacity:.62}
.vinyl-tilt{position:absolute;inset:0;transform:rotateX(calc(var(--ny,0)*-4deg)) rotateY(calc(var(--nx,0)*5deg));transition:transform .65s var(--vinyl-ease);transform-style:preserve-3d}
.vinyl-float{position:absolute;inset:0;transform:rotate(-7deg)}

/* Lighting stays on the disc housing; only the grooves and label rotate */
.vinyl-disc{position:absolute;width:55%;aspect-ratio:1;left:38%;top:19.725%;border-radius:50%;overflow:hidden;background:conic-gradient(from 35deg,#18151d,#0a090c 20%,#352a3b 29%,#141017 39%,#0c0b0e 60%,#382c40 75%,#121016 86%,#18151d);box-shadow:0 20px 35px #0008,0 0 0 1px #e3c6f02b;translate:calc(var(--nx,0)*3px) calc(var(--ny,0)*1px);transition:translate .65s var(--vinyl-ease)}
.vinyl-disc:after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 1px 1px 0 #e7d1f240,inset -1px -1px 0 #e7d1f225;pointer-events:none}
.vinyl-platter{position:absolute;inset:0;border-radius:50%;background:transparent;border:1px solid #cdb4dd20;box-shadow:inset 0 0 0 5px #0b090d88,inset 0 0 0 6px #e1c6f010;display:grid;place-items:center}
.vinyl-platter:before{content:'';position:absolute;inset:4%;border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 3px,#dec7ed19 3.5px 4px,transparent 4.5px 6px);border:1px solid #ffffff08}
.vinyl-label{position:relative;width:32%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:#c3a8d5;color:#2b1d35;font-size:clamp(16px,1.7vw,26px);line-height:1;letter-spacing:-.7px;box-shadow:0 0 0 6px #100c1577,0 0 0 7px #e1c6f01a}
.vinyl-light{position:absolute;inset:0;border-radius:50%;background:linear-gradient(110deg,transparent 42%,#dfc9ed1c 50%,transparent 58%);background-size:200% 100%;background-position:calc(50% + var(--nx,0)*10%) 50%;transition:background-position .7s var(--vinyl-ease);pointer-events:none}

.vinyl-sleeve{position:absolute;left:6%;top:18%;width:58%;aspect-ratio:1;background:linear-gradient(145deg,#d7bde7 0%,#b897ce 42%,#a581bd 100%);border:1px solid #edd5fb50;box-shadow:8px 18px 36px #0007,inset 0 0 45px #e8c5ff14;overflow:hidden;translate:calc(var(--nx,0)*-1px) calc(var(--ny,0)*-.5px);transition:translate .65s var(--vinyl-ease)}
.vinyl-sleeve:before{content:'';position:absolute;width:105%;aspect-ratio:1;right:-34%;bottom:-34%;border-radius:50%;background:#3c294a;box-shadow:0 0 0 1px #f1d9ff0b,inset 0 0 45px #160e221c}
.vinyl-sleeve:after{content:'';position:absolute;width:40%;aspect-ratio:1;right:-1.5%;bottom:-1.5%;border-radius:50%;background:#bd9bd1;box-shadow:0 0 0 1px #edd5fb10}
.vinyl-wordmark{position:absolute;top:10%;left:11%;color:#34203f;font-size:clamp(36px,4.4vw,68px);letter-spacing:-3px;line-height:1;font-weight:400}

/* The compact record uses the same speed and stationary lighting */
.mobile-record{border-radius:50%;background:conic-gradient(from 35deg,#352b3d,#151218 22%,#44334e 36%,#18131d 55%,#4a3657 74%,#19151e 90%,#352b3d);box-shadow:0 18px 55px #0005}
.mobile-record .record:before{background:repeating-radial-gradient(circle,transparent 0 7px,#d5b9e710 8px 9px);box-shadow:none}

/* JS opts into motion only after initialization; pausing also covers the phone */
.vinyl-ready .vinyl-platter,.vinyl-ready .record{animation:vinyl-spin var(--vinyl-spin-duration) linear infinite}
.vinyl-ready .vinyl-float{animation:vinyl-drift var(--vinyl-drift-duration) ease-in-out infinite}
.vinyl-ready .vinyl-shadow{animation:vinyl-shadow-drift var(--vinyl-drift-duration) ease-in-out infinite}
.vinyl-ready .is-entering .vinyl-sleeve{animation:vinyl-sleeve-enter 1.1s var(--vinyl-ease) both}
.vinyl-ready .is-entering .vinyl-disc{animation:vinyl-emerge 1.35s var(--vinyl-ease) .3s both}
.hero:not(.vinyl-playing) .vinyl-platter,.hero:not(.vinyl-playing) .vinyl-float,.hero:not(.vinyl-playing) .vinyl-shadow,.hero:not(.vinyl-playing) .record,.hero:not(.vinyl-playing) .is-entering .vinyl-disc,.hero:not(.vinyl-playing) .is-entering .vinyl-sleeve{animation-play-state:paused}
@keyframes vinyl-spin{to{transform:rotate(360deg)}}
@keyframes vinyl-drift{0%,100%{transform:translateY(2px) rotate(-7.3deg)}50%{transform:translateY(-4px) rotate(-6.7deg)}}
@keyframes vinyl-shadow-drift{0%,100%{transform:rotate(-7deg) scale(.98);opacity:.62}50%{transform:rotate(-7deg) scale(1.02);opacity:.52}}
@keyframes vinyl-emerge{from{opacity:0;transform:translateX(-35%)}to{opacity:1;transform:translateX(0)}}
@keyframes vinyl-sleeve-enter{from{opacity:0;transform:translate(-10px,12px) rotate(-3deg)}to{opacity:1;transform:translate(0,0) rotate(0deg)}}
@media(max-width:1000px){.vinyl-label{letter-spacing:-1px}.vinyl-shadow{filter:blur(15px)}}
@media(max-width:700px){.vinyl-art{display:none}}
@media(prefers-reduced-motion:reduce){
 .vinyl-ready .vinyl-platter,.vinyl-ready .record,.vinyl-ready .vinyl-float,.vinyl-ready .vinyl-shadow,.vinyl-ready .is-entering .vinyl-disc,.vinyl-ready .is-entering .vinyl-sleeve{animation:none}
 .vinyl-tilt{transform:none;transition:none}.vinyl-disc,.vinyl-sleeve{translate:none;transition:none}.vinyl-light{background-position:50% 50%;transition:none}
}
