/* MOTION TOKENS: the single source of truth for every animation's timing, offset, delay and trigger point.
   CSS reads these with var(--m-...). JavaScript, React, Next.js, GSAP and Framer Motion read the SAME values through js/motion.js
   (Motion.ms('draw-dur'), Motion.n('text-end'), Motion.raw('ease-out')). Never write a literal duration, delay, offset or threshold
   anywhere else. To change how the site moves, change it here. See "Animation standards.md". */
:root {
  /* ---- easing and distance ---- */
  --m-ease-out: cubic-bezier(.16, 1, .3, 1);       /* the default easing for entrances */
  --m-ease-write: cubic-bezier(.65, 0, .35, 1);    /* hand-writing a signature word */
  --m-rise: 26px;                                  /* how far fade-up elements travel */

  /* ---- entrances: fade-up, stagger-reveal, image-reveal ---- */
  --m-dur-fade: .9s;
  --m-dur-wipe: 1.2s;
  --m-stagger: 90ms;                               /* gap between children of a list */
  --m-io-threshold: .15;                           /* how much must be visible before it plays */
  --m-io-bottom: 8%;                               /* bottom of the screen that is ignored */

  /* ---- text reveal on scroll (fractions of the screen height) ---- */
  --m-text-start: .9;                              /* block's TOP reaches this: reveal begins */
  --m-text-end: .55;                               /* block's BOTTOM reaches this: fully revealed */
  --m-text-min: .14;                               /* opacity of unrevealed characters */
  --m-text-min-lead: .25;                          /* same, for the hero line above the fold */
  --m-text-finish: .94;                            /* progress at which the last letter is fully shown */
  --m-text-settle: 900ms;                          /* re-check this long after scrolling stops */
  --m-text-auto-dur: 1500ms;                       /* timed reveal for text above the fold */
  --m-text-auto-delay: 300ms;

  /* ---- SVG line drawing (timed, triggered in the middle band) ---- */
  --m-draw-dur: 1800ms;
  --m-draw-band-min: .42;                          /* shape's CENTRE must be between these two */
  --m-draw-band-max: .58;                          /* fractions of the screen height */

  /* ---- hero card entrance ---- */
  --m-hero-image-dur: 2s;
  --m-hero-fade-dur: 1.2s;
  --m-hero-fade-delay: .5s;
  --m-hero-title-dur: 1.4s;
  --m-hero-title-delay: .8s;
  --m-hero-write-dur: 2.4s;
  --m-hero-write-delay: .9s;
  --m-hero-cue-delay: 1.6s;

  /* ---- loops ---- */
  --m-cue-loop: 1.9s;                              /* scroll-cue arrow */
  --m-border-lap: 6s;                              /* travelling border: one lap */
  --m-border-tail: 90deg;
  --m-border-width: 1.5px;
  --m-pulse: 2.2s;                                 /* primary offer button: pulse ring */
  --m-shimmer: 2.6s;                               /* ...light sweep */
  --m-wiggle: 2.2s;                                /* ...icon wiggle */
  --m-glint: 2.8s;                                 /* foil card glint */
}
