/* ============================================
   REVAMP TEAM GRID — Member cards
   ============================================ */

.rtg__header {
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.rtg__eyebrow {
  margin: 0 0 var(--space-md);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--clr-primary);
}

.rtg__heading {
  margin: 0;
  line-height: 1.0;
  letter-spacing: 0.018em;
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
}

.rtg__heading-line1 {
  display: block;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clr-primary);
}

.rtg__heading-line2 {
  display: block;
  font-weight: 400;
  color: var(--clr-primary);
  letter-spacing: 0;
  font-size: 0.82em;
  line-height: 1.05;
  margin-top: var(--space-xs);
}

/* Grid — horizontal scroller on mobile (12 members = long scroll otherwise), grid on tablet+ */
.rtg__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-sm);
  justify-content: safe center;
}

.rtg__grid::-webkit-scrollbar { display: none; }

@media (min-width: 600px) {
  /* Tablet+: switch from grid to flex so incomplete last rows can
     center within the leftover space. Each card has a fixed
     flex-basis equal to (100% − gaps) / cols and never grows or
     shrinks — so full rows tile flush (identical to the previous
     grid layout) and partial rows sit centered as a group. */
  .rtg__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .rtg__card {
    flex: 0 0 calc((100% - var(--space-xl)) / 2);
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  .rtg__card {
    flex-basis: calc((100% - 2 * var(--space-xl)) / 3);
  }
}

/* Card */
.rtg__card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--clr-white);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.rtg__card:hover {
  border-color: var(--clr-primary);
  transform: translateY(-2px);
}

.rtg__photo-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--clr-bg-card-secondary);
  overflow: hidden;
}

.rtg__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rtg__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e3d6 0%, #c4c9b8 100%);
}

.rtg__info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.rtg__name {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--clr-primary);
  overflow-wrap: break-word;
}

.rtg__title {
  margin: 0 0 var(--space-sm);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--clr-brand-alt);
}

.rtg__bio {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 300;
  line-height: 1.65;
  color: var(--clr-text-secondary);
}
