/* ===== Motion: hero intro + scroll reveal ===== */
/* Only active when JS added .motion to <html>, so content never hides without JS */
.motion .hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.motion .hero-title .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.motion .hero-text > .lead, .motion .hero-actions { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.motion .hero-visual { opacity: 0; transform: translateY(24px) scale(.94); transition: opacity 1.1s ease .35s, transform 1.3s cubic-bezier(.2,.8,.2,1) .35s; }
.motion .hero-bg { transform: scale(1.08); transition: transform 2.4s cubic-bezier(.2,.8,.2,1); }

.motion .hero.in .hero-title .ln > span { transform: none; }
.motion .hero.in .hero-title .ln:nth-child(2) > span { transition-delay: .14s; }
.motion .hero.in .hero-text > .lead { opacity: 1; transform: none; transition-delay: .45s; }
.motion .hero.in .hero-actions { opacity: 1; transform: none; transition-delay: .6s; }
.motion .hero.in .hero-visual { opacity: 1; transform: none; }
.motion .hero.in .hero-bg { transform: none; }

/* sections: rise up into view */
.motion .rv { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.motion .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .motion .hero-title .ln > span, .motion .hero-text > .lead, .motion .hero-actions, .motion .hero-visual, .motion .hero-bg, .motion .rv {
    transform: none !important; opacity: 1 !important; transition: none !important;
  }
}
@media (min-width: 961px) { .motion .hero-title .ln > span { white-space: nowrap; } }
