*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    :root {
      --bg:       #111111;
      --bg2:      #161616;
      --bg3:      #1a1a1a;
      --border:   #262626;
      --border2:  #2e2e2e;
      --white:    #f0f0f0;
      --grey:     #a0a0a0;
      --grey2:    #666666;
      --grey3:    #3a3a3a;
      --serif:   'DM Serif Display', Georgia, serif;
      --sans:    'DM Sans', system-ui, sans-serif;
    }

    body {
      font-family: var(--sans);
      background: var(--bg);
      color: var(--white);
      font-size: 15px;
      line-height: 1.7;
      overflow-x: hidden;
    }

    a { color: inherit; text-decoration: none; }

    /* ───────────────────────────────────────
       LAYOUT: fixed sidebar + scrolling main
    ─────────────────────────────────────── */
    .layout {
      display: flex;
    }

    /* ── SIDEBAR ── */
    aside {
      width: 260px;
      flex-shrink: 0;
      position: fixed;
      top: 0; left: 0;
      height: 100vh;
      background: var(--bg2);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      padding: 2.4rem 1.8rem;
      z-index: 50;
      overflow-y: auto;
    }

    .sidebar-name {
      font-family: var(--serif);
      font-size: 1.3rem;
      color: var(--white);
      line-height: 1.2;
      margin-bottom: 0.25rem;
    }
    .sidebar-role {
      font-size: 0.72rem;
      color: var(--grey2);
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 2.2rem;
    }

    /* nav links */
    .nav-section {
      margin-bottom: 2rem;
    }
    .nav-label {
      font-size: 0.62rem;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: var(--grey3);
      margin-bottom: 0.6rem;
    }
    .nav-link {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.42rem 0.6rem;
      border-radius: 6px;
      font-size: 0.83rem;
      color: var(--grey);
      margin-bottom: 0.1rem;
      transition: background 0.15s, color 0.15s;
      cursor: pointer;
    }
    .nav-link:hover { background: var(--bg3); color: var(--white); }
    .nav-link.active { background: var(--bg3); color: var(--white); }
    .nav-link .dot {
      width: 5px; height: 5px;
      border-radius: 50%;
      background: var(--grey3);
      flex-shrink: 0;
      transition: background 0.15s;
    }
    .nav-link.active .dot, .nav-link:hover .dot { background: var(--white); }

    /* sidebar bottom */
    .sidebar-bottom {
      margin-top: auto;
      padding-top: 1.5rem;
      border-top: 1px solid var(--border);
    }
    .avail {
      display: flex; align-items: center; gap: 0.55rem;
      font-size: 0.72rem; color: var(--grey2);
      margin-bottom: 1.2rem;
    }
    .avail-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: #4ade80;
      box-shadow: 0 0 8px rgba(74,222,128,0.5);
      animation: pulse 2s infinite;
    }
    @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

    .sidebar-btns { display: flex; flex-direction: column; gap: 0.45rem; }
    .sb-btn {
      display: flex; align-items: center; justify-content: center; gap: 0.5rem;
      padding: 0.55rem 1rem;
      border-radius: 7px;
      font-size: 0.78rem;
      font-family: var(--sans);
      cursor: pointer;
      transition: all 0.18s;
      text-decoration: none;
    }
    .sb-btn-primary {
      background: var(--white);
      color: var(--bg);
      font-weight: 500;
    }
    .sb-btn-primary:hover { background: #d4d4d4; }
    .sb-btn-ghost {
      background: transparent;
      color: var(--grey);
      border: 1px solid var(--border2);
    }
    .sb-btn-ghost:hover { background: var(--bg3); color: var(--white); border-color: var(--grey3); }

    /* ── MAIN CONTENT ── */
    main {
      margin-left: 260px;
      flex: 1;
      min-height: 100vh;
    }

    /* ── FULL-HEIGHT SECTIONS ── */
    .section {
      padding: 7rem 5rem 7rem 5rem;
      border-bottom: 1px solid var(--border);
      position: relative;
    }
    .section:last-child { border-bottom: none; }

    .section-tag {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      color: var(--grey2);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .section-tag::before {
      content: '';
      width: 20px; height: 1px;
      background: var(--grey3);
    }

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

    .hero-label {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.22em;
      color: var(--grey2);
      margin-bottom: 1.5rem;
    }

    .hero-name {
      font-family: var(--serif);
      font-size: clamp(4.5rem, 9vw, 9rem);
      line-height: 0.9;
      color: var(--white);
      margin-bottom: 0.15em;
    }
    .hero-name em {
      font-style: italic;
      color: var(--grey);
    }

    .hero-desc {
      max-width: 42rem;
      font-size: 1.05rem;
      color: var(--grey);
      line-height: 1.85;
      font-weight: 300;
      margin-top: 2.2rem;
    }
    .hero-desc strong { color: var(--white); font-weight: 400; }

    .hero-stats {
      display: flex;
      gap: 2.5rem;
      flex-wrap: wrap;
      margin-top: 3rem;
    }
    .stat {
      border-top: 1px solid var(--border2);
      padding-top: 0.7rem;
      min-width: 90px;
    }
    .stat-val {
      font-family: var(--serif);
      font-size: 1.6rem;
      color: var(--white);
      line-height: 1;
      margin-bottom: 0.25rem;
    }
    .stat-label {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--grey2);
    }

    .hero-scroll {
      margin-top: 4rem;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      color: var(--grey3);
      display: flex;
      align-items: center;
      gap: 0.7rem;
    }
    .hero-scroll::after {
      content: '';
      width: 30px; height: 1px;
      background: var(--grey3);
    }

    /* ── SECTION TITLE ── */
    .section-title {
      font-family: var(--serif);
      font-size: clamp(2.5rem, 5vw, 4.5rem);
      line-height: 1;
      color: var(--white);
      margin-bottom: 3.5rem;
    }
    .section-title em { font-style: italic; color: var(--grey); }

    /* ── ABOUT ── */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }
    .about-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 2rem 2rem;
      transition: border-color 0.2s;
    }
    .about-card:hover { border-color: var(--border2); }
    .about-card:first-child {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      align-items: center;
    }

    .about-num {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: var(--grey3);
      margin-bottom: 0.7rem;
    }
    .about-heading {
      font-family: var(--serif);
      font-size: 1.9rem;
      line-height: 1.1;
      color: var(--white);
      margin-bottom: 0.9rem;
    }
    .about-heading em { font-style: italic; color: var(--grey); }
    .about-body {
      font-size: 0.9rem;
      color: var(--grey);
      line-height: 1.9;
      font-weight: 300;
    }
    .about-body strong { color: var(--white); font-weight: 400; }

    .pills {
      display: flex; flex-wrap: wrap; gap: 0.4rem;
      margin-top: 1.1rem;
    }
    .pill {
      font-size: 0.72rem;
      color: var(--grey);
      border: 1px solid var(--border2);
      border-radius: 999px;
      padding: 0.22rem 0.7rem;
      transition: border-color 0.2s, color 0.2s;
    }
    .pill:hover { color: var(--white); border-color: var(--grey3); }

    /* ── EXPERIENCE ── */
    .exp-item {
      padding: 2.2rem 0;
      border-bottom: 1px solid var(--border);
      display: grid;
      grid-template-columns: 200px 1fr;
      gap: 2rem;
    }
    .exp-item:first-child { border-top: 1px solid var(--border); }
    .exp-left { }
    .exp-period {
      font-size: 0.72rem;
      color: var(--grey2);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 0.3rem;
    }
    .exp-org {
      font-size: 0.8rem;
      color: var(--grey2);
      line-height: 1.4;
    }
    .exp-right { }
    .exp-role {
      font-family: var(--serif);
      font-size: 1.45rem;
      color: var(--white);
      margin-bottom: 0.8rem;
      line-height: 1.1;
    }
    ul.pts { list-style: none; }
    ul.pts li {
      font-size: 0.88rem;
      color: var(--grey);
      font-weight: 300;
      line-height: 1.8;
      padding-left: 1.1rem;
      position: relative;
      margin-bottom: 0.2rem;
    }
    ul.pts li::before {
      content: '—';
      position: absolute; left: 0;
      color: var(--grey3);
    }

    /* ── PROJECTS ── */
    .projects-list { display: flex; flex-direction: column; gap: 0; }
    .proj-item {
      padding: 2rem 0;
      border-bottom: 1px solid var(--border);
      display: grid;
      grid-template-columns: 60px 1fr auto;
      gap: 1.5rem;
      align-items: start;
      cursor: pointer;
      transition: background 0.15s;
      border-radius: 2px;
    }
    .proj-item:first-child { border-top: 1px solid var(--border); }
    .proj-item:hover { background: rgba(255,255,255,0.01); }

    .proj-number {
      font-family: var(--serif);
      font-style: italic;
      font-size: 1.1rem;
      color: var(--grey3);
      padding-top: 0.1rem;
    }
    .proj-main { }
    .proj-title {
      font-family: var(--serif);
      font-size: 1.4rem;
      color: var(--white);
      line-height: 1.15;
      margin-bottom: 0.4rem;
    }
    a.proj-title-link {
      display: inline-block;
      text-decoration: none;
      color: var(--white);
      transition: color 0.2s;
    }
    a.proj-title-link:hover {
      color: var(--grey);
      text-decoration: none;
    }
    .proj-tagline {
      font-size: 0.85rem;
      color: var(--grey);
      font-weight: 300;
      line-height: 1.65;
      margin-bottom: 0.6rem;
    }
    .tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
    .tag {
      font-size: 0.68rem;
      color: var(--grey2);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 0.1rem 0.45rem;
      background: var(--bg2);
    }
    .proj-arrow {
      font-size: 1.2rem;
      color: var(--grey3);
      padding-top: 0.25rem;
      transition: color 0.2s, transform 0.2s;
    }
    .proj-item:hover .proj-arrow { color: var(--white); transform: translate(2px, -2px); }

    /* expand */
    .proj-details {
      grid-column: 2 / 3;
    }
    .proj-details-inner { padding-top: 1rem; }
    ul.proj-pts { list-style: none; }
    ul.proj-pts li {
      font-size: 0.85rem;
      color: var(--grey);
      font-weight: 300;
      padding-left: 1.1rem;
      position: relative;
      margin-bottom: 0.25rem;
      line-height: 1.7;
    }
    ul.proj-pts li::before { content: '—'; position: absolute; left: 0; color: var(--grey3); }
    .proj-link {
      display: inline-block;
      margin-top: 0.8rem;
      margin-right: 1.2rem;
      font-size: 0.78rem;
      color: var(--white);
      border-bottom: 1px solid var(--grey3);
      padding-bottom: 1px;
      transition: border-color 0.2s;
    }
    .proj-link:hover { border-color: var(--white); }



    /* ── SKILLS ── */
    .skills-intro {
      font-size: 1rem;
      color: var(--grey);
      font-weight: 300;
      max-width: 38rem;
      margin-bottom: 3rem;
      line-height: 1.8;
    }
    .skills-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.2rem;
    }
    .sk-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.6rem 1.8rem;
      transition: border-color 0.2s, transform 0.2s;
    }
    .sk-card:hover { border-color: var(--border2); transform: translateY(-2px); }
    .sk-card-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 0.4rem;
    }
    .sk-name {
      font-family: var(--serif);
      font-size: 1.15rem;
      color: var(--white);
    }
    .sk-level {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--grey2);
    }
    .sk-desc {
      font-size: 0.8rem;
      color: var(--grey2);
      font-weight: 300;
      margin-bottom: 0.9rem;
      line-height: 1.6;
    }
    .sk-bar-track {
      height: 2px;
      background: var(--border2);
      border-radius: 999px;
      overflow: hidden;
      margin-bottom: 0.8rem;
    }
    .sk-bar-fill {
      height: 100%;
      background: var(--white);
      width: 0;
      border-radius: 999px;
      transition: width 1.1s cubic-bezier(.22,1,.36,1) 0.2s;
    }
    .sk-card.inview .sk-bar-fill { width: var(--pct); }
    .sk-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
    .sk-tag {
      font-size: 0.68rem;
      color: var(--grey2);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 0.1rem 0.4rem;
    }

    /* ── EDUCATION ── */
    .edu-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }
    .edu-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 2rem;
    }
    .edu-school {
      font-family: var(--serif);
      font-size: 1.6rem;
      color: var(--white);
      margin-bottom: 0.3rem;
      line-height: 1.1;
    }
    .edu-deg {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--grey2);
      margin-bottom: 1rem;
    }
    ul.edu-pts { list-style: none; }
    ul.edu-pts li {
      font-size: 0.85rem; color: var(--grey); font-weight: 300;
      padding-left: 1rem; position: relative; margin-bottom: 0.2rem; line-height: 1.7;
    }
    ul.edu-pts li::before { content: '—'; position: absolute; left: 0; color: var(--grey3); }

    .honors-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 2rem;
    }
    .honors-title {
      font-family: var(--serif);
      font-size: 1.4rem;
      color: var(--white);
      margin-bottom: 1.2rem;
    }
    .honor-item {
      display: flex;
      gap: 0.8rem;
      margin-bottom: 1rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--border);
    }
    .honor-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .honor-mark { color: var(--grey3); font-size: 0.6rem; padding-top: 0.35rem; flex-shrink: 0; }
    .honor-text { }
    .honor-name { font-size: 0.88rem; color: var(--white); margin-bottom: 0.1rem; }
    .honor-desc { font-size: 0.78rem; color: var(--grey2); font-weight: 300; line-height: 1.55; }

    /* ── CONTACT ── */
    #contact { background: var(--bg2); }
    .contact-inner {
      max-width: 52rem;
    }
    .contact-big {
      font-family: var(--serif);
      font-size: clamp(3rem, 7vw, 7rem);
      font-style: italic;
      line-height: 0.95;
      color: var(--white);
      margin-bottom: 1.5rem;
    }
    .contact-sub {
      font-size: 0.95rem;
      color: var(--grey);
      font-weight: 300;
      margin-bottom: 2.5rem;
      line-height: 1.8;
    }
    .contact-btns {
      display: flex; flex-wrap: wrap; gap: 0.7rem;
    }
    .ct-btn {
      display: inline-flex; align-items: center; gap: 0.55rem;
      padding: 0.75rem 1.5rem;
      border-radius: 8px;
      font-size: 0.82rem;
      font-family: var(--sans);
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.18s;
    }
    .ct-btn-white {
      background: var(--white);
      color: var(--bg);
    }
    .ct-btn-white:hover { background: #d4d4d4; }
    .ct-btn-outline {
      background: transparent;
      color: var(--grey);
      border: 1px solid var(--border2);
    }
    .ct-btn-outline:hover { background: var(--bg3); color: var(--white); border-color: var(--grey3); }

    .contact-avail {
      margin-top: 2rem;
      display: flex; align-items: center; gap: 0.6rem;
      font-size: 0.78rem; color: var(--grey2);
    }
    .ca-dot {
      width: 7px; height: 7px; border-radius: 50%;
      background: #4ade80;
      box-shadow: 0 0 8px rgba(74,222,128,0.5);
      animation: pulse 2s infinite;
    }

    /* ── FOOTER ── */
    footer {
      padding: 1.5rem 5rem;
      border-top: 1px solid var(--border);
      display: flex; justify-content: space-between;
      font-size: 0.72rem;
      color: var(--grey3);
      flex-wrap: wrap; gap: 0.5rem;
    }

    /* ── REVEAL ── */
    .rev { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
    .rev.vis { opacity: 1; transform: translateY(0); }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      aside { display: none; }
      main { margin-left: 0; }
      .section { padding: 5rem 2rem; }
      footer { padding: 1.5rem 2rem; }
      .about-grid { grid-template-columns: 1fr; }
      .about-card:first-child { grid-template-columns: 1fr; }
      .exp-item { grid-template-columns: 1fr; gap: 0.5rem; }
      .proj-item { grid-template-columns: 40px 1fr auto; gap: 1rem; }
      .skills-grid { grid-template-columns: 1fr; }
      .edu-grid { grid-template-columns: 1fr; }
    }