/* ============================================================
   LIGER NEXXUS FOUNDATION — Animations
   Keyframes + scroll-reveal utility classes (used by animation.js)
   ============================================================ */

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

@keyframes scrollWheel {
    0%   { opacity: 1; transform: translate(-50%, 0); }
    70%  { opacity: 0; transform: translate(-50%, 14px); }
    100% { opacity: 0; transform: translate(-50%, 0); }
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

/* Sheen rests off-canvas for most of the loop, then sweeps once */
@keyframes visionSheen {
    0%, 65%  { left: -60%; }
    100%     { left: 130%; }
}

@keyframes visionPulse {
    0%   { transform: scale(0.92); opacity: 0.9; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* No Ken Burns on the hero slides: the brief is to show each banner whole, and
   any zoom past scale(1) pushes the image outside the frame — i.e. crops it,
   which is exactly what object-fit:contain is here to prevent. */

/* ---------- HERO ENTRANCE ---------- */
.hero-badge     { animation: fadeUp 0.8s ease 0.2s both; }
.hero h1        { animation: fadeUp 0.8s ease 0.4s both; }
.hero p         { animation: fadeUp 0.8s ease 0.6s both; }
.hero-buttons   { animation: fadeUp 0.8s ease 0.8s both; }
.scroll-indicator { animation: fadeIn 1.2s ease 1.4s both; }

/* ---------- SCROLL REVEAL (activated by animation.js) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(46px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-56px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(56px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-zoom.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children — delay handled per nth-child */
.stagger > * { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.12s; }
.stagger > *:nth-child(3) { transition-delay: 0.24s; }
.stagger > *:nth-child(4) { transition-delay: 0.36s; }
.stagger > *:nth-child(5) { transition-delay: 0.48s; }
.stagger > *:nth-child(6) { transition-delay: 0.60s; }
.stagger > *:nth-child(7) { transition-delay: 0.72s; }
.stagger > *:nth-child(8) { transition-delay: 0.84s; }
.stagger > *:nth-child(9) { transition-delay: 0.96s; }
.stagger > *:nth-child(10){ transition-delay: 1.08s; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal, .reveal-left, .reveal-right, .reveal-zoom {
        opacity: 1;
        transform: none;
    }
}
