:root {
  --paper: #252527;
  --ink: #f4f1ed;
  --muted: #c8c4bf;
  --line: #34343a;
  --accent: #5cdbcf;
  --accent-hover: #a7f3ec;
  --page-width: 930px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent-hover); text-decoration: underline; }
.site-header {
  position: sticky; top: 0; z-index: 10; width: 100%; background: rgba(37, 37, 39, 0.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.nav-shell {
  display: flex; align-items: center; justify-content: space-between;
  max-width: calc(var(--page-width) + 32px); min-height: 63px; margin: 0 auto; padding: 0 16px;
}
.professional-links { display: flex; align-items: center; gap: 0.88rem; white-space: nowrap; }
.professional-links a { display: inline-flex; width: 1.45rem; height: 1.45rem; align-items: center; justify-content: center; color: #ded9d3; }
.professional-links a[aria-label="Google Scholar"] { order: 1; }
.professional-links a[aria-label="Email"], .professional-links a[aria-label="Gmail"] { order: 2; }
.professional-links a[aria-label="Bluesky"] { order: 3; }
.professional-links a:hover, .professional-links a:focus-visible { color: var(--accent); text-decoration: none; }
.professional-links svg { width: 1.28rem; height: 1.28rem; fill: currentColor; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.menu-toggle { display: none; padding: 0.4rem 0.55rem; color: var(--ink); border: 1px solid #5b5b62; border-radius: 4px; background: var(--paper); font: inherit; }
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a { color: #ded9d3; font-size: 0.92rem; text-transform: lowercase; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }
main { width: min(var(--page-width), calc(100% - 40px)); margin: 0 auto; padding: 2.7rem 0 5rem; }
.music-page { width: min(1091px, calc(100% - 40px)); }
.page-heading { margin: 0 0 0.15rem; font-size: 2rem; font-weight: 400; letter-spacing: -0.03em; }
.page-description { margin: 0 0 2.25rem; color: var(--muted); font-size: 0.98rem; }
.publications-page .page-description { margin-bottom: 1.35rem; }
.about-intro { position: relative; display: flow-root; margin-top: 0.2rem; }
.profile-image { float: right; width: min(217px, 29.75%); margin: 0.35rem 0 1.35rem 2.35rem; border-radius: 2px; object-fit: cover; }
.brain-logo { position: absolute; top: -8.7rem; right: min(1rem, calc((var(--page-width) - 100vw) / 2 + 2rem)); width: 186px; height: auto; }
.about-intro p { margin: 0 0 1.22rem; }
.about-intro .lab-announcement { position: relative; max-width: 52rem; margin-top: 1.45rem; padding-inline: 0.95rem; border-left: 1px solid rgba(92, 219, 207, 0.55); }
.about-intro .lab-announcement::after { position: absolute; top: 0; right: 4px; bottom: 0; width: 1px; background: rgba(92, 219, 207, 0.55); content: ""; }
.section-title { margin: 1.25rem 0 1.25rem; padding-bottom: 0.42rem; border-bottom: 1px solid var(--line); font-size: 1.42rem; font-weight: 400; letter-spacing: -0.02em; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { display: grid; grid-template-columns: minmax(8.4rem, 10rem) minmax(0, 1fr); gap: 1rem; padding: 0 0 1.2rem; }
.news-date { color: var(--muted); font-weight: 500; }
.news-date::after { content: ":"; }
.publication-list { margin: 0; padding: 0; list-style: none; counter-reset: item; }
.publication-list li { position: relative; padding: 0 0 1.3rem 1.65rem; }
.publication-list li::before { position: absolute; left: 0; top: 0.08rem; color: #bcb8b2; content: counter(item) "."; counter-increment: item; }
.publication-title { font-weight: 500; }
.publication-meta { display: block; color: var(--muted); }
.cv-actions { display: flex; gap: 1rem; align-items: center; margin: 0 0 1.3rem; }
.button-link { display: inline-block; padding: 0.42rem 0.78rem; border: 1px solid #777780; border-radius: 4px; color: var(--ink); font-size: 0.91rem; }
.button-link:hover, .button-link:focus-visible { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.cv-viewer { height: clamp(520px, 78vh, 900px); height: clamp(520px, 78dvh, 900px); overflow-y: auto; overscroll-behavior: contain; padding: 0.9rem; border: 1px solid var(--line); background: #1d1d1f; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.cv-page { display: block; width: 100%; height: auto; margin: 0 auto 0.9rem; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24); }
.cv-page:last-child { margin-bottom: 0; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.15rem 1.35rem; margin-top: 0.75rem; }
.media-card { min-width: 0; }
.media-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); }
.media-card h2 { margin: 0.78rem 0 0.16rem; font-size: 1rem; font-weight: 500; line-height: 1.35; }
.media-card p { margin: 0; color: var(--muted); font-size: 0.91rem; line-height: 1.45; }
.site-footer { width: min(var(--page-width), calc(100% - 40px)); margin: 0 auto; padding: 1.45rem 0 2.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
@media (max-width: 650px) {
  .nav-shell { min-height: 57px; } .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 57px; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.35rem 20px 0.65rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: flex; } .site-nav a { padding: 0.45rem 0; }
  main, .music-page { width: min(var(--page-width), calc(100% - 32px)); padding-top: 2.3rem; }
  .profile-image { width: 36.55%; margin-left: 1.25rem; } .brain-logo { display: none; } .media-grid { grid-template-columns: 1fr; gap: 2rem; } .news-list li { grid-template-columns: 1fr; gap: 0.1rem; }
}
@media (max-width: 420px) {
  .professional-links { gap: 0.65rem; } .profile-image { float: none; width: min(217px, 100%); margin: 0.25rem 0 1.35rem; } .page-heading { font-size: 1.7rem; }
}
