/* ══════════════════════════════════════════════════
   CLIENTS — Section 7
   Split layout (text left, vertical marquee right),
   mirroring What We Do / Services. The marquee is the
   same infinite-scroll concept as before, rotated 90°:
   3 columns instead of 3 rows, translateY instead of
   translateX, top/bottom edge fade instead of left/right.
   No JS — pure CSS animation.
   Depends on: tokens.css, hero.css (bgs keyframe)
   ══════════════════════════════════════════════════ */

.site-clients {
  background: var(--c1);
  padding: 8rem 0;
  overflow: hidden;
}

.site-clients__inner {
  width: min(calc(100% - 2 * var(--content-inset)), var(--container-max));
  margin-inline: auto;
}

/* ── SPLIT LAYOUT ─────────────────────────────────── */

.site-clients__split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  column-gap: var(--space-8);
  align-items: start;
}

.site-clients__head {
  grid-column: 1;
}

.site-clients__text {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

/* ── LABEL + HEADING ─────────────────────────────── */

.site-clients__head {
  max-width: 64rem;
  margin-bottom: var(--space-6);
}

.site-clients__label {
  display: block;
  font-family: var(--fm);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--t3);
  margin: 0 0 var(--space-3);
}

.site-clients__heading {
  font-family: var(--fd);
  font-size: clamp(3.6rem, 5vw, 6.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  padding-bottom: 0.08em;
  background: var(--gr);
  background-size: 200% 200%;
  animation: bgs 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── BODY PARAGRAPHS ─────────────────────────────── */

.site-clients__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.site-clients__body p {
  font-family: var(--fm);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--t2);
  margin: 0;
}

/* ── MARQUEE — vertical, right column ────────────── */

.site-clients__marquee {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  height: 40rem;
  display: flex;
  flex-direction: row;
  gap: var(--space-3);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Pause on hover */
.site-clients__marquee:hover .cl-track {
  animation-play-state: paused;
}

/* ── COLUMN ──────────────────────────────────────── */

.cl-col {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* ── TRACK — contains 2× logo set for seamless loop */

.cl-track {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: max-content;
  width: 100%;
}

.cl-track--up {
  animation: cl-up linear infinite;
}

.cl-track--down {
  animation: cl-down linear infinite;
}

/* Column-specific speeds */
.cl-col:nth-child(1) .cl-track { animation-duration: 30s; }
.cl-col:nth-child(2) .cl-track { animation-duration: 22s; }
.cl-col:nth-child(3) .cl-track { animation-duration: 38s; }

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

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

/* ── LOGO PLACEHOLDER ────────────────────────────── */

.cl-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  width: 100%;
  padding: var(--space-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.8rem;
  background: rgba(255,255,255,0.03);
  font-family: var(--fm);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,0.3);
  text-align: center;
  white-space: normal;
  flex-shrink: 0;
  user-select: none;
}

/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 900px) {
  .site-clients__split {
    grid-template-columns: 1fr;
  }

  .site-clients__text {
    grid-row: auto;
  }

  .site-clients__marquee {
    grid-column: 1;
    grid-row: auto;
    order: -1;
    height: 28rem;
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 600px) {
  .site-clients {
    padding: 6rem 0;
  }

  .site-clients__marquee {
    height: 22rem;
  }
}

/* ── REDUCED MOTION ──────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .site-clients__heading { animation: none; }
  .cl-track { animation: none; }
}
