/* Team: four cards in the footer/Figma container. Card = 298 x 468 Figma px. cqw only works on things INSIDE a card,
   so the card's own padding uses % and the radius uses vw. 20px = 6.71cqw, 14px = 4.7cqw. */
.team { padding-top: 2.4vw; padding-bottom: 6.7vw; }
.team__head { text-align: center; }
.team__title { margin-top: .8vw; font-size: clamp(1.9rem, 2.5vw, 3rem); line-height: 1.18; font-weight: 600; letter-spacing: -.02em; color: #101828; }

.team__grid {
  width: min(73.4vw, 1410px); margin: 3.6vw auto 0;                                      /* cards start 69px under the heading */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.56vw, 1.9rem);
}
.team-card {
  container-type: inline-size; aspect-ratio: 298 / 468; padding: 3.36%;
  background: #f5f5f5; border-radius: min(1.15vw, 22px); color: #101828;
  display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.team-card:hover { transform: translateY(-.5rem); box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 12px 24px -10px rgba(16,24,40,.18); }

.team-card__photo { overflow: hidden; border-radius: 4.7cqw; flex: none; }
.team-card__photo img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease); }
.team-card:hover .team-card__photo img { transform: scale(1.05); }

.team-card__info { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2.4cqw; padding-bottom: 2cqw; }
.team-card__name { font-size: 6.71cqw; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.team-card__role { font-size: 4.7cqw; line-height: 1.5; font-weight: 400; color: rgba(16,24,40,.6); }

@media (max-width: 1000px) {
  .team { padding-top: 1rem; padding-bottom: 3rem; }
  .team__title { margin-top: .6rem; }
  .team__grid { width: calc(100% - 2 * var(--gutter)); margin-top: 1.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .team-card:hover { transform: none; box-shadow: none; }
}
@media (max-width: 480px) {
  .team__grid { grid-template-columns: minmax(0, 1fr); max-width: 22rem; }
}
