:root {
  --bg: #0e1116;
  --bg-2: #151a21;
  --card: #1a2029;
  --line: #2a323e;
  --text: #e6e9ee;
  --muted: #9aa4b2;
  --accent: #3ddc84;
  --accent-dim: rgba(61, 220, 132, 0.12);
  --radius: 10px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: flex-end; height: 60px; }
.brand { font-family: var(--mono); font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 10px; letter-spacing: 0.08em; }
.brand:hover { text-decoration: none; }
.led {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 2px var(--accent);
}
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav ul a { color: var(--muted); }
.nav ul a:hover { color: var(--text); text-decoration: none; }
.nav ul a.nav-cta { color: var(--accent); }

/* Hero */
.hero { padding: 96px 24px 72px; }
.eyebrow { color: var(--accent); font-size: 14px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.05; margin: 0 0 22px; font-weight: 700; letter-spacing: -0.02em; }
.cred { color: var(--muted); font-weight: 500; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 680px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: 15px;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #062312; }
.btn.primary:hover { background: #5be79a; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 64px 0 0; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stats div { background: var(--bg-2); padding: 22px 20px; }
.stats dt { font-family: var(--mono); font-size: 32px; color: var(--accent); font-weight: 500; }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Sections */
.section { padding: 72px 24px; border-top: 1px solid var(--line); }
.section-title { font-size: 28px; margin: 0 0 32px; font-weight: 600; display: flex; align-items: baseline; gap: 14px; }
.section-title .mono { font-size: 14px; color: var(--accent); font-weight: 400; }
.subhead { color: var(--muted); font-size: 15px; font-weight: 400; margin: 48px 0 20px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; color: var(--muted); }
.about-grid p { margin: 0; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 14px; font-size: 17px; font-weight: 600; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--mono); font-size: 12.5px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px;
}

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.project.feature { grid-column: 1 / -1; flex-direction: row; }
.project.feature .photo { width: 45%; aspect-ratio: auto; min-height: 260px; }
.project.feature .project-body { flex: 1; }
.photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); }
.photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.025) 14px 15px),
    var(--bg-2);
  border-bottom: 1px dashed var(--line);
}
.photo.placeholder span { font-family: var(--mono); font-size: 12px; color: var(--muted); opacity: .7; }
.project-body { padding: 22px 24px 24px; }
.project .tag { font-size: 12px; color: var(--accent); margin: 0 0 8px; }
.project h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.project p, .project li { color: var(--muted); font-size: 15.5px; }
.project p { margin: 0 0 10px; }
.project p:last-child { margin-bottom: 0; }
.project ul { margin: 0; padding-left: 18px; }
.project li { margin-bottom: 6px; }
.project strong { color: var(--text); font-weight: 500; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 190px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline > li:first-child { padding-top: 0; }
.timeline > li:last-child { border-bottom: 0; }
.when { color: var(--accent); font-size: 13.5px; padding-top: 4px; }
.what h3 { margin: 0 0 12px; font-size: 19px; font-weight: 600; }
.at { color: var(--muted); font-weight: 400; }
.what ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.what li { margin-bottom: 7px; }
.what strong { color: var(--text); font-weight: 500; }

/* Certs */
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cert h3 { margin: 0 0 6px; font-size: 15px; font-family: var(--mono); font-weight: 500; color: var(--accent); }
.cert p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.edu { margin: 28px 0 0; color: var(--muted); }
.edu strong { color: var(--text); font-weight: 500; }

/* Contact */
.contact .lede { margin-bottom: 24px; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { padding: 32px 24px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav ul li:not(:last-child) { display: none; }
  .hero { padding-top: 64px; }
  .about-grid, .projects-grid, .skills-grid { grid-template-columns: 1fr; }
  .project.feature { flex-direction: column; }
  .project.feature .photo { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .timeline > li { grid-template-columns: 1fr; gap: 8px; }
}

/* Print: clean light resume */
@media print {
  :root { --bg: #fff; --bg-2: #fff; --card: #fff; --line: #ddd; --text: #111; --muted: #333; --accent: #0a7a3e; }
  body { font-size: 11pt; }
  .site-header, .hero-actions, .photo, .contact-links .btn:not(.primary), .site-footer { display: none !important; }
  .hero { padding: 0 0 12px; }
  .stats { margin-top: 16px; }
  .section { padding: 18px 0; break-inside: avoid-page; }
  .btn.primary { background: none; color: var(--text); border: 0; padding: 0; }
  .project, .card, .cert { break-inside: avoid; }
}
