:root { scroll-snap-type: none; }

.site-header nav a[aria-current] { color: var(--accent); }

.about .shell, .site-footer .shell {
  width: min(100% - 2 * var(--gutter), 84rem);
  margin-inline: auto;
}

.page-intro {
  padding-block: clamp(1.8rem, 4.5vw, 4.25rem) clamp(1.8rem, 3.5vw, 3.25rem);
}

.page-intro h1,
.about h2 {
  margin: 0;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.048em;
}

.page-intro h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); }
.about h2 { font-size: clamp(2rem, 3.8vw, 3.55rem); }

.lab-name {
  margin: 1rem 0 0;
  color: var(--accent);
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  font-weight: 570;
}

.page-intro .intro {
  max-width: 57ch;
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.person-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.4rem, 4.2vw, 3.6rem);
  padding-block: clamp(1.6rem, 3.7vw, 3.25rem);
}

.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; border-radius: .65rem; }

.person-copy p {
  max-width: 62ch;
  margin: .9rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.person-copy .affiliation { margin: 0 0 .55rem; color: var(--accent); font-weight: 570; }
.person-copy .role { color: var(--ink); font-weight: 560; }
.text-links { display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; margin-top: 1.1rem; }
.text-links a, .site-footer a { text-underline-offset: .28em; }
.text-links a { color: var(--accent); font-weight: 570; }

.team { padding-block: clamp(2.3rem, 6vw, 5.5rem); }

.team-group { margin-top: 2rem; }
.team-group + .team-group { margin-top: 2.35rem; }

.team-group h3 {
  margin: 0;
  font-size: clamp(1.16rem, 2.2vw, 1.65rem);
  font-weight: 560;
  letter-spacing: -.02em;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 17rem));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: .8rem 0 0;
}

.student-placeholder, .student-profile {
  overflow: hidden;
  border-radius: .65rem;
  background: var(--glass);
}

.student-photo {
  display: grid;
  place-items: center;
  min-height: 8rem;
  aspect-ratio: 4 / 3;
  padding: .7rem;
  background:
    repeating-linear-gradient(122deg, transparent 0 25px, #c68d9810 26px, transparent 27px 56px),
    radial-gradient(ellipse at 10% 5%, color-mix(in srgb, var(--coral) 15%, transparent), transparent 65%);
  color: var(--muted);
  text-align: center;
}

.student-placeholder p { margin: 0; padding: .8rem .95rem; font-weight: 550; }

.student-profile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.student-profile-copy { padding: .85rem 1rem 1.1rem; }
.student-profile h4 { margin: 0; font-size: 1.15rem; font-weight: 620; }
.student-profile p { margin: .45rem 0 0; color: var(--muted); line-height: 1.5; }
.student-profile .student-role { margin-top: .18rem; color: var(--accent); }
.student-profile .text-links { margin-top: .8rem; }

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem 1.35rem;
  padding-block: 1.6rem;
  color: var(--muted);
}

.footer-inner p { margin: .3rem 0 0; }
.footer-brand { color: var(--ink); font-weight: 620; text-decoration: none; }

@media (max-width: 760px) {
  .person-section { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 34rem; }
}

@media (max-width: 520px) {
  .student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .student-profile { grid-column: 1 / -1; max-width: 22rem; }
}

.projects .shell {
  width: min(100% - 2 * var(--gutter), 84rem);
  margin-inline: auto;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2.5vw, 1.75rem);
  margin-top: clamp(1.25rem, 3vw, 2.5rem);
}

.project-grid .student-photo { aspect-ratio: 16 / 9; }
.project-grid h2 { margin: 1rem 1rem .3rem; font-size: 1.2rem; }
.project-grid p { padding: 0 1rem 1.1rem; color: var(--muted); font-weight: 400; }

@media (max-width: 760px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); }
}
