.team-site {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #0b0b12;
}

.team-site #footer {
  flex: 0 0 auto;
}

.team-page {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  flex: 1 0 auto;
  min-height: calc(100vh - 4rem);
  overflow: hidden;
  padding: clamp(6.5rem, 13vh, 9.5rem) max(1.25rem, calc((100vw - 1160px) / 2)) 5rem;
  color: #f8fafc;
  background:
    radial-gradient(ellipse at 14% 4%, rgb(140 79 220 / 25%), transparent 34rem),
    radial-gradient(ellipse at 94% 28%, rgb(52 83 167 / 19%), transparent 34rem),
    linear-gradient(180deg, #0c0b13, #0a0a10 72%);
}

.team-header {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto clamp(3rem, 7vw, 5.5rem);
}

.team-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: #c8a8ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.team-eyebrow::before {
  width: 1.65rem;
  height: 1px;
  background: linear-gradient(90deg, #c8a8ff, #88ffeb);
  content: "";
}

.team-header h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 750;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.team-header h1 span {
  color: #c8a8ff;
}

.team-intro {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: #b9b6c7;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.team-status {
  max-width: 1160px;
  margin: 2rem auto;
  color: #c5c5d0;
  text-align: center;
}

.team-status[hidden] {
  display: none;
}

.team-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #d7d4e2;
  font-size: 0.95rem;
}

.team-loading-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgb(255 255 255 / 18%);
  border-top-color: #c8a8ff;
  border-radius: 50%;
  animation: team-spinner 800ms linear infinite;
}

@keyframes team-spinner {
  to {
    transform: rotate(360deg);
  }
}

.team-section {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto clamp(3.5rem, 7vw, 5rem);
}

.team-section:last-child {
  margin-bottom: 0;
}

.team-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.team-section-heading h2 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.team-section-heading h2::before {
  width: 0.25rem;
  height: 1.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #c8a8ff, #88ffeb);
  content: "";
}

.team-section-count {
  flex: 0 0 auto;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgb(200 168 255 / 22%);
  border-radius: 999px;
  background: rgb(200 168 255 / 7%);
  color: #cfc4e6;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.35rem);
}

.team-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 1%)), #11111a;
  box-shadow: 0 14px 34px rgb(0 0 0 / 24%);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgb(202 164 255 / 48%);
  box-shadow: 0 24px 48px rgb(0 0 0 / 42%);
}

.team-card-portrait {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  background:
    radial-gradient(ellipse at 50% 35%, rgb(142 95 210 / 26%), transparent 65%),
    linear-gradient(145deg, #252431, #15151e);
}

.team-card-portrait::after {
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(180deg, transparent, rgb(8 8 14 / 35%));
  content: "";
  pointer-events: none;
}

.team-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.team-card:hover .team-card-image {
  transform: scale(1.045);
}

.team-card-image--placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #d5c9e9;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.team-card-info {
  min-height: 6rem;
  padding: 1rem 1rem 1.2rem;
}

.team-card h3 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.team-card p {
  margin: 0;
  color: #aaa7b8;
  font-size: 0.85rem;
  line-height: 1.5;
}

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

@media (max-width: 640px) {
  .team-page {
    padding: 6.5rem 1rem 3.5rem;
  }

  .team-header {
    margin-bottom: 3.25rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .team-section-heading {
    margin-bottom: 1rem;
  }

  .team-card {
    border-radius: 0.8rem;
  }

  .team-card-info {
    min-height: 5.8rem;
    padding: 0.8rem;
  }

  .team-card h3 {
    font-size: 0.95rem;
  }

  .team-card p {
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .team-section-heading {
    align-items: flex-start;
  }

  .team-section-count {
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-loading-spinner {
    animation: none;
  }

  .team-card,
  .team-card-image {
    transition: none;
  }

  .team-card:hover,
  .team-card:hover .team-card-image {
    transform: none;
  }
}
