/**
 * Motion the builder cannot switch off.
 *
 * WHY THIS FILE EXISTS AT ALL. Every other style on this site lives in
 * Oxygen's selector store, which is the right place for it. But the importer
 * only accepts media queries that match a *registered breakpoint* — feed it
 * `@media (prefers-reduced-motion: reduce)` and it answers:
 *
 *     Skipped @media block "(prefers-reduced-motion:reduce)"
 *     (no registered breakpoint matches this query)
 *
 * So the one query that turns motion off is the one query the design system
 * physically cannot hold. It lives here instead, and nothing else does: this
 * file is not an escape hatch for styles that were merely inconvenient to
 * import.
 *
 * WHAT IT TURNS OFF, AND WHAT IT KEEPS. The home page's images are
 * desaturated at rest and come to full colour with a slow push-in on hover.
 * The desaturation is the look and stays — it is not movement. The scale, the
 * scrim fade and the row slides are movement and go entirely.
 */

@media (prefers-reduced-motion: reduce) {

  /* The image treatment: keep the grayscale, drop the travel. */
  .chr-fig img,
  a:hover .chr-fig img,
  .chr-fig:hover img {
    transform: none;
    transition: none;
  }
  .chr-fig::after,
  a:hover .chr-fig::after,
  .chr-fig:hover::after {
    transition: none;
  }

  /* Rows that slide right under the pointer. */
  .chr-dir-link:hover,
  .chr-prog-row:hover {
    padding-left: 0;
  }
  .chr-dir-link,
  .chr-prog-row,
  .chr-ulink,
  .chr-plate-link {
    transition: none;
  }

  /* Anything that lifts. */
  .chr-gc,
  .chr-gc:hover {
    transform: none;
    transition: none;
  }

  /* Smooth scrolling is motion too. */
  html {
    scroll-behavior: auto;
  }
}
