:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --paper-tint: #eef3f0;
  --ink: #171d1f;
  --muted: #5d6763;
  --line: #d6ddd7;
  --accent: #8a1538;
  --accent-dark: #5f0f28;
  --teal: #1f6f68;
  --gold: #a76f22;
  --shadow: 0 18px 44px rgba(28, 40, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px max(28px, calc((100vw - 1180px) / 2 + 28px));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.topbar-name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

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

.topbar-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.topbar-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-shell {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 48px;
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 44px 0 68px;
}

.profile-panel {
  position: sticky;
  top: 24px;
  align-self: start;
  min-width: 0;
  padding: 18px 4px 18px 0;
  border: 1px solid var(--line);
  border-width: 0 0 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portrait {
  display: block;
  width: 136px;
  height: 136px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.profile-panel h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

.role {
  margin: 10px 0 0;
  color: var(--accent);
  font-weight: 750;
}

.tagline {
  margin: 10px 0 20px;
  color: var(--muted);
}

.profile-note {
  margin: -6px 0 20px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.45;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 4px 0 18px;
}

.profile-links a,
.hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
}

.profile-links svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.profile-links a:hover,
.hero-actions a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-nav {
  display: none;
  gap: 8px;
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.page-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.page-nav a:hover {
  color: var(--accent);
}

.content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#about {
  order: 1;
}

#news {
  order: 2;
}

#projects {
  order: 3;
}

#research {
  order: 4;
}

#experience {
  order: 5;
}

#education {
  order: 6;
}

#mentoring {
  order: 7;
}

#community {
  order: 8;
}

#collaboration,
#portfolio,
#publications,
#other-work {
  display: none;
}

.hero {
  padding: 8px 0 30px;
  border-bottom: 1px solid var(--line);
}

.hero h2 {
  max-width: 860px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.section h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero p,
.section p {
  max-width: 840px;
  margin: 12px 0 0;
  color: var(--muted);
}

.hero-actions {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-actions a:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.hero-actions a:first-child:hover {
  background: var(--accent-dark);
}

.section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.about-section p,
.hero p {
  max-width: 840px;
}

.compact-section {
  padding-bottom: 32px;
}

.collaboration-strip {
  padding-top: 24px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-note {
  max-width: 820px;
  margin: -2px 0 18px !important;
  color: var(--muted);
  font-size: 15px;
}

.program-thesis {
  display: grid;
  gap: 10px;
  max-width: 840px;
  margin: -2px 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--teal);
}

.program-thesis p {
  margin: 0 !important;
  color: var(--muted);
}

.program-thesis strong {
  color: var(--ink);
  font-weight: 780;
}

.eyebrow {
  margin: 0 0 8px !important;
  color: var(--teal) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directions,
.community-grid,
.mentoring-grid,
.collab-list,
.program-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.directions article,
.community-grid article,
.mentoring-grid article,
.collab-list article,
.program-map article {
  min-height: 128px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.62);
}

.directions span {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.directions h3,
.community-grid h3,
.mentoring-grid h3,
.collab-list h3,
.program-map h3,
.project-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
}

.directions p,
.community-grid p,
.mentoring-grid p,
.collab-list p,
.program-map p,
.project-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.directions .pillar-assets {
  color: var(--teal);
  font-size: 13px;
  font-weight: 740;
}

.collab-list article {
  min-height: 128px;
  background: rgba(255, 255, 255, 0.62);
}

.collab-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 12px;
}

.collab-intro .eyebrow {
  margin: 0 !important;
}

.collab-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.compact-collab-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.compact-collab-list article {
  min-height: 116px;
  padding: 14px;
}

.compact-collab-list h3 {
  font-size: 15px;
}

.compact-collab-list p {
  font-size: 13px;
}

.mentoring-grid {
  margin-top: 16px;
}

.mentoring-wide {
  grid-column: span 2;
}

.mentee-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mentee-card {
  min-height: 108px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-tint);
}

.mentee-card a {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 780;
  line-height: 1.28;
}

.mentee-card span:not(.mentee-name) {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.mentee-name {
  display: block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.mentoring-grid ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.mentoring-grid li::marker {
  color: var(--teal);
}

.mentoring-grid strong {
  color: var(--ink);
}

.news-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(214, 221, 215, 0.78);
}

.news-list li:last-child {
  border-bottom: 1px solid rgba(214, 221, 215, 0.78);
}

.news-list time {
  color: var(--teal);
  font-size: 14px;
  font-weight: 780;
}

.news-list span {
  color: var(--muted);
}

.news-list strong {
  color: var(--ink);
  font-weight: 760;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(214, 221, 215, 0.78);
}

.project-card,
.project-card.featured-project {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  min-height: 150px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid rgba(214, 221, 215, 0.78);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.project-card img,
.project-card.featured-project img {
  width: 190px;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
  padding: 8px;
  align-self: start;
}

.project-kicker {
  margin: 0 0 6px !important;
  color: var(--gold) !important;
  font-size: 12px !important;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authors {
  margin-top: 6px !important;
  color: var(--ink) !important;
  font-size: 14px;
  line-height: 1.45;
}

.authors strong {
  color: var(--accent);
  font-weight: 800;
}

.contribution-list {
  display: grid;
  gap: 5px;
  margin: 9px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.contribution-list li::marker {
  color: var(--teal);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tag-row span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-tint);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.project-links a {
  font-size: 13px;
  font-weight: 780;
}

.program-map ul,
.compact-publications {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.program-map li,
.compact-publications li {
  display: grid;
  gap: 2px;
  padding-top: 9px;
  border-top: 1px solid rgba(214, 221, 215, 0.78);
}

.program-map li:first-child,
.compact-publications li:first-child {
  padding-top: 0;
  border-top: 0;
}

.program-map a,
.program-map .paper-title,
.compact-publications a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.32;
}

.program-map a:hover,
.compact-publications a:hover {
  color: var(--accent);
}

.program-map li span:not(.paper-title),
.compact-publications span {
  color: var(--muted);
  font-size: 13px;
}

.publication-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pubs;
}

.plain-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.plain-list li::marker {
  color: var(--teal);
}

.plain-list strong {
  color: var(--ink);
}

.publication-list li {
  position: relative;
  min-height: 54px;
  padding: 13px 0 13px 42px;
  border-top: 1px solid rgba(214, 221, 215, 0.78);
  counter-increment: pubs;
}

.publication-list li:last-child {
  border-bottom: 1px solid rgba(214, 221, 215, 0.78);
}

.publication-list li::before {
  content: counter(pubs, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.publication-list a {
  color: var(--ink);
  font-weight: 740;
  overflow-wrap: anywhere;
}

.publication-list a:hover {
  color: var(--accent);
}

.publication-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.more-link {
  margin-top: 18px !important;
}

.footer {
  order: 99;
  padding-top: 26px;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 940px) {
  .site-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    width: 100%;
    max-width: 760px;
    padding: 26px 18px 68px;
  }

  .profile-panel {
    position: static;
  }

  .portrait {
    width: 118px;
    height: 118px;
  }

  .page-nav {
    grid-template-columns: repeat(7, minmax(0, auto));
    gap: 12px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
  }

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

  .site-shell {
    max-width: none;
    padding-right: 14px;
    padding-left: 14px;
  }

  .profile-panel {
    padding: 20px;
  }

  .profile-links {
    grid-template-columns: 1fr;
  }

  .profile-panel h1 {
    font-size: 30px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .section h2 {
    font-size: 25px;
  }

  .directions,
  .community-grid,
  .mentoring-grid,
  .collab-list,
  .program-map,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.featured-project {
    grid-column: span 1;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mentoring-wide {
    grid-column: span 1;
  }

  .mentee-list {
    grid-template-columns: 1fr;
  }

  .project-card img,
  .project-card.featured-project img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 8px;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .page-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .publication-list li {
    padding-left: 34px;
  }
}
