/* Motion (v1.87.0, on for everyone from v1.89.0). Every rule is
   scoped to .mp-on, which the script adds only when motion is allowed, so a
   reduced-motion visitor gets the page exactly as it is today. */

/* Lenis does the smoothing; the stylesheet's own smooth scroll would fight it. */
html.mp-on.lenis { scroll-behavior: auto !important; }
/* Lenis switches iframes off while smoothing; the CPD videos must stay usable. */
html.mp-on.lenis.lenis-smooth iframe { pointer-events: auto; }

/* --- /treatment pathway story --- */
/* GSAP owns the steps' entrance, so the generic reveal stands down here. */
.mp-on .treatment-pathway.mp-story > .tp-step.reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

.mp-on .treatment-pathway .mp-line {
  position: absolute;
  left: 28px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-dark));
  transform-origin: top center;
  transform: scaleY(0);
  pointer-events: none;
}

.mp-on .treatment-pathway.mp-story .tp-step-marker {
  transform: scale(0.86);
  filter: saturate(0.2) brightness(1.18);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s ease, box-shadow 0.45s ease;
}
.mp-on .treatment-pathway.mp-story .tp-step.mp-lit .tp-step-marker {
  transform: scale(1);
  filter: none;
  box-shadow: 0 0 0 7px rgba(79, 168, 184, 0.18), 0 4px 14px rgba(42, 111, 135, 0.25);
}
.mp-on .treatment-pathway.mp-story .tp-step-body {
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}
.mp-on .treatment-pathway.mp-story .tp-step.mp-lit .tp-step-body {
  border-color: rgba(79, 168, 184, 0.55);
  box-shadow: 0 10px 28px rgba(11, 37, 69, 0.08);
}

@media (max-width: 767px) {
  .mp-on .treatment-pathway .mp-line { left: 22px; }
}
