@media (prefers-reduced-motion: no-preference) {
  html.motion {
    --rise: cubic-bezier(0.16, 1, 0.3, 1);
  }

  .scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 15;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, #22a75d, #ffd100 42%, #2278d4 72%, #e20613);
    pointer-events: none;
  }

  html.motion :is(
    .hero__copy > *,
    .hero__tagline,
    .skills__left > h2,
    .skill-card,
    .platform__content > *,
    .story__copy > *,
    .story__visual,
    .consulting__banner h2,
    .feature,
    .contact__card:not(.contact__done),
    .footer__top > *,
    .footer__actions,
    .svc-hero__copy > *,
    .svc-hero__foot,
    .it-hero__copy > *,
    .it-hero__foot,
    .center-title,
    .sol__card,
    .block > h2,
    .block > p,
    .split__copy > *,
    .bring li,
    .feats > article,
    .plat-vibe > h2,
    .vibe__card,
    .stack li,
    .cards > article,
    .glow-card,
    .legal > h1,
    .legal > h2,
    .legal > p
  ):not(.is-in) {
    opacity: 0;
    transform: translateY(28px);
  }

  html.motion :is(
    .hero__copy > *,
    .hero__tagline,
    .skills__left > h2,
    .skill-card,
    .platform__content > *,
    .story__copy > *,
    .story__visual,
    .consulting__banner h2,
    .feature,
    .contact__card:not(.contact__done),
    .footer__top > *,
    .footer__actions,
    .svc-hero__copy > *,
    .svc-hero__foot,
    .it-hero__copy > *,
    .it-hero__foot,
    .center-title,
    .sol__card,
    .block > h2,
    .block > p,
    .split__copy > *,
    .bring li,
    .feats > article,
    .plat-vibe > h2,
    .vibe__card,
    .stack li,
    .cards > article,
    .glow-card,
    .legal > h1,
    .legal > h2,
    .legal > p
  ):not(.is-in):focus,
  html.motion :is(
    .hero__copy > *,
    .hero__tagline,
    .skills__left > h2,
    .skill-card,
    .platform__content > *,
    .story__copy > *,
    .story__visual,
    .consulting__banner h2,
    .feature,
    .contact__card:not(.contact__done),
    .footer__top > *,
    .footer__actions,
    .svc-hero__copy > *,
    .svc-hero__foot,
    .it-hero__copy > *,
    .it-hero__foot,
    .center-title,
    .sol__card,
    .block > h2,
    .block > p,
    .split__copy > *,
    .bring li,
    .feats > article,
    .plat-vibe > h2,
    .vibe__card,
    .stack li,
    .cards > article,
    .glow-card,
    .legal > h1,
    .legal > h2,
    .legal > p
  ):not(.is-in):focus-within {
    opacity: 1;
    transform: none;
  }

  html.motion .is-in {
    animation: rise 0.8s var(--rise) backwards;
    animation-delay: var(--d, 0ms);
  }

  .site-header .logo,
  .site-header .header__bar > .btn {
    animation: rise 0.7s var(--rise) backwards;
  }

  .site-header .site-nav li {
    animation: rise 0.65s var(--rise) backwards;
  }

  .site-header .site-nav li:nth-child(1) { animation-delay: 80ms; }
  .site-header .site-nav li:nth-child(2) { animation-delay: 150ms; }
  .site-header .site-nav li:nth-child(3) { animation-delay: 220ms; }
  .site-header .site-nav li:nth-child(4) { animation-delay: 290ms; }

  .hero__art {
    transform-origin: 78% 50%;
    animation: drift 22s ease-in-out infinite alternate;
  }

  .hero::before,
  .it-hero__stage::before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 167, 93, 0.22), rgba(34, 167, 93, 0) 68%);
    pointer-events: none;
    animation: orb 16s ease-in-out infinite;
  }

  .hero::before { top: 12%; left: 8%; }
  .it-hero__stage::before { top: 18%; left: 4%; }

  .eyebrow__dot {
    animation: pulse 2.4s ease-out infinite;
  }

  .it-title .it-i,
  .kicker--web .hi-gold {
    animation: glow-gold 3.4s ease-in-out infinite;
  }

  .it-title .it-t {
    animation: glow-green 3.4s ease-in-out infinite;
  }

  .site-nav a {
    position: relative;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--rise);
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .logo {
    transition: filter 0.35s ease;
  }

  .logo:hover {
    filter: drop-shadow(0 0 12px rgba(34, 167, 93, 0.45));
  }

  .btn,
  .more,
  .more__arrow,
  .skill-card,
  .feature,
  .glow-card,
  .vibe__card,
  .sol__card,
  .field input,
  .field textarea {
    transition:
      transform 0.35s var(--rise),
      box-shadow 0.35s ease,
      filter 0.35s ease,
      background 0.25s ease;
  }

  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(34, 167, 93, 0.28);
    filter: brightness(1.08);
  }

  .btn:active {
    transform: translateY(0) scale(0.98);
  }

  .more:hover .more__arrow {
    transform: translateX(8px);
  }

  .skill-card:hover,
  .feature:hover,
  .glow-card:hover,
  .vibe__card:hover,
  .sol__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  .skill-card__icon,
  .story__visual img {
    animation: bob 5.5s ease-in-out infinite;
  }

  .split__pill,
  .split__mark,
  .stack-board__icon {
    animation: bob 6s ease-in-out infinite;
  }

  .sol__chev,
  .stack-board__chev,
  .vibe__go {
    animation: nudge 1.8s ease-in-out infinite;
  }

  .vibe__go--right { animation-delay: 0.4s; }

  .feat__n {
    animation: pop 3.6s ease-in-out infinite;
  }

  .contact__stripe {
    position: relative;
  }

  .contact__stripe::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.42) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: sheen 3.8s ease-in-out infinite;
  }

  .contact__done:not([hidden]) {
    animation: rise 0.7s var(--rise) backwards;
  }

  .block--rule h2::after {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.8s var(--rise);
  }

  .block--rule h2.is-in::after {
    transform: scaleX(1);
  }

  @media (max-width: 980px) {
    .hero__art { animation: none; }
    .hero::before,
    .it-hero__stage::before { display: none; }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

@keyframes orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 24px) scale(1.15); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 167, 93, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(34, 167, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 167, 93, 0); }
}

@keyframes glow-gold {
  0%, 100% { text-shadow: 0 0 0 rgba(244, 203, 6, 0); }
  50% { text-shadow: 0 0 18px rgba(244, 203, 6, 0.55); }
}

@keyframes glow-green {
  0%, 100% { text-shadow: 0 0 0 rgba(34, 167, 93, 0); }
  50% { text-shadow: 0 0 18px rgba(34, 167, 93, 0.55); }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes nudge {
  0%, 100% { translate: 0 0; }
  50% { translate: 7px 0; }
}

@keyframes pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes sheen {
  0%, 55% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
