/* ==========================================================================
   LionFS — animations.css
   Keyframes, scroll-reveal states, ambient motion.
   All animations use transform/opacity only (compositor-friendly).
   ========================================================================== */

/* ---------- Keyframes ---------- */
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(245, 165, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); }
}

@keyframes blink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

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

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

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes blip-pulse {
  0%   { transform: scale(0.6); opacity: 0.4; }
  40%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.25; }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.9; }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---------- Scroll reveal system ----------
   Elements with [data-reveal] start hidden and animate in when the
   IntersectionObserver adds .revealed. Stagger via --d (ms) custom prop. */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

[data-reveal="left"]  { transform: translateX(-16px); }
[data-reveal="right"] { transform: translateX(16px); }
[data-reveal="zoom"]  { transform: scale(0.97); }
[data-reveal].revealed { transform: none; }

/* Hero entrance (plays on load, independent of IO) */
.hero [data-reveal] { transition-duration: 0.6s; }

/* Ambient breathing glow on orbs */
.orb { animation: glow-breathe 7s ease-in-out infinite; }

/* ---------- Preference: no motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ticker-track { animation: none !important; }
}
