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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #e8e8e8;
  --text-muted: #666;
  --text-dim: #444;
  --accent: #e8e8e8;
  --tag-bg: #1a1a1a;
  --tag-text: #888;
  --green: #4ade80;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
p { color: var(--text-muted); line-height: 1.75; }

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.nav-brand:hover { color: var(--text); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-inner { max-width: 620px; }

.location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50% { opacity: 0.5; box-shadow: 0 0 3px var(--green); }
}

h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 12px;
}

.tagline {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.bio {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.75;
}

.links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.links a {
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.links a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

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

.section:last-of-type { border-bottom: none; }

.label {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }

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

.stack-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--tag-text);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 9px;
  letter-spacing: 0.02em;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.project-row:first-child { border-top: 1px solid var(--border); }

.project-row:hover .proj-name { color: #fff; }
.project-row:hover .proj-arrow { opacity: 1; transform: translate(2px, -2px); }

.proj-left { min-width: 0; }

.proj-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}

.proj-arrow {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}

.proj-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 10px;
}

.proj-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.proj-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.proj-tag::before { content: '#'; }

.proj-right {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}

.proj-link {
  font-size: 12px;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.proj-link:hover { color: var(--text); border-color: var(--border-hover); }

.contact-inner { text-align: left; }

.contact-inner h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 10px;
  margin-top: 8px;
}

.contact-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 400px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-email {
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.contact-email:hover { color: #fff; }

.contact-links a:not(.contact-email) {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.15s;
}
.contact-links a:not(.contact-email):hover { color: var(--text); }

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  position: relative;
  z-index: 1;
}

footer p {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  nav { padding: 0 16px; }
  main { padding: 0 16px; }
  footer { padding: 24px 16px 28px; }
  .hero { padding: 110px 0 64px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .project-row { grid-template-columns: 1fr; }
  .proj-right { margin-top: 4px; }
  .nav-links { gap: 18px; }
}

.proj-badge {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
  flex-shrink: 0;
}

.badge-live {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.badge-wip {
  background: rgba(250, 199, 117, 0.08);
  color: #888;
  border: 1px solid rgba(255,255,255,0.08);
}

.proj-status-note {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: #3a3a3a;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.badge-complete {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.08);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.15);
  white-space: nowrap;
}

.badge-concept {
  background: rgba(129, 140, 248, 0.08);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.18);
}

.proj-name { flex-wrap: wrap; }
.proj-status-note { color: #555; }

.proj-summary {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* hero stats */
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-stats span {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* stack groups */
.stack-list { flex-direction: column; gap: 14px; }
.stack-group { display: flex; flex-direction: column; gap: 6px; }
.stack-cat {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
}
.stack-items { display: flex; flex-wrap: wrap; gap: 6px; }

/* project filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-btn {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.filter-btn span { color: var(--text-dim); margin-left: 4px; }
.filter-btn:hover { color: var(--text); border-color: var(--border-hover); }
.filter-btn.active { color: #0a0a0a; background: var(--text); border-color: var(--text); }
.filter-btn.active span { color: #444; }

/* experience */
.exp-item { padding: 4px 0 8px; }
.exp-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 10px;
}
.exp-role { font-size: 15px; font-weight: 500; color: var(--text); }
.exp-meta, .cert-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}
.exp-points { padding-left: 18px; }
.exp-points li {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* achievements / certs */
.plain-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plain-list li { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
#achievements-list li::before { content: '→ '; color: var(--green); }
.cert-list li, .edu { display: flex; flex-direction: column; }
.cert-name { font-size: 13.5px; color: var(--text); }
.label-spaced { margin-top: 40px; margin-bottom: 16px; }

@media (max-width: 640px) {
  .nav-links a[href="#experience"] { display: none; }
  .hero-stats { gap: 24px; }
}
