:root {
  --paper: #eeede5;
  --paper-bright: #f8f7f0;
  --ink: #0b0b0b;
  --muted: #66665e;
  --line: #b8b7ad;
  --accent: #ff4e00;
  --accent-soft: #ffded0;
  --section-blue: #b9d9ec;
  --signal: #3155ff;
  --deep: #0b0d10;
  --mint: #ccff33;
  --shell: 1240px;
  --radius: 0;
  --shadow: none;
  --academic-font: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, transparent calc(100% - 1px), rgba(11,11,11,.04) 0);
  background-size: calc((100vw - min(100vw - 48px, var(--shell))) / 2 + 1px) 100%;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.narrow-shell { max-width: 860px; }
.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; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--ink); color: white; text-decoration: none; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30; height: 64px;
  border-bottom: 1px solid var(--ink); background: rgba(238,237,229,.94); backdrop-filter: blur(12px);
}
.site-header.is-scrolled { background: rgba(238,237,229,.98); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: -.04em; text-decoration: none; font-size: 1rem; text-transform: uppercase; }
.wordmark-mark { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--accent); box-shadow: 8px 0 0 var(--signal); transform: none; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; color: var(--ink); font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 3px; background: var(--accent); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }

.hero { position: relative; min-height: 100vh; overflow: hidden; padding: 112px 0 72px; border-bottom: 1px solid var(--ink); }
.hero::before { content: "ROSE"; position: absolute; right: -18px; top: 82px; color: transparent; -webkit-text-stroke: 1px rgba(11,11,11,.12); font-size: clamp(8rem, 22vw, 22rem); font-weight: 900; letter-spacing: -.11em; line-height: .8; pointer-events: none; }
.hero-grid { position: absolute; inset: 64px 0 0; opacity: .55; background-image: linear-gradient(rgba(11,11,11,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(11,11,11,.07) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, black, transparent 68%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); text-align: center; }
.eyebrow { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--ink); font-family: ui-monospace, monospace; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { position: static; grid-column: 1; grid-row: auto; margin: 22px auto 30px; color: var(--ink); font-family: var(--academic-font); font-size: clamp(7rem, 13vw, 10rem); font-weight: 700; letter-spacing: -.055em; line-height: .98; text-align: center; writing-mode: initial; transform: none; }
.hero-subtitle { grid-column: 1; width: 100%; margin: 0 auto 36px; padding: 0; border: 0; font-family: var(--academic-font); font-size: clamp(1.65rem, 2.35vw, 2.4rem); font-weight: 500; line-height: 1.5; letter-spacing: 0; text-align: center; word-spacing: .055em; }
.hero-subtitle-line { display: block; white-space: nowrap; }
.authors { grid-column: 1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 26px; width: min(1100px, 100%); margin: 0 auto 14px; text-align: center; }
.authors .author { color: var(--ink); font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.authors a { position: relative; color: var(--ink); font-size: 1.05rem; font-weight: 700; text-decoration: none; text-underline-offset: 5px; }
.authors a:hover { color: var(--signal); text-decoration: underline; }
.authors sup, .affiliations sup { margin-left: 2px; color: var(--signal); font-family: ui-monospace, monospace; font-size: .66em; font-weight: 900; }
.affiliations { grid-column: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 0; color: var(--muted); font-family: inherit; font-size: .95rem; letter-spacing: .01em; text-align: center; }
.affiliations > span { white-space: nowrap; }
.author-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.author-notes sup { color: var(--signal); }
.hero-actions { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 36px; width: 100%; margin: 30px auto 36px; text-align: center; }
.action-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 6px 2px; border: 0; background: transparent; color: var(--ink); text-decoration: none; transition: color .15s ease; }
.action-button:not(.is-disabled):hover { color: var(--signal); }
.action-button:focus-visible { outline: 2px solid var(--signal); outline-offset: 6px; }
.action-button.is-disabled { color: #66665e; cursor: not-allowed; }
.action-icon { display: grid; flex: 0 0 auto; width: 26px; height: 28px; place-items: center; color: currentColor; background: transparent; }
.action-icon svg { display: block; width: 24px; height: 24px; }
.action-copy { min-width: 0; }
.action-copy strong { font-family: inherit; font-size: 1.05rem; font-weight: 600; letter-spacing: .015em; line-height: 1.3; }
.huggingface-icon { font-family: sans-serif; font-size: 1.5rem; }
.hero-visual { grid-column: 1 / -1; min-height: 0; margin: 36px 0 0; padding: 0; text-align: left; background: var(--paper-bright); border: 1px solid var(--ink); border-radius: 0; box-shadow: 12px 12px 0 var(--signal); }
.visual-label { display: flex; justify-content: space-between; margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--ink); color: var(--ink); font-family: ui-monospace, monospace; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sequence-strip { display: grid; grid-template-columns: repeat(5, 1fr); }
.sequence-frame { position: relative; min-height: 168px; padding: 12px; border-right: 1px solid var(--ink); background: linear-gradient(145deg, transparent 49.5%, rgba(11,11,11,.16) 50%, transparent 50.5%); }
.sequence-frame:last-child { border-right: 0; }
.sequence-frame b { font-family: ui-monospace, monospace; font-size: .72rem; }
.sequence-frame small { position: absolute; bottom: 10px; left: 12px; font-family: ui-monospace, monospace; font-size: .7rem; text-transform: uppercase; }
.sequence-frame i { position: absolute; width: 48px; height: 48px; left: calc(50% - 24px); top: calc(50% - 24px); border: 1px solid var(--ink); border-radius: 50%; }
.sequence-frame i::after { content: ""; position: absolute; width: 55%; height: 1px; top: 50%; left: 23%; background: var(--ink); transform: rotate(-35deg); }
.masked-frame { color: white; background: var(--deep); }
.masked-frame i { border-style: dashed; border-color: var(--mint); }
.masked-frame i::after { background: var(--mint); }
.signal-frame { background: var(--accent); }
.reconstruction-track { display: flex; align-items: center; gap: 7px; padding: 12px; border-top: 1px solid var(--ink); font-family: ui-monospace, monospace; font-size: .7rem; text-transform: uppercase; }
.reconstruction-track span { margin-right: 7px; }
.reconstruction-track i { width: 12px; height: 12px; background: var(--ink); }
.reconstruction-track .masked-token { background: var(--mint); outline: 1px solid var(--ink); }
.reconstruction-track strong { margin-left: auto; color: var(--signal); font-weight: 900; }
.hero-visual > p { display: flex; justify-content: space-between; margin: 0; padding: 9px 12px; border-top: 1px solid var(--ink); color: var(--muted); font-family: ui-monospace, monospace; font-size: .72rem; text-align: left; text-transform: uppercase; }
.hero-visual > p span { color: var(--ink); }

.section { position: relative; padding: 120px 0; border-top: 1px solid var(--ink); }
.section::before { content: ""; position: absolute; inset: 0 auto 0 calc(50% - min(calc(100% - 48px), var(--shell)) / 2); width: 1px; background: rgba(11,11,11,.12); pointer-events: none; }
.section-tinted { background: var(--paper-bright); }
.section-dark { color: #f8f7f0; background: var(--deep); border-color: #f8f7f0; }
.section-heading { display: grid; grid-template-columns: 58px 1fr; max-width: 820px; margin-bottom: 54px; align-items: start; }
.section-heading.centered { margin-inline: auto; text-align: left; }
.section-number { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; margin: 4px 0 0; border: 1px solid currentColor; color: var(--accent); font-family: ui-monospace, monospace; font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
h2 { margin: 0; font-family: ui-sans-serif, sans-serif; font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; letter-spacing: -.075em; line-height: .88; text-transform: uppercase; }
.section-heading > p { grid-column: 2; max-width: 470px; margin: 18px 0 0; color: var(--muted); font-family: ui-monospace, monospace; font-size: .82rem; line-height: 1.55; text-transform: uppercase; }
.light-heading > p { color: #969992; }
.section-abstract { overflow: hidden; background: var(--signal); color: white; }
.section-abstract .section-number { color: white; }
.section-abstract .section-heading { margin-bottom: 36px; }
.abstract-copy { position: relative; z-index: 1; margin: 0; color: white; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.7; text-align: left; }
.abstract-copy strong { color: var(--mint); font-weight: 750; }
.abstract-copy::first-letter { float: none; margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.split-layout { display: grid; grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr); gap: clamp(50px, 8vw, 120px); }
#overview .split-layout { display: block; }
#overview .section-heading { position: static; display: grid; grid-template-columns: 58px 1fr; max-width: 900px; }
#overview .sticky-heading .section-number { margin: 4px 0 0; }
#overview .content-stack { margin-top: 48px; }
.sticky-heading { position: sticky; top: 112px; align-self: start; display: block; }
.sticky-heading .section-number { margin-bottom: 24px; }
.sticky-heading > p { margin-left: 0; }
#overview { background: #fff; }
.overview-figures { display: grid; gap: 32px; overflow: visible; border: 0; background: #fff; }
.overview-figure { margin: 0; overflow: hidden; background: #fff; box-shadow: 0 14px 36px rgba(11,11,11,.08); }
.overview-figure + .overview-figure { border-top: 0; }
.overview-crop { position: relative; overflow: hidden; background: #fff; }
.overview-crop img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: auto; }
.overview-crop-top { aspect-ratio: 9826 / 2040; }
.overview-crop-bottom { aspect-ratio: 9826 / 1945; }
.overview-crop-bottom img { transform: translateY(-53.64%); }
.figure-image-wrap { overflow-x: auto; padding: 14px; background: #fff; }
.overview-figure img { display: block; width: 100%; height: auto; }
.overview-figure figcaption { padding: 20px 22px 22px; border-top: 0; border-left: 6px solid var(--signal); color: #32322e; background: #f4f7ff; font-size: 1rem; line-height: 1.7; }
.overview-figure figcaption strong { color: var(--ink); font-weight: 750; }
.overview-figure figcaption > strong:first-child { color: var(--signal); }
.media-placeholder { position: relative; display: grid; place-items: center; min-height: 430px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background-color: var(--paper-bright); background-image: linear-gradient(rgba(11,11,11,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(11,11,11,.06) 1px, transparent 1px); background-size: 32px 32px; }
.media-placeholder::before, .media-placeholder::after { content: ""; position: absolute; background: var(--accent); }
.media-placeholder::before { width: 1px; top: 0; bottom: 0; left: 50%; }
.media-placeholder::after { height: 1px; left: 0; right: 0; top: 50%; }
.media-placeholder > span { position: relative; z-index: 1; padding: 8px 12px; border: 1px solid var(--ink); background: var(--paper-bright); font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.media-placeholder > small { position: absolute; left: 10px; bottom: 9px; margin: 0; font-family: ui-monospace, monospace; font-size: .7rem; text-transform: uppercase; }
h3 { margin: 32px 0 10px; font-size: 1.12rem; line-height: 1.12; }
.text-columns p, .experiment-list p, .result-card > p:last-child, .video-placeholder p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.62; }
#method { color: var(--ink); background: #fff; }
#method .section-number { color: var(--accent); }
.method-placeholder { display: block; min-height: 300px; padding: 48px; border-color: var(--ink); color: var(--ink); background-color: var(--paper-bright); }
.method-placeholder::before, .method-placeholder::after { background: rgba(11,11,11,.12); }
.method-flow { min-height: 205px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.method-flow span { display: grid; place-items: center; min-height: 86px; padding: 12px; border: 1px solid var(--ink); background: #fff; color: var(--ink); text-align: center; font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.method-flow i { color: var(--signal); font-style: normal; }
.method-flow .accent-block { background: var(--mint); border-color: var(--ink); color: var(--ink); box-shadow: 7px 7px 0 var(--ink); }
.policy-stack { display: grid; align-items: center; gap: 8px; }
.policy-stack .observation-arrow { color: var(--signal); text-align: center; line-height: 1; }
.policy-stack .observation-block { min-height: 50px; border-color: var(--signal); background: #f4f7ff; color: var(--signal); }
.method-placeholder > small { position: static; display: block; color: #d9deff; text-align: center; }
.method-overview-figures { margin-top: 38px; }
.method-paper-figure { margin-top: 38px; border: 1px solid var(--ink); color: var(--ink); background: #fff; box-shadow: none; }
.method-figure-sequence { display: grid; gap: 32px; margin-top: 38px; }
.method-figure-panel { position: relative; padding-top: 36px; border: 1px solid var(--ink); box-shadow: none; }
.method-figure-panel figcaption p { margin: 0; }
.method-figure-panel figcaption p:first-child > strong { color: var(--signal); }
.method-figure-crop { position: relative; overflow: hidden; width: 100%; margin: 20px auto; background: #fff; }
.method-figure-crop img { position: absolute; top: 0; left: 0; display: block; max-width: none; height: auto; }
.method-figure-index { position: absolute; z-index: 2; top: 12px; left: 16px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); font-family: Arial, "Helvetica Neue", sans-serif; font-size: 1.2rem; font-weight: 700; line-height: 1; box-shadow: 3px 3px 0 var(--signal); }
.method-figure-crop-left { width: min(80%, 768px); aspect-ratio: 4930 / 3219; }
.method-figure-crop-left img { width: 169.07%; }
.method-figure-crop-training { width: min(100%, 680px); aspect-ratio: 3405 / 950; }
.method-figure-crop-training img { width: 244.79%; transform: translate(-59.15%, 0); }
.method-figure-crop-repaint { width: min(100%, 680px); aspect-ratio: 3405 / 2099; }
.method-figure-crop-repaint img { width: 244.79%; transform: translate(-59.15%, -34.79%); }
.text-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 38px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.text-columns p { min-height: 180px; padding: 24px; border-right: 1px solid var(--ink); color: #32322e; }
.text-columns p:last-child { border-right: 0; }
.text-columns strong { display: block; margin-bottom: 22px; color: var(--signal); font-family: ui-monospace, monospace; font-size: .82rem; text-transform: uppercase; }
.text-columns b { display: inline-block; margin-right: 6px; color: var(--ink); font-family: ui-monospace, monospace; }
.experiment-list { display: grid; }
.experiment-card { overflow: hidden; border-bottom: 1px solid var(--ink); background: transparent; outline: none; }
.experiment-card:last-child { border-bottom: 0; }
.experiment-summary { display: flex; align-items: center; justify-content: space-between; min-height: 132px; padding: 28px; cursor: default; }
.experiment-summary::after { content: "+"; display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; margin-left: 24px; border: 1px solid var(--ink); color: var(--signal); font-family: ui-monospace, monospace; font-size: 1.7rem; font-weight: 500; line-height: 1; transition: transform .2s ease, color .2s ease, background .2s ease; }
.experiment-card:hover .experiment-summary::after, .experiment-card:focus .experiment-summary::after, .experiment-card:focus-within .experiment-summary::after { transform: rotate(45deg); color: white; background: var(--signal); }
.experiment-tag { color: var(--accent); font-family: ui-monospace, monospace; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.experiment-list h3 { margin: 0; font-family: ui-sans-serif, sans-serif; font-size: clamp(1.55rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.04em; }
.experiment-details { max-height: 0; overflow: hidden; opacity: 0; background: #fff; transition: max-height .6s cubic-bezier(.22,.76,.25,1), opacity .25s ease; }
.experiment-card:hover .experiment-details, .experiment-card:focus .experiment-details, .experiment-card:focus-within .experiment-details { max-height: 5200px; opacity: 1; }
.experiment-result-grid { display: grid; gap: 18px; padding: 18px; border-top: 1px solid var(--ink); background: #ecece6; }
.experiment-result-panel { overflow: hidden; border: 1px solid var(--ink); background: #fff; }
.experiment-figure-viewport { position: relative; overflow: hidden; background: #fff; }
.experiment-figure-viewport img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: auto; }
.experiment-table-wrap { overflow-x: auto; padding: 12px; background: #fff; }
.benchmark-table { width: 100%; min-width: 900px; border-collapse: collapse; color: var(--ink); font-family: Arial, "Helvetica Neue", sans-serif; font-size: 1.05rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.benchmark-table th, .benchmark-table td { padding: 12px 10px; color: var(--ink); text-align: center; white-space: nowrap; }
.benchmark-table th:first-child { text-align: left; }
.benchmark-table thead { background: #eef5fc; }
.benchmark-table thead tr:first-child th { border-top: 2px solid #466174; border-bottom: 1px solid #7892a0; font-size: 1.2rem; }
.benchmark-table thead tr:last-child th { border-bottom: 1px solid #7892a0; font-size: 1rem; }
.benchmark-table tbody tr:nth-child(even) { background: #eef5fc; }
.benchmark-table tbody tr:last-child > * { border-bottom: 2px solid #466174; }
.experiment-figure-viewport.figure-crop { aspect-ratio: 1710 / 598; }
.experiment-figure-viewport.figure-crop img { transform: translateY(-48.35%); }
.experiment-result-panel .experiment-caption { border-top: 1px solid var(--ink); }
.experiment-result-panel .experiment-notes { min-height: 0; }
.experiment-details-panel { background: #ecece6; }
.experiment-details-panel .experiment-image-wrap { margin: 18px 18px 0; border: 1px solid var(--ink); border-bottom: 0; }
.experiment-details-panel .experiment-copy-fold { margin: 0 18px 18px; border: 1px solid var(--ink); border-top: 0; background: #fff; }
.experiment-image-wrap { overflow-x: auto; padding: 18px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: #fff; }
.experiment-image-wrap img { display: block; width: 100%; height: auto; }
.experiment-real-world-split { display: grid; gap: 18px; margin: 18px 18px 0; padding: 18px; border: 1px solid var(--ink); border-bottom: 0; background: #fff; }
.experiment-real-world-panel { width: min(100%, 900px); margin: 0 auto; overflow: hidden; border: 1px solid var(--ink); background: #fff; }
.experiment-real-world-crop { position: relative; overflow: hidden; width: 100%; background: #fff; }
.experiment-real-world-crop img { position: absolute; top: 0; left: 0; display: block; max-width: none; height: auto; }
.experiment-real-world-crop-a { aspect-ratio: 3290 / 2649; }
.experiment-real-world-crop-a img { width: 169.76%; }
.experiment-copy-fold { outline: none; }
.experiment-fold-hint { display: none; }
.experiment-fold-hint span:last-child { color: var(--mint); }
.experiment-copy-content { max-height: none; overflow: visible; opacity: 1; }
.experiment-copy-fold:hover .experiment-fold-hint span:last-child, .experiment-copy-fold:focus .experiment-fold-hint span:last-child, .experiment-copy-fold:focus-within .experiment-fold-hint span:last-child { color: var(--accent); }
.experiment-caption { padding: 20px 28px; border-bottom: 1px solid var(--ink); background: #f4f7ff; }
.experiment-caption p, .experiment-notes p { max-width: none; color: #32322e; font-family: Arial, "Helvetica Neue", sans-serif; font-size: 1.05rem; line-height: 1.72; text-align: justify; text-justify: inter-word; }
.experiment-caption strong { color: var(--signal); }
.experiment-caption p > strong:first-child, .experiment-notes p > strong:first-child { color: var(--signal); font-family: Arial, "Helvetica Neue", sans-serif; font-size: 1.08rem; }
.experiment-notes-grid { display: grid; grid-template-columns: 1fr; min-height: 180px; }
.experiment-notes { padding: 24px 28px; }
.experiment-notes p + p { margin-top: 20px; }
.experiment-notes p strong { color: var(--ink); }
#experiments .split-layout { display: block; }
#experiments { background: #fff; font-family: Arial, "Helvetica Neue", sans-serif; }
#experiments h2, #experiments h3, #experiments .section-number { font-family: Arial, "Helvetica Neue", sans-serif; }
#experiments .section-heading { position: static; display: grid; grid-template-columns: 58px 1fr; max-width: 900px; }
#experiments .sticky-heading .section-number { margin: 4px 0 0; }
#experiments .experiment-list { grid-template-columns: 1fr; border: 1px solid var(--ink); }
.results-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; border: 1px solid #f8f7f0; }
.result-card { min-height: 220px; padding: 26px; border: 0; border-bottom: 1px solid #f8f7f0; border-radius: 0; background: var(--deep); }
.result-card-wide { grid-row: span 2; border-right: 1px solid #f8f7f0; border-bottom: 0; }
.result-card:last-child { border-bottom: 0; }
.result-card-header { display: flex; justify-content: space-between; color: #f8f7f0; font-family: ui-monospace, monospace; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.result-card-header small { color: var(--mint); }
.bar-chart { display: grid; gap: 28px; margin-top: 68px; }
.bar-chart div { display: grid; grid-template-columns: 90px 1fr 25px; align-items: center; gap: 14px; font-family: ui-monospace, monospace; font-size: .75rem; text-transform: uppercase; }
.bar-chart i { display: block; width: var(--value); height: 18px; background: #666b68; }
.bar-chart .rose-bar i { background: var(--accent); box-shadow: 5px 5px 0 var(--signal); }
.bar-chart b { color: var(--mint); font-size: 1rem; }
.result-stat { margin: 35px 0 10px; color: white; font-family: ui-sans-serif, sans-serif; font-size: 5rem; font-weight: 800; letter-spacing: -.08em; line-height: .8; }
.result-stat span { color: var(--accent); font-size: 2rem; }
.result-card > p:last-child { color: #a9ada9; }
#demos { overflow: hidden; padding-top: 72px; background: var(--paper-bright); }
#demos::after { content: "ROLLOUTS"; position: absolute; right: -18px; bottom: -20px; z-index: 0; color: rgba(11,11,11,.035); font-size: clamp(7rem, 18vw, 16rem); font-weight: 900; letter-spacing: -.1em; line-height: .7; pointer-events: none; }
#demos .shell { position: relative; z-index: 1; }
.interactive-demo { overflow: hidden; border: 0; background: var(--paper-bright); box-shadow: none; }
.hero-interactive-demo { grid-column: 1; width: 100%; margin: 36px 0 0; text-align: left; }
.interactive-demo-frame { height: clamp(680px, 68vw, 840px); background: var(--paper-bright); }
.interactive-demo-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--paper-bright); }
.demo-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 64px; }
.demo-evidence-figure { margin: 0; overflow: hidden; border: 1px solid var(--ink); background: #fff; box-shadow: 10px 10px 0 var(--signal); }
.demo-evidence-figure:nth-child(2) { box-shadow: 10px 10px 0 var(--accent); }
.demo-evidence-crop { position: relative; overflow: hidden; width: 100%; background: #fff; }
.demo-evidence-crop img { position: absolute; top: 0; left: 0; display: block; width: 243.46%; max-width: none; height: auto; }
.demo-evidence-crop-cup { aspect-ratio: 2294 / 1200; }
.demo-evidence-crop-cup img { transform: translate(-58.91%, 0); }
.demo-evidence-crop-water { aspect-ratio: 2294 / 1110; }
.demo-evidence-crop-water img { transform: translate(-58.91%, -51.72%); }
.demo-toolbar { display: flex; align-items: stretch; justify-content: flex-end; margin-bottom: 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.demo-toolbar > p { display: flex; align-items: center; gap: 18px; margin: 0; color: var(--muted); font-family: ui-monospace, monospace; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.demo-toolbar > p strong { display: grid; align-self: stretch; place-items: center; padding: 0 20px; color: white; background: var(--deep); font-size: 1rem; font-weight: 900; letter-spacing: .04em; }
.demo-toolbar-actions { display: flex; align-items: center; }
.demo-status { min-width: 82px; color: var(--signal); font-family: ui-monospace, monospace; font-size: .8rem; font-weight: 900; text-align: center; }
.demo-controls { display: flex; }
.demo-controls button { display: grid; place-items: center; width: 48px; height: 44px; margin: -1px -1px -1px 0; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; cursor: pointer; font-size: 1.1rem; }
.demo-controls button:hover { color: white; background: var(--signal); }
.demo-controls button:disabled { opacity: .28; color: var(--ink); background: transparent; cursor: not-allowed; }
.demo-group + .demo-group { margin-top: 64px; }
.demo-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 504px; grid-auto-rows: auto; gap: 22px; overflow-x: auto; padding: 0 12px 20px 0; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-color: var(--accent) transparent; scrollbar-width: thin; }
.demo-card { --card-accent: var(--signal); display: grid; grid-template-columns: 1fr; min-width: 0; overflow: hidden; border: 1px solid var(--ink); background: #fff; box-shadow: 10px 10px 0 var(--card-accent); scroll-snap-align: start; }
.demo-card:nth-child(3n+2) { --card-accent: var(--accent); }
.demo-card:nth-child(3n) { --card-accent: var(--mint); }
.demo-media { position: relative; min-height: 0; overflow: hidden; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--ink); color: white; background: var(--deep); }
.demo-media > span { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 5px 8px; color: var(--deep); background: var(--mint); font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 900; }
.demo-media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.demo-play-toggle { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; }
.demo-play-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--ink); border-radius: 50%; background: rgba(248,247,240,.94); box-shadow: 3px 3px 0 var(--signal); transition: transform .2s ease, background-color .2s ease; }
.demo-play-icon::before { content: ""; width: 0; height: 0; margin-left: 4px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid currentColor; }
.demo-play-toggle:hover .demo-play-icon { transform: scale(1.08); background: #fff; }
.demo-play-toggle:focus-visible { outline: 3px solid var(--signal); outline-offset: -5px; }
.demo-play-toggle.is-playing { opacity: 0; }
.demo-play-toggle.is-playing:hover, .demo-play-toggle.is-playing:focus-visible { opacity: 1; }
.demo-play-toggle.is-playing .demo-play-icon::before { width: 12px; height: 17px; margin-left: 0; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.demo-copy { display: flex; flex-direction: column; min-width: 0; min-height: 170px; padding: 28px 24px 24px; background-image: linear-gradient(rgba(11,11,11,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,11,11,.045) 1px, transparent 1px); background-size: 28px 28px; }
.demo-copy h3 { display: flex; align-items: center; gap: 14px; margin: 0; font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: .96; letter-spacing: -.06em; text-transform: uppercase; }
.demo-title-icon { display: inline-grid; flex: 0 0 auto; width: 1.15em; height: 1.15em; place-items: center; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); background: #ffd400; font-family: ui-monospace, monospace; font-size: .72em; font-weight: 900; letter-spacing: 0; line-height: 1; box-shadow: 3px 3px 0 var(--ink); }
.theta-symbol { font-family: "STIX Two Text", "Times New Roman", Georgia, serif; font-size: 1.12em; font-style: italic; font-weight: 600; letter-spacing: 0; text-transform: none; }
.demo-copy > p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.62; }
.demo-copy h3 + p { margin-top: 22px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8em; }
#citation { color: white; background: var(--signal); }
#citation .section-number, #citation .section-heading > p { color: white; }
#citation .citation-block { border-color: white; }
.citation-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 8vw, 120px); align-items: start; }
.citation-block { position: relative; overflow: hidden; border: 1px solid var(--ink); border-radius: 0; background: var(--deep); box-shadow: 10px 10px 0 var(--accent); }
.citation-block pre { overflow-x: auto; margin: 0; padding: 50px 34px 30px; color: #f8f7f0; font-size: .88rem; line-height: 1.7; }
.copy-button { position: absolute; top: 0; right: 0; padding: 9px 12px; border: 0; border-left: 1px solid white; border-bottom: 1px solid white; border-radius: 0; color: var(--deep); background: var(--mint); cursor: pointer; font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.copy-button:hover { color: white; background: var(--signal); }
.copy-status { min-height: 22px; margin: 0 34px 10px; color: var(--mint); font-family: ui-monospace, monospace; font-size: .75rem; }
.site-footer { padding: 28px 0; border-top: 1px solid white; color: #a9ada9; background: var(--deep); }
.footer-inner { display: flex; align-items: end; justify-content: space-between; }
.footer-inner div { display: flex; align-items: baseline; gap: 15px; }
.footer-inner strong { color: var(--mint); font-family: ui-monospace, monospace; font-size: 1rem; text-transform: uppercase; }
.footer-inner span, .footer-inner p { margin: 0; font-family: ui-monospace, monospace; font-size: .75rem; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .shell { width: min(calc(100% - 34px), var(--shell)); }
  .nav-toggle { display: grid; gap: 6px; }
  .nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--ink); }
  .site-nav { position: absolute; top: 63px; left: 0; right: 0; display: none; align-items: stretch; gap: 0; padding: 10px 17px 20px; border-bottom: 1px solid var(--ink); background: rgba(238,237,229,.98); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 13px 5px; }
  .site-nav a::after { display: none; }
  .hero { min-height: auto; padding-top: 96px; }
  .hero-inner { grid-template-columns: 1fr; }
  .eyebrow, .hero h1, .hero-subtitle, .authors, .affiliations, .hero-actions, .hero-visual { grid-column: 1; }
  .eyebrow { grid-row: auto; }
  .hero h1 { position: static; grid-row: auto; margin-top: 30px; font-size: clamp(6rem, 24vw, 10rem); writing-mode: initial; transform: none; }
  .hero-subtitle { margin-top: 32px; font-size: clamp(1.25rem, 3.3vw, 1.85rem); }
  .hero-actions { gap: 12px 28px; }
  .hero-subtitle-line { white-space: normal; }
  .hero-visual { margin-top: 28px; }
  .sequence-frame { min-height: 130px; }
  .section { padding: 88px 0; }
  .split-layout, .citation-layout { grid-template-columns: 1fr; gap: 34px; }
  .sticky-heading { position: static; }
  .text-columns { grid-template-columns: 1fr; }
  .method-placeholder { padding: 30px; }
  .method-flow { height: auto; grid-template-columns: 1fr; }
  .method-flow i { transform: rotate(90deg); text-align: center; }
  .policy-stack .observation-arrow { transform: none; }
  .text-columns { border: 1px solid var(--ink); }
  .text-columns p { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .text-columns p:last-child { border-bottom: 0; }
  #experiments .experiment-list { grid-template-columns: 1fr; }
  #experiments .experiment-list article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  #experiments .experiment-list article:last-child { border-bottom: 0; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card-wide { grid-row: auto; border-right: 0; border-bottom: 1px solid white; }
  .result-card:nth-child(2) { border-bottom: 1px solid white; }
  .citation-layout .section-heading { margin-bottom: 8px; }
}

@media (max-width: 600px) {
  .eyebrow span:first-child { display: none; }
  .hero { padding-bottom: 54px; }
  .hero h1 { font-size: 7.2rem; }
  .hero-subtitle { font-size: clamp(1.2rem, 4.6vw, 1.6rem); line-height: 1.5; letter-spacing: 0; word-spacing: .055em; }
  .hero-subtitle-line { white-space: normal; }
  .authors { gap: 8px 17px; }
  .affiliations { gap: 6px 18px; font-size: .9rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .action-button { margin: 0; }
  .sequence-strip { grid-template-columns: repeat(5, minmax(112px, 1fr)); overflow-x: auto; }
  .sequence-frame { min-height: 118px; }
  .reconstruction-track span, .reconstruction-track strong { display: none; }
  .hero-visual > p { display: block; }
  .hero-visual > p span { display: block; margin-bottom: 3px; }
  .section-heading { grid-template-columns: 48px 1fr; }
  h2 { font-size: clamp(2.6rem, 15vw, 4rem); }
  .media-placeholder { min-height: 280px; }
  .overview-figure img { width: 760px; max-width: none; }
  .overview-crop img { width: 100%; }
  .method-figure-crop-left img { width: 169.07%; }
  .method-figure-crop-training img, .method-figure-crop-repaint img { width: 244.79%; }
  .interactive-demo-frame { height: 680px; }
  .demo-evidence-grid { grid-template-columns: repeat(2, minmax(760px, 1fr)); overflow-x: auto; padding: 0 10px 12px 0; }
  .demo-evidence-figure { min-width: 760px; }
  .experiment-summary { min-height: 0; padding: 24px; }
  .experiment-image-wrap img { width: 760px; max-width: none; }
  .experiment-real-world-split { gap: 12px; padding: 12px; }
  .experiment-result-grid { overflow-x: auto; }
  .experiment-result-panel { min-width: 760px; }
  .experiment-notes-grid { grid-template-columns: 1fr; }
  .demo-toolbar { align-items: flex-end; gap: 16px; }
  .demo-toolbar > p span { display: none; }
  .demo-toolbar > p strong { min-height: 44px; }
  .demo-status { min-width: 68px; }
  .demo-rail { grid-auto-columns: minmax(0, 87vw); gap: 15px; padding-right: 8px; }
  .demo-card { display: block; box-shadow: 7px 7px 0 var(--card-accent); }
  .demo-media { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--ink); }
  .demo-copy { min-height: 170px; }
  .citation-block pre { padding: 58px 20px 24px; font-size: .78rem; }
  .footer-inner { display: grid; gap: 16px; }
  .footer-inner div { display: grid; gap: 2px; }
}
