.commercial-clients-section {
  background: #f8fafc;
}

.commercial-clients-section-embedded {
  background: transparent;
  padding: 0;
}

.commercial-clients-heading {
  max-width: 820px;
  margin: 0 auto 2rem;
}

.commercial-clients-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .85rem;
  border: 1px solid rgba(171, 116, 66, .35);
  border-radius: 999px;
  background: #fff;
  color: var(--ks-primary-dark, #8A5C35);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.commercial-clients-heading h2 {
  margin: 1rem 0 .75rem;
  color: var(--ks-dark, #1a1a2e);
  font-weight: 900;
  line-height: 1.15;
}

.commercial-clients-heading p {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
}

.commercial-clients-marquee {
  position: relative;
  overflow: hidden;
  padding: .25rem 0 1rem;
}

.commercial-clients-marquee::before,
.commercial-clients-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}

.commercial-clients-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.commercial-clients-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.commercial-clients-section-embedded .commercial-clients-marquee::before {
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.commercial-clients-section-embedded .commercial-clients-marquee::after {
  background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.commercial-clients-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: max-content;
  animation: commercial-clients-slide 34s linear infinite;
  will-change: transform;
}

.commercial-clients-marquee:hover .commercial-clients-track,
.commercial-clients-marquee:focus-within .commercial-clients-track {
  animation-play-state: paused;
}

@keyframes commercial-clients-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - .5rem));
  }
}

.commercial-client-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 240px;
  width: 240px;
  min-height: 210px;
  padding: 1.2rem;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.commercial-client-card:hover,
.commercial-client-card:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(171, 116, 66, .4);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
}

.commercial-client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  margin-bottom: 1rem;
}

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

.commercial-client-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: rgba(171, 116, 66, .1);
  color: var(--ks-primary-dark, #8A5C35);
  font-size: 1.8rem;
  font-weight: 900;
}

.commercial-client-copy h3 {
  margin: 0;
  color: var(--ks-dark, #1a1a2e);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.3;
}

.commercial-client-copy p {
  margin: .65rem 0 0;
  color: #64748b;
  font-size: .92rem;
  line-height: 1.55;
}

@media (max-width: 575.98px) {
  .commercial-clients-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .commercial-clients-marquee::before,
  .commercial-clients-marquee::after {
    width: 28px;
  }

  .commercial-client-card {
    flex-basis: 210px;
    width: 210px;
    min-height: auto;
    padding: 1rem;
  }

  .commercial-client-logo {
    height: 74px;
  }

  .commercial-client-logo img {
    max-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .commercial-clients-marquee {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .commercial-clients-track {
    animation: none;
    width: auto;
  }
}
