:root {
  --mint-bg:       #F5FFF9;  /* page / light sections */
  --lavender:      #CDB2E2;  /* accent — hero bg */
  --lavender-pale: #F7F1FC;  /* alternating sections */
  --lavender-soft: #E4D6F0;  /* borders / avatar backing */
  --purple-text:   #6E5084;  /* headings & strong text */
  --purple-deep:   #574066;  /* darkest heading */
  --teal:          #226663;  /* dark accent — buttons & labels */
  --teal-dark:     #1A4E4B;  /* button hover */
  --body:          #5A5266;  /* body copy */
  --border:        #E8E2F0;
  --white:         #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Raleway', sans-serif;
  background: var(--mint-bg);
  color: var(--body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .nav-logo, .hero-btn, .cv-link, .contact-form button, .section-label, .pub-group-title, .people-section-title {
  font-family: 'Space Grotesk', sans-serif;
}

/* ── NAV ── */
/* Scoped to body > nav so the footer's <nav class="footer-links"> is NOT
   promoted into a second fixed top bar. */
body > nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 68px;
  background: rgba(245,255,249,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 16px; font-weight: 700; color: var(--purple-deep);
  letter-spacing: -0.01em; text-decoration: none; max-width: 60%;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--purple-text); text-decoration: none;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--teal); font-weight: 700; }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--lavender);
  padding: 128px 24px 60px;
  text-align: center;
}
.page-header .section-label { color: var(--teal); margin-bottom: 12px; }
.page-header h1 {
  font-size: 46px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--purple-deep);
}
.page-header p {
  max-width: 620px; margin: 16px auto 0;
  font-size: 17px; color: var(--purple-deep);
}

/* ── HERO (home) ── */
#home {
  padding-top: 68px;
  background: var(--lavender);
  min-height: 580px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px;
}
.hero-title {
  font-size: 52px; font-weight: 700; line-height: 1.08;
  color: var(--purple-deep);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px; font-weight: 400; line-height: 1.7;
  color: var(--purple-deep);
  margin-bottom: 36px;
  max-width: 460px;
}
.hero-btn {
  display: inline-block;
  padding: 15px 38px;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.2s;
  align-self: flex-start;
}
.hero-btn:hover { background: var(--teal-dark); }
.hero-image { overflow: hidden; }
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── SECTIONS ── */
section { scroll-margin-top: 68px; }
.section-block {
  max-width: 980px; margin: 0 auto;
  padding: 96px 64px;
}
.section-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 14px;
}
.section-title {
  font-size: 36px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--purple-deep); margin-bottom: 36px;
}
.section-text {
  font-size: 16.5px; line-height: 1.85; color: var(--body);
  margin-bottom: 18px;
}

.bg-mint    { background: var(--mint-bg); }
.bg-pale    { background: var(--lavender-pale); }

/* ── ABOUT ── */
.about-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
.about-image img {
  width: 100%; display: block; border-radius: 2px;
}
.about-caption {
  font-size: 13px; color: var(--body); margin-top: 10px;
  font-style: italic; opacity: 0.85;
}
.about-quote {
  border-left: 3px solid var(--lavender);
  padding: 8px 22px;
  margin: 22px 0;
  font-size: 16.5px; font-style: italic;
  color: var(--purple-text); line-height: 1.7;
}
.cv-link {
  display: inline-block; margin-top: 22px;
  padding: 13px 30px;
  background: var(--teal); color: var(--white);
  text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s;
}
.cv-link:hover { background: var(--teal-dark); }

/* ── RESEARCH ── */
.research-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; margin-bottom: 56px;
}
.research-layout:last-child { margin-bottom: 0; }
.research-layout.reverse .research-text { order: 2; }
.research-image img {
  width: 100%; display: block; border-radius: 2px;
  aspect-ratio: 4 / 3; object-fit: cover;
}
/* Diagrams/figures: show the whole image instead of cropping it */
.research-image.diagram img {
  aspect-ratio: 16 / 9; object-fit: contain;
  background: var(--white); border: 1px solid var(--border);
  padding: 10px;
}
.research-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--purple-deep); margin-bottom: 14px; line-height: 1.25;
}
.research-card-text {
  font-size: 15.5px; line-height: 1.8; color: var(--body);
}
.research-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.research-status {
  display: inline-block; margin-bottom: 14px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.research-status.completed { background: #E2F0EC; color: var(--teal); }
.research-status.ongoing   { background: var(--lavender-soft); color: var(--purple-deep); }
.research-link {
  display: inline-block; margin-top: 16px;
  color: var(--teal); font-weight: 700; font-size: 14px; text-decoration: none;
}
.research-link:hover { text-decoration: underline; }
/* Placeholder panel for projects without a photo */
.research-image.placeholder {
  aspect-ratio: 4 / 3; border-radius: 2px;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--lavender-pale) 100%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.research-image.placeholder span {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 46px; letter-spacing: 0.03em; color: var(--purple-deep);
}

/* ── PUBLICATIONS ── */
.pub-banner {
  width: 100%; height: 200px; object-fit: cover;
  display: block; margin-bottom: 48px; border-radius: 2px;
}
.pub-group { margin-bottom: 40px; }
.pub-group:last-child { margin-bottom: 0; }
.pub-group-title {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px; margin-bottom: 14px;
}
.pub-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px; line-height: 1.65; color: var(--body);
}
.pub-item:last-child { border-bottom: none; }
.pub-title { font-weight: 700; color: var(--purple-text); }
.pub-item a { text-decoration: none; }
.pub-item a:hover { color: var(--teal); text-decoration: underline; }

/* ── PEOPLE ── */
/* Top-level group header: Leadership / Current Students / Previous Students */
.people-group-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 23px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--purple-deep);
  margin: 56px 0 10px;
}
.people-group-title:first-of-type { margin-top: 0; }
/* Sub-label within a group: Graduate Students / Undergraduate Students */
.people-section-title {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal);
  margin: 24px 0 14px;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px;
}
.person-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.person-card:hover {
  box-shadow: 0 8px 24px rgba(87,64,102,0.12);
  transform: translateY(-2px);
}
.person-photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  object-position: center top; display: block;
  background: var(--lavender-soft);
}
/* Initials placeholder for people without a photo yet */
.person-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 38px; font-weight: 700;
  color: var(--purple-deep);
  background: var(--lavender-soft);
}
.person-body { padding: 18px 18px 22px; text-align: center; }
.person-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--purple-deep);
}
.person-role { font-size: 13.5px; color: var(--body); margin-top: 5px; line-height: 1.45; }
/* Expandable "Read bio" */
.person-bio { margin-top: 12px; }
.person-bio summary {
  cursor: pointer; list-style: none;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--teal); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px;
}
.person-bio summary::-webkit-details-marker { display: none; }
.person-bio summary::after { content: '+'; font-size: 15px; line-height: 1; }
.person-bio[open] summary::after { content: '–'; }
.person-bio p {
  margin-top: 10px; text-align: left;
  font-size: 13.5px; line-height: 1.6; color: var(--body);
}
.bio-link {
  display: inline-block; margin-top: 10px;
  color: var(--teal); font-weight: 700; font-size: 13px; text-decoration: none;
}
.bio-link:hover { text-decoration: underline; }

/* Leadership card — wider, with bio */
.leader-card {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 36px; align-items: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 2px; padding: 32px; margin-bottom: 8px;
}
.leader-card img {
  width: 220px; height: 220px; object-fit: cover;
  object-position: center top; border-radius: 2px;
}
.leader-name { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--purple-deep); }
.leader-role { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin: 6px 0 14px; font-weight: 600; }
.leader-bio { font-size: 15.5px; line-height: 1.75; color: var(--body); }

/* ── CONTACT ── */
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
.contact-info p { font-size: 15.5px; color: var(--body); line-height: 1.8; }
.contact-info a { color: var(--teal); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.contact-block { margin-top: 22px; }
.contact-block strong { color: var(--purple-text); font-weight: 700; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border); border-radius: 2px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px; color: var(--purple-deep);
  background: var(--white); outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--lavender); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
  padding: 13px 34px;
  background: var(--teal); color: var(--white);
  border: none; cursor: pointer; border-radius: 2px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.2s; align-self: flex-start;
}
.contact-form button:hover { background: var(--teal-dark); }

/* ── FOOTER ── */
footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.6);
  padding: 36px 64px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; gap: 20px;
}
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 26px; }

/* ── MOBILE ── */
@media (max-width: 860px) {
  body > nav { padding: 0 22px; height: 60px; }
  .nav-logo { font-size: 13px; max-width: 50%; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  #home { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-text { padding: 56px 24px; }
  .hero-title { font-size: 34px; }
  .hero-image { min-height: 280px; }
  .page-header { padding: 104px 22px 48px; }
  .page-header h1 { font-size: 34px; }
  .section-block { padding: 64px 24px; }
  .section-title { font-size: 28px; }
  .about-layout,
  .research-layout,
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .research-layout.reverse .research-text { order: 0; }
  .leader-card { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .leader-card img { width: 180px; height: 180px; margin: 0 auto; }
  footer { flex-direction: column; gap: 14px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ── FOOTER PROFILE LINKS ── */
footer { flex-wrap: wrap; row-gap: 18px; }
.footer-social {
  flex-basis: 100%; display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-social a { font-weight: 500; }
@media (max-width: 768px) { .footer-social { justify-content: center; } }

/* Project logos: shown whole on white, with breathing room */
.research-image.diagram.logo img { aspect-ratio: 4 / 3; padding: 40px; }
