:root {
  --ink: #17202a;
  --muted: #536270;
  --line: #d9e2e7;
  --paper: #f8faf9;
  --white: #ffffff;
  --teal: #167a7f;
  --coral: #cc5f4d;
  --navy: #203a59;
  --gold: #b58b2b;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: rgba(22, 122, 127, 0.45);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal);
}

.site-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 249, 0.88);
  border-bottom: 1px solid rgba(217, 226, 231, 0.85);
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 5vw;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 68px);
  overflow: hidden;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(248, 250, 249, 0.98) 0%, rgba(248, 250, 249, 0.86) 37%, rgba(248, 250, 249, 0.28) 70%),
    linear-gradient(180deg, rgba(248, 250, 249, 0) 70%, var(--paper) 100%);
  inset: 0;
  position: absolute;
}

.hero-content {
  max-width: 760px;
  padding: 13vh 5vw 18vh;
  position: relative;
}

.eyebrow,
.section-kicker,
.role {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--navy);
  font-size: clamp(3.8rem, 9.5vw, 7.6rem);
  line-height: 0.96;
  margin-bottom: 1.5rem;
  max-width: 820px;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

h3 {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 0.7rem;
}


.hero-subtitle {
  color: var(--teal);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 850;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.lead {
  color: #26323c;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  max-width: 640px;
}

.hero-actions,
.section-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 750;
  min-height: 44px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 5rem 5vw;
}

.intro,
.contact,
.funding {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
}

.intro p,
.contact p,
.funding p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.research-list {
  display: grid;
  gap: 1.25rem;
}

.research-row,
.profile-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(23, 32, 42, 0.06);
}

.research-row {
  display: grid;
  gap: 1.25rem;
  overflow: hidden;
}

.research-copy {
  padding: 1.35rem 1.35rem 0;
}

.research-row img {
  display: block;
  height: auto;
  width: 100%;
}

.tag {
  color: var(--coral);
  display: block;
  font-weight: 850;
  margin-bottom: 1rem;
}

.research-row p,
.software-card p,
.publication-grid,
address {
  color: var(--muted);
}

.funding {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(232, 245, 244, 0.9));
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  max-width: none;
  padding-left: max(5vw, calc((100vw - 1180px) / 2 + 5vw));
  padding-right: max(5vw, calc((100vw - 1180px) / 2 + 5vw));
}

.funding .button {
  justify-self: end;
  margin-top: 2rem;
}


.pi-intro {
  padding-top: 0;
}

.pi-card {
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
}

.pi-card img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.pi-copy {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.pi-copy h2 {
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.08;
  white-space: nowrap;
}

.pi-copy p {
  color: var(--muted);
  font-size: 1.02rem;
}

.pi-copy p:last-child {
  margin-bottom: 0;
}

.pi-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1.4rem;
}

.pi-links a {
  color: var(--navy);
  font-weight: 800;
}

.software-list {
  display: grid;
  gap: 1rem;
}

.software-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  padding: 1.25rem;
}

.software-card h3 {
  color: var(--teal);
}

.software-links {
  display: flex;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
}

.software-links a {
  color: var(--navy);
  font-weight: 800;
}

.software-links span {
  color: var(--gold);
  font-weight: 800;
}

.publications {
  border-top: 1px solid var(--line);
}

.publication-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publication-card {
  min-width: 0;
}

.publication-card img {
  aspect-ratio: 0.76;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(23, 32, 42, 0.12);
  display: block;
  object-fit: contain;
  padding: 0.35rem;
  width: 100%;
}

.publication-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 1rem 0 0;
}

.publication-card strong {
  color: var(--ink);
}

.profile-card {
  box-shadow: var(--shadow);
}

.people {
  display: block;
}


.recruiting-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding: 1.35rem;
}

.recruiting-note ol,
.recruiting-note ul {
  padding-left: 1.35rem;
}

.recruiting-note ol:last-child,
.recruiting-note ul:last-child,
.recruiting-note p:last-child {
  margin-bottom: 0;
}

.recruiting-note li + li {
  margin-top: 0.5rem;
}

.people-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


.alumni-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(23, 32, 42, 0.06);
  margin-top: 1.25rem;
  padding: 1.35rem;
}

.alumni-card h3 {
  margin-bottom: 1rem;
}

.alumni-card ul {
  color: var(--muted);
  display: grid;
  gap: 0.6rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.alumni-card li {
  border-bottom: 1px solid rgba(217, 226, 231, 0.75);
  padding-bottom: 0.55rem;
}

.person-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.person-card p {
  color: var(--muted);
}

.person-card a {
  color: var(--navy);
  font-weight: 800;
  overflow-wrap: anywhere;
}


.member-headshot {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  margin-bottom: 1rem;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.avatar {
  aspect-ratio: 1;
  background-image: url("assets/lab-avatars-sheet.png");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1rem;
  width: 100%;
}


.avatar-initials {
  align-items: center;
  background: linear-gradient(135deg, rgba(22, 122, 127, 0.12), rgba(181, 139, 43, 0.18));
  color: var(--navy);
  display: flex;
  font-size: 4rem;
  font-weight: 900;
  justify-content: center;
}

.avatar-student {
  background-position: 100% 0;
}

.avatar-postdoc {
  background-position: 0 100%;
}

.avatar-engineer {
  background-position: 100% 100%;
}

address {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  font-style: normal;
  padding: 1.4rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 2rem 5vw;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(248, 250, 249, 0.98) 0%, rgba(248, 250, 249, 0.86) 58%, rgba(248, 250, 249, 0.34) 100%);
  }

  .intro,
  .contact,
  .funding,
  .pi-card {
    grid-template-columns: 1fr;
  }

  .pi-card img {
    max-height: 560px;
    min-height: 0;
  }

  .funding .button {
    justify-self: start;
    margin-top: 0;
  }

  .publication-grid,
  .people-grid,
  .alumni-card ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  nav {
    gap: 0.75rem;
  }

  nav a {
    font-size: 0.86rem;
  }

  .hero {
    min-height: 690px;
  }

  .hero-content {
    padding-top: 10vh;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4.9rem);
    line-height: 1;
  }

  .pi-copy h2 {
    white-space: normal;
  }

  .section {
    padding-bottom: 3.5rem;
    padding-top: 3.5rem;
  }

  .publication-grid,
  .people-grid,
  .alumni-card ul,
  .software-card {
    grid-template-columns: 1fr;
  }

}
