/* ─────────────────────────────────────────────
   Motion — Keyframes, stagger, transitions
   ───────────────────────────────────────────── */

/* ── Keyframes ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ── Stagger fade-in ── */
.stagger-in > * {
    opacity: 0;
    animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
}
.stagger-in > *:nth-child(1)  { animation-delay: 0ms; }
.stagger-in > *:nth-child(2)  { animation-delay: 50ms; }
.stagger-in > *:nth-child(3)  { animation-delay: 100ms; }
.stagger-in > *:nth-child(4)  { animation-delay: 150ms; }
.stagger-in > *:nth-child(5)  { animation-delay: 200ms; }
.stagger-in > *:nth-child(6)  { animation-delay: 250ms; }
.stagger-in > *:nth-child(7)  { animation-delay: 300ms; }
.stagger-in > *:nth-child(8)  { animation-delay: 350ms; }
.stagger-in > *:nth-child(9)  { animation-delay: 400ms; }
.stagger-in > *:nth-child(10) { animation-delay: 450ms; }
.stagger-in > *:nth-child(11) { animation-delay: 500ms; }
.stagger-in > *:nth-child(12) { animation-delay: 550ms; }

@media (prefers-reduced-motion: reduce) {
    .stagger-in > * {
        opacity: 1;
        animation: none;
    }
}

/* ── Transition presets ── */
.transition-colors {
    transition: color var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
}
.transition-transform {
    transition: transform var(--duration-fast) var(--ease-out);
}
.transition-opacity {
    transition: opacity var(--duration-normal) var(--ease-out);
}
.transition-all {
    transition: all var(--duration-normal) var(--ease-out);
}
