:root {
  --ink: #2f3842;
  --heading: #1f2933;
  --muted: #66717d;
  --accent: #434e5e;
  --accent-light: #8d9aad;
  --paper: #fff;
  --soft: #f5f6f7;
  --line: #dfe3e7;
  --shell: min(1160px, calc(100% - 52px));
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.72; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 9px 13px; background: var(--heading); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav-shell { width: var(--shell); min-height: 68px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.wordmark { display: flex; align-items: center; gap: 11px; color: var(--heading); font-size: 14px; font-weight: 650; text-decoration: none; }
.wordmark-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-family: var(--serif); font-size: 12px; }
.site-nav { display: flex; gap: 27px; }
.site-nav a { color: var(--ink); font-size: 13px; text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--heading); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.menu-toggle { display: none; }

.page-shell { width: var(--shell); margin: 0 auto; padding-top: 62px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 86px; align-items: start; }
.profile-card { position: sticky; top: 104px; }
.profile-photo { width: 210px; height: 250px; object-fit: cover; object-position: center 24%; background: var(--soft); }
.profile-copy { padding-top: 22px; }
.profile h1 { margin: 0; color: var(--heading); font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
.profile-role { margin: 17px 0 7px; color: var(--muted); font-size: 14px; line-height: 1.48; }
.profile-institution { display: block; width: fit-content; font-size: 14px; font-weight: 650; text-decoration: none; }
.profile-affiliations { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.profile-affiliations a { color: inherit; text-decoration-color: var(--line); }
.profile-affiliations a:hover { color: var(--accent); text-decoration-color: currentColor; }
.profile-email { display: block; width: fit-content; margin-top: 10px; color: var(--muted); font-size: 11px; text-decoration: none; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.profile-links a { color: var(--ink); font-size: 12px; text-decoration: none; }
.profile-links a:hover { color: var(--accent); text-decoration: underline; }
.profile-links span { font-size: 10px; }

.content { min-width: 0; }
.content-section { padding-bottom: 70px; margin-bottom: 72px; border-bottom: 1px solid var(--line); }
.page-heading { padding: 2px 0 54px; margin-bottom: 65px; border-bottom: 1px solid var(--line); }
.content h2, .page-heading h2 { margin: 0; color: var(--heading); font-family: var(--serif); font-size: clamp(36px, 4.5vw, 55px); font-weight: 400; line-height: 1.12; letter-spacing: -.025em; }
.page-heading > p:not(.page-actions) { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.intro h2 { max-width: 790px; }
.intro-lead { max-width: 800px; margin: 30px 0 18px; color: var(--heading); font-size: 20px; line-height: 1.62; }
.intro > p:not(.intro-lead) { max-width: 790px; color: var(--muted); }
.sidebar-opportunity { margin-top: 24px; padding-top: 18px; border-top: 2px solid var(--accent); }
.sidebar-opportunity h2 { margin: 0 0 8px; color: var(--heading); font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.25; }
.sidebar-opportunity p { margin: 0 0 9px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.sidebar-opportunity a { font-size: 12px; font-weight: 650; text-decoration: none; }
.sidebar-opportunity a:hover { text-decoration: underline; }
.section-title { margin-bottom: 31px; }
.section-title h2, .home-section h2 { font-size: 34px; }
.section-intro { max-width: 720px; margin: 12px 0 0; color: var(--muted); }
.inline-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 650; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

.interest-list { margin: 38px 0 0; padding: 23px 0 0; border-top: 1px solid var(--line); }
.interest-list h3 { margin: 0 0 11px; color: var(--heading); font-family: var(--serif); font-size: 20px; font-weight: 400; }
.interest-list ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px 0; list-style: none; color: var(--muted); font-size: 13px; }
.interest-list li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--accent-light); }

.home-index { margin-top: 25px; border-top: 1px solid var(--line); }
.home-index a { display: grid; grid-template-columns: 34px 190px 1fr auto; gap: 17px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.home-index .number { color: var(--accent-light); font-size: 11px; }
.home-index h3 { margin: 0; color: var(--heading); font-family: var(--serif); font-size: 21px; font-weight: 400; }
.home-index p { margin: 0; color: var(--muted); font-size: 13px; }
.home-index b { color: var(--accent); font-size: 16px; font-weight: 400; transition: transform .2s; }
.home-index a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.home-index a:hover b { transform: translateX(4px); }

.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.theme-grid article { padding: 27px 27px 30px 0; }
.theme-grid article + article { padding-left: 27px; border-left: 1px solid var(--line); }
.theme-grid article > span { color: var(--accent-light); font-size: 11px; }
.theme-grid h3 { margin: 12px 0 10px; color: var(--heading); font-family: var(--serif); font-size: 25px; font-weight: 400; }
.theme-grid p { margin: 0 0 17px; color: var(--muted); font-size: 13px; }
.theme-grid ul { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: 12px; }
.theme-grid li { margin: 4px 0; }

.featured-research { padding: 30px 0 0; border-top: 3px solid var(--accent); }
.featured-topline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 11px; }
.featured-research h3 { max-width: 720px; margin: 24px 0 17px; color: var(--heading); font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.28; }
.featured-research > p { max-width: 760px; color: var(--muted); }
.research-pillars { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 23px 0; color: var(--heading); font-size: 13px; }
.research-pillars b { margin-right: 5px; color: var(--accent-light); font-size: 10px; }
.partners { padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.partners strong { color: var(--heading); }

.project-list { border-top: 1px solid var(--line); }
.project-item { display: grid; grid-template-columns: minmax(240px, 38%) 1fr; column-gap: 46px; row-gap: 22px; align-items: center; padding: 46px 0; border-bottom: 1px solid var(--line); }
.project-item h3 { grid-column: 1 / -1; grid-row: 1; }
.project-visual { grid-column: 1; grid-row: 2; margin: 0; overflow: hidden; }
.project-copy { grid-column: 2; grid-row: 2; }
.project-item:nth-child(even) .project-visual { grid-column: 2; }
.project-item:nth-child(even) .project-copy { grid-column: 1; }
.project-image-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--soft); color: var(--accent-light); font-size: 11px; letter-spacing: .04em; }
.project-image { display: block; width: 100%; height: auto; }
.project-item figcaption, .engagement-feature figcaption { margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.project-item h3 { margin: 0; color: var(--heading); font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; }
.project-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.project-item .item-links { display: flex; flex-wrap: wrap; gap: 11px 22px; margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); }
.item-links a { font-size: 12px; font-weight: 650; line-height: 1.5; text-decoration: none; }
.item-links a:hover { text-decoration: underline; }

.engagement-feature { display: grid; grid-template-columns: minmax(280px, 48%) 1fr; gap: 42px; align-items: center; }
.engagement-feature.reverse figure { order: 2; }
.engagement-feature figure { margin: 0; }
.engagement-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.engagement-feature h3 { margin: 0 0 13px; color: var(--heading); font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.25; }
.engagement-feature p { color: var(--muted); font-size: 14px; }

.title-with-link { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.small-button { color: var(--accent); font-size: 12px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.small-button:hover { text-decoration: underline; }
.page-actions { display: flex; flex-wrap: wrap; gap: 18px; margin: 24px 0 0; }
.publication-list { border-top: 1px solid var(--line); }
.publication-list article { display: grid; grid-template-columns: 54px 1fr 24px; gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.publication-list time { color: var(--accent-light); font-size: 12px; font-weight: 650; }
.publication-list .venue { margin: 0 0 4px; color: var(--muted); font-size: 11px; }
.publication-list h3 { margin: 0 0 7px; color: var(--heading); font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.4; }
.publication-list article div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.publication-list article > a { align-self: center; color: var(--accent); text-decoration: none; }

.news-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.news-list li { display: grid; grid-template-columns: 94px 1fr; gap: 23px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--accent-light); font-size: 12px; font-weight: 650; }
.news-list p { margin: 0; color: var(--muted); font-size: 14px; }
.news-list strong { color: var(--heading); font-family: var(--serif); font-size: 16px; font-weight: 400; }
.news-list a { font-weight: 650; text-decoration: none; }
.news-list a:hover { text-decoration: underline; }
.compact-news { margin-top: 25px; }

.student-intro { max-width: 760px; }
.student-intro h3, .scholarship-call h3 { margin: 0 0 14px; color: var(--heading); font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.25; }
.student-intro p, .scholarship-call p { color: var(--muted); }
.enquiry-list { margin: 19px 0 0; padding-left: 19px; color: var(--muted); font-size: 14px; }
.scholarship-call { margin-top: 42px; padding: 26px 0; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); }
.scholarship-meta { display: flex; flex-wrap: wrap; gap: 7px 21px; margin-bottom: 15px; color: var(--accent); font-size: 12px; font-weight: 650; }
.student-theme-list { border-top: 1px solid var(--line); }
.student-theme-list article { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.student-theme-list h3 { margin: 0; color: var(--heading); font-family: var(--serif); font-size: 19px; font-weight: 400; }
.student-theme-list p { margin: 0; color: var(--muted); font-size: 13px; }

.content-footer { margin-bottom: 54px; padding-top: 30px; display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: end; border-top: 2px solid var(--accent); }
.content-footer h2 { margin: 0 0 5px; font-size: 26px; }
.content-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.content-footer > a, .content-footer > .footer-contact { font-size: 12px; font-weight: 650; text-decoration: none; }
.content-footer > a:hover { text-decoration: underline; }
.content-footer .copyright { grid-column: 1/-1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 10px; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 860px); }
  .page-shell { grid-template-columns: 225px 1fr; gap: 48px; }
  .profile-photo { width: 190px; height: 228px; }
  .theme-grid { grid-template-columns: 1fr; }
  .theme-grid article, .theme-grid article + article { padding: 23px 0; border-left: 0; border-top: 1px solid var(--line); }
  .theme-grid article:first-child { border-top: 0; }
  .home-index a { grid-template-columns: 28px 160px 1fr auto; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 30px); }
  .nav-shell { min-height: 64px; }
  .wordmark-name { display: none; }
  .menu-toggle { position: relative; z-index: 102; display: grid; place-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; }
  .menu-toggle span:not(.sr-only) { display: block; width: 17px; height: 2px; margin: 2px; background: var(--heading); }
  .site-nav { position: fixed; inset: 64px 0 auto; display: none; flex-direction: column; gap: 0; padding: 12px 15px; background: white; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px; }
  .page-shell { padding-top: 34px; grid-template-columns: 1fr; gap: 50px; }
  .profile-card { position: static; display: grid; grid-template-columns: 124px 1fr; gap: 18px; }
  .profile-photo { width: 124px; height: 150px; }
  .profile-copy { padding-top: 3px; }
  .profile h1 { font-size: 24px; }
  .profile-role { margin-top: 10px; font-size: 12px; }
  .profile-links { grid-column: 1/-1; margin-top: 0; }
  .sidebar-opportunity { grid-column: 1/-1; margin-top: 0; }
  .content-section { padding-bottom: 56px; margin-bottom: 57px; }
  .page-heading { margin-bottom: 57px; }
  .home-index a { grid-template-columns: 28px 1fr auto; gap: 12px; }
  .home-index p { grid-column: 2 / -1; }
  .project-item { grid-template-columns: 1fr; gap: 22px; }
  .project-item h3, .project-visual, .project-copy,
  .project-item:nth-child(even) .project-visual,
  .project-item:nth-child(even) .project-copy { grid-column: 1; }
  .project-item h3 { grid-row: 1; }
  .project-visual, .project-item:nth-child(even) .project-visual { grid-row: 2; }
  .project-copy, .project-item:nth-child(even) .project-copy { grid-row: 3; }
  .engagement-feature { grid-template-columns: 1fr; gap: 22px; }
  .engagement-feature.reverse figure { order: 0; }
}

@media (max-width: 500px) {
  .profile-card { grid-template-columns: 95px 1fr; }
  .profile-photo { width: 95px; height: 120px; }
  .profile h1 { font-size: 21px; }
  .profile-email { word-break: break-all; }
  .profile-institution { font-size: 12px; }
  .interest-list ul { display: block; }
  .interest-list li:not(:last-child)::after { content: ""; margin: 0; }
  .interest-list li { margin: 4px 0; }
  .home-index a { grid-template-columns: 24px 1fr auto; }
  .news-list li, .publication-list article, .student-theme-list article { grid-template-columns: 1fr; gap: 7px; }
  .content-footer { grid-template-columns: 1fr; }
  .content-footer .copyright { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; } }
@media print { .site-header { display: none; } .profile-card { position: static; } .page-shell { padding-top: 20px; } }
