/* Homepage-only motion. Static layout remains the default without its script. */
.hero-photo {
  transform: none;
  transform-origin: 74% 68%;
}

.hero.hofnex-motion-running .hero-photo {
  animation: hofnex-hero-push 9000ms cubic-bezier(.4, 0, .2, 1) forwards;
}

.hero.hofnex-motion-paused .hero-photo {
  animation-play-state: paused;
}

.hero.hofnex-motion-warm .hero-photo {
  will-change: transform;
}

.hero.hofnex-motion-complete .hero-photo {
  transform: scale(1.06);
}

@keyframes hofnex-hero-push {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@media (max-width: 680px) {
  .hero-photo { transform-origin: 65% 70%; }

  .hero.hofnex-motion-running .hero-photo {
    animation-duration: 8000ms;
  }

  .hero.hofnex-motion-complete .hero-photo {
    transform: scale(1.045);
  }

  @keyframes hofnex-hero-push {
    from { transform: scale(1); }
    to { transform: scale(1.045); }
  }
}

@media (min-width: 681px) and (hover: hover) and (pointer: fine) {
  .category-media img,
  .industry-card > img {
    transition: transform 220ms ease;
  }

  html.hofnex-motion-enabled .category-card:hover .category-media img,
  html.hofnex-motion-enabled .industry-card:hover > img {
    transform: scale(1.015);
  }

  .category-card .category-body [data-icon] {
    transition: transform 220ms ease;
  }

  html.hofnex-motion-enabled .category-card:hover .category-body [data-icon] {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hofnex-motion-running .hero-photo,
  .hero.hofnex-motion-complete .hero-photo,
  .category-media img,
  .industry-card > img,
  .category-card .category-body [data-icon] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
