:root {
  --ink: #10213d;
  --ink-2: #2d3d57;
  --muted: #66748a;
  --line: #dfe6ef;
  --line-dark: rgba(255, 255, 255, 0.15);
  --paper: #ffffff;
  --soft: #f4f7fb;
  --soft-blue: #edf5ff;
  --navy: #0d274d;
  --navy-deep: #081b35;
  --blue: #2778f6;
  --blue-deep: #1759bd;
  --violet: #7357e8;
  --teal: #08a7a0;
  --coral: #ff6e55;
  --green: #138b72;
  --shadow-sm: 0 10px 35px rgba(20, 42, 78, 0.08);
  --shadow-lg: 0 28px 80px rgba(20, 42, 78, 0.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1160px;
  --narrow: 870px;
}

/* Narrative bridges between major sections. */
.section-transition {
  max-width: 960px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.6;
}

.section-transition--lead {
  margin: 0 0 26px;
}

.section-transition--after-heading {
  margin-top: -24px;
  margin-bottom: 34px;
}

.section-transition--before-details {
  margin-top: 30px;
}

.section-transition--before-details + .bifurcation-technical-details {
  margin-top: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink-2);
  background: var(--paper);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: #fff;
  background: var(--blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.container.narrow,
.narrow {
  max-width: var(--narrow);
}

.section {
  padding: 108px 0;
}

.section-soft {
  background:
    radial-gradient(circle at 10% 0, rgba(39, 120, 246, 0.07), transparent 30%),
    var(--soft);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.25rem, 4.4vw, 3.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.section-heading > p:last-child {
  max-width: 690px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.centered-heading {
  margin-inline: auto;
  text-align: center;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.78fr);
  gap: clamp(42px, 8vw, 104px);
  align-items: end;
  margin-bottom: 52px;
}

.split-heading > p {
  margin: 0 0 2px;
  color: var(--muted);
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 72px;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 33, 61, 0.08);
  box-shadow: 0 8px 28px rgba(16, 33, 61, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  width: min(calc(100% - 48px), 1240px);
  height: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  overflow: visible;
  fill: white;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.brand-mark circle {
  fill: white;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: #3b4960;
  font-size: 0.87rem;
  font-weight: 700;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(2) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 148px 0 78px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle, rgba(39, 120, 246, 0.18) 1px, transparent 1.5px);
  background-size: auto, 24px 24px;
}

.hero::after {
  position: absolute;
  z-index: 0;
  top: 73px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39, 120, 246, 0.16), transparent);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  width: 500px;
  height: 500px;
  opacity: 0.45;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-glow-one {
  top: -260px;
  left: -170px;
  background: radial-gradient(circle, rgba(44, 152, 255, 0.28), transparent 68%);
}

.hero-glow-two {
  top: 30px;
  right: -250px;
  background: radial-gradient(circle, rgba(115, 87, 232, 0.22), transparent 68%);
}

.hero h1 {
  max-width: 1040px;
  margin: 0 auto;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.65rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero h1 > span {
  display: block;
  background: linear-gradient(100deg, #0d274d 10%, #206edb 55%, #6e50dc 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 small {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 0.41em;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hero-deck {
  margin: 26px auto 22px;
  color: #4b5970;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.authors {
  display: flex;
  max-width: 980px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 21px;
}

.authors sup,
.affiliations sup {
  color: var(--blue-deep);
  font-size: 0.62em;
  font-weight: 800;
  vertical-align: super;
}

.affiliations {
  display: flex;
  max-width: 980px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1px 16px;
}

.hero-actions {
  display: flex;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-dark svg:first-child {
  fill: currentColor;
  stroke: none;
}

.button-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 10px 25px rgba(39, 120, 246, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-deep);
  box-shadow: 0 14px 30px rgba(39, 120, 246, 0.32);
}

.button-dark {
  color: white;
  background: var(--ink);
  box-shadow: 0 10px 25px rgba(16, 33, 61, 0.18);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: #1b355f;
}

.button-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: #ccd7e6;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: white;
  border-color: #aabbd2;
  box-shadow: var(--shadow-sm);
}

.hero-figure {
  max-width: 1120px;
  margin: 70px auto 0;
}

.paper-figure {
  margin-right: 0;
  margin-left: 0;
  padding: 19px;
  background: white;
  border: 1px solid rgba(16, 33, 61, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.paper-figure img {
  width: 100%;
  height: auto;
  border-radius: 11px;
}

.paper-figure figcaption {
  max-width: 860px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.figure-kicker {
  display: flex;
  margin: -2px 0 15px 2px;
  color: #52627a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  align-items: center;
  gap: 8px;
}

.figure-kicker span {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(8, 167, 160, 0.12);
}

/* Overview */
.section-intro {
  padding-top: 76px;
}

.tldr {
  display: grid;
  margin-bottom: 32px;
  padding: 34px 38px;
  color: white;
  background:
    radial-gradient(circle at 90% 0, rgba(115, 87, 232, 0.5), transparent 45%),
    linear-gradient(135deg, var(--navy), #143c75);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 55px rgba(13, 39, 77, 0.2);
  grid-template-columns: 100px 1fr;
  gap: 28px;
  align-items: start;
}

.tldr-label {
  padding-top: 4px;
  color: #79c7ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.tldr p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.18rem, 2.2vw, 1.48rem);
  font-weight: 500;
  line-height: 1.46;
}

.stats {
  display: grid;
  margin-bottom: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.stat {
  min-height: 160px;
  padding: 29px 28px;
  background: #fff;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.05rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.5;
}

.abstract-copy {
  margin-top: 38px;
  color: #43526a;
  font-size: 1.02rem;
  text-align: justify;
  text-justify: inter-word;
}

.abstract-copy p {
  margin: 0 0 18px;
}

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

/* Motivation */
.bifurcation-demo {
  margin: 0;
}

.bifurcation-fallback p {
  max-width: 860px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.bifurcation-demo__interactive {
  padding: clamp(20px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 33, 61, 0.11);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.bifurcation-demo__interactive[hidden] {
  display: none;
}

.bifurcation-demo__guide {
  display: grid;
  margin-bottom: 23px;
  padding: 0 2px 22px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 26px;
  align-items: end;
}

.bifurcation-demo__guide strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.bifurcation-demo__guide p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.bifurcation-demo__label {
  color: var(--blue-deep);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bifurcation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bifurcation-panel {
  display: flex;
  min-width: 0;
  padding: clamp(18px, 2.5vw, 27px);
  background: #f8fafc;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  flex-direction: column;
}

.bifurcation-panel--interactive {
  background:
    linear-gradient(145deg, rgba(39, 120, 246, 0.045), transparent 42%),
    #f8fafc;
}

.bifurcation-panel__header {
  min-height: 68px;
  margin-bottom: 10px;
}

.bifurcation-panel__header > span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-deep);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.bifurcation-panel__header h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.bifurcation-plot {
  width: 100%;
  height: auto;
  overflow: visible;
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 12px;
}

.bifurcation-plot text {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bifurcation-plot .plot-grid {
  stroke: #e9eef5;
  stroke-width: 1;
}

.bifurcation-plot .plot-axis {
  stroke: #7a879a;
  stroke-width: 1.2;
}

.bifurcation-plot .plot-guide {
  fill: none;
  stroke: #93a4b9;
  stroke-dasharray: 4 4;
  stroke-width: 1.25;
}

.bifurcation-plot .plot-guide--tau {
  stroke: #1f77b4;
  stroke-dasharray: 1.5 2;
  stroke-width: 1.05;
}

.bifurcation-plot .plot-tick {
  fill: #64738a;
  font-size: 10px;
}

.bifurcation-plot .plot-label {
  fill: #43526a;
  font-size: 11px;
  font-weight: 700;
}

.bifurcation-plot .plot-note {
  fill: #5f6f85;
  font-size: 10px;
  font-weight: 600;
}

.bifurcation-plot .plot-note--positive {
  fill: #1f77b4;
}

.bifurcation-plot .plot-note--negative {
  fill: #ff7f0e;
}

.bifurcation-plot .plot-note--latent-positive {
  fill: #d62728;
}

.bifurcation-plot .plot-note--latent-negative {
  fill: #2ca02c;
}

.bifurcation-plot .plot-stem {
  fill: none;
  stroke: #34455f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.bifurcation-plot .plot-branch--positive,
.bifurcation-plot .plot-branch--negative {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bifurcation-plot .plot-branch--positive {
  stroke: #1f77b4;
  stroke-width: 3;
}

.bifurcation-plot .plot-branch--negative {
  stroke: #ff7f0e;
  stroke-width: 3;
}

.bifurcation-plot .plot-latent-branch {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bifurcation-plot .plot-latent-branch--negative {
  stroke: #2ca02c;
}

.bifurcation-plot .plot-latent-branch--positive {
  stroke: #d62728;
}

.bifurcation-plot .plot-paper-target,
.bifurcation-plot .plot-sf-characteristic {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bifurcation-plot .plot-paper-target {
  stroke-dasharray: 5 4;
  stroke-width: 1.65;
}

.bifurcation-plot .plot-paper-target--negative {
  stroke: #ff7f0e;
}

.bifurcation-plot .plot-paper-target--positive {
  stroke: #1f77b4;
}

.bifurcation-plot .plot-sf-characteristic {
  stroke-width: 2.55;
}

.bifurcation-plot .plot-sf-characteristic--negative {
  stroke: #2ca02c;
}

.bifurcation-plot .plot-sf-characteristic--positive {
  stroke: #d62728;
}

.bifurcation-plot .plot-tube--positive {
  fill: rgba(31, 119, 180, 0.075);
  stroke: rgba(31, 119, 180, 0.3);
  stroke-width: 0.55;
}

.bifurcation-plot .plot-tube--negative {
  fill: rgba(255, 127, 14, 0.075);
  stroke: rgba(255, 127, 14, 0.3);
  stroke-width: 0.55;
}

.bifurcation-plot .plot-tube--shared {
  fill: rgba(84, 105, 134, 0.065);
  stroke: rgba(84, 105, 134, 0.26);
  stroke-width: 0.55;
}

.bifurcation-plot .plot-split {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 2;
}

.bifurcation-plot .plot-paper-callout,
.bifurcation-plot .plot-paper-annotation,
.bifurcation-plot .plot-tube-label {
  paint-order: stroke;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 3px;
}

.bifurcation-plot .plot-paper-callout {
  fill: #39475b;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 8.5px;
  font-weight: 600;
}

.bifurcation-plot .plot-paper-annotation {
  fill: #28364b;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 9.3px;
  font-weight: 600;
}

.bifurcation-plot .plot-tube-label {
  fill: #65758b;
  font-size: 7.5px;
  font-weight: 700;
}

.bifurcation-plot .plot-posterior-guide {
  stroke: #1f77b4;
  stroke-dasharray: 1.5 1.5;
  stroke-width: 0.75;
}

.bifurcation-plot .plot-posterior-curve {
  fill: none;
  stroke: #1f77b4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bifurcation-plot .plot-posterior-title {
  fill: #273449;
  font-size: 10px;
  font-weight: 600;
}

.bifurcation-plot .plot-curve {
  fill: none;
  stroke: #1f77b4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bifurcation-plot .plot-ideal-baseline {
  fill: none;
  stroke: #e87519;
  stroke-dasharray: 5 4;
  stroke-width: 1.5;
}

.bifurcation-plot .plot-ideal-label {
  fill: #b65a16;
  font-size: 8px;
  font-weight: 650;
}

.bifurcation-plot .plot-marker-halo {
  fill: rgba(39, 120, 246, 0.18);
}

.bifurcation-plot .plot-marker {
  fill: var(--blue);
  stroke: white;
  stroke-width: 2.5;
}

.bifurcation-plot .plot-sensitivity-range-label {
  fill: #64738a;
  font-size: 7.5px;
  font-weight: 700;
}

.bifurcation-plot .plot-sensitivity-guide {
  stroke: #2778f6;
  stroke-dasharray: 2 3;
  stroke-width: 0.9;
  opacity: 0.52;
}

.bifurcation-plot .is-muted {
  opacity: 0.16;
}

.bifurcation-panel__copy {
  margin: 17px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.58;
}

.bifurcation-plot-key {
  display: flex;
  margin: 9px 2px -2px;
  padding: 0;
  color: #59697e;
  font-size: 0.61rem;
  font-weight: 700;
  line-height: 1.35;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
}

.bifurcation-plot-key > li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bifurcation-plot-key i {
  position: relative;
  display: inline-block;
  width: 21px;
  height: 8px;
}

.bifurcation-plot-key__mean::before,
.bifurcation-plot-key__mean::after,
.bifurcation-plot-key__particle::before,
.bifurcation-plot-key__particle::after {
  position: absolute;
  right: 0;
  left: 0;
  content: "";
}

.bifurcation-plot-key__mean::before,
.bifurcation-plot-key__mean::after {
  border-top: 1.5px dashed;
}

.bifurcation-plot-key__mean::before {
  top: 1px;
  border-color: #1f77b4;
}

.bifurcation-plot-key__mean::after {
  bottom: 1px;
  border-color: #ff7f0e;
}

.bifurcation-plot-key__particle::before,
.bifurcation-plot-key__particle::after {
  border-top: 2px solid;
}

.bifurcation-plot-key__particle::before {
  top: 1px;
  border-color: #2ca02c;
}

.bifurcation-plot-key__particle::after {
  bottom: 1px;
  border-color: #d62728;
}

.bifurcation-plot-key i.bifurcation-plot-key__tube {
  height: 8px;
  background: linear-gradient(90deg, rgba(255, 127, 14, 0.12), rgba(31, 119, 180, 0.12));
  border: 1px solid rgba(84, 105, 134, 0.38);
  border-radius: 2px;
}

.bifurcation-plot-key__branch-positive::before,
.bifurcation-plot-key__branch-negative::before,
.bifurcation-plot-key__sensitivity-standard::before,
.bifurcation-plot-key__sensitivity-ideal::before {
  position: absolute;
  top: 3px;
  right: 0;
  left: 0;
  border-top: 2px solid;
  content: "";
}

.bifurcation-plot-key__branch-positive::before,
.bifurcation-plot-key__sensitivity-standard::before {
  border-color: #1f77b4;
}

.bifurcation-plot-key__branch-negative::before {
  border-color: #ff7f0e;
}

.bifurcation-plot-key__sensitivity-ideal::before {
  border-color: #e87519;
  border-top-style: dashed;
}

.bifurcation-posterior-plot {
  display: block;
  width: min(100%, 320px);
  margin: 16px auto 0;
}

.bifurcation-plot.bifurcation-posterior-plot .plot-tick,
.bifurcation-plot.bifurcation-posterior-plot .plot-label {
  font-size: 10px;
}

.bifurcation-control {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid #dde5ef;
}

.bifurcation-control__label-row {
  display: flex;
  margin-bottom: 10px;
  color: #4d5d73;
  font-size: 0.75rem;
  line-height: 1.45;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.bifurcation-control__label-row label {
  font-weight: 700;
}

.bifurcation-control__label-row strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.82rem;
  white-space: nowrap;
}

.bifurcation-control input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.bifurcation-control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background:
    linear-gradient(to right, var(--blue) 0 var(--range-progress, 40%), #74869e var(--range-progress, 40%) 100%);
  border-radius: 999px;
}

.bifurcation-control input[type="range"]::-moz-range-track {
  height: 6px;
  background: #74869e;
  border-radius: 999px;
}

.bifurcation-control input[type="range"]::-moz-range-progress {
  height: 6px;
  background: var(--blue);
  border-radius: 999px;
}

.bifurcation-control input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  appearance: none;
  background: #fff;
  border: 5px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 33, 61, 0.22);
}

.bifurcation-control input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border: 5px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 33, 61, 0.22);
}

.bifurcation-control input[type="range"]:focus-visible {
  outline: 3px solid rgba(39, 120, 246, 0.25);
  outline-offset: 3px;
  border-radius: 6px;
}

.bifurcation-control__endpoints {
  position: relative;
  height: 15px;
  margin-top: -2px;
  color: #5d6d82;
  font-size: 0.61rem;
  font-weight: 700;
  line-height: 1;
}

.bifurcation-control__endpoints span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}

.bifurcation-control__endpoints span:nth-child(1) {
  left: 0;
  transform: none;
}

.bifurcation-control__endpoints span:nth-child(2) {
  left: 21.57%;
}

.bifurcation-control__endpoints span:nth-child(3) {
  left: 47.71%;
}

.bifurcation-control__endpoints span:nth-child(4) {
  left: 73.86%;
}

.bifurcation-control__endpoints span:nth-child(5) {
  right: 0;
  transform: none;
}

.bifurcation-control p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.52;
}

.bifurcation-control__derived {
  display: flex;
  margin-top: 8px;
  padding: 8px 10px;
  color: #596a80;
  background: #edf3fa;
  border-radius: 8px;
  font-size: 0.68rem;
  line-height: 1.45;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bifurcation-control__derived strong {
  color: var(--ink);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bifurcation-control--segments {
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.bifurcation-control--segments legend {
  margin-bottom: 10px;
  padding: 0;
  color: #4d5d73;
  font-size: 0.75rem;
  font-weight: 700;
}

.bifurcation-segments {
  display: grid;
  padding: 3px;
  background: #e8eef6;
  border-radius: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.bifurcation-segments input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.bifurcation-segments label {
  min-width: 0;
  padding: 7px 8px;
  color: #5a6a80;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.bifurcation-segments input:checked + label {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 33, 61, 0.1);
}

.bifurcation-segments input:focus-visible + label {
  outline: 3px solid rgba(39, 120, 246, 0.3);
  outline-offset: 1px;
}

.bifurcation-readout {
  display: flex;
  min-height: 47px;
  margin-top: 17px;
  padding: 11px 14px;
  color: #596a80;
  background: #edf3fa;
  border-radius: 9px;
  font-size: 0.73rem;
  line-height: 1.4;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bifurcation-readout i {
  color: #8b99ab;
  font-style: normal;
}

.bifurcation-readout strong {
  color: var(--ink);
}

.bifurcation-equations {
  display: grid;
  margin-top: 18px;
  overflow: hidden;
  background: var(--navy);
  border-radius: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bifurcation-equations > div {
  min-width: 0;
  padding: 17px 18px;
}

.bifurcation-equations > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.bifurcation-equations__label {
  display: block;
  margin-bottom: 5px;
  color: #9fb4cf;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.bifurcation-equations strong {
  display: block;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
}

.bifurcation-equations .katex-display {
  margin: 0;
  text-align: left;
}

.bifurcation-equations .katex-display > .katex {
  text-align: left;
}

.bifurcation-equations small {
  display: block;
  margin-top: 3px;
  color: #b8c9df;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.72rem;
  line-height: 1.35;
}

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

/* Method */
.equation-card {
  position: relative;
  max-width: 960px;
  margin: 52px auto 28px;
  padding: 36px 42px 32px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 90% 20%, rgba(115, 87, 232, 0.55), transparent 32%),
    linear-gradient(120deg, var(--navy-deep), #10376e);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 65px rgba(13, 39, 77, 0.23);
}

.equation-card::after {
  position: absolute;
  right: -20px;
  bottom: -60px;
  width: 270px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  transform: rotate(-16deg);
}

.equation-label {
  margin-bottom: 17px;
  color: #8fd5ff;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.equation {
  position: relative;
  z-index: 1;
  font-size: clamp(1.35rem, 3.4vw, 2.35rem);
}

.equation .katex-display {
  margin: 0;
}

.method-grid {
  display: grid;
  max-width: 960px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.method-card {
  position: relative;
  min-height: 410px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.training-card {
  background: linear-gradient(145deg, #f2faff, #f8fbff);
}

.inference-card {
  background: linear-gradient(145deg, #f7f4ff, #fbfaff);
}

.card-number {
  position: absolute;
  top: 25px;
  right: 27px;
  color: #b9c5d5;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.card-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 27px;
  color: var(--blue);
  background: white;
  border: 1px solid rgba(39, 120, 246, 0.15);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(39, 120, 246, 0.1);
  place-items: center;
}

.inference-card .card-icon {
  color: var(--violet);
  border-color: rgba(115, 87, 232, 0.16);
  box-shadow: 0 12px 30px rgba(115, 87, 232, 0.1);
}

.card-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.method-card h3,
.objective-copy h3 {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.math-inline {
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.math-inline .katex {
  font-size: 1em;
}

.math-inline--inverse,
.math-display--inverse {
  color: inherit;
}

.math-display {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 0 2px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  white-space: nowrap;
}

.math-display .katex-display {
  margin: 1.05rem 0;
  text-align: center;
}

.math-display .katex-display > .katex {
  min-width: max-content;
  text-align: center;
}

.math-display--compact {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.92rem;
}

.math-display--compact .katex-display {
  margin: 0;
  text-align: left;
}

.math-display--compact .katex-display > .katex {
  text-align: left;
}

.mini-flow {
  display: flex;
  position: absolute;
  right: 34px;
  bottom: 31px;
  left: 34px;
  padding-top: 20px;
  border-top: 1px solid #dbe6f1;
  color: #52627a;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.mini-flow i {
  color: var(--blue);
  font-size: 0.85rem;
  font-style: normal;
}

.inference-card .mini-flow i {
  color: var(--violet);
}

.objective-panel {
  display: grid;
  max-width: 1100px;
  margin: 72px auto 0;
  padding: 45px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 52px;
  align-items: center;
}

.objective-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.objective-copy .objective-footnote {
  margin-top: 15px !important;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #52627a !important;
  font-size: 0.77rem !important;
}

.objective-equation {
  padding: 31px 28px 24px;
  color: var(--ink);
  background: white;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  font-size: clamp(0.92rem, 1.65vw, 1.12rem);
  text-align: center;
}

.objective-equation .katex-display {
  margin: 0;
}

/* Results */
.section-results {
  color: #dce7f7;
  background:
    radial-gradient(circle at 100% 0, rgba(39, 120, 246, 0.23), transparent 31%),
    radial-gradient(circle at 0 75%, rgba(8, 167, 160, 0.12), transparent 28%),
    var(--navy-deep);
}

.light-heading .eyebrow {
  color: #75c5ff;
}

.light-heading h2 {
  color: white;
}

.light-heading > p {
  color: #b4c2d5;
}

.dark-figure {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(255, 255, 255, 0.15);
}

.result-figure {
  max-width: 920px;
  margin: 0 auto 30px;
  padding: 24px;
}

.results-panel {
  max-width: 1010px;
  margin: 0 auto;
  padding: 28px;
  color: var(--ink-2);
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.22);
}

.results-table-figure {
  width: min(1240px, calc(100vw - 48px));
  max-width: none;
  margin: 0 0 0 50%;
  padding: clamp(24px, 3vw, 38px);
  transform: translateX(-50%);
}

.results-table-caption {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #4d596a;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.65;
}

.results-table-caption strong {
  color: var(--ink);
  font-weight: 700;
}

.forecast-table-block {
  margin-top: 30px;
}

.forecast-table-block + .forecast-table-block {
  padding-top: 31px;
  border-top: 1px solid #d9dee6;
}

.forecast-table-block h3 {
  margin: 0 0 11px;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.table-scroll-hint {
  display: none;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

table {
  width: 100%;
  min-width: 660px;
  border-spacing: 0;
  border-collapse: separate;
  font-size: 0.82rem;
  line-height: 1.35;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid #e8edf3;
  text-align: center;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  color: #4c5b71;
  background: #f6f8fb;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.35;
}

thead th:first-child {
  border-radius: 10px 0 0 0;
}

thead th:last-child {
  border-radius: 0 10px 0 0;
}

thead small {
  color: #8491a4;
  font-size: 0.84em;
  font-weight: 700;
}

tbody th {
  color: #435168;
  font-weight: 700;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.forecast-table {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.28;
}

.forecast-table--deterministic {
  min-width: 1140px;
}

.forecast-table--stochastic {
  min-width: 1100px;
}

.forecast-table th,
.forecast-table td {
  padding: 10px 9px;
}

.forecast-table tbody td {
  color: #394557;
}

.forecast-table tbody th,
.forecast-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 #e1e6ed;
}

.forecast-table thead th:first-child {
  z-index: 4;
  background: #f6f8fb;
}

.forecast-table .system-header {
  color: #39475a;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.8rem;
  font-weight: 650;
}

.forecast-table .system-header--pendulum {
  background: #eaf1fb;
}

.forecast-table .system-header--rossler {
  background: #eaf4ee;
}

.forecast-table .system-header--lorenz {
  background: #fbefe5;
}

.forecast-table .system-column--pendulum {
  background: #f4f7fc;
}

.forecast-table .system-column--rossler {
  background: #f3f8f5;
}

.forecast-table .system-column--lorenz {
  background: #fdf7f1;
}

.forecast-table .ours-row th {
  background: #eaf3ff;
}

.results-table-note {
  margin: 17px 0 0;
  color: #727e8f;
  font-size: 0.7rem;
  line-height: 1.55;
}

.ours-row th,
.ours-row td {
  background: #eaf3ff;
}

.ours-row th {
  color: var(--blue-deep);
}

.ours-row th em {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 7px;
  color: white;
  background: var(--blue);
  border-radius: 99px;
  font-size: 0.55rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.ours-row strong {
  color: var(--blue-deep);
}

.lorenz-generation-figure {
  max-width: 1040px;
  margin: 48px auto 0;
  padding: clamp(12px, 2vw, 22px);
}

.lorenz-generation-figure > a {
  display: block;
}

.lorenz-generation-figure img {
  border: 0;
}

.qualitative-grid {
  display: grid;
  margin-top: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.qualitative-grid .paper-figure {
  margin-top: 0;
  padding: 16px;
  align-self: stretch;
}

.qualitative-grid .paper-figure img {
  min-height: 200px;
  object-fit: contain;
}

.qualitative-grid figcaption strong {
  color: var(--ink);
}

.benchmark-note {
  max-width: 900px;
  margin: 26px auto 0;
  padding: 18px 22px;
  color: #afbdd0;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  font-size: 0.77rem;
  line-height: 1.55;
}

.benchmark-note strong {
  color: #75c5ff;
}

/* World model */
.world-model-figure {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
}

.world-model-results {
  margin-top: 54px;
  margin-bottom: 68px;
}

.world-model-results-table {
  min-width: 1060px;
  font-variant-numeric: tabular-nums;
}

.world-model-results-table th,
.world-model-results-table td {
  padding: 12px 10px;
}

.world-model-results-table .world-model-task-header {
  color: #344458;
  background: #edf2f7;
}

.world-model-results-table .metric-group-start,
.world-model-results-table tbody tr > :nth-child(2),
.world-model-results-table tbody tr > :nth-child(4),
.world-model-results-table tbody tr > :nth-child(6),
.world-model-results-table tbody tr > :nth-child(8) {
  border-left: 1px solid #dce2e9;
}

.world-model-rollouts {
  width: min(1240px, calc(100vw - 48px));
  margin-left: 50%;
  padding-top: 54px;
  border-top: 1px solid #ccd2da;
  transform: translateX(-50%);
}

.rollout-comparison-list {
  display: grid;
  gap: 32px;
}

.rollout-comparison {
  overflow: hidden;
  background: #f7f8fa;
  border: 1px solid #ccd4de;
  border-radius: 7px;
}

.rollout-comparison__header {
  padding: 18px 22px 16px;
  background: #fff;
  border-bottom: 1px solid #d9dfe6;
}

.rollout-comparison__header h3,
.rollout-comparison__header h4 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.rollout-comparison__header h3 span,
.rollout-comparison__header h4 span {
  color: #657184;
  font-weight: 450;
}

.rollout-comparison__header p {
  max-width: 880px;
  margin: 7px 0 0;
  color: #657184;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.55;
}

.rollout-comparison__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: #fff;
}

.rollout-video-card {
  min-width: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.rollout-video-card + .rollout-video-card {
  border-left: 1px solid #d9dfe6;
}

.rollout-video-card figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 11px 15px;
  color: var(--ink);
  background: #f7f9fb;
  border-bottom: 1px solid #e0e5eb;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: center;
}

.rollout-video-card figcaption strong {
  color: var(--ink);
  font-weight: 700;
}

.rollout-outcome {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-transform: uppercase;
}

.rollout-outcome::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.rollout-outcome--success {
  border-color: #b9dfc7;
  background: #edf8f1;
  color: #19663d;
}

.rollout-outcome--failure {
  border-color: #efc2c2;
  background: #fff0f0;
  color: #9a3434;
}

.rollout-outcome--baseline {
  border-color: #cbd4df;
  background: #f1f4f8;
  color: #536174;
}

.rollout-outcome--ours {
  border-color: #b8dcd6;
  background: #edf7f5;
  color: #11685f;
}

.rollout-video-card video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.rollout-video-card video:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .world-model-rollouts {
    width: calc(100vw - 32px);
  }

  .rollout-comparison__grid {
    grid-template-columns: 1fr;
  }

  .rollout-comparison-list {
    gap: 28px;
  }

  .rollout-comparison__header {
    padding: 16px 17px 14px;
  }

  .rollout-video-card {
    padding: 0;
  }

  .rollout-video-card + .rollout-video-card {
    border-top: 1px solid #d9dfe6;
    border-left: 0;
  }
}

/* Citation and footer */
.citation-section {
  background:
    radial-gradient(circle at 50% 100%, rgba(39, 120, 246, 0.08), transparent 38%),
    white;
}

.citation-card {
  margin-top: 44px;
  overflow: hidden;
  color: #d8e3f2;
  background: var(--navy-deep);
  border: 1px solid #1d3f6c;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(13, 39, 77, 0.2);
}

.citation-toolbar {
  display: flex;
  min-height: 50px;
  padding: 0 18px 0 23px;
  background: #0d2444;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fa5bf;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-items: center;
  justify-content: space-between;
}

.citation-toolbar button {
  display: inline-flex;
  padding: 7px 10px;
  color: #c7d8eb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  cursor: pointer;
  align-items: center;
  gap: 7px;
}

.citation-toolbar button:hover,
.citation-toolbar button:focus-visible {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.citation-toolbar svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.citation-card pre {
  margin: 0;
  padding: 29px 32px 34px;
  overflow-x: auto;
}

.citation-card code {
  color: #d7e4f3;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.75;
}

.site-footer {
  padding: 60px 0 28px;
  color: #aebdd0;
  background: #07162c;
}

.footer-inner {
  display: flex;
  padding-bottom: 46px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  color: white;
}

.footer-brand .brand-mark {
  fill: #07162c;
}

.footer-inner p {
  margin: 11px 0 0 43px;
  color: #8294ac;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  padding-top: 5px;
  gap: 25px;
}

.footer-links a,
.footer-credit a {
  color: #b9c8da;
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-links a:hover,
.footer-credit a:hover {
  color: white;
}

.footer-credit {
  display: flex;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #70839d;
  font-size: 0.68rem;
  justify-content: flex-end;
  gap: 20px;
}

/* Responsive */
@media (max-width: 960px) {
  .section {
    padding: 88px 0;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-heading > p {
    max-width: 720px;
  }

  .bifurcation-demo__guide {
    grid-template-columns: 1fr;
    gap: 9px;
  }

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

  .bifurcation-panel__header {
    min-height: 0;
  }

  .bifurcation-plot {
    max-width: 560px;
    margin-inline: auto;
  }

  .objective-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }

}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 72px;
  }

  .container,
  .nav-shell {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 40px 24px;
    opacity: 0;
    background: rgba(255, 255, 255, 0.98);
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transform: translateY(-12px);
    transition: opacity 170ms ease, transform 170ms ease, visibility 170ms;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.1rem;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    padding: 116px 0 62px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 12vw, 4.5rem);
    line-height: 0.97;
  }

  .hero h1 small {
    margin-top: 15px;
    font-size: 0.38em;
    line-height: 1.22;
  }

  .authors {
    max-width: 600px;
    gap: 3px 14px;
  }

  .hero-figure {
    margin-top: 48px;
  }

  .paper-figure {
    padding: 12px;
    border-radius: 16px;
  }

  .figure-kicker {
    margin: 2px 5px 13px;
    font-size: 0.58rem;
  }

  .paper-figure figcaption {
    padding-inline: 4px;
    font-size: 0.71rem;
  }

  .tldr {
    padding: 28px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stats {
    margin-bottom: 88px;
    grid-template-columns: 1fr;
  }

  .stat {
    display: grid;
    min-height: 0;
    padding: 25px 27px;
    grid-template-columns: 0.75fr 1fr;
    gap: 22px;
    align-items: center;
  }

  .stat + .stat {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stat strong {
    margin-bottom: 0;
  }

  .abstract-copy {
    text-align: left;
  }

  .method-grid,
  .qualitative-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    min-height: 380px;
  }

  .equation-card {
    padding: 31px 22px 27px;
  }

  .objective-panel {
    padding: 28px;
  }

  .qualitative-grid .paper-figure img {
    min-height: 0;
  }

  .results-table-figure {
    width: calc(100vw - 32px);
  }

  .table-scroll-hint {
    display: block;
    margin: -3px 0 9px;
    color: #7a8697;
    font-size: 0.67rem;
  }

  .lorenz-generation-figure {
    margin-top: 38px;
  }

  .footer-inner,
  .footer-credit {
    flex-direction: column;
  }

  .footer-inner p {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }

  .hero .eyebrow {
    font-size: 0.65rem;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .hero h1 small {
    font-size: 0.35em;
  }

  .hero-deck {
    max-width: 320px;
    font-size: 1.02rem;
  }

  .authors {
    font-size: 0.89rem;
  }

  .affiliations {
    display: block;
    max-width: 340px;
    line-height: 1.65;
  }

  .affiliations span {
    display: inline;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    min-height: 44px;
    padding-inline: 16px;
  }

  .button-ghost {
    flex-basis: 100%;
    max-width: 220px;
  }

  .hero-figure {
    margin-right: -8px;
    margin-left: -8px;
  }

  .figure-kicker {
    justify-content: center;
  }

  .stats {
    margin-bottom: 72px;
  }

  .stat {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .bifurcation-demo__interactive {
    margin-right: -16px;
    margin-left: -16px;
    padding: 8px;
    border-radius: 14px;
  }

  .bifurcation-panel {
    padding: 10px;
  }

  .bifurcation-plot .plot-tick {
    font-size: 12px;
  }

  .bifurcation-plot .plot-label {
    font-size: 14px;
  }

  .bifurcation-panel--sensitivity .plot-sensitivity-tick {
    font-size: 8px;
  }

  .bifurcation-panel--sensitivity .plot-sensitivity-axis-label {
    font-size: 9px;
  }

  .bifurcation-plot .plot-note {
    font-size: 11.5px;
  }

  .bifurcation-control__label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .bifurcation-control__derived {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .bifurcation-control__derived strong {
    text-align: left;
  }

  .bifurcation-readout {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .bifurcation-readout i {
    display: none;
  }

  .bifurcation-equations {
    grid-template-columns: 1fr;
  }

  .bifurcation-equations > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .equation {
    font-size: 1.12rem;
  }

  .method-card {
    min-height: 420px;
    padding: 27px;
  }

  .mini-flow {
    right: 27px;
    left: 27px;
    font-size: 0.56rem;
  }

  .objective-panel {
    padding: 21px;
  }

  .objective-equation {
    padding: 25px 15px 20px;
    font-size: 0.75rem;
  }

  .math-display--compact {
    font-size: 0.8rem;
  }

  .result-figure {
    margin-right: -8px;
    margin-left: -8px;
  }

  .results-table-figure {
    width: calc(100vw - 24px);
    margin: 0 0 0 50%;
    padding: 20px 12px;
  }

  .citation-card {
    margin-right: -8px;
    margin-left: -8px;
  }

  .citation-card pre {
    padding: 24px 21px 29px;
  }

  .citation-card code {
    font-size: 0.72rem;
  }

  .footer-links {
    gap: 19px;
  }
}

/* Alternating page bands and light/dark appearance ---------------------- */
:root {
  --section-base: #ffffff;
  --section-alt: #f6f7f8;
  --surface-1: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e9edf2;
  --figure-paper: #ffffff;
  --theme-border: #d7dee7;
}

.hero,
.section-why-vsf,
.section-streaming-flow,
#method,
#world-model {
  background: var(--section-base);
}

.section-abstract,
.section-paradigms,
.section-motivation,
.section-results,
.citation-section {
  background: var(--section-alt);
}

.section-abstract,
.section-why-vsf,
.section-paradigms,
.section-streaming-flow,
.section-motivation,
.section-results,
#world-model,
.citation-section {
  border-color: var(--theme-border);
}

/* Dark-mode contrast repairs for labels with legacy fixed colors. */
html[data-theme="dark"] .clock-comparison p i {
  color: #ff9b87;
}

html[data-theme="dark"] .paper-figure figcaption strong,
html[data-theme="dark"] .research-figure figcaption strong,
html[data-theme="dark"] .forecast-gallery > figcaption strong {
  color: var(--ink);
}

html[data-theme="dark"] .bifurcation-plot-key,
html[data-theme="dark"] .bifurcation-plot-key span,
html[data-theme="dark"] .bifurcation-control__label-row,
html[data-theme="dark"] .bifurcation-control__label-row label,
html[data-theme="dark"] .bifurcation-control__endpoints,
html[data-theme="dark"] .bifurcation-control p,
html[data-theme="dark"] .bifurcation-control__derived,
html[data-theme="dark"] .bifurcation-control--segments legend,
html[data-theme="dark"] .bifurcation-readout,
html[data-theme="dark"] .energy-alpha-control__readout span,
html[data-theme="dark"] .results-table-note,
html[data-theme="dark"] .table-scroll-hint,
html[data-theme="dark"] .figure-selector__label,
html[data-theme="dark"] .forecast-method-header span,
html[data-theme="dark"] .forecast-panel > p,
html[data-theme="dark"] .forecast-dataset-row h5,
html[data-theme="dark"] .lorenz-sample-row h5 {
  color: #b7c4d4;
}

html[data-theme="dark"] .bifurcation-control__label-row strong,
html[data-theme="dark"] .bifurcation-control__derived strong,
html[data-theme="dark"] .bifurcation-readout strong,
html[data-theme="dark"] .energy-alpha-control__readout output {
  color: var(--ink);
}

html[data-theme="dark"] .bifurcation-model {
  --model-accent: #83c4fa;
  --model-soft: var(--surface-2);
}

html[data-theme="dark"] .bifurcation-model--latent {
  --model-accent: #62c8bd;
}

html[data-theme="dark"] .energy-interactive {
  --energy-warning: #ff8c7b;
}

html[data-theme="dark"] .energy-alpha-control__failure-tick {
  color: var(--energy-warning);
}

html[data-theme="dark"] .forecast-table .system-header,
html[data-theme="dark"] .world-model-results-table .world-model-task-header {
  color: #dbe5f1;
}

html[data-theme="dark"] .ours-row th em {
  color: #ffffff;
  background: #2f73b1;
}

html[data-theme="dark"] .forecast-dataset-row h5 span {
  color: #d8ccef;
  background: #302744;
  border-color: #55476e;
}

html[data-theme="dark"] .paradigm-card--streaming .paradigm-card__title > span {
  background: #126e67;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  color: #4f5968;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.theme-toggle:hover {
  color: var(--blue-deep);
  background: #eef2f6;
  border-color: #d7dee7;
}

.theme-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue), transparent 68%);
  outline-offset: 2px;
}

.theme-toggle__icon {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-toggle__icon--sun {
  display: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef3f8;
  --ink-2: #cdd7e3;
  --muted: #98a7ba;
  --line: #344255;
  --paper: #0f1620;
  --soft: #151f2c;
  --soft-blue: #17283b;
  --navy: #294f75;
  --navy-deep: #09111b;
  --blue: #5ca9e6;
  --blue-deep: #83c4fa;
  --violet: #b09be3;
  --teal: #62c8bd;
  --green: #5fc8a7;
  --section-base: #0f1620;
  --section-alt: #151f2c;
  --surface-1: #1b2735;
  --surface-2: #202e3e;
  --surface-3: #29384a;
  --figure-paper: #ffffff;
  --theme-border: #344255;
  --shadow-sm: 0 3px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

html[data-theme="dark"] body {
  color: var(--ink-2);
  background: var(--section-base);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header.is-scrolled,
html[data-theme="dark"] .site-header.is-open {
  background: rgba(15, 22, 32, 0.95);
  border-color: var(--line);
}

html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .brand-mark circle {
  fill: var(--section-base);
}

html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .theme-toggle {
  color: var(--ink-2);
}

html[data-theme="dark"] .theme-toggle:hover {
  color: var(--blue-deep);
  background: var(--surface-2);
  border-color: var(--line);
}

html[data-theme="dark"] .button-primary,
html[data-theme="dark"] .button-primary:hover,
html[data-theme="dark"] .button-primary:focus-visible {
  color: #ffffff;
  background: #2f73b1;
}

html[data-theme="dark"] .button-dark,
html[data-theme="dark"] .button-dark:hover,
html[data-theme="dark"] .button-dark:focus-visible,
html[data-theme="dark"] .button-ghost,
html[data-theme="dark"] .button-ghost:hover,
html[data-theme="dark"] .button-ghost:focus-visible {
  color: var(--ink);
  background: var(--surface-1);
  border-color: var(--line);
}

html[data-theme="dark"] .hero-deck,
html[data-theme="dark"] .abstract-copy,
html[data-theme="dark"] .vsf-value-card p,
html[data-theme="dark"] .limitation-summary p,
html[data-theme="dark"] .hero-result-showcase__heading > span,
html[data-theme="dark"] .article-heading > p:last-child,
html[data-theme="dark"] .method-overview__lead,
html[data-theme="dark"] .method-subheading > p:last-child,
html[data-theme="dark"] .method-derivation > p,
html[data-theme="dark"] .derivation-block > p,
html[data-theme="dark"] .objective-copy p:not(.eyebrow):not(.subsection-number),
html[data-theme="dark"] .objective-explanation,
html[data-theme="dark"] .sf-stage__copy > p,
html[data-theme="dark"] .forecast-subsection__heading > p:last-child,
html[data-theme="dark"] .forecast-gallery > figcaption,
html[data-theme="dark"] .results-table-caption,
html[data-theme="dark"] .paper-figure figcaption,
html[data-theme="dark"] .research-figure figcaption,
html[data-theme="dark"] .bifurcation-technical-details__copy small,
html[data-theme="dark"] .energy-interactive__intro,
html[data-theme="dark"] .energy-theory__header > p:last-child,
html[data-theme="dark"] .world-model-plan-list,
html[data-theme="dark"] .ground-truth-copy > p,
html[data-theme="dark"] .latent-copy > p,
html[data-theme="dark"] .motivation-lead {
  color: var(--ink-2);
}

html[data-theme="dark"] .section-why-vsf .vsf-value-grid,
html[data-theme="dark"] .section-why-vsf .hero-rollout-comparison {
  background: transparent;
}

html[data-theme="dark"] .vsf-value-grid,
html[data-theme="dark"] .limitation-summary,
html[data-theme="dark"] .vsf-value-card + .vsf-value-card,
html[data-theme="dark"] .limitation-summary article + article,
html[data-theme="dark"] .forecast-subsection,
html[data-theme="dark"] .world-model-rollouts,
html[data-theme="dark"] .motivation-block,
html[data-theme="dark"] .derivation-block,
html[data-theme="dark"] .objective-panel,
html[data-theme="dark"] .bifurcation-technical-details,
html[data-theme="dark"] .bifurcation-technical-section,
html[data-theme="dark"] .bifurcation-model {
  border-color: var(--line);
}

html[data-theme="dark"] .rollout-comparison,
html[data-theme="dark"] .rollout-comparison__header,
html[data-theme="dark"] .rollout-comparison__grid,
html[data-theme="dark"] .rollout-video-card,
html[data-theme="dark"] .rollout-video-card figcaption {
  background: var(--surface-1);
  border-color: var(--line);
}

html[data-theme="dark"] .rollout-video-card figcaption {
  background: var(--surface-2);
}

html[data-theme="dark"] .rollout-video-card + .rollout-video-card,
html[data-theme="dark"] .hero-result-showcase .rollout-video-card + .rollout-video-card {
  border-color: var(--line);
  box-shadow: inset 1px 0 var(--line);
}

html[data-theme="dark"] .rollout-comparison__header p,
html[data-theme="dark"] .rollout-comparison__header h3 span,
html[data-theme="dark"] .rollout-comparison__header h4 span {
  color: var(--muted);
}

html[data-theme="dark"] .rollout-outcome--success,
html[data-theme="dark"] .rollout-outcome--ours {
  color: #87e0c1;
  background: #16352f;
  border-color: #2f6658;
}

html[data-theme="dark"] .rollout-outcome--failure {
  color: #ffaaaa;
  background: #3a2024;
  border-color: #724047;
}

html[data-theme="dark"] .rollout-outcome--baseline {
  color: #c0ccda;
  background: #283546;
  border-color: #46576d;
}

html[data-theme="dark"] .paradigm-legend,
html[data-theme="dark"] .paradigm-card,
html[data-theme="dark"] .paradigm-card figcaption,
html[data-theme="dark"] .paradigm-card dl {
  color: var(--ink-2);
  background: var(--surface-1);
  border-color: var(--line);
}

html[data-theme="dark"] .paradigm-card dl {
  background: var(--surface-2);
}

html[data-theme="dark"] .paradigm-card--streaming figcaption,
html[data-theme="dark"] .paradigm-card--streaming dl,
html[data-theme="dark"] .paradigm-takeaway {
  background: #142d2c;
  border-color: #356c67;
}

html[data-theme="dark"] .paradigm-card dt,
html[data-theme="dark"] .paradigm-note,
html[data-theme="dark"] .paradigm-card__action {
  color: var(--muted);
}

html[data-theme="dark"] .paradigm-card dd,
html[data-theme="dark"] .paradigm-note strong {
  color: var(--ink-2);
}

html[data-theme="dark"] .paradigm-card__action:hover,
html[data-theme="dark"] .paradigm-card__action:focus-visible,
html[data-theme="dark"] .sf-stage__view:hover,
html[data-theme="dark"] .sf-stage__view:focus-visible {
  color: var(--blue-deep);
  background: var(--surface-3);
}

html[data-theme="dark"] .paradigm-takeaway > strong,
html[data-theme="dark"] .paradigm-takeaway ul,
html[data-theme="dark"] .paradigm-takeaway li strong,
html[data-theme="dark"] .paradigm-card--streaming dl div:last-child dd {
  color: #8bd9cf;
}

html[data-theme="dark"] .sf-stage-list,
html[data-theme="dark"] .sf-stage-switcher.is-enhanced .sf-stage-list,
html[data-theme="dark"] .sf-stage,
html[data-theme="dark"] .sf-stage__equation {
  border-color: var(--line);
}

html[data-theme="dark"] .sf-stage__media,
html[data-theme="dark"] .sf-stage__media-footer,
html[data-theme="dark"] .clock-comparison {
  background: var(--surface-1);
  border-color: var(--line);
}

html[data-theme="dark"] .sf-stage__media-footer {
  background: var(--surface-2);
}

html[data-theme="dark"] .sf-stage__view,
html[data-theme="dark"] .clock-comparison span,
html[data-theme="dark"] .clock-comparison__arrow {
  color: var(--muted);
}

html[data-theme="dark"] .sf-stage__note {
  color: #8be0d5;
  background: #14312f;
  border-color: #356b66;
}

html[data-theme="dark"] .sf-stage-tab {
  color: #b7c4d4;
  background: var(--surface-1);
  border-color: var(--line);
}

html[data-theme="dark"] .sf-stage-tab:hover {
  color: var(--blue-deep);
  background: var(--surface-2);
  border-color: #4a6078;
}

html[data-theme="dark"] .sf-stage-tab.is-active,
html[data-theme="dark"] .sf-stage-tab[aria-selected="true"] {
  color: #ffffff;
  background: #2f6fca;
  border-color: #4c8ce3;
}

html[data-theme="dark"] .plain-language-goal,
html[data-theme="dark"] .impact-callout,
html[data-theme="dark"] .why-work-callout,
html[data-theme="dark"] .method-mse-note,
html[data-theme="dark"] .derivation-note,
html[data-theme="dark"] .method-technical-note,
html[data-theme="dark"] .bifurcation-model-comparison__intro {
  color: var(--ink-2) !important;
  background: var(--surface-1);
  border-color: #53647a;
}

html[data-theme="dark"] .bifurcation-figure-card,
html[data-theme="dark"] .training-card,
html[data-theme="dark"] .inference-card,
html[data-theme="dark"] .results-panel,
html[data-theme="dark"] .paper-figure {
  color: var(--ink-2);
  background: var(--surface-1);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .training-card {
  background: #17281f;
  border-color: #355544;
}

html[data-theme="dark"] .inference-card {
  background: #252136;
  border-color: #504663;
}

html[data-theme="dark"] .training-card h3 {
  background: #315a43;
}

html[data-theme="dark"] .inference-card h3 {
  background: #594d73;
}

html[data-theme="dark"] .method-card p,
html[data-theme="dark"] .method-mse-note p,
html[data-theme="dark"] .derivation-note,
html[data-theme="dark"] .method-technical-note,
html[data-theme="dark"] .bifurcation-model-comparison__intro {
  color: var(--ink-2) !important;
}

html[data-theme="dark"] .bifurcation-figure-card .research-figure figcaption,
html[data-theme="dark"] .bifurcation-posterior-inset,
html[data-theme="dark"] .bifurcation-technical-details[open] > summary,
html[data-theme="dark"] .bifurcation-model__result + .bifurcation-model__result {
  border-color: var(--line);
}

html[data-theme="dark"] .bifurcation-figure-card .bifurcation-control--shared,
html[data-theme="dark"] .bifurcation-figure-card .bifurcation-control--segments,
html[data-theme="dark"] .bifurcation-control--shared,
html[data-theme="dark"] .energy-alpha-control {
  color: var(--ink-2);
  background: var(--surface-2);
  border-color: var(--line);
}

html[data-theme="dark"] .bifurcation-control__derived,
html[data-theme="dark"] .bifurcation-model__result dt,
html[data-theme="dark"] .bifurcation-model__conclusion,
html[data-theme="dark"] .bifurcation-model__live,
html[data-theme="dark"] .alignment-example__calculation {
  color: var(--ink-2);
  background: var(--surface-2);
  border-color: var(--line);
}

html[data-theme="dark"] .bifurcation-segments {
  background: var(--surface-3);
}

html[data-theme="dark"] .bifurcation-segments label {
  color: var(--muted);
}

html[data-theme="dark"] .bifurcation-segments input:checked + label {
  color: var(--ink);
  background: var(--surface-1);
}

html[data-theme="dark"] .bifurcation-figure-card .bifurcation-readout {
  background: var(--line);
  border-color: var(--line);
}

html[data-theme="dark"] .bifurcation-figure-card .bifurcation-readout > div {
  background: var(--surface-2);
}

html[data-theme="dark"] .bifurcation-figure-card .bifurcation-readout dt,
html[data-theme="dark"] .bifurcation-model__result dt small,
html[data-theme="dark"] .bifurcation-model__caveat,
html[data-theme="dark"] .bifurcation-model__header > p:last-child,
html[data-theme="dark"] .bifurcation-model__conclusion p {
  color: var(--muted);
}

html[data-theme="dark"] .bifurcation-model__results {
  border-color: var(--line);
}

html[data-theme="dark"] .bifurcation-model__result dt strong {
  color: var(--ink);
}

html[data-theme="dark"] .proposition {
  --proposition-background: #17283a;
  --proposition-border: #3b5874;
  --proposition-accent: #83c4fa;
}

html[data-theme="dark"] .proposition--energy {
  --proposition-background: #162a24;
  --proposition-border: #3a6658;
  --proposition-accent: #7cd3ad;
}

html[data-theme="dark"] .proposition p,
html[data-theme="dark"] .alignment-example p,
html[data-theme="dark"] .alignment-example li {
  color: var(--ink-2);
}

html[data-theme="dark"] .energy-prediction-switch > div {
  border-color: var(--line);
}

html[data-theme="dark"] .energy-prediction-switch button {
  color: var(--ink-2);
  background: var(--surface-1);
  border-color: var(--line);
}

html[data-theme="dark"] .energy-prediction-switch button:hover {
  background: var(--surface-3);
}

html[data-theme="dark"] .energy-prediction-switch button[aria-pressed="true"] {
  color: var(--blue-deep);
  background: #1a3550;
}

html[data-theme="dark"] .energy-alpha-control__label-row,
html[data-theme="dark"] .energy-prediction-switch__label,
html[data-theme="dark"] .energy-alpha-control__ticks,
html[data-theme="dark"] .energy-alpha-control__readout,
html[data-theme="dark"] .energy-alpha-control > p,
html[data-theme="dark"] .energy-bound-figure figcaption,
html[data-theme="dark"] .energy-alpha-figure figcaption,
html[data-theme="dark"] .energy-figure-heading p {
  color: var(--muted);
}

html[data-theme="dark"] .energy-alpha-control__readout [data-energy-alpha-regime],
html[data-theme="dark"] .energy-alpha-control__readout output {
  color: var(--ink);
}

html[data-theme="dark"] .forecast-table-block + .forecast-table-block,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] .forecast-dataset-row,
html[data-theme="dark"] .forecast-gallery {
  border-color: var(--line);
}

html[data-theme="dark"] thead th,
html[data-theme="dark"] .forecast-table thead th:first-child,
html[data-theme="dark"] .world-model-results-table .world-model-task-header {
  color: var(--ink-2);
  background: var(--surface-2);
}

html[data-theme="dark"] tbody th,
html[data-theme="dark"] .forecast-table tbody th {
  color: var(--ink-2);
  background: var(--surface-1);
  box-shadow: 1px 0 0 var(--line);
}

html[data-theme="dark"] .forecast-table tbody td {
  color: var(--ink-2);
}

html[data-theme="dark"] .forecast-table .system-header--pendulum,
html[data-theme="dark"] .forecast-table .system-column--pendulum {
  background: #1a2d45;
}

html[data-theme="dark"] .forecast-table .system-header--rossler,
html[data-theme="dark"] .forecast-table .system-column--rossler {
  background: #1a312a;
}

html[data-theme="dark"] .forecast-table .system-header--lorenz,
html[data-theme="dark"] .forecast-table .system-column--lorenz {
  background: #38291f;
}

html[data-theme="dark"] .ours-row th,
html[data-theme="dark"] .ours-row td,
html[data-theme="dark"] .forecast-table .ours-row th {
  background: #173653;
}

html[data-theme="dark"] .dataset-jump,
html[data-theme="dark"] .figure-selector {
  color: var(--ink-2);
  background: var(--surface-2);
  border-color: var(--line);
}

html[data-theme="dark"] .dataset-jump[aria-selected="true"],
html[data-theme="dark"] .figure-selector button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--dataset-color, #2f6fca);
  border-color: var(--dataset-color, #2f6fca);
}

html[data-theme="dark"] .figure-selector button {
  color: var(--ink-2);
}

html[data-theme="dark"] .citation-card {
  color: #d8e3f2;
  background: #09111b;
  border-color: #31475f;
  box-shadow: var(--shadow-lg);
}

html[data-theme="dark"] .citation-toolbar {
  background: #101c2b;
}

html[data-theme="dark"] .citation-card code {
  color: #d7e4f3;
}

/* Scientific media keep their authored light plotting canvas in both themes. */
.paradigm-media,
.paradigm-media > img,
.hero-result-media,
.hero-result-media > img,
.hero-result-media > video,
.rollout-video-card video,
.sf-stage__media img,
.forecast-panel__image,
.bifurcation-plot,
.energy-bound-plot,
.energy-alpha-plot {
  background: var(--figure-paper);
  filter: none;
}

@media (max-width: 780px) {
  .header-actions {
    gap: 4px;
  }

  html[data-theme="dark"] .site-nav {
    background: rgba(15, 22, 32, 0.99);
  }

  html[data-theme="dark"] .rollout-video-card + .rollout-video-card,
  html[data-theme="dark"] .hero-result-showcase .rollout-video-card + .rollout-video-card {
    border-top-color: var(--line);
    box-shadow: none;
  }
}

@media (max-width: 360px) {
  .brand span {
    max-width: 145px;
  }
}

@media print {
  .theme-toggle {
    display: none;
  }

  html[data-theme="dark"] {
    --ink: #172033;
    --ink-2: #303a4b;
    --muted: #687386;
    --line: #d9dee6;
    --section-base: #ffffff;
    --section-alt: #f6f7f8;
    --surface-1: #ffffff;
    --surface-2: #f2f4f7;
    --surface-3: #e9edf2;
    color-scheme: light;
  }
}

@media (max-width: 420px) {
  .bifurcation-plot .plot-paper-explanation,
  .bifurcation-plot .plot-tube-label {
    display: none;
  }

  .bifurcation-plot .plot-paper-callout {
    font-size: 12.5px;
  }

  .bifurcation-plot .plot-paper-gap {
    font-size: 12px;
  }

  .bifurcation-panel--sensitivity .plot-sensitivity-tick {
    font-size: 10.5px;
  }

  .bifurcation-panel--sensitivity .plot-sensitivity-axis-label {
    font-size: 11px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Academic project-page revision ---------------------------------------- */
:root {
  --ink: #172033;
  --ink-2: #303a4b;
  --muted: #687386;
  --line: #d9dee6;
  --paper: #fdfdfc;
  --soft: #f6f7f8;
  --navy: #17324f;
  --navy-deep: #10263e;
  --blue: #286a9f;
  --blue-deep: #1f5887;
  --violet: #6553a6;
  --teal: #187f78;
  --shadow-sm: 0 2px 12px rgba(23, 32, 51, 0.05);
  --shadow-lg: 0 4px 22px rgba(23, 32, 51, 0.06);
  --radius-sm: 4px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --container: 1080px;
  --narrow: 780px;
}

html {
  scroll-padding-top: 70px;
}

body {
  color: var(--ink-2);
  background: var(--paper);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

.section {
  padding: 86px 0;
}

.section-soft {
  background: var(--soft);
}

.eyebrow,
.section-number {
  margin: 0 0 11px;
  color: var(--blue-deep);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: clamp(1.95rem, 3.8vw, 2.75rem);
  letter-spacing: -0.027em;
  line-height: 1.12;
}

.article-heading {
  text-align: left;
}

.article-heading > p:last-child {
  max-width: none;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Restrained publication header */
.site-header,
.site-header.is-scrolled,
.site-header.is-open {
  height: 60px;
  background: rgba(253, 253, 252, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-shell {
  width: min(calc(100% - 40px), 1180px);
}

.brand {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.brand-mark {
  width: 27px;
  height: 27px;
  stroke: var(--blue-deep);
  stroke-width: 2;
}

.site-nav {
  gap: 22px;
}

.site-nav a {
  color: #4f5968;
  font-size: 0.74rem;
  font-weight: 600;
}

.site-nav a::after {
  bottom: -6px;
  height: 1px;
  background: var(--blue-deep);
}

/* Text-first paper hero */
.hero {
  padding: 116px 0 44px;
  background: var(--paper);
}

.hero::after,
.hero-glow {
  display: none;
}

.hero-content {
  max-width: 1180px;
}

.hero h1 {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  letter-spacing: -0.043em;
  line-height: 1.02;
}

.hero-deck {
  margin: 13px auto 24px;
  color: #3f4a5c;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.22rem, 2.4vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.authors {
  font-size: 0.92rem;
  font-weight: 600;
  gap: 2px 19px;
}

.affiliations {
  margin-top: 7px;
  font-size: 0.72rem;
  gap: 0 14px;
}

.hero-actions {
  margin-top: 25px;
  gap: 8px;
}

.button {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 650;
  gap: 7px;
  box-shadow: none;
}

.button:hover,
.button:focus-visible {
  transform: none;
}

.button-primary,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-deep);
  box-shadow: none;
}

.button-dark,
.button-dark:hover,
.button-dark:focus-visible,
.button-ghost,
.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--ink);
  background: white;
  border-color: #c9d0da;
  box-shadow: none;
}

.hero-figure {
  max-width: 980px;
  margin: 52px auto 0;
  padding: 0;
  border: 0;
}

.hero-figure img {
  border: 1px solid var(--line);
  border-radius: 4px;
}

.paper-figure {
  padding: 10px;
  border-color: var(--line);
  border-radius: 5px;
  box-shadow: none;
}

.paper-figure img {
  border-radius: 2px;
}

.paper-figure figcaption,
.bifurcation-fallback p {
  max-width: none;
  margin: 11px 2px 0;
  color: #667184;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  line-height: 1.55;
  text-align: left;
}

.paper-figure figcaption strong,
.research-figure figcaption strong {
  color: #3d4758;
  font-weight: 650;
}

/* Abstract and findings */
.section-intro {
  padding-top: 66px;
  border-top: 1px solid #eceef1;
}

.tldr {
  display: grid;
  margin-bottom: 42px;
  padding: 22px 24px;
  color: var(--ink-2);
  background: #f3f5f6;
  border: 0;
  border-left: 3px solid #8196aa;
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: 88px 1fr;
  gap: 20px;
}

.tldr-label {
  padding-top: 2px;
  color: #52677c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tldr p {
  color: #293547;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.55;
}

.stats {
  margin: 10px 0 0;
  border-width: 1px 0;
  border-radius: 0;
}

.results-kicker {
  margin: 52px 0 8px;
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stat {
  min-height: 0;
  padding: 22px 24px;
  background: transparent;
}

.stat strong {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
}

.stat span {
  font-size: 0.7rem;
  font-weight: 500;
}

.abstract-copy {
  margin-top: 27px;
  color: #364153;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.82;
  text-align: left;
}

/* Motivation: proposition -> SF and sensitivity -> latent resolution */
.section-motivation {
  background: #f8f8f6;
  border-top: 1px solid #e5e6e7;
  border-bottom: 1px solid #e5e6e7;
}

.article-container {
  max-width: 1040px;
}

.motivation-heading {
  max-width: none;
  margin-bottom: 40px;
}

.bifurcation-demo {
  margin: 0;
}

.bifurcation-demo__interactive {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.motivation-block {
  padding: 52px 0 58px;
  border-top: 1px solid #cfd4da;
}

.motivation-block:last-of-type {
  padding-bottom: 4px;
}

.motivation-block__header {
  display: block;
  max-width: 920px;
  margin-bottom: 28px;
}

.motivation-block__header > span {
  padding-top: 1px;
  color: #7b8794;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
}

.motivation-block__header p {
  margin: 0 0 3px;
  color: var(--blue-deep);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.motivation-block__header h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.ground-truth-layout,
.latent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.82fr);
  gap: 44px;
  align-items: start;
}

.ground-truth-copy,
.latent-copy {
  min-width: 0;
}

.ground-truth-copy > p,
.latent-copy > p,
.motivation-lead {
  margin: 0;
  color: #465163;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  line-height: 1.72;
}

.motivation-equation {
  margin: 18px 0 22px;
  color: var(--ink);
  font-size: 1.02rem;
  text-align: center;
}

.motivation-equation .katex-display,
.motivation-equation .katex-display > .katex {
  text-align: center;
}

.motivation-equation--field {
  margin: 16px 0 28px;
  font-size: 1.08rem;
}

.notation-list {
  display: grid;
  margin: 22px 0 28px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.notation-list > div {
  min-width: 0;
}

.notation-list dt,
.notation-list dd {
  margin: 0;
}

.notation-list dt {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.notation-list dd {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.proposition {
  --proposition-accent: #315f91;
  --proposition-background: #f3f7fb;
  --proposition-border: #c7d5e4;
  margin-top: 30px;
  padding: 26px 30px 27px;
  background: var(--proposition-background);
  border: 1px solid var(--proposition-border);
  border-left: 4px solid var(--proposition-accent);
  border-radius: 4px;
}

.proposition--energy {
  --proposition-accent: #42735f;
  --proposition-background: #f3f7f4;
  --proposition-border: #cad9d0;
}

.proposition__label {
  margin-bottom: 2px;
  color: var(--proposition-accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.proposition h4 {
  margin: 0 0 15px;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.25;
}

.proposition p {
  margin: 10px 0 4px;
  color: #505b6b;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.62;
}

.proposition__equation {
  color: var(--ink);
  font-size: 1.02rem;
  text-align: center;
}

.proposition__equation .katex-display,
.proposition__equation .katex-display > .katex {
  text-align: center;
}

.proposition__equation--wide {
  font-size: 1rem;
}

.proposition__conclusion {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
  color: var(--ink);
  font-size: 0.98rem;
  text-align: center;
}

.proposition__conclusion .katex-display,
.proposition__conclusion .katex-display > .katex {
  text-align: center;
}

.research-figure {
  min-width: 0;
  margin: 0;
}

.research-figure h4 {
  margin: 0 0 10px;
  color: #3d4859;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.research-figure figcaption {
  margin: 10px 2px 0;
  color: #687386;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: left;
}

.bifurcation-plot {
  background: white;
  border-color: #d7dce2;
  border-radius: 3px;
}

.sf-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.bifurcation-plot-key {
  margin-top: 9px;
  color: #5c6879;
  font-size: 0.76rem;
  font-weight: 600;
}

.bifurcation-readout {
  min-height: 42px;
  margin-top: 10px;
  padding: 9px 10px;
  color: #586578;
  background: #f0f2f4;
  border-radius: 2px;
  font-size: 0.68rem;
  gap: 7px;
}

.bifurcation-control--shared {
  margin-top: 30px;
  padding: 19px 22px 17px;
  background: #f2f3f4;
  border: 1px solid #d8dce1;
}

.bifurcation-control--shared .bifurcation-control__label-row {
  margin-bottom: 6px;
}

.bifurcation-control__derived {
  margin-top: 8px;
  padding: 7px 10px;
  background: white;
  border: 1px solid #e0e3e7;
  border-radius: 2px;
}

.bifurcation-control--shared > p {
  max-width: 780px;
  margin-top: 9px;
  font-size: 0.76rem;
}

.latent-result {
  margin: 14px 0 22px;
  color: var(--ink);
  font-size: 0.96rem;
  text-align: center;
}

.latent-result .katex-display,
.latent-result .katex-display > .katex {
  text-align: center;
}

.academic-note {
  padding-left: 14px;
  border-left: 2px solid #a8b2bd;
  color: #5c6675 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 0.72rem !important;
  line-height: 1.55 !important;
}

.latent-copy .vsf-bridge {
  margin-top: 17px;
  color: #344153;
  font-weight: 500;
}

.bifurcation-control--segments {
  margin-top: 22px;
  padding-top: 17px;
}

.bifurcation-segments {
  background: #e5e8eb;
  border-radius: 3px;
}

.bifurcation-segments label,
.bifurcation-segments input:checked + label {
  border-radius: 2px;
  box-shadow: none;
}

/* Keep later sections visually consistent with a research article. */
.method-heading,
.results-heading {
  max-width: none;
  margin-bottom: 42px;
}

.method-derivation {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.method-subheading {
  margin-bottom: 20px;
}

.method-subheading h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.method-subheading > p:last-child {
  margin: 12px 0 0;
  color: #505c6d;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.68;
}

.method-derivation > p,
.derivation-block > p {
  max-width: 920px;
  margin: 0;
  color: #505c6d;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.7;
}

.derivation-block {
  margin-top: 34px;
  padding-top: 29px;
  border-top: 1px solid #e0e4e9;
}

.derivation-block h4 {
  margin: 0 0 11px;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.derivation-equation,
.conditional-mean-equation,
.training-objective-equation {
  max-width: 100%;
  margin: 20px 0;
  padding: 3px 0 5px;
  overflow-x: auto;
  color: var(--ink);
  font-size: 1rem;
  text-align: center;
  scrollbar-width: thin;
}

.derivation-equation--wide,
.training-objective-equation {
  font-size: 0.92rem;
}

.derivation-equation .katex-display,
.derivation-equation .katex-display > .katex,
.conditional-mean-equation .katex-display,
.conditional-mean-equation .katex-display > .katex,
.training-objective-equation .katex-display,
.training-objective-equation .katex-display > .katex {
  text-align: center;
}

.method-mse-note {
  max-width: 920px;
  margin-top: 25px;
  padding: 16px 19px 17px;
  background: #f4f6f8;
  border-left: 3px solid #6f8faf;
}

.method-mse-note h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  line-height: 1.4;
}

.method-mse-note p {
  margin: 0;
  color: #505c6d;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.96rem;
  line-height: 1.65;
}

.derivation-note {
  max-width: 920px;
  margin: 20px 0 0 !important;
  padding: 11px 14px;
  color: #596577 !important;
  background: #f5f6f8;
  border-left: 3px solid #9baabc;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 0.75rem !important;
  line-height: 1.55 !important;
}

.method-equation {
  max-width: 780px;
  margin: 18px auto 28px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.equation {
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.method-grid {
  max-width: 1040px;
  gap: 28px;
  align-items: stretch;
}

.method-card,
.training-card,
.inference-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d3d9d4;
  border-radius: 6px;
}

.training-card {
  background: #f5f8f5;
  border-color: #cfd8cf;
}

.inference-card {
  background: #f7f6fa;
  border-color: #d7d3e1;
}

.method-card h3 {
  margin: 0;
  padding: 8px 26px 9px;
  color: white;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.training-card h3 {
  background: #aebdaf;
}

.inference-card h3 {
  background: #beb8cf;
}

.method-card__body {
  padding: 20px 26px 23px;
}

.method-card p {
  margin: 0;
  color: #343c48;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.58;
}

.method-card__equation {
  margin: 7px 0 11px;
  color: var(--ink);
  font-size: 0.94rem;
}

.method-card__equation .katex-display {
  margin: 0.72rem 0;
}

.objective-panel {
  display: block;
  max-width: 1040px;
  margin: 58px auto 0;
  padding: 42px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.objective-copy {
  max-width: 920px;
}

.objective-copy h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.objective-copy p:not(.eyebrow):not(.subsection-number),
.objective-explanation {
  max-width: 920px;
  color: #505c6d;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.68;
}

.objective-equation {
  margin: 24px 0 0;
  padding: 0;
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.92rem;
  text-align: center;
}

.objective-equation .katex-display,
.objective-equation .katex-display > .katex {
  text-align: center;
}

.objective-explanation {
  margin: 15px 0 0;
}

.conditional-mean-equation {
  max-width: 920px;
  margin: 18px 0 16px;
  font-size: 1.05rem;
}

.training-objective-equation {
  margin: 19px 0 17px;
}

.section-results {
  color: var(--ink-2);
  background: #f2f3f4;
  border-top: 1px solid #e0e2e5;
  border-bottom: 1px solid #e0e2e5;
}

.light-heading .eyebrow {
  color: var(--blue-deep);
}

.light-heading h2 {
  color: var(--ink);
}

.light-heading > p {
  color: var(--muted);
}

.dark-figure {
  background: white;
  border-color: var(--line);
}

.results-panel {
  border-color: var(--line);
  border-radius: 5px;
  box-shadow: none;
}

.benchmark-note {
  color: #596578;
  background: #e8eaed;
  border-color: #d8dce1;
  border-radius: 3px;
}

.benchmark-note strong {
  color: var(--blue-deep);
}

.citation-section {
  padding: 72px 0 78px;
  background: #f4f8f7;
  border-top: 1px solid #e0e6e5;
}

.citation-container {
  max-width: 1000px;
}

.citation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.citation-heading h2 {
  position: relative;
  margin: 0;
  padding-bottom: 11px;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.citation-heading h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--teal);
  content: "";
}

.citation-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.citation-copy,
.citation-top {
  display: inline-flex;
  min-height: 42px;
  border: 0;
  align-items: center;
  justify-content: center;
}

.citation-copy {
  padding: 0 16px;
  color: white;
  background: #173b42;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(23, 59, 66, 0.16);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  gap: 8px;
}

.citation-copy:hover,
.citation-copy:focus-visible {
  background: #0f3036;
}

.citation-copy svg,
.citation-top svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.citation-top {
  width: 42px;
  color: white;
  background: var(--teal);
  border-radius: 50%;
}

.citation-top:hover,
.citation-top:focus-visible {
  background: #116c67;
}

.citation-card {
  margin-top: 24px;
  color: #173047;
  background: #f1f4f8;
  border: 1px solid #d8e0e8;
  border-radius: 6px;
  box-shadow: none;
}

.citation-card pre {
  margin: 0;
  padding: 23px 25px;
  overflow-x: auto;
}

.citation-card code {
  color: #173047;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 15px;
  }

  .site-nav a {
    font-size: 0.69rem;
  }
}

@media (max-width: 960px) {
  .ground-truth-layout,
  .latent-layout {
    grid-template-columns: 1fr;
  }

  .ground-truth-figure,
  .latent-figure {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .motivation-equation--field {
    margin-left: 0;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 64px;
  }

  .site-header,
  .site-header.is-scrolled,
  .site-header.is-open {
    height: 56px;
  }

  .brand span {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav {
    top: 56px;
  }

  .hero {
    padding: 98px 0 40px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.8rem);
  }

  .tldr {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .stats {
    margin-bottom: 0;
  }

  .sf-evidence-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sf-evidence-grid .research-figure {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .motivation-equation--field {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 64px 0;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-deck {
    font-size: 1.14rem;
  }

  .hero-figure {
    margin-right: 0;
    margin-left: 0;
  }

  .paper-figure {
    padding: 8px;
    border-radius: 3px;
  }

  .motivation-block {
    padding: 42px 0 47px;
  }

  .motivation-block__header {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 10px;
  }

  .motivation-block__header > span {
    font-size: 1.35rem;
  }

  .notation-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .proposition {
    padding: 21px 18px 22px;
  }

  .proposition__equation,
  .proposition__equation--wide {
    font-size: 1rem;
  }

  .bifurcation-demo__interactive {
    margin: 0;
    padding: 0;
  }

  .bifurcation-control--shared {
    padding: 16px 13px 14px;
  }

  .research-figure figcaption {
    font-size: 0.75rem;
  }

  .objective-panel {
    padding: 32px 0 0;
  }

  .objective-equation {
    padding: 0;
    font-size: 0.92rem;
  }

  .citation-section {
    padding: 58px 0 62px;
  }

  .citation-heading {
    gap: 12px;
  }

  .citation-heading h2 {
    font-size: 1.45rem;
  }

  .citation-copy {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .citation-top {
    width: 38px;
    min-height: 38px;
  }

  .citation-card pre {
    padding: 19px 17px;
  }

  .citation-card code {
    font-size: 0.72rem;
  }
}

/* Population energy reconstruction and alpha diagnostic */
.objective-panel[data-energy-demo] {
  --energy-active: #1f6fb2;
  --energy-active-soft: #dcebf7;
  --energy-truth: #c5672c;
  --energy-warning: #a84338;
}

.energy-theory {
  --energy-active: #1f6fb2;
  --energy-active-soft: #dcebf7;
  --energy-truth: #c5672c;
  --energy-warning: #a84338;
  max-width: 1040px;
  margin: 50px auto 0;
  padding-top: 0;
  border-top: 0;
}

.energy-theory__header {
  max-width: 790px;
}

.energy-theory__header h3,
.energy-interactive__header h4,
.alignment-example h5 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.energy-theory__header h3 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
}

.energy-theory__header > p:last-child,
.energy-theory__takeaway,
.energy-interactive__header > p,
.alignment-example > p {
  color: #505c6d;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.7;
}

.energy-theory__header > p:last-child {
  margin: 15px 0 0;
}

.energy-bridge {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr);
  align-items: stretch;
}

.energy-bridge__track {
  min-width: 0;
  padding: 22px 20px;
}

.energy-bridge__label,
.energy-kicker {
  display: block;
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.energy-bridge__flow {
  display: flex;
  min-width: 0;
  color: var(--ink);
  align-items: center;
  gap: 8px;
}

.energy-bridge__flow > span {
  min-width: 0;
  font-size: 0.76rem;
  white-space: nowrap;
}

.energy-bridge__flow i {
  color: #8a96a5;
  font-size: 0.82rem;
  font-style: normal;
}

.energy-bridge__track small {
  display: block;
  margin-top: 8px;
  color: #647082;
  font-size: 0.69rem;
  line-height: 1.5;
}

.energy-bridge__alignment {
  display: flex;
  padding: 20px 14px;
  color: var(--ink);
  background: #f3f5f7;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-size: 0.78rem;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.energy-bridge__alignment small {
  margin-top: 4px;
  color: #667386;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.energy-bound-equation {
  max-width: 860px;
  margin: 24px auto 12px;
  color: var(--ink);
  font-size: 1.03rem;
  text-align: center;
}

.energy-theory__takeaway {
  max-width: 790px;
  margin: 0;
  text-align: left;
}

.energy-interactive {
  margin-top: 30px;
  padding-top: 0;
  border-top: 0;
}

.energy-interactive__intro {
  max-width: 920px;
  margin: 0;
  color: #505c6d;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.68;
}

.energy-interactive__intro strong {
  color: var(--ink);
  font-weight: 650;
}

.energy-interactive__header {
  display: block;
  max-width: 920px;
}

.illustration-label {
  margin: 0 0 8px !important;
  color: var(--blue-deep) !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 0.66rem !important;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.energy-interactive__header h4,
.alignment-example h5 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.energy-interactive__header > p {
  margin: 12px 0 0;
  font-size: 0.94rem;
  line-height: 1.68;
}

.energy-alpha-control {
  margin-top: 18px;
  padding: 18px 20px 16px;
  background: #f5f7f9;
  border: 0;
  border-radius: 5px;
}

.energy-alpha-control__label-row {
  display: flex;
  margin-bottom: 6px;
  color: #4d596b;
  font-size: 0.76rem;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.energy-alpha-control__label-row label {
  font-weight: 700;
}

.energy-alpha-control__label-row strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.energy-prediction-switch {
  display: flex;
  margin: 10px 0 2px;
  align-items: center;
  gap: 12px;
}

.energy-prediction-switch__label {
  color: #596678;
  font-size: 0.7rem;
  font-weight: 700;
}

.energy-prediction-switch > div {
  display: inline-flex;
  border: 1px solid #ccd4df;
  border-radius: 4px;
  overflow: hidden;
}

.energy-prediction-switch button {
  min-height: 32px;
  padding: 5px 13px;
  color: #526075;
  background: #fff;
  border: 0;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.energy-prediction-switch button + button {
  border-left: 1px solid #ccd4df;
}

.energy-prediction-switch button:hover {
  background: #f5f7f9;
}

.energy-prediction-switch button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(31, 111, 178, 0.24);
  outline-offset: -3px;
}

.energy-prediction-switch button[aria-pressed="true"] {
  color: var(--blue-deep);
  background: #eaf3fa;
  box-shadow: inset 0 -2px 0 var(--energy-active);
  font-weight: 700;
}

.energy-alpha-control input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.energy-alpha-control input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: linear-gradient(
    to right,
    var(--energy-active) 0 var(--range-progress, 42.86%),
    #8793a2 var(--range-progress, 42.86%) 100%
  );
  border-radius: 999px;
}

.energy-alpha-control input[type="range"]::-moz-range-track {
  height: 5px;
  background: #8793a2;
  border-radius: 999px;
}

.energy-alpha-control input[type="range"]::-moz-range-progress {
  height: 5px;
  background: var(--energy-active);
  border-radius: 999px;
}

.energy-alpha-control input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7.5px;
  appearance: none;
  background: white;
  border: 5px solid var(--energy-active);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(16, 33, 61, 0.2);
}

.energy-alpha-control input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: white;
  border: 5px solid var(--energy-active);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(16, 33, 61, 0.2);
}

.energy-alpha-control input[type="range"]:focus-visible {
  outline: 3px solid rgba(31, 111, 178, 0.22);
  outline-offset: 2px;
  border-radius: 4px;
}

.energy-alpha-control__ticks {
  position: relative;
  height: 17px;
  margin-top: -2px;
  color: #687487;
  font-size: 0.61rem;
  font-weight: 650;
  line-height: 1;
}

.energy-alpha-control__ticks span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}

.energy-alpha-control__ticks span:first-child {
  transform: none;
}

.energy-alpha-control__ticks span:last-child {
  transform: translateX(-100%);
}

.energy-alpha-control__failure-tick {
  color: var(--energy-warning);
}

.energy-alpha-control__readout {
  display: flex;
  margin-top: 12px;
  padding: 0;
  border-top: 0;
  color: #617084;
  font-size: 0.72rem;
  line-height: 1.45;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.energy-alpha-control__readout [data-energy-alpha-regime] {
  color: var(--ink);
  font-weight: 400;
}

.energy-alpha-control__readout output {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.energy-alpha-control > p {
  margin: 8px 0 0;
  color: #697689;
  font-size: 0.69rem;
  line-height: 1.5;
}

.energy-interactive.is-alpha-failure {
  --energy-active: var(--energy-warning);
  --energy-active-soft: #f1ddda;
}

.energy-bound-figure,
.energy-alpha-figure {
  min-width: 0;
  margin: 0;
}

.energy-bound-figure {
  margin: 0;
}

.energy-figure-heading {
  display: flex;
  margin-bottom: 13px;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
}

.energy-figure-heading h5 {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
}

.energy-figure-heading p {
  max-width: 610px;
  margin: 0;
  color: #667386;
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: right;
}

.energy-bound-plot,
.energy-alpha-plot {
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #fcfcfd;
  border: 1px solid #dde2e8;
}

.energy-bound-plot {
  display: block;
  margin-inline: auto;
}

.energy-bound-figure figcaption,
.energy-alpha-figure figcaption {
  margin-top: 10px;
  color: #687487;
  font-size: 0.72rem;
  line-height: 1.52;
}

.energy-metric-guide {
  margin: 0;
  padding-left: 1.35em;
}

.energy-metric-guide li + li {
  margin-top: 4px;
}

.energy-bound-loss-subscript {
  font-size: 0.72em;
}

.energy-alpha-plots {
  display: grid;
  margin-top: 32px;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.energy-alpha-plots .energy-figure-heading {
  display: block;
  min-height: 0;
}

.energy-alpha-plots .energy-figure-heading p {
  margin-top: 4px;
  text-align: left;
}

.energy-failure-note {
  margin: 31px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: #4d5969;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.62;
  text-align: center;
}

/* SVG marks for the linked alpha visualizations. */
.energy-bound-plot text,
.energy-alpha-plot text {
  fill: #657286;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.energy-contour-image {
  image-rendering: auto;
}

.energy-contour-grid {
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 0.8;
}

.energy-contour-line {
  fill: none;
  opacity: 0.55;
  stroke: #526f89;
  stroke-linecap: round;
  stroke-width: 0.65;
}

.energy-contour-frame,
.energy-contour-colorbar-frame {
  fill: none;
  stroke: #8796aa;
  stroke-width: 1;
}

.energy-contour-colorbar-tick {
  stroke: #748298;
  stroke-width: 0.8;
}

.energy-contour-path {
  stroke: #356fae;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.energy-contour-truth {
  fill: #17233e;
  stroke: white;
  stroke-width: 1.5;
}

.energy-contour-truth-label {
  fill: #17233e !important;
  font-size: 9.5px;
  font-weight: 750;
}

.energy-contour-selected {
  fill: #1f6fb2;
  stroke: white;
  stroke-width: 2;
}

.energy-contour-selected--exact {
  fill: none;
  stroke: #1f6fb2;
  stroke-width: 2.5;
}

.energy-contour-selected-label {
  fill: #175f9d !important;
  font-size: 9px;
  font-weight: 750;
}

.energy-contour-alpha {
  fill: #27364e !important;
  font-size: 12px;
  font-weight: 750;
}

.energy-contour-alpha--failure,
.energy-contour-readout-value--failure {
  fill: var(--energy-warning) !important;
}

.energy-contour-legend-title,
.energy-contour-readout-heading {
  fill: #647186 !important;
  font-size: 9px;
  font-weight: 650;
}

.energy-contour-readout-pair {
  fill: #27364e !important;
  font-size: 12px;
  font-weight: 750;
}

.energy-contour-readout-value {
  fill: #1f6fb2 !important;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.energy-contour-low-note,
.energy-contour-valley-note {
  font-size: 8.5px;
  font-weight: 650;
}

.energy-contour-low-note {
  fill: #6b7789 !important;
}

.energy-contour-valley {
  stroke: #7a2d90;
  stroke-dasharray: 3 3;
  stroke-width: 2;
}

.energy-contour-valley-note {
  fill: #6f287f !important;
}

.energy-plot-grid {
  stroke: #e5e8ec;
  stroke-width: 1;
}

.energy-plot-axis {
  stroke: #718097;
  stroke-width: 1.2;
}

.energy-plot-tick {
  font-size: 10px;
}

.energy-plot-label {
  fill: #465368 !important;
  font-size: 10.5px;
  font-weight: 650;
}

.energy-plot-note {
  font-size: 9.5px;
}

.energy-plot-curve {
  fill: none;
  stroke: var(--energy-active);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.energy-plot-reference {
  fill: none;
  stroke: #8995a5;
  stroke-dasharray: 4 4;
  stroke-width: 1.2;
}

.energy-plot-minimum {
  fill: white;
  stroke: var(--energy-active);
  stroke-width: 3;
}

.energy-plot-selected {
  fill: var(--energy-truth);
  stroke: white;
  stroke-width: 2;
}

.energy-plot-selected-label {
  fill: var(--energy-truth) !important;
  font-size: 9.5px;
  font-weight: 700;
}

.energy-plot-failure-label {
  fill: var(--energy-warning) !important;
  font-size: 10px;
  font-weight: 700;
}

.energy-bound-axis {
  stroke: #78869a;
  stroke-width: 1.2;
}

.energy-bound-guide {
  stroke: #dfe4e9;
  stroke-dasharray: 3 4;
  stroke-width: 1;
}

.energy-bound-data {
  fill: var(--energy-truth);
  stroke: white;
  stroke-width: 2;
}

.energy-bound-prediction {
  fill: var(--energy-active);
  stroke: white;
  stroke-width: 2;
}

.energy-bound-link {
  fill: none;
  stroke: #77869a;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.energy-bound-link--unlikely {
  opacity: 0.52;
  stroke-dasharray: 4 4;
}

.energy-bound-diversity {
  fill: none;
  stroke: var(--energy-active);
  stroke-width: 1.5;
}

.energy-bound-meter-track {
  fill: #eef1f4;
}

.energy-bound-meter-distance {
  fill: var(--energy-active);
}

.energy-bound-meter-bound {
  fill: var(--energy-active-soft);
  stroke: var(--energy-active);
  stroke-width: 0.8;
}

.energy-bound-title {
  fill: #334155 !important;
  font-size: 11px;
  font-weight: 700;
}

.energy-bound-value {
  fill: #3f4c60 !important;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.energy-bound-warning {
  fill: var(--energy-warning) !important;
  font-size: 10px;
  font-weight: 700;
}

.alignment-example {
  display: block;
  max-width: 790px;
  margin-top: 28px;
  padding: 20px 0 19px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.alignment-example h5 {
  font-size: 1.08rem;
  letter-spacing: -0.012em;
}

.alignment-example > p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.62;
}

.alignment-example__steps {
  display: grid;
  gap: 5px;
  margin: 9px 0 0;
  padding-left: 1.15rem;
  color: #505c6d;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.88rem;
  line-height: 1.52;
}

.alignment-example__steps strong {
  color: var(--ink);
  font-weight: 650;
}

.alignment-example__calculation {
  min-width: 0;
  padding: 0;
  border: 0;
}

.alignment-example__calculation .math-display {
  margin: 9px 0 5px;
  color: var(--ink);
  font-size: 0.88rem;
}

.alignment-example__calculation .katex-display,
.alignment-example__calculation .katex-display > .katex {
  text-align: center;
}

@media (max-width: 900px) {
  .energy-bridge {
    grid-template-columns: 1fr;
  }

  .energy-bridge__alignment {
    padding: 14px;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .energy-alpha-plots {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .energy-bound-figure,
  .energy-alpha-figure {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .energy-alpha-plots .energy-figure-heading {
    min-height: 0;
  }
}

@media (max-width: 780px) {
  .energy-theory {
    margin-top: 44px;
    padding-top: 0;
  }

  .energy-interactive__header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .energy-figure-heading {
    display: block;
  }

  .energy-figure-heading p {
    margin-top: 5px;
    text-align: left;
  }

  .alignment-example {
    max-width: none;
  }

  .alignment-example__calculation {
    padding-left: 0;
  }
}

@media (max-width: 520px) {
  .energy-theory {
    margin-top: 38px;
    padding-top: 0;
  }

  .energy-theory__header h3 {
    font-size: 1.72rem;
  }

  .method-card h3 {
    padding-right: 20px;
    padding-left: 20px;
  }

  .method-card__body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .method-derivation {
    padding-top: 34px;
  }

  .derivation-equation,
  .conditional-mean-equation,
  .training-objective-equation,
  .objective-equation {
    font-size: 0.86rem;
  }

  .energy-bridge__track {
    padding: 19px 0;
  }

  .energy-bridge__flow {
    gap: 5px;
  }

  .energy-bridge__flow > span {
    font-size: 0.66rem;
  }

  .energy-bound-equation {
    font-size: 0.92rem;
  }

  .energy-alpha-control__readout {
    flex-direction: column;
    gap: 4px;
  }

  .energy-prediction-switch {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .energy-alpha-control__ticks span:nth-child(3) {
    display: none;
  }

  .energy-bound-plot {
    min-width: 0;
  }

  .energy-bound-plot .energy-plot-label,
  .energy-bound-title,
  .energy-bound-value {
    font-size: 13px;
  }

  .energy-bound-plot .energy-plot-note,
  .energy-bound-warning {
    font-size: 12px;
  }

  .energy-failure-note {
    font-size: 0.82rem;
    text-align: left;
  }
}

/* White, figure-led forecasting results */
.hero,
.section-intro,
.section-motivation,
#method,
.section-results,
#world-model,
.citation-section {
  background: #fff;
}

.section-motivation,
.section-results,
.citation-section {
  border-color: #e3e6ea;
}

.results-heading--standalone {
  max-width: none;
  margin-bottom: 54px;
}

.forecast-subsection {
  padding: 56px 0 72px;
  border-top: 1px solid #ccd2da;
}

.forecast-subsection:first-of-type {
  padding-top: 44px;
}

.forecast-subsection:last-child {
  padding-bottom: 0;
}

.forecast-subsection__heading {
  max-width: none;
  margin-bottom: 32px;
}

.subsection-number,
.figure-kicker {
  margin: 0 0 7px;
  color: var(--blue-deep);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.forecast-subsection__heading h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.forecast-subsection__heading > p:last-child {
  max-width: none;
  margin: 12px 0 0;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.65;
}

.forecast-subsection__heading > .world-model-plan-intro {
  max-width: none;
  margin: 12px 0 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.65;
}

.world-model-plan-list {
  display: grid;
  margin: 7px 0 0;
  padding-left: 1.35rem;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.65;
  gap: 4px;
}

.world-model-plan-list li {
  padding-left: 0.2rem;
}

.world-model-plan-list strong {
  color: var(--ink);
}

.world-model-plan-takeaway strong {
  color: var(--ink);
}

.forecast-subsection .results-table-figure {
  margin-bottom: 42px;
  border-color: #d6dbe2;
  background: #fff;
}

.forecast-table-block--first {
  margin-top: 24px;
}

.forecast-error-figure {
  max-width: 920px;
  margin: 0 auto 56px;
  padding: 14px;
  background: #fff;
}

.forecast-error-figure img {
  width: 100%;
  height: auto;
}

.forecast-gallery {
  width: min(1160px, calc(100vw - 48px));
  margin: 0 0 58px 50%;
  padding: 24px 0 0;
  border-top: 1px solid #d5dae1;
  transform: translateX(-50%);
}

.forecast-gallery:last-child {
  margin-bottom: 0;
}

.forecast-gallery__header {
  display: flex;
  margin-bottom: 18px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.forecast-gallery__header--plain {
  justify-content: flex-start;
}

.forecast-gallery__header h4 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.forecast-gallery__controls {
  display: flex;
  min-width: 0;
  flex-flow: row wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.dataset-jump-list {
  display: flex;
  max-width: 610px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.dataset-jump {
  display: inline-flex;
  min-height: 32px;
  padding: 6px 11px;
  color: var(--dataset-color);
  background: var(--dataset-background);
  border: 1px solid var(--dataset-border);
  border-radius: 3px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  align-items: center;
  cursor: pointer;
}

.dataset-jump:hover {
  border-color: var(--dataset-color);
}

.dataset-jump[aria-selected="true"] {
  color: #fff;
  background: var(--dataset-color);
  border-color: var(--dataset-color);
  box-shadow: 0 2px 7px color-mix(in srgb, var(--dataset-color) 22%, transparent);
}

.dataset-jump:focus-visible {
  outline: 2px solid var(--dataset-color);
  outline-offset: 2px;
}

.dataset-jump--pendulum-one,
.forecast-dataset-row--pendulum-one {
  --dataset-color: #2f6db2;
  --dataset-background: #eaf2fb;
  --dataset-border: #bfd3ea;
}

.dataset-jump--pendulum-two,
.forecast-dataset-row--pendulum-two {
  --dataset-color: #7655a6;
  --dataset-background: #f1edf8;
  --dataset-border: #d2c5e4;
}

.dataset-jump--rossler,
.forecast-dataset-row--rossler {
  --dataset-color: #24765e;
  --dataset-background: #eaf5f1;
  --dataset-border: #bddbce;
}

.dataset-jump--lorenz,
.forecast-dataset-row--lorenz {
  --dataset-color: #a95a18;
  --dataset-background: #fff2e6;
  --dataset-border: #edc9a8;
}

.figure-selector__label {
  display: block;
  margin: 0 0 6px;
  color: #778294;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: right;
  text-transform: uppercase;
}

.figure-selector {
  display: inline-flex;
  padding: 3px;
  background: #f2f4f7;
  border: 1px solid #d8dde4;
  border-radius: 4px;
  gap: 2px;
}

.figure-selector button {
  min-height: 32px;
  padding: 6px 12px;
  color: #556174;
  background: transparent;
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 650;
  cursor: pointer;
}

.figure-selector button[aria-pressed="true"] {
  color: #fff;
  background: var(--navy);
}

.figure-selector button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.figure-selector--samples button {
  width: 34px;
  padding-right: 0;
  padding-left: 0;
}

.figure-selector--samples .figure-selector__all {
  width: auto;
  padding-right: 10px;
  padding-left: 10px;
}

.forecast-comparison-scroll {
  width: 100%;
  padding-bottom: 5px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.forecast-comparison-scroll:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.forecast-comparison-strip {
  display: grid;
  min-width: 960px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.deterministic-comparison-matrix {
  min-width: 960px;
}

.lorenz-comparison-matrix {
  min-width: 960px;
}

.lorenz-sample-row {
  padding: 12px 0 16px;
  border-top: 1px solid #e0e4e9;
}

.lorenz-sample-row[hidden] {
  display: none;
}

.lorenz-comparison-matrix:not(.is-showing-all) .lorenz-sample-row:not([hidden]) {
  padding-top: 4px;
  border-top: 0;
}

.lorenz-sample-row:first-of-type {
  padding-top: 4px;
  border-top: 0;
}

.lorenz-sample-row:last-child {
  padding-bottom: 4px;
}

.lorenz-sample-row h5 {
  width: fit-content;
  margin: 0 0 7px;
  color: #6b7585;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.lorenz-sample-row .forecast-comparison-strip {
  min-width: 0;
}

.forecast-method-header {
  display: grid;
  margin-bottom: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.forecast-method-header span {
  color: #3c4758;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.forecast-dataset-row {
  padding: 20px 0 22px;
  border-top: 1px solid #e0e4e9;
  scroll-margin-top: 76px;
}

.forecast-dataset-row[hidden] {
  display: none;
}

.forecast-gallery--deterministic .forecast-dataset-row {
  padding: 0 0 4px;
  border-top: 0;
}

.forecast-gallery--deterministic .forecast-dataset-row h5 {
  display: none;
}

.forecast-dataset-row:first-of-type {
  padding-top: 8px;
  border-top: 0;
}

.forecast-dataset-row:last-child {
  padding-bottom: 4px;
}

.forecast-gallery--deterministic .forecast-dataset-row:first-of-type {
  padding-top: 0;
}

.forecast-dataset-row h5 {
  display: flex;
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 9px;
  color: var(--dataset-color);
  background: var(--dataset-background);
  border-left: 3px solid var(--dataset-color);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.2;
  align-items: baseline;
  gap: 7px;
}

.forecast-dataset-row h5 span {
  color: #6f7682;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.forecast-dataset-row .forecast-comparison-strip {
  min-width: 0;
}

.forecast-panel > p {
  display: flex;
  min-height: 2.1em;
  margin: 0 0 7px;
  color: #3c4758;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  align-items: flex-end;
  justify-content: center;
}

.forecast-panel__image {
  overflow: hidden;
  background: #fff;
  border: 1px solid #c9ced6;
}

.forecast-comparison-strip--deterministic .forecast-panel__image {
  aspect-ratio: 306 / 270;
}

.forecast-comparison-strip--stochastic .forecast-panel__image {
  aspect-ratio: 306 / 270;
}

.forecast-panel__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* The 2D source plots use an asymmetric Matplotlib canvas. Center the
   embedded axes without resizing or clipping any plotted trajectory. */
.forecast-gallery--deterministic .forecast-dataset-row--pendulum-one .forecast-panel:first-child img,
.forecast-gallery--deterministic .forecast-dataset-row--pendulum-two .forecast-panel:first-child img,
.forecast-gallery--deterministic .forecast-dataset-row--lorenz .forecast-panel:first-child img,
.lorenz-sample-gallery .forecast-panel:first-child img,
.forecast-gallery--deterministic .forecast-dataset-row--pendulum-one img[data-forecast-media="animated"],
.forecast-gallery--deterministic .forecast-dataset-row--pendulum-two img[data-forecast-media="animated"],
.forecast-gallery--deterministic .forecast-dataset-row--lorenz img[data-forecast-media="animated"],
.lorenz-sample-gallery img[data-forecast-media="animated"] {
  transform: translate(-6.5359%, 6.6667%);
}

.lorenz-sample-gallery img[data-forecast-media="static"] {
  transform: scale(0.82);
}

.forecast-gallery > figcaption {
  width: 100%;
  max-width: none;
  margin: 13px 0 0;
  color: #667184;
  font-size: 0.74rem;
  line-height: 1.58;
}

.forecast-gallery > figcaption strong {
  color: #3d4758;
  font-weight: 650;
}

.sample-readout {
  margin: 7px 0 0;
  color: #7a8493;
  font-size: 0.67rem;
}

@media (max-width: 940px) {
  .forecast-gallery__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .forecast-gallery__controls {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .figure-selector__label {
    text-align: left;
  }

  .dataset-jump-list {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .results-heading--standalone {
    margin-bottom: 42px;
  }

  .forecast-subsection {
    padding: 46px 0 58px;
  }

  .forecast-gallery {
    width: calc(100vw - 32px);
    margin-bottom: 48px;
  }

  .forecast-gallery__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .forecast-gallery__controls {
    width: 100%;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .figure-selector__label {
    text-align: left;
  }

  .dataset-jump-list {
    width: 100%;
    max-width: none;
    padding-bottom: 3px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .dataset-jump {
    flex: 0 0 auto;
  }

  .figure-selector {
    max-width: calc(100vw - 32px);
    overflow-x: auto;
  }

  .forecast-comparison-strip {
    min-width: 880px;
  }
}

@media (max-width: 520px) {
  .forecast-subsection .results-table-figure {
    margin-bottom: 38px;
  }

  .forecast-error-figure {
    margin-bottom: 46px;
    padding: 7px;
  }

  .forecast-gallery {
    width: calc(100vw - 24px);
  }

  .figure-selector button {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* Readable academic figures: interpretation belongs in the prose and captions. */
.bifurcation-demo__interactive .motivation-block__header p,
.bifurcation-demo__interactive .proposition__label,
.energy-theory .proposition__label,
.energy-interactive .illustration-label {
  font-size: 0.92rem !important;
}

.notation-list dt,
.notation-list dd,
.research-figure figcaption,
.bifurcation-control__label-row,
.bifurcation-control__label-row strong,
.bifurcation-control__endpoints,
.bifurcation-control p,
.bifurcation-control__derived,
.bifurcation-control__derived strong,
.bifurcation-control--segments legend,
.bifurcation-segments label,
.bifurcation-readout,
.energy-alpha-control__label-row,
.energy-alpha-control__label-row strong,
.energy-prediction-switch__label,
.energy-prediction-switch button,
.energy-alpha-control__ticks,
.energy-alpha-control__readout,
.energy-alpha-control > p,
.energy-bound-figure figcaption,
.energy-alpha-figure figcaption,
.energy-figure-heading p,
.alignment-example > p,
.alignment-example__calculation p,
.paper-figure figcaption,
.forecast-gallery > figcaption {
  font-size: 0.92rem;
}

.research-figure h4 {
  font-size: 1rem;
}

.motivation-lead--figure-guide {
  max-width: 940px;
  margin-top: 12px;
}

.bifurcation-control__endpoints,
.energy-alpha-control__ticks {
  height: 22px;
}

.bifurcation-readout,
.energy-alpha-control__readout {
  flex-wrap: wrap;
}

.energy-alpha-control__readout span {
  color: #505c6d;
}

.energy-alpha-control__readout output {
  font-weight: 650;
}

.bifurcation-plot .plot-tick,
.bifurcation-plot .plot-label {
  font-size: 15px;
}

.energy-bound-plot .energy-plot-label,
.energy-bound-plot .energy-plot-note,
.energy-bound-plot .energy-bound-value,
.energy-bound-plot .energy-bound-title,
.energy-bound-plot .energy-bound-warning {
  font-size: 18px;
}

.energy-alpha-plot .energy-plot-tick,
.energy-alpha-plot .energy-plot-label,
.energy-alpha-plot .energy-contour-truth-label {
  font-size: 15px;
}

@media (max-width: 520px) {
  .bifurcation-demo__interactive {
    margin-right: 0;
    margin-left: 0;
    padding: 0;
  }

  .bifurcation-plot .plot-tick,
  .bifurcation-plot .plot-label {
    font-size: 15px;
  }

  .energy-bound-plot .energy-plot-label,
  .energy-bound-plot .energy-plot-note,
  .energy-bound-plot .energy-bound-value,
  .energy-bound-plot .energy-bound-title,
  .energy-bound-plot .energy-bound-warning {
    font-size: 25px;
  }

  .energy-alpha-plot .energy-plot-tick,
  .energy-alpha-plot .energy-plot-label,
  .energy-alpha-plot .energy-contour-truth-label {
    font-size: 19px;
  }
}

/* Visual-first bifurcation story with optional technical depth. */
.section-motivation .limitation-summary--overview {
  margin: -4px 0 32px;
}

.bifurcation-figure-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  list-style: none;
}

.bifurcation-figure-card {
  display: flex;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #d3dae3;
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(20, 34, 55, 0.045);
  flex-direction: column;
}

.bifurcation-figure-card__header {
  display: grid;
  min-height: 46px;
  margin-bottom: 6px;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.bifurcation-figure-card__header > span {
  display: grid;
  width: 27px;
  height: 27px;
  color: #fff;
  background: var(--navy);
  border-radius: 7px;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  place-items: center;
}

.bifurcation-figure-card__header p {
  margin: 0 0 3px;
  color: var(--blue-deep);
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.085em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bifurcation-figure-card__header h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.08rem, 1.65vw, 1.24rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bifurcation-figure-card .research-figure {
  display: flex;
  min-width: 0;
  margin: 0;
  flex: 1;
  flex-direction: column;
}

.bifurcation-figure-card .research-figure > .bifurcation-plot:not(.bifurcation-posterior-plot) {
  display: block;
  width: min(100%, 350px);
  margin-right: auto;
  margin-left: auto;
}

.bifurcation-figure-card .research-figure figcaption {
  margin: auto 0 0;
  padding-top: 6px;
  color: #596679;
  border-top: 1px solid #e1e6eb;
  font-size: 0.71rem;
  line-height: 1.35;
}

.bifurcation-figure-card .bifurcation-plot-key {
  margin-top: 4px;
  line-height: 1.25;
  gap: 4px 10px;
}

.bifurcation-posterior-inset {
  min-width: 0;
  width: min(56%, 210px);
  margin: 7px auto 0;
  padding-top: 7px;
  border-top: 1px solid #e1e6eb;
}

.bifurcation-posterior-inset .bifurcation-posterior-plot {
  width: 100%;
  margin: 0;
  background: #fbfcfd;
  border-color: #cfd8e3;
}

.bifurcation-figure-card .bifurcation-control--shared,
.bifurcation-figure-card .bifurcation-control--segments {
  margin-top: 7px;
  padding: 8px;
  background: #f0f2f4;
  border: 1px solid #d8dde3;
  border-radius: 6px;
}

.bifurcation-figure-card .bifurcation-control__label-row {
  margin-bottom: 2px;
}

.bifurcation-figure-card .bifurcation-control__endpoints {
  height: 15px;
}

.bifurcation-figure-card .bifurcation-control input[type="range"] {
  height: 36px;
}

.bifurcation-figure-card .bifurcation-control p {
  margin-top: 3px;
  font-size: 0.69rem;
  line-height: 1.35;
}

.bifurcation-figure-card .bifurcation-control--segments legend {
  margin-bottom: 5px;
  font-size: 0.73rem;
}

.bifurcation-figure-card .bifurcation-segments label {
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 0.72rem;
}

.bifurcation-figure-card .bifurcation-readout {
  display: grid;
  min-height: 0;
  margin: 6px 0 0;
  padding: 0;
  overflow: hidden;
  background: #d9e0e8;
  border: 1px solid #d9e0e8;
  border-radius: 5px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
}

.bifurcation-figure-card .bifurcation-readout > div {
  display: grid;
  min-width: 0;
  padding: 6px 7px 7px;
  background: #f2f4f6;
  align-content: center;
  gap: 2px;
}

.bifurcation-figure-card .bifurcation-readout dt,
.bifurcation-figure-card .bifurcation-readout dd {
  margin: 0;
}

.bifurcation-figure-card .bifurcation-readout dt {
  color: #566579;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.3;
}

.bifurcation-figure-card .bifurcation-readout dd {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.bifurcation-figure-card--sensitivity .bifurcation-control--shared {
  padding: 6px 8px 7px;
}

.bifurcation-figure-card--sensitivity .bifurcation-control__label-row {
  margin-bottom: 0;
}

.bifurcation-figure-card--sensitivity .bifurcation-control p {
  margin-top: 3px;
}

.bifurcation-figure-card--sensitivity .research-figure {
  flex: 0 0 auto;
}

.bifurcation-figure-card--sensitivity .bifurcation-control--shared {
  margin-top: auto;
}

.bifurcation-technical-details {
  margin-top: 44px;
  border-top: 1px solid #c8d0d9;
}

.bifurcation-technical-details > summary {
  display: flex;
  min-height: 72px;
  padding: 15px 4px;
  color: var(--blue-deep);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
}

.bifurcation-technical-details > summary::-webkit-details-marker {
  display: none;
}

.bifurcation-technical-details > summary::marker {
  content: "";
}

.bifurcation-technical-details > summary:hover {
  color: var(--blue);
}

.bifurcation-technical-details > summary:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgba(39, 120, 246, 0.28);
  outline-offset: 4px;
}

.bifurcation-technical-details__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.bifurcation-technical-details__copy strong {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bifurcation-technical-details__copy small {
  color: #687487;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.88rem;
  line-height: 1.45;
}

.bifurcation-technical-details > summary > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

.bifurcation-technical-details__hide {
  display: none;
}

.bifurcation-technical-details[open] > summary {
  border-bottom: 1px solid #dce2e8;
}

.bifurcation-technical-details[open] .bifurcation-technical-details__show {
  display: none;
}

.bifurcation-technical-details[open] .bifurcation-technical-details__hide {
  display: inline;
}

.bifurcation-technical-details[open] > summary > svg {
  transform: rotate(180deg);
}

.bifurcation-technical-details__body {
  padding: 42px 0 12px;
}

.bifurcation-technical-section {
  max-width: 920px;
  margin: 44px auto 0;
  padding-top: 40px;
  border-top: 1px solid #dce2e8;
}

.bifurcation-technical-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.bifurcation-technical-section__header {
  margin-bottom: 22px;
}

.bifurcation-technical-section__header > p {
  margin: 0 0 4px;
  color: var(--blue-deep);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bifurcation-technical-section__header h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.2;
}

.bifurcation-technical-details .proposition {
  max-width: 920px;
  margin: 42px auto 0;
}

.bifurcation-technical-details .proposition__label {
  font-size: 0.76rem;
}

.bifurcation-technical-details .bifurcation-control__derived {
  margin-top: 22px;
}

.bifurcation-technical-details.method-technical-details {
  margin-top: 32px;
}

.method-technical-details .bifurcation-technical-details__body {
  padding-top: 34px;
}

.bifurcation-technical-details.method-technical-details .proposition {
  max-width: 920px;
  margin: 0 auto;
}

.method-technical-details .alignment-example {
  max-width: 920px;
  margin: 30px auto 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.method-technical-note {
  max-width: 920px;
  margin: 24px auto 0;
  padding: 13px 16px;
  color: #596577;
  background: #f5f6f8;
  border-left: 3px solid #9baabc;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.6;
}

.bifurcation-model-comparison {
  display: grid;
  max-width: 920px;
  margin: 44px auto 0;
  gap: 44px;
}

.bifurcation-model-comparison__intro {
  margin: 0;
  padding: 14px 17px;
  color: #4c5869;
  background: #f3f5f7;
  border-left: 3px solid #8b9bad;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.96rem;
  line-height: 1.65;
}

.bifurcation-model {
  --model-accent: #315f91;
  --model-soft: #f3f7fb;
  min-width: 0;
  padding-top: 38px;
  border-top: 1px solid #d4dbe3;
}

.bifurcation-model--latent {
  --model-accent: #187f78;
  --model-soft: #f1f7f5;
}

.bifurcation-model__header {
  margin-bottom: 22px;
}

.bifurcation-model__header > p:first-child {
  margin: 0 0 4px;
  color: var(--model-accent);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bifurcation-model__header h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.2;
}

.bifurcation-model__header > p:last-child {
  max-width: 810px;
  margin: 12px 0 0;
  color: #4c5869;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.96rem;
  line-height: 1.68;
}

.bifurcation-model__header a {
  color: var(--model-accent);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--model-accent), transparent 58%);
  text-underline-offset: 3px;
}

.bifurcation-model__results {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d7dee6;
  border-radius: 4px;
}

.bifurcation-model__result {
  display: grid;
  min-width: 0;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: stretch;
}

.bifurcation-model__result + .bifurcation-model__result {
  border-top: 1px solid #dfe5eb;
}

.bifurcation-model__result dt,
.bifurcation-model__result dd {
  min-width: 0;
  margin: 0;
}

.bifurcation-model__result dt {
  display: grid;
  padding: 17px 16px;
  background: #f5f7f9;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  gap: 10px;
}

.bifurcation-model__result dt > span:first-child {
  display: grid;
  width: 27px;
  height: 27px;
  color: white;
  background: var(--model-accent);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  place-items: center;
}

.bifurcation-model__result dt > span:last-child {
  display: grid;
  align-content: center;
  gap: 2px;
}

.bifurcation-model__result dt strong,
.bifurcation-model__result dt small {
  display: block;
}

.bifurcation-model__result dt strong {
  color: #2e3d52;
  font-size: 0.79rem;
  font-weight: 750;
  line-height: 1.35;
}

.bifurcation-model__result dt small {
  color: #6a7687;
  font-size: 0.68rem;
  line-height: 1.4;
}

.bifurcation-model__result dd {
  display: grid;
  padding: 12px 22px;
  align-content: center;
}

.bifurcation-model__result .math-display {
  margin: 0;
  padding-bottom: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.bifurcation-model__result .math-display .katex-display {
  margin: 0.55rem 0;
}

.bifurcation-model__live {
  display: flex;
  margin: 2px auto 7px;
  padding: 7px 10px;
  color: #536074;
  background: var(--model-soft);
  border: 1px solid color-mix(in srgb, var(--model-accent), white 76%);
  border-radius: 3px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.73rem;
  line-height: 1.4;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 12px;
}

.bifurcation-model__live strong {
  color: var(--ink);
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}

.bifurcation-model__live i {
  padding: 0 3px;
  color: var(--model-accent);
  font-style: normal;
}

.bifurcation-model__conclusion {
  margin-top: 18px;
  padding: 16px 20px 14px;
  background: var(--model-soft);
  border-left: 3px solid var(--model-accent);
}

.bifurcation-model__conclusion-label {
  display: block;
  margin-bottom: 4px;
  color: var(--model-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bifurcation-model__conclusion p,
.bifurcation-model__caveat {
  margin: 0;
  color: #465264;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.65;
}

.bifurcation-model__conclusion .math-display {
  margin: 6px 0 0;
  padding-bottom: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.bifurcation-model__conclusion .math-display .katex-display {
  margin: 0.5rem 0 0;
}

.bifurcation-model__caveat {
  margin-top: 15px;
  padding-left: 14px;
  border-left: 2px solid #b9c3cd;
  color: #596577;
  font-size: 0.84rem;
}

@media (max-width: 880px) {
  .bifurcation-figure-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bifurcation-figure-card__header {
    min-height: 0;
  }

  .bifurcation-figure-card .research-figure > .bifurcation-plot:not(.bifurcation-posterior-plot) {
    width: min(100%, 480px);
  }

  .bifurcation-technical-details__body {
    padding-top: 34px;
  }
}

@media (max-width: 700px) {
  .bifurcation-model-comparison {
    gap: 36px;
  }

  .bifurcation-model {
    padding-top: 32px;
  }

  .bifurcation-model__result {
    grid-template-columns: minmax(0, 1fr);
  }

  .bifurcation-model__result dt {
    padding: 12px 15px;
  }

  .bifurcation-model__result dd {
    padding: 10px 14px 13px;
  }
}

@media (max-width: 520px) {
  .section-motivation .limitation-summary--overview {
    margin-bottom: 32px;
  }

  .bifurcation-figure-grid {
    gap: 18px;
  }

  .bifurcation-figure-card {
    padding: 13px;
  }

  .bifurcation-figure-card__header {
    margin-bottom: 13px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }

  .bifurcation-figure-card__header > span {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 0.59rem;
  }

  .bifurcation-figure-card__header h3 {
    font-size: 1.18rem;
  }

  .bifurcation-figure-card .research-figure > .bifurcation-plot:not(.bifurcation-posterior-plot) {
    width: min(100%, 320px);
  }

  .bifurcation-figure-card .research-figure figcaption {
    font-size: 0.74rem;
  }

  .bifurcation-posterior-inset {
    width: min(78%, 230px);
  }

  .bifurcation-figure-card .bifurcation-control--segments {
    padding: 13px;
  }

  .bifurcation-figure-card .bifurcation-segments label {
    display: grid;
    min-height: 44px;
    place-items: center;
  }

  .bifurcation-figure-card .bifurcation-readout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bifurcation-figure-card .bifurcation-readout > div {
    padding: 7px 9px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 12px;
  }

  .bifurcation-figure-card .bifurcation-readout dt {
    font-size: 0.78rem;
  }

  .bifurcation-figure-card .bifurcation-readout dd {
    font-size: 1.05rem;
  }

  .bifurcation-technical-details {
    margin-top: 36px;
  }

  .bifurcation-technical-details > summary {
    min-height: 66px;
    padding: 13px 2px;
    gap: 14px;
  }

  .bifurcation-technical-details__copy small {
    font-size: 0.79rem;
  }

  .bifurcation-technical-details__body {
    padding-top: 30px;
  }

  .bifurcation-technical-section {
    margin-top: 36px;
    padding-top: 34px;
  }

  .bifurcation-technical-details .proposition {
    margin-top: 34px;
  }

  .bifurcation-model-comparison {
    margin-top: 34px;
    gap: 32px;
  }

  .bifurcation-model-comparison__intro {
    padding: 12px 14px;
    font-size: 0.87rem;
  }

  .bifurcation-model__header > p:last-child {
    font-size: 0.9rem;
  }

  .bifurcation-model__result .math-display {
    font-size: 0.9rem;
  }

  .bifurcation-model__live {
    display: grid;
    justify-items: start;
  }

  .bifurcation-model__conclusion {
    padding: 14px 15px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bifurcation-technical-details > summary > svg {
    transition: none;
  }
}

@media print {
  .bifurcation-technical-details > summary {
    display: none;
  }

  .bifurcation-technical-details:not([open]) > :not(summary) {
    display: block;
  }
}

/* Top-level paper narrative --------------------------------------------- */
.section-abstract {
  padding: 54px 0 58px;
  background: #f7f6f2;
  border-top: 1px solid #e5e0d7;
  border-bottom: 1px solid #e5e0d7;
}

.section-abstract .section-heading h2 {
  font-size: clamp(1.95rem, 3vw, 2.35rem);
}

.section-abstract .abstract-copy {
  margin-top: 20px;
}

.section-why-vsf {
  padding: 64px 0 74px;
  background: #fff;
  border-top: 0;
  border-bottom: 1px solid #e3e6ea;
}

.section-why-vsf .hero-result-showcase {
  margin-top: 0;
}

.section-why-vsf .vsf-value-grid,
.section-why-vsf .hero-rollout-comparison {
  background: #fff;
}

.section-streaming-flow {
  background: #fff;
  border-top: 1px solid #e3e6ea;
}

.section-paradigms {
  border-top: 1px solid #e0e4e9;
  border-bottom: 1px solid #e0e4e9;
}

.narrative-heading {
  max-width: 940px;
  margin-bottom: 38px;
}

.plain-language-goal {
  display: grid;
  margin: 0 0 38px;
  padding: 25px 28px;
  background: #f2f6fa;
  border: 1px solid #d4dee8;
  border-left: 4px solid var(--blue-deep);
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.plain-language-goal > p {
  margin: 4px 0 0;
  color: var(--blue-deep);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.plain-language-goal blockquote {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.014em;
  line-height: 1.48;
}

.vsf-value-grid,
.limitation-summary {
  display: grid;
  border-top: 1px solid #cfd6de;
  border-bottom: 1px solid #cfd6de;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vsf-value-card,
.limitation-summary article {
  min-width: 0;
  padding: 25px 25px 27px;
}

.vsf-value-card + .vsf-value-card,
.limitation-summary article + article {
  border-left: 1px solid #dce1e7;
}

.vsf-value-card > span,
.limitation-summary article > span {
  display: block;
  margin-bottom: 9px;
  color: var(--blue-deep);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.vsf-value-card h3,
.limitation-summary h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.24;
}

.vsf-value-card p,
.limitation-summary p {
  margin: 11px 0 0;
  color: #566174;
  font-size: 0.86rem;
  line-height: 1.62;
}

.hero-rollout-comparison {
  max-width: 1120px;
  margin: 52px auto 0;
  border: 1px solid #ccd4de;
  text-align: left;
}

.hero-rollout-comparison .rollout-comparison__header p {
  max-width: none;
}

.hero-result-showcase {
  display: grid;
  width: 100%;
  max-width: 1180px;
  margin: 40px auto 0;
  text-align: left;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.hero-result-showcase__heading,
.hero-result-showcase > .vsf-value-grid {
  grid-column: 1 / -1;
}

.hero-result-showcase__heading {
  max-width: 780px;
}

.hero-result-pair {
  display: grid;
  width: min(calc(100vw - 16px), 1360px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  justify-self: center;
}

.hero-result-showcase__heading > p {
  margin: 0 0 6px;
  color: var(--blue-deep);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-result-showcase__heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hero-result-showcase__heading > span {
  display: block;
  margin-top: 8px;
  color: #657184;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.58;
}

.hero-result-showcase .hero-rollout-comparison {
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-result-showcase .hero-rollout-comparison--planning {
  align-self: stretch;
}

.hero-result-showcase .rollout-comparison__header {
  padding: 14px 18px 13px;
}

.hero-result-showcase .rollout-comparison__header h3 {
  font-size: 1.2rem;
}

.hero-result-showcase .rollout-comparison__header p {
  font-size: 0.82rem;
  line-height: 1.48;
}

.hero-result-showcase .rollout-video-card figcaption {
  padding: 8px 12px;
}

.hero-result-showcase .rollout-video-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.hero-result-showcase .rollout-video-card + .rollout-video-card {
  border-left: 0;
  box-shadow: inset 1px 0 #d9dfe6;
}

.hero-result-media {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1530 / 792;
  overflow: hidden;
  background: #fff;
  place-items: center;
}

@media (min-width: 761px) {
  .hero-result-media {
    aspect-ratio: 4 / 3;
  }

  .hero-rollout-comparison--planning .hero-result-media {
    aspect-ratio: 1530 / 792;
  }
}

@media (min-width: 981px) {
  /* Give the wider planning clips enough horizontal room to grow while
     keeping both comparison cards and their media rows the same height. */
  .hero-result-pair {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .hero-result-pair .hero-result-media {
    height: auto;
  }

  .hero-result-pair
    > .hero-rollout-comparison:not(.hero-rollout-comparison--planning)
    .hero-result-media {
    aspect-ratio: 425 / 308;
  }

  .hero-result-pair .hero-rollout-comparison--planning .hero-result-media {
    aspect-ratio: 85 / 44;
  }
}

.hero-result-media > img,
.hero-result-media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border: 0;
  border-radius: 0;
}

/* Keep the forecast row as short as the planning-video row, but scale the
   near-square trajectory canvas from its height so the full axes remain in
   frame. The grid container centers the narrower result horizontally. */
.rollout-image-card .hero-result-media > img {
  position: absolute;
  inset: 0;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}

@media (max-width: 760px) {
  .hero-result-showcase .rollout-video-card + .rollout-video-card {
    border-top: 1px solid #d9dfe6;
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  .hero-result-pair {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.impact-callout {
  display: grid;
  margin-top: 38px;
  padding: 20px 23px;
  color: #566174;
  background: #f7f8f9;
  border: 1px solid #dce1e6;
  border-left: 3px solid var(--teal);
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
}

.why-work-callout {
  display: grid;
  margin-top: 30px;
  padding: 20px 23px;
  color: #535e70;
  background: #f7f5fa;
  border: 1px solid #ddd7e7;
  border-left: 3px solid var(--violet);
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
}

.why-work-callout strong {
  color: #5c4b94;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.why-work-callout p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.93rem;
  line-height: 1.62;
}

.impact-callout > strong {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: uppercase;
}

.impact-callout p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.96rem;
  line-height: 1.65;
}

.paradigm-legend {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: -2px 0 18px;
  padding: 9px 13px;
  color: #606c7d;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  flex-wrap: wrap;
  gap: 9px 20px;
}

.paradigm-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.paradigm-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
}

.paradigm-legend__history {
  background: #151b23;
  border-radius: 50%;
}

.paradigm-legend__active {
  background: #cc7910;
}

.paradigm-legend__ready {
  background: #168c81;
}

.paradigm-legend__waiting {
  background: #fff;
  border: 1px solid #aebbc7;
}

.paradigm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.paradigm-card {
  display: grid;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d3dae3;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(20, 34, 55, 0.045);
  grid-template-rows: auto auto 1fr;
}

.paradigm-card--streaming {
  border-color: #79bdb4;
  box-shadow: 0 0 0 1px rgba(22, 140, 129, 0.08), 0 5px 16px rgba(22, 89, 81, 0.07);
}

.paradigm-card figcaption {
  display: flex;
  min-width: 0;
  min-height: 54px;
  padding: 13px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border-bottom: 1px solid #e2e7ec;
}

.paradigm-card--streaming figcaption,
.paradigm-card--streaming dl {
  background: #f3f9f7;
}

.paradigm-media {
  position: relative;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1440 / 620;
}

.paradigm-media > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center bottom;
  background: #fff;
}

.paradigm-card__action {
  display: inline-flex;
  min-height: 40px;
  padding: 7px 9px;
  color: #536175;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.3;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}

.paradigm-card__action:hover {
  color: var(--blue-deep);
  background: #f0f4f8;
}

.paradigm-card__action:focus-visible {
  color: var(--blue-deep);
  background: #f0f4f8;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.paradigm-card__title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.paradigm-card__title > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #fff;
  background: var(--navy);
  border-radius: 7px;
  font-size: 0.63rem;
  font-weight: 750;
  place-items: center;
}

.paradigm-card--streaming .paradigm-card__title > span {
  background: #168c81;
}

.paradigm-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.016em;
  line-height: 1.25;
}

.paradigm-card dl {
  display: grid;
  margin: 0;
  padding: 13px 15px 15px;
  background: #f8fafb;
  border-top: 1px solid #e2e6eb;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.paradigm-card dl div {
  min-width: 0;
}

.paradigm-card dl div + div {
  padding-left: 16px;
  border-left: 1px solid #e1e6eb;
}

.paradigm-card dt,
.paradigm-card dd {
  margin: 0;
}

.paradigm-card dt {
  color: #5d6879;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.paradigm-card dd {
  margin-top: 4px;
  color: #29364a;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.42;
}

.paradigm-card--streaming dl div:last-child dd {
  color: #14756c;
  font-weight: 700;
}

.paradigm-note {
  margin: 22px 0 0;
  color: #657184;
  font-size: 0.78rem;
  line-height: 1.58;
}

.paradigm-note strong {
  color: #404b5d;
}

.paradigm-takeaway {
  display: grid;
  margin-top: 28px;
  padding: 20px 23px;
  background: #edf6f4;
  border: 1px solid #c6ded9;
  border-left: 3px solid #168c81;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 23px;
}

.paradigm-takeaway > strong {
  color: #176b64;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.paradigm-takeaway ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #425d5a;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.93rem;
  line-height: 1.62;
}

.paradigm-takeaway li + li {
  margin-top: 0.48rem;
}

.paradigm-takeaway li strong {
  color: #285b57;
  font-weight: 700;
}

.sf-stage-list {
  border-top: 1px solid #dce1e6;
}

.sf-stage-switcher.is-enhanced .sf-stage-list {
  border-bottom: 1px solid #dce1e6;
}

.sf-stage {
  display: grid;
  margin: 0;
  padding: 26px 0;
  border-bottom: 1px solid #dce1e6;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.75fr);
  gap: 30px;
  align-items: center;
}

.sf-stage-switcher.is-enhanced .sf-stage {
  border-bottom: 0;
}

.sf-stage[hidden] {
  display: none;
}

.sf-stage__media {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fbfcfe;
  border: 1px solid #ccd9e5;
}

.sf-stage__media img {
  display: block;
  width: 100%;
  height: auto;
}

.sf-stage__media-footer {
  display: flex;
  min-height: 34px;
  margin: 0;
  padding: 4px 8px;
  background: #fff;
  border-top: 1px solid #e1e7ee;
  align-items: center;
  justify-content: flex-end;
}

.sf-stage__view {
  display: inline-flex;
  min-height: 28px;
  padding: 4px 7px;
  color: #536175;
  border-radius: 5px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.sf-stage__view:hover {
  color: var(--blue-deep);
  background: #f0f4f8;
}

.sf-stage__view:focus-visible {
  color: var(--blue-deep);
  background: #f0f4f8;
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.sf-stage__copy {
  min-width: 0;
  padding-right: 4px;
}

.sf-stage__copy h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.016em;
  line-height: 1.22;
}

.sf-stage__copy > p {
  margin: 0;
  color: #596477;
  font-size: 0.88rem;
  line-height: 1.58;
}

.sf-stage__equation {
  min-width: 0;
  margin: 15px 0 0;
  padding-top: 12px;
  overflow-x: auto;
  border-top: 1px solid #dce4ec;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.04rem);
  text-align: left;
}

.sf-stage__equation .katex-display,
.sf-stage__equation .katex-display > .katex {
  margin: 0;
  text-align: left;
}

.sf-stage__note {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 12px;
  color: #155f59;
  background: #eef8f6;
  border: 1px solid #c7e5df;
  border-left: 3px solid var(--teal);
  border-radius: 0 5px 5px 0;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-transform: none;
  align-items: center;
}

.sf-stage-tabs {
  display: none;
}

.sf-stage-switcher.is-enhanced .sf-stage-tabs {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.sf-stage-tab {
  display: flex;
  min-height: 46px;
  padding: 10px 16px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  color: #5d6d83;
  background: #edf2f8;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.sf-stage-tab span {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.sf-stage-tab:hover {
  color: var(--blue-deep);
  background: #e5edf7;
  border-color: #cad7e7;
}

.sf-stage-tab.is-active,
.sf-stage-tab[aria-selected="true"] {
  color: #fff;
  background: #2b67d1;
  border-color: #2b67d1;
}

.sf-stage-tab:focus-visible {
  outline: 3px solid rgba(43, 103, 209, 0.25);
  outline-offset: 2px;
}

.clock-comparison {
  display: grid;
  margin-top: 38px;
  padding: 20px 24px;
  background: #fafafa;
  border: 1px solid #dce1e6;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.clock-comparison > div:not(.clock-comparison__arrow) {
  text-align: center;
}

.clock-comparison span {
  color: #667184;
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clock-comparison p {
  margin: 6px 0 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 550;
}

.clock-comparison p i {
  padding: 0 5px;
  color: #a35948;
  font-style: normal;
}

.clock-comparison__arrow {
  color: #8591a1;
  font-size: 1.45rem;
  text-align: center;
}

.limitation-summary {
  margin: -4px 0 46px;
}

.method-overview {
  margin: -7px 0 58px;
}

.method-overview__lead {
  max-width: 920px;
  margin: 0;
  color: #505c6d;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.68;
}

@media (max-width: 780px) {
  .site-nav {
    gap: 4px;
  }

  .site-nav a {
    font-size: 1rem;
  }
}

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

@media (max-width: 800px) {

  .plain-language-goal,
  .impact-callout,
  .why-work-callout,
  .paradigm-takeaway {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vsf-value-grid,
  .limitation-summary {
    grid-template-columns: 1fr;
  }

  .vsf-value-card + .vsf-value-card,
  .limitation-summary article + article {
    border-top: 1px solid #dce1e7;
    border-left: 0;
  }

  .sf-stage {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 22px 0;
  }

}

@media (max-width: 520px) {
  .hero-result-showcase {
    margin-top: 34px;
    gap: 18px;
  }

  .math-display--overflowing,
  .math-display--overflowing .katex-display,
  .math-display--overflowing .katex-display > .katex {
    text-align: left;
  }

  .math-display--overflowing {
    overscroll-behavior-inline: contain;
    scrollbar-color: #8492a6 #e4e9ef;
  }

  .math-scroll-hint:not([hidden]) {
    display: block;
    margin: -1px 0 12px;
    color: #5d6879;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1.4;
    text-align: right;
    text-transform: uppercase;
  }

  .narrative-heading {
    margin-bottom: 30px;
  }

  .plain-language-goal {
    padding: 21px 20px;
  }

  .vsf-value-card,
  .limitation-summary article {
    padding: 22px 18px 23px;
  }

  .impact-callout {
    margin-top: 30px;
    padding: 18px;
  }

  .why-work-callout {
    margin-top: 24px;
    padding: 18px;
  }

  .paradigm-takeaway {
    padding: 18px;
  }

  .paradigm-legend {
    gap: 9px 14px;
  }

  .paradigm-grid {
    gap: 18px;
  }

  .paradigm-card figcaption {
    padding: 12px 13px;
  }

  .paradigm-card dl {
    padding: 12px 13px 14px;
  }

  .paradigm-card dl div + div {
    padding-left: 12px;
  }

  .sf-stage__copy {
    padding: 0 2px;
  }

  .sf-stage__note {
    display: flex;
    width: 100%;
  }

  .sf-stage-tab {
    padding: 9px 8px;
    gap: 7px;
    font-size: 0.72rem;
  }

  .sf-stage-tab span {
    font-size: 0.64rem;
  }

  .clock-comparison {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .clock-comparison__arrow {
    transform: rotate(90deg);
  }

}

/* Keep the major-section rhythm authoritative over legacy section rules. */
.hero,
.section-why-vsf,
.section-streaming-flow,
#method,
#world-model {
  background: var(--section-base);
}

.section-abstract,
.section-paradigms,
.section-motivation,
.section-results,
.citation-section {
  background: var(--section-alt);
}

.section-abstract,
.section-why-vsf,
.section-paradigms,
.section-streaming-flow,
.section-motivation,
.section-results,
#world-model,
.citation-section {
  border-color: var(--theme-border);
}

html[data-theme="dark"] .bifurcation-model__result dt > span:first-child {
  color: #0f1620;
}

html[data-theme="dark"] .forecast-dataset-row h5 {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--dataset-color);
}
