/* ═══════════════════════════════════════════════════════════════
   9 LINE AGENCY — ANIMATIONS & SCROLL REVEALS
═══════════════════════════════════════════════════════════════ */

/* ─── GRAIN TEXTURE ──────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.022;
  mix-blend-mode: overlay;
}

/* ─── HERO ENTRANCE SEQUENCE ─────────────────────────────────── */

.animate-hero-0,
.animate-hero-1,
.animate-hero-2,
.animate-hero-3,
.animate-hero-4,
.animate-hero-5 {
  opacity: 0;
  transform: translateY(24px);
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-duration: 700ms;
  animation-name: hero-fade-up;
}

.animate-hero-0 { animation-delay:   0ms; }
.animate-hero-1 { animation-delay: 200ms; }
.animate-hero-2 { animation-delay: 400ms; }
.animate-hero-3 { animation-delay: 600ms; }
.animate-hero-4 { animation-delay: 800ms; }
.animate-hero-5 { animation-delay: 350ms; }

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── SCROLL REVEAL — BASE ───────────────────────────────────── */
.section-reveal,
.card-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity  0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.section-reveal.revealed,
.card-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.card-reveal {
  transition-delay: var(--card-delay, 0ms);
}

/* ─── SCROLL CHEVRON BOUNCE ──────────────────────────────────── */
@keyframes chevron-bounce {
  0%, 100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 1;
  }
  50% {
    transform: rotate(45deg) translate(4px, 4px);
    opacity: 0.45;
  }
}

/* ─── STAT COUNTER HIGHLIGHT ─────────────────────────────────── */
.stat-number.counting {
  color: var(--color-accent);
}

.stat-number.done {
  color: #FFFFFF;
  animation: stat-pulse 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stat-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ─── PROCESS STEP HOVER ─────────────────────────────────────── */
.process-step {
  transition: background-color 250ms ease;
  border-radius: 12px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
}

.process-step:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

/* ─── LINK HOVER UNDERLINE SLIDE ─────────────────────────────── */
.footer-links a,
.mobile-nav-link {
  position: relative;
}

/* ─── REDUCED MOTION OVERRIDES ───────────────────────────────── */
@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;
  }

  .animate-hero-0,
  .animate-hero-1,
  .animate-hero-2,
  .animate-hero-3,
  .animate-hero-4,
  .animate-hero-5 {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .section-reveal,
  .card-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-chevron {
    animation: none;
  }
}
