/* ==========================================================================
   Motion layer — reveal on scroll, keyframes, accessibility fallbacks
   ========================================================================== */

@keyframes kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.5); transform-origin: top; opacity: .4; }
  50%      { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(245, 165, 36, .45); }
  70%  { box-shadow: 0 0 0 14px rgba(245, 165, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); }
}

/* Reveal: elements are visible by default if JS fails */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal--left { transform: translateX(-32px); }
.js .reveal--right { transform: translateX(32px); }
.js .reveal--zoom { transform: scale(.94); }
.js .reveal--left.is-visible, .js .reveal--right.is-visible, .js .reveal--zoom.is-visible { transform: none; }

/* Hero entrance — runs on load, staggered */
.js .hero__badge,
.js .hero h1,
.js .hero__lead,
.js .hero__actions,
.js .hero__trust {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn .8s var(--ease) forwards;
}
.js .hero__badge { animation-delay: .1s; }
.js .hero h1      { animation-delay: .22s; }
.js .hero__lead   { animation-delay: .36s; }
.js .hero__actions{ animation-delay: .5s; }
.js .hero__trust  { animation-delay: .64s; }
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* Count-up numbers */
.stat__num { font-variant-numeric: tabular-nums; }

/* Decorative floating shapes */
.float-soft { animation: floatSoft 6s ease-in-out infinite; }
.pulse-ring { animation: pulseRing 2.6s ease-out infinite; }

/* Reduced motion: kill all decorative movement, keep content visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal,
  .js .hero__badge, .js .hero h1, .js .hero__lead,
  .js .hero__actions, .js .hero__trust {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero__media video { display: none; }
}
