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

:root {
  --bg: #111112;
  --surface: #1a1a1c;
  --border: #2a2a2d;
  --muted: #888;
  --text: #d4d4d6;
  --heading: #f0f0f0;
  --accent: #c8c8ca;
  --tag-bg: #242426;
  --tag-text: #aaa;
  --radius: 6px;
  --max: 860px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--heading); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17,17,18,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

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

.nav-logo {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--heading); text-decoration: none; }

/* ── SECTIONS ────────────────────────────────────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* ── HERO ────────────────────────────────────────── */
#hero {
  padding-top: 100px;
  padding-bottom: 80px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-name span { color: var(--muted); }

.hero-bio {
  max-width: 540px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: none;
}

.btn-primary { background: var(--heading); color: #111; }
.btn-primary:hover { background: #fff; text-decoration: none; }

.btn-secondary {
  background: var(--tag-bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: #555; text-decoration: none; }

/* ── SECTION LABEL ───────────────────────────────── */
.section-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: var(--border);
}

/* ── PROJECTS ────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}

.project-card:hover { border-color: #444; }

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
}

.project-links {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 12px;
}

.project-links a { color: var(--muted); transition: color 0.15s; }
.project-links a:hover { color: var(--heading); text-decoration: none; }

.project-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

/* ── TAGS ────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 3px;
}

/* ── STACK ───────────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.stack-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stack-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.75;
}

.stack-name {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}

.stack-role {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

/* ── CONTACT ─────────────────────────────────────── */
.contact-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;
}

.contact-link:hover { border-color: #555; color: var(--heading); text-decoration: none; }

.contact-note {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 11px;
  color: #555;
  letter-spacing: 0.04em;
}

/* ── HAMBURGER ───────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--muted);
  margin: 4px 0;
  transition: 0.2s;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 600px) {
  .hamburger { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.open { display: flex; }

  .projects-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }

  #hero { padding-top: 60px; }
}
