
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #142033;
  --muted: #5b6b81;
  --line: #dbe3ee;
  --accent: #163a63;
  --accent-soft: #eef4fb;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 28%, #f8fafc 100%);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(219,227,238,0.9);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; }
.brand-block { display: flex; flex-direction: column; gap: 4px; }
.brand { font-size: 1.55rem; font-weight: 700; color: var(--text); text-decoration: none; }
.brand-sub { color: var(--muted); font-size: 0.93rem; }
.nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.nav a { color: #304156; font-weight: 600; font-size: 0.96rem; }
.nav a.active { color: var(--accent); }
.hero { padding: 54px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: stretch; }
.hero-copy, .hero-photo, .section-card, .info-card, .page-hero-card, .publication-card, .filters, .footer-card {
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-copy { border-radius: 34px; padding: 38px; }
.eyebrow { display: inline-block; color: #66758b; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.77rem; font-weight: 700; }
.hero-copy h1, .page-hero-card h1 { margin: 14px 0 14px; font-size: clamp(2.5rem, 4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.04em; }
.lead { font-size: 1.12rem; line-height: 1.8; color: #44536a; max-width: 52rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 18px; font-weight: 700; border: 1px solid var(--line); }
.button.primary { background: var(--accent); color: white; border-color: var(--accent); }
.button.secondary { background: white; color: var(--text); }
.hero-photo { border-radius: 34px; padding: 18px; display: grid; grid-template-rows: 1fr auto; gap: 16px; }
.headshot-frame {
  min-height: 410px; border-radius: 24px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #d7e3f2 0%, #eef3f9 55%, #ffffff 100%);
}
.headshot-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-note { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,0.88); color: #475569; border: 1px solid rgba(255,255,255,0.6); border-radius: 999px; padding: 10px 14px; font-size: 0.9rem; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.info-card { border-radius: 20px; padding: 16px; }
.info-card .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: #66758b; font-weight: 700; }
.info-card .value { margin-top: 8px; color: #243449; line-height: 1.5; font-weight: 600; }
.section { padding: 24px 0 54px; }
.section-card { border-radius: 34px; padding: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h2 { margin: 8px 0 0; font-size: 2rem; letter-spacing: -0.03em; }
.section-note { color: var(--muted); max-width: 34rem; line-height: 1.7; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.small-card { background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.small-card h3 { margin: 6px 0 10px; font-size: 1.2rem; }
.small-card p { color: var(--muted); line-height: 1.75; margin: 0; }
.page-hero { padding: 44px 0 20px; }
.page-hero-card { border-radius: 34px; padding: 34px; }
.page-hero-card h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.filters { border-radius: 24px; padding: 18px; display: grid; grid-template-columns: 1fr 220px; gap: 14px; margin-bottom: 20px; }
.filters input, .filters select {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: inherit; color: var(--text); background: #fff;
}
.results-count { color: var(--muted); font-weight: 600; margin: 8px 0 18px; }
.publication-list { display: grid; gap: 18px; }
.publication-list.compact .publication-card { grid-template-columns: 280px 1fr; }
.publication-card {
  display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: stretch;
  border-radius: 30px; padding: 22px;
}
.publication-visual { min-height: 200px; display: flex; align-items: stretch; }
.paper-graph { width: 100%; height: 100%; border-radius: 24px; }
.publication-main { display: flex; flex-direction: column; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.year-chip, .status-chip, .topic-chip {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 8px 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
}
.year-chip { background: #e8f0fb; color: #14365d; }
.status-chip { background: #eef6ec; color: #296339; }
.topic-chip { background: #f5f7fb; color: #49586f; border: 1px solid #e4eaf2; }
.publication-main h3 { margin: 0 0 8px; font-size: clamp(1.45rem, 2vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.15; }
.citation { margin: 0; color: #475569; line-height: 1.65; }
.award { margin: 12px 0 0; color: #9a3412; font-weight: 700; }
.summary { margin: 16px 0 0; color: #243449; line-height: 1.82; font-size: 1.02rem; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.toggle-abstract, .pill-link {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 11px 16px;
  border: 1px solid #cad6e3; background: white; color: #203249; font: inherit; font-weight: 700; cursor: pointer;
}
.toggle-abstract[aria-expanded='true'] { background: #eff5fb; border-color: #b9c9dc; }
.pill-link { text-decoration: none; }
.pill-link:hover { text-decoration: none; background: #f8fbff; }
.abstract-panel {
  margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; color: #36465c; line-height: 1.8;
}
.abstract-label { font-size: 0.77rem; text-transform: uppercase; letter-spacing: 0.18em; color: #66758b; font-weight: 800; margin-bottom: 10px; }
.footer { padding: 8px 0 40px; }
.footer-card { border-radius: 26px; padding: 24px; display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 18px; }
.small { color: var(--muted); line-height: 1.7; }
.muted { color: var(--muted); }
.cv-shell, .text-page { background: var(--surface); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); padding: 28px; }
.list-clean { margin: 0; padding-left: 18px; color: #44536a; line-height: 1.9; }
@media (max-width: 980px) {
  .hero-grid, .publication-card, .publication-list.compact .publication-card, .cards-3, .footer-card, .filters { grid-template-columns: 1fr; }
  .hero-copy, .hero-photo, .section-card, .page-hero-card { padding: 24px; }
  .headshot-frame { min-height: 320px; }
}
@media (max-width: 700px) {
  .nav-wrap { align-items: start; flex-direction: column; }
  .nav { gap: 12px; }
  .hero { padding-top: 28px; }
  .publication-card { padding: 16px; border-radius: 22px; }
  .publication-main h3 { font-size: 1.35rem; }
}


/* ===== OPTION 1 / MODERN ACADEMIC VARIANT ===== */
body.theme-option1 {
  background: linear-gradient(180deg, #f3f6fb 0%, #ffffff 24%, #f7f9fc 100%);
}
.theme-option1 .site-header {
  position: static;
  background: #ffffff;
  border-bottom-color: #d8e0ea;
  backdrop-filter: none;
}
.theme-option1 .top-band {
  background: #20344d;
  color: white;
}
.theme-option1 .top-band a { color: #ffffff; }
.theme-option1 .top-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  font-size: 0.92rem;
}
.theme-option1 .top-title { font-weight: 700; letter-spacing: 0.01em; }
.theme-option1 .top-links { display: flex; gap: 10px; align-items: center; }
.theme-option1 .nav-wrap-classic { padding: 20px 0; }
.theme-option1 .brand { font-size: 1.75rem; }
.theme-option1 .nav a { font-weight: 700; }
.theme-option1 .classic-hero { padding-top: 34px; }
.theme-option1 .classic-hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: stretch;
}
.theme-option1 .classic-photo-panel,
.theme-option1 .classic-main-panel,
.theme-option1 .classic-section-card,
.theme-option1 .classic-page-card {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
  border-radius: 26px;
}
.theme-option1 .classic-photo-panel { padding: 16px; }
.theme-option1 .classic-photo-frame {
  min-height: 480px;
  background: linear-gradient(135deg, #d8e2ee 0%, #eef3f8 55%, #ffffff 100%);
}
.theme-option1 .classic-main-panel { padding: 34px; }
.theme-option1 .classic-main-panel h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.theme-option1 .classic-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.theme-option1 .section-card.classic-section-card { padding: 30px; }
.theme-option1 .classic-page-hero { padding-top: 28px; }
.theme-option1 .classic-filters {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}
.theme-option1 .publication-list.compact .publication-card { grid-template-columns: 240px 1fr; }
.theme-option1 .publication-card {
  grid-template-columns: 280px 1fr;
  border-radius: 24px;
  border-color: #d8e0ea;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.05);
}
.theme-option1 .publication-visual { min-height: 180px; }
.theme-option1 .paper-graph { border-radius: 18px; }
.theme-option1 .footer-card {
  border-color: #d8e0ea;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.05);
}
@media (max-width: 980px) {
  .theme-option1 .classic-hero-grid,
  .theme-option1 .classic-info-row { grid-template-columns: 1fr; }
  .theme-option1 .classic-photo-frame { min-height: 320px; }
}
@media (max-width: 700px) {
  .theme-option1 .top-band-inner { flex-direction: column; align-items: flex-start; }
}
