.clients-section {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7rem) 1.5rem;
  border-block: 1px solid hsl(var(--border) / 0.3);
  background:
    radial-gradient(circle at 12% 18%, hsl(var(--primary) / 0.08), transparent 28rem),
    hsl(var(--background));
}

.clients-section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 3rem, 68rem);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.55), transparent);
  transform: translateX(-50%);
}

.clients-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 60rem);
  margin-inline: auto;
}

.clients-copy {
  max-width: 43rem;
}

.clients-title {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin: 0;
  color: hsl(var(--foreground));
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.clients-title-icon {
  display: inline-flex;
  width: 1.15em;
  height: 0.58em;
  flex: 0 0 auto;
  align-items: center;
  padding: 0.055em;
  border: 0.045em solid hsl(var(--primary));
  border-radius: 999px;
}

.clients-title-icon::before {
  width: 0.38em;
  height: 0.38em;
  border-radius: 50%;
  background: hsl(var(--primary));
  content: "";
}

.clients-description {
  margin: 1.5rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.55;
}

.clients-description strong {
  color: hsl(var(--foreground));
  font-weight: 700;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem clamp(1rem, 5vw, 3.5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
}

.clients-logo {
  display: flex;
  min-width: 0;
  min-height: 6.5rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
}

.clients-logo img {
  display: block;
  width: auto;
  max-width: min(100%, 10.5rem);
  height: auto;
  max-height: 4rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.58;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.clients-logo:hover img,
.clients-logo:focus-within img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

.clients-more {
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.clients-more span {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 700;
  line-height: 1.25;
}

.clients-more b {
  color: hsl(var(--primary));
  font-size: 1.2em;
  font-weight: 800;
}

@media (max-width: 640px) {
  .clients-section {
    padding-inline: 2.0625rem;
  }

  .clients-inner,
  .clients-copy,
  .clients-grid {
    width: 100%;
  }

  .clients-description {
    max-width: 32rem;
  }

  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 0.625rem;
  }

  .clients-logo {
    min-height: 5rem;
    padding: 0.75rem 0.25rem;
  }

  .clients-logo img {
    max-width: min(100%, 6.5rem);
    max-height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-logo img {
    transition: none;
  }
}
