/* ============================================
   ANIMATIONS — Enhanced Premium Effects
   ============================================ */

/* ── Fade Up (Hero load-in) ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpAnim 0.8s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUpAnim {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { --reveal-delay: 0.10s; }
.delay-2 { --reveal-delay: 0.20s; }
.delay-3 { --reveal-delay: 0.32s; }
.delay-4 { --reveal-delay: 0.44s; }

/* ── Number counter ── */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ── Grain Noise Overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

/* ── Hover lift utility ── */
.hover-lift {
  transition: transform var(--duration-md) var(--ease-spring),
              box-shadow var(--duration-md);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ── Accent glow pulse ── */
@keyframes accentGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,92,53,0.2); }
  50%       { box-shadow: 0 0 40px rgba(255,92,53,0.4); }
}

/* ── Shimmer utility ── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ── Floating animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

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

/* ── Reduced 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;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ticker-track { animation: none; }
  .scroll-line-inner { animation: none; }
  .hero::before { animation: none; }
}
