/* Shared homepage/business carousel and App Center partner wall. */
.brand-hero-carousel,
.brand-hero-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  background: #0a0a0a;
}

.brand-hero-carousel--home,
.brand-hero-fallback--home {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.brand-hero-track,
.brand-hero-slide,
.brand-hero-slide > a,
.brand-hero-slide picture {
  width: 100%;
  height: 100%;
}

.brand-hero-track {
  display: flex;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}

.brand-hero-slide { flex: 0 0 100%; }
.brand-hero-slide > a,
.brand-hero-slide picture { display: block; }

.brand-hero-slide img,
.brand-hero-fallback img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.brand-hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}

.brand-hero-arrow.prev { left: 0; }
.brand-hero-arrow.next { right: 0; }
.brand-hero-arrow img { width: 60px; height: 60px; display: block; }

.brand-hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.brand-hero-dots .dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .6);
  transition: width .2s ease, background-color .2s ease;
}

.brand-hero-dots .dot.active { width: 60px; background: #fff; }

.brand-partners {
  width: 100%;
  height: 830px;
  color: #fff;
  background: #111;
}

.brand-partners--two-rows { height: 640px; }

.brand-partners-shell {
  width: min(calc(100% - 48px), 1480px);
  height: 100%;
  margin: 0 auto;
  padding-top: 80px;
}

.brand-partners-title {
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-partners-title h2 {
  margin: 0;
  color: #fff;
  font: 600 28px/33.6px Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.brand-partners-title span {
  margin-top: 40px;
  color: #aaa;
  font: 400 16px/25.6px Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.brand-partner-wall {
  width: 100%;
  height: 530px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .1), #000 20.315%, #000 80.389%, rgba(0, 0, 0, .1));
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .1), #000 20.315%, #000 80.389%, rgba(0, 0, 0, .1));
}

.brand-partners--two-rows .brand-partner-wall { height: 340px; }

.brand-partner-row {
  width: 100%;
  height: 150px;
  flex: 0 0 150px;
  overflow: hidden;
}

.brand-partner-track {
  width: max-content;
  height: 150px;
  display: flex;
  will-change: transform;
  animation: brand-partner-marquee var(--brand-partner-duration, 18s) linear infinite;
}

.brand-partner-set {
  flex: 0 0 auto;
  width: max-content;
  height: 150px;
  padding-right: 40px;
  display: flex;
  gap: 40px;
}

@keyframes brand-partner-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.brand-partner-wall a {
  width: 150px;
  height: 150px;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}

.brand-partner-wall img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .brand-partner-wall a:hover img { transform: scale(1.025); }
}

@media (max-width: 860px) {
  .brand-hero-arrow { display: none; }
  .brand-hero-dots { bottom: 16px; gap: 10px; }
  .brand-hero-dots .dot { width: 7px; height: 5px; }
  .brand-hero-dots .dot.active { width: 22px; height: 5px; }

  .brand-partners,
  .brand-partners--two-rows { height: auto; min-height: 238px; padding: 36px 0 30px; }
  .brand-partners-shell { width: 100%; height: auto; padding: 0; }
  .brand-partners-title { height: auto; }
  .brand-partners-title h2 { font-size: 24px; line-height: 1.1; }
  .brand-partners-title span { margin-top: 8px; font-size: 12px; line-height: 1; }
  .brand-partner-wall {
    width: 100%;
    height: 220px;
    margin-top: 28px;
    padding: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .brand-partners--two-rows .brand-partner-wall { height: 142px; }
  .brand-partner-wall { gap: 14px; }
  .brand-partner-row,
  .brand-partner-track,
  .brand-partner-set {
    height: 64px;
  }
  .brand-partner-row { flex-basis: 64px; }
  .brand-partner-track { animation-duration: var(--brand-partner-mobile-duration, 18s); }
  .brand-partner-set {
    gap: 14px;
    padding-right: 14px;
  }
  .brand-partner-wall a,
  .brand-partner-wall a:nth-child(n) {
    width: 64px;
    height: 64px;
    display: block;
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-hero-track,
  .brand-hero-dots .dot,
  .brand-partner-wall img { transition: none; }
  .brand-partner-wall { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .brand-partner-track { animation: none; }
  .brand-partner-fill,
  .brand-partner-set[aria-hidden="true"] { display: none; }
}
