/* Motion utility classes — default state is always the FINAL visible state.
   JS only adds .js-motion-ready (guarded by reduced-motion + GSAP load check)
   which arms the hidden/offset starting states below. This guarantees the
   site is fully readable if JS or the CDN fails. */

.reveal,
.reveal-stagger > * {
  opacity: 1;
  transform: none;
}

.js-motion-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-cinematic), transform var(--dur-slow) var(--ease-cinematic);
}
.js-motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-motion-ready .reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-medium) var(--ease-cinematic), transform var(--dur-medium) var(--ease-cinematic);
}
.js-motion-ready .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.js-motion-ready .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.js-motion-ready .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.js-motion-ready .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.js-motion-ready .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.js-motion-ready .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.js-motion-ready .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

.cta-pulse { animation: none; }
.js-motion-ready .cta-pulse { animation: cta-pulse 2.6s var(--ease-cinematic) infinite; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--pulse-rgb, 255, 198, 41), 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(var(--pulse-rgb, 255, 198, 41), 0); }
}

.count-up { font-variant-numeric: tabular-nums; }

/* Route-line SVG draw — default fully drawn (final state) */
.route-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.js-motion-ready .route-path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease-cinematic);
}
.js-motion-ready .route-path.is-drawn { stroke-dashoffset: 0; }
