  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

  :root {
    --primary: #0000C4;
    --primary-soft: #3333d8;
    --primary-glow: rgba(0,0,196,0.07);
    --primary-10: rgba(0,0,196,0.06);
    --primary-20: rgba(0,0,196,0.12);
    --gray-50: #f7f8fb;
    --gray-100: #eef0f5;
    --gray-200: #dde1ea;
    --gray-300: #a0a7b8;
    --gray-400: #727a90;
    --gray-500: #515972;
    --gray-700: #2d3348;
    --gray-900: #111318;
    --white: #ffffff;
    --accent-warm: #D20F39;
    --accent-gold: #c59a1a;
    --sidebar-bg: #f4f5f9;
  }

  /* ===== DARK THEME ===== */
  [data-theme="dark"] {
    --primary: #4d6dff;
    --primary-soft: #7b8fff;
    --primary-glow: rgba(77,109,255,0.07);
    --primary-10: rgba(77,109,255,0.06);
    --primary-20: rgba(77,109,255,0.12);
    --gray-50: #131318;
    --gray-100: #25252e;
    --gray-200: #2a2a35;
    --gray-300: #55556a;
    --gray-400: #8b8b9a;
    --gray-500: #8b8b9a;
    --gray-700: #c8c8d0;
    --gray-900: #e8e8ed;
    --white: #09090b;
    --accent-warm: #f87171;
    --accent-gold: #fb923c;
    --sidebar-bg: #111115;
  }
  [data-theme="dark"] .ab-card-front,
  [data-theme="dark"] .ab-card-back { background: #1a1a22; border-color: var(--gray-200); }
  [data-theme="dark"] .hiring { background: rgba(77,109,255,0.06); border-color: rgba(77,109,255,0.2); }
  [data-theme="dark"] .h-tag { background: #1a1a22; border-color: rgba(77,109,255,0.2); }
  [data-theme="dark"] .year-count { background: #1a1a22; border-color: var(--gray-200); }
  [data-theme="dark"] .year-venue-tag { background: #1a1a22; }
  [data-theme="dark"] .fw-link { background: #1a1a22; }
  [data-theme="dark"] .stat-card { background: #1a1a22; }
  [data-theme="dark"] .kw, [data-theme="dark"] .kw-tag { background: #1a1a22; }
  [data-theme="dark"] .chat-panel { background: #131318; border-color: var(--gray-200); }
  [data-theme="dark"] .chat-header { background: #1a1a22; }
  [data-theme="dark"] .chat-input { background: #1a1a22; color: var(--gray-900); }
  [data-theme="dark"] .chat-msg.bot { background: #1a1a22; }
  [data-theme="dark"] .hero-geo { border-color: rgba(77,109,255,0.15); }
  [data-theme="dark"] .hero-geo-2 { background: rgba(77,109,255,0.08); }
  [data-theme="dark"] #topic-benchmark { --topic-color: #60a5fa !important; }
  [data-theme="dark"] #topic-benchmark .topic-num { background: rgba(96,165,250,0.1) !important; color: #60a5fa !important; }
  [data-theme="dark"] #topic-benchmark .topic-title { color: #60a5fa !important; }
  [data-theme="dark"] .pub-cat.cat-bench { --cat-color: #60a5fa; background: rgba(96,165,250,0.08); border-color: rgba(96,165,250,0.2); }
  [data-theme="dark"] .pub-cat.cat-se { background: rgba(232,93,4,0.08); border-color: rgba(232,93,4,0.2); }
  [data-theme="dark"] .pub-cat.cat-fm { background: rgba(13,148,136,0.08); border-color: rgba(13,148,136,0.2); }
  [data-theme="dark"] .pub-cat.cat-seai { background: rgba(147,51,234,0.08); border-color: rgba(147,51,234,0.2); }
  [data-theme="dark"] .pub-grid .pc-n { background: rgba(255,255,255,0.08); }
  [data-theme="dark"] .pub-grid .kw { background: rgba(255,255,255,0.05); }

  /* ===== THEME TOGGLE ===== */
  .theme-toggle {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem; margin: 0.75rem auto 0;
    padding: 0.45rem 1.2rem; border-radius: 24px;
    background: rgba(0,0,196,0.08); border: 1.5px solid rgba(0,0,196,0.2);
    cursor: pointer; transition: all 0.3s;
    font-size: 0.8rem; font-weight: 600; color: #5566aa;
    width: fit-content; letter-spacing: 0.3px;
  }
  .theme-toggle:hover { opacity: 0.85; transform: scale(1.05); }
  .theme-toggle .t-icon { font-size: 1.1rem; transition: transform 0.4s; }
  .theme-toggle:hover .t-icon { transform: rotate(45deg); }

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

  body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--gray-700); background: var(--white);
    line-height: 1.6; font-size: 16px;
    -webkit-font-smoothing: antialiased;
    zoom: 1.25;
  }

  a { color: var(--primary); text-decoration: none; }
  a:hover { text-decoration: underline; }
  strong { font-weight: 600; }

  /* ===== LAYOUT ===== */
  .page { display: flex; min-height: 100vh; }

  /* ===== SIDEBAR (light) ===== */
  .sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--sidebar-bg);
    color: var(--gray-700);
    position: fixed; top: 0; bottom: 0; left: 0;
    overflow-y: auto; z-index: 10;
    display: flex; flex-direction: column;
    padding: 2.5rem 1.5rem 1.5rem;
    border-right: 1px solid var(--gray-100);
  }
  .sidebar::-webkit-scrollbar { width: 0; }

  .s-avatar {
    width: 140px; height: 140px; border-radius: 50%;
    object-fit: cover; display: block; margin: 0 auto 1rem;
    border: 3px solid var(--gray-200);
    transition: border-color 0.3s;
  }
  .s-avatar:hover { border-color: var(--primary); }
  .s-name {
    text-align: center; font-size: 1.35rem; font-weight: 700;
    color: var(--gray-900); letter-spacing: -0.3px; margin-bottom: 0.25rem;
  }
  .s-role { text-align: center; font-size: 0.82rem; color: var(--gray-700); margin-bottom: 1.25rem; line-height: 1.5; }
  .s-divider { height: 1px; background: var(--gray-200); margin: 0.75rem 0; }

  .s-nav { list-style: none; flex: 1; }
  .s-nav li { margin-bottom: 1px; }
  .s-nav a {
    display: block; padding: 0.45rem 0.75rem; border-radius: 6px;
    font-size: 0.82rem; font-weight: 500; color: var(--gray-700);
    text-decoration: none; transition: all 0.15s;
  }
  .s-nav a:hover { color: var(--gray-900); background: var(--gray-200); text-decoration: none; }
  .s-nav a.active { color: var(--white); background: var(--primary); }

  .s-links {
    padding-top: 0.75rem; border-top: 1px solid var(--gray-200);
    display: flex; flex-direction: column; gap: 0.2rem;
  }
  .s-links a {
    font-size: 0.8rem; color: var(--gray-700); text-decoration: none;
    padding: 0.2rem 0; transition: color 0.15s;
  }
  .s-links a:hover { color: var(--primary); text-decoration: none; }

  /* ===== MAIN ===== */
  .main { margin-left: 240px; flex: 1; max-width: 52vw; }

  /* ===== HERO (light) ===== */
  .hero {
    background: var(--white);
    padding: 2.5rem 2.5rem 2rem;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
  }
  .hero-content { max-width: 100%; position: relative; }
  .hero-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem; font-weight: 500; letter-spacing: 2px;
    text-transform: uppercase; color: var(--primary);
    margin-bottom: 0.6rem; display: inline-block;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.15rem;
    min-width: 280px; min-height: 1.1em;
  }
  .hero h1 {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; cursor: default;
    line-height: 1.25; margin-bottom: 0.85rem; color: var(--gray-900);
  }
  .hero h1 .line { display: block; }
  .hero h1 .hl {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  .hero p { font-size: 0.95rem; color: var(--gray-500); line-height: 1.7; }
  .hero-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1rem; }
  .hero-tag {
    font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.7rem;
    background: var(--primary-10); color: var(--primary);
    border: 1px solid var(--primary-20);
    border-radius: 20px; letter-spacing: 0.2px; text-transform: uppercase;
  }
  /* geometric accent */
  .hero-geo {
    position: absolute; right: -20px; top: -10px;
    width: 120px; height: 120px;
    border: 2px solid var(--primary-20);
    border-radius: 50%; opacity: 0.5;
    pointer-events: none;
  }
  .hero-geo-2 {
    position: absolute; right: 30px; bottom: 0;
    width: 60px; height: 60px;
    background: var(--primary-10);
    transform: rotate(45deg); opacity: 0.4;
    pointer-events: none;
  }

  /* ===== BIO ===== */
  .intro { font-size: 0.92rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 0.75rem; }
  .intro a { color: var(--primary); text-decoration: none; }
  .intro a:hover { text-decoration: underline; }

  /* ===== AWARDS BANNER ===== */
  .awards-banner {
    display: flex; gap: 0; padding: 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
  }
  .ab-card {
    flex: 1; height: 60px;
  }
  .ab-card-inner {
    position: relative; width: 100%; height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
  }
  .ab-card:hover .ab-card-inner { transform: rotateX(-90deg); }
  .ab-card-front, .ab-card-back {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 1rem; border-radius: 10px;
    border: 1px solid var(--gray-200); background: var(--white);
  }
  .ab-card-front { transform: rotateX(0deg) translateZ(30px); }
  .ab-card-back {
    transform: rotateX(90deg) translateZ(30px);
    background: var(--gray-50); justify-content: center;
  }
  .ab-icon { font-size: 1.4rem; flex-shrink: 0; }
  .ab-text strong { font-size: 0.82rem; color: var(--gray-900); line-height: 1.35; }
  .ab-back-text { font-size: 0.78rem; color: var(--gray-500); text-align: center; line-height: 1.5; }

  /* ===== CONTENT SECTIONS ===== */
  .sec {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--gray-100);
  }
  .sec:last-child { border-bottom: none; }
  .sec.alt { background: var(--gray-50); }

  .sec-head {
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 1.15rem;
  }
  .sec-bar {
    width: 4px; height: 20px; border-radius: 2px;
    background: var(--primary); flex-shrink: 0;
  }
  .sec-title {
    font-size: 1.1rem; font-weight: 700; letter-spacing: -0.2px;
    color: var(--gray-900);
  }
  .sec-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem; color: var(--gray-400);
    background: var(--gray-100); padding: 0.15rem 0.5rem;
    border-radius: 10px; margin-left: auto;
  }

  /* ===== HIRING ===== */
  .hiring {
    border-radius: 10px; padding: 1.35rem 1.5rem;
    background: rgba(0,0,196,0.06); border: 1px solid rgba(0,0,196,0.12);
    color: var(--gray-700); width: 100%; box-sizing: border-box;
  }
  .hiring h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--primary); }
  .hiring p, .hiring li { font-size: 0.88rem; color: var(--gray-500); }
  .hiring ul { margin-left: 1.2em; margin-bottom: 0.4rem; }
  .hiring-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }
  .h-tag {
    font-size: 0.72rem; font-weight: 600; padding: 0.22rem 0.65rem;
    border: 1px solid rgba(0,0,196,0.15); border-radius: 20px;
    color: var(--primary); text-transform: uppercase; letter-spacing: 0.3px;
    background: var(--white);
  }
  .hiring-sub { font-size: 0.85rem; font-weight: 600; color: var(--gray-900); margin-top: 0.6rem; margin-bottom: 0.2rem; }

  /* ===== NEWS ===== */
  .news-item {
    display: flex; gap: 0.75rem; padding: 0.4rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.88rem; align-items: flex-start;
  }
  .news-item:last-child { border-bottom: none; }
  .n-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem; color: var(--gray-400);
    min-width: 72px; flex-shrink: 0; padding-top: 0.1rem;
  }
  .news-item strong { color: var(--gray-900); }
  .n-hl { color: var(--accent-warm); font-weight: 600; }

  /* ===== FEATURED WORKS (chatgpt style) ===== */
  .fw-list { display: flex; flex-direction: column; gap: 10px; }
  .fw {
    display: flex; gap: 14px; padding: 12px 16px;
    border-radius: 8px; background: var(--gray-50);
    transition: background 0.15s;
  }
  .fw:hover { background: var(--gray-100); }
  .fw-venue {
    font-size: 11px; font-weight: 600; color: var(--primary);
    min-width: 56px; flex-shrink: 0; padding-top: 2px;
    text-transform: uppercase; letter-spacing: 0.3px;
  }
  .fw h3 { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
  .fw .fw-meta { font-size: 12.5px; color: var(--gray-500); margin-top: 2px; }
  .fw .fw-meta .me { color: var(--accent-warm); font-weight: 600; }
  .fw .fw-impact { font-size: 11.5px; color: var(--primary); margin-top: 1px; }
  .fw-links { display: flex; gap: 4px; margin-top: 5px; }
  .fw-link { font-size: 11px; color: var(--primary); padding: 2px 8px; border-radius: 4px; background: var(--white); text-decoration: none; border: 1px solid var(--gray-100); transition: all 0.15s; }
  .fw-link:hover { border-color: var(--primary); text-decoration: none; }

  /* ===== PUB CATEGORY CARDS ===== */
  .pub-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1.25rem; }
  .pub-cat {
    padding: 0.75rem 0.85rem; border-radius: 8px;
    border: 1px solid var(--gray-200); background: var(--white);
    transition: all 0.2s; position: relative; overflow: hidden;
    cursor: default;
  }
  .pub-cat:hover {
    border-color: var(--cat-color, var(--primary));
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }
  .pub-cat::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--cat-color, var(--primary));
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
  }
  .pub-cat:hover::before { transform: scaleX(1); }
  .pc-name { font-size: 0.82rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.1rem; }
  .pc-n { font-size: 0.72rem; color: var(--gray-400); }
  .pc-kw {
    display: flex; flex-wrap: wrap; gap: 0.2rem;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: all 0.25s; margin-top: 0;
  }
  .pub-cat:hover .pc-kw { max-height: 50px; opacity: 1; margin-top: 0.4rem; }
  .kw {
    font-size: 0.62rem; font-weight: 500; padding: 0.1rem 0.4rem;
    border-radius: 3px; background: var(--gray-50); color: var(--gray-500);
    border: 1px solid var(--gray-100); transition: all 0.2s;
  }
  .pub-cat:hover .kw { border-color: var(--cat-color, var(--primary)); color: var(--cat-color, var(--primary)); }
  .pub-cat.c1 { --cat-color: #0000C4; background: rgba(0,0,196,0.05); border-color: rgba(0,0,196,0.15); }
  .pub-cat.c2 { --cat-color: #c2410c; background: rgba(194,65,12,0.05); border-color: rgba(194,65,12,0.15); }
  .pub-cat.c3 { --cat-color: #0d7c5f; background: rgba(13,124,95,0.05); border-color: rgba(13,124,95,0.15); }
  .pub-cat.c4 { --cat-color: #6d28d9; background: rgba(109,40,217,0.05); border-color: rgba(109,40,217,0.15); }

  /* chatgpt-style colorful pub cats */
  .pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
  .pub-cat.cat-bench { --cat-color: #0000C4; background: #eef0ff; border-color: #a0a8ff; }
  .pub-cat.cat-se { --cat-color: #bf616a; background: #fceced; border-color: #dfc4c7; }
  .pub-cat.cat-fm { --cat-color: #34d399; background: #eefcf6; border-color: #a0e8ce; }
  .pub-cat.cat-seai { --cat-color: #4d6dff; background: #eef2ff; border-color: #a5b8ff; }
  .pub-grid .pc-name { color: var(--cat-color); }
  .pub-grid .pc-n { color: var(--cat-color); font-weight: 600; background: rgba(255,255,255,0.7); padding: 1px 8px; border-radius: 10px; }
  .pub-grid .pc-head { position: relative; padding-left: 18px; }
  .pub-grid .pc-head::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--cat-color); border-radius: 0 2px 2px 0;
  }
  .pub-grid .kw { background: rgba(255,255,255,0.65); color: var(--cat-color); }

  /* ===== CITATION BADGE ===== */
  .cite-badge { margin: 0.6rem 0 1rem; }
  .cite-badge img { height: 22px; }

  /* ===== YEAR BLOCKS ===== */
  .year-block {
    margin-bottom: 3px; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: border-color 0.2s;
  }
  .year-block:hover { border-color: var(--gray-200); }
  .year-header {
    display: flex; align-items: center; padding: 0.5rem 0.85rem;
    cursor: pointer; user-select: none;
    background: var(--gray-50); transition: background 0.15s;
    position: relative; gap: 0.5rem;
  }
  .year-header:hover { background: var(--gray-100); }
  .year-label {
    font-size: 0.95rem; font-weight: 700; color: var(--gray-900);
    min-width: 100px;
  }
  .year-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem; color: var(--gray-400);
    background: var(--white); border: 1px solid var(--gray-200);
    padding: 0.1rem 0.45rem; border-radius: 10px;
  }
  .year-venues {
    display: flex; gap: 0.25rem; flex-wrap: wrap;
    opacity: 0; transition: opacity 0.25s;
    margin-left: 0.4rem;
  }
  .year-header:hover .year-venues { opacity: 1; }
  .year-venue-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem; font-weight: 500; padding: 0.1rem 0.4rem;
    border-radius: 3px; background: var(--white); color: var(--primary);
    border: 1px solid rgba(0,0,196,0.12);
  }
  .year-arrow {
    font-size: 0.7rem; color: var(--gray-400); transition: transform 0.2s;
    margin-left: auto;
  }
  .year-block.open .year-arrow { transform: rotate(90deg); }
  .year-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
  .year-block.open .year-body { max-height: 5000px; }
  .year-body-inner { padding: 0.4rem 0.85rem 0.65rem; }
  .pub-item {
    padding: 0.35rem 0; border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem; line-height: 1.55;
  }
  .pub-item:last-child { border-bottom: none; }
  .pub-item a { font-size: 0.78rem; }
  .me { color: var(--accent-warm); font-weight: 600; }

  /* ===== STATS ROW ===== */
  .stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem;
    margin-bottom: 1.25rem;
  }
  .stat-card {
    text-align: center; padding: 0.85rem;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 8px;
  }
  .stat-num { font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1; }
  .stat-label { font-size: 0.7rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 0.2rem; }

  /* ===== AWARDS LIST ===== */
  .awards-list { list-style: none; }
  .awards-list li {
    padding: 0.35rem 0; border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
  }
  .awards-list li:last-child { border-bottom: none; }

  /* ===== TIMELINE ===== */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .col-title {
    font-size: 0.7rem; font-weight: 700; color: var(--gray-400);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem; border-bottom: 2px solid var(--primary);
    display: inline-block;
  }
  .tl { padding: 0.3rem 0; }
  .tl + .tl { border-top: 1px solid var(--gray-100); }
  .tl-y { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--primary); }
  .tl-t { font-size: 0.88rem; font-weight: 600; color: var(--gray-900); }
  .tl-d { font-size: 0.8rem; color: var(--gray-500); }

  /* ===== SERVICE ===== */
  .svc-group { margin-bottom: 0.6rem; }
  .svc-label { font-size: 0.82rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.2rem; }
  .svc-body { font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; }
  .svc-body ul { margin-left: 1.2em; }
  .svc-body li { padding: 0.08rem 0; }

  /* ===== LIST ITEMS ===== */
  .list-item {
    display: flex; gap: 0.6rem; padding: 0.35rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem; align-items: flex-start;
  }
  .list-item:last-child { border-bottom: none; }
  .li-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem; color: var(--gray-400);
    min-width: 52px; flex-shrink: 0; padding-top: 0.1rem;
  }

  /* ===== FOOTER ===== */
  .footer {
    padding: 0.85rem 2.5rem; border-top: 1px solid var(--gray-100);
    font-size: 0.75rem; color: var(--gray-400); text-align: center;
  }

  /* ===== MARQUEE ===== */
  .marquee-wrap {
    overflow: hidden; padding: 0.6rem 0;
    border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
  }
  .marquee-track {
    display: flex; gap: 3rem; white-space: nowrap; will-change: transform;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem; font-weight: 500; color: var(--gray-400);
    text-transform: uppercase; letter-spacing: 1.5px;
  }
  .marquee-track span { flex-shrink: 0; }
  .marquee-track .mq-dot { color: var(--primary); }

  /* ===== RESEARCH TOPIC BLOCKS ===== */
  .research-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
    margin-bottom: 20px;
  }
  .research-topic {
    padding: 0; position: relative; overflow: hidden;
    background: transparent; border: none;
    display: flex; flex-direction: column;
  }
  .research-topic-inner {
    padding: 0; display: flex; flex-direction: column; flex: 1;
  }
  .topic-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
  }
  .topic-num {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
    padding: 3px 8px; border-radius: 5px;
  }
  .topic-title {
    font-size: 17px; font-weight: 800; letter-spacing: -0.3px;
  }
  .topic-desc {
    color: var(--gray-400); font-size: 12px; margin-bottom: 12px; line-height: 1.5;
  }

  .topic-animation-box {
    background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: 10px; padding: 16px;
    height: 320px; position: relative; overflow: hidden;
    cursor: pointer; transition: border-color 0.3s;
    width: 100%;
  }
  .topic-animation-box:hover { border-color: var(--primary); }
  #nlToCodeAnim, #acslAnim { display: flex; align-items: center; justify-content: center; }
  #nnBugAnim { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
  #benchmarkAnim { display: flex; flex-direction: column; justify-content: center; }
  .topic-desc { display: none; }
  .topic-papers { display: none; }

  /* NL line */
  .nl-line { opacity: 0; font-size: 13px; line-height: 1.7; color: var(--gray-700); }

  /* ACSL highlight */
  .acsl-line .cm { color: #059669; }
  [data-theme="dark"] .acsl-line .cm { color: #34d399; }

  /* Neural network */
  .nn-node { fill: var(--gray-100); stroke: var(--gray-200); stroke-width: 2; transition: all 0.5s; }
  .nn-node.scanned { fill: rgba(77,109,255,0.15); stroke: #4d6dff; }
  [data-theme="dark"] .nn-node.scanned { fill: rgba(77,109,255,0.15); stroke: #4d6dff; }
  .nn-node.buggy { fill: rgba(248,113,113,0.15); stroke: #f87171; stroke-width: 3; animation: bugPulse 1.5s infinite; }
  [data-theme="dark"] .nn-node.buggy { fill: rgba(248,113,113,0.2); }
  .nn-edge { stroke: var(--gray-200); stroke-width: 1; opacity: 0.3; transition: all 0.4s; }
  .nn-edge.active { stroke: #4d6dff; opacity: 0.6; stroke-width: 1.5; }
  [data-theme="dark"] .nn-edge.active { stroke: #4d6dff; }
  .nn-edge.buggy { stroke: #f87171; opacity: 0.8; stroke-width: 2; }
  .nn-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; fill: var(--gray-400); }
  .nn-status { text-align: center; }
  @keyframes bugPulse { 0%,100%{filter:drop-shadow(0 0 6px rgba(248,113,113,0.4))} 50%{filter:drop-shadow(0 0 14px rgba(248,113,113,0.7))} }
  [data-theme="dark"] .nn-node.buggy { animation: bugPulseDark 1.5s infinite; }
  @keyframes bugPulseDark { 0%,100%{filter:drop-shadow(0 0 6px rgba(248,113,113,0.4))} 50%{filter:drop-shadow(0 0 14px rgba(248,113,113,0.7))} }

  .topic-papers {
    display: flex; flex-direction: column; gap: 4px; flex: 1;
  }
  .topic-paper {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 6px 10px; border-radius: 6px;
    background: var(--gray-50); border: 1px solid transparent;
    transition: border-color 0.2s;
  }
  .topic-paper:hover { border-color: var(--gray-200); }
  .topic-paper .venue {
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600;
    padding: 2px 6px; border-radius: 3px; white-space: nowrap;
    flex-shrink: 0; margin-top: 1px;
  }
  .topic-paper .paper-title {
    font-size: 12px; color: var(--gray-500); line-height: 1.4;
  }
  .topic-paper .paper-title a { color: var(--gray-500); transition: color 0.2s; }
  .topic-paper .paper-title a:hover { color: var(--gray-900); }

  /* Benchmark animation */
  .bench-switcher {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px;
  }
  .bench-btn {
    font-family: 'IBM Plex Mono', monospace; font-size: 12px; padding: 6px 14px;
    border-radius: 8px; border: 1px solid var(--gray-200);
    background: transparent; color: var(--gray-500); cursor: pointer;
    transition: all 0.2s;
  }
  .bench-btn.active, .bench-btn:hover {
    border-color: #60a5fa; color: #60a5fa;
    background: rgba(96,165,250,0.08);
  }
  .bench-row {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
    height: 32px;
  }
  .bench-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  }
  .bench-name {
    font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500;
    width: 90px; flex-shrink: 0; color: var(--gray-500);
  }
  .bench-bar-bg {
    flex: 1; height: 24px; background: var(--gray-100);
    border-radius: 6px; overflow: hidden; position: relative;
  }
  .bench-bar {
    height: 100%; border-radius: 6px; width: 0;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .bench-score {
    font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600;
    width: 48px; text-align: right; flex-shrink: 0; color: var(--gray-700);
  }

  /* Code transform animation */
  .code-transform-container {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch;
  }
  .code-transform-container .code-block { width: 100%; min-width: 0; overflow: hidden; }
  .code-block {
    background: var(--gray-50); border-radius: 10px; padding: 16px;
    font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 1.7;
    overflow: hidden; border: 1px solid var(--gray-200); color: var(--gray-900);
    min-width: 0; flex: 1;
  }
  [data-theme="dark"] .code-block {
    background: #1a1a2e; border-color: #2a2a3a; color: #e8e8ed;
  }
  .code-block .label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 12px; display: block;
  }
  .code-line {
    opacity: 0; white-space: pre;
  }
  .code-arrow {
    display: flex; align-items: center; justify-content: center;
    padding: 0 16px; font-size: 14px; font-family: 'IBM Plex Mono', monospace;
    color: var(--gray-400);
  }
  .code-arrow .arrow-inner {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
  }
  .arrow-line {
    width: 2px; height: 40px; background: var(--gray-200); border-radius: 1px;
  }
  .arrow-text {
    font-size: 11px; font-weight: 600; padding: 6px 12px;
    border-radius: 6px; border: 1px solid var(--gray-200);
    background: var(--gray-50);
    white-space: nowrap;
  }

  /* code syntax keyword colors (prefixed to avoid conflict with .kw tag class) */
  .syn-kw { color: #7c3aed; }
  .fn { color: #2563eb; }
  [data-theme="dark"] .syn-kw { color: #c084fc; }
  [data-theme="dark"] .fn { color: #60a5fa; }
  .str { color: #34d399; }
  .cm { color: #6b7280; }
  .num { color: #d97706; }
  [data-theme="dark"] .cm { color: #55556a; }
  [data-theme="dark"] .num { color: #fb923c; }
  .op { color: #e8e8ed; }
  .err { color: #f87171; text-decoration: line-through; }
  .fix { color: #34d399; }

  /* Pipeline animation */
  .pipeline-container {
    display: flex; align-items: center; justify-content: center;
    gap: 0; padding: 20px 0;
    flex-wrap: wrap;
  }
  .pipeline-node {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: 0.3; transition: opacity 0.5s;
  }
  .pipeline-node.active { opacity: 1; }
  .pipeline-icon {
    width: 64px; height: 64px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; border: 2px solid var(--gray-200);
    background: var(--gray-50); position: relative;
    transition: all 0.5s; color: var(--gray-700);
  }
  .pipeline-node.active .pipeline-icon {
    border-color: #34d399;
    box-shadow: 0 0 20px rgba(52,211,153,0.2);
  }
  .pipeline-label {
    font-size: 12px; font-family: 'IBM Plex Mono', monospace; font-weight: 500;
    color: var(--gray-400); text-align: center; max-width: 100px;
  }
  .pipeline-node.active .pipeline-label { color: #34d399; }
  .pipeline-connector {
    width: 60px; height: 2px; background: var(--gray-200); position: relative;
    flex-shrink: 0; margin: 0 4px;
  }
  .pipeline-connector .connector-glow {
    position: absolute; top: -1px; left: 0; width: 0; height: 4px;
    background: #34d399; border-radius: 2px;
    box-shadow: 0 0 10px #34d399;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Testing grid animation */
  .test-grid-container {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
  }
  .test-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
    width: fit-content;
  }
  .test-cell {
    width: 44px; height: 44px; border-radius: 6px;
    background: var(--gray-100); border: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; opacity: 0.3;
    transition: all 0.4s;
  }
  .test-cell.pass {
    opacity: 1; border-color: rgba(52,211,153,0.3);
    background: rgba(52,211,153,0.06); color: #34d399;
  }
  .test-cell.fail {
    opacity: 1; border-color: rgba(248,113,113,0.3);
    background: rgba(248,113,113,0.06); color: #f87171;
    box-shadow: 0 0 12px rgba(248,113,113,0.15);
  }
  .test-counter {
    font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600;
    display: flex; gap: 24px;
  }
  .test-counter span { color: var(--gray-400); }
  .counter-val { color: var(--gray-900); }
  .counter-bugs { color: #f87171; }

  /* ===== GSAP targets ===== */
  .gsap-fade { opacity: 0; transform: translateY(20px); }
  .gsap-fade-right { opacity: 0; transform: translateX(-20px); }
  .gsap-scale { opacity: 0; transform: scale(0.95); }

  /* ===== GUPPY FISH ===== */
  .guppy-container {
    position: fixed; bottom: 24px; right: 24px; z-index: 99;
    cursor: pointer; transition: transform 0.3s;
  }
  .guppy-container:hover { transform: scale(1.1); }
  .guppy-fish {
    width: 80px; height: 80px;
    animation: fishSwim 3s ease-in-out infinite;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.15));
  }
  @keyframes fishSwim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(-2deg); }
    75% { transform: translateY(3px) rotate(2deg); }
  }
  .guppy-tooltip {
    position: absolute; bottom: 100%; right: 0; margin-bottom: 10px;
    background: #0000C4; color: white;
    font-size: 0.72rem; font-weight: 600; padding: 6px 14px;
    border-radius: 20px; white-space: nowrap;
    pointer-events: none;
    animation: bubble 4s ease-in-out infinite;
  }
  .guppy-tooltip::after {
    content: ''; position: absolute; bottom: -6px; right: 16px;
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #0000C4;
  }
  @keyframes bubble {
    0% { opacity: 0; transform: scale(0.3) translateY(10px); }
    8% { opacity: 1; transform: scale(1.1) translateY(-2px); }
    12% { transform: scale(1) translateY(0); }
    40% { opacity: 1; transform: scale(1) translateY(0); }
    48% { opacity: 0; transform: scale(1.15) translateY(-4px); }
    50% { opacity: 0; transform: scale(0.3) translateY(10px); }
    58% { opacity: 1; transform: scale(1.1) translateY(-2px); }
    62% { transform: scale(1) translateY(0); }
    90% { opacity: 1; transform: scale(1) translateY(0); }
    98% { opacity: 0; transform: scale(1.15) translateY(-4px); }
    100% { opacity: 0; transform: scale(0.3) translateY(10px); }
  }
  [data-theme="dark"] .guppy-tooltip { background: #4d6dff; }
  [data-theme="dark"] .guppy-tooltip::after { border-top-color: #4d6dff; }
  .chat-panel {
    position: fixed; bottom: 90px; right: 24px; z-index: 100;
    width: 340px; max-height: 440px;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: none; flex-direction: column; overflow: hidden;
  }
  .chat-panel.open { display: flex; }
  .chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-bottom: 1px solid var(--gray-100);
    font-size: 0.82rem; font-weight: 600; color: var(--gray-900);
    background: var(--gray-50);
  }
  .chat-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--gray-400); }
  .chat-body { flex: 1; overflow-y: auto; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; max-height: 300px; }
  .chat-msg { font-size: 0.82rem; padding: 0.5rem 0.75rem; border-radius: 10px; max-width: 85%; line-height: 1.5; }
  .chat-msg.user { background: var(--primary-10); color: var(--primary); align-self: flex-end; border: 1px solid var(--primary-20); }
  .chat-msg.bot { background: var(--gray-50); color: var(--gray-700); align-self: flex-start; border: 1px solid var(--gray-100); }
  .chat-typing { font-size: 0.75rem; color: var(--gray-400); padding: 2px 0; }
  .chat-input-row { display: flex; border-top: 1px solid var(--gray-100); }
  .chat-input { flex: 1; border: none; padding: 0.6rem 0.75rem; font-size: 0.82rem; outline: none; background: var(--white); color: var(--gray-900); }
  .chat-send { background: var(--primary); color: var(--white); border: none; padding: 0.6rem 1rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
  .chat-send:hover { opacity: 0.85; }

  /* ===== VISITOR MAP ===== */
  .visitor-stats {
    display: flex; gap: 1.5rem; margin-bottom: 1.25rem;
  }
  .visitor-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 0.75rem 1.5rem; border-radius: 10px;
    background: var(--gray-50); border: 1px solid var(--gray-100);
    flex: 1; max-width: 180px;
  }
  .visitor-num {
    font-size: 1.8rem; font-weight: 700; color: var(--primary);
    line-height: 1.1; font-family: 'IBM Plex Mono', monospace;
  }
  .visitor-label {
    font-size: 0.72rem; color: var(--gray-400); margin-top: 0.25rem;
    font-weight: 500;
  }
  .visitor-map-wrap {
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--gray-100);
    background: var(--gray-50);
  }
  #visitor-map {
    width: 100%; height: 360px;
  }
  .visitor-notice {
    font-size: 0.72rem; color: var(--gray-400); margin-top: 0.5rem;
    font-style: italic;
  }
  [data-theme="dark"] .visitor-stat { background: #1a1a22; border-color: var(--gray-200); }
  [data-theme="dark"] .visitor-map-wrap { border-color: var(--gray-200); background: #1a1a22; }

  /* ===== RESPONSIVE ===== */
  /* ===== TABLET & MOBILE (top-down layout) ===== */
  @media (max-width: 900px) {
    body { zoom: 1; }
    .page { flex-direction: column; }

    /* Sidebar → top header card */
    .sidebar {
      position: relative; width: 100%;
      flex-direction: row; flex-wrap: wrap;
      align-items: center; justify-content: center;
      padding: 1.25rem 1.5rem;
      border-right: none; border-bottom: 1px solid var(--gray-100);
      gap: 0.75rem;
    }
    .s-avatar { width: 72px; height: 72px; margin: 0; flex-shrink: 0; }
    .s-name { text-align: left; font-size: 1.1rem; width: auto; margin-bottom: 0; }
    .s-role { text-align: left; font-size: 0.72rem; margin-bottom: 0; width: auto; }
    /* Name + role group */
    .sidebar > .s-name,
    .sidebar > .s-role { flex-basis: auto; }
    .s-nav { display: none; }
    .s-divider { display: none; }
    .theme-toggle { order: 10; margin: 0; }
    .s-links {
      order: 11; width: 100%;
      flex-direction: row; flex-wrap: wrap;
      gap: 0.6rem; justify-content: center;
      padding-top: 0.5rem; border-top: 1px solid var(--gray-100);
      font-size: 0.75rem;
    }

    /* Main → full width */
    .main { margin-left: 0 !important; max-width: 100% !important; }
    .hero, .sec { padding-left: 1.25rem; padding-right: 1.25rem; }
    .hero h1 { font-size: 1.15rem; }
    .hero-geo, .hero-geo-2 { display: none; }
    .marquee-wrap { display: none; }

    .awards-banner { padding: 0.75rem 1rem; flex-direction: column; gap: 0.5rem; }
    .ab-card { height: auto; perspective: none; }
    .ab-card-inner { transform-style: flat; }
    .ab-card:hover .ab-card-inner { transform: none; }
    .ab-card-front { position: relative; transform: none; }
    .ab-card-back { display: none; }
    .fw { flex-direction: column; gap: 0.25rem; }
    .fw-venue { min-width: auto; }
    .pub-grid { grid-template-columns: 1fr; }
    .research-grid { grid-template-columns: 1fr; }
    .topic-animation-box { height: auto; overflow: hidden; width: 100% !important; max-width: 100%; }
    .code-transform-container { grid-template-columns: 1fr; width: 100%; max-width: 100%; }
    .code-block { overflow-x: auto; max-width: 100%; width: auto !important; }
    .code-line { white-space: pre-wrap; word-break: break-word; }
    .nl-line { white-space: normal; }
    .code-arrow { padding: 10px 0; }
    .code-arrow .arrow-inner { flex-direction: row; }
    .arrow-line { width: 30px; height: 2px; }
    .pipeline-container { flex-direction: column; }
    .pipeline-connector { width: 2px; height: 40px; }
    .pipeline-connector .connector-glow { width: 4px !important; height: 0; transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
    .test-grid { grid-template-columns: repeat(4, 1fr); }
    .test-cell { width: 44px; height: 44px; }
    .bench-name { width: 65px; font-size: 11px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .hiring { padding: 1rem; }
    .guppy-container { bottom: 14px; right: 14px; }
    .chat-panel { width: 280px; right: 14px; bottom: 78px; }
    #visitor-map { height: 260px; }
    .visitor-stat { max-width: none; }
  }

  /* ===== PHONE ===== */
  @media (max-width: 480px) {
    body { font-size: 14px; }

    .sidebar {
      flex-direction: column; align-items: center;
      padding: 1rem; gap: 0.25rem;
    }
    .s-avatar { width: 64px; height: 64px; }
    .s-name { text-align: center; font-size: 1rem; }
    .s-role { text-align: center; font-size: 0.68rem; line-height: 1.4; }
    .s-links { font-size: 0.68rem; gap: 0.4rem; }
    .theme-toggle { font-size: 0.7rem; padding: 0.35rem 0.9rem; }


    .hero { padding: 1rem; }
    .hero-eyebrow { font-size: 0.5rem; min-width: auto; }
    .hero h1 { font-size: 0.95rem; }
    .hero-tag { font-size: 0.58rem; padding: 0.18rem 0.45rem; }
    .sec { padding: 1rem 0.85rem; }
    .sec-title { font-size: 0.85rem; }
    .sec-bar { height: 14px; width: 3px; }
    .awards-banner { padding: 0.5rem; }
    .ab-card-front { padding: 0.5rem 0.6rem; }
    .ab-icon { font-size: 1rem; }
    .ab-text strong { font-size: 0.68rem; }
    .ab-back-text { font-size: 0.62rem; }
    .intro { font-size: 0.78rem; }
    .fw h3 { font-size: 0.78rem; }
    .fw .fw-meta { font-size: 0.68rem; }
    .fw-venue { font-size: 0.58rem; }
    .fw-link { font-size: 0.6rem; }
    .pub-item { font-size: 0.72rem; }
    .pub-item a { font-size: 0.65rem; }
    .news-item { font-size: 0.75rem; }
    .n-date { font-size: 0.62rem; min-width: 52px; }
    .list-item { font-size: 0.72rem; }
    .li-date { font-size: 0.6rem; min-width: 50px; }
    .topic-title { font-size: 0.85rem; }
    .topic-num { font-size: 9px; padding: 2px 6px; }
    .topic-animation-box { min-height: 140px; padding: 10px; }
    .code-block { font-size: 10px; padding: 8px; line-height: 1.5; overflow-x: auto; }
    .nl-line { font-size: 10px; white-space: normal; }
    .bench-switcher { gap: 4px; margin-bottom: 14px; }
    .bench-btn { font-size: 9px; padding: 3px 6px; }
    .bench-row { height: 22px; gap: 4px; margin-bottom: 8px; }
    .bench-name { width: 48px; font-size: 9px; }
    .bench-score { font-size: 10px; width: 32px; }
    .bench-bar-bg { height: 18px; }
    .bench-dot { width: 7px; height: 7px; }
    .test-grid { grid-template-columns: repeat(4, 1fr); gap: 3px; }
    .test-cell { width: 32px; height: 32px; font-size: 14px; border-radius: 4px; }
    .nn-label { font-size: 7px; }
    .stat-num { font-size: 1.2rem; }
    .stat-label { font-size: 0.58rem; }
    .stat-card { padding: 0.6rem 0.5rem; }
    .year-label { font-size: 0.78rem; min-width: 70px; }
    .year-count { font-size: 0.58rem; }
    .year-venues { display: none; }
    .year-arrow { font-size: 0.6rem; }
    .svc-label { font-size: 0.7rem; }
    .svc-body { font-size: 0.7rem; }
    .awards-list li { font-size: 0.72rem; }
    .tl-t { font-size: 0.75rem; }
    .tl-d { font-size: 0.68rem; }
    .tl-y { font-size: 0.6rem; }
    .hiring h3 { font-size: 0.85rem; }
    .hiring p, .hiring li { font-size: 0.75rem; }
    .h-tag { font-size: 0.6rem; }
    #visitor-map { height: 200px; }
    .visitor-stats { gap: 0.75rem; }
    .visitor-stat { padding: 0.5rem 0.75rem; }
    .visitor-num { font-size: 1.3rem; }
    .visitor-label { font-size: 0.62rem; }
    .chat-panel { width: calc(100vw - 24px); right: 12px; bottom: 70px; }
    .guppy-fish { width: 40px; height: 40px; }
    .guppy-container { bottom: 12px; right: 12px; }
    .footer { font-size: 0.62rem; padding: 0.6rem 0.85rem; }
  }
