/* Public Our Team page — tiered staff directory */

.team-page {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ----- Hero ----- */
.team-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(238, 242, 255, 0.85) 45%, rgba(224, 231, 255, 0.9) 100%);
  box-shadow:
    0 4px 24px rgba(79, 70, 229, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(12px);
}

.team-hero__glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(109, 40, 217, 0.18), transparent 68%);
  pointer-events: none;
}

.team-hero__inner {
  position: relative;
  padding: 2.5rem 1.75rem;
}

@media (min-width: 640px) {
  .team-hero__inner {
    padding: 3rem 2.5rem;
  }
}

.team-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6366f1;
}

.team-hero__title {
  margin-top: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
}

@media (min-width: 640px) {
  .team-hero__title {
    font-size: 2.75rem;
  }
}

.team-hero__lead {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
}

.team-hero__meta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.1);
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4338ca;
}

/* ----- Tier sections ----- */
.team-tier__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.team-tier__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.team-tier__count {
  display: inline-flex;
  min-width: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #e0e7ff;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4338ca;
}

/* ----- Card grids ----- */
.team-tier-grid {
  display: grid;
  gap: 1.25rem;
}

.team-tier-grid--leadership {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .team-tier-grid--leadership {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.team-tier-grid--senior {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .team-tier-grid--senior {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .team-tier-grid--senior {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.team-tier-grid--coordination {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .team-tier-grid--coordination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .team-tier-grid--coordination {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.team-tier-grid--faculty {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .team-tier-grid--faculty {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .team-tier-grid--faculty {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .team-tier-grid--faculty {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ----- Cards ----- */
.team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.06),
    0 8px 24px rgba(79, 70, 229, 0.05);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.08),
    0 16px 40px rgba(79, 70, 229, 0.12);
}

.team-card--featured {
  flex-direction: row;
  align-items: stretch;
}

@media (max-width: 639px) {
  .team-card--featured {
    flex-direction: column;
  }
}

.team-card--featured .team-card__media {
  flex: 0 0 42%;
  max-width: 42%;
  aspect-ratio: 4 / 5;
}

@media (max-width: 639px) {
  .team-card--featured .team-card__media {
    flex: none;
    max-width: none;
    aspect-ratio: 16 / 10;
  }
}

.team-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #e0e7ff 0%, #c7d2fe 50%, #ddd6fe 100%);
}

.team-card--featured .team-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.75rem;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(67, 56, 202, 0.55);
}

.team-card--featured .team-card__photo--placeholder {
  font-size: 3.5rem;
}

.team-card__media-accent {
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.35), transparent);
  pointer-events: none;
}

.team-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.team-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.team-card--featured .team-card__name {
  font-size: 1.35rem;
}

.team-card__role {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4f46e5;
}

.team-card__department {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
}

.team-card__bio {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
}

.team-card--featured .team-card__bio {
  font-size: 0.9375rem;
}

.team-card__quals {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

.team-card__quals-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.team-card__quals-list {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #334155;
}

.team-card__quals-list li + li {
  margin-top: 0.2rem;
}

/* ----- Empty state ----- */
.team-empty {
  border-radius: 1rem;
  border: 2px dashed rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.5);
  padding: 3rem 1.5rem;
  text-align: center;
}

.team-empty__icon {
  display: flex;
  justify-content: center;
  color: #a5b4fc;
}

.team-empty__title {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #334155;
}

.team-empty__text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: #64748b;
}
