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

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e5e5e5;
  --text: #171717;
  --text-muted: #525252;
  --text-dim: #737373;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-glow: rgba(37, 99, 235, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  padding: 8rem 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, #f0f4ff 0%, transparent 100%);
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.hero .title { font-size: 1.35rem; color: var(--accent); font-weight: 500; margin: 0.5rem 0 1rem; }
.hero .intro { max-width: 640px; margin: 0 auto; color: var(--text-muted); font-size: 1.1rem; }
.hero .contact-row { margin-top: 2rem; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.hero .contact-row a { color: var(--text-dim); font-size: 0.9rem; display: flex; align-items: center; gap: 0.35rem; }
.hero .contact-row a:hover { color: var(--accent); text-decoration: none; }

/* Section */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: #0f172a;
}

/* Timeline / Life Progression */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 1.5rem 0 1.5rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.timeline-years { font-weight: 600; color: var(--accent); padding-top: 0.2rem; font-size: 0.9rem; }
.timeline-content h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.25rem; }
.timeline-content p { color: var(--text-muted); margin-bottom: 0.75rem; font-size: 0.95rem; }
.timeline-content a.epoch-link { font-size: 0.85rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.3rem; }
.timeline-content a.epoch-link::after { content: '→'; }
.timeline-orgs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.org-tag { background: var(--accent-light); color: var(--accent); padding: 0.2rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.skill-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px var(--accent-glow); }
.skill-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.skill-card p { font-size: 0.85rem; color: var(--text-dim); }

/* Accomplishments */
.accomplishments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.accomp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.accomp-card .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.accomp-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.accomp-card p { color: var(--text-dim); font-size: 0.9rem; }

/* CTA */
.cta {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, #f0f4ff 100%);
}
.cta h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta p { color: var(--text-muted); max-width: 500px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta .btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25); text-decoration: none; }

/* Nav */
.site-nav { position: fixed; top: 0; left: 0; right: 0; background: rgba(250, 250, 250, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 100; }
.site-nav .inner { max-width: 960px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.site-nav .logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.site-nav .logo:hover { text-decoration: none; }
.site-nav .nav-links { display: flex; gap: 2rem; }
.site-nav .nav-links a { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; }
.site-nav .nav-links a:hover { color: var(--accent); text-decoration: none; }

/* Footer */
footer { text-align: center; padding: 3rem 0; color: var(--text-dim); font-size: 0.85rem; border-top: 1px solid var(--border); }

/* Epoch detail page */
.epoch-detail { max-width: 720px; margin: 6rem auto 4rem; }
.epoch-detail .back-link { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 2rem; display: inline-block; }
.epoch-detail h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.epoch-detail .meta { color: var(--text-dim); margin-bottom: 2rem; }
.epoch-detail .content h2 { font-size: 1.4rem; margin: 2.5rem 0 0.5rem; }
.epoch-detail .content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; }
.epoch-detail .content p { margin-bottom: 1rem; color: var(--text-muted); }
.epoch-detail .content strong { color: var(--text); }

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 5rem 0 3rem; }
  .timeline-item { grid-template-columns: 70px 1fr; gap: 1rem; padding-left: 1.5rem; }
  .timeline-years { font-size: 0.8rem; }
  .site-nav .nav-links { gap: 1rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .accomplishments { grid-template-columns: 1fr; }
}
