.team-section {
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.team-heading {
  max-width: 820px;
  margin-bottom: clamp(2rem, 5vw, 3.75rem);
}

.team-heading h2 {
  max-width: 760px;
  margin: 0.75rem 0 1.25rem;
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.team-heading .section-lead {
  max-width: 760px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.team-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(91, 190, 244, 0.24);
  border-radius: 1.5rem;
  background:
    linear-gradient(145deg, rgba(13, 39, 58, 0.9), rgba(5, 15, 27, 0.98));
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.16);
}

.team-photo {
  position: relative;
  display: grid;
  min-height: 340px;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(91, 190, 244, 0.18);
  background:
    radial-gradient(circle at 50% 38%, rgba(38, 164, 235, 0.24), transparent 33%),
    linear-gradient(155deg, rgba(9, 38, 59, 0.96), rgba(4, 14, 25, 1));
}

.team-photo::before,
.team-photo::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.team-photo::before {
  inset: 1.15rem;
  border: 1px solid rgba(201, 163, 78, 0.3);
  border-radius: 1rem;
}

.team-photo::after {
  width: 42%;
  height: 1px;
  bottom: 3.1rem;
  background: linear-gradient(90deg, transparent, rgba(201, 163, 78, 0.8), transparent);
}

.team-photo span {
  color: rgba(246, 249, 252, 0.94);
  font-size: clamp(4.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.07em;
  text-shadow: 0 0 2.5rem rgba(38, 164, 235, 0.34);
}

.team-photo small {
  position: absolute;
  bottom: 1.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.team-card-copy {
  padding: clamp(1.35rem, 2.5vw, 2rem);
}

.team-card-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  letter-spacing: -0.04em;
}

.team-card-copy > p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.team-role {
  margin: 0.45rem 0 0;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.team-contact {
  margin-top: 0;
}

@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.5rem);
  }
}

@media (max-width: 660px) {
  .team-section {
    padding-block: 4.5rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .team-photo {
    min-height: 300px;
  }
}
