/* TL Motion Principles — mobile-first, restrained, accessible */
:root { --tl-motion-fast: 160ms; --tl-motion-base: 240ms; --tl-motion-slow: 420ms; --tl-ease: cubic-bezier(.22,1,.36,1); }
.motion-page { opacity: 0; transform: translateY(6px); animation: tl-page-in var(--tl-motion-slow) var(--tl-ease) forwards; }
.motion-ready { opacity: 1; }
.motion-enter { animation: tl-enter var(--tl-motion-base) var(--tl-ease) both; }
.motion-exit { animation: tl-exit var(--tl-motion-fast) ease-in both; }
.motion-stagger > * { animation: tl-enter var(--tl-motion-base) var(--tl-ease) both; }
.motion-stagger > *:nth-child(2) { animation-delay: 30ms; }
.motion-stagger > *:nth-child(3) { animation-delay: 60ms; }
.motion-stagger > *:nth-child(4) { animation-delay: 90ms; }
.tl-skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,.08); border-radius: .75rem; }
.tl-skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.10),transparent); animation: tl-shimmer 1.25s infinite; }
.tl-loading { pointer-events: none; opacity: .72; }
.tl-loading [data-loading-label] { display: none; }
.tl-loading .tl-loading-label { display: inline-flex; }
.tl-loading-label { display: none; align-items: center; gap: .45rem; }
.tl-spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; animation: tl-spin .7s linear infinite; }
img[data-src] { background: rgba(255,255,255,.06); min-height: 2rem; }
@keyframes tl-page-in { to { opacity: 1; transform: none; } }
@keyframes tl-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tl-exit { to { opacity: 0; transform: translateY(-4px); } }
@keyframes tl-shimmer { to { transform: translateX(100%); } }
@keyframes tl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .motion-page, .motion-enter, .motion-stagger > * { opacity: 1; transform: none; }
}
