/* Home page motion (see home-anim.js). Everything is scoped to html[data-anim], which only exists when JS runs and reduced motion is off. */
@media (prefers-reduced-motion: no-preference){
  /* ---------- headline: letters rise and settle, then an angled gradient strip sweeps across ---------- */
  html[data-anim] .hero h1{position:relative}
  html[data-anim] .hero h1:not(.hl-ready){opacity:0;animation:hlFS 0s linear 2.5s forwards}
  @keyframes hlFS{to{opacity:1}}
  /* Sweep (Oct 22 fix): no duplicate text layer. The headline paints itself: white fill plus an angled gradient band, clipped to its own
     glyphs with background-clip:text, so the purple can never sit off the letters. Added (.hl-sw) once the letters have settled. */
  .hl-text .w{display:inline-block}
  .hl-text .nw{white-space:nowrap}
  .hl-text .c{display:inline-block}
  .hl-sw .hl-base{display:block;background-image:linear-gradient(110deg,transparent 0,transparent var(--e0),#FF5BFF var(--e0),#A04AFF 50%,#4A9CFF var(--e1),transparent var(--e1)),linear-gradient(currentColor,currentColor);background-repeat:no-repeat;background-size:var(--iw) 100%,100% 100%;background-position:100% 0,0 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:hlSwBg 10s cubic-bezier(.45,.05,.25,1) var(--swd,0ms) 3}
  @keyframes hlSwBg{0%{background-position:100% 0,0 0}15%,100%{background-position:0% 0,0 0}}   /* literal stops: WebKit drops var() in background-position keyframes */
  @keyframes hlRise{0%{opacity:0;transform:translate3d(0,.6em,0)}60%{opacity:1;transform:translate3d(0,-.07em,0)}100%{opacity:1;transform:translate3d(0,0,0)}}
  .hl-ready .hl-base .c{animation:hlRise .65s cubic-bezier(.2,.8,.3,1) backwards;animation-delay:calc(var(--ci) * 22ms + .1s)}

  /* ---------- scroll-in cards: slide a little from the right + fade, staggered (JS adds .rv; no JS = plain static page) ---------- */
  html[data-anim] #how,html[data-anim] .section,html[data-anim] .get-app-wrap{overflow-x:clip}
  html[data-anim] .rv-card,html[data-anim] .rv-soft{opacity:0}
  html[data-anim] .rv-soft{transform:translate(0,16px)}
  html[data-anim] .rv-card{transform:translate(36px,0)}
  html[data-anim] .rv.in{opacity:1;transform:translate(0,0)}
  html[data-anim] .rv-card.in{transition:transform .7s cubic-bezier(.22,.9,.3,1),opacity .7s ease}
  html[data-anim] .rv-soft.in{transition:transform .6s cubic-bezier(.2,.8,.2,1),opacity .5s ease-out}
}
@media print{html[data-anim] .rv{opacity:1 !important;transform:none !important}}
