/* Lillirode design system -- motion tokens. Durations, easings and distances for every animation of motion.css.
   Calm and slow on purpose: the audience is women 45+, the voice is calm, warm and short, so nothing snaps, nothing bounces, nothing is faster than 180 ms.
   The values are the same by day and by night. A screen binds these names and writes no duration, easing or distance of its own. */
:root {
  /* ---- durations (bands: feedback 120-250, transition 200-400, entrance 300-600 ms) */
  --dur-quick: 180ms;          /* hover, focus colour and press: long enough to be seen as a soft change, short enough to feel answered */
  --dur-soft: 280ms;           /* a card lifting, a disclosure opening or closing: a surface that moves needs more time than a colour */
  --dur-enter: 440ms;          /* a section, card or hero line arriving: three siblings with --dur-stagger end inside 600 ms */
  --dur-stagger: 70ms;         /* the step between siblings of one group; at most two steps (the third sibling waits 140 ms) */
  --dur-float-sphere: 64s;     /* one there-and-back sway of the hero sphere: too slow to follow, only to notice that it has moved */
  --dur-float-dot: 46s;        /* the hero dot: a different period from the sphere, so the two never move together */
  --dur-wave: 520ms;           /* one arc of the card corner flashing from light to lilac and back to its drawn colour: a short flicker, long enough to be seen as a signal */
  --dur-wave-step: 180ms;      /* the outer arc follows the inner one by this much: the Wi-Fi reading, inner then outer */
  --dur-draw: 1200ms;          /* a feature icon drawn in once by a line as it scrolls into view: one calm stroke, slower than an entrance because a line is followed by the eye, and it plays once and rests */
  --dur-turn-cycle: 6000ms;    /* the divider ring: one cycle is a rest and one slow turn; the turn is the last 24 percent (1.44 s), the first 76 percent (4.56 s) is rest. The 24 is written in the keyframes of ds-mo-turn, which cannot read a token */

  /* ---- easings */
  --ease-calm: cubic-bezier(.22, .7, .3, 1);      /* hover, focus, disclosure: starts at once, settles softly */
  --ease-enter: cubic-bezier(.16, .8, .3, 1);     /* entrance: a slightly longer settle than --ease-calm */
  --ease-float: cubic-bezier(.45, .05, .55, .95); /* the sway: slow at both ends of the swing, like a pendulum, with no visible turning point */

  /* ---- distances */
  --move-rise: 12px;           /* an entrance travels this far up and no further: arrival, not a flight */
  --move-lift: 2px;            /* a card that leads on rises this much on hover */
  --move-drop: 6px;            /* a disclosure's panel slides this far from its button */
  --glow-peak: 1;              /* the top of a card-corner arc's flash: the arc's drawn opacity (.8 inner, .6 outer) rises to this, so the light and lilac colours show at full strength, and returns */
  --scale-press: .98;         /* a button pressed: a 2 percent give, felt and not seen */

  /* ---- the float amplitude: half of the swing, in degrees of rotation about the orbit's own centre (the satellite stays on its orbit line) */
  --float-arc-sphere: 9deg;    /* hero sphere on the outer orbit: +-9 degrees, inside the drawn arc (+-45 on the computer strip, r 240; +-35 on the phone strip, r 310), about 30 to 50 px of travel each way */
  --float-arc-dot: 12deg;      /* hero dot on the inner orbit: +-12 degrees, inside the drawn arc (+-40) */
}
