/* Success clients showcase — professional directory */

.clients-section {
  padding-block: clamp(72px, 10vw, 120px);
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(240, 90, 20, 0.06), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #FFF8F3 42%, #ffffff 100%);
}

.clients-showcase {
  position: relative;
  background: transparent;
  padding: 0;
  overflow-x: clip;
  max-width: 100%;
}

/* Editorial proof band — airy, gallery-led */
.clients-proof {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
  margin-bottom: clamp(48px, 6vw, 72px);
}

.clients-proof__header {
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.clients-proof__gallery {
  min-width: 0;
}

.clients-proof__caption {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light, #B89A86);
  text-align: center;
}

.clients-proof__footer {
  padding-top: clamp(8px, 2vw, 16px);
  border-top: 1px solid rgba(240, 224, 212, 0.85);
}

/* Roster header — shown when proof band is off */
.clients-showcase__header {
  max-width: none;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.clients-showcase__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent, #F05A14);
}

.clients-showcase__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 750;
  color: var(--color-text, #3F2A1E);
  letter-spacing: -0.04em;
  line-height: 1.08;
  white-space: nowrap;
}

.clients-showcase__title strong {
  display: inline;
  font-weight: inherit;
  color: inherit;
}

.clients-showcase__desc {
  margin: 20px auto 0;
  max-width: min(58rem, 100%);
  color: var(--color-text-muted, #8A6E5C);
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.7;
  /* Not in cms-breaks pre-line list — keep normal so CMS whitespace cannot force mid-phrase breaks */
  white-space: normal;
}

/* Desktop: Trusted By lede stays one line */
@media (min-width: 1024px) {
  .clients-showcase__desc {
    max-width: none;
    font-size: 15px;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .clients-showcase__title {
    white-space: normal;
    text-wrap: balance;
  }
}

/* Split insights — quiet quote + refined metrics */
.client-insights--split {
  margin: 0;
  max-width: none;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.client-insights--split .client-insights__quote {
  margin: 0;
  max-width: none;
  padding: 0;
  text-align: center;
  min-width: 0;
  align-self: center;
}

.client-insights--split .client-insights__mark {
  font-size: 56px;
  margin-bottom: 12px;
  line-height: 0.55;
  opacity: 0.9;
}

.client-insights--split .client-insights__slogan p {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
  font-weight: 650;
  overflow-wrap: break-word;
}

.client-insights--split .client-insights__sub {
  margin: 16px auto 0;
  max-width: 38ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-muted, #8A6E5C);
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}

.client-insights--split .client-insights__stats {
  margin: 0;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: minmax(min-content, auto);
  gap: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  min-width: 0;
}

.client-insights--split .client-insights__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 20px 18px 22px 0;
  background: transparent;
  color: var(--color-text, #3F2A1E);
  border: 0;
  border-right: 1px solid rgba(240, 224, 212, 0.95);
  border-bottom: 1px solid rgba(240, 224, 212, 0.95);
  overflow: hidden;
  transform: none;
}

.client-insights--split .client-insights__stat:nth-child(2n) {
  border-right: 0;
  padding-right: 0;
  padding-left: 20px;
}

.client-insights--split .client-insights__stat:nth-child(n+3) {
  border-bottom: 0;
  padding-top: 26px;
}

.client-insights--split .client-insights__stat:hover {
  filter: none;
  transform: none;
  background: transparent;
}

.client-insights--split .client-insights__value {
  display: block;
  position: static;
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--color-accent, #F05A14);
  line-height: 1.1;
  flex: 0 0 auto;
}

.client-insights--split .client-insights__label {
  display: block;
  position: static;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text, #3F2A1E);
  line-height: 1.35;
  flex: 0 0 auto;
}

.client-insights--split .client-insights__hint {
  display: block;
  position: static;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted, #8A6E5C);
  max-width: none;
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Expandable gallery — taller, more cinematic */
.expand-gallery__row {
  display: flex;
  gap: 12px;
  width: 100%;
  height: min(460px, 48vw);
  min-height: 300px;
}

.expand-gallery--clients .expand-gallery__row {
  height: min(480px, 52vw);
  min-height: 320px;
}

.expand-gallery__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--photo-frame-pad, #F0E6DC);
  transition: flex 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.expand-gallery__panel.is-hot {
  flex: 2.4 1 0;
}

.expand-gallery__panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: none;
  transition: transform 0.55s ease;
}

.expand-gallery__panel.is-hot img {
  transform: none;
}

.expand-gallery__shade {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 8, 0.18);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.expand-gallery__panel.is-hot .expand-gallery__shade {
  opacity: 0;
}

.expand-gallery__panel.is-dim .expand-gallery__shade {
  opacity: 1;
  background: rgba(20, 12, 8, 0.45);
}

.expand-gallery__lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 14, 8, 0.92);
}

.expand-gallery__lightbox[hidden] {
  display: none !important;
}

html.expand-gallery-open {
  overflow: hidden;
}

.expand-gallery__stage {
  width: min(1100px, 100%);
  max-height: 88vh;
}

.expand-gallery__stage img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.expand-gallery__close,
.expand-gallery__nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.expand-gallery__close:hover,
.expand-gallery__nav:hover {
  background: rgba(240, 90, 20, 0.85);
}

.expand-gallery__close {
  top: 18px;
  right: 18px;
}

.expand-gallery__nav--prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.expand-gallery__nav--next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.expand-gallery__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.client-directory--compact {
  margin-top: 8px;
}

.client-directory--home {
  margin-top: 8px;
}

/* Home — clean uniform grid (logo + name + intro) */
.client-directory--uniform .client-directory__featured {
  display: none;
}

.client-directory--uniform .client-directory__grid {
  /* Mobile: 1 column so logo + name + full blurb fit without cramped ellipsis */
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 769px) {
  .client-directory--uniform .client-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .client-directory--uniform .client-directory__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1180px) {
  .client-directory--uniform .client-directory__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.client-directory--uniform .client-tile {
  /* Vertical: white logo on top, name + full intro below */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px 14px 16px;
  min-height: 0;
  height: 100%;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(240, 224, 212, 0.95);
  box-shadow: none;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.client-directory--uniform .client-tile.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Home / clients A–Z pages: soft opacity + lift wave (TL→BR via JS delay) */
.client-directory--paged .client-tile {
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.client-directory--paged .client-tile.is-in {
  transform: translateY(0) scale(1);
}

.client-directory--paged .client-tile.is-in:hover {
  transform: translateY(-2px) scale(1);
}

/* Home A–Z pages: off-page tiles stay out of layout / tab order */
.client-directory--paged .client-tile[hidden] {
  display: none !important;
}

/* Before JS: only first desktop page (4×3) to avoid a flash of the full roster */
.client-directory--paged:not(.is-pages-ready) .client-directory__grid > .client-tile:nth-child(n + 13) {
  display: none;
}

.client-directory--uniform .client-tile:hover {
  border-color: rgba(240, 90, 20, 0.35);
  box-shadow: 0 12px 28px rgba(63, 42, 30, 0.06);
  transform: translateY(-2px);
}

.client-directory--uniform .client-tile.is-in:hover {
  transform: translateY(-2px);
}

/*
 * Uniform white logo cells — full card width, 16/10, brand clear-space (ms=mv=1).
 * Wider top plane → larger mark H (≈ cellH/3) while side margins stay ≈ H.
 * JS (clients-showcase.js) fits each mark; CSS % below is pre-JS fallback only.
 */
.client-directory--uniform .client-tile__logo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-directory--uniform .client-tile__body {
  flex: 1 1 auto;
  text-align: center;
  gap: 6px;
}

.client-directory--uniform .client-tile__name {
  font-size: 15px;
  font-weight: 750;
  text-align: center;
}

.client-directory--uniform .client-tile__intro {
  font-size: 13px;
  line-height: 1.5;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .client-directory--uniform .client-tile {
    opacity: 1;
    transform: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
}

.client-directory--compact .client-tile--featured {
  min-height: 0;
  padding: 18px 20px;
}

@media (max-width: 960px) {
  .client-insights--split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .client-insights--split .client-insights__sub {
    white-space: normal;
    max-width: 40ch;
  }

  .expand-gallery__row,
  .expand-gallery--clients .expand-gallery__row {
    height: 260px;
    min-height: 220px;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .expand-gallery__row,
  .expand-gallery--clients .expand-gallery__row {
    height: 200px;
    gap: 6px;
  }

  .expand-gallery__panel {
    border-radius: 12px;
  }

  .client-insights--split .client-insights__hint {
    display: none;
  }

  .client-insights--split .client-insights__stat:nth-child(2n) {
    padding-left: 14px;
  }

  .client-insights--split .client-insights__stat {
    padding-right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expand-gallery__panel {
    transition: none;
  }
}

.clients-showcase__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 36px 48px;
  align-items: end;
  margin-bottom: 40px;
}

.clients-showcase__intro {
  max-width: 560px;
}

/* Nested intro column only — home roster header stays centered (see rule above) */
.clients-showcase__top .clients-showcase__header,
.clients-showcase__intro .clients-showcase__header {
  text-align: left;
  margin-bottom: 32px;
}

/* Compact insight stats (side column) */
.client-insights--compact {
  margin: 0;
  max-width: none;
  text-align: left;
}

.client-insights--compact .client-insights__stats {
  margin: 0;
  grid-template-columns: 1fr 1fr;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(240, 224, 212, 0.95);
  box-shadow: 0 18px 40px rgba(63, 42, 30, 0.06);
  overflow: hidden;
}

.client-insights--compact .client-insights__stat {
  padding: 18px 16px 16px;
  background: #fff;
  color: var(--color-text, #3F2A1E);
  border-right: 1px solid rgba(240, 224, 212, 0.9);
  border-bottom: 1px solid rgba(240, 224, 212, 0.9);
  min-height: 0;
  transition: background 0.2s ease;
}

.client-insights--compact .client-insights__stat:nth-child(2n) {
  border-right: 0;
}

.client-insights--compact .client-insights__stat:nth-child(n+3) {
  border-bottom: 0;
}

.client-insights--compact .client-insights__stat:hover {
  filter: none;
  transform: none;
  background: #FFF8F3;
}

.client-insights--compact .client-insights__value {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  color: var(--color-accent, #F05A14);
}

.client-insights--compact .client-insights__label {
  margin-top: 8px;
  color: var(--color-text, #3F2A1E);
}

.client-insights--compact .client-insights__hint {
  margin-top: 6px;
  color: var(--color-text-muted, #8A6E5C);
  max-width: none;
  font-size: 12px;
}

/* Full insights (legacy / non-compact) */
.client-insights {
  margin: 40px auto 0;
  max-width: 1100px;
  text-align: center;
}

.client-insights__quote {
  position: relative;
  margin: 0 auto;
  max-width: 720px;
  padding: 8px 12px 4px;
  border: 0;
  background: transparent;
}

.client-insights__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.7;
  color: var(--color-accent, #F05A14);
  opacity: 0.85;
  margin-bottom: 8px;
}

.client-insights__slogan {
  margin: 0;
  border: 0;
  padding: 0;
}

.client-insights__slogan p {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--color-text, #3F2A1E);
}

.client-insights__sub {
  display: block;
  margin: 16px auto 0;
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-muted, #8A6E5C);
  font-style: normal;
}

.client-insights__stats {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  text-align: left;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(240, 90, 20, 0.18);
  box-shadow: 0 16px 36px rgba(194, 65, 12, 0.08);
}

@media (min-width: 720px) {
  .client-insights:not(.client-insights--compact):not(.client-insights--split) .client-insights__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .client-insights:not(.client-insights--compact):not(.client-insights--split) .client-insights__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.client-insights:not(.client-insights--compact):not(.client-insights--split) .client-insights__stat {
  position: relative;
  padding: 26px 22px 24px;
  background: linear-gradient(160deg, #F05A14 0%, #E5520C 55%, #BC3A08 100%);
  color: #fff;
  min-height: 100%;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.client-insights:not(.client-insights--compact):not(.client-insights--split) .client-insights__stat:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  z-index: 1;
}

.client-insights:not(.client-insights--compact):not(.client-insights--split) .client-insights__value {
  display: block;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #fff;
}

.client-insights:not(.client-insights--compact):not(.client-insights--split) .client-insights__label {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.client-insights:not(.client-insights--compact):not(.client-insights--split) .client-insights__hint {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28ch;
}

.clients-showcase__stats {
  display: none;
}

/* Directory — logo + name + intro */
.client-directory {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.client-directory__featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.client-directory__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 700px) {
  .client-directory__featured {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-directory__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .client-directory__featured {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .client-directory__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

.client-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px 14px 16px;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(240, 224, 212, 0.95);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(63, 42, 30, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.client-tile:hover {
  border-color: rgba(240, 90, 20, 0.4);
  box-shadow: 0 16px 36px rgba(63, 42, 30, 0.08);
  transform: translateY(-2px);
  color: inherit;
}

.client-tile--featured {
  padding: 16px 16px 18px;
  min-height: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #FFF8F3 100%);
  border-color: rgba(240, 90, 20, 0.18);
}

.client-tile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(240, 224, 212, 0.8);
  overflow: hidden;
  box-sizing: border-box;
}

.client-tile--featured .client-tile__logo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: #fff;
}

.client-tile__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  text-align: center;
}

.client-tile__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-text, #3F2A1E);
  text-align: center;
}

.client-tile--featured .client-tile__name {
  font-size: 17px;
}

.client-tile__intro {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted, #8A6E5C);
  display: block;
  overflow: visible;
  text-align: center;
}

.client-tile--featured .client-tile__intro {
  font-size: 13.5px;
}

.clients-showcase__proof {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(240, 224, 212, 0.9);
}

.clients-showcase__proof-label {
  margin: 0 0 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light, #B89A86);
}

/* Logo mark */
.client-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.client-tile:hover .client-mark,
.clients-carousel__item:hover .client-mark {
  /* Opacity only — CSS scale() softens raster logos on retina. */
  transform: none;
  opacity: 1;
}

.client-mark__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: none;
  background: transparent;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

/*
 * Override global .client-mark__img roster defaults inside white logo cells.
 * Pre-JS fallback ≈ ms=mv=1 (mark ~1/3 of cell height; width capped loosely).
 * No width/height !important — JS sets px with setProperty(..., 'important').
 * Never force is-sized back to auto (that discarded letter-unit fit).
 */
.client-tile__logo .client-mark__img,
.client-tile--featured .client-tile__logo .client-mark__img {
  width: auto;
  height: 33%;
  max-width: 55%;
  max-height: 33%;
  object-fit: contain;
  object-position: center;
}

.client-tile__logo .client-mark__img.is-sized,
.client-tile--featured .client-tile__logo .client-mark__img.is-sized {
  max-width: none !important;
  max-height: none !important;
}

.client-mark--text {
  width: auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  background: transparent;
}

.client-mark__word {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #3F2A1E;
  line-height: 1.15;
  text-align: center;
  max-width: 100%;
}

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

@media (max-width: 560px) {
  .client-tile,
  .client-tile--featured,
  .client-directory--uniform .client-tile {
    padding: 12px 12px 14px;
    gap: 10px;
  }

  .client-tile__logo,
  .client-tile--featured .client-tile__logo,
  .client-directory--uniform .client-tile__logo {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

/* Static logo wall — uniform cells + letter-unit fit (see clients-showcase.js) */
.clients-logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  align-items: stretch;
  justify-items: stretch;
}

.clients-logo-wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  padding: 0;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.2s ease;
  background: #fff;
}

.clients-logo-wall__item:hover {
  opacity: 1;
}

.clients-logo-wall__item .client-mark {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clients-logo-wall__item .client-mark__img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 70%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: none;
  image-rendering: auto;
}

.clients-logo-wall__item .client-mark__img.is-sized {
  max-width: none;
  max-height: none;
}

.clients-logo-wall__item .client-mark img,
.clients-logo-wall__item .client-mark svg {
  max-width: 78%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Legacy marquee classes kept inert (no motion) */
.clients-marquees {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clients-carousel {
  overflow: hidden;
}

.clients-carousel__track {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  gap: 8px 4px;
  animation: none;
  will-change: auto;
  transform: none;
}

.clients-carousel--reverse .clients-carousel__track {
  animation: none;
}

.clients-carousel:hover .clients-carousel__track {
  animation-play-state: paused;
}

.clients-carousel__group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-right: 0;
  flex-shrink: 0;
}

.clients-carousel__group[aria-hidden="true"] {
  display: none;
}

.clients-carousel__item {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.clients-carousel__item:hover {
  border: none;
  box-shadow: none;
  background: transparent;
  opacity: 1;
  transform: none;
}

.clients-carousel__item .client-mark {
  width: 112px;
  height: 44px;
  min-width: 112px;
  min-height: 44px;
  border-radius: 0;
  flex-shrink: 0;
  background: transparent;
}

.clients-carousel__item .client-mark__img {
  width: 96px;
  height: 32px;
  max-width: 96px;
  max-height: 32px;
}

.clients-carousel__meta {
  display: none;
  text-align: left;
  min-width: 0;
}

.clients-carousel__meta strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #3F2A1E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clients-carousel__meta span {
  display: -webkit-box;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #8A6E5C;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clients-showcase__cta {
  margin-top: clamp(48px, 6vw, 64px);
  text-align: center;
}

.clients-showcase--home,
.clients-showcase--page {
  max-width: none;
  margin: 0;
  background: transparent;
  padding: 0;
}

/* Full roster */
.clients-roster {
  margin-top: 48px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.clients-roster__toggle {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  text-align: center;
}

.clients-roster__toggle::-webkit-details-marker {
  display: none;
}

.clients-roster__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  .clients-roster__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .clients-roster__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.clients-roster__list a,
.clients-roster__list > li > span {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--color-border-light);
  transition: border-color 0.2s ease;
}

.clients-roster__list a:hover {
  border-color: var(--client-color, var(--color-accent));
}

.clients-roster__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--client-color, #F05A14);
}

.clients-roster__list strong {
  display: block;
  flex: 1 1 calc(100% - 20px);
  font-size: 14px;
  font-weight: 800;
}

.clients-roster__list span:not(.clients-roster__dot) {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.clients-roster__list a > span:not(.clients-roster__dot),
.clients-roster__list > li > span > span:not(.clients-roster__dot) {
  flex: 1 1 100%;
  padding-left: 18px;
}

/* Homepage Trusted By card directory — hide on mobile; hero marquee stays */
@media (max-width: 768px) {
  #about-clients.clients-section {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .clients-showcase {
    padding: 64px 0;
  }

  .clients-showcase--about,
  .clients-showcase--home {
    padding-top: 0;
  }

  .client-insights__quote {
    padding: 4px 8px 0;
  }

  .logo-cloud {
    border-radius: 0;
    gap: 22px 16px;
  }

  .logo-cloud__card {
    min-height: 0;
    padding: 6px;
  }

  .client-mark {
    width: 104px;
    height: 44px;
    min-width: 104px;
    min-height: 44px;
  }

  .client-mark__img {
    width: 88px;
    height: 32px;
    max-width: 88px;
    max-height: 32px;
  }

  .clients-carousel__item {
    width: auto;
    min-width: 120px;
  }
}
