:root {
  --ink: #17202e;
  --ink-soft: #404b5e;
  --muted: #6e7a8d;
  --line: #e1e7f0;
  --bg: #fbfcff;
  --surface: #ffffff;
  --soft: #f5f7fc;
  --violet: #6059db;
  --violet-deep: #4942bf;
  --violet-pale: #eeecff;
  --teal: #16b19c;
  --teal-deep: #078c7d;
  --night: #13192b;
  --radius: 22px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.6; }
::selection { color: #292360; background: #dedbff; }
a { color: inherit; }
button { font: inherit; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.container { width: min(var(--max), calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: -100px; left: 16px; padding: 10px 14px; background: #fff; color: var(--ink); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #a4a0ff; outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.87); border-bottom: 1px solid rgba(198,205,221,.65); backdrop-filter: blur(20px) saturate(155%); }
.nav-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: normal; font-size: 18px; font-weight: 850; letter-spacing: -.045em; text-decoration: none; }
.brand-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #4541aa, #7974ea 78%, #40bbab); box-shadow: 0 7px 18px #5750d52b; font-size: 16px; letter-spacing: 0; }
.brand-dot { color: var(--violet); }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: 28px; margin-left: auto; }
.primary-nav a { text-decoration: none; color: #697286; font-size: 13px; font-weight: 730; transition: color .2s; }
.primary-nav a:hover { color: var(--violet); }
.nav-paper { display: inline-flex; align-items: center; gap: 13px; padding: 9px 15px; color: #282f42; text-decoration: none; border: 1px solid #d9deea; border-radius: 999px; font-size: 13px; font-weight: 750; background: white; box-shadow: 0 4px 16px #1b26400a; white-space: nowrap; }
.nav-paper:hover { border-color: var(--violet); color: var(--violet); }

/* Hero */
.hero { position: relative; overflow: hidden; background: #fafbff; border-bottom: 1px solid var(--line); }
.hero-wash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 600px at 12% 4%, #ebeaff 0%, transparent 76%), radial-gradient(640px 480px at 97% 19%, #e8faf6 0%, transparent 73%); }
.hero-wash::after { content: ''; position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(#d9ddef60 1px, transparent 1px), linear-gradient(90deg, #d9ddef60 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.hero-layout { position: relative; padding-block: 90px 72px; display: block; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid #dcdff0; border-radius: 20px; font-size: 10px; font-weight: 870; color: #777e94; letter-spacing: .11em; background: #fff9; }
.kicker-point { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #16b19c19; }
.kicker-divider { color: #bcc1cb; }
.eyebrow { margin: 35px 0 9px; color: var(--violet); font-size: 12px; font-weight: 860; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(58px, 6.5vw, 91px); font-weight: 845; line-height: .99; letter-spacing: -.075em; white-space: nowrap; }
.hero-muted { color: #a4acbb; }
.hero-period { color: #7770ef; }
.hero-subtitle { margin: 27px 0 0; max-width: 640px; font-size: clamp(21px, 2.3vw, 29px); line-height: 1.3; color: #242d42; font-weight: 600; letter-spacing: -.03em; }
.hero-description { margin: 22px 0 0; max-width: 650px; font-size: 15px; line-height: 1.86; color: #6e798b; }
.hero-description strong { color: #364253; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; }
.button { min-height: 47px; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; border: 1px solid #d8ddea; text-decoration: none; font-size: 13px; font-weight: 780; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px #242d4015; }
.button-primary { color: #fff; border-color: #6059db; background: linear-gradient(135deg, #5d55d9, #7670e8); box-shadow: 0 10px 22px #6059db24; }
.button-secondary { color: #394359; background: #fff; }
.text-link { padding: 11px 4px; font-size: 13px; color: var(--violet-deep); text-decoration: none; font-weight: 760; }
.text-link:hover { text-decoration: underline; }
.hero-footnotes { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 39px; color: #6e788b; font-size: 11px; font-weight: 680; }
.tick { color: var(--teal-deep); margin-right: 3px; }

/* Central idea: light pastel edition. Keep the diagram as real HTML/CSS,
   not a raster image, so all text stays sharp and accessible at any zoom. */
.hero-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 16px;
  color: #182c56;
  border: 1px solid #cfddfa;
  border-radius: 30px;
  background:
    radial-gradient(280px 270px at 99% 5%, rgba(206,216,255,.43), transparent 85%),
    radial-gradient(280px 230px at 2% 99%, rgba(182,243,228,.30), transparent 84%),
    linear-gradient(145deg, #ffffff 3%, #f9fbff 60%, #f8fffe 100%);
  box-shadow: 0 24px 58px rgba(44,69,120,.115), 0 3px 12px rgba(61,85,139,.055);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(115,144,207,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115,144,207,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000 15%, transparent 95%);
}
.hero-visual-top,
.hero-visual-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 18px;
  color: #7184b5;
  font-size: 10px;
  font-weight: 860;
  letter-spacing: .16em;
}
.hero-visual-top span:last-child { color: #7697db; }
.hero-stage {
  position: relative;
  overflow: hidden;
  padding: 25px 22px 23px;
  border: 1px solid #d9e3fc;
  border-radius: 19px;
  box-shadow: 0 4px 18px rgba(74,109,185,.035);
}
.stage-one {
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(235,241,255,.90));
}
.stage-two {
  background: linear-gradient(132deg, rgba(250,255,254,.96), rgba(225,248,243,.80));
  border-color: #b9ebe2;
}
.stage-count {
  position: absolute;
  top: 3px;
  right: 14px;
  color: rgba(105,131,225,.12);
  font-weight: 900;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -.075em;
  user-select: none;
}
.stage-two .stage-count { color: rgba(36,188,160,.125); }
.stage-head { position: relative; display: flex; align-items: center; gap: 10px; }
.stage-symbol { color: #7985f8; font-size: 25px; line-height: 1; }
.stage-two .stage-symbol { color: #12ae9c; }
.stage-kind {
  color: #7083b3;
  font-size: 10px;
  font-weight: 860;
  letter-spacing: .105em;
}
.stage-two .stage-kind { color: #628b9e; }
.hero-stage h2 {
  position: relative;
  margin: 17px 0 7px;
  color: #182950;
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: -.045em;
  font-weight: 830;
}
.hero-stage p {
  position: relative;
  margin: 0;
  max-width: 330px;
  color: #5d6f94;
  font-size: 12px;
  line-height: 1.74;
}
.stage-pill-list { position: relative; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 19px; }
.stage-pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #d0ddfa;
  border-radius: 999px;
  background: rgba(240,245,255,.70);
  color: #49619a;
  font-size: 10px;
  font-weight: 750;
}
.stage-two .stage-pill-list span {
  color: #2c8188;
  border-color: #beece5;
  background: rgba(226,250,245,.62);
}
.hero-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 11px 0 10px;
  color: #798bb5;
  font-size: 11px;
  font-weight: 780;
}
.hero-connector span:last-child { color: #6880c5; font-size: 23px; line-height: 1.05; }
.hero-visual-bottom {
  justify-content: center;
  gap: 9px;
  padding: 19px 5px 5px;
  color: #119e8c;
  font-size: 9px;
  letter-spacing: .12em;
  text-align: center;
}
.status-light {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14bba6;
  box-shadow: 0 0 0 4px rgba(20,187,166,.16);
}


.hero-copy-wide { max-width: 1160px; }
.hero-resource-buttons { margin-top: 28px; }
.hero-resource-buttons .button { min-width: 150px; }
.hero-visual-wide { margin-top: 34px; width: 100%; }
.hero-visual-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.hero-stage { min-height: 270px; }
.hero-stage p { max-width: 100%; }
.hero-connector-inline {
  padding: 0;
  min-height: 100%;
  gap: 12px;
}
.hero-connector-inline span:first-child {
  max-width: 10ch;
  text-align: center;
  line-height: 1.45;
}
.hero-connector-inline span:last-child {
  font-size: 30px;
}
.paper-authors { margin-top: 18px; color: #4d5568; font-size: 16px; font-weight: 630; letter-spacing: -.01em; }
.paper-authors span { color: #b4bac8; margin-inline: 8px; }
.paper-affiliations { margin-top: 8px; color: #7a8397; font-size: 14px; }
.hero-footnotes { margin-top: 22px; }

/* Shared sections */
.section { padding: 105px 0; }
.section-header { display: grid; grid-template-columns: 1.26fr .74fr; gap: 70px; align-items: end; margin-bottom: 47px; }
.section-label { display: block; margin-bottom: 14px; font-size: 11px; font-weight: 900; letter-spacing: .18em; color: var(--violet); }
.section-label span { color: #b7bfd0; margin: 0 5px; }
.section-header h2, .citation-layout h2 { margin: 0; font-size: clamp(39px,5vw,63px); line-height: 1.09; font-weight: 790; letter-spacing: -.065em; }
.section-deck { margin: 0 0 4px; font-size: 15px; line-height: 1.82; color: var(--muted); }

/* Thesis */
.intro-section { padding-block: 102px; background: #fff; }
.intro-layout { display: grid; grid-template-columns: 155px 1fr; gap: 75px; }
.section-index { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; font-weight: 880; color: #a9b0be; padding-top: 10px; }
.section-index span { font-size: 19px; }
.statement { max-width: 910px; margin: 0; font-size: clamp(33px,4.1vw,53px); font-weight: 740; line-height: 1.24; letter-spacing: -.056em; }
.statement em { font-style: normal; color: var(--violet); }
.large-paragraph { max-width: 820px; margin: 24px 0 0; color: #6e788b; font-size: 17px; line-height: 1.88; }
.large-paragraph strong { color: #3f465a; }

/* Motivation */
.motivation-section { background: radial-gradient(840px 280px at 5% 4%, #ecebff77, transparent 79%), #f7f8fd; border-block: 1px solid #e6e9f2; }
.motivation-comparison { display: grid; grid-template-columns: 1fr 38px 1fr; align-items: center; gap: 14px; margin-bottom: 24px; }
.compare-card { min-height: 230px; padding: 26px; border: 1px solid #dde3ef; border-radius: var(--radius); background: #fff; }
.compare-star { border-color: #7cdbcb80; background: linear-gradient(125deg, #fff, #f3fbf9); }
.compare-caption { display: block; margin-bottom: 19px; color: #929bae; font-size: 10px; letter-spacing: .12em; font-weight: 900; }
.compare-star .compare-caption { color: #058e7a; }
.mini-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mini-flow span { padding: 8px 12px; border: 1px solid #e0e5f0; border-radius: 10px; color: #4e596d; background: #f8faff; font-size: 12px; font-weight: 780; }
.mini-flow b { color: #a5adbc; }
.mini-flow-arrow { width: fit-content; padding: 3px 0 0 17px; color: #a3acc0; }
.flow-end { display: inline-block; margin-top: 2px; padding: 9px 13px; color: #5550c1; background: #eeedff; border: 1px solid #dcd9ff; border-radius: 10px; font-size: 12px; font-weight: 850; }
.compare-star .flow-end { color: #047f71; background: #def7f1; border-color: #bcf1e6; }
.compare-card p { margin: 17px 0 0; font-size: 12px; line-height: 1.74; color: #8590a0; }
.compare-arrow { font-size: 25px; color: #aab2c3; text-align: center; }
.figure-panel { margin: 0; overflow: hidden; border: 1px solid #dfe4ee; border-radius: 22px; background: #fff; box-shadow: 0 20px 58px #22294209; }
.figure-panel-head { padding: 22px 26px 17px; border-bottom: 1px solid #ebedf5; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.figure-kicker { color: var(--violet); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.figure-panel-head h3 { margin: 5px 0 0; font-size: 20px; font-weight: 775; line-height: 1.25; letter-spacing: -.035em; }
.figure-sidenote { white-space: nowrap; font-size: 11px; color: #a1a9b7; font-weight: 710; }
.diagnostic-panel > img { width: 100%; padding: 28px 38px; object-fit: contain; }
.figure-panel figcaption { padding: 16px 26px 19px; color: #7f8998; font-size: 12px; line-height: 1.73; border-top: 1px solid #eef0f5; }
.figure-panel figcaption strong { color: #524dd0; }

/* Method */
.method-section { background: #fff; }
.method-image { display: grid; place-items: center; padding: 38px 32px 26px; background: linear-gradient(#fff,#fdfdff); }
.method-image img { width: 100%; object-fit: contain; }
.step-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-top: 20px; }
.step-card { min-height: 286px; display: flex; flex-direction: column; padding: 26px; border-radius: 21px; border: 1px solid #e1e5ef; background: #fff; }
.step-emphasis { background: linear-gradient(140deg, #f8f7ff 0%, #f3fbf9 100%); border-color: #bcb8f466; }
.step-head { display: flex; justify-content: space-between; align-items: center; color: #8b95a5; font-size: 10px; font-weight: 870; letter-spacing: .14em; }
.step-icon { font-size: 18px; color: #bec4d1; letter-spacing: -.08em; }
.step-card h3 { margin: 24px 0 10px; font-size: 23px; letter-spacing: -.04em; line-height: 1.15; }
.step-card p { margin: 0; font-size: 13px; color: #7b8494; line-height: 1.78; }
.step-detail { margin-top: auto; padding-top: 24px; color: #5b56c4; font-size: 11px; font-weight: 750; }
.method-specs { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px 25px; margin-top: 24px; padding: 25px 29px; border: 1px solid #e0e6f0; border-radius: 21px; background: #f7f9fe; }
.method-specs > div { display: flex; flex-direction: column; gap: 6px; }
.spec-number { font-size: 31px; font-weight: 830; letter-spacing: -.055em; line-height: 1.2; }
.method-specs > div > span:last-child { color: #818b9b; font-size: 12px; }
.method-specs > p { grid-column: 1 / -1; margin: 3px 0 0; padding-top: 12px; color: #a0a6b3; font-size: 11px; border-top: 1px solid #e3e8f1; }

/* Benchmarks */
.benchmark-section { background: #f8faff; border-block: 1px solid #e8ebf2; }
.bench-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.bench-card { display: flex; flex-direction: column; padding: 23px; min-width: 0; background: white; border: 1px solid #e0e5ee; border-radius: 22px; box-shadow: 0 14px 30px #22294208; }
.bench-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bench-index { font-size: 10px; color: var(--violet); font-weight: 880; letter-spacing: .1em; }
.bench-count { font-size: 10px; color: #8c96a8; padding: 5px 9px; border-radius: 20px; background: #f2f4f9; font-weight: 800; }
.bench-card h3 { margin: 20px 0 9px; font-size: 23px; letter-spacing: -.04em; }
.bench-card > p { margin: 0 0 22px; font-size: 13px; color: #7b8596; line-height: 1.75; }
.bench-card figure { margin: auto 0 0; }
.bench-card figure img { width: 100%; height: 192px; border: 1px solid #eceef3; border-radius: 14px; object-fit: contain; background: #f9faff; }
.bench-card figcaption { margin-top: 11px; font-size: 11px; color: #8993a3; }
.geometry-note { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 23px 26px; border: 1px solid #dad9fa; border-radius: 19px; background: linear-gradient(130deg,#f2f1ff,#fff); }
.geometry-note-icon { width: 43px; height: 43px; flex: 0 0 auto; border: 1px solid #dad7fb; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #655cdc; background: white; }
.geometry-note strong { font-size: 13px; }
.geometry-note p { margin: 5px 0 0; font-size: 12px; color: #7d8698; line-height: 1.7; }
.geometry-note a { margin-left: auto; font-size: 12px; color: var(--violet); text-decoration: none; font-weight: 760; white-space: nowrap; }
.geometry-note a:hover { text-decoration: underline; }

/* Video explorer */
.videos-section { background: radial-gradient(850px 500px at 80% 8%, #f3f0ff 0%, transparent 80%), #ffffff; }
.accent-period { color: var(--violet); }
.video-workspace { overflow: hidden; border: 1px solid #dce2ed; border-radius: 25px; background: #fff; box-shadow: 0 30px 75px #151d3611; }
.workspace-title { display: flex; align-items: center; gap: 9px; height: 52px; padding: 0 25px; color: #a3abba; background: #fafbfe; border-bottom: 1px solid #e7eaf1; font-size: 10px; letter-spacing: .13em; }
.workspace-title strong { color: #727e90; }
.workspace-indicator { height: 8px; width: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #16b19c20; }
.workspace-aside { margin-left: auto; }
.gallery-main-tabs { display: flex; flex-wrap: wrap; padding: 18px 24px 0; gap: 5px; border-bottom: 1px solid #e6eaf2; }
.gallery-tab { display: inline-flex; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 12px 12px 0 0; background: transparent; color: #8d95a4; cursor: pointer; padding: 14px 17px; margin-bottom: -1px; font-size: 13px; font-weight: 850; }
.gallery-tab:hover { color: #3c455c; }
.gallery-tab.is-active { border-color: #e1e5ee; border-bottom-color: white; color: var(--violet-deep); background: white; }
.tab-count { color: #a4adbb; font-size: 10px; font-weight: 680; }
.gallery-body { padding: 27px 26px 24px; }
.gallery-controls { display: flex; flex-direction: column; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid #ecedf4; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.filter-label { min-width: 80px; color: #9fa6b2; font-size: 10px; letter-spacing: .12em; font-weight: 900; }
.filter-row button { min-height: 35px; padding: 8px 13px; border: 1px solid #dfe5ee; border-radius: 10px; color: #747f91; background: white; cursor: pointer; font-size: 12px; font-weight: 740; }
.filter-row button:hover { border-color: #aaa7f1; color: var(--violet); }
.filter-row button.is-active { color: #554ecd; background: #f1efff; border-color: #d7d3ff; }
.gallery-context { margin: 24px 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; }
.gallery-context h3 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.gallery-context p { margin: 4px 0 0; font-size: 12px; color: #8b95a3; }
.context-badge { color: #6058d5; padding: 5px 9px; border-radius: 20px; background: #f3f1ff; font-size: 10px; font-weight: 850; white-space: nowrap; }
.video-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.video-grid.three-videos { grid-template-columns: repeat(3,minmax(0,1fr)); }
.demo-tile { overflow: hidden; min-width: 0; border: 1px solid #e0e5ed; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px #22294207; }
.demo-tile-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 15px; border-bottom: 1px solid #e9ebf2; }
.demo-title { font-size: 13px; font-weight: 840; }
.demo-tag { color: #857eef; background: #f3f2ff; border-radius: 15px; padding: 4px 9px; font-size: 10px; font-weight: 810; }
.demo-stage { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; background: radial-gradient(270px 200px at 30% 20%, #313655, transparent 85%), #151b2b; }
.demo-stage::after { content:''; position:absolute; inset:0; pointer-events:none; background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px); background-size:35px 35px; }
.demo-stage video { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0c1019; opacity: 0; transition: opacity .25s; }
.demo-stage.has-video video { opacity: 1; }
.demo-placeholder { position: relative; z-index: 1; padding: 20px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; }
.demo-placeholder-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #7f83ac77; border-radius: 16px; margin-bottom: 15px; font-size: 16px; color: #dbdeff; background: #ffffff0c; }
.demo-placeholder strong { font-size: 12px; letter-spacing: -.01em; }

.demo-stage.has-video .demo-placeholder { display: none; }



.gallery-legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 19px 2px 0; color: #98a1af; font-size: 11px; }
.gallery-legend span:first-child { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; }
.gallery-legend code { color: #6660d6; font-size: 11px; }

/* Results */
.results-section { background: #f8f9fd; border-block: 1px solid #e8eaf2; }
.result-highlights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 26px; }
.result-highlights article { padding: 24px; border: 1px solid #e1e5ee; border-radius: 20px; background: #fff; }
.highlight-heading { color: #8892a1; font-size: 10px; font-weight: 880; letter-spacing: .09em; }
.highlight-compare { display: flex; flex-wrap: wrap; gap: 9px; align-items: baseline; margin-top: 15px; line-height: 1.1; }
.highlight-compare span { font-size: 23px; font-weight: 730; color: #a1aab8; text-decoration: line-through; letter-spacing: -.04em; }
.highlight-compare b { color: #bec5d1; font-size: 19px; font-weight: 520; }
.highlight-compare strong { font-size: clamp(29px,3vw,38px); color: #272f44; letter-spacing: -.07em; }
.result-highlights p { min-height: 25px; margin: 14px 0 0; color: #8c96a5; font-size: 11px; }
.highlight-track { margin-top: 18px; height: 5px; border-radius: 10px; overflow: hidden; background: linear-gradient(90deg,#6b62e5,#19b39d); position: relative; }
.highlight-track span { display: block; height: 100%; background: #cfd3ed; border-right: 2px solid #fff; }
.data-panel { overflow: hidden; border: 1px solid #dfe4ee; border-radius: 23px; background: #fff; box-shadow: 0 15px 45px #20284008; }
.data-panel-top { display: flex; justify-content: space-between; align-items: end; padding: 24px 26px 18px; gap: 20px; }
.data-panel-top h3 { margin: 5px 0 0; font-size: 23px; line-height: 1.2; letter-spacing: -.04em; }
.data-panel-top p { margin: 0; color: #96a0af; font-size: 11px; }
.results-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 24px 18px; border-bottom: 1px solid #e8ebf2; }
.results-tab { padding: 9px 15px; border-radius: 10px; border: 1px solid #e5e9f1; background: #fff; color: #8b94a2; font-size: 12px; font-weight: 790; cursor: pointer; }
.results-tab:hover { border-color: #c1bdf5; color: #5c54d1; }
.results-tab.is-active { border-color: #d9d6fc; background: #f1f0ff; color: #534bcc; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 650px; font-size: 13px; font-variant-numeric: tabular-nums; }
.data-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.data-table thead th { padding: 15px 17px; border-bottom: 1px solid #e7ebf2; background: #fafbfd; color: #8d97a7; font-size: 10px; font-weight: 870; letter-spacing: .04em; white-space: nowrap; }
.data-table td, .data-table tbody th { padding: 18px 17px; border-bottom: 1px solid #e9edf3; text-align: center; white-space: nowrap; }
.data-table tbody th { font-size: 12px; font-weight: 790; }
.data-table th:first-child { text-align: left; }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: none; }
.data-table .emphasis-row { background: #fafaff; }
.data-table .group-divider { border-top: 2px solid #e7eaf4; }
.data-table .best-value { color: #0b947f; font-weight: 850; }
.table-footnote { margin: 0; padding: 17px 25px 22px; border-top: 1px solid #ebedf3; color: #8a95a5; font-size: 12px; line-height: 1.74; }

/* Interpretation + citation */
.takeaways-section { background: #fff; }
.takeaway-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.takeaway-grid article { min-height: 230px; padding: 28px; border-radius: 22px; border: 1px solid #dfe4ed; background: linear-gradient(145deg, #fff, #fdfdff); }
.takeaway-grid article:nth-child(2) { border-color: #d4d1fc; background: #f8f7ff; }
.takeaway-grid article > span { color: #aaaed0; font-size: 12px; font-weight: 850; letter-spacing: .13em; }
.takeaway-grid h3 { margin: 32px 0 10px; font-size: 21px; letter-spacing: -.04em; line-height: 1.2; }
.takeaway-grid p { margin: 0; color: #788393; font-size: 13px; line-height: 1.78; }
.limitation-note { display: flex; align-items: baseline; gap: 20px; margin-top: 24px; padding: 22px 26px; background: #f7f8fc; border: 1px solid #e6e9f0; border-radius: 18px; }
.limitation-note strong { white-space: nowrap; color: #5c6475; font-size: 12px; }
.limitation-note p { margin: 0; color: #8791a0; font-size: 12px; line-height: 1.8; }
.citation-section { background: linear-gradient(150deg, #f5f4ff, #fbfcff); border-top: 1px solid #e4e3f4; }
.citation-layout { display: grid; grid-template-columns: .62fr 1.38fr; gap: 75px; }
.citation-layout p { max-width: 350px; margin: 25px 0 0; color: #8690a0; font-size: 13px; line-height: 1.85; }
.citation-box { overflow: hidden; border: 1px solid #dbe0eb; border-radius: 21px; background: #fff; box-shadow: 0 16px 45px #20284009; }
.citation-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 16px 11px 20px; border-bottom: 1px solid #e8ebf0; background: #fbfbfe; color: #545d72; font-size: 11px; font-weight: 800; }
.citation-neutral { color: #a8b0be; font-weight: 600; }
.citation-toolbar button { padding: 7px 11px; border: 1px solid #dee2ed; border-radius: 8px; color: #625bce; background: white; font-size: 11px; font-weight: 820; cursor: pointer; }
.citation-toolbar button:hover { background: #f4f3ff; }
.citation-box pre { margin: 0; padding: 23px; overflow-x: auto; font: 12px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; color: #525c70; }
.site-footer { border-top: 1px solid #e7eaf0; background: #fff; }
.footer-layout { min-height: 90px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-layout > span { color: #a3aab7; font-size: 11px; }
.footer-layout > a:last-child { font-size: 11px; text-decoration: none; color: #778393; }

@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: minmax(0,1fr) minmax(340px,.8fr); gap: 35px; }
  .hero h1 { font-size: clamp(52px, 6vw, 75px); }
  .bench-card { padding: 19px; }
  .bench-card figure img { height: 156px; }
}
@media (max-width: 920px) {
  .primary-nav { gap: 13px; }
  .hero-layout { grid-template-columns: 1fr; padding-block: 72px 45px; }
  .hero-copy { max-width: 780px; }
  .hero h1 { font-size: clamp(58px, 8vw, 85px); }
  .hero-visual { max-width: 640px; width: 100%; }
  .hero-metrics { padding-bottom: 42px; }
  .section-header { grid-template-columns: 1fr; gap: 18px; }
  .section-deck { max-width: 680px; }
  .bench-grid { grid-template-columns: repeat(2,1fr); }
  .bench-card figure img { height: 195px; }
  .video-grid.three-videos { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .geometry-note { align-items: start; }
  .geometry-note a { display: none; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 68px; }
  .container { width: min(var(--max),calc(100% - 30px)); }
  .nav-inner { min-height: 66px; }
  .primary-nav { display: none; }
  .hero-layout { padding-top: 65px; }
  .hero h1 { white-space: normal; font-size: clamp(48px, 10.8vw, 76px); }
  .hero-kicker { font-size: 9px; }
  .hero-subtitle { font-size: 22px; }
  .hero-footnotes { gap: 10px; }
  .hero-metrics { grid-template-columns: 1fr; gap: 10px; }
  .hero-metric { flex-direction: row; align-items: end; }
  .section { padding: 75px 0; }
  .section-header h2, .citation-layout h2 { font-size: 41px; }
  .intro-layout { grid-template-columns: 1fr; gap: 23px; }
  .section-index { max-width: 120px; }
  .intro-section { padding-block: 70px; }
  .large-paragraph { font-size: 15px; }
  .motivation-comparison { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
  .figure-panel-head { align-items: start; flex-direction: column; gap: 8px; }
  .diagnostic-panel > img { padding: 15px 8px; }
  .step-grid, .bench-grid, .result-highlights, .takeaway-grid { grid-template-columns: 1fr; }
  .method-image { padding: 20px 9px; }
  .step-card { min-height: 245px; }
  .bench-card figure img { height: auto; max-height: 260px; }
  .method-specs { grid-template-columns: 1fr 1fr; }
  .video-grid, .video-grid.three-videos { grid-template-columns: 1fr; }
  .video-workspace { border-radius: 19px; }
  .gallery-main-tabs { padding: 10px 12px 0; }
  .gallery-tab { padding: 12px 10px; font-size: 11px; }
  .tab-count { display: none; }
  .gallery-body { padding: 20px 13px; }
  .workspace-title { padding-inline: 15px; }
  .workspace-aside { display: none; }
  .filter-label { width: 100%; }
  .demo-stage { aspect-ratio: 16/9; }
  .results-tabs { padding: 0 12px 12px; }
  .data-panel-top { align-items: start; flex-direction: column; }
  .limitation-note { flex-direction: column; gap: 8px; }
  .citation-layout { grid-template-columns: 1fr; gap: 27px; }
  .footer-layout > span { display: none; }
}
@media (max-width: 410px) {
  .hero h1 { font-size: 46px; }
  .hero-kicker { flex-wrap: wrap; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .text-link { grid-column: 1/-1; }
  .button { padding: 10px; font-size: 11px; }
  .method-specs { grid-template-columns: 1fr; }
  .method-specs > p { grid-column: 1; }
  .gallery-tab { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition: none !important; }
}


/* Public NeurIPS 2026 poster metadata */
.paper-authors { margin: 20px 0 0; font-size: 14px; line-height: 1.75; font-weight: 760; color: #353d50; letter-spacing: -.015em; }
.paper-authors span { padding: 0 5px; color: #a9afbf; font-weight: 400; }
.paper-affiliations { margin: 4px 0 0; font-size: 11px; line-height: 1.7; color: #8992a3; }
@media (max-width: 760px) { .paper-authors { font-size: 12px; } .paper-affiliations { font-size: 10px; } }


/* High-resolution paper figures and benchmark source images */
.figure-fullres-link { display: block; position: relative; text-decoration: none; color: inherit; }
.figure-fullres-link picture, .figure-fullres-link img { display: block; width: 100%; height: auto; }
.diagnostic-panel > .figure-fullres-link { padding: 20px 26px; background: #fff; }
.method-image .figure-fullres-link { width: 100%; }
 .figure-head-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.figure-head-actions a { color: #5750c8; font-size: 11px; text-decoration: none; white-space: nowrap; padding: 6px 10px; border: 1px solid #dbd9f9; border-radius: 8px; background: #f8f7ff; font-weight: 850; }
.figure-head-actions a:hover { color: #423bb3; background: #f0efff; }
.bench-hires-link { display: block; border-radius: 14px; overflow: hidden; }
.bench-hires-link img { transition: opacity .15s; }
.bench-hires-link:hover img { opacity: .82; }
/* Identify every clip by benchmark, exact task, difficulty, and scene ID. */
.demo-tile-head { align-items: start; min-height: 91px; }
.demo-tile-heading { display: flex; flex-direction: column; align-items: start; gap: 3px; min-width: 0; }
.demo-env { font-size: 10px; color: #766ce2; font-weight: 900; letter-spacing: .11em; }
.demo-title { color: #21283b; font-size: 15px; line-height: 1.25; font-weight: 850; }
.demo-condition { color: #7d8696; font-size: 12px; font-weight: 730; line-height: 1.4; }
.demo-tag { white-space: nowrap; }
.demo-video-overlay { position: absolute; z-index: 4; top: 12px; left: 12px; max-width: calc(100% - 24px); display: flex; flex-direction: column; gap: 3px; padding: 9px 12px; border: 1px solid #ffffff44; border-radius: 10px; color: white; background: rgba(14,19,35,.79); box-shadow: 0 6px 20px #00000029; pointer-events: none; backdrop-filter: blur(7px); }
.demo-overlay-environment { font-size: 9px; color: #bbb7ff; font-weight: 900; letter-spacing: .11em; }
.demo-overlay-name { font-size: 11px; line-height: 1.4; font-weight: 770; text-shadow: 0 1px 3px #0006; }
@media (max-width: 760px) {
  .diagnostic-panel > .figure-fullres-link { padding: 12px 9px 24px; }
  .demo-tile-head { min-height: 88px; }
}


/* Light visual on compact phones */
@media (max-width: 480px) {
  .hero-visual { padding: 13px; border-radius: 24px; }
  .hero-stage { padding: 23px 19px 21px; border-radius: 17px; }
  .hero-stage h2 { font-size: 21px; }
  .stage-count { font-size: 68px; }
  .hero-visual-top { font-size: 9px; }
  .hero-visual-bottom { font-size: 8px; letter-spacing: .075em; }
}


/* Hero layout updates based on project-page revision */
@media (max-width: 960px) {
  .hero-visual-rail { grid-template-columns: 1fr; gap: 12px; }
  .hero-connector-inline { min-height: auto; padding: 8px 0 4px; }
  .hero-connector-inline span:first-child { max-width: none; }
  .hero-connector-inline span:last-child { transform: rotate(90deg); font-size: 24px; }
}

@media (max-width: 640px) {
  .hero-resource-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-resource-buttons .button { min-width: 0; width: 100%; }
  .hero-resource-buttons .button-github { grid-column: 1 / -1; }
  .hero h1 { font-size: clamp(38px, 11.6vw, 58px); }
  .hero-subtitle { font-size: 18px; }
  .paper-authors { font-size: 14px; }
  .paper-affiliations { font-size: 12px; }
  .hero-visual-wide { margin-top: 24px; }
  .hero-stage { min-height: auto; }
}

/* Center the paper-title block, like a research project-page landing section.
   Keep the two-stage STAR diagram's content left-aligned for readability. */
.hero-layout {
  display: block;
}
.hero-copy-wide {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  text-align: center;
}
.hero-copy-wide .hero-subtitle,
.hero-copy-wide .hero-description {
  margin-left: auto;
  margin-right: auto;
}
.hero-copy-wide .hero-subtitle {
  max-width: 830px;
}
.hero-copy-wide .hero-description {
  max-width: 800px;
}
.hero-copy-wide .hero-actions,
.hero-copy-wide .hero-footnotes {
  justify-content: center;
}
.hero-copy-wide .hero-visual-wide {
  width: 100%;
  max-width: none;
  text-align: left;
}
@media (max-width: 640px) {
  .hero-copy-wide .hero-resource-buttons {
    justify-content: initial;
  }
  .hero-copy-wide .hero-subtitle { max-width: 100%; }
}


/* 2026 NeurIPS update: remove the duplicate Observation Examples atlas in HTML.
   The original benchmark source assets stay in /assets and are now presented
   at legible size in three informative, full-width benchmark cards. */
.bench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.bench-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-items: start;
  gap: 0 28px;
  padding: 27px;
}
.bench-card .bench-top { grid-column: 1; grid-row: 1; }
.bench-card h3 { grid-column: 1; grid-row: 2; margin: 17px 0 10px; font-size: clamp(20px, 2.4vw, 25px); }
.bench-card > p { grid-column: 1; grid-row: 3; margin: 0; font-size: 14px; line-height: 1.8; }
.bench-card figure { grid-column: 2; grid-row: 1 / 4; margin: 0; min-width: 0; width: 100%; }
.bench-image-scroll { min-width: 0; width: 100%; }
.bench-image-scroll .bench-hires-link { display: block; cursor: zoom-in; border: 1px solid #e8ecf4; border-radius: 13px; overflow: hidden; background: #fff; }
.bench-image-scroll .bench-hires-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.bench-card figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 5px 18px; font-size: 12px; color: #6b768b; margin-top: 10px; }
.figure-zoom-hint { color: #5750c8; font-weight: 750; white-space: nowrap; }
.mobile-swipe-hint { display: none; color: #7888b4; font-weight: 740; }
/* Preserve original Figure 1/2 vectors; expand their visible area by reducing unnecessary padding. */
.diagnostic-panel > .figure-fullres-link { padding: 13px 16px; cursor: zoom-in; }
.method-image { padding: 19px 15px 13px; }
.method-image .figure-fullres-link { cursor: zoom-in; }
.figure-fullres-link img { max-height: none; object-fit: contain; }

@media (max-width: 920px) {
  .bench-card { grid-template-columns: minmax(180px, 0.4fr) minmax(0,1fr); gap: 0 18px; padding: 20px; }
  .bench-card > p { font-size: 13px; }
}
@media (max-width: 700px) {
  .bench-card { display: flex; flex-direction: column; align-items: stretch; padding: 20px 16px 18px; }
  .bench-card h3 { margin: 13px 0 7px; }
  .bench-card > p { margin-bottom: 16px; }
  .bench-card figure { width: 100%; }
  .bench-image-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #a7a8ec #f5f6fb;
    scrollbar-width: thin;
    border-radius: 13px;
  }
  .bench-image-scroll .bench-hires-link { width: max-content; }
  .bench-image-scroll .bench-hires-link img {
    width: 960px;
    max-width: none;
    height: auto;
    max-height: none;
  }
  .bench-card:last-child .bench-image-scroll .bench-hires-link img { width: 780px; }
  .bench-card figcaption { font-size: 11px; }
  .mobile-swipe-hint { display: inline; }
  .diagnostic-panel > .figure-fullres-link { padding: 8px 5px; }
  .method-image { padding: 9px 5px; }
}


/* Small-screen scientific figure viewer: show vectors at readable scale with horizontal panning. */
.mobile-figure-note { display: none; }
@media (max-width: 700px) {
  .mobile-figure-note { display: block; margin-top: 7px; color: #625bce; font-weight: 720; }
  .diagnostic-panel > .diagnostic-fullres {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #a7a8ec #f5f6fb;
    scrollbar-width: thin;
  }
  .diagnostic-panel > .diagnostic-fullres picture { display: block; width: 950px; max-width: none; }
  .diagnostic-panel > .diagnostic-fullres img { display: block; width: 100%; max-width: 100%; height: auto; }
  .method-image {
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #a7a8ec #f5f6fb;
    scrollbar-width: thin;
  }
  .method-image .figure-fullres-link,
  .method-image .figure-fullres-link picture { display: block; width: 980px; max-width: none; }
  .method-image .figure-fullres-link img { display: block; width: 100%; height: auto; max-width: 100%; }
}
@media (max-width: 700px) {
  /* Override the original centered grid alignment when switching to a pannable block. */
  .method-image { place-items: normal; justify-items: normal; align-items: normal; }
}
