/* The Circus · motion v1 · 150–250 ms, ease-out. Never on numbers that re-render (colour only). The two loops (live dot, skeleton) are the only exceptions. */
/* a · page load: one stagger, once */
.rise>*{animation:rise var(--dur-3) var(--ease) both;animation-delay:calc(var(--i,0) * 40ms)}
@keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* b · hover */
.lift{transition:transform var(--dur-1) var(--ease),background-color var(--dur-1) var(--ease),border-color var(--dur-1) var(--ease)}
.lift:hover{transform:translateY(-1px);background-color:var(--surface-2);border-color:var(--divider-strong)}
.btn-fill{transition:background-color var(--dur-1) var(--ease)}
.btn-fill:hover{background-color:var(--accent-press)}
.tabs-slide{position:relative}
.tabs-slide .ink{position:absolute;left:0;bottom:-1px;height:2px;width:var(--w,0);background:var(--accent);transform:translateX(var(--x,0));transition:transform var(--dur-2) var(--ease),width var(--dur-2) var(--ease)}
/* c · number tick: colour only (never transform a live number) */
.tick-up{animation:tick-up var(--dur-3) var(--ease)}
.tick-dn{animation:tick-dn var(--dur-3) var(--ease)}
@keyframes tick-up{from{color:var(--positive)}}
@keyframes tick-dn{from{color:var(--negative)}}
/* d · sparkline draw-in (path has pathLength="1") */
.spark path{stroke-dasharray:1;stroke-dashoffset:1}
.spark.in path{transition:stroke-dashoffset var(--dur-3) var(--ease);stroke-dashoffset:0}
/* e · modal, sheet, toast */
.modal{animation:modal-in var(--dur-2) var(--ease) both}
@keyframes modal-in{from{opacity:0;transform:scale(.98)}}
.scrim{animation:fade var(--dur-2) var(--ease) both}
@keyframes fade{from{opacity:0}}
.toast{animation:toast-in var(--dur-2) var(--ease) both}
@keyframes toast-in{from{opacity:0;transform:translateY(8px)}}
/* f · quote lock: icon only, once */
.lock-pulse{animation:lock var(--dur-3) var(--ease)}
@keyframes lock{50%{transform:scale(1.14);opacity:.7}}
/* g · live dot (the one loop) */
.live{animation:breathe 2s ease-in-out infinite}
@keyframes breathe{50%{opacity:.4}}
/* h · skeleton while the indexer catches up */
.skel{background:var(--surface-3);animation:skel 1.6s ease-in-out infinite}
@keyframes skel{50%{opacity:.55}}
/* reduced motion: everything off, content identical */
@media (prefers-reduced-motion:reduce){
.rise>*,.tick-up,.tick-dn,.modal,.scrim,.toast,.lock-pulse,.live,.skel{animation:none!important}
.lift,.btn-fill,.tabs-slide .ink,.spark.in path{transition:none!important}
.lift:hover{transform:none}.spark path{stroke-dashoffset:0}}
