/* ==========================================================================
   03 Trust — compact logo marquee band
   ========================================================================== */

/* Band ------------------------------------------------------------------- */
.trust {
  position: relative;
  padding-block: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust__label {
  margin: 0 0 var(--space-5);
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* Marquee ---------------------------------------------------------------- */
/* Mask only uses alpha, so the keyword colors below are not visible colors. */
.trust__marquee {
  --trust-gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --trust-duration: 38s;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.trust__track {
  display: flex;
  width: max-content;
  animation: trust-scroll var(--trust-duration) linear infinite;
}

.trust__marquee:hover .trust__track { animation-play-state: paused; }

/* Each list carries a trailing gap so the two copies tile perfectly at -50%. */
.trust__list {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--trust-gap);
  padding-right: var(--trust-gap);
}

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

/* Wordmarks -------------------------------------------------------------- */
.trust__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}

.trust__logo:hover { color: var(--text); }

.trust__glyph {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transition: color 0.3s var(--ease);
}

.trust__glyph svg { width: 22px; height: 22px; }

.trust__logo:hover .trust__glyph { color: var(--secondary); }

.trust__name {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .trust__label { font-size: var(--fs-sm); }
  .trust__name { font-size: var(--fs-xl); }
}

/* Reduced motion: static, wrapped row; hide the duplicate ---------------- */
@media (prefers-reduced-motion: reduce) {
  .trust__marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .trust__track {
    width: auto;
    animation: none !important;
  }

  .trust__list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--space-4);
    padding-right: 0;
    flex-shrink: 1;
  }

  .trust__list--clone { display: none; }
}
