/* ==========================================================================
   ZUVO — motion. Everything here is decorative and switched off for
   prefers-reduced-motion and when "animations" is disabled in settings.
   ========================================================================== */

@keyframes zuvo-rise { from { transform: translateY(112%); } to { transform: none; } }
@keyframes zuvo-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes zuvo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zuvo-reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes zuvo-show { to { opacity: 1; } }
@keyframes zuvo-pop { from { opacity: 0; transform: translateY(20px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes zuvo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes zuvo-lift-2 { 0%, 100% { transform: translateZ(38px); } 50% { transform: translateZ(50px); } }
@keyframes zuvo-lift-3 { 0%, 100% { transform: translateZ(76px); } 50% { transform: translateZ(96px); } }
@keyframes zuvo-spin { to { transform: rotate(360deg); } }
@keyframes zuvo-page { from { opacity: 0; } to { opacity: 1; } }
@keyframes zuvo-marquee-ltr { to { transform: translateX(-100%); } }
@keyframes zuvo-marquee-rtl { to { transform: translateX(100%); } }

body { animation: zuvo-page .5s ease-out backwards; }

/* Hero entrance (pure CSS, so it never depends on JavaScript) */
.w__in { animation: zuvo-rise .95s var(--ease) both; animation-delay: calc(var(--i, 0) * 75ms + 140ms); }
[data-hero-item] { animation: zuvo-fade-up .85s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
.stage__plates .plate { animation: zuvo-fade 1s var(--ease) both; }
.stage__plates .plate--2 { animation-name: zuvo-fade, zuvo-lift-2; animation-duration: 1s, 9s; animation-iteration-count: 1, infinite; animation-delay: .2s, 1.2s; animation-timing-function: var(--ease), ease-in-out; }
.stage__plates .plate--3 { animation-name: zuvo-fade, zuvo-lift-3; animation-duration: 1s, 9s; animation-iteration-count: 1, infinite; animation-delay: .35s, 1.35s; animation-timing-function: var(--ease), ease-in-out; }
.stage__orbits { animation: zuvo-spin 120s linear infinite; transform-origin: 50% 50%; }
.stage__core { animation: zuvo-pop .9s var(--ease) .35s both; }
.stage__chip { animation: zuvo-pop .9s var(--ease) 1.1s both; }
.tile { animation: zuvo-pop .85s var(--ease) both; animation-delay: calc(var(--n, 0) * 90ms + 500ms); }
.tile__inner { animation: zuvo-float 7s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -1.3s); }
.tile--2 .tile__inner, .tile--4 .tile__inner, .tile--6 .tile__inner, .tile--8 .tile__inner { animation-duration: 8.5s; }

/* Scroll reveals (toggled by IntersectionObserver; failsafe shows content anyway) */
.js [data-reveal]:not(.is-in) { opacity: 0; animation: zuvo-show .01s 3.5s forwards; }
.js [data-reveal].is-in { animation: zuvo-reveal .85s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.js [data-stagger]:not(.is-in) > * { opacity: 0; animation: zuvo-show .01s 3.5s forwards; }
.js [data-stagger].is-in > * { animation: zuvo-reveal .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }

/* Magnetic buttons: JS only sets --mx / --my */
.btn[data-magnetic] { translate: var(--mx, 0) var(--my, 0); transition-property: background-color, color, border-color, transform, box-shadow, translate; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js [data-reveal]:not(.is-in), .js [data-stagger]:not(.is-in) > * { opacity: 1; }
	.marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.marquee__track[aria-hidden="true"] { display: none; }
	.steps::after { transform: none; }
	.step__dot { background: var(--zuvo-primary); border-color: var(--zuvo-primary); color: #fff; }
}

.zuvo-no-motion .js [data-reveal], .zuvo-no-motion [data-reveal], .zuvo-no-motion [data-stagger] > * { opacity: 1 !important; }
.zuvo-no-motion .marquee { overflow-x: auto; }
.zuvo-no-motion .marquee__track[aria-hidden="true"] { display: none; }
.zuvo-no-motion .steps::after { transform: none; }
.zuvo-no-motion .step__dot { background: var(--zuvo-primary); border-color: var(--zuvo-primary); color: #fff; }
