:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #18181b;
  --border: #26262b;
  --text: #ededef;
  --muted: #8b8b94;
  --accent: #7c9cff;
  --accent-2: #a78bfa;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1040px, 100% - 3rem); margin-inline: auto; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(10,10,11,.7);
  border-bottom: 1px solid rgba(38,38,43,.6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 1.2rem; }
.logo span { color: var(--accent); }
.nav nav { display: flex; gap: 1.75rem; }
.nav nav a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: clamp(4rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem); }
.portrait {
  display: block;
  width: 88px; height: 88px; max-width: none;
  object-fit: cover; object-position: 55% 30%;
  border-radius: 50%; border: 1px solid var(--border);
  margin: 0 0 1.75rem;
}
.eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: var(--muted);
  margin: 0 0 1.5rem;
}
h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.5rem); line-height: 1.08; letter-spacing: -.035em;
  margin: 0 0 1.5rem; font-weight: 700;
}
.muted { color: var(--muted); }
.lead { max-width: 600px; font-size: 1.15rem; color: var(--muted); margin: 0 0 2.25rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 10px; font-weight: 500; font-size: .95rem;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: transform .15s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); border-color: #3a3a42; }
.btn.primary {
  background: var(--text); color: #0a0a0b; border-color: var(--text);
}
.btn.primary:hover { background: #fff; }
.btn.ghost { background: transparent; }
.btn.large { padding: .95rem 1.6rem; font-size: 1.05rem; white-space: nowrap; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Sections */
.section { padding: 4rem 0; }
.section-head { display: flex; align-items: baseline; gap: .9rem; margin-bottom: 1.75rem; }
.section-head .mono { color: var(--accent); font-size: .9rem; }
h2 { font-size: 1.8rem; letter-spacing: -.02em; margin: 0; }
h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.01em; }

.card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  transition: border-color .25s;
}
.card:hover { border-color: #34343b; }

.project-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.app-icon {
  width: 64px; height: 64px; max-width: none; border-radius: 22%; object-fit: cover;
  border: 1px solid var(--border);
}
.project-sub { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.project-main > p { color: var(--muted); max-width: 640px; margin: 0 0 1.75rem; }

.connect { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.connect p { color: var(--muted); margin: .5rem 0 0; max-width: 460px; }

/* Footer */
.footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 2.5rem 0 3rem; margin-top: 2rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .875rem;
}
.footer p { margin: 0; }

@media (max-width: 640px) {
  .connect { flex-direction: column; align-items: stretch; }
  .btn.large { justify-content: center; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .nav nav { gap: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

