/* =========================================================
   EPIC Rooms — Animations
   Scroll reveals are driven by GSAP in js/animations.js using
   data attributes:
     data-anim="fade"    fade + slide (data-dir: up | down | left | right)
     data-anim="reveal"  image slides in behind a moving mask
     data-anim="zoom"    fade + scale up
     data-delay=".2"     start delay in seconds
   GSAP adds .is-visible to each element when it starts animating,
   which the CSS-only extras below hook into.
   `html.anim-ready` is set only when GSAP is running, so content is
   never hidden if the library fails to load.
   ========================================================= */

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes preloader-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.88); opacity: 0.75; }
}

/* Slow push-in on the active hero image */
@keyframes hero-zoom {
    0% { transform: scale(1.02); }
    50% { transform: scale(1.14); }
    100% { transform: scale(1.02); }
}

/* ---------- "Find Your Space to Unwind" list ----------
   Number rises inside its ring, ring fades in, divider draws across */
.anim-ready .feature-list li .feature-num {
    border-color: transparent;
    transition: border-color 0.8s var(--ease) 0.35s, background-color 0.5s var(--ease), color 0.5s;
}
.anim-ready .feature-list li .feature-num span {
    transform: translateY(110%);
    transition: transform 1s var(--ease-out) 0.4s;
}
.anim-ready .feature-list li::after {
    transform: scaleX(0);
    transition: transform 1.2s var(--ease-out) 0.25s;
}
.anim-ready .feature-list li.is-visible .feature-num { border-color: var(--orange-soft); }
.anim-ready .feature-list li.is-visible:hover .feature-num { border-color: var(--orange); }
.anim-ready .feature-list li.is-visible .feature-num span { transform: none; }
.anim-ready .feature-list li.is-visible::after { transform: scaleX(1); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
    .hero-swiper.is-ready .swiper-slide-active .hero-bg img { animation: none; }
}
