/* Blue publication theme. All visual assets are served locally. */
:root {
  --ink: #243047;
  --muted: #66748b;
  --blue: #2459d5;
  --teal: #2459d5;
  --line: #e3e9f2;
  --soft: #f4f7fc;
}
html { scroll-padding-top: 88px; }
body {
  background: #fff;
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: #fffffff5; backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8edf6; box-shadow: 0 2px 9px #16346e08;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  max-width: 1200px; margin: auto; min-height: 60px; padding: 0 34px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; color: #203a73; font-size: 19px; font-weight: 750; letter-spacing: -.6px; white-space: nowrap; }
.nav-brand:hover { text-decoration: none; }
.brand-symbol { display: grid; place-items: center; width: 28px; height: 28px; background: #edf3ff; color: var(--blue); border: 1px solid #d8e4ff; border-radius: 8px; font-size: 19px; line-height: 1; font-weight: 700; }
nav { border: 0; padding: 0; gap: 2px; }
nav a { color: #59657b; font-size: 12px; padding: 8px 9px; border-radius: 5px; font-weight: 500; white-space: nowrap; }
nav a:hover { background: #edf3ff; color: var(--blue); }
.paper-header {
  padding: 44px 28px 32px;
  background: linear-gradient(118deg, #215bdf 0%, #224fc6 54%, #233faa 100%);
  color: white; position: relative;
}
h1 {
  max-width: 1070px; font-size: clamp(29px, 3.4vw, 46px);
  line-height: 1.23; letter-spacing: -1.1px; font-weight: 650;
  color: white; margin-bottom: 17px;
}
h1 span { color: white; font-weight: 780; }
.authors { color: #dce8ff; font-size: 17px; margin: 16px 0 22px; }
.resource-buttons { gap: 9px; }
.resource-buttons :is(button, a),
.resource-buttons :is(button, a):first-child {
  background: #ffffff13; border: 1px solid #ffffff59; border-radius: 30px;
  color: white; padding: 8px 17px; box-shadow: 0 2px 5px #10296012;
  font-size: 13px; gap: 9px;
}
.resource-buttons :is(button, a) > span { font-weight: 500; }
.resource-buttons small,
.resource-buttons :is(button, a):first-child small { color: #d3e0fc; font-size: 9px; letter-spacing: .1px; }
.resource-buttons svg { width: 18px; height: 18px; }
.tagline { color: #dce7ff; font-size: 16px; max-width: 780px; margin: 21px auto 0; line-height: 1.65; }
.section { padding-top: 48px; padding-bottom: 42px; }
.section-kicker { color: var(--blue); letter-spacing: 1.7px; font-size: 10px; margin-bottom: 10px; }
h2 { color: #243047; font-size: clamp(26px, 2.5vw, 33px); font-weight: 650; letter-spacing: -.6px; }
h2::after { content: ''; display: block; width: 52px; height: 4px; border-radius: 3px; background: linear-gradient(90deg, #2157d5, #639cff); margin: 15px auto 17px; }
.section-intro { color: #707d91; margin-bottom: 29px; }
.group, .state-panel {
  border: 1px solid #e2e8f3; border-radius: 12px; background: white;
  box-shadow: 0 3px 14px #17396d08;
}
.group h3, .state-panel h3 { color: #2b426e; font-weight: 650; }
.group-controls { background: #f4f7fe; border-color: #e1e9fa; border-radius: 18px; padding: 2px; }
.group-controls button { color: #506b97; border-radius: 13px; }
.group-controls button:hover { color: #2459d5; background: #e5edff; }
.clip figcaption span:first-child { color: #345794; }
.clip figcaption span:last-child { color: #75829a; }
summary { color: #71829a; }
summary::before { color: #8098c1; }
.tinted {
  background: #f5f8fd; border-color: #e9eef8;
  padding-left: 22px; padding-right: 22px; border-radius: 16px;
}
.filters { border-color: #e0e7f5; background: #eff3fb; }
.filters button[aria-pressed=true] { background: #2459d5; box-shadow: 0 2px 5px #2459d526; }
.method-steps { background: #f3f7ff; border-color: #dee7fa; border-top: 3px solid #3b70e3; }
.method-steps strong { color: #315ca6; }
.method-steps > span { color: #6993d6; }
footer a { color: var(--blue); }
@media (max-width: 1050px) {
  .nav-inner { gap: 14px; padding: 0 24px; }
  nav a { font-size: 11px; padding: 8px 7px; }
  .nav-brand { font-size: 17px; }
}
@media (max-width: 850px) {
  .nav-inner { display: block; padding: 9px 20px 0; }
  .nav-brand { font-size: 16px; gap: 8px; }
  .brand-symbol { width: 23px; height: 23px; font-size: 16px; border-radius: 6px; }
  nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 5px 0 7px; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { padding: 5px 8px; flex-shrink: 0; }
  .paper-header { padding-top: 36px; }
  .tinted { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 8px 15px 0; }
  .paper-header { padding: 30px 16px 27px; }
  h1 { font-size: 28px; line-height: 1.28; letter-spacing: -.65px; }
  .authors { font-size: 14px; margin: 17px 0; }
  .resource-buttons { gap: 7px; max-width: 350px; margin: auto; }
  .resource-buttons :is(button, a),
  .resource-buttons :is(button, a):first-child { font-size: 11px; padding: 7px 12px; gap: 7px; }
  .resource-buttons svg { width: 15px; height: 15px; }
  .resource-buttons small,
  .resource-buttons :is(button, a):first-child small { font-size: 8px; }
  .tagline { font-size: 13px; margin-top: 18px; max-width: 330px; }
  .section { padding-top: 33px; padding-bottom: 30px; }
  .section-kicker { font-size: 9px; }
  h2 { font-size: 25px; }
  h2::after { width: 42px; height: 3px; margin: 12px auto 14px; }
  .section-intro { margin-bottom: 22px; }
  .tinted { padding-left: 7px; padding-right: 7px; }
}

.resource-buttons a { text-decoration: none; }
.resource-buttons a:hover { background: #315dc0; }

/* Method section: paper artwork paired with a readable explanation. */
.approach .method-lead { text-align: center; max-width: 880px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.method-summary { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px 12px 0 0; background: #f5f8ff; }
.method-summary span { font-size: 12px; color: #61718b; }
.method-summary strong { display: block; color: #304c7f; font-size: 12px; margin-bottom: 3px; }
.paper-figure { margin: 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.architecture-figure { border-radius: 0 0 12px 12px; border-top: 0; }
.paper-figure img { display: block; width: 100%; height: auto; }
.paper-figure > a { display: block; cursor: zoom-in; }
.paper-figure figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.paper-figure figcaption a { white-space: nowrap; }
.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.method-grid article { padding: 21px 18px; background: #f6f8fc; border: 1px solid #e5ebf5; border-radius: 10px; }
.step-index { color: #3865be; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.method-grid h3 { font-size: 16px; line-height: 1.45; color: #293f65; margin: 10px 0; }
.method-grid p { font-size: 13px; line-height: 1.75; color: #67758a; margin: 0; }
.inference-note { display: flex; gap: 24px; padding: 20px 24px; border-left: 3px solid #527ed8; background: #f8faff; margin-top: 22px; border-radius: 0 8px 8px 0; }
.inference-note strong { flex-shrink: 0; font-size: 13px; color: #304e85; }
.inference-note p { margin: 0; color: #65758c; font-size: 13px; }
.paper-overview { margin-top: 24px; }
.paper-overview > summary { font-size: 13px; padding: 14px 0; color: #526e9b; }
@media (max-width: 850px) {
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-summary { gap: 14px; padding: 16px; }
}
@media (max-width: 600px) {
  .approach .method-lead { font-size: 14px; }
  .method-summary { grid-template-columns: 1fr; gap: 12px; }
  .method-summary span { display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  .method-summary strong { text-align: left; flex-shrink: 0; }
  .paper-figure { padding: 10px; }
  .paper-figure figcaption { flex-direction: column; gap: 4px; margin-top: 10px; padding-top: 10px; }
  .method-grid { gap: 10px; margin-top: 16px; }
  .method-grid article { padding: 16px 12px; }
  .method-grid h3 { font-size: 14px; }
  .method-grid p { font-size: 12px; }
  .inference-note { display: block; padding: 15px; }
  .inference-note p { margin-top: 7px; font-size: 12px; }
}

/* Precomposed parameter matrices keep all cells on one playback timeline. */
.clips.one{grid-template-columns:minmax(0,1fr)}
.clips.one video{aspect-ratio:auto;height:auto;object-fit:contain;background:#fff}
.matrix-caption{font-size:14px;line-height:1.7;color:var(--muted,#687891);margin:10px 0 16px}
.settings pre{max-height:360px;overflow:auto}

/* Research presentation: strong hierarchy, quiet surfaces, full-frame media. */
:root { --ink:#202e46; --muted:#64748b; --blue:#265cd2; }
body { background:#fff; }
.paper-header {
  padding:34px 24px 32px;
  background:radial-gradient(ellipse at 12% 0%,#416fe0 0,transparent 55%),linear-gradient(115deg,#234db4,#18357c);
  overflow:hidden;
}
.hero-eyebrow { margin:0 0 9px; font-size:10px; font-weight:600; letter-spacing:2.3px; color:#c6d9ff; }
h1 { max-width:1000px; margin-bottom:0; }
h1 > span:first-child { display:block; font-size:clamp(42px,4.8vw,66px); line-height:1.08; letter-spacing:-2px; }
h1 .title-description { display:block; margin:12px auto 0; font-size:clamp(21px,2.3vw,31px); font-weight:500; line-height:1.25; letter-spacing:-.65px; }
.authors { margin:14px 0 17px; font-size:13px; color:#d8e4ff; }
.resource-buttons :is(button,a),.resource-buttons :is(button,a):first-child { border-radius:9px; background:#ffffff12; border-color:#ffffff45; padding:9px 16px; transition:background .18s,transform .18s; }
.resource-buttons a:hover { background:#ffffff25; transform:translateY(-2px); }
.resource-buttons small { font-size:9px; }
.tagline { margin:18px auto 0; font-size:14px; line-height:1.7; color:#e0e9ff; }
.hero-route { display:flex; justify-content:center; gap:23px; margin-top:14px; }
.hero-route a { font-size:11px; color:#e5edff; font-weight:500; }
.hero-route a span { margin-left:5px; }
.hero-route a:hover { color:#fff; }
nav a[aria-current="location"] { color:#2459d5; background:#edf3ff; }
.section { padding-top:54px; padding-bottom:48px; }
.section-kicker { font-size:10px; letter-spacing:1.9px; }
h2 { font-size:clamp(25px,2.5vw,34px); letter-spacing:-.8px; color:#23304a; }
h2::after { width:28px; height:3px; margin:17px auto; background:#477be0; }
.section-intro { max-width:790px; font-size:15px; color:#65738a; line-height:1.8; }
.viewing-note { display:flex; justify-content:center; align-items:center; gap:9px; font-size:11px; color:#78849a; margin:-11px 0 23px; }
.viewing-note span { color:#4675cc; font-size:17px; }
.group { padding:20px 20px 13px; border-color:#e2e8f1; border-radius:13px; box-shadow:0 4px 20px #1d3b6505; margin-bottom:24px; }
.group-head { margin-bottom:16px; }
.group h3 { font-size:16px; font-weight:650; letter-spacing:-.2px; color:#263d64; }
.group-controls { border-radius:8px; background:#f5f7fb; border-color:#e5ebf3; }
.group-controls button { border-radius:5px; padding:4px 10px; }
.clip video { border-radius:7px; }
.clip figcaption { padding-top:10px; }
.settings { margin-top:12px; border-top:1px solid #edf0f5; padding-top:9px; }
.settings summary { font-size:11px; color:#708099; }
.original-links { line-height:2; }
.tinted { background:#f6f8fc; border-color:#edf1f8; border-radius:18px; }
.method-grid article { background:#fff; border-top:3px solid #6f94e1; }
.method-grid h3 { color:#273b5b; }
.inference-note { background:#f5f8fe; }
.comparison-tabs button,.filters button { transition:background .18s,color .18s; }
.selection-note { max-width:830px; margin:32px auto; line-height:1.8; }
footer { padding:25px 0 32px; }
@media(min-width:1250px) { main { max-width:1260px; padding:0 40px; } .nav-inner { max-width:1260px; padding:0 40px; } footer { max-width:1180px; } }
@media(max-width:600px) {
  .paper-header { padding:28px 17px; }
  .hero-eyebrow { font-size:8px; letter-spacing:1.6px; }
  h1 > span:first-child { font-size:44px; letter-spacing:-1.5px; }
  h1 .title-description { margin-top:12px; font-size:23px; letter-spacing:-.5px; line-height:1.28; }
  .resource-buttons { max-width:100%; gap:7px; }
  .resource-buttons :is(button,a),.resource-buttons :is(button,a):first-child { padding:8px 11px; font-size:11px; }
  .tagline { font-size:12px; margin-top:17px; }
  .hero-route { gap:22px; margin-top:13px; }
  .section { padding-top:36px; padding-bottom:30px; }
  .section-intro { font-size:13px; line-height:1.75; }
  .viewing-note { font-size:10px; line-height:1.6; text-align:center; gap:6px; margin:-7px 0 18px; }
  .group { padding:12px 10px 9px; margin-bottom:17px; }
  .group h3 { font-size:13px; }
  .group-head { gap:6px; margin-bottom:11px; }
  .group-controls button { font-size:10px; padding:3px 7px; }
  .settings { margin-top:7px; padding-top:7px; }
  .tinted { padding-left:7px; padding-right:7px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none!important; }
}
.paper-header { padding-top:25px; padding-bottom:23px; }
h1 > span:first-child { font-size:clamp(42px,4.1vw,56px); }
h1 .title-description { margin-top:9px; font-size:clamp(21px,2.1vw,28px); }
.authors { margin:11px 0 13px; }
.tagline { margin-top:14px; }
.tagline br { display:none; }
.hero-route { margin-top:11px; }
.showcase { padding-top:34px; }
.showcase .section-intro { margin-bottom:24px; }
@media(max-width:600px) { .paper-header{padding:25px 17px;} .tagline{max-width:310px;} .showcase{padding-top:30px;} }
/* Minimal academic layout: method, three components, categorized demonstrations. */
body { font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; color:#162035; }
.paper-header { background:#fff; color:#15223c; padding:42px 24px 32px; }
h1 { color:#15223c; max-width:1040px; }
h1 > span:first-child { color:#2865d5; font-size:clamp(42px,4.3vw,60px); font-weight:750; }
h1 .title-description { color:#18243a; font-weight:600; font-size:clamp(24px,2.8vw,38px); line-height:1.18; margin-top:13px; }
.authors { color:#24334a; font-size:16px; margin:22px 0; }
.resource-buttons :is(button,a),.resource-buttons :is(button,a):first-child { background:#235bd2; border:1px solid #235bd2; color:#fff; font-weight:600; font-size:15px; padding:10px 23px; border-radius:24px; box-shadow:none; }
.resource-buttons a:hover { background:#1948ae; }
.site-nav { box-shadow:none; border-bottom:1px solid #edf0f5; }
nav a { color:#26344c; font-size:13px; }
.section { padding:40px 0; border-bottom:0; }
h2 { color:#15243b; font-size:clamp(28px,3vw,38px); font-weight:700; margin:0 0 28px; }
h2::after { display:none; }
.approach { padding-top:18px; }
.paper-figure,.architecture-figure { padding:0; border:0; border-radius:0; }
.method-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:28px; }
.method-grid article { padding:23px; background:#f5f8fe; border:0; border-radius:12px; text-align:center; }
.method-grid h3 { color:#2055b9; font-size:20px; line-height:1.3; margin:0 0 12px; }
.method-grid p { color:#26354e; font-size:16px; line-height:1.6; }
.tinted { margin:0; padding:40px 0; border:0; background:#fff; }
.group { border:0; box-shadow:none; padding:0; margin:0; border-radius:0; }
.group-head { margin:0 0 14px; }
.group h3 { color:#253852; font-size:20px; font-weight:600; }
.group-controls button { font-size:13px; color:#244575; }
.clip figcaption { font-size:16px; }
.clip figcaption span:first-child { color:#183866; font-weight:600; }
.clip figcaption span:last-child { color:#34496b; font-size:14px; }
.settings summary { font-size:14px; color:#234571; }
.settings { border:0; margin-top:9px; }
.matrix-caption { color:#233951; font-size:15px; margin:12px 0; }
.scene-selector { display:flex; gap:12px; align-items:center; justify-content:center; margin:0 auto 23px; }
.scene-selector button { width:39px; height:39px; background:#edf3ff; color:#235cc8; border:0; border-radius:50%; font-size:21px; }
.scene-selector button:hover { background:#dce8ff; }
.scene-selector button:disabled { opacity:.35; cursor:default; }
.scene-selector select { font:600 15px/1.4 inherit; font-family:inherit; font-size:15px; font-weight:600; color:#1d3a69; padding:9px 30px 9px 14px; border:1px solid #dbe4f3; border-radius:7px; background:#fff; max-width:65%; }
.scene-count { font-size:14px; color:#2b4162; font-variant-numeric:tabular-nums; white-space:nowrap; }
.selection-note,footer,summary { color:#344965; font-size:14px; }
.comparison-caption,#comparison-note,.comparison-figure p { font-size:15px; color:#334a6b; }
.comparison-card { box-shadow:none; }
.filters button { font-size:14px; color:#253e66; }
.state-panel { box-shadow:none; border:0; padding:0; margin:28px 0; }
.state-panel h3 { font-size:20px; }
.state-time,.state-panel details p { color:#2e4668; font-size:14px; }
@media(max-width:600px) {
 .paper-header { padding:28px 18px; }
 h1 .title-description { font-size:25px; line-height:1.25; }
 .authors { margin:18px 0; font-size:15px; }
 .resource-buttons :is(button,a),.resource-buttons :is(button,a):first-child { font-size:14px; padding:9px 17px; }
 .section,.tinted { padding:28px 0; }
 .approach { padding-top:8px; }
 .method-grid { grid-template-columns:1fr; gap:12px; margin-top:20px; }
 .method-grid article { padding:20px; }
 .method-grid h3 { font-size:20px; }
 .method-grid p { font-size:15px; }
 .group h3 { font-size:16px; }
 .clip figcaption { font-size:13px; }
 .clip figcaption span:last-child { font-size:12px; }
 .scene-selector { gap:7px; }
 .scene-selector select { max-width:62%; font-size:13px; padding-left:9px; }
 .scene-selector button { width:30px; height:30px; font-size:18px; }
 .scene-count { font-size:12px; }
 .group-controls button { font-size:11px; padding:4px 7px; }
}

/* Typography and spacing for the visual-first project page. */
body { font-family:Inter,Arial,sans-serif; color:#151b28; }
h1,h2,h3,.nav-brand { font-family:"Space Grotesk",Inter,Arial,sans-serif; }
h1 > span:first-child { font-weight:700; letter-spacing:-2px; }
h1 .title-description { font-weight:600; letter-spacing:-1px; }
h2 { font-size:clamp(30px,3.2vw,42px); letter-spacing:-1.2px; margin-bottom:30px; }
.section { padding:48px 0; }
.showcase { padding-top:28px; }
.group h3 { color:#202b40; font-size:21px; }
#appendix-groups .group { margin:0 0 42px; padding-bottom:30px; border-bottom:1px solid #e8ecf2; }
#appendix-groups .group:last-child { margin-bottom:0; border-bottom:0; }
.method-grid h3 { font-family:"Space Grotesk",Inter,Arial,sans-serif; }
.method-grid p { color:#25344a; font-size:16px; }
.clip figcaption span:last-child { color:#233a59; font-size:15px; }
.filters { margin-bottom:30px; }
.filters button { font-size:15px; color:#253750; }
.architecture-figure { margin:0 auto; }
.architecture-figure img { display:block; width:100%; height:auto; }
@media(max-width:600px) {
 .section { padding:32px 0; }
 h2 { font-size:31px; letter-spacing:-.8px; }
 .group h3 { font-size:17px; }
 .clip figcaption span:last-child { font-size:12px; }
 #appendix-groups .group { margin-bottom:28px; padding-bottom:22px; }
 .filters button { font-size:13px; }
}
