/* ── KLANTEN (homepage) ──
   A wall of client logos, 2 rows of 6, straight on the page. Scrolling in, a swirl of
   particles streams in and forms each logo (canvas, js/klanten.js); on hover devices the
   logo under the pointer lights up with a purple glow, tilts and leans toward the pointer. */
#klanten { background: var(--bg); position: relative; isolation: isolate; }
/* a faint purple haze behind the wall */
#klanten::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 58%;
  width: min(1100px, 90vw); height: 70%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(139, 95, 163, 0.14), transparent);
  pointer-events: none;
}

/* label, title and a short line beside them, as in the other sections */
.kl-intro {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 4rem;
}
.kl-intro-right { font-size: 0.875rem; color: var(--text-muted); max-width: 300px; line-height: 1.7; }

.kl-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 2vw, 32px);
}
/* one cell per logo; the logo is centred in it and never fills it edge to edge */
.kl-tile { position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; }

/* Logos: beige image files, or inline SVG in the text colour; dimmed until hovered */
.kl-logo {
  width: auto; height: auto; max-width: 82%; max-height: 55%;
  transition: opacity 0.45s ease, color 0.45s ease, filter 0.45s ease;
}
.kl-logo.is-tall { max-height: 72%; }   /* square-ish logos */
img.kl-logo { opacity: 0.6; }
svg.kl-logo { fill: currentColor; color: var(--text-muted); }

/* placeholder until a client's logo arrives: a mark over a name */
.kl-ph {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  max-width: none; max-height: none; color: var(--text-muted);
}
.kl-ph-mark { width: clamp(22px, 2vw, 30px); height: auto; fill: currentColor; }
.kl-ph-name {
  font-family: var(--font-title); font-weight: 800;
  font-size: 0.875rem; line-height: 1; letter-spacing: -0.02em;
  text-transform: uppercase; white-space: nowrap;
}

/* the particles that fly in and form the logos (js), over the whole section */
.kl-fx { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
/* waiting for its particles; when they land the logo fades in with a purple flash */
.kl-tile { transition: opacity 0.6s ease; }
.kl-tile.is-wait { opacity: 0; }
.kl-tile.is-flash .kl-logo { opacity: 1; color: var(--text); filter: drop-shadow(0 0 18px rgba(139, 95, 163, 0.95)); transition-duration: 0.15s; }

@media (hover: hover) {
  .kl-tile:hover .kl-logo { opacity: 1; color: var(--text); filter: drop-shadow(0 0 16px rgba(139, 95, 163, 0.6)); }
}

@media (max-width: 900px) {
  .kl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .kl-intro { margin-bottom: 2.5rem; }
  .kl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
