/* Tech Yarde Partner Marquee — "Our Partners" credibility strip.
   Gold-on-black band, white logo cards, infinite CSS scroll. */

.ty-pm {
  background: #161616;
  color: #f5f5f3;
  padding: 64px 0 72px;
  overflow: hidden;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.ty-pm-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ty-pm-eyebrow {
  color: #ffc42e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.ty-pm-title {
  color: #f5f5f3;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 36px;
}

/* Marquee viewport with soft edge fades */
.ty-pm-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

/* The moving track: two identical halves, translated -50% for a seamless loop.
   Spacing uses card margin (not track gap) so the -50% point lands exactly. */
.ty-pm-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: ty-pm-scroll 38s linear infinite;
}

.ty-pm-dup {
  display: contents;
}

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

.ty-pm-marquee:hover .ty-pm-track {
  animation-play-state: paused;
}

/* Partner card */
.ty-pm-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 14px;
  height: 104px;
  min-width: 220px;
  margin-right: 24px;
  padding: 34px 28px 18px;
  text-decoration: none;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

a.ty-pm-card:hover {
  transform: translateY(-3px);
}

.ty-pm-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #efede6;
  color: #161616;
  white-space: nowrap;
}

.ty-pm-badge-official {
  background: #ffc42e;
  color: #161616;
}

.ty-pm-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.ty-pm-logo-img {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

/* Icon + text lockup (for brands whose official asset is icon-only) */
.ty-pm-iconlock {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ty-pm-logo-icon {
  height: 44px;
  width: 44px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

/* Text wordmark fallback (used only when no official logo file exists) */
.ty-pm-wordmark {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #161616;
  white-space: nowrap;
}

/* Reduced motion: no auto-scroll; the strip becomes swipeable instead */
@media (prefers-reduced-motion: reduce) {
  .ty-pm-track {
    animation: none;
  }
  .ty-pm-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 640px) {
  .ty-pm {
    padding: 48px 0 56px;
  }
  .ty-pm-card {
    min-width: 170px;
    height: 92px;
    margin-right: 16px;
    padding: 32px 20px 14px;
  }
  .ty-pm-logo-img {
    height: 34px;
    max-width: 130px;
  }
  .ty-pm-wordmark {
    font-size: 19px;
  }
}
