/* ═══════════════════════════════
   CLIENTS CAROUSEL
═══════════════════════════════ */
.clients {
  padding: 80px 24px;
  background: #0c1120;
}

.clients__wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.clients__title {
  text-align: center;
  font-size: var(--fs-section);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  margin-bottom: 36px;
}

/* viewport */
.clients__slider {
  position: relative;
  overflow: hidden;
  padding: 12px 4px;
  -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%);
}

/* moving track */
.clients__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

/* single item (capsule) */
.client {
  width: 180px;
  height: 80px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-decoration: none;
  isolation: isolate;
  position: relative;

  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(148, 163, 184, .06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);

  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.client:hover {
  transform: translateY(-2px) scale(1.05);
  z-index: 5;
  border-color: rgba(29, 78, 216, .25);
  background: rgba(255, 255, 255, .05);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, .20),
    0 0 0 1px rgba(29, 78, 216, .10);
}

/* logo */
.client img {
  max-width: 130px;
  max-height: 55px;
  object-fit: contain;
  display: block;
  filter: saturate(1.05);
}

/* make some logos more compact if needed */
.client.is-square img {
  max-width: 50px;
  max-height: 50px;
  border-radius: 50%;
}

/* ═══════════════════════════════
   LIGHT THEME
═══════════════════════════════ */
html[data-theme="light"] .clients {
  background: #f3f5f8;
}

html[data-theme="light"] .clients__title {
  color: #0f172a;
}

html[data-theme="light"] .clients__slider {
  -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%);
}

html[data-theme="light"] .client {
  background: rgba(255, 255, 255, .80);
  border-color: rgba(148, 163, 184, .12);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

html[data-theme="light"] .client:hover {
  transform: translateY(-2px) scale(1.05);
  background: #fff;
  border-color: rgba(29, 78, 216, .18);
  box-shadow:
    0 6px 20px rgba(15, 23, 42, .08),
    0 0 0 1px rgba(29, 78, 216, .06);
}

html[data-theme="light"] .client img {
  filter: none;
}