:root {
  --bg: #0a0a0a;
  --bg-elev: #131313;
  --surface: #1a1a1a;
  --line: rgba(236, 232, 220, 0.08);
  --line-strong: rgba(236, 232, 220, 0.16);
  --text: #ECE8DC;
  --text-dim: #8A857B;
  --text-faint: #4F4B43;
  --accent: #FF6B35;
  --accent-glow: rgba(255, 107, 53, 0.35);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- NAV ---------- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  backdrop-filter: blur(12px);
  background: rgba(10,10,10,0.7);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}
.logo-mark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  width: 30px;
  height: 30px;
}
.logo-mark span { background: var(--text); border-radius: 1px; }
.logo-mark span:nth-child(5) { background: var(--accent); }
.logo b { font-weight: 500; }
.logo i { font-style: normal; color: var(--text-dim); }

nav.top .links {
  display: flex;
  gap: 36px;
  align-items: center;
}
nav.top .links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
nav.top .links a:hover { color: var(--text); }
nav.top .links a.cta {
  color: var(--text);
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 0.25s ease;
}
nav.top .links a.cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
@media (max-width: 720px) {
  nav.top { padding: 16px 20px; }
  nav.top .links a:not(.cta) { display: none; }
}

/* ---------- PROJECT PAGE ---------- */
.project-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}
.project-page .hero {
  margin-bottom: 56px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.back:hover { color: var(--accent); }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 24px;
}
.project-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.project-page h1 em { font-style: italic; color: var(--accent); }
.lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  color: var(--text);
  max-width: 36ch;
  margin-bottom: 28px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn.primary:hover {
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-1px);
}
.btn.ghost:hover { border-color: var(--text); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- SCREENSHOT ---------- */
.shot {
  margin: 56px 0 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.shot a { display: block; }
.shot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shot a:hover img { transform: scale(1.01); }

/* ---------- PROSE ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 56px 0 18px;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 18px;
}
.prose p:last-child { margin-bottom: 0; }
.prose .stack {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prose .stack li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 16px;
}
.prose .stack li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 56px;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 60px 32px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
footer .socials { display: flex; gap: 22px; }
footer .socials a {
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
footer .socials a:hover { color: var(--accent); }
