/* Team marquee on the landing page: one row, Admin first down to Supporter,
   moving right to left in an endless loop. Pauses on hover and focus. */

.team-marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.team-track {
  display: flex;
  width: max-content;
  animation: team-scroll var(--team-duration, 60s) linear infinite;
}
/* Without landing-motion.js the band simply stops; with it, it glides to a stop. */
.team-marquee:not(.team-marquee-eased):hover .team-track,
.team-marquee:focus-within .team-track { animation-play-state: paused; }
.team-list {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0 7px;
  list-style: none;
}
@keyframes team-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.team-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--calm-line, rgba(127,127,127,.2));
  border-radius: 999px;
  background: var(--photo-card, var(--bg-tertiary));
}
.team-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  background: color-mix(in srgb, var(--calm-accent, #8a5cf5) 28%, transparent);
}
.team-person div strong {
  display: block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .95rem;
}
.team-person div span { display: block; font-size: .8rem; color: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
  .team-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .team-track { animation: none; }
  .team-list[aria-hidden="true"] { display: none; }
}
