/* =========================================
   TEAM PAGE
   Needs hero.css for the flat banner hero (.hero-section--short).
========================================= */

.team-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 0;
}

.team-section--last {
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.team-banner {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: 0.7rem 1.1rem;
  border-radius: 6px;
  background: var(--accent);
  color: #1d1a52;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.team-grid--lead {
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.team-card {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #1a1850;
}

.team-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 3px solid var(--accent);
}

.team-name {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.team-role {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
