/* Clients section ----------------------------------------------------------- */
.clients-section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  margin-top: 0;
  padding-top: 0;
  color: var(--warm-ink);
  background: var(--warm-paper);
  overflow: hidden;
  border-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.clients-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  height: clamp(220px, 36svh, 420px);
  pointer-events: none;
  background: none;
  opacity: 0;
}

.clients-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  padding: 0 0 max(clamp(80px, 10svh, 120px), calc(var(--bottom-nav-safe) + 40px));
}

.clients-section .section-head {
  gap: clamp(18px, 2.8svh, 32px);
  margin-top: clamp(56px, 8svh, 110px);
  padding-inline: clamp(24px, 5vw, 86px);
}

.clients-section .section-kicker {
  color: rgba(20, 20, 20, 0.48);
}

.clients-intro {
  width: min(42ch, calc(100vw - 48px));
  margin: 0 auto;
  color: var(--warm-muted);
  font-family: "MiSans", "Outfit", "Satoshi", system-ui, sans-serif;
  font-size: clamp(0.9rem, 1.04vw, 1.08rem);
  font-weight: 500;
  line-height: 1.86;
  letter-spacing: 0.02em;
  text-align: center;
}

html[lang="en"] .clients-intro {
  font-family: "Outfit", "Satoshi", "MiSans", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

.clients-marquee {
  --logoloop-gap: clamp(40px, 4.6vw, 84px);
  --logoloop-logoHeight: clamp(1.85rem, 3.4vw, 3.8rem);
  --logoloop-fadeColor: var(--warm-paper);
  margin-top: clamp(68px, 10svh, 132px);
}


.logoloop {
  position: relative;
  overflow: hidden;
  width: 100%;
  color: rgba(20, 20, 20, 0.16);
}

.logoloop__track {
  display: flex;
  width: max-content;
  user-select: none;
  will-change: transform;
}

.logoloop__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.logoloop__item {
  flex: 0 0 auto;
  margin-right: var(--logoloop-gap);
  font-size: var(--logoloop-logoHeight);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.logoloop__node {
  display: inline-flex;
  align-items: center;
  transform-origin: center;
  transition:
    color 220ms ease,
    opacity 220ms ease,
    transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.logoloop--scale-hover .logoloop__item:hover .logoloop__node {
  color: rgba(20, 20, 20, 0.66);
  opacity: 1;
  transform: scale(1.18);
}

.logoloop--fade::before,
.logoloop--fade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(54px, 12vw, 220px);
  pointer-events: none;
}

.logoloop--fade::before {
  left: 0;
  background: linear-gradient(to right, var(--logoloop-fadeColor) 0%, rgba(247, 244, 238, 0) 100%);
}

.logoloop--fade::after {
  right: 0;
  background: linear-gradient(to left, var(--logoloop-fadeColor) 0%, rgba(247, 244, 238, 0) 100%);
}

/* Client title band --------------------------------------------------------- */
.clients-title-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(390px, 55svh, 680px);
  padding: clamp(72px, 10svh, 132px) clamp(28px, 4.4vw, 86px) clamp(62px, 9svh, 118px);
  overflow: hidden;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  background: var(--warm-paper);
}

.clients-title-band::before,
.clients-title-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.clients-title-band::before {
  display: none;
}

.clients-title-band::after {
  display: none;
}

.clients-title-lockup {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  color: rgba(20, 20, 20, 0.9);
  font-family: "Outfit", "Satoshi", "MiSans", system-ui, sans-serif;
  font-size: clamp(4.7rem, 9.4vw, 11.8rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  text-transform: lowercase;
  white-space: nowrap;
  transform: translate3d(0, -2svh, 0);
}

.clients-title-line {
  display: block;
}

.clients-title-char {
  display: inline-block;
  transition:
    color 260ms ease,
    filter 260ms ease,
    transform 260ms ease;
  will-change: transform, filter;
}

.clients-title-serif {
  display: inline-block;
  color: #ff6268;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 560;
  letter-spacing: -0.055em;
  text-transform: lowercase;
}

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

  .logoloop__track {
    transform: translate3d(0, 0, 0) !important;
  }

  .logoloop__node {
    transition: none;
  }
}

@media (max-width: 1180px) {
  .clients-title-lockup {
    font-size: clamp(3.8rem, 8.8vw, 7rem);
  }
}

@media (max-width: 760px) {
  .clients-section {
    margin-top: 0;
    padding-top: 0;
  }

  .clients-content {
    min-height: 100svh;
    padding-bottom: 100px;
  }

  .clients-title-band {
    min-height: 52svh;
    padding: 72px 18px 56px;
  }

  .clients-title-lockup {
    font-size: clamp(2.8rem, 13.4vw, 5rem);
    white-space: normal;
    transform: none;
  }

  .clients-marquee {
    --logoloop-logoHeight: clamp(1.5rem, 8.4vw, 2.8rem);
    margin-top: 56px;
  }
  .clients-section .section-head {
    margin-top: 48px;
  }

  .clients-intro {
    width: min(34ch, calc(100vw - 36px));
    font-size: 0.86rem;
  }
}
