/* Shree Sawriya Solutions — scroll + slide motion.
   Only active when <html> has the "mo" class (added by the small inline script in <head>,
   skipped for people who prefer reduced motion). Without it, everything shows normally. */

/* ---------- scroll reveal ---------- */
.mo :is(
  section h1, section h2, section .lede, section .section-sub, section .section-title,
  section .glass, section .card, section .course-card, section .level-card, section .acc-item,
  section figure, section .cta, section .hero-buttons, section .trainer-box, .svc > a
):not(.slide *):not(.in){opacity:0}

.mo .in{animation:mo-up .95s cubic-bezier(.16,.84,.24,1) var(--d,0s) backwards}
.mo h1.in,.mo h2.in{animation-name:mo-up-big}
.mo .carousel.in,.mo .panel.in{animation-name:mo-rise}

@keyframes mo-up{from{opacity:0;transform:translateY(34px)}to{opacity:1;transform:none}}
@keyframes mo-up-big{from{opacity:0;transform:translateY(48px);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
@keyframes mo-rise{from{opacity:0;transform:translateY(40px) scale(.97)}to{opacity:1;transform:none}}

/* ---------- carousel slides ---------- */
.mo .carousel .slides{transition:transform .85s cubic-bezier(.77,0,.18,1)}

/* text slides: content of the active slide comes in one line after another */
.mo .slide:not(.photo) > *{opacity:0;transform:translateY(26px);
  transition:opacity .55s ease,transform .75s cubic-bezier(.16,.84,.24,1)}
.mo .slide:not(.photo).on > *{opacity:1;transform:none}
.mo .slide.on > :nth-child(1){transition-delay:.25s}
.mo .slide.on > :nth-child(2){transition-delay:.37s}
.mo .slide.on > :nth-child(3){transition-delay:.49s}
.mo .slide.on > :nth-child(4){transition-delay:.61s}
.mo .slide.on > :nth-child(5){transition-delay:.73s}

/* photo slides: slow zoom-out on the active photo */
.mo .slide.photo img{transform:scale(1.08);transition:transform 5s cubic-bezier(.2,.6,.2,1)}
.mo .slide.photo.on img{transform:scale(1)}

/* ---------- hero parallax helper ---------- */
.mo .hero .cracks{will-change:transform}

@media (prefers-reduced-motion:reduce){
  .mo *{animation:none!important}
  .mo .slide > *,.mo .slide.photo img{opacity:1!important;transform:none!important}
}
