

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 var(--text)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3, h4, ul, ol, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
p a, figcaption a, li a, dd a { color: var(--joint); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, figcaption a:hover, li a:hover, dd a:hover { color: var(--ink); }
button, select, input { font: inherit; color: inherit; }
button, summary, select, label.toggle { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--joint); outline-offset: 3px; }
sup { font-size: .65em; line-height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.math { font-family: var(--math); font-style: italic; font-size: 1.06em; white-space: nowrap; }
.math .up { font-style: normal; }
code, .method-name { font-family: var(--mono); font-size: .9em; }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-top: var(--section-gap); }

.band { margin-top: var(--section-gap); background: var(--surface); border-block: 1px solid var(--rule); }
.band > .section { padding-bottom: var(--section-gap); }
.band .figure figcaption, .band .stat, .band .step, .band .table-card { background: var(--paper); }
.band .table-note { background: var(--paper); }
.prose { max-width: var(--prose); margin-inline: auto; }
.prose p + p { margin-top: 14px; }

h1 { font-size: clamp(27px, 3.3vw, 40px); font-weight: 650; line-height: 1.22; letter-spacing: -.018em; text-wrap: balance; }
h2 { font-size: clamp(24px, 2.5vw, 30px); font-weight: 650; line-height: 1.25; letter-spacing: -.012em; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 650; line-height: 1.35; }
h4 { font-size: 15px; font-weight: 650; line-height: 1.4; }
.section-heading { text-align: center; margin-bottom: 30px; }
.section-lede { max-width: 720px; margin: 12px auto 0; color: var(--ink-2); text-wrap: pretty; }
.subsection { margin-top: 56px; }
.subsection > h3 { font-size: 21px; margin-bottom: 14px; text-align: center; }
.eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }

.wordmark { font-variant-caps: small-caps; font-weight: 750; letter-spacing: .01em; white-space: nowrap; }
.wordmark .hap { color: var(--force); }
.wordmark .twin { color: var(--joint); }
.prose .wordmark, .table-note .wordmark { font-weight: 650; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 7px 16px;
  font-size: var(--text-sm); font-weight: 550; white-space: nowrap; background: var(--paper); border: 1px solid #BFC6D3; border-radius: var(--radius-sm); }
.button:hover { background: var(--surface); border-color: var(--ink-2); }
.button.primary { color: #fff; background: var(--ink); border-color: var(--ink); }
.button.primary:hover { background: #2C3A5C; }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button small { font-weight: 400; opacity: .75; }
.button.soon, .button.soon:hover { color: var(--ink-2); background: var(--paper); border-color: #BFC6D3; cursor: default; }

.site-nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); display: flex; align-items: center; gap: 24px;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule); }
.site-mark { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; flex: none; }
.site-mark img { width: 26px; height: 26px; }

.site-mark:has(.site-title) { flex: 0 1 auto; min-width: 0; }
.site-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--ink); }
.site-title .wordmark { font-size: 1.15em; }
.site-nav nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav nav::-webkit-scrollbar { display: none; }
.site-nav nav a { flex: none; padding: 6px 10px; font-size: var(--text-sm); color: var(--ink-2); border-radius: var(--radius-sm); }
.site-nav nav a:hover { color: var(--ink); background: var(--surface); }
.site-nav nav a[aria-current="true"] { color: var(--ink); font-weight: 600; }

.hero { padding-block: 60px 34px; text-align: center; }
.hero h1 { max-width: 960px; margin-inline: auto; }
.section.first { padding-top: 44px; }
.hero .tagline { max-width: 700px; margin: 14px auto 0; font-size: 19px; line-height: 1.5; color: var(--ink-2); text-wrap: balance; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin-top: 24px; font-size: 19.5px; }
.authors a:hover { color: var(--joint); }
.authors sup, .affiliations sup { font-size: .68em; margin-left: 1px; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.affiliations sup { margin: 0 3px 0 0; }
.affiliations .logo { display: inline-block; width: auto; margin-right: 6px; }
.affiliations .logo.tum { height: 12.5px; vertical-align: -1px; }
.affiliations .logo.bremen { height: 16px; vertical-align: -2.5px; }
.affiliations .logo.mcml { height: 10px; vertical-align: 0; }
.affiliations .corr-note { font-size: 15px; }
.emails { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; margin-top: 6px; font: 400 14px/1.6 var(--mono); color: var(--ink-2); }
.venue { display: inline-block; margin-top: 16px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--joint); background: var(--joint-soft); border-radius: 999px; }
.resource-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

.figure { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.figure > a { display: block; padding: 18px 18px 14px; }
.figure img { width: 100%; }
.figure figcaption { padding: 13px 18px 15px; border-top: 1px solid var(--rule); font-size: var(--text-sm); line-height: 1.6; color: var(--ink-2); background: var(--surface); }
.figure figcaption strong { color: var(--ink); font-weight: 650; }
.figure.narrow { max-width: 760px; margin-inline: auto; }
.figure + .prose, .prose + .figure, .table-card + .prose, .prose + .table-card, .figure + .table-card { margin-top: 26px; }

.figure.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: max(340px, calc(100vh - var(--nav-h) - 40px)); object-fit: contain; background: var(--paper); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.stat { min-width: 0; padding: 20px 20px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.stat-value { display: block; font-size: 38px; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 21px; font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.stat h3 { margin-top: 8px; font-size: 15px; }
.stat p { margin-top: 4px; font-size: var(--text-xs); line-height: 1.5; color: var(--ink-2); }
@media (max-width: 900px) { .stat-grid, .stat-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stat-grid, .stat-grid.three { grid-template-columns: minmax(0, 1fr); } }

.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.step { min-width: 0; padding: 18px 20px 20px; border: 1px solid var(--rule); border-radius: var(--radius); }
.step h3 { display: flex; align-items: center; gap: 10px; font-size: 16.5px; }
.step h3 b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; font-size: 13px; font-weight: 650; color: #fff; background: var(--ink); border-radius: 50%; }
.step p { margin-top: 9px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 820px) { .step-grid { grid-template-columns: minmax(0, 1fr); } }

.tag { flex: none; padding: 3px 9px; font-size: 12px; font-weight: 600; color: #fff; background: var(--ink); border-radius: 999px; white-space: nowrap; }

.table-card { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.table-card.narrow { max-width: 760px; margin-inline: auto; }
.table-scroll { overflow-x: auto; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table-card th, .table-card td { padding: 7px 9px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--rule-soft); }
.table-card th { font-weight: 600; }
.table-card thead th { font-size: 12.5px; color: var(--ink-2); border-bottom-color: var(--rule); text-align: center; }
.table-card thead tr:first-child th { padding-top: 11px; color: var(--ink); }
.table-card thead th.sub { font-weight: 500; text-align: right; }
.table-card tbody th, .table-card thead th.left, .table-card td.left { text-align: left; }
.table-card tbody th { font-weight: 500; }
.table-card tbody th.object { font-weight: 650; vertical-align: top; }
.table-card tr.group-start > * { border-top: 1px solid var(--rule); }
.table-card tbody tr:last-child > * { border-bottom: 0; }
.table-card .ours { background: var(--joint-soft); }
.table-card td.best { font-weight: 700; color: var(--ink); }
.table-card td { color: #3B465E; }
.table-card tr.mean > * { background: var(--surface-2); font-weight: 600; border-top: 1px solid var(--rule); }
.table-card tr.mean .ours { background: #D5DCEC; }
.table-card tr.zero-shot > * { background: var(--surface-2); }
.table-card .gap-left { padding-left: 20px; }
.table-card figcaption, .table-note { padding: 12px 16px 13px; border-top: 1px solid var(--rule); font-size: var(--text-sm); line-height: 1.6; color: var(--ink-2); background: var(--surface); }
.table-note strong { color: var(--ink); font-weight: 650; }

.compare { margin-bottom: 40px; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--paper); }

.compare-takes { display: flex; border-bottom: 1px solid var(--rule); background: var(--surface); }
.compare-takes > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; padding: 10px 14px; border-right: 1px solid var(--rule); }
.compare-takes > div:last-child { border-right: 0; }
.compare-takes b { margin-right: 4px; font-size: 15px; font-weight: 650; }
.compare-takes button { padding: 4px 12px; font-size: 13px; font-weight: 550; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; }
.compare-takes button:hover { border-color: var(--ink-2); }
.compare-takes button[aria-selected="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
@media (max-width: 860px) { .compare-takes { flex-wrap: wrap; } .compare-takes > div { flex: 1 1 50% !important; border-bottom: 1px solid var(--rule); }
  .compare-takes > div:nth-child(2n) { border-right: 0; } .compare-takes > div:nth-last-child(-n+2) { border-bottom: 0; } }

.compare video { display: block; width: 100%; height: auto; aspect-ratio: 1472 / 980; max-height: max(340px, calc(100vh - var(--nav-h) - 124px)); margin-top: 10px; object-fit: contain; background: var(--paper); cursor: pointer; }
.compare-bar { display: flex; align-items: center; gap: 12px; padding: 6px 14px 10px; }
.compare-track { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; }
.compare-track::before, .compare-track i { content: ""; position: absolute; left: 0; top: 9px; height: 4px; border-radius: 2px; }
.compare-track::before { right: 0; background: #DCE1EA; }
.compare-track i { width: 0; background: var(--ink); }
.compare-track i::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }
.compare-bar output { min-width: 44px; text-align: right; font: 500 12.5px var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }

.bars { display: grid; gap: 0; max-width: 760px; margin: 0 auto 26px; }
.bars h4 { margin-bottom: 10px; text-align: center; }
.bars .bars-sub { margin: -6px 0 12px; text-align: center; font-size: var(--text-xs); color: var(--ink-2); }
.bar-row { position: relative; display: grid; grid-template-columns: 178px minmax(0, 1fr); align-items: center; gap: 12px; padding: 5px 8px; border-radius: var(--radius-sm); }
.bar-row:hover, .bar-row:focus-visible { background: var(--surface); }
.bar-row .bar-name { font-size: var(--text-sm); text-align: right; color: var(--ink); }
.bar-row .bar-name small { color: var(--ink-2); font-size: 12px; margin-right: 6px; }
.bar-row .bar-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-row .bar { height: 14px; min-width: 3px; background: #AEB6C6; border-radius: 0 4px 4px 0; }
.bar-row.ours .bar { background: var(--ours); }
.bar-row .bar-value { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.bar-row.ours .bar-name { font-weight: 650; }
.bar-group-label { margin: 8px 8px 2px; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.bar-tip { position: absolute; z-index: 5; left: 198px; top: 100%; max-width: 380px; padding: 8px 11px; font-size: var(--text-xs); line-height: 1.5; color: #fff; background: var(--ink); border-radius: 6px; pointer-events: none; opacity: 0; transform: translateY(-2px); transition: opacity .12s; }
.bar-row:hover .bar-tip, .bar-row:focus-visible .bar-tip { opacity: 1; }
@media (max-width: 600px) { .bar-row { grid-template-columns: 124px minmax(0, 1fr); } .bar-tip { left: 8px; } }

.disclosure { max-width: var(--prose); margin: 22px auto 0; border-block: 1px solid var(--rule); }
.disclosure.wide { max-width: none; }
.disclosure > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 2px; list-style: none; font-size: 15.5px; font-weight: 600; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: "+"; font-size: 20px; font-weight: 400; line-height: 1; color: var(--ink-2); }
.disclosure[open] > summary::after { content: "\2212"; }
.disclosure > .table-card { margin: 2px 0 18px; }
.disclosure > .abstract { padding: 0 2px 18px; text-wrap: pretty; }
.disclosure .wordmark { font-weight: 650; }
#abstract .disclosure { margin-top: 0; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.card { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 20px 22px 22px; border: 1px solid var(--rule); border-radius: var(--radius); }
.card h3 { font-size: 19px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.card img { width: 100%; border-radius: 4px; }
@media (max-width: 860px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

.citation { position: relative; max-width: var(--prose); margin-inline: auto; }
.citation pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13.5px/1.65 var(--mono); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.citation .button { position: absolute; top: 10px; right: 10px; min-height: 32px; padding: 4px 12px; font-size: 13px; }

.site-footer { margin-top: var(--section-gap); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 26px 40px; border-top: 1px solid var(--rule); font-size: var(--text-sm); color: var(--ink-2); }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
