/* ==========================================================================
   "Trusted by" — client logo section with a pure-CSS infinite carousel.
   Spacing above it is set by the page (pages/*.css), not here.
   ========================================================================== */
.trusted-by__title {
  margin-bottom: 16px;
  font-size: var(--fs-medium);
  line-height: var(--lh-medium);
  font-weight: var(--fw-extrabold);
  text-transform: capitalize;
  text-align: center;
  color: var(--c-blue-dark);
}

/* Infinite carousel. Slide width is derived from the container width (container query units) so it
   matches the original 6/5/2-up layout. Without JavaScript the row scrolls by hand; site.js copies the list
   and adds is-looping, and the track then scrolls by half its width per loop. */
.logo-marquee {
  --per-view: 6;
  --gap: 40px;
  container-type: inline-size;
  overflow-x: auto;
  scrollbar-width: none;
}
.logo-marquee.is-looping { overflow: hidden; }
.logo-marquee__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-marquee.is-looping .logo-marquee__track { animation: marquee calc(var(--count) * 3.3s) linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__item {
  flex: 0 0 auto;
  width: calc((100cqw - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
}
.logo-marquee__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  padding: 16px;
  border-radius: 10px;
  mix-blend-mode: multiply;
}
@keyframes marquee {
  to { transform: translateX(calc(-50% - var(--gap) / 2)); }
}
@media (max-width: 959px) { .logo-marquee { --per-view: 5; } }
@media (max-width: 767px) { .logo-marquee { --per-view: 2; --gap: 30px; } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee.is-looping { overflow-x: auto; }
  .logo-marquee__track { animation: none !important; }
}
