/* treniraj.si v5 — motion (SPEC §10).
   Scroll reveal: JS adds .tr-reveal to section-entry elements, sets --tr-i to the element's index
   WITHIN ITS OWN PARENT (per-grid stagger, 60ms steps, capped at 420ms), then .tr-in when it enters
   the viewport (once). On transitionend JS removes .tr-reveal so the element's own transitions
   (card hover shadow etc.) take over again. Without JS nothing is hidden. */
.tr-reveal{opacity:0;transform:translateY(12px);transition:opacity var(--tr-t-slow) var(--tr-ease),transform var(--tr-t-slow) var(--tr-ease);transition-delay:min(calc(var(--tr-i,0) * 60ms),420ms);}
.tr-reveal.tr-in{opacity:1;transform:none;}

/* Reduced motion: no transforms/opacity transitions, no reveal, no smooth scroll.
   This block (plus the focus ring) is the ONLY place !important is allowed. */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;animation-delay:0ms !important;transition-duration:.01ms !important;transition-delay:0ms !important;scroll-behavior:auto !important;}
  .tr-reveal{opacity:1 !important;transform:none !important;}
}
