/* ── Reset & base ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }

:root {
  --bg:        #f9f8f6;
  --text:      #111110;
  --muted:     #78716c;
  --border:    #e7e5e2;
  --accent:    #f97316;
  --accent-dk: #ea580c;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --nav-h:     56px;
  --max-w:     860px;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ── Nav ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
  color: rgba(255,255,255,0.6);
}

.nav.scrolled {
  background: rgba(249,248,246,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
  color: var(--text);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand { font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em; transition: color 0.2s; }
.nav.scrolled .nav-brand { color: var(--accent-dk); }

.nav-links { display: flex; gap: 32px; font-size: 0.82rem; font-weight: 500; }
.nav-links a { opacity: 0.6; transition: opacity 0.15s; }
.nav-links a:hover { opacity: 1; }

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

/* Dot grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Subtle warm light leak over the grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 5% 70%, rgba(249,115,22,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(249,115,22,0.06) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 100px) 40px 130px;
}

.hero-name {
  font-size: clamp(3.6rem, 8vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  color: #fff;
  margin-bottom: 28px;
  animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) both 0.05s;
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  margin-bottom: 5px;
  animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) both 0.18s;
}

.hero-keywords {
  font-size: 0.78rem;
  color: rgba(249,115,22,0.6);
  letter-spacing: 0.07em;
  margin-bottom: 44px;
  animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) both 0.28s;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 52px;
  animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) both 0.38s;
}

.hero-stat {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.01em;
}

.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(255,255,255,0.88);
  margin-bottom: 4px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 0.8rem;
  animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) both 0.48s;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.hero-link:hover { color: rgba(255,255,255,0.75); }
.hero-link:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 3px; height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  margin: 0 16px;
}
.hero-link svg { flex-shrink: 0; }


/* ── Scroll animations ───────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Sections ────────────────────────────── */
.section, .section--alt { background: var(--bg); }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 40px;
  scroll-margin-top: var(--nav-h);
}

.section-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── About ───────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 60px;
  align-items: start;
}

.about-body {
  font-size: 1.025rem;
  line-height: 1.85;
  color: #2a2925;
}
.about-body p + p { margin-top: 1.1em; }

.about-aside { display: flex; flex-direction: column; }

.aside-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.aside-card:first-child { border-top: 1px solid var(--border); }

.aside-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: 5px;
}

.aside-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.aside-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.aside-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
  padding: 2px 8px;
  margin: 3px 3px 0 0;
}

/* ── Timeline ────────────────────────────── */
.timeline { position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1.5px;
  background: var(--border);
}

.entry {
  position: relative;
  padding: 0 0 40px 28px;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
  cursor: default;
}
.entry:last-child { padding-bottom: 0; }

.entry::before {
  content: '';
  position: absolute;
  left: -5px; top: 5px;
  width: 10px; height: 10px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
  z-index: 1;
}
.entry:hover::before {
  border-color: var(--accent);
  background: var(--accent);
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 2px;
}

.entry-title { font-weight: 600; font-size: 0.95rem; color: var(--text); }

.entry-meta {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.entry-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }

ul { list-style: none; padding: 0; }

ul li {
  font-size: 0.875rem;
  padding-left: 1em;
  position: relative;
  margin-bottom: 4px;
  color: #44413c;
  line-height: 1.55;
}
ul li:last-child { margin-bottom: 0; }
ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.58em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border);
}

/* ── Publications ────────────────────────── */
ol.publications {
  list-style: none;
  counter-reset: pub-counter;
  padding: 0;
}

ol.publications li {
  counter-increment: pub-counter;
  padding-left: 2.8em;
  position: relative;
  margin-bottom: 24px;
}
ol.publications li:last-child { margin-bottom: 0; }

ol.publications li::before {
  content: counter(pub-counter);
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-dk);
  opacity: 0.6;
  top: 3px;
  width: 2.2em;
  text-align: right;
}

.pub-title { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text); }

a.pub-title { transition: color 0.15s; }
a.pub-title:hover { color: var(--accent-dk); }

.pub-authors { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.pub-venue { display: block; font-size: 0.78rem; color: var(--muted); font-style: italic; margin-top: 1px; }
.pub-links { margin-top: 6px; }

.pub-link {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dk);
  border: 1px solid rgba(5,150,105,0.3);
  border-radius: 4px;
  padding: 1px 7px 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pub-link:hover { background: var(--accent-dk); color: #fff; border-color: var(--accent-dk); }

/* ── Footer ──────────────────────────────── */
.footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.28);
  text-align: center;
  padding: 64px 40px;
}

.footer-name { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.footer-sub { font-size: 0.82rem; margin-bottom: 20px; }

.footer-links { display: flex; justify-content: center; flex-wrap: wrap; font-size: 0.82rem; }
.footer-links a { color: rgba(255,255,255,0.28); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.72); }
.footer-links a:not(:last-child)::after { content: '·'; margin: 0 12px; opacity: 0.25; }

/* ── Print ───────────────────────────────── */
@media print {
  .nav, .hero, .footer, .about-aside { display: none; }
  .section, .section--alt { background: white !important; }
  .section-inner { padding: 20px 0; max-width: 100%; }
  .about-layout { display: block; }
  .timeline::before { display: none; }
  .entry { padding-left: 0; }
  .entry::before { display: none; }
  .reveal { opacity: 1; transform: none; }
  a { color: inherit !important; }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-aside { order: -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-inner, .section-inner { padding-left: 24px; padding-right: 24px; }
  .section-inner { padding-top: 64px; padding-bottom: 64px; }
  .hero-stats { gap: 24px; }
  .entry-header { flex-direction: column; gap: 2px; }
  .footer { padding: 48px 24px; }
}
