.team-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(141, 109, 255, 0.25), transparent 34%),
    radial-gradient(circle at 90% 92%, rgba(255, 200, 87, 0.18), transparent 34%),
    linear-gradient(180deg, #191336 0%, #0a0d14 46%, #11131a 100%);
}

.team-hero {
  position: relative;
  min-height: 340px;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 92px 5vw 36px;
  isolation: isolate;
}

.team-hero > :not(.team-orbit) {
  position: relative;
  z-index: 2;
}

.team-orbit {
  z-index: 1;
  opacity: 0.62;
}

.team-hero h1 {
  max-width: 980px;
  margin-bottom: 14px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
}

.team-hero p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 5vw 88px;
}

.team-card {
  min-height: 620px;
  padding: 26px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 23, 33, 0.96), rgba(18, 23, 33, 0.84)),
    var(--surface);
  box-shadow: var(--shadow);
}

.team-photo {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.initials-photo {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 200, 87, 0.44), transparent 22%),
    radial-gradient(circle at 24% 72%, rgba(54, 224, 161, 0.28), transparent 30%),
    linear-gradient(135deg, #111722, #22143a 52%, #0b0e16);
}

.accent-photo {
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 54, 95, 0.42), transparent 24%),
    radial-gradient(circle at 28% 76%, rgba(54, 224, 161, 0.26), transparent 30%),
    linear-gradient(135deg, #111722, #2b1732 52%, #0b0e16);
}

.initials-photo span {
  color: #fff;
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1;
}

.team-card-copy,
.team-front {
  color: var(--muted);
}

.team-role {
  margin-bottom: 4px;
  color: #b9c3d4;
  font-weight: 800;
}

.team-card h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.42rem;
  line-height: 1.1;
}

.team-description {
  margin-bottom: 0;
}

.team-divider {
  height: 1px;
  margin: 20px 0 18px;
  background: rgba(255, 255, 255, 0.12);
}

.team-front h3 {
  margin-bottom: 14px;
  color: #b9c3d4;
  font-size: 1rem;
}

.team-front ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.team-front strong {
  color: var(--text);
}

@media (max-width: 940px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .team-hero {
    min-height: 300px;
    padding: 64px 5vw 30px;
  }

  .team-hero h1 {
    font-size: 3rem;
  }

  .team-card {
    padding: 20px;
  }
}
