/* The team grid is the no-JavaScript and phone fallback. On wider screens the cards keep
   their three-column width in one full-width row: centred and scrollable for up to four
   people, an endless carousel from five. */
.team-carousel.is-row { width: 100vw; margin-left: calc(50% - 50vw); mask-image: linear-gradient(to right,transparent,#000 6%,#000 94%,transparent); }
.team-carousel.is-row:not(.is-animated) { overflow-x: auto; scrollbar-width: none; }
.team-carousel.is-row:not(.is-animated)::-webkit-scrollbar { display: none; }
.team-carousel.is-row .team-carousel-track { display: flex; width: max-content; margin-inline: auto; }
#team .team-carousel.is-row .team-grid { display: flex; flex: 0 0 auto; align-items: stretch; }
#team .team-carousel.is-row .person { flex: 0 0 var(--team-card-width); width: var(--team-card-width); }
.team-carousel.is-animated { overflow: hidden; }
.team-carousel.is-animated .team-carousel-track { margin-inline: 0; animation: team-marquee var(--team-duration,60s) linear infinite; }
#team .team-carousel.is-animated .team-grid { padding-right: var(--team-gap,24px); }
.team-carousel.is-offscreen .team-carousel-track,
.team-carousel:focus-within .team-carousel-track,
.motion-paused .team-carousel-track,
.motion-suspended .team-carousel-track { animation-play-state: paused; }
@media (hover:hover) { .team-carousel:hover .team-carousel-track { animation-play-state: paused; } }
@keyframes team-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion:reduce) {
  .team-carousel.is-animated .team-carousel-track { animation: none; }
}
