:root {
  --accent: #c9a96e;
  --accent-dark: #b8944f;
  --accent-hover: #b8944f;
  --accent-dim: rgba(201,169,110,0.10);
  --heading: #1e2a38;
  --bg: #f8f9fa;
  --bg-surface: #f0f1f3;
  --bg-card: #eaebee;
  --card-bg: #ffffff;
  --glass-bg: rgba(255,255,255,0.85);
  --glass-border: rgba(255,255,255,0.3);
  --text: #333;
  --text-muted: #6c757d;
  --border: #e0dcd6;
  --border-light: #d4cfc8;
  --journal: #8a6e30;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15.5px;
}

/* --- Hero Section --- */
.hero {
  background: #0a0f18;
  color: white;
  padding: 5rem 2rem 2rem;
  min-height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero > * {
  max-width: 750px;
}
.hero-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #dfc08a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero-institution {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-institution a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: none;
}
.hero-institution a:hover {
  color: #dfc08a;
  text-decoration: none;
}
.hero-inst-logo {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  vertical-align: middle;
  margin-right: 0.25rem;
}
.hero-inst-logo-usp {
  height: 14px;
  margin-right: 0;
  margin-left: 0.25rem;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  transition: all 0.2s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-links a:hover {
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.6);
}
.hero-links a i {
  font-size: 1.1rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
/* Brand colors -- brightened for dark background */
.hero-links .icon-scholar i { color: #6ea8ff; }
.hero-links .icon-arxiv i { color: #e84848; }
.hero-links .icon-orcid i { color: #b8e04a; }
.hero-links .icon-lattes i { color: #9494e8; }
.hero-links .icon-cv i { color: #dfc08a; }
.hero-links .icon-rg i { color: #33e8d8; }
.hero-links .icon-mr i { color: #e85555; }
.hero-links .icon-wos i { color: #a78ed4; }
.hero-links .icon-scopus i { color: #e9711c; }
.hero-links .icon-genealogy i { color: #7ccf77; }
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.stat-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
a.stat-card:hover {
  text-decoration: none;
  opacity: 0.8;
}
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #dfc08a;
  line-height: 1.1;
  display: block;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  margin-top: 0.3rem;
  display: block;
}

/* --- Statistics (About section) --- */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.stats-overview .stat-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1rem 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}
.stats-overview .stat-number {
  font-size: 1.6rem;
  color: var(--accent-dark);
  text-shadow: none;
}
.stats-overview .stat-label {
  color: var(--text-muted);
  text-shadow: none;
  font-size: 0.68rem;
}
.stats-overview a.stat-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* Metric source cards (Scholar, WoS, Scopus) */
.metrics-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.metric-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid var(--accent);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
  display: block;
}
.metric-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.10);
  text-decoration: none;
}
.metric-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.metric-card-header i {
  font-size: 1.3rem;
  color: var(--accent-dark);
}
.metric-card-header i.ai-google-scholar {
  color: #6ea8ff;
}
.metric-card-header i.ai-clarivate {
  color: #a78ed4;
}
.metric-card-header i.ai-scopus {
  color: #e9711c;
}
.metric-card-header i.ai-mathoverflow {
  color: #e85555;
}
.metric-card-header span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--heading);
}
.metric-card-body {
  display: flex;
  gap: 1.5rem;
}
.metric-item {
  text-align: center;
}
.metric-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-dark);
  display: block;
  line-height: 1.2;
}
.metric-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
}

@media (max-width: 768px) {
  .metrics-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats-overview { grid-template-columns: repeat(2, 1fr); }
}

/* --- Page Header (sub-pages) --- */
.page-header {
  background: linear-gradient(135deg, #0a0f18 0%, #142030 40%, #1a2940 70%, #0f1820 100%);
  color: white;
  padding: 5.5rem 2rem 1.5rem;
  text-align: center;
}
.page-header h1 {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* --- Navigation (fixed dark bar) --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(30,42,56,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}
.nav-brand {
  color: white;
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 0;
  text-decoration: none;
}
.nav-brand:hover { color: white; text-decoration: none; }
.nav-brand span { color: var(--accent); }
.nav-check { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.9rem 0.7rem;
  display: block;
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
nav ul li a:hover,
nav ul li a.active {
  color: white;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}
nav ul li a.nav-accent {
  color: var(--accent);
}
nav ul li a.nav-accent:hover {
  color: white;
}

/* --- Main --- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 2.5rem 0;
  border-bottom: none;
}

section:last-child { border-bottom: none; }

/* Alternating section bands — even sections get a subtle tinted background */
main > section:nth-child(even) {
  background: var(--bg-surface);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* --- Map Card Links (lightweight, no iframes) --- */
/* --- Map link cards --- */
.map-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.map-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.map-link-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
}
.map-link-icon {
  font-size: 1.8rem;
  color: var(--accent);
  flex-shrink: 0;
}
.map-link-text h3 {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}
.map-link-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}
.map-link-cta {
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-left: auto;
  flex-shrink: 0;
}
.map-link-card:hover .map-link-cta {
  color: var(--accent);
}
@media (max-width: 700px) {
  .map-links-grid { grid-template-columns: 1fr; }
}

/* --- Single-line hero links (all profiles) --- */
.hero-links-single {
  flex-wrap: nowrap;
}
.hero-links-single a {
  font-size: 0;
  padding: 0.4rem;
  line-height: 1;
}
.hero-links-single a i {
  font-size: 1.15rem;
}
.hero-links-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* --- News archive note --- */
.news-archive-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}
.news-archive-note a {
  font-weight: 600;
}

/* --- News --- */
.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  padding: 0.55rem 0.9rem 0.55rem 1rem;
  font-size: 0.88rem;
  border-left: 3px solid var(--accent);
  border-bottom: none;
  background: var(--card-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 0.4rem;
  transition: box-shadow 0.2s;
}

.news-list li:hover {
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.news-list li:last-child { border-bottom: none; }

.news-list li.news-hidden { display: none; }

.news-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.news-toggle:hover {
  color: white;
  border-color: var(--accent);
  background: var(--accent);
}

.news-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 0.72rem;
  margin-right: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h2 {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--heading);
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  border-radius: 2px;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  margin: 1.5rem 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

p { margin-bottom: 0.75rem; }

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

em { color: var(--text); }

/* --- Research areas --- */
.research-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
}

.research-areas span {
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.3);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.research-areas span:hover {
  background: rgba(201,169,110,0.22);
}

/* --- Research descriptions --- */
.research-line {
  background: var(--card-bg);
  padding: 0.4rem 0.8rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.35rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.research-line:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.research-line h3 {
  margin-top: 0;
  margin-bottom: 0.1rem;
  font-size: 0.8rem;
}

.research-line p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.35;
}

/* --- Publications --- */
.pub-section { margin-bottom: 1.5rem; }

.pub-list {
  list-style: none;
  counter-reset: pub-counter;
}

.pub-list li {
  counter-increment: pub-counter;
  padding: 0.5rem 0.8rem 0.5rem 2.2rem;
  position: relative;
  border-bottom: none;
  background: var(--card-bg);
  border: 1px solid transparent;
  border-radius: 8px;
  margin-bottom: 0.35rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pub-list li:last-child { border-bottom: none; }

.pub-list li:hover {
  border-color: var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pub-list li::before {
  content: counter(pub-counter) ".";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  color: var(--accent-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  width: 1.5rem;
  text-align: right;
}

.pub-title {
  font-weight: 400;
  font-style: italic;
  color: var(--heading);
  font-size: 0.92rem;
  line-height: 1.35;
}

.pub-authors {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.05rem;
}

.pub-authors .me {
  font-weight: 400;
  color: var(--text-muted);
}

.pub-journal {
  font-style: italic;
  color: var(--journal);
  font-size: 0.82rem;
  font-weight: 400;
}

.pub-links {
  margin-top: 0.15rem;
}

.pub-links a {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-right: 0.5rem;
  color: var(--text-muted);
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 0.15s;
}

.pub-links a:hover {
  color: var(--heading);
  border-color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}

/* --- Year markers in pub lists --- */
.pub-list li.year-marker {
  counter-increment: none;
  padding: 0.6rem 0 0.15rem 0;
  border-bottom: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pub-list li.year-marker::before { content: none; }
.pub-list li.year-marker:hover { background: none; }

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--heading);
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 99;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
}

/* --- Events --- */
.event-list { list-style: none; }

.event-list li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 0.5rem;
}

.event-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: -4.5px;
  top: 0.82rem;
}

.event-year {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.event-name {
  font-weight: 400;
  font-style: italic;
  color: var(--heading);
}

.event-location {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.contact-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.contact-block h3 { margin-top: 0; }

.contact-block p {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

/* --- Footer (dark) --- */
footer {
  background: var(--heading);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
  font-size: 0.85rem;
}
footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
footer a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-logos img {
  height: 38px;
  opacity: 0.85;
  transition: opacity 0.2s;
  background: rgba(255,255,255,0.85);
  padding: 6px 10px;
  border-radius: 6px;
}

.footer-logos img:hover {
  opacity: 1;
}

/* --- BibTeX toast --- */
.bib-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(3rem);
  background: var(--heading);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.82rem;
  opacity: 0;
  transition: all 0.3s;
  z-index: 999;
  pointer-events: none;
}
.bib-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Supervision table --- */
.supervision-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.supervision-table th {
  text-align: left;
  color: var(--heading);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.6rem 0.7rem;
  border-bottom: 2px solid var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.supervision-table td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.supervision-table tr:last-child td { border-bottom: none; }
.supervision-table tr {
  transition: background 0.2s;
}
.supervision-table tbody tr:hover td {
  background: rgba(201,169,110,0.06);
}
.supervision-table .level {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* --- Publication count badge --- */
.pub-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-dim);
  border: 1px solid rgba(201,169,110,0.3);
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  margin-left: 0.4rem;
  vertical-align: middle;
  letter-spacing: 0.02em;
}


/* --- Teaching Timeline --- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-dark), var(--border));
  border-radius: 2px;
}
.timeline-year {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-year-label {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.6rem;
  padding-left: 0;
}
.timeline-year-label::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.timeline-item {
  position: relative;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--accent-dim);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.2s;
}
.timeline-item:hover {
  border-left-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--border);
  border-radius: 50%;
}
.timeline-item:hover::before {
  background: var(--accent);
}
.timeline-item .tl-code {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-right: 0.5rem;
}
.timeline-item .tl-name {
  font-weight: 600;
  color: var(--heading);
}
.timeline-item .tl-level {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* --- Mobile hamburger menu --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30,42,56,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
  }
  .nav-check:checked ~ ul {
    display: flex;
  }
  nav ul li a {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
  }
}

/* --- Print stylesheet --- */
@media print {
  nav, .back-to-top, .news-toggle, .bib-toast,
  .hero, .page-header, .map-cards, #maps { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  main { max-width: 100%; padding: 0; }
  section { padding: 1rem 0; page-break-inside: avoid; }
  h2::after { background: #999; }
  a { color: #000; text-decoration: underline; }
  .pub-links a { border: none; padding: 0; }
  .pub-list li { background: none; border: none; margin: 0; padding-left: 2rem; }
  .news-list li { background: none; border-left: none; margin: 0; padding: 0.3rem 0; }
  .research-line { background: none; box-shadow: none; border-radius: 0; }
  footer { background: none; color: #000; }
  .footer-logos { display: none; }
  .news-list li.news-hidden { display: list-item !important; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: 4.5rem 1.2rem 1.5rem; min-height: 100vh; min-height: 100dvh; }
  .hero h1 { font-size: 1.7rem; }
  .hero .hero-title { font-size: 0.85rem; letter-spacing: 0.05em; }
  .hero-photo { width: 110px; height: 110px; }
  .hero-links { font-size: 0.8rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-number { font-size: 1.8rem; }
  .page-header { padding: 4.5rem 1.2rem 1.2rem; }
  .page-header h1 { font-size: 1.4rem; }
  main { padding: 0 1rem; }
  main > section:nth-child(even) {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  h2 { font-size: 1.2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid-3 { grid-template-columns: 1fr; }
  .pub-list li { padding-left: 2rem; }
  .pub-list li::before { width: 1.2rem; left: 0.4rem; }
  .supervision-table { font-size: 0.82rem; }
  .supervision-table th,
  .supervision-table td { padding: 0.35rem 0.4rem; }
  .event-list li { padding: 0.35rem 0 0.35rem 1rem; }
  .map-cards { grid-template-columns: 1fr; }
}
