.merchants {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 4.2vw, 64px) 32px;
  border-top: 1px solid #eaedeb;
  background: #f7f8f8;
  color: #191b1a;
}

.merchants::before,
.merchants::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.merchants::before {
  background: repeating-conic-gradient(from 7deg at 28% -29%,
    transparent 0deg 3.15deg, #4c5d6317 3.22deg, transparent 3.34deg 4.6deg);
  mask-image: linear-gradient(108deg, #0006, #000a 24%, transparent 56%);
}

.merchants::after {
  background: repeating-conic-gradient(from 14deg at 57% -24%,
    transparent 0deg 3.7deg, #4c5d631a 3.75deg, transparent 3.87deg 5.4deg);
  mask-image: linear-gradient(102deg, transparent 50%, #000b);
}

.merchants-scroll {
  --logo-width: 180px;
  --logo-height: 73px;
  --logo-gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.merchants-scroll::-webkit-scrollbar { display: none; }
.merchants-scroll:focus-visible { outline: 2px solid #526e67; outline-offset: -2px; }

.merchants-track, .merchants-row {
  display: flex;
  width: max-content;
}

.merchants-row {
  flex: none;
  gap: var(--logo-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.merchants-scroll.is-moving {
  overflow: clip;
}

.merchants-scroll.is-moving .merchants-row {
  padding-inline-end: var(--logo-gap);
}

.merchants-scroll.is-moving .merchants-track {
  animation: juzi-logo-scroll var(--loop-duration) linear infinite;
}

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

.merchant-tile {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: var(--logo-width);
  height: var(--logo-height);
  border-radius: 12px;
  background: white;
  color: #191b1a;
  white-space: nowrap;
}

.merchant-type {
  line-height: 1;
  letter-spacing: .06em;
  font-size: clamp(20px, 1.55vw, 25px);
  font-weight: 690;
}

.merchant-type small {
  display: block;
  margin-top: 7px;
  font: 600 7px/1 Arial, sans-serif;
  letter-spacing: .18em;
}

.merchant-icon {
  display: inline-block;
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.masonry-icon {
  background: currentColor;
  clip-path: polygon(0 39%, 32% 22%, 32% 49%, 53% 37%, 53% 12%, 83% 0,
    83% 27%, 100% 19%, 100% 63%, 68% 80%, 68% 51%, 48% 61%, 48% 86%, 17% 100%, 17% 73%, 0 82%);
}

.merchant-frame .merchant-type {
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: clamp(25px, 1.95vw, 32px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.055em;
}
.frame-icon {
  flex-basis: 29px;
  width: 29px;
  height: 25px;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px);
  clip-path: polygon(0 5%, 100% 0, 100% 75%, 0 100%);
}

.flora-icon {
  background: radial-gradient(ellipse 26% 34% at 50% 25%, currentColor 96%, transparent),
    radial-gradient(ellipse 34% 26% at 75% 50%, currentColor 96%, transparent),
    radial-gradient(ellipse 26% 34% at 50% 75%, currentColor 96%, transparent),
    radial-gradient(ellipse 34% 26% at 25% 50%, currentColor 96%, transparent);
}
.flora-icon::after {
  content: "";
  position: absolute;
  inset: 42%;
  background: white;
  border-radius: 50%;
}
.merchant-flora .merchant-type {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  letter-spacing: .12em;
}
.merchant-form .merchant-type {
  font-family: "Baskerville", Georgia, serif;
  font-size: clamp(25px, 2.05vw, 34px);
  text-align: center;
  font-weight: 500;
  letter-spacing: -.07em;
}
.merchant-form .merchant-type i { margin: 0 3px; font-weight: normal; }

.wood-icon {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 3px,
    linear-gradient(currentColor, currentColor) left center / 3px 100%,
    linear-gradient(currentColor, currentColor) center / 3px 100%,
    linear-gradient(currentColor, currentColor) right center / 3px 100%,
    linear-gradient(currentColor, currentColor) left 60% / 56% 3px,
    linear-gradient(currentColor, currentColor) right 38% / 51% 3px,
    linear-gradient(currentColor, currentColor) bottom / 100% 3px;
  background-repeat: no-repeat;
}
.merchant-wood .merchant-type { font-weight: 800; letter-spacing: .14em; }

.fold-icon {
  background: currentColor;
  clip-path: polygon(0 79%, 28% 25%, 46% 56%, 62% 10%, 100% 79%, 78% 79%, 64% 52%,
    46% 96%, 29% 61%, 19% 79%);
}
.merchant-fold .merchant-type {
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  font-size: clamp(21px, 1.65vw, 27px);
  font-weight: 750;
  letter-spacing: -.075em;
}
.lens-icon {
  border: 3px solid;
  border-radius: 50%;
}
.lens-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid;
  border-radius: 50%;
}
.merchant-lens .merchant-type { letter-spacing: .08em; font-weight: 580; }

@media (max-width: 768px) {
  .merchants { padding: 32px 16px; }
  .merchants-scroll { --logo-width: 140px; --logo-height: 64px; --logo-gap: 12px; }
  .merchant-tile { gap: 7px; }
  .merchant-type { font-size: 17px; }
  .merchant-type small { margin-top: 5px; font-size: 6px; }
  .merchant-icon { scale: .85; }
  .merchant-frame .merchant-type, .merchant-form .merchant-type { font-size: 23px; }
  .merchant-fold .merchant-type { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .merchants-scroll { mask-image: none; }
  .merchants-scroll.is-moving .merchants-track { animation: none; }
}
