/* Refined motion system: deliberate, responsive, and reduced-motion safe. */
@media (prefers-reduced-motion: no-preference) {
  /* Home-page hero: each content layer arrives in a calm, deliberate sequence. */
  .hero-content > .hero-animate {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition:
      opacity .65s ease-out,
      transform .7s cubic-bezier(.22, .75, .24, 1);
    will-change: opacity, transform;
  }
  body.is-loaded .hero-content > .hero-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  body.is-loaded .hero-content > .hero-animate:nth-child(1) { transition-delay: 120ms; }
  body.is-loaded .hero-content > .hero-animate:nth-child(2) { transition-delay: 260ms; }
  body.is-loaded .hero-content > .hero-animate:nth-child(3) { transition-delay: 430ms; }
  body.is-loaded .hero-content > .hero-animate:nth-child(4) { transition-delay: 600ms; }
  .steps { position: relative; border-top: 0; }
  .steps::before,
  .steps::after {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    content: "";
  }
  .steps::before { background: var(--line); }
  .steps::after {
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.25s cubic-bezier(.22, .75, .24, 1);
  }
  .approach.is-active .steps::after { transform: scaleX(1); }
  .steps li { position: relative; }
  .steps li::before {
    position: absolute;
    top: -5px;
    left: 0;
    width: 11px;
    height: 11px;
    border: 2px solid var(--teal);
    border-radius: 50%;
    background: var(--paper);
    content: "";
    opacity: 0;
    transform: scale(0);
    transition: opacity .3s ease, transform .35s cubic-bezier(.22, .75, .24, 1);
  }
  .approach.is-active .steps li::before { opacity: 1; transform: scale(1); }
  .approach.is-active .steps li:nth-child(1)::before { transition-delay: 160ms; }
  .approach.is-active .steps li:nth-child(2)::before { transition-delay: 320ms; }
  .approach.is-active .steps li:nth-child(3)::before { transition-delay: 480ms; }
  .approach.is-active .steps li:nth-child(4)::before { transition-delay: 640ms; }
  .hero-image { transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.045); will-change: transform; transition: transform .15s linear; }
  .site-header { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
  .site-header.is-scrolled { transform: translateY(-10px); box-shadow: 0 18px 42px rgba(7, 27, 59, .2); }
  .service-card.reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 80ms !important; }
  .service-card.reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 160ms !important; }
  .service-card.reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: 240ms !important; }
  .feature-content .button, .closing .button { position: relative; overflow: hidden; }
  .feature-content .button::after, .closing .button::after { position: absolute; inset: 0; content: ""; background: rgba(255,255,255,.16); transform: translateX(-105%); transition: transform .35s ease; }
  .feature-content .button:hover::after, .closing .button:hover::after { transform: translateX(0); }
  .hero-insight { animation: insight-float 5s ease-in-out infinite; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 960px) {
  .steps::before,
  .steps::after { left: 0; width: 1px; height: 100%; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .approach.is-active .steps::after { transform: scaleY(1); }
  .steps li { padding-left: 1.15rem; }
  .steps li::before { top: 1.35rem; left: -5px; }
}
@keyframes insight-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
