  :root {
    --bg:       #0a0a0f;
    --surface:  #111118;
    --border:   #1e1e2e;
    --accent:   #7c6dfa;
    --accent2:  #fa6d6d;
    --gold:     #f5c842;
    --text:     #e8e8f0;
    --muted:    #6b6b80;
    --dim:      #2a2a3a;
    --radius:   12px;
    --mono:     'DM Mono', monospace;
    --sans:     'DM Sans', system-ui, sans-serif;
  }

  [data-theme="light"] {
    --bg:       #fcfcfd;
    --surface:  #ffffff;
    --border:   #e2e8f0;
    --accent:   #5b4be3;
    --accent2:  #e05252;
    --gold:     #d97706;
    --text:     #0f172a;
    --muted:    #64748b;
    --dim:      #f1f5f9;
  }

  *, *::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;
    overflow-x: hidden;
  }

  /* ── Nav ─────────────────────────────────────────────────── */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 48px;
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
  }
  nav.scrolled {
    background: rgba(10,10,15,.9);
    backdrop-filter: blur(12px);
    border-color: var(--border);
  }
  .nav-logo {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: .05em;
  }
  .nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .2s;
  }
  .nav-links a:hover { color: var(--text); }

  /* ── Sections ────────────────────────────────────────────── */
  section { padding: 96px 48px; max-width: 1100px; margin: 0 auto; }

  /* ── Hero ────────────────────────────────────────────────── */
  #hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 120px;
    max-width: 1100px; margin: 0 auto; padding-left: 48px; padding-right: 48px;
  }
  .hero-tag {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
  }
  .hero-tag::before {
    content: '';
    display: inline-block;
    width: 32px; height: 1px;
    background: var(--accent);
  }
  h1.hero-name {
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -.03em;
    margin-bottom: 8px;
  }
  h1.hero-name span { color: var(--accent); }
  .hero-title {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 32px;
    font-style: italic;
  }
  .hero-desc {
    font-size: 18px;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 48px;
  }
  .hero-desc strong { color: var(--text); font-weight: 500; }
  .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    letter-spacing: .02em;
  }
  .btn-primary {
    background: var(--accent);
    color: #fff;
  }
  .btn-primary:hover { background: #9080ff; transform: translateY(-1px); }
  .btn-ghost {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
  }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

  .hero-scroll {
    position: absolute; bottom: 48px; left: 48px;
    display: flex; align-items: center; gap: 12px;
    font-family: var(--mono); font-size: 11px;
    color: var(--muted); letter-spacing: .1em;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
  }
  @keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
  .hero-scroll::before { content:'↓'; font-size: 18px; }

  /* ── Section headers ─────────────────────────────────────── */
  .section-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  h2.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 48px;
  }
  h2.section-title span { color: var(--muted); font-weight: 300; }

  /* ── Divider ─────────────────────────────────────────────── */
  .divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
    margin: 0 48px;
  }

  /* ── Awards ──────────────────────────────────────────────── */
  #awards { background: var(--surface); border-radius: 0; padding: 80px 0; max-width: none; }
  #awards .inner { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
  .awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 48px;
  }
  .award-card {
    background: var(--surface);
    padding: 28px;
    transition: background .2s;
  }
  .award-card:hover { background: #15151f; }
  .award-medal {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
  }
  .award-event {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .award-desc {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 6px;
  }
  .award-year {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--mono);
  }

  /* ── Experience ──────────────────────────────────────────── */
  .exp-list { display: flex; flex-direction: column; gap: 0; }
  .exp-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    transition: all .2s;
  }
  .exp-item:first-child { border-top: 1px solid var(--border); }
  .exp-item:hover { background: rgba(124,109,250,.03); padding-left: 12px; padding-right: 12px; margin: 0 -12px; border-radius: var(--radius); border-color: transparent; }
  .exp-meta { padding-top: 4px; }
  .exp-period {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .06em;
    line-height: 1.6;
  }
  .exp-type {
    display: inline-block;
    font-size: 10px;
    font-family: var(--mono);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 8px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .exp-type.full { background: #1a2a1a; color: #4ade80; }
  .exp-type.part { background: #1a1a2a; color: var(--accent); }
  .exp-type.free { background: #2a1a1a; color: #f87171; }
  .exp-role { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
  .exp-company {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
  }
  .exp-body {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
  }
  .exp-body strong { color: var(--text); font-weight: 500; }
  .exp-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 14px;
  }
  .tag {
    font-family: var(--mono);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--dim);
    color: var(--muted);
    letter-spacing: .04em;
  }

  /* ── Skills ──────────────────────────────────────────────── */
  #skills { background: var(--surface); max-width: none; padding: 80px 0; }
  #skills .inner { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 48px;
  }
  .skill-group h4 {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .skill-group ul { list-style: none; }
  .skill-group li {
    font-size: 14px;
    color: var(--muted);
    padding: 4px 0;
    display: flex; align-items: center; gap: 8px;
    transition: color .15s;
  }
  .skill-group li:hover { color: var(--text); }
  .skill-group li::before {
    content: '·';
    color: var(--accent);
    font-size: 18px;
    line-height: 1;
  }

  /* ── Publication ─────────────────────────────────────────── */
  .pub-card {
    display: flex; gap: 24px; align-items: flex-start;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .2s, transform .2s;
    text-decoration: none;
  }
  .pub-card:hover { border-color: var(--accent); transform: translateY(-2px); }
  .pub-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 56px; height: 56px;
    background: var(--dim);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
  }
  .pub-venue {
    font-family: var(--mono); font-size: 10px;
    color: var(--accent); letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 6px;
  }
  .pub-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
  .pub-authors { font-size: 13px; color: var(--muted); }

  /* ── Contact ─────────────────────────────────────────────── */
  #contact { text-align: center; }
  .contact-email {
    display: inline-block;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 300;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
    transition: border-color .2s, color .2s;
    margin: 24px 0 40px;
    font-style: italic;
  }
  .contact-email:hover { border-color: var(--accent); color: var(--accent); }
  .contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  .contact-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px; font-weight: 500;
    transition: all .2s;
  }
  .contact-link:hover { border-color: var(--accent); color: var(--accent); }

  /* ── Footer ──────────────────────────────────────────────── */
  footer {
    padding: 32px 48px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono); font-size: 11px; color: var(--muted);
    letter-spacing: .06em;
  }

  /* ── Noise overlay (subtle texture) ─────────────────────── */
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0; opacity: .4;
  }
  [data-theme="light"] body::before { opacity: .15; }

  /* ── Glow ────────────────────────────────────────────────── */
  .glow {
    position: fixed; top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,109,250,.12) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
  }
  .glow2 {
    position: fixed; bottom: -200px; left: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(250,109,109,.07) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
  }
  [data-theme="light"] .glow { background: radial-gradient(circle, rgba(91,75,227,.06) 0%, transparent 70%); }
  [data-theme="light"] .glow2 { background: radial-gradient(circle, rgba(224,82,82,.04) 0%, transparent 70%); }

  /* ── Theme Button ────────────────────────────────────────── */
  #theme-toggle {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, color .2s;
  }
  #theme-toggle:hover { color: var(--accent); transform: scale(1.1); }
  .sun-icon { display: none; width: 18px; height: 18px; }
  .moon-icon { display: block; width: 18px; height: 18px; }
  [data-theme="light"] .sun-icon { display: block; }
  [data-theme="light"] .moon-icon { display: none; }

  /* ── Responsive ──────────────────────────────────────────── */
  @media (max-width: 768px) {
    nav { padding: 16px 24px; }
    .nav-links { display: none; }
    #hero, section { padding: 80px 24px; }
    #hero { padding-top: 100px; }
    .hero-scroll { left: 24px; }
    .exp-item { grid-template-columns: 1fr; gap: 8px; }
    .exp-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
    .divider { margin: 0 24px; }
    footer { padding: 24px; flex-direction: column; gap: 8px; text-align: center; }
    #skills .inner, #awards .inner { padding: 0 24px; }
    #skills, #awards { padding: 64px 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-scroll { animation: none; }
    * { transition: none !important; }
  }