:root {
  --bg: #f5f3ed;
  --surface: #fffdf8;
  --tint: #ebece5;
  --text: #17252a;
  --soft: #3c4c50;
  --muted: #5f6e71;
  --line: #d3d8d2;
  --line-strong: #afb9b2;
  --accent: #0f766e;
  --accent-dark: #0a5d57;
  --accent-soft: #dcece7;
  --header-bg: rgba(245, 243, 237, .91);
  --shadow: 0 20px 50px rgba(34, 47, 43, .09);
  --header-height: 72px;
  --shell: min(1160px, calc(100vw - 48px));
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #101816;
  --surface: #16201d;
  --tint: #131d1a;
  --text: #edf3ef;
  --soft: #c4d0cb;
  --muted: #91a19b;
  --line: #2a3833;
  --line-strong: #45574f;
  --accent: #79c9b7;
  --accent-dark: #9adacb;
  --accent-soft: #1b3731;
  --header-bg: rgba(16, 24, 22, .91);
  --shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 22px); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
body.menu-open,
body.modal-open { overflow: hidden; }
::selection { background: var(--accent-soft); color: var(--text); }
a { color: inherit; text-decoration: none; }
button,
input { color: inherit; font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:where(a, button, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell { width: var(--shell); margin-inline: auto; }
.section-shell { position: relative; padding: 88px 0; }
.section-tinted { border-block: 1px solid var(--line); background: var(--tint); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(15px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; flex: 0 0 auto; min-width: max-content; flex-direction: column; line-height: 1.15; }
.brand strong { white-space: nowrap; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.brand span { margin-top: 3px; white-space: nowrap; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.desktop-nav { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: center; gap: clamp(10px, 1vw, 18px); white-space: nowrap; }
.desktop-nav a { position: relative; flex: 0 0 auto; white-space: nowrap; color: var(--muted); font-size: clamp(12px, .9vw, 14px); font-weight: 600; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--text); }
.desktop-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 8px; }
.header-socials { display: flex; gap: 6px; }
.icon-button,
.menu-button,
.social-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.icon-button:hover,
.menu-button:hover,
.social-icon:hover { border-color: var(--line-strong); background: var(--surface); color: var(--accent); }
.social-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; box-shadow: -5px -4px 0 -2px var(--bg); }
html[data-theme="dark"] .theme-icon { box-shadow: none; }
.menu-button { display: none; position: relative; border-radius: 50%; }
.menu-button span { position: absolute; left: 10px; width: 14px; height: 1px; background: currentColor; transition: transform .2s ease, top .2s ease; }
.menu-button span:first-child { top: 14px; }
.menu-button span:last-child { top: 21px; }
.menu-button[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }
.mobile-nav { display: none; }

.hero { padding-top: calc(var(--header-height) + 78px); padding-bottom: 94px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(280px, 1fr); align-items: center; gap: clamp(64px, 7vw, 92px); }
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 15px; font-weight: 700; letter-spacing: .035em; text-transform: none; }
.hero h1,
.section-heading h2,
.contact-copy h2,
.abstract-dialog h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.02;
}
.hero h1 { max-width: 760px; font-size: clamp(62px, 6.2vw, 80px); line-height: .98; white-space: nowrap; }
.hero h1 span { display: inline; }
.hero-role { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; margin: 25px 0 0; color: var(--soft); font-size: 18px; font-weight: 600; line-height: 1.55; }
.hero-role span:last-child { color: var(--muted); font-size: 16px; font-weight: 500; }
.hero-intro { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: clamp(18px, 1.45vw, 20px); line-height: 1.7; }
.availability-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--accent-dark); font-size: 16px; font-weight: 700; line-height: 1.5; }
.availability-link:hover { color: var(--text); }
.availability-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button-primary { border-color: var(--text); background: var(--text); color: var(--bg); }
.button-primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.button-secondary { background: transparent; }
.button-secondary:hover { border-color: var(--text); background: var(--surface); }
.hero-socials { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.social-link { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; font-weight: 600; transition: color .2s ease; }
.social-link:hover { color: var(--accent-dark); }
.social-link svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-note { width: min(100%, 330px); justify-self: end; }
.profile-figure { margin: 0; }
.profile-portrait { width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 5px; background: #000; }
.profile-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.portrait-caption { display: grid; gap: 4px; width: min(100%, 300px); margin: 14px auto 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.portrait-caption strong { display: block; color: var(--soft); font-size: 13px; font-weight: 700; }
.portrait-caption span,
.portrait-caption a { display: block; max-width: none; color: var(--muted); text-align: left; overflow-wrap: anywhere; }
.portrait-caption a:hover { color: var(--accent); }
.split-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(55px, 8vw, 110px); align-items: start; }
.section-heading h2,
.contact-copy h2 { font-size: clamp(34px, 3.8vw, 48px); }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 40px; }
.section-heading-row > div { max-width: 750px; }
.section-note { max-width: 420px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.lead { margin: 0; color: var(--soft); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.85; }
.interest-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; }
.interest-tag { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 600; }

.updates-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); gap: clamp(45px, 7vw, 85px); align-items: start; }
.news-flame { display: inline-block; margin-right: .08em; font-family: var(--font-body); font-size: .72em; vertical-align: .08em; }
.news-list { margin: 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.news-item { position: relative; display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 18px; padding: 17px 0 17px 27px; border-bottom: 1px solid var(--line); }
.news-item::before { content: ""; position: absolute; top: 26px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.news-item time { color: var(--accent-dark); font-size: 14px; font-weight: 700; letter-spacing: .015em; line-height: 1.65; }
.news-item p { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.65; }
.news-inline-link { display: inline-flex; margin-left: 5px; color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.news-inline-link:hover { color: var(--text); }
.positions-card { padding: 30px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); box-shadow: 0 18px 45px rgba(34, 47, 43, .06); }
.positions-card h3 { margin: 0; font-family: var(--font-display); font-size: 32px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.positions-summary { margin: 15px 0 0; color: var(--soft); font-size: 16px; line-height: 1.7; }
.position-roles { margin-top: 20px; border-top: 1px solid var(--line); }
.position-role { padding: 13px 0; border-bottom: 1px solid var(--line); }
.position-role strong { color: var(--text); font-size: 15px; }
.position-role p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.position-topics { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.position-topics span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 13px; font-weight: 600; }
.positions-application { margin: 19px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.75; }

.teaching-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(55px, 8vw, 110px); align-items: start; }
.course-list { border-top: 1px solid var(--line-strong); }
.course-item { display: grid; grid-template-columns: 95px 1fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.course-code { color: var(--accent); font-size: 15px; font-weight: 700; }
.course-item h3 { margin: 0; font-family: var(--font-display); font-size: 23px; font-weight: 500; letter-spacing: -.02em; }
.course-item p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.people-group { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.people-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.people-group-heading h3 { margin: 0; font-family: var(--font-display); font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.people-group-heading > span { min-width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.people-list { margin: 17px 0 0; padding: 0; list-style: none; }
.people-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--soft); line-height: 1.5; }
.people-list strong { font-size: 15px; font-weight: 600; }
.people-list span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }

.publications-section { padding-bottom: 104px; }
.publication-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.text-link span { color: var(--accent); }
.text-link:hover { color: var(--accent-dark); }
.publication-controls { margin-top: 9px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.publication-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-pill,
.year-pill,
.reset-button {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.filter-pill { min-height: 38px; padding: 7px 11px; border-radius: 5px; color: var(--muted); }
.filter-pill:hover { color: var(--text); background: var(--tint); }
.filter-pill.active { background: var(--text); color: var(--bg); }
.search-field { width: min(330px, 100%); display: flex; align-items: center; gap: 10px; padding: 0 11px; border-bottom: 1px solid var(--line-strong); }
.search-field:focus-within { border-color: var(--accent); }
.search-field svg { width: 15px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.search-field input { width: 100%; padding: 9px 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-field input::placeholder { color: var(--muted); }
.year-filter-wrap { display: grid; grid-template-columns: 125px minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.year-filter-label { color: var(--accent-dark); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.year-filters { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.year-pill { min-width: 53px; min-height: 35px; flex: 0 0 auto; padding: 6px 10px; border-color: var(--line); border-radius: 5px; color: var(--muted); }
.year-pill:hover { border-color: var(--line-strong); color: var(--text); }
.year-pill.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.publication-summary { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0 8px; }
.publication-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.reset-button { padding: 4px 0; color: var(--accent-dark); }
.reset-button:hover { color: var(--text); }
.publication-list { border-top: 1px solid var(--line-strong); }
.publication-year-group { display: grid; grid-template-columns: 126px minmax(0, 1fr); border-bottom: 1px solid var(--line-strong); }
.year-heading { padding: 29px 22px 28px 0; border-right: 1px solid var(--line); }
.year-heading h3 { position: sticky; top: calc(var(--header-height) + 22px); margin: 0; color: var(--accent-dark); font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.year-heading span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.year-publications { padding-left: 28px; }
.publication-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.publication-item:last-child { border-bottom: 0; }
.publication-overline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 13px; margin-bottom: 8px; }
.publication-type { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.publication-status { padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.publication-main h4 { margin: 0; font-family: var(--font-display); font-size: clamp(21px, 2vw, 26px); font-weight: 500; letter-spacing: -.022em; line-height: 1.25; }
.publication-authors,
.publication-venue { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.publication-venue { margin-top: 3px; color: var(--soft); font-style: italic; }
.publication-actions { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; gap: 7px; padding-top: 23px; }
.mini-button { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 5px; background: transparent; color: var(--soft); font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.mini-button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.empty-state { padding: 55px 0; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }

.experience-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(55px, 8vw, 110px); align-items: start; }
.sticky-heading { position: sticky; top: calc(var(--header-height) + 35px); }
.sticky-heading .section-note { margin-top: 19px; }
.timeline { border-top: 1px solid var(--line-strong); }
.timeline-item { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 22px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.timeline-period { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.timeline-copy h3 { margin: 0; font-family: var(--font-display); font-size: 23px; font-weight: 500; letter-spacing: -.02em; }
.timeline-copy h4 { margin: 4px 0 0; color: var(--soft); font-size: 14px; font-weight: 600; }
.timeline-copy p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.education-card { min-height: 245px; padding: 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.education-card .period { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.education-card h3 { margin: 35px 0 0; font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -.025em; }
.education-card h4 { margin: 7px 0 0; color: var(--soft); font-size: 14px; font-weight: 600; }
.education-card p { margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.service-heading { max-width: 760px; }
.service-heading h2 { display: flex; align-items: center; gap: 13px; margin: 0; font-size: clamp(36px, 4vw, 50px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.service-heading h2 span { font-family: var(--font-body); font-size: .8em; }
.service-heading > p:not(.eyebrow) { max-width: 690px; margin: 15px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.service-line { margin-top: 32px; padding: 22px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); color: var(--soft); font-size: 16px; line-height: 1.85; }
.service-line p { display: block; margin: 0; }
.service-line p:not(:first-child) { margin-top: 8px; }
.service-line strong { color: var(--accent-dark); font-weight: 700; }
.service-divider { display: none; }

.project-list { border-top: 1px solid var(--line-strong); }
.project-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(500px, 1fr); gap: 22px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--line); }
.project-number { padding-top: 4px; color: var(--accent); font-size: 14px; font-weight: 700; }
.project-item h3 { margin: 0; font-family: var(--font-display); font-size: clamp(21px, 1.9vw, 25px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.project-meta { display: grid; grid-template-columns: 1.25fr 1fr 1fr .8fr .65fr; gap: 0; margin: 0; }
.project-meta div { min-width: 0; padding: 3px 13px; border-left: 1px solid var(--line); }
.project-meta dt { color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.project-meta dd { margin: 5px 0 0; color: var(--soft); font-size: 14px; font-weight: 600; line-height: 1.45; }

.contact-section { padding: 70px 0; }
.contact-card { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 70px; padding: 48px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.contact-copy > p:not(.eyebrow) { max-width: 630px; margin: 17px 0 0; color: var(--muted); font-size: 15px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-left: 28px; border-left: 1px solid var(--line); }
.contact-email { color: var(--soft); font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.contact-office { max-width: 330px; color: var(--muted); font-size: 13px; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 5px; }

.site-footer { padding: 25px 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 25px; }
.footer-inner > div { display: flex; flex-direction: column; }
.footer-inner strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.footer-inner span,
.footer-inner p { color: var(--muted); font-size: 11px; }
.footer-inner p { margin: 0; }
.back-to-top { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--soft); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

.abstract-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.abstract-modal.open { opacity: 1; visibility: visible; }
.abstract-backdrop { position: absolute; inset: 0; background: rgba(5, 12, 10, .72); backdrop-filter: blur(7px); }
.abstract-dialog { position: relative; z-index: 1; width: min(690px, 100%); max-height: min(82vh, 720px); overflow-y: auto; padding: 34px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); transform: translateY(12px); transition: transform .2s ease; }
.abstract-modal.open .abstract-dialog { transform: translateY(0); }
.abstract-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 20px; }
.abstract-dialog h2 { max-width: 590px; padding-right: 34px; font-size: clamp(30px, 4vw, 43px); }
.abstract-meta { margin: 13px 0 0; color: var(--accent); font-size: 12px; font-weight: 700; }
.abstract-copy { margin: 24px 0 27px; color: var(--soft); font-size: 16px; line-height: 1.8; white-space: pre-line; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.noscript { margin: 95px auto 20px; width: min(700px, calc(100% - 32px)); padding: 15px 18px; border: 1px solid #ad5b5b; border-radius: 7px; background: #f7dfdf; color: #552d2d; }

@media (max-width: 1180px) {
  .desktop-nav,
  .header-socials { display: none; }
  .menu-button { display: block; }
  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 13px;
    max-height: calc(100dvh - var(--header-height) - 20px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }
  .mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .mobile-nav > a { min-height: 44px; display: flex; align-items: center; padding: 10px; border-radius: 5px; color: var(--soft); font-size: 14px; }
  .mobile-nav > a:hover { background: var(--tint); }
  .mobile-socials { display: flex; gap: 7px; padding: 11px 8px 2px; border-top: 1px solid var(--line); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(34px, 5vw, 50px); }
  .hero h1 { font-size: clamp(56px, 6vw, 68px); }
  .profile-note { width: 250px; }
  .profile-portrait,
  .portrait-caption { width: 240px; }
  .project-item { grid-template-columns: 38px minmax(0, 1fr); }
  .project-meta { grid-column: 2; margin-top: 5px; }
}

@media (max-width: 780px) {
  :root { --shell: calc(100vw - 30px); }
  .shell { max-width: 700px; }
  .section-shell { padding: 70px 0; }
  .hero { padding-top: calc(var(--header-height) + 64px); padding-bottom: 76px; }
  .hero-grid,
  .split-layout,
  .teaching-layout,
  .experience-layout,
  .updates-layout,
  .contact-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .profile-note { width: min(100%, 330px); max-width: 420px; justify-self: start; }
  .profile-portrait,
  .portrait-caption { width: min(100%, 300px); }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-note { max-width: 100%; }
  .updates-layout { gap: 36px; }
  .positions-card { max-width: 620px; }
  .project-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .project-meta div:nth-child(3),
  .project-meta div:nth-child(5) { border-left: 0; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-list { margin-top: 5px; }
  .publication-toolbar { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .year-filter-wrap { grid-template-columns: 1fr; gap: 8px; }
  .publication-year-group { grid-template-columns: 83px minmax(0, 1fr); }
  .year-heading { padding-right: 14px; }
  .year-heading h3 { font-size: 25px; }
  .year-publications { padding-left: 18px; }
  .publication-item { grid-template-columns: 1fr; gap: 13px; }
  .publication-actions { justify-content: flex-start; padding-top: 0; }
  .sticky-heading { position: static; }
  .education-grid { grid-template-columns: 1fr; }
  .contact-card { gap: 34px; padding: 32px 26px; }
  .contact-actions { padding-left: 0; padding-top: 25px; border-top: 1px solid var(--line); border-left: 0; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner p { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .hero h1 { font-size: clamp(50px, 16vw, 72px); white-space: normal; }
  .hero h1 span { display: block; }
  .hero-socials { gap: 10px 17px; }
  .profile-note { width: min(100%, 270px); }
  .profile-portrait,
  .portrait-caption { width: min(100%, 250px); }
  .news-item { grid-template-columns: 1fr; gap: 3px; }
  .project-item { grid-template-columns: 1fr; gap: 9px; }
  .project-number { padding-top: 0; }
  .project-meta { grid-column: 1; margin-top: 8px; }
  .positions-card { padding: 23px; }
  .people-grid { grid-template-columns: 1fr; gap: 34px; }
  .course-item { grid-template-columns: 1fr; gap: 5px; }
  .publication-heading-actions { justify-content: flex-start; }
  .publication-controls { margin-inline: -5px; padding: 14px; }
  .publication-year-group { grid-template-columns: 1fr; }
  .year-heading { padding: 23px 0 10px; border-right: 0; }
  .year-heading h3 { position: static; }
  .year-heading span { display: inline; margin-left: 7px; }
  .year-publications { padding-left: 0; }
  .publication-item { padding: 23px 0; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .education-card { min-height: 220px; }
  .abstract-dialog { padding: 28px 21px; }
}

@media (max-width: 360px) {
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* v3: current/former people cohorts */
.people-grid { display: block; }
.people-cohort + .people-cohort { margin-top: 58px; padding-top: 42px; border-top: 1px solid var(--line-strong); }
.people-cohort-heading { margin-bottom: 25px; }
.people-cohort-heading .eyebrow { margin-bottom: 7px; }
.people-cohort-heading h3 { margin: 0; font-family: var(--font-display); font-size: clamp(29px, 3vw, 42px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.people-cohort-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.people-group-heading h4 { margin: 0; font-family: var(--font-display); font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.former-people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.former-person { min-height: 112px; padding: 20px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.former-person:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 38px rgba(34,47,43,.07); }
.former-person strong { color: var(--text); font-size: 16px; font-weight: 650; }
.former-person span { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.55; }

@media (max-width: 900px) {
  .people-cohort-grid, .former-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .people-cohort-grid, .former-people-grid { grid-template-columns: 1fr; }
  .people-cohort + .people-cohort { margin-top: 42px; padding-top: 32px; }
}

/* =========================================================
   v7 — Profile portrait card and three-line caption fix
   ========================================================= */
.profile-note {
  width: min(100%, 360px);
}

.profile-figure {
  margin: 0;
  padding: 14px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(34, 47, 43, .08);
}

.profile-portrait {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 8px;
}

.portrait-caption {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
  margin: 17px 0 0 !important;
  padding: 0 4px;
  gap: 5px;
  text-align: left;
}

.portrait-caption > * {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.portrait-caption strong {
  color: var(--soft);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}

.portrait-caption span,
.portrait-caption a {
  color: var(--muted);
  font-size: clamp(12px, .92vw, 14px);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

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

@media (max-width: 1080px) {
  .profile-note { width: min(100%, 300px); }
  .profile-figure { padding: 12px 12px 16px; }
  .portrait-caption { padding-inline: 2px; }
  .portrait-caption strong { font-size: 12.5px; }
  .portrait-caption span,
  .portrait-caption a { font-size: 11.5px; }
}

@media (max-width: 780px) {
  .profile-note { width: min(100%, 360px); max-width: 360px; }
  .profile-figure { padding: 14px 14px 18px; }
  .portrait-caption strong { font-size: 14px; }
  .portrait-caption span,
  .portrait-caption a { font-size: 13px; }
}

@media (max-width: 390px) {
  .profile-note { width: 100%; }
  .profile-figure { padding: 10px 10px 14px; }
  .portrait-caption strong { font-size: 12px; }
  .portrait-caption span,
  .portrait-caption a { font-size: 11.5px; }
}


/* =========================================================
   v8 — responsive consistency, strict alternating sections,
   awards, and robust profile caption
   ========================================================= */

html[data-theme="light"] {
  --bg: #f7f4ed;
  --surface: #fffdf9;
  --tint: #e8eee8;
  --line: #cfd8d1;
  --line-strong: #aebcb3;
  --header-bg: rgba(247, 244, 237, .93);
}

html[data-theme="dark"] {
  --bg: #101816;
  --surface: #16201d;
  --tint: #13211d;
}

html, body { max-width: 100%; }
body { font-size: clamp(16px, 1.05vw, 17px); }
img, svg { max-width: 100%; }
.shell { width: min(1180px, calc(100vw - clamp(30px, 6vw, 76px))); }
.section-shell { background: var(--bg); border-block: 0; }
.section-shell.section-tone-plain {
  background: var(--bg) !important;
  border-block: 0 !important;
}
.section-shell.section-tone-tint {
  background: var(--tint) !important;
  border-block: 1px solid var(--line) !important;
}
.section-heading h2,
.hero h1,
.course-item h3,
.timeline-copy h3,
.project-item h3,
.publication-main h4,
.people-group-heading h4,
.award-copy strong { overflow-wrap: break-word; }

/* Profile card: exactly three stacked rows at every width. */
.profile-note { width: min(100%, 390px); justify-self: end; }
.profile-figure {
  width: 100%;
  margin: 0;
  padding: 14px 14px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(34, 47, 43, .09);
}
.profile-portrait {
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
}
.portrait-caption {
  width: 100% !important;
  margin: 18px 0 0 !important;
  padding: 0 5px;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 5px;
  text-align: left;
}
.portrait-caption > * {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
}
.portrait-caption strong {
  color: var(--soft);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -.01em;
  white-space: normal;
}
.portrait-caption span,
.portrait-caption a {
  color: var(--muted);
  font-size: clamp(13px, 1.08vw, 15px);
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
}
.portrait-caption a { overflow-wrap: anywhere; }

/* Honors and Awards: vertical, numbered, and hidden when empty. */
.awards-section[hidden],
.awards-nav-link[hidden] { display: none !important; }
.awards-list {
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line-strong);
  list-style: none;
  counter-reset: award-number;
}
.award-item {
  counter-increment: award-number;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.award-item::before {
  content: counter(award-number, decimal-leading-zero);
  padding-top: 2px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
.award-copy { min-width: 0; }
.award-year {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
}
.award-copy strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.28;
}
.award-copy p {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}
.award-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
}
.award-link:hover { color: var(--text); }

/* Prevent awkward clipping and overly compressed columns. */
.hero-grid > *,
.split-layout > *,
.updates-layout > *,
.teaching-layout > *,
.experience-layout > *,
.project-item > *,
.publication-item > *,
.contact-card > * { min-width: 0; }
.news-item p,
.course-item p,
.timeline-copy p,
.project-meta dd,
.publication-authors,
.publication-venue,
.people-list li,
.service-line,
.contact-copy p { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(310px, 360px); gap: 48px; }
  .profile-note { width: min(100%, 360px); }
  .project-item { grid-template-columns: 42px minmax(0, 1fr); }
  .project-meta { grid-column: 2; margin-top: 5px; }
}

@media (max-width: 900px) {
  .hero-grid,
  .split-layout,
  .updates-layout,
  .teaching-layout,
  .experience-layout,
  .contact-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .profile-note { width: min(100%, 390px); justify-self: start; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .people-cohort-grid,
  .former-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .education-grid { grid-template-columns: 1fr; }
  .sticky-heading { position: static; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100vw - 28px); }
  .section-shell { padding: 62px 0; }
  .hero { padding-top: calc(var(--header-height) + 54px); padding-bottom: 66px; }
  .hero h1 { white-space: normal; font-size: clamp(48px, 15vw, 66px); }
  .hero h1 span { display: inline; }
  .profile-note,
  .profile-figure { width: 100%; max-width: 420px; }
  .portrait-caption { padding-inline: 2px; }
  .portrait-caption strong { font-size: clamp(13px, 4.1vw, 16px); }
  .portrait-caption span,
  .portrait-caption a { font-size: clamp(12px, 3.8vw, 14px); }
  .news-item,
  .course-item,
  .timeline-item,
  .project-item,
  .publication-year-group,
  .publication-item,
  .award-item { grid-template-columns: 1fr; }
  .award-item { gap: 7px; }
  .award-item::before { padding-top: 0; }
  .project-meta { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-cohort-grid,
  .former-people-grid { grid-template-columns: 1fr; }
  .year-heading { padding: 20px 0 8px; border-right: 0; }
  .year-publications { padding-left: 0; }
  .publication-actions { justify-content: flex-start; padding-top: 0; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner p { display: block !important; grid-column: 1; margin: 8px 0 0; }
}

@media (max-width: 420px) {
  .shell { width: calc(100vw - 24px); }
  .profile-figure { padding: 10px 10px 15px; border-radius: 11px; }
  .portrait-caption { margin-top: 14px !important; gap: 4px; }
  .portrait-caption strong { font-size: 12.5px; letter-spacing: -.015em; }
  .portrait-caption span,
  .portrait-caption a { font-size: 12px; }
  .project-meta { grid-template-columns: 1fr; }
  .project-meta div { padding-inline: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Content must remain visible even when observer animations do not fire
   because of browser zoom, unusual viewport sizes, or embedded previews. */
.js .reveal {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.in-view { animation: v8-soft-reveal .48s ease both; }
  @keyframes v8-soft-reveal {
    from { opacity: .82; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* =========================================================
   v9 — bounded, internally scrollable content collections
   ========================================================= */

/* Repeated-content areas keep a controlled visual height.
   The page itself still scrolls normally; only long collections
   gain their own clean, keyboard- and touch-friendly scrollbar. */
.bounded-scroll {
  max-height: var(--bounded-height, min(620px, 68vh));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  padding-right: clamp(8px, 1vw, 14px);
}

.bounded-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

/* Refined, unobtrusive scrollbars. */
.bounded-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.bounded-scroll::-webkit-scrollbar { width: 8px; }
.bounded-scroll::-webkit-scrollbar-track { background: transparent; }
.bounded-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--line-strong);
  background-clip: padding-box;
}
.bounded-scroll::-webkit-scrollbar-thumb:hover { background-color: var(--accent); }

/* The news list is dynamically matched to the visible Positions card
   on desktop. Both remain independently scrollable when they grow. */
.positions-card {
  max-height: min(620px, 72vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.positions-card::-webkit-scrollbar { width: 8px; }
.positions-card::-webkit-scrollbar-track { background: transparent; }
.positions-card::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--line-strong);
  background-clip: padding-box;
}

/* Sensible visual allocations for each growing collection. */
#news-list { --bounded-height: min(620px, 72vh); }
#course-list { --bounded-height: min(540px, 66vh); }
#people-grid { --bounded-height: min(680px, 72vh); }
#experience-timeline { --bounded-height: min(640px, 70vh); }
#education-grid { --bounded-height: min(560px, 68vh); }
#service-list { --bounded-height: min(480px, 58vh); }
#project-list { --bounded-height: min(650px, 72vh); }
#awards-list { --bounded-height: min(620px, 70vh); }
#publication-list { --bounded-height: min(760px, 76vh); }

/* Maintain clean edge alignment after reserving scrollbar space. */
#news-list,
#course-list,
#experience-timeline,
#project-list,
#awards-list,
#publication-list { padding-right: 12px; }

/* Keep paired desktop columns visually aligned. */
@media (min-width: 901px) {
  .updates-layout { align-items: start; }
  #news-list { min-height: min(280px, var(--bounded-height, 620px)); }
}

/* On stacked tablet/mobile layouts, use comfortable viewport-relative
   heights so nested scrolling never consumes the whole screen. */
@media (max-width: 900px) {
  .bounded-scroll { max-height: var(--bounded-mobile-height, min(560px, 62vh)); }
  .positions-card { max-height: min(560px, 62vh); }
  #news-list,
  #course-list,
  #people-grid,
  #experience-timeline,
  #education-grid,
  #service-list,
  #project-list,
  #awards-list,
  #publication-list { --bounded-mobile-height: min(560px, 62vh); }
}

@media (max-width: 520px) {
  .bounded-scroll {
    max-height: min(500px, 58vh);
    padding-right: 7px;
  }
  .positions-card { max-height: min(500px, 58vh); }
  .bounded-scroll::-webkit-scrollbar,
  .positions-card::-webkit-scrollbar { width: 6px; }
}

/* Sticky publication years stay correctly positioned inside the
   publication list's own scroll viewport. */
#publication-list .year-heading h3 { top: 14px; }


/* v10: keep the desktop navigation on one line and switch to the mobile menu before it can wrap. */
@media (min-width: 1181px) {
  .site-header .header-inner { gap: clamp(14px, 1.4vw, 26px); }
  .desktop-nav,
  .desktop-nav a,
  .brand strong,
  .brand span { white-space: nowrap; }
}
