/* Keep the complete client roster in one inset, continuously looping row. */
@media (max-width: 1099px) {
  body[data-viewport="mobile"] .home-mobile-client-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0;
    overflow: hidden;
    padding: 1.4rem 0 !important;
  }

  body[data-viewport="mobile"] .home-mobile-client-grid .home-proof-label {
    padding-inline: 0.95rem;
  }

  body[data-viewport="mobile"] .home-mobile-client-grid .home-proof-marquee {
    display: block;
    min-width: 0;
    overflow: hidden;
  }

  body[data-viewport="mobile"] .home-mobile-client-grid .home-proof-marquee-track {
    display: flex;
    width: max-content;
    animation: home-mobile-logo-loop var(--proof-marquee-duration, 50s) linear infinite;
  }

  body[data-viewport="mobile"] .home-mobile-client-grid .home-proof-marquee-group {
    display: flex;
    flex: 0 0 auto;
    gap: 0.85rem;
    padding-right: 0.85rem;
  }

  body[data-viewport="mobile"] .home-mobile-client-grid .home-proof-item {
    display: flex;
    flex: 0 0 9rem;
    width: 9rem;
    height: 8rem;
    min-height: 0;
    aspect-ratio: auto;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-muted);
    isolation: isolate;
  }

  body[data-viewport="mobile"] .home-mobile-client-grid .home-proof-logo-image {
    mix-blend-mode: multiply;
  }

  body[data-viewport="mobile"] .home-mobile-client-grid .home-proof-item::before {
    content: none;
  }

  body[data-viewport="mobile"] .home-mobile-client-grid .home-proof-marquee:active .home-proof-marquee-track {
    animation-play-state: paused;
  }
}

@keyframes home-mobile-logo-loop {
  to { transform: translateX(-50%); }
}

@media (max-width: 1099px) and (prefers-reduced-motion: reduce) {
  body[data-viewport="mobile"] .home-mobile-client-grid .home-proof-marquee {
    overflow-x: auto;
  }

  body[data-viewport="mobile"] .home-mobile-client-grid .home-proof-marquee-track {
    animation: none;
  }

  body[data-viewport="mobile"] .home-mobile-client-grid .home-proof-marquee-group--clone {
    display: none;
  }
}
