/* ── Team page styles ───────────────────────────────────────── */

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Page hero ───────────────────────────────────────────────── */
.team-hero {
  position: relative;
  padding: 110px 0 96px;
  background: var(--bg);
  overflow: hidden;
}

.team-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.5;
}

.team-hero__glow--1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(60, 106, 180, 0.65), transparent 70%);
  top: -140px;
  right: -60px;
}

.team-hero__glow--2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(119, 180, 255, 0.35), transparent 70%);
  bottom: -80px;
  left: 10%;
}

.team-hero__content {
  position: relative;
  max-width: 680px;
  z-index: 1;
}

/* ── Team grid ───────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 16px;
}

/* ── Team card ───────────────────────────────────────────────── */
.team-card {
  background: radial-gradient(
      circle at 10% 10%,
      rgba(92, 137, 214, 0.1),
      transparent 35%
    ),
    rgba(12, 17, 32, 0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(92, 137, 214, 0.35);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.team-card__photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(18%);
  transition: filter 300ms ease, transform 300ms ease;
}

.team-card:hover .team-card__photo {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.team-card__body {
  padding: 24px;
  display: grid;
  gap: 10px;
}

.team-card__name {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-card__role {
  /* extends .eyebrow-badge */
  align-self: start;
}

.team-card__bio {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.team-card__links {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.team-card__social {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.team-card__social svg {
  width: 16px;
  height: 16px;
}

.team-card__social:hover,
.team-card__social:focus-visible {
  color: #93c5fd;
  background: rgba(92, 137, 214, 0.15);
  border-color: rgba(92, 137, 214, 0.4);
}

/* ── Values grid ─────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.value-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 10px;
  transition: border-color 180ms ease, background 180ms ease;
}

.value-card:hover {
  border-color: rgba(92, 137, 214, 0.3);
  background: rgba(92, 137, 214, 0.05);
}

.value-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
}

.value-card__icon svg {
  width: 100%;
  height: 100%;
}

.value-card__title {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
}

.value-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ── CTA strip ───────────────────────────────────────────────── */
.team-cta {
  background: linear-gradient(
    140deg,
    rgba(60, 106, 180, 0.12) 0%,
    transparent 60%
  );
  border-top: 1px solid var(--border);
}

.team-cta__inner {
  text-align: center;
  display: grid;
  place-items: center;
  gap: 16px;
}

.team-cta__inner h2 {
  margin: 0;
}

.team-cta__inner .section__summary {
  max-width: 460px;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .team-hero {
    padding: 80px 0 64px;
  }

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

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