:root {
  --ink: #20242b;
  --muted: #6d7480;
  --rule: #e6e9ee;
  --accent: #785c9f;
  --accent-soft: #ad91d7;
  --accent-border: #d2c2ea;
  --tint: #f5f1fc;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; background: #fff; padding: 12px; z-index: 5; }
.skip-link:focus { top: 12px; }
.paper-header { text-align: center; padding: 78px 0 40px; }
h1 { margin: 0; font-size: clamp(40px, 5.2vw, 64px); font-weight: 700; letter-spacing: -.048em; line-height: 1.16; }
h1 > span { color: #9b7bc2; }
.title-connections { display: block; width: 128px; height: 23px; margin: 14px auto 0; overflow: visible; }
.paper-subtitle + .title-connections { margin-top: 16px; }
.connection-rail, .connection-return { fill: none; stroke-linecap: round; }
.connection-rail { stroke: var(--accent-border); stroke-width: 1.3; }
.connection-return { stroke: var(--accent-border); stroke-width: 1.1; stroke-dasharray: 3 4; opacity: .85; }
.connection-node circle { fill: var(--accent-soft); transform-box: fill-box; transform-origin: center; }
.connection-dot { opacity: .85; }
.connection-halo { opacity: 0; animation-duration: 6s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.node-first .connection-halo { animation-name: node-first-arrival; }
.node-middle .connection-halo { animation-name: node-middle-arrival; }
.node-last .connection-halo { animation-name: node-last-arrival; }
.connection-signal { opacity: 0; animation-duration: 6s; animation-timing-function: linear; animation-iteration-count: infinite; }
.signal-glow { fill: var(--accent-soft); opacity: .24; }
.signal-core { fill: #9475bc; }
.signal-forward { animation-name: signal-forward; }
.signal-to-first { animation-name: signal-to-first; }
.signal-to-middle { animation-name: signal-to-middle; }
@keyframes signal-forward {
  0% { transform: translate(16px, 8px); opacity: 0; }
  1% { transform: translate(16px, 8px); opacity: 1; }
  18% { transform: translate(80px, 8px); opacity: 1; }
  36% { transform: translate(144px, 8px); opacity: 1; }
  37%, 100% { transform: translate(144px, 8px); opacity: 0; }
}
@keyframes signal-to-first {
  0%, 36% { transform: translate(144px, 8px); opacity: 0; }
  38% { transform: translate(144px, 8px); opacity: 1; }
  42% { transform: translate(144px, 21px); opacity: 1; }
  59% { transform: translate(80px, 21px); opacity: 1; }
  76% { transform: translate(16px, 21px); opacity: 1; }
  80% { transform: translate(16px, 8px); opacity: 1; }
  82%, 100% { transform: translate(16px, 8px); opacity: 0; }
}
@keyframes signal-to-middle {
  0%, 36% { transform: translate(144px, 8px); opacity: 0; }
  38% { transform: translate(144px, 8px); opacity: 1; }
  42% { transform: translate(144px, 21px); opacity: 1; }
  59% { transform: translate(80px, 21px); opacity: 1; }
  63% { transform: translate(80px, 8px); opacity: 1; }
  65%, 100% { transform: translate(80px, 8px); opacity: 0; }
}
@keyframes node-first-arrival {
  0%, 6%, 75%, 85%, 100% { opacity: 0; transform: scale(.7); }
  2%, 80% { opacity: .3; transform: scale(1.25); }
}
@keyframes node-middle-arrival {
  0%, 13%, 23%, 58%, 68%, 100% { opacity: 0; transform: scale(.7); }
  18%, 63% { opacity: .3; transform: scale(1.25); }
}
@keyframes node-last-arrival {
  0%, 31%, 41%, 100% { opacity: 0; transform: scale(.7); }
  36% { opacity: .3; transform: scale(1.25); }
}
.paper-subtitle { margin: 18px 0 0; color: #515965; font-size: 25px; font-weight: 400; line-height: 1.5; letter-spacing: -.015em; }
.paper-authors { max-width: 1060px; margin: 26px auto 0; }
.author-row { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 22px; row-gap: 4px; }
.author-name { color: #4d4855; font-size: 15px; font-weight: 500; line-height: 1.95; white-space: nowrap; }
.author-name a, .author-name a:hover { color: inherit; }
.author-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.paper-authors sup, .paper-affiliations sup { color: var(--accent); font-size: .7em; margin-left: 2px; }
.paper-affiliations { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 24px; row-gap: 5px; margin-top: 16px; color: #6d6675; font-size: 13px; line-height: 1.7; }
.paper-affiliations sup { margin-left: 0; margin-right: 4px; }
.author-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.author-notes sup { margin-right: 3px; color: var(--accent); }
.paper-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 29px; font-size: 14px; font-weight: 500; }
.paper-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 11px 20px; border: 1px solid var(--ink); border-radius: 24px; transition: background .15s, border-color .15s; }
.paper-link { background: var(--ink); color: #fff; }
.paper-link:not([aria-disabled="true"]):hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.paper-link[aria-disabled="true"] { cursor: default; color: #fff; }
.coming-soon { font-size: 10px; line-height: 1.4; color: #dfd1f2; padding: 2px 5px; background: #ffffff12; border-radius: 4px; }
.paper-link .resource-icon { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.main-film { width: min(980px, 100%); margin: 0 auto; }
video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #080b10; object-fit: contain; border-radius: 8px; }
.main-film > video { border-radius: 12px; box-shadow: 0 8px 30px #192b4010; }
.main-caption { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 14px 2px 0; }
.main-caption span { margin-left: 4px; }
.section { margin-top: 76px; }
h2 { margin: 0 0 28px; text-align: center; font-size: 34px; font-weight: 650; letter-spacing: -.032em; line-height: 1.35; }
.overview { max-width: 980px; margin-inline: auto; }
.overview p { max-width: 790px; margin: 0 auto 20px; color: #515965; font-size: 17px; line-height: 1.9; }
.overview strong { color: var(--accent); font-weight: 600; }
.mechanism-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 30px 0; }
.mechanism-panel { padding: 22px 18px 12px; border: 1px solid var(--rule); border-radius: 12px; }
.mechanism-panel > figcaption { display: flex; align-items: center; gap: 8px; padding-inline: 4px; font-size: 16px; font-weight: 600; color: #55515f; }
.connected-panel { border-color: var(--accent-border); background: #fcfaff; }
.connected-panel > figcaption { color: var(--accent); }
.mechanism-panel > svg { display: block; width: 100%; height: auto; margin-top: 15px; overflow: visible; font-family: var(--sans); }
.chunk-box { fill: #f7f7f9; stroke: #dedce4; stroke-width: 1.3; }
.connected-panel .chunk-box { fill: #f2ebfc; stroke: #d7c7ec; }
.chunk-label { fill: #585261; font-size: 17px; font-weight: 500; text-anchor: middle; }
.blocked-path { fill: none; stroke: #bcb8c4; stroke-width: 2; stroke-dasharray: 6 5; }
.blocked-mark { stroke: #b8a8cf; stroke-width: 2.5; stroke-linecap: round; }
.connected-path { fill: none; stroke: var(--accent-soft); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 6 5; }
.path-label { fill: #85808d; text-anchor: middle; font-size: 14px; }
.connected-panel .path-label { fill: var(--accent); }
.method { max-width: 1060px; margin-inline: auto; }
figure { margin: 0; }
.method figure > a { display: block; padding: 24px 20px; border: 1px solid var(--rule); border-radius: 12px; }
.method img { width: 100%; height: auto; display: block; }
.method figcaption { margin: 20px auto 0; font-size: 14px; color: var(--muted); line-height: 1.8; text-align: center; max-width: 760px; }
.comparisons { margin-top: 80px; }
.comparisons h2 { margin-bottom: 16px; }
.section-intro { color: var(--muted); font-size: 15px; line-height: 1.8; text-align: center; max-width: 670px; margin: 0 auto 38px; }
.duration-heading { display: flex; align-items: center; gap: 20px; margin: 44px 0 22px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.duration-heading::after { content: ""; height: 1px; background: var(--rule); flex: 1; }
.comparison { padding: 25px; margin-bottom: 24px; border: 1px solid var(--rule); border-radius: 12px; }
.case-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.case-heading h4 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -.025em; }
.case-heading p { margin: 0; color: var(--muted); font-size: 12px; padding: 6px 9px; background: #f6f7f9; border-radius: 4px; line-height: 1.5; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.comparison-video figcaption { display: flex; align-items: center; justify-content: center; gap: 6px; height: 25px; font-size: 13px; font-weight: 600; color: #59616d; margin-bottom: 10px; white-space: nowrap; }
.comparison-video figcaption.ours { color: var(--accent); }
.method-badge { font-size: 10px; font-weight: 600; color: var(--accent); background: var(--tint); border-radius: 4px; padding: 3px 5px; }
.comparison-video video { width: 100%; aspect-ratio: 832 / 480; }
.comparison-video:has(.ours) video { outline: 2px solid var(--accent-border); outline-offset: 2px; }
.comparison-controls { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.playback-buttons { display: flex; gap: 7px; flex-shrink: 0; }
.playback-buttons button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: #fff; border: 1px solid #dfe4ea; border-radius: 6px; padding: 8px 10px; font-size: 12px; font-weight: 500; color: #59616d; min-height: 33px; }
.playback-buttons button svg { width: 12px; height: 12px; }
.playback-buttons button[data-action="play"] { color: #604582; background: #e9def8; border-color: #d2c2ea; }
.playback-buttons button:hover { border-color: var(--accent); color: var(--accent); background: var(--tint); }
.playback-buttons button:disabled { opacity: .55; cursor: wait; }
.timeline { display: block; flex: 1; min-width: 0; }
.timeline input { width: 100%; display: block; margin: 0; accent-color: var(--accent); cursor: pointer; height: 20px; }
.timeline input { appearance: none; background: transparent; }
.timeline input::-webkit-slider-runnable-track { height: 4px; background: #e1e6ed; border-radius: 2px; }
.timeline input::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-top: -4px; }
.timeline input::-moz-range-track { height: 4px; background: #e1e6ed; border-radius: 2px; }
.timeline input::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--accent); }
.time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prompt { margin: 0 0 22px; padding: 12px 15px; border-left: 2px solid var(--accent-border); border-radius: 0 6px 6px 0; background: #f8f7fb; color: #63606c; font-size: 14px; line-height: 1.8; }
.prompt > span { color: var(--accent); font-weight: 600; margin-right: 3px; }
.comparison-status { margin: 12px 0 0; color: #7b6561; font-size: 12px; line-height: 1.6; }
footer { display: flex; justify-content: space-between; border-top: 1px solid var(--rule); margin-top: 70px; padding: 24px 0 36px; font-size: 11px; color: #858d98; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .comparison { padding: 20px; }
  .video-grid { gap: 12px; }
  .comparison-video figcaption { font-size: 11px; }
  .method-badge { font-size: 9px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .paper-header { padding-top: 48px; padding-bottom: 30px; }
  h1 { font-size: 44px; }
  .paper-subtitle { font-size: 21px; margin-top: 14px; }
  .paper-authors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; max-width: 460px; margin-top: 23px; }
  .author-row { display: contents; }
  .author-name { font-size: 13px; line-height: 1.65; }
  .paper-affiliations { flex-direction: column; gap: 3px; margin-top: 18px; font-size: 12px; }
  .author-notes { font-size: 11px; gap: 12px; }
  .paper-links { margin-top: 23px; font-size: 12px; }
  .paper-link { min-height: 40px; padding: 10px 16px; }
  .main-caption { font-size: 11px; }
  .section { margin-top: 52px; }
  h2 { font-size: 29px; margin-bottom: 24px; }
  .mechanism-comparison { grid-template-columns: 1fr; gap: 14px; margin: 25px 0; }
  .mechanism-panel { padding: 18px 14px 10px; }
  .mechanism-panel > figcaption { font-size: 15px; }
  .overview p { font-size: 16px; line-height: 1.85; }
  .method figure > a { padding: 14px 8px; }
  .method figcaption, .section-intro { font-size: 13px; }
  .method figcaption { margin-top: 16px; }
  .duration-heading { font-size: 19px; margin-top: 34px; }
  .comparison { padding: 18px; }
  .case-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 19px; }
  .case-heading h4 { font-size: 21px; }
  .case-heading p { font-size: 11px; }
  .video-grid { gap: 10px; }
  .comparison-video figcaption { font-size: 10px; flex-wrap: wrap; white-space: normal; height: 32px; line-height: 1.4; gap: 3px; }
  .comparison-controls { gap: 10px; flex-wrap: wrap; margin-top: 18px; }
  .timeline { flex-basis: calc(100% - 92px); order: 2; }
  .time { order: 3; font-size: 10px; }
  .playback-buttons { width: 100%; justify-content: center; }
  .prompt { font-size: 13px; margin: 0 0 19px; padding: 10px 12px; }
  .comparison-status { font-size: 11px; }
  footer { font-size: 10px; margin-top: 48px; }
}
@media (max-width: 480px) {
  h1 { font-size: 38px; max-width: 350px; margin-inline: auto; }
  h1 > span { display: block; }
  .paper-subtitle { max-width: 310px; margin-inline: auto; font-size: 19px; }
  .paper-header { padding-top: 40px; }
  .main-film > video { border-radius: 8px; }
  .comparison { padding: 16px; }
  .video-grid { grid-template-columns: 1fr; gap: 23px; }
  .comparison-video figcaption { font-size: 13px; height: auto; min-height: 22px; margin-bottom: 8px; }
  .method-badge { font-size: 10px; }
  .comparison-controls { margin-top: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .paper-link { transition: none; }
  .connection-signal, .connection-halo { animation: none; opacity: 0; }
}

.method-details { margin-top: 12px; }
.method-details > summary { display: flex; align-items: flex-start; gap: 8px; max-width: 790px; margin-inline: auto; padding: 10px 0; cursor: pointer; list-style: none; color: var(--muted); }
.method-details > summary::-webkit-details-marker { display: none; }
.method-details > summary:hover .method-label { color: var(--accent); }
.method-details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.method-details > summary > svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.method-details[open] > summary > svg { transform: rotate(90deg); }
.method-summary { display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap; line-height: 1.6; }
.method-label { font-size: 14px; font-weight: 500; color: #6c607c; }
.method-hint { font-size: 13px; color: var(--muted); }
.method-details > figure { padding-top: 18px; }
.method-details figure > a { border: 0; padding: 0; border-radius: 0; }
@media (max-width: 760px) {
  .method-summary { flex-direction: column; align-items: flex-start; gap: 2px; }
  .method-hint { font-size: 12px; }
}

.abstract-details { margin-top: 12px; }
.abstract-details + .method-details { margin-top: 0; }
.abstract-content { max-width: 790px; margin-inline: auto; padding-top: 12px; }

footer { flex-wrap: wrap; gap: 12px; }
.compression-note { flex-basis: 100%; margin: 0; line-height: 1.6; }
