/* Loaded only on Home/About. The script marks sections without existing motion. */
.home-customers .home-customer-logos.is-continuous {
  display: block;
  overflow: hidden;
  scroll-snap-type: none;
}

.home-customers .home-customer-track {
  display: flex;
  width: max-content;
  transition: none;
}

.home-customers .home-customer-group {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
  padding-right: 16px;
}

.home-customers .is-continuous .home-customer-card {
  flex: 0 0 var(--home-logo-width);
  width: var(--home-logo-width);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  [data-home-motion-section] .home-skill-card,
  [data-home-motion-section] .home-customer-card,
  [data-home-motion-section] .home-feedback-card,
  [data-home-motion-section] .home-achievement-card,
  [data-home-motion-section] .about-service-card,
  [data-home-motion-section] .about-number-card,
  [data-home-motion-section] .about-difference-card {
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  }

  [data-home-motion-section] .home-skill-card:hover,
  [data-home-motion-section] .home-achievement-card:hover,
  [data-home-motion-section] a.about-service-card:hover {
    transform: translateY(-4px);
    border-color: #ffd1d5;
    box-shadow: 0 12px 30px #9c182313;
  }

  [data-home-motion-section] .home-customer-card:hover,
  [data-home-motion-section] .home-feedback-card:hover,
  [data-home-motion-section] .about-number-card:hover,
  [data-home-motion-section] .about-difference-card:hover {
    border-color: #ffcbd0;
    box-shadow: 0 8px 24px #9c182312;
  }

  [data-home-motion-section] .home-skill-icon,
  [data-home-motion-section] .home-customer-card img {
    transition: transform 280ms cubic-bezier(.2, .65, .3, 1);
  }

  [data-home-motion-section] .home-skill-card:hover .home-skill-icon {
    transform: translateY(-2px) scale(1.04);
  }

  [data-home-motion-section] .home-customer-card:hover img {
    transform: scale(1.04);
  }

  [data-home-motion-section] .home-skills-more {
    transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
  }

  [data-home-motion-section] .home-skills-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px #ff080e24;
  }
}

/* Also cancel the theme's universal transitions when this preference changes. */
@media (prefers-reduced-motion: reduce) {
  [data-home-motion-section] [data-home-motion],
  [data-home-motion-section] .home-skill-icon,
  [data-home-motion-section] .home-customer-card img,
  [data-home-motion-section] .home-skills-more {
    transition: none;
  }
}
