/* LJC Solutions – motion. All hidden states apply only under .motion-ok (set by JS
   when IntersectionObserver exists and reduced motion is not requested). */

.motion-ok .hero-in {
  opacity: 0; transform: translateY(16px);
  animation: ljc-rise .6s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 80ms + 60ms);
}
@keyframes ljc-rise { to { opacity: 1; transform: none; } }

.motion-ok .hero-visual, .motion-ok .page-hero-visual { animation: ljc-frame .75s var(--ease) both; }
@keyframes ljc-frame { from { clip-path: inset(4% 4% 4% 4% round 20px); opacity: .6; } to { clip-path: inset(0 0 0 0 round 0); opacity: 1; } }

.motion-ok .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--stagger, 0ms); }
.motion-ok .reveal.is-visible { opacity: 1; transform: none; }

/* brand motif draw */
.motion-ok .js-draw .motif-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion-ok .js-draw .motif-dot.is-on { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; }
.motion-ok .js-draw.is-drawn .motif-line { stroke-dashoffset: 0; transition: stroke-dashoffset .85s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.motion-ok .js-draw.is-drawn .motif-dot.is-on { opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--i) * 70ms + 450ms); }

/* process connector progress (set via --progress from JS, motion-ok only) */
.motion-ok .steps-h::after, .motion-ok .timeline::after { transition: transform .12s linear; }

@media (prefers-reduced-motion: reduce) {
  /* Hidden motion states only exist under .motion-ok, which is never set here,
     so removing transitions/animations outright is safe. */
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
