/* =====================================================================
   Directline — client logos (2026-11-26), after superside.com's
   "Creative support for 400+ top global brands" strip: a quiet centred
   line, then two rows of single-colour logos that drift sideways with the
   page scroll (one row each way) and fade out at both edges.
   Logos: from marketingdirectline.com, turned into one-colour masks
   (assets/clients/*.webp) and painted in the ink colour.
   Motion: clients.js. Reduced motion / no JS: still rows, centred.
   ===================================================================== */
.clients { background: var(--paper); padding: 112px 0 88px; overflow: hidden; overflow: clip; }
.clients-title {
  text-align: center; font-size: 24px; font-weight: 400; line-height: 1.6; letter-spacing: 0;
  color: var(--ink); margin: 0 0 64px;
}
.clients-title span { color: var(--purple); font-weight: 500; }
.clients-rows {
  width: min(1216px, calc(100% - 104px)); margin-inline: auto;
  display: grid; gap: 44px; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.cl-row, .cl-row ul { list-style: none; margin: 0; padding: 0; }
.cl-row { display: flex; width: max-content; will-change: transform; }
.cl-set > ul { display: flex; align-items: center; }
.cl-logo { flex: none; padding: 0 44px; height: 76px; display: grid; place-items: center; }
.cl-mask {
  display: block; width: var(--w); height: var(--h);
  background: var(--ink);
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
  opacity: .9;
}
.cl-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* without the scroll drift (no JS, reduced motion): centred, still rows */
html:not(.cl-on) .cl-row { width: auto; justify-content: center; }
html:not(.cl-on) .cl-set > ul { flex-wrap: wrap; justify-content: center; row-gap: 12px; }

@media (max-width: 1150px) {
  .clients-rows { width: calc(100% - 70px); }
}
@media (max-width: 800px) {
  .clients { padding: 64px 0 56px; }
  .clients-title { font-size: 19px; margin-bottom: 36px; padding-inline: 10px; }
  .clients-rows { width: 100%; gap: 22px; }
  .cl-logo { padding: 0 24px; height: 60px; }
  .cl-mask { width: calc(var(--w) * .72); height: calc(var(--h) * .72); }
}
