:root {
  color-scheme: dark;
  --paper: #121b18;
  --ink: #e3ebe6;
  --muted: #a2b4aa;
  --accent: #79ffd2;
  --line: #304139;
  --clay: #c6ad8e;
  --serif: Arial, Helvetica, sans-serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: #365346; }
.wrap { width: min(100% - 48px, 980px); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 15px; background: var(--paper); padding: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; background: rgba(18,27,24,.97); border-bottom: 1px solid var(--line); z-index: 20; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.brand-mark { width: 37px; height: 37px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { font-family: var(--mono); font-size: 16px; color: var(--muted); }
.site-nav a:hover { color: var(--accent); }
.menu-toggle { display: none; }
.hero { padding: 82px 0 58px; }
.hero-main { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 70px; }
.hero-main::after { display: none; }
.hero-copy { max-width: 620px; }
.eyebrow { color: var(--clay); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; margin: 0 0 17px; }
h1 { color: var(--accent); font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 4.8vw, 58px); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 24px; }
.hero-intro { font-size: 18px; line-height: 1.75; max-width: 585px; margin: 0 0 22px; }
.affiliation { font-family: var(--mono); font-size: 13px; color: var(--muted); line-height: 2; margin: 0; }
.institute-link { color: var(--accent); text-decoration: underline; text-decoration-color: #526d5f; text-underline-offset: 3px; }
.institute-link:hover { color: var(--clay); text-decoration-color: var(--clay); }
.portrait { position: relative; z-index: 1; width: 172px; height: 172px; flex: none; object-fit: cover; object-position: 50% 27%; border-radius: 50%; filter: grayscale(1) brightness(1.5) contrast(.88); box-shadow: none; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.profile-links a { border: 1px solid var(--line); background: #1b2822; border-radius: 999px; padding: 7px 13px; font-family: var(--mono); font-size: 12px; transition: background .2s, border-color .2s; }
.profile-links a:hover { border-color: var(--accent); background: #263a30; }
.profile-links span { margin-left: 6px; }
.section { border-top: 1px solid var(--line); padding: 47px 0 52px; scroll-margin-top: 90px; }
h2 { display: flex; align-items: center; gap: 20px; font-family: var(--serif); font-weight: 400; font-size: 37px; line-height: 1.15; letter-spacing: -.025em; color: var(--accent); margin: 0 0 29px; }
h2::after { display: none; }
h3 { font-weight: 500; font-size: 17px; line-height: 1.5; margin: 0 0 10px; }
p { margin: 0 0 16px; }
.section>p { max-width: 830px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.tags span { background: #1b2822; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.project { scroll-margin-top: 95px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.project h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.22; color: var(--accent); max-width: 820px; margin-bottom: 15px; }
.project:first-of-type { padding-top: 0; }
.project:last-child { border-bottom: none; padding-bottom: 0; }
.entry-meta { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.project .entry-meta { color: var(--clay); margin-bottom: 12px; }
.entry-affiliation { font-family: var(--mono); font-size: 13px; color: var(--muted); line-height: 1.9; margin-bottom: 12px; }
.project p:not(.entry-affiliation) { font-size: 14px; }
.entry-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 15px; }
.entry-links a { font-family: var(--mono); font-size: 12px; color: var(--accent); border-bottom: 1px solid #526d5f; }
.entry-links a:hover { border-color: var(--accent); }
details { margin: 9px 0 12px; }
summary { width: fit-content; cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--accent); }
details[open] summary { margin-bottom: 13px; }
details p, details ul { font-size: 13px; color: var(--muted); }
details p:last-child, details ul:last-child { margin-bottom: 0; }
details a { text-decoration: underline; text-underline-offset: 3px; }
details ul { padding-left: 18px; margin-top: 0; }
details li { margin-bottom: 7px; }
.publication { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.publication:first-child { padding-top: 0; }
.publication .entry-meta { padding-top: 4px; }
.publication h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.3; margin-bottom: 10px; }
.authors { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 0 0 6px; }
.authors strong { color: var(--ink); font-weight: 600; }
.journal { color: var(--accent); font-size: 13px; margin: 0; }
.timeline-item { display: grid; grid-template-columns: 145px 1fr; gap: 30px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.timeline-item:first-child { padding-top: 0; }
.timeline-item .entry-meta { padding-top: 4px; }
.timeline h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.25; margin-bottom: 7px; }
.timeline p:not(.entry-affiliation) { font-size: 13px; margin-bottom: 10px; }
.timeline .entry-affiliation { margin-bottom: 9px; }
.timeline details { margin-bottom: 0; }
.skills { margin-top: 26px; }
.skills h3 { font-size: 13px; }
.skills p { font-size: 12px; color: var(--muted); }
.contact-section { margin-top: 8px; padding: 36px 0; margin-bottom: 20px; }
.contact-section h2 { color: #f5f3ed; font-size: 35px; margin-bottom: 18px; }
.contact-section h2::after { display: none; }
.contact-section a, .contact-section .email-link span { color: #f5f3ed; }
.contact-section .entry-links a { border-color: #829e8f; }
.contact-section a:hover { color: #e5bda3; }
.email-link { font-size: 17px; }
.email-link span { margin-left: 8px; color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding-block: 22px 35px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, 620px); }
  .header-inner { min-height: 62px; }
  .menu-toggle { display: flex; width: 32px; height: 32px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
  .menu-toggle span { width: 14px; height: 1px; background: var(--accent); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 62px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 18px 20px; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 16px; padding: 10px 0; }
  .hero { padding-block: 43px 35px; }
  .hero-main { gap: 25px; align-items: flex-start; }
  .hero-main::after { display: none; }
  .hero-intro { font-size: 16px; }
  .portrait { width: 105px; height: 105px; margin-top: 28px; }
  .section { padding-block: 33px 36px; scroll-margin-top: 78px; }
  .timeline-item { grid-template-columns: 115px 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .hero-main { display: block; position: relative; }
  .hero-main::after { display: none; }
  .hero-copy { padding-top: 0; }
  .eyebrow { margin-bottom: 12px; font-size: 12px; }
  h1 { font-size: 30px; padding-right: 84px; margin-bottom: 23px; }
  .portrait { position: absolute; right: 5px; top: 0; width: 68px; height: 68px; margin-top: 0; box-shadow: none; }
  .hero-intro { font-size: 16px; }
  .profile-links { gap: 7px; margin-top: 23px; }
  .profile-links a { padding: 5px 8px; font-size: 11px; }
  h2 { font-size: 32px; }
  h3 { font-size: 16px; }
  .publication { grid-template-columns: 1fr; gap: 5px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .email-link { font-size: 15px; }
  .contact-section { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.project-publication { margin-top: 20px; padding-left: 15px; border-left: 2px solid var(--line); font-size: 14px; }
.project-publication a { color: var(--accent); }
.project-publication .journal { margin-top: 5px; }
.award-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 30px; margin: 22px 0; }
.award-details dt { font-size: 12px; color: var(--muted); }
.award-details dd { margin: 2px 0 0; font-size: 14px; }
.cv-downloads { margin-top: 30px; }
.cv-downloads h3 { font-size: 16px; }
@media (max-width: 480px) { .award-details { grid-template-columns: 1fr; gap: 12px; } }

.project-resources { margin: 10px 0; }
.project-resources h4 { margin: 20px 0 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.project-resources .entry-links { margin-top: 12px; gap: 10px 24px; }
.resource-list { list-style: none; padding: 0; margin: 0; }
.resource-list li { margin-bottom: 12px; font-size: 14px; line-height: 1.6; }
.resource-list a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.resource-list span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.contact-section h2 { color: var(--accent); }
.contact-section p { color: var(--muted); font-size: 15px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.contact-links a { font-size: 15px; color: var(--accent); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.contact-links span { margin-left: 6px; }
@media (max-width: 480px) { .contact-section { padding: 30px 0; } }

.project .project-supervisor { font-size: 13px; color: var(--muted); line-height: 1.9; margin-bottom: 12px; }
.funding-note { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Local neon aqua preview. */
.entry-links a, .contact-links a { display: inline-flex; align-items: center; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #1b2822; color: var(--accent); text-decoration: none; }
.entry-links a:hover, .contact-links a:hover { color: var(--accent); border-color: var(--accent); background: #263a30; }
