@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400..700&display=swap');

:root {
  --bg: #fff; --ink: #192330; --muted: #43566f; --faint: #60738b;
  --accent: #2454a0; --accent-hover: #153d7d; --soft: #f2f6fc; --line: #dbe5f3;
  --gutter: 48px; --sidebar: 220px; --gap: 76px;
  color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #111821; --ink: #edf1f7; --muted: #bec9d7; --faint: #a4b1c2;
  --accent: #aac8ff; --accent-hover: #c8daff; --soft: #1b2634; --line: #303d4d;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 40px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, 'Segoe UI', Arial, sans-serif; font-size: 1.125rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
button, select { font: inherit; }
button { cursor: pointer; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; }
h2 { font-size: 2rem; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: 1.35rem; line-height: 1.4; letter-spacing: -.015em; }
h4 { font-size: 1.125rem; line-height: 1.5; letter-spacing: -.01em; }
p { margin-bottom: 18px; }
strong { font-weight: 600; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 18px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border-radius: 5px; font-size: .9375rem; font-weight: 600; line-height: 1.6; }
.button:hover { text-decoration: none; }
.button.primary { background: var(--accent); color: var(--bg); }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary { background: var(--soft); color: var(--ink); }
.button.secondary:hover { color: var(--accent); }
:root[data-theme=dark] .button.primary { color: #15253d; }
.text-link { font-size: .9375rem; font-weight: 500; }
.eyebrow { color: var(--faint); font-size: .8125rem; letter-spacing: .065em; font-weight: 500; text-transform: uppercase; line-height: 1.7; margin-bottom: 13px; }

/* A stable profile and one navigation system frame the reading column. */
.site-shell { max-width: 1280px; margin: 0 auto; padding: 56px var(--gutter) 0; display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr); gap: var(--gap); align-items: start; }
.sidebar { position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-y: auto; scrollbar-width: thin; padding-right: 8px; }
.portrait-link { display: block; width: 148px; height: 148px; border: 0; padding: 0; background: none; border-radius: 50%; overflow: hidden; }
.portrait-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-name { display: block; font-size: 1.65rem; line-height: 1.25; letter-spacing: -.03em; font-weight: 600; color: var(--ink); margin-top: 14px; margin-bottom: 5px; }
.profile-name:hover { text-decoration: none; }
.profile-affiliations { display: grid; gap: 10px; margin: 12px 0 15px; }
.profile-affiliation { display: grid; gap: 1px; }
.profile-affiliation-role { color: var(--ink); font-size: .875rem; font-weight: 600; line-height: 1.45; }
.profile-affiliation-place { color: var(--faint); font-size: .8125rem; line-height: 1.45; }
.profile-links { display: grid; grid-template-columns: 1fr; gap: 2px; }
.profile-links a { display: flex; align-items: center; gap: 7px; min-height: 32px; color: var(--accent); font-size: .875rem; line-height: 1.5; }
.profile-links a:hover { color: var(--accent); }
.profile-links svg { width: 18px; height: 18px; flex-shrink: 0; }
.site-nav { display: flex; flex-direction: column; margin-top: 17px; }
.site-nav a { min-height: 32px; display: flex; align-items: center; padding: 5px 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.active { color: var(--accent); font-weight: 600; }
.sidebar-bottom { margin-top: 11px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; border: 0; padding: 0; background: none; color: var(--faint); font-size: .875rem; }
.theme-toggle:hover { color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
main { min-width: 0; outline: 0; }
.portrait-mobile, .mobile-profile-links { display: none; }
.introduction { border: 0; background: none; }
.introduction > .eyebrow { margin-top: 3px; margin-bottom: 17px; }
.introduction h1 { font-size: 3.5rem; line-height: 1.13; font-weight: 600; letter-spacing: -.045em; margin-bottom: 22px; }
.intro-lead { font-size: 1.45rem; line-height: 1.5; font-weight: 400; color: var(--ink); margin-bottom: 27px; max-width: 720px; }
.introduction > p:not(.eyebrow):not(.intro-lead) { color: var(--muted); max-width: 760px; }
.introduction strong { color: var(--ink); }
.introduction > p.advisors { font-size: 1rem; line-height: 1.7; margin-top: 25px; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; margin-top: 29px; }
.news-section { margin-top: 49px; }
.news-section h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 17px; }
.news-list { padding: 0; margin: 0; list-style: none; }
.news-list li { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 21px; padding: 12px 0; }
.news-list time { font-size: .9375rem; color: var(--faint); padding-top: 2px; line-height: 1.7; }
.news-list p { font-size: 1.0625rem; line-height: 1.65; color: var(--muted); margin: 0; }
.older-news { margin-top: 13px; }
summary { font-size: .9375rem; font-weight: 500; color: var(--accent); padding: 6px 0; cursor: pointer; width: fit-content; }
.older-news .news-list { padding-top: 10px; }

.section { margin-top: 78px; padding-top: 54px; border-top: 1px solid var(--line); scroll-margin-top: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-heading > a { flex-shrink: 0; margin-bottom: 4px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-intro { color: var(--muted); margin-bottom: 25px; }
.subsection-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 38px; margin-bottom: 4px; }
.subsection-heading h3 { font-size: 1.25rem; }
.subsection-heading > span { font-size: .9375rem; color: var(--faint); }

/* Research is organized by transferable ML methods; technical detail stays in papers. */
.research-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 43px 38px; }
.research-card { display: flex; flex-direction: column; min-width: 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.project-name { color: var(--accent); font-size: .9375rem; font-weight: 500; }
.card-top time { font-size: .875rem; color: var(--faint); white-space: nowrap; }
.research-card h3 { font-size: 1.35rem; line-height: 1.4; margin-bottom: 13px; }
.research-description { font-size: 1.0625rem; line-height: 1.65; color: var(--muted); margin-bottom: 20px; }
.research-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 230px; padding: 15px; border: 1px solid var(--line); background: #fff; border-radius: 6px; }
.research-image img { width: 100%; height: 100%; object-fit: contain; }
.research-result { color: var(--muted); font-size: .9375rem; line-height: 1.6; margin-bottom: 15px; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 19px; font-size: .9375rem; font-weight: 500; }
.card-links a { min-height: 28px; }

.publication-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 0 0 33px; }
.filter-buttons { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.filter-buttons button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 0; min-height: 44px; color: var(--muted); font-size: .9375rem; }
.filter-buttons button.selected { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.topic-filter { min-width: 185px; flex: 1; }
.topic-filter select { height: 44px; width: 100%; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--muted); padding: 8px 27px 8px 12px; font-size: .9375rem; }
#publication-count { color: var(--faint); font-size: .875rem; }
.publication-year { margin-bottom: 36px; }
.year-heading { color: var(--accent); font-family: Georgia, serif; font-size: 2rem; letter-spacing: -.015em; font-weight: 400; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.publication { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 0; }
.publication:last-child { border: 0; }
.paper-figure { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; height: 175px; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fff; }
.paper-figure img { width: 100%; height: calc(100% - 25px); object-fit: contain; }
.paper-figure > span { color: #526073; font-size: .875rem; line-height: 1.5; }
.paper-meta { display: flex; flex-wrap: wrap; gap: 6px 15px; font-size: .9375rem; color: var(--muted); margin-bottom: 10px; line-height: 1.7; }
.paper-meta time { color: var(--accent); font-weight: 500; }
.first-author { color: var(--accent); font-weight: 500; font-size: .875rem; }
.publication h3 { font-size: 1.1875rem; line-height: 1.5; letter-spacing: -.015em; margin-bottom: 11px; }
.authors { font-size: .90625rem; line-height: 1.7; color: var(--faint); margin-bottom: 9px; }
.authors strong { color: var(--muted); font-weight: 600; }
.venue { font-size: 1rem; line-height: 1.7; color: var(--accent); margin-bottom: 12px; }
.venue .paper-status { color: var(--faint); margin-left: 12px; font-size: .875rem; }
.paper-summary { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; margin-bottom: 15px; }
.paper-links { display: flex; flex-wrap: wrap; gap: 8px 19px; font-size: .9375rem; font-weight: 500; margin-bottom: 4px; }
.paper-links a { min-height: 30px; }
.paper-detail { padding-left: 18px; border-left: 2px solid var(--line); color: var(--muted); font-size: 1rem; line-height: 1.75; margin-top: 14px; }
.paper-detail p:last-child { margin-bottom: 0; }
.research-media { margin-top: 31px; padding-top: 28px; border-top: 1px solid var(--line); }
.research-media > h3 { font-size: 1.3rem; margin-bottom: 7px; }
.research-media article { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 22px; padding: 22px 0; }
.research-media time { font-size: .9375rem; color: var(--faint); padding-top: 2px; }
.research-media h4 { margin-bottom: 10px; }
.research-media article p:last-child { font-size: 1.0625rem; color: var(--muted); margin-bottom: 0; }

.employer-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.employer-heading h4 { font-size: 1.7rem; line-height: 1.3; letter-spacing: -.025em; }
.employer-heading > span { font-size: .9375rem; color: var(--faint); }
.industry-roles { display: grid; }
.industry-role { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 5px 26px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.industry-role time { grid-row: 1 / span 2; font-size: .9375rem; color: var(--faint); line-height: 1.7; }
.industry-role h4 { grid-column: 2; font-size: 1.1875rem; }
.industry-role .role-label { grid-column: 2; color: var(--accent); font-size: .875rem; }
.industry-role p { grid-column: 2; font-size: 1.0625rem; line-height: 1.65; color: var(--muted); margin: 6px 0 0; }
.shared-contributions { margin-top: 28px; }
.shared-contributions h4 { font-size: 1.125rem; }
.shared-contributions ul { margin: 15px 0 0; padding-left: 21px; color: var(--muted); font-size: 1.0625rem; }
.shared-contributions li { padding-left: 3px; margin-bottom: 10px; }
.experience-item, .teaching-list article { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 26px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.experience-item:last-child, .teaching-list article:last-child { border-bottom: 0; }
.timeline-date, .teaching-list time { font-size: .9375rem; color: var(--faint); line-height: 1.7; padding-top: 2px; }
.organization { font-size: .90625rem; color: var(--faint); line-height: 1.7; margin-bottom: 7px; }
.experience-item h4, .teaching-list h3 { font-size: 1.1875rem; margin-bottom: 11px; }
.experience-item p:not(.organization), .teaching-list p:not(.organization) { color: var(--muted); font-size: 1.0625rem; }
.teaching-list p:last-child { margin-bottom: 0; }
.skill-tags { display: none; }
.education-list article { display: flex; align-items: start; justify-content: space-between; gap: 27px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.education-list article:last-child { border: 0; }
.education-list h4 { margin-bottom: 8px; }
.education-list p { font-size: 1.0625rem; color: var(--muted); margin-bottom: 6px; }
.education-list div > span { color: var(--faint); font-size: .90625rem; }
.education-list time { font-size: .9375rem; text-align: right; flex-shrink: 0; color: var(--muted); }
.education-list time span { display: block; color: var(--faint); font-size: .875rem; }
.toolkit { margin-top: 41px; }
.toolkit > h3 { font-size: 1.25rem; margin-bottom: 24px; }
.expertise-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 37px; margin: 0; }
.expertise-grid dt { font-size: 1.0625rem; font-weight: 600; margin-bottom: 7px; }
.expertise-grid dd { margin: 0; font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }
.award-list { list-style: none; padding: 0; margin: 0; }
.award-list li { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 27px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.award-list li:last-child { border: 0; }
.award-list time { font-size: .9375rem; color: var(--faint); padding-top: 2px; }
.award-list h3 { margin-bottom: 9px; font-size: 1.3rem; }
.award-list p { font-size: 1.0625rem; color: var(--muted); margin-bottom: 5px; }
.review-service > p { color: var(--muted); font-size: 1.0625rem; margin-top: 22px; }
.review-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 37px; margin-top: 25px; }
.review-grid h4 { font-size: 1.125rem; margin-bottom: 17px; }
.review-grid ul { padding: 0; margin: 0; list-style: none; font-size: 1.0625rem; line-height: 1.65; color: var(--muted); }
.review-grid li { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.resume-pages { display: grid; grid-template-columns: 1fr; gap: 29px; }
.resume-pages figure { margin: 0; padding: 17px; background: var(--soft); border: 1px solid var(--line); border-radius: 7px; }
.resume-pages a, .resume-pages img { display: block; width: 100%; }
.resume-pages img { height: auto; background: #fff; }
.resume-pages figcaption { font-size: .875rem; color: var(--muted); margin-bottom: 13px; }
.contact > h2 { margin-bottom: 22px; }
.contact > p:not(.eyebrow) { max-width: 700px; color: var(--muted); }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 29px; }
.contact-email { font-size: 1rem; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 28px 0 38px; border-top: 1px solid var(--line); margin-top: 76px; color: var(--faint); font-size: .875rem; }
.footer a { color: var(--faint); }
dialog { max-width: min(1100px,94vw); width: fit-content; border: 0; border-radius: 7px; padding: 22px; background: var(--bg); color: var(--ink); max-height: 92dvh; box-shadow: 0 20px 80px #0004; }
dialog::backdrop { background: #121c2ad9; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: .9375rem; color: var(--faint); margin-bottom: 18px; }
.dialog-top button { background: var(--soft); color: var(--ink); border: 0; border-radius: 4px; min-height: 40px; padding: 7px 15px; font-size: .9375rem; }
dialog img { display: block; max-width: 100%; max-height: 68dvh; object-fit: contain; margin: 0 auto; background: #fff; }
dialog p { font-size: .9375rem; line-height: 1.7; max-width: 850px; margin: 18px 0 0; }

@media (max-width: 1120px) {
  :root { --gutter: 32px; --sidebar: 195px; --gap: 47px; }
  .site-shell { padding-top: 47px; }
  .introduction h1 { font-size: 3.125rem; }
  .research-grid { gap: 37px 29px; }
  .research-card h3 { font-size: 1.25rem; }
  .education-list article { flex-direction: column; gap: 10px; }
  .education-list time { text-align: left; }
  .education-list time span { display: inline; margin-left: 8px; }
  .publication { grid-template-columns: 180px minmax(0,1fr); gap: 26px; }
  .industry-role, .experience-item, .teaching-list article { grid-template-columns: 149px minmax(0,1fr); gap: 23px; }
}
@media (max-width: 930px) {
  :root { --gutter: 28px; --sidebar: 185px; --gap: 36px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card h3 { min-height: 0; }
  .research-image { height: 250px; }
  .publication { grid-template-columns: 155px minmax(0,1fr); gap: 23px; }
  .paper-figure { height: 150px; }
  .industry-role, .experience-item, .teaching-list article { grid-template-columns: 1fr; gap: 10px; }
  .industry-role time { grid-row: auto; }
  .industry-role h4, .industry-role .role-label, .industry-role p { grid-column: 1; }
  .review-grid { grid-template-columns: 1fr; gap: 29px; }
}
@media (max-width: 820px) {
  :root { --gutter: 28px; }
  html { scroll-padding-top: 90px; }
  .site-shell { display: block; padding-top: 0; }
  .sidebar { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; position: sticky; top: 0; z-index: 40; max-height: none; overflow: visible; margin: 0 calc(-1 * var(--gutter)); padding: 16px var(--gutter); background: var(--bg); }
  .profile .portrait-link, .profile-affiliations, .profile-links { display: none; }
  .profile-name { margin: 0; font-size: 1.125rem; letter-spacing: -.025em; }
  .menu-toggle { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 10px; min-height: 36px; background: none; border: 0; padding: 0; font-size: .9375rem; color: var(--muted); }
  .sidebar-bottom { grid-column: 3; grid-row: 1; margin: 0; }
  .sidebar-bottom .theme-toggle { width: 30px; justify-content: center; }
  .sidebar-bottom .theme-label { display: none; }
  .site-nav { display: none; grid-column: 1 / -1; margin: 0; }
  .site-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; padding: 8px 0; }
  .site-nav a { min-height: 44px; padding: 7px 0; }
  main { padding-top: 24px; }
  .portrait-mobile { display: block; width: 128px; height: 128px; border: 0; padding: 0; background: none; border-radius: 50%; overflow: hidden; margin-bottom: 27px; }
  .portrait-mobile img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .mobile-profile-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 25px; }
  .mobile-profile-links a { min-height: 36px; font-size: .9375rem; }
  .introduction h1 { font-size: 3rem; }
  .section, .publication { scroll-margin-top: 0; }
  .research-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 39px 29px; }
  .research-card h3 { min-height: 0; }
  .research-image { height: 220px; }
  .publication { grid-template-columns: 185px minmax(0,1fr); gap: 27px; }
  .paper-figure { height: 165px; }
  .industry-role, .experience-item, .teaching-list article { grid-template-columns: 168px minmax(0,1fr); gap: 26px; }
  .industry-role time { grid-row: 1 / span 2; }
  .industry-role h4, .industry-role .role-label, .industry-role p { grid-column: 2; }
}
@media (max-width: 600px) {
  :root { --gutter: 22px; }
  .sidebar { gap: 13px; }
  .site-nav.is-open { gap: 4px 13px; }
  .site-nav a { font-size: .875rem; }
  .introduction > .eyebrow { font-size: .875rem; letter-spacing: .035em; }
  .introduction h1 { font-size: 2.5rem; letter-spacing: -.04em; margin-bottom: 19px; }
  .intro-lead { font-size: 1.35rem; }
  .intro-actions { gap: 22px; }
  .news-section { margin-top: 42px; }
  .news-list li { grid-template-columns: 1fr; gap: 5px; padding: 14px 0; }
  .section { margin-top: 60px; padding-top: 38px; }
  h2 { font-size: 1.8rem; }
  .section-heading { flex-wrap: wrap; align-items: start; gap: 17px; margin-bottom: 29px; }
  .section-heading > a { margin-bottom: 0; }
  .research-grid { grid-template-columns: 1fr; gap: 32px; }
  .research-card h3 { min-height: 0; font-size: 1.4rem; }
  .research-image { height: 230px; }
  .publication-controls { gap: 14px; }
  .filter-buttons { flex: 1; gap: 20px; }
  .topic-filter { flex-basis: 100%; order: 3; }
  .publication { grid-template-columns: 1fr; gap: 22px; }
  .paper-figure { max-width: 360px; height: 220px; }
  .publication h3 { font-size: 1.1875rem; }
  .venue .paper-status { display: block; margin-left: 0; margin-top: 3px; }
  .research-media article { grid-template-columns: 1fr; gap: 7px; }
  .employer-heading { flex-wrap: wrap; gap: 7px; }
  .industry-role, .experience-item, .teaching-list article { grid-template-columns: 1fr; gap: 10px; }
  .industry-role time { grid-row: auto; }
  .industry-role h4, .industry-role .role-label, .industry-role p { grid-column: 1; }
  .education-list time span { display: block; margin-left: 0; }
  .expertise-grid, .review-grid, .resume-pages { grid-template-columns: 1fr; }
  .subsection-heading { flex-wrap: wrap; gap: 7px; }
  .award-list li { grid-template-columns: 1fr; gap: 8px; }
  .contact-actions { flex-direction: column; align-items: start; gap: 20px; }
  .footer { justify-content: start; gap: 10px 19px; }
  .footer a { margin-left: auto; }
  dialog { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Shared blue accents connect publications, experience, teaching, and service. */
.project-figure { margin: auto 0 18px; }
.project-figure figcaption { font-size: .875rem; line-height: 1.65; color: var(--faint); margin-top: 10px; }
.card-links, .paper-links { gap: 9px; }
.card-links a, .paper-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 4px; font-weight: 400; }
.card-links a:hover, .paper-links a:hover { background: var(--soft); text-decoration: none; border-color: var(--accent); }
.paper-status { color: var(--muted); }
.news-list time, .timeline-date, .teaching-list time, .industry-role time, .degree-row time, .award-list time, .research-media time, .card-top time { color: var(--accent); font-weight: 500; }
.experience-group { margin-top: 43px; }
.experience-group:first-of-type { margin-top: 0; }
.group-title { color: var(--accent); font-size: 1.5rem; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 27px; }
.impact-grid, .review-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; padding: 23px 0; margin: 18px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.impact-grid dt, .review-summary dt { color: var(--accent); font-size: 1.7rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; margin-bottom: 8px; }
.impact-grid dd, .review-summary dd { color: var(--muted); font-size: .9375rem; line-height: 1.65; margin: 0; }
.education-institution { padding: 0 0 28px; }
.education-institution > h4 { color: var(--accent); font-size: 1.2rem; margin-bottom: 22px; }
.uiuc-education > h4 { font-size: 1.4rem; }
.degree-row { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 25px; }
.degree-row h5 { font: inherit; font-size: 1.125rem; font-weight: 600; line-height: 1.5; margin: 0 0 7px; }
.degree-focus { color: var(--accent); font-size: 1.0625rem; margin-bottom: 8px; }
.degree-meta { color: var(--faint); font-size: .9375rem; margin: 0; }
.degree-row time { color: var(--muted); font-size: .9375rem; flex-shrink: 0; text-align: right; }
.degree-row time span { display: block; color: var(--faint); font-size: .875rem; }
.expertise-grid { gap: 0 35px; }
.expertise-grid > div { padding: 19px 0; border-bottom: 1px solid var(--line); }
.expertise-grid dt { color: var(--accent); }
.teaching-list ul { color: var(--muted); font-size: 1.0625rem; padding-left: 21px; margin: 0; }
.teaching-list li { padding-left: 3px; margin-bottom: 9px; }
.course-code { display: inline-block; font-size: .875rem; font-weight: 400; color: var(--accent); margin-left: 7px; white-space: nowrap; }
.teaching-list .program-name { color: var(--faint); font-size: .9375rem !important; line-height: 1.7; margin-top: 14px; }
.award-venue { color: var(--accent) !important; font-weight: 500; }
.review-service { margin-top: 46px; }
.review-service .subsection-heading h3 { font-size: 1.5rem; color: var(--accent); }
.review-summary { margin-top: 25px; }
.review-summary dt { font-size: 2rem; }
.review-grid h4 > span { display: block; font-size: .9375rem; font-weight: 400; color: var(--faint); margin-top: 7px; }
.review-grid li strong { font-size: 1rem; color: var(--accent); font-weight: 500; min-width: 20px; text-align: right; }
.resume-disclosure > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; width: 100%; min-height: 57px; padding: 13px 17px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; }
.resume-disclosure > summary::before { content: '+'; font-size: 1.35rem; line-height: 1; }
.resume-disclosure[open] > summary::before { content: '−'; }
.resume-disclosure > summary::-webkit-details-marker { display: none; }
.resume-disclosure .resume-hide, .resume-disclosure[open] .resume-show { display: none; }
.resume-disclosure[open] .resume-hide { display: inline; }
.resume-page-count { margin-left: auto; font-size: .875rem; color: var(--faint); }
.resume-pages { padding-top: 22px; }
.resume-pages a { background: var(--bg); border-radius: 3px; overflow: hidden; }
:root[data-theme=dark] .resume-pages img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
.image-dialog-open { overflow: hidden; }
.portrait-dialog { padding: 22px; width: min(520px,90vw); }
.portrait-dialog img { width: 100%; max-height: 65dvh; object-fit: contain; border-radius: 5px; }
.portrait-dialog p { text-align: center; }
@media (max-width: 1120px) { .degree-row { flex-direction: column; gap: 12px; } .degree-row time { text-align: left; } }
@media (max-width: 930px) { .impact-grid { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 820px) { .profile .profile-links { display: none; } .mobile-profile-links { display: flex; } .impact-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 600px) { .impact-grid { grid-template-columns: 1fr; } .group-title { font-size: 1.4rem; } .review-summary { gap: 16px; } .review-summary dt { font-size: 1.7rem; } .review-summary dd { font-size: .875rem; } .resume-disclosure > summary { gap: 10px; } .resume-page-count { flex-basis: 100%; margin-left: 23px; } .resume-pages figure { padding: 12px; } }

/* A software-first toolkit with one systems row. */
.expertise-grid > .systems-expertise { grid-column: 1 / -1; border-bottom: 0; }
@media (min-width: 821px) and (max-height: 800px) {
  .site-shell { padding-top: 38px; }
  .sidebar { top: 16px; max-height: calc(100dvh - 32px); }
  .portrait-link { width: 132px; height: 132px; }
  .profile-name { margin-top: 9px; margin-bottom: 3px; }
  .profile-affiliations { gap: 7px; margin: 7px 0 10px; }
  .profile-links { gap: 0; }
  .profile-links a { min-height: 25px; }
  .site-nav { margin-top: 8px; }
  .site-nav a { min-height: 27px; padding: 2px 0; }
  .sidebar-bottom { margin-top: 5px; }
}
