@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #201c39;
  --muted: #58546b;
  --violet: #5635a4;
  --teal: #18676b;
  --line: #d7d2df;
  --paper: #fcfaf7;
  --tint: 174 133 85;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", var(--sans);
  --readout: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.58 var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.shell { max-width: 1440px; width: calc(100% - clamp(36px, 8vw, 144px)); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid #20233719; background: rgb(250 249 245 / .94); backdrop-filter: blur(14px); }
.nav-inner, .nav-links, .brand, .credit, .resources, .byline, .screen-info, .screen-tools, .gallery-head, footer, footer div { display: flex; align-items: center; }
.nav-inner, .gallery-head, footer { justify-content: space-between; }
.nav-inner { min-height: 62px; }
.brand { gap: .55rem; font: 720 23px/1 var(--sans); letter-spacing: -.03em; }
.nav-brand { gap: 8px; font-size: clamp(21px,2vw,25px); }
.brand-wm { color: var(--violet); font-weight: 680; }
.spec-ribbon { position: relative; width: 1.35em; height: 1.35em; flex: none; background: linear-gradient(35deg,#6055a4,#332653); clip-path: polygon(28% 6%,100% 6%,81% 25%,34% 25%,78% 47%,88% 56%,88% 69%,63% 94%,0 94%,19% 75%,63% 75%,16% 50%,6% 44%,6% 28%); }
.spec-ribbon::before,.spec-ribbon::after { content: ""; position: absolute; inset: 0; }
.spec-ribbon::before { background: linear-gradient(100deg,#6555b0,#ac9ceb); clip-path: polygon(28% 6%,100% 6%,81% 25%,34% 25%,6% 44%,6% 28%); }
.spec-ribbon::after { background: linear-gradient(100deg,#367f91,#88c9c4); clip-path: polygon(88% 69%,63% 94%,0 94%,19% 75%,63% 75%,88% 56%); }
.nav-links { gap: clamp(14px,3.1vw,46px); font: 600 19px/1.2 var(--display); text-transform: uppercase; letter-spacing: .045em; }
.nav-links a:hover, footer a:hover, .byline a:hover, .credit a:hover { color: var(--violet); text-decoration: underline; }
.showcase {
  position: relative; isolation: isolate; overflow: clip; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 98% 12%, #b6ebe5 0, transparent 37%),
              radial-gradient(ellipse at 60% 2%, #d9ccff 0, transparent 47%),
              linear-gradient(155deg, #fffbf1 7%, #fbf5ff 47%, #f9faf7 82%);
}
.showcase::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: clamp(440px,49vw,780px); pointer-events: none;
  background: radial-gradient(ellipse at 76% 70%, rgb(var(--tint) / .26), transparent 50%);
}
.showcase::after {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 86%; height: clamp(440px,49vw,780px); pointer-events: none;
  background: linear-gradient(110deg, transparent 8%, #a174cf 38%, #a597eb 56%, #529ea0 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 0 68%, transparent 100%),
              repeating-radial-gradient(ellipse 100% 98% at 100% -26%, transparent 0 16px, #0005 16.6px, transparent 17.5px);
  mask-composite: intersect;
}
.hero { display: grid; grid-template-columns: minmax(290px,.80fr) minmax(0,1.43fr); align-items: center; gap: clamp(28px,4.4vw,78px); padding-block: clamp(46px,6.2vw,96px) clamp(46px,5vw,80px); }
.byline { flex-wrap: wrap; gap: 9px; font-size: 13px; }
.credit { margin: 0; gap: clamp(7px,.7vw,12px); font: 650 clamp(17px,1.6vw,26px)/1.25 var(--sans); letter-spacing: -.02em; }
.credit a { white-space: nowrap; }
.at-hust { color: var(--violet); font-weight: 650; }
.partner-cross { color: #75659a; font: 500 .76em/1 var(--sans); }
.partner-tencent { color: var(--teal); }
.wordmark { display: block; width: fit-content; font: 600 clamp(84px,9.1vw,146px)/.93 var(--display); letter-spacing: -.018em; margin: .18em 0 .14em -.018em; }
.wordmark-wm { color: var(--violet); }
@supports (background-clip: text) {
  .wordmark-wm { background: linear-gradient(115deg, #542784 3%, #6345b6 35%, #325a96 65%, #14716f 96%); background-clip: text; color: transparent; }
}
.hero-insight { margin: 0 0 1em; max-width: 19em; font: 480 clamp(24px,2.2vw,37px)/1.23 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
.hero-insight strong { --mark: #cbbcf3; color: var(--violet); font-weight: 650; white-space: nowrap; background: linear-gradient(var(--mark),var(--mark)) left 94% / 100% .12em no-repeat; }
.hero-insight strong:last-child { --mark: #9ddbd0; color: var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .hero-insight strong { animation: mark-prediction .55s ease-out .16s backwards; }
  .hero-insight strong:last-child { animation-delay: .58s; }
  @keyframes mark-prediction { from { background-size: 0 .12em; } }
}
.resources { flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; gap: 14px; align-items: center; padding: 10px 19px; border: 1px solid transparent; border-radius: 8px; font: 600 15px/1.4 var(--sans); transition: transform .16s; }
.button:hover, .screen-tools button:hover { transform: translateY(-2px); }
.primary { background: linear-gradient(110deg,#362253,#4b3485); color: white; box-shadow: 0 4px 12px -5px #49347680; }
.secondary { background: #ffffff9c; border-color: #c9c6d5; }
.byline { color: var(--muted); margin-top: 16px; line-height: 1.5; }
.byline span { padding-left: 10px; border-left: 1px solid #c3c1cc; }
.screen { scroll-margin-top: 82px; min-width: 0; padding: clamp(5px,.65vw,10px); border-radius: 17px; border: 1px solid transparent; background: linear-gradient(#fffeff,#fffeff) padding-box, linear-gradient(128deg,#fff 5%,#bca7e6 32%,#85bcb7 74%,#fff) border-box; box-shadow: 0 22px 52px -26px #3e32624d, 0 7px 25px -16px rgb(var(--tint) / .62); }
.player-frame { border-radius: 11px; overflow: hidden; background: #252932; aspect-ratio: 1.80; }
video { width: 100%; height: 100%; display: block; object-fit: contain; }
.screen-meta { display: flex; align-items: center; justify-content: space-between; padding: 11px 8px 4px; gap: 6px; }
.screen-info, .screen-tools { gap: 10px; }
.screen-info strong { font-size: 16px; line-height: 1.2; }
.scene-count, .section-meta, .thumb-info small { font-family: var(--readout); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.scene-count { white-space: nowrap; font-size: 11px; border-right: 1px solid var(--line); padding-right: 10px; }
.screen-tools a, .figure-link { color: var(--violet); font-size: 12px; font-weight: 650; }
.screen-tools a:hover, .figure-link:hover { text-decoration: underline; }
.screen-tools button { border: 1px solid var(--line); background: white; border-radius: 50%; width: 30px; height: 30px; line-height: 1; transition: transform .16s; }
.gallery { padding-bottom: clamp(38px,5vw,76px); }
.gallery-head { border-top: 1px solid #292b461c; padding: 22px 0 17px; }
h2 { margin: 0; font: 600 clamp(40px,4.7vw,72px)/.99 var(--display); letter-spacing: .006em; text-transform: uppercase; text-wrap: balance; }
.gallery-head h2 { font-size: clamp(35px,3.65vw,56px); }
.section-meta { font-size: 12px; }
.contact-sheet { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(14px,1.7vw,26px) clamp(10px,1.4vw,22px); }
.thumb { display: block; min-width: 0; border-radius: 6px; }
.thumb-frame { position: relative; overflow: hidden; display: block; border-radius: 7px; aspect-ratio: 1.80; background: #e2e4ea; }
.thumb-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb:hover .thumb-frame img { transform: scale(1.045); }
.thumb[aria-current="true"] .thumb-frame { outline: 2px solid var(--violet); outline-offset: 3px; }
.thumb-play { position: absolute; right: 7px; bottom: 7px; display: grid; place-content:center; border: 1px solid #ffffffa6; border-radius: 50%; width:24px; height:24px; font-size: 10px; color:white; background: #24243f85; }
.thumb-info { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 6px 0 0; font-size: 14px; font-weight: 650; line-height: 1.3; }
.thumb-info small { font-size: 10px; white-space: nowrap; }
.paper-section, .results { padding-block: clamp(45px,6.5vw,96px); }
.section-title { margin-bottom: clamp(18px,2.3vw,34px); }
.routes p, .metrics p { margin: 0; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.paper-section figure + figure { margin-top: 20px; }
figure { margin: 0; padding: clamp(8px,1.2vw,20px); border: 1px solid var(--line); border-radius: 12px; background: white; }
figure img { width: 100%; height: auto; display: block; }
figcaption { padding: 12px 4px 2px; font-size: 13px; color: var(--muted); }
.figure-link { display: inline-block; padding-left: .35em; }
.routes, .metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.routes { gap: clamp(12px,2vw,28px); margin: 0 0 clamp(20px,2.5vw,38px); }
.routes article { --route-ink: #218273; padding: 14px 0 8px; border-top: 3px solid var(--route-ink); }
.routes article:nth-child(2) { --route-ink: #7456b3; }
.routes article:nth-child(3) { --route-ink: #ba663c; }
h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; font-weight: 620; letter-spacing: -.012em; }
.routes h3 { font: 600 clamp(26px,2.2vw,32px)/1.12 var(--display); }
.results { background: linear-gradient(115deg,#f0edf9 4%,#f6f0f5 55%,#e8f4f0 100%); border-block: 1px solid var(--line); }
.metrics article { padding: 0 clamp(18px,2.5vw,44px); border-left: 1px solid #cfcddc; }
.metrics article:first-child { padding-left: 0; border: 0; }
.metrics strong { font: 500 clamp(42px,4.2vw,64px)/1.18 var(--readout); font-variant-numeric: lining-nums tabular-nums; }
.metrics strong span { margin-inline-start: .06em; color: var(--violet); font-size: .72em; }
.metrics p { margin-top: 10px; }
.result-table { margin-top: clamp(28px,4vw,56px); overflow-x: auto; }
.result-table table { width: 100%; border-collapse: collapse; font-size: clamp(12px,1.1vw,16px); font-variant-numeric: tabular-nums; }
.result-table caption { text-align: left; padding-bottom: 12px; font-weight: 650; font-size: 20px; }
.result-table caption span { display: inline-block; color: var(--muted); font: 400 13px/1.4 var(--sans); }
.result-table th, .result-table td { text-align: right; padding: 10px clamp(5px,1vw,16px); border-bottom: 1px solid #d4d1e0; }
.result-table th:first-child { text-align: left; }
.result-table thead { color: var(--muted); }
.result-table .ours { color: #352952; background: #e2dcef; font-weight: 700; }
.timing { margin-top: 16px; color: var(--muted); font-size: 13px; }
.timing summary { width: fit-content; cursor: pointer; font-weight: 550; }
.timing summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.timing p { max-width: 70ch; margin: 6px 0 0; }
footer { padding-block: 26px; }
footer div { gap: 18px; font-size: 13px; }
.compare-section { background: linear-gradient(125deg,#e8f3ee,#f6f8f3 58%,#f0edf6); padding-block: clamp(44px,5.5vw,84px); border-bottom: 1px solid var(--line); }
.compare-board { --samples: 6; --frame-offset: -66.666667%; --marker-x: 400%; --ratio: 832/464; background: #fffdfb; border: 1px solid #d8d6e4; border-radius: 17px; box-shadow: 0 18px 48px -37px #504e78; padding: clamp(12px,2vw,28px); }
.compare-toolbar, .case-groups, .case-picker, .compare-note, .timeline-text { display: flex; align-items: center; }
.compare-toolbar, .compare-note, .timeline-text { justify-content: space-between; gap: 14px; }
.compare-toolbar { flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.case-groups { gap: 5px; flex-wrap: wrap; }
.case-groups button { border-radius: 20px; padding: 6px 10px; border: 1px solid #d9d6e4; background: white; font-size: 12px; font-weight: 650; }
.case-groups button[aria-pressed="true"] { background: #3b345f; border-color: #3b345f; color: white; }
.case-groups button:hover { border-color: var(--violet); }
.case-picker { gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.case-picker select { max-width: 100%; background: white; border: 1px solid #b6b3c9; color: var(--ink); border-radius: 5px; padding: 6px 7px; font: inherit; cursor: pointer; }
.case-picker select:focus-visible, .frame-track:focus-within { outline: 3px solid var(--violet); outline-offset: 3px; }
.compare-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(8px,1.3vw,20px); padding-top: 18px; }
.method-view h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 7px; font-size: 14px; }
.method-view h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #71818e; }
.method-view[data-row="draft"] h3::before { background: #b27b3d; }
.method-view[data-row="sdvg"] h3::before { background: #a3667c; }
.method-view[data-row="specwm"] h3::before { background: #745bb4; }
.sample-crop { overflow: hidden; aspect-ratio: var(--ratio); background: #ebebef; border-radius: 8px; }
.sample-crop img { display: block; width: calc(var(--samples) * 100%); height: 100%; max-width: none; transform: translateX(var(--frame-offset)); }
.method-view[data-row="specwm"] .sample-crop { outline: 2px solid #8974bc; outline-offset: 2px; }
.timeline { margin: 18px 0 12px; }
.timeline-text { margin-bottom: 5px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.timeline-text output { font: 500 12px/1.5 var(--readout); }
.timeline-text label { font-weight: 600; }
.frame-track { position: relative; isolation: isolate; overflow: hidden; height: clamp(34px,4.2vw,62px); border-radius: 6px; background: #e9e7ed; }
.frame-track img { position: absolute; display: block; width: 100%; height: auto; top: 50%; transform: translateY(-50%); }
.frame-window { position: absolute; inset: 0 auto 0 0; width: calc(100% / var(--samples)); transform: translateX(var(--marker-x)); border: 3px solid white; border-radius: 4px; box-shadow: inset 0 0 0 2px #6b52aa,0 0 0 1600px #16162c61; pointer-events: none; }
.frame-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare-note { align-items: center; border-inline-start: 3px solid #9a81c9; padding: 7px 11px; background: linear-gradient(90deg,#f3effa,transparent 85%); }
.compare-note p { margin: 0; font-size: 15px; font-weight: 470; max-width: 78ch; text-wrap: pretty; }
.compare-note a { flex: none; font-size: 13px; color: var(--violet); font-weight: 650; }
.compare-note a:hover { text-decoration: underline; }
#compare-message { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .hero { position: relative; isolation: isolate; }
  .hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -4% -2%; opacity: 0; transition: opacity .3s; background: radial-gradient(340px 220px at var(--glow-x,50%) var(--glow-y,50%), rgb(160 131 240 / .25), rgb(138 210 230 / .13) 48%, transparent 100%); }
  .hero.pointer-active::before { opacity: 1; }
  .thumb-frame::before,.thumb-frame::after { content: ""; pointer-events: none; position: absolute; left: 0; }
  .thumb-frame::before { inset: 0; z-index: 1; background: var(--peek-image) var(--peek-x,0%) center / 600% 100% no-repeat; opacity: 0; }
  .thumb.is-scrubbing .thumb-frame::before { opacity: 1; }
  .thumb.is-scrubbing .thumb-frame::after { width: var(--peek-progress); height: 3px; background: #e1ceff; bottom: 0; z-index: 2; box-shadow: 0 0 8px #ae95e8; }
  .thumb-play { z-index: 2; }
}
@media(max-width:760px) {
  .compare-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .compare-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .compare-note { align-items: flex-start; flex-direction: column; gap: 6px; }
  .frame-track { height: 44px; }
}
@media(max-width:460px) { .nav-paper { display: none; } }
@media (min-width:721px) and (max-width:900px) {
  .credit { column-gap: 3px; }
}
@media(max-width:900px) {
  .hero { grid-template-columns: minmax(220px,.8fr) minmax(0,1.35fr); gap: 20px; }
  .contact-sheet { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .screen-tools { gap: 6px; }
}
@media(max-width:720px) {
  .hero { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; padding-bottom: 28px; gap: 24px; }
  .wordmark { font-size: clamp(78px,15vw,100px); }
  .hero-insight { font-size: clamp(24px,4.8vw,31px); }
  .byline { margin-top: 10px; }
  .contact-sheet { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .routes,.metrics { grid-template-columns: 1fr; gap: 0; }
  .metrics article, .metrics article:first-child { border: 0; padding: 14px 0; }
  .metrics article + article { border-top: 1px solid var(--line); }
  .routes { gap: 12px; }
  .routes article { padding: 2px 0 2px 14px; border-top: 0; border-inline-start: 3px solid var(--route-ink); }
  .screen-meta { flex-wrap: wrap; padding: 9px 3px 3px; }
  .screen-tools button { width: 32px; height: 32px; }
  .nav-links { gap: 12px; font-size: 16px; }
  .nav-inner { min-height: 53px; }
}
@media(max-width:400px) {
  .nav-inner { width: calc(100% - 24px); }
  .nav-brand { font-size: 18px; gap: 4px; }
  .scene-count { display: none; }
  .screen-info strong { font-size: 14px; }
  .nav-links { gap: 6px; font-size: 14px; letter-spacing: .02em; }
  .thumb-info { font-size: 12px; }
}
@media(max-width:360px) {
  .nav-inner { width: calc(100% - 16px); }
  .nav-links { letter-spacing: 0; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none !important; }
}
@media (forced-colors: active) {
  .wordmark-wm { background: none; color: CanvasText; }
  .showcase::after { display: none; }
}
