/* ── TEAM ──────────────────────────────────────────── */
.team {
  background: var(--white);
  padding: 112px 0;
}

.team-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}
.team-head > div { flex: 1; }
.team-head-desc {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-700);
  align-self: flex-end;
}

/* Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.team-card {
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform var(--ease-f), box-shadow var(--ease-f);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-photo-wrap {
  position: relative;
  overflow: hidden;
}
.team-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform var(--ease-b);
}
.team-card:hover .team-photo { transform: scale(1.04); }

/* Specialty badge on photo */
.team-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--sky);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Card body */
.team-body {
  padding: 24px;
}
.team-name {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.team-role {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--sky);
  margin-bottom: 10px;
}
.team-bio {
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .team-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .team-head-desc { max-width: 100%; }
}
@media (max-width: 820px) {
  .team { padding: 80px 0; }
  .team-head { margin-bottom: 48px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .team-photo { height: 280px; }
}
