/* ==========================================================================
   Page-specific styles — team.html
   ========================================================================== */

/* PAGE HERO */
.team-hero {
  background: var(--navy-light);
  padding-top: 168px;
  text-align: center;
}
.team-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.team-hero .eyebrow {
  justify-content: center;
}
.team-hero h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.team-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* TEAM */
.team-section {
  background: var(--navy);
}
.team-tier {
  margin-bottom: 64px;
}
.team-tier:last-child {
  margin-bottom: 0;
}
.team-tier-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dimmer);
  margin-bottom: 20px;
}
.team-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  /* background: var(--line); */
  border-radius: 8px;
  overflow: hidden;
}
.team-senior-grid,
.team-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.team-card {
  background: var(--navy);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.2s;
}
.team-card:hover,
.team-card:focus-visible {
  background: var(--navy-lighter);
}
.team-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}
.avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 4px solid var(--orange);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.team-card.senior .avatar,
.team-card.advisor .avatar {
  width: 220px;
  height: 220px;
  font-size: 14px;
  border-color: var(--ink);
  color: var(--ink);
}
.team-card.advisor .avatar {
  border-color: rgba(245, 243, 239, 0.4);
  color: var(--ink-dim);
}
.team-card h4 {
  font-size: 16px;
  font-weight: 700;
}
.team-card .role {
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.team-card.senior .role,
.team-card.advisor .role {
  color: var(--ink-dim);
}

/* BIO DRAWER */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 26, 51, 0.6);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.bio-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--navy-lighter);
  border-left: 1px solid var(--line);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.3, 1);
  overflow-y: auto;
  padding: 40px;
}
.bio-drawer.is-open {
  transform: translateX(0);
}
.drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: 1px solid rgba(245, 243, 239, 0.28);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.drawer-close:hover {
  border-color: var(--ink);
}
.drawer-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--orange);
  overflow: hidden;
  margin-bottom: 24px;
}
.drawer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio-drawer h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.bio-drawer .role {
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.bio-drawer .bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .team-hero {
    padding-top: 140px;
  }
  .team-lead-grid {
    grid-template-columns: 1fr;
  }
  .team-senior-grid,
  .team-adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bio-drawer {
    width: 380px;
  }
}
@media (max-width: 640px) {
  .team-hero {
    padding-top: 128px;
  }
  .team-senior-grid,
  .team-adv-grid {
    grid-template-columns: 1fr;
  }
  .bio-drawer {
    width: 100%;
    padding: 32px 24px;
  }
}
