/* Adizes motion — v1.0
   Rule: motion explains or confirms something. It never decorates and never delays content.
   App screens use the quiet set (state changes, entrances). Website / onboarding / reports may
   use the expressive set (curve drawing, scroll reveals). */

@keyframes adz-rise   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes adz-fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes adz-pop    { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes adz-draw   { from { stroke-dashoffset: var(--adz-path-length, 1000); } to { stroke-dashoffset: 0; } }
@keyframes adz-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes adz-slide-in-right { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- Quiet set (app UI) ---------- */
.adz-enter      { animation: adz-rise var(--adz-dur-slow) var(--adz-ease) both; }  /* page content on route change */
.adz-enter-fade { animation: adz-fade var(--adz-dur-base) var(--adz-ease) both; }  /* menus, popovers, toasts */
.adz-panel-in   { animation: adz-slide-in-right var(--adz-dur-slow) var(--adz-ease) both; } /* side panels / drawers */
.adz-bar__fill  { transform-origin: left center; animation: adz-grow-x 700ms var(--adz-ease) both; } /* scores fill once */
.adz-stagger > * { animation: adz-rise var(--adz-dur-slow) var(--adz-ease) both; }
.adz-stagger > *:nth-child(2) { animation-delay: 60ms; }
.adz-stagger > *:nth-child(3) { animation-delay: 120ms; }
.adz-stagger > *:nth-child(4) { animation-delay: 180ms; }
.adz-stagger > *:nth-child(n+5) { animation-delay: 240ms; }

/* ---------- Expressive set (website, onboarding, report covers) ---------- */
.adz-draw { stroke-dasharray: var(--adz-path-length, 1000); animation: adz-draw var(--adz-dur-draw) var(--adz-ease-inout) both; } /* set --adz-path-length to path.getTotalLength() */
.adz-pop  { transform-box: fill-box; transform-origin: center; animation: adz-pop 450ms var(--adz-ease) both; }
@supports (animation-timeline: view()) {
  .adz-reveal { animation: adz-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}

/* ---------- Always last: respect the user's setting ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
