/* SCEPTERIX — motion styles (flag: motionV2; page fade parts also need pageTransitions via the .pt-on class) */

/* Reveal choreography: a short rise with the shared ease-out; cards also settle from a hair smaller */
.mo2 .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-4, .8s) var(--ease-out, ease), transform var(--dur-4, .8s) var(--ease-out, ease); }
.mo2 .card.reveal { transform: translateY(22px) scale(.985); }
.mo2 .reveal.is-in { opacity: 1; transform: none; }
.mo2 .section-head.reveal .eyebrow { transition: letter-spacing 1s var(--ease-out, ease); }
.mo2 .section-head.reveal:not(.is-in) .eyebrow { letter-spacing: .4em; }

/* magnetic buttons ease back smoothly */
.mo2 .btn-primary { transition: translate var(--dur-3, .5s) var(--ease-out, ease), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), background-color var(--dur-2); }

/* card tilt (value set by motion.js); combined with the hover lift */
.mo2 a.card, .mo2 .product-card { transform: perspective(900px) var(--tilt, rotateX(0) rotateY(0)); }
.mo2 a.card:hover, .mo2 .product-card:hover { transform: perspective(900px) var(--tilt, rotateX(0) rotateY(0)) translateY(-4px); }

/* page-to-page: pages ease in, and fade out quickly when leaving (home keeps its own load choreography) */
/* (keyed off the flag's off-class, not a JS-added class, so it applies from the very first paint) */
html:not(.f-off-pageTransitions) main:not(:has(.hero)) { animation: pt-in .55s var(--ease-out, ease) both; }
@media (prefers-reduced-motion: reduce) { html main { animation: none !important; } }
@keyframes pt-in { from { opacity: 0; transform: translateY(10px); } }
.pt-leave main, .pt-leave .site-footer { opacity: 0; transform: translateY(-6px); transition: opacity .19s ease, transform .19s ease; }

/* Lenis */
/* (Lenis manages its own "lenis" classes on <html>) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mo2 .reveal { opacity: 1; transform: none; }
}
