:root {
  --ink: #17202a;
  --muted: #5c6670;
  --line: #d8dedf;
  --paper: #fbfbf8;
  --soft: #eef3ef;
  --accent: #006b5f;
  --accent-dark: #06463f;
  --gold: #b87922;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(18, 32, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(251, 251, 248, 0.94);
  box-shadow: 0 1px 0 rgba(23, 32, 42, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  opacity: 0.76;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 30px);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 15, 20, 0.82) 0%, rgba(7, 15, 20, 0.62) 42%, rgba(7, 15, 20, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 15, 20, 0.48), rgba(7, 15, 20, 0.04) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 74px;
}

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

.hero h1,
.section h2,
.intro h2,
.site-footer h2 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.02;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.6rem, 5.8vw, 5.2rem);
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2.1vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

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

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(70px, 9vw, 118px) 0;
}

.section-band {
  background: var(--soft);
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  padding: clamp(46px, 6vw, 76px) 0;
}

.profile-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: start;
}

.profile-grid {
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  align-items: center;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 24%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-grid a {
  color: var(--accent);
  font-weight: 800;
}

.profile-grid p + p {
  margin-top: 14px;
}

.intro h2,
.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.profile-grid p,
.section-heading p,
.student-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 30px;
}

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

.section-heading.row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.course-list article,
.publication-list article,
.timeline-list article,
.funding-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 32, 42, 0.04);
}

.feature-card {
  min-height: 270px;
  padding: 26px;
}

.card-index,
.pub-year {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-card h3,
.course-list h3,
.publication-list h3 {
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.28;
}

.feature-card p,
.course-list p,
.publication-list p {
  margin: 0;
  color: var(--muted);
}

.course-list {
  display: grid;
  gap: 14px;
}

.course-list article,
.timeline-list article,
.funding-list article {
  padding: 22px;
}

.course-list h3,
.timeline-list h3,
.funding-list h3 {
  margin-top: 0;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.publication-list {
  display: grid;
  gap: 14px;
}

.timeline-list,
.funding-list {
  display: grid;
  gap: 14px;
}

.publication-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
}

.publication-list h3,
.timeline-list h3,
.funding-list h3 {
  margin-top: 0;
}

.timeline-date {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.timeline-list p:not(.timeline-date),
.funding-list p {
  margin: 0;
  color: var(--muted);
}

.student-panel {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.site-footer {
  padding: 46px 0;
  color: var(--white);
  background: #17202a;
}

.footer-grid {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
}

.site-footer h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

address {
  display: grid;
  gap: 8px;
  font-style: normal;
  font-weight: 700;
}

address a:hover {
  color: var(--gold);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 10px 8px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    width: min(620px, calc(100% - 36px));
    margin: 0 auto;
  }

  .profile-grid,
  .two-column,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 340px;
  }

  .feature-card {
    min-height: 0;
  }

  .section-heading.row,
  .footer-grid {
    align-items: start;
    flex-direction: column;
  }

  .profile-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 68px;
    padding-inline: 14px;
  }

  .brand span:last-child {
    max-width: 190px;
  }

  .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(7, 15, 20, 0.86), rgba(7, 15, 20, 0.44));
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .publication-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .publication-list p:last-child {
    grid-column: auto;
  }
}
