@import url("https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Inter:wght@300;400;500;600&display=swap");
@import url(fontawesome-all.min.css);

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #0C0A09;
  --surface:   #141210;
  --surface-2: #1D1B18;
  --border:    #2A2723;
  --border-2:  #3D3A35;
  --accent:    #4FC3F7;
  --accent-dim: rgba(79,195,247,0.10);
  --text-1:    #EDE8E3;
  --text-2:    #7A7570;
  --text-3:    #3D3B38;
  --gold:      #C8A96E;
  --nav-h:     68px;
  --max-w:     1240px;
  --pad-x:     clamp(1.5rem, 5vw, 4rem);
  --section-py: clamp(6rem, 12vw, 10rem);
  --radius:    10px;
  --ease:      cubic-bezier(0.76,0,0.24,1);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; overflow-x:clip; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  overflow-x: clip;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,video { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
ul,ol { list-style:none; }

/* ── Readability baseline ────────────────────────────────────────────────── */
body { font-size: 1.05rem; }
p { font-size: 0.92rem; color: var(--text-2); line-height: 1.8; }
strong { color: var(--text-1); font-weight: 600; }
em { font-style: italic; }

html[lang="de"] body {
  -webkit-hyphens: auto;
  hyphens: auto;
}

html[lang="de"] :where(
  .hero-headline,
  .hero-desc,
  .about-hero-text p,
  .section-title,
  .section-head-right,
  .rp-content h3,
  .rp-content p,
  .pub-row-body h3,
  .pub-row-body p,
  .tl-body h4,
  .tl-body p,
  .tl-body li,
  .contact-statement,
  .contact-info,
  .sidebar-link,
  .mobile-menu a,
  .btn,
  .pill,
  .label,
  .section-num,
  .skill-group-label,
  .sidebar-card-label
) {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* ── Noise overlay ───────────────────────────────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.048;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
.display {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-1);
}
.label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}
/* Outline text only for decorative/large non-critical text (footer wordmark) */
.outline-deco {
  -webkit-text-stroke: 1px var(--border-2);
  color: transparent;
}
.accent-text { color: var(--accent); }

/* ── Scroll fade-in ──────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible { opacity:1; transform:translateY(0); }
.delay-1 { transition-delay:0.08s; }
.delay-2 { transition-delay:0.16s; }
.delay-3 { transition-delay:0.24s; }
.delay-4 { transition-delay:0.32s; }
.delay-5 { transition-delay:0.40s; }
.delay-6 { transition-delay:0.48s; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: var(--section-py) 0; }
.rule {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top:0; left:0; right:0;
  z-index:100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(12,10,9,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-1);
  transition: color 0.2s;
}
.nav-brand:hover { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content:'';
  position:absolute;
  bottom:-2px; left:0; right:0;
  height:1px;
  background: var(--text-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text-1); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .nav-cta {
  border: 1px solid var(--border-2);
  border-radius: 2rem;
  padding: 0.42em 1.1em;
  color: var(--text-1);
}
.nav-links .nav-cta::after { display:none; }
.nav-links .nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* hamburger */
.nav-hamburger {
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  background:none;
  border:none;
  padding:4px;
}
.nav-hamburger span {
  display:block; width:22px; height:1.5px;
  background:var(--text-1);
  border-radius:2px;
  transition: all 0.25s ease;
}
.nav-hamburger.open span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2){ opacity:0; }
.nav-hamburger.open span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display:none;
  position:fixed; inset:0; z-index:99;
  background:rgba(12,10,9,0.97);
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding: var(--pad-x);
  gap:2rem;
}
.mobile-menu.open { display:flex; }
.mobile-menu a {
  font-family:'Syne',sans-serif;
  font-size:clamp(2rem,7vw,3.5rem);
  font-weight:800;
  letter-spacing:-0.03em;
  color:var(--text-1);
  opacity:0.3;
  transition: opacity 0.2s;
}
.mobile-menu a:hover { opacity:1; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.78em 1.8em;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 3rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.3s ease;
}
.btn-primary {
  background: var(--accent);
  color: #080808;
  border-color: var(--accent);
}
.btn-primary::before {
  content:'';
  position:absolute;
  inset:0;
  background:#fff;
  transform:translateX(-105%);
  transition: transform 0.45s var(--ease);
}
.btn-primary:hover { color:#080808; }
.btn-primary:hover::before { transform:translateX(0); }
.btn-primary span { position:relative; z-index:1; }

.btn-outline {
  background:transparent;
  color:var(--text-2);
  border-color:var(--border-2);
}
.btn-outline::before {
  content:'';
  position:absolute;
  inset:0;
  background:var(--surface-2);
  transform:translateX(-105%);
  transition: transform 0.4s var(--ease);
}
.btn-outline:hover { color:var(--text-1); border-color:var(--border-2); }
.btn-outline:hover::before { transform:translateX(0); }
.btn-outline span { position:relative; z-index:1; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position:relative;
  min-height:100vh;
  display:grid;
  grid-template-columns: 1fr clamp(140px,20vw,280px);
  overflow:hidden;
  padding-top: var(--nav-h);
}
.hero-left {
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding: var(--pad-x);
  padding-top: clamp(3rem,6vw,5rem);
  padding-bottom: clamp(3rem,6vw,5rem);
  position:relative;
  z-index:2;
}
.hero-eyebrow {
  display:flex;
  align-items:center;
  gap:1em;
  margin-bottom: clamp(2rem,4vw,3.5rem);
}
.hero-eyebrow-dot {
  width:6px; height:6px;
  border-radius:50%;
  background:var(--accent);
  flex-shrink:0;
}
.hero-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(4rem,10vw,9.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--text-1);
  margin-bottom: clamp(1.25rem,2.5vw,2rem);
}
.hero-headline {
  font-size: clamp(1rem,2.2vw,1.55rem);
  margin-bottom: clamp(1.5rem,3vw,2.5rem);
  color: var(--text-2);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.hero-headline .accent-text { color: var(--accent); }
.hero-headline .line { display:block; }
.hero-meta {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:2rem;
  flex-wrap:wrap;
  margin-top: clamp(2.5rem,4vw,4rem);
  padding-top: clamp(1.5rem,2.5vw,2rem);
  border-top:1px solid var(--border);
}
.hero-desc {
  max-width: 380px;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height:1.7;
}
.hero-actions { display:flex; gap:0.85rem; flex-wrap:wrap; }

/* Flanking video column */
.hero-right {
  display:flex;
  flex-direction:column;
  overflow:hidden;
  position:relative;
}
.hero-right::before {
  content:'';
  position:absolute;
  left:0; top:0; bottom:0;
  width:80px;
  background:linear-gradient(to right,var(--bg),transparent);
  z-index:2;
  pointer-events:none;
}
.hero-right::after {
  content:'';
  position:absolute;
  bottom:0; left:0; right:0;
  height:120px;
  background:linear-gradient(to top,var(--bg),transparent);
  z-index:2;
  pointer-events:none;
}
.hero-video-panel {
  flex:1;
  overflow:hidden;
  position:relative;
}
.hero-video-panel:first-child {
  border-bottom:1px solid var(--border);
}
.hero-video-panel video {
  width:100%; height:100%;
  object-fit:cover;
  opacity:0.55;
  filter:saturate(0.4) brightness(0.65);
}

/* Scroll indicator */
.hero-scroll-hint {
  position:absolute;
  bottom:2.5rem; left:var(--pad-x);
  display:flex; align-items:center; gap:0.75rem;
  z-index:3;
}
.scroll-line {
  width:40px; height:1px;
  background:var(--border-2);
  transform-origin:left;
  animation:scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100%{transform:scaleX(1);opacity:0.4;}
  50%{transform:scaleX(0.5);opacity:1;}
}

/* ── Marquee ─────────────────────────────────────────────────────────────── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  overflow:hidden;
  background: var(--surface);
}
.marquee-track {
  display:flex;
  gap:0;
  white-space:nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state:paused; }
.marquee-item {
  display:inline-flex;
  align-items:center;
  gap:2rem;
  padding-right:2rem;
  font-size:0.78rem;
  font-weight:500;
  letter-spacing:0.15em;
  text-transform:uppercase;
  color:var(--text-2);
}
.marquee-item .dot {
  width:4px; height:4px;
  border-radius:50%;
  background:var(--accent);
  flex-shrink:0;
}
@keyframes marquee {
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}

/* ── Affiliations logos ───────────────────────────────────────────────────── */
.affils-section {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  /* Lighter warm surface so logos have contrast against the page bg */
  background: #1A1816;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid texture for futuristic feel */
.affils-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Moving light band — sweeps left→right on a loop */
.affils-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: -65%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(79,195,247,0.04) 25%,
    rgba(255,255,255,0.07) 50%,
    rgba(79,195,247,0.04) 75%,
    transparent 100%
  );
  animation: affil-band 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes affil-band {
  0%   { left: -65%; }
  60%  { left: 115%; }
  100% { left: 115%; }
}

/* Ensure content sits above overlays */
.affils-header,
.affils-marquee { position: relative; z-index: 2; }

.affils-header {
  display:flex;
  align-items:center;
  gap:1.5rem;
  padding: clamp(2rem,4vw,3.5rem) 0 1.25rem;
}
.affils-line {
  flex:1;
  height:1px;
  background:var(--border);
}

/* Scrolling logo marquee */
.affils-marquee {
  overflow: hidden;
  padding-bottom: clamp(2rem,4vw,3.5rem);
}
.affils-track {
  display: flex;
  align-items: center;
  gap: clamp(3rem,6vw,6rem);
  width: max-content;
  animation: affils-scroll 32s linear infinite;
}
.affils-track:hover { animation-play-state: paused; }
.affils-track a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* grayscale → invert: any dark SVG becomes white regardless of original color */
  filter: grayscale(1) invert(1) brightness(0.88);
  opacity: 0.58;
  transition: opacity 0.3s ease, filter 0.35s ease, transform 0.3s ease;
}
.affils-track a:hover {
  opacity: 1;
  filter: grayscale(0.2) invert(1) brightness(1.05);
  transform: translateY(-2px);
}
.affils-track img { height: 46px; width: auto; }
@keyframes affils-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Research ────────────────────────────────────────────────────────────── */
.section-head {
  display:grid;
  grid-template-columns:1fr auto;
  align-items:flex-end;
  gap:2rem;
  padding-bottom:3rem;
  border-bottom:1px solid var(--border);
  margin-bottom:3rem;
}
.section-num {
  font-family:'Syne',sans-serif;
  font-size:0.72rem;
  font-weight:800;
  letter-spacing:0.2em;
  color:var(--text-3);
  margin-bottom:0.75rem;
}
.section-title { font-size:clamp(2.2rem,4vw,3.5rem); }
.section-head-right {
  max-width:320px;
  font-size:0.88rem;
  color:var(--text-2);
  line-height:1.7;
  text-align:right;
}

/* ── Research — Immersive Panels ─────────────────────────────────────────── */
.research-immersive {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}
#researchCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}
.research-panels {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Individual panel */
.rp {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.rp:first-child { border-top: none; }

/* Ambient glow on hover — left side for normal, right for flipped */
.rp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 25% 50%, rgba(79,195,247,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  z-index: 1;
}
.rp--flip::before {
  background: radial-gradient(ellipse 55% 70% at 75% 50%, rgba(79,195,247,0.06) 0%, transparent 70%);
}
.rp:hover::before { opacity: 1; }

/* Background image — bleeds into darkness via mask */
.rp-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.rp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.35) brightness(0.65);
  will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 85% 95% at 50% 50%, black 20%, rgba(0,0,0,0.55) 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 95% at 50% 50%, black 20%, rgba(0,0,0,0.55) 55%, transparent 100%);
  transition: opacity 0.9s ease, filter 0.9s ease;
}
.rp:hover .rp-img {
  opacity: 0.5;
  filter: saturate(0.7) brightness(0.85);
}

/* Panel with no image — subtle accent atmosphere */
.rp--no-img {
  background: radial-gradient(ellipse 50% 80% at 70% 50%, rgba(79,195,247,0.025) 0%, transparent 70%);
}

/* Content */
.rp-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}
.rp--flip .rp-body { flex-direction: row-reverse; }

/* Decorative outline number */
.rp-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(79,195,247,0.14);
  flex-shrink: 0;
  min-width: clamp(5.5rem, 12vw, 11rem);
  user-select: none;
  transition: -webkit-text-stroke-color 0.7s ease;
}
.rp:hover .rp-num { -webkit-text-stroke-color: rgba(79,195,247,0.42); }

/* Text */
.rp-content { flex: 1; max-width: clamp(320px, 42vw, 580px); min-width:0; }
.rp-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
  transition: color 0.5s ease;
}
.rp:hover .rp-content h3 { color: var(--accent); }
.rp-content p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.85;
  max-width: 460px;
}

/* ── Publications — row style ────────────────────────────────────────────── */
.pub-section { background:var(--surface); }
.pub-list { display:flex; flex-direction:column; }
.pub-row {
  display:grid;
  grid-template-columns:3rem 1fr auto;
  gap:2rem;
  padding:1.75rem 0;
  border-bottom:1px solid var(--border);
  align-items:start;
  transition:background 0.2s ease;
  cursor:default;
  margin:0 calc(-1 * var(--pad-x));
  padding-left:var(--pad-x);
  padding-right:var(--pad-x);
}
.pub-row:first-child { border-top:1px solid var(--border); }
.pub-row:hover { background:var(--surface-2); }
.pub-row-num {
  font-size:0.72rem;
  font-weight:600;
  color:var(--text-3);
  padding-top:0.2rem;
  font-family:'Syne',sans-serif;
  letter-spacing:0.05em;
}
.pub-row-body { min-width:0; }
.pub-row-body h3 {
  font-family:'Syne',sans-serif;
  font-size:clamp(0.92rem,1.5vw,1.05rem);
  font-weight:700;
  letter-spacing:-0.01em;
  line-height:1.35;
  color:var(--text-1);
  margin-bottom:0.4rem;
}
.pub-row-body p {
  font-size:0.8rem;
  color:var(--text-2);
  line-height:1.6;
}
.pub-row-meta {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:0.4rem;
  flex-shrink:0;
  padding-top:0.1rem;
}
.pub-venue-tag {
  font-size:0.65rem;
  font-weight:700;
  letter-spacing:0.12em;
  text-transform:uppercase;
  border:1px solid var(--border-2);
  border-radius:3px;
  padding:0.18em 0.55em;
  color:var(--text-2);
  white-space:nowrap;
}
.pub-badge-tag {
  font-size:0.62rem;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  border:1px solid rgba(79,195,247,0.35);
  border-radius:3px;
  padding:0.18em 0.55em;
  color:var(--accent);
  white-space:nowrap;
}
.pub-year-tag {
  font-size:0.72rem;
  color:var(--text-3);
  font-weight:500;
}
.pub-first-author-marker {
  width:2px;
  background:rgba(79,195,247,0.3);
  border-radius:2px;
  position:absolute;
  left:0; top:1.75rem; bottom:1.75rem;
}
.pub-row { position:relative; }

.pub-footer {
  display:flex;
  gap:2.5rem;
  margin-top:2.5rem;
}
.pub-footer a {
  font-size:0.82rem;
  color:var(--text-2);
  display:flex;
  align-items:center;
  gap:0.5em;
  transition:color 0.2s;
}
.pub-footer a:hover { color:var(--accent); }

/* ── Skills marquee ──────────────────────────────────────────────────────── */
.skills-section { border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.skills-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  background:var(--border);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.skill-group {
  background:var(--bg);
  padding:2.5rem;
  border:none;
}
.skill-group:nth-child(2),.skill-group:nth-child(4) { background:var(--surface); }
.skill-group-label {
  font-size:0.65rem;
  font-weight:600;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--text-3);
  margin-bottom:1.25rem;
  display:block;
}
.pill-row { display:flex; flex-wrap:wrap; gap:0.5rem; }
.pill {
  display:inline-flex;
  align-items:center;
  padding:0.35em 0.9em;
  font-size:0.78rem;
  font-weight:400;
  border-radius:2rem;
  border:1px solid var(--border-2);
  color:var(--text-2);
  background:transparent;
  transition:all 0.2s ease;
  white-space:nowrap;
}
.pill:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-dim); }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-section { overflow:hidden; }
.contact-statement {
  font-size:clamp(2.5rem,6vw,6rem);
  line-height:1.05;
  margin-bottom:clamp(2rem,4vw,3.5rem);
  max-width:900px;
}
.contact-email-link {
  display:inline-block;
  font-family:'Syne',sans-serif;
  font-size:clamp(1.1rem,2.5vw,1.6rem);
  font-weight:700;
  letter-spacing:-0.01em;
  color:var(--text-2);
  border-bottom:1px solid var(--border-2);
  padding-bottom:0.25rem;
  transition:color 0.25s ease, border-color 0.25s ease;
  margin-bottom:3rem;
}
.contact-email-link:hover { color:var(--accent); border-color:var(--accent); }
.contact-row {
  display:flex;
  align-items:center;
  gap:3rem;
  flex-wrap:wrap;
  padding-top:2.5rem;
  border-top:1px solid var(--border);
}
.contact-info { min-width:0; font-size:0.83rem; color:var(--text-2); line-height:1.8; }
.contact-info strong { color:var(--text-1); display:block; }

/* Social icons */
.social-icons { display:flex; gap:0.75rem; }
.social-icon {
  width:40px; height:40px;
  border-radius:50%;
  border:1px solid var(--border-2);
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--text-2);
  font-size:0.85rem;
  transition:all 0.2s ease;
}
.social-icon:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-dim); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top:1px solid var(--border);
  padding-top: 2.5rem;
  overflow:hidden;
}
.footer-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:1rem;
  padding-bottom:2rem;
  border-bottom:1px solid var(--border);
}
.footer-copy { font-size:0.75rem; color:var(--text-3); }
.footer-wordmark {
  font-family:'Syne',sans-serif;
  font-size:clamp(5rem,16vw,14rem);
  font-weight:800;
  letter-spacing:-0.04em;
  line-height:0.85;
  -webkit-text-stroke:1px var(--border-2);
  color:transparent;
  user-select:none;
  display:block;
  width:100%;
  padding: 1.5rem 0 0;
  transition:color 0.4s ease, -webkit-text-stroke-color 0.4s ease;
}
.footer-wordmark:hover {
  -webkit-text-stroke-color:var(--text-3);
}

/* ── About page ──────────────────────────────────────────────────────────── */
.about-hero {
  min-height:60vh;
  display:flex;
  align-items:flex-end;
  padding-top:var(--nav-h);
  border-bottom:1px solid var(--border);
  padding-bottom:clamp(3rem,5vw,5rem);
}
.about-hero-grid {
  display:grid;
  grid-template-columns:auto 1fr;
  gap:clamp(2rem,5vw,4rem);
  align-items:flex-end;
}
.about-photo {
  width:clamp(130px,15vw,180px);
  height:clamp(160px,20vw,230px);
  object-fit:cover;
  object-position:center top;
  border-radius:var(--radius);
  filter:grayscale(0.2);
  flex-shrink:0;
}
.about-hero-text h1 {
  font-size:clamp(2.5rem,6vw,5.5rem);
  margin-bottom:0.5rem;
}
.about-hero-text p { font-size:0.9rem; color:var(--text-2); max-width:420px; margin-top:0.75rem; line-height:1.7; }
.about-hero-actions { display:flex; gap:0.85rem; flex-wrap:wrap; margin-top:1.75rem; }

.about-body {
  display:grid;
  grid-template-columns:1fr 300px;
  gap:clamp(3rem,6vw,6rem);
  align-items:start;
}
.about-main { min-width:0; }
.about-sidebar {
  position:sticky;
  top:calc(var(--nav-h) + 2rem);
}

/* Timeline */
.timeline { margin-bottom:3rem; }
.tl-item {
  display:grid;
  grid-template-columns:90px 1fr;
  gap:2rem;
  padding:1.75rem 0;
  border-bottom:1px solid var(--border);
}
.tl-item:last-child { border-bottom:none; }
.tl-year { font-size:0.72rem; font-weight:600; color:var(--text-3); padding-top:0.2rem; line-height:1.5; }
.tl-body { min-width:0; }
.tl-body h4 {
  font-family:'Syne',sans-serif;
  font-size:1rem;
  font-weight:800;
  letter-spacing:-0.01em;
  color:var(--text-1);
  margin-bottom:0.25rem;
}
.tl-org { font-size:0.8rem; color:var(--accent); font-weight:500; margin-bottom:0.6rem; display:block; }
.tl-body p,.tl-body li { font-size:0.85rem; color:var(--text-2); line-height:1.65; }
.tl-body ul { list-style:disc; padding-left:1.1em; display:flex; flex-direction:column; gap:0.2rem; margin-top:0.4rem; }

/* Sidebar */
.sidebar-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.4rem;
  margin-bottom:1rem;
}
.sidebar-card-label {
  font-size:0.62rem;
  font-weight:700;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--text-3);
  margin-bottom:1rem;
  display:block;
}
.sidebar-link {
  display:flex;
  align-items:center;
  gap:0.6em;
  font-size:0.83rem;
  color:var(--text-2);
  padding:0.5rem 0;
  border-bottom:1px solid var(--border);
  transition:color 0.2s;
}
.sidebar-link:last-child { border-bottom:none; }
.sidebar-link:hover { color:var(--accent); }
.sidebar-link i { width:14px; text-align:center; font-size:0.8rem; }

/* About section subheadings */
.about-section-label {
  display:flex;
  align-items:center;
  gap:1rem;
  margin-bottom:2rem;
  padding-top:clamp(2.5rem,4vw,4rem);
}
.about-section-label::after {
  content:'';
  flex:1;
  height:1px;
  background:var(--border);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media(max-width:1024px) {
  .hero { grid-template-columns:1fr 160px; }
  .rp-body { flex-direction: column !important; align-items: flex-start; gap: 1.25rem; }
  .rp-num { font-size: clamp(3.5rem, 14vw, 6rem); min-width: auto; }
  .rp-content { max-width: 100%; }
  .about-body { grid-template-columns:1fr; }
  .about-sidebar { position:static; }
  .skills-grid { grid-template-columns:1fr; }
}
@media(max-width:768px) {
  .nav-links { display:none; }
  .nav-hamburger { display:flex; }
  .mobile-menu a { letter-spacing:0; max-width:100%; overflow-wrap:anywhere; }

  html[lang="de"] .label,
  html[lang="de"] .section-num,
  html[lang="de"] .skill-group-label,
  html[lang="de"] .sidebar-card-label {
    letter-spacing:0.12em;
  }

  /* Speed up all marquees on mobile */
  .marquee-track { animation-duration: 16s; }
  .affils-track  { animation-duration: 18s; }

  /* Hero: stack text above, videos below as a wide strip */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: unset;
  }
  .hero-left {
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: 2rem;
  }
  .hero-eyebrow { margin-bottom: 1.25rem; }
  .hero-name { font-size: clamp(2.6rem, 9vw, 4rem); }
  .hero-headline { font-size: clamp(0.9rem, 3.5vw, 1.4rem); }
  .hero-meta { margin-top: 1.5rem; padding-top: 1rem; }
  /* Video strip — side by side below the text */
  .hero-right {
    display: flex;
    flex-direction: row;
    height: clamp(320px, 55vh, 480px);
    border-top: 1px solid var(--border);
    position: relative;
  }
  /* Override desktop left-fade → mobile top-fade */
  .hero-right::before {
    left: 0; right: 0; top: 0; bottom: auto;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom, var(--bg), transparent);
  }
  /* Vertical separator between the two videos */
  .hero-video-panel:first-child {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  /* Pin video to top so face/head is always in frame */
  .hero-video-panel video {
    opacity: 0.6;
    object-position: center top;
  }
  /* Hide scroll indicator — videos are the section break now */
  .hero-scroll-hint { display: none; }

  .pub-row { grid-template-columns:2rem 1fr; }
  .pub-row-meta { display:none; }
  .section-head { grid-template-columns:1fr; }
  .section-head-right { text-align:left; max-width:100%; }
  .about-hero-grid { grid-template-columns:1fr; }
  .about-photo { display:none; }
  .footer-wordmark { font-size:clamp(3rem,14vw,7rem); }
  .contact-row { flex-direction:column; align-items:flex-start; gap:1.5rem; }
  .pub-footer { flex-direction:column; gap:0.85rem; }
  .pub-footer a { align-items:flex-start; overflow-wrap:anywhere; }

  /* Research panels — mobile */
  .rp { min-height: unset; }
  .rp-body {
    padding-top: clamp(2.5rem, 7vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 7vw, 3.5rem);
  }
  /* Taller ellipse covers portrait-oriented panels */
  .rp-img {
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 15%, rgba(0,0,0,0.5) 50%, transparent 100%);
    mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 15%, rgba(0,0,0,0.5) 50%, transparent 100%);
    opacity: 0.32;
  }
}

@media(max-width:480px) {
  .hero-name { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-meta { flex-direction:column; align-items:flex-start; gap:1rem; }
  .hero-right { height: clamp(240px, 45vh, 360px); }
  .tl-item { grid-template-columns:1fr; gap:0.5rem; }
  .btn {
    font-size:0.8rem;
    padding:0.65rem 1.1rem;
    max-width:100%;
    white-space:normal;
    justify-content:center;
    text-align:center;
  }
  .hero-actions,
  .about-hero-actions { width:100%; }
  .pill { max-width:100%; white-space:normal; }
  html[lang="de"] .hero-headline { font-size:clamp(0.85rem, 4vw, 1.08rem); }
  html[lang="de"] .contact-statement { font-size:clamp(2rem, 12vw, 3rem); }
  html[lang="de"] .mobile-menu a { font-size:clamp(1.85rem, 10vw, 2.7rem); }
}
