/* Reuse the site's one-time IntersectionObserver reveal for the service cards. */
.modern-industrial-home .service-steps > article {
  --step-delay: 0ms;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.modern-industrial-home .service-steps > article:nth-child(2) { --step-delay: 90ms; }
.modern-industrial-home .service-steps > article:nth-child(3) { --step-delay: 180ms; }
.modern-industrial-home .service-steps > article:nth-child(4) { --step-delay: 270ms; }
.modern-industrial-home .service-steps > article:nth-child(5) { --step-delay: 360ms; }
.modern-industrial-home .service-steps > article.show {
  animation: service-card-enter .65s cubic-bezier(.2, .7, .3, 1) var(--step-delay) backwards;
}
.modern-industrial-home .service-steps > article::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #39b7b2, #6edbd6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
  pointer-events: none;
}
.modern-industrial-home .service-steps > article > span {
  transition: transform .3s ease, text-shadow .3s ease;
}
@keyframes service-card-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (hover: hover) and (pointer: fine) {
  .modern-industrial-home .service-steps > article:hover {
    transform: translateY(-6px);
    border-color: #6f9e8e;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .2);
  }
  .modern-industrial-home .service-steps > article:hover::after { transform: scaleX(1); }
  .modern-industrial-home .service-steps > article:hover > span {
    transform: translateX(3px);
    text-shadow: 0 0 20px rgba(110, 219, 214, .25);
  }
}
@media (hover: none) {
  .modern-industrial-home .service-steps > article:hover { transform: none; }
}
@media (max-width: 650px) {
  .modern-industrial-home .service-steps > article { --step-delay: 0ms; }
}
@media (prefers-reduced-motion: reduce) {
  .modern-industrial-home .service-steps > article,
  .modern-industrial-home .service-steps > article.show {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .modern-industrial-home .service-steps > article:hover,
  .modern-industrial-home .service-steps > article:hover > span { transform: none; }
  .modern-industrial-home .service-steps > article,
  .modern-industrial-home .service-steps > article::after,
  .modern-industrial-home .service-steps > article > span { transition: none; }
}

/* Keep the regular section height; hidden cards retain only their normal grid space. */
.modern-industrial-home .service-scroll-natural .service-steps > article {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  animation: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.16,1,.3,1), border-color .3s ease;
}
.modern-industrial-home .service-scroll-natural .service-steps > article.service-step-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media print {
  .modern-industrial-home .service-scroll-natural .service-steps > article { opacity: 1; transform: none; }
}
