.client-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.client-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 0 16px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.03);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 1023px) {
  .client-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .client-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Endless client strip: always running, cannot be paused, dragged or hovered. */
.client-marquee {
  position: relative;
  isolation: isolate;
  pointer-events: none;
  user-select: none;
}
.client-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.client-marquee__track {
  display: flex;
  gap: var(--marquee-gap, 16px);
  width: max-content;
  animation: client-marquee 90s linear infinite;
}
@keyframes client-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - var(--marquee-gap, 16px) / 2));
  }
}
.client-marquee__item {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 220px;
  height: 80px;
  padding: 0 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.65);
}
.client-marquee__item img {
  max-height: 40px;
  width: auto;
}
/* --glow: soft light-grey band behind the strip (same band as behind the Web Development "Clients" heading). */
.client-marquee--glow::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  top: calc(50% - 50px);
  height: 100px;
  border-radius: 100px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(170, 178, 196, 0.1) 10%,
    rgba(170, 178, 196, 0.18) 50%,
    rgba(170, 178, 196, 0.1) 90%,
    transparent 100%
  );
  filter: blur(18px);
}
/* --plain: bare names in muted lavender, no tiles, wide spacing. */
.client-marquee--plain {
  --marquee-gap: 72px;
}
.client-marquee--plain .client-marquee__track {
  animation-duration: 70s;
}
.client-marquee--plain .client-marquee__item {
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 24px;
  color: #9895be;
}

/* Clients band: soft vertical gradient behind the heading and the strip;
   the strip runs the full width of the band (max 1440px) with faded edges. */
.clients-band {
  padding: 88px 0 140px;
  background: linear-gradient(180deg, #080d1c 0%, #0f152a 68%, #080d1d 100%);
}
.clients-band .client-marquee {
  max-width: 1440px;
  margin: 96px auto 0;
}
@media (max-width: 767px) {
  .clients-band {
    padding: 64px 0 88px;
  }
  .clients-band .client-marquee {
    margin-top: 56px;
  }
  .client-marquee--plain {
    --marquee-gap: 48px;
  }
  .client-marquee--plain .client-marquee__item {
    font-size: 20px;
  }
}

/* Visitors who switched on "reduce motion" in their system get a static wrapped row. */
@media (prefers-reduced-motion: reduce) {
  .client-marquee__track {
    animation: none !important;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .client-marquee__track [aria-hidden='true'] {
    display: none;
  }
  .client-marquee__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
