/* rb-motion.css – one motion scale for the whole rebuild (2026-11-30)
   Based on transitions.dev recipes, made calm for Special Alerts: no spring, no bounce, no flicker.
   press / hover  →  --t-1 (220ms)  ·  small reveals → --t-2 (360ms)  ·  panels, tabs, theme swaps → --t-3 (900ms)
   page entrance  →  --t-4 (900ms) ·  ambient loops 8–16s (always slow)                                         */
:root {
    --ease: cubic-bezier(.2, .8, .2, 1);       /* the calm curve (same family as the cassette spin) */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --t-1: 220ms;
    --t-2: 360ms;
    --t-3: 900ms;
    --t-4: 900ms;
    --loop-breath: 2.8s;   /* ambient loops stay slow (owner's calm rule) */
    --loop-pulse: 9s;
    --loop-spin: 12s;
    --loop-float: 10s; --loop-float-2: 12s; --loop-float-3: 14s; --loop-twinkle: 6s; --loop-sweep: 2.2s; --loop-marquee: 60s;
    --lift: -2px;                              /* hover lift for linked cards */
}

/* the one entrance: the hero comes in once on load, line by line */
[data-enter] > * { opacity: 0; transform: translateY(12px); }
.is-in [data-enter] > * { opacity: 1; transform: none; transition: opacity var(--t-4) var(--ease), transform var(--t-4) var(--ease); }
.is-in [data-enter] > *:nth-child(2) { transition-delay: 90ms; }
.is-in [data-enter] > *:nth-child(3) { transition-delay: 180ms; }
.is-in [data-enter] > *:nth-child(4) { transition-delay: 270ms; }
.is-in [data-enter] > *:nth-child(5) { transition-delay: 360ms; }

/* buttons: step on hover, press on click (no shifted shadows) */
.rb-btn { transition: background-color var(--t-1) var(--ease), border-color var(--t-1) var(--ease), color var(--t-1) var(--ease), box-shadow var(--t-2) var(--ease), transform var(--t-1) var(--ease); }
.rb-btn:active { transform: scale(.98); }

/* linked cards: a 2px lift and a soft shadow */
.rb-lift { transition: transform var(--t-2) var(--ease), border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease); }
.rb-lift:hover { transform: translateY(var(--lift)); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); }
.rb-zoom img { transition: transform var(--t-3) var(--ease); }
.rb-zoom:hover img { transform: scale(1.03); }

/* cross-fade (theme swap, tab panels) */
.rb-fade { transition: opacity var(--t-3) var(--ease), transform var(--t-3) var(--ease); }

/* copied tick (success check, calm) */
@keyframes rbTick { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-enter] > * { opacity: 1 !important; transform: none !important; }
}
