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

/* ── Tokens ── */
:root {
  --bg:     #0b0b0b;
  --bg2:    #141414;
  --border: #222;
  --text:   #e8e4db;
  --muted:  #666;
  --accent: #9abfaa;
  --tag-bg: #1c1c1c;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.15;
}

em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--accent);
}

code, pre { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container { max-width: 900px; margin: 0 auto; padding: 0 32px; }
section { padding: 100px 0; }
section + section { border-top: 1px solid var(--border); }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(11,11,11,0.85);
  backdrop-filter: blur(12px);
}

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

.nav-name { font-family: 'Playfair Display', serif; font-size: 16px; }

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

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

/* ── Hero ── */
#hero { padding-top: 160px; padding-bottom: 100px; }

.hero-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 32px;
}

.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-name {
  font-size: clamp(52px, 8vw, 88px); font-weight: 500;
  line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 20px;
}

.hero-role { font-size: 15px; color: var(--muted); margin-bottom: 32px; letter-spacing: 0.04em; }
.hero-role span { color: var(--text); }

.hero-bio { max-width: 520px; color: #999; font-size: 15px; line-height: 1.75; }

.hero-meta { display: flex; gap: 40px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }

.meta-item label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.meta-item p { font-size: 14px; }

/* ── Section shared ── */
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 14px; }

.section-heading { font-size: clamp(28px, 4vw, 40px); font-weight: 500; margin-bottom: 60px; max-width: 520px; line-height: 1.2; }

/* ── Work ── */
.work-cards { display: flex; flex-direction: column; gap: 2px; }

.work-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}

.card-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 12px; }
.card-title { font-size: 22px; font-weight: 500; margin-bottom: 14px; line-height: 1.25; font-family: 'Playfair Display', serif; }
.card-desc { font-size: 14px; color: #888; line-height: 1.7; margin-bottom: 20px; }
ul.card-desc {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; background: var(--tag-bg); border: 1px solid var(--border); border-radius: 4px; padding: 4px 10px; color: #999; }

.code-block { background: #111; border: 1px solid #1e1e1e; border-radius: 6px; overflow: hidden; }
.code-header { display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid #1e1e1e; }
.code-filename { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.code-block pre { margin: 0; padding: 20px; overflow-x: auto; background: transparent !important; }
.code-block pre code { font-size: 12px; background: transparent !important; }

/* ── Stack ── */
.stack-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }

.filter-btn {
  font-size: 12px; font-family: 'Inter', sans-serif;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); border-radius: 4px; padding: 6px 14px;
  cursor: pointer; transition: all 0.15s; letter-spacing: 0.03em;
}

.filter-btn:hover, .filter-btn.active { color: var(--text); border-color: #444; background: var(--tag-bg); }

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

.stack-item { font-size: 13px; background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; padding: 8px 14px; color: #aaa; transition: all 0.15s; }
.stack-item:hover { color: var(--text); border-color: #444; }
.stack-item.hidden { display: none; }

/* ── Contact ── */
#contact .section-heading { margin-bottom: 36px; }
.contact-links { display: flex; flex-direction: column; }

.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--muted); transition: color 0.2s;
}

.contact-link:hover { color: var(--text); }
.contact-link:hover .link-arrow { transform: translateX(4px); }
.link-label { color: var(--text); font-size: 15px; min-width: 100px; }
.link-arrow { margin-left: auto; transition: transform 0.2s; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 28px 0; }
footer .container { display: flex; justify-content: space-between; align-items: center; }
footer p { font-size: 12px; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 700px) {
  .work-card  { grid-template-columns: 1fr; }
  .hero-meta  { flex-direction: column; gap: 20px; }
  .nav-links  { display: none; }
  .container  { padding: 0 20px; }
}
