/* Slide 01 (hero) entrance motion. Runs only while the class .hero-run is present; app.js/hero-motion.js
   adds it when the slide becomes visible and the intro overlay is closed. Discrete, one pass, no loops.
   The photo keeps its framing and final opacity; no animated property changes layout. */

#top .hero-image { --hero-image-opacity: .82; }

@media (max-width: 800px) {
  #top .hero-image { --hero-image-opacity: .55; }
}

#top .hero-metrics strong { font-variant-numeric: tabular-nums; }

@keyframes hero-photo {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: var(--hero-image-opacity, .82); transform: scale(1); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

#top.hero-run .hero-image {
  animation: hero-photo 1.1s cubic-bezier(0.22, 0.8, 0.26, 1) both;
}

#top.hero-run h1 {
  animation: hero-rise 0.6s cubic-bezier(0.22, 0.8, 0.26, 1) both;
}

#top.hero-run .hero-definition {
  animation: hero-rise 0.6s cubic-bezier(0.22, 0.8, 0.26, 1) 0.25s both;
}

#top.hero-run .hero-lede {
  animation: hero-rise 0.6s cubic-bezier(0.22, 0.8, 0.26, 1) 0.45s both;
}

#top.hero-run .hero-metrics > div {
  animation: hero-fade 0.5s ease-out both;
}

#top.hero-run .hero-metrics > div:nth-child(1) { animation-delay: 0.7s; }
#top.hero-run .hero-metrics > div:nth-child(2) { animation-delay: 0.82s; }
#top.hero-run .hero-metrics > div:nth-child(3) { animation-delay: 0.94s; }

@media (prefers-reduced-motion: reduce) {
  #top.hero-run *,
  #top.hero-run {
    animation: none !important;
  }
}
