.clients-section h2 {
  max-width: 720px;
}

.clients-intro {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--muted);
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.client-card {
  position: relative;
  flex: 0 1 calc((100% - 54px) / 4);
  min-width: 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.client-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--color-brand-primary);
}

.client-card:hover,
.client-card:focus-within {
  border-color: var(--color-brand-primary);
  background: #fbfdfd;
}

.client-logo {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo--dark {
  padding: 12px;
  background: var(--navy);
  border-radius: 4px;
}

.client-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.client-name {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.client-logo-link {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.client-logo-link .client-name {
  text-decoration: underline;
  text-decoration-color: var(--color-brand-accent);
  text-underline-offset: 4px;
}

.client-logo-link:hover .client-name {
  color: var(--brand-dark);
}

.client-card--text {
  gap: 14px;
}

.client-type {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-wordmark {
  color: var(--ink);
  font-size: clamp(1.16rem, 1.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.client-wordmark a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-brand-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.client-wordmark a:hover {
  color: var(--accent);
}

.client-wordmark a:focus-visible {
  border-radius: 2px;
}

.clients-more {
  margin: 28px 0 0;
  text-align: center;
}

@media (max-width: 1050px) {
  .client-card { flex-basis: calc((100% - 36px) / 3); }
}

@media (max-width: 800px) {
  .client-card { flex-basis: calc((100% - 18px) / 2); }
  .client-wordmark { font-size: 1.25rem; }
}

@media (max-width: 620px) {
  .client-grid { gap: 12px; margin-top: 26px; }
  .client-card { flex-basis: calc((100% - 12px) / 2); min-height: 154px; padding: 18px 12px; }
  .client-logo { height: 72px; }
  .client-logo img { max-height: 72px; }
  .client-wordmark { font-size: 1.15rem; }
  .clients-section + .cta-band .cta-inner { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .client-card { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .client-card { transition: none; }
}
