:root{--ink:#24312e;--muted:#626c67;--paper:#faf9f5;--green:#315f4d;--line:#dcded6;--orange:#b45834;--width:1080px;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.7}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--orange);outline-offset:5px}img{display:block;max-width:100%;height:auto}figure{margin:0}p{margin:0 0 1em}h1,h2,h3{line-height:1.15;margin:0;font-weight:500}h1,h2{font-family:Georgia,'Times New Roman',serif;text-wrap:balance}h2{font-size:clamp(32px,4vw,49px);letter-spacing:-1.5px}h3{font-size:19px;font-weight:600}strong{font-weight:600}.container{width:min(var(--width),calc(100% - 48px));margin-inline:auto}.site-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:17px max(24px,calc((100vw - var(--width))/2));background:rgba(250,249,245,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(14px);gap:24px}.wordmark{font-weight:700;font-size:23px;letter-spacing:-1px}.wordmark>span{color:var(--green)}.wordmark .brand-dot{margin-left:9px;font-size:18px;color:var(--orange)}nav{display:flex;gap:27px;font-size:13px}nav a:hover,nav a[aria-current]{color:var(--orange)}.hero{padding:88px 0 66px;text-align:center}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:700;color:var(--green);margin-bottom:23px}h1{font-size:clamp(36px,5.2vw,65px);letter-spacing:-2px}h1>span{font-style:italic;color:var(--green);display:inline-block;margin-bottom:16px;font-size:1.15em}.hero-summary{color:var(--muted);font-size:18px;margin:27px 0 22px}.authors{font-size:14px}.hero-actions{display:flex;justify-content:center;align-items:center;gap:24px;margin-top:25px}.button{display:inline-flex;justify-content:center;align-items:center;gap:20px;border:1px solid var(--line);border-radius:5px;background:transparent;padding:9px 17px;font-size:12px;font-weight:600}.button:hover{border-color:var(--green);background:#edf0e9}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#234936}.release-note{font-size:12px;color:var(--muted)}.section{padding-block:76px}.section-heading{margin-bottom:36px}.section-heading .eyebrow{margin-bottom:15px}.section-heading>p:last-child:not(.eyebrow){max-width:660px;margin-top:20px;color:var(--muted)}.idea{display:grid;grid-template-columns:1fr 1fr;gap:35px 60px;border-top:1px solid var(--line);padding-bottom:40px}.idea-copy{color:var(--muted)}.idea-copy strong{color:var(--ink)}.principles{grid-column:1/-1;display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:22px;font-size:13px}.principles b{color:var(--orange);margin-right:10px;font-size:11px}.figure-frame{background:transparent;border:0;padding:24px;border-radius:0}.figure-frame img{width:100%;object-fit:contain}.teaser img{max-height:560px}.teaser{margin-bottom:24px}figcaption{font-size:12px;color:var(--muted);line-height:1.65;margin-top:16px}figcaption span{display:block;margin-top:6px;color:var(--green)}.samples-section{padding-bottom:40px}.gallery{margin-bottom:35px}.gallery-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.gallery-heading p{font-size:12px;color:var(--muted);margin:6px 0 0}.marquee{overflow:hidden;padding-block:4px 12px}.track{display:flex;width:max-content;animation:roll-right 65s linear infinite}.sample-group{display:flex;gap:16px;padding-right:16px}.sample{width:220px;margin:0}.sample button{display:block;width:100%;padding:0;border:0;border-radius:5px;overflow:hidden;background:#e5e5df}.sample img{width:220px;height:220px;object-fit:cover;transition:transform .3s}.sample button:hover img{transform:scale(1.03)}.sample figcaption{max-width:220px;margin-top:9px;padding-inline:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}.marquee:hover .track,.marquee:focus-within .track,.gallery.is-paused .track{animation-play-state:paused}.gallery-note{font-size:12px;color:var(--muted)}@keyframes roll-right{from{transform:translateX(-50%)}to{transform:translateX(0)}}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;margin-top:16px}.steps article{padding-top:0}.steps span{font-size:11px;color:var(--orange)}.steps h3{margin:14px 0}.steps p,.ablation-grid p{font-size:14px;color:var(--muted)}.ablation-section{background:#eeefe8;border-block:1px solid var(--line)}.ablation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.ablation-grid figure{background:transparent;border:0;border-radius:0;padding:12px;aspect-ratio:1.15;display:flex;align-items:center;justify-content:center}.ablation-grid img{max-height:280px;object-fit:contain}.ablation-grid h3{margin:22px 0 13px}.results-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:48px;align-items:start}.results-layout h3{margin-bottom:12px}.results-layout p{font-size:14px;color:var(--muted);margin-bottom:27px}.pending{border-left:3px solid var(--green);padding:14px 18px;background:#eeefe8;font-size:13px}.pending p{margin:6px 0 0;font-size:12px}.results-layout .figure-frame{padding:16px}footer{border-top:1px solid var(--line);padding-block:30px;display:flex;align-items:center;justify-content:space-between;gap:20px}footer p,footer>a:last-child{font-size:11px;color:var(--muted);margin:0}.skip{position:fixed;top:-100px;left:20px;z-index:20;background:white;padding:10px}.skip:focus{top:10px}dialog{border:0;border-radius:8px;padding:20px;max-width:min(700px,92vw);max-height:92vh;background:var(--paper)}dialog::backdrop{background:#101b17cc}dialog img{max-height:65vh;margin:20px auto 0;object-fit:contain}dialog p{font-size:14px;margin:18px 0 0}.close{display:flex;margin-left:auto}
@media(min-width:1800px){.sample{width:280px}.sample img{width:280px;height:280px}.sample figcaption{max-width:280px}}
@media(max-width:760px){.site-header{padding:12px 20px;gap:15px;flex-wrap:wrap}nav{gap:20px;overflow-x:auto;width:100%;padding-bottom:4px}.hero{padding:55px 0}.hero-actions{gap:14px;flex-wrap:wrap}.hero-summary{font-size:16px}.section{padding-block:48px}.idea,.results-layout{grid-template-columns:1fr;gap:20px}.principles{flex-direction:column;gap:10px}.section-heading{margin-bottom:26px}.figure-frame{padding:12px}.steps,.ablation-grid{grid-template-columns:1fr}.ablation-grid figure{aspect-ratio:auto;min-height:240px}.ablation-grid img{max-height:300px}.ablation-grid{gap:30px}.sample{width:190px}.sample img{width:190px;height:190px}.sample figcaption{max-width:190px}.gallery-heading{align-items:flex-start}.gallery-heading .button{flex-shrink:0;font-size:10px;padding:8px}.gallery-heading p{max-width:210px}.container{width:calc(100% - 36px)}footer{flex-wrap:wrap}footer p{order:3;width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.track{animation:none}.marquee{overflow-x:auto}.sample-group[aria-hidden]{display:none}.sample img{transition:none}.pause{display:none}}
.class-navigation{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0;text-align:center}.class-navigation h4{font:500 27px Georgia,serif;margin:0}.class-navigation p{font-size:12px;color:var(--muted);margin:4px 0 0}.class-arrow{width:46px;height:46px;font-size:22px;padding:0}.class-collage{display:grid;gap:16px;margin-bottom:18px}.encoder-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:center}.encoder-row figcaption{margin:0;font-size:13px;font-weight:600;color:var(--green)}.encoder-samples{overflow-x:auto;border-radius:4px}.encoder-samples img{width:100%;max-width:none;height:auto;min-width:640px}
@media(max-width:760px){.encoder-row{grid-template-columns:1fr;gap:8px}.class-navigation h4{font-size:24px}.imagenet-gallery .gallery-heading p{max-width:none}.class-collage{gap:22px}.encoder-samples img{min-width:960px}}
.authorship{max-width:850px;margin:26px auto}.authors{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;font-size:15px;margin-bottom:18px}.authors span,.affiliations span{display:inline-block}.authorship sup{font-size:9px;color:var(--green);margin-left:3px}.affiliations{display:flex;flex-wrap:wrap;justify-content:center;gap:5px 16px;font-size:12px;color:var(--muted);margin-bottom:12px}.contributions,.correspondence{font-size:11px;color:var(--muted);margin-bottom:6px}.correspondence a:hover{color:var(--green);text-decoration:underline}

/* Compact paper title and hero spacing. */
.hero{padding:44px 0 42px}
.hero>.eyebrow{margin-bottom:16px}
.hero h1{font-size:clamp(30px,3.7vw,46px);letter-spacing:-1.3px;line-height:1.16}
.hero h1>span{display:inline;margin:0;font-size:1em}
.hero-summary{margin:18px 0 16px;font-size:16px}
.authorship{margin:20px auto}
.hero-actions{margin-top:18px}
@media(max-width:760px){.hero{padding:32px 0}.hero h1{font-size:clamp(28px,5.2vw,36px)}.hero-summary{font-size:15px}}
@media(min-width:1100px){.authorship{max-width:none}.affiliations{flex-wrap:nowrap;gap:12px;font-size:11px}.affiliations span{white-space:nowrap}}

.authors .author-row-break{flex-basis:100%;height:0}

.release-status{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:5px;padding:9px 17px;font-size:12px;line-height:1.7;text-align:center}
[data-gallery="t2i"] .marquee{max-width:1080px;margin-inline:auto}

[data-gallery="t2i"] .track{animation-duration:160s}

.teaser-heading{padding-top:12px;margin-bottom:26px}.teaser-heading h2{font-size:clamp(28px,3.3vw,40px)}.teaser-heading p{max-width:800px;margin:18px 0 0;color:var(--muted)}
.idea{padding-bottom:12px}
.teaser-heading{padding-top:0}
.teaser-heading p{margin-top:0}
.samples-section{padding-bottom:0}
[data-gallery="t2i"]{margin-bottom:0}

/* One heading-sized gap between the main sections. */
:root{--section-gap:clamp(32px,4vw,49px)}
.hero{padding-bottom:0}
.section{padding-block:var(--section-gap) 0}
.idea{padding-bottom:12px}
.teaser{margin-bottom:0}
.idea .section-heading,.idea-copy p:last-child,
.steps article p:last-child,.ablation-grid article p:last-child{margin-bottom:0}
[data-gallery="t2i"] .marquee{padding-bottom:0}
footer{margin-top:var(--section-gap)}
/* Extra breathing room after each section. */
.hero,.section{padding-bottom:32px}

.ablation-grid .ablation-step{font-size:11px;color:var(--orange);margin:18px 0 0}.ablation-step+h3{margin-top:14px}
/* Paper results retain separate resolution and guidance protocols. */
.metric-note{font-size:15px;color:var(--muted);max-width:850px;margin-bottom:28px}
.result-block+.result-block{margin-top:var(--section-gap)}
.result-block>h3{font-size:22px;margin-bottom:14px}
.result-block>p:not(.result-note){max-width:850px;color:var(--muted);font-size:15px}
.results-table-scroll{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:6px;background:#fff}
.results-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums;line-height:1.5}
.results-table caption{text-align:left;padding:14px 18px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}
.results-table th,.results-table td{padding:11px 16px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
.results-table thead th{font-size:12px;background:#f0f1eb;font-weight:600;vertical-align:middle}
.results-table thead small{font-size:10px;font-weight:400;color:var(--muted)}
.results-table th:first-child{text-align:left}
.results-table th[scope="row"]{font-weight:500}
.results-table th[scope="colgroup"]{text-align:center}
.results-table .ours-row{background:#edf3ec}
.results-table .ours-row th{color:var(--green)}
.results-table tr:last-child td,.results-table tr:last-child th{border-bottom:0}
.result-note{font-size:12px;color:var(--muted);line-height:1.65;margin:12px 0 0}
.result-note a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.results-table th,.results-table td{padding:10px 12px}.result-block>h3{font-size:20px}}
/* Scale vector ablation plots to their panels, not their native PDF dimensions. */
.ablation-grid figure{display:block}
.ablation-grid figure>a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.ablation-grid figure img{width:100%;height:100%;max-height:none;object-fit:contain}
@media(max-width:760px){.ablation-grid figure{height:300px;min-height:0}}
.citation-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.citation-heading h2{font-size:32px}.citation-actions{display:flex;gap:10px;flex-wrap:wrap}.citation-code{margin:0;padding:24px;border:1px solid var(--line);border-radius:6px;background:#f0f1eb;overflow-x:auto;font-size:13px;line-height:1.7}.citation-status{font-size:12px;color:var(--muted);margin:8px 0 0}.citation-status:empty{display:none}@media(max-width:760px){.citation-heading{align-items:flex-start;flex-direction:column}.citation-code{padding:16px;font-size:12px}}
/* Prose sits just inside the figure width and fills its available line length. */
:root{--prose-width:96%}
.section-heading>p:last-child:not(.eyebrow),
.teaser-heading p,.metric-note,
.result-block>p:not(.result-note),.result-note{
  width:var(--prose-width);
  max-width:none;
  margin-left:auto;
  margin-right:auto;
}
.idea-copy p,.teaser-heading p,
.section-heading>p:last-child:not(.eyebrow),
.gallery-heading p,.steps article p,.ablation-grid article p:not(.ablation-step),
.metric-note,.result-block>p,.figure-frame figcaption{
  text-align:justify;
  text-align-last:left;
}
.gallery-heading>div{flex:1;min-width:0}
.gallery-heading p{max-width:none;width:var(--prose-width)}
.figure-frame figcaption{width:var(--prose-width);margin-left:auto;margin-right:auto}
@media(max-width:760px){
  :root{--prose-width:100%}
  .gallery-heading p{max-width:none}
}
.results-table .ours-row th[scope="row"]{font-weight:700}
#results>.section-heading{margin-bottom:14px}
#results>.section-heading>p:last-child{margin-bottom:0}
