/*
  Motion support for the site interactions (see lib/motion).

  1. Anti-flash: animated elements stay hidden from first paint until the interactions have set
     their start states (html.motion-ready). If scripts never run, the root script adds
     motion-ready after a timeout, so content is never hidden permanently. Without JS at all,
     w-mod-js is missing and nothing is hidden.
  2. Logo and ribbon marquees: linear infinite loops (50 s / 20 s), not animated when the
     visitor prefers reduced motion, as in the original.
*/

html.w-mod-js:not(.motion-ready) :is(
  [page-load-1], [page-load-2], [page-load-3], [page-load-4], [page-load-5],
  [hero-title], [section-title],
  [reveal-anim-1], [reveal-anim-2], [reveal-anim-3], [reveal-anim-4], [reveal-anim-5], [reveal-2s]
) {
  visibility: hidden;
}

/* FAQ answers start collapsed (the interactions take over the height once ready). */
html.w-mod-js:not(.motion-ready) .faq-answer {
  height: 0;
}

@keyframes site-marquee {
  from { transform: translateX(0%); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: no-preference) {
  .logos-track {
    animation: site-marquee 50s linear infinite;
  }
  .about-ribbon-track {
    animation: site-marquee 20s linear infinite;
  }
}
