:root {
  color-scheme: light;
  --ink: #20252c;
  --muted: #596574;
  --blue: #2468ba;
  --blue-dark: #164b87;
  --green: #236349;
  --line: #dfe5eb;
  --soft: #f5f8fb;
  --max: 1180px;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.7 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { margin-bottom: 22px; font-size: 46px; line-height: 1.17; font-weight: 730; }
h3 { font-size: 25px; line-height: 1.35; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
sup { font-size: .68em; line-height: 0; }
:focus-visible { outline: 3px solid #397dcb; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section-shell { padding-block: 88px; }
.soft-section { background: var(--soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 10px; z-index: 100; padding: 8px 16px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-shell { display: flex; align-items: center; gap: 28px; min-height: 68px; width: min(1260px, calc(100% - 40px)); margin-inline: auto; }
.brand { color: var(--ink); font-size: 21px; font-weight: 760; white-space: nowrap; }
.brand span { color: var(--blue); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; justify-content: flex-end; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { padding-block: 12px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="location"] { color: var(--blue); }
.resource { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 9px 18px; border: 1px solid #d4dce5; border-radius: 6px; background: white; color: var(--ink); font-size: 14px; font-weight: 650; transition: background .15s, border-color .15s; }
.resource img { flex-shrink: 0; }
.resource:hover { text-decoration: none; background: #f0f6fc; border-color: #8db0d7; }
.resource.primary { color: white; background: var(--ink); border-color: var(--ink); }
.resource.primary img { filter: invert(1); }
.resource.primary:hover { background: var(--blue); border-color: var(--blue); }
.nav-paper { min-height: 38px; padding: 6px 14px; }
.hero { padding-top: 58px; padding-bottom: 30px; text-align: center; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.venue { display: inline-flex; align-items: center; min-height: 29px; padding: 2px 11px; color: var(--green); background: #e8f4ec; border: 1px solid #cee4d5; border-radius: 4px; font-size: 13px; font-weight: 750; }
.hero h1 { margin-bottom: 15px; font-size: 78px; line-height: 1.05; font-weight: 780; }
.hero h1 span { color: var(--blue); }
.subtitle { margin-bottom: 19px; font-size: 31px; font-weight: 580; line-height: 1.3; }
.hero-description { margin-bottom: 25px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.authors { max-width: 1090px; margin: 0 auto 13px; font-size: 17px; line-height: 1.9; }
.author { display: inline-block; white-space: nowrap; }
.author sup { margin-left: 2px; color: var(--blue); }
.affiliation-details { margin: 0; }
.affiliation-details > summary { display: none; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 18px; margin: 0 auto 7px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.affiliations span { display: block; }
.affiliations sup { color: var(--blue); margin-right: 4px; }
.correspondence { margin-bottom: 0; font-size: 14px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 0; }
.kicker { margin-bottom: 12px; color: var(--blue); font-size: 13px; font-weight: 750; text-transform: uppercase; }
.section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); align-items: end; gap: 70px; margin-bottom: 36px; }
.section-heading h2, .section-heading h3 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 2px; color: var(--muted); }
.overview { padding-top: 55px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding-block: 25px; margin: 0 0 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics > div { padding: 0 23px; border-right: 1px solid var(--line); }
.metrics > div:first-child { padding-left: 0; }
.metrics > div:last-child { border-right: 0; }
.metrics strong { display: block; color: var(--blue); font-size: 42px; font-weight: 740; line-height: 1.2; white-space: nowrap; }
.metrics .times { font-size: 30px; }
.metrics .unit { font-size: 20px; }
.metrics > div:nth-child(3) strong { color: var(--green); }
.metrics span:not(.times):not(.unit) { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.paper-figure > a { display: block; background: #fff; }
.paper-figure img { width: 100%; }
.paper-figure figcaption { padding: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.paper-figure a:hover { opacity: .96; }
.news-band { padding-block: 29px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfcfd; }
.news-content { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 32px; align-items: start; }
.news-content h2 { margin: 0; font-size: 25px; }
.news-content ol { margin: 0; padding: 0; list-style: none; }
.news-content li { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 20px; padding-bottom: 10px; font-size: 15px; line-height: 1.7; }
.news-content li:last-child { padding: 0; }
.news-content time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-content strong { color: var(--green); font-weight: 650; }
.abstract-section { padding-block: 76px; }
.abstract { max-width: 1040px; margin-bottom: 0; line-height: 1.85; text-align: left; }
.method-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 33px; margin: 39px 0 69px; }
.method-steps article { padding-top: 22px; border-top: 2px solid #b9cfe6; }
.method-steps article:nth-child(2) { border-color: #afcbbb; }
.method-steps article:nth-child(3) { border-color: #d4bdc8; }
.method-steps h3 { margin-bottom: 12px; font-size: 23px; }
.method-steps article > p:last-child { color: var(--muted); margin: 0; font-size: 16px; }
.validation-heading { border-top: 1px solid var(--line); padding-top: 49px; }
.benchmark-header h3 { margin-bottom: 10px; }
.benchmark-header p { max-width: 920px; margin-bottom: 22px; color: var(--muted); font-size: 15px; }
.table-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 17px; }
.segmented { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid #cdd8e5; border-radius: 6px; padding: 3px; gap: 3px; background: #f1f5f9; }
.segmented button { flex-shrink: 0; border: 0; border-radius: 4px; padding: 8px 14px; min-height: 38px; background: transparent; color: #4b5a6a; font-size: 14px; font-weight: 600; line-height: 1.4; }
.segmented button:hover { background: #e3edf7; }
.segmented button[aria-pressed="true"] { background: white; color: var(--blue-dark); box-shadow: 0 1px 4px #183a6020; }
.prune-control { display: flex; align-items: center; gap: 12px; }
.prune-control > span { font-size: 14px; color: var(--muted); }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #d8e2ec; border-radius: 8px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #afc3d7 #f3f6f9; }
.data-table { width: 100%; min-width: 860px; border-spacing: 0; border-collapse: separate; font-size: 14px; line-height: 1.5; color: #394653; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid #e5eaf0; text-align: center; white-space: nowrap; }
.data-table thead th { padding-block: 15px; color: var(--blue-dark); background: #edf3fa; font-size: 13px; font-weight: 700; }
.data-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; border-right: 1px solid #e5eaf0; font-weight: 600; }
.data-table thead tr > :first-child { z-index: 2; background: #edf3fa; }
.data-table tbody tr:hover > * { background: #f4f8fd; }
.data-table .ours > *, .data-table .ours > :first-child { color: #174f36; background: #edf6ef; font-weight: 700; }
.data-table .ours:hover > * { background: #e5f1e8; }
.data-table td.best { font-weight: 760; text-decoration: underline; text-underline-offset: 4px; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.table-note { margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; min-height: 23px; }
.protocol-control { margin-bottom: 18px; }
.benchmark-block { padding-top: 58px; margin-top: 58px; border-top: 1px solid var(--line); }
.real-mask-figure { max-width: 900px; margin: 40px auto 0; }
.ablation-details { margin-top: 55px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ablation-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 21px; font-weight: 650; }
.ablation-details summary::-webkit-details-marker { display: none; }
.ablation-details[open] summary > img { transform: rotate(45deg); }
.details-content { padding-bottom: 25px; }
.figure-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; margin-bottom: 27px; }
.demo-control { margin-bottom: 25px; }
.video-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.video-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }
.video-card video { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #15191e; }
.video-card figcaption { padding: 13px 15px; font-size: 14px; line-height: 1.55; }
.release-note { max-width: 930px; padding-top: 22px; margin: 0; color: var(--muted); font-size: 14px; }
.citation-section { background: #20252c; color: #f7f9fc; }
.citation-section .kicker { color: #9ac3ef; }
.citation-section .section-heading > p { color: #c1cbd6; }
.citation-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 20px; border: 1px solid #48525e; border-bottom: 0; border-radius: 8px 8px 0 0; font: 14px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.icon-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 1px solid #697583; border-radius: 5px; background: #303943; }
.icon-button img { filter: invert(1); }
.icon-button:hover { background: #46576b; }
.citation-section pre { margin: 0; padding: 23px; border: 1px solid #48525e; border-radius: 0 0 8px 8px; overflow-x: auto; color: #dae5f1; font: 14px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.copy-status { min-height: 24px; margin: 12px 0 0; color: #bcd7f4; font-size: 14px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 35px; }
.site-footer p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
#image-dialog { position: fixed; width: min(1500px,95vw); max-width: none; max-height: 94dvh; padding: 48px 16px 16px; border: 0; border-radius: 8px; background: white; overflow: auto; }
#image-dialog::backdrop { background: #111821bb; }
.close-dialog { position: fixed; top: 4vh; right: 4vw; z-index: 1; background: #28323d; }
.zoomed-image { width: 100%; height: auto; }
@media (max-width: 1050px) {
  .nav-links { gap: 18px; }
  .section-heading { gap: 38px; }
  .metrics > div { padding-inline: 16px; }
  .metrics strong { font-size: 36px; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 125px; }
  .shell { width: calc(100% - 36px); }
  .nav-shell { width: calc(100% - 32px); display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding-top: 9px; }
  .brand { font-size: 19px; }
  .nav-links { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; gap: 22px; max-width: 100%; overflow-x: auto; margin: 4px 0 0; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 13px; padding-block: 9px; }
  .nav-paper { min-height: 36px; }
  .hero { padding-top: 36px; padding-bottom: 8px; }
  .hero h1 { font-size: 48px; margin-bottom: 13px; }
  .eyebrow { gap: 8px; margin-bottom: 16px; font-size: 12px; flex-wrap: wrap; }
  .venue { font-size: 12px; }
  .subtitle { font-size: 23px; line-height: 1.35; margin-bottom: 18px; }
  .desktop-break { display: none; }
  .hero-description { display: none; }
  .authors { margin-bottom: 12px; font-size: 15px; line-height: 1.9; }
  .affiliation-details { margin-bottom: 9px; font-size: 14px; }
  .affiliation-details > summary { display: list-item; width: fit-content; margin-inline: auto; color: var(--blue); cursor: pointer; }
  .affiliations { padding-top: 9px; gap: 6px; font-size: 13px; }
  .correspondence { font-size: 13px; }
  .hero-actions { gap: 7px; margin-top: 19px; }
  .hero-actions .resource { padding: 8px 13px; min-height: 40px; font-size: 13px; }
  .section-shell { padding-block: 58px; }
  .overview { padding-top: 43px; }
  h2 { font-size: 34px; }
  h3 { font-size: 23px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 27px; }
  .section-heading > p { font-size: 16px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 25px; margin-bottom: 28px; }
  .metrics > div { padding-inline: 15px; }
  .metrics > div:nth-child(3) { padding-left: 0; }
  .metrics > div:nth-child(2) { border-right: 0; }
  .metrics strong { font-size: 34px; }
  .metrics span:not(.times):not(.unit) { font-size: 13px; }
  .news-content { grid-template-columns: 1fr; gap: 12px; }
  .news-content li { grid-template-columns: 100px minmax(0,1fr); gap: 12px; font-size: 14px; }
  .news-content time { font-size: 13px; }
  .abstract { font-size: 16px; line-height: 1.85; }
  .method-steps { grid-template-columns: 1fr; gap: 25px; margin-bottom: 45px; }
  .method-steps h3 { font-size: 23px; }
  .table-controls { gap: 12px; align-items: flex-start; }
  .prune-control { flex-wrap: wrap; gap: 7px; }
  .segmented button { padding: 8px 11px; font-size: 13px; }
  .protocol-control button { font-size: 12px; padding-inline: 9px; }
  .benchmark-block { margin-top: 43px; padding-top: 43px; }
  .figure-pair { grid-template-columns: 1fr; }
  .video-grid { gap: 12px; }
  .video-card figcaption { padding: 10px 11px; font-size: 13px; }
  .real-mask-figure { margin-top: 27px; }
  .citation-section pre { padding: 18px; font-size: 13px; }
  .site-footer { align-items: flex-start; }
  .paper-figure figcaption { font-size: 13px; }
}
@media (max-width: 370px) {
  .hero h1 { font-size: 42px; }
  .subtitle { font-size: 21px; }
  .hero-actions .resource { padding-inline: 10px; }
  .video-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
