/* Motion tokens for EVE and ML (MOTION-BIBLE.md, 2026-11-07). Load before the site's own CSS on every page.
   Three curves by job, one duration scale. The aliases at the end keep every existing rule on both sites working
   (they pick up the new values with no edits); new rules use the --m-* names only. Never write a bezier inline. */
:root{
  /* Curves */
  --m-ease-out:cubic-bezier(.2,.7,.3,1);     /* arrivals: fades, labels, leaders, dissolves, hover, press, titles, view transitions */
  --m-ease-travel:cubic-bezier(.37,0,.63,1); /* travels the clock makes by itself: the route between rests (sine in-out) */
  --m-ease-step:cubic-bezier(.3,0,.15,1);    /* travels the visitor asked for: a gesture, a key, a dot, a card */

  /* Duration scale (ms). Nothing in between these. */
  --m-press:90ms;          /* active state of a control */
  --m-feedback:180ms;      /* hover and focus ink, a card's hover lean */
  --m-fade:360ms;          /* the default fade: copy, pills, root view transition, film-to-live handoff, canvas first paint */
  --m-label-in:420ms;      /* one label fading in (dot, leader, text) */
  --m-title:450ms;         /* a chapter title's rise */
  --m-dissolve:600ms;      /* still to still on the living stage; a card click's drive to its beat */
  --m-step:900ms;          /* one step or travel to a neighbouring rest */
  --m-cut:1100ms;          /* the ML match cut */
  --m-dissolve-slow:1800ms;/* the alternate shot inside one scene */
  --m-key-rest:2200ms;     /* a dive resting on a key frame */
  --m-dwell:3200ms;        /* the rest after the last thing lands */
  --m-hero-rest:4000ms;    /* ML hero after the opening film */

  /* Distances */
  --m-rise:12px;           /* a title's rise */
  --m-rise-copy:24px;      /* a copy block's rise (ML copy-enter); EVE closing block uses 16px */
  --m-label-gap:320ms;     /* labels arrive this far apart (used by JS; here for reference and CSS delays) */

  /* View transitions (EVE) */
  --m-vt-root:var(--m-fade);
  --m-vt-hero:560ms;
  --m-vt-hero-out:180ms;
  --m-vt-hero-in:260ms;
  --m-vt-back-out:220ms;
  --m-vt-back-out-delay:260ms;
  --m-vt-back-in:220ms;
  --m-vt-back-in-delay:300ms;

  /* Aliases: what the two sites already read. EVE */
  --eve-ease:var(--m-ease-out);
  --eve-fade:var(--m-fade);
  --eve-press:var(--m-press);
  --eve-feedback:var(--m-feedback);
  /* ML (was cubic-bezier(.4,0,.2,1) and .32s / .7s / 1.1s) */
  --fade-ease:var(--m-ease-out);
  --fade-short:var(--m-fade);
  --fade-medium:var(--m-dissolve);
  --fade-long:var(--m-cut);
}

/* The one pause/play control both sites share (timeline.js createToggle on EVE; ML's .motion-toggle takes the same
   three states). Ink responds; the surface never moves. */
.timeline-toggle,.motion-toggle{
  display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #dec38c55;border-radius:50%;
  background:#0d221cb3;color:#eee9dd;cursor:pointer;
  transition:color var(--m-feedback) var(--m-ease-out),border-color var(--m-feedback) var(--m-ease-out),opacity var(--m-feedback) var(--m-ease-out);
}
.timeline-toggle:hover,.timeline-toggle:focus-visible,.motion-toggle:hover,.motion-toggle:focus-visible{color:var(--gold,#dec38c);border-color:var(--gold,#dec38c)}
.timeline-toggle:focus-visible,.motion-toggle:focus-visible{outline:2px solid var(--gold,#dec38c);outline-offset:4px}
.timeline-toggle:active,.motion-toggle:active{opacity:.78;transition-duration:var(--m-press)}

/* Reduced motion: no autoplay, no travel, no transform; opacity fades up to --m-fade may stay. */
@media (prefers-reduced-motion:reduce){
  :root{
    --m-ease-out:linear;--m-ease-travel:linear;--m-ease-step:linear;
    --m-press:0ms;--m-feedback:0ms;--m-label-in:0ms;--m-title:0ms;--m-dissolve:0ms;--m-step:0ms;--m-cut:0ms;
    --m-dissolve-slow:0ms;--m-key-rest:0ms;--m-dwell:0ms;--m-hero-rest:0ms;--m-rise:0px;--m-rise-copy:0px;
    --m-vt-root:0ms;--m-vt-hero:0ms;--m-vt-hero-out:0ms;--m-vt-hero-in:0ms;--m-vt-back-out:0ms;--m-vt-back-in:0ms;
  }
  .timeline-toggle,.motion-toggle{display:none}
}
