.client-carousel {
  padding: clamp(32px, 5vw, 60px) 20px;
  color: #19354c;
  background: linear-gradient(180deg, #fff, #f6faff);
  border-block: 1px solid #dfe8ef;
}
.client-carousel-inner {
  width: min(100%, 1024px);
  margin-inline: auto;
}
.client-carousel h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  color: #4e6479;
  font: 700 .82rem/1.5 Inter, Arial, sans-serif;
  letter-spacing: .025em;
  text-align: center;
}
.client-carousel h2::before,
.client-carousel h2::after {
  content: "";
  width: clamp(28px, 8vw, 84px);
  height: 1px;
  background: #ccdae5;
}
.client-carousel-track {
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 2vw, 22px);
  width: min(100%, 620px);
  margin: 22px auto 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #a6c0d4 transparent;
  list-style: none;
}
/* The strip reveals the next tile even when the roster is only two brands. */
.client-carousel-track:has(> li:nth-child(2):last-child) { max-width: 420px; }
.client-carousel-track:has(> li:nth-child(2):last-child) > li { flex-basis: 68%; }
.client-carousel-track > li {
  display: grid;
  place-items: center;
  flex: 0 0 40%;
  min-width: 0;
  min-height: clamp(86px, 9vw, 104px);
  padding: 12px 18px;
  border: 1px solid #dde7ef;
  border-radius: 16px;
  background: #fff;
  scroll-snap-align: start;
  color: #233f54;
  text-align: center;
}
.client-carousel-track > li:only-child { margin-inline: auto; }
.client-carousel-track img,
.client-carousel-track svg {
  display: block;
  width: min(100%, 166px);
  height: 46px;
  object-fit: contain;
}
.client-carousel-track > li > span {
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.15;
}
.client-carousel-track .brand-label small {
  display: block;
  margin-top: 5px;
  color: #526a7d;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}
@media (max-width: 600px) {
  .client-carousel-track > li { flex-basis: 68%; }
}
.client-carousel-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.client-carousel-controls[hidden],
.client-carousel-controls button[hidden] { display: none; }
.client-carousel-controls button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  padding: 6px;
  border: 1px solid #c5d4df;
  border-radius: 999px;
  background: white;
  color: #25475f;
  line-height: 1;
  cursor: pointer;
}
.client-carousel-controls button:hover { background: #eaf2f9; border-color: #9fb7ca; }
.client-carousel-controls .rotation-button {
  width: auto;
  padding-inline: 14px;
  font: 700 12px/1.2 Inter, Arial, sans-serif;
}
.client-carousel :focus-visible { outline: 3px solid #245bf1; outline-offset: 2px; }
@media (pointer: coarse) {
  .client-carousel-controls button { min-width: 44px; min-height: 44px; }
}

.founder-page .client-carousel-track > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-block: 16px;
}
.client-carousel-track img.client-portrait,
.client-carousel-track > li > .client-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.client-carousel-track img.client-portrait { object-fit: cover; }
.client-carousel-track > li > .client-initial {
  display: grid;
  place-items: center;
  color: #344f6d;
  background: #e8f2f9;
  font: 700 15px/1 Inter, sans-serif;
  letter-spacing: -.02em;
}
.founder-page .client-carousel-track .brand-label { font-size: clamp(17px, 2vw, 21px); }

/* The outreach roster sits directly on the page. The unenhanced list wraps. */
.client-carousel.outreach-clients {
  padding: clamp(28px, 4vw, 48px) 0 18px;
  border: 0;
  background: #fafbfc;
  scroll-margin-top: 88px;
}
.outreach-clients .client-carousel-inner { width: min(100%, 1200px); text-align: center; }
.outreach-clients h2 {
  display: block; color: #54606b; font-size: .775rem; font-weight: 650; letter-spacing: .05em;
}
.outreach-clients h2::before, .outreach-clients h2::after { content: none; }
.outreach-clients .client-carousel-viewport { margin-top: 12px; }
.outreach-clients .client-carousel-track {
  width: 100%; margin: 0; padding: 0 12px; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 12px clamp(18px, 3vw, 42px); overflow: visible; scroll-snap-type: none;
}
.outreach-clients .client-carousel-track > li {
  flex: 0 0 auto; width: clamp(138px, 15vw, 170px); height: 70px; min-height: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; scroll-snap-align: none;
}
.outreach-clients .brand-wordmark {
  width: min(100%, 150px); height: auto; object-fit: contain;
  filter: grayscale(1) contrast(.62) brightness(.9);
}
.outreach-clients .epm-mark { width: auto; height: 65px; }
.outreach-clients .silver-mark {
  position: relative;
  width: min(100%, var(--mark-width));
}
.outreach-clients .diowave-mark {
  --mark-width: 155px;
  --mark-image: url('/assets/client-logos/diowave.webp');
}
.outreach-clients .o-street-mark {
  --mark-width: 146px;
  --mark-image: url('/assets/client-logos/o-street-group.webp');
}
.outreach-clients .cleanly-mark {
  --mark-width: 126px;
  --mark-image: url('/assets/client-logos/cleanly.webp');
}
.outreach-clients .silver-mark img {
  width: 100%;
  filter: brightness(0) invert(.36);
}
@supports (mask-image: linear-gradient(black, transparent)) {
  .outreach-clients .silver-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(155deg, #454e58 12%, #78828e 50%, #49535d 84%);
    mask: var(--mark-image) center / contain no-repeat;
  }
}
.outreach-clients[data-looping] .client-carousel-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.outreach-clients[data-looping] .client-carousel-belt { display: flex; width: max-content; }
.outreach-clients[data-looping] .client-carousel-track {
  --logo-gap: clamp(24px, 5.5vw, 72px);
  width: max-content; flex: none; flex-wrap: nowrap; gap: var(--logo-gap);
  padding: 0 var(--logo-gap) 0 0;
}
.outreach-clients .logo-motion {
  font: 500 11px/1.3 Inter, Arial, sans-serif; color: #5a6570;
  background: transparent; border: none; padding: 10px 14px; cursor: pointer;
}
.outreach-clients .logo-motion:hover { color: #222c37; text-decoration: underline; }
.outreach-clients .logo-motion[hidden] { display: none; }
@media (pointer: coarse) { .outreach-clients .logo-motion { min-height: 44px; } }
