/* Section 4 — Trusted: the stack, in a slow monochrome marquee */

.trusted {
  padding-top: clamp(66px, 9vh, 108px);
  padding-bottom: clamp(76px, 10vh, 120px);
}

.trusted__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
}

.trusted__title {
  max-width: 15ch;
  font-size: clamp(2.15rem, 3.7vw, 3.4rem);
}

.trusted__title .accent-faint {
  color: var(--faint);
}

.trusted__side {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  padding-bottom: 6px;
}

.trusted__line {
  max-width: 39ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: -0.004em;
}

.trusted__arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  margin-top: clamp(30px, 4.6vh, 52px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.logo-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.logo-set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(34px, 4.3vw, 62px);
  padding-right: clamp(34px, 4.3vw, 62px);
}

.stack-logo {
  display: block;
  flex: 0 0 auto;
  height: clamp(22px, 2.2vw, 28px);
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 220ms ease, filter 260ms ease, transform 260ms var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
}

.stack-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .trusted__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .trusted__side {
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 0;
  }

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

@media (max-width: 640px) {
  .logo-set {
    gap: 30px;
    padding-right: 30px;
  }

  .stack-logo {
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logo-marquee__track {
    width: 100%;
    transform: none !important;
  }

  .logo-set {
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 38px;
    width: 100%;
    padding-right: 0;
  }

  .logo-set[data-logo-dupe] {
    display: none;
  }

  .trusted__arrows {
    display: none;
  }

  .stack-logo {
    opacity: 0.62;
    filter: grayscale(1);
  }

  .stack-logo:hover {
    transform: none;
  }
}
