/* ─── PEOPLE PAGE ──────────────────────────────────────────── */

.people-page {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* Page title */
.page-title-wrap {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

/* ── SECTION ── */
.people-section {
  margin-bottom: 3.5rem;
  animation: fadeUp 0.45s var(--ease-out-expo) both;
}

.people-section:nth-child(1) { animation-delay: 0.05s; }
.people-section:nth-child(2) { animation-delay: 0.12s; }
.people-section:nth-child(3) { animation-delay: 0.18s; }
.people-section:nth-child(4) { animation-delay: 0.24s; }
.people-section:nth-child(5) { animation-delay: 0.30s; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-count {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

/* ── GRIDS ── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.people-grid--professor {
  grid-template-columns: 1fr;
}

/* ── PERSON CARD ── */
.person-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.3s var(--ease-out-expo);
  position: relative;
}

.person-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.05);
  border-color: rgba(176,0,0,0.2);
  transform: translateY(-2px);
}

/* Professor: horizontal layout */
.person-card--professor {
  display: grid;
  grid-template-columns: 160px 1fr;
}

/* Photo */
.person-photo-wrap {
  position: relative;
  overflow: hidden;
  background: #e8e4de;
  aspect-ratio: 3 / 4;
}

.person-card--professor .person-photo-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 220px;
}

.person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.3s;
  opacity: 0.95;
}
.person-photo {
  display: block;
}

/* .people-grid:not(.people-grid--professor) .person-photo {
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--rule);
} */
.people-grid:not(.people-grid--professor) .person-photo-wrap {
  aspect-ratio: 1 / 1; 
}
.people-grid:not(.people-grid--professor) .person-card {
  display: flex;
  flex-direction: column;
}
.person-card:hover .person-photo {
  transform: scale(1.04);
  opacity: 1;
}

/* .people-grid:not(.people-grid--professor) .person-photo-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto 0;
  overflow: hidden;
} */

/* Card body */
.person-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.person-card--professor .person-body {
  padding: 1.75rem 2rem;
  justify-content: center;
}

.person-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

.person-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.person-card--professor .person-name {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.person-name a {
  text-decoration: none;
  transition: color 0.15s;
}

.person-name a:hover {
  color: var(--red);
}

.person-edu {
  font-size: 0.78rem;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  flex: 1;
}

.person-edu a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* Link pills */
.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.person-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.28rem 0.65rem;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink-mid);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.person-link:hover {
  background: var(--red-light);
  color: var(--red-dark);
  border-color: rgba(176,0,0,0.25);
}

/* Alumni link */
.alumni-link-wrap {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.alumni-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--red-dark);
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(176,0,0,0.25);
  border-radius: 8px;
  background: var(--red-light);
  transition: background 0.15s, border-color 0.15s;
}

.alumni-link:hover {
  background: #eedada;
  border-color: rgba(176,0,0,0.4);
}

.alumni-link::after {
  content: '→';
  font-size: 0.8rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .person-card--professor {
    grid-template-columns: 1fr;
  }

  .person-card--professor .person-photo-wrap {
    /* aspect-ratio: 7 / 9; */
    aspect-ratio: auto;
    height: auto;
    width: 100%;
    max-height: 320px;
  }

  .people-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .section-heading h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 430px) {
  .person-card--professor .person-photo-wrap {
    aspect-ratio: auto;
    height: auto;
    width: 100%;
    max-height: 320px;
  }
}