/* Qesora motion tokens · confirmed set (11 Oct 2026)
   Merged from board-motion/tokens.css (loaders + transitions v2). The boards stay as exploration; this file is the one the product reads.
   One motion language, built on the bare eye of the logo (brand/qesora-mark.svg, viewBox 0 0 1024). Black and white only;
   colour appears only when a signal line is drawn (attention, valence, arousal, memory, load). */

:root{
  /* ---------- Durations ---------- */
  --m-instant: 90ms;     /* press, toggle, focus ring */
  --m-fast: 140ms;       /* hover, small fades, blink close */
  --m-base: 200ms;       /* state change, blink open, label swap */
  --m-slow: 280ms;       /* sheet, page hand-off (product UI stays under 300 ms) */
  --m-hop: 380ms;        /* one hop between two places (N4, A3 360, K1, K2, K3) */
  --m-drop: 420ms;       /* first fall of drop-and-settle (K2, K3) */
  --m-orbit: 1100ms;     /* one pupil orbit: I2, I4, R3, T3 (the only place linear is allowed) */
  --m-breath: 2000ms;    /* dilate cycle while AI writes (A3) */
  --m-shimmer: 1400ms;   /* skeleton shimmer (F3) */
  --m-look-loop: 4800ms; /* one seeded look-around path (C3, I1, S1) */
  --m-drift-loop: 6000ms;/* one drift path (E3, waiting on a step) */

  /* ---------- Loader timing rules ---------- */
  --m-show-delay: 400ms; /* show no loader before this; most waits end first */
  --m-min-show: 600ms;   /* once shown, keep it at least this long */
  --m-done-hold: 500ms;  /* hold the done state before handing off */

  /* ---------- Easings ---------- */
  --e-out: cubic-bezier(.23,1,.32,1);       /* enter, settle: the house curve */
  --e-in: cubic-bezier(.55,0,1,.45);        /* exit, eyelid closing */
  --e-in-out: cubic-bezier(.65,0,.35,1);    /* looking, scanning, smooth pursuit */
  --e-sheet: cubic-bezier(.32,.72,0,1);     /* sheets, the ball becoming the page */
  --e-saccade: cubic-bezier(.2,.9,.1,1);    /* eye jump */
  --e-pop: cubic-bezier(.34,1.4,.64,1);     /* done settle: small overshoot, settles once */
  --e-cover: cubic-bezier(.77,0,.175,1);    /* the door cover growing from the element you pressed */

  /* ---------- The bare eye (no tile in the product) ----------
     Draw with viewBox "149 133 716 716" (the ball's box). The squircle tile is only the favicon, app icon and static rail logo. */
  --eye-viewbox: 149 133 716 716;
  --eye-inline: 16px; --eye-button: 18px; --eye-row: 22px; --eye-cover: 48px; --eye-progress: 64px;
  --eye-cx: 507; --eye-cy: 491; --eye-r: 358;
  --pupil-cx: 675; --pupil-cy: 390; --pupil-rx: 139; --pupil-ry: 152; --pupil-rot: -28deg;
  --glint-cx: 730; --glint-cy: 338; --glint-r: 30;
  --pupil-reach: 196;         /* travel radius for look, follow, orbit, progress */
  --eye-micro: 6;             /* rest drift, logo units */
  --eye-shake: 30;            /* error: two shakes of 120 ms, ink only */
  --eye-catchlight: .35;      /* highlight travels 35% of the pupil, lags 55 ms, clipped to the pupil */
  --eye-catchlight-lag: 55ms;
  --eye-settle: 460ms;        /* DONE (default): pupil home on --e-pop */
  --eye-breath: 1.07;         /* done in in-place buttons only (I4): 380 ms */
  --eye-dilate: 1.22;         /* AI writing */
  --eye-trail: 270;           /* D1a and E1 trail width (pupil width) */
  --eye-trail-thin: 64;       /* Q1 */

  /* ---------- Ground rule: invert, never outline ----------
     Light ground: ball #0f1012, pupil #fff, highlight #0f1012. Dark ground: ball #fff, pupil #0f1012, highlight #fff.
     Trail = the pupil's colour. Ink pills count as dark ground, white pills as light. */
  --eye-light-comp: 1.06;     /* optical compensation on light grounds, 24 px and up */
  --eye-light-comp-sm: 1.08;  /* 22 px and below */

  /* ---------- Bounce (only inside N4, A3, K1, K2, K3, T2 and the brand A4) ---------- */
  --bounce-restitution: .5;
  --bounce-squash: .78;       /* hop landing; drop impacts .74 */
  --bounce-stretch: 1.1;
  --bounce-contact: 140ms;

  /* ---------- Transitions ---------- */
  --t-quiet: 160ms;      /* rail navigation: content fade, the rail stays */
  --t-swap: 180ms;       /* chart -> target editor cross-fade */
  --t-dialog: 200ms;     /* dialog in (scale .96 -> 1) */
  --t-sheet: 340ms;      /* phone sheet rises */
  --t-exit: 140ms;       /* anything closing, --e-in */
  --t-shared: 380ms;     /* report from a tile: the cover grows into the player */
  --t-compare: 300ms;    /* B slides in beside A */
  --t-toast-in: 260ms; --t-toast-out: 200ms;
  --t-cover: 600ms;      /* the door cover grows from what you pressed (--e-cover) */
  --t-ball: 600ms;       /* C3 ending: the ball grows into the page (--e-sheet) */
  --t-blink: 340ms;      /* 140 close (--e-in) + 200 open (--e-out); the only blink */

  /* ---------- Ink ---------- */
  --m-ink: #0f1012; --m-paper: #fff;
  --sig-attention:#e8602c; --sig-valence:#c23a86; --sig-arousal:#7d5bbf; --sig-memory:#1f8a78; --sig-load:#8a8d96;
}

@media (prefers-reduced-motion: reduce){
  :root{
    --m-fast: 0ms; --m-base: 120ms; --m-slow: 160ms; --m-hop: 0ms; --m-drop: 0ms;
    --t-quiet: 0ms; --t-shared: 160ms; --t-cover: 160ms; --t-ball: 0ms; --t-blink: 0ms;
    /* loops stop on the logo position; progress moves in 10% steps; blink becomes a fade; doors: ground fades in (160),
       still eye with its line, page fades in (160); quiet transitions are instant or a 120 ms fade. */
  }
}
