/* Home page typography and motion. */
body[data-home-motion] main :is(h1, h2, h3, h4, h5, h6) {
  font-family: "Space Grotesk", "Helvetica Neue", -apple-system, sans-serif !important;
  font-weight: 500 !important;
  text-wrap: balance;
}

body[data-home-motion] .hero h1 {
  line-height: 1.1 !important;
  letter-spacing: -0.035em !important;
}

body[data-home-motion] :is(.section-head, .cta, .home-blog-head) h2 {
  line-height: 1.15;
  letter-spacing: -0.03em;
}

body[data-home-motion] main h3 {
  line-height: 1.3;
}

@media (max-width: 440px) {
  body[data-home-motion] .hero h1 {
    letter-spacing: -0.03em !important;
  }
}

body[data-home-motion] .home-hero-line {
  display: block;
  clip-path: inset(-0.12em -1px);
}

body[data-home-motion] .home-hero-line-content {
  display: block;
}

body[data-home-motion] .home-blog-link-label {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 200ms ease;
}

body[data-home-motion] .home-blog-arrow {
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-home-motion] .home-blog-card:focus-visible,
body[data-home-motion] .service-card-link:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

body[data-home-motion] .home-blog-card:focus-visible .home-blog-arrow {
  transform: translateX(4px);
}

body[data-home-motion] .home-blog-card:focus-visible .home-blog-link-label {
  text-decoration-color: currentColor;
}

body[data-home-motion] .marquee-track {
  animation-duration: 36s;
}

body[data-home-motion] .client-marquee-track {
  animation-duration: 48s;
}

body[data-home-motion] .marquee-track:not(.home-marquee-visible),
body[data-home-motion].home-motion-hidden .marquee-track,
body[data-home-motion] .marquee-container:focus-within .marquee-track {
  animation-play-state: paused;
}

body[data-home-motion] #cursor-follower {
  top: 0;
  left: 0;
}

@media (hover: hover) and (pointer: fine) {
  body[data-home-motion] .home-blog-card:hover .home-blog-arrow {
    transform: translateX(4px);
  }

  body[data-home-motion] .home-blog-card:hover .home-blog-link-label {
    text-decoration-color: currentColor;
  }

  body[data-home-motion] .marquee-container:hover .marquee-track {
    animation-play-state: paused;
  }
}

body[data-home-motion] :is(.hero, .cta) .btn.primary::before,
body[data-home-motion] :is(.hero, .cta) .btn.primary::after {
  transition: opacity 200ms ease;
}

body[data-home-motion] :is(.hero, .cta) .btn.primary:is(:hover, :focus-visible)::before {
  animation-play-state: paused;
  opacity: 0.535 !important;
}

body[data-home-motion] :is(.hero, .cta) .btn.primary:is(:hover, :focus-visible)::after {
  animation-play-state: paused;
  opacity: 0.81 !important;
}

body[data-home-motion] :is(.hero, .cta) .btn.primary:active {
  transform: translateY(1px) scale(0.99) !important;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  body[data-home-motion] #cursor-follower {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-home-motion] .marquee-track {
    animation: none;
  }

  body[data-home-motion] .marquee-container {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  body[data-home-motion] .home-blog-arrow,
  body[data-home-motion] :is(.hero, .cta) .btn.primary:active {
    transform: none !important;
  }
}
