  :root {
    --white: #fefdfb;
    --paper: #f8f6f2;
    --ivory: #f0ede6;
    --ink: #1a1832;
    --indigo: #2d2b5e;
    --indigo-light: #4a47a0;
    --lavender: #6e6ab5;
    --text: #3a3750;
    --text-light: #706c82;
    --text-faint: #a09cad;
    --rule: rgba(26, 24, 50, 0.08);
    --rule-dark: rgba(26, 24, 50, 0.15);
    --accent-bg: rgba(45, 43, 94, 0.04);
    --serif: 'Cormorant Garamond', 'Georgia', serif;
    --sans: 'Source Sans 3', 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', monospace;
  }

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

  body {
    font-family: var(--sans);
    font-size: 17px;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  ::selection {
    background: var(--indigo);
    color: var(--white);
  }

  /* --- NAV --- */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s;
  }

  nav.scrolled {
    background: rgba(254, 253, 251, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
  }

  .nav-logo {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
  }

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

  .nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--indigo);
    transition: width 0.3s ease;
  }

  .nav-links a:hover { color: var(--indigo); }
  .nav-links a:hover::after { width: 100%; }

  /* --- HERO --- */
  .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 3rem 4rem;
    max-width: 1180px;
    margin: 0 auto;
  }

  .hero-left {
    position: relative;
  }

  .hero-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lavender);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.15s;
  }

  .hero h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 5.8vw, 4.6rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--ink);
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.3s;
  }

  .hero h1 em {
    font-style: italic;
    color: var(--indigo-light);
  }

  .hero-bio {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 1.75rem;
    max-width: 460px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.45s;
  }

  .hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2.25rem;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.6s;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
  }

  .btn-primary {
    background: var(--indigo);
    color: var(--white);
  }

  .btn-primary:hover {
    background: var(--indigo-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 43, 94, 0.2);
  }

  .btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--rule-dark);
  }

  .btn-outline:hover {
    border-color: var(--indigo);
    color: var(--indigo);
    transform: translateY(-2px);
  }

  /* hero right: research card */
  .hero-right {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.5s;
  }

  .research-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 2.25rem;
    position: relative;
  }

  .research-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, var(--indigo), var(--lavender));
    border-radius: 0 0 3px 3px;
  }

  .rc-label {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1.25rem;
  }

  .rc-title {
    font-family: var(--serif);
    font-size: 1.62rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 0.6rem;
  }

  .rc-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .rc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
  }

  .rc-stat-num {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--indigo);
    line-height: 1;
  }

  .rc-stat-label {
    font-size: 0.7rem;
    color: var(--text-faint);
    margin-top: 0.3rem;
    letter-spacing: 0.02em;
  }

  /* --- SECTION SHARED --- */
  section {
    padding: 5.5rem 3rem;
    max-width: 1180px;
    margin: 0 auto;
  }

  .section-rule {
    width: 100%;
    height: 1px;
    background: var(--rule);
    max-width: 1180px;
    margin: 0 auto;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .section-eyebrow {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lavender);
    margin-bottom: 0.75rem;
  }

  .section-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 1.02rem;
    font-weight: 300;
    color: var(--text-light);
    margin-top: 0.6rem;
    max-width: 520px;
    line-height: 1.7;
  }

  /* --- EXPERIENCE --- */
  .experience-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--rule);
  }

  .exp-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
  }

  .exp-period {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    padding-top: 0.25rem;
  }

  .exp-role {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
  }

  .exp-org {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-light);
    margin-top: 0.15rem;
  }

  .exp-focus {
    margin-top: 0.95rem;
  }

  .exp-focus-title {
    font-family: var(--mono);
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lavender);
    margin-bottom: 0.45rem;
  }

  .exp-bullets {
    margin-left: 1.15rem;
    display: grid;
    gap: 0.35rem;
  }

  .exp-bullets.standalone {
    margin-top: 0.8rem;
  }

  .exp-bullets li {
    font-size: 0.94rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
  }

  .exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 1rem;
  }

  .exp-tag {
    font-family: var(--mono);
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    background: rgba(45, 43, 94, 0.06);
    color: var(--text-faint);
  }

  /* --- PUBLICATIONS --- */
  .pubs-list {
    display: flex;
    flex-direction: column;
  }

  .pub-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--rule);
    transition: background 0.3s;
    align-items: start;
  }

  .pub-item:first-child {
    border-top: 1px solid var(--rule);
  }

  .pub-item:hover {
    background: var(--accent-bg);
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pub-year-venue {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .pub-year {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-faint);
  }

  .pub-venue-tag {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    width: fit-content;
  }

  .pub-venue-tag.published {
    background: rgba(45, 43, 94, 0.08);
    color: var(--indigo);
  }

  .pub-venue-tag.review {
    background: var(--ivory);
    color: var(--text-faint);
  }

  .pub-content {}

  .pub-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
  }

  .pub-authors {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.55;
  }

  .pub-authors strong {
    color: var(--indigo);
    font-weight: 600;
  }

  .pub-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    align-items: center;
  }

  .pub-meta-tag {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--lavender);
    font-weight: 500;
  }

  /* --- RESEARCH AREAS --- */
  .research-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .ra-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
  }

  .ra-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo), var(--lavender));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
  }

  .ra-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 24, 50, 0.06);
    border-color: rgba(45, 43, 94, 0.12);
  }

  .ra-card:hover::after { transform: scaleX(1); }

  .ra-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(45, 43, 94, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--indigo);
  }

  .ra-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
  }

  .ra-desc {
    font-size: 0.93rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  .ra-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .ra-kw {
    font-family: var(--mono);
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    background: rgba(45, 43, 94, 0.05);
    color: var(--text-faint);
    letter-spacing: 0.02em;
  }

  /* --- PROJECTS --- */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .proj-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.35s ease;
  }

  .proj-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(26, 24, 50, 0.06);
    border-color: rgba(45, 43, 94, 0.12);
  }

  .proj-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
  }

  .proj-tag {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
  }

  .proj-tag.industry { background: rgba(45, 43, 94, 0.08); color: var(--indigo); }
  .proj-tag.course { background: var(--ivory); color: var(--text-light); }

  .proj-year {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-faint);
  }

  .proj-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .proj-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  .proj-outcome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--indigo);
    font-weight: 500;
    margin-bottom: 1rem;
  }

  .proj-outcome::before {
    content: '→';
    color: var(--lavender);
  }

  .proj-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--rule);
  }

  .proj-chip {
    font-family: var(--mono);
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    background: rgba(45, 43, 94, 0.04);
    color: var(--text-faint);
  }

  /* --- CV DOWNLOAD STRIP --- */
  .cv-strip {
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }

  .cv-strip-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cv-strip-text {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
  }

  .cv-strip-text span {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-light);
    display: block;
    margin-top: 0.25rem;
    font-family: var(--sans);
  }

  /* --- EDUCATION --- */
  .edu-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .edu-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
  }

  .edu-item:first-child { border-top: 1px solid var(--rule); }

  .edu-period {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    padding-top: 0.2rem;
  }

  .edu-school {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.2rem;
  }

  .edu-degree {
    font-size: 0.96rem;
    color: var(--text-light);
    font-weight: 300;
  }

  .edu-detail {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--lavender);
    font-weight: 500;
    margin-top: 0.4rem;
  }

  /* --- AWARDS --- */
  .awards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
  }

  .award-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s;
  }

  .award-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 24, 50, 0.05);
  }

  .award-year {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
  }

  .award-name {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.35rem;
    line-height: 1.3;
  }

  .award-org {
    font-size: 0.82rem;
    color: var(--lavender);
    font-weight: 500;
    margin-bottom: 0.5rem;
  }

  .award-desc {
    font-size: 0.91rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.65;
  }

  /* --- CONTACT --- */
  .contact-section {
    text-align: center;
    padding: 6rem 3rem 3rem;
  }

  .contact-section .section-eyebrow {
    margin-bottom: 0.75rem;
  }

  .contact-section .section-title {
    margin-bottom: 0.75rem;
  }

  .contact-desc {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
    max-width: 440px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
  }

  .contact-pills {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .c-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    border: 1px solid var(--rule-dark);
    background: var(--white);
    transition: all 0.3s;
  }

  .c-pill:hover {
    border-color: var(--indigo);
    color: var(--indigo);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(45, 43, 94, 0.1);
  }

  .c-pill svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  /* --- FOOTER --- */
  footer {
    text-align: center;
    padding: 2rem 3rem 2.5rem;
    border-top: 1px solid var(--rule);
  }

  .footer-line {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-faint);
    letter-spacing: 0.04em;
  }

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

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

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* --- RESPONSIVE --- */
  @media (max-width: 960px) {
    nav {
      padding: 0.9rem 1.5rem;
      align-items: flex-start;
      flex-direction: column;
      gap: 0.65rem;
    }
    .nav-links { flex-wrap: wrap; gap: 1rem; }
    .hero {
      grid-template-columns: 1fr;
      gap: 2.5rem;
      padding: 7rem 1.5rem 3rem;
      min-height: auto;
    }
    section { padding: 4rem 1.5rem; }
    .research-areas { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .cv-strip-inner { padding: 2rem 1.5rem; flex-direction: column; gap: 1rem; text-align: center; }
    .exp-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .edu-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .awards-grid { grid-template-columns: 1fr; }
    .contact-section { padding: 4rem 1.5rem 2.5rem; }
  }

  @media (max-width: 600px) {
    .nav-links { gap: 1.25rem; }
    .nav-links a { font-size: 0.72rem; }
    .hero-actions { flex-direction: column; }
    .btn { justify-content: center; }
    .rc-stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .pub-item { grid-template-columns: 1fr; gap: 0.6rem; }
  }
