:root {
  color-scheme: light;
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f3f2ef;
  --text: #242424;
  --text-soft: #4b4b4b;
  --text-faint: #757575;
  --line: #e5e2dd;
  --line-strong: #cbc7c0;
  --blue: #1a8917;
  --blue-soft: rgba(26, 137, 23, .08);
  --green: #2f7d62;
  --red: #b64b42;
  --violet: #7c67a2;
  --amber: #aa7527;
  --shell: 1100px;
  --measure: 690px;
  --header-height: 62px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #126b10; }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); letter-spacing: -.02em; }
h1, h2 { font-weight: 600; }
h3 { font-weight: 500; line-height: 1.35; }

.shell { width: min(calc(100% - 44px), var(--shell)); margin-inline: auto; }
.section-pad { padding-block: 76px 62px; }
.mono, code { font-family: "IBM Plex Mono", Consolas, monospace; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width 80ms linear;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
  border-bottom: 1px solid rgba(229, 226, 221, .92);
  background: rgba(250, 249, 247, .92);
  backdrop-filter: blur(12px);
}

.nav { height: 100%; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
}

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 19px; }
.nav-links a { position: relative; color: var(--text-faint); font-size: 13px; text-decoration: none; }
.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -20px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 7px 11px;
  font: inherit;
}

.project-header { position: relative; max-width: 920px; overflow: clip; isolation: isolate; border-bottom: 1px solid var(--line); }
.project-header > :not(.hero-field) { position: relative; z-index: 1; }
.hero-field {
  position: absolute;
  top: 0;
  right: -11%;
  bottom: 0;
  z-index: 0;
  width: 72%;
  overflow: hidden;
  background: radial-gradient(circle at 62% 48%, rgba(26,137,23,.075), transparent 54%);
  opacity: .82;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 2%, rgba(0,0,0,.52) 30%, #000 100%);
}
.hero-field canvas { width: 100%; height: 100%; display: block; }
.project-kicker,
.section-number {
  margin-bottom: 18px;
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-header h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.65rem, 5.2vw, 4.35rem);
  line-height: 1.06;
  text-wrap: balance;
}
.subtitle {
  max-width: 680px;
  margin-bottom: 24px;
  color: #5f5f5f;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  color: var(--text-faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}
.hero-meta a { text-decoration: none; }

.page-layout { max-width: 920px; display: block; }
.contents { display: none; }
.contents p {
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--text-faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contents ol { margin: 0; padding-left: 19px; color: var(--line-strong); }
.contents li { margin-block: 8px; padding-left: 3px; font-size: 12px; line-height: 1.4; }
.contents a { color: var(--text-faint); text-decoration: none; transition: color 160ms ease; }
.contents a:hover { color: var(--text); }

.page-body { min-width: 0; }
.content-section { position: relative; padding: 82px 0; border-bottom: 1px solid var(--line); }
.content-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--blue);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 500ms ease, transform 760ms cubic-bezier(.2,.7,.2,1);
}
.content-section.in-view::before { opacity: 1; transform: scaleX(1); }
.content-section > h2 { max-width: var(--measure); margin-bottom: 28px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
.content-section > h3,
.content-section > p,
.content-section > ul,
.equation,
.result-note { max-width: var(--measure); }
.content-section > p:not(.section-number),
.content-section > ul {
  color: var(--text-soft);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.16rem;
  line-height: 1.75;
}
.lead-question { color: var(--text) !important; font-size: 1.35rem !important; line-height: 1.65 !important; }
.equation {
  margin-block: 32px 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  text-align: center;
}

.table-wrap { margin-block: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 13px; line-height: 1.45; }
caption { padding: 13px 14px; border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--text); font-weight: 500; text-align: left; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
tbody th { width: 28%; color: var(--text); font-weight: 500; }
td { color: var(--text-soft); }
tfoot th, tfoot td { background: var(--surface-soft); color: var(--text); font-weight: 600; }
.annual-results th:not(:first-child), .annual-results td { text-align: right; font-variant-numeric: tabular-nums; }
.annual-results tbody th { width: auto; }

.figure-block { width: 100%; max-width: 1000px; margin: 58px 0 18px; }
.figure-block figcaption { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 12px; line-height: 1.58; }
.figure-block figcaption strong { color: var(--text-soft); }
.figure-heading { margin-bottom: 13px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.figure-heading h3 { margin: 0; font-size: 1.2rem; }
.figure-heading > span { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 10px; }

.boundary-figure,
.architecture { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.boundary-figure { min-height: 340px; padding: 28px; display: grid; grid-template-columns: 1fr 100px 1fr; align-items: stretch; }
.boundary-side { display: flex; flex-direction: column; justify-content: center; gap: 15px; }
.boundary-side-title { margin-bottom: 4px; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.boundary-row { display: grid; grid-template-columns: 115px minmax(0, 1fr); align-items: center; gap: 12px; }
.boundary-row > span { color: var(--text-faint); font-size: 12px; text-align: right; }
.chip { padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--text-soft); font-size: 11px; font-weight: 500; text-align: center; }
.chip.violet { border-color: rgba(163,113,247,.55); background: rgba(163,113,247,.08); }
.chip.teal { border-color: rgba(63,185,80,.55); background: rgba(63,185,80,.08); }
.chip.coral { border-color: rgba(248,81,73,.55); background: rgba(248,81,73,.08); }
.chip.amber { border-color: rgba(210,153,34,.55); background: rgba(210,153,34,.08); }
.boundary-line { display: grid; grid-template-rows: 1fr auto 1fr; place-items: center; text-align: center; }
.boundary-line span, .boundary-line small { max-width: 90px; color: var(--blue); font-family: "IBM Plex Mono", monospace; font-size: 8px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.boundary-line span { align-self: end; margin-bottom: 10px; }
.boundary-line small { align-self: start; margin-top: 10px; color: var(--text-faint); }
.boundary-line i { height: 170px; border-left: 2px dashed var(--blue); }
.target-side .boundary-row { grid-template-columns: 105px minmax(0, 1fr); }
.target-side .boundary-row > span { text-align: left; }

.scroll-story {
  position: relative;
  width: min(1180px, calc(100vw - 32px));
  margin: 76px 0 26px 50%;
  transform: translateX(-50%);
}

.story-sticky {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  z-index: 1;
  height: calc(100vh - var(--header-height) - 32px);
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f5f4f1;
  isolation: isolate;
}

.story-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 26% 42%, rgba(26, 137, 23, .08), transparent 31%),
    radial-gradient(circle at 76% 64%, rgba(124, 103, 162, .07), transparent 28%);
}

.story-index {
  position: absolute;
  top: 22px;
  right: 26px;
  left: 26px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-steps {
  position: relative;
  z-index: 4;
  width: min(370px, calc(100% - 48px));
  margin: calc(-100vh + var(--header-height) + 32px) 44px 0 auto;
  padding: 34vh 0 40vh;
  pointer-events: none;
}

.mobile-swipe-hint { display: none; }

.story-step {
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.2, .7, .2, 1);
  pointer-events: auto;
}

.story-step::before {
  content: "";
  position: absolute;
  inset: auto 0;
  z-index: -1;
  min-height: 230px;
  border: 1px solid rgba(203, 199, 192, .8);
  border-radius: 10px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(10px);
}

.story-step > * { margin-inline: 24px; }
.story-step > span { margin-bottom: 18px; color: var(--blue); font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.story-step h3 { margin-bottom: 12px; font-family: "Source Serif 4", Georgia, serif; font-size: 1.45rem; line-height: 1.2; }
.story-step p { margin-bottom: 0; color: var(--text-soft); font-family: "Source Serif 4", Georgia, serif; font-size: 1rem; line-height: 1.62; }
.story-step.active { opacity: var(--step-edge-opacity, 1); transform: none; }

.pipeline-story { --flow-blue: #356f9f; --flow-blue-soft: rgba(53,111,159,.11); }
.pipeline-stage { background: #f3f7fa; }
.pipeline-stage::before {
  background: linear-gradient(115deg, rgba(53,111,159,.09), transparent 42%, rgba(95,139,177,.06));
}
.pipeline-copy { position: absolute; top: 50%; right: 52px; z-index: 6; width: min(410px, 34%); padding-left: 22px; border-left: 2px solid var(--flow-blue); transform: translateY(-50%); }
.pipeline-copy > span { display: block; margin-bottom: 18px; color: var(--flow-blue); font-family: "IBM Plex Sans", -apple-system, sans-serif; font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pipeline-copy h3 { max-width: 390px; margin-bottom: 12px; font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(1.55rem,2.15vw,2rem); font-weight: 600; line-height: 1.16; letter-spacing: -.025em; }
.pipeline-copy p { max-width: 390px; margin: 0; color: var(--text-soft); font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .98rem; line-height: 1.62; }
.pipeline-copy.is-updating { animation: pipelineCopyIn 520ms cubic-bezier(.2,.7,.2,1) both; }
.pipeline-story .story-index { color: var(--flow-blue); font-family: "IBM Plex Sans", -apple-system, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .045em; }
.pipeline-story .story-step > span { color: var(--flow-blue); font-family: "IBM Plex Sans", -apple-system, sans-serif; font-weight: 600; letter-spacing: .04em; }
.pipeline-steps { width: min(410px, calc(100% - 48px)); margin-right: 52px; }
.pipeline-story .story-step {
  position: relative;
  padding-left: 24px;
  opacity: 0;
  transform: translateY(30px) scale(.985);
  transition: opacity 520ms ease, transform 760ms cubic-bezier(.2,.7,.2,1);
}
.pipeline-story .story-step::before {
  content: "";
  position: absolute;
  inset: auto auto 50% 0;
  z-index: 0;
  width: 2px;
  height: 0;
  min-height: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: var(--flow-blue);
  transform: translateY(50%);
  transition: height 600ms cubic-bezier(.2,.7,.2,1);
}
.pipeline-story .story-step > * { margin-inline: 0; }
.pipeline-story .story-step h3 { max-width: 380px; font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(1.55rem,2.15vw,2rem); font-weight: 600; line-height: 1.16; letter-spacing: -.025em; }
.pipeline-story .story-step p { max-width: 375px; font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .98rem; line-height: 1.62; }
.pipeline-story .training-header strong,
.pipeline-story .ensemble-score strong { font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 600; }
.pipeline-story .story-step.active { opacity: var(--step-edge-opacity, 1); transform: none; }
.pipeline-story .story-step.active::before { height: 240px; }
.pipeline-story .story-progress { display: none; }
.pipeline-steps .story-step { visibility: hidden; opacity: 0 !important; pointer-events: none; }
.pipeline-steps .story-step::before { display: none; }

.story-progress {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 7;
  display: flex;
  gap: 6px;
}

.story-progress i { width: 20px; height: 2px; display: block; background: var(--line-strong); transition: width 300ms ease, background 300ms ease; }
[data-scene="0"] .story-progress i:nth-child(1),
[data-scene="1"] .story-progress i:nth-child(2),
[data-scene="2"] .story-progress i:nth-child(3),
[data-scene="3"] .story-progress i:nth-child(4) { width: 38px; background: var(--blue); }

.scroll-story figcaption {
  max-width: 920px;
  margin: 18px auto 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.58;
}

.pipeline-visual { position: absolute; inset: 72px 37% 34px 28px; }
.pipeline-timeline { position: absolute; right: 3%; bottom: 0; left: 3%; z-index: 4; height: 64px; }
.pipeline-track { position: absolute; top: 13px; right: 6%; left: 6%; height: 3px; overflow: hidden; background: rgba(53,111,159,.18); }
.pipeline-track-active { width: calc(var(--pipeline-progress, 0) * 100%); height: 100%; display: block; background: var(--flow-blue); transition: width 100ms linear; }
.pipeline-node { position: absolute; z-index: 4; top: 8px; width: 80px; color: var(--text-faint); text-align: center; opacity: .46; transform: translateX(-50%); transition: opacity 400ms ease, color 400ms ease; }
.pipeline-node > i { width: 12px; height: 12px; margin-inline: auto; display: block; border: 2px solid #f3f7fa; border-radius: 50%; background: #b9c8d5; outline: 1px solid rgba(53,111,159,.22); transition: background 350ms ease, outline-color 350ms ease, transform 450ms cubic-bezier(.2,.7,.2,1); }
.pipeline-node strong { margin-top: 10px; display: block; font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: .03em; }
.pipeline-node[data-pipeline-node="0"] { left: 6%; }
.pipeline-node[data-pipeline-node="1"] { left: 35.33%; }
.pipeline-node[data-pipeline-node="2"] { left: 64.67%; }
.pipeline-node[data-pipeline-node="3"] { left: 94%; }
[data-scene="0"] .pipeline-node[data-pipeline-node="0"],
[data-scene="1"] .pipeline-node[data-pipeline-node="1"],
[data-scene="2"] .pipeline-node[data-pipeline-node="2"],
[data-scene="3"] .pipeline-node[data-pipeline-node="3"] { opacity: 1; color: var(--flow-blue); }
[data-scene="0"] .pipeline-node[data-pipeline-node="0"] > i,
[data-scene="1"] .pipeline-node[data-pipeline-node="1"] > i,
[data-scene="2"] .pipeline-node[data-pipeline-node="2"] > i,
[data-scene="3"] .pipeline-node[data-pipeline-node="3"] > i { background: var(--flow-blue); outline-color: rgba(53,111,159,.65); transform: scale(1.22); }

.pipeline-vignettes { position: absolute; inset: 0 4% 23%; z-index: 2; }
.pipeline-vignette { position: absolute; inset: 0; opacity: 0; filter: blur(5px); transform: translateY(24px) scale(.9); transition: opacity 560ms ease, transform 820ms cubic-bezier(.2,.7,.2,1), filter 620ms ease; pointer-events: none; }
[data-scene="0"] [data-pipeline-vignette="0"],
[data-scene="1"] [data-pipeline-vignette="1"],
[data-scene="2"] [data-pipeline-vignette="2"],
[data-scene="3"] [data-pipeline-vignette="3"] { opacity: 1; filter: none; transform: none; }

.filing-stream { position: absolute; inset: 12% 4% 8%; display: grid; grid-template-columns: .72fr 1.45fr .82fr; align-items: center; gap: 28px; }
.filing-stream::before { content: ""; position: absolute; top: 50%; right: 9%; left: 14%; z-index: -1; height: 1px; background: rgba(53,111,159,.22); }
.filing-stream::after { content: ""; position: absolute; top: calc(50% - 3px); left: 14%; width: 7px; height: 7px; background: var(--flow-blue); animation: filingPulse 3.2s cubic-bezier(.45,0,.2,1) infinite; }
.sec-source { position: relative; padding: 17px 14px 16px; border-block: 1px solid rgba(53,111,159,.42); background: rgba(255,255,255,.58); }
.sec-source::after { content: ""; position: absolute; top: 50%; left: 100%; width: 28px; border-top: 1px solid rgba(53,111,159,.35); }
.sec-source span, .sec-source strong, .sec-source small { display: block; }
.sec-source span { color: var(--flow-blue); font-family: "IBM Plex Mono", monospace; font-size: 8px; letter-spacing: .08em; }
.sec-source strong { margin-block: 7px 4px; font-family: "IBM Plex Sans", -apple-system, sans-serif; font-size: 15px; font-weight: 600; }
.sec-source small { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 7px; line-height: 1.5; }
.fact-stream { display: grid; gap: 7px; }
.fact-row { position: relative; min-height: 40px; padding: 8px 10px; display: grid; grid-template-columns: 40px minmax(0,1fr) 76px; align-items: center; gap: 8px; border-left: 2px solid rgba(53,111,159,.48); background: rgba(255,255,255,.82); box-shadow: 0 1px 0 rgba(53,111,159,.08); opacity: .25; transform: translateX(-18px); }
[data-scene="0"] .fact-row { animation: factArrive 720ms cubic-bezier(.2,.7,.2,1) forwards; }
[data-scene="0"] .fact-row:nth-child(2) { animation-delay: 110ms; }
[data-scene="0"] .fact-row:nth-child(3) { animation-delay: 220ms; }
[data-scene="0"] .fact-row:nth-child(4) { animation-delay: 330ms; }
.fact-row span, .fact-row b { font-family: "IBM Plex Mono", monospace; font-size: 7px; font-weight: 500; }
.fact-row span { color: var(--flow-blue); }
.fact-row code { overflow: hidden; color: var(--text); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.fact-row b { color: var(--text-faint); text-align: right; }
.fact-row.derived { border-left-color: var(--violet); background: rgba(124,103,162,.075); }
.fact-row.derived span { color: var(--violet); }
.filing-output { position: relative; padding-left: 14px; border-left: 2px solid var(--flow-blue); }
.filing-output span, .filing-output strong { display: block; }
.filing-output span { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 7px; letter-spacing: .06em; text-transform: uppercase; }
.filing-output strong { margin-block: 5px 10px; font-family: "IBM Plex Sans", -apple-system, sans-serif; font-size: 12px; font-weight: 600; }
.filing-output div { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
.filing-output i { height: 18px; display: block; background: var(--flow-blue-soft); transform: scaleY(.2); transform-origin: bottom; }
[data-scene="0"] .filing-output i { animation: outputBars 900ms 420ms cubic-bezier(.2,.7,.2,1) forwards; }
[data-scene="0"] .filing-output i:nth-child(2) { animation-delay: 500ms; }
[data-scene="0"] .filing-output i:nth-child(3) { animation-delay: 580ms; }
[data-scene="0"] .filing-output i:nth-child(4) { animation-delay: 660ms; }
.vignette-caption { position: absolute; right: 2%; bottom: 3%; width: 230px; padding-left: 13px; border-left: 2px solid var(--flow-blue); }
.vignette-caption strong, .vignette-caption small { display: block; }
.vignette-caption strong { font-family: "IBM Plex Sans", -apple-system, sans-serif; font-size: 1rem; font-weight: 600; }
.vignette-caption small { margin-top: 4px; color: var(--text-faint); font-size: 9px; }

.panel-vignette { display: grid; place-items: center; }
.feature-matrix { width: min(78%, 520px); padding: 18px; display: grid; grid-template-columns: repeat(8,1fr); gap: 7px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.82); }
.feature-matrix i { aspect-ratio: 1.8; border-radius: 3px; background: var(--line); transform: scaleX(.2); transform-origin: left; }
[data-scene="1"] .feature-matrix i { animation: matrixFill 1.4s cubic-bezier(.2,.7,.2,1) both; }
.feature-matrix i:nth-child(3n) { animation-delay: 90ms; background: rgba(53,111,159,.25); }
.feature-matrix i:nth-child(4n) { animation-delay: 170ms; background: rgba(124,103,162,.2); }
.panel-labels { position: absolute; top: 8%; left: 11%; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 8px; text-transform: uppercase; }
.panel-labels span { margin-right: 22px; }
.panel-merge { position: absolute; right: 11%; bottom: 5%; display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.panel-merge span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.panel-merge strong { color: var(--text); font-weight: 500; }

.training-vignette { width: min(88%, 590px); margin-inline: auto; padding-top: 4%; }
.training-header { margin-bottom: 13px; display: flex; justify-content: space-between; align-items: baseline; }
.training-header span { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 8px; text-transform: uppercase; }
.training-header strong { font-family: "Source Serif 4", Georgia, serif; font-size: 1.15rem; }
.training-model { margin-block: 7px; padding: 8px 10px; display: grid; grid-template-columns: 78px 1fr 34px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.9); color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.training-model i { height: 4px; overflow: hidden; border-radius: 1px; background: var(--line); }
.training-model i b { width: 100%; height: 100%; display: block; background: var(--flow-blue); transform: translateX(-102%); }
[data-scene="2"] .training-model i b { animation: trainPass 1.8s cubic-bezier(.2,.7,.2,1) infinite; }
[data-scene="2"] .training-model:nth-of-type(3) i b { animation-delay: 140ms; }
[data-scene="2"] .training-model:nth-of-type(4) i b { animation-delay: 280ms; }
[data-scene="2"] .training-model:nth-of-type(5) i b { animation-delay: 420ms; }
[data-scene="2"] .training-model:nth-of-type(6) i b { animation-delay: 560ms; }
.training-window { margin-top: 16px; display: grid; grid-template-columns: auto repeat(13,1fr) auto; align-items: center; gap: 3px; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 7px; }
.training-window i { height: 8px; border-radius: 2px; background: rgba(124,103,162,.24); }
.training-window i:last-of-type { background: rgba(182,75,66,.4); }

.scoring-vignette { display: grid; grid-template-columns: .75fr 1.25fr; grid-template-rows: 1fr 1fr; align-items: center; gap: 16px 52px; padding: 8% 7%; }
.ensemble-score { grid-row: 1 / -1; padding: 24px 18px; border: 1px solid rgba(53,111,159,.48); border-radius: 2px; background: rgba(255,255,255,.9); text-align: center; }
.ensemble-score span, .ensemble-score strong { display: block; }
.ensemble-score span { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.ensemble-score strong { margin-top: 4px; font-family: "Source Serif 4", Georgia, serif; font-size: 1.15rem; }
.score-route { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.score-route path { fill: none; stroke: rgba(53,111,159,.42); stroke-width: 1; vector-effect: non-scaling-stroke; }
.score-card { position: relative; z-index: 1; padding: 16px; border: 1px solid var(--line); border-left: 3px solid var(--flow-blue); border-radius: 0 2px 2px 0; background: rgba(255,255,255,.92); }
.ranking-score { border-left-color: var(--violet); }
.score-card span, .score-card strong, .score-card small { display: block; }
.score-card span { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 8px; text-transform: uppercase; }
.score-card strong { margin-block: 7px 3px; font-size: 12px; }
.score-card small { color: var(--text-faint); font-size: 9px; }

@keyframes matrixFill { to { transform: scaleX(1); } }
@keyframes trainPass { 0% { transform: translateX(-102%); } 58%, 100% { transform: translateX(0); } }
@keyframes factArrive { to { opacity: 1; transform: none; } }
@keyframes outputBars { to { transform: scaleY(1); } }
@keyframes filingPulse { 0% { left: 14%; opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 100% { left: 88%; opacity: 0; } }
@keyframes pipelineCopyIn { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }

.split-story { --split-blue: #356f9f; --split-violet: #75679b; }
.mechanics-intro { margin-top: 58px; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.mechanics-intro > span { display: block; margin-bottom: 10px; color: var(--violet); font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.mechanics-intro h3 { max-width: 720px; margin-bottom: 15px; font-family: "IBM Plex Sans", -apple-system, sans-serif; font-size: clamp(1.45rem,2.4vw,2rem); font-weight: 600; line-height: 1.2; }
.mechanics-intro > p { max-width: 790px; color: var(--text-soft); font-size: .96rem; line-height: 1.65; }
.mechanics-ledger { margin-top: 25px; display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--line); }
.mechanics-ledger div { min-height: 82px; padding: 14px 16px 13px 0; border-bottom: 1px solid var(--line); }
.mechanics-ledger div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.mechanics-ledger div:nth-child(n+4) { border-bottom: 0; }
.mechanics-ledger small, .mechanics-ledger strong { display: block; }
.mechanics-ledger small { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 7px; letter-spacing: .05em; text-transform: uppercase; }
.mechanics-ledger strong { margin-top: 7px; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.35; }
.split-stage { background: #f3f6f8; }
.split-stage::before { background: linear-gradient(135deg, rgba(53,111,159,.08), transparent 48%, rgba(117,103,155,.08)); }
.split-story .story-index { color: var(--split-blue); font-family: "IBM Plex Sans", -apple-system, sans-serif; font-weight: 600; }
.split-steps { width: min(410px, calc(100% - 48px)); margin-right: 52px; }
.split-story .story-step { position: relative; padding-left: 24px; opacity: 0; transform: translateY(26px); transition: opacity 420ms ease, transform 650ms cubic-bezier(.2,.7,.2,1); }
.split-story .story-step::before { content: ""; position: absolute; inset: auto auto 50% 0; z-index: 0; width: 2px; height: 0; min-height: 0; display: block; border: 0; border-radius: 0; background: var(--split-violet); transform: translateY(50%); transition: height 560ms cubic-bezier(.2,.7,.2,1); }
.split-story .story-step > * { margin-inline: 0; }
.split-story .story-step > span { color: var(--split-violet); font-family: "IBM Plex Sans", -apple-system, sans-serif; font-weight: 600; }
.split-story .story-step h3 { max-width: 380px; font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(1.5rem,2.1vw,1.95rem); font-weight: 600; line-height: 1.18; }
.split-story .story-step p { max-width: 380px; font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .96rem; line-height: 1.58; }
.split-story .story-step.active { opacity: var(--step-edge-opacity, 1); transform: none; }
.split-story .story-step.active::before { height: 240px; }

.split-visual { position: absolute; inset: 78px 43% 40px 34px; }
.split-dimension-note { position: absolute; top: 0; right: 4%; left: 8%; z-index: 5; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 7px; line-height: 1.4; text-align: right; }
.split-plot { position: absolute; inset: 28px 4% 84px 8%; border-bottom: 1px solid rgba(83,97,115,.32); border-left: 1px solid rgba(83,97,115,.32); }
.split-axis { position: absolute; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 7px; letter-spacing: .055em; text-transform: uppercase; }
.split-axis-x { right: 0; bottom: -28px; }
.split-axis-y { top: 50%; left: -72px; transform: translateY(-50%) rotate(-90deg); }
.split-bubbles { position: absolute; inset: 5% 5% 7% 5%; }
.split-bubble { position: absolute; left: var(--bubble-x); bottom: var(--bubble-y); width: var(--bubble-size); height: var(--bubble-size); display: block; border: 1px solid rgba(53,111,159,.38); border-radius: 50%; background: rgba(83,97,115,.26); opacity: .72; transform: translate(-50%,50%) scale(.4); transition: background 650ms ease, border-color 650ms ease, opacity 500ms ease, transform 720ms cubic-bezier(.2,.7,.2,1); transition-delay: var(--bubble-delay); }
.split-bubble span { display: none; }
[data-scene="0"] .split-bubble,
[data-scene="1"] .split-bubble,
[data-scene="2"] .split-bubble,
[data-scene="3"] .split-bubble { transform: translate(-50%,50%) scale(1); }
.split-bin-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6,1fr); opacity: 0; transition: opacity 500ms ease; }
.split-bin-grid i { border-right: 1px dashed rgba(53,111,159,.18); }
[data-scene="1"] .split-bin-grid { opacity: 1; }
.split-line { position: absolute; z-index: 2; background: var(--split-blue); opacity: 0; transform-origin: bottom; transition: opacity 420ms ease, transform 720ms cubic-bezier(.2,.7,.2,1); }
.split-line span { position: absolute; padding: 3px 5px; background: rgba(255,255,255,.92); color: var(--split-blue); font-family: "IBM Plex Mono", monospace; font-size: 6px; white-space: nowrap; }
.split-line-primary { top: 0; bottom: 0; left: 56%; width: 2px; transform: scaleY(0); }
.split-line-primary span { top: 8px; left: 7px; }
.split-line-secondary { top: 50%; right: 0; left: 56%; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--split-violet); }
.split-line-secondary span { right: 5px; bottom: 6px; color: var(--split-violet); }
[data-scene="1"] .split-line-primary,
[data-scene="2"] .split-line-primary,
[data-scene="3"] .split-line-primary { opacity: 1; transform: scaleY(1); }
[data-scene="2"] .split-line-secondary,
[data-scene="3"] .split-line-secondary { opacity: 1; transform: scaleX(1); }
.split-region { position: absolute; opacity: 0; transition: opacity 600ms ease; }
.region-a { top: 0; right: 0; bottom: 50%; left: 56%; background: rgba(47,125,98,.11); }
.region-b { top: 50%; right: 0; bottom: 0; left: 56%; background: rgba(53,111,159,.08); }
.region-c { inset: 0 44% 0 0; background: rgba(182,75,66,.055); }
[data-scene="2"] .split-region,
[data-scene="3"] .split-region { opacity: 1; }
[data-scene="2"] .split-bubble.profile-a,
[data-scene="3"] .split-bubble.profile-a { border-color: rgba(47,125,98,.65); background: rgba(47,125,98,.64); }
[data-scene="2"] .split-bubble.profile-b,
[data-scene="3"] .split-bubble.profile-b { border-color: rgba(53,111,159,.58); background: rgba(53,111,159,.54); }
[data-scene="2"] .split-bubble.profile-c,
[data-scene="3"] .split-bubble.profile-c { border-color: rgba(182,75,66,.5); background: rgba(182,75,66,.42); }
.profile-label { position: absolute; z-index: 3; max-width: 150px; padding: 3px 9px 3px 8px; border-left: 2px solid; background: rgba(255,255,255,.72); opacity: 0; transform: translateY(8px); transition: opacity 420ms ease, transform 520ms ease; }
.profile-label span, .profile-label strong, .profile-label small { display: block; }
.profile-label span { font-family: "IBM Plex Mono", monospace; font-size: 6px; letter-spacing: .05em; text-transform: uppercase; }
.profile-label strong { margin-block: 2px; font-size: 9px; line-height: 1.25; }
.profile-label small { color: var(--text-faint); font-size: 7px; }
.profile-label.profile-a { top: 9%; right: 4%; border-color: var(--green); }
.profile-label.profile-b { right: 4%; bottom: 8%; border-color: var(--split-blue); }
.profile-label.profile-c { bottom: 10%; left: 4%; border-color: var(--red); }
[data-scene="2"] .profile-label,
[data-scene="3"] .profile-label { opacity: 1; transform: none; }
.boost-trace { position: absolute; right: 5%; bottom: 8px; left: 8%; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 7px; opacity: 0; transform: translateY(10px); transition: opacity 480ms ease, transform 580ms ease; }
.boost-trace span, .boost-trace strong, .boost-trace small { font-family: "IBM Plex Mono", monospace; font-size: 7px; font-weight: 500; }
.boost-trace span { color: var(--text-faint); }
.boost-trace i { height: 2px; overflow: hidden; background: rgba(53,111,159,.15); }
.boost-trace i::after { content: ""; width: 100%; height: 100%; display: block; background: var(--split-blue); transform: translateX(-102%); }
.boost-trace small { position: absolute; right: 0; bottom: -22px; color: var(--text-faint); }
[data-scene="3"] .boost-trace { opacity: 1; transform: none; }
[data-scene="3"] .boost-trace i::after { animation: trainPass 1.8s cubic-bezier(.2,.7,.2,1) infinite; }
[data-scene="3"] .split-bubble.realized-positive { animation: splitCorrection 1.8s ease-in-out infinite alternate; }
@keyframes splitCorrection { to { box-shadow: 0 0 0 3px rgba(47,125,98,.13); } }

.legend-inline { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-faint); font-size: 11px; }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.legend-inline i { width: 13px; height: 13px; display: inline-block; border: 1px solid; }
.legend-train { border-color: var(--violet) !important; background: rgba(163,113,247,.14); }
.legend-test { border-color: var(--red) !important; background: rgba(248,81,73,.14); }
.walk-forward-shell { position: relative; padding-bottom: 158px; }
.walk-forward { margin-top: 20px; display: grid; grid-template-columns: 76px repeat(14, minmax(29px, 1fr)); gap: 4px; overflow-x: auto; padding-bottom: 8px; }
.wf-row { display: contents; }
.wf-cell { min-width: 29px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.wf-cell.header, .wf-cell.row-label { border-color: transparent; }
.wf-cell.row-label { justify-content: start; color: var(--text-faint); }
.wf-cell.train { border-color: rgba(163,113,247,.6); background: rgba(163,113,247,.12); }
.wf-cell.test { border-color: var(--red); background: rgba(182,75,66,.10); color: var(--red); }
.wf-cell.future { opacity: .3; }
.wf-cell[data-year]:hover,
.wf-cell[data-year]:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.wf-cell[data-year]:focus-visible { position: relative; z-index: 1; }
.walk-popover {
  --popover-left: 8px;
  --popover-top: 362px;
  position: absolute;
  top: var(--popover-top);
  left: var(--popover-left);
  z-index: 8;
  width: min(310px, calc(100% - 16px));
  min-height: 122px;
  padding: 13px 15px 14px;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--red);
  border-radius: 2px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 30px rgba(36,36,36,.10);
  pointer-events: none;
  transition: top 220ms cubic-bezier(.2,.7,.2,1), left 220ms cubic-bezier(.2,.7,.2,1), border-color 180ms ease, opacity 180ms ease, transform 220ms ease;
}
.walk-popover[data-role="train"] { border-top-color: var(--violet); }
.walk-popover[data-role="future"] { border-top-color: var(--line-strong); }
.walk-popover-kicker { display: block; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.walk-popover > strong { margin-top: 4px; display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.walk-popover > p { margin: 3px 0 10px; color: var(--text-soft); font-size: 11px; line-height: 1.4; }
.walk-popover dl { margin: 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.walk-popover dl div { padding: 8px 7px 0 0; }
.walk-popover dt { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 7px; line-height: 1.25; text-transform: uppercase; }
.walk-popover dd { margin: 3px 0 0; color: var(--text); font-size: 11px; font-weight: 600; }
.walk-popover-note { margin: 8px 0 0 !important; color: var(--text-faint) !important; font-size: 9px !important; }
.validation-note { margin: 0 0 16px; padding: 12px 14px; border-left: 2px solid var(--violet); background: rgba(124,103,162,.055); color: var(--text-soft); font-size: 12px; line-height: 1.55; }
.validation-note strong { color: var(--text); font-weight: 600; }
.chart-detail { min-height: 22px; margin-top: 10px; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 10px; text-align: center; }

.summary-strip { margin-block: 34px; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.summary-strip div { padding: 16px 14px; border-right: 1px solid var(--line); }
.summary-strip div:last-child { border-right: 0; }
.summary-strip span, .summary-strip strong { display: block; }
.summary-strip span { min-height: 34px; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 9px; line-height: 1.35; text-transform: uppercase; }
.summary-strip strong { color: var(--text); font-size: 1.55rem; font-weight: 500; }
.industry-story { margin-top: 52px; }
.industry-stage { background: #f1f3ef; }
.industry-stage::before { background: radial-gradient(circle at 38% 48%, rgba(47,125,98,.13), transparent 34%), radial-gradient(circle at 70% 52%, rgba(182,75,66,.08), transparent 32%); }
#industry-field { position: absolute; inset: 0 34% 0 0; }
#industry-field canvas { width: 100%; height: 100%; display: block; }
.industry-axis { position: absolute; z-index: 3; color: rgba(75,75,75,.65); font-family: "IBM Plex Mono", monospace; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.axis-x { bottom: 27px; left: 31%; transform: translateX(-50%); }
.axis-y { top: 50%; left: 22px; transform: translate(-42%,-50%) rotate(-90deg); }
.industry-readout { position: absolute; bottom: 54px; left: 48px; z-index: 4; width: 285px; padding-left: 14px; border-left: 2px solid var(--blue); pointer-events: none; }
.industry-readout span, .industry-readout strong, .industry-readout small { display: block; }
.industry-readout span { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.industry-readout strong { margin-block: 7px 5px; color: var(--text); font-family: "Source Serif 4", Georgia, serif; font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.industry-readout small { color: var(--text-soft); font-size: 10px; line-height: 1.45; }
.industry-extremes { margin-block: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.industry-extremes article { padding: 17px 16px 15px; border: 1px solid var(--line); border-top: 2px solid var(--green); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); }
.industry-extremes article:last-child { border-top-color: var(--red); }
.industry-extremes span { display: block; min-height: 28px; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 9px; line-height: 1.4; text-transform: uppercase; }
.industry-extremes strong { display: block; margin-block: 8px 5px; color: var(--text); font-size: 1.65rem; font-weight: 500; }
.industry-extremes p { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.45; }
.industry-extremes small { color: var(--text-faint); font-size: 10px; }
.plot { width: 100%; height: 430px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfbfa; }
.plot-industry { height: 540px; }
.plot-3d { height: 525px; }
.plot-controls { margin: 0 0 9px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.plot-controls span { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.plot-controls button {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-soft);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.plot-controls button:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.plot-3d,
.plot-3d canvas { cursor: grab !important; touch-action: pan-y; }
.plot-3d:active,
.plot-3d canvas:active { cursor: grabbing !important; }
.figure-status { margin: 8px 0 0; padding: 8px 10px; border-left: 2px solid var(--blue); background: var(--surface); color: var(--text-faint); font-size: 11px; line-height: 1.45; }
.figure-status[data-state="error"] { border-left-color: var(--red); color: var(--red); }
.figure-status[hidden] { display: none; }
.result-note { padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); color: var(--text-soft); font-size: 14px; }

.architecture { padding: 28px; display: grid; grid-template-columns: 1fr 1.05fr 1.55fr; align-items: center; gap: 24px; }
.arch-input, .arch-branch { min-height: 160px; padding: 18px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.arch-input span, .arch-branch span, .arch-input small, .arch-branch small { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.arch-input strong, .arch-branch strong { margin-block: 8px; font-size: 1.02rem; line-height: 1.35; }
.seed-stack { display: grid; grid-template-rows: repeat(5, 1fr); gap: 5px; }
.seed-stack span { padding: 8px 12px; border-left: 2px solid var(--violet); border-radius: 0 4px 4px 0; background: rgba(163,113,247,.1); color: var(--text-soft); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.arch-split { display: grid; grid-template-columns: 1fr; gap: 10px; }
.arch-branch { min-height: 108px; border-left: 3px solid var(--blue); }
.arch-branch + .arch-branch { border-left-color: var(--violet); }

.content-section ul { padding-left: 22px; color: var(--text-soft); }
.content-section li { margin-block: 10px; }
.resource-list { max-width: var(--measure); margin-block: 28px; border-top: 1px solid var(--line); }
.resource-list a { padding: 15px 0; display: grid; grid-template-columns: 180px 1fr; gap: 22px; border-bottom: 1px solid var(--line); text-decoration: none; }
.resource-list a:hover strong { color: var(--blue); }
.resource-list strong { color: var(--text); font-weight: 500; transition: color 160ms ease; }
.resource-list span { color: var(--text-faint); font-size: 13px; }

.closing-notes { padding: 82px 0 92px; }
.closing-notes > h2 { max-width: var(--measure); margin-bottom: 38px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.closing-grid { display: grid; grid-template-columns: .9fr 1.25fr; gap: 64px; align-items: start; }
.closing-grid h3 { margin-bottom: 14px; font-size: 1rem; }
.closing-grid p,
.citations { color: var(--text-soft); font-family: "Source Serif 4", Georgia, serif; font-size: .96rem; line-height: 1.65; }
.citations { margin: 0; padding-left: 20px; }
.citations li { margin-bottom: 10px; padding-left: 5px; }
.citations a { color: var(--text); text-decoration-color: var(--line-strong); }
.citations a:hover { color: var(--blue); text-decoration-color: var(--blue); }

.site-footer { padding-block: 30px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.noscript { position: fixed; right: 12px; bottom: 12px; left: 12px; z-index: 200; padding: 12px; border: 1px solid var(--red); border-radius: var(--radius); background: var(--surface); text-align: center; }

.reveal,
.scroll-reveal { opacity: 0; filter: blur(4px); transform: translateY(24px) scale(.992); transition: opacity 680ms cubic-bezier(.2,.7,.2,1), transform 760ms cubic-bezier(.2,.7,.2,1), filter 680ms ease; will-change: opacity, transform, filter; }
.reveal.visible,
.scroll-reveal.visible { opacity: 1; filter: none; transform: none; }
.figure-block.reveal { clip-path: inset(0 0 7% 0); transition-property: opacity, transform, filter, clip-path; }
.figure-block.reveal.visible { clip-path: inset(0); }
.figure-block:hover .plot { border-color: var(--line-strong); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal, .scroll-reveal { opacity: 1; filter: none; transform: none; clip-path: none; }
  .scroll-story { width: 100%; margin-left: 0; transform: none; }
  .story-sticky { position: relative; top: auto; height: 620px; }
  .story-steps { width: 100%; margin: 0; padding: 18px 0 0; }
  .story-step { min-height: 0; margin-block: 12px; padding-block: 32px; opacity: 1; transform: none; }
  .scroll-progress span { transition: none; }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .split-visual { right: 46%; left: 24px; }
  .split-steps { width: 36%; margin-right: 32px; }
}

@media (max-width: 980px) {
  .metadata-grid, .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .metadata-grid div:nth-child(2), .summary-strip div:nth-child(2) { border-right: 0; }
  .metadata-grid div:nth-child(-n+2), .summary-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pipeline-visual, .split-visual { right: 46%; left: 20px; }
  .pipeline-steps, .split-steps { width: 40%; margin-right: 26px; }
  .split-visual { right: 50%; }
  .split-steps { width: 36%; margin-right: 28px; }
  .pipeline-copy { right: 26px; width: 40%; }
  .vignette-caption { display: none; }
  .architecture { grid-template-columns: 1fr 1fr; }
  .arch-split { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .closing-grid { gap: 38px; }
}

@media (max-width: 760px) {
  :root { --header-height: 56px; }
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .nav-toggle { margin-left: auto; display: block; }
  .nav-links { position: absolute; top: 100%; right: 14px; left: 14px; padding: 10px; display: none; flex-direction: column; align-items: stretch; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); box-shadow: 0 16px 40px rgba(36,36,36,.10); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 9px 10px; }
  .nav-links a::after { display: none; }
  .section-pad { padding-block: 58px 48px; }
  .project-header h1 { font-size: clamp(2.4rem, 11vw, 4rem); }
  .hero-field { right: -26%; width: 105%; opacity: .5; }
  .scroll-story { width: 100%; margin-left: 0; transform: none; }
  .story-sticky { top: var(--header-height); height: calc(100vh - var(--header-height)); min-height: 540px; border-inline: 0; border-radius: 0; }
  .story-steps { width: min(350px, calc(100% - 28px)); margin-top: calc(-100vh + var(--header-height)); margin-right: 14px; padding-block: 31vh 36vh; }
  .story-step { min-height: 72vh; }
  .pipeline-steps { width: calc(100% - 36px); margin-right: 18px; padding-block: 47vh 27vh; }
  .pipeline-story .story-step { min-height: 78vh; padding: 0 0 9vh 18px; justify-content: flex-end; }
  .pipeline-story .story-step h3 { max-width: 440px; font-size: 1.42rem; line-height: 1.18; }
  .pipeline-story .story-step p { max-width: 460px; font-size: .9rem; line-height: 1.5; }
  .pipeline-story .story-step.active::before { height: 190px; }
  .pipeline-copy { top: auto; right: 18px; bottom: 7%; left: 18px; width: auto; padding-left: 18px; transform: none; }
  .pipeline-copy h3 { max-width: 440px; font-size: 1.42rem; line-height: 1.18; }
  .pipeline-copy p { max-width: 460px; font-size: .9rem; line-height: 1.5; }
  .pipeline-visual { inset: 54px 10px 39% 10px; opacity: 1; }
  .pipeline-vignettes { inset: 0 0 22%; transform: none; }
  .pipeline-timeline { right: 1%; left: 1%; height: 58px; }
  .pipeline-node { width: 64px; }
  .pipeline-node strong { margin-top: 8px; font-size: 8px; text-align: center; }
  .pipeline-track { right: 8%; left: 8%; }
  .pipeline-node[data-pipeline-node="0"] { left: 8%; }
  .pipeline-node[data-pipeline-node="1"] { left: 36%; }
  .pipeline-node[data-pipeline-node="2"] { left: 64%; }
  .pipeline-node[data-pipeline-node="3"] { left: 92%; }
  .filing-stream { inset: 2% 3% 0; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; align-content: center; gap: 10px 14px; }
  .filing-stream::before, .filing-stream::after, .sec-source::after { display: none; }
  .sec-source { grid-column: 1; grid-row: 1; padding: 9px 10px; }
  .sec-source strong { margin-block: 3px 1px; font-size: 12px; }
  .sec-source small { font-size: 6px; }
  .filing-output { grid-column: 2; grid-row: 1; padding-left: 10px; }
  .filing-output strong { margin-block: 3px 6px; font-size: 10px; }
  .filing-output i { height: 10px; }
  .fact-stream { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
  .fact-row { min-height: 43px; padding: 6px 8px; grid-template-columns: 32px minmax(0,1fr); grid-template-rows: auto auto; gap: 1px 6px; }
  .fact-row code { font-size: 8px; }
  .fact-row b { grid-column: 2; font-size: 6px; text-align: left; }
  .feature-matrix { width: 90%; }
  .panel-labels { top: 2%; left: 5%; }
  .panel-merge { right: 4%; bottom: 0; left: 4%; flex-wrap: wrap; justify-content: flex-end; }
  .training-vignette { width: 94%; }
  .training-model { grid-template-columns: 60px 1fr 28px; }
  .scoring-vignette { gap: 8px 14px; padding: 3% 2%; }
  .ensemble-score { padding: 14px 8px; }
  .score-card { padding: 10px; }
  .split-steps { width: calc(100% - 36px); margin-right: 18px; padding-block: 47vh 27vh; }
  .split-story .story-step { min-height: 78vh; padding: 0 0 9vh 18px; justify-content: flex-end; }
  .split-story .story-step::before { top: auto; bottom: 9vh; transform: none; }
  .split-story .story-step h3 { font-size: 1.38rem; }
  .split-story .story-step p { font-size: .88rem; line-height: 1.48; }
  .split-story .story-step.active::before { height: 160px; }
  .split-visual { inset: 56px 10px 52% 10px; }
  .split-dimension-note { right: 3%; left: 10%; font-size: 6px; }
  .split-plot { inset: 26px 4% 70px 10%; }
  .split-axis-y { left: -62px; }
  .profile-label { max-width: 120px; }
  .profile-label strong { font-size: 8px; }
  .profile-label small { display: none; }
  .boost-trace { bottom: 5px; gap: 4px; }
  #industry-field { inset: 0; opacity: .74; }
  .industry-readout { top: 72px; bottom: auto; left: 18px; width: 245px; }
  .axis-x, .axis-y { display: none; }
  .overview { grid-template-columns: 1fr; gap: 8px; }
  .author-line a { margin-left: 0; }
  .content-section { padding: 62px 0; }
  .mechanics-intro { margin-top: 42px; }
  .mechanics-ledger { grid-template-columns: repeat(2,1fr); }
  .mechanics-ledger div:nth-child(n) { min-height: 75px; border-bottom: 1px solid var(--line); }
  .mechanics-ledger div:nth-last-child(-n+2) { border-bottom: 0; }
  .boundary-figure { grid-template-columns: 1fr; gap: 20px; }
  .boundary-line { min-height: 74px; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr; }
  .boundary-line span, .boundary-line small { align-self: center; margin: 0 8px; }
  .boundary-line i { width: 100px; height: 0; border-top: 2px dashed var(--blue); border-left: 0; }
  .target-side .boundary-row > span { text-align: right; }
  .figure-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .plot-controls { justify-content: space-between; }
  .plot-controls span { max-width: 220px; line-height: 1.4; }
  .plot { height: 390px; }
  .plot-industry { height: 470px; }
  .plot-3d { height: 440px; }
  .walk-forward-shell { padding-bottom: 170px; }
  .walk-popover { width: min(310px, calc(100% - 16px)); }
  .industry-extremes { grid-template-columns: 1fr; }
  .industry-extremes span { min-height: 0; }
  .closing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 4px; }
}

@media (max-width: 520px) {
  .content-section { padding-block: 48px; }
  .pipeline-story .story-index { right: 16px; left: 16px; font-size: 8px; }
  .pipeline-story .story-step { padding-left: 18px; }
  .pipeline-story .story-step h3 { font-size: 1.28rem; }
  .pipeline-story .story-step p { font-size: .84rem; line-height: 1.46; }
  .pipeline-story .story-step.active::before { height: 170px; }
  .pipeline-copy { display: none; }
  .pipeline-copy > span { margin-bottom: 10px; font-size: 8px; }
  .pipeline-copy h3 { font-size: 1.28rem; }
  .pipeline-copy p { font-size: .84rem; line-height: 1.46; }
  .pipeline-visual { inset: 50px 8px 18px; }
  .pipeline-vignettes { bottom: 24%; }
  .pipeline-node { width: 58px; }
  .pipeline-node strong { font-size: 7px; }
  .sec-source small { display: none; }
  .sec-source span, .filing-output span { font-size: 6px; }
  .fact-row { min-height: 39px; grid-template-columns: 28px minmax(0,1fr); }
  .fact-row span, .fact-row b { font-size: 5.5px; }
  .fact-row code { font-size: 7px; }
  .panel-labels { display: none; }
  .panel-merge { justify-content: center; font-size: 6px; }
  .panel-merge strong { width: 100%; text-align: center; }
  .training-vignette { padding-top: 0; }
  .training-header { margin-bottom: 7px; }
  .training-model { margin-block: 4px; padding: 6px 7px; grid-template-columns: 52px 1fr 24px; }
  .training-window { margin-top: 9px; }
  .scoring-vignette { grid-template-columns: .72fr 1.28fr; gap: 6px 10px; }
  .ensemble-score { padding: 10px 5px; }
  .ensemble-score span { display: none; }
  .ensemble-score strong { margin: 0; font-size: 10px; }
  .score-card { padding: 8px; }
  .score-card strong { margin-block: 4px 2px; font-size: 9px; }
  .score-card small { font-size: 7px; }
  .pipeline-story, .industry-story, .split-story { margin-block: 36px 24px; }
  .pipeline-story .story-sticky,
  .industry-story .story-sticky,
  .split-story .story-sticky { position: relative; top: auto; min-height: 0; border-radius: 10px 10px 0 0; }
  .pipeline-story .story-sticky { height: 440px; }
  .industry-story .story-sticky { height: 400px; }
  .split-story .story-sticky { height: 400px; }
  .mobile-swipe-hint {
    margin: 0;
    padding: 10px 16px 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: var(--text-faint);
    font-family: "IBM Plex Mono", monospace;
    font-size: 7px;
    letter-spacing: .07em;
    line-height: 1;
    text-transform: uppercase;
  }
  .mobile-swipe-hint i {
    color: var(--blue);
    font-size: 13px;
    font-style: normal;
    animation: swipe-hint-shift 1.8s ease-in-out infinite;
  }
  .industry-story .story-index,
  .split-story .story-index { top: 14px; right: 14px; left: 14px; gap: 12px; font-size: 7px; line-height: 1.3; }
  .pipeline-story .story-progress,
  .industry-story .story-progress,
  .split-story .story-progress { right: 12px; bottom: 8px; }
  .pipeline-steps,
  .industry-steps,
  .split-steps {
    width: 100%;
    margin: 0;
    padding: 9px 14px 18px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(76vw, 304px);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    pointer-events: auto;
  }
  .pipeline-steps::-webkit-scrollbar,
  .industry-steps::-webkit-scrollbar,
  .split-steps::-webkit-scrollbar { display: none; }
  .pipeline-steps .story-step,
  .industry-steps .story-step,
  .split-steps .story-step {
    min-height: 190px;
    padding: 20px 18px;
    justify-content: flex-start;
    visibility: visible;
    opacity: 1 !important;
    transform: none !important;
    scroll-snap-align: center;
    border: 1px solid var(--line);
    border-left: 3px solid var(--violet);
    background: rgba(255,255,255,.92);
  }
  .pipeline-steps .story-step { border-left-color: var(--flow-blue); }
  .industry-steps .story-step { border-left-color: var(--green); }
  .pipeline-steps .story-step::before,
  .industry-steps .story-step::before,
  .split-steps .story-step::before { display: none; }
  .split-story .story-step h3 { font-size: 1.22rem; }
  .split-story .story-step p { font-size: .82rem; line-height: 1.44; }
  .split-visual { inset: 96px 8px 18px; }
  .split-dimension-note { left: 11%; font-size: 5.5px; }
  .split-plot { inset: 26px 3% 38px 11%; }
  .split-axis { font-size: 6px; }
  .split-axis-y { left: -56px; }
  .split-line span { display: none; }
  .profile-label { max-width: 92px; padding-left: 5px; }
  .profile-label span { font-size: 5px; }
  .profile-label strong { font-size: 6.5px; }
  .boost-trace span, .boost-trace strong, .boost-trace small { font-size: 5.5px; }
  .industry-readout { display: none; }
}

@keyframes swipe-hint-shift {
  0%, 55%, 100% { transform: translateX(0); }
  75% { transform: translateX(4px); }
}

@media (max-width: 520px) {
  .metadata-grid, .summary-strip, .architecture { grid-template-columns: 1fr; }
  .arch-split { grid-column: auto; grid-template-columns: 1fr; }
  .metadata-grid div, .summary-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metadata-grid div:last-child, .summary-strip div:last-child { border-bottom: 0; }
  .boundary-row, .target-side .boundary-row { grid-template-columns: 1fr; gap: 4px; }
  .boundary-row > span, .target-side .boundary-row > span { text-align: left; }
  .boundary-line { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .boundary-line i { width: 75%; margin-block: 8px; }
  .walk-forward { grid-template-columns: 70px repeat(14, 30px); }
  .resource-list a { grid-template-columns: 1fr; gap: 3px; }
  .plot { height: 320px; }
  .plot-industry { height: 380px; }
  .plot-3d { height: 340px; }
}

@media print {
  @page { margin: 18mm; }
  body { background: #fff; color: #000; font-size: 10pt; }
  .site-header, .contents, .nav-toggle, .noscript, .scroll-progress { display: none !important; }
  .shell { width: 100%; }
  .project-header { padding-block: 0 24px; }
  .page-layout { display: block; }
  .page-body { border: 0; }
  .content-section { padding: 30px 0; break-before: auto; }
  .figure-block, table { break-inside: avoid; }
  .reveal, .scroll-reveal { opacity: 1; transform: none; }
  .scroll-story { width: 100%; margin: 30px 0; transform: none; }
  .story-sticky { position: relative; top: auto; height: 170mm; }
  .story-steps { display: none; }
  a { color: #000; text-decoration: none; }
  .site-footer { background: #fff; }
}
