/* DXHero motion — calm, directional, never bouncy.
   Content is visible without JS: hiding only applies once js/site.js adds .js-motion to <html>.
   Everything collapses to the end state under prefers-reduced-motion. */

/* Scroll reveal (DS staggered reveal: fade + 18px rise, ~0.55s) */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero entrance: headline lines rise in sequence */
.js-motion .hero-title .line { opacity: 0; transform: translateY(0.4em); animation: rise 800ms var(--ease) forwards; }
.js-motion .hero-title .line:nth-child(2) { animation-delay: 140ms; }
/* Accent line: rises with the headline, then a fast band of light sweeps it left to right every 7 s.
   96% → 4%: the band starts just off the first letter and ends just past the last (the gradient
   is 250% wide), so the whole sweep is on the words. */
.js-motion .hero .hero-title .accent { animation: rise 800ms var(--ease) 140ms forwards, shine 7s linear 1.6s infinite; }
@keyframes shine {
  0% { background-position: 96% 0, 0 0; animation-timing-function: cubic-bezier(0.6, 0, 0.3, 1); }
  9%, 100% { background-position: 4% 0, 0 0; }
}

.js-motion .hero .eyebrow { opacity: 0; animation: fade 600ms var(--ease) 0ms forwards; }
.js-motion .hero .lead { opacity: 0; animation: rise 700ms var(--ease) 320ms forwards; }
.js-motion .hero__actions, .js-motion .hero__awards { opacity: 0; animation: rise 700ms var(--ease) 440ms forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion [data-reveal], .js-motion .hero-title .line, .js-motion .hero .eyebrow, .js-motion .hero .lead,
  .js-motion .hero__actions, .js-motion .hero__awards { opacity: 1 !important; transform: none !important; }
}
