:root {
  color-scheme: dark;
  --ink: #f2f3fc;
  --muted: #a5afc7;
  --line: #272e45;
  --blue: #90a6ff;
  --violet: #b49bff;
  --surface: #101524;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: #080a12; color: var(--ink); font: 16px/1.6 system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid #b8c6ff; outline-offset: 4px; }
.wrap { width: min(1216px, 100% - clamp(36px, 9vw, 144px)); margin-inline: auto; }
.top { border-bottom: 1px solid #1d2335; background: #090b14; }
.nav, .footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; gap: 9px; align-items: center; font-size: 21px; font-weight: 740; letter-spacing: -.065em; }
nav { display: flex; gap: clamp(16px, 3vw, 33px); color: var(--muted); font-size: 13px; }
nav a:hover, .footer a:hover { color: white; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid transparent; border-radius: 9px; padding: 11px 16px; white-space: nowrap; font-weight: 700; font-size: 13px; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button.small { padding: 8px 12px; }
.button.primary { background: #a9b9ff; color: #0c1430; box-shadow: 0 5px 26px #627dff38; }
.button.primary:hover { background: #c8d2ff; }
.button.secondary { border-color: #39415d; background: #171d30; }
.button.secondary:hover { background: #252e49; border-color: #6478bc; }
.hero, .problem { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 76px); align-items: center; }
.hero { padding-block: clamp(64px, 9vw, 126px); }
.kicker, .micro, .panel-head, .chart-axis { font: 650 11px/1.6 ui-monospace, monospace; letter-spacing: .12em; }
.kicker { color: var(--blue); }
.kicker i, .panel-head i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #91a7ff; box-shadow: 0 0 12px #8b9dff; vertical-align: 2px; margin-right: 6px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 670; letter-spacing: -.067em; line-height: 1.03; }
h1 { margin: 18px 0 22px; font-size: clamp(48px, 5.65vw, 83px); }
h2 { margin: 12px 0 19px; font-size: clamp(38px, 5vw, 62px); }
h1 em, h2 em { display: inline-block; color: #a7b6ff; font-style: normal; background: linear-gradient(110deg, #b9cbff, #a49aff 90%); background-clip: text; -webkit-text-fill-color: transparent; }
.lead { max-width: 56ch; color: var(--muted); font-size: clamp(16px, 1.8vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.network, .dashboard { overflow: hidden; border: 1px solid #303955; border-radius: 16px; background: linear-gradient(155deg, #141b31, #0c101c 65%); box-shadow: 0 20px 64px #0007; }
.network { min-width: 0; }
.panel-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 13px 16px; border-bottom: 1px solid #29324a; color: #b6c1de; font-size: 10px; }
.panel-head > :last-child { text-align: right; }
#network { display: block; width: 100%; height: auto; aspect-ratio: 1.3; background: radial-gradient(ellipse at 50% 56%, #202850, #0b101d 72%); touch-action: pan-y; }
.network-controls, .segmented { display: flex; gap: 5px; flex-wrap: wrap; }
.network-controls { margin: 12px 15px 8px; }
.network-controls button, .segmented button { padding: 6px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #aab5d1; font-size: 12px; }
.network-controls button:hover, .segmented button:hover { color: white; }
button[aria-pressed="true"] { color: #dee5ff; background: #232c4a; border-color: #435585; }
figcaption { min-height: 48px; padding: 0 16px 12px; color: var(--muted); font-size: 12px; }
.band { background: #0c0f19; border-block: 1px solid #1e2539; }
.section { padding-block: clamp(61px, 8vw, 109px); }
.cards, .steps, .cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 33px; }
.cards article, .cases article, .steps li { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, #14192b, #101422); }
.cards article:hover, .cases article:hover { border-color: #526394; }
.icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #222b48; color: #a6b7ff; margin-bottom: 17px; font-size: 19px; }
h3 { letter-spacing: -.036em; font-size: 21px; line-height: 1.24; }
article p, li p, .recommendation p:last-child { color: var(--muted); font-size: 14px; margin-top: 8px; }
.dashboard { margin-top: 31px; }
.badge { color: #c5ccfa; }
.dash-content { padding: clamp(15px, 3vw, 29px); }
.dash-top, .chart-top, .chart-axis { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.micro, .chart-axis { color: #aab4ce; font-size: 10px; }
.dash-top h3 { margin-top: 5px; font-size: clamp(21px, 3vw, 31px); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 20px 0 12px; }
.metrics div, .chart, .recommendation { min-width: 0; border: 1px solid #2b344d; border-radius: 9px; background: #0c111e; padding: clamp(10px, 2vw, 19px); }
.metrics span { color: var(--muted); font-size: 12px; }
.metrics strong { display: block; margin-top: 4px; font-size: clamp(20px, 3vw, 33px); font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 10px; }
.chart-top { font-size: 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 12px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #91a6ff; margin-right: 4px; }
.legend span:last-child::before { background: #c299ff; }
.chart svg { display: block; width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.grid { fill: none; stroke: #252d44; }
.value-line, .spend-line { fill: none; stroke: #91a6ff; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.spend-line { stroke: #c299ff; }
.decision { display: inline-block; margin-top: 13px; padding: 4px 8px; border-radius: 5px; color: #a8ebd3; background: #19332f; font: 650 11px/1.6 ui-monospace, monospace; }
.decision[data-tone="optimize"] { background: #382e26; color: #ffdda9; }
.decision[data-tone="retire"] { background: #3b2535; color: #ffbcd1; }
.steps { padding: 0; list-style: none; }
.steps li > span, .cases article > span { display: block; color: var(--blue); font-size: 12px; margin-bottom: 9px; }
.cases article > span { margin: 14px 0 0; }
.final-wrap { margin-bottom: clamp(45px, 7vw, 90px); }
.final { padding: clamp(35px, 7vw, 84px) 22px; border: 1px solid #394568; border-radius: 18px; background: radial-gradient(ellipse at 48% -12%, #282e61, #12192e 57%, #0e1220); text-align: center; }
.final .lead { margin-inline: auto; }
.final .actions { justify-content: center; }
.fine { color: var(--muted); font-size: 12px; margin-top: 12px; }
.footer { color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.footer .brand { color: var(--ink); }
.reveal-ready .reveal { opacity: 0; transform: translateY(15px); transition: opacity .52s ease, transform .52s ease; }
.reveal-ready .reveal.visible, .reveal-ready .reveal:focus-within { opacity: 1; transform: none; }
@media (max-width: 780px) {
  .hero, .problem { grid-template-columns: 1fr; gap: 26px; }
  .nav nav { display: none; }
  .hero-copy { max-width: 590px; }
  .cards, .steps, .cases { gap: 9px; }
  .cards article, .cases article, .steps li { padding: 15px; }
}
@media (max-width: 550px) {
  .cards, .steps, .cases, .dash-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-top { align-items: flex-start; flex-direction: column; }
  .footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

/* Graphite surfaces keep the focus on the investment evidence. */
:root {
  --ink: #f4f5f7;
  --muted: #aeb4c0;
  --line: #2c3039;
  --blue: #a8bbff;
  --surface: #15171d;
}
body { background: #101116; }
.top { background: #111217; border-color: var(--line); }
.hero { padding-block: clamp(54px, 7vw, 104px); }
h1 em, h2 em { background: none; color: #a8bbff; -webkit-text-fill-color: currentColor; }
.button.primary { color: #fff; background: #365ad8; border-color: #5274ed; box-shadow: none; }
.button.primary:hover { background: #2848b9; }
.button.secondary { border-color: #3e4450; background: #20232b; }
.band { background: #15171c; border-color: var(--line); }
.cards article, .cases article, .steps li { background: #1b1e25; }
.network, .dashboard { background: #1a1c24; border-color: #373d4a; box-shadow: none; }
.final { background: #1a1d29; border-color: #3a435c; }
.brief { margin: 0; min-width: 0; border: 1px solid #dddfe5; border-radius: 12px; overflow: hidden; background: #f5f6f9; color: #1c2231; box-shadow: 0 24px 64px #0005; }
.brief-header, .brief-title p, .brief-evidence > span, .output-index { font: 700 10px/1.5 ui-monospace, monospace; letter-spacing: .09em; }
.brief-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; color: #4e596f; border-bottom: 1px solid #dce0e8; }
.brief-header i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: #365ad8; border-radius: 50%; }
.brief-body { padding: clamp(13px, 2.5vw, 25px); }
.brief-title { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.brief-title p, .brief-evidence > span { color: #515d74; }
.brief-title h2 { margin: 5px 0 0; font-size: clamp(24px, 3vw, 37px); letter-spacing: -.05em; }
.brief-status { padding: 4px 7px; border-radius: 4px; color: #164d3c; background: #dfefe7; font: 700 10px/1.5 ui-monospace, monospace; }
.brief-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 17px 0; }
.brief-metrics > div { border: 1px solid #dce0e9; border-radius: 6px; padding: 7px 6px; background: #fff; }
.brief-metrics span { color: #525d70; font-size: 11px; }
.brief-metrics strong { display: block; font-size: clamp(17px, 2.4vw, 29px); letter-spacing: -.05em; }
.brief-chart > div, .baseline > div { display: grid; grid-template-columns: 45px minmax(0, 1fr) 54px; align-items: center; gap: 8px; margin-top: 9px; font-size: 11px; }
.brief-chart strong, .baseline strong { text-align: right; font-variant-numeric: tabular-nums; }
.brief-chart i, .baseline i { height: 9px; border-radius: 2px; background: linear-gradient(to right, #365ad8 var(--fill), #e3e7f0 var(--fill)); }
.brief-chart > div + div i { background: linear-gradient(to right, #7a879e var(--fill), #e3e7f0 var(--fill)); }
.brief-evidence { border-top: 1px solid #dce0e8; margin-top: 17px; padding-top: 10px; }
.brief-evidence p { font-size: 12px; margin-top: 3px; }
.brief figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; min-height: auto; padding: 10px 15px; color: #4f5b73; background: #eaedf4; }
.brief figcaption a { color: #244abf; font-weight: 700; }
.outputs { background: #eceef4; color: #1c2231; }
.outputs .kicker, .output-index { color: #284bbf; }
.outputs .lead, .output-card p { color: #49546a; }
.output-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 29px; }
.output-card { padding: clamp(15px, 2vw, 23px); border: 1px solid #d3d8e4; border-radius: 9px; background: #fff; min-width: 0; }
.output-card .output-index { margin: 0 0 12px; color: #284bbf; }
.allocation { display: flex; height: 10px; gap: 2px; overflow: hidden; border-radius: 2px; margin: 15px 0 6px; }
.allocation span:nth-child(1) { flex: 52; background: #365ad8; }
.allocation span:nth-child(2) { flex: 36; background: #6b7fa9; }
.allocation span:nth-child(3) { flex: 12; background: #bbc6df; }
.output-list { margin: 12px 0 0; font-size: 12px; }
.output-list > div { display: flex; gap: 9px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #e2e6ee; }
.output-list dd { margin: 0; font-weight: 700; color: #284bbf; }
.baseline { margin-top: 14px; }
.baseline > div:first-child i { background: #8694ac; }
.output-card .output-foot { margin-top: 14px; font-size: 12px; }
.network-feature { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(24px, 5vw, 65px); align-items: center; border-top: 1px solid var(--line); margin-top: 37px; padding-top: 34px; }
.network-feature h3 { font-size: clamp(24px, 4vw, 38px); margin: 8px 0; }
@media (max-width: 780px) { .output-grid, .network-feature { grid-template-columns: 1fr; } }

.stress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.stress-controls, .stress-result { min-width: 0; padding: clamp(16px, 3vw, 30px); border: 1px solid #353b48; border-radius: 12px; background: #1a1d26; }
.stress-control + .stress-control { margin-top: 16px; }
.stress-control { display: grid; grid-template-columns: 1fr auto; gap: 4px 9px; align-items: center; }
.stress-control label { font-weight: 650; font-size: 14px; }
.stress-control output { color: var(--blue); font: 700 13px ui-monospace, monospace; }
.stress-control input { grid-column: 1 / -1; width: 100%; accent-color: #9fb3ff; margin: 3px 0; cursor: pointer; }
.stress-ends { display: flex; justify-content: space-between; grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.stress-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.stress-presets button { padding: 6px 9px; border: 1px solid #3b4356; border-radius: 5px; background: #202431; color: var(--ink); font-size: 12px; }
.stress-presets button[aria-pressed="true"] { background: #293660; border-color: #6276bf; }
.stress-method { margin-top: 14px; color: var(--muted); font-size: 12px; }
.stress-method summary { cursor: pointer; }
.stress-method p { margin-top: 8px; }
.stress-result-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.stress-result-head .decision { margin: 0; }
.stress-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 13px 0; }
.stress-metrics > div { padding: 9px; border: 1px solid #353b48; border-radius: 6px; background: #141722; }
.stress-metrics span { display: block; color: var(--muted); font-size: 12px; }
.stress-metrics strong { font-size: clamp(19px, 3.5vw, 32px); font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.stress-bars > div { display: grid; grid-template-columns: 35px 1fr 56px; gap: 8px; align-items: center; margin: 6px 0; font-size: 12px; }
.stress-bars strong { text-align: right; font-variant-numeric: tabular-nums; }
.stress-bars i { display: block; height: 8px; border-radius: 2px; background: #343b51; overflow: hidden; }
.stress-bars i::before { content: ""; display: block; height: 100%; width: var(--width); background: #91a8ff; transition: width .2s ease; }
.stress-bars > div + div i::before { background: #8290ae; }
.stress-threshold { margin-top: 13px; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .stress-grid { grid-template-columns: 1fr; } }

.evidence-section { background: #e9ecf3; color: #1a2235; border-block: 1px solid #d4dbea; }
.evidence-section .kicker { color: #284bbf; }
.evidence-section .lead { color: #46546e; }
.evidence-console { margin-top: 29px; overflow: hidden; border: 1px solid #c4ccdf; border-radius: 12px; background: #f8f9fd; color-scheme: light; }
.evidence-console button:focus-visible, .evidence-console input:focus-visible { outline-color: #365ad8; }
.evidence-top, .evidence-note { padding: 12px clamp(12px, 2.5vw, 25px); background: #dfe5f1; color: #344562; font-size: 12px; }
.evidence-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.evidence-top > span, .evidence-label, .evidence-map button > span, #evidence-verdict { font: 700 11px/1.5 ui-monospace, monospace; letter-spacing: .07em; }
.evidence-top label { display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.evidence-top input { width: 16px; height: 16px; accent-color: #365ad8; }
.evidence-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: clamp(12px, 2.5vw, 25px); }
.evidence-map button { position: relative; text-align: left; display: grid; gap: 4px; min-width: 0; padding: clamp(9px, 2vw, 17px); border: 1px solid #ccd4e6; border-radius: 7px; background: #fff; color: #1a2235; }
.evidence-map button:not(:last-child)::after { content: "→"; position: absolute; left: calc(100% + 1px); top: 50%; width: 20px; text-align: center; transform: translateY(-50%); color: #365ad8; }
.evidence-map button[aria-pressed="true"] { background: #e8eeff; border-color: #6582df; color: #1a2235; }
.evidence-map button > span, .evidence-label { color: #284bbf; }
.evidence-map button strong { font-size: clamp(15px, 2vw, 21px); line-height: 1.2; }
.evidence-map button small { color: #46546e; }
.evidence-readout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 15px; align-items: stretch; padding: 0 clamp(12px, 2.5vw, 25px) clamp(12px, 2.5vw, 25px); }
.evidence-readout > div { padding: 13px; border: 1px solid #d2dbea; border-radius: 7px; background: #fff; }
.evidence-readout h3 { margin: 6px 0; }
#evidence-detail { color: #46546e; font-size: 14px; }
.evidence-result { display: grid; align-content: center; gap: 3px; }
.evidence-result strong { color: #1e428e; font-size: 33px; line-height: 1.1; letter-spacing: -.06em; }
#evidence-verdict { color: #1b6248; }
[data-evidence-state="missing"] #evidence-verdict { color: #8b4714; }
[data-evidence-state="missing"] .evidence-map button:nth-child(2)::after { content: "×"; color: #8b4714; }
@media (max-width: 550px) {
  .evidence-map, .evidence-readout { grid-template-columns: 1fr; }
  .evidence-map button:not(:last-child)::after { content: "↓"; top: 100%; left: 50%; transform: translateX(-50%); }
}
