:root {
    --bg: #0e0e0e;
    --bg2: #281c35;
    --bg3: #632a50;
    --text: #e8e4dc;
    --muted: #7a756b;
    --accent: #C2E812;
    --accent2: #91F5AD;
    --border: #8b9eb7;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'DM Sans', sans-serif;
    --serif: 'Libre Baskerville', serif;
  }

  * { 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: 300;
    line-height: 1.7;
    font-size: 16px;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: rgba(14,14,14,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }

  .nav-logo {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-decoration: none;
  }

  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }

  .nav-links a {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--text); }

  /* SECTIONS */
  section {
    padding: 6rem 2.5rem;
    max-width: 860px;
    margin: 0 auto;
  }

  /* HERO */
  #hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
    max-width: 900px;
  }

  .hero-tag {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-tag::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--accent);
  }

  h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.8rem;
    color: var(--text);
  }

  h1 em {
    font-style: italic;
    color: var(--accent2);
  }

  .hero-sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
  }

  .hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .btn {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.2s;
    cursor: pointer;
    display: inline-block;
  }

  .btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .btn-primary {
    background: var(--accent);
    color: #0e0e0e;
    border-color: var(--accent);
    font-weight: 500;
  }

  .btn-primary:hover {
    background: #b5e060;
    color: #0e0e0e;
  }

  /* SECTION LABELS */
  .section-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text);
  }

  /* PROJECTS */
  .projects-grid {
    display: grid;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }

  .project-card {
    background: var(--bg);
    padding: 2rem;
    transition: background 0.2s;
    cursor: default;
  }

  .project-card:hover { background: var(--bg2); }

  .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
  }

  .project-name {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.03em;
  }

  .project-links {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
  }

  .project-links a {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
  }

  .project-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
  }

  .project-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }

  .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tag {
    font-family: var(--mono);
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid var(--border);
    color: var(--muted);
    letter-spacing: 0.04em;
  }

  .tag-highlight {
    border-color: var(--accent2);
    color: var(--accent2);
  }

  /* ABOUT */
  #about .about-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .about-text p {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.8;
  }

  .about-text p strong {
    color: var(--text);
    font-weight: 500;
  }

  .about-aside {
    border-left: 1px solid var(--border);
    padding-left: 2rem;
  }

  .aside-block {
    margin-bottom: 2rem;
  }

  .aside-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
  }

  .aside-items {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .aside-item {
    font-size: 13px;
    color: var(--text);
    font-family: var(--mono);
  }

  /* SKILLS */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }

  .skill-group {
    background: var(--bg);
    padding: 1.5rem;
  }

  .skill-group-title {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .skill-list li {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
  }

  .skill-list li::before {
    content: '— ';
    color: var(--border);
  }

  /* CONTACT */
  #contact {
    text-align: center;
  }

  #contact .contact-inner {
    max-width: 560px;
    margin: 0 auto;
  }

  #contact h2 { margin-bottom: 1rem; }

  #contact p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 2.5rem;
  }

  .contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  /* FOOTER */
  footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  footer p {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
  }

  /* DIVIDER */
  .divider {
    height: 1px;
    background: var(--border);
    max-width: 860px;
    margin: 0 auto;
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-tag, h1, .hero-sub, .hero-ctas {
    animation: fadeUp 0.7s ease both;
  }

  .hero-tag { animation-delay: 0.1s; }
  h1 { animation-delay: 0.2s; }
  .hero-sub { animation-delay: 0.3s; }
  .hero-ctas { animation-delay: 0.4s; }

  /* RESPONSIVE */
  @media (max-width: 640px) {
    nav { padding: 1rem 1.25rem; }
    .nav-links { display: none; }
    section { padding: 4rem 1.25rem; }
    #hero { padding-top: 6rem; }
    #about .about-body { grid-template-columns: 1fr; }
    .about-aside { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 2rem; }
    footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  }