/* DXBMeta motion library: shared tokens and rules.
   Ported from Magic UI (MIT, Copyright (c) Magic UI) to plain CSS and JS. See ../README.md. */
:root {
  /* greyscale template tokens; a theme overrides these */
  --dm-bg: #f2f2ef;
  --dm-surface: #e4e4e0;
  --dm-block: #d6d6d1;
  --dm-mid: #7c7c77;
  --dm-ink: #1d1d1b;
  --dm-soft: #55554f;
  --dm-line: #c9c9c4;
  --dm-accent: #1d1d1b;      /* one accent, set by the theme */
  --dm-accent-2: #7c7c77;    /* second colour for gradients, set by the theme */
  --dm-on-accent: #f2f2ef;

  --dm-display: Fraunces, Georgia, serif;
  --dm-text: Inter, Arial, Helvetica, sans-serif;

  /* motion: the only durations and curves components may use */
  --dm-ease-out: cubic-bezier(.32, .72, 0, 1);     /* settle, no overshoot */
  --dm-ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dm-ease-linear: linear;
  --dm-dur-1: 160ms;   /* press feedback */
  --dm-dur-2: 240ms;   /* small state changes */
  --dm-dur-3: 420ms;   /* arrivals, panels */
  --dm-dur-4: 700ms;   /* hero arrivals */
  --dm-dur-5: 1200ms;  /* long reveals: counts, colour fills */
  --dm-dur-6: 1500ms;  /* sweeps and breathing */
  --dm-dur-ambient: 3s;        /* short repeating effects */
  --dm-dur-ambient-slow: 6s;   /* beams and slow sweeps */
  --dm-dur-loop: 20s;  /* slow ambient loops */
  --dm-stagger: 50ms;  /* delay between items in a sequence */

  --dm-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dm-shadow: rgba(0, 0, 0, .18);   /* lifted surfaces */
  --dm-wash: rgba(255, 255, 255, .12); /* highlight on dark surfaces */
}

/* Reduce Motion: components switch to a fade or to rest. Each component also checks DM.reduced() in JS. */
@media (prefers-reduced-motion: reduce) {
  [data-dm] *, [data-dm] {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* Decoration never takes the pointer or the screen reader */
.dm-deco { pointer-events: none; }
.dm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
