  .nav a.active {
  color: var(--text);
  border-left-color: var(--teal);
  }
  :root {
    --bg: #0B1220;
    --surface: #121C2E;
    --surface-raised: #16213A;
    --border: #223049;
    --text: #E8ECF3;
    --text-muted: #8A96AC;
    --text-faint: #5A6478;
    --amber: #E8A33D;
    --teal: #4FD1C5;
    --error: #F0776C;

    --font-display: 'Fraunces', serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
  }

  a { color: var(--teal); text-decoration: none; }
  a:hover { text-decoration: underline; }

  ::selection { background: var(--amber); color: var(--bg); }

  /* ---------- Layout ---------- */

  .page {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 48px 36px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .sidebar-top .name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .sidebar-top .role {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--amber);
    letter-spacing: 0.02em;
  }

  .nav {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav a {
    color: var(--text-muted);
    font-size: 14px;
    padding: 7px 0;
    border-left: 2px solid transparent;
    padding-left: 14px;
    margin-left: -14px;
  }

  .nav a:hover {
    color: var(--text);
    border-left-color: var(--teal);
    text-decoration: none;
  }

  .sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
  }

  .sidebar-bottom a { color: var(--text-muted); }
  .sidebar-bottom a:hover { color: var(--teal); }

  .content {
    padding: 64px 64px 120px;
    max-width: 760px;
  }

  section {
    margin-bottom: 88px;
    scroll-margin-top: 40px;
  }

  .section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 18px;
  }

  .section-label::before {
    content: "// ";
    color: var(--amber);
  }

  h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 20px;
  }

  .hero {
  padding-top: 40px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 14ch;
}

.hero-lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero-lede strong {
  color: var(--amber);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--bg);
}

.btn-primary:hover {
  background: #f0b158;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  text-decoration: none;
}

  /* ---------- About ---------- */

  .page-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  margin-bottom: 24px;
}

.about-lede {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 60ch;
}

.about-lede strong {
  color: var(--amber);
  font-weight: 500;
}

.about-detail {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 20px;
}

  /* ---------- Skills ---------- */

  .meta-row {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

  .skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .skill-group h3 {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--teal);
    margin-bottom: 12px;
    text-transform: lowercase;
  }

  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .skill-tag {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 4px;
  }

  .section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 20px;
}

  /* ---------- Projects ---------- */

  #statusLine {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-faint);
    flex-shrink: 0;
  }

  .dot.ok { background: var(--teal); }
  .dot.fail { background: var(--error); }

  .project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 26px;
    margin-bottom: 16px;
    transition: border-color 0.15s ease;
  }

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

  .project-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 8px;
  }

  .project-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 14px;
  }

  .project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
  }

  .project-stack span {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--amber);
    background: rgba(232, 163, 61, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
  }

  .project-link {
    font-family: var(--font-mono);
    font-size: 13px;
  }

  .empty-state {
    color: var(--text-faint);
    font-size: 14px;
    font-style: italic;
    padding: 20px 0;
  }

  /* ---------- Contact ---------- */

  form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 480px;
  }

  label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: -8px;
  }

  input, textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 11px 14px;
    color: var(--text);
    font-size: 14.5px;
    font-family: var(--font-body);
  }

  input:focus, textarea:focus {
    outline: none;
    border-color: var(--teal);
  }

  textarea { min-height: 110px; resize: vertical; }

  button {
    background: var(--amber);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    width: fit-content;
    margin-top: 4px;
  }

  button:hover { background: #f0b158; }
  button:disabled { background: var(--text-faint); cursor: not-allowed; }

  .form-result {
    font-family: var(--font-mono);
    font-size: 13px;
    min-height: 18px;
  }

  .form-result.success { color: var(--teal); }
  .form-result.error { color: var(--error); }

  footer {
    padding: 32px 64px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
  }

  /* ---------- Responsive ---------- */

  @media (max-width: 860px) {
  .page { grid-template-columns: 1fr; }

  .sidebar {
    position: relative;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-top .name { font-size: 20px; }

  .nav {
    margin-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav a {
    padding: 4px 0;
    margin-left: 0;
  }

  .sidebar-bottom {
    margin-top: 20px;
  }

  .content { padding: 40px 24px 80px; }
  .skills-grid { grid-template-columns: 1fr; }
  footer { padding: 24px; }
}