/* The motion kit's token set. The gate's names and values (public/css/tokens.css) are canonical; this adds show times and a few curves.
   UI times (press .. switch) are never multiplied by a skin's tempo; show times are, through the -s names. A skin sets --tempo on the root element. */
:root {
  /* curves the gate already has */
  --ease-out: cubic-bezier(.23, 1, .32, 1);       /* anything entering or leaving */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);   /* a move on screen */
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);    /* a sheet */
  --ease-in: cubic-bezier(.4, 0, 1, 1);           /* leaving, and only leaving */
  /* curves the kit adds */
  --ease-loop: cubic-bezier(.65, 0, .35, 1);      /* ambient loops only, never a control */
  /* spring:begin */
  --ease-land: linear(0, 0.137, 0.27, 0.396, 0.512, 0.616, 0.709, 0.788, 0.856, 0.912, 0.958, 0.994, 1.022, 1.042, 1.056, 1.065, 1.069, 1.07, 1.069, 1.065, 1.06, 1.055, 1.048, 1.042, 1.036, 1.03, 1.024, 1.019, 1.015, 1.011, 1.008, 1);   /* a spring that overshoots about 7% and settles: moments only, and only where a skin lands; written by bin/spring.mjs from skins/neutral.json */
  /* spring:end */
  --ease-step: steps(4, jump-end);                /* c01's stepped curve: four held beats */
  /* UI times: controls and pages, never skinned */
  --t-press: 120ms;                               /* a press */
  --t-ui: 180ms;                                  /* a control answering */
  --t-sheet: 320ms;                               /* a sheet or drawer */
  --t-exit: 110ms;                                /* what leaves goes quicker than it came */
  --stagger: 50ms;                                /* a list arriving, a step apart */
  --t-switch: 200ms;                              /* a switch or tab changing */
  /* show times: reels, hero bands, ambient layers; never on controls */
  --t-beat: 400ms;                                /* one element's entrance on a reel */
  --t-scene: 2400ms;                              /* a held scene */
  --t-ambient: 11s;                               /* one turn of aurora, fog or any ambient loop (8 to 14 s) */
  --tempo: 1;                                     /* the skin's multiplier for show times: 0.5 to 2 */
  --t-beat-s: calc(var(--t-beat) * var(--tempo));       /* a beat, skinned */
  --t-scene-s: calc(var(--t-scene) * var(--tempo));     /* a scene, skinned */
  --t-ambient-s: calc(var(--t-ambient) * var(--tempo)); /* an ambient turn, skinned */
  /* waiting */
  --t-wait-show: 400ms;                           /* a preloader appears only after this long a wait */
  --t-wait-hold: 600ms;                           /* and once shown it holds at least this long, so it never flashes */
}
/* less motion: gentler, not none. The ambient turn slows, and a landing curve settles like any control's. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-ambient: 18s;                             /* a slower ambient turn */
    --ease-land: var(--ease-out);                 /* no overshoot */
  }
}
.less-motion {
  --t-ambient: 18s;                               /* the account's Motion menu: the same as the media query */
  --ease-land: var(--ease-out);                   /* no overshoot */
}
/* a skin whose land spring differs from neutral's gets its own curve here, with its reduced twin (bin/spring.mjs) */
/* spring-skins:begin */
/* spring-skins:end */
