:root {
    --bg: #ffffff;
    --bg-alt: #f8f9fb;
    --card-bg: #ffffff;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --text: #1a1a1a;
    --muted: #636a75;
    --accent: #3366ff;
    --accent-soft: rgba(51, 102, 255, 0.12);
    --accent-strong: rgba(51, 102, 255, 0.22);
    --radius-lg: 18px;
    --radius-xl: 22px;
    --shadow-soft: 0 15px 35px rgba(0, 0, 0, 0.06);
    --max-width: 960px;
  }
  
  /* Reset + Global ------------------------------------------------------------ */
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
  }
  
  /* Layout --------------------------------------------------------------------- */
  
  .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 4.5rem 0;
  }
  
  .section.alt {
    background: var(--bg-alt);
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
    margin: 0 0 0.4rem;
  }
  
  .section-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
  }
  
  /* Grid ---------------------------------------------------------------------- */
  
  .grid {
    display: grid;
    gap: 2rem;
  }
  
  .grid.two-col {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  
  @media (max-width: 800px) {
    .grid.two-col {
      grid-template-columns: 1fr;
    }
  }
  
  /* Header + Navigation -------------------------------------------------------- */
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
  }
  
  .logo {
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--text);
    letter-spacing: 0.12em;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
  }
  
  .nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }
  
  .nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-links a {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--muted);
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
  }
  
  .nav-links a:hover {
    color: var(--text);
    background: rgba(0, 0, 0, 0.05);
  }
  
  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.18rem;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
  }
  
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
  }
  
  @media (max-width: 720px) {
    .nav-links {
      position: absolute;
      top: 3.3rem;
      right: 1.5rem;
      flex-direction: column;
      align-items: flex-start;
      background: #ffffff;
      border-radius: 12px;
      padding: 0.75rem;
      border: 1px solid var(--border-subtle);
      box-shadow: var(--shadow-soft);
      display: none;
    }
  
    .nav-links.open {
      display: flex;
    }
  
    .nav-toggle {
      display: flex;
    }
  }
  
  /* Hero ----------------------------------------------------------------------- */
  
  .hero {
    padding: 4.5rem 0 3.5rem;
  }
  
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
  }
  
  @media (max-width: 900px) {
    .hero-inner {
      grid-template-columns: 1fr;
    }
  }
  
  .hero-text h1 {
    font-size: clamp(2.4rem, 4vw, 3rem);
    margin: 0.3rem 0 0.8rem;
  }
  
  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    color: var(--muted);
  }
  
  .accent {
    color: var(--accent);
  }
  
  .hero-subtitle {
    margin: 0 0 1.4rem;
    color: var(--muted);
    max-width: 34rem;
    line-height: 1.6;
  }
  
  /* Buttons -------------------------------------------------------------------- */
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border 0.15s ease,
      transform 0.1s ease;
  }
  
  .btn.primary {
    background: var(--accent);
    color: #ffffff;
  }
  
  .btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
  }
  
  .btn.ghost {
    background: transparent;
    border-color: var(--border-subtle);
    color: var(--text);
  }
  
  .btn.ghost:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  /* Hero Card ------------------------------------------------------------------ */
  
  .hero-card-inner {
    border-radius: var(--radius-xl);
    padding: 1.4rem 1.2rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
  }
  
  /* Pills ---------------------------------------------------------------------- */
  
.pill-list li {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-subtle);
  }

  .education-layout {
    display: block;
  }

  .education-card {
    background: var(--card-bg);
    padding: 1.6rem 1.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
  }

  .education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
  }

  .education-card h3 {
    margin: 0;
    font-size: 1.2rem;
  }

  .education-degree {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.98rem;
  }

  .education-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-strong);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .education-details {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.65;
  }

  .education-details li + li {
    margin-top: 0.5rem;
  }

  .pill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
  }

  .education-subsection {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-subtle);
  }

  .education-subsection h4 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 0.98rem;
  }

  .education-honors {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.6;
  }

  .education-honors li + li {
    margin-top: 0.45rem;
  }

  @media (max-width: 600px) {
    .education-header {
      flex-direction: column;
    }
  }
  
  /* Cards ---------------------------------------------------------------------- */
  
  .card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
  }
  
  .card h3 {
    margin-top: 0.1rem;
    margin-bottom: 0.4rem;
  }
  
  .card-tagline {
    color: var(--muted);
  }
  
  .card-text {
    color: var(--muted);
  }
  
  .tag-list li {
    background: var(--accent-soft);
    border: 1px solid var(--accent-strong);
  }
  
  .card-link {
    color: var(--accent);
  }
  
  /* Research Timeline ---------------------------------------------------------- */
  
  .timeline-item {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
  }
  
  .timeline-meta {
    color: var(--muted);
  }
  
  /* Achievements --------------------------------------------------------------- */
  
  .achievement-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
  }
  
  .achievement-card ul {
    color: var(--muted);
  }
  
  /* Resume --------------------------------------------------------------------- */
  
  .resume-section {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
  }
  
  /* Contact -------------------------------------------------------------------- */
  
  .contact-list a {
    color: var(--accent);
  }
  
  /* Footer ---------------------------------------------------------------------- */
  
  .site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.2rem 0 1.7rem;
    background: #fafafa;
  }
  
  .footer-inner {
    color: var(--muted);
  }
  
  /* =================================================================== */
  /* ================= EXPERIENCE SECTION =============================== */
  /* =================================================================== */
  
  .exp-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
  }
  
  .exp-entry {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 1.5rem;
  }
  
  .exp-marker {
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 10px;
  }
  
  .exp-card {
    padding: 1.6rem 1.4rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
  }
  
  .exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .exp-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .exp-date {
    font-size: 0.95rem;
    color: var(--muted);
  }
  
  .exp-company {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
  }
  
  .exp-company:hover {
    text-decoration: underline;
  }
  
  .exp-desc {
    margin-top: 0.9rem;
    margin-bottom: 0;
    padding-left: 1.2rem;
    line-height: 1.6;
    color: var(--muted);
    font-size: 0.95rem;
  }

  .exp-desc li + li {
    margin-top: 0.45rem;
  }

  
  @media (max-width: 600px) {
    .exp-entry {
      grid-template-columns: 18px 1fr;
    }
  }

  /* Project grid layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
  }
  
  /* Card body spacing */
  .card-body {
    padding: 1.6rem 1.4rem;
  }
  
  /* Card footer */
  .card-footer {
    padding: 1rem 1.4rem;
    border-top: 1px solid var(--border-subtle);
  }
  
  /* Tag list */
  .tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem 0 0;
    padding: 0;
  }
  
  .tag-list li {
    background: var(--accent-soft);
    border: 1px solid var(--accent-strong);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--accent);
  }

  
/* =====================
   RESEARCH (TIMELINE)
   ===================== */
   .timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .timeline-item {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.6rem 1.4rem;     /* ← missing */
  }
  
  .timeline-item h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.25rem;
  }
  
  .timeline-meta {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: block;
  }
  
.timeline-item p {
    line-height: 1.6;
    color: var(--muted);
  }

/* =====================
   PUBLICATIONS
   ===================== */
  .publication-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .publication-card {
    background: var(--card-bg);
    padding: 1.6rem 1.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
  }

  .publication-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
  }

  .publication-status {
    margin: 0 0 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--accent);
  }

  .publication-card h3 {
    margin: 0;
    font-size: 1.2rem;
  }

  .publication-year {
    color: var(--muted);
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .publication-meta {
    margin: 0.85rem 0 0.45rem;
    color: var(--muted);
    font-size: 0.95rem;
  }

  .publication-summary {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
  }

  .publication-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
  }

  .publication-link:hover {
    text-decoration: underline;
  }

  @media (max-width: 600px) {
    .publication-header {
      flex-direction: column;
    }
  }

/* =====================
   ACHIEVEMENTS
   ===================== */
   .achievement-grid {
    display: grid;
    gap: 2rem;
  }
  
  .achievement-card {
    background: var(--card-bg);
    padding: 1.6rem 1.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
  }
  
  .achievement-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
  }
  
  .achievement-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
  }
  
