/* ==========================================================================
   Animations — keyframes, pre-reveal states, reduced motion
   GSAP drives the motion (js/animations.js, js/scroll.js). These rules only
   hide elements *before* GSAP takes over, and only when the <html> element
   carries .js-anim (added inline in <head>, removed if GSAP fails to load).
   ========================================================================== */

@keyframes scrollCue {
    0% { transform: translateY(-100%); }
    55% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes tagPulse {
    0% { box-shadow: 0 0 0 0 rgba(168, 135, 62, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(168, 135, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 135, 62, 0); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

/* Pre-reveal states (only while JS animation is active) */
.js-anim [data-reveal],
.js-anim [data-stagger] > *,
.js-anim [data-hero] {
    opacity: 0;
}
.js-anim [data-reveal="clip"],
.js-anim [data-reveal="clip-up"] {
    opacity: 1;
    clip-path: inset(100% 0 0 0);
}
.js-anim [data-reveal="clip-left"] {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
}
.js-anim [data-split] { opacity: 0; }
.js-anim [data-split].is-split { opacity: 1; }

/* Split-text line masks */
.split-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}
.split-line__inner { display: block; will-change: transform; }

/* Utility motion */
.float { animation: floatY 6s ease-in-out infinite; }
.spin-slow { animation: spinSlow 60s linear infinite; }

/* Reduced motion: everything visible, nothing moves */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .js-anim [data-reveal],
    .js-anim [data-stagger] > *,
    .js-anim [data-hero],
    .js-anim [data-split] {
        opacity: 1 !important;
        clip-path: none !important;
        transform: none !important;
    }
    .cursor,
    .page-transition { display: none !important; }
}
