/* The original Slate / Indigo identity, shared by every static page. */
:root{
  color-scheme:dark;
  --bg:#020617;
  --surface:#0f172a;
  --text:#f1f5f9;
  --muted:#a0acc1;
  --subtle:#79869e;
  --accent:#818cf8;
  --accent-strong:#6366f1;
  --line:rgba(148,163,184,.17);
  --radius:16px;
  --sans:Inter,"Noto Sans TC","Microsoft JhengHei","PingFang TC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",Consolas,monospace;
  --section-space:104px}

*,*::before,*::after{
  box-sizing:border-box}
html{
  scroll-behavior:smooth;
  scroll-padding-top:100px}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:15px/1.7 var(--sans);
  -webkit-font-smoothing:antialiased}
body::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:850px;
  z-index:-1;
  background:radial-gradient(ellipse at 70% 12%,#6366f117,transparent 60%);
  pointer-events:none}
h1,h2,h3,p,figure{
  margin:0}
h1,h2,h3{
  text-wrap:balance;
  line-height:1.3}
p,li,dd{
  text-wrap:pretty}
a{
  color:inherit;
  text-decoration:none}
button,input,select{
  font:inherit}
button,a,input,select,summary{
  -webkit-tap-highlight-color:transparent}
button{
  color:inherit;
  cursor:pointer;
  border:0}
button:disabled{
  opacity:.6;
  cursor:wait}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:5px}
img{
  display:block;
  max-width:100%;
  height:auto}
[hidden]{
  display:none!important}
::selection{
  background:#6366f1;
  color:white}
.container{
  width:min(1184px,calc(100% - 96px));
  margin-inline:auto}
.section{
  padding-block:var(--section-space) 0}
.eyebrow{
  display:block;
  font:10px/1.7 var(--mono);
  letter-spacing:1.9px;
  color:var(--accent);
  text-transform:uppercase}
.text-link{
  font-size:13px;
  font-weight:500;
  display:inline-flex;
  gap:16px;
  align-items:center;
  white-space:nowrap;
  transition:color .15s}
.text-link:hover{
  color:var(--accent)}
.text-link span{
  font-size:18px}
.skip-link{
  position:fixed;
  z-index:1000;
  left:16px;
  top:-90px;
  background:var(--text);
  color:var(--bg);
  padding:10px 20px;
  border-radius:8px}
.skip-link:focus{
  top:12px}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(2,6,23,.91);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(16px)}
.nav-shell{
  width:min(1280px,calc(100% - 80px));
  margin:auto;
  display:flex;
  align-items:center;
  min-height:82px;
  gap:48px}
.wordmark{
  font-size:30px;
  letter-spacing:-2px;
  font-weight:800;
  line-height:1}
.wordmark>span:first-child{
  color:var(--accent)}
.wordmark-name{
  font:10px var(--mono);
  letter-spacing:1.7px;
  margin-left:18px;
  vertical-align:middle;
  color:var(--muted)}
.nav-links{
  display:flex;
  align-items:center;
  gap:30px;
  margin-left:auto}
.nav-link{
  font-size:12px;
  color:var(--muted);
  padding:29px 0;
  position:relative}
.nav-link:hover,.nav-link.active{
  color:var(--text)}
.nav-link.active::after{
  content:"";
  position:absolute;
  bottom:18px;
  left:50%;
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--accent)}
.nav-contact{
  padding:8px 15px;
  font-size:11px;
  border:1px solid var(--line);
  border-radius:7px;
  display:flex;
  gap:24px;
  align-items:center}
.nav-contact:hover{
  border-color:var(--accent)}
.nav-toggle{
  display:none;
  background:none;
  padding:12px}
.nav-toggle span{
  display:block;
  width:21px;
  height:1px;
  background:var(--text);
  margin:6px 0}

.hero{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  align-items:center;
  gap:76px;
  padding-block:79px 65px}
.hero-kicker{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font:10px var(--mono);
  letter-spacing:1.7px;
  margin-bottom:26px}
.live-dot{
  width:6px;
  height:6px;
  background:var(--accent);
  border-radius:50%;
  box-shadow:0 0 14px #818cf866}
.hero h1{
  font-size:clamp(48px,5.5vw,76px);
  letter-spacing:-4px;
  line-height:1.06;
  font-weight:700;
  white-space:nowrap}
.name-dot{
  color:var(--accent)}
.hero-zh{
  display:block;
  font-size:23px;
  letter-spacing:6px;
  font-weight:500;
  margin-top:19px;
  color:var(--muted)}
.hero-statement{
  font-size:29px;
  letter-spacing:.4px;
  line-height:1.65;
  font-weight:500;
  margin-top:31px}
.hero-description{
  font-size:13px;
  line-height:1.95;
  color:var(--muted);
  max-width:440px;
  margin-top:17px}
.hero-actions{
  display:flex;
  gap:12px;
  margin-top:28px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  font-size:12px;
  font-weight:500;
  padding:12px 19px;
  border-radius:7px;
  transition:background .15s,border-color .15s,transform .15s;
  white-space:nowrap}
.btn:hover{
  transform:translateY(-2px)}
.btn-primary{
  background:var(--accent-strong);
  color:#fff}
.btn-primary:hover{
  background:#7476f6}
.btn-outline{
  border:1px solid var(--line);
  background:transparent}
.btn-outline:hover{
  border-color:var(--accent)}
.hero-location{
  display:flex;
  flex-direction:column;
  gap:6px;
  font:8px var(--mono);
  letter-spacing:1px;
  color:var(--subtle);
  margin-top:32px}
.hero-visual{
  border-radius:var(--radius);
  border:1px solid #818cf840;
  overflow:hidden;
  background:#f0f2ee;
  box-shadow:0 25px 80px #0002;
  transform:rotate(1.5deg)}
.visual-topline{
  display:flex;
  justify-content:space-between;
  background:#10182d;
  color:#b1b9cf;
  padding:16px 20px;
  font:9px var(--mono);
  letter-spacing:1.1px}
.hero-visual>img{
  width:100%;
  aspect-ratio:1.15;
  object-fit:cover}
.hero-visual figcaption{
  background:#10182d;
  color:var(--muted);
  padding:17px 20px;
  font:9px var(--mono);
  display:flex;
  justify-content:space-between;
  gap:12px}
.hero-visual figcaption span:last-child{
  font-size:9px;
  color:var(--subtle)}
.research-strip{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding-block:26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px}
.research-strip-label .eyebrow{
  font-size:9px;
  color:var(--subtle);
  letter-spacing:1.4px}
.research-strip-label p{
  font-size:13px;
  margin-top:6px;
  color:var(--muted)}
.research-counts,.publication-stats{
  display:flex;
  gap:42px}
.research-counts>div{
  display:flex;
  align-items:center;
  gap:13px}
.research-counts strong{
  font:500 25px/1 var(--mono)}
.research-counts span{
  font-size:10px;
  color:var(--muted)}

.section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:32px;
  gap:24px}
.section-heading h2{
  font-size:29px;
  letter-spacing:-.5px;
  margin-top:9px;
  font-weight:500}
.section-heading .text-link{
  margin-bottom:4px;
  color:var(--muted)}
.project-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px}
.project-card{
  min-width:0;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:12px;
  overflow:hidden;
  transition:border-color .2s,transform .2s}
.project-card:hover{
  border-color:#818cf88c;
  transform:translateY(-4px)}
.project-open{
  display:block;
  text-align:left;
  background:none;
  padding:0;
  width:100%;
  height:100%}
.project-open:focus-visible{
  outline-offset:-4px}
.project-media{
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#10182c}
.project-media>img{
  width:100%;
  height:100%;
  object-fit:contain}
.project-card[data-category="agents"] .project-media>img[src$=".webp"]{
  object-fit:cover}
.project-index{
  position:absolute;
  left:14px;
  top:12px;
  font:9px var(--mono);
  color:#fff;
  background:#020617a6;
  border:1px solid #fff3;
  padding:3px 7px;
  border-radius:4px}
.project-arrow{
  position:absolute;
  bottom:12px;
  right:12px;
  background:#0f172a;
  color:#d9defe;
  border-radius:50%;
  width:28px;
  height:28px;
  text-align:center;
  line-height:28px}
.project-info{
  padding:22px 21px 24px}
.project-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font:9px var(--mono);
  color:var(--accent);
  margin-bottom:12px}
.project-meta span:last-child{
  color:var(--subtle)}
.project-info h3{
  font-size:16px;
  letter-spacing:-.2px;
  font-weight:600;
  min-height:42px;
  line-height:1.45}
.project-info p{
  font-size:12px;
  line-height:1.85;
  color:var(--muted);
  margin-top:10px;
  min-height:44px}
.tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:20px}
.tag{
  font:9px/1.7 var(--mono);
  color:var(--muted);
  border:1px solid var(--line);
  padding:3px 7px;
  border-radius:4px}
.focus-section{
  padding-top:120px}
.focus-layout{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:100px}
.focus-intro{
  font-size:23px;
  line-height:1.85;
  color:#cbd5e1;
  max-width:450px}
.focus-list article{
  display:flex;
  gap:23px;
  padding-block:23px;
  border-bottom:1px solid var(--line)}
.focus-list article:first-child{
  padding-top:0}
.focus-list article>span{
  font:10px var(--mono);
  color:var(--subtle);
  padding-top:4px}
.focus-list h3{
  font-size:15px;
  font-weight:500}
.focus-list p{
  font-size:12px;
  color:var(--muted);
  margin-top:9px}
.timeline{
  border-top:1px solid var(--line)}
.timeline-item{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:30px;
  padding:28px 0;
  border-bottom:1px solid var(--line)}
.timeline-date{
  font:10px var(--mono);
  color:var(--accent);
  padding-top:4px}
.timeline-item h3{
  font-size:17px;
  font-weight:500}
.timeline-role{
  font-size:12px!important;
  margin-block:5px 10px!important;
  color:var(--accent)!important}
.timeline-item p{
  max-width:850px;
  font-size:13px;
  color:var(--muted)}

.publications-list{
  border-top:1px solid var(--line)}
.publication{
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  gap:24px;
  padding:26px 0 27px;
  border-bottom:1px solid var(--line)}
.pub-side{
  display:flex;
  flex-direction:column;
  gap:9px;
  padding-top:3px}
.pub-year{
  font:18px var(--mono);
  color:var(--muted)}
.pub-type{
  font:8px var(--mono);
  letter-spacing:1px;
  color:var(--subtle)}
.pub-main{
  min-width:0}
.pub-status{
  margin-bottom:11px}
.status{
  display:inline-block;
  font:8px/1.7 var(--mono);
  letter-spacing:.5px;
  border:1px solid var(--line);
  border-radius:3px;
  padding:3px 7px;
  color:var(--muted)}
.status-published{
  color:#c7d2fe;
  background:#6366f119;
  border-color:#818cf840}
.status-accepted{
  color:#d7dded;
  border-color:#526079}
.status-review{
  color:#a0acc1;
  border-style:dashed}
.publication h3{
  font-size:15px;
  line-height:1.65;
  max-width:900px;
  font-weight:500}
.pub-authors{
  font-size:11px;
  color:var(--subtle);
  margin-top:9px}
.pub-authors strong{
  color:var(--muted);
  font-weight:600}
.pub-venue{
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
  overflow-wrap:anywhere}
.pub-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-top:12px}
.pub-bottom>span{
  font:9px/1.8 var(--mono);
  color:var(--subtle)}
.pub-bottom a{
  font:10px var(--mono);
  color:var(--accent)}
.awards-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px}
.award-card{
  border:1px solid var(--line);
  border-radius:12px;
  display:grid;
  grid-template-columns:170px 1fr;
  overflow:hidden;
  background:var(--surface);
  min-height:172px}
.award-card>img{
  height:100%;
  width:170px;
  object-fit:cover}
.award-card>div{
  padding:28px 22px;
  align-self:center}
.award-card h3{
  font-size:17px;
  font-weight:500;
  margin-top:10px}
.award-card p{
  font-size:11px;
  color:var(--muted);
  margin-top:8px}
.awards-other{
  font-size:11px;
  color:var(--subtle);
  margin-top:20px}
.contact-section{
  padding-block:104px 84px;
  margin-top:104px;
  border-top:1px solid var(--line)}
.contact-layout{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:80px;
  margin-top:22px;
  align-items:center}
.contact-layout h2{
  font-size:35px;
  line-height:1.65;
  font-weight:500;
  letter-spacing:-1px}
.contact-layout p{
  font-size:12px;
  color:var(--muted);
  max-width:330px}
.contact-email{
  display:block;
  font-size:20px;
  margin-block:15px 20px;
  color:var(--accent);
  overflow-wrap:anywhere}
.contact-layout .text-link{
  font-size:11px;
  color:var(--muted)}

.page-intro{
  padding-block:68px 0}
.breadcrumb{
  display:block;
  font:9px var(--mono);
  letter-spacing:1.5px;
  color:var(--subtle);
  margin-bottom:40px}
.breadcrumb:hover{
  color:var(--accent)}
.page-intro h1{
  font-size:68px;
  font-weight:600;
  letter-spacing:-3px;
  line-height:1.2;
  margin-top:12px}
.page-intro>p{
  font-size:14px;
  color:var(--muted);
  line-height:1.9;
  max-width:640px;
  margin-top:22px}
.page-work,.publication-section{
  padding-top:42px}
.filter-bar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding-bottom:23px;
  border-bottom:1px solid var(--line)}
.filter-btn{
  background:transparent;
  font-size:11px;
  color:var(--muted);
  border:1px solid var(--line);
  padding:8px 14px;
  border-radius:6px;
  transition:background .15s,color .15s}
.filter-btn:hover{
  color:var(--text);
  border-color:var(--accent)}
.filter-btn.selected{
  background:var(--accent-strong);
  color:white;
  border-color:var(--accent-strong)}
.search-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-block:25px 26px}
.search-field{
  display:flex;
  gap:20px;
  align-items:center;
  color:var(--subtle);
  font-size:11px;
  flex:1;
  max-width:450px}
.search-field input{
  background:#0a1123;
  border:1px solid var(--line);
  border-radius:6px;
  padding:10px 13px;
  font-size:11px;
  color:var(--text);
  min-width:0;
  flex:1}
.search-field input::placeholder{
  color:var(--subtle)}
.search-field span{
  white-space:nowrap}
.result-count{
  font:10px var(--mono);
  color:var(--subtle)}
.empty-state{
  text-align:center;
  padding:70px 20px;
  border:1px dashed var(--line);
  color:var(--muted);
  border-radius:12px}
.project-archive{
  border-top:1px solid var(--line)}
.project-archive details{
  border-bottom:1px solid var(--line)}
.project-archive summary{
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  gap:30px;
  padding-block:22px;
  font-size:13px;
  list-style:none}
.project-archive summary::-webkit-details-marker{
  display:none}
.project-archive summary>span:last-child{
  font:10px var(--mono);
  color:var(--subtle);
  white-space:nowrap;
  padding-top:5px}
.project-archive details[open] summary{
  color:var(--accent)}
.project-archive ul{
  color:var(--muted);
  font-size:12px;
  margin:0 0 24px;
  padding-left:20px;
  max-width:950px}
.publication-stats{
  margin-top:36px}
.publication-stats>div{
  display:flex;
  flex-direction:column;
  gap:8px}
.publication-stats strong{
  font:32px var(--mono);
  letter-spacing:-2px;
  font-weight:400}
.publication-stats span{
  font:10px var(--mono);
  color:var(--muted)}
.source-note{
  font-size:10px!important;
  color:var(--subtle)!important;
  margin-top:23px!important}
.publication-controls{
  display:flex;
  gap:16px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding-block:24px}
.publication-controls label{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--subtle);
  font-size:10px;
  min-width:180px}
.publication-controls select{
  border:1px solid var(--line);
  color:var(--text);
  background:var(--surface);
  border-radius:6px;
  font-size:11px;
  padding:10px 12px}
.publication-section .publications-list{
  border-top:0}

.cv-title-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px}
.cv-title-row>div>p{
  font-size:17px;
  color:var(--muted);
  margin-top:17px}
.cv-contacts{
  display:flex;
  flex-wrap:wrap;
  gap:25px;
  border-bottom:1px solid var(--line);
  padding-block:28px;
  font:11px var(--mono);
  color:var(--muted)}
.cv-contacts .text-link{
  font:11px var(--mono)}
.cv-body{
  max-width:1000px;
  padding-top:48px}
.cv-body>section,.cv-summary{
  margin-bottom:46px}
.cv-body h2{
  font-size:23px;
  font-weight:500;
  letter-spacing:-.5px;
  margin-bottom:24px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line)}
.cv-summary p{
  font-size:14px;
  color:var(--muted);
  line-height:1.95;
  max-width:900px}
.cv-entry{
  margin-bottom:26px}
.cv-entry-heading{
  display:flex;
  justify-content:space-between;
  gap:30px}
.cv-entry h3{
  font-size:14px;
  line-height:1.7;
  font-weight:500}
.cv-entry-heading>span{
  font:10px/1.9 var(--mono);
  color:var(--accent);
  white-space:nowrap}
.cv-entry-subtitle{
  color:var(--accent);
  font-size:11px;
  margin-top:7px}
.cv-entry ul{
  padding-left:18px;
  font-size:12px;
  color:var(--muted);
  margin:9px 0 0;
  line-height:1.95}
.cv-skills{
  margin:0}
.cv-skills>div{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:25px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-size:12px}
.cv-skills dt{
  color:var(--text)}
.cv-skills dd{
  margin:0;
  color:var(--muted)}
.cv-body .publication{
  grid-template-columns:75px 1fr;
  gap:18px}
.cv-body .publication h3{
  font-size:13px}
.error-page{
  padding-block:100px 120px}
.error-page h1{
  font-size:50px}
.error-page .btn{
  margin-top:30px}

.project-dialog{
  color:var(--text);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  width:min(780px,calc(100% - 36px));
  max-height:88dvh;
  padding:30px;
  overflow:auto;
  box-shadow:0 20px 100px #0008}
.project-dialog::backdrop{
  background:#020617d4;
  backdrop-filter:blur(6px)}
.dialog-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px}
.dialog-close{
  display:grid;
  place-items:center;
  width:33px;
  height:33px;
  border:1px solid var(--line);
  border-radius:50%;
  background:transparent;
  font-size:23px;
  line-height:1}
.dialog-close:hover{
  background:#141d34}
.project-dialog h2{
  font-size:26px;
  font-weight:500}
.dialog-role{
  font:10px var(--mono);
  color:var(--accent);
  margin-top:13px}
.project-dialog figure{
  margin-block:26px}
.project-dialog figure img{
  width:100%;
  max-height:440px;
  object-fit:contain;
  border-radius:8px;
  background:#eef0ee}
.project-dialog figcaption{
  font-size:10px;
  color:var(--subtle);
  margin-top:9px}
.project-dialog>p{
  font-size:13px;
  color:var(--muted)}
.project-dialog ul{
  font-size:13px;
  color:var(--muted);
  padding-left:20px;
  line-height:1.95}
.project-dialog li+li{
  margin-top:10px}
.dialog-links{
  display:flex;
  gap:26px;
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:24px}

.site-footer{
  border-top:1px solid var(--line);
  padding-block:40px 50px;
  margin-top:88px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:30px}
.site-footer p{
  font-size:10px;
  color:var(--subtle);
  margin-top:14px;
  line-height:1.9}
.footer-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:26px;
  flex-wrap:wrap;
  font-size:11px}
.footer-right .text-link{
  font-size:11px}
.footer-date{
  flex-basis:100%;
  text-align:right;
  font:9px var(--mono);
  color:var(--subtle);
  margin-top:6px}
.back-top{
  position:fixed;
  right:25px;
  bottom:70px;
  background:#10182d;
  border:1px solid var(--line);
  width:34px;
  height:34px;
  border-radius:7px;
  z-index:40}
.preview-tweaks{
  position:fixed;
  right:20px;
  bottom:16px;
  z-index:60;
  font-size:11px}
.preview-tweaks>summary{
  cursor:pointer;
  border:1px solid var(--line);
  padding:7px 11px;
  border-radius:6px;
  background:#10182d;
  list-style:none;
  font:10px var(--mono);
  color:var(--muted);
  box-shadow:0 2px 10px #0005}
.preview-tweaks>summary::-webkit-details-marker{
  display:none}
.preview-tweaks>summary span{
  margin-left:10px}
.preview-tweaks[open]>div{
  position:absolute;
  right:0;
  bottom:44px;
  width:235px;
  background:#10182d;
  border:1px solid var(--line);
  padding:17px;
  border-radius:10px;
  box-shadow:0 12px 40px #0007;
  display:flex;
  flex-direction:column;
  gap:14px}
.preview-tweaks p{
  font-size:12px;
  color:var(--text)}
.preview-tweaks label{
  display:flex;
  gap:9px;
  align-items:center;
  color:var(--muted)}
.preview-tweaks input{
  accent-color:var(--accent-strong)}
.preview-tweaks button{
  background:var(--accent-strong);
  border-radius:5px;
  padding:7px;
  font-size:11px}
.preview-tweaks [role=status]{
  font-size:10px;
  color:var(--subtle)}
body.compact{
  --section-space:65px}
body.compact .project-info{
  padding-block:16px}
body.compact .project-info p{
  min-height:0}


body.no-motion *,body.no-motion *::before,body.no-motion *::after{
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important}

@media(prefers-reduced-motion:no-preference){
  .project-dialog[open]{
  animation:dialog-in .2s ease-out}
@keyframes dialog-in{
  from{
  opacity:0;
  transform:translateY(12px)}
to{
  opacity:1;
  transform:translateY(0)}
}
}

/* Evidence reel: one calm motion surface for real project media. */
.media-reel{position:relative}
.reel-controls{display:flex;align-items:center;gap:.65rem;font:500 .72rem/1 JetBrains Mono,monospace;color:var(--muted)}
.reel-controls button{width:2.25rem;height:2.25rem;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);cursor:pointer;transition:transform .2s ease,border-color .2s ease,background .2s ease}
.reel-controls button:hover,.reel-controls button:focus-visible{border-color:var(--accent);background:var(--accent-soft);transform:translateY(-2px)}
.reel-viewport{display:grid;min-height:clamp(250px,42vw,520px);overflow:hidden;border:1px solid var(--line);border-radius:1.25rem;background:#0f172a}
.reel-slide{grid-area:1/1;margin:0;display:grid;grid-template-rows:1fr auto;min-width:0;animation:reel-in .45s ease both}
.reel-slide[hidden]{display:none}
.reel-slide img{width:100%;height:100%;min-height:0;max-height:520px;object-fit:cover;object-position:center;display:block}
.reel-slide figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.85rem 1.1rem;background:#0f172a;color:#f8fafc;font-size:.86rem}
.reel-slide figcaption span{color:#94a3b8;font:500 .66rem/1.4 JetBrains Mono,monospace;text-transform:uppercase;letter-spacing:.06em}
@keyframes reel-in{from{opacity:.15;transform:scale(1.02)}to{opacity:1;transform:none}}
.award-proof-panel{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:2rem;margin-top:1.25rem;padding:1.35rem;border:1px solid var(--line);border-radius:1rem;background:var(--surface)}
.award-proof-panel h3{margin:.45rem 0;font-size:1.05rem}.award-proof-panel p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.65}
.award-proof-list{display:grid;grid-template-columns:1fr 1fr;gap:.65rem 1rem;margin:0;padding:0;list-style:none}.award-proof-list li{display:grid;grid-template-columns:5rem 1fr;gap:.55rem;padding:.6rem 0;border-bottom:1px solid var(--line);font-size:.8rem;line-height:1.45}.award-proof-list span{color:var(--accent);font:500 .68rem/1.4 JetBrains Mono,monospace}.award-proof-list strong{font-weight:600}
@media (max-width:700px){.reel-slide figcaption{display:block}.reel-slide figcaption span{display:block;margin-top:.35rem}.award-proof-panel{grid-template-columns:1fr}.award-proof-list{grid-template-columns:1fr}.reel-viewport{min-height:230px}}
@media (prefers-reduced-motion:reduce){.reel-slide{animation:none}.reel-controls button{transition:none}}
.hero-visual{min-width:0}
.hero-visual>img{width:100%;max-width:100%}
@media(max-width:580px){.hero-visual{width:100%;max-width:100%;min-width:0;overflow:hidden}.hero-visual>img{width:100%;min-width:0;object-fit:contain;background:#f8fafc}}

@media(min-width:900px){
  body:not(.no-motion) .hero-visual{
  transition:transform .25s ease}
body:not(.no-motion) .hero-visual:hover{
  transform:rotate(0)}
}

@media(max-width:1100px){
  .container{
  width:calc(100% - 64px)}
.nav-shell{
  width:calc(100% - 64px);
  gap:28px}
.hero{
  gap:45px}
.hero h1{
  font-size:60px}
.hero-statement{
  font-size:24px}
.project-grid{
  gap:17px}
.project-info{
  padding:19px 17px}
.project-info h3{
  font-size:14px}
.research-counts{
  gap:25px}
.focus-layout{
  gap:65px}
.award-card{
  grid-template-columns:130px 1fr}
.award-card>img{
  width:130px}
.award-card>div{
  padding:20px 17px}
.award-card h3{
  font-size:15px}
.contact-layout{
  gap:45px}
.contact-layout h2{
  font-size:31px}
.contact-email{
  font-size:17px}
}

@media(max-width:800px){
  :root{
  --section-space:72px}
.container{
  width:calc(100% - 44px)}
.nav-shell{
  width:calc(100% - 44px);
  min-height:70px;
  gap:20px}
.wordmark-name{
  display:none}
.nav-links{
  gap:22px}
.nav-contact{
  display:none}
.hero{
  gap:28px;
  padding-block:55px 40px;
  grid-template-columns:1.1fr 1fr}
.hero h1{
  font-size:47px;
  letter-spacing:-2px}
.hero-zh{
  font-size:20px;
  margin-top:15px}
.hero-kicker{
  font-size:8px;
  letter-spacing:.8px;
  margin-bottom:20px}
.hero-statement{
  font-size:21px;
  margin-top:25px}
.hero-description{
  font-size:11px}
.hero-actions{
  gap:8px;
  flex-wrap:wrap}
.btn{
  font-size:10px;
  padding:10px 13px;
  gap:15px}
.hero-location{
  font-size:7px}
.visual-topline,.hero-visual figcaption{
  padding:13px;
  font-size:7px}
.hero-visual figcaption span:last-child{
  display:none}
.research-strip-label p{
  font-size:11px}
.research-counts{
  gap:20px}
.research-counts>div{
  flex-direction:column;
  gap:9px}
.research-counts strong{
  font-size:24px}
.research-counts span{
  font-size:8px}
.project-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px}
.project-info h3{
  font-size:16px}
.focus-layout{
  gap:45px}
.focus-intro{
  font-size:19px}
.focus-list article{
  gap:15px}
.focus-list h3{
  font-size:13px}
.focus-list p{
  font-size:11px}
.timeline-item{
  grid-template-columns:135px 1fr;
  gap:20px}
.timeline-item h3{
  font-size:15px}
.timeline-item p{
  font-size:12px}
.award-card{
  display:block}
.award-card>img{
  width:100%;
  height:155px}
.award-card>div{
  padding:22px}
.contact-layout{
  grid-template-columns:1fr 1fr;
  gap:35px}
.contact-layout h2{
  font-size:26px}
.contact-section{
  padding-block:70px 50px;
  margin-top:72px}
.section-heading h2{
  font-size:25px}
.page-intro h1{
  font-size:56px}
.cv-entry-heading{
  gap:15px}
.cv-skills>div{
  grid-template-columns:150px 1fr;
  gap:15px}
.publication-controls label{
  min-width:0;
  flex:1}
}

@media(max-width:580px){
  .nav-shell{
  gap:14px}
.nav-toggle{
  display:block;
  margin-left:auto}
.nav-links{
  display:none;
  position:absolute;
  top:70px;
  left:0;
  right:0;
  background:#080f22;
  border-bottom:1px solid var(--line);
  padding:13px 22px;
  flex-direction:column;
  align-items:stretch;
  gap:0}
.nav-links.is-open{
  display:flex}
.nav-link{
  padding:13px 8px}
.nav-link.active::after{
  left:auto;
  right:8px;
  bottom:22px}
.hero{
  grid-template-columns:1fr;
  gap:32px;
  padding-top:42px}
.hero h1{
  font-size:60px;
  letter-spacing:-3px}
.hero-kicker{
  font-size:9px;
  letter-spacing:1.2px}
.hero-zh{
  font-size:21px}
.hero-statement{
  font-size:25px;
  margin-top:27px}
.hero-description{
  font-size:13px;
  max-width:420px}
.hero-actions{
  margin-top:24px}
.btn{
  font-size:12px;
  padding:12px 18px;
  gap:24px}
.hero-location{
  font-size:8px;
  gap:7px;
  line-height:1.6;
  margin-top:25px}
.hero-visual{
  transform:none;
  max-width:460px;
  width:100%;
  justify-self:center}
.hero-visual>img{
  aspect-ratio:1.5;
  object-position:50% 47%}
.visual-topline{
  font-size:8px;
  padding:12px 16px}
.hero-visual figcaption{
  font-size:8px;
  padding:13px 16px}
.hero-visual figcaption span:last-child{
  display:block;
  font-size:7px}
.research-strip{
  flex-direction:column;
  align-items:stretch;
  padding-block:22px}
.research-counts{
  justify-content:space-between;
  border-top:1px solid var(--line);
  padding-top:20px;
  gap:25px}
.research-counts>div{
  flex-direction:row;
  gap:10px}
.research-counts span{
  font-size:8px}
.research-counts strong{
  font-size:23px}
.section-heading{
  align-items:center;
  gap:12px}
.section-heading h2{
  font-size:22px}
.section-heading .text-link{
  font-size:10px;
  gap:8px}
.eyebrow{
  font-size:8px;
  letter-spacing:1.5px}
.project-grid{
  grid-template-columns:1fr;
  gap:22px}
.project-media{
  aspect-ratio:16/9}
.project-info{
  padding:22px}
.project-info h3{
  font-size:19px;
  min-height:0}
.project-info p{
  font-size:13px;
  min-height:0}
.project-meta{
  font-size:10px}
.tag{
  font-size:10px}
.focus-section{
  padding-top:80px}
.focus-layout{
  grid-template-columns:1fr;
  gap:35px}
.focus-intro{
  font-size:21px}
.focus-list h3{
  font-size:15px}
.focus-list p{
  font-size:12px}
.timeline-item{
  grid-template-columns:1fr;
  gap:12px;
  padding-block:24px}
.timeline-date{
  font-size:10px}
.timeline-item h3{
  font-size:16px}
.timeline-item p{
  font-size:12px}
.publication{
  grid-template-columns:52px 1fr;
  gap:17px;
  padding-block:23px}
.pub-year{
  font-size:14px}
.pub-type{
  font-size:6px;
  letter-spacing:.5px}
.publication h3{
  font-size:13px}
.pub-authors,.pub-venue{
  font-size:10px}
.pub-bottom{
  align-items:flex-start}
.pub-bottom>span{
  font-size:8px}
.awards-grid{
  grid-template-columns:1fr}
.award-card{
  display:grid;
  grid-template-columns:125px 1fr;
  min-height:158px}
.award-card>img{
  width:125px;
  height:100%}
.award-card>div{
  padding:20px 17px}
.award-card h3{
  font-size:15px}
.award-card p{
  font-size:10px}
.awards-other{
  font-size:10px;
  line-height:1.95}
.contact-layout{
  grid-template-columns:1fr;
  gap:25px}
.contact-layout h2{
  font-size:31px}
.contact-email{
  font-size:20px}
.contact-section{
  padding-bottom:25px}
.site-footer{
  margin-top:65px;
  gap:20px;
  padding-block:30px 85px}
.footer-right{
  gap:15px}
.footer-date{
  font-size:7px;
  max-width:155px;
  line-height:1.8}
.site-footer p{
  font-size:9px}
.page-intro{
  padding-top:40px}
.breadcrumb{
  font-size:8px;
  margin-bottom:29px}
.page-intro h1{
  font-size:46px;
  letter-spacing:-2px}
.page-intro>p{
  font-size:12px}
.page-work,.publication-section{
  padding-top:32px}
.filter-bar{
  gap:6px}
.filter-btn{
  font-size:10px;
  padding:7px 11px}
.search-row{
  gap:12px;
  align-items:flex-end}
.search-field{
  flex-direction:column;
  gap:8px;
  align-items:stretch;
  max-width:260px}
.search-field input{
  width:100%;
  font-size:10px}
.result-count{
  font-size:8px;
  white-space:nowrap;
  margin-bottom:11px}
.project-archive summary{
  font-size:11px;
  gap:12px}
.project-archive summary>span:last-child{
  font-size:8px}
.project-archive ul{
  font-size:11px}
.publication-stats{
  gap:35px}
.publication-stats strong{
  font-size:29px}
.publication-stats span{
  font-size:9px}
.publication-controls{
  gap:9px}
.publication-controls select{
  font-size:9px;
  padding:9px 6px;
  width:100%}
.cv-title-row{
  align-items:flex-start;
  flex-direction:column}
.cv-title-row h1{
  font-size:49px}
.cv-title-row .btn{
  margin-top:5px}
.cv-contacts{
  gap:12px;
  font-size:9px;
  flex-direction:column}
.cv-contacts .text-link{
  font-size:9px}
.cv-body{
  padding-top:35px}
.cv-summary p{
  font-size:12px}
.cv-body h2{
  font-size:21px}
.cv-entry-heading{
  flex-direction:column;
  gap:5px}
.cv-entry h3{
  font-size:12px}
.cv-entry-heading>span{
  font-size:9px}
.cv-entry-subtitle{
  font-size:10px}
.cv-entry ul{
  font-size:11px}
.cv-skills>div{
  grid-template-columns:1fr;
  gap:5px;
  font-size:11px}
.cv-body .publication{
  grid-template-columns:46px 1fr;
  gap:14px}
.project-dialog{
  padding:22px;
  max-height:90dvh}
.project-dialog h2{
  font-size:22px}
.project-dialog ul,.project-dialog>p{
  font-size:12px}
.dialog-links{
  flex-wrap:wrap}
.preview-tweaks{
  right:15px}
.back-top{
  right:18px}
.error-page h1{
  font-size:36px}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important}
.hero-visual{
  transform:none}
.project-card:hover,.btn:hover{
  transform:none}
}

@media print{
  *{
  box-shadow:none!important;
  text-shadow:none!important}
html,body{
  background:white!important;
  color:#111!important;
  font-size:10pt!important}
body::before,.site-header,.site-footer,.preview-tweaks,.back-top,.skip-link,.breadcrumb,[data-print]{
  display:none!important}
.container{
  width:100%;
  max-width:none!important;
  margin:0}
.page-intro{
  padding:0!important}
.cv-title-row h1{
  font-size:30pt!important;
  color:#111;
  letter-spacing:-1px}
.cv-title-row>div>p{
  font-size:12pt!important;
  color:#444}
.eyebrow{
  color:#555!important}
.cv-contacts{
  padding:12px 0;
  gap:12px;
  font-size:8pt;
  color:#444!important}
.cv-contacts .text-link{
  font-size:8pt}
.cv-body{
  padding-top:20px}
.cv-body h2{
  font-size:15pt;
  color:#111;
  break-after:avoid;
  padding-bottom:7px;
  margin-bottom:12px}
.cv-body>section,.cv-summary{
  margin-bottom:23px}
.cv-summary p,.cv-entry h3,.cv-entry ul,.cv-skills>div{
  font-size:9pt!important;
  line-height:1.6}
.cv-entry-subtitle,.cv-entry-heading>span,.cv-skills dd,.cv-summary p,.cv-entry ul{
  color:#333!important}
.cv-entry{
  margin-bottom:14px;
  break-inside:avoid}
.cv-entry-heading{
  flex-direction:row}
.cv-entry-heading>span{
  font-size:8pt}
.cv-skills>div{
  grid-template-columns:125px 1fr;
  padding-block:5px;
  gap:12px}
.cv-body .publication{
  break-inside:avoid;
  padding-block:13px;
  grid-template-columns:48px 1fr}
.publication h3{
  font-size:9pt!important;
  color:#111}
.pub-authors,.pub-venue,.pub-bottom>span,.pub-year,.pub-type{
  color:#333!important}
.status{
  color:#111!important;
  background:none!important;
  font-size:6pt;
  border-color:#aaa}
.pub-bottom{
  margin-top:5px}
.source-note{
  color:#555!important}
@page{
  size:A4;
  margin:16mm 17mm}
}

html.no-motion{
  scroll-behavior:auto!important}
.archive-description,.cv-description{
  font-size:12px;
  line-height:1.9;
  color:var(--muted);
  margin:0 0 24px}
.cv-description{
  margin-top:9px}

@media(max-width:767px){

}
@media print{

.cv-description{
  font-size:9pt;
  color:#333}
}

/* Restored image-card reveal, day theme, evidence library, and visible helper. */
.project-media{isolation:isolate}
.project-hover-reveal{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:24px;background:linear-gradient(145deg,rgba(12,19,39,.94),rgba(35,42,88,.82) 60%,rgba(14,22,39,.94));color:#f8fafc;opacity:0;transform:translateY(9px);transition:opacity .22s ease,transform .22s ease;pointer-events:none}
.project-hover-reveal strong{font-size:clamp(15px,1.5vw,20px);line-height:1.3}
.project-hover-reveal>span:nth-child(2){max-width:38ch;color:#d5d9eb;font-size:12px;line-height:1.55}
.project-hover-hint{display:flex;align-items:center;justify-content:space-between;margin-top:6px;padding-top:10px;border-top:1px solid #ffffff35;color:#c5c8ff;font:10px var(--mono);letter-spacing:.04em}
.project-open:hover .project-hover-reveal,.project-open:focus-visible .project-hover-reveal{opacity:1;transform:none}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;border:1px solid var(--line);border-radius:7px;padding:8px 10px;background:var(--surface);color:var(--muted);font-size:10px;line-height:1;white-space:nowrap}
.theme-toggle>span:first-child{font-size:16px;color:var(--accent)}
.theme-toggle:hover{border-color:var(--accent);color:var(--text)}
.assistant-widget{position:fixed;right:20px;bottom:18px;z-index:65}
.assistant-launcher{display:grid;grid-template-columns:44px auto 8px;align-items:center;gap:8px;padding:6px 10px 6px 6px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);box-shadow:0 8px 30px #0003;font-size:11px;font-weight:600}
.assistant-launcher img{width:44px;height:44px;object-fit:cover;object-position:50% 30%;border-radius:50%;border:2px solid var(--accent)}
.assistant-launcher-dot{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px color-mix(in srgb,#22c55e 18%,transparent)}
.assistant-panel{position:absolute;right:0;bottom:68px;width:min(345px,calc(100vw - 32px));max-height:calc(100vh - 96px);overflow:auto;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 20px 70px #0005}
.assistant-panel-head{display:flex;align-items:center;gap:11px;padding-bottom:13px;border-bottom:1px solid var(--line)}
.assistant-panel-head>img{width:40px;height:40px;object-fit:cover;object-position:50% 30%;border-radius:50%}
.assistant-panel-head>div{display:grid;gap:2px;flex:1}.assistant-panel-head strong{font-size:13px}.assistant-panel-head span{font-size:10px;color:var(--muted)}
.assistant-panel-head>button{width:30px;height:30px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--muted);font-size:20px}
.assistant-greeting{margin:14px 0 10px;color:var(--muted);font-size:11px}
.assistant-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.assistant-shortcuts a{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:10px;border:1px solid var(--line);border-radius:8px;background:color-mix(in srgb,var(--surface) 76%,var(--accent) 24%);font-size:10px}
.assistant-shortcuts a:hover{border-color:var(--accent);color:var(--accent)}
.assistant-companion{display:grid;gap:6px;margin-top:13px}
.assistant-companion button{padding:9px 12px;border-radius:7px;background:var(--accent-strong);color:#fff;font-size:10px}
.assistant-companion [role=status],.assistant-note{min-height:1em;color:var(--subtle);font-size:9px;line-height:1.5}
.assistant-note{margin-top:6px}
.preview-tweaks{right:auto;left:20px;bottom:16px}
.preview-tweaks>summary,.preview-tweaks[open]>div,.back-top{background:var(--surface);color:var(--text)}
.preview-tweaks[open]>div{box-shadow:0 12px 40px #0003}
.back-top{right:102px;bottom:22px}
.evidence-summary{display:flex;align-items:center;gap:13px;margin-top:28px;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);width:max-content;max-width:100%}
.evidence-summary strong{font:500 27px/1 var(--mono);color:var(--accent)}.evidence-summary span{font-size:12px;color:var(--muted)}.evidence-summary .text-link{margin-left:13px;font-size:11px}
.evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.evidence-card{min-width:0;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:13px;background:var(--surface);transition:transform .2s,border-color .2s,box-shadow .2s}
a.evidence-card:hover{transform:translateY(-3px);border-color:#818cf88c;box-shadow:0 15px 35px #0002}
.evidence-preview{height:218px;display:grid;place-items:center;overflow:hidden;padding:12px;background:#f4f5f7;border-bottom:1px solid var(--line)}
.evidence-preview img{width:100%;height:100%;object-fit:contain}
.evidence-metric{padding:24px 10px;color:#34398f;text-align:center;font:600 clamp(19px,2vw,27px)/1.2 var(--mono)}
.evidence-copy{display:flex;flex:1;flex-direction:column;padding:16px 17px 18px}
.evidence-copy .project-meta{margin-bottom:9px}
.evidence-copy h3{font-size:15px;line-height:1.45}
.evidence-copy p{margin-top:8px;color:var(--muted);font-size:11px;line-height:1.7}
.evidence-open{margin-top:auto;padding-top:13px;color:var(--accent);font:10px var(--mono)}
.evidence-privacy{margin-top:48px;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.evidence-privacy p{margin-top:8px;color:var(--muted);font-size:11px;line-height:1.8}
.archive-source{padding:0 0 20px}.archive-source .text-link{font-size:11px}
.repo-trail-heading{margin-top:50px;margin-bottom:22px}.repo-trail-heading h2{margin:.45rem 0;font-size:23px;font-weight:500}.repo-trail-heading p{max-width:720px;color:var(--muted);font-size:11px}
.repo-trail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.repo-trail-card{display:flex;flex-direction:column;align-items:flex-start;min-height:190px;padding:18px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.repo-trail-card h3{margin-top:7px;font-size:14px}.repo-trail-card p{margin:9px 0 16px;color:var(--muted);font-size:11px;line-height:1.7}.repo-trail-card .text-link{margin-top:auto;font-size:10px}
.reel-slide img[src*="research-talk"],.reel-slide img[src*="evidence-admission-proposal"]{object-fit:contain;background:#101827}

:root[data-theme="light"]{color-scheme:light;--bg:#f7f8fc;--surface:#ffffff;--text:#172033;--muted:#596579;--subtle:#748096;--accent:#5558b8;--accent-strong:#4f46e5;--line:rgba(30,41,59,.16)}
:root[data-theme="light"] body::before{background:radial-gradient(ellipse at 70% 12%,#6366f112,transparent 60%)}
:root[data-theme="light"] .site-header{background:rgba(247,248,252,.93)}
:root[data-theme="light"] .nav-links{background:var(--bg)}
:root[data-theme="light"] .nav-contact,:root[data-theme="light"] .filter-btn,:root[data-theme="light"] .theme-toggle,:root[data-theme="light"] .assistant-panel-head>button{color:var(--text)}
:root[data-theme="light"] .nav-toggle span{background:var(--text)}
:root[data-theme="light"] .search-field input{background:#fff;color:var(--text)}
:root[data-theme="light"] .site-header .nav-link{color:var(--muted)}
:root[data-theme="light"] .site-header .nav-link:hover,:root[data-theme="light"] .site-header .nav-link.active{color:var(--text)}
:root[data-theme="light"] .publication{border-color:var(--line)}
:root[data-theme="light"] .status{filter:saturate(.82)}
:root[data-theme="light"] .project-dialog{background:var(--surface);color:var(--text)}
:root[data-theme="light"] .project-dialog::backdrop{background:#20253f70}
:root[data-theme="light"] .dialog-close:hover{background:#eef0f7}
:root[data-theme="light"] .preview-tweaks>summary,:root[data-theme="light"] .preview-tweaks[open]>div,:root[data-theme="light"] .back-top,:root[data-theme="light"] .assistant-launcher,:root[data-theme="light"] .assistant-panel{background:var(--surface);color:var(--text)}
:root[data-theme="light"] .assistant-shortcuts a{background:#f5f6fb}
:root[data-theme="light"] .evidence-card,:root[data-theme="light"] .award-proof-panel{background:var(--surface)}
:root[data-theme="light"] .evidence-privacy{background:#f1f3fa}
:root[data-theme="light"] .project-index{background:#172033c7}

@media(max-width:1100px){.nav-shell{gap:17px}.nav-links{gap:18px}.nav-link{font-size:10px}.theme-toggle{padding:7px 8px}}
@media(max-width:800px){.evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.repo-trail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-shell{gap:12px}.nav-links{gap:12px}.theme-toggle [data-theme-label]{display:none}}
@media(max-width:580px){.nav-shell{gap:10px}.nav-toggle{margin-left:0}.theme-toggle{margin-left:auto;width:36px;height:36px;padding:0}.theme-toggle>span:first-child{font-size:18px}.nav-links{z-index:5}.evidence-grid,.repo-trail-grid{grid-template-columns:1fr}.evidence-preview{height:240px}.evidence-summary{flex-wrap:wrap;width:100%}.evidence-summary .text-link{margin:0 0 0 auto}.assistant-widget{right:12px;bottom:12px}.assistant-launcher{position:relative;grid-template-columns:38px;justify-items:center;width:48px;height:48px;padding:4px}.assistant-launcher>span:first-of-type{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.assistant-launcher img{width:38px;height:38px}.assistant-launcher-dot{position:absolute;right:3px;top:3px}.assistant-panel{bottom:61px}.preview-tweaks{left:12px;bottom:12px}.back-top{right:97px;bottom:19px}.project-hover-reveal{inset:auto 0 0;min-height:74px;gap:4px;padding:10px 14px;background:linear-gradient(0deg,rgba(9,14,27,.96),rgba(9,14,27,.72))}.project-hover-reveal strong{font-size:13px}.project-hover-reveal>span:nth-child(2){display:none}.project-hover-hint{margin:0;padding-top:5px;border:0;font-size:8px}}
@media(max-width:580px){.research-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.research-counts>div{min-width:0}}
@media(max-width:380px){.pub-bottom{flex-wrap:wrap;gap:6px 12px}.pub-bottom a{white-space:normal}}

/* One accessible research chart rotator; its data figures stay intact. */
.chart-rotator{min-width:0;overflow:hidden}
.chart-stage{position:relative;aspect-ratio:1.2;min-height:230px;overflow:hidden;background:#f7f7f3}
.chart-slide{position:absolute;inset:0;display:grid;place-items:center;padding:10px;animation:chart-enter .38s ease both}
.chart-slide[hidden]{display:none}
.chart-slide img{width:100%;height:100%;object-fit:contain;display:block}
.chart-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:var(--surface);color:var(--text)}
.chart-caption>div:first-child{display:grid;gap:4px;min-width:0}
.chart-caption strong{font-size:11px;line-height:1.35}
.chart-caption span{font-size:9px;line-height:1.45;color:var(--muted)}
.chart-controls{display:flex;align-items:center;gap:5px;flex-shrink:0}
.chart-controls button{min-width:29px;height:29px;padding:0 7px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font:500 10px var(--mono);cursor:pointer}
.chart-controls button:hover,.chart-controls button:focus-visible{border-color:var(--accent);background:var(--accent-soft)}
.chart-progress{height:2px;background:color-mix(in srgb,var(--accent) 18%,transparent)}
.chart-progress span{display:block;width:0;height:100%;background:var(--accent);transform-origin:left}
.chart-progress span.is-running{animation:chart-progress 6s linear both}
@keyframes chart-enter{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes chart-progress{to{width:100%}}
.education-advisor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.advisor-card{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.advisor-card h3{margin:11px 0 5px;font-size:17px;line-height:1.35}
.advisor-card>p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.advisor-credit{display:flex;justify-content:space-between;gap:12px;margin-top:22px;padding-top:13px;border-top:1px solid var(--line);font-size:11px}
.advisor-credit span{color:var(--muted)}
.advisor-credit strong{font-weight:600;text-align:right}
.about-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.about-photo-grid figure{min-width:0;margin:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.about-photo-grid img{display:block;width:100%;height:clamp(210px,30vw,360px);object-fit:cover;object-position:center 36%}
.about-photo-grid figcaption{display:flex;justify-content:space-between;gap:12px;padding:12px 15px;font-size:11px}
.about-photo-grid figcaption span{color:var(--muted)}
.assistant-launcher img{animation:assistant-idle 4.8s ease-in-out infinite;box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 22%,transparent)}
.assistant-launcher-dot{animation:assistant-pulse 2.8s ease-out infinite}
.assistant-panel:not([hidden]){animation:assistant-panel-in .22s ease-out both;transform-origin:bottom right}

@keyframes assistant-idle{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-3px) rotate(1deg)}}
@keyframes assistant-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,#22c55e 35%,transparent)}70%,100%{box-shadow:0 0 0 7px transparent}}
@keyframes assistant-panel-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:700px){.education-advisor-grid,.about-photo-grid{grid-template-columns:1fr}.chart-caption{align-items:flex-start;flex-direction:column}.chart-controls{align-self:flex-end}.chart-stage{aspect-ratio:1.05;min-height:210px}.about-photo-grid img{height:clamp(250px,72vw,380px)}}
@media(prefers-reduced-motion:reduce){.chart-slide,.chart-progress span,.assistant-launcher img,.assistant-launcher-dot,.assistant-panel:not([hidden]){animation:none!important}}
@media(hover:none){.project-hover-reveal{inset:auto 0 0;min-height:75px;gap:4px;padding:10px 14px;background:linear-gradient(0deg,rgba(9,14,27,.96),rgba(9,14,27,.70));opacity:1;transform:none}.project-hover-reveal strong{font-size:13px}.project-hover-reveal>span:nth-child(2){display:none}.project-hover-hint{margin:0;padding-top:5px;border:0;font-size:8px}}
@media(prefers-reduced-motion:reduce){.project-hover-reveal{transition:none}.project-card:hover,.evidence-card:hover{transform:none}}
.hero-identity{display:flex;align-items:center;gap:20px;margin-bottom:20px}
.hero-identity .hero-kicker{margin-bottom:9px}
.hero-identity h1{margin:0}
.profile-portrait{flex:none;width:112px;height:112px;border:3px solid var(--accent);border-radius:50%;object-fit:cover;object-position:50% 30%;box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 13%,transparent)}
.profile-links{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:22px}
.profile-link{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:11px;transition:border-color .18s,color .18s,background .18s}
.profile-link:hover,.profile-link:focus-visible{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface));color:var(--text)}
.ui-icon{display:block;width:17px;height:17px;flex:none}
.footer-right .profile-links{justify-content:flex-end;margin:0 0 8px}
.footer-right .profile-link{padding:5px 8px;font-size:10px}
.footer-right .ui-icon{width:15px;height:15px}
@media(max-width:580px){.hero-identity{gap:14px}.profile-portrait{width:86px;height:86px}.hero-identity .hero-kicker{font-size:8px}.profile-links{gap:7px}.profile-link{padding:7px 9px}}

/* Project evidence imagery and category symbols. Paired real assets cycle in place. */
.project-category{display:inline-flex;align-items:center;gap:8px;color:var(--accent)}
.project-category .project-icon{width:23px;height:23px;flex:none;padding:3px;border:1px solid color-mix(in srgb,var(--accent) 42%,transparent);border-radius:6px;background:color-mix(in srgb,var(--accent) 10%,transparent)}
.project-meta .project-category span{color:var(--accent)}
.project-meta>span:last-child{color:var(--subtle)}
.project-media.has-alternate>img{object-fit:cover}
.project-media.has-alternate .project-media-alt{position:absolute;inset:0;z-index:1;opacity:0;animation:evidence-cycle 9s ease-in-out infinite}
.project-media.has-alternate .project-index,.project-media.has-alternate .project-arrow{z-index:2}
@keyframes evidence-cycle{0%,42%,100%{opacity:0}52%,91%{opacity:1}}
.project-card:nth-child(3n) .project-media-alt{animation-delay:-3s}
.project-card:nth-child(3n+1) .project-media-alt{animation-delay:-6s}
.project-open:hover .project-media-alt,.project-open:focus-visible .project-media-alt{animation-play-state:paused}
body.no-motion .project-media-alt,html.no-motion .project-media-alt{animation:none!important;opacity:0!important}
@media(prefers-reduced-motion:reduce){.project-media-alt{animation:none!important;opacity:0!important}}

@media(max-width:580px){.hero-identity{gap:12px}.profile-portrait{width:78px;height:78px}.hero-identity h1{font-size:clamp(32px,9vw,42px);letter-spacing:-2px}.hero-statement{font-size:clamp(20px,5.4vw,23px);line-height:1.45}.hero-copy{min-width:0}.hero-description{overflow-wrap:normal}.chart-rotator{min-width:0}}

/* Related Materials: inspect first, with optional zoom and explicit download. */
a.evidence-card{cursor:zoom-in}
.evidence-preview{position:relative;isolation:isolate}
a.evidence-card .evidence-preview img{transition:transform .42s ease}
a.evidence-card:hover .evidence-preview img,a.evidence-card:focus-visible .evidence-preview img{transform:scale(1.045)}
a.evidence-card .evidence-preview::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(105deg,transparent 30%,#ffffff34 48%,transparent 66%);transform:translateX(-125%);transition:transform .72s ease;pointer-events:none}
a.evidence-card:hover .evidence-preview::after,a.evidence-card:focus-visible .evidence-preview::after{transform:translateX(125%)}
.evidence-magnify{position:absolute;right:14px;bottom:14px;z-index:2;display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#111b34df;border:1px solid #ffffff75;color:#fff;font:22px/1 var(--sans);box-shadow:0 6px 18px #0004;transition:transform .25s ease,background .25s ease}
a.evidence-card:hover .evidence-magnify,a.evidence-card:focus-visible .evidence-magnify{transform:scale(1.12) rotate(90deg);background:var(--accent-strong)}
.material-lightbox{width:min(1120px,calc(100% - 32px));height:min(92dvh,940px);max-height:92dvh;margin:auto;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 30px 110px #0009;overflow:hidden}
.material-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;animation:material-enter .28s cubic-bezier(.2,.8,.2,1) both}
.material-lightbox::backdrop{background:#020617c9;backdrop-filter:blur(8px)}
@keyframes material-enter{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.material-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid var(--line)}
.material-dialog-head h2{margin-top:4px;font-size:clamp(17px,2.2vw,24px);line-height:1.3}
.material-dialog-close{flex:none;display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--text);font-size:24px;line-height:1}
.material-dialog-close:hover{background:color-mix(in srgb,var(--accent) 15%,var(--surface))}
.material-viewer{min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:18px;background:#e9ecf3}
.material-viewer img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 8px 28px #25304a25}
.material-lightbox.is-zoomed .material-viewer{display:block;text-align:center}
.material-lightbox.is-zoomed .material-viewer img{width:150%;max-width:none;max-height:none;height:auto;margin:auto;cursor:zoom-out}
.material-dialog-bottom{display:grid;gap:13px;padding:15px 22px 18px;border-top:1px solid var(--line)}
.material-dialog-bottom p{color:var(--muted);font-size:12px;line-height:1.55}
.material-viewer-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.material-viewer-controls button,.material-viewer-controls a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 12px;border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--text);font:11px var(--sans);white-space:nowrap}
.material-viewer-controls button:hover,.material-viewer-controls a:hover{border-color:var(--accent);color:var(--accent)}
.material-viewer-controls [data-evidence-count]{min-width:54px;text-align:center;color:var(--muted);font:10px var(--mono)}
.material-viewer-controls [data-evidence-download]{margin-left:auto;background:var(--accent-strong);color:#fff;border-color:var(--accent-strong)}
.material-viewer-controls [data-evidence-download]:hover{color:#fff;filter:brightness(1.12)}
@media(max-width:620px){.material-lightbox{width:calc(100% - 16px);height:94dvh;max-height:94dvh}.material-dialog-head{padding:13px 14px}.material-viewer{padding:8px}.material-dialog-bottom{padding:10px 12px 13px}.material-dialog-bottom p{font-size:11px}.material-viewer-controls{gap:5px}.material-viewer-controls button,.material-viewer-controls a{padding:6px 8px;font-size:10px}.material-viewer-controls [data-evidence-download]{margin-left:0}}
body.no-motion a.evidence-card .evidence-preview img,body.no-motion a.evidence-card .evidence-preview::after,body.no-motion .evidence-magnify,html.no-motion a.evidence-card .evidence-preview img,html.no-motion a.evidence-card .evidence-preview::after,html.no-motion .evidence-magnify{transition:none!important}
@media(prefers-reduced-motion:reduce){.material-lightbox[open]{animation:none}a.evidence-card .evidence-preview img,a.evidence-card .evidence-preview::after,.evidence-magnify{transition:none}}

/* Publication reading layer */
.publication{transition:background .22s ease,padding .22s ease,border-color .22s ease}
.publication:hover,.publication:focus-within{background:color-mix(in srgb,var(--accent) 5%,transparent);border-color:color-mix(in srgb,var(--accent) 32%,var(--line))}
.publication-title-button{display:inline-flex;align-items:baseline;gap:.55em;max-width:100%;padding:0;border:0;background:none;color:var(--text);font:inherit;text-align:left;line-height:inherit;cursor:pointer;transition:color .2s ease}
.publication-title-button span{display:inline-block;flex:none;color:var(--accent);font-size:.9em;transition:transform .2s ease}
.publication-title-button:hover,.publication-title-button:focus-visible{color:var(--accent)}
.publication-title-button:hover span,.publication-title-button:focus-visible span{transform:translate(3px,-3px)}
.pub-teaser{max-width:75ch;margin-top:9px;color:var(--muted);font-size:12px;line-height:1.65}
.pub-action{display:inline-flex;gap:.3em;align-items:center;margin-top:13px;color:var(--accent);font:9px var(--mono);letter-spacing:.025em}
.pub-action span{transition:transform .2s ease}
.publication:focus-within .pub-action span,.publication:hover .pub-action span{transform:translate(3px,-3px)}
.publication-dialog{width:min(850px,calc(100% - 32px));padding:clamp(20px,4vw,38px)}
.publication-dialog-meta{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.publication-dialog-meta>span:last-child{color:var(--subtle);font:9px var(--mono);letter-spacing:.1em}
.publication-dialog h2{font-size:clamp(21px,3vw,30px);line-height:1.35;letter-spacing:-.025em}
.publication-dialog-authors{margin-top:14px!important;color:var(--text)!important;font-size:12px!important}
.publication-dialog-venue{margin-top:6px!important;font-size:11px!important;line-height:1.6}
.publication-dialog .publication-figure{margin:25px 0 28px}
.publication-dialog .publication-figure img{display:block;max-height:360px;object-fit:contain}
.publication-note-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:27px}
.publication-note-grid section{padding:0 0 0 15px;border-left:2px solid color-mix(in srgb,var(--accent) 45%,var(--line))}
.publication-note-grid .eyebrow{display:block;font-size:9px;line-height:1.45}
.publication-note-grid p{margin-top:10px;color:var(--muted);font-size:12px;line-height:1.75}
.publication-dialog .publication-source{margin-top:28px;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:color-mix(in srgb,var(--accent) 4%,var(--surface));font-size:11px;line-height:1.6}
.publication-source strong{display:block;margin-bottom:4px;color:var(--text);font:9px var(--mono);text-transform:uppercase;letter-spacing:.09em}
.publication-dialog .dialog-links{flex-wrap:wrap}
.publication-dialog .dialog-links a{color:var(--accent);font:11px var(--mono)}
@media(max-width:650px){.publication-note-grid{grid-template-columns:1fr;gap:18px}.publication-dialog{max-height:92dvh}.publication-dialog .publication-figure img{max-height:260px}.pub-teaser{font-size:11px}}
@media(prefers-reduced-motion:reduce){.publication,.publication-title-button,.publication-title-button span,.pub-action span{transition:none}}
body.no-motion .publication,body.no-motion .publication-title-button,body.no-motion .publication-title-button span,body.no-motion .pub-action span{transition:none!important}

/* Optional Pixel Weaver sprite pet. */
.assistant-companion-label{color:var(--subtle);font:9px var(--mono);letter-spacing:.1em;margin:1px 0 3px}
.assistant-companion #assistant-toggle{margin-top:3px;min-height:36px}
.pixel-weaver-pet{position:fixed;left:12px;bottom:3px;z-index:39;width:168px;height:183px;pointer-events:none;filter:drop-shadow(0 11px 14px #090c2780)}
.pixel-pet-character{display:block;width:168px;height:183px;padding:0;border:0;background:transparent;cursor:pointer;pointer-events:auto;transition:transform .2s ease,filter .2s ease}
.pixel-pet-character:hover{transform:translateY(-3px);filter:drop-shadow(0 0 9px #a88dff9c)}
.pixel-pet-character:focus-visible{outline:2px solid var(--accent);outline-offset:-4px;border-radius:22px}
.pixel-pet-character canvas{display:block;width:100%;height:100%}
.pixel-pet-close{position:absolute;top:2px;right:0;display:grid;place-items:center;width:26px;height:26px;border:1px solid color-mix(in srgb,var(--accent) 50%,var(--line));border-radius:50%;background:var(--surface);color:var(--text);font-size:17px;line-height:1;pointer-events:auto;opacity:.8;transition:opacity .2s,transform .2s}
.pixel-pet-close:hover,.pixel-pet-close:focus-visible{opacity:1;transform:scale(1.07)}
@media(max-width:767px){.pixel-weaver-pet{width:120px;height:130px;bottom:5px}.pixel-pet-character{width:120px;height:130px}.pixel-pet-close{width:24px;height:24px;font-size:16px}}
@media print{.pixel-weaver-pet{display:none!important}}
@media(prefers-reduced-motion:reduce){.pixel-pet-character,.pixel-pet-close{transition:none!important}}
body.no-motion .pixel-pet-character,body.no-motion .pixel-pet-close,body.no-motion .assistant-companion-options button{transition:none!important}

@media(max-width:767px){body.has-pixel-pet .preview-tweaks{left:145px}}

/* Shared research guide and bounded companions */
.assistant-panel{width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - 104px);padding:16px;overscroll-behavior:contain;scrollbar-width:thin}
.guide-prompts,.guide-audio,.companion-actions{display:flex;gap:6px;flex-wrap:wrap}
.guide-prompts button,.guide-audio button,.companion-actions button{padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--muted);font:10px var(--sans);transition:border-color .2s,color .2s,background .2s}
.guide-prompts button:hover,.guide-audio button:hover,.companion-actions button:hover{border-color:var(--accent);color:var(--text);background:color-mix(in srgb,var(--accent) 12%,var(--surface))}
.guide-audio button[aria-pressed="true"]{color:var(--accent);border-color:var(--accent)}
.guide-audio button:disabled{opacity:.4;cursor:default}
.guide-form{display:flex;gap:7px;margin:10px 0}
.guide-form input{min-width:0;flex:1;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--bg);color:var(--text);font:11px var(--sans)}
.guide-form input::placeholder{color:var(--subtle)}
.guide-form button{flex:none;background:var(--accent-strong);color:#fff;border:0;border-radius:8px;padding:9px 12px;font:11px var(--sans)}
.guide-answer{max-height:195px;overflow:auto;border:1px solid var(--line);border-radius:11px;padding:13px 14px;background:color-mix(in srgb,var(--accent) 6%,var(--surface));scrollbar-width:thin}
.guide-answer strong{display:block;font-size:12px;font-weight:600;line-height:1.45;color:var(--text)}
.guide-answer p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:7px}
.guide-answer a{display:inline-block;color:var(--accent);font:10px var(--mono);margin-top:10px}
.guide-answer small{display:block;font-size:9px;line-height:1.55;color:var(--subtle);margin-top:9px}
.guide-audio{margin-top:10px}.guide-status{font-size:10px;line-height:1.5;color:var(--muted);margin-top:7px}.guide-status:empty{display:none}
.guide-site-links{margin-top:10px}.guide-site-links summary{cursor:pointer;font-size:10px;color:var(--muted);padding:6px 0}.guide-site-links .assistant-shortcuts{margin-top:6px}
.companion-actions{margin-top:9px;gap:5px}.companion-actions button{flex:1;padding:7px 5px}
.assistant-model-credit{font-size:9px;line-height:1.5;color:var(--subtle);margin-top:7px}.assistant-model-credit a{color:var(--accent)}

.companion-speech{position:fixed;z-index:48;max-height:215px;overflow:auto;padding:15px 17px 14px;border:1px solid color-mix(in srgb,var(--accent) 50%,var(--line));border-radius:15px 15px 15px 4px;background:var(--surface);color:var(--text);box-shadow:0 12px 42px #0004;animation:guide-message-in .25s ease both;scrollbar-width:thin}
.companion-speech-label{display:block;padding-right:18px;font:8px var(--mono);letter-spacing:.12em;color:var(--accent)}
.companion-speech p{margin-top:9px;font-size:12px;line-height:1.65;color:var(--muted)}
.companion-speech a{display:inline-block;margin-top:9px;color:var(--accent);font:10px var(--mono)}
.companion-speech-close{position:absolute;top:7px;right:8px;border:0;background:transparent;color:var(--muted);font-size:17px;padding:2px 5px}
@keyframes guide-message-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.pixel-weaver-pet[data-action="jump"]::after{content:'✦';position:absolute;left:12px;top:45px;color:#a394ff;font-size:21px;pointer-events:none;animation:pet-spark .75s ease both}
@keyframes pet-spark{0%{opacity:0;transform:scale(.4)}40%{opacity:1;transform:translate(-12px,-16px) rotate(35deg)}100%{opacity:0;transform:translate(-18px,-28px) scale(.5)}}
@media screen and (max-width:767px){.assistant-widget{right:16px}.assistant-panel{max-height:calc(100dvh - 96px);bottom:66px}.guide-form input{font-size:16px;width:0}.guide-answer{max-height:180px}.companion-speech{max-height:200px}}
@media(prefers-reduced-motion:reduce){.companion-speech,.pixel-weaver-pet::after{animation:none!important}.guide-prompts button,.guide-audio button,.companion-actions button{transition:none!important}}
body.no-motion .companion-speech,body.no-motion .pixel-weaver-pet::after{animation:none!important}
@media print{.companion-speech,.assistant-widget{display:none!important}}

.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.companion-speech{overflow:hidden;max-height:200px}
.companion-speech p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;max-height:8.25em}

/* Pointer click feedback, clipped to the viewport and invisible to hit testing. */
.click-effects-layer{position:fixed;inset:0;z-index:2147483647;overflow:hidden;pointer-events:none!important;user-select:none;contain:layout style}
.click-effects-layer *{pointer-events:none!important}
.click-burst{position:absolute;width:0;height:0}
.click-burst-particle{position:absolute;left:0;top:0;display:block;width:1em;height:1em;line-height:1;text-align:center;color:var(--accent);text-shadow:0 1px 8px var(--surface);font-family:"Segoe UI Emoji","Apple Color Emoji",var(--sans);animation:click-particle .9s cubic-bezier(.16,.7,.25,1) both}
.click-burst-ring{position:absolute;left:-8px;top:-8px;width:16px;height:16px;border:1px solid var(--accent);border-radius:50%;animation:click-ring .55s ease-out both}
@keyframes click-particle{0%{opacity:0;transform:translate(-50%,-50%) scale(.35)}12%{opacity:1}65%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--burst-x)),calc(-50% + var(--burst-y))) rotate(var(--burst-turn)) scale(.8)}}
@keyframes click-ring{0%{opacity:.65;transform:scale(.45)}100%{opacity:0;transform:scale(2.7)}}
body.no-motion .click-effects-layer{display:none}
@media(prefers-reduced-motion:reduce){.click-effects-layer{display:none}}
@media print{.click-effects-layer{display:none}}

/* Keep the preference panel inside the viewport when anchored on the left. */
.preview-tweaks[open]>div{left:0;right:auto;max-width:calc(100vw - 24px)}
@media(max-width:767px){body.has-pixel-pet .preview-tweaks[open]>div{left:auto;right:0}}

/* Source-linked journal metrics, distinct from publication status. */
.pub-metrics{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:12px 0 5px}
.pub-metric{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:5px 7px;padding:5px 9px;border:1px solid var(--line);border-radius:6px;font-size:10px;line-height:1.5;color:var(--muted);transition:border-color .2s,color .2s}
.pub-metric strong{font:600 12px var(--mono);color:var(--accent)}
.pub-metric>span:last-child{font-size:9px;color:var(--subtle)}
.pub-metric:hover{border-color:var(--accent);color:var(--text)}
.pub-metric-date{font:9px/1.5 var(--mono);color:var(--subtle)}
.pub-metric-note{margin:10px 0 24px;color:var(--muted);font-size:11px;line-height:1.7}
@media(max-width:580px){.pub-metrics{gap:6px}.pub-metric-date{flex-basis:100%}}
@media print{.pub-metric{padding:2px 5px;font-size:8pt}.pub-metric-date{font-size:7pt}}
/* Light theme contrast fixes (WCAG AA 4.5:1 on --bg) */
:root[data-theme="light"]{--subtle:#5f6b80}
:root[data-theme="light"] .focus-intro{color:var(--muted)}
:root[data-theme="light"] .status-published{color:#3730a3;background:#6366f114;border-color:#6366f155}
:root[data-theme="light"] .status-accepted{color:#334155;border-color:#94a3b8}
:root[data-theme="light"] .status-review{color:#475569}
:root[data-theme="light"] .filter-btn.selected{color:#fff}
