/* ==========================================================================
   lucabrunke — shared theme
   Change colours, fonts and spacing here; every page picks them up.
   ========================================================================== */

/* ---- Fonts (self-hosted: no requests to Google) ---- */
@font-face { font-family: 'Libre Caslon Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/libre-caslon-display-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Caslon Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/libre-caslon-display-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/hanken-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/hanken-grotesk-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/hanken-grotesk-latin-ext-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/space-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/space-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/space-mono-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/space-mono-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Tokens ---- */
:root {
  --accent: #23528a;
  --accent-shadow: rgba(35, 82, 138, 0.32);
  --ink: #1a1a1a;
  --muted: #6c6c69;
  --hair: #e6e6e2;
  --bg: #ffffff;
  --panel: #f6f6f4;
  --placeholder: #93a1b3;

  --serif: 'Libre Caslon Display', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --page-max: 1240px;
  --gutter: 40px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #ffffff; }
a, button { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page-width container */
.wrap { max-width: var(--page-max); width: 100%; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* External-link arrow (inline SVG inherits currentColor) */
.ext { display: inline-block; width: 11px; height: 11px; vertical-align: middle; margin-left: 5px; }

/* ---- Type helpers ---- */
.kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 0 0 18px; }
.page-title { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 20px; }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 60ch; margin: 0; text-wrap: pretty; }
.label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ---- Header / nav ---- */
.site-header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.wordmark { font-family: var(--serif); font-size: 22px; letter-spacing: 0.01em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14.5px; letter-spacing: 0.01em; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* ---- Buttons ---- */
.btn-accent { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #ffffff; background: var(--accent); border: 1px solid var(--accent); padding: 8px 14px; border-radius: 2px; white-space: nowrap; }
.site-nav .btn-accent, .site-nav .btn-accent:hover { color: #ffffff; }
.btn-accent:hover { box-shadow: 0 5px 16px var(--accent-shadow); }
.btn-accent[aria-current="page"]:hover { box-shadow: none; }
.btn-dark { display: inline-block; background: var(--ink); color: var(--bg); font-size: 15px; padding: 14px 26px; border-radius: 3px; letter-spacing: 0.01em; }
.btn-dark:hover { box-shadow: 0 6px 18px rgba(26, 26, 26, 0.24); }
.link-underline { color: var(--ink); border-bottom: 1px solid var(--hair); padding-bottom: 3px; }
.link-underline:hover { border-color: var(--accent); }

/* ---- Footer ---- */
.site-footer { flex: none; margin-top: 40px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.footer-meta { color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.footer-meta a { font-size: 11.5px; color: var(--muted); border-bottom: 1px solid transparent; align-self: flex-start; }
.footer-meta a:hover { color: var(--ink); border-color: var(--hair); }
.footer-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-links > div { display: flex; gap: 22px; }
.footer-links > div + div { padding-left: 26px; border-left: 1px solid var(--hair); }
.footer-links a { color: var(--muted); }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--ink); }

/* ==========================================================================
   Home — single-screen hero
   ========================================================================== */
body.home { height: 100vh; overflow: hidden; }
.home .site-footer { margin-top: 0; padding-top: 16px; padding-bottom: 22px; }
.hero { flex: 1 1 auto; min-height: 0; padding-top: 8px; padding-bottom: 20px; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero .kicker { font-size: 12.5px; margin-bottom: clamp(12px, 2.2vh, 24px); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5.4vh, 56px); line-height: 1.07; letter-spacing: -0.01em; margin: 0 0 clamp(14px, 2.4vh, 26px); }
.hero-sub { font-size: clamp(15px, 2.1vh, 18.5px); line-height: 1.55; color: var(--muted); max-width: 44ch; margin: 0 0 clamp(16px, 2.8vh, 30px); }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: clamp(14px, 2.4vh, 28px); }
.hero-actions .link-underline { font-size: 15px; }
.availability { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-media { position: relative; height: min(66vh, 560px); display: flex; align-items: center; justify-content: center; }
.model-frame { position: relative; height: 100%; aspect-ratio: 4 / 5; background: var(--panel); border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; }
.model-frame model-viewer { width: 100%; height: 100%; background-color: var(--panel); --poster-color: transparent; }
.model-poster { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--panel); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--placeholder); }
.model-hint { position: absolute; bottom: -1px; left: -1px; background: var(--bg); border: 1px solid var(--hair); border-left: none; border-bottom: none; padding: 9px 15px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--muted); }
.info-btn { position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair); background: var(--bg); color: var(--accent); font-family: var(--mono); font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.info-btn:hover { border-color: var(--accent); }
.popover { position: absolute; top: 56px; right: 14px; z-index: 5; width: 280px; max-width: calc(100% - 28px); background: var(--bg); border: 1px solid var(--hair); border-radius: 4px; box-shadow: 0 12px 34px rgba(20, 30, 50, 0.13); padding: 18px 18px 16px; text-align: left; }
.popover[hidden] { display: none; }
.popover-close { position: absolute; top: 10px; right: 12px; border: none; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.popover-close:hover { color: var(--ink); }
.popover .eyebrow { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px; }
.popover .title { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; }
.popover p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 10px; }
.popover .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ==========================================================================
   Projects — result grid, filters, lightbox
   ========================================================================== */
.page-head { padding-top: 44px; }
.filters { padding-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 9px 15px; border-radius: 2px; cursor: pointer; background: transparent; color: var(--muted); border: 1px solid var(--hair); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.chip-project { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; padding: 9px 13px; border-radius: 2px; cursor: pointer; background: #ffffff; color: var(--accent); border: 1px solid var(--accent); display: flex; align-items: center; gap: 8px; }
.chip-project:hover { box-shadow: 0 4px 12px rgba(35, 82, 138, 0.2); }
.chip-project span { font-size: 15px; line-height: 1; }
.result-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.grid-section { padding-top: 32px; padding-bottom: 20px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 36px 28px; }
.tile { display: block; width: 100%; text-align: left; background: none; border: none; padding: 0; cursor: pointer; }
.tile:hover { opacity: 0.86; }
.tile-media { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--hair); border-radius: 3px; overflow: hidden; margin-bottom: 14px; background: var(--panel); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-badges { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--muted); background: #ffffff; border: 1px solid var(--hair); padding: 5px 9px; border-radius: 2px; }
.badge-3d { text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.tile-title { font-family: var(--serif); font-size: 20px; line-height: 1.25; margin-bottom: 6px; text-wrap: pretty; }
.tile-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--muted); }
.placeholder { width: 100%; height: 100%; background: repeating-linear-gradient(135deg, #e8ecf1 0 13px, #f0f3f7 13px 26px); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--placeholder); }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(18, 20, 24, 0.72); display: flex; align-items: flex-start; justify-content: center; padding: 32px; overflow-y: auto; }
.lightbox[hidden] { display: none; }
.lightbox-panel { position: relative; width: 100%; max-width: 980px; margin: auto; background: #ffffff; border-radius: 5px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.round-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair); background: #ffffff; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.round-btn:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.stage { aspect-ratio: 16 / 10; max-height: 62vh; width: 100%; background: var(--panel); position: relative; }
.stage > img { width: 100%; height: 100%; object-fit: contain; background: var(--panel); }
.stage > iframe { width: 100%; height: 100%; border: 0; display: block; }
.stage > model-viewer { width: 100%; height: 100%; background-color: var(--panel); }
.stage .placeholder { font-size: 12px; background: repeating-linear-gradient(135deg, #e8ecf1 0 14px, #f0f3f7 14px 28px); }
.stage-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; font-size: 17px; }
.stage-prev { left: 14px; }
.stage-next { right: 14px; }
.stage-pos { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--muted); background: #ffffff; border: 1px solid var(--hair); padding: 4px 10px; border-radius: 10px; }
.thumbs { display: flex; gap: 10px; padding: 14px 30px 0; flex-wrap: wrap; }
.thumb { width: 84px; aspect-ratio: 4 / 3; padding: 0; border-radius: 3px; overflow: hidden; cursor: pointer; background: var(--panel); border: 1px solid var(--hair); }
.thumb[aria-current="true"] { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb-3d { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; color: var(--accent); }
.thumb .placeholder { background: repeating-linear-gradient(135deg, #e8ecf1 0 7px, #f0f3f7 7px 14px); }
.caption { padding: 22px 30px 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.caption-text { flex: 1 1 420px; min-width: 0; }
.caption .eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px; }
.caption h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 0 0 10px; }
.caption p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 62ch; text-wrap: pretty; }
.caption-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.caption-actions .btn-accent { padding: 10px 14px; }
.caption-actions .btn-accent .ext { margin-left: 6px; }
.link-project { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--muted); background: none; border: none; border-bottom: 1px solid var(--hair); padding: 0 0 2px; cursor: pointer; }
.link-project:hover { color: var(--accent); border-color: var(--accent); }
body.no-scroll { overflow: hidden; }

/* ==========================================================================
   Research — light CV
   ========================================================================== */
.research-head .page-title { margin-bottom: 8px; }
.research-head .subtitle { font-size: 17px; color: var(--muted); }
.research-body { padding-top: 44px; padding-bottom: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.cv-section { margin-bottom: 56px; }
.cv-section:last-child { margin-bottom: 0; }
.section-label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--hair); margin: 0 0 4px; font-weight: 400; }
.cv-section .intro { font-size: 17px; line-height: 1.65; margin: 16px 0 16px; max-width: 64ch; }
.cv-section .intro + .intro { color: var(--muted); margin: 0; }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-row { display: grid; grid-template-columns: 96px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.cv-years { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.cv-title { font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.cv-title-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 3px; }
.cv-title-line .cv-title { margin-bottom: 0; }
.cv-place { font-size: 15px; color: var(--muted); }
.cv-place a { color: var(--muted); border-bottom: 1px solid var(--hair); }
.cv-place a:hover { color: var(--accent); border-color: var(--accent); }
.cv-note { font-size: 13.5px; color: var(--muted); margin-top: 6px; font-style: italic; }
.badge-current { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); background: var(--panel); border: 1px solid var(--hair); padding: 3px 8px; border-radius: 10px; }
.badge-current .dot { width: 6px; height: 6px; }

.pubs-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--hair); margin-bottom: 8px; }
.pubs-head .section-label { border: none; padding: 0; margin: 0; }
.seg { display: flex; border: 1px solid var(--hair); border-radius: 3px; overflow: hidden; }
.seg button { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 7px 13px; border: none; cursor: pointer; background: transparent; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--hair); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pub { padding: 22px 0; border-bottom: 1px solid var(--hair); display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.pub-apa { font-size: 15.5px; line-height: 1.6; margin: 0; max-width: 60ch; }
.pub-apa cite { font-family: var(--serif); font-style: italic; }
.pub-apa .venue { color: var(--muted); }
.pub-apa .venue a { border-bottom: 1px solid var(--hair); }
.pub-apa .venue a:hover { color: var(--accent); border-color: var(--accent); }
.pub-bib { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; line-height: 1.55; background: var(--panel); border: 1px solid var(--hair); border-radius: 3px; padding: 14px 16px; margin: 0; white-space: pre-wrap; overflow-x: auto; }
.pubs[data-format="apa"] .pub-bib, .pubs[data-format="bibtex"] .pub-apa { display: none; }
.copy-btn { flex: none; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; padding: 7px 11px; border: 1px solid var(--hair); border-radius: 2px; background: var(--bg); color: var(--muted); cursor: pointer; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.pubs-note { font-size: 13px; color: var(--muted); margin: 20px 0 0; }
.orcid-link { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.orcid-link:hover { color: var(--accent); }

.sidebar { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 20px; }
.portrait { aspect-ratio: 4 / 5; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; margin: 0; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.facts { border: 1px solid var(--hair); border-radius: 4px; padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.facts dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.facts dd { font-size: 14.5px; margin: 0; }
.facts dd a:hover { color: var(--accent); }
.facts-links { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.facts-links a { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.facts-links a:hover { color: var(--ink); }
.sidebar .btn-dark { font-size: 14.5px; text-align: center; padding: 14px 18px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-body { padding-top: 56px; padding-bottom: 20px; }
.contact-body > div { max-width: 560px; }
.contact-body .page-title { margin-bottom: 24px; }
.contact-body .lede { max-width: 46ch; margin-bottom: 40px; }
.contact-items { display: flex; flex-direction: column; gap: 26px; }
.contact-items .label { margin-bottom: 8px; }
.email-link { font-family: var(--serif); font-size: 26px; color: var(--ink); border-bottom: 1px solid var(--hair); padding-bottom: 3px; overflow-wrap: anywhere; }
.email-link:hover { border-color: var(--accent); color: var(--accent); }
.contact-socials { display: flex; gap: 24px; flex-wrap: wrap; }
.contact-socials a { font-size: 15px; color: var(--ink); }
.contact-socials a:hover { color: var(--accent); }
.contact-items .value { font-size: 15px; }
.contact-page .site-footer { margin-top: 56px; }

/* ==========================================================================
   Legal pages (Imprint, Privacy)
   ========================================================================== */
.legal { max-width: 760px; width: 100%; margin: 0 auto; padding: 56px var(--gutter) 20px; }
.legal .page-title { font-size: 46px; line-height: 1.06; margin-bottom: 12px; }
.legal-intro { font-size: 15px; color: var(--muted); margin: 0 0 44px; }
.legal-block { padding: 24px 0; border-top: 1px solid var(--hair); }
.legal-block .label { margin-bottom: 12px; }
.legal-block address, .legal-block .body { font-style: normal; font-size: 16.5px; line-height: 1.7; }
.legal-block address .muted { color: var(--muted); }
.legal-block p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 14px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block .body a { color: var(--accent); border-bottom: 1px solid var(--hair); padding-bottom: 1px; }
.legal-block .body a:hover { border-color: var(--accent); }
.legal-section { padding: 26px 0; border-top: 1px solid var(--hair); }
.legal-section-head { display: flex; gap: 16px; align-items: baseline; margin-bottom: 12px; }
.legal-section-head .num { font-family: var(--mono); font-size: 12px; color: var(--accent); flex: none; }
.legal-section h2 { font-family: var(--serif); font-weight: 400; font-size: 23px; margin: 0; letter-spacing: -0.01em; }
.legal-section .paras { padding-left: 28px; }
.legal-section p { font-size: 15.5px; line-height: 1.68; color: var(--muted); margin: 0 0 12px; }
.legal-section p a { color: var(--accent); }
.legal-section p a:hover { color: var(--ink); }
.legal-updated { padding: 24px 0; border-top: 1px solid var(--hair); font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.legal-updated span { color: var(--ink); }
.legal-updated a { color: var(--accent); }
.legal-updated a:hover { color: var(--ink); }
.legal-page .site-footer { margin-top: 44px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  :root { --gutter: 28px; }
  /* Home becomes a normal scrolling page once text and model no longer fit side by side */
  body.home { height: auto; overflow: visible; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(34px, 7vw, 48px); }
  .hero-sub { font-size: 17px; }
  .hero-media { height: auto; }
  .model-frame { height: auto; width: 100%; max-width: 460px; }
  .research-body { grid-template-columns: 1fr; gap: 48px; }
  .sidebar { position: static; order: -1; display: grid; grid-template-columns: 180px 1fr; align-items: start; }
  .sidebar .btn-dark { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header { padding-top: 18px; padding-bottom: 18px; row-gap: 14px; }
  .site-nav { gap: 20px; font-size: 14px; }
  .page-title { font-size: 38px; }
  .legal .page-title { font-size: 36px; }
  .lede { font-size: 16.5px; }
  .page-head, .contact-body, .legal { padding-top: 28px; }
  .site-footer { align-items: flex-start; }
  .footer-links { gap: 14px 26px; }
  .footer-links > div + div { padding-left: 0; border-left: none; }
  .cv-row { grid-template-columns: 1fr; gap: 4px; }
  .pub { flex-direction: column; gap: 12px; }
  .sidebar { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .legal-section .paras { padding-left: 0; }
  .lightbox { padding: 12px; }
  .caption { padding: 18px 18px 22px; }
  .caption-actions { align-items: flex-start; }
  .thumbs { padding: 12px 18px 0; }
  .thumb { width: 64px; }
  .stage-nav { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  a, button { transition: none; }
}
