:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-color: #06b6d4;
  --text-primary: #172033;
  --text-secondary: #5c6b82;
  --background-secondary: #f6f8fc;
  --background-accent: #edf2f9;
  --page-background: #f7f9fc;
  --border-color: #dfe6f1;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-accent: linear-gradient(90deg, #2563eb, #06b6d4);
  --mono: "Space Mono", "SFMono-Regular", Consolas, monospace;
}

body {
  overflow-x: hidden;
  background: var(--page-background);
}

.publication-header,
.system-overview-section,
.abstract-section,
.reasoning-section,
.method-section,
.graph-section,
.results-section,
.video-presentation,
.qualitative-section,
.resources-section {
  background: var(--page-background) !important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: var(--primary-color);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.project-nav {
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 max(1.5rem, calc((100vw - 1152px) / 2));
  border-bottom: 1px solid rgba(226, 232, 240, .86);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
}

.project-mark {
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.project-mark span {
  color: var(--primary-color);
}

.project-nav-links {
  display: flex;
  gap: 1.8rem;
}

.project-nav-links a {
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 600;
}

.project-nav-links a:hover {
  color: var(--primary-color);
}

.publication-header {
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, .10), transparent 30%),
    radial-gradient(circle at 88% 76%, rgba(6, 182, 212, .09), transparent 26%),
    var(--page-background) !important;
}

.publication-header .hero-body {
  padding-top: 4.25rem;
  padding-bottom: 2.8rem;
}

.paper-kicker,
.section-eyebrow {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
}

.publication-title {
  max-width: 940px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2rem, 3.5vw, 3.25rem) !important;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.publication-affiliation {
  margin-bottom: 0 !important;
  color: var(--text-secondary);
  font-size: 1rem !important;
}

.publication-venue {
  margin-top: .08rem;
  color: var(--primary-color);
  font-family: var(--mono);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .09em;
}

.project-secondary-button {
  border: 1px solid var(--border-color) !important;
  background: #fff !important;
  color: var(--text-primary) !important;
}

.project-secondary-button:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.paper-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin-top: 1.35rem;
}

.paper-tags span {
  padding: .35rem .7rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .04em;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.75;
}

.reasoning-section {
  border-top: 1px solid #16243c;
  background:
    radial-gradient(circle at 14% 8%, rgba(14, 165, 233, .11), transparent 31%),
    radial-gradient(circle at 86% 92%, rgba(37, 99, 235, .10), transparent 28%),
    #050914 !important;
  color-scheme: dark;
  color: #dce8f7;
}

.reasoning-section .title,
.reasoning-section .section-lead {
  color: #f8fafc !important;
}

.reasoning-section .section-lead {
  color: #91a3bd !important;
}

.reasoning-section .section-eyebrow {
  color: #38bdf8;
}

.reasoning-section .hero-body {
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

.reasoning-section .reasoning-container {
  width: calc(100% - 2rem);
  max-width: 1320px !important;
}

.reasoning-demo {
  overflow: hidden;
  border: 1px solid #22324d;
  border-radius: 18px;
  background: #09101f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
  color: #e5edf8;
}

.demo-toolbar,
.scene-switcher,
.query-row,
.panel-label,
.step-head,
.energy-columns {
  font-family: var(--mono);
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid #26334a;
  color: #9fb0c9;
  font-size: .82rem;
  letter-spacing: .07em;
}

.demo-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: .45rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 14px #22c55e;
  animation: demo-pulse 1.8s infinite;
}

@keyframes demo-pulse {
  50% { opacity: .35; }
}

.demo-toolbar button {
  padding: .38rem .65rem;
  border: 1px solid #34425c;
  border-radius: 7px;
  background: #111a2c;
  color: #c6d2e4;
  cursor: pointer;
  font-family: inherit;
  font-size: .78rem;
}

.demo-toolbar button:hover {
  border-color: #38bdf8;
  color: #fff;
}

.scene-switcher,
.query-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .72rem 1.25rem;
  border-bottom: 1px solid #26334a;
  background: #0e1728;
}

.scene-switcher {
  background: #09111f;
}

.scene-switcher > span,
.query-row span {
  flex: 0 0 auto;
  color: #38bdf8;
  font-size: .77rem;
  letter-spacing: .08em;
}

.scene-tabs,
.query-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.scene-tabs button,
.query-tabs button {
  border: 1px solid #2b3a54;
  border-radius: 7px;
  background: #111b2e;
  color: #9fb0c9;
  cursor: pointer;
  font-family: var(--mono);
  transition: .2s ease;
}

.scene-tabs button {
  padding: .32rem .65rem;
  font-size: .71rem;
  text-transform: uppercase;
}

.query-tabs button {
  padding: .35rem .65rem;
  font-size: .71rem;
}

.scene-tabs button:hover,
.query-tabs button:hover,
.scene-tabs button[aria-pressed="true"],
.query-tabs button[aria-pressed="true"] {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, .14);
  color: #e0f2fe;
}

.scene-tabs button[aria-pressed="true"],
.query-tabs button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .12);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}

.scene-panel {
  padding: 1.25rem;
  border-right: 1px solid #26334a;
}

.panel-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: .7rem;
  color: #8394ae;
  font-size: .73rem;
  letter-spacing: .06em;
}

.panel-label span:last-child {
  color: #22d3ee;
}

.scene-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid #32405a;
  border-radius: 10px;
  background: #050914;
}

.scene-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
}

.scene-object-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}

.scene-object-strip span {
  padding: .22rem .48rem;
  border: 1px solid #263753;
  border-radius: 999px;
  color: #8092ad;
  font-family: var(--mono);
  font-size: .64rem;
}

.scan-line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  opacity: 0;
}

.roi {
  position: absolute;
  border: 2px solid #38bdf8;
  opacity: 0;
  transform: scale(.92);
  transition: opacity .45s ease, transform .45s ease;
}

.roi span {
  position: absolute;
  top: -21px;
  left: -2px;
  padding: 2px 5px;
  background: #0284c7;
  color: #fff;
  font-family: var(--mono);
  font-size: .65rem;
  white-space: nowrap;
}

.roi.label-below span {
  top: calc(100% + 3px);
}

.reasoning-panel {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.reasoning-step {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #26334a;
}

.step-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: .8rem;
  color: #8394ae;
  font-size: .72rem;
  letter-spacing: .05em;
}

.step-head b {
  color: #51627e;
  font-weight: 400;
}

.verb-chip {
  display: inline-block;
  padding: .35rem .65rem;
  border: 1px solid #2563eb;
  border-radius: 7px;
  background: rgba(37, 99, 235, .18);
  color: #93c5fd;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
}

.verb-property-flow {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: .6rem;
}

.flow-arrow {
  color: #38bdf8;
  font-family: var(--mono);
  font-size: 1.08rem;
}

.property-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.property-list span {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .3rem .5rem;
  border: 1px solid #334155;
  border-radius: 999px;
  background: #111b2e;
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: .68rem;
  opacity: 0;
  transform: translateY(5px);
}

.property-list b,
.property-list input {
  color: #22d3ee;
}

.property-list .property-name {
  width: calc(var(--name-ch, 8) * 1ch + .7rem);
  max-width: 16ch;
  margin-left: 0;
  color: #cbd5e1;
  font-weight: 400;
  text-align: left;
}

.property-list .property-score {
  width: 3.15em;
}

.property-remove {
  position: absolute;
  top: -.36rem;
  right: -.26rem;
  display: grid;
  width: 1rem;
  height: 1rem;
  padding: 0;
  place-items: center;
  border: 1px solid #475569;
  border-radius: 50%;
  background: #111b2e;
  color: #94a3b8;
  font: 700 .72rem/1 var(--mono);
  cursor: pointer;
}

.property-remove:hover,
.property-remove:focus-visible {
  border-color: #f87171;
  color: #f87171;
  outline: none;
}

.property-add {
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 1px dashed #38bdf8;
  border-radius: 50%;
  background: rgba(56, 189, 248, .08);
  color: #38bdf8;
  font: 600 1rem/1 var(--mono);
  cursor: pointer;
}

.property-add:hover,
.property-add:focus-visible {
  background: rgba(56, 189, 248, .18);
  outline: none;
}

.property-add:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.property-list input {
  width: 3.15em;
  margin-left: .28rem;
  padding: .08rem .18rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  outline: none;
}

.property-list input:hover {
  border-color: #475569;
  background: rgba(34, 211, 238, .08);
}

.property-list input:focus {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, .12);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, .14);
}

.object-property-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}

.object-property-card {
  padding: .62rem;
  border: 1px solid #263753;
  border-radius: 8px;
  background: rgba(17, 27, 46, .72);
  opacity: 0;
  transform: translateY(5px);
  transition: .4s ease;
}

.object-property-card > strong {
  display: block;
  margin-bottom: .35rem;
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: .78rem;
}

.object-property-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: .24rem;
}

.object-property-card span {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .24rem .4rem;
  border-radius: 999px;
  background: #111b2e;
  color: #9fb0c9;
  font-family: var(--mono);
  font-size: .66rem;
}

.object-property-chip input {
  padding: .05rem .12rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  outline: none;
}

.object-property-chip input:hover,
.object-property-chip input:focus {
  border-color: #475569;
  background: rgba(34, 211, 238, .08);
}

.object-property-name {
  width: calc(var(--name-ch, 8) * 1ch + .35rem);
  max-width: 15.5ch;
}

.object-property-score {
  width: 3.05em;
  color: #22d3ee !important;
  font-weight: 700 !important;
  text-align: center;
}

.object-property-remove {
  top: -.42rem;
  right: -.34rem;
  width: .9rem;
  height: .9rem;
  font-size: .64rem;
}

.object-property-add {
  width: 1.55rem;
  height: 1.55rem;
  font-size: .82rem;
}

.object-property-card b {
  margin-left: .18rem;
  color: #22d3ee;
  font-weight: 700;
}

.object-path-list {
  display: grid;
  gap: .42rem;
}

.object-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(90px, .52fr) auto;
  align-items: center;
  gap: .5rem;
  min-height: 34px;
  padding: .34rem .48rem;
  border: 1px solid #263753;
  border-radius: 8px;
  background: rgba(17, 27, 46, .72);
  opacity: 0;
  transform: translateX(8px);
  transition: .45s ease;
}

.path-properties {
  display: flex;
  flex-wrap: wrap;
  gap: .22rem;
}

.path-properties em {
  color: #9fb0c9;
  font-family: var(--mono);
  font-size: .60rem;
  font-style: normal;
}

.path-properties > span {
  color: #64748b;
  font-family: var(--mono);
  font-size: .58rem;
  font-style: italic;
}

.path-properties i,
.path-arrow {
  color: #475569;
  font-size: .62rem;
  font-style: normal;
}

.object-path strong {
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: .68rem;
}

.object-path > b {
  color: #64748b;
  font-family: var(--mono);
  font-size: .65rem;
}

.object-path.is-winner {
  border-color: rgba(34, 197, 94, .48);
  background: rgba(34, 197, 94, .07);
}

.object-path.is-winner strong,
.object-path.is-winner > b {
  color: #86efac;
}

.energy-columns,
.candidate-row {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, .65fr);
  align-items: center;
  gap: .45rem;
}

.energy-columns {
  margin-bottom: .45rem;
  color: #64748b;
  font-size: .65rem;
}

.energy-explainer {
  margin: -.28rem 0 .7rem;
  color: #9fb0c9;
  font-size: .72rem;
  line-height: 1.45;
}

.candidate-row {
  min-height: 28px;
  margin-bottom: .35rem;
}

.candidate-row strong {
  color: #a7b5c9;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 400;
}

.cost-cell {
  display: grid;
  grid-template-columns: minmax(34px, 1fr) 1.5rem;
  align-items: center;
  gap: .28rem;
}

.cost-cell small {
  color: #64748b;
  font-family: var(--mono);
  font-size: .58rem;
  text-align: right;
}

.candidate-row i {
  position: relative;
  overflow: hidden;
  height: 5px;
  border-radius: 99px;
  background: #1f2b40;
}

.candidate-row i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: #64748b;
  transition: width .8s ease;
}

.candidate-row.is-winner strong {
  color: #86efac;
  font-weight: 700;
}

.candidate-row.is-winner .cost-cell small {
  color: #16a34a;
}

.candidate-row.is-winner i::after {
  background: #22c55e;
}

.decision-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .25rem .8rem;
  margin-top: auto;
  padding: .8rem;
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 10px;
  background: rgba(34, 197, 94, .08);
  opacity: 0;
  transform: translateY(8px);
  transition: .55s ease;
}

.decision-row span {
  color: #86efac;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .06em;
}

.decision-row strong {
  color: #fff;
  font-size: 1.15rem;
}

.decision-row small {
  grid-column: 2;
  color: #8394ae;
  font-family: var(--mono);
  font-size: .62rem;
}

.demo-grid[data-stage="1"] .scan-line,
.demo-grid[data-stage="2"] .scan-line,
.demo-grid[data-stage="3"] .scan-line,
.demo-grid[data-stage="4"] .scan-line {
  opacity: .9;
  animation: scan 2.3s ease-in-out infinite;
}

@keyframes scan {
  0% { top: 5%; }
  50% { top: 92%; }
  100% { top: 5%; }
}

.demo-grid[data-stage="2"] .roi,
.demo-grid[data-stage="3"] .roi,
.demo-grid[data-stage="4"] .roi,
.demo-grid[data-stage="5"] .roi {
  opacity: 1;
  transform: scale(1);
}

.demo-grid[data-stage="1"] .property-list span,
.demo-grid[data-stage="2"] .property-list span,
.demo-grid[data-stage="3"] .property-list span,
.demo-grid[data-stage="4"] .property-list span,
.demo-grid[data-stage="5"] .property-list span {
  animation: property-in .4s ease forwards;
}

.property-list span:nth-child(2) { animation-delay: .08s !important; }
.property-list span:nth-child(3) { animation-delay: .16s !important; }
.property-list span:nth-child(4) { animation-delay: .24s !important; }
.property-list span:nth-child(5) { animation-delay: .32s !important; }

@keyframes property-in {
  to { opacity: 1; transform: translateY(0); }
}

.demo-grid[data-stage="3"] .object-path,
.demo-grid[data-stage="4"] .object-path,
.demo-grid[data-stage="5"] .object-path {
  opacity: 1;
  transform: translateX(0);
}

.object-path:nth-child(2) { transition-delay: .09s; }
.object-path:nth-child(3) { transition-delay: .18s; }

.demo-grid[data-stage="2"] .object-property-card,
.demo-grid[data-stage="3"] .object-property-card,
.demo-grid[data-stage="4"] .object-property-card,
.demo-grid[data-stage="5"] .object-property-card {
  opacity: 1;
  transform: translateY(0);
}

.object-property-card:nth-child(2) { transition-delay: .08s; }
.object-property-card:nth-child(3) { transition-delay: .16s; }

.demo-grid[data-stage="4"] .candidate-row i::after,
.demo-grid[data-stage="5"] .candidate-row i::after {
  width: var(--score);
}

.demo-grid[data-stage="5"] .decision-row {
  opacity: 1;
  transform: translateY(0);
}

.demo-grid[data-stage="5"] .roi.is-selected {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, .55);
}

.demo-grid[data-stage="5"] .roi.is-selected span {
  background: #16a34a;
}

.demo-note {
  margin: 0;
  padding: .62rem 1.2rem;
  border-top: 1px solid #1d2a40;
  background: #070d19;
  color: #60718c;
  font-family: var(--mono);
  font-size: .62rem;
  line-height: 1.5;
  text-align: center;
}

.teaser-caption {
  margin-top: 1.3rem;
  color: #7f91aa;
  font-size: .95rem;
}

@media screen {
  .reasoning-section {
    border-top-color: var(--border-color);
    background:
      radial-gradient(circle at 14% 8%, rgba(37, 99, 235, .07), transparent 31%),
      radial-gradient(circle at 86% 92%, rgba(6, 182, 212, .06), transparent 28%),
      var(--page-background) !important;
    color-scheme: light;
    color: var(--text-primary);
  }

  .reasoning-section .title {
    color: var(--text-primary) !important;
  }

  .reasoning-section .section-lead {
    color: var(--text-secondary) !important;
  }

  .reasoning-section .section-eyebrow {
    color: var(--primary-color);
  }

  .reasoning-demo {
    border-color: #d8e2ef;
    background: #fff;
    box-shadow: 0 24px 64px rgba(71, 85, 105, .16);
    color: var(--text-primary);
  }

  .demo-toolbar {
    border-bottom-color: #dfe6f1;
    color: #5c6b82;
  }

  .demo-toolbar button {
    border-color: #cbd5e1;
    background: #fff;
    color: #475569;
  }

  .demo-toolbar button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }

  .scene-switcher,
  .query-row {
    border-bottom-color: #dfe6f1;
    background: #f8fafc;
  }

  .scene-switcher {
    background: #fff;
  }

  .scene-switcher > span,
  .query-row > span {
    color: var(--primary-color);
  }

  .scene-tabs button,
  .query-tabs button {
    border-color: #d6deea;
    background: #fff;
    color: #52627a;
  }

  .scene-tabs button:hover,
  .query-tabs button:hover,
  .scene-tabs button[aria-pressed="true"],
  .query-tabs button[aria-pressed="true"] {
    border-color: #60a5fa;
    background: #eff6ff;
    color: #1d4ed8;
  }

  .scene-panel {
    border-right-color: #dfe6f1;
    background: #fbfdff;
  }

  .panel-label,
  .step-head {
    color: #64748b;
  }

  .panel-label span:last-child {
    color: #0284c7;
  }

  .scene-frame {
    border-color: #cbd5e1;
    background: #eef2f7;
  }

  .scene-object-strip span {
    border-color: #d7e0ec;
    background: #fff;
    color: #64748b;
  }

  .reasoning-panel {
    background: #fff;
  }

  .reasoning-step {
    border-bottom-color: #dfe6f1;
  }

  .step-head b {
    color: #94a3b8;
  }

  .property-list span {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
  }

  .property-list b,
  .property-list input {
    color: #0284c7;
  }

  .property-list .property-name {
    color: #334155;
  }

  .property-remove {
    border-color: #cbd5e1;
    background: #fff;
    color: #64748b;
  }

  .property-list input:hover,
  .property-list input:focus {
    background: #e0f2fe;
  }

  .object-property-card {
    border-color: #d7e0ec;
    background: #f8fafc;
  }

  .object-property-chip input:hover,
  .object-property-chip input:focus {
    border-color: #bae6fd;
    background: #e0f2fe;
  }

  .object-property-card > strong {
    color: #334155;
  }

  .object-property-card span {
    background: #eef2f7;
    color: #64748b;
  }

  .object-property-card b {
    color: #0284c7;
  }

  .object-path {
    border-color: #d7e0ec;
    background: #f8fafc;
  }

  .path-properties em {
    color: #64748b;
  }

  .path-properties i,
  .path-arrow {
    color: #94a3b8;
  }

  .object-path strong {
    color: #334155;
  }

  .object-path > b {
    color: #64748b;
  }

  .object-path.is-winner {
    border-color: rgba(22, 163, 74, .38);
    background: #f0fdf4;
  }

  .object-path.is-winner strong,
  .object-path.is-winner > b {
    color: #15803d;
  }

  .energy-explainer {
    color: #64748b;
  }

  .energy-columns {
    color: #94a3b8;
  }

  .candidate-row strong {
    color: #52627a;
  }

  .candidate-row i {
    background: #dfe7f1;
  }

  .candidate-row i::after {
    background: #718096;
  }

  .candidate-row.is-winner strong {
    color: #15803d;
  }

  .decision-row {
    border-color: rgba(22, 163, 74, .35);
    background: #f0fdf4;
  }

  .decision-row span {
    color: #15803d;
  }

  .decision-row strong {
    color: #14532d;
  }

  .decision-row small {
    color: #55715f;
  }

  .demo-note {
    border-top-color: #dfe6f1;
    background: #f8fafc;
    color: #718096;
  }

  .teaser-caption {
    color: var(--text-secondary);
  }
}

.abstract-copy strong {
  color: var(--text-primary);
}

.method-section,
.results-section,
.qualitative-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.system-overview-section,
.abstract-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.system-overview-section {
  border-top: 1px solid var(--border-color);
}

.abstract-section {
  border-top: 1px solid var(--border-color);
}

.pipeline-columns {
  margin-top: 2.5rem;
}

.pipeline-card {
  position: relative;
  height: 100%;
  min-height: 285px;
  padding: 1.45rem;
  border: 1px solid var(--border-color);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pipeline-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-lg);
}

.pipeline-card > span {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
}

.pipeline-card > i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.pipeline-card h3 {
  margin-bottom: .65rem;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 700;
}

.pipeline-card p {
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.65;
}

.pipeline-card small {
  position: absolute;
  right: 1.45rem;
  bottom: 1.25rem;
  left: 1.45rem;
  color: var(--primary-color);
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.energy-equation {
  display: grid;
  grid-template-columns: .65fr 1.6fr .85fr;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem 1.7rem;
  border: 1px solid #bfdbfe;
  border-radius: 15px;
  background: linear-gradient(100deg, #eff6ff, #ecfeff);
}

.energy-equation div span,
.energy-equation small {
  display: block;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .06em;
}

.energy-equation div strong {
  color: var(--primary-color);
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.energy-equation p {
  color: var(--text-primary);
  font-family: Georgia, serif;
  font-size: 1.18rem;
  text-align: center;
}

.energy-equation p b {
  padding: 0 .35rem;
  color: var(--primary-color);
}

.paper-figure {
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.overview-figure {
  width: min(100%, 900px);
  margin-right: auto;
  margin-left: auto;
}

.overview-figure img,
.graph-figure img {
  padding: .65rem;
  background: #fff;
}

.paper-figure figcaption {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: .86rem;
  line-height: 1.6;
}

.title.is-3.left-title::after {
  left: 0;
  transform: none;
}

.graph-lead {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 1.75;
}

.graph-benefits li {
  display: flex;
  gap: .9rem;
  margin: 1rem 0;
}

.graph-benefits i {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #dbeafe;
  color: var(--primary-color);
}

.graph-benefits strong,
.graph-benefits span {
  display: block;
}

.graph-benefits strong {
  color: var(--text-primary);
  font-size: .94rem;
}

.graph-benefits span {
  margin-top: .15rem;
  color: var(--text-secondary);
  font-size: .83rem;
  line-height: 1.5;
}

.graph-figure {
  margin-top: 0;
}

.result-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.result-card > span {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.result-card strong {
  display: block;
  margin: 1.25rem 0 .7rem;
  color: var(--text-primary);
  font-size: 3rem;
  line-height: 1;
}

.result-card strong sup {
  font-size: 1.1rem;
}

.result-card p {
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.6;
}

.result-card > i {
  position: absolute;
  right: 1.5rem;
  bottom: 1.45rem;
  left: 1.5rem;
  overflow: hidden;
  height: 6px;
  border-radius: 99px;
  background: var(--background-accent);
}

.result-card > i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--result);
  border-radius: inherit;
  background: currentColor;
}

.result-blue { color: #2563eb; }
.result-green { color: #059669; }
.result-orange { color: #ea580c; }

.benchmark-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.6rem;
  border: 1px solid var(--border-color);
  border-radius: 15px;
  background: var(--background-secondary);
}

.benchmark-strip div {
  padding: 1.35rem;
  text-align: center;
}

.benchmark-strip div + div {
  border-left: 1px solid var(--border-color);
}

.benchmark-strip strong,
.benchmark-strip span {
  display: block;
}

.benchmark-strip strong {
  color: var(--text-primary);
  font-size: 1.5rem;
}

.benchmark-strip span {
  margin-top: .3rem;
  color: var(--text-secondary);
  font-size: .74rem;
}

.results-note {
  margin-top: 1rem;
  color: var(--text-light);
  font-size: .75rem;
  text-align: center;
}

.main-video-shell {
  overflow: hidden;
  border-radius: 17px;
  background: #0b1120;
  box-shadow: var(--shadow-xl);
}

.main-video-shell video {
  display: block;
  width: 100%;
  max-height: 640px;
}

.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-heading .title {
  margin-bottom: 0 !important;
}

.filter-buttons {
  display: flex;
  gap: .45rem;
  padding: .35rem;
  border: 1px solid var(--border-color);
  border-radius: 11px;
  background: var(--background-secondary);
}

.filter-buttons button {
  padding: .45rem .75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font: 600 .76rem Inter, sans-serif;
}

.filter-buttons button.is-active {
  background: #fff;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.video-card.is-hidden {
  display: none;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0b1120;
  object-fit: cover;
}

.video-card div {
  padding: .9rem 1rem 1rem;
}

.video-card span {
  color: var(--primary-color);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.video-card h3 {
  margin-top: .25rem;
  color: var(--text-primary);
  font-size: .96rem;
  font-weight: 700;
}

.resource-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 215px;
  padding: 1.4rem;
  border: 1px solid var(--border-color);
  border-radius: 15px;
  background: #fff;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-lg);
}

.resource-card i {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.45rem;
}

.resource-card strong,
.resource-card span,
.resource-card small {
  display: block;
}

.resource-card strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

.resource-card span {
  margin-top: .5rem;
  color: var(--text-secondary);
  font-size: .85rem;
  line-height: 1.55;
}

.resource-card small {
  margin-top: auto;
  color: var(--primary-color);
  font-size: .72rem;
  font-weight: 700;
}

.footer-small {
  color: var(--text-light);
  font-size: .78rem;
}

@media screen and (max-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .scene-panel {
    border-right: 0;
    border-bottom: 1px solid #26334a;
  }

  .energy-equation {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .benchmark-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .benchmark-strip div:nth-child(3) {
    border-left: 0;
  }

  .benchmark-strip div:nth-child(n+3) {
    border-top: 1px solid var(--border-color);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .scene-panel {
    border-bottom-color: #dfe6f1;
  }
}

@media screen and (max-width: 768px) {
  .project-nav {
    padding: 0 1rem;
  }

  .project-nav-links {
    gap: .8rem;
  }

  .project-nav-links a {
    font-size: .72rem;
  }

  .publication-header .hero-body {
    padding-top: 3.5rem;
  }

  .publication-title {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem) !important;
  }

  .reasoning-section .hero-body {
    padding: 3rem .75rem;
  }

  .scene-switcher,
  .query-row {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media screen and (max-width: 560px) {
  .project-nav-links a:nth-child(2),
  .project-nav-links a:nth-child(3) {
    display: none;
  }

  .reasoning-panel,
  .scene-panel {
    padding: .85rem;
  }

  .property-list {
    gap: .3rem;
  }

  .object-property-list {
    grid-template-columns: 1fr;
  }

  .verb-property-flow {
    grid-template-columns: auto auto 1fr;
    align-items: start;
  }

  .object-path {
    grid-template-columns: 1fr auto;
  }

  .path-properties {
    grid-column: 1 / -1;
  }

  .path-arrow {
    display: none;
  }

  .candidate-row,
  .energy-columns {
    grid-template-columns: 1.3fr repeat(3, .52fr);
  }

  .benchmark-strip {
    grid-template-columns: 1fr;
  }

  .benchmark-strip div + div,
  .benchmark-strip div:nth-child(3) {
    border-top: 1px solid var(--border-color);
    border-left: 0;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    width: 100%;
  }

  .filter-buttons button {
    flex: 1;
  }
}

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