/* Physics-inspired motion. Springs/decelerations only - no plain opacity fades. */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translate3d(100%, 0, 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes rise { from { transform: translate3d(0, 20px, 0) scale(.97); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes burst {
  0% { transform: translate3d(0, 0, 0) scale(.4); opacity: 1; }
  100% { transform: translate3d(var(--dx), var(--dy), 0) scale(1); opacity: 0; }
}
@keyframes toast-in { from { transform: translate3d(0, -140%, 0) scale(.94); } to { transform: none; } }
@keyframes toast-out { to { transform: translate3d(0, -140%, 0) scale(.94); } }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* staggered content arrival after skeletons settle */
[data-rise] { animation: rise var(--dur-3) var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 55ms); }
.toast { animation: toast-in .5s var(--ease-spring) both; }
.toast.is-leaving { animation: toast-out .35s var(--ease-in-out) both; }
.badge:not(.is-empty) { animation: pop .5s var(--ease-spring); }
.nav-item:active, .side-link:active { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .sk::after { display: none; }
}
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes donut-in { from { stroke-dasharray: 0 1000; } }
