:root {
  color-scheme: light;
  --paper: #fbf9fb;
  --ink: #302b35;
  --body: #534e59;
  --muted: #7a717f;
  --violet: #79618e;
  --neos-blue: #3437d6;
  --rose: #a96577;
  --line: #e8e0e8;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #e9dfed; color: #3f3048; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--violet); outline-offset: 7px; border-radius: 3px; }
sup { font-size: .64em; line-height: 0; position: relative; vertical-align: super; }
.page-width { width: min(1100px, calc(100% - 96px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 5;
  padding: 12px 18px;
  background: white;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { display: block; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.7px; color: var(--neos-blue); }
.accio-logo { display: block; width: 126px; height: auto; object-fit: contain; mix-blend-mode: multiply; }

.hero {
  position: relative;
  isolation: isolate;
  padding: 57px 0 39px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -30px 60px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 23% 28%, rgb(167 144 197 / 8%), transparent 55%),
    radial-gradient(ellipse at 78% 40%, rgb(219 167 179 / 8%), transparent 52%);
}
.eyebrow { margin: 0; color: var(--muted); text-transform: uppercase; font-size: 10px; font-weight: 500; letter-spacing: 2.3px; }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; }
.project-name { display: block; width: fit-content; margin-inline: auto; color: var(--neos-blue); font-size: clamp(66px, 7vw, 88px); line-height: 1.03; letter-spacing: -4px; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .project-name { background: linear-gradient(115deg, #8d35ed 0%, #6630e6 33%, #223bd5 70%, #5430e1 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}
.paper-title { display: block; margin-top: 15px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2; letter-spacing: -1.25px; text-wrap: balance; }
.search-word { color: var(--violet); }
.vision-word { color: var(--rose); }

.authors { margin-top: 32px; font-size: 15px; line-height: 1.9; }
.author-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.author-row > span { white-space: nowrap; }
.authors sup { margin-left: 3px; color: var(--violet); }
.affiliations { margin-top: 13px; color: #726979; font-size: 13px; line-height: 1.75; }
.affiliations p { margin: 0; }
.affiliation-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 21px; }
.affiliation-row > span { white-space: nowrap; }
.affiliations sup { color: var(--rose); }
.contributions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 17px; margin: 11px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.contributions span { white-space: nowrap; }
.contributions sup { margin-right: 2px; }

.resources { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  min-width: 110px;
  padding: 10px 18px;
  border: 1px solid #e1d9e5;
  border-radius: 7px;
  background: #f7f3f9;
  color: #6e5b7e;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.resource-button:disabled { opacity: 1; cursor: default; -webkit-text-fill-color: currentColor; }
.resource-logo { display: block; width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.resource-paper { background: #fff3f3; border-color: #ecd4d7; color: #aa2132; }
.resource-github { background: #f3f4f5; border-color: #dde0e4; color: #24292f; }
.resource-huggingface { background: #fff9e8; border-color: #ede0b8; color: #796027; }
.resource-huggingface .resource-logo { width: 22px; height: 22px; }
.resource-button:not(:disabled):hover { border-color: var(--violet); background: #efe7f4; }
.read-abstract { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; text-decoration: none; font-size: 11px; color: var(--muted); }
.read-abstract svg { width: 13px; height: 13px; stroke: var(--rose); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.read-abstract:hover { color: var(--ink); }
.read-abstract:hover svg { transform: translateY(3px); }

.abstract-section { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 38px; border-top: 1px solid var(--line); padding: 55px 0 69px; }
.section-index { font-size: 9px; letter-spacing: 1.7px; }
.section-index span { margin-inline: 8px; color: #c7b6c7; }
h2 { margin: 13px 0 0; font-family: var(--serif); font-weight: 400; font-size: 35px; line-height: 1.2; letter-spacing: -.75px; }
.section-rule { display: block; width: 36px; height: 2px; margin-top: 24px; background: linear-gradient(90deg, #bca8cb 50%, #d7a8b5 50%); }
.abstract-copy { max-width: 800px; color: var(--body); font-size: 16px; line-height: 1.88; }
.abstract-copy p { margin: 0 0 19px; }
.abstract-copy p:last-child { margin-bottom: 0; }
.abstract-copy strong { font-weight: 600; color: #56435f; }
.abstract-copy em { font-style: italic; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0 30px; border-top: 1px solid var(--line); color: #887d8b; font-size: 11px; }
.footer-wordmark { font-family: var(--serif); font-size: 22px; color: var(--neos-blue); }
.footer-wordmark > span { color: var(--rose); }
.footer-year { color: #8b7e89; }

@media (max-width: 800px) {
  .page-width { width: calc(100% - 56px); }
  .hero { padding-top: 46px; }
  .hero::before { inset-inline: -20px; }
  .abstract-section { grid-template-columns: 145px minmax(0, 1fr); gap: 25px; padding-top: 43px; }
  .abstract-copy { font-size: 15px; }
  h2 { font-size: 31px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 24px; }
  .page-width { width: calc(100% - 40px); }
  .site-header { min-height: 72px; gap: 12px; }
  .brand img { width: 27px; height: 27px; }
  .brand span { font-size: 24px; }
  .accio-logo { width: 106px; }
  .hero { padding: 40px 0 32px; }
  .hero::before { inset-inline: -15px; }
  h1 { margin-top: 0; }
  .project-name { font-size: 70px; letter-spacing: -3px; }
  .paper-title { font-size: clamp(28px, 7.7vw, 38px); letter-spacing: -.85px; line-height: 1.22; margin-top: 17px; }
  .authors { margin-top: 26px; font-size: 13px; line-height: 2; }
  .author-row { gap: 0 14px; }
  .affiliations { font-size: 11px; margin-top: 14px; line-height: 1.9; }
  .affiliation-row { gap: 0 12px; }
  .contributions { font-size: 9px; gap: 4px 11px; margin-top: 12px; }
  .resources { gap: 8px; margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 310px; margin-inline: auto; }
  .resource-button { min-height: 43px; min-width: 0; }
  .read-abstract { margin-top: 25px; }
  .abstract-section { display: block; padding: 32px 0 42px; }
  .section-heading { margin-bottom: 24px; }
  h2 { margin-top: 10px; font-size: 33px; }
  .section-rule { margin-top: 15px; width: 30px; }
  .abstract-copy { font-size: 15px; line-height: 1.85; }
  .abstract-copy p { margin-bottom: 19px; }
  .site-footer { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 20px 0 24px; font-size: 10px; }
  .site-footer > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .read-abstract svg { transition: none; }
}

.section-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 27px; font-size: 11px; color: var(--muted); }
.section-nav a { text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 3px; }
.section-nav a:hover { color: var(--violet); border-color: #d1bedb; }
.research-section { border-top: 1px solid var(--line); padding-block: 53px 62px; }
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 28px; }
.section-intro h2 { font-size: 34px; margin-top: 12px; }
.section-description { max-width: 405px; font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 3px; }
.figure-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.tab-button { border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 10px 15px; font-size: 12px; color: var(--muted); cursor: pointer; }
.tab-button[aria-pressed="true"] { color: #624d75; border-color: #e1d5e9; background: #f0eaf5; }
.tab-button:hover { background: #f4eef6; }
button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
[hidden] { display: none !important; }
.paper-figure { margin: 0; }
.figure-open { position: relative; display: block; width: 100%; padding: 17px; border: 1px solid #e9e3eb; border-radius: 9px; background: #fff; cursor: zoom-in; }
.figure-open img { width: 100%; height: auto; display: block; }
.zoom-hint { position: absolute; bottom: 9px; right: 11px; border: 1px solid var(--line); border-radius: 4px; background: rgb(255 255 255 / 94%); padding: 5px 8px; color: var(--muted); font-size: 10px; }
.paper-figure figcaption { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 930px; }
.paper-figure figcaption strong { color: var(--body); font-weight: 500; }
.static-note { margin: 13px 0 0; font-size: 11px; line-height: 1.75; color: var(--muted); }
.replay-shell { border: 1px solid #e1d8e6; border-radius: 12px; background: #fff; overflow: hidden; }
.replay-top { padding: 19px 23px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; align-items: center; background: #fcfafc; }
.replay-title { margin: 0; font-size: 16px; font-weight: 500; color: #584361; }
.replay-meta { color: var(--muted); font-size: 11px; margin-top: 7px; }
.text-button { background: none; border: 0; font-size: 11px; padding: 8px 0 8px 12px; color: var(--violet); cursor: pointer; white-space: nowrap; }
.text-button:hover { color: var(--rose); }
.replay-body { display: grid; grid-template-columns: 285px minmax(0, 1fr); min-height: 590px; }
.replay-input { padding: 23px; border-right: 1px solid var(--line); background: #fcfafc; }
.small-label { margin: 0 0 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; font-size: 9px; font-weight: 500; }
.input-image { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #f0ecef; overflow: hidden; cursor: zoom-in; }
.input-image img { display: block; width: 100%; height: 176px; object-fit: contain; }
.input-question { margin: 18px 0 0; min-height: 142px; color: #514655; font-size: 13px; line-height: 1.85; }
.input-caption { margin: 9px 0 0; font-size: 10px; color: var(--muted); }
.replay-stage { padding: 24px 27px; min-width: 0; }
.turn-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; margin-bottom: 21px; }
.turn-label { font-size: 10px; letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; }
.tool-badge { display: inline-flex; align-items: center; border: 1px solid #e5dcec; border-radius: 5px; padding: 6px 9px; color: #715182; background: #f5eff8; font: 11px var(--sans); }
.tool-badge.visual { color: #a56173; background: #fcf0f3; border-color: #eed7df; }
.tool-badge.answer { color: #56766b; background: #eff7f3; border-color: #dce9e1; }
.tool-badge.warning { color: #977144; background: #fbf5eb; border-color: #e9dbc6; }
.stage-empty { display: grid; place-content: center; text-align: center; min-height: 440px; }
.stage-orbits { width: 86px; height: 55px; position: relative; margin: 0 auto 26px; }
.stage-orbits::before, .stage-orbits::after { content: ""; position: absolute; top: 0; width: 51px; height: 51px; border: 1px solid #c9b4d9; border-radius: 50%; }
.stage-orbits::before { left: 0; }
.stage-orbits::after { right: 0; border-color: #d9b1c0; }
.stage-empty h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 12px; color: #655070; }
.stage-empty p { font-size: 13px; line-height: 1.8; max-width: 330px; margin: 0 auto; color: var(--muted); }
.stage-empty .start-hint { margin-top: 24px; font-size: 11px; color: var(--rose); }
.action-summary { font-size: 15px; line-height: 1.85; min-height: 55px; color: #493c51; margin: 0; }
.streaming::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; background: #b18bad; vertical-align: -.1em; animation: cursor-blink 1s steps(2, start) infinite; }
@keyframes cursor-blink { to { opacity: 0; } }
.tool-request { margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fcfafc; }
.tool-request summary { cursor: pointer; padding: 10px 12px; color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-request pre { margin: 0; padding: 0 12px 12px; max-height: 160px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #745e7d; font: 11px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.observation-block { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
.observation-block .small-label { margin-bottom: 8px; }
.observation-text { margin: 0; color: var(--body); font-size: 13px; line-height: 1.85; min-height: 48px; }
.observation-block.is-warning { border-top-color: #e3c79e; }
.observation-block.is-warning .small-label { color: #9c7543; }
.evidence-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.evidence-image { padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #f9f6fa; cursor: zoom-in; text-align: left; color: var(--muted); }
.evidence-image img { width: 100%; height: 160px; object-fit: contain; display: block; background: #f3eff3; }
.evidence-image span { display: block; padding: 7px 9px; font-size: 10px; line-height: 1.6; }
.evidence-images:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.evidence-images:has(> :only-child) img { height: 230px; }
.answer-text { color: #755684; font-size: 23px; line-height: 1.6; font-family: var(--serif); margin: 12px 0 0; }
.replay-controls { padding: 18px 23px; border-top: 1px solid var(--line); background: #fcfafc; }
.control-row { display: flex; align-items: center; gap: 8px; }
.control-button { border: 1px solid #e1d7e7; border-radius: 6px; background: white; color: #6e5a7a; font-size: 11px; min-height: 36px; padding: 8px 12px; cursor: pointer; }
.control-button.primary { background: #79618e; border-color: #79618e; color: white; min-width: 88px; }
.control-button:hover:not(:disabled) { filter: brightness(.96); }
.control-button:disabled { opacity: .4; cursor: default; }
.speed-control { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); margin-left: auto; }
.speed-control select { border: 1px solid var(--line); border-radius: 5px; min-height: 34px; background: white; color: #755f7f; font-size: 11px; padding: 4px 6px; }
.replay-status { font-size: 10px; color: var(--muted); margin-left: 8px; min-width: 76px; text-align: right; }
.progress-row { display: flex; gap: 13px; align-items: center; margin-top: 16px; }
.progress-row label { font-size: 10px; color: var(--muted); white-space: nowrap; min-width: 69px; }
.progress-row input { accent-color: #a181ad; width: 100%; height: 4px; cursor: pointer; }
.turn-rail { display: flex; gap: 6px; padding-top: 14px; overflow-x: auto; padding-bottom: 3px; }
.turn-chip { white-space: nowrap; flex: 1 0 auto; padding: 7px 8px; font-size: 10px; border: 1px solid #e9e3ec; border-radius: 4px; color: #8e8097; background: #fff; cursor: pointer; }
.turn-chip.is-past { color: #81618e; background: #f4eef7; border-color: #e8d9ee; }
.turn-chip[aria-current="step"] { color: #8f586b; background: #f9eaf0; border-color: #dcb6c5; }
.replay-insight { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; padding: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.replay-insight p { margin: 0; }
.replay-insight > span { color: var(--rose); font-family: var(--serif); font-size: 18px; }
.lightbox { width: min(1200px, calc(100vw - 40px)); max-width: none; max-height: calc(100vh - 40px); padding: 0; border: 1px solid #d6c9df; border-radius: 10px; background: white; color: var(--ink); }
.lightbox::backdrop { background: rgb(38 25 47 / 65%); backdrop-filter: blur(3px); }
.lightbox-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fbf9fb; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.lightbox-header p { margin: 0; font-size: 12px; line-height: 1.6; }
.lightbox-actions { display: flex; flex-shrink: 0; gap: 8px; }
.lightbox-scroll { overflow: auto; max-height: calc(100vh - 115px); padding: 15px; text-align: center; }
.lightbox-scroll img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; vertical-align: middle; }
.lightbox-scroll.is-zoomed { text-align: left; }
.lightbox-scroll.is-zoomed img { width: max(160%, 1000px); max-width: none; max-height: none; }

@media (max-width: 900px) {
  .replay-body { grid-template-columns: 240px minmax(0, 1fr); }
  .replay-input { padding: 18px; }
  .replay-stage { padding: 20px; }
  .section-intro { display: block; }
  .section-description { margin-top: 15px; max-width: 650px; }
  .evidence-image img { height: 140px; }
  .replay-status { display: none; }
}
@media (max-width: 700px) {
  .research-section { padding-block: 35px 40px; }
  .section-intro { margin-bottom: 22px; }
  .section-intro h2 { font-size: 30px; }
  .section-description { font-size: 12px; }
  .figure-tabs { gap: 4px; }
  .tab-button { padding: 9px 10px; font-size: 11px; }
  .figure-open { padding: 6px; }
  .zoom-hint { font-size: 9px; padding: 4px 6px; }
  .replay-top { padding: 16px; align-items: flex-start; }
  .replay-title { font-size: 14px; line-height: 1.5; }
  .replay-meta { font-size: 10px; }
  .text-button { white-space: normal; text-align: right; min-width: 70px; font-size: 10px; }
  .replay-body { display: block; }
  .replay-input { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 15px; padding: 17px; align-items: start; }
  .replay-input > .small-label { grid-column: 1 / -1; }
  .input-image { grid-column: 1; grid-row: 2; }
  .input-image img { height: 110px; }
  .input-question { grid-column: 2; grid-row: 2 / 4; min-height: 0; margin: 0; font-size: 11px; line-height: 1.8; }
  .input-caption { grid-column: 1; grid-row: 3; font-size: 9px; }
  .replay-stage { min-height: 395px; padding: 19px 17px; }
  .stage-empty { min-height: 350px; }
  .stage-empty h3 { font-size: 24px; }
  .stage-empty p { font-size: 12px; }
  .action-summary { font-size: 13px; }
  .observation-text { font-size: 12px; }
  .evidence-images { gap: 8px; }
  .evidence-image img { height: 135px; }
  .evidence-images:has(> :only-child) img { height: 210px; }
  .evidence-image span { font-size: 9px; }
  .replay-controls { padding: 16px 13px; }
  .control-row { flex-wrap: wrap; gap: 6px; }
  .control-button { font-size: 10px; padding-inline: 9px; }
  .control-button.primary { min-width: 69px; }
  .speed-control { font-size: 0; gap: 0; }
  .speed-control select { font-size: 10px; }
  .replay-insight { grid-template-columns: 1fr; gap: 5px; }
  .lightbox { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .lightbox-header { padding: 10px; }
  .lightbox-header p { font-size: 11px; }
  .lightbox-scroll { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .streaming::after { animation: none; }
}
