/* Section 8 — logo thumbnails drift above and below the title */

.among {
  overflow: hidden;
  padding-block: clamp(82px, 11vh, 130px);
  text-align: center;
}

.among__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.among__row-wrap {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}

.among__row {
  display: flex;
  width: max-content;
  animation: among-drift 40s linear infinite;
}

.among__row--reverse {
  animation-direction: reverse;
}

.among__track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
}

.among__tile {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--tile-bg, var(--ink));
  box-shadow:
    0 1px 2px rgba(24, 24, 27, 0.06),
    0 16px 26px -18px rgba(24, 24, 27, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(var(--dy, 0px));
}

.among__tile:nth-child(3n) {
  --dy: -9px;
}

.among__tile:nth-child(4n) {
  --dy: 8px;
}

.among__tile:nth-child(5n) {
  --dy: -4px;
}

.among__tile img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.94;
  user-select: none;
  -webkit-user-drag: none;
}

.among__title {
  margin-block: clamp(22px, 3.2vw, 36px);
  max-width: 22ch;
  font-size: clamp(2.1rem, 4.3vw, 3.85rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.among__title .rv-line {
  display: block;
}

.among__copy {
  max-width: 50ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.among__row--bottom {
  margin-top: clamp(24px, 3.4vw, 38px);
}

.among__row--top {
  margin-bottom: 0;
}

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

@media (max-width: 640px) {
  .among__tile {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .among__tile img {
    width: 29px;
    height: 29px;
  }

  .among__track {
    gap: 12px;
    padding-right: 12px;
  }

  .among__title {
    margin-block: 26px;
  }

  .among__copy {
    max-width: 34ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .among__row {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .among__track {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding-inline: 8px;
  }

  .among__track[aria-hidden="true"],
  .among__row .among__track + .among__track {
    display: none;
  }

  .among__row-wrap {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .among__tile {
    transform: none;
  }
}
