/* Success Clients — dedicated page */

.clients-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height, 80px) + 56px) 0 72px;
  color: #fff;
  background: #f3e8de;
  text-align: center;
}

.clients-page-hero__media {
  position: absolute;
  inset: -12px;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(26, 18, 12, 0.55), rgba(26, 18, 12, 0.2)),
    var(--clients-hero-image) center / cover no-repeat;
}

.clients-page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(26, 18, 12, 0.35) 0%, rgba(26, 18, 12, 0.72) 55%, rgba(26, 18, 12, 0.92) 100%),
    linear-gradient(
      105deg,
      rgba(26, 15, 8, 0.45) 0%,
      rgba(232, 93, 4, 0.36) 44%,
      rgba(240, 90, 20, 0.18) 100%
    ),
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(240, 90, 20, 0.32), transparent 60%);
}

.clients-page-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
}

.clients-page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: min(920px, 100%);
  margin-inline: auto;
  text-align: center;
}

.clients-page-hero__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 90, 20, 0.55);
  background: rgba(240, 90, 20, 0.22);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFCD75;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255, 205, 117, 0.1);
}

.clients-page-hero__title {
  margin: 0 auto;
  max-width: 22em;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.28;
  color: #fff;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.clients-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Override .btn--ghost white fill when used on dark hero */
a.btn.btn--ghost.clients-page-hero__ghost,
.clients-page-hero__ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

a.btn.btn--ghost.clients-page-hero__ghost:hover,
.clients-page-hero__ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--color-accent, #F05A14);
}

.clients-page-proof {
  padding-top: 72px;
  padding-bottom: 40px;
  background: #fff;
}

.clients-page-directory {
  padding-top: 64px;
  padding-bottom: 80px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(240, 90, 20, 0.08), transparent 55%),
    linear-gradient(180deg, #FFF8F3 0%, #fff 48%, #FFF8F3 100%);
}

.clients-page-directory__head,
.clients-page-ecosystem__head {
  max-width: 640px;
  margin-bottom: 28px;
}

.clients-page-directory__head {
  max-width: none;
  margin-bottom: 36px;
  text-align: center;
}

.clients-page-directory__head .section__eyebrow {
  display: inline-block;
}

.clients-page-directory__head .section__title {
  margin-left: auto;
  margin-right: auto;
}

.clients-page-ecosystem__head {
  max-width: none;
}

.clients-page-directory__head .section__title,
.clients-page-ecosystem__head .section__title {
  white-space: normal;
  text-wrap: balance;
  max-width: none;
}

.clients-page-directory__head .section__desc {
  max-width: 640px;
}

@media (max-width: 900px) {
  .clients-page-directory__head .section__title,
  .clients-page-ecosystem__head .section__title {
    white-space: normal;
    text-wrap: balance;
  }
}

.clients-page-ecosystem {
  padding-top: 56px;
  padding-bottom: 72px;
  background: #fff;
}

.clients-roster--page {
  margin-top: 40px;
  border-top: 1px solid rgba(240, 224, 212, 0.95);
  padding-top: 20px;
}

.clients-roster--page[open] .clients-roster__toggle {
  color: var(--color-accent, #F05A14);
}

.clients-iso {
  padding: 72px 0;
  background:
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(240, 90, 20, 0.08), transparent 55%),
    #FFF8F3;
}

.clients-iso__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 40px 56px;
  align-items: center;
}

.clients-iso__badge {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(240, 90, 20, 0.14);
  box-shadow: 0 18px 40px rgba(63, 42, 30, 0.06);
}

.clients-iso__badge img {
  display: block;
  width: min(100%, 280px);
  height: auto;
}

.clients-iso__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--color-text, #3F2A1E);
  text-align: left;
}

.clients-iso__title span {
  display: block;
  color: var(--color-accent, #F05A14);
}

.clients-iso__lede {
  margin: 0 0 24px;
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-muted, #8A6E5C);
}

.clients-iso__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.clients-iso__points li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(240, 224, 212, 0.95);
}

.clients-iso__points strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent, #F05A14);
}

.clients-iso__points span {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text, #3F2A1E);
}

.clients-iso__action {
  margin: 28px 0 0;
}

.clients-iso__action .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.clients-iso--home {
  background:
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(240, 90, 20, 0.08), transparent 55%),
    #fff;
  border-top: 1px solid var(--color-border-light, #F8EEE6);
}

.clients-iso--page {
  padding-top: clamp(48px, 8vw, 88px);
}

.clients-iso--teaser .clients-iso__lede {
  margin-bottom: 0;
}

.clients-page-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 24px 40px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(240, 90, 20, 0.12), transparent 55%),
    #FFF8F3;
  border: 1px solid rgba(240, 90, 20, 0.16);
}

.clients-page-teaser__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text, #3F2A1E);
}

.clients-page-teaser__desc {
  margin: 0;
  max-width: 48ch;
  color: var(--color-text-muted, #8A6E5C);
  font-size: 15px;
  line-height: 1.55;
}

/* About — Success Clients CTA band (left copy + logo marquee) */
.about-clients-teaser {
  padding-block: clamp(56px, 8vw, 96px);
}

.about-clients-teaser__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  border: 1px solid rgba(240, 90, 20, 0.18);
  background:
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(240, 90, 20, 0.16), transparent 58%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(240, 90, 20, 0.08), transparent 55%),
    linear-gradient(135deg, #FFF9F4 0%, #FFF1E6 48%, #FFE8D8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 48px rgba(63, 42, 30, 0.06);
  overflow: hidden;
  position: relative;
}

.about-clients-teaser__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(63, 42, 30, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 42, 30, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 75% at 88% 45%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 88% 45%, #000 10%, transparent 72%);
  opacity: 0.85;
}

.about-clients-teaser__copy,
.about-clients-teaser__visual {
  position: relative;
  z-index: 1;
}

.about-clients-teaser__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 36rem;
}

.about-clients-teaser__title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--color-text, #3F2A1E);
}

.about-clients-teaser__desc {
  margin: 0 0 22px;
  max-width: 42ch;
  color: var(--color-text-muted, #8A6E5C);
  font-size: 15.5px;
  line-height: 1.6;
}

.about-clients-teaser__cta {
  margin-top: 4px;
}

.about-clients-teaser__visual {
  min-width: 0;
}

.about-clients-teaser__stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 0;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 243, 0.55)),
    rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(240, 90, 20, 0.12);
  box-shadow: 0 10px 32px rgba(63, 42, 30, 0.05);
  overflow: hidden;
}

.about-clients-teaser__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.about-clients-teaser__track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  padding: 2px 16px;
  animation: aboutClientsTeaserMarquee 55s linear infinite;
  will-change: transform;
}

.about-clients-teaser__marquee--reverse .about-clients-teaser__track {
  animation-name: aboutClientsTeaserMarqueeReverse;
  animation-duration: 68s;
}

.about-clients-teaser__stage:hover .about-clients-teaser__track {
  animation-play-state: paused;
}

.about-clients-teaser__slot {
  --about-teaser-slot-w: 168px;
  --about-teaser-slot-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--about-teaser-slot-w);
  height: var(--about-teaser-slot-h);
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(63, 42, 30, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-clients-teaser__slot:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 90, 20, 0.28);
  box-shadow: 0 8px 18px rgba(240, 90, 20, 0.12);
}

.about-clients-teaser__slot .client-mark {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-clients-teaser__slot .client-mark__img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 68%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.about-clients-teaser__slot .client-mark__img.is-sized {
  max-width: none;
  max-height: none;
}

.about-clients-teaser__slot .client-mark__word {
  font-size: 13px;
  font-weight: 700;
  color: #3F2A1E;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 92%;
  text-align: center;
}

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

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

@media (max-width: 900px) {
  .about-clients-teaser__panel {
    grid-template-columns: 1fr;
    padding: 26px 20px 22px;
  }

  .about-clients-teaser__copy {
    max-width: none;
  }

  .about-clients-teaser__slot {
    --about-teaser-slot-w: 148px;
    --about-teaser-slot-h: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-clients-teaser__track {
    animation: none;
  }
}

@media (max-width: 800px) {
  .clients-page-hero {
    min-height: 520px;
    padding-bottom: 48px;
  }

  .clients-iso__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .clients-iso__badge {
    padding: 28px 22px;
  }

  .clients-page-teaser {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
}
