:root {
  color-scheme: light;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: #f6f2e9;
  --surface: #fffdf8;
  --ink: #16364f;
  --muted: #62717c;
  --line: #d9d7cf;
  --accent: #9a6330;
  --accent-strong: #74451e;
  --header: rgba(255, 253, 248, .94);
  --max: 1160px;
}

/* Optional warm palette preview: burgundy, gold, and parchment */
html.palette-burgundy {
  --page: #f5eee5;
  --surface: #fffaf3;
  --ink: #681f2c;
  --muted: #75686a;
  --line: #ddd0c5;
  --accent: #9a6330;
  --accent-strong: #74451e;
  --header: rgba(255, 250, 243, .94);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 290px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-strong); }
img { display: block; max-width: 100%; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: #111;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  padding: 0 max(30px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: .9rem;
}

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.brand-copy small { color: var(--muted); font-size: .67rem; letter-spacing: .07em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav a {
  min-width: 96px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav a[aria-current] { color: var(--ink); background: rgba(22, 54, 79, .08); }

.header-meta {
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}
.menu-button span:not(.sr-only) { display: block; height: 1px; margin: 4px 0; background: currentColor; }

main { min-height: calc(100vh - 170px); }

.page-panel {
  width: min(var(--max), calc(100% - 60px));
  margin: 0 auto;
  padding: 84px 0 96px;
  animation: reveal .36s ease both;
}
.page-panel[hidden] { display: none; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .7fr);
  align-items: end;
  gap: clamp(50px, 9vw, 130px);
  min-height: 570px;
  padding-bottom: 86px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-label,
.timeline-type {
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 10vw, 8.7rem);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .78;
}

.lead {
  max-width: 680px;
  margin: 42px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.45;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 750;
  text-decoration: none;
}
.button.primary { border-color: var(--ink); color: var(--surface); background: var(--ink); }
.button.primary:hover { border-color: var(--accent-strong); color: white; background: var(--accent-strong); }
.button.quiet { background: transparent; }

.portrait-wrap { margin: 0; }
.portrait-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 160px 160px 12px 12px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.86) contrast(.98);
}
.portrait-wrap figcaption { margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: .68rem; line-height: 1.55; text-transform: uppercase; }

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr);
  gap: clamp(50px, 10vw, 150px);
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.content-block h2,
.research-heading h2 {
  max-width: 720px;
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.content-block > p:not(.section-label) { max-width: 760px; color: var(--muted); font-size: 1.04rem; line-height: 1.8; }
.content-block a { color: var(--ink); }

.contact-card { align-self: start; padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.contact-card address { color: var(--muted); font-style: normal; line-height: 1.75; }
.contact-link { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 700; text-decoration: none; }

.research-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 10vw, 150px); padding: 96px 0; }
.topic-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.topic-list li { position: relative; display: block; padding: 21px 0 21px 25px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.12rem, 2vw, 1.45rem); }
.topic-list li::before { position: absolute; top: 50%; left: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); content: ""; transform: translateY(-50%); }

.profile-links {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.profile-links > span { margin-right: auto; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.profile-links a { color: var(--ink); font-weight: 700; text-decoration: none; }

.page-intro { display: grid; grid-template-columns: 1.2fr .8fr; column-gap: 80px; align-items: end; padding: 20px 0 86px; border-bottom: 1px solid var(--line); }
.page-intro.page-intro--title-only { display: block; }
.page-intro .eyebrow { grid-column: 1 / -1; }
.page-intro h1 { font-size: clamp(4rem, 9vw, 8rem); line-height: .9; }
.page-intro > p:last-child { max-width: 510px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1.25rem; line-height: 1.6; }

.publication-list { border-bottom: 1px solid var(--line); }
.publication-group-title {
  margin: 0;
  padding: 30px 0 15px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--mono);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.publication-group-title:not(:first-child) { padding-top: 46px; }
.publication { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 35px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.publication:last-child { border-bottom: 0; }
.pub-year { padding-top: 5px; color: var(--accent); font: 700 .77rem/1 var(--mono); }
.pub-status { line-height: 1.35; text-transform: uppercase; }
.pub-authors { margin: 0 0 8px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.pub-body h2 { max-width: 830px; margin: 0; font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: -.026em; line-height: 1.2; }
.pub-journal { margin: 12px 0 0; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.pub-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.pub-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 700 .7rem/1 var(--mono);
  text-decoration: none;
}

.supplementary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 70px; }
.supplementary-grid article { display: flex; min-height: 330px; padding: 28px; border: 1px solid var(--line); background: var(--surface); flex-direction: column; }
.supplementary-grid h2 { margin: 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1.25; }
.supplementary-grid article > p:not(.section-label) { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.supplementary-grid article > a { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 700; text-decoration: none; }

.timeline { margin-top: 20px; border-top: 1px solid var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.timeline-item.current::before { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); content: ""; }
.timeline-date { padding-top: 5px; color: var(--accent); font: 700 .78rem/1.2 var(--mono); }
.timeline-type { margin-bottom: 9px; }
.timeline-item h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.7rem); font-weight: 400; letter-spacing: -.03em; }
.timeline-item p:last-child { margin: 10px 0 0; color: var(--muted); line-height: 1.65; }
.timeline-item.compact { padding-block: 34px; }
.timeline-item.compact h2 { font-size: 1.75rem; }

.cv-note { display: grid; grid-template-columns: 180px 1fr 2fr; gap: 45px; margin-top: 70px; padding: 34px; border: 1px solid var(--line); background: var(--surface); }
.cv-note h2 { margin: 0; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.cv-note > p:last-child { margin: 0; color: var(--muted); line-height: 1.8; }
.cv-note a { color: var(--ink); }

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 60px));
  margin: auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
}

/* Compact Heritage: the preferred direction with a tighter information rhythm */
html[data-theme="compact"] .site-header {
  min-height: 68px;
}

html[data-theme="compact"] .brand-mark {
  width: 34px;
  height: 34px;
}

html[data-theme="compact"] .primary-nav a {
  min-width: 88px;
  padding: 9px 14px;
}

html[data-theme="compact"] .page-panel {
  padding-top: 46px;
  padding-bottom: 64px;
}

html[data-theme="compact"] .hero-wrap {
  grid-template-columns: minmax(0, 1.7fr) minmax(210px, .56fr);
  gap: clamp(38px, 7vw, 82px);
  min-height: 430px;
  padding-bottom: 48px;
}

html[data-theme="compact"] .hero-copy h1 {
  font-size: clamp(3.8rem, 8vw, 6.4rem);
  line-height: .82;
}

html[data-theme="compact"] .eyebrow,
html[data-theme="compact"] .section-label,
html[data-theme="compact"] .timeline-type {
  margin-bottom: 14px;
}

html[data-theme="compact"] .lead {
  max-width: 620px;
  margin-top: 25px;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.48;
}

html[data-theme="compact"] .hero-actions {
  margin-top: 24px;
}

html[data-theme="compact"] .button {
  min-height: 43px;
  padding-inline: 18px;
}

html[data-theme="compact"] .portrait-wrap {
  width: min(100%, 245px);
  justify-self: end;
}

html[data-theme="compact"] .portrait-wrap img {
  height: auto;
  aspect-ratio: auto;
  border-radius: 16px;
  object-fit: contain;
  object-position: center;
}

html[data-theme="compact"] .portrait-wrap figcaption {
  margin-top: 10px;
}

html[data-theme="compact"] .overview-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, .65fr);
  gap: clamp(42px, 7vw, 88px);
  padding: 54px 0;
}

html[data-theme="compact"] .content-block h2,
html[data-theme="compact"] .research-heading h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3rem);
}

html[data-theme="compact"] .content-block > p:not(.section-label) {
  margin-block: 10px;
  font-size: .98rem;
  line-height: 1.68;
}

html[data-theme="compact"] .contact-card {
  padding: 23px;
}

html[data-theme="compact"] .contact-card address {
  font-size: .9rem;
  line-height: 1.6;
}

html[data-theme="compact"] .contact-link {
  margin-top: 18px;
  padding-top: 14px;
  font-size: .86rem;
}

html[data-theme="compact"] .research-section {
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(42px, 7vw, 88px);
  padding: 54px 0;
}

html[data-theme="compact"] .topic-list li {
  padding: 13px 0 13px 22px;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

html[data-theme="compact"] .profile-links {
  padding-block: 17px;
}

html[data-theme="compact"] .page-intro {
  grid-template-columns: 1.25fr .75fr;
  padding: 4px 0 48px;
}

html[data-theme="compact"] .page-intro h1 {
  font-size: clamp(3.7rem, 7vw, 6rem);
}

html[data-theme="compact"] .page-intro > p:last-child {
  font-size: 1.08rem;
  line-height: 1.5;
}

html[data-theme="compact"] .publication {
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
}

html[data-theme="compact"] .publication-group-title {
  padding-top: 22px;
  padding-bottom: 11px;
}

html[data-theme="compact"] .publication-group-title:not(:first-child) {
  padding-top: 28px;
}

html[data-theme="compact"] .pub-body h2 {
  font-size: clamp(1.18rem, 1.9vw, 1.55rem);
  line-height: 1.28;
}

html[data-theme="compact"] .pub-authors {
  margin-bottom: 7px;
  font-size: 1rem;
}

html[data-theme="compact"] .pub-journal {
  margin-top: 8px;
  font-size: 1.02rem;
}

html[data-theme="compact"] .pub-links {
  margin-top: 11px;
}

html[data-theme="compact"] .supplementary-grid {
  gap: 14px;
  padding-top: 42px;
}

html[data-theme="compact"] .supplementary-grid article {
  min-height: 250px;
  padding: 22px;
}

html[data-theme="compact"] .supplementary-grid h2 {
  font-size: 1.3rem;
}

html[data-theme="compact"] .timeline-item {
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 24px 0;
}

html[data-theme="compact"] .timeline-item h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

html[data-theme="compact"] .timeline-item p:last-child {
  margin-top: 8px;
  font-size: 1.05rem;
  line-height: 1.55;
}

html[data-theme="compact"] .timeline-item.compact {
  padding-block: 20px;
}

html[data-theme="compact"] .timeline-item.compact h2 {
  font-size: 1.35rem;
}

html[data-theme="compact"] .cv-note {
  grid-template-columns: 140px .7fr 2fr;
  gap: 30px;
  margin-top: 45px;
  padding: 25px;
}

html[data-theme="compact"] .site-footer {
  padding-block: 20px;
}

/* Journal: a dark editorial direction */
html[data-theme="journal"] {
  --page: #0d2536;
  --surface: #f3eee4;
  --ink: #f4eee3;
  --muted: #aab9c2;
  --line: rgba(236, 239, 231, .2);
  --accent: #e7a84a;
  --accent-strong: #ffc66e;
  --header: rgba(13, 37, 54, .94);
}

html[data-theme="journal"] .site-header { min-height: 78px; }
html[data-theme="journal"] .brand-mark { border-radius: 4px; color: var(--page); background: var(--accent); }
html[data-theme="journal"] .brand-copy strong { font-family: var(--sans); font-size: .88rem; letter-spacing: .03em; text-transform: uppercase; }
html[data-theme="journal"] .primary-nav a[aria-current],
html[data-theme="journal"] .primary-nav a:hover { color: var(--page); background: var(--accent); }
html[data-theme="journal"] .hero-wrap { grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr); min-height: 640px; }
html[data-theme="journal"] .hero-copy h1,
html[data-theme="journal"] .page-intro h1 { font-family: var(--sans); font-weight: 750; letter-spacing: -.075em; line-height: .82; }
html[data-theme="journal"] .lead { color: var(--ink); font-family: var(--sans); font-size: clamp(1.15rem, 2vw, 1.55rem); }
html[data-theme="journal"] .button.primary { border-color: var(--accent); color: var(--page); background: var(--accent); }
html[data-theme="journal"] .button.quiet { color: var(--ink); }
html[data-theme="journal"] .portrait-wrap img { aspect-ratio: 1; border: 12px solid rgba(255,255,255,.06); border-radius: 50%; filter: grayscale(1) contrast(1.08); }
html[data-theme="journal"] .content-block h2,
html[data-theme="journal"] .research-heading h2,
html[data-theme="journal"] .pub-body h2,
html[data-theme="journal"] .timeline-item h2 { font-family: var(--sans); font-weight: 650; }
html[data-theme="journal"] .contact-card,
html[data-theme="journal"] .supplementary-grid article,
html[data-theme="journal"] .cv-note { color: #163041; background: var(--surface); }
html[data-theme="journal"] .contact-card .section-label,
html[data-theme="journal"] .supplementary-grid .section-label,
html[data-theme="journal"] .cv-note .section-label { color: #9c5e18; }
html[data-theme="journal"] .contact-card address,
html[data-theme="journal"] .supplementary-grid article > p:not(.section-label),
html[data-theme="journal"] .cv-note > p:last-child { color: #5c6d76; }
html[data-theme="journal"] .contact-card a,
html[data-theme="journal"] .supplementary-grid a,
html[data-theme="journal"] .cv-note a { color: #163041; }
html[data-theme="journal"] .topic-list li { font-family: var(--sans); font-weight: 650; }
html[data-theme="journal"] .pub-links a { border-color: rgba(255,255,255,.35); }

/* Minimal: an architectural sidebar direction */
html[data-theme="minimal"] {
  --page: #ffffff;
  --surface: #f6f7f9;
  --ink: #111827;
  --muted: #697281;
  --line: #e2e5ea;
  --accent: #185adb;
  --accent-strong: #0d46b5;
  --header: #fff;
  --max: 1080px;
}

html[data-theme="minimal"] .site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 245px;
  min-height: 100vh;
  padding: 36px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  flex-direction: column;
  align-items: stretch;
  background: var(--header);
}
html[data-theme="minimal"] .brand { align-items: flex-start; flex-direction: column; gap: 20px; }
html[data-theme="minimal"] .brand-mark { width: 52px; height: 52px; border: 0; border-radius: 0; color: white; background: var(--accent); font-family: var(--sans); font-weight: 800; }
html[data-theme="minimal"] .brand-copy strong { font-family: var(--sans); font-size: .95rem; }
html[data-theme="minimal"] .primary-nav { width: 100%; margin: 78px 0 0; flex-direction: column; align-items: stretch; gap: 3px; }
html[data-theme="minimal"] .primary-nav a { display: flex; justify-content: space-between; min-width: 0; padding: 13px 0; border-radius: 0; border-bottom: 1px solid var(--line); text-align: left; }
html[data-theme="minimal"] .primary-nav a::after { color: var(--line); content: "→"; }
html[data-theme="minimal"] .primary-nav a[aria-current],
html[data-theme="minimal"] .primary-nav a:hover { color: var(--accent); background: transparent; }
html[data-theme="minimal"] .header-meta { margin-top: auto; text-align: left; }
html[data-theme="minimal"] main,
html[data-theme="minimal"] .site-footer { margin-left: 245px; }
html[data-theme="minimal"] .page-panel { width: min(var(--max), calc(100vw - 245px - 80px)); }
html[data-theme="minimal"] .hero-wrap { grid-template-columns: minmax(0, 1fr) minmax(240px, .48fr); min-height: 660px; }
html[data-theme="minimal"] .hero-copy h1,
html[data-theme="minimal"] .page-intro h1 { font-family: var(--sans); font-weight: 760; letter-spacing: -.075em; line-height: .82; }
html[data-theme="minimal"] .lead { font-family: var(--sans); }
html[data-theme="minimal"] .portrait-wrap img { border-radius: 0; filter: grayscale(.8) contrast(1.07); }
html[data-theme="minimal"] .content-block h2,
html[data-theme="minimal"] .research-heading h2,
html[data-theme="minimal"] .pub-body h2,
html[data-theme="minimal"] .timeline-item h2 { font-family: var(--sans); font-weight: 650; }
html[data-theme="minimal"] .contact-card { border-width: 0 0 0 3px; border-color: var(--accent); }
html[data-theme="minimal"] .topic-list li { font-family: var(--sans); font-weight: 630; }
html[data-theme="minimal"] .pub-links a { border-radius: 3px; }
html[data-theme="minimal"] .supplementary-grid article { border-top: 3px solid var(--accent); }
html[data-theme="minimal"] .site-footer { width: auto; margin-right: max(40px, calc((100vw - 245px - var(--max)) / 2)); padding-left: max(40px, calc((100vw - 245px - var(--max)) / 2)); }

@media (max-width: 900px) {
  .site-header,
  html[data-theme="minimal"] .site-header {
    position: sticky;
    display: flex;
    width: auto;
    min-height: 72px;
    padding: 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
  }

  .brand-copy small,
  .header-meta { display: none; }
  html[data-theme="minimal"] .brand { align-items: center; flex-direction: row; gap: 12px; }
  html[data-theme="minimal"] .brand-mark { width: 38px; height: 38px; }
  .menu-button { display: block; margin-left: auto; }

  .primary-nav,
  html[data-theme="minimal"] .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    width: auto;
    margin: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--header);
    box-shadow: 0 18px 30px rgba(10, 20, 30, .12);
    flex-direction: column;
    align-items: stretch;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a,
  html[data-theme="minimal"] .primary-nav a { padding: 14px 16px; border: 0; border-radius: 6px; text-align: left; }

  html[data-theme="minimal"] main,
  html[data-theme="minimal"] .site-footer { margin-left: auto; }
  html[data-theme="minimal"] .page-panel { width: min(var(--max), calc(100% - 48px)); }

  .page-panel { width: min(var(--max), calc(100% - 48px)); padding-top: 55px; }
  .hero-wrap,
  html[data-theme="journal"] .hero-wrap,
  html[data-theme="minimal"] .hero-wrap { grid-template-columns: 1fr 250px; gap: 45px; min-height: 520px; }
  .overview-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-card { max-width: 520px; }
  .research-section { grid-template-columns: 1fr; gap: 35px; }
  .supplementary-grid { grid-template-columns: 1fr 1fr; }
  .supplementary-grid article:last-child { grid-column: 1 / -1; min-height: 250px; }
  .cv-note { grid-template-columns: 1fr 2fr; }
  .cv-note .section-label { grid-column: 1 / -1; }

  html[data-theme="compact"] .site-header { min-height: 64px; }
  html[data-theme="compact"] .hero-wrap { grid-template-columns: 1fr 220px; min-height: 390px; }
  html[data-theme="compact"] .overview-grid,
  html[data-theme="compact"] .research-section { grid-template-columns: 1fr; gap: 34px; }
  html[data-theme="compact"] .contact-card { max-width: 480px; }
  html[data-theme="compact"] .cv-note { grid-template-columns: 1fr 2fr; }
}

@media (max-width: 620px) {
  .site-header,
  html[data-theme="minimal"] .site-header { padding-inline: 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy strong { font-size: .9rem; }
  .page-panel,
  html[data-theme="minimal"] .page-panel { width: min(100% - 32px, 560px); padding: 38px 0 70px; }

  .hero-wrap,
  html[data-theme="journal"] .hero-wrap,
  html[data-theme="minimal"] .hero-wrap {
    display: flex;
    min-height: 0;
    padding-bottom: 54px;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-copy h1 { font-size: clamp(3.5rem, 22vw, 6.3rem); }
  .lead { margin-top: 30px; }
  .portrait-wrap { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: end; order: -1; }
  .portrait-wrap img,
  html[data-theme="journal"] .portrait-wrap img { width: 112px; height: 112px; aspect-ratio: 1; border: 0; border-radius: 50%; }
  html[data-theme="minimal"] .portrait-wrap img { border-radius: 0; }
  .portrait-wrap figcaption { margin: 0; }

  .overview-grid { padding: 60px 0; }
  .content-block h2,
  .research-heading h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .contact-card { padding: 24px; }
  .research-section { padding: 60px 0; }
  .topic-list li { grid-template-columns: 35px 1fr; }
  .profile-links { flex-wrap: wrap; }
  .profile-links > span { width: 100%; margin-right: 0; }

  .page-intro { display: block; padding: 8px 0 50px; }
  .page-intro h1 { font-size: clamp(3.7rem, 18vw, 6rem); }
  .page-intro > p:last-child { margin-top: 28px; font-size: 1.08rem; }
  .publication { grid-template-columns: 1fr; gap: 14px; padding: 34px 0; }
  .pub-body h2 { font-size: 1.55rem; }
  .supplementary-grid { grid-template-columns: 1fr; padding-top: 45px; }
  .supplementary-grid article,
  .supplementary-grid article:last-child { grid-column: auto; min-height: 290px; }

  .timeline-item { grid-template-columns: 1fr; gap: 12px; padding: 35px 0; }
  .timeline-item.current::before { left: auto; right: 0; }
  .cv-note { grid-template-columns: 1fr; gap: 12px; padding: 25px; }
  .cv-note .section-label { grid-column: auto; }

  .site-footer,
  html[data-theme="minimal"] .site-footer { display: block; width: min(100% - 32px, 560px); margin-inline: auto; padding-left: 0; }

  html[data-theme="compact"] .page-panel { padding-top: 28px; }
  html[data-theme="compact"] .hero-wrap { min-height: 0; padding-bottom: 38px; }
  html[data-theme="compact"] .portrait-wrap { width: auto; justify-self: auto; }
  html[data-theme="compact"] .overview-grid,
  html[data-theme="compact"] .research-section { padding-block: 44px; }
  html[data-theme="compact"] .page-intro { padding-bottom: 38px; }
  html[data-theme="compact"] .publication { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  html[data-theme="compact"] .timeline-item { grid-template-columns: 1fr; gap: 7px; padding: 22px 0; }
  html[data-theme="compact"] .cv-note { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}
