:root {
  color-scheme: light;
  --ink: #242d28;
  --muted: #56615a;
  --green: #21664f;
  --green-dark: #154834;
  --soft-green: #f0f5f2;
  --line: #dce4de;
  --sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; background: #fff; color: var(--ink); font: 18px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--green-dark); }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #a35b2d; outline-offset: 5px; }
img { display: block; max-width: 100%; }
svg { vertical-align: middle; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1 { font-size: clamp(38px, 4.3vw, 52px); line-height: 1.18; font-weight: 450; letter-spacing: -1.3px; }
h1 strong { font-weight: 650; }
h2 { font-size: 32px; line-height: 1.3; font-weight: 500; letter-spacing: -.5px; }
h3 { line-height: 1.45; }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 30; padding: 10px 18px; background: var(--green); color: white; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.wordmark { text-decoration: none; color: var(--ink); font-size: 21px; font-weight: 600; white-space: nowrap; }
.wordmark span { color: var(--green); }
.nav { display: flex; align-items: center; gap: 27px; }
.nav a { color: var(--muted); font-size: 16px; text-decoration: none; padding-block: 10px; }
.nav a:hover { color: var(--green); text-decoration: underline; }
.nav a[aria-current='page'], .nav a.section-active { color: var(--green); font-weight: 650; text-decoration: underline; text-underline-offset: 8px; }
.nav .cv-link { color: var(--green); border: 1px solid #bdcbc3; border-radius: 4px; padding: 4px 13px; }
.mobile-menu { display: none; }
.intro { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 65px; align-items: start; padding: 60px 0 48px; }
.eyebrow { color: var(--green); font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.intro .eyebrow { margin-bottom: 12px; }
.position { font-size: 21px; margin-top: 14px; line-height: 1.6; }
.position span { display: block; font-size: 18px; margin-top: 2px; }
.position a { text-decoration: none; }
.bio { margin-top: 25px; }
.bio p + p { margin-top: 16px; }
.bio strong { font-weight: 600; }
.bio .background { color: var(--muted); font-size: 18px; }
.focus-list { margin: 13px 0 19px; padding-left: 22px; }
.focus-list li { padding: 4px 0; }
.profile { padding-top: 8px; }
.portrait { width: 280px; height: 320px; object-fit: cover; object-position: center 40%; border-radius: 5px; }
.profile figcaption { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 15px; color: var(--muted); }
.social-links { display: flex; flex-wrap: wrap; gap: 13px 25px; margin-top: 25px; font-size: 17px; }
.social-links a { text-decoration: none; }
.social-links a:hover { text-decoration: underline; }
.section { padding: 42px 0 46px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; margin-bottom: 27px; }
.section-heading > a { font-size: 16px; }
.news-list { margin: 0; }
.news-item { display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 25px; padding: 9px 0; }
.news-item dt { font-size: 16px; font-weight: 600; }
.news-item dd { margin: 0; }
.home-feature h3 { font-size: 27px; margin: 9px 0 12px; font-weight: 600; }
.home-feature > p:not(.pub-meta) { max-width: 850px; margin-bottom: 24px; }
.home-feature > .button { margin-top: 24px; }
.education-list { display: grid; gap: 25px; }
.education-item { display: grid; grid-template-columns: 195px minmax(0,1fr); gap: 30px; }
.education-item .date { font-size: 16px; color: var(--muted); padding-top: 3px; }
.education-item h3 { font-size: 20px; font-weight: 600; }
.education-item p { color: var(--muted); font-size: 18px; }
.page-heading { padding: 55px 0 39px; }
.page-heading .eyebrow { margin-bottom: 12px; }
.page-heading > p:not(.eyebrow) { color: var(--muted); max-width: 820px; margin-top: 18px; font-size: 19px; }
.page-heading .button { margin-top: 25px; }
.page-heading .back-link { display: inline-block; font-size: 16px; margin-bottom: 24px; }
.publication-year { font-size: 26px; font-weight: 500; padding-bottom: 25px; }
.publication { padding: 0 0 44px; }
.publication + .publication { padding-top: 39px; border-top: 1px solid var(--line); }
.pub-meta { color: var(--green); font-size: 14px; font-weight: 650; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 10px; }
.publication h3 { font-size: 23px; font-weight: 600; max-width: 1040px; }
.publication h3 a { color: var(--ink); text-decoration: none; }
.publication h3 a:hover { color: var(--green); text-decoration: underline; }
.authors { color: var(--muted); font-size: 16px; line-height: 1.8; margin-top: 13px; max-width: 1030px; }
.authors strong { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pub-venue { color: var(--muted); font-size: 16px; font-style: italic; margin-top: 9px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; margin-top: 20px; }
.pub-links a { text-decoration: none; padding: 5px 13px; border: 1px solid #b2c2b8; border-radius: 4px; }
.pub-links a:hover { background: var(--soft-green); }
.preprint-label { color: #795a40; }
.publication-figure { margin-top: 26px; }
.publication-figure.compact { max-width: 700px; }
.publication-figure > a, .teaser-figure > a { display: block; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.publication-figure img, .teaser-figure img { width: 100%; height: auto; }
.publication-figure figcaption, .teaser-figure figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }
.publication-figure figcaption a { display: inline-block; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 17px; border: 1px solid var(--green); border-radius: 4px; color: var(--green); text-decoration: none; font-size: 16px; font-weight: 600; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); color: white; }
.chatmuse-heading h1 { font-size: 52px; }
.page-heading.chatmuse-heading > .project-subtitle { color: var(--ink); max-width: 1040px; font-size: 25px; line-height: 1.5; }
.page-heading.chatmuse-heading > .authors { font-size: 16px; margin-top: 20px; }
.page-heading.chatmuse-heading > .pub-meta { font-size: 14px; color: var(--green); margin-top: 0; }
.feature-description { max-width: 850px; margin: 30px 0 33px; }
.feature-description h2 { font-size: 27px; margin-bottom: 14px; }
.feature-description p { font-size: 18px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--green); font-size: 15px; }
.video-area { max-width: 960px; margin: 30px auto 55px; }
.video-area h2 { font-size: 28px; margin-bottom: 20px; }
.video-frame { background: #edf0ea; aspect-ratio: 16/9; width: 100%; position: relative; overflow: hidden; border-radius: 5px; }
.video-launch { display: block; position: relative; padding: 0; width: 100%; height: 100%; border: 0; color: white; text-decoration: none; }
.video-launch:hover { color: white; }
.video-launch img { width: 100%; height: 100%; object-fit: cover; }
.video-launch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.65)); }
.play-icon { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 74px; height: 74px; background: var(--green); border-radius: 50%; box-shadow: 0 3px 20px #0003; }
.play-label { position: absolute; z-index: 1; bottom: 20px; left: 24px; font-size: 19px; font-weight: 600; }
.video-frame iframe { display: block; border: 0; width: 100%; height: 100%; }
.video-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--muted); margin-top: 11px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 38px; padding-bottom: 55px; }
.project { min-width: 0; }
.project > img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; background: #edf0ea; }
.project-type { color: var(--green); font-size: 14px; letter-spacing: .5px; text-transform: uppercase; margin-top: 22px; }
.project h2 { font-size: 26px; font-weight: 600; margin-top: 5px; }
.project > p:not(.project-type) { margin-top: 11px; color: var(--muted); font-size: 18px; }
.project > p.project-role { font-size: 16px; font-style: italic; }
.project details { font-size: 17px; margin-top: 18px; color: var(--muted); }
.project summary { width: fit-content; color: var(--green); font-size: 16px; }
.project details p { margin-top: 15px; }
.project details a { display: inline-block; margin-top: 15px; }
.service-content { max-width: 980px; padding-bottom: 30px; }
.academic-block { padding: 30px 0; border-top: 1px solid var(--line); }
.academic-block h2 { font-size: 29px; margin-bottom: 25px; }
.academic-block ul { list-style: none; padding: 0; margin: 0; }
.academic-block li { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 25px; padding-bottom: 24px; font-size: 19px; }
.academic-block time, .academic-block .date { font-size: 16px; color: var(--muted); padding-top: 3px; }
.academic-block small { display: block; color: var(--muted); font-size: 17px; margin-top: 5px; }
.academic-block .award { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; font-size: 18px; }
.academic-block .award strong { font-weight: 600; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 25px; border-top: 1px solid var(--line); padding: 35px 0 40px; }
.contact h2 { font-size: 28px; }
.contact p { color: var(--muted); font-size: 17px; margin-top: 9px; max-width: 720px; }
.contact > a { font-size: 17px; white-space: nowrap; }
footer { border-top: 1px solid var(--line); padding: 25px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; font-size: 14px; color: var(--muted); }
.footer-inner a { color: inherit; }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 48px); }
  .intro { grid-template-columns: minmax(0,1fr) 215px; gap: 35px; }
  .portrait { width: 215px; height: 250px; }
  .nav { gap: 17px; }
  .nav a { font-size: 15px; }
  .project-grid { gap: 40px 28px; }
}
@media (max-width: 760px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu > summary { list-style: none; border: 1px solid #b2c2b8; border-radius: 4px; padding: 5px 12px; font-size: 16px; color: var(--green); }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .mobile-menu > summary::after { content: ' +'; }
  .mobile-menu[open] > summary::after { content: ' −'; }
  .mobile-menu .nav { position: absolute; top: calc(100% + 12px); right: 0; width: 245px; padding: 14px 22px; background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 12px 32px #173a2320; display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .mobile-menu .nav a { font-size: 17px; padding: 9px 0; }
  .mobile-menu .nav .cv-link { margin: 8px 0; padding: 5px 12px; text-align: center; }
  .header-inner { min-height: 72px; }
  .intro { grid-template-columns: minmax(0,1fr) 170px; gap: 25px; }
  .portrait { width: 170px; height: 205px; }
  .intro-copy { display: contents; }
  .intro-heading { grid-column: 1; }
  .profile { grid-column: 2; grid-row: 1; }
  .bio, .social-links { grid-column: 1/-1; margin-top: 0; }
  .project-grid { grid-template-columns: 1fr; gap: 43px; }
  .project > img { max-width: 640px; }
  .contact { flex-direction: column; align-items: start; }
  .education-item { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 36px); }
  body { font-size: 18px; }
  .wordmark { font-size: 19px; }
  .intro { display: flex; flex-direction: column; gap: 24px; padding: 34px 0 36px; }
  .intro-heading { order: 1; }
  .profile { order: 2; padding: 0; }
  .bio { order: 3; }
  .social-links { order: 4; gap: 12px 22px; }
  .portrait { width: 180px; height: 210px; }
  .eyebrow { font-size: 13px; }
  h1 { font-size: 41px; }
  h2 { font-size: 29px; }
  .position { font-size: 19px; }
  .position span { font-size: 17px; }
  .section { padding: 32px 0 36px; }
  .news-item { grid-template-columns: 1fr; gap: 3px; padding: 11px 0; }
  .page-heading { padding: 35px 0 30px; }
  .page-heading > p:not(.eyebrow) { font-size: 18px; }
  .publication { padding-bottom: 35px; }
  .publication + .publication { padding-top: 30px; }
  .publication h3 { font-size: 22px; }
  .authors, .pub-venue { font-size: 16px; }
  .pub-links { gap: 9px; }
  .publication-figure figcaption, .teaser-figure figcaption { font-size: 14px; }
  .chatmuse-heading h1 { font-size: 42px; }
  .page-heading.chatmuse-heading > .project-subtitle { font-size: 23px; }
  .play-icon { width: 58px; height: 58px; }
  .play-label { font-size: 15px; left: 14px; bottom: 12px; }
  .video-caption { font-size: 14px; }
  .academic-block li { grid-template-columns: 1fr; gap: 5px; font-size: 18px; }
  .academic-block small { font-size: 16px; }
  .footer-inner { flex-direction: column; gap: 9px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header { position: static; }
  .nav, .mobile-menu, .video-area, .skip-link { display: none; }
  .wrap { width: 100%; }
  .intro, .page-heading { padding-block: 25px; }
  .publication, .project, .academic-block { break-inside: avoid; }
}
