/* ================================================================== *
 * ORBIT: 3D floating product stage
 * ================================================================== */
.orb-main { padding-bottom: 0; }
.orb { position: relative; height: 240vh; }
.orb-sticky {
	contain: layout paint; position: sticky; top: var(--hdr, 64px); height: calc(100svh - var(--hdr, 64px)); min-height: 520px;
	overflow: hidden; isolation: isolate; perspective: 900px; perspective-origin: 50% 42%;
	background:
		radial-gradient(60% 45% at 50% 38%, rgba(139, 92, 246, .38), transparent 70%),
		radial-gradient(40% 35% at 85% 85%, rgba(232, 121, 249, .16), transparent 70%),
		radial-gradient(45% 40% at 10% 90%, rgba(56, 189, 248, .10), transparent 70%),
		#07060C;
}
.orb-stars {
	position: absolute; inset: -400px; z-index: -1; opacity: .7;
	background-image:
		radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 72% 12%, #fff, transparent),
		radial-gradient(1.2px 1.2px at 38% 68%, #fff, transparent), radial-gradient(1px 1px at 88% 58%, #fff, transparent),
		radial-gradient(1.4px 1.4px at 22% 88%, #C4A8FF, transparent), radial-gradient(1px 1px at 58% 38%, #fff, transparent),
		radial-gradient(1.2px 1.2px at 93% 85%, #E879F9, transparent), radial-gradient(1px 1px at 5% 50%, #fff, transparent);
	background-size: 360px 360px; animation: orb-stars 60s linear infinite; will-change: transform;
}
@keyframes orb-stars { from { transform: translate3d(-180px, -360px, 0); } to { transform: translate3d(180px, 360px, 0); } }

/* Giant word behind the cards */
.orb-word {
	position: absolute; inset: 0; z-index: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding-bottom: 22%; pointer-events: none; text-align: center; transform: scale(var(--ws, 1)); opacity: var(--wo, 1); will-change: transform, opacity;
	font: 900 clamp(3.6rem, 19vw, 15rem)/.82 var(--n-cond); font-stretch: 62%; text-transform: uppercase; letter-spacing: -.01em;
}
.orb-word span:first-child { color: transparent; -webkit-text-stroke: 1.5px rgba(196, 168, 255, .55); }
.orb-word span:last-child { background: linear-gradient(90deg, #8B5CF6, #E879F9 55%, #FDBA74); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(139, 92, 246, .45)); }

.orb-scene { position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d; }
.orb-card {
	--w: clamp(118px, 33vw, 250px);
	position: absolute; left: 50%; top: 42%; width: var(--w); margin: calc(var(--w) * -.5) 0 0 calc(var(--w) * -.5);
	transform: translate3d(calc(var(--x) * 1vw), calc(var(--y) * 1svh), calc(var(--z) * 1px)) rotate(var(--r));
	text-decoration: none !important; color: #fff; will-change: transform, opacity; backface-visibility: hidden; -webkit-tap-highlight-color: transparent;
}
.orb-card-in {
	position: relative; display: block; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--n-photo);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12), 0 0 50px -10px rgba(139, 92, 246, .55);
	animation: orb-bob 6s ease-in-out var(--d, 0s) infinite alternate;
}
@keyframes orb-bob { from { transform: translateY(-6px) rotate(-1deg); } to { transform: translateY(8px) rotate(1.5deg); } }
.orb-card-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orb-card-in::after { /* holographic foil */
	content: ""; position: absolute; top: -75%; left: -75%; width: 250%; height: 250%; pointer-events: none; opacity: .22;
	background: linear-gradient(115deg, transparent 25%, rgba(255, 0, 200, .55) 40%, rgba(0, 255, 255, .55) 50%, rgba(255, 255, 0, .45) 60%, transparent 75%);
	animation: orb-holo 5s ease-in-out var(--d, 0s) infinite alternate; will-change: transform;
}
@keyframes orb-holo { from { transform: translate3d(30%, 30%, 0); } to { transform: translate3d(-30%, -30%, 0); } }
.orb-card-tag {
	position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 2px;
	padding: .45rem .6rem; border-radius: 12px; background: rgba(10, 9, 16, .88);
}
.orb-card-tag b { font: 600 .74rem/1.2 Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orb-card-tag em { font: 700 .74rem/1.2 Inter, sans-serif; font-style: normal; color: var(--n-lilac); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orb-card-tag em del { opacity: .55; }
@media (hover: hover) { .orb-card:hover .orb-card-in { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 2px var(--n-lilac), 0 0 70px -5px rgba(232, 121, 249, .8); } }

.orb-ui {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 4rem var(--wp--preset--spacing--40) calc(1.6rem + env(safe-area-inset-bottom));
	background: linear-gradient(180deg, transparent, rgba(7, 6, 12, .88) 45%); opacity: var(--uo, 1); transform: translateY(var(--uy, 0)); will-change: transform, opacity;
	pointer-events: none;
}
.orb-ui > * { pointer-events: auto; }
.orb-ui .nx-live { margin-bottom: .8rem; }
.orb-h1 { margin: 0 0 1rem; max-width: 18ch; font-size: clamp(1.5rem, 5.4vw, 2.6rem) !important; line-height: 1 !important; font-weight: 900 !important; font-stretch: 78%; }
.orb-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; width: 100%; max-width: 420px; }
.orb-ctas .nx-btn { flex: 1; padding: 0 1.1rem; }
.orb-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 3px; background: rgba(255, 255, 255, .06); }
.orb-progress i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; background: linear-gradient(90deg, var(--n-purple), var(--n-glow)); }
@media (max-height: 640px) { .orb-ui .nx-live { display: none; } .orb-ui { padding-top: 2.5rem; } }

/* No JS or reduced motion: a plain swipeable row instead of the 3D flight */
.orb.orb--static { height: auto; }
.orb--static .orb-sticky { position: relative; top: 0; height: auto; min-height: 0; perspective: none; padding: 1.5rem 0 0; }
.orb--static .orb-word { position: relative; font-size: clamp(3rem, 16vw, 9rem); padding: 1rem 0; }
.orb--static .orb-scene { position: relative; display: flex; gap: 12px; overflow-x: auto; padding: 1rem var(--wp--preset--spacing--40) 1.5rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.orb--static .orb-card { position: relative; left: auto; top: auto; margin: 0; flex: 0 0 var(--w); transform: none !important; opacity: 1 !important; visibility: visible !important; scroll-snap-align: center; }
.orb--static .orb-card-in, .orb--static .orb-card-in::after { animation: none; }
.orb--static .orb-ui { position: relative; background: none; padding-top: 1rem; }
.orb--static .orb-progress { display: none; }

/* ================================================================== *
 * ORBIT: kinetic category words
 * ================================================================== */
.orb-words { display: block; padding: clamp(2.5rem, 7vw, 5rem) 0; overflow: hidden; border-top: 1px solid var(--n-line); border-bottom: 1px solid var(--n-line); background: #07060C; }
.orb-w-row { display: block; text-decoration: none !important; color: var(--n-text) !important; padding: .05em 0; }
.orb-w-track {
	display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; will-change: transform;
	transform: translateX(calc(-12% + var(--wx, 0px)));
	font: 900 clamp(3.2rem, 15vw, 10rem)/.95 var(--n-cond); font-stretch: 62%; text-transform: uppercase; letter-spacing: -.01em;
}
.orb-w-row--outline .orb-w-word { color: transparent; -webkit-text-stroke: 1.5px var(--n-lilac); }
.orb-w-pic {
	display: inline-block; flex: none; width: .9em; height: .9em; border-radius: .2em; background: var(--n-photo) center / cover no-repeat;
	transform: rotate(-6deg); box-shadow: 0 0 0 2px rgba(255, 255, 255, .15), 0 0 30px -5px rgba(139, 92, 246, .7); transition: transform .3s var(--n-ease);
}
.orb-w-count { flex: none; padding: .4em .7em; border-radius: 999px; background: var(--n-purple); color: #fff; font: 700 clamp(.75rem, 2.6vw, 1rem)/1 Inter, sans-serif; letter-spacing: 0; text-transform: none; }
@media (hover: hover) {
	.orb-w-row:hover .orb-w-word { color: var(--n-lilac); -webkit-text-stroke: 0; }
	.orb-w-row:hover .orb-w-pic { transform: rotate(4deg) scale(1.1); }
}

/* ================================================================== *
 * ORBIT: holographic tilt cards in product grids
 * ================================================================== */
.nx-grid .wc-block-components-product-image, .nx-card-media { position: relative; }
.nx-grid .wc-block-components-product-image::after, .nx-card-media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0; transition: opacity .3s ease;
	background: linear-gradient(115deg, transparent 20%, rgba(255, 0, 200, .5) 38%, rgba(0, 255, 255, .5) 50%, rgba(255, 255, 0, .4) 62%, transparent 80%);
	background-size: 260% 260%; background-position: var(--mx, 50%) var(--my, 50%);
}
.nx-grid .wc-block-product.is-holo .wc-block-components-product-image::after, .nx-card.is-holo .nx-card-media::after { opacity: .55; }
@media (hover: hover) and (pointer: fine) {
	.nx-grid .wc-block-product.is-holo, .nx-card.is-holo { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); transition: transform .08s linear, border-color .2s ease, box-shadow .25s ease; }
}
@media (hover: none) { /* phones: the foil sweeps once when the card scrolls into view */
	.nx-grid .wc-block-product.brc-reveal.is-in .wc-block-components-product-image::after, .nx-card.brc-reveal.is-in .nx-card-media::after { animation: orb-sweep 1.6s ease .3s both; }
}
@keyframes orb-sweep { 0% { opacity: 0; background-position: 0% 0%; } 40% { opacity: .6; } 100% { opacity: 0; background-position: 100% 100%; } }

@media (prefers-reduced-motion: reduce) {
	.orb-stars, .orb-card-in, .orb-card-in::after { animation: none !important; }
	.orb-w-track { transform: none !important; }
}

/* Finale at the end of the flight */
.orb-end {
	position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
	padding: 0 var(--wp--preset--spacing--40) 6%; text-align: center; opacity: var(--eo, 0); transform: scale(calc(.92 + var(--eo, 0) * .08)); will-change: transform, opacity; visibility: hidden;
	pointer-events: none;
}
.orb--end .orb-end { pointer-events: auto; }
.orb-end-h { margin: 0 0 1.2rem; font: 900 clamp(2.4rem, 11vw, 5.5rem)/.9 var(--n-cond); font-stretch: 68%; text-transform: uppercase; max-width: 12ch; text-shadow: 0 0 40px rgba(139, 92, 246, .6); }
.orb-end .nx-btn { min-width: 220px; }
.orb--static .orb-end { display: none; }
