/* Client logo strip ("Brands we've worked with"), rendered by backend/lib/clients.mjs */
.c-clients {
  --c-navy: #13161d;
  --c-violet: #a78cfa;
  --c-lavender: #ede7ff;
  --c-base: 56px;
  --c-gap: 72px;
  --c-speed: 48s;
  position: relative;
  display: block;
  width: 100%;
  background: #ffffff;
  color: var(--c-navy);
  padding: 120px 0 128px;
  overflow: hidden;
  font-family: "Clash Grotesk", system-ui, sans-serif;
}
.c-clients.-projects {
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 64px;
  padding-top: 88px;
}
.c-clients_head {
  max-width: 880px;
  margin: 0 auto 64px;
  padding: 0 16px;
  text-align: center;
}
.c-clients_eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--c-lavender);
  color: var(--c-navy);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.c-clients .c-clients_title {
  margin: 0;
  color: var(--c-navy);
  text-transform: uppercase;
  text-wrap: balance;
}
.c-clients_lead {
  margin: 24px auto 0;
  max-width: 560px;
  color: rgba(19, 22, 29, 0.72);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
}

/* marquee (desktop) */
.c-clients_marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.c-clients_track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--c-gap);
  margin: 0;
  padding: 0 var(--c-gap) 0 0;
  list-style: none;
  animation: c-clients-scroll var(--c-speed) linear infinite;
  will-change: transform;
}
.c-clients_marquee:hover .c-clients_track,
.c-clients_marquee:focus-within .c-clients_track {
  animation-play-state: paused;
}
@keyframes c-clients-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100%, 0, 0); }
}

.c-clients_item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--c-base) * 1.3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.c-clients_link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  outline-offset: 6px;
}
.c-clients_link:focus-visible {
  outline: 2px solid var(--c-violet);
}
.c-clients_logo {
  display: block;
  width: auto;
  height: calc(var(--c-base) * var(--k, 1));
  max-width: 240px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.8) contrast(1.2);
  opacity: 0.7;
  transition: filter 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1), transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.c-clients_word {
  display: block;
  color: var(--c-navy);
  opacity: 0.55;
  font-family: "Clash Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: calc(var(--c-base) * 0.5);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1), color 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.c-clients_item:hover .c-clients_logo,
.c-clients_link:focus-visible .c-clients_logo {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}
.c-clients_item:hover .c-clients_word,
.c-clients_link:focus-visible .c-clients_word {
  opacity: 1;
}

/* mobile and tablet: a wrapped grid, no motion */
@media (max-width: 1023px) {
  .c-clients {
    --c-base: 40px;
    padding: 80px 0 88px;
  }
  .c-clients.-projects {
    margin-top: 40px;
    padding-top: 64px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }
  .c-clients_head {
    margin-bottom: 40px;
  }
  .c-clients_eyebrow {
    margin-bottom: 16px;
  }
  .c-clients_lead {
    font-size: 16px;
  }
  .c-clients_marquee {
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0 16px;
  }
  .c-clients_track {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 0;
    width: 100%;
    animation: none;
    transform: none;
  }
  .c-clients_track.-dup {
    display: none;
  }
  .c-clients_item {
    height: 88px;
    padding: 12px;
    border-radius: 16px;
    background: #EDE7FF;
  }
  .c-clients_link {
    width: 100%;
  }
  .c-clients_logo {
    max-width: 100%;
    opacity: 0.75;
  }
  .c-clients_word {
    font-size: 17px;
    white-space: normal;
    text-align: center;
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-clients_track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 32px;
    padding: 0 16px;
    flex: 1 1 auto;
  }
  .c-clients_track.-dup {
    display: none;
  }
  .c-clients_marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .c-clients_logo,
  .c-clients_word {
    transition: none;
  }
}
