/* =====================================================================
   Self-hosted fonts (GDPR-compliant: no Google Fonts CDN)
   EB Garamond, Inter, JetBrains Mono — latin + latin-ext subsets
   ===================================================================== */

/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-400-italic-latin-ext.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;
}

/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-400-italic-latin.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;
}

/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-400-latin-ext.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;
}

/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-400-latin.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;
}

/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-400-latin-ext.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;
}

/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-400-latin.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;
}

/* latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-400-latin-ext.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;
}

/* latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/EBGaramond-400-latin.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;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/Inter-400-latin-ext.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;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/Inter-400-latin.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;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/Inter-400-latin-ext.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;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/Inter-400-latin.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;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/Inter-400-latin-ext.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;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/Inter-400-latin.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;
}

/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/JetBrainsMono-400-latin-ext.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;
}

/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/JetBrainsMono-400-latin.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;
}

/* =====================================================================
   Dominik John — personal homepage
   Minimal academic: serif display, sans body, generous whitespace.
   ===================================================================== */

:root {
  --bg:         #fbfaf6;
  --bg-soft:    #f3f1ea;
  --ink:        #1c1c1e;
  --ink-soft:   #4a4a4f;
  --muted:      #7a7a80;
  --rule:       #d9d5c9;
  --accent:     #2d4a6e;
  --accent-hov: #3a5f8a;

  --serif:   "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw:        1080px;
  --maxw-narrow:  720px;
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
a:hover { color: var(--accent-hov); border-bottom-color: currentColor; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  color: var(--ink);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: .5rem;
}
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 2.25rem; height: 1px;
  background: var(--accent);
}
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1em; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(251,250,246,.85) 0%, rgba(251,250,246,.55) 35%, rgba(251,250,246,0) 75%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 5rem var(--gutter) 7rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-text { min-width: 0; }

/* Name is now the display element; role is the small eyebrow ------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.hero .display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.75rem;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 2.25rem;
  font-style: italic;
}
.hero-links {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .9rem;
  align-items: center;
}
.hero-links a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.hero-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hero-links span { color: var(--rule); }

/* Portrait (square) ------------------------------------------------- */
.hero-portrait {
  margin: 0;
  position: relative;
  justify-self: end;
  max-width: 340px;
  width: 100%;
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(0,0,0,.04),
    0 12px 32px -12px rgba(28,28,30,.22),
    0 30px 60px -30px rgba(28,28,30,.25);
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  opacity: .35;
  z-index: -1;
  pointer-events: none;
}

/* Small physics-caption under the hero ------------------------------ */
.hero-caption {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5.5rem;
  max-width: 32rem;
  width: calc(100% - 2 * var(--gutter));
  text-align: center;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--muted);
  margin: 0;
  opacity: .7;
  pointer-events: none;
}

@media (max-width: 780px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 4rem var(--gutter) 5rem;
    gap: 2.5rem;
  }
  .hero-portrait { order: -1; justify-self: start; max-width: 180px; }
  .hero-portrait::before { inset: 10px -10px -10px 10px; }
  .hero .display { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .hero-caption { bottom: 4rem; }
}

/* Variant picker ---------------------------------------------------- */
.bg-picker {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  z-index: 3;
  display: flex;
  gap: .25rem;
  padding: .25rem;
  background: rgba(251, 250, 246, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono);
}
.bg-picker button {
  width: 1.75rem; height: 1.75rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.bg-picker button:hover { color: var(--ink); }
.bg-picker button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

/* Scroll hint ------------------------------------------------------- */
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px; height: 36px;
  border: 1px solid var(--ink-soft);
  border-radius: 12px;
  opacity: .55;
}
.scroll-hint span {
  position: absolute;
  top: 6px; left: 50%;
  width: 2px; height: 6px;
  background: var(--ink-soft);
  transform: translateX(-50%);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: .8; }
  50%      { transform: translate(-50%, 10px); opacity: .2; }
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem var(--gutter);
}
.section--narrow { max-width: var(--maxw-narrow); }
.section + .section { border-top: 1px solid var(--rule); }

/* Research cards ---------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.card {
  padding: 0;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }

.card-figure {
  margin: 0;
  height: 170px;
  flex-shrink: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: .75rem;
}
.card-figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.card h3 { margin: 0; font-family: var(--serif); }
.card-body > p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

.card-credit {
  margin-top: auto;
  padding-top: .4rem;
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.35;
  opacity: .55;
}
.card-credit em { font-style: italic; }
.card-credit a { color: inherit; border-bottom: 1px dotted currentColor; }
.card-credit a:hover { color: var(--accent); border-bottom-style: solid; }
.card-credit abbr { text-decoration: none; }

/* =====================================================================
   FEATURED (Advanced Science cover)
   ===================================================================== */
.featured { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.featured .featured-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.featured-cover {
  margin: 0;
  position: relative;
}
.featured-cover a { display: block; border-bottom: none; }
.featured-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow:
    0 2px 0 rgba(0,0,0,.04),
    0 20px 48px -16px rgba(28,28,30,.28),
    0 40px 80px -40px rgba(28,28,30,.30);
  transition: transform .3s ease;
}
.featured-cover a:hover img { transform: translateY(-3px); }
.featured-cover figcaption {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
}

.featured-body h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; }
.featured-body h2::after { display: none; }
.featured-body .eyebrow { margin-bottom: .75rem; }

.featured-authors {
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 .5rem;
}
.featured-authors strong { color: var(--ink); }
.featured-venue {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.featured-abs {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}
.featured-links {
  font-family: var(--mono);
  font-size: .82rem;
  margin: 0;
}

@media (max-width: 780px) {
  .featured .featured-inner { grid-template-columns: 1fr; }
  .featured-cover { max-width: 320px; margin: 0 auto; }
}

/* =====================================================================
   PUBLICATIONS
   ===================================================================== */
.pub-list {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: pub;
}
.pub {
  counter-increment: pub;
  padding: 1.5rem 0 1.5rem 3rem;
  border-top: 1px solid var(--rule);
  position: relative;
}
.pub:first-child { border-top: none; padding-top: .5rem; }
.pub::before {
  content: counter(pub, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1.75rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .1em;
}
.pub:first-child::before { top: .75rem; }

.pub-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 .35rem;
  line-height: 1.35;
}
.pub-title a { color: var(--ink); border-bottom: 1px solid transparent; }
.pub-title a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.pub-meta  { font-size: .88rem; color: var(--ink-soft); margin: 0 0 .2rem; line-height: 1.5; }
.pub-meta strong { color: var(--ink); }

.pub-venue {
  font-size: .92rem;
  color: var(--ink-soft);
  margin: 0 0 .4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
}
.pub-venue em { font-style: italic; }
.pub-venue .year { font-family: var(--mono); font-size: .8rem; color: var(--muted); }

.pub-flag {
  display: inline-flex;
  align-items: center;
  padding: .1rem .55rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  margin-left: .25rem;
}
.pub-flag a { color: inherit; border-bottom: none; }
.pub-flag a:hover { color: inherit; text-decoration: underline; }

.pub-links { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin: 0; }

.section-lede { margin-top: -.5rem; margin-bottom: 2rem; }

/* Subsection heading inside Publications / Talks --------------------- */
.pub-group {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 2.5rem 0 1rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
}
.pub-group:first-of-type { margin-top: 1rem; }

/* Shared-first-authorship note -------------------------------------- */
.pub-note {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  margin-top: .15rem;
}

/* Talks list --------------------------------------------------------- */
.talk-list {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: talk;
}
.talk {
  counter-increment: talk;
  padding: 1.1rem 0 1.1rem 3rem;
  border-top: 1px solid var(--rule);
  position: relative;
}
.talk:first-child { border-top: none; padding-top: .5rem; }
.talk::before {
  content: counter(talk, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1.35rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .1em;
}
.talk:first-child::before { top: .75rem; }

.talk-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  margin: 0 0 .3rem;
  line-height: 1.4;
  color: var(--ink);
}
.talk-venue {
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 0;
}
.talk-venue em { font-style: italic; }
.talk-venue .year { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.talk-meta {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 .2rem;
}
.talk-meta strong { color: var(--ink); }

/* Awards reuses timeline; no extra rules needed */

/* =====================================================================
   Collapsible sections (<details>)
   ===================================================================== */
.collapse {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.collapse > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0 .85rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  transition: color .15s ease;
}
.collapse > summary::-webkit-details-marker { display: none; }
.collapse > summary:hover { color: var(--accent); }

.collapse-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.collapse > summary:hover .collapse-label { color: var(--accent); }

.collapse-hint {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--muted);
}

.collapse[open] > summary {
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: .75rem;
}
/* Rotate the trailing arrow character on open. Uses a simple trick:
   target the "↓" at the end of the hint via a sibling marker arrow. */

/* =====================================================================
   MEDIA & PRESS
   ===================================================================== */
.media-list {
  list-style: none;
  padding: 0; margin: 1rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.media-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rule);
  border-radius: 2px;
  transition: border-left-color .2s ease, transform .2s ease;
}
.media-item:hover { border-left-color: var(--accent); transform: translateY(-1px); }
.media-item--featured { border-left-color: var(--accent); }

.media-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--rule);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.media-thumb:hover img { transform: scale(1.03); }

/* Placeholder thumbnail for FastForwardScience video (no thumbnail available) */
.media-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background:
    linear-gradient(135deg, #14273f 0%, #2d4a6e 50%, #5a7fa8 100%);
  color: rgba(255,255,255,.92);
}
.ff-placeholder .ff-playmark {
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
}
.ff-placeholder .ff-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
}

.media-body { min-width: 0; }
.media-kind {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .5rem;
}
.media-item h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.media-item h3 a { color: var(--ink); border-bottom: 1px solid transparent; }
.media-item h3 a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.media-item p { margin: 0 0 .5rem; font-size: .95rem; color: var(--ink-soft); }

.lang {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .08em;
  margin-left: .4em;
  vertical-align: middle;
}

.media-awards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  font-size: .85rem;
}
.award-chip {
  display: inline-flex;
  align-items: center;
  padding: .15rem .6rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  background: var(--accent);
  color: white;
  border-radius: 999px;
}

.media-photo-credit {
  margin: .5rem 0 0;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .02em;
  color: var(--muted);
  opacity: .6;
}

@media (max-width: 600px) {
  .media-item { grid-template-columns: 1fr; }
  .media-thumb { aspect-ratio: 16 / 9; max-height: 180px; }
}

/* =====================================================================
   TIMELINE (Academic background) — vertical rail with dots
   ===================================================================== */
.timeline {
  list-style: none;
  padding: 0; margin: 1.5rem 0 0;
  position: relative;
}
/* Vertical rail behind all items */
.timeline::before {
  content: "";
  position: absolute;
  left: 10.5rem;
  top: .4rem;
  bottom: .4rem;
  width: 1px;
  background: var(--rule);
}
.timeline li {
  display: grid;
  grid-template-columns: 10rem 1.4rem 1fr;
  column-gap: 0;
  row-gap: 0;
  padding: .85rem 0;
  position: relative;
  border: none;
}
.timeline li:first-child { padding-top: 0; }
.timeline li:last-child  { padding-bottom: 0; }

/* Dot on the rail */
.timeline li::before {
  content: "";
  position: absolute;
  left: 10.5rem;
  top: 1.15rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  transform: translate(-4px, 0);
  z-index: 1;
  transition: background .2s ease, transform .2s ease;
}
.timeline li:first-child::before { top: .4rem; }
.timeline li:hover::before { background: var(--accent); transform: translate(-4px, 0) scale(1.15); }

.t-when {
  grid-column: 1;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
  padding-top: .25rem;
  padding-right: 1.25rem;
  text-align: right;
}
.t-what {
  grid-column: 3;
  line-height: 1.5;
  padding-left: .25rem;
}
.t-what strong { color: var(--ink); font-weight: 600; }
.t-note {
  display: block;
  color: var(--ink-soft);
  font-size: .92rem;
  margin-top: .25rem;
}

/* Awards subsection re-uses .timeline but without the rail */
.timeline.awards::before { display: none; }
.timeline.awards li { grid-template-columns: 10rem 1fr; }
.timeline.awards li::before { display: none; }
.timeline.awards .t-when { padding-right: 1.5rem; }
.timeline.awards .t-what { grid-column: 2; padding-left: 0; }

@media (max-width: 640px) {
  .timeline::before { left: .4rem; }
  .timeline li {
    grid-template-columns: 1fr;
    padding-left: 1.5rem;
  }
  .timeline li::before { left: .4rem; top: .4rem; transform: translate(-4px, 0); }
  .timeline li:first-child::before { top: 0; }
  .t-when { grid-column: 1; text-align: left; padding: 0 0 .25rem 0; }
  .t-what { grid-column: 1; padding: 0; }

  .timeline.awards li { grid-template-columns: 1fr; padding-left: 0; }
  .timeline.awards .t-when { padding-right: 0; }
}

/* =====================================================================
   MISC + FOOTER
   ===================================================================== */
.muted { color: var(--muted); font-size: .9rem; }
.cta {
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem var(--gutter);
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
}
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint span { animation: none; }
  .card:hover, .media-item:hover, .featured-cover a:hover img { transform: none; }
}

/* =====================================================================
   LEGAL PAGE (Impressum / Datenschutz)
   ===================================================================== */
.legal-page { background: var(--bg); }

.legal-header {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 2rem var(--gutter) 0;
}
.legal-back {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  letter-spacing: .04em;
}
.legal-back:hover { color: var(--accent); border-bottom-color: var(--accent); }

.legal-body { padding-top: 2rem; padding-bottom: 4rem; }
.legal-body h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--rule);
}
.legal-body h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 .75rem;
  padding: 0;
  color: var(--ink);
}
.legal-body h2::after { display: none; }
.legal-body p {
  color: var(--ink-soft);
  font-size: .96rem;
  line-height: 1.65;
}
