/* ThinkWAM project page: neutral research canvas and restrained indigo accents. */
:root {
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #24262e;
  --muted: #676b77;
  --green: #6678b9;
  --green-dark: #45568f;
  --paper: #fff;
  --metric-strip-height: 140px;
  --line: #dfe1e8;
  --mint: #f0f2f8;
}
html { scroll-behavior: auto; scroll-padding-top: 85px; }
body { background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.7; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #8d9cda; outline-offset: 4px; }
.site-header { background: rgba(250,250,252,.97); border-bottom: 1px solid var(--line); backdrop-filter: none; }
.nav-inner { height: 64px; gap: 24px; }
.wordmark { font-size: 19px; font-weight: 750; color: var(--ink); letter-spacing: -.5px; }
.nav-inner nav { font-size: 13px; font-weight: 550; gap: 26px; }
.nav-github { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.nav-github>span { font-size: 13px; }
.nav-github .brand-icon { width: 16px; height: 16px; flex-basis: 16px; }
.hero { padding: 62px 0 0; text-align: center; }
.hero h1 { max-width: 1040px; margin: 0 auto 28px; font-family: var(--sans); font-size: 46px; font-weight: 750; letter-spacing: -1.7px; line-height: 1.15; }
.hero h1>span { font-family: inherit; font-style: normal; font-size: inherit; font-weight: 800; color: var(--green-dark); letter-spacing: inherit; }
.authors { max-width: 1030px; margin: 0 auto 10px; gap: 4px 18px; font-size: 17px; line-height: 1.7; color: var(--ink); }
.authors>a { color: var(--green-dark); }
.authors>a:hover { text-decoration: underline; text-underline-offset: 4px; }
.authors>span { color: var(--ink); }
.affiliations { font-size: 13px; line-height: 1.7; gap: 4px 20px; }
.author-notes { margin-top: 10px; font-size: 12px; }
.institution-logos { --logo-scale:1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 32px; row-gap: 28px; max-width: 980px; margin: 30px auto; }
.institution-item { display: block; position: relative; overflow: hidden; flex: 0 0 auto; min-width: 0; width: calc(var(--logo-width) * var(--logo-scale)); aspect-ratio: var(--logo-ratio); }
.institution-item .institution-logo { position: absolute; display: block; max-width: none; object-fit: fill; margin: 0; }
.resource-links { gap: 10px; margin-top: 28px; }
.resource-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 19px; font-size: 14px; font-weight: 600; line-height: 1.2; border-radius: 24px; box-shadow: none; }
.resource-button:not(.unavailable) { background: #292c36; color: #fff; border-color: #292c36; }
.resource-button:not(.unavailable):hover { background: var(--green-dark); border-color: var(--green-dark); transform: none; }
.resource-button.unavailable { background: transparent; color: #767b88; border-color: #d2d6e1; }
.resource-icon { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; flex: 0 0 19px; line-height: 1; font-size: 18px; }
.brand-icon { fill: currentColor; overflow: visible; }
.coming-soon { font-size: 9px; font-weight: 500; padding: 2px 5px; line-height: 1.4; }
.tldr { max-width: 880px; margin: 28px auto 0; padding: 0; border: 0; background: none; text-align: center; font-size: 17px; line-height: 1.75; color: #5c6270; }
.tldr strong { color: var(--ink); font-weight: 650; }
.headline-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 38px 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.headline-metrics>div { display: flex; flex-direction: column; padding: 2px 15px; border-right: 1px solid var(--line); }
.headline-metrics>div:last-child { border-right: 0; }
.headline-metrics dt { margin: 8px 0 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: #545a6c; }
.headline-metrics dd { order: -1; margin: 0; color: var(--green-dark); font-size: 32px; font-weight: 750; letter-spacing: -1px; line-height: 1.2; }
.headline-metrics span { font-size: 11px; margin-top: 4px; color: #7a7e8a; }
.section { padding-block: 66px; }
.academic-heading { text-align: left; margin-bottom: 30px; }
.academic-heading h2 { margin: 0; font-family: var(--sans); font-size: 36px; font-weight: 730; letter-spacing: -1px; line-height: 1.2; }
.academic-heading .section-deck { max-width: 850px; margin: 13px 0 0; font-size: 16px; line-height: 1.75; color: var(--muted); }
.abstract-copy { max-width: 960px; margin: 0 0 34px; font-size: 17px; line-height: 1.85; text-align: left; color: #4c5260; }
.abstract-copy p { margin: 0 0 16px; }
.abstract-copy strong { color: var(--green-dark); font-weight: 650; }
.paper-figure { margin: 0; }
.paper-figure .zoomable { display: block; position: relative; background: #fff; padding: 0; border: 0; border-radius: 3px; box-shadow: none; overflow: hidden; }
.paper-figure img { width: 100%; height: auto; }
.paper-figure figcaption { max-width: none; margin: 15px 0 0; color: #6b707d; text-align: left; font-size: 13px; line-height: 1.75; }
.zoom-hint { bottom: 8px; right: 8px; font-size: 10px; padding: 4px 8px; background: rgba(255,255,255,.95); border: 1px solid #e1e4ec; border-radius: 3px; box-shadow: none; color: var(--green-dark); }
.zoomable:hover .zoom-hint { background: var(--green-dark); color: white; }
.overview-composition { display: grid; grid-template-columns: 40.78fr 59.22fr; align-items: center; gap: 22px; background: #fff; padding: 20px; border: 1px solid #e5e7ed; border-radius: 6px; }
.overview-caption { margin: 16px 0 0; font-size: 13px; color: var(--muted); line-height: 1.75; }
.method-section, .real-world-results, .results-section { background: #fff; border-top: 1px solid #e9eaf0; border-bottom: 1px solid #e9eaf0; }
.method-section .paper-figure { max-width: 1000px; margin-inline: auto; }
.method-explanation { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; max-width: none; margin-top: 32px; font-size: 15px; line-height: 1.8; color: #5f6472; }
.method-explanation p { margin: 0; border-top: 2px solid #ced4e8; padding-top: 16px; }
.method-explanation strong { display: block; margin-bottom: 8px; font-size: 17px; color: var(--green-dark); }
.demo-toolbar { justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.pill-tabs { gap: 8px; }
.pill-tabs>button { padding: 9px 18px; border: 1px solid #dadee9; border-radius: 24px; background: transparent; font-size: 14px; font-weight: 550; color: #626b7c; }
.pill-tabs>button[aria-selected=true] { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.pill-tabs button span { font-size: 12px; }
.video-note { width: 100%; text-align: center; color: #7e8490; font-size: 12px; }
.real-task-description { margin: 0 auto 20px; text-align: center; color: #5f687a; font-size: 15px; }
.demo-grid.grouped-gallery { display: block; }
.demo-group+.demo-group { margin-top: 32px; }
.demo-group-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; margin-inline: auto; }
.demo-group-grid.real-group-grid { max-width: 900px; gap: 28px; }
.demo-group-grid.simulation-group-grid { max-width: 660px; gap: 24px; }
.demo-group-grid.single-demo { grid-template-columns: 1fr; max-width: 520px; }
.simulation-group-grid.paired-grid .demo-card:last-child { grid-column: auto; }
.demo-card { background: none; border: 0; border-radius: 0; }
.demo-video-wrap { background: #f1f2f5; aspect-ratio: 4/3; border-radius: 5px; overflow: hidden; }
.demo-video-wrap video { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-video-wrap.simulation { aspect-ratio: 1; background: #f1f2f5; }
.demo-video-wrap.simulation video { background: #f1f2f5; }
.demo-card figcaption { padding: 11px 0 0; }
.demo-caption-line { justify-content: flex-end; min-height: 16px; margin-bottom: 5px; }
.demo-caption-line>span { display: none; }
.demo-caption-line>small { font-size: 11px; color: #7e8493; }
.demo-card h3 { margin: 0; color: #363d50; font-size: 16px; line-height: 1.45; font-weight: 650; letter-spacing: 0; }
.demo-card p { font-size: 13px; line-height: 1.75; color: #6e7483; margin: 6px 0 0; }
.simulation-group-grid figcaption { min-height: 88px; }
.camera-switcher { display: flex; justify-content: center; gap: 24px; margin-top: 10px; }
.camera-switcher button { border: 0; border-bottom: 1px solid transparent; background: none; color: #788091; padding: 3px 1px 5px; font: inherit; font-size: 13px; }
.camera-switcher button[aria-pressed=true] { color: var(--green-dark); border-bottom-color: var(--green); }
.simulation-filters { display: flex; justify-content: center; gap: 26px; max-width: 660px; margin: 0 auto 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.real-filters { max-width: 900px; }
.simulation-filters[hidden] { display: none; }
.simulation-filters button { background: none; border: 0; border-bottom: 2px solid transparent; color: #71798a; font: inherit; font-size: 13px; font-weight: 550; padding: 10px 1px 12px; margin-bottom: -1px; }
.simulation-filters button[aria-pressed=true] { color: var(--green-dark); border-bottom-color: var(--green); }
.simulation-filters button span { margin-left: 5px; font-size: 11px; color: #9096a4; }
.evidence-note { max-width: 1000px; margin: 22px 0 0; color: #777f8f; font-size: 13px; line-height: 1.8; }
.real-results-body { max-width: 1020px; margin-inline: auto; }
.hardware-label { margin: 0 0 16px; color: #6b768d; font-size: 13px; font-weight: 550; }
.performance-figures { display: grid; grid-template-columns: 960fr 760fr; align-items: start; gap: 34px; margin-bottom: 42px; }
.research-figure { min-width: 0; }
.research-figure h3 { font-size: 20px; font-weight: 650; line-height: 1.4; letter-spacing: -.35px; margin: 0 0 16px; }
.performance-figures .zoomable { height: auto; aspect-ratio: var(--figure-aspect); }
.performance-figures img { width: 100%; height: auto; object-fit: contain; }
.performance-figures figcaption { margin-top: 16px; }
.research-figure .zoom-hint { top: 9px; bottom: auto; }
.mobile-plot-parts { display: none; }
.efficiency-figures { max-width: 1080px; margin: 0 auto 34px; }
.efficiency-figures img { max-height: 400px; object-fit: contain; }
.efficiency-subheading { max-width: 940px; margin: 0 auto 18px; font-size: 18px; font-weight: 650; color: #414a62; }
.result-tabs { justify-content: flex-start; border: 0; padding: 0; gap: 8px; margin: 0 0 26px; }
.comparison-panel>h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.4; font-weight: 650; letter-spacing: -.35px; }
.table-description { max-width: 900px; margin: 0 0 22px; font-size: 14px; line-height: 1.75; color: #6e7483; }
.table-scroll { width: 100%; background: #fff; border-top: 2px solid #687390; border-bottom: 2px solid #687390; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.55; }
.comparison-table th { padding: 13px 14px; color: #495674; background: #f3f4f8; border-bottom: 1px solid #ced3e1; font-size: 13px; font-weight: 650; white-space: nowrap; }
.comparison-table td { padding: 12px 14px; color: #424b60; background: #fff; border-bottom: 1px solid #e8eaf0; white-space: nowrap; }
.comparison-table td:first-child, .comparison-table th:first-child { text-align: left; min-width: 160px; position: sticky; left: 0; z-index: 1; }
.comparison-table th:first-child { z-index: 2; }
.comparison-table tbody tr:not(.group-row):nth-child(even) td { background: #fafbfc; }
.comparison-table tbody tr.ours td { background: #eef1fa; color: #3e5088; border-top: 1px solid #c5cfe9; font-weight: 650; }
.comparison-table tbody tr.ours td:first-child { box-shadow: inset 3px 0 var(--green); }
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table .numeric-column { text-align: right; }
.comparison-table .average-column { border-left: 1px solid #dfe4ef; font-weight: 650; }
.comparison-table .group-row td { background: #f3f5f9!important; color: #788093; padding: 8px 14px; font-size: 12px; font-style: normal; text-align: left; position: static; }
.comparison-table .best { font-weight: 750; color: #35466f; }
.comparison-table .second { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.comparison-table .column-unit { display: block; font-size: 11px; font-weight: 400; color: #7d879c; line-height: 1.4; }
.comparison-table .chunk-column { text-align: center; font-size: 12px; font-weight: 400; }
.comparison-table th.chunk-column { font-weight: 600; }
.comparison-table .chunk-shape { display: block; white-space: nowrap; }
.comparison-table .chunk-detail { display: block; font-size: 11px; font-weight: 400; color: #7d879c; line-height: 1.45; margin-top: 2px; }
.comparison-table .group-start { border-left: 1px solid #ced7e8; }
.comparison-table.has-grouped-head thead tr:first-child th { font-size: 12px; padding: 10px 14px; white-space: normal; }
.comparison-table.has-grouped-head thead tr:last-child th:first-child { position: static; min-width: 0; text-align: right; }
.comparison-table.has-grouped-head thead th[rowspan] { vertical-align: middle; }
.comparison-table tr td.pretraining-indicator { font-family: "Cambria Math","Times New Roman",serif; font-weight: 400; font-size: 18px; line-height: 1; }
.comparison-table tr td.pt-yes { color: rgb(0,166,79); }
.comparison-table tr td.pt-no { color: rgb(232,150,122); }
#latency-comparison, #latency-notes { max-width: 940px; margin-inline: auto; }
#latency-comparison .comparison-table { font-size: 13.5px; }
#latency-comparison th, #latency-comparison td { padding: 11px 13px; }
#real-world-comparison th { white-space: normal; min-width: 100px; }
#real-world-comparison td:first-child { min-width: 140px; }
.table-notes { margin: 16px 0 22px; color: #757e90; font-size: 12.5px; line-height: 1.8; }
.table-notes p { margin: 6px 0; }
.table-notes details { margin-top: 8px; }
.table-notes summary { color: var(--green-dark); font-size: 12.5px; cursor: pointer; }
.table-notes details p { border-left: 2px solid #d9dfed; padding-left: 12px; }
.text-link { color: var(--green-dark); border-color: #bdc9e3; font-size: 13px; }
.analysis-section { background: #fff; border-block: 1px solid #e9ebf0; }
.mechanism-figures { display: grid; grid-template-columns: 1fr; gap: 46px; }
.mechanism-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; max-width: 1080px; width: 100%; margin-inline: auto; }
.mechanism-row .mechanism-item, .mechanism-row>.mechanism-group { min-width: 0; }
.mechanism-item h3, .mechanism-group>h3 { margin: 0 0 18px; font-family: var(--sans); text-align: left; color: #3b4661; font-size: 20px; line-height: 1.4; font-weight: 650; letter-spacing: -.4px; }
.mechanism-group .mechanism-item>h4 { margin: 0 0 15px; color: #67778f; font-size: 16px; }
.mechanism-item .paper-figure { max-width: none; }
.mechanism-item .zoomable { display: flex; justify-content: center; align-items: center; height: 260px; width: 100%; max-width: none; margin-inline: auto; }
.mechanism-item img { width: 100%; height: 100%; max-height: 260px; object-fit: contain; }
.mechanism-item figcaption { margin-top: 14px; max-width: none; font-size: 13px; line-height: 1.75; }
.mechanism-row[data-mechanism-row="correction-and-recoveries"] { grid-template-columns: 1.2634fr 1fr; }
.mechanism-row[data-mechanism-row="correction-and-recoveries"] .mechanism-item>h3,
.mechanism-row[data-mechanism-row="correction-and-recoveries"] .mechanism-group>h3 { min-height: 2.8em; display: flex; align-items: center; }
.mechanism-row[data-mechanism-row="correction-and-recoveries"] .zoomable { height: auto; aspect-ratio: var(--figure-aspect); }
.mechanism-row[data-mechanism-row="correction-and-recoveries"] img { max-height: none; }
.mechanism-row[data-mechanism-row="keyframe-comparisons"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mechanism-row[data-mechanism-row="keyframe-comparisons"] h3 { font-size: 18px; min-height: 2.8em; display: flex; align-items: center; }
.mechanism-row[data-mechanism-row="keyframe-comparisons"] .paper-figure { display: grid; grid-template-rows: 240px 34px auto; gap: 12px; }
.mechanism-row[data-mechanism-row="keyframe-comparisons"] .zoomable { grid-row: 1; height: 240px; }
.mechanism-row[data-mechanism-row="keyframe-comparisons"] img { max-height: 240px; }
.mechanism-row[data-mechanism-row="keyframe-comparisons"] .figure-pagination { grid-row: 2; align-self: center; margin: 0; }
.mechanism-row[data-mechanism-row="keyframe-comparisons"] figcaption { grid-row: 3; margin-top: 0; }
.figure-pagination { display: flex; justify-content: center; gap: 20px; margin: 15px 0 4px; }
.figure-pagination button { font: inherit; font-size: 13px; color: #7f8798; background: none; border: 0; border-bottom: 1px solid transparent; padding: 5px 1px; }
.figure-pagination button[aria-pressed=true] { color: var(--green-dark); border-bottom-color: var(--green); }
.resources-section { padding-block: 48px 34px; text-align: left; }
.resources-section h2, .bibtex-header h2 { font-family: var(--sans); font-size: 30px; font-weight: 700; letter-spacing: -.7px; }
.resources-section>p { max-width: none; margin: 16px 0 0; font-size: 14px; }
.bibtex-section { padding: 0 0 48px; }
.bibtex-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.bibtex-header button { border: 1px solid #ced7e7; border-radius: 4px; background: #fff; color: var(--green-dark); padding: 7px 14px; font-size: 12px; }
.bibtex-section pre { margin: 0; padding: 24px; background: #f0f2f7; color: #495670; border: 1px solid #e2e6ef; border-radius: 5px; font-size: 13px; line-height: 1.8; overflow-x: auto; }
.bibtex-section .evidence-note { margin-top: 12px; font-size: 12px; }
.site-footer { padding-block: 24px; border-top: 1px solid var(--line); }
.site-footer .wordmark { font-size: 16px; }
.site-footer>p, .site-footer>a:last-child { font-size: 12px; }
:root .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (hover:hover) { .comparison-table tbody tr:not(.group-row):not(.ours):hover td { background: #f3f5f9; } }
@media (max-width:1000px) {
  .hero h1 { font-size: 40px; }
  .nav-inner nav { gap: 18px; }
  .institution-logos { --logo-scale:.86; column-gap: 28px; }
  .performance-figures { gap: 24px; }
}
@media (max-width:760px) {
  .wrap { width: calc(100% - 36px); }
  .nav-inner { height: 56px; gap: 14px; }
  .nav-inner nav { gap: 15px; font-size: 11px; overflow-x: auto; white-space: nowrap; }
  .nav-inner nav a:first-child { display: none; }
  .nav-github { display: none; }
  .wordmark { font-size: 16px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: 32px; line-height: 1.18; letter-spacing: -.9px; }
  .hero h1 br { display: none; }
  .authors { font-size: 15px; gap: 4px 13px; }
  .affiliations { font-size: 12px; gap: 4px 12px; }
  .author-notes { font-size: 11px; }
  .institution-logos { --logo-scale:.82; column-gap: 24px; row-gap: 24px; margin-block: 24px; }
  .resource-links { gap: 8px; }
  .resource-button { font-size: 12px; padding: 9px 13px; min-height: 39px; }
  .resource-icon { width: 17px; height: 17px; flex-basis: 17px; font-size: 16px; }
  .tldr { font-size: 15px; line-height: 1.75; }
  .headline-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 22px; margin-top: 26px; padding: 20px 0; }
  .headline-metrics>div:nth-child(2) { border-right: 0; }
  .headline-metrics dd { font-size: 28px; }
  .headline-metrics dt { font-size: 12px; }
  .headline-metrics span { font-size: 10px; }
  .section { padding-block: 45px; }
  .academic-heading { margin-bottom: 24px; }
  .academic-heading h2 { font-size: 29px; letter-spacing: -.6px; }
  .academic-heading .section-deck { font-size: 14px; line-height: 1.75; }
  .abstract-copy { font-size: 15.5px; line-height: 1.85; margin-bottom: 26px; }
  .overview-composition { grid-template-columns: 1fr; gap: 28px; padding: 14px; }
  .overview-composition .overview-comic { width: min(100%,440px); margin-inline: auto; }
  .overview-caption, .paper-figure figcaption { font-size: 12px; }
  .method-explanation { grid-template-columns: 1fr; gap: 20px; font-size: 14px; }
  .method-explanation strong { font-size: 16px; }
  .pill-tabs>button { font-size: 13px; padding: 8px 15px; }
  .video-note { font-size: 11px; }
  .real-task-description { font-size: 13px; }
  .demo-group-grid.real-group-grid { grid-template-columns: 1fr; max-width: 500px; }
  .demo-group-grid.simulation-group-grid { max-width: 520px; gap: 22px 20px; }
  .simulation-filters { gap: 16px; }
  .simulation-filters button { font-size: 12px; }
  .demo-card h3 { font-size: 15px; }
  .demo-card p { font-size: 12.5px; }
  .camera-switcher button { font-size: 12px; }
  .evidence-note { font-size: 12px; }
  .performance-figures { grid-template-columns: 1fr; gap: 30px; }
  .performance-figures .zoomable { height: auto; }
  .performance-figures img { max-height: 440px; height: auto; }
  .research-figure h3 { font-size: 18px; }
  .efficiency-figures img { max-height: none; }
  .efficiency-figures .desktop-plot { display: none; }
  .mobile-plot-parts { display: grid; gap: 22px; max-width: 460px; margin-inline: auto; }
  .efficiency-subheading { font-size: 17px; }
  .result-tabs { gap: 6px; flex-wrap: wrap; }
  .result-tabs>button { padding: 8px 12px; font-size: 12px; }
  .comparison-panel>h3 { font-size: 19px; }
  .table-description { font-size: 13px; }
  .comparison-table { font-size: 13px; }
  .comparison-table th { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 10px 11px; }
  .comparison-table td:first-child, .comparison-table th:first-child { min-width: 145px; }
  .comparison-table .chunk-column { font-size: 11.5px; }
  .comparison-table .chunk-detail { font-size: 10.5px; }
  #latency-comparison .comparison-table { min-width: 650px; font-size: 12.5px; }
  #latency-comparison th, #latency-comparison td { padding: 10px 11px; }
  #real-world-comparison .comparison-table { min-width: 730px; }
  .table-notes, .table-notes summary { font-size: 12px; }
  .mechanism-row, .mechanism-row[data-mechanism-row] { grid-template-columns: 1fr; gap: 30px; max-width: 620px; }
  .mechanism-item h3, .mechanism-group>h3 { font-size: 20px; }
  .mechanism-row[data-mechanism-row] .mechanism-item>h3, .mechanism-row[data-mechanism-row] .mechanism-group>h3 { min-height: 0; }
  .mechanism-item .zoomable, .mechanism-row[data-mechanism-row] .zoomable { height: auto; }
  .mechanism-item img { height: auto; max-height: 340px; }
  .mechanism-item[data-figure-layout="compact"] .zoomable { max-width: 360px; }
  .mechanism-item figcaption { font-size: 12.5px; }
  .mechanism-row[data-mechanism-row="keyframe-comparisons"] .paper-figure { display: block; }
  .mechanism-row[data-mechanism-row="keyframe-comparisons"] .figure-pagination { margin-top: 12px; }
  .mechanism-row[data-mechanism-row="keyframe-comparisons"] figcaption { margin-top: 14px; }
  .resources-section h2, .bibtex-header h2 { font-size: 27px; }
  .bibtex-section { padding-top: 0; }
  .bibtex-section pre { padding: 18px; font-size: 12px; }
}
@media (max-width:560px) {
  .demo-group-grid.simulation-group-grid { grid-template-columns: 1fr; max-width: 300px; }
  .simulation-group-grid figcaption { min-height: 0; }
  .simulation-filters button span { display: none; }
  .real-filters { gap: 8px 18px; }
  .real-filters button { font-size: 11px; }
}

/* A dark, media-led opening; research artwork retains its native white canvas. */
html { scroll-behavior: smooth; }
::selection { color: #171a24; background: #dce3fa; }
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 100; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg,#7b8ddd,#b1a4df); pointer-events: none; }
.site-header { position: fixed; top: 0; right: 0; left: 0; color: #fff; background: linear-gradient(#111216e8,#11121600); border-bottom-color: transparent; transition: background .35s ease,color .35s ease,border-color .35s ease; }
.site-header .wordmark, .site-header nav, .site-header .nav-github { color: inherit; }
.site-header.is-scrolled { color: var(--ink); background: rgba(255,255,255,.97); border-bottom-color: #e4e5e9; }
.site-header nav a:hover, .site-header .nav-github:hover, .site-header nav a[aria-current="location"] { color: #b7c3f5; }
.site-header.is-scrolled nav a:hover, .site-header.is-scrolled .nav-github:hover, .site-header.is-scrolled nav a[aria-current="location"] { color: var(--green-dark); }
.hero-cinematic { position: relative; display: flex; align-items: center; min-height: calc(100svh - var(--metric-strip-height)); width: 100%; padding: 0; overflow: hidden; text-align: left; color: #fff; background: #111216; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); grid-template-rows: repeat(5,minmax(0,1fr)); gap: 0; }
.hero-tile { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; background: #111216; }
.hero-media video { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; background: #111216; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,#111216ef 0%,#111216cf 30%,#111216a8 50%,#11121638 70%,transparent 82%),linear-gradient(180deg,#11121690,transparent 16%,transparent 88%,#11121635); }
.hero-content { position: relative; z-index: 2; width: calc(63% - 68px); max-width: 750px; margin-left: 48px; margin-right: 0; padding-block: 100px 58px; }
.hero-kicker { margin: 0 0 14px; color: #b0b6ce; font-size: 11px; letter-spacing: .16em; font-weight: 600; text-transform: uppercase; }
.hero-cinematic h1 { max-width: 820px; margin: 0; color: #fff; text-align: left; letter-spacing: -1.5px; }
.hero-cinematic h1 .thinkwam-name { display: block; color: #fff; font-size: clamp(58px,5.7vw,82px); font-weight: 800; letter-spacing: -3px; line-height: 1.05; }
.hero-cinematic h1 .hero-paper-title { display: block; margin-top: 15px; color: #f2f3f7; font-size: clamp(25px,2.6vw,37px); font-weight: 580; letter-spacing: -.9px; line-height: 1.2; }
.hero-lead { max-width: 540px; margin: 17px 0 0; color: #bfc2ce; font-size: 15px; line-height: 1.65; }
.hero-credits { margin-top: 24px; }
.hero-credits .authors { justify-content: flex-start; margin: 0 0 10px; font-size: 14px; line-height: 1.75; gap: 3px 16px; }
.hero-credits .authors>a { color: #dfe5ff; }
.hero-credits .authors>a:hover { color: #fff; }
.hero-credits .authors>span { color: #d3d4da; }
.hero-credits .authors sup, .hero-credits .affiliations sup { font-size: 9px; }
.hero-credits .affiliations { justify-content: flex-start; color: #b9bdc9; font-size: 11px; line-height: 1.8; gap: 2px 16px; }
.hero-credits .author-notes { color: #9095a5; font-size: 10px; margin-top: 8px; }
.hero-credits .institution-logos { --logo-scale:.59; justify-content: flex-start; gap: 18px; margin: 20px 0 0; }
.hero-credits .institution-logo { filter: grayscale(1) invert(1); mix-blend-mode: screen; opacity: .86; }
.hero-cinematic .resource-links { justify-content: flex-start; margin-top: 24px; gap: 8px; }
.hero-cinematic .resource-button { min-height: 40px; padding: 9px 15px; border-radius: 5px; font-size: 12px; }
.hero-cinematic .resource-button:not(.unavailable) { color: #242735; background: #f3f4f8; border-color: #f3f4f8; font-weight: 650; }
.hero-cinematic .resource-button:not(.unavailable):hover { color: #202338; background: #dfe5fc; border-color: #dfe5fc; }
.hero-cinematic .resource-button.unavailable { color: #c4c8d5; background: #ffffff05; border-color: #535867; }
.hero-cinematic .coming-soon { background: #ffffff10; color: #a7adc1; font-size: 8px; }
.hero-bottom { display: flex; align-items: center; gap: 24px; margin-top: 24px; font-size: 11px; color: #a6acbf; }
.hero-bottom>a { color: #d9deee; }
.hero-bottom>a span { margin-left: 12px; }
.hero-bottom button { padding: 4px 0; border: 0; border-bottom: 1px solid #626a82; background: none; color: inherit; font: inherit; }
.project-meta { padding: 0; background: #fff; }
.project-meta .headline-metrics { grid-template-columns: repeat(6,minmax(0,1fr)); height: var(--metric-strip-height); margin-top: 0; padding-block: 18px; border-top: 0; }
.project-meta .headline-metrics>div { justify-content: flex-start; padding-inline: 14px; }
.project-meta .headline-metrics dd { font-size: clamp(25px,2.3vw,32px); white-space: nowrap; }
.project-meta .headline-metrics dt { font-size: 12px; }
.project-meta .headline-metrics span { font-size: 10px; line-height: 1.5; }
.overview-composition { padding: 0; border: 0; border-radius: 0; background: #fff; }
.method-section, .real-world-results, .results-section, .analysis-section { background: #fff; color: var(--ink); }
.bibtex-section pre { background: #f5f6f8; }
#figure-dialog::backdrop { background: #101119de; }
.reveal-pending { opacity: 0; transform: translateY(20px); transition: opacity .7s ease,transform .7s cubic-bezier(.22,1,.36,1); }
.reveal-pending.is-visible { opacity: 1; transform: none; }
@media (min-width:1600px) {
  .hero-content { margin-left: max(64px,calc((100vw - 1480px)/2)); width: calc(63% - max(90px,calc((100vw - 1420px)/2))); }
}
@media (max-width:1100px) and (min-width:761px) {
  .hero-content { width: calc(67% - 46px); margin-left: 28px; padding-block: 94px 54px; }
  .hero-credits .authors { font-size: 13px; gap: 3px 12px; }
  .hero-credits .institution-logos { --logo-scale:.48; gap: 14px; }
  .hero-cinematic .resource-button { padding-inline: 11px; font-size: 11px; }
  .hero-cinematic .resource-icon { width: 16px; flex-basis: 16px; height: 16px; font-size: 16px; }
}
@media (max-width:760px) {
  :root { --metric-strip-height: 200px; }
  .hero-cinematic { min-height: calc(100svh - var(--metric-strip-height)); }
  .hero-content { width: calc(100% - 36px); max-width: 600px; margin-inline: auto; padding-block: 80px 26px; }
  .hero-media { width: 100%; height: 100%; }
  .hero-shade { background: linear-gradient(90deg,#111216e8,#111216c9 65%,#11121699); }
  .hero-kicker { margin-bottom: 12px; font-size: 10px; }
  .hero-cinematic h1 .thinkwam-name { font-size: 50px; letter-spacing: -2px; }
  .hero-cinematic h1 .hero-paper-title { margin-top: 12px; font-size: 25px; letter-spacing: -.7px; }
  .hero-cinematic h1 br { display: initial; }
  .hero-lead { display: none; }
  .hero-credits { margin-top: 18px; }
  .hero-credits .authors { font-size: 13px; gap: 3px 12px; }
  .hero-credits .affiliations { font-size: 10px; gap: 2px 12px; }
  .hero-credits .institution-logos { --logo-scale:.36; gap: 12px; margin-top: 16px; }
  .hero-cinematic .resource-links { margin-top: 20px; gap: 7px; }
  .hero-cinematic .resource-button { padding: 8px 9px; min-height: 34px; font-size: 10px; gap: 5px; }
  .hero-cinematic .resource-icon { width: 14px; height: 14px; flex-basis: 14px; font-size: 14px; }
  .hero-cinematic .coming-soon { display: none; }
  .hero-bottom { margin-top: 16px; gap: 20px; font-size: 10px; }
  .project-meta .headline-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 0; padding-block: 16px; }
  .project-meta .headline-metrics>div { padding-inline: 10px; border-right: 1px solid var(--line); }
  .project-meta .headline-metrics>div:nth-child(3n) { border-right: 0; }
  .project-meta .headline-metrics dd { font-size: 24px; }
  .project-meta .headline-metrics dt { font-size: 10px; margin-top: 4px; }
  .project-meta .headline-metrics span { font-size: 8px; margin-top: 3px; }
}
@media (min-width:761px) and (max-height:820px) {
  .hero-content { padding-block: 82px 30px; }
  .hero-cinematic h1 .thinkwam-name { font-size: 62px; }
  .hero-cinematic h1 .hero-paper-title { font-size: 28px; margin-top: 12px; }
  .hero-lead { display: none; }
  .hero-credits { margin-top: 18px; }
  .hero-credits .institution-logos { margin-top: 16px; }
  .hero-cinematic .resource-links { margin-top: 18px; }
  .hero-bottom { margin-top: 18px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .site-header, .reveal-pending { transition: none; }
  .reveal-pending { opacity: 1; transform: none; }
  .hero-content { opacity: 1; transform: none; }
  .hero-media { opacity: 1; }
}
