/* Motion is opt-in after JS starts, so content stays visible if scripting fails. */
@media (prefers-reduced-motion: no-preference) {
  .home-page .hero-copy {
    animation: motionHeroIn 1.05s .08s both;
  }
  @keyframes motionHeroIn {
    from { opacity: 0; transform: translate3d(0, 72px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  html.motion-active [data-motion] {
    transition: opacity .8s ease, transform 1s cubic-bezier(.18,.72,.2,1);
    transition-delay: var(--motion-delay, 0ms);
  }
  html.motion-active [data-motion]:not(.motion-visible) {
    opacity: 0;
    transform: translate3d(var(--motion-x, 0px), var(--motion-y, 68px), 0) scale(var(--motion-scale, 1));
  }
  html.motion-active [data-motion="left"] { --motion-x: -88px; --motion-y: 0px; }
  html.motion-active [data-motion="right"] { --motion-x: 88px; --motion-y: 0px; }
  html.motion-active [data-motion="card"] { --motion-y: 82px; --motion-scale: .95; }
  html.motion-active .motion-hero-exit {
    transition: opacity .7s ease, transform .8s ease;
  }
  html.motion-active .motion-hero-exit.motion-scrolled-away {
    opacity: .22;
    transform: translate3d(0, -46px, 0);
  }
  html.has-motion .home-page [data-reveal] {
    transition: opacity .8s ease, transform 1s cubic-bezier(.18,.72,.2,1), box-shadow .35s ease;
  }
  html.has-motion .home-page [data-reveal]:not(.is-visible) {
    transform: translate3d(0, 68px, 0);
  }
  html.has-motion .home-page .path-card[data-reveal]:not(.is-visible) {
    transform: translate3d(0, 115px, 0) scale(.95);
  }
  html.has-motion .home-page .children-story-copy[data-reveal]:not(.is-visible),
  html.has-motion .home-page .supplements-grid > div:first-child[data-reveal]:not(.is-visible),
  html.has-motion .home-page .book-art[data-reveal]:not(.is-visible),
  html.has-motion .home-page .about-logo[data-reveal]:not(.is-visible) {
    transform: translate3d(-82px, 0, 0);
  }
  html.has-motion .home-page .supplements-side[data-reveal]:not(.is-visible),
  html.has-motion .home-page .book-copy[data-reveal]:not(.is-visible),
  html.has-motion .home-page .about-copy[data-reveal]:not(.is-visible) {
    transform: translate3d(82px, 0, 0);
  }
  @media (max-width: 700px) {
    html.motion-active [data-motion="left"] { --motion-x: -42px; }
    html.motion-active [data-motion="right"] { --motion-x: 42px; }
    html.has-motion .home-page .children-story-copy[data-reveal]:not(.is-visible),
    html.has-motion .home-page .supplements-grid > div:first-child[data-reveal]:not(.is-visible),
    html.has-motion .home-page .book-art[data-reveal]:not(.is-visible),
    html.has-motion .home-page .about-logo[data-reveal]:not(.is-visible) {
      transform: translate3d(-42px, 0, 0);
    }
    html.has-motion .home-page .supplements-side[data-reveal]:not(.is-visible),
    html.has-motion .home-page .book-copy[data-reveal]:not(.is-visible),
    html.has-motion .home-page .about-copy[data-reveal]:not(.is-visible) {
      transform: translate3d(42px, 0, 0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html.motion-active [data-motion], html.motion-active .motion-hero-exit {transition: none!important;opacity:1!important;transform:none!important}
}
