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

    :root {
      --bg: #0e0e0e;
      --surface: #161616;
      --border: #282828;
      --accent: #c8f566;
      --accent2: #f5c766;
      --text: #f0ede6;
      --muted: #777;
      --mono: 'DM Mono', monospace;
      --serif: 'DM Serif Display', serif;
      --sans: 'Manrope', sans-serif;
    }

    /* ── LIGHT MODE VARIABLES ── */
    html[data-theme="light"] {
      --bg: #f5f4f0;
      --surface: #eceae4;
      --border: #d4d1c8;
      --accent: #5a9e00;
      --accent2: #b07d00;
      --text: #1a1a1a;
      --muted: #666;
    }

    html[data-theme="light"] nav {
      background: rgba(245,244,240,0.88);
    }

    html[data-theme="light"] .skill-card:hover { background: #e4e2dc; }

    html[data-theme="light"] .project-thumb {
      background: linear-gradient(135deg, #dedad3, #cac7bf);
    }

    html[data-theme="light"] .hero-card-body .kw { color: #7c3aed; }
    html[data-theme="light"] .hero-card-body .fn { color: #1d4ed8; }
    html[data-theme="light"] .hero-card-body .cm { color: #9ca3af; }

    html[data-theme="light"] .mobile-menu {
      background: var(--surface);
    }

    /* ── THEME TOGGLE BUTTON ── */
    .theme-toggle {
      background: none;
      border: 1px solid var(--border);
      border-radius: 20px;
      cursor: pointer;
      width: 52px;
      height: 28px;
      position: relative;
      flex-shrink: 0;
      transition: border-color 0.3s, background 0.3s;
      padding: 0;
    }
    .theme-toggle:hover { border-color: var(--accent); }

    .toggle-thumb {
      position: absolute;
      top: 3px; left: 3px;
      width: 20px; height: 20px;
      border-radius: 50%;
      background: var(--accent);
      transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), background 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      line-height: 1;
    }

    html[data-theme="light"] .toggle-thumb {
      transform: translateX(24px);
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--sans);
      font-size: 16px;
      line-height: 1.6;
      overflow-x: hidden;
      transition: background 0.3s ease, color 0.3s ease;
    }

    /* ── NOISE OVERLAY ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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='0.04'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 9999;
      opacity: 0.4;
    }

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

    .nav-logo {
      font-family: var(--mono);
      font-size: 0.85rem;
      letter-spacing: 0.1em;
      color: var(--accent);
      text-decoration: none;
    }

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

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

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

    .nav-cta {
      font-family: var(--mono);
      font-size: 0.78rem;
      color: var(--bg);
      background: var(--accent);
      padding: 0.5rem 1.2rem;
      border-radius: 2px;
      text-decoration: none;
      letter-spacing: 0.06em;
      transition: opacity 0.2s;
    }
    .nav-cta:hover { opacity: 0.85; }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 4px;
    }
    .hamburger span {
      display: block;
      width: 24px; height: 2px;
      background: var(--text);
      transition: all 0.3s;
    }

    /* ── HERO ── */
    .hero {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      /*padding: 0 2.5rem;
      padding-top: 0px;*/
      position: relative;
      overflow: hidden;
    }

    .hero::after {
      content: '';
      position: absolute;
      right: -180px; top: 10%;
      width: 520px; height: 520px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(200,245,102,0.08) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-left {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 4rem 4rem 4rem 0;
    }

    .hero-tag {
      font-family: var(--mono);
      font-size: 0.75rem;
      color: var(--accent);
      letter-spacing: 0.2em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .hero-tag::before {
      content: '';
      display: block;
      width: 28px; height: 1px;
      background: var(--accent);
    }

    .hero-name {
      font-family: var(--serif);
      font-size: clamp(3rem, 6vw, 5.5rem);
      line-height: 1.05;
      margin-bottom: 1.5rem;
      letter-spacing: -0.02em;
    }

    .hero-name em {
      color: var(--accent);
      font-style: italic;
    }

    .hero-desc {
      font-size: 1rem;
      color: var(--muted);
      max-width: 400px;
      line-height: 1.75;
      margin-bottom: 2.5rem;
    }

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

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.8rem 1.8rem;
      font-family: var(--mono);
      font-size: 0.82rem;
      letter-spacing: 0.06em;
      border-radius: 2px;
      text-decoration: none;
      transition: all 0.2s;
      cursor: pointer;
      border: none;
    }
    .btn-primary {
      background: var(--accent);
      color: var(--bg);
    }
    .btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

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

    .hero-right {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .hero-card {
      width: 280px;
      border: 1px solid var(--border);
      background: var(--surface);
      border-radius: 4px;
      overflow: hidden;
      position: relative;
    }

    .hero-card-header {
      background: var(--border);
      padding: 0.6rem 1rem;
      display: flex;
      gap: 6px;
      align-items: center;
    }
    .dot { width: 10px; height: 10px; border-radius: 50%; }
    .dot-r { background: #ff5f57; }
    .dot-y { background: #febc2e; }
    .dot-g { background: #28c840; }

    .hero-card-body {
      padding: 1.2rem;
      font-family: var(--mono);
      font-size: 0.78rem;
      line-height: 1.9;
      color: var(--muted);
    }

    .hero-card-body .kw { color: #c792ea; }
    .hero-card-body .fn { color: #82aaff; }
    .hero-card-body .str { color: var(--accent); }
    .hero-card-body .num { color: var(--accent2); }
    .hero-card-body .cm { color: #546e7a; }

    .hero-stats {
      display: flex;
      gap: 2rem;
      margin-top: 3rem;
    }
    .stat-num {
      font-family: var(--serif);
      font-size: 2.2rem;
      line-height: 1;
      color: var(--text);
    }
    .stat-num span { color: var(--accent); }
    .stat-label {
      font-family: var(--mono);
      font-size: 0.7rem;
      color: var(--muted);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-top: 0.25rem;
    }

    /* ── SECTION SHARED ── */
    section {
      padding: 6rem 2.5rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .section-label {
      font-family: var(--mono);
      font-size: 0.72rem;
      letter-spacing: 0.2em;
      color: var(--accent);
      text-transform: uppercase;
      margin-bottom: 0.75rem;
    }

    .section-title {
      font-family: var(--serif);
      font-size: clamp(2rem, 4vw, 3rem);
      line-height: 1.1;
      margin-bottom: 3rem;
    }

    /* ── SKILLS ── */
    #skills { border-top: 1px solid var(--border); }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1px;
      border: 1px solid var(--border);
      border-radius: 4px;
      overflow: hidden;
    }

    .skill-card {
      background: var(--surface);
      padding: 2rem;
      transition: background 0.2s;
      position: relative;
    }
    .skill-card:hover { background: #1c1c1c; }

    .skill-icon {
      font-size: 1.6rem;
      margin-bottom: 1rem;
    }

    .skill-name {
      font-family: var(--sans);
      font-weight: 700;
      font-size: 0.95rem;
      margin-bottom: 0.5rem;
    }

    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-top: 0.75rem;
    }

    .tag {
      font-family: var(--mono);
      font-size: 0.68rem;
      padding: 0.2rem 0.6rem;
      background: rgba(200,245,102,0.08);
      color: var(--accent);
      border-radius: 2px;
      letter-spacing: 0.04em;
    }

    .skill-desc {
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.65;
    }

    /* ── PROJECTS ── */
    #projects { border-top: 1px solid var(--border); }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
      gap: 1.5rem;
    }

    .project-card {
      border: 1px solid var(--border);
      border-radius: 4px;
      overflow: hidden;
      background: var(--surface);
      transition: border-color 0.2s, transform 0.2s;
      display: flex;
      flex-direction: column;
    }
    .project-card:hover {
      border-color: var(--accent);
      transform: translateY(-3px);
    }

    .project-thumb {
      height: 160px;
      background: linear-gradient(135deg, #1a1a1a, #242424);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--mono);
      font-size: 3rem;
      position: relative;
      overflow: hidden;
    }

    .project-thumb::after {
      content: '';
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.015) 20px,
        rgba(255,255,255,0.015) 40px
      );
    }

    .project-body {
      padding: 1.5rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .project-type {
      font-family: var(--mono);
      font-size: 0.68rem;
      color: var(--accent);
      letter-spacing: 0.15em;
      text-transform: uppercase;
      margin-bottom: 0.5rem;
    }

    .project-title {
      font-family: var(--sans);
      font-weight: 700;
      font-size: 1.05rem;
      margin-bottom: 0.6rem;
    }

    .project-desc {
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.65;
      flex: 1;
    }

    .project-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 1.5rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border);
    }

    .project-stack {
      display: flex;
      gap: 0.4rem;
      flex-wrap: wrap;
    }

    .project-link {
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--muted);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      transition: color 0.2s;
    }
    .project-link:hover { color: var(--accent); }

    /* ── EXPERIENCE ── */
    #experience { border-top: 1px solid var(--border); }

    .timeline {
      position: relative;
      padding-left: 2rem;
    }
    .timeline::before {
      content: '';
      position: absolute;
      left: 0; top: 6px; bottom: 0;
      width: 1px;
      background: var(--border);
    }

    .timeline-item {
      position: relative;
      margin-bottom: 3rem;
    }
    .timeline-item::before {
      content: '';
      position: absolute;
      left: -2.4rem; top: 6px;
      width: 9px; height: 9px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--accent);
    }

    .timeline-period {
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--accent);
      letter-spacing: 0.12em;
      margin-bottom: 0.4rem;
    }

    .timeline-role {
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 0.2rem;
    }

    .timeline-company {
      font-family: var(--mono);
      font-size: 0.82rem;
      color: var(--muted);
      margin-bottom: 0.75rem;
    }

    .timeline-desc {
      font-size: 0.88rem;
      color: var(--muted);
      max-width: 600px;
      line-height: 1.75;
    }

    /* ── CONTACT ── */
    #contact {
      border-top: 1px solid var(--border);
      text-align: center;
      padding: 7rem 2.5rem;
    }

    .contact-headline {
      font-family: var(--serif);
      font-size: clamp(2.5rem, 5vw, 4.5rem);
      line-height: 1.08;
      margin-bottom: 1.2rem;
    }

    .contact-headline em { color: var(--accent); font-style: italic; }

    .contact-sub {
      font-size: 1rem;
      color: var(--muted);
      max-width: 500px;
      margin: 0 auto 2.5rem;
    }

    .contact-links {
      display: flex;
      justify-content: center;
      gap: 1.2rem;
      flex-wrap: wrap;
      margin-top: 3rem;
    }

    .social-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-family: var(--mono);
      font-size: 0.78rem;
      color: var(--muted);
      text-decoration: none;
      padding: 0.6rem 1.2rem;
      border: 1px solid var(--border);
      border-radius: 2px;
      letter-spacing: 0.06em;
      transition: all 0.2s;
    }
    .social-link:hover {
      color: var(--accent);
      border-color: var(--accent);
    }

    /* ── FOOTER ── */
    footer {
      border-top: 1px solid var(--border);
      padding: 1.5rem 2.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--muted);
    }

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

    .hero-tag   { animation: fadeUp 0.6s ease both 0.1s; }
    .hero-name  { animation: fadeUp 0.6s ease both 0.25s; }
    .hero-desc  { animation: fadeUp 0.6s ease both 0.4s; }
    .hero-buttons { animation: fadeUp 0.6s ease both 0.5s; }
    .hero-stats { animation: fadeUp 0.6s ease both 0.6s; }
    .hero-card  { animation: fadeUp 0.7s ease both 0.35s; }

    /* ── MOBILE NAV ── */
    .mobile-menu {
      display: none;
      flex-direction: column;
      position: fixed;
      top: 64px; left: 0; right: 0;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 1.5rem 2.5rem;
      gap: 1.2rem;
      z-index: 99;
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a {
      font-family: var(--mono);
      font-size: 0.85rem;
      color: var(--muted);
      text-decoration: none;
      letter-spacing: 0.08em;
    }
    .mobile-menu a:hover { color: var(--text); }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      .hero {
        grid-template-columns: 1fr;
        padding-top: 100px;
        min-height: auto;
      }
      .hero-left { padding: 3rem 0 1rem; }
      .hero-right { padding-bottom: 3rem; }
      .hero-right .hero-card { width: 100%; max-width: 340px; }

      .nav-links, .nav-cta { display: none; }
      .hamburger { display: flex; }
    }

    @media (max-width: 640px) {
      nav { padding: 1.2rem 1.5rem; }
      section { padding: 4rem 1.5rem; }
      .hero { padding-left: 1.5rem; padding-right: 1.5rem; }
      .hero-name { font-size: 2.6rem; }
      .hero-stats { gap: 1.5rem; }
      .projects-grid { grid-template-columns: 1fr; }
      .skills-grid { grid-template-columns: 1fr; }
      footer { flex-direction: column; gap: 0.5rem; text-align: center; }
      #contact { padding: 5rem 1.5rem; }
    }