/* ==========================================================================
   Styles. You should not need to edit this file for content changes.
   Colours are set once, right below, so a colour change is a one-line edit.
   ========================================================================== */
:root {
  --bg: #131317;
  --bg-deep: #0e0e12;
  --surface: #1f1f23;
  --surface-2: #2a292e;
  --surface-3: #353439;
  --border: #4a4a52;
  --text: #e4e1e7;
  --text-soft: #cac3d7;
  --muted: #94a1b2;
  --accent: #cdbdff;
  --accent-strong: #7f5af0;
  --accent-lit: #b794f4;
  --green: #2f855a;
  --teal: #319795;
  --slate: #4a5568;
  --blue: #3182ce;

  --sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
  --w: 1024px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
main { flex: 1; outline: none; padding-bottom: 3rem; animation: page-in .25s ease-out; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(205,189,255,.3); }
[hidden] { display: none !important; }
.print-only { display: none; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 1.5rem; }

@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main { animation: none; }
  * { transition: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(19,19,23,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74,74,82,.3);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { color: var(--accent); }
.brand img { height: 26px; width: auto; }
.brand span { white-space: nowrap; }
@media (max-width: 400px) { .brand { font-size: 1rem; gap: .5rem; } .nav { gap: .75rem; } }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a {
  display: block; padding: .35rem 0; font-size: .875rem; font-weight: 500; color: var(--text-soft);
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; font-weight: 700; border-color: var(--accent-strong); }
.nav-links a.nav-accent { color: var(--accent-lit); }
.nav-links a.nav-accent[aria-current="page"] { border-color: var(--accent-lit); }
.nav-actions { display: flex; align-items: center; gap: .5rem; padding-left: 1.25rem; border-left: 1px solid var(--border); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  background: none; border: 0; border-radius: 8px; color: var(--text-soft);
}
.icon-btn:hover { color: var(--accent); background: rgba(255,255,255,.05); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-actions { border-left: 0; padding-left: 0; margin-left: auto; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: .5rem 1.5rem 1rem;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,.5);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem 0; font-size: 1rem; border-bottom: 1px solid rgba(74,74,82,.25); }
  .nav-links a[aria-current="page"] { border-color: rgba(74,74,82,.25); color: var(--accent); }
}

/* ---------- Shared bits ---------- */
.page { max-width: var(--w); margin: 0 auto; padding: 2.5rem 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 10px; border: 1px solid transparent;
  background: var(--accent-strong); color: #fff; font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; text-align: center;
  box-shadow: 0 8px 24px rgba(127,90,240,.2); transition: filter .15s, transform .15s;
}
.btn:hover { color: #fff; filter: brightness(1.12); }
.btn:active { transform: scale(.98); }
.btn svg { width: 15px; height: 15px; }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.pill { border-radius: 999px; }

.section-rule { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.section-rule::before, .section-rule::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-rule h2 { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.section-rule.primary::before, .section-rule.primary::after { background: var(--accent); }
.section-rule.primary h2 { color: var(--accent); }

.tag {
  display: inline-block; padding: .15rem .5rem; border-radius: 4px;
  background: var(--surface-3); color: var(--text-soft); font-size: .625rem; font-weight: 700; letter-spacing: .04em;
}
.tag-first-author { background: var(--green); color: #f0fff4; }
.tag-review { background: var(--teal); color: #e6fffa; }
.tag-pre-print { background: var(--slate); color: #e2e8f0; }
.tag-perspective, .tag-editorial { background: var(--accent-strong); color: #fff; }
.tag-thesis { background: var(--blue); color: #fff; }

/* ---------- About ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: 5rem 1.5rem 4rem; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(127,90,240,.22), transparent 62%); pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.05; }
.hero p { margin-top: 1.25rem; font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--text-soft); }
.hero .hero-title { margin-top: 1.1rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero .hero-tagline { margin: .9rem auto 0; max-width: 38rem; line-height: 1.6; }

.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 2rem; align-items: start; }
.about-photo { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.about-photo img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.about-bio { padding: 2.5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; }
.about-bio h2 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; color: #fff; padding-left: 1.25rem; border-left: 4px solid var(--accent); margin-bottom: 1.5rem; }
.about-bio p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.75; color: var(--text); }
.about-bio p + p { margin-top: 1.1rem; }
.about-bio .actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo img { max-height: 380px; }
  .about-bio { padding: 1.75rem; }
}

/* In the news */
.news { margin-top: 4rem; }
.news-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
.news-head h2 { font-size: clamp(1.4rem, 3.5vw, 1.85rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.news-head p { color: var(--text-soft); font-size: .95rem; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.news-card {
  position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.35rem 1.4rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--slate); border-radius: 12px;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.news-card.press { border-left-color: var(--accent-strong); }
.news-card:hover { background: var(--surface-2); box-shadow: 0 12px 32px rgba(0,0,0,.4); transform: translateY(-2px); }
.news-card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.news-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.news-type { padding: .15rem .5rem; border-radius: 4px; background: var(--surface-3); color: var(--text-soft); font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-card.press .news-type { background: var(--accent-strong); color: #fff; }
.news-date { font-size: .7rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.news-outlet { font-family: var(--serif); font-size: .9rem; font-style: italic; color: var(--accent); }
.news-card h3 { font-size: 1rem; font-weight: 800; line-height: 1.4; color: #fff; }
.news-card h3 a { color: inherit; }
.news-card h3 a:focus-visible { outline: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; } /* makes the whole card clickable */
.news-by { font-family: var(--serif); font-size: .85rem; color: var(--text-soft); }
.news-note { font-size: .72rem; font-weight: 600; color: var(--muted); }
.news-go { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.news-go svg { width: 11px; height: 11px; }
.news-foot { display: flex; justify-content: center; }
.news-foot .btn { margin-top: 1.25rem; }

/* Gallery */
.gallery-band { margin-top: 4rem; padding: 4rem 0; background: var(--bg-deep); border-block: 1px solid rgba(74,74,82,.25); }
.gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.gallery-head h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.gallery-head p { margin-top: .6rem; max-width: 36rem; color: var(--text-soft); font-size: .95rem; }
.filters { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: .25rem; padding: .3rem; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; }
.filters button { padding: .45rem 1rem; border: 1px solid transparent; border-radius: 999px; background: none; font-size: .75rem; font-weight: 600; color: var(--text-soft); }
.filters button:hover { color: #fff; }
.filters::-webkit-scrollbar { display: none; }
.filters button { white-space: nowrap; }
.filters button[aria-pressed="true"] { background: var(--surface-3); border-color: rgba(74,74,82,.6); color: #fff; font-weight: 700; }

.gallery-grid { columns: 3 240px; column-gap: 1rem; }
.g-item {
  position: relative; display: block; width: 100%; margin: 0 0 1rem; padding: 0; overflow: hidden;
  break-inside: avoid; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); text-align: left;
}
.g-item img { width: 100%; height: auto; transition: transform .5s; }
.g-item:hover img { transform: scale(1.03); }
/* very tall photos: fixed-height tile, cropped; the full image opens on click */
.g-item.capped { aspect-ratio: 10 / 19; }
.g-item.capped img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.g-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(19,19,23,.92), transparent);
  opacity: 0; transition: opacity .25s;
}
.g-item:hover .cap, .g-item:focus-visible .cap { opacity: 1; }
.g-item .cap b { display: block; font-size: .95rem; color: #fff; }
.g-item .cap span { font-size: .75rem; color: var(--text-soft); }
@media (hover: none) { .g-item .cap { opacity: 1; } }

@media (max-width: 520px) {
  .gallery-head { gap: 1rem; }
  .filters { display: flex; width: 100%; }
  .filters button { flex: 1 1 auto; padding: .45rem .55rem; font-size: .7rem; }
}

/* Contact call-to-action */
.cta { margin-top: 3.5rem; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 3.5rem 1.5rem; }
.cta h2 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; color: #fff; margin-bottom: .9rem; }
.cta p { max-width: 34rem; margin: 0 auto 1.75rem; color: var(--text-soft); }
.cta .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Research ---------- */
.page-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.page-lede { margin-top: 1rem; max-width: 46rem; font-size: 1.08rem; line-height: 1.7; color: var(--text-soft); }
.stack > * + * { margin-top: 4rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.project { display: flex; flex-direction: column; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s; }
.project:hover { border-color: var(--accent-strong); }
.project .thumb { display: block; width: 100%; padding: 0; border: 0; background: none; aspect-ratio: 16/10; overflow: hidden; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .thumb img { transform: scale(1.03); }
.project .thumb.contain { background: #fff; }
.project .thumb.contain img { object-fit: contain; padding: .75rem; }
.project .body { padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.project .meta { display: flex; align-items: center; gap: .6rem; }
.status { padding: .15rem .5rem; border-radius: 4px; background: var(--accent-strong); color: #fff; font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.project .label { font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.project h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.3; color: #fff; }
.project p { font-family: var(--serif); font-size: .95rem; line-height: 1.7; color: var(--text-soft); }
.project .more { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(74,74,82,.25); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.past-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.past { display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.past h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.past p { font-family: var(--serif); font-size: .9rem; line-height: 1.65; font-style: italic; color: var(--text-soft); margin-bottom: 1.25rem; }
.past p i { font-style: normal; }
.past .tags { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: 1rem; border-top: 1px solid rgba(74,74,82,.25); }
.past .tags span { padding: .2rem .5rem; border-radius: 4px; background: var(--surface-3); color: var(--text-soft); font-size: .625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.past.collab { align-items: center; justify-content: center; text-align: center; gap: 1rem; background: var(--bg-deep); border-style: dashed; }
.past.collab strong { font-size: .9rem; color: var(--text-soft); }
.future-intro { margin: -.5rem 0 1.5rem; max-width: 46rem; font-family: var(--serif); line-height: 1.7; color: var(--text-soft); }
.future-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.future { padding: 1.75rem; background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--accent-strong); border-radius: 14px; }
.future h3 { margin-bottom: .75rem; font-size: 1.15rem; font-weight: 800; line-height: 1.3; color: #fff; }
.future p { font-family: var(--serif); font-size: .95rem; line-height: 1.7; color: var(--text-soft); }
.record { text-align: center; padding: 3rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.record h2 { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: .8rem; }
.record p { max-width: 34rem; margin: 0 auto 1.5rem; font-family: var(--serif); color: var(--text-soft); }
@media (max-width: 860px) { .project-grid, .future-grid { grid-template-columns: 1fr; } .past-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .past-grid { grid-template-columns: 1fr; } }

/* ---------- CV ---------- */
.cv-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem; background: var(--surface); border: 1px solid rgba(74,74,82,.3); border-radius: 18px; }
.cv-hero::before { content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none; background: radial-gradient(var(--accent-strong) 1.5px, transparent 1.5px) 0 0 / 16px 16px; }
.cv-hero > * { position: relative; }
.cv-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1.05; color: #fff; }
.cv-hero p { margin-top: 1rem; max-width: 34rem; font-family: var(--serif); color: var(--text-soft); }
.cv-actions { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.cv-actions small { font-size: .65rem; font-style: italic; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.cv-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 3rem; align-items: start; margin-top: 3rem; }
.cv-side > * + * { margin-top: 3rem; }
.cv-h { display: flex; align-items: center; gap: .75rem; padding-bottom: .75rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(74,74,82,.3); }
.cv-h h2 { font-size: 1.25rem; font-weight: 700; color: #fff; }
.cv-h svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

.timeline { position: relative; display: grid; gap: 1.75rem; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--surface-3); }
.tl-item { position: relative; padding-left: 2.25rem; }
.tl-item::before { content: ""; position: absolute; left: 3px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border); }
.tl-item::after { content: ""; position: absolute; left: 9px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.tl-item:first-child::before { border-color: var(--accent-strong); }
.tl-item:first-child::after { background: var(--accent); }
.tl-item .yrs { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.tl-item h3 { font-size: 1rem; font-weight: 800; line-height: 1.3; color: #fff; margin: .2rem 0; }
.tl-item p { font-family: var(--serif); font-size: .85rem; font-style: italic; color: var(--text-soft); }

.skills { padding: 1.5rem; background: var(--surface-2); border: 1px solid rgba(74,74,82,.7); border-radius: 14px; }
.skills h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.skills h3 svg { width: 15px; height: 15px; }
.skills ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.skills li { padding: .35rem .75rem; border-radius: 4px; background: var(--surface-3); color: var(--text); font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.pub-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border: 1px solid rgba(74,74,82,.5); border-radius: 6px; background: none; color: var(--muted); font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chip:hover { color: #fff; border-color: var(--border); }
.chip[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: rgba(205,189,255,.1); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); }
.chip i.tag-first-author { background: var(--green); } .chip i.tag-review { background: var(--teal); }
.chip i.tag-pre-print { background: var(--slate); } .chip i.tag-perspective, .chip i.tag-editorial { background: var(--accent-strong); }
.chip i.tag-thesis { background: var(--blue); }

.search { position: relative; margin-bottom: 1.25rem; }
.search svg { position: absolute; left: .9rem; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: .7rem 1rem .7rem 2.5rem; background: var(--surface); border: 1px solid rgba(74,74,82,.5); border-radius: 8px; color: #fff; font: 500 .8rem var(--sans); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); }

.pub { padding: 1.4rem 1.5rem; border-bottom: 1px solid rgba(74,74,82,.3); border-radius: 12px; transition: background .2s; }
.pub:hover { background: var(--surface); }
.pub .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.pub h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.35; color: #fff; margin-bottom: .5rem; }
.pub .ref { font-family: var(--serif); font-size: .85rem; line-height: 1.65; color: var(--text-soft); }
.pub .ref b { font-family: var(--sans); color: var(--accent); }
.pub-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.pub .doi { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border: 1px solid rgba(205,189,255,.2); border-radius: 4px; font-size: .625rem; font-weight: 700; }
.pub .doi:hover { border-color: rgba(205,189,255,.5); }
.pub .doi svg { width: 11px; height: 11px; }
.pub .press-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border: 1px solid rgba(205,189,255,.35); border-radius: 4px; background: rgba(127,90,240,.14); color: #fff; font-size: .625rem; font-weight: 700; }
.pub .press-chip:hover { border-color: var(--accent); background: rgba(127,90,240,.3); }
.pub .press-chip svg { width: 11px; height: 11px; }
.empty { padding: 2.5rem 1rem; text-align: center; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); font-size: .8rem; }
.empty button { display: block; margin: .8rem auto 0; background: none; border: 0; color: var(--accent); font-weight: 600; text-decoration: underline; }
.pub-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
@media (max-width: 900px) { .cv-grid { grid-template-columns: 1fr; gap: 2.5rem; } .cv-hero { padding: 2rem; } }

/* ---------- Literature ---------- */
.lit-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 2.5rem; }
.lit-head h1 { display: inline; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -.02em; color: var(--accent-lit); }
.lit-head p { margin-top: .75rem; max-width: 34rem; color: var(--text-soft); }
.lit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.lit-col > h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; font-weight: 700; color: #fff; }
.lit-col > h2 svg { width: 18px; height: 18px; color: var(--accent-lit); }
.lit-col > .sub { margin: .3rem 0 0; padding-bottom: .75rem; border-bottom: 1px solid rgba(74,74,82,.3); color: var(--muted); font-size: .78rem; }
.lit-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.lit { padding: 1.4rem; background: var(--surface); border: 1px solid rgba(74,74,82,.25); border-radius: 12px; transition: border-color .2s; }
.lit:hover { border-color: rgba(205,189,255,.4); }
.lit .kind { display: flex; align-items: center; gap: .4rem; margin-bottom: .7rem; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lit .kind::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lit .kind.curated { color: #34d399; }
.lit h3 { font-size: 1rem; font-weight: 800; line-height: 1.35; color: #fff; }
.lit p { margin-top: .5rem; font-family: var(--serif); font-size: .85rem; color: var(--text-soft); }
.lit a.go { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; padding: .35rem .75rem; border: 1px solid rgba(205,189,255,.15); border-radius: 4px; font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lit a.go:hover { border-color: rgba(205,189,255,.45); }
.lit a.go svg { width: 11px; height: 11px; }
.skeleton { height: 128px; border-radius: 12px; background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; margin-left: .75rem; padding: .25rem .75rem; border: 1px solid var(--border); border-radius: 999px; background: #2d3748; vertical-align: middle; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fcd34d; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; }
.status-pill.live { color: #34d399; } .status-pill.live i { background: #10b981; }
.note { padding: 1.5rem; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .lit-grid { grid-template-columns: 1fr; } }

/* ---------- Dialogs (profile + enlarged photo) ---------- */
dialog { padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6); max-width: calc(100vw - 2rem); max-height: calc(100vh - 2rem); overflow: auto; }
dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
dialog[open] { animation: page-in .2s ease-out; }
.dlg-close { position: absolute; top: .9rem; right: .9rem; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; }
.dlg-close:hover { background: rgba(0,0,0,.65); }
.dlg-close svg { width: 15px; height: 15px; }

#profile-dialog { width: 28rem; }
.pf-banner { height: 7rem; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); }
.pf-body { position: relative; padding: 2.75rem 1.75rem 1.75rem; }
.pf-photo { position: absolute; top: -2.25rem; left: 1.75rem; width: 4.5rem; height: 4.5rem; border-radius: 50%; overflow: hidden; border: 4px solid var(--surface); background: var(--surface-2); }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-body h2 { font-size: 1.25rem; font-weight: 800; color: #fff; }
.pf-role { margin-top: .2rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.pf-rows { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(74,74,82,.3); display: grid; gap: 1.1rem; font-size: .8rem; color: var(--text-soft); line-height: 1.6; }
.pf-rows h3 { margin-bottom: .2rem; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.pf-links { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(74,74,82,.3); display: flex; flex-wrap: wrap; gap: .6rem; }
.pf-links a { flex: 1 1 8rem; padding: .65rem .75rem; text-align: center; border: 1px solid rgba(74,74,82,.8); border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: .7rem; font-weight: 700; }
.pf-links a:hover { border-color: var(--accent); color: #fff; }

#lightbox { background: transparent; border: 0; box-shadow: none; overflow: visible; }
#lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; margin: 0 auto; border-radius: 10px; }
#lightbox.scroll { overflow-y: auto; }
#lightbox.scroll img { max-height: none; max-width: 92vw; }
#lightbox.scroll .dlg-close { position: fixed; top: 1rem; right: 1rem; }
#lightbox figcaption { margin-top: .9rem; text-align: center; color: #fff; font-size: .9rem; }
#lightbox figcaption span { display: block; margin-top: .15rem; color: var(--text-soft); font-size: .8rem; }
#lightbox .dlg-close { top: -1rem; right: -1rem; background: rgba(40,40,46,.9); }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0; background: #16161a; border-top: 1px solid rgba(74,74,82,.2); text-align: center; font-size: .875rem; color: var(--muted); }

/* ---------- Print (used by "Print / save as PDF" on the CV page) ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --surface-3: #eee; --text: #111; --text-soft: #333; --muted: #555; --accent: #4a2fb0; --border: #ccc; }
  body { background: #fff; color: #111; padding-top: 0; display: block; }
  .print-only { display: block; margin-bottom: .75rem; font-size: .85rem; color: #333; }
  .print-only strong { display: block; font-size: 1.6rem; color: #111; }
  .site-header, .site-footer, .no-print, dialog, .search, .pub-tools, .pub-foot, .cv-hero::before { display: none !important; }
  main { animation: none; padding: 0; }
  .page { padding: 0; }
  .cv-hero { padding: 0 0 1rem; border: 0; border-bottom: 2px solid #4a2fb0; border-radius: 0; background: none; }
  .cv-hero h1, .cv-h h2, .tl-item h3, .pub h3, .skills h3 { color: #111; }
  .cv-grid { grid-template-columns: 1fr 2fr; gap: 1.5rem; margin-top: 1.25rem; }
  .pub, .tl-item { break-inside: avoid; }
  .pub:hover { background: none; }
  .skills { border-color: #ccc; }
  .skills li { background: #eee; color: #111; }
  .tag { border: 1px solid #999; background: #fff !important; color: #111 !important; }
  .pub .ref b { color: #111; }
  .pub .doi { border: 0; padding: 0; font-weight: 400; font-size: .75rem; }
  .pub .doi svg { display: none; }
  .pub .press-chip { display: none; }
  .pub .doi::after { content: attr(href); }
  a { color: #111; }
}
