/* =====================================================================
   MOVING LOGO STRIP  (logo marquee)
   Client logos glide slowly and continuously from right to left, with
   the edges fading out. The strip pauses while you point at it.
   Seamless: the track holds the logos twice and moves exactly half its
   width, so the loop never jumps. Pure CSS, no JavaScript.
   With "reduce motion" on, it becomes a still, centred, wrapping row.

   Markup (the second group is a copy, hidden from screen readers):
     <div class="slq-marquee" aria-label="Clients we've worked with">
       <div class="slq-marquee__track">
         <ul class="slq-marquee__group"> <li><img …></li> … </ul>
         <ul class="slq-marquee__group" aria-hidden="true"> …same logos… </ul>
       </div>
     </div>
   If there are only a few logos, repeat them inside each group until a
   group is wider than a laptop screen (about 1500px).
   ===================================================================== */

.slq-marquee {
  --slq-marquee-speed: 45s;
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.slq-marquee__track { display: flex; width: max-content; animation: slq-marquee var(--slq-marquee-speed) linear infinite; will-change: transform; }
.slq-marquee:hover .slq-marquee__track { animation-play-state: paused; }
.slq-marquee__group { display: flex; gap: 16px; padding: 0 8px; margin: 0; list-style: none; }
.slq-marquee__group li {
  flex: none; width: 150px; height: 96px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--slq-line); border-radius: var(--slq-radius-m);
}
.slq-marquee__group img { max-width: 104px; max-height: 64px; width: auto; height: auto; object-fit: contain; }

@keyframes slq-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 699.98px) {
  .slq-marquee { --slq-marquee-speed: 35s; }
  .slq-marquee__group li { width: 120px; height: 80px; }
  .slq-marquee__group img { max-width: 84px; max-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .slq-marquee { -webkit-mask-image: none; mask-image: none; }
  .slq-marquee__track { animation: none; width: auto; justify-content: center; }
  .slq-marquee__group { flex-wrap: wrap; justify-content: center; }
  .slq-marquee__group[aria-hidden="true"], .slq-marquee__group li.is-repeat { display: none; }
}
