/* ── Design tokens ─────────────────────────────────────── */
:root {
  --bg:         #0f0f0f;
  --bg-card:    #151515;
  --bg-card-h:  #1a1a1a;
  --border:     #232323;
  --border-h:   #3a3a3a;
  --text:       #efefef;
  --text-muted: #888;
  --text-faint: #555;
  --accent:     #e8e8e8;   /* off-white accent — hero cards, active link */
  --gold:       #c8a96e;   /* warm accent for overline / labels */
  --radius:     7px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background 0.15s;
}

.nav-toggle:hover span { background: var(--text); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-decoration: none;
}

.btn:hover {
  border-color: #666;
  color: var(--text);
}

.btn--filled {
  background: var(--text);
  color: #111;
  border-color: var(--text);
}

.btn--filled:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}

/* ── Hero (home) ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(60px + 5rem) 2rem 5rem;
  max-width: 860px;
  margin: 0 auto;
}

.hero-overline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
}

/* ── Hero cards ──────────────────────────────────────── */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 3rem;
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.12s;
}

.hero-card:hover {
  border-color: var(--border-h);
  color: var(--text);
  background: var(--bg-card-h);
  transform: translateY(-2px);
}

/* ── CTA strip ───────────────────────────────────────── */
.cta-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.cta-strip p {
  font-size: 0.875rem;
  color: var(--text-faint);
}

/* ── Social links ────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
}

.social-links a {
  font-size: 1.1rem;
  color: var(--text-faint);
  transition: color 0.15s, transform 0.12s;
  line-height: 1;
}

.social-links a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

/* ── Page hero (inner pages) ─────────────────────────── */
.page-hero {
  padding: calc(60px + 5rem) 2rem 4rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero-sub {
  font-size: 0.875rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.page-hero-bio {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 2rem;
}

/* ── Projects grid ───────────────────────────────────── */
.section {
  max-width: 980px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s;
}

.project-card:hover {
  border-color: var(--border-h);
}

.project-card h3 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
  }

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

  .nav-links a {
    padding: 0.65rem 0.5rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a { border-bottom: none; }

  .hero-cards {
    grid-template-columns: 1fr 1fr;
  }

  .cta-strip {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 420px) {
  .hero-cards {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.2rem;
  }
}
