/* ============================================================
   BIRDIEBOX — MOTION PACKAGE (CSS)
   Hero entrance + scroll-reveal animations + animated counters.
   Drop this file in and link it AFTER your existing stylesheet,
   or paste its contents into your existing <style> block.
   ============================================================ */

/* ---------- SCROLL-REVEAL (sections fade/slide in as you scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.25,.7,.35,1),
              transform 0.7s cubic-bezier(.25,.7,.35,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: stagger children inside a .reveal-group so items don't
   all appear at once (e.g. a row of 3 pricing cards, or gallery photos) */
.reveal-group .reveal:nth-child(1) { transition-delay: 0s;    }
.reveal-group .reveal:nth-child(2) { transition-delay: .08s;  }
.reveal-group .reveal:nth-child(3) { transition-delay: .16s;  }
.reveal-group .reveal:nth-child(4) { transition-delay: .24s;  }
.reveal-group .reveal:nth-child(5) { transition-delay: .32s;  }
.reveal-group .reveal:nth-child(6) { transition-delay: .4s;   }
.reveal-group .reveal:nth-child(7) { transition-delay: .48s;  }

/* ---------- HERO ENTRANCE (plays once, automatically, on page load) ---------- */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-enter {
  opacity: 0;
  animation: heroIn 0.8s cubic-bezier(.25,.7,.35,1) forwards;
}
.hero-enter-1 { animation-delay: .05s; }
.hero-enter-2 { animation-delay: .18s; }
.hero-enter-3 { animation-delay: .31s; }
.hero-enter-4 { animation-delay: .44s; }
.hero-enter-5 { animation-delay: .57s; }

/* ---------- ACCESSIBILITY — DO NOT REMOVE ----------
   If the visitor's OS has "reduce motion" turned on, skip all
   animation and just show everything instantly. This matters for
   accessibility and is not optional to strip out. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-enter { opacity: 1; animation: none; }
}
