
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{--u-navy:#142339;--u-purple:#7054a2;--u-blue:#2976a4;--u-mint:#157c70;--u-bg:#f7f8fb;--u-line:#e1e6ed;--u-muted:#64748b;--u-radius:14px}
body{background:var(--u-bg);font-family:'DM Sans','Malgun Gothic',sans-serif;color:var(--u-navy)}
.unified-header{box-sizing:border-box;min-height:76px;background:#142339;border-bottom:1px solid #ffffff12;color:#fff;position:relative;z-index:30}
.unified-header-inner{box-sizing:border-box;max-width:1320px;margin:auto;padding:15px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:76px}
.unified-brand{display:flex;align-items:center;gap:20px;color:#fff;text-decoration:none;flex-shrink:0}
.unified-brand img{display:block;width:156px;height:33px;object-fit:contain}
.unified-brand>span{font:700 13px/1.4 'Manrope',sans-serif;letter-spacing:.1px;border-left:1px solid #ffffff30;padding-left:20px}
.unified-brand small{display:block;margin-top:3px;font:500 8px/1.4 'DM Sans',sans-serif;letter-spacing:1.4px;color:#a9b9cc}
.unified-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.unified-nav a{display:block;padding:9px 12px;border:1px solid transparent;border-radius:8px;text-decoration:none;color:#bfccda;font:600 11px/1.4 'Manrope',sans-serif;white-space:nowrap}
.unified-nav a:hover{background:#ffffff0d;color:#fff}
.unified-nav a[aria-current=page]{background:#ffffff12;color:#e0d3fb;border-color:#ffffff13}
.unified-header a:focus-visible{outline:2px solid #cbb5fa;outline-offset:3px}
.unified-crumb{font:500 11px/1.5 'DM Sans',sans-serif;color:#8695a8;letter-spacing:.2px;margin:0 auto 18px;display:flex;gap:9px;align-items:center}
.unified-crumb a{color:#64748b;text-decoration:none}.unified-crumb b{font-weight:500;color:#7054a2}
.unified-subtitle{font:400 13px/1.6 'DM Sans',sans-serif;color:#64748b;margin:7px 0 0}
/* Home retains the compact hero and actual media. */
body[data-page=home] .home-hero{background:radial-gradient(ellipse at 77% 30%,#253f60 0,transparent 50%),#142339}
body[data-page=home] .home-focus-card{border-radius:12px}
body[data-page=home] .home-demo .research-demo{background:#fff;border-color:var(--u-line);border-radius:var(--u-radius);box-shadow:0 6px 24px #14233903}
body[data-page=home] .home-demo .research-demo-copy h2{color:#142339}
body[data-page=home] .home-demo-button{background:#7054a2;border-color:#7054a2;border-radius:8px}
body[data-page=home] .home-demo-button:hover{background:#5e438e}
body[data-page=home] .home-demo .research-demo-preview{border-radius:10px;border-color:#e1e6ed}
/* Inside GraphRAG: preserve the graph's semantic colors and interaction. */
body[data-unified=inside]{--paper:#f7f8fb;--canvas:#f8f9fc;--green:#7054a2;--lime:#ded0f5;--line:#e1e6ed}
body[data-unified=inside] .intro h1{font-family:'Manrope',sans-serif;color:#142339}
body[data-unified=inside] .overline{color:#7054a2}
body[data-unified=inside] .mode-switch{background:#edf0f5;border:1px solid #e1e6ed;border-radius:9px}
body[data-unified=inside] .mode-switch button{border-radius:6px!important;border:0!important;color:#64748b;background:transparent}
body[data-unified=inside] .mode-switch button.chosen{background:#fff!important;color:#7054a2!important;box-shadow:0 2px 5px #1423390a}
body[data-unified=inside] .phase-nav .stage-spotlight{background:#f1edfa!important;border-color:#e3dbf2!important;border-radius:12px!important}
body[data-unified=inside] .phase-nav .spotlight-index{background:#e2d9f1!important;color:#7054a2!important;border:0!important;border-radius:9px!important}
body[data-unified=inside] .phase-chip.current{background:#e8e0f5!important;border-color:#d9cbea!important;color:#7054a2!important}
body[data-unified=inside] .spotlight-jumps button{background:#ffffffa8!important;border-color:#e1d8f0!important;color:#79648d!important;border-radius:5px!important}
body[data-unified=inside] .phase-nav #runAll{background:#7054a2!important;border-color:#7054a2!important;color:#fff!important;border-radius:9px!important}
body[data-unified=inside] .run-all-play{background:#ffffff20!important;color:#fff!important}
body[data-unified=inside] .stage-picks button{border-radius:8px!important;border-color:#e1e6ed!important}
body[data-unified=inside] .stage-picks button.active{background:#eaf2fa!important;color:#2976a4!important;border-color:#d5e5f2!important}
body[data-unified=inside] .graphbox,body[data-unified=inside] .detail{border:1px solid #e1e6ed;border-radius:12px;overflow:hidden;background:#fff}
body[data-unified=inside] .graphstage{background:radial-gradient(ellipse at 50% 55%,#fff,#f7f9fc);border-color:#e8ecf1}
body[data-unified=inside] .presentation-panel{background:#fff}
body[data-unified=inside] .present-steps span{border-radius:8px;background:#f2f4f8;color:#8a97a7}
body[data-unified=inside] .present-steps span.is-here{background:#f1edfa!important;color:#7054a2!important}
body[data-unified=inside] .present-topline,body[data-unified=inside] .present-number{color:#8b76ac}
body[data-unified=inside] .present-tempo{background:#eaf4fb;color:#2976a4;border:1px solid #dceaf4;border-radius:14px}
body[data-unified=inside] .present-pair span:not(.pair-arrow){background:#f1edfa;border-color:#e3dbf2;color:#7054a2;border-radius:7px}
body[data-unified=inside] input[type=range]{accent-color:#7054a2}
body[data-unified=inside] .ctrl .play{background:#7054a2;color:#fff;border-color:#7054a2;border-radius:7px}
/* Comparison: shared shell; blue for vector search, purple for graph search. */
body[data-unified=compare]{--bg:#f7f8fb;--surface:#fff;--surface-2:#f2f4f8;--ink:#142339;--ink-2:#526176;--line:#e1e6ed;--vec:#2976a4;--vec-soft:#eaf3fb;--graph:#7054a2;--graph-soft:#f1edfa;--q:#a57631;--q-soft:#fbf3e6;--font:'DM Sans','Malgun Gothic',sans-serif;color-scheme:light}
body[data-unified=compare] .brand{color:#142339}
body[data-unified=compare] .brand .v,body[data-unified=compare] .brand .g{color:#142339}
body[data-unified=compare] .brand .x{color:#8b9aad}
body[data-unified=compare] .tab{border-radius:8px;background:#f0f2f7;color:#64748b;border-color:#e1e6ed}
body[data-unified=compare] .tab[aria-selected=true]{background:#7054a2;color:#fff;border-color:#7054a2}
body[data-unified=compare] .icon{border-radius:8px;color:#7054a2;border-color:#e1e6ed}
body[data-unified=compare] .progress{background:#e5e8f0}
body[data-unified=compare] .progress .fill{background:#7054a2}
body[data-unified=compare] .query{border-radius:10px;border-color:#e1e6ed}
body[data-unified=compare] .qtag{border-radius:6px;background:#f1edfa;color:#7054a2}
body[data-unified=compare] .panel{border-radius:12px;border-color:#e1e6ed;box-shadow:0 5px 20px #14233902}
body[data-unified=compare] .phead h2{font-family:'Manrope',sans-serif}
body[data-unified=compare] .steps li{border-radius:5px}
body[data-unified=compare] .answer{border-radius:9px;background:#f4f6fa}

/* Shared shell: retain all portfolio sections with a compact main navigation. */
:root{--graph-node:#7296ae;--graph-evidence:var(--u-purple);--graph-relation:#a2b5b9;--u-knowledge-bg:#f1edfa;--u-prediction-bg:#eaf3fb;--u-optimization-bg:#e8f6f1}
html{scroll-padding-top:24px}
.site-header.unified-header{height:auto;min-height:76px;position:relative;background:var(--u-navy);border-bottom:1px solid #ffffff12}
.unified-header-inner{position:relative}
.unified-nav{gap:2px;flex-wrap:nowrap}
.unified-nav a{font:600 15px/1.4 'Manrope',sans-serif;padding:9px 13px;color:#bfccda;letter-spacing:0}.unified-menu-toggle:focus-visible{outline:2px solid #cbb5fa;outline-offset:3px}
.unified-menu-toggle{display:none;align-items:center;justify-content:center;color:#e7eaf3;border:1px solid #ffffff25;border-radius:8px;background:#ffffff08;width:40px;height:40px;flex-shrink:0;cursor:pointer}
.unified-skip{position:absolute;top:8px;left:8px;transform:translateY(-160%);z-index:100;padding:9px 14px;background:white;color:var(--u-navy);border-radius:6px}
.unified-skip:focus{transform:none}
body.site-v2{--ink:var(--u-navy);--dark:var(--u-navy);--muted:var(--u-muted);--bg:var(--u-bg);--rule:var(--u-line);--accent:#cbb5fa;--max:1320px;background:var(--u-bg);color:var(--u-navy)}
body.site-v2 .container{max-width:1320px;padding-inline:32px}
body.site-v2 .section-index{color:var(--u-purple)}
body.site-v2 .page-banner{padding:44px 0 18px;background:transparent}
body.site-v2 .page-banner h1{font:800 clamp(32px,4vw,42px)/1.2 'Manrope',sans-serif;letter-spacing:-1.3px;color:var(--u-navy)}
body.site-v2 .page-banner h1 em{color:var(--u-purple)}
body.site-v2 .page-banner p{font-size:14px;color:var(--u-muted)}
body.site-v2 .section-heading{border:0;padding-bottom:0;font-family:'Manrope',sans-serif}
body.site-v2 .btn-primary{background:var(--u-purple);color:#fff;border-color:var(--u-purple);border-radius:8px}
body.site-v2 .btn-primary:hover{background:#5e438e}
body.site-v2 .dark-outline{border:1px solid var(--u-line);background:#fff;color:var(--u-purple);border-radius:8px}
body.site-v2 .dark-outline:hover{background:var(--u-knowledge-bg)}
body.site-v2 .text-link,body.site-v2 .contact-inline a{color:var(--u-purple);border-color:#cdbfe2}
body.site-v2 .site-footer{background:#f0f2f7;border-color:var(--u-line)}
body.site-v2 .tags span{border-radius:5px}
body.site-v2 .pub-title-link:hover,body.site-v2 .pub-title-link:focus-visible{color:var(--u-purple)}
body.site-v2 .education-card,body.site-v2 .cv-paper,body.site-v2 .award-certificate{background:white;border:1px solid var(--u-line);border-radius:12px;box-shadow:none}
body.site-v2 .education-card{padding:20px 24px;margin-top:12px}
body.site-v2 .education-year{color:var(--u-purple)}
body.site-v2[data-page=about] .about-main{background:transparent}
body.site-v2[data-page=about] .about-profile-grid{gap:50px}
body.site-v2[data-page=about] .about-portrait{background:#fff;border:1px solid var(--u-line);border-radius:14px;overflow:hidden}
body.site-v2[data-page=about] .about-portrait p{margin-bottom:0;padding:16px}
body.site-v2[data-page=about] .about-profile-text .section-heading{font-size:40px}
body.site-v2[data-page=about] .about-profile-text .section-heading span{color:var(--u-purple)}
body.site-v2[data-page=about] .about-facts{padding:8px 20px;background:#fff;border:1px solid var(--u-line);border-radius:12px}
body.site-v2[data-page=about] .about-facts>div{border-color:#edf0f5}
body.site-v2[data-page=about] .about-facts a{color:var(--u-purple)}
body.site-v2[data-page=about] .about-education{background:transparent}
body.site-v2[data-page=about] .about-education>.container{border-top:1px solid var(--u-line)}
body.site-v2[data-page=research] main{max-width:1320px;padding:40px 32px 64px}
body.site-v2 .research-title h1{color:var(--u-navy)}
body.site-v2 .title-line{background:var(--u-purple);width:100px;border-radius:4px}
body.site-v2 .pillar.knowledge,body.site-v2 .theme-column.knowledge{--tone:var(--u-purple);--wash:var(--u-knowledge-bg);--border:#dfd5ed}
body.site-v2 .pillar.physics{--tone:var(--u-blue);--wash:var(--u-prediction-bg)}
body.site-v2 .pillar.optimization{--tone:var(--u-mint);--wash:var(--u-optimization-bg)}
body.site-v2 .pillar-top{border-radius:10px}
body.site-v2 .work-card{border-color:var(--u-line);border-radius:12px}
body.site-v2 .work-card.linked:hover{border-color:#c9b9e1;box-shadow:0 6px 24px #14233907}
body.site-v2 .work-card .figure{background:#f3f1f8;border-color:var(--u-line)}
body.site-v2 .study-container{max-width:1320px;padding:40px 32px 64px}
body.site-v2 .study-kicker,body.site-v2 .study-back{color:var(--u-purple)}
body.site-v2 .study-head{background:#fff;border:1px solid var(--u-line);border-radius:14px;padding:26px 28px}
body.site-v2 .study-head h1{font-size:36px}
body.site-v2 .study-status{background:var(--u-knowledge-bg);color:var(--u-purple)}
body.site-v2 .study-overview{background:#fff;border:1px solid var(--u-line);border-radius:12px;padding:24px 28px}
body.site-v2 .study-pdf-list{background:#fff;border:1px solid var(--u-line);border-radius:12px;padding:0 22px}
body.site-v2 .study-pdf-row:last-child{border-bottom:0}
body.site-v2 .study-pdf-mark{color:var(--u-purple);background:var(--u-knowledge-bg);border-color:#e2d8f1;border-radius:7px}
body.site-v2 .study-pdf-open{background:var(--u-purple);border-color:var(--u-purple);border-radius:7px;color:#fff}
body.site-v2 .study-pdf-open:hover{background:#5e438e}
body.site-v2 .study-pdf-modal{border-color:var(--u-line);border-radius:12px}
body.site-v2 .study-viewer-actions a{color:var(--u-purple)}
body.site-v2 .study-pdf-close{background:var(--u-knowledge-bg);color:var(--u-purple)}
body.site-v2[data-page=publications] .publication-category{background:#fff;border:1px solid var(--u-line);border-radius:12px;padding:22px 26px;margin-bottom:18px}
body.site-v2[data-page=publications] .pub-category,body.site-v2[data-page=publications] .publication-count{color:var(--u-purple)}
body.site-v2 .news-clickable{background:#fff;border:1px solid var(--u-line);border-radius:12px;padding:24px;margin:0}
body.site-v2 .news-clickable:hover{background:#fbf9ff;transform:none;border-color:#c9b9e1}
body.site-v2 .news-tag{background:var(--u-knowledge-bg);color:var(--u-purple);border-radius:5px}
body.site-v2 .award-back{color:var(--u-purple)}
body.site-v2 .cv-paper{border-radius:12px}
body.site-v2 .cv-section h3{color:var(--u-purple);border-color:#e2daed}

/* All educational highlights and their legends share the same semantic colors. */
body[data-unified=inside] .present-number,body[data-unified=inside] .present-english,body[data-unified=inside] .present-kicker{color:var(--u-purple)}
body[data-unified=inside] .present-body h2{color:var(--u-navy)}
body[data-unified=inside] .present-body p{color:#526176}
body[data-unified=inside] .present-footer{border-color:var(--u-line);color:var(--u-muted)}
body[data-unified=inside] .present-caveat{color:#8190a4}
body[data-unified=inside] .present-pair .pair-arrow{color:var(--u-purple)}
body[data-unified=inside] .present-footer .tinyline{background:var(--u-purple)}
body[data-unified=inside] .presentation-panel .present-steps span.is-here{background:var(--u-knowledge-bg)!important;color:var(--u-purple)!important;border-color:#d9cbea!important}
body[data-unified=inside] .phase-chip.current::before{background:var(--u-purple);box-shadow:0 0 0 3px #7054a218}
body[data-unified=inside] .phase-nav .stage-picks button.active .pick-num{color:var(--u-blue)!important}
body[data-unified=inside] .stage-picks .pick-num{color:#8493a5}
body[data-unified=inside] .graphbox>.timeline #scrub{accent-color:var(--u-purple)}
body[data-unified=inside] .graphbox>.timeline .ctrl .play{background:var(--u-purple);border-color:var(--u-purple);color:#fff}
body[data-unified=inside] .timeline{background:#f8f9fc;border-color:var(--u-line)}
body[data-unified=inside] .tlhead strong{color:var(--u-purple)}
body[data-unified=inside] .g-edge{stroke:var(--graph-relation)}
body[data-unified=inside] .g-edge.emphasis{stroke:var(--graph-evidence);filter:drop-shadow(0 0 2px #7054a244)}
body[data-unified=inside] .evidence-halo{stroke:var(--graph-evidence)}
body[data-unified=inside] .node-label.active{fill:var(--graph-evidence)}
body[data-unified=inside] .weight-meter span{background:linear-gradient(90deg,#7054a2,#cbb5fa)}
body[data-unified=inside] .ctrl button,body[data-unified=inside] .ctrl select{border-radius:7px}
body[data-unified=inside] .detailhdr{background:#f8f9fc;color:var(--u-purple);border-color:var(--u-line)}
body[data-unified=inside] .legendline [hidden]{display:none}
body[data-unified=compare] .panel{min-width:0}
@media(max-width:1150px){.unified-brand>span{padding-left:14px}.unified-brand{gap:14px}}
@media(max-width:980px){
  .unified-header-inner{min-height:72px;padding:16px 22px;gap:16px;flex-wrap:wrap}
  .unified-brand img{width:132px;height:29px}
  .unified-brand>span{font-size:12px}
  .unified-brand small{font-size:7px;letter-spacing:1px}
  .unified-menu-toggle{display:inline-flex;margin-left:auto}
  .unified-nav{display:none;width:100%;flex-basis:100%;padding:5px 0 3px;align-items:stretch;gap:4px;flex-wrap:wrap}
  .unified-nav.is-open{display:flex}
  .unified-nav>a{flex:1 0 26%;text-align:center;padding:12px;font-size:14px}
  .unified-subtitle{font-size:12px}
}
@media(max-width:740px){
  body.site-v2 .container{padding-inline:22px}
  body.site-v2 .page-banner{padding:30px 0 14px}
  body.site-v2 .page-banner p{font-size:13px}
  body.site-v2 .education-card{padding:18px}
  body.site-v2[data-page=about] .about-profile-grid{gap:25px}
  body.site-v2[data-page=about] .about-profile-text .section-heading{font-size:34px}
  body.site-v2[data-page=research] main,body.site-v2 .study-container{padding:30px 22px 48px}
  body.site-v2 .study-head{padding:20px}
  body.site-v2 .study-head h1{font-size:29px}
  body.site-v2 .study-overview{padding:20px}
  body.site-v2 .study-pdf-list{padding-inline:14px}
  body.site-v2 .study-pdf-info{gap:9px}
  body.site-v2 .study-pdf-open{padding:8px 10px}
  body.site-v2[data-page=publications] .publication-category{padding:18px 14px}
  body.site-v2 .news-clickable{padding:18px}
  .unified-crumb{font-size:10px;gap:7px;flex-wrap:wrap}
}
@media(max-width:380px){
  .unified-header-inner{gap:10px}
  .unified-brand{gap:10px}
  .unified-brand img{width:110px;height:26px}
  .unified-brand>span{padding-left:10px;font-size:11px}
  .unified-brand small{font-size:6px;letter-spacing:.65px}
  .unified-menu-toggle{width:34px;height:34px}
  body.site-v2 .study-pdf-mark{width:30px;height:38px;font-size:9px}
  body.site-v2 .study-pdf-info strong{font-size:12px}
  body.site-v2 .study-pdf-row{gap:8px}
}
@media(prefers-reduced-motion:reduce){.unified-header *,body.site-v2 .work-card{transition:none}}
@media print{
  .site-header.unified-header,.unified-skip{display:none!important}
  body.site-v2{background:white}
  body.site-v2 .cv-paper{border:0;border-radius:0;box-shadow:none}
}
/* Explicit sans-serif fallbacks also keep labels consistent if web fonts cannot load. */
body.site-v2 :is(h1,h2,h3,h4,.eyebrow,.section-index,.education-year,.about-facts span,.about-portrait p,.pub-year,.pub-category,.publication-count,.news-date,.news-tag,.cv-date,.planned-chip,.study-kicker,.column-heading){font-family:'Manrope','DM Sans','Apple SD Gothic Neo','Malgun Gothic',Arial,sans-serif}
@media(max-width:480px){
  body.site-v2[data-page=about] .about-facts>div{grid-template-columns:minmax(0,1fr);gap:5px}
  body.site-v2[data-page=about] .about-facts strong{min-width:0;overflow-wrap:anywhere}
  body.site-v2[data-page=about] .about-facts small{grid-column:1;margin-top:0}
}
/* Use the same light visualization palette under either operating-system theme. */
body[data-unified=compare]{--wire:#a3adbd;--node:#5d6880;--ok:#13803a;--ok-soft:rgba(19,128,58,.12);--bad:#c42727;--bad-soft:rgba(196,39,39,.11);--cA:#0284c7;--cB:#0d9488;--cC:#ea580c;--cD:#65a30d;--cE:#db2777;--cF:#4f46e5;--cG:#a0522d;--cH:#78716c;--cI:#64748b}
@media print{body.site-v2 .inner-actions{display:none!important}}
/* Override the explorer's older stage-specific green/blue UI accents as well. */
body[data-unified=inside] .node-label.focused-label,body[data-unified=inside] .edge-tag{fill:var(--graph-evidence)}
body[data-unified=inside] .graphbox>.timeline .tlhead strong{color:var(--u-purple)!important}
body[data-unified=inside] .graphbox>.timeline .tlhead strong::before{background:var(--u-purple)!important}
body[data-unified=inside] .stage-spotlight .phase-chip.current{color:var(--u-purple)!important;background:var(--u-knowledge-bg)!important;border-color:#d9cbea!important}
body[data-unified=inside] .ghostline{stroke:var(--graph-evidence)}
body[data-unified=inside] .details .stack{background:#f8f9fc;border-color:var(--u-line)}
body[data-unified=inside] .phase-nav .stage-spotlight[data-mode] .phase-chip.current{color:var(--u-purple)!important;background:var(--u-knowledge-bg)!important;border-color:#d9cbea!important;transition:none}
body[data-unified=inside] .phase-nav .stage-spotlight[data-mode] .phase-chip.current::before{background:var(--u-purple);box-shadow:0 0 0 3px #7054a218}

/* Original demo widths, typography and graph sizing are defined in each demo HTML.
   The comparison canvas uses the full viewport now that its separate bar is removed. */
body[data-unified=compare] .app{height:100dvh}
@media(max-width:900px){body[data-unified=compare] .app{height:auto}}
body.site-v2[data-page=about] .education-list,body.site-v2[data-page=about] .news-list{width:100%;max-width:none}

/* University and lab marks sit beside the demo title, without a separate masthead. */
.demo-title-group{display:flex;align-items:center;gap:16px;min-width:0}
.demo-logo{display:inline-flex;align-items:center;flex-shrink:0;gap:0;line-height:0}
.demo-logo img{display:block;height:44px;width:auto;object-fit:contain}
.demo-title-copy{min-width:0}
body[data-unified=compare] .demo-title-group .brand{white-space:normal}
body[data-unified=compare] .demo-title-group .brand .v,body[data-unified=compare] .demo-title-group .brand .g{white-space:nowrap}
@media(max-width:700px){.demo-title-group{gap:12px}.demo-logo img{height:32px}body[data-unified=inside] .intro>.demo-title-group{flex-basis:100%}}
@media(max-width:380px){.demo-title-group{gap:10px}.demo-logo img{height:26px}}
body[data-unified=compare] .demo-title-group .brand{display:flex;flex-wrap:wrap;align-items:baseline;min-width:0}

/* Awards retain the former News card design beneath About's Education section. */
.site-v2.inner-page[data-page=about] .about-education{padding-bottom:32px}
.site-v2.inner-page[data-page=about] .about-awards{padding-top:0;padding-bottom:72px}
.about-awards .news-list{margin-top:22px}
@media(max-width:740px){.site-v2.inner-page[data-page=about] .about-education{padding-bottom:28px}.site-v2.inner-page[data-page=about] .about-awards{padding-bottom:48px}.about-awards .news-list{margin-top:18px}}
