/* ============================================================
   HERO — fade in on page load
   ============================================================ */
.fade-in-hero {
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.35s;
}

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

/* ============================================================
   SCROLL-TRIGGERED — sections
   Initial state: invisible + shifted down
   .in-view (added by JS IntersectionObserver): animate to visible
   ============================================================ */
.animate-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SCROLL-TRIGGERED — staggered children
   ============================================================ */
.animate-child {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-child.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for up to 15 children */
.animate-child:nth-child(1)  { transition-delay: 0.04s; }
.animate-child:nth-child(2)  { transition-delay: 0.10s; }
.animate-child:nth-child(3)  { transition-delay: 0.16s; }
.animate-child:nth-child(4)  { transition-delay: 0.22s; }
.animate-child:nth-child(5)  { transition-delay: 0.28s; }
.animate-child:nth-child(6)  { transition-delay: 0.34s; }
.animate-child:nth-child(7)  { transition-delay: 0.40s; }
.animate-child:nth-child(8)  { transition-delay: 0.46s; }
.animate-child:nth-child(9)  { transition-delay: 0.52s; }
.animate-child:nth-child(10) { transition-delay: 0.58s; }
.animate-child:nth-child(11) { transition-delay: 0.64s; }
.animate-child:nth-child(12) { transition-delay: 0.70s; }
.animate-child:nth-child(13) { transition-delay: 0.76s; }
.animate-child:nth-child(14) { transition-delay: 0.82s; }
.animate-child:nth-child(15) { transition-delay: 0.88s; }
