export const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches; export const clamp = (v, a, b) => Math.min(b, Math.max(a, v)); export const smooth = (a, b, v) => { const t = clamp((v - a) / (b - a), 0, 1); return t * t * (3 - 2 * t); }; export const flags = { paused: false };