/* ============================================================
   Team archive — grid of profile cards
   ============================================================ */

.team-archive {
  background: var(--white);
  padding: 40px 0 96px;
}

@media (max-width: 767.98px) {
  .team-archive { padding: 24px 0 72px; }
}


/* ============================================================
   Toolbar (count + sort if needed)
   ============================================================ */

.team-archive__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.team-archive__count {
  font-size: var(--fs-14);
  color: var(--text-muted);
}

.team-archive__count strong {
  color: var(--ink);
  font-weight: 600;
}


/* ============================================================
   Grid
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
}

@media (max-width: 1023.98px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
}

@media (max-width: 575.98px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
}

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


/* ============================================================
   Profile card — editorial, photo + name + role
   ============================================================ */

.team-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: transparent;
  transition: transform var(--dur) var(--ease);
}

.team-card:hover { transform: translateY(-3px); }

.team-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-3);
  background: var(--paper);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(0.96);
  transition: transform var(--dur-slow) var(--ease),
              filter var(--dur) var(--ease);
}

.team-card:hover .team-card__media img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1);
}

.team-card__role-eyebrow {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.team-card__name {
  font-size: var(--fs-16);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color var(--dur-fast) var(--ease);
}

.team-card:hover .team-card__name { color: var(--red); }

.team-card__role {
  font-size: var(--fs-14);
  color: var(--text-muted);
  line-height: 1.45;
}

.team-card__unit {
  font-size: var(--fs-12);
  color: var(--text-faint);
  margin-top: 6px;
  line-height: 1.4;
}


/* ============================================================
   Filter behavior — JS toggles .is-hidden on cards
   ============================================================ */

.team-card.is-hidden { display: none; }


/* ============================================================
   Empty state (no results — currently unreachable but defined)
   ============================================================ */

.team-empty {
  display: none;
  text-align: center;
  padding: 64px 24px;
  background: var(--paper-2);
  border-radius: var(--r-4);
}

.team-empty.is-visible { display: block; }
