:root {
    --pine:     #1a3a2a;
    --forest:   #2d6a4f;
    --fern:     #40916c;
    --sage:     #74c69d;
    --mist:     #b7e4c7;
    --snow:     #f0f7f2;
    --rock:     #3d3d3d;
    --obsidian: #0f1a14;
    --gold:     #c9a84c;
    --cream:    #fdf8ef;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--obsidian);
    color: var(--snow);
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
  }

  /* ── NOISE OVERLAY ── */
  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 999;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 3rem;
    background: linear-gradient(to bottom, rgba(15,26,20,0.95), transparent);
    backdrop-filter: blur(4px);
  }
  .nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--sage);
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--mist);
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
  }
  .nav-links a:hover { opacity: 1; color: var(--sage); }

  /* ── HERO ── */
  #hero {
    position: relative;
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 3rem 5rem;
    overflow: hidden;
  }

  /* SVG Eiger mountain silhouette */
  .mountain-bg {
    position: absolute; bottom: 0; left: 0; right: 0;
    width: 100%; height: 85%;
    opacity: 0.18;
  }

  .sky-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 40% 20%, #1a4a30 0%, #0d2018 45%, var(--obsidian) 100%);
  }

  /* Stars */
  .stars {
    position: absolute; inset: 0;
    background-image:
      radial-gradient(1px 1px at 10% 15%, #fff 0%, transparent 100%),
      radial-gradient(1px 1px at 25% 8%, #fff 0%, transparent 100%),
      radial-gradient(1.5px 1.5px at 40% 20%, rgba(180,255,200,0.9) 0%, transparent 100%),
      radial-gradient(1px 1px at 55% 5%, #fff 0%, transparent 100%),
      radial-gradient(1px 1px at 70% 12%, rgba(255,255,255,0.7) 0%, transparent 100%),
      radial-gradient(1px 1px at 80% 25%, #fff 0%, transparent 100%),
      radial-gradient(1px 1px at 90% 7%, rgba(180,255,200,0.8) 0%, transparent 100%),
      radial-gradient(1px 1px at 15% 35%, rgba(255,255,255,0.5) 0%, transparent 100%),
      radial-gradient(1px 1px at 62% 30%, #fff 0%, transparent 100%),
      radial-gradient(1px 1px at 85% 40%, rgba(255,255,255,0.6) 0%, transparent 100%),
      radial-gradient(1px 1px at 33% 45%, rgba(180,255,200,0.4) 0%, transparent 100%);
  }

  .hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--fern);
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    display: flex; align-items: center; gap: 1rem;
    animation: fadeUp 0.8s ease both;
  }
  .hero-tag::before {
    content: '';
    display: block; width: 2.5rem; height: 1px;
    background: var(--fern);
  }

  h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    position: relative;
    animation: fadeUp 0.9s 0.1s ease both;
  }
  h1 .name-accent { color: var(--sage); font-style: italic; }

  .hero-sub {
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 300;
    color: var(--mist);
    opacity: 0.65;
    max-width: 38ch;
    line-height: 1.7;
    position: relative;
    animation: fadeUp 1s 0.2s ease both;
  }

  .hero-chips {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
    margin-top: 2rem;
    position: relative;
    animation: fadeUp 1s 0.35s ease both;
  }
  .chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(116,198,157,0.3);
    border-radius: 2px;
    color: var(--sage);
    background: rgba(45,106,79,0.12);
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s;
  }
  .chip:hover { background: rgba(45,106,79,0.3); border-color: var(--sage); }

  .scroll-hint {
    position: absolute; bottom: 2.5rem; right: 3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--fern);
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    display: flex; align-items: center; gap: 0.8rem;
    animation: pulse 2.5s ease-in-out infinite;
  }
  .scroll-hint::after { content: ''; display: block; width: 1px; height: 3rem; background: var(--fern); }

  /* ── SECTIONS ── */
  section { padding: 6rem 3rem; }

  .section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    color: var(--fern);
    text-transform: uppercase;
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 3rem;
  }
  .section-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, var(--pine), transparent); }

  h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: var(--snow);
    margin-bottom: 1rem;
  }

  /* ── ABOUT ── */
  #about {
    background: linear-gradient(135deg, #0f1f18 0%, #0d1a12 100%);
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
  }
  .about-text p {
    color: var(--mist); opacity: 0.75; line-height: 1.8; margin-bottom: 1.2rem; font-size: 0.97rem;
  }
  .about-text strong { color: var(--sage); font-weight: 600; }

  /* Minecraft pixel art block */
  .pixel-art {
    display: grid; grid-template-columns: repeat(8,1fr); gap: 3px;
    max-width: 280px; margin-left: auto;
  }
  .px { aspect-ratio: 1; border-radius: 2px; }

  /* ── PROJECTS ── */
  #projects { background: var(--obsidian); }
  .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; margin-top: 3rem; }
  .project-card {
    background: linear-gradient(135deg, #162618, #0f1f18);
    border: 1px solid rgba(64,145,108,0.15);
    border-radius: 4px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative; overflow: hidden;
  }
  .project-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(64,145,108,0.05), transparent);
    opacity: 0; transition: opacity 0.3s;
  }
  .project-card:hover { transform: translateY(-4px); border-color: rgba(64,145,108,0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
  .project-card:hover::before { opacity: 1; }

  .project-icon {
    font-size: 2rem; margin-bottom: 1.2rem; display: block;
  }
  .project-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem; color: var(--snow); margin-bottom: 0.5rem;
  }
  .project-card p { color: var(--mist); opacity: 0.65; font-size: 0.88rem; line-height: 1.7; }
  .project-tech {
    display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.2rem;
  }
  .tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    background: rgba(45,106,79,0.2);
    border: 1px solid rgba(64,145,108,0.25);
    border-radius: 2px;
    color: var(--sage);
  }

  /* ── EIGER SECTION ── */
  #eiger {
    background: linear-gradient(to bottom, #0f1f18, #0a1a10);
    text-align: center;
    position: relative; overflow: hidden;
  }
  #eiger h2 { font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: 1.5rem; }
  #eiger p { color: var(--mist); opacity: 0.6; max-width: 55ch; margin: 0 auto 2rem; line-height: 1.8; }

  .eiger-mountain {
    width: 100%; max-width: 700px;
    margin: 3rem auto 0;
    opacity: 0.55;
    display: block;
  }

  /* ── HOBBIES ── */
  #hobbies { background: #0b1a11; }
  .hobbies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; margin-top: 3rem; }
  .hobby-card {
    border: 1px solid rgba(64,145,108,0.12);
    background: rgba(22,38,24,0.6);
    padding: 2rem 1.5rem;
    border-radius: 3px;
    transition: transform 0.3s, border-color 0.3s;
    text-align: center;
  }
  .hobby-card:hover { transform: translateY(-3px); border-color: rgba(64,145,108,0.35); }
  .hobby-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
  .hobby-card h3 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--snow); margin-bottom: 0.5rem; }
  .hobby-card p { font-size: 0.82rem; color: var(--mist); opacity: 0.6; line-height: 1.6; }

  /* ── SKILLS BAR ── */
  #skills { background: var(--obsidian); }
  .skills-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.2rem; max-width: 600px; }
  .skill-row { display: flex; flex-direction: column; gap: 0.4rem; }
  .skill-label {
    display: flex; justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; letter-spacing: 0.1em; color: var(--sage);
  }
  .skill-bar { height: 3px; background: rgba(64,145,108,0.15); border-radius: 2px; overflow: hidden; }
  .skill-fill { height: 100%; background: linear-gradient(to right, var(--forest), var(--sage)); border-radius: 2px; transform-origin: left; animation: growBar 1.2s ease both; }

  /* ── FOOTER ── */
  footer {
    background: var(--pine);
    padding: 3rem;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(64,145,108,0.15);
  }
  footer .footer-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem; color: var(--sage);
  }
  footer p { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--mist); opacity: 0.4; letter-spacing: 0.1em; }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes pulse {
    0%,100% { opacity: 0.5; } 50% { opacity: 1; }
  }
  @keyframes growBar {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }

  @media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    #hero { padding: 0 1.5rem 4rem; }
    #about { grid-template-columns: 1fr; gap: 3rem; }
    .pixel-art { margin: 0 auto; }
    section { padding: 4rem 1.5rem; }
    footer { flex-direction: column; gap: 1rem; text-align: center; }
  }