:root {
  --bg: #f4f1eb;
  --bg2: #ebe7df;
  --bg3: #e0dbd1;
  --text: #1a1a18;
  --text2: #3a3a35;
  --text3: #6b6b63;
  --accent: #2d6a4f;
  --amber: #b5451b;
  --border: #c8c3b8;
  --border2: #b0aa9e;
  --mono: 'Share Tech Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
  --scanline: rgba(0,0,0,0.03);
  --cursor-color: #2d6a4f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f0c;
    --bg2: #131510;
    --bg3: #1a1d17;
    --text: #d4e8c2;
    --text2: #a8c490;
    --text3: #6b8a58;
    --accent: #52b788;
    --amber: #e07a3a;
    --border: #2a3025;
    --border2: #3a4535;
    --scanline: rgba(0,255,100,0.015);
    --cursor-color: #52b788;
  }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; min-height: 100vh; overflow-x: hidden; }
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, var(--scanline) 2px, var(--scanline) 4px);
  pointer-events: none; z-index: 100; opacity: 0.4;
}

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 900px; margin: 0 auto; padding: 0 2rem; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.05em; text-decoration: none; }
.nav-logo span { color: var(--text3); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-family: var(--mono); font-size: 12px; color: var(--text3); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* CONTAINER */
.container { max-width: 900px; margin: 0 auto; padding: 0 2rem; }

/* SECTIONS */
section { padding: 60px 0; border-top: 1px solid var(--border); }
.section-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.5rem; }
.section-num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; flex-shrink: 0; }
.section-title { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.section-line { flex: 1; height: 1px; background: var(--border); }

/* STATUS BADGES */
.project-status { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; color: var(--text3); padding: 4px 10px; border: 1px solid var(--border); border-radius: 3px; }
.project-status .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: pulse 2s ease-in-out infinite; }
.project-status.active .pulse { background: var(--accent); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } }

/* TAGS */
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--text3); padding: 3px 10px; border: 1px solid var(--border); border-radius: 3px; letter-spacing: 0.04em; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner { max-width: 900px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.footer-left, .footer-right { font-family: var(--mono); font-size: 11px; color: var(--text3); }

/* CURSOR */
.cursor { display: inline-block; width: 9px; height: 16px; background: var(--cursor-color); animation: blink 1.1s step-end infinite; vertical-align: middle; margin-left: 2px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(16px); animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.2s; }

@media (max-width: 540px) {
  .nav-links { gap: 1rem; }
}
