
:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-2: #eef2f5;
  --text: #17212b;
  --muted: #5f6b76;
  --faint: #7e8993;
  --border: #dde3e8;
  --accent: #174d72;
  --accent-strong: #103a58;
  --accent-soft: #eaf2f7;
  --header-bg: rgba(255,255,255,.92);
  --max: 1180px;
  --reading: 760px;
  --radius: 12px;
  --shadow: 0 16px 40px rgba(21,36,50,.07);
}
html[data-theme="dark"] {
  --bg: #101418;
  --surface: #151b20;
  --surface-2: #1b232a;
  --text: #e8edf1;
  --muted: #a7b0b8;
  --faint: #89949d;
  --border: #29343d;
  --accent: #86b9d9;
  --accent-strong: #b6d6e9;
  --accent-soft: #162936;
  --header-bg: rgba(16,20,24,.92);
  --shadow: 0 18px 44px rgba(0,0,0,.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background:var(--bg); color:var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height:1.65; -webkit-font-smoothing:antialiased; }
a { color:inherit; }
img { max-width:100%; height:auto; }
button, input { font:inherit; }
.shell { width:min(var(--max), calc(100% - 48px)); margin-inline:auto; }
.skip-link { position:absolute; left:18px; top:-60px; z-index:1000; padding:10px 14px; background:var(--text); color:var(--bg); border-radius:6px; text-decoration:none; }
.skip-link:focus { top:14px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.site-header { position:sticky; top:0; z-index:100; background:var(--header-bg); backdrop-filter:blur(14px); border-bottom:1px solid var(--border); }
.header-inner { min-height:78px; display:flex; align-items:center; gap:30px; }
.site-brand { display:flex; flex-direction:column; text-decoration:none; margin-right:auto; line-height:1.15; }
.brand-name { font-size:16px; font-weight:700; letter-spacing:-.01em; }
.brand-role { margin-top:5px; font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.12em; }
.site-nav { display:flex; align-items:center; gap:25px; }
.site-nav a { position:relative; text-decoration:none; color:var(--muted); font-size:14px; font-weight:600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color:var(--text); }
.site-nav a[aria-current="page"]::after { content:""; position:absolute; left:0; right:0; bottom:-9px; height:2px; background:var(--accent); }
.site-nav .nav-cv { padding:8px 13px; border:1px solid var(--border); border-radius:7px; color:var(--text); }
.site-nav .nav-cv::after { display:none; }
.theme-toggle { border:0; background:transparent; color:var(--muted); width:34px; height:34px; border-radius:50%; cursor:pointer; font-size:19px; }
.theme-toggle:hover { background:var(--surface); color:var(--text); }
.nav-toggle { display:none; border:0; background:transparent; padding:8px; }
.nav-toggle span { display:block; width:22px; height:2px; background:var(--text); margin:5px 0; }
.hero { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr); gap:88px; align-items:center; padding-top:88px; padding-bottom:96px; }
.eyebrow { margin:0 0 14px; color:var(--accent); font-size:12px; font-weight:750; letter-spacing:.14em; text-transform:uppercase; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { line-height:1.18; letter-spacing:-.025em; }
h1 { font-size:clamp(43px,5.1vw,68px); font-weight:720; margin-bottom:25px; }
h2 { font-size:clamp(30px,3.4vw,43px); font-weight:690; margin-bottom:18px; }
h3 { font-size:20px; font-weight:690; margin-bottom:10px; }
.hero-lead { font-size:clamp(21px,2.2vw,29px); line-height:1.45; max-width:800px; letter-spacing:-.014em; margin-bottom:22px; }
.hero-detail { color:var(--muted); max-width:720px; font-size:16px; }
.hero-actions, .page-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:30px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:43px; padding:9px 17px; border:1px solid var(--border); border-radius:7px; text-decoration:none; font-size:14px; font-weight:650; background:var(--bg); }
.button:hover { border-color:var(--accent); color:var(--accent); }
.button.primary { background:var(--accent); border-color:var(--accent); color:white; }
.button.primary:hover { background:var(--accent-strong); color:white; }
.text-link { color:var(--accent); font-size:14px; font-weight:650; text-decoration:none; }
.text-link:hover { text-decoration:underline; text-underline-offset:4px; }
.profile-links { display:flex; gap:20px; flex-wrap:wrap; margin-top:36px; padding-top:24px; border-top:1px solid var(--border); max-width:680px; }
.profile-links a { color:var(--muted); font-size:13px; font-weight:650; text-decoration:none; }
.profile-links a:hover { color:var(--accent); }
.hero-portrait { margin:0; }
.hero-portrait img, .about-photo img { width:100%; display:block; border-radius:10px; object-fit:cover; box-shadow:var(--shadow); }
.hero-portrait figcaption { color:var(--muted); font-size:12px; line-height:1.55; margin-top:13px; }
.section { padding-top:88px; padding-bottom:88px; }
.section-tint { background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-heading { max-width:720px; margin-bottom:42px; }
.section-heading > p:last-child, .page-lead { color:var(--muted); font-size:17px; }
.section-heading.compact { max-width:420px; margin-bottom:0; }
.split-heading { max-width:none; display:flex; justify-content:space-between; align-items:flex-end; gap:28px; }
.split-heading > div { max-width:720px; }
.theme-grid { display:grid; grid-template-columns:repeat(2,1fr); border-top:1px solid var(--border); border-left:1px solid var(--border); }
.theme-item { min-height:245px; padding:32px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); text-decoration:none; transition:background .18s ease; }
.theme-item:hover { background:var(--surface); }
.theme-number, .stream-index { display:block; color:var(--faint); font-size:11px; font-weight:750; letter-spacing:.12em; margin-bottom:42px; }
.theme-item p { color:var(--muted); max-width:480px; margin-bottom:0; }
.two-column-feature, .updates-layout, .education-layout, .talks-layout { display:grid; grid-template-columns:minmax(240px,.72fr) minmax(0,1.5fr); gap:90px; align-items:start; }
.selected-publications { border-top:1px solid var(--border); }
.publication-row { display:grid; grid-template-columns:64px 1fr; gap:22px; padding:25px 0; border-bottom:1px solid var(--border); }
.pub-year { color:var(--faint); font-size:13px; font-weight:700; }
.publication-row h3 { font-size:17px; line-height:1.45; margin-bottom:5px; }
.publication-row p { color:var(--muted); font-size:14px; margin-bottom:7px; }
.publication-row a { color:var(--accent); font-size:12px; font-weight:700; text-decoration:none; }
.project-feature-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
.project-feature { border:1px solid var(--border); background:var(--bg); }
.project-media { height:260px; overflow:hidden; background:#e9eef1; }
.project-media img { width:100%; height:100%; object-fit:cover; display:block; }
.project-media.contain img { object-fit:cover; }
.project-copy { padding:28px; }
.project-kicker { color:var(--accent); font-size:11px; font-weight:750; text-transform:uppercase; letter-spacing:.12em; margin-bottom:9px; }
.project-copy p { color:var(--muted); }
.project-copy a { color:var(--accent); font-size:13px; font-weight:700; text-decoration:none; }
.updates-list { border-top:1px solid var(--border); }
.update-row { display:grid; grid-template-columns:110px 1fr; gap:24px; border-bottom:1px solid var(--border); padding:20px 0; }
.update-row time { color:var(--faint); font-size:12px; font-weight:700; }
.update-row a { text-decoration:none; font-weight:600; line-height:1.45; }
.update-row a:hover { color:var(--accent); }
.page-hero { padding-top:78px; padding-bottom:76px; border-bottom:1px solid var(--border); }
.page-hero h1 { max-width:980px; font-size:clamp(40px,4.6vw,61px); }
.page-hero .page-lead { max-width:830px; font-size:19px; line-height:1.65; }
.page-hero.narrow-bottom { padding-bottom:55px; }
.research-stream { display:grid; grid-template-columns:60px minmax(0,1fr) minmax(300px,.78fr); gap:48px; align-items:center; padding-top:80px; padding-bottom:80px; border-bottom:1px solid var(--border); }
.stream-index { margin:0; align-self:start; padding-top:8px; }
.stream-copy p:not(.eyebrow) { color:var(--muted); font-size:16px; }
.keyword-line { display:flex; gap:8px 16px; flex-wrap:wrap; margin-top:25px; }
.keyword-line span { color:var(--muted); font-size:12px; border-bottom:1px solid var(--border); padding-bottom:3px; }
.stream-figure { margin:0; }
.stream-figure img { display:block; width:100%; max-height:310px; object-fit:cover; border:1px solid var(--border); }
.stream-figure.dark-media { background:#05070a; }
.stream-figure figcaption { color:var(--faint); font-size:11px; line-height:1.45; margin-top:9px; }
.project-list { border-top:1px solid var(--border); }
.project-row { display:grid; grid-template-columns:220px 1fr 170px; gap:28px; padding:27px 0; border-bottom:1px solid var(--border); align-items:start; }
.project-row h3 { font-size:18px; margin-bottom:4px; }
.project-row .project-date { color:var(--faint); font-size:12px; font-weight:700; }
.project-row .project-desc { color:var(--muted); font-size:14px; margin-bottom:10px; }
.project-row .project-affiliation { color:var(--faint); font-size:12px; margin-bottom:0; }
.project-skills { display:flex; flex-wrap:wrap; gap:6px 12px; }
.project-skills span { color:var(--muted); font-size:11px; }
.project-row .project-link { justify-self:end; color:var(--accent); font-size:12px; font-weight:700; text-decoration:none; }
.callout { display:flex; justify-content:space-between; align-items:center; gap:30px; }
.callout h2 { margin-bottom:8px; }
.callout p:not(.eyebrow) { color:var(--muted); margin-bottom:0; }
.publication-section { padding-top:38px; padding-bottom:90px; }
.publication-toolbar { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:26px; }
.search-field { width:min(520px,100%); position:relative; display:block; }
.search-field input { width:100%; height:46px; border:1px solid var(--border); background:var(--bg); color:var(--text); border-radius:7px; padding:0 42px 0 14px; outline:none; }
.search-field input:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.search-field > span:not(.sr-only) { position:absolute; right:15px; top:9px; color:var(--faint); font-size:19px; }
.publication-count { color:var(--faint); font-size:12px; }
.pub-year-section { display:grid; grid-template-columns:90px 1fr; gap:32px; border-top:1px solid var(--border); padding:30px 0 12px; }
.pub-year-heading { font-size:16px; color:var(--accent); margin:0; }
.pub-entry { padding:0 0 29px; margin-bottom:27px; border-bottom:1px solid var(--border); }
.pub-entry:last-child { margin-bottom:0; }
.pub-type { color:var(--faint); font-size:10px; font-weight:750; text-transform:uppercase; letter-spacing:.13em; margin-bottom:7px; }
.pub-title { font-size:18px; line-height:1.42; margin-bottom:7px; }
.pub-authors { color:var(--muted); font-size:14px; margin-bottom:5px; }
.pub-venue { color:var(--muted); font-size:13px; font-style:italic; margin-bottom:8px; }
.pub-links { display:flex; flex-wrap:wrap; gap:15px; }
.pub-links a { color:var(--accent); font-size:12px; font-weight:700; text-decoration:none; }
.pub-links a:hover { text-decoration:underline; text-underline-offset:3px; }
.about-hero { display:grid; grid-template-columns:1fr 310px; gap:85px; align-items:center; }
.about-photo { margin:0; }
.reading-width { max-width:calc(var(--reading) + 48px); margin-inline:auto; }
.reading-width > p:not(.eyebrow) { color:var(--muted); font-size:17px; }
.education-list { list-style:none; margin:0; padding:0; border-top:1px solid var(--border); }
.education-list li { display:grid; grid-template-columns:135px 1fr; gap:30px; padding:27px 0; border-bottom:1px solid var(--border); }
.education-years { color:var(--faint); font-size:12px; font-weight:700; }
.education-list h3 { font-size:18px; margin-bottom:5px; }
.education-list p { color:var(--muted); font-size:14px; margin-bottom:4px; }
.muted { color:var(--faint)!important; }
.minimal-grid { display:grid; grid-template-columns:repeat(2,1fr); border-top:1px solid var(--border); }
.minimal-grid > div { padding:29px 30px 29px 0; border-bottom:1px solid var(--border); }
.minimal-grid > div:nth-child(odd) { padding-right:45px; border-right:1px solid var(--border); }
.minimal-grid > div:nth-child(even) { padding-left:45px; }
.minimal-grid p { color:var(--muted); margin-bottom:0; }
.course-list { border-top:1px solid var(--border); }
.course-list article { display:grid; grid-template-columns:180px 1fr; gap:35px; padding:32px 0; border-bottom:1px solid var(--border); }
.course-code { font-size:13px; font-weight:750; color:var(--accent); letter-spacing:.04em; }
.course-role { color:var(--faint); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-bottom:8px; }
.course-list h3 { font-size:22px; }
.course-list article > div:last-child > p:last-child { color:var(--muted); }
.talk-list { border-top:1px solid var(--border); }
.talk-list article { display:grid; grid-template-columns:70px 1fr; gap:25px; padding:23px 0; border-bottom:1px solid var(--border); }
.talk-list time { color:var(--faint); font-size:12px; font-weight:700; }
.talk-list h3 { font-size:17px; margin-bottom:4px; }
.talk-list p { color:var(--muted); font-size:13px; margin-bottom:0; }
.supervision-group { margin-top:45px; }
.supervision-group > h3 { font-size:24px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.supervision-semester { display:grid; grid-template-columns:150px 1fr; gap:28px; padding:24px 0 8px; }
.supervision-semester > h4 { margin:3px 0 0; color:var(--accent); font-size:13px; }
.supervision-items { border-top:1px solid var(--border); }
.supervision-item { padding:19px 0; border-bottom:1px solid var(--border); }
.supervision-item h5 { margin:0 0 5px; font-size:15px; }
.supervision-item p { margin:0 0 4px; color:var(--muted); font-size:13px; }
.supervision-item .supervision-meta { color:var(--faint); font-size:11px; }
.supervision-item a { color:var(--accent); font-size:11px; font-weight:700; text-decoration:none; }
.contact-intro { border-bottom:0; padding-bottom:44px; }
.contact-layout { display:grid; grid-template-columns:1fr 380px; gap:90px; padding-bottom:65px; }
.contact-primary { border-top:1px solid var(--border); }
.contact-block { padding:27px 0; border-bottom:1px solid var(--border); }
.contact-label { color:var(--faint); font-size:11px; font-weight:750; text-transform:uppercase; letter-spacing:.12em; margin-bottom:8px; }
.contact-value { display:block; font-size:20px; line-height:1.55; text-decoration:none; }
a.contact-value:hover { color:var(--accent); }
.profile-panel { background:var(--surface); border:1px solid var(--border); padding:29px; align-self:start; }
.profile-panel h2 { font-size:22px; }
.profile-panel a { display:flex; justify-content:space-between; gap:20px; padding:14px 0; border-top:1px solid var(--border); text-decoration:none; font-size:14px; font-weight:620; }
.profile-panel a:hover { color:var(--accent); }
.contact-note { border-top:1px solid var(--border); max-width:var(--max); }
.contact-note p { max-width:850px; color:var(--muted); font-size:16px; }
.updates-page, .gallery-section { padding-top:38px; padding-bottom:90px; }
.news-year { display:grid; grid-template-columns:100px 1fr; gap:35px; border-top:1px solid var(--border); padding:30px 0 10px; }
.news-year > h2 { font-size:16px; color:var(--accent); }
.news-item { display:grid; grid-template-columns:100px 1fr; gap:24px; padding:19px 0; border-bottom:1px solid var(--border); }
.news-item time { color:var(--faint); font-size:12px; font-weight:700; }
.news-item a { text-decoration:none; font-weight:620; }
.news-item a:hover { color:var(--accent); }
.gallery-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.gallery-item { margin:0; border:1px solid var(--border); background:var(--surface); overflow:hidden; cursor:pointer; }
.gallery-item img { width:100%; height:360px; object-fit:cover; display:block; transition:transform .25s ease; }
.gallery-item:hover img { transform:scale(1.015); }
.gallery-item figcaption { padding:14px 16px; color:var(--muted); font-size:13px; }
.gallery-dialog { width:min(1050px,94vw); max-height:92vh; border:1px solid #3a4248; background:#090c0e; padding:0; color:white; }
.gallery-dialog::backdrop { background:rgba(0,0,0,.82); }
.gallery-dialog img { display:block; width:100%; max-height:78vh; object-fit:contain; background:#050607; }
.gallery-dialog p { padding:13px 18px; margin:0; color:#cbd3d8; }
.dialog-close { position:absolute; top:10px; right:10px; z-index:2; width:38px; height:38px; border:1px solid rgba(255,255,255,.25); border-radius:50%; background:rgba(0,0,0,.55); color:white; cursor:pointer; font-size:24px; line-height:1; }
.loading, .empty { color:var(--muted); font-size:14px; }
.site-footer { border-top:1px solid var(--border); padding:48px 0; }
.footer-grid { display:grid; grid-template-columns:1.2fr .8fr .8fr; gap:60px; }
.footer-name { font-weight:700; margin-bottom:8px; }
.site-footer p, .site-footer a, .site-footer span { color:var(--muted); font-size:12px; }
.footer-links, .footer-meta { display:flex; flex-direction:column; gap:8px; }
.footer-links a, .footer-meta a { text-decoration:none; }
.footer-links a:hover, .footer-meta a:hover { color:var(--accent); }
@media (max-width: 900px) {
  .shell { width:min(var(--max), calc(100% - 32px)); }
  .nav-toggle { display:block; }
  .site-nav { display:none; position:absolute; left:0; right:0; top:78px; background:var(--bg); border-bottom:1px solid var(--border); padding:18px 24px 25px; flex-direction:column; align-items:flex-start; gap:17px; }
  .site-nav.open { display:flex; }
  .site-nav a[aria-current="page"]::after { display:none; }
  .hero { grid-template-columns:1fr 270px; gap:45px; }
  .two-column-feature, .updates-layout, .education-layout, .talks-layout { grid-template-columns:1fr; gap:42px; }
  .section-heading.compact { max-width:720px; }
  .research-stream { grid-template-columns:45px 1fr; }
  .stream-figure { grid-column:2; }
  .project-row { grid-template-columns:160px 1fr; }
  .project-row .project-link { grid-column:2; justify-self:start; }
  .about-hero { grid-template-columns:1fr 250px; gap:45px; }
  .contact-layout { grid-template-columns:1fr 320px; gap:45px; }
}
@media (max-width: 680px) {
  .header-inner { min-height:70px; }
  .brand-role { display:none; }
  .site-nav { top:70px; }
  h1 { font-size:41px; }
  h2 { font-size:31px; }
  .hero { grid-template-columns:1fr; padding-top:55px; padding-bottom:65px; }
  .hero-portrait { max-width:280px; order:-1; }
  .hero-portrait figcaption { display:none; }
  .hero-lead { font-size:21px; }
  .section { padding-top:62px; padding-bottom:62px; }
  .page-hero { padding-top:55px; padding-bottom:54px; }
  .page-hero .page-lead { font-size:16px; }
  .theme-grid, .project-feature-grid, .minimal-grid, .gallery-grid { grid-template-columns:1fr; }
  .theme-grid { border-left:0; }
  .theme-item { border-left:1px solid var(--border); min-height:auto; }
  .theme-number { margin-bottom:24px; }
  .split-heading { display:block; }
  .split-heading .text-link { display:inline-block; margin-top:10px; }
  .publication-row, .update-row, .news-item { grid-template-columns:75px 1fr; gap:15px; }
  .research-stream { grid-template-columns:1fr; gap:20px; padding-top:58px; padding-bottom:58px; }
  .stream-index { display:none; }
  .stream-figure { grid-column:1; }
  .project-row { grid-template-columns:1fr; gap:10px; }
  .project-row .project-link { grid-column:1; }
  .pub-year-section, .news-year { grid-template-columns:1fr; gap:12px; }
  .publication-toolbar { align-items:flex-start; flex-direction:column; }
  .about-hero { grid-template-columns:1fr; }
  .about-photo { max-width:250px; order:-1; }
  .education-list li, .course-list article, .supervision-semester { grid-template-columns:1fr; gap:8px; }
  .minimal-grid > div, .minimal-grid > div:nth-child(odd), .minimal-grid > div:nth-child(even) { padding:24px 0; border-right:0; }
  .contact-layout { grid-template-columns:1fr; gap:38px; }
  .contact-value { font-size:17px; }
  .callout { align-items:flex-start; flex-direction:column; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .gallery-item img { height:260px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } *, *::before, *::after { transition:none!important; animation:none!important; } }
.project-media video { width:100%; height:100%; object-fit:cover; display:block; }
.stream-figure video { display:block; width:100%; max-height:310px; object-fit:cover; border:1px solid var(--border); }


/* Final academic polish */
:focus-visible { outline:3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset:3px; }
.site-brand:focus-visible, .site-nav a:focus-visible, .text-link:focus-visible, .profile-links a:focus-visible { border-radius:3px; }
.hero-portrait figcaption a { color:inherit; text-decoration:none; }
.hero-portrait figcaption a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.page-hero a { color:var(--accent); text-decoration-thickness:1px; text-underline-offset:3px; }
.identity-strip { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.identity-strip > div { padding:22px 24px; border-right:1px solid var(--border); }
.identity-strip > div:first-child { padding-left:0; }
.identity-strip > div:last-child { border-right:0; padding-right:0; }
.identity-strip span { display:block; color:var(--faint); font-size:10px; font-weight:750; letter-spacing:.12em; text-transform:uppercase; margin-bottom:5px; }
.identity-strip strong { font-size:13px; font-weight:650; }
.identity-strip a { text-decoration:none; }
.identity-strip a:hover { color:var(--accent); }
.contact-value a { color:inherit; text-decoration:none; }
.contact-value a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.communication-strip { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:48px; align-items:end; padding-top:44px; padding-bottom:44px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.communication-strip h2 { font-size:26px; margin-bottom:8px; }
.communication-strip p:not(.eyebrow) { color:var(--muted); max-width:720px; margin-bottom:0; }
.communication-links { display:flex; gap:22px; flex-wrap:wrap; justify-content:flex-end; }
.communication-links a { color:var(--accent); font-size:13px; font-weight:700; text-decoration:none; }
.communication-links a:hover { text-decoration:underline; text-underline-offset:3px; }
.not-found { min-height:70vh; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; max-width:820px; padding-top:80px; padding-bottom:80px; }
.not-found h1 { margin-bottom:14px; }
.not-found > p:not(.eyebrow) { color:var(--muted); font-size:18px; margin-bottom:28px; }
.simple-nav { margin-left:auto; }
@media (max-width:900px) {
  .identity-strip { grid-template-columns:repeat(2,1fr); }
  .identity-strip > div { border-bottom:1px solid var(--border); }
  .identity-strip > div:nth-child(2) { border-right:0; }
  .identity-strip > div:nth-last-child(-n+2) { border-bottom:0; }
  .identity-strip > div:first-child, .identity-strip > div:nth-child(3) { padding-left:0; }
}
@media (max-width:680px) {
  .identity-strip { grid-template-columns:1fr; }
  .identity-strip > div, .identity-strip > div:nth-child(2), .identity-strip > div:nth-last-child(-n+2) { border-right:0; border-bottom:1px solid var(--border); padding:17px 0; }
  .identity-strip > div:last-child { border-bottom:0; }
  .communication-strip { grid-template-columns:1fr; gap:18px; align-items:start; }
  .communication-links { justify-content:flex-start; }
  .simple-nav { display:flex; position:static; border:0; padding:0; flex-direction:row; gap:16px; }
  .simple-nav a:not(:last-child) { display:none; }
}
@media print {
  .site-header, .site-footer, .theme-toggle, .nav-toggle, video { display:none!important; }
  body { background:white!important; color:#111!important; }
  .section, .page-hero, .research-stream { padding-top:28px; padding-bottom:28px; }
  a { color:inherit!important; text-decoration:none!important; }
}

/* ==========================================================
   Rustic scholarly refinement — August 2026
   Warm parchment, ink, oxblood, slate blue, ochre and moss.
   ========================================================== */
:root {
  --bg: #ede4d0;
  --surface: #eee0c8;
  --surface-2: #e7d6bb;
  --text: #040403;
  --muted: #62584e;
  --faint: #847668;
  --border: #cfbfa5;
  --accent: #7f3438;
  --accent-strong: #63282c;
  --accent-soft: #ead5cc;
  --ink-blue: #355d74;
  --rust: #a15338;
  --ochre: #a4712a;
  --moss: #62734d;
  --plum: #7a4a61;
  --header-bg: rgba(244,234,216,.94);
  --max: 1180px;
  --reading: 770px;
  --radius: 5px;
  --shadow: 0 18px 44px rgba(65,45,27,.11);
}
html[data-theme="dark"] {
  --bg: #211b18;
  --surface: #2a231f;
  --surface-2: #332a24;
  --text: #efe5d5;
  --muted: #c3b5a3;
  --faint: #9e8f7e;
  --border: #514237;
  --accent: #d58b77;
  --accent-strong: #e7a18c;
  --accent-soft: #3c2925;
  --ink-blue: #8fb3c7;
  --rust: #d18468;
  --ochre: #d5ad66;
  --moss: #9fb184;
  --plum: #c995ac;
  --header-bg: rgba(33,27,24,.94);
  --shadow: 0 20px 48px rgba(0,0,0,.28);
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(127,52,56,.035), transparent 22rem),
    radial-gradient(circle at 88% 32%, rgba(53,93,116,.035), transparent 26rem),
    repeating-linear-gradient(0deg, rgba(64,44,27,.012) 0, rgba(64,44,27,.012) 1px, transparent 1px, transparent 4px);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, .brand-name, .footer-name {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  letter-spacing: -.018em;
}

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset;
}
.header-inner { min-height: 76px; }
.brand-name { color: var(--accent-strong); font-size: 18px; font-weight: 700; }
.brand-role { color: var(--faint); letter-spacing: .13em; }
.site-nav { gap: 20px; }
.site-nav a { color: var(--muted); font-size: 13px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-strong); }
.site-nav a[aria-current="page"]::after { background: var(--accent); height: 2px; }
.site-nav .nav-cv {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  background: rgba(255,255,255,.16);
  border-radius: 3px;
}
.theme-toggle:hover { background: var(--surface); }

/* Keep the personal panoramic cover, but treat it as a restrained masthead. */
.heritage-masthead {
  height: clamp(118px, 15vw, 205px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  position: relative;
}
.heritage-masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(244,234,216,.03), rgba(98,66,39,.08));
  box-shadow: inset 0 -16px 30px rgba(62,42,24,.08);
}
.heritage-masthead img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(.78) contrast(.95) sepia(.10);
}
html[data-theme="dark"] .heritage-masthead img { filter: saturate(.62) brightness(.72) sepia(.16); }

.hero { padding-top: 72px; padding-bottom: 84px; gap: 78px; }
.hero h1, .page-hero h1 { color: #352c26; }
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .page-hero h1 { color: var(--text); }
.hero h1 { position: relative; margin-bottom: 28px; }
.hero h1::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--accent), var(--ochre));
}
.hero-lead { color: #3e3731; }
html[data-theme="dark"] .hero-lead { color: var(--text); }
.hero-detail { color: var(--muted); }
.eyebrow { color: var(--accent); font-weight: 800; }

.button {
  border-color: var(--border);
  border-radius: 3px;
  background: rgba(255,255,255,.16);
  box-shadow: 0 1px 0 rgba(255,255,255,.34) inset;
}
.button.primary { background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.text-link, .publication-row a, .project-copy a, .project-row .project-link,
.pub-links a, .supervision-item a, .communication-links a { color: var(--accent); }

.hero-portrait img, .about-photo img {
  border-radius: 2px;
  border: 7px solid color-mix(in srgb, var(--surface) 72%, white 28%);
  outline: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-portrait figcaption { color: var(--faint); }

.section-tint {
  background:
    linear-gradient(135deg, rgba(127,52,56,.018), rgba(53,93,116,.022)),
    var(--surface);
  border-color: var(--border);
}
.section-heading > p:last-child, .page-lead { color: var(--muted); }
.page-hero { position: relative; border-bottom-color: var(--border); }
.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--ochre));
}

/* Current research: four distinct tones from the same rustic palette. */
.theme-grid { border-color: var(--border); background: rgba(255,255,255,.08); }
.theme-item {
  position: relative;
  overflow: hidden;
  border-color: var(--border);
  background: linear-gradient(145deg, var(--theme-wash, rgba(255,255,255,.08)), transparent 68%);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.theme-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--theme-accent, var(--accent));
}
.theme-item:nth-child(1) { --theme-accent: var(--ink-blue); --theme-wash: rgba(53,93,116,.075); }
.theme-item:nth-child(2) { --theme-accent: var(--rust); --theme-wash: rgba(161,83,56,.072); }
.theme-item:nth-child(3) { --theme-accent: var(--moss); --theme-wash: rgba(98,115,77,.075); }
.theme-item:nth-child(4) { --theme-accent: var(--plum); --theme-wash: rgba(122,74,97,.07); }
.theme-item:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, var(--theme-wash), rgba(255,255,255,.06));
  box-shadow: 0 13px 30px rgba(65,45,27,.08);
}
.theme-item h3 { color: var(--theme-accent); font-size: 23px; }
.theme-number {
  color: var(--theme-accent);
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: .08em;
  opacity: .84;
}
.theme-item p { color: var(--muted); }

/* Research streams carry the same four-color logic without becoming playful. */
.research-stream { position: relative; border-bottom-color: var(--border); }
#eye-tracking { --stream-accent: var(--ink-blue); --stream-wash: rgba(53,93,116,.055); }
#generative-models { --stream-accent: var(--rust); --stream-wash: rgba(161,83,56,.050); }
#stochastic-processes { --stream-accent: var(--moss); --stream-wash: rgba(98,115,77,.052); }
#quantum-evolutionary { --stream-accent: var(--plum); --stream-wash: rgba(122,74,97,.050); }
.research-stream::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 100vw;
  z-index: -1;
  background: linear-gradient(90deg, transparent 8%, var(--stream-wash) 48%, transparent 92%);
}
.research-stream .stream-index,
.research-stream .eyebrow,
.research-stream h2 { color: var(--stream-accent); }
.research-stream .stream-index {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}
.keyword-line span {
  border: 1px solid color-mix(in srgb, var(--stream-accent, var(--accent)) 28%, var(--border));
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
}
.stream-figure {
  padding: 6px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 82%, var(--bg));
  box-shadow: 0 12px 30px rgba(63,44,28,.08);
}
.stream-figure img, .stream-figure video { border: 0; }

/* Publications, teaching and data-driven lists use the same paper/ink system. */
.selected-publications, .publication-section, .publication-row, .pub-entry,
.course-list, .course-list article, .talk-list, .talk-list article,
.supervision-items, .supervision-item, .project-list, .project-row,
.updates-list, .update-row, .news-item, .news-year { border-color: var(--border); }
.pub-year, .pub-year-heading, .course-code, .supervision-semester > h4,
.news-year > h2 { color: var(--accent); }
.pub-title, .publication-row h3, .course-list h3, .talk-list h3 { color: var(--text); }
.pub-type, .course-role { color: var(--faint); }
.publication-row:hover, .pub-entry:hover, .course-list article:hover, .talk-list article:hover,
.supervision-item:hover { background: rgba(255,255,255,.08); }

.project-feature, .profile-panel, .gallery-item {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 70%, var(--bg));
  border-radius: 2px;
}
.project-feature { box-shadow: 0 9px 24px rgba(63,44,28,.06); }
.project-kicker { color: var(--rust); }
.project-media { background: var(--surface-2); }

/* Teaching and supervision: explicit title + role hierarchy. */
.supervision-item { padding: 22px 12px; }
.supervision-person { margin-bottom: 11px; }
.supervision-title { margin-bottom: 10px; }
.supervision-label {
  display: block;
  margin-bottom: 3px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.supervision-item h5 { font-family: inherit; font-size: 14px; font-weight: 750; color: var(--text); }
.supervision-title p { color: var(--text); font-size: 14px; line-height: 1.55; }
.supervision-item .supervision-meta { color: var(--muted); font-size: 11px; }
.supervision-item .supervision-meta strong { color: var(--text); font-weight: 700; }

/* About page: restrained color rhythm. */
.identity-strip { border-color: var(--border); }
.identity-strip > div { position: relative; border-color: var(--border); }
.identity-strip > div::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
}
.identity-strip > div:nth-child(1)::before { background: var(--ink-blue); }
.identity-strip > div:nth-child(2)::before { background: var(--rust); }
.identity-strip > div:nth-child(3)::before { background: var(--moss); }
.identity-strip > div:nth-child(4)::before { background: var(--plum); }
.minimal-grid > div { border-color: var(--border); }
.minimal-grid > div:nth-child(1) h3 { color: var(--ink-blue); }
.minimal-grid > div:nth-child(2) h3 { color: var(--moss); }
.minimal-grid > div:nth-child(3) h3 { color: var(--rust); }
.minimal-grid > div:nth-child(4) h3 { color: var(--plum); }

.communication-feature {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(330px,.8fr);
  gap: 72px;
  align-items: center;
}
.communication-feature > div:first-child > p:last-child { color: var(--muted); max-width: 680px; }
.brand-socials { display: grid; gap: 10px; }
.brand-social {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.10);
  text-decoration: none;
  border-radius: 3px;
  transition: transform .16s ease, background .16s ease;
}
.brand-social:hover { transform: translateX(3px); background: rgba(255,255,255,.18); }
.brand-social i { width: 24px; font-size: 22px; text-align: center; }
.brand-social.youtube i { color: #ff0000; }
.brand-social.instagram i { color: #c13584; }
.brand-social.email i { color: var(--accent); }
.brand-social span { display: flex; flex-direction: column; gap: 1px; }
.brand-social strong { color: var(--text); font-size: 13px; }
.brand-social small { color: var(--faint); font-size: 11px; }

/* Brand and academic icons. */
.social-links a, .profile-name, .qubitink-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-links i, .profile-name i { width: 16px; text-align: center; font-size: 15px; }
a[href*="scholar.google"] i { color: #4285f4; }
a[href*="orcid.org"] i { color: #a6ce39; }
a[href*="github.com"] i { color: #24292f; }
html[data-theme="dark"] a[href*="github.com"] i { color: #f0e8dc; }
a[href*="linkedin.com"] i { color: #0a66c2; }
a[href*="youtube.com"] i { color: #ff0000; }
a[href*="instagram.com"] i { color: #c13584; }
.profile-panel { box-shadow: 0 12px 30px rgba(63,44,28,.07); }
.profile-panel a { border-color: var(--border); }
.communication-strip { border-color: var(--border); }
.communication-links { flex-direction: column; align-items: flex-start; gap: 9px; }
.communication-links a { display: inline-flex; align-items: center; gap: 8px; }

.site-footer {
  background: color-mix(in srgb, var(--surface) 78%, var(--bg));
  border-top: 1px solid var(--border);
  box-shadow: inset 0 3px 0 color-mix(in srgb, var(--accent) 25%, transparent);
}
.footer-name { color: var(--accent-strong); font-size: 17px; }
.site-footer p, .site-footer a, .site-footer span { color: var(--muted); }
.site-footer a:hover { color: var(--accent-strong); }

@media (max-width: 900px) {
  .site-nav { background: var(--bg); }
  .communication-feature { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 680px) {
  .heritage-masthead { height: 108px; }
  .heritage-masthead img { object-position: center 55%; }
  .hero { padding-top: 48px; }
  .hero h1::after { margin-top: 14px; }
  .theme-item { padding: 27px 24px; }
  .theme-item h3 { font-size: 21px; }
  .research-stream::before { display: none; }
  .stream-figure { padding: 4px; }
  .communication-feature { gap: 25px; }
  .brand-social { padding: 13px 14px; }
}
@media print {
  .heritage-masthead { display: none!important; }
}

/* SVG brand marks replace icon fonts, keeping official platform silhouettes crisp. */
.brand-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 16px;
  object-fit: contain;
  vertical-align: -2px;
}
.brand-social .brand-icon {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
}
.social-links .brand-icon,
.profile-name .brand-icon,
.qubitink-footer .brand-icon,
.communication-links .brand-icon { margin-right: 1px; }
.cv-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 18px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .06em;
}

.homepage-update {
  padding-top: 18px;
  padding-bottom: 20px;
  border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  color: var(--faint);
  font-size: 11px;
  letter-spacing: .025em;
  text-align: right;
}
.homepage-update span { font-weight: 700; color: var(--muted); }
.homepage-update time { color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 680px) {
  .homepage-update { text-align: left; padding-top: 14px; padding-bottom: 16px; }
}
/* =========================================================
   HIMALAYAN MASTHEAD
   Desktop-tuned version:
   - keeps more of the Himalayan peaks visible
   - preserves the lower temple/rhododendron area
   - removes overlays and theme effects
   - avoids the cream gap underneath
   ========================================================= */

.heritage-masthead {
    position: relative;
    width: 100%;
    height: 315px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: transparent !important;
    background-image: none !important;

    border: 0;
    box-shadow: none;
}


/* Remove any previous decorative overlays */
.heritage-masthead::before,
.heritage-masthead::after {
    display: none !important;
    content: none !important;
}


/* Main masthead image */
.heritage-masthead img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;

    object-position: center 34%;

    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px) {
    .heritage-masthead {
        height: 315px;
    }

    .heritage-masthead img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center 34%;
    }
}


/* =========================================================
   NORMAL DESKTOP
   ========================================================= */

@media (min-width: 900px) and (max-width: 1399px) {
    .heritage-masthead {
        height: 295px;
    }

    .heritage-masthead img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center 34%;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 601px) and (max-width: 899px) {
    .heritage-masthead {
        height: 220px;
    }

    .heritage-masthead img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center 36%;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .heritage-masthead {
        height: 170px;
    }

    .heritage-masthead img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center 38%;
    }
}


/* =========================================================
   DARK MODE
   Never modify the Himalayan artwork
   ========================================================= */

[data-theme="dark"] .heritage-masthead,
[data-theme="dark"] .heritage-masthead img,
body.dark .heritage-masthead,
body.dark .heritage-masthead img {
    background: transparent !important;
    background-image: none !important;

    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* =========================================================
   FEATURED NEURIPS MILESTONE
   Add near the end of styles.css
   ========================================================= */

.milestone-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 3rem;
    align-items: center;

    margin-top: 1.5rem;
    margin-bottom: 3.5rem;

    padding-top: 2rem;
    padding-bottom: 2rem;

    border-top: 3px solid var(--accent, #8b3f35);
    border-bottom: 1px solid rgba(120, 80, 55, 0.22);
}

.milestone-copy h2 {
    margin-top: 0.35rem;
    margin-bottom: 1rem;
    max-width: 760px;
}

.milestone-copy p {
    max-width: 700px;
}

.milestone-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.milestone-figure {
    margin: 0;
}

.milestone-figure img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 10px;

    box-shadow:
        0 10px 28px rgba(74, 48, 36, 0.12);

    border: 1px solid rgba(120, 80, 55, 0.18);
}

.milestone-figure figcaption {
    margin-top: 0.65rem;

    font-size: 0.84rem;
    line-height: 1.45;

    color: var(--text-muted, #74675d);
}


/* Tablet / mobile */
@media (max-width: 850px) {
    .milestone-feature {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .milestone-figure {
        max-width: 680px;
    }
}

<!-- =========================================================
     OPTIONAL: ONE BEAUTIFUL FIGURE ON THE RESEARCH/PROJECT PAGE

     Add this inside the stochastic-processes section,
     after the explanatory paragraph/keywords.
     Replace the filename with your preferred paper figure.
     ========================================================= -->

<figure class="research-highlight-figure">
  <a href="https://evo-foraging.github.io/"
     target="_blank"
     rel="noopener noreferrer">

    <img
      src="/assets/neurips-foraging-figure.png"
      alt="Evolutionary foraging results comparing intermittent-search and Levy-walk descriptions"
      loading="lazy"
    >

  </a>

  <figcaption>
    Evolutionary foraging in finite, depletable landscapes.
    <a href="https://evo-foraging.github.io/"
       target="_blank"
       rel="noopener noreferrer">
      NeurIPS 2026 project page ↗
    </a>
  </figcaption>
</figure>