/* motion.css: hides animated elements only while motion.js is running, so content is
   never lost if JavaScript fails or the visitor prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-on [data-motion="reveal"],
  html.motion-on [data-motion="split"],
  html.motion-on [data-motion="stagger"] > * {
    opacity: 0;
  }
}

/* Lenis already offsets anchors by the header height; native scroll-padding would double it */
html.lenis { scroll-padding-top: 0; }

/* SplitText line masks clip descenders (g, y, p); pad each line and pull it back so layout doesn't shift */
[data-motion="split"] > div { padding-bottom: .14em; margin-bottom: -.14em; }

[data-motion="parallax"] { will-change: transform; }
[data-motion="magnet"] { display: inline-block; }
