:root {
  --bg: #0b0d10;
  --bg-raised: #12151a;
  --border: #23272e;
  --text: #eef1f4;
  --text-dim: #9aa3ad;
  --accent: #6ee7b7;
  --accent-dim: #3a5f52;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --display: 'Space Grotesk', ui-sans-serif, sans-serif;
  --body: 'Inter', ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-mark .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.nav-links a { color: var(--text-dim); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* Hero */

.hero { padding: 96px 0 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 20px;
}

.accent { color: var(--accent); }

.hero-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
}

.btn:hover { border-color: var(--text-dim); }

.btn-primary {
  background: var(--accent);
  color: #0b0d10;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover { background: #85f0c2; border-color: #85f0c2; }

.hero-photo {
  position: relative;
  justify-self: center;
}

.hero-photo img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  filter: blur(20px);
  opacity: 0.6;
  z-index: 0;
}

/* Sections */

section { padding: 72px 0; border-top: 1px solid var(--border); }

.section-head { max-width: 60ch; margin-bottom: 48px; }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.section-lede { color: var(--text-dim); margin: 0; }

/* Timeline */

.timeline-item {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.timeline-item:first-child { border-top: none; }

.when-role { font-weight: 600; margin: 0 0 2px; }
.when-org { font-family: var(--display); font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
.when-date { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); margin: 0; }

.timeline-body {
  margin: 0;
  color: var(--text-dim);
}

/* Feature rows */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.feature-row:first-of-type { border-top: none; padding-top: 0; }

.feature-row.reverse .feature-copy { order: 2; }

.feature-index {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 10px;
}

.feature-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.feature-body { color: var(--text-dim); margin: 0 0 16px; }

.feature-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.feature-shot img {
  border-radius: 12px;
  border: 1px solid var(--border);
}

.feature-shot-plain { display: flex; }

.stat-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  width: 100%;
  text-align: center;
}

.stat-card-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-card-label { color: var(--text-dim); font-size: 0.9rem; }

/* Skills / privacy-style band */

.privacy-band, .edu-band {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: 40px;
}

.skill-group { margin-bottom: 22px; }
.skill-group:last-child { margin-bottom: 0; }

.skill-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.chip {
  font-family: var(--mono);
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--text);
}

.edu-sub { font-family: var(--mono); color: var(--accent); font-size: 0.9rem; margin: 0 0 12px; }
.edu-detail { color: var(--text-dim); margin: 0; max-width: 60ch; }

/* Footer */

footer#contact { padding-bottom: 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-sub { color: var(--text-dim); max-width: 44ch; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.9rem;
  justify-content: center;
}

.footer-links a { color: var(--text-dim); transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 220px; margin: 0 auto; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .feature-row, .feature-row.reverse .feature-copy { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy { order: 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
