/* ═══════════════════════════════════════
   SOME OF OUR CLIENTS (section5)
   Two-row auto-scrolling logo marquee.
═══════════════════════════════════════ */

.clients-section {
  position: relative;
  background: var(--bg-secondary);
  z-index: 2;
}

.clients-shell {
  max-width: 95%;
  margin: 0 auto;
  padding: clamp(64px, 10vh, 118px) clamp(20px, 4vw, 56px);
}

/* ── Header ── */
.clients-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.clients-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px 8px 11px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary-60);
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px -10px rgba(15, 37, 67, 0.4);
  margin-bottom: 22px;
}
.clients-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hero-green);
}
.clients-eyebrow b { color: var(--text-primary); font-weight: 700; }

.clients-head h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.clients-head h2 .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.clients-head p {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary-60);
}

/* ── Marquee ── */
.marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}
.marquee + .marquee { margin-top: 22px; }

.marquee .cl-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
}
.marquee.row1 .cl-track { animation: clientsScrollL 42s linear infinite; }
.marquee.row2 .cl-track { animation: clientsScrollR 42s linear infinite; }
.marquee:hover .cl-track { animation-play-state: paused; }

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

/* ── Logo chip ── */
.client-logo {
  flex: none;
  width: 200px;
  height: 96px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.client-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px -30px rgba(15, 37, 67, 0.35);
  border-color: transparent;
}
.client-logo img {
  max-width: 130px;
  max-height: 52px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.client-logo:hover img {
  filter: none;
  opacity: 1;
}

/* ── Responsive / reduced motion ── */
@media (max-width: 600px) {
  .client-logo { width: 158px; height: 84px; }
  .client-logo img { max-width: 104px; max-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee .cl-track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
