/* Partner ecosystem: a restrained, continuously growing brand network. */
.ecosystem-section {
  --ecosystem-ink: #141414;
  --ecosystem-muted: #767676;
  --ecosystem-faint: #adadad;
  --ecosystem-line: #e6e6e6;
  --ecosystem-accent: var(--brand-red, #b5222a);
  --ecosystem-logo-h: clamp(26px, 3.2vw, 42px);
  --ecosystem-logo-gap: clamp(52px, 6vw, 88px);
  --ecosystem-fade: 9%;
  padding-block: clamp(64px, 8vw, 110px);
  background: #fff;
}

.ecosystem-head {
  margin: 0 auto;
  text-align: center;
}

.ecosystem-head h2 {
  margin: 0;
  color: var(--ecosystem-ink);
  font-family: var(--font-serif, "Noto Serif SC", "Source Han Serif SC", serif);
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
}

.ecosystem-head p {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--ecosystem-muted);
  font-family: var(--font-sans, "Noto Sans SC", "PingFang SC", sans-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.75;
}

.ecosystem-marquee {
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--ecosystem-fade), #000 calc(100% - var(--ecosystem-fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--ecosystem-fade), #000 calc(100% - var(--ecosystem-fade)), transparent);
}

.ecosystem-marquee--primary { margin-top: clamp(52px, 6vw, 84px); }
.ecosystem-marquee--secondary { margin-top: clamp(34px, 4vw, 56px); }

.ecosystem-marquee__track {
  display: flex;
  width: max-content;
  animation: ecosystem-marquee-scroll var(--speed, 44s) linear infinite;
  will-change: transform;
}

.ecosystem-marquee--reverse .ecosystem-marquee__track { animation-direction: reverse; }
.ecosystem-marquee:hover .ecosystem-marquee__track { animation-play-state: paused; }

.ecosystem-marquee__set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--ecosystem-logo-gap);
  margin: 0;
  padding: 0 var(--ecosystem-logo-gap) 0 0;
  list-style: none;
}

.ecosystem-marquee__set li {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.ecosystem-marquee__set img {
  display: block;
  width: auto;
  max-width: none;
  height: var(--ecosystem-logo-h);
  object-fit: contain;
  opacity: .92;
  transition: opacity .3s ease, transform .3s ease;
}

.ecosystem-marquee__set img:hover {
  opacity: 1;
  transform: scale(1.06);
}

.ecosystem-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(56px, 6vw, 88px);
  padding-top: 22px;
  border-top: 1px solid var(--ecosystem-line);
}

.ecosystem-footer__count {
  margin: 0;
  color: var(--ecosystem-muted);
  font-family: var(--font-sans, "Noto Sans SC", "PingFang SC", sans-serif);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.6;
}

.ecosystem-footer__count strong {
  color: var(--ecosystem-ink);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
}

.ecosystem-footer__count span { padding-inline: 7px; color: var(--ecosystem-faint); }

.ecosystem-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ecosystem-ink);
  font-family: var(--font-serif, "Noto Serif SC", "Source Han Serif SC", serif);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
  text-decoration: none;
}

.ecosystem-footer__cta::before {
  width: 40px;
  height: 1px;
  background: var(--ecosystem-line);
  content: "";
}

.ecosystem-footer__cta span {
  color: var(--ecosystem-accent);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 18px;
  font-weight: 500;
  transition: transform .3s ease;
}

.ecosystem-footer__cta:hover span,
.ecosystem-footer__cta:focus-visible span { transform: translateX(6px); }

.ecosystem-footer__cta:focus-visible {
  outline: 2px solid var(--ecosystem-accent);
  outline-offset: 6px;
}

@keyframes ecosystem-marquee-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .ecosystem-head p {
    max-width: 300px;
    letter-spacing: .04em;
  }

  .ecosystem-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-right: 0;
  }

  .ecosystem-footer__cta { gap: 13px; }
}

@media (min-width: 641px) {
  /* Keep the fixed digital assistant clear of the CTA at the page edge. */
  .ecosystem-footer { padding-right: clamp(90px, 9vw, 140px); }
}

@media (max-width: 380px) {
  .ecosystem-footer__cta { padding-inline: 2px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }

  .ecosystem-marquee__track { animation: none; }
  .ecosystem-marquee__set[aria-hidden="true"] { display: none; }
  .ecosystem-marquee__set img { transition: none; }
  .ecosystem-footer__cta span { transition: none; }
}
