*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f4ef;
  --bg-dark: #0f1b2d;
  --text: #2a2520;
  --text-muted: #6b6458;
  --text-light: #9b9388;
  --text-slate: #8a9ab5;
  --accent: #b8956a;
  --accent-light: #f0e8dc;
  --accent-dark: #8a6d4a;
  --border: #e0dbd3;
  --border-dark: #1e3050;
  --navy: #0f1b2d;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --nav-h: 64px;
  --max: 900px;
  --rule: 1px solid var(--border);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.75; -webkit-font-smoothing: antialiased; }

/* -- SCROLLBAR -- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* -- NAV -- */
nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: rgba(247, 244, 239, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(2rem, 6vw);
  z-index: 200;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.1rem;
  color: var(--text); text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* ── LAYOUT ── */
.page { padding-top: var(--nav-h); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 max(2rem, 6vw); }
.section { padding: 5rem 0; }
.section + .section { border-top: var(--rule); }

/* ── TYPE ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--text); }
h2 { font-size: 2rem; margin-bottom: 0.3rem; }
.eyebrow {
  font-family: var(--mono); font-size: 1.4rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem; display: block;
}
.section-intro { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 3rem; max-width: 860px; text-align: justify;}

/* ── HERO (index) ── */
.hero {
  background: var(--navy);
  min-height: 60vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2rem) max(2rem, 6vw) 3rem;
  position: relative; overflow: hidden;
}
.hero canvas { position: absolute; inset: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; width: 100%; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 1.0rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-slate); margin-bottom: 1.5rem; display: block;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: #f7f4ef; line-height: 1.2; margin-bottom: 1rem;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-role {
  font-size: 0.95rem; color: var(--text-slate);
  margin-bottom: 2rem; line-height: 1.6; max-width: 520px; text-align: justify
}
.hero-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* -- PHOTO PLACEHOLDER -- */
.photo-wrap {
  width: 260px; height: 360px;
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem;
  color: var(--text-slate); font-size: 0.75rem;
  font-family: var(--mono); letter-spacing: 0.05em;
  text-align: center; padding: 1.5rem;
  flex-shrink: 0;
}
.photo-wrap svg { opacity: 0.4; }
.hero-inner { display: flex; gap: 4rem; align-items: flex-end; }

/* -- BUTTONS -- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.6rem 1.4rem; border-radius: 2px;
  font-size: 0.8rem; font-family: var(--sans); font-weight: 500;
  text-decoration: none; letter-spacing: 0.04em;
  transition: all 0.2s; cursor: pointer; border: 1px solid transparent;
}
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: #f7f4ef; border-color: rgba(247,244,239,0.3); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-light); }

/* -- ABOUT (index) -- */
.about-grid { display: grid; grid-template-columns: 1fr; max-width: 150%; gap: 4rem; align-items: start; }
.about-bio { font-size: 1.2rem; color: var(--text-muted); text-align: justify; }
.about-bio p + p { margin-top: 1.1rem; }
.about-photo {
  width: 220px; height: 300px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.6rem; color: var(--text-light);
  font-size: 0.72rem; font-family: var(--mono);
  letter-spacing: 0.05em; text-align: center; padding: 1rem;
  background: var(--accent-light);
}

/* INTERESTS */
.interest-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tag {
  font-family: var(--mono); font-size: 0.9rem;
  letter-spacing: 0.06em; padding: 0.35rem 0.8rem;
  border: 1.0px solid; border-radius: 1px; 
  color: var(--text-muted); background: transparent;
  transition: all 0.2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── EXTERNAL LINKS ── */
.profile-links { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 2rem; }
.profile-link {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}
.profile-link:hover { color: var(--accent); }
.profile-link-label { font-family: var(--mono); font-size: 1.0rem; letter-spacing: 0.08em; color: var(--text-light); width: 80px; flex-shrink: 0; }

/* -- RESEARCH PAGE -- */
.research-block {  font-size: 1.05rem; color: var(--text-muted); max-width: 1000px; line-height: 1.85; text-align: justify;}
.research-block h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.vertical-rule { border-left: 2px solid var(--accent); padding-left: 1.5rem; }
.instrument-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* -- PUBLICATIONS -- */
.pub-list { display: flex; flex-direction: column; gap: 0; }
.pub {
  padding: 1.75rem 0;
  border-bottom: var(--rule);
  display: grid; grid-template-columns: 60px 1fr; gap: 0 1.5rem;
}
.pub:first-child { border-top: var(--rule); }
.pub-year { font-family: Calibri; font-size: 0.975rem; color: black; padding-top: 0.25rem; }
.pub h3 { font-family:  Calibri; font-size: 0.975rem; font-weight: 500; line-height: 1.45; margin-bottom: 0.35rem; }
.pub-authors { font-family: Calibri; font-size: 0.975rem; color: black; margin-bottom: 0.6rem; }
.pub-authors strong { color: var(--text); }
.pub-venue { font-family: Calibri; font-size: 0.975rem; letter-spacing: 0.06em; color: DarkSlateGrey; margin-bottom: 0.6rem; display: block; }
.pub-links { display: flex; gap: 1rem; }
.pub-link { font-family: Calibri; font-size: 0.975rem; font-weight: 500; color: DarkSlateGrey; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.pub-link:hover { border-color: DarkSlateGrey; }

/* -- CV PAGE -- */
.cv-grid { display: grid; grid-template-columns: 80px 1fr; gap: 0 3rem; max-width: 200%; }
.cv-sidebar { border-right: var(--accent); padding-right: 4rem; }
.cv-nav { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; position: sticky; top: calc(var(--nav-h) + 2rem); }
.cv-nav a { font-size: 0.82rem; color: black; text-decoration: none; transition: color 0.2s; border-right: 8px solid transparent; padding-right: 1.5rem; }
.cv-nav a:hover { color: var(--accent); }
.cv-body { padding-left: 2.0rem; font-size: 1.0rem; color: black; }
.cv-section { margin-bottom: 3rem; }
.cv-section-title { font-family: Calibri; font-size: 1.0rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); border-bottom: var(--rule); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.cv-item { display: grid; grid-template-columns: 120px 1fr; gap: 0 1.5rem; margin-bottom: 1.25rem; font-size: 0.85rem; color: black; }
.cv-year { font-family: Calibri; font-size: 1.0rem; color: var(--text-light); padding-top: 0.2rem; }
.cv-item h3 { font-family: Calibri; font-size: 1.0rem; font-weight: 500; margin-bottom: 0.2rem; }
.cv-item p { font-size: 1.0rem; color: var(--text-muted); }

/* -- BEYOND PAGE -- */
.beyond-bio { font-size: 1.05rem; color: black; max-width: 800px; line-height: 1.85; text-align: justify; }
.beyond-bio p + p { margin-top: 1.1rem; }
.photo-theme { margin-bottom: 6rem; }
.photo-theme-title { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.4rem; }
.photo-theme-sub { font-size: 0.82rem; color: var(--text-light); font-family: var(--mono); letter-spacing: 0.06em; margin-bottom: 1.5rem; display: block; }
.photo-grid { display: grid; grid-template-columns: repeat(8, 8fr); gap: 1.8rem; row-gap: 2.8rem; }
.photo-slot {
  aspect-ratio: 4/3; background: var(--accent-light);
  border: 1px dashed var(--border); border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--text-light); font-size: 0.7rem;
  font-family: var(--mono); text-align: center; padding: 1rem;
}
.photo-slot-city { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); }

/* -- FOOTER ── */
footer {
  border-top: var(--rule); padding: 2.5rem max(2rem, 6vw);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-name { font-family: var(--serif); font-size: 0.95rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.78rem; color: var(--text-light); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { width: 100%; }
  .hero-inner { flex-direction: column; gap: 2rem; }
  .photo-wrap { width: 100%; height: 240px; }
  .cv-grid { grid-template-columns: 1fr; }
  .cv-sidebar { border-right: none; border-bottom: var(--rule); padding-right: 0; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
  .cv-nav { flex-direction: row; flex-wrap: wrap; gap: 0.75rem; position: static; }
  .pub { grid-template-columns: 1fr; }
  .pub-year { margin-bottom: 0.25rem; }
  .cv-item { grid-template-columns: 1fr; }
}