/* ==========================================================
   TEAM — 7 members
   ========================================================== */
.team {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 44px 110px;
}

.team h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 600;
  letter-spacing: -0.028em;
  margin-bottom: 12px;
}

.team .sub {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  margin-bottom: 46px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.team-member .photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #efece6, #e2ddd3);
  margin-bottom: 14px;
  position: relative;
}

.team-member .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
  transition: transform 0.4s ease;
}

.team-member:hover .photo img { transform: scale(1.04); }

/* fallback initial shown behind image; visible if photo missing */
.team-member .photo::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 600;
  color: rgba(16,16,20,0.18);
}

.team-member .photo img { position: relative; z-index: 1; }

.team-member .role {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  margin-bottom: 3px;
}

.team-member .name {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 7px;
}

.team-member .bio {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text-body);
}


/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .team { padding: 24px 20px 70px; }
  .team-grid { grid-template-columns: 1fr; gap: 28px; }
}
