/* Selected clients, after the portfolio: caps label on the left, every client in one run of
   text on the right, then a full-width band of names or logos scrolling right to left. */

.cl {
  /* V04 (Kevin, 20 Nov 2026): always light, inside the dark page; the theme colours are
     light-dark() pairs, so the section's colour scheme picks them */
  color-scheme: light;
  padding: max(120px, 14svh) 0 max(96px, 11svh);
  background: var(--color-theme-bg);
  color: var(--color-theme-fg);
}

/* same side margin as the manifesto chapter block and the portfolio */
.cl-head {
  display: grid;
  gap: 24px;
  padding: 0 max(16px, 4.6vw);
}

@media (min-width: 48rem) {
  .cl-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 20px;
  }
  .cl-caps { grid-column: 1 / 7; }
  .cl-names { grid-column: 7 / 13; }
}

.cl-caps {
  margin: 0;
  font-size: var(--mh-caps);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.cl-names {
  margin: 0;
  font-size: var(--mh-body);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

/* the band fades out at both ends */
.cl-band {
  margin-top: max(96px, 11svh);
  overflow: clip;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* two identical groups: moving the track by half its width loops without a jump */
.cl-track {
  display: flex;
  width: max-content;
  animation: cl-scroll 45s linear infinite;
}

.cl-group {
  display: flex;
  align-items: center;
  gap: 88px;
  margin: 0;
  padding: 0 88px 0 0;
  list-style: none;
}

.cl-group li {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

/* logos in greyscale, so the ones with dark shapes in them (Gazoo Racing, Toyota…) keep their
   inner detail; inverted in the dark theme */
.cl-group img {
  display: block;
  width: auto;
  max-width: 144px;
  filter: grayscale(1);
}

/* (the logos stay dark: the section is always light, V04) */

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

@media (max-width:-1px) {
  .cl-track { animation: none; }
}
