/* ============ Trusted Partners: two-row logo marquee ============ */
.partners {
  padding: 84px 0 90px;
  overflow: hidden;
}

.pt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.pt-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--heading);
  border: 1px solid var(--line-2);
  margin: 0;
}

.pt-label::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--grad);
}

.pt-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

/* Rows fade out at both edges */
.pt-rows {
  display: grid;
  gap: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.pt-row {
  overflow: hidden;
}

/* Each track holds the logo set twice and slides by half its width for a seamless loop */
.pt-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding-right: 18px;
  animation: pt-scroll 40s linear infinite;
}

.pt-row.-rev .pt-track {
  animation-direction: reverse;
  animation-duration: 46s;
}

.pt-rows:hover .pt-track {
  animation-play-state: paused;
}

@keyframes pt-scroll {
  to {
    transform: translateX(-50%);
  }
}

.pt-logo {
  display: grid;
  place-items: center;
  width: 220px;
  height: 108px;
  padding: 0 30px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease);
}

.pt-logo img {
  max-width: 100%;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pt-logo img.-tall {
  max-height: 54px;
}

.pt-logo:hover {
  border-color: rgba(26, 86, 196, .35);
  box-shadow: 0 14px 34px rgba(0, 26, 65, .08);
  transform: translateY(-3px);
}


@media (max-width: 760px) {
  .partners {
    padding: 64px 0 70px;
  }

  .pt-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .pt-label {
    font-size: 18px;
  }

  .pt-rows,
  .pt-track {
    gap: 12px;
  }

  .pt-track {
    padding-right: 12px;
  }

  .pt-logo {
    width: 160px;
    height: 84px;
    padding: 0 22px;
  }

  .pt-logo img {
    max-height: 32px;
  }

  .pt-logo img.-tall {
    max-height: 42px;
  }
}

/* Optical size balance: wide wordmarks shrink, padded raster logos grow */
.pt-logo img.-sm {
  max-height: 32px;
}

.pt-logo img.-xl {
  max-height: 64px;
}

@media (max-width: 760px) {
  .pt-logo img.-sm {
    max-height: 24px;
  }

  .pt-logo img.-xl {
    max-height: 50px;
  }
}
