:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --text: #1c2321;
  --muted: #5b6662;
  --line: #e3e6e3;
  --accent: #0f766e;
  --accent-soft: #e6f3f1;
  --radius: 14px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1413;
    --surface: #161d1b;
    --text: #e7ecea;
    --muted: #9aa6a2;
    --line: #26302d;
    --accent: #3cc2b3;
    --accent-soft: #15302c;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.nav .brand { font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.nav ul { display: flex; gap: 20px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav ul a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  border: 1px solid var(--accent);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { color: var(--accent); }
.nav .btn { padding: 7px 14px; }

@media (max-width: 760px) {
  .nav ul { display: none; }
  .nav .btn { margin-left: auto; }
}

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 240px; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; }
.hero h1 span { color: var(--muted); font-weight: 500; display: block; font-size: 0.55em; letter-spacing: -0.01em; margin-top: 8px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .photo { width: 100%; height: auto; border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: top; border: 4px solid var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.12); }

@media (max-width: 760px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero .photo { width: 140px; order: -1; }
}

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 8px; }
section .sub { color: var(--muted); margin: 0 0 32px; max-width: 680px; }

/* Impact */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-size: 32px; letter-spacing: -0.02em; color: var(--accent); line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Experience */
.job { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px dashed var(--line); }
.job:last-child { border-bottom: 0; }
.job .when { color: var(--muted); font-size: 14px; }
.job h3 { margin: 0; font-size: 18px; }
.job .org { color: var(--muted); margin: 2px 0 10px; }
.job ul { margin: 0; padding-left: 18px; }
.job li { margin: 4px 0; }
.redact { filter: blur(4px); user-select: none; cursor: help; }
.job .note { margin: 12px 0 0; color: var(--muted); font-size: 14px; font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; gap: 4px; } }

details.earlier { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
details.earlier summary { cursor: pointer; font-weight: 600; }
details.earlier ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.skill h3 { font-size: 16px; margin: 0 0 6px; }
.skill p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.card img { aspect-ratio: 5 / 3; object-fit: cover; width: 100%; }
.card .body { padding: 16px 18px 18px; }
.card h3 { font-size: 16px; margin: 0 0 6px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .projects { grid-template-columns: 1fr; } }

/* Two columns: awards / education */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li span:last-child { color: var(--muted); white-space: nowrap; font-size: 14px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 24px; } }

/* Contact */
.contact { text-align: center; }
.contact .sub { margin-left: auto; margin-right: auto; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; text-align: center; }
