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

    :root {
      --text: #0f0f0f;
      --text-2: #555;
      --text-3: #999;
      --bg: #ffffff;
      --bg-2: #f7f7f5;
      --border: rgba(0,0,0,0.1);
      --border-2: rgba(0,0,0,0.06);
      --mono: 'Geist Mono', monospace;
      --sans: 'Geist', system-ui, sans-serif;
    }

    html[data-theme="dark"] {
      --text: #f0f0f0;
      --text-2: #aaa;
      --text-3: #666;
      --bg: #0f0f0f;
      --bg-2: #161616;
      --border: rgba(255,255,255,0.1);
      --border-2: rgba(255,255,255,0.05);
    }

    @media (prefers-color-scheme: dark) {
      html:not([data-theme]) {
        --text: #f0f0f0;
        --text-2: #aaa;
        --text-3: #666;
        --bg: #0f0f0f;
        --bg-2: #161616;
        --border: rgba(255,255,255,0.1);
        --border-2: rgba(255,255,255,0.05);
      }
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--sans);
      font-size: 14px;
      line-height: 1.65;
      color: var(--text);
      background: var(--bg);
      -webkit-font-smoothing: antialiased;
    }

    a { color: inherit; text-decoration: none; }
    a:hover { color: var(--text-2); }

    .wrap {
      max-width: 640px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* ─── NAV ─── */

    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--bg);
      border-bottom: 0.5px solid var(--border);
      padding: 0.85rem 0;
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .nav-brand {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--text-3);
      letter-spacing: 0.04em;
      flex-shrink: 0;
    }

    /* center nav links, grow to fill space */
    .nav-links {
      display: flex;
      gap: 1.5rem;
      list-style: none;
      flex: 1;
      justify-content: center;
    }

    .nav-links a {
      font-size: 13px;
      color: var(--text-3);
      transition: color 0.15s;
    }

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

    /* right side: theme toggle + hamburger */
    .nav-right {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .theme-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      background: none;
      border: 0.5px solid var(--border);
      border-radius: 6px;
      color: var(--text-2);
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
      flex-shrink: 0;
    }

    .theme-toggle:hover {
      background: var(--bg-2);
      color: var(--text);
    }

    .theme-toggle svg { display: block; pointer-events: none; }

    /* show moon in light mode, sun in dark mode */
    .icon-sun  { display: none; }
    .icon-moon { display: block; }

    html[data-theme="dark"] .icon-sun  { display: block; }
    html[data-theme="dark"] .icon-moon { display: none; }

    @media (prefers-color-scheme: dark) {
      html:not([data-theme]) .icon-sun  { display: block; }
      html:not([data-theme]) .icon-moon { display: none; }
    }

    .nav-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
      color: var(--text-2);
    }

    .nav-toggle svg { display: block; }

    @media (max-width: 560px) {
      .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg);
        border-bottom: 0.5px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
      }

      .nav-links.open { display: flex; }

      .nav-links a {
        padding: 0.5rem 0;
        font-size: 14px;
        border-bottom: 0.5px solid var(--border-2);
      }

      .nav-links li:last-child a { border-bottom: none; }

      .nav-toggle { display: block; }
    }

    /* ─── MAIN ─── */

    main { padding: 4rem 0 6rem; }

    section { margin-top: 4rem; }
    section:first-child { margin-top: 0; }

    .label {
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 400;
      color: var(--text-3);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin: 0 0 1.5rem;
    }

    /* ─── HERO ─── */

    .hero-header {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      margin-bottom: 0.5rem;
    }

    .hero-avatar {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      object-fit: cover;
      border: 0.5px solid var(--border);
      flex-shrink: 0;
    }

    .hero-name {
      font-size: 26px;
      font-weight: 500;
      letter-spacing: -0.02em;
      margin-bottom: 0.3rem;
    }

    .hero-loc {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--text-3);
      margin-bottom: 0.5rem;
    }

    .hero-roles {
      font-size: 14px;
      color: var(--text-2);
      margin-bottom: 0.75rem;
    }

    .hero-intro {
      font-size: 14px;
      color: var(--text-2);
      line-height: 1.65;
      margin-bottom: 1.5rem;
    }

    .hero-intro strong {
      font-weight: 500;
      color: var(--text);
    }

    .hero-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      font-size: 13px;
      font-family: var(--sans);
      border: 0.5px solid var(--border);
      border-radius: 6px;
      color: var(--text-2);
      background: transparent;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
      text-decoration: none;
    }

    .btn:hover { background: var(--bg-2); color: var(--text); }

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

    .btn-primary:hover { opacity: 0.8; color: var(--bg); background: var(--text); }

    /* ─── ABOUT ─── */

    .about-text { font-size: 14px; color: var(--text-2); line-height: 1.8; }
    .about-text p + p { margin-top: 1rem; }

    /* ─── TIMELINE ─── */

    .timeline { display: flex; flex-direction: column; }

    .tl-row {
      display: grid;
      grid-template-columns: 90px 1fr;
      gap: 1.5rem;
      padding: 1rem 0;
      border-bottom: 0.5px solid var(--border-2);
    }

    .tl-row:last-child { border-bottom: none; }

    .tl-year {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-3);
      padding-top: 2px;
      line-height: 1.5;
    }

    .tl-title {
      font-size: 14px;
      font-weight: 500;
      margin: 0;
    }

    .tl-sub {
      font-size: 12px;
      color: var(--text-3);
      font-family: var(--mono);
      margin-top: 3px;
    }

    .tl-sub a {
      color: var(--text-3);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .tl-sub a:hover { color: var(--text-2); }

    .tl-desc {
      font-size: 13px;
      color: var(--text-2);
      line-height: 1.65;
      margin-top: 8px;
    }

    /* ─── CHIPS ─── */

    .chips { display: flex; flex-wrap: wrap; gap: 6px; }

    .chip {
      font-family: var(--mono);
      font-size: 11px;
      padding: 3px 10px;
      border: 0.5px solid var(--border);
      border-radius: 4px;
      color: var(--text-3);
      background: transparent;
    }

    /* ─── SKILL GROUPS ─── */

    .skill-group { margin-bottom: 1.25rem; }
    .skill-group:last-child { margin-bottom: 0; }

    .skill-group-title {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-3);
      margin-bottom: 8px;
    }

    /* ─── PROJECT SHOWCASE ─── */

    .proj-showcase {
      border: 0.5px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
    }

    .proj-tabs {
      display: flex;
      gap: 0;
      overflow-x: auto;
      scrollbar-width: none;
      border-bottom: 0.5px solid var(--border);
      -webkit-overflow-scrolling: touch;
    }

    .proj-tabs::-webkit-scrollbar { display: none; }

    .proj-tab {
      flex-shrink: 0;
      padding: 10px 14px;
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-3);
      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      margin-bottom: -0.5px;
      cursor: pointer;
      transition: color 0.15s, border-color 0.15s, background 0.15s;
      white-space: nowrap;
    }

    .proj-tab:hover { color: var(--text-2); background: var(--bg-2); }

    .proj-tab.active {
      color: var(--text);
      border-bottom-color: var(--text);
      background: var(--bg-2);
    }

    .proj-panels {
      position: relative;
      min-height: 280px;
    }

    .proj-panel {
      display: none;
      padding: 1.25rem 1.5rem;
    }

    .proj-panel.active {
      display: block;
      animation: projFadeIn 0.3s ease;
    }

    @keyframes projFadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: none; }
    }

    .proj-panel-inner {
      display: grid;
      grid-template-columns: 200px 1fr;
      gap: 1.25rem;
      align-items: start;
    }

    @media (max-width: 520px) {
      .proj-panel-inner { grid-template-columns: 1fr; }
    }

    .proj-img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      object-position: top;
      border-radius: 6px;
      border: 0.5px solid var(--border-2);
      cursor: pointer;
      transition: opacity 0.15s;
    }

    .proj-img:hover { opacity: 0.9; }

    .proj-body h3 {
      font-size: 15px;
      font-weight: 500;
      margin-bottom: 8px;
      line-height: 1.4;
    }

    .proj-body p {
      font-size: 13px;
      color: var(--text-2);
      line-height: 1.65;
      margin-bottom: 12px;
    }

    .proj-body .chips { margin-bottom: 0; }

    .proj-link {
      display: inline-block;
      margin-top: 12px;
      font-size: 13px;
      color: var(--text-2);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .proj-link:hover { color: var(--text); }

    .proj-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      padding: 10px 1.5rem 14px;
      border-top: 0.5px solid var(--border-2);
    }

    .proj-nav-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      font-size: 14px;
      color: var(--text-2);
      background: transparent;
      border: 0.5px solid var(--border);
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
    }

    .proj-nav-btn:hover {
      background: var(--bg-2);
      color: var(--text);
    }

    .proj-counter {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-3);
      min-width: 3rem;
      text-align: center;
    }

    @media (prefers-reduced-motion: reduce) {
      .proj-panel.active { animation: none; }
    }

    /* ─── CERTS ─── */

    .cert-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
      gap: 10px;
    }

    .cert-card {
      border: 0.5px solid var(--border);
      border-radius: 8px;
      padding: 12px 14px;
      cursor: pointer;
      transition: background 0.15s;
    }

    .cert-card:hover { background: var(--bg-2); }

    .cert-card img {
      width: 100%;
      height: 120px;
      object-fit: cover;
      border-radius: 4px;
      margin-bottom: 10px;
      border: 0.5px solid var(--border-2);
    }

    .cert-name { font-size: 13px; font-weight: 500; }

    .cert-issuer {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-3);
      margin-top: 2px;
    }

    /* ─── REFERENCES ─── */

    .ref-list { display: flex; flex-direction: column; }

    .ref-row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      padding: 10px 0;
      border-bottom: 0.5px solid var(--border-2);
    }

    .ref-row:last-child { border-bottom: none; }

    .ref-name { font-size: 14px; font-weight: 500; }

    .ref-label {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-3);
    }

    /* ─── CONTACT ─── */

    .contact-list { display: flex; flex-direction: column; gap: 10px; }

    .contact-row {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: var(--text-2);
    }

    .contact-row a { color: var(--text-2); transition: color 0.15s; }
    .contact-row a:hover { color: var(--text); }

    .contact-icon { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }

    /* ─── CONTACT FORM ─── */

    .contact-form {
      margin-top: 2rem;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

    @media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

    .form-field { display: flex; flex-direction: column; gap: 5px; }

    .form-field label {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-3);
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .form-field input,
    .form-field textarea {
      background: var(--bg);
      border: 0.5px solid var(--border);
      border-radius: 6px;
      padding: 9px 12px;
      font-family: var(--sans);
      font-size: 13px;
      color: var(--text);
      outline: none;
      transition: border-color 0.15s;
      resize: vertical;
    }

    .form-field input:focus,
    .form-field textarea:focus { border-color: var(--text-2); }

    .form-field input::placeholder,
    .form-field textarea::placeholder { color: var(--text-3); }

    #formStatus {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--text-3);
      min-height: 18px;
    }

    /* ─── FOOTER ─── */

    footer {
      border-top: 0.5px solid var(--border-2);
      padding: 1.5rem 0;
      margin-top: 6rem;
    }

    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
    }

    .footer-copy {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-3);
    }

    /* ─── REVEAL ─── */

    .reveal {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .reveal.in { opacity: 1; transform: none; }

    /* ─── LIGHTBOX ─── */

    .lightbox {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.85);
      z-index: 999;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
    }

    .lightbox.open { display: flex; }

    .lightbox img {
      max-width: 90vw;
      max-height: 85vh;
      border-radius: 6px;
      object-fit: contain;
    }

    .lightbox-close {
      position: absolute;
      top: 1.25rem;
      right: 1.25rem;
      background: none;
      border: none;
      color: #fff;
      cursor: pointer;
      font-size: 24px;
      line-height: 1;
      padding: 4px 8px;
      opacity: 0.7;
    }

    .lightbox-close:hover { opacity: 1; }