/* ── Self-hosted fonts (GDPR: no requests to Google) ── */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-var-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/inter-var-latin.woff2') format('woff2');
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #1a1a26;
  --text: #f0f0f8;
  --text-muted: #7a7a9a;
  --accent: #3b82f6;
  --accent-dim: rgba(59,130,246,0.15);
  --accent-glow: rgba(59,130,246,0.4);
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --nav-h: 68px;
  --radius: 12px;
  --radius-lg: 18px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);

  /* ── Motion language (shared so everything feels like one product) ── */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.45s;
  --dur-slow: 0.8s;

  /* ── Elevation (quiet depth, not heavy shadows) ── */
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-card: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 40px rgba(0,0,0,0.4);
  --shadow-raised: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 60px rgba(0,0,0,0.5);
}

body.light {
  --shadow-soft: 0 2px 8px rgba(15,23,42,0.08);
  --shadow-card: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 40px rgba(15,23,42,0.08);
  --shadow-raised: inset 0 1px 0 rgba(255,255,255,0.8), 0 18px 60px rgba(15,23,42,0.12);
  --border-strong: rgba(0,0,0,0.12);
}

body.light {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface2: #e8e8f0;
  --text: #0a0a14;
  --text-muted: #5a5a7a;
  --accent: #2563eb;
  --accent-dim: rgba(37,99,235,0.1);
  --accent-glow: rgba(37,99,235,0.3);
  --border: rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* Ambient depth: a soft accent aurora anchored top-center, so the page
   reads as atmosphere rather than a flat fill. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -10%, var(--accent-dim), transparent 70%),
    radial-gradient(40% 40% at 100% 100%, var(--accent-dim), transparent 70%);
  opacity: 0.7;
  transition: opacity var(--transition);
}

/* Film grain: a hallmark of premium dark interfaces. Tiny, static, cheap.
   Sits above content (pointer-events: none) so it textures the whole page. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.light::after { opacity: 0.025; mix-blend-mode: multiply; }

/* Keep all real content above the atmosphere layers. */
#root { position: relative; z-index: 2; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1), transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Layout ── */
.section {
  padding: 120px 0;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: clamp(24px, 5vw, 80px);
  padding-right: clamp(24px, 5vw, 80px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 64px;
  color: var(--text);
}

.section-title span {
  color: var(--accent);
}

/* ── Navigation ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 64px);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(10, 10, 15, 0.55);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition),
              height var(--dur-med) var(--ease-out-expo), box-shadow var(--transition);
}

#nav.scrolled {
  height: 58px;
  background: rgba(10, 10, 15, 0.8);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-soft);
}

body.light #nav {
  background: rgba(242, 242, 247, 0.55);
}

body.light #nav.scrolled {
  background: rgba(242, 242, 247, 0.85);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color var(--transition);
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-linkedin {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.nav-linkedin:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.nav-linkedin svg { width: 14px; height: 14px; flex-shrink: 0; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.theme-toggle svg { width: 16px; height: 16px; }

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

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
}

.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 500; color: var(--text-muted); }
.nav-mobile a:hover { color: var(--accent); }

/* ── Hero ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-name {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
}

/* Per-letter mask reveal: each glyph rises from behind an invisible baseline. */
.hero-letter {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: translateY(0.5em);
  clip-path: inset(0 0 -0.2em 0);
  animation: letterRise 0.9s var(--ease-out-expo) both;
}

.hero-letter.accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

@keyframes letterRise {
  from { opacity: 0; transform: translateY(0.5em); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 48px;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.9s cubic-bezier(0.4,0,0.2,1) 0.5s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-med) var(--ease-smooth),
              background var(--dur-fast) var(--ease-smooth);
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(0.4,0,0.2,1) 0.8s forwards;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px var(--accent-glow);
  background: #5b9cf9;
}

.hero-cta:active { transform: translateY(-1px); }

.hero-cta.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
}

.hero-cta.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 6px 20px var(--accent-dim);
}

.hero-cta.ghost svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  opacity: 0;
  animation: heroIn 1s cubic-bezier(0.4,0,0.2,1) 1.2s forwards;
}

.hero-scroll-dot {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── About ── */
#about-wrap {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  filter: saturate(1.02);
  transition: transform var(--dur-slow) var(--ease-out-expo),
              box-shadow var(--dur-slow) var(--ease-out-expo);
}

.about-photo-wrap:hover .about-photo {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-raised), 0 0 40px var(--accent-dim);
}

.about-photo-caption {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
}

.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 8px;
}

.about-block h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.01em;
}

.about-block p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.about-block p strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Experience ── */
.timeline {
  position: relative;
  padding-left: 36px;
  --tl-progress: 0;
}

/* Faint full-height track */
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: var(--border-strong);
}

/* Accent line that "draws" downward as you scroll through the section */
.timeline::after {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-glow));
  transform-origin: top;
  transform: scaleY(var(--tl-progress));
  box-shadow: 0 0 12px var(--accent-glow);
  will-change: transform;
}

.tl-entry {
  position: relative;
  margin-bottom: 56px;
}

.tl-entry:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -40px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.tl-dot.edu {
  background: transparent;
  border: 2px solid var(--accent);
  box-shadow: none;
}

/* Dots spring in as their entry reveals */
.reveal .tl-dot { transform: scale(0); }
.reveal.visible .tl-dot {
  transform: scale(1);
  transition: transform 0.5s var(--ease-spring) 0.15s;
}

.tl-meta {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.tl-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border: 1px solid var(--accent-dim);
  border-radius: 20px;
  background: var(--accent-dim);
  white-space: nowrap;
}

.tl-type {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.tl-role {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.tl-company {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tl-bullets li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.tl-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 10px;
}

/* ── Skills ── */
#skills-wrap {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--dur-med) var(--ease-smooth),
              box-shadow var(--dur-med) var(--ease-smooth),
              transform var(--dur-med) var(--ease-out-expo);
}

.skill-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--accent-dim), 0 0 32px var(--accent-dim);
  transform: translateY(-4px);
}

.skill-card-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), color var(--transition);
}

.skill-card:hover .skill-tag {
  border-color: rgba(59,130,246,0.3);
}

/* ── Publications ── */
.pub-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  transition: border-color var(--dur-med) var(--ease-smooth),
              box-shadow var(--dur-med) var(--ease-smooth),
              transform var(--dur-med) var(--ease-out-expo);
}

.pub-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card), 0 0 32px var(--accent-dim);
  transform: translateY(-3px);
}

.pub-card.event {
  grid-template-columns: 1fr;
  border-color: rgba(59,130,246,0.3);
  background: linear-gradient(135deg, var(--surface), var(--accent-dim));
}

.pub-venue {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.pub-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.pub-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pub-year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 6px 14px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}
.pub-link:hover { background: var(--accent); color: #fff; }

/* ── Contact ── */
#contact-wrap {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform 0.2s, box-shadow 0.2s;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-dim);
}

.contact-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.contact-link.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.contact-link.primary:hover {
  background: #5b9cf9;
  border-color: #5b9cf9;
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(24px,5vw,80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
  padding: 0;
}

.footer-link:hover { color: var(--accent); }

/* ── Impressum Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFade 0.25s ease forwards;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition);
}

.modal-close:hover { color: var(--accent); border-color: var(--accent); }

.modal-title {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.imp-block { margin-bottom: 24px; }
.imp-block:last-child { margin-bottom: 0; }

.imp-block h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
}

.imp-block p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.imp-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-wrap { position: static; max-width: 280px; }
  .nav-links { display: none; }
  .nav-linkedin { display: none; }
  .nav-hamburger { display: flex; }
  .pub-card { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section-title { margin-bottom: 40px; }
  .timeline { padding-left: 24px; }
  .tl-dot { left: -28px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-name,
  .hero-letter,
  .hero-tagline,
  .hero-cta,
  .hero-scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-scroll-dot { animation: none; }
  .modal-overlay { animation: none; opacity: 1; }

  /* Timeline: show the full line, no spring on dots */
  .timeline::after { transform: scaleY(1); }
  .reveal .tl-dot,
  .reveal.visible .tl-dot { transform: scale(1); transition: none; }

  .hero-cta:hover,
  .contact-link:hover,
  .skill-card:hover,
  .pub-card:hover,
  .about-photo-wrap:hover .about-photo {
    transform: none;
  }
}
