@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap");

.clients-section {
  --orange: #d34612;
  --teal: #00838f;
  --ink: #171717;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 92px 0 82px;
  color: var(--ink);
  font-family: "Noto Sans SC", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(0, 131, 143, 0.08), transparent 28%),
    linear-gradient(#fff 0%, #f2f5f6 42%, #e9eef1 100%);
}

.bg-color--gray:has(.clients-section),
.bg-color--gray:has(.clients-section) .layout-content,
.bg-color--gray:has(.clients-section) .layout__region {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.clients-orbit {
  position: absolute;
  border: 1px solid rgba(0, 131, 143, 0.09);
  border-radius: 50%;
}

.clients-section .orbit-one {
  top: -120px;
  left: -80px;
  width: 280px;
  height: 280px;
}

.clients-section .orbit-two {
  right: -140px;
  bottom: -160px;
  width: 420px;
  height: 420px;
}

.clients-section .container {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

.clients-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 42px;
}

.clients-section .eyebrow {
  display: block;
  margin-bottom: 13px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
}

.clients-heading h2 {
  margin: 0 !important;
  color: var(--teal) !important;
  font-family: "Noto Sans SC", Helvetica, Arial, sans-serif;
  font-size: clamp(38px, 4vw, 48px) !important;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: none !important;
}

.client-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-left: 38px;
  border-left: 1px solid rgba(0, 0, 0, 0.13);
}

.client-intro p {
  max-width: 410px;
  margin: 0;
  color: #515a5f;
  font-size: 16px;
  line-height: 1.7;
}

.client-stat {
  flex: 0 0 auto;
  text-align: right;
}

.client-stat strong {
  display: block;
  color: var(--teal);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.client-stat sup {
  color: var(--orange);
  font-size: 18px;
}

.client-stat span {
  display: block;
  margin-top: 7px;
  color: #7b8489;
  font-size: 11px;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  background:
    linear-gradient(90deg, rgba(0, 131, 143, 0.043) 1px, transparent 1px) 0 0 / 90px 100%,
    radial-gradient(circle at 50% 45%, rgba(175, 216, 228, 0.34), transparent 58%),
    linear-gradient(135deg, #f4f8fa, #e9f1f5 58%, #dfeaf0);
  border: 1px solid rgba(0, 131, 143, 0.14);
  border-radius: 9px;
  box-shadow: inset 0 0 42px rgba(86, 132, 151, 0.07), 0 15px 32px rgba(35, 63, 75, 0.08);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.logo-marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 131, 143, 0.16) 1px, transparent 1.5px);
  background-size: 28px 28px;
}

.logo-marquee-row {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.logo-marquee-row + .logo-marquee-row {
  margin-top: 14px;
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.logo-marquee-group {
  display: flex;
}

.logo-marquee-card {
  display: grid;
  flex: 0 0 128px;
  place-items: center;
  width: 128px;
  height: 78px;
  transition: transform 0.25s;
}

.logo-marquee-card:hover {
  z-index: 2;
  transform: translateY(-3px) scale(1.045);
}

.logo-sprite {
  width: calc(100% - 14px);
  aspect-ratio: 1.775 / 1;
  background-image: url("/site/themes/custom/themekit/jundi/client-logos.png");
  background-repeat: no-repeat;
  background-size: 800% 700%;
  border-radius: 4px;
}

.logo-marquee-row.move-left .logo-marquee-track {
  animation: logo-flow-left 48s linear infinite;
}

.logo-marquee-row.move-right .logo-marquee-track {
  animation: logo-flow-right 54s linear infinite;
}

.logo-marquee-row:nth-child(3) .logo-marquee-track { animation-duration: 44s; }
.logo-marquee-row:nth-child(4) .logo-marquee-track { animation-duration: 52s; }
.logo-marquee-row:nth-child(5) .logo-marquee-track { animation-duration: 46s; }

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logo-flow-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes logo-flow-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (max-width: 900px) {
  .clients-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .client-intro {
    align-items: flex-start;
    padding-left: 0;
    border-left: 0;
  }

  .clients-section {
    padding: 70px 0;
  }

  .clients-section .container {
    width: calc(100% - 36px);
  }

  .logo-marquee-card {
    flex-basis: 102px;
    width: 102px;
    height: 66px;
  }
}
