/* Tongyi-inspired violet palette; legacy color names retain existing markup. */
:root{color-scheme:dark;--bg:#090a0c;--fg:#f4f2fa;--muted:#aaa7b8;--line:#2b2636;--accent:#7560ed;--accent-hover:#8976f5;--blue:#b3a5ff;--yellow:#c4b5f5;--purple:#d7c9ff}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--fg);font-family:Inter,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}a:focus-visible,summary:focus-visible,video:focus-visible{outline:2px solid var(--blue);outline-offset:5px}.wrap{width:min(1080px,calc(100% - 64px));margin-inline:auto}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(32px,calc((100vw - 1280px)/2));border-bottom:1px solid var(--line);background:rgba(9,10,12,.96);position:sticky;top:0;z-index:10}.wordmark{font-size:21px;font-weight:700;letter-spacing:-.8px}.wordmark span{font-weight:400;color:var(--blue)}.wordmark i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--yellow);margin:0 0 3px 6px}nav{display:flex;gap:28px;font-size:13px;color:var(--muted)}.hero{text-align:center;padding-top:85px}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:2.5px;line-height:1.7;color:var(--blue);font-weight:600}.hero h1{font-size:clamp(74px,12vw,140px);line-height:1;margin:24px 0;letter-spacing:-7px;font-weight:650}.hero h1 span{color:var(--blue);font-weight:350}.hero h2{font-size:clamp(21px,3.1vw,34px);font-weight:450;line-height:1.35;letter-spacing:-.8px;margin:0}.hero-intro{color:var(--muted);font-size:18px;margin:24px 0 32px}.authors{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 19px;font-size:14px;line-height:1.8}.authors sup{font-size:9px;margin-left:3px;color:var(--blue)}.affiliations{font-size:12px;color:var(--muted);line-height:1.9}.author-notes{font-size:11px;color:var(--muted);line-height:1.8;max-width:650px;margin:auto}.author-notes summary{cursor:pointer}.actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin:32px 0 48px}.button{border:1px solid #41444b;border-radius:100px;padding:12px 22px;font-size:13px}.button span{margin-left:18px}.button.primary{background:var(--fg);color:var(--bg);border-color:var(--fg)}.button:hover{border-color:var(--blue)}.pending{font-size:12px;color:var(--muted);padding:12px}.film{margin:35px 0 0}.film video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#000;border:1px solid #22252b;border-radius:10px}figcaption{color:#92959f;font-size:12px;line-height:1.6;margin:12px 2px;text-align:left}.hero-film figcaption{display:flex;justify-content:space-between;text-transform:uppercase;letter-spacing:1.6px;font-size:10px}.chapter{padding-top:108px;margin-top:52px;border-top:1px solid var(--line)}.section-head h2,.closing h2{font-size:clamp(31px,4.6vw,54px);font-weight:450;letter-spacing:-1.8px;line-height:1.12;margin:20px 0 28px}.prose{max-width:750px;color:var(--muted);font-size:17px;line-height:1.85}.prose p{margin:0 0 16px}.blue{color:var(--blue)}.yellow{color:var(--yellow)}.purple{color:var(--purple)}.method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin:38px 0 0}.method-grid article{border-top:1px solid var(--line);padding-top:23px}.step{font-size:12px}.method-grid h3{font-weight:500;font-size:23px;margin:16px 0 12px}.method-grid p{font-size:14px;line-height:1.8;color:var(--muted);margin:0}.subsection{margin-top:60px;max-width:760px}.subsection h3{font-size:26px;letter-spacing:-.6px;font-weight:450}.subsection p{color:var(--muted);line-height:1.85;font-size:17px}.pullquote{border-left:2px solid var(--yellow);padding:6px 0 6px 28px;font-size:clamp(23px,3vw,34px);line-height:1.4;margin:55px 0 30px;letter-spacing:-.8px}.pullquote span{color:var(--muted)}.closing{padding:125px 0 100px;text-align:center}.closing h2 span{color:var(--purple)}.closing>p:last-child{max-width:700px;margin:28px auto 0;color:var(--muted);font-size:18px;line-height:1.85}.citation{border-top:1px solid var(--line);padding:50px 0}.citation h2{font-size:30px;font-weight:450}.citation-slot{min-height:65px}footer{padding:30px 0 45px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px}footer p,footer>a:last-child{font-size:11px;color:var(--muted);line-height:1.7}.skip{position:absolute;top:-70px;left:16px;padding:12px;background:var(--fg);color:var(--bg);z-index:30}.skip:focus{top:12px}
@media(max-width:640px){.wrap{width:calc(100% - 36px)}.topbar{height:62px;padding:0 18px}nav{gap:14px;font-size:11px}.hero{padding-top:58px}.hero h1{letter-spacing:-4px}.hero h2 br{display:none}.hero-intro{font-size:16px}.authors{gap:5px 12px;font-size:12px}.hero-film figcaption{font-size:8px;letter-spacing:.5px;gap:15px}.chapter{padding-top:54px;margin-top:45px}.section-head h2,.closing h2{letter-spacing:-1px}.prose,.subsection p{font-size:16px}.method-grid{grid-template-columns:1fr;gap:25px}.method-grid h3{display:inline-block;margin:0 0 10px 15px}.method-grid p{max-width:400px}.subsection{margin-top:42px}.closing{padding:80px 0 65px}footer{flex-direction:column;align-items:flex-start;gap:8px}.film video{border-radius:5px}}
/* Purple accents on the original black canvas; no changes to media colors. */
::selection{background:#5942a0;color:#fff}
.wordmark i{background:var(--accent)}
.button{border-color:#514366}
.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.button.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}
.button:not(.primary):hover{background:#1e172e;border-color:var(--blue)}
.film video{border-color:var(--line)}
.pullquote{border-left-color:var(--accent)}
/* Compact vertical rhythm; keep all chapter content and native video proportions. */
.hero{padding-top:48px}
.hero h1{font-size:clamp(74px,10vw,116px);margin:18px 0}
.hero-intro{margin:18px 0 22px}
.actions{margin:24px 0 28px}
.film{max-width:854px;margin:24px auto 0}
.film video{max-height:480px}
.chapter{padding-top:56px;margin-top:36px}
.section-head h2,.closing h2{margin:16px 0 20px}
.prose,.subsection p{line-height:1.7}
.method-grid{gap:28px;margin-top:26px}
.method-grid article{padding-top:16px}
.method-grid h3{margin:12px 0 8px}
.subsection{margin-top:34px}
.subsection h3{margin-bottom:14px}
.pullquote{margin:32px 0 22px}
.closing{padding:68px 0 52px}
.closing>p:last-child{margin-top:20px;line-height:1.7}
.citation{padding:28px 0}
.citation-slot{min-height:30px}
@media(max-width:640px){
  .hero{padding-top:34px}
  .hero-intro{font-size:16px;margin:16px 0 20px}
  .actions{margin:24px 0}
  .chapter{padding-top:36px;margin-top:30px}
  .subsection{margin-top:28px}
  .method-grid{gap:18px}
  .method-grid h3{margin:0 0 10px 15px}
  .closing{padding:48px 0 36px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* One compact resource row with shared colors and interaction states. */
.actions.resource-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:580px;margin:28px auto;align-items:stretch}
.resource-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:80px;padding:12px;border:1px solid #40364f;border-radius:12px;background:#141119;color:var(--fg)}
.resource-title{display:inline-flex;align-items:center;gap:8px;font-size:21px;font-weight:550;line-height:28px}
.link-icon{width:17px;height:17px;flex:none}
.citation-slot pre{margin:0;padding:20px;border:1px solid var(--line);border-radius:10px;background:#141119;overflow-x:auto;color:var(--fg);font-size:13px;line-height:1.7}
.citation-slot code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.resource-detail{font-size:11px;line-height:16px;color:var(--muted);white-space:nowrap}
.resource-arrow{font-size:15px;color:var(--blue);margin-left:4px}
.resource-link{background:#211a32;border-color:#64518b;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.resource-link:hover,.resource-link:focus-visible{background:#2c2142;border-color:var(--blue);color:#fff}
.resource-report .resource-title{font-size:27px}
@media(prefers-reduced-motion:reduce){.resource-link{transition:none}}
@media(max-width:640px){.actions.resource-links{gap:8px;margin:24px auto}.resource-link{min-height:76px;padding:10px 4px;border-radius:10px}.resource-title{font-size:18px}.resource-report .resource-title{font-size:25px}.resource-detail{font-size:10px}}
/* Fixed chapter markers, kept outside the reading column. */
/* Compact opening layout without removing or reordering any content. */
.topbar{height:56px}
.hero{padding-top:12px}
.hero > .eyebrow{margin:8px 0;font-size:10px;letter-spacing:2px}
.hero h1{font-size:clamp(56px,6vw,76px);letter-spacing:-4px;margin:6px 0 10px}
.hero h2{font-size:clamp(20px,2vw,27px);line-height:1.2;letter-spacing:-.5px}
.hero-intro{color:var(--blue);font-size:16px;line-height:1.35;margin:10px 0}
.hero .authors{font-size:13px;line-height:1.5;margin:10px 0 6px;gap:4px 16px}
.author-link:not([href]){color:inherit;cursor:inherit}
.author-link{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.contact-link span{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.hero .affiliations{font-size:11px;line-height:1.5;margin:6px 0}
.hero .author-notes{font-size:10px;line-height:1.5}
.hero .actions.resource-links{max-width:530px;margin:12px auto;gap:10px}
.hero .resource-link{min-height:56px;padding:7px 12px;gap:2px;border-radius:10px}
.hero .resource-title{font-size:18px;line-height:22px}
.hero .resource-report .resource-title{font-size:23px}
.hero .resource-detail{font-size:10px;line-height:14px}
.hero-film{width:min(100%,calc(clamp(220px,100svh - 520px,480px) * 16 / 9));margin:12px auto 0}
.hero-film figcaption{margin:6px 2px;font-size:9px;letter-spacing:1px}
@media(max-width:640px){
  .topbar{height:52px}
  .hero{padding-top:12px}
  .hero > .eyebrow{font-size:9px;letter-spacing:1.5px}
  .hero h1{font-size:60px;margin:8px 0 10px;letter-spacing:-3px}
  .hero h2{font-size:20px;line-height:1.25}
  .hero h2 br{display:initial}
  .hero-intro{font-size:14px;margin:10px 0}
  .hero .authors{font-size:11px;gap:3px 10px}
  .hero .affiliations{font-size:10px;line-height:1.5}
  .hero .resource-link{padding:7px 4px}
  .hero .actions.resource-links{gap:8px}
  .hero-film{width:100%}
  .hero-film figcaption{font-size:8px;letter-spacing:.4px}
}
.chapter-dots{position:fixed;right:12px;top:50%;transform:translateY(-50%);z-index:20;display:flex;flex-direction:column;gap:4px;padding:8px 2px;border:1px solid var(--line);border-radius:24px;background:rgba(9,10,12,.86)}
.chapter-dots a{position:relative;display:grid;place-items:center;width:28px;height:28px;border-radius:50%}
.chapter-dots a::after{content:"";width:6px;height:6px;border-radius:50%;background:#686176;transition:background .2s,box-shadow .2s,transform .2s}
.chapter-dots a[aria-current]::after{background:var(--blue);transform:scale(1.4);box-shadow:0 0 0 4px rgba(117,96,237,.2),0 0 12px rgba(117,96,237,.5)}
.chapter-dots a:hover::after{background:var(--blue)}
.chapter-dot-label{position:absolute;right:38px;white-space:nowrap;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:#15121d;color:var(--fg);font-size:12px;opacity:0;visibility:hidden;pointer-events:none}
.chapter-dots a:hover .chapter-dot-label,.chapter-dots a:focus-visible .chapter-dot-label{opacity:1;visibility:visible}
@media(max-width:1199px){.chapter-dots{right:2px;padding:6px 0}.chapter-dots a{width:24px;height:28px}}
@media(max-width:640px){.chapter-dots{right:0;border:0;background:rgba(9,10,12,.7)}.chapter-dots a{width:16px;height:28px}.chapter-dots a::after{width:4px;height:4px}.chapter-dot-label{right:24px}}
@media(prefers-reduced-motion:reduce){.chapter-dots a::after{transition:none}}

/* Separate video transport: never cover captions or the bottom of the frame. */
.video-player{overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#100e16;text-align:left}
.video-frame{aspect-ratio:16/9;background:#000;display:flex;align-items:center;justify-content:center}
.film .video-frame video{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;border:0;border-radius:0}
.video-controls{display:flex;align-items:center;gap:6px;min-height:46px;padding:0 8px;border-top:1px solid var(--line);background:#14111c;color:var(--blue)}
.video-controls button{display:grid;place-items:center;flex:0 0 36px;min-height:44px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer}
.video-controls button:hover{background:#282039;color:#e0d8ff}
.video-controls svg{width:19px;height:19px}
.video-controls button:focus-visible,.video-seek:focus-visible{outline:2px solid var(--blue);outline-offset:-2px;border-radius:5px}
.video-time{flex-shrink:0;color:#c6bed9;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.2}
.video-seek{--played:0%;appearance:none;-webkit-appearance:none;flex:1;min-width:24px;width:100%;height:44px;margin:0 6px;background:transparent;cursor:pointer;accent-color:var(--blue)}
.video-seek::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(to right,var(--blue) var(--played),#40364f var(--played))}
.video-seek::-moz-range-track{height:3px;border-radius:3px;background:linear-gradient(to right,var(--blue) var(--played),#40364f var(--played))}
.video-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:11px;height:11px;margin-top:-4px;border:0;border-radius:50%;background:var(--blue)}
.video-seek::-moz-range-thumb{width:11px;height:11px;border:0;border-radius:50%;background:var(--blue)}
.video-seek:disabled{opacity:.4;cursor:default}
.video-status{padding:8px 12px;color:var(--muted);font-size:12px}
.video-status a{color:var(--blue);text-decoration:underline}
.video-player:fullscreen{display:flex;flex-direction:column;width:100%;height:100%;border:0;border-radius:0;background:#000}
.video-player:fullscreen .video-frame{flex:1;min-height:0;aspect-ratio:auto}
.video-player:fullscreen .video-controls{flex-shrink:0}
@media(min-width:641px){.hero-film:has(.video-player){width:min(100%,calc(clamp(220px,100svh - 566px,480px) * 16 / 9))}}
@media(max-width:640px){.video-player{border-radius:5px}}
@media(max-width:400px){.video-controls{gap:2px;padding:0 4px}.video-controls button{flex-basis:32px}.video-seek{margin:0 4px}.video-time{font-size:10px}}

/* Institutional branding and internship attribution. */
.brand-group{display:flex;align-items:center;gap:18px}
.lab-brand{display:flex;align-items:center;gap:8px;padding-right:18px;border-right:1px solid var(--line);font-size:13px;font-weight:600;white-space:nowrap}
.lab-brand img{display:block;width:30px;height:30px}
.internship-note{font-size:11px;line-height:1.6;color:var(--muted);margin:8px auto;max-width:650px}
.internship-note sup{color:var(--blue)}
@media(max-width:640px){.brand-group{gap:10px}.lab-brand{padding-right:10px}.lab-brand img{width:25px;height:25px}.internship-note{font-size:10px;max-width:340px}}
