/* ==========================================================
   clients.css — Colony Creative
   Client logo grid section
   ========================================================== */

/* ---- Section ---- */
.clients {
  position: relative;
  padding-top: clamp(100px, 16vh, 200px);
  padding-bottom: clamp(100px, 16vh, 200px);
  background: #0a0a0a;
}

/* ---- Container ---- */
.clients__container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---- Label ---- */
.clients__label {
  margin-bottom: 1.5rem;
}

/* ---- Headline ---- */
.clients__headline {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: clamp(3.5rem, 6vw, 5rem);
}

/* ---- Grid ---- */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 1vw, 12px);
  width: 100%;
}

/* ---- Logo cell ---- */
.clients__cell {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: background 0.35s ease, border-color 0.35s ease;
  will-change: transform, opacity;
  min-height: 80px;
}

.clients__cell:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

/* ---- Logo image ---- */
.clients__logo {
  max-height: 59px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: var(--client-filter);
  opacity: 0.3;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.clients__cell:hover .clients__logo {
  opacity: 0.7;
  transform: scale(1.08);
}

/* ---- GSAP fade target ---- */
.clients__fade-target {
  will-change: transform, opacity;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 960px) {
  .clients__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .clients__headline {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .clients__cell {
    padding: 1rem;
    min-height: 60px;
    border-radius: 10px;
  }

  .clients__logo {
    max-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients__fade-target,
  .clients__cell {
    opacity: 1 !important;
    transform: none !important;
  }
}
