/* Cards in one visual row enter together; following rows are staggered. */
.partner-reveal {
  --partner-delay: 50ms;
}

.partner-reveal:nth-child(n + 8):nth-child(-n + 14) {
  --partner-delay: 190ms;
}

.partner-reveal:nth-child(n + 15) {
  --partner-delay: 330ms;
}

.product-grid.reveal.show > a:nth-child(-n + 4) {
  transition-delay: 70ms;
}

.product-grid.reveal.show > a:nth-child(n + 5) {
  transition-delay: 230ms;
}

.product-grid.reveal.show > a:hover {
  transition-delay: 0s;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .partner-reveal:nth-child(-n + 5) { --partner-delay: 50ms; }
  .partner-reveal:nth-child(n + 6):nth-child(-n + 10) { --partner-delay: 190ms; }
  .partner-reveal:nth-child(n + 11) { --partner-delay: 330ms; }
}

@media (max-width: 760px) {
  .partner-reveal:nth-child(3n + 1),
  .partner-reveal:nth-child(3n + 2),
  .partner-reveal:nth-child(3n + 3) {
    --partner-delay: 50ms !important;
  }

  .partner-reveal:nth-child(n + 4):nth-child(-n + 6) { --partner-delay: 170ms !important; }
  .partner-reveal:nth-child(n + 7):nth-child(-n + 9) { --partner-delay: 290ms !important; }
  .partner-reveal:nth-child(n + 10):nth-child(-n + 12) { --partner-delay: 410ms !important; }
  .partner-reveal:nth-child(n + 13):nth-child(-n + 15) { --partner-delay: 530ms !important; }
  .partner-reveal:nth-child(n + 16):nth-child(-n + 18) { --partner-delay: 650ms !important; }
  .partner-reveal:nth-child(n + 19) { --partner-delay: 770ms !important; }

  .product-grid.reveal.show > a:nth-child(-n + 2) { transition-delay: 60ms; }
  .product-grid.reveal.show > a:nth-child(n + 3):nth-child(-n + 4) { transition-delay: 180ms; }
  .product-grid.reveal.show > a:nth-child(n + 5):nth-child(-n + 6) { transition-delay: 300ms; }
  .product-grid.reveal.show > a:nth-child(n + 7) { transition-delay: 420ms; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-reveal,
  .product-grid.reveal.show > a {
    transition-delay: 0s !important;
  }
}
