/*
 * PATCH-3838 — how the site moves. Every page loads this before
 * site-chrome.css, and page stylesheets read these values by name, never a
 * duration of their own. The values are the Patch app's; --motion-reveal is
 * the site's. Growth and shifts are `scale` and `translate`, never
 * `transform`, so the last rule here can turn them off.
 *
 * PATCH-4583: --motion-enter and --ease-enter are the films page's own fade
 * (its --t-enter and --ease in films/index.html, which stays self-contained),
 * used where a film fades in on another page: the home hero and the role
 * films. test/film-fade.test.mjs fails if they ever differ.
 */

:root {
  --motion-fast: 120ms; --motion-slow: 200ms; --motion-surface: 240ms; --motion-reveal: 480ms;
  --motion-landed: 2000ms; --motion-spin: 800ms; --motion-enter: 400ms;
  --ease-out-soft: cubic-bezier(0.2, 0.7, 0.2, 1); --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Every link and button eases its colours. A pressed button darkens and
   shrinks at once, then recovers. The header's two are named here too. */
a, .button, .site-menu-button {
  transition: var(--motion-fast) var(--ease-out-soft);
  transition-property: color, background-color, border-color, scale;
}
.button:active, .site-cta:active { scale: 0.98; filter: brightness(0.9); transition-duration: 0s; }

/* Reduced motion: the one rule that decides it, for every page. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scale: none !important; translate: none !important; }
}
