/* Reduced motion, site-wide.

   Honors `prefers-reduced-motion: reduce` for WCAG 2.3.3 (Animation from
   Interactions). Nothing on the site auto-plays, so 2.2.2 was already met;
   what this suppresses is the user-triggered movement: card hover scale,
   nav chevron rotation, the sticky newsletter slide, testimonial height.

   Near-zero durations rather than `none` on purpose. `animation: none`
   cancels the animation outright, so `animationend` / `transitionend` never
   fire and any JS waiting on one stalls. 0.01ms fires the event on the next
   frame while the motion stays imperceptible.

   This file must stay linked unconditionally in layouts/base.njk. It is
   deliberately NOT part of ee-global.css, which is inside the `hasPageCss`
   guard and so never loads on posts or archives.

   Page CSS may still add its own block where reduced motion needs a
   different resting position rather than just a shorter duration; see
   pages/ee-contact.css, which parks the Knomo art at its raised position. */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
