/* Pluto motion pack: starfield, orbit, planet glow, seal, tilt + glare, scroll progress, draw-ins.
   Everything that moves is gated by html.pl-motion (added in <head> unless the visitor prefers reduced motion). */

/* --- Static pieces (shown with or without motion) --- */
/* Planet horizon: the glowing rim of a violet world rising under the hero. */
.pl-planet { position: absolute; z-index: -1; left: 50%; bottom: -118vw; width: 150vw; height: 150vw; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
	background: radial-gradient(closest-side, #12082a 92%, rgba(139, 61, 255, .55) 97.5%, rgba(224, 75, 255, .25) 99%, transparent 100%);
	box-shadow: 0 -30px 120px -20px rgba(139, 61, 255, .55), 0 -4px 40px -6px rgba(127, 227, 255, .35); }
.pl-orbit { position: absolute; z-index: -1; right: -6%; top: -4%; width: min(780px, 70vw); height: auto; pointer-events: none; opacity: .55; overflow: visible; }
.pl-orbit ellipse { fill: none; stroke: rgba(201, 184, 255, .4); stroke-width: 1.2; stroke-dasharray: 2 7; }
.pl-orbit__moon { fill: #f4f0ff; opacity: 0; }
.pl-seal { position: absolute; z-index: 2; width: 118px; height: 118px; left: -48px; top: -36px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .8)); }
.pl-seal__disc { fill: #120a26; stroke: rgba(201, 184, 255, .6); stroke-width: 1.2; }
.pl-seal text { font: 700 9.6px "Space Grotesk", sans-serif; letter-spacing: 2px; fill: #efe9ff; }
.pl-seal__star { fill: #9fe6ff; }
.pl-plate { overflow: hidden; }
.pl-plate__shine { position: absolute; inset: 0; border-radius: 24px; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%); background-size: 250% 100%; background-position: 130% 0; mix-blend-mode: screen; }
.pl-dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.pl-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--pl-grad-metal); transform-origin: left center; transform: scaleX(var(--pl-progress, 0)); pointer-events: none; }

.pl-band { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--pl-line-soft); border-bottom: 1px solid var(--pl-line-soft); background: #090713; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pl-band__track { display: flex; width: max-content; }
.pl-band__group { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.pl-band__group span { font: 800 clamp(34px, 4.8vw, 66px)/1.15 var(--pl-display); text-transform: uppercase; white-space: nowrap; background: var(--pl-grad-holo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--pl-silver); }
.pl-band__group span.pl-band__outline { background: none; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.2px rgba(201, 184, 255, .6); color: transparent; }
.pl-band .pl-star { width: 26px; height: 26px; color: var(--pl-silver); }

/* Glare layer used by the tilt cards */
.pl-glare { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(214, 196, 255, .18), transparent 45%); }
.pl-site .products > .product .product-inner { position: relative; }

@media (max-width: 991px) {
	.pl-seal { width: 92px; height: 92px; left: -16px; top: -26px; }
	.pl-orbit { right: -30%; top: 2%; width: 120vw; opacity: .35; }
	.pl-planet { bottom: -132vw; }
}

/* --- Keyframes --- */
@keyframes pl-moon { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes pl-planet-glow { 0%, 100% { box-shadow: 0 -30px 120px -20px rgba(139, 61, 255, .55), 0 -4px 40px -6px rgba(127, 227, 255, .35); } 50% { box-shadow: 0 -40px 160px -16px rgba(224, 75, 255, .6), 0 -6px 50px -4px rgba(127, 227, 255, .5); } }
@keyframes pl-nebula { from { opacity: .55; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
@keyframes pl-seal-spin { to { transform: rotate(360deg); } }
@keyframes pl-band-move { to { transform: translateX(-50%); } }
@keyframes pl-plate-shine { 0%, 62% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes pl-ken { from { transform: scale(1.04); } to { transform: scale(1.14) translate3d(-1.5%, 0, 0); } }
@keyframes pl-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pl-pop-in { from { opacity: 0; transform: scale(.4) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes pl-slide-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes pl-holo-sweep { from { background-position: 100% 50%; } to { background-position: 0% 50%; } }

/* --- Hero --- */
html.pl-motion .pl-hero__bg { animation: pl-ken 28s ease-in-out infinite alternate; will-change: transform; }
html.pl-motion .pl-planet { animation: pl-planet-glow 10s ease-in-out infinite; }
html.pl-motion .pl-orbit__moon { opacity: 1; offset-path: path("M586 300 A286 104 0 1 1 14 300 A286 104 0 1 1 586 300"); offset-rotate: 0deg; animation: pl-moon 26s linear infinite; }
html.pl-motion .pl-orbit { animation: pl-seal-spin 240s linear infinite; }
html.pl-motion .pl-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 70% at 78% 30%, rgba(139, 61, 255, .3), transparent 60%), radial-gradient(40% 50% at 18% 75%, rgba(127, 227, 255, .1), transparent 60%); animation: pl-nebula 14s ease-in-out infinite alternate; }
html.pl-motion .pl-hero__grid { position: relative; }
html.pl-motion .pl-hero__grid::before { content: ""; position: absolute; inset: -40% -20%; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(170, 130, 255, .12), transparent 60%); }
html.pl-motion .pl-seal { animation: pl-seal-spin 22s linear infinite; }
html.pl-motion .pl-seal__star { transform-origin: 60px 60px; animation: pl-seal-spin 22s linear infinite reverse; }
html.pl-motion .pl-plate__shine { animation: pl-plate-shine 7s ease-in-out 2s infinite; }

/* --- Band (second marquee) runs the other way --- */
html.pl-motion .pl-band__track { animation: pl-band-move 38s linear infinite reverse; }
.pl-band:hover .pl-band__track { animation-play-state: paused; }

/* --- Section heads: holo foil sweeps in, rule draws from the center --- */
html.pl-motion .pl-reveal .pl-h2 .pl-holo-text { background-size: 260% 100%; background-position: 100% 50%; }
html.pl-motion .pl-reveal.is-in .pl-h2 .pl-holo-text { animation: pl-holo-sweep 1.6s cubic-bezier(.2, .8, .2, 1) .2s both; }
html.pl-motion .pl-reveal .pl-rule i { transform: scaleX(0); }
html.pl-motion .pl-reveal .pl-rule i:first-child { transform-origin: right; }
html.pl-motion .pl-reveal .pl-rule i:last-child { transform-origin: left; }
html.pl-motion .pl-reveal.is-in .pl-rule i { animation: pl-draw 1s cubic-bezier(.2, .8, .2, 1) .35s both; }
html.pl-motion .pl-reveal .pl-rule .pl-star { opacity: 0; }
html.pl-motion .pl-reveal.is-in .pl-rule .pl-star { animation: pl-pop-in .6s cubic-bezier(.2, .9, .3, 1.4) .2s both, pl-twinkle 3.2s ease-in-out 1.4s infinite; }

/* --- Spec sheet rows slide in one after another --- */
html.pl-motion .pl-reveal .pl-spec > div { opacity: 0; }
html.pl-motion .pl-reveal.is-in .pl-spec > div { animation: pl-slide-in .7s cubic-bezier(.2, .8, .2, 1) both; }
html.pl-motion .pl-reveal.is-in .pl-spec > div:nth-child(2) { animation-delay: .08s; }
html.pl-motion .pl-reveal.is-in .pl-spec > div:nth-child(3) { animation-delay: .16s; }
html.pl-motion .pl-reveal.is-in .pl-spec > div:nth-child(4) { animation-delay: .24s; }
html.pl-motion .pl-reveal.is-in .pl-spec > div:nth-child(5) { animation-delay: .32s; }
html.pl-motion .pl-reveal.is-in .pl-spec > div:nth-child(6) { animation-delay: .4s; }
html.pl-motion .pl-spec dt .pl-ico { transition: transform .4s cubic-bezier(.2, .9, .3, 1.4), color .3s ease; }
html.pl-motion .pl-spec > div:hover dt .pl-ico { transform: scale(1.3) rotate(-10deg); color: #fff; }

/* --- Feature + step icons pop, step connectors draw --- */
html.pl-motion .pl-reveal .pl-feature__ico,
html.pl-motion .pl-reveal .pl-guide__marker { opacity: 0; }
html.pl-motion .pl-reveal.is-in .pl-feature__ico,
html.pl-motion .pl-reveal.is-in .pl-guide__marker { animation: pl-pop-in .7s cubic-bezier(.2, .9, .3, 1.3) calc(.2s + var(--pl-i, 0) * 80ms) both; }
html.pl-motion .pl-feature:hover .pl-feature__ico { animation: pl-twinkle 1.2s ease-in-out 1; }
html.pl-motion .pl-steps li::after { transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2, .8, .2, 1) .6s; }
html.pl-motion .pl-steps li.is-in::after { transform: scaleX(1); }
html.pl-motion .pl-steps__n { background-size: 260% 100%; background-position: 100% 50%; transition: background-position 1.4s cubic-bezier(.2, .8, .2, 1) .3s; }
html.pl-motion .pl-steps li.is-in .pl-steps__n { background-position: 0% 50%; }

/* --- Tilt cards (angles set by script.js) --- */
html.pl-motion .pl-tilt.is-tilting { transition: border-color .3s ease, box-shadow .35s ease; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
html.pl-motion .pl-tilt.is-tilting .pl-glare { opacity: 1; }

/* --- Wholesale + CTA --- */
html.pl-motion .pl-wholesale__bg { animation: pl-ken 30s ease-in-out infinite alternate-reverse; }
html.pl-motion .pl-cta__mark { transform: translate(-50%, -50%) rotate(var(--pl-rot, 0deg)); }
html.pl-motion .pl-reveal .pl-packs li { opacity: 0; }
html.pl-motion .pl-reveal.is-in .pl-packs li { animation: pl-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
html.pl-motion .pl-reveal.is-in .pl-packs li:nth-child(2) { animation-delay: .07s; }
html.pl-motion .pl-reveal.is-in .pl-packs li:nth-child(3) { animation-delay: .14s; }
html.pl-motion .pl-reveal.is-in .pl-packs li:nth-child(4) { animation-delay: .21s; }
html.pl-motion .pl-reveal.is-in .pl-packs li:nth-child(5) { animation-delay: .28s; }
html.pl-motion .pl-reveal.is-in .pl-packs li:nth-child(6) { animation-delay: .35s; }
html.pl-motion .pl-reveal.is-in .pl-packs li:nth-child(7) { animation-delay: .42s; }

/* --- Magnetic buttons (offset set by script.js) --- */
html.pl-motion .pl-btn.is-magnet { translate: var(--bx, 0px) var(--by, 0px); }

/* --- FAQ answers ease open --- */
html.pl-motion .pl-faq details[open] p { animation: pl-slide-in .45s ease both; }

/* --- Logo glints on hover --- */
html.pl-motion .pl-logo { position: relative; overflow: hidden; }
html.pl-motion .pl-logo::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-200%) skewX(-20deg); pointer-events: none; }
html.pl-motion .pl-logo:hover::after { animation: pl-shine 1s ease forwards; }

@media (prefers-reduced-motion: reduce) {
	.pl-band__track { width: auto; justify-content: center; }
	.pl-band__group:nth-child(2) { display: none; }
	.pl-band__group { flex-wrap: wrap; justify-content: center; row-gap: 12px; padding: 0 16px; }
	.pl-band__group span { font-size: clamp(30px, 5vw, 56px); }
}
