/* Vertex Fund. Quiet, institutional, precise: the first layout Marcus chose.
   Fraunces (light, large optical size) for headings, Public Sans for reading,
   JetBrains Mono sparingly for small labels and figures. Deep navy ink on a
   cool off-white paper; gold is the one accent, the asset the fund retreats
   to in stress. Fragments of the model carry data-ui. */

:root {
  --ink: #0B1F3A;
  --ink-soft: #2E3A4D;
  --slate: #566275;
  --paper: #FFFFFF;
  --panel: #EEF2F6;
  --panel-2: #E1E7EE;
  --line: #D3DBE4;
  --line-soft: #E3E8EE;
  --gold: #C9A85A;
  --gold-deep: #7A5F24;
  --gold-soft: #F4EEDF;
  --green: #2E5E4E;
  --red: #8A3A2E;
  --display: Cambria, "Cambria Math", Georgia, "Times New Roman", serif;
  --body: Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(4rem, 9vw, 7.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold-soft); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-hover) ease; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.4rem; font-weight: 400; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
em { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--slate); }
.eyebrow { display: block; font-family: var(--body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.8rem; }
.lead { font-size: 1.22rem; line-height: 1.5; color: var(--ink-soft); max-width: 31em; }
.measure { max-width: 42em; }
.muted { color: var(--slate); }
.small { font-size: 0.95rem; }
.note { font-size: 0.95rem; color: var(--slate); line-height: 1.5; }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.65); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 44rem; }
.section-head h2 { margin-bottom: 0.9rem; }
.section-dark { background: #12294A; color: var(--paper); border-top: 0 !important; }
.section-dark .eyebrow { display: block; font-family: var(--body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.8rem; }
.section-dark .lead, .section-dark .muted, .section-dark .note, .section-dark .small { color: #C3C9D6; }
.section-dark a:hover { color: var(--gold-soft); }
.section-panel { background: var(--panel); }
.section-gold { background: var(--panel); color: var(--ink); color: #fff; border-top: 0 !important; }
.section-gold .lead { color: var(--ink-soft); }

/* Buttons: one shape. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.85rem 1.35rem; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; font-size: 0.98rem; line-height: 1; cursor: pointer; transition: background var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--paper); }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.btn-gold:hover { background: #D8BC77; border-color: #D8BC77; color: var(--ink); }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.btn-small { padding: 0.55rem 0.9rem; font-size: 0.9rem; }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.link-plain { font-weight: 500; }

/* AFM notice: statutory image, full content width, always visible. */
.afm { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); padding: 6px var(--gutter); }
.afm img { width: 100%; max-width: var(--wrap); margin-inline: auto; }

/* Header */
.site-head { background: var(--ink); color: #fff; }
.site-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; flex-wrap: wrap; padding-block: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; font-family: var(--body); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.wordmark img { width: 30px; height: 30px; }

.wordmark:hover { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); flex-wrap: wrap; font-size: 0.95rem; }
.site-nav a:not(.btn) { color: #fff; text-decoration: none; padding-block: 0.3rem; border-bottom: 1px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--gold); color: #fff; }
body[data-page="strategy"] a[data-nav="strategy"],
body[data-page="fund-manager"] a[data-nav="fund-manager"],
body[data-page="documents"] a[data-nav="documents"] { border-bottom-color: var(--gold); }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 1.2rem; max-width: 11em; }
.hero .lead { margin-bottom: 1.8rem; }
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem); }
.page-hero h1 { max-width: 12em; margin-bottom: 1.2rem; }
.facts { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 2rem; font-size: 0.95rem; color: var(--ink-soft); }
.facts li { display: grid; gap: 0.3rem; }

/* Schematic (SVG): the architecture, drawn. */
.schematic { width: 100%; height: auto; font-family: var(--mono); }
.schematic .box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.schematic .box-defensive { fill: var(--gold-soft); stroke: var(--gold); }
.schematic .box-out { fill: var(--ink); stroke: var(--ink); }
.schematic .wire { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.schematic .wire-flow { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 3 7; stroke-linecap: round; animation: flow 2.4s linear infinite; }
.schematic .wire-stress { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 2 4; }
.schematic .t { font-size: 13px; fill: var(--ink); letter-spacing: 0.06em; }
.schematic .t-small { font-size: 10.5px; fill: var(--slate); letter-spacing: 0.06em; }
.schematic .t-out { fill: var(--paper); }
.schematic .t-gold { fill: var(--gold-deep); }
.schematic .switch { stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.schematic .pivot { fill: var(--ink); }
@keyframes flow { to { stroke-dashoffset: -20; } }

/* Fragments of the model (data-ui) */
[data-ui] { background: #fff; color: var(--ink); font-size: 16px; line-height: 1.45; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
[data-ui] .ui-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 12px 18px; background: var(--panel); font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--ink); }
[data-ui] .ui-head span:last-child { color: var(--slate); }
[data-ui] .ui-body { padding: 18px; }
[data-ui] label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
[data-ui] input[type="range"] { width: 100%; accent-color: var(--gold-deep); height: 28px; margin: 0; cursor: pointer; }
[data-ui] .seg { display: inline-flex; background: var(--panel); padding: 3px; gap: 3px; border-radius: 3px; }
[data-ui] .seg button { padding: 7px 12px; border: 0; border-radius: 2px; background: transparent; color: var(--slate); font-weight: 500; font-size: 15px; cursor: pointer; transition: background var(--t-ui) var(--ease-out), color var(--t-ui) ease; }
[data-ui] .seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
[data-ui] .seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }
[data-ui] .ui-btn { padding: 8px 14px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); font-weight: 500; font-size: 15px; cursor: pointer; transition: background var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
[data-ui] .ui-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-ui] .ui-btn:active { transform: scale(0.97); }
[data-ui] .readout { font-family: var(--display); font-weight: 600; font-size: 44px; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
[data-ui] .readout small { font-family: var(--body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--slate); margin-left: 8px; }
[data-ui] .status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font-weight: 500; font-size: 15px; background: var(--panel); border-radius: 3px; }
[data-ui] .status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); transition: background var(--t-ui) ease; }
[data-ui] .status.is-defensive::before { background: var(--gold); }
[data-ui] .status.is-reset::before { background: var(--ink); }

/* Stress protocol fragment */
.stress { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.stress > div:first-child { border-right: 1px solid var(--line); }
.stress .ui-body { display: grid; gap: 18px; align-content: start; }
.stress-row { display: grid; gap: 6px; }
.stress-row .hint { font-size: 14px; color: var(--slate); display: flex; justify-content: space-between; }
.stress-view { padding: 18px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; background: #fff; }
.track { position: relative; height: 56px; background: var(--panel); margin-top: 30px; border-radius: 2px; }
.track-peak, .track-trigger { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.track-trigger { background: var(--gold); }
.track-peak span, .track-trigger span { position: absolute; top: -24px; left: 0; transform: translateX(-50%); font-family: var(--mono); font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; white-space: nowrap; }
.track-peak span { transform: none; }
.track-trigger span { color: var(--gold-deep); }
.track-fill { position: absolute; top: 0; bottom: 0; right: 0; background: var(--panel-2); transition: width 120ms linear; }
.track-marker { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); transition: left 120ms linear, background var(--t-ui) ease; }
.track-marker.is-defensive { background: var(--gold); }
.holdings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.holding { padding: 14px; background: var(--panel); border-radius: 3px; transition: background var(--t-ui) ease, opacity var(--t-ui) ease; }
.holding h3 { margin: 0 0 6px; font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.holding ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.holding li { padding: 3px 0; }
.holding.is-off { opacity: 0.4; }
.holding.is-on { background: var(--gold-soft); }
.stress-log { font-size: 15px; min-height: 2.6em; color: var(--ink-soft); }
.stress-log strong { font-weight: 600; color: var(--ink); }

/* Statement with inline thumbnails */
.statement { padding-block: clamp(4rem, 10vw, 9rem); }
.statement p { margin: 0 auto; text-align: center; font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; max-width: 24em; }
.statement .thumb { display: inline-block; width: 1.3em; height: 0.85em; vertical-align: -0.1em; margin: 0 0.14em; overflow: hidden; border-radius: 2px; background: var(--panel); }
.statement .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Call and response */
.exchanges { max-width: 640px; margin-inline: auto; display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.exchange { display: grid; gap: 16px; }
.exchange > p { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.25; }
.call { padding: 18px 20px; font-size: 15px; background: var(--panel); border-radius: 3px; }
.call dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.call dt { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--slate); padding-top: 3px; }
.call dd { margin: 0; }
.response { margin-left: clamp(0px, 6vw, 56px); }
.ranking { list-style: none; margin: 0; padding: 0; }
.ranking li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 18px; font-size: 15px; border-top: 1px solid var(--line-soft); }
.ranking li.is-held { background: var(--gold-soft); font-weight: 500; }
.ranking li span:last-child { color: var(--slate); font-weight: 400; }
.funnel { list-style: none; margin: 0; padding: 0; }
.funnel li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 18px; font-size: 15px; border-top: 1px solid var(--line-soft); }
.funnel b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.1; color: var(--gold-deep); }

/* Pinned allocator */
.allocator { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.allocator-stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; background: var(--panel); padding: var(--gutter); }
.allocator-stage [data-ui] { width: min(100%, 460px); }
.weights { display: grid; gap: 14px; }
.weight-bar { display: flex; height: 64px; overflow: hidden; border-radius: 3px; }
.weight-bar > div { display: flex; align-items: center; padding: 0 14px; font-family: var(--display); font-weight: 400; font-size: 1.4rem; transition: flex-basis 400ms var(--ease-out); white-space: nowrap; overflow: hidden; }
.weight-factor { background: var(--ink); color: var(--paper); }
.weight-thematic { background: var(--gold-soft); color: var(--ink); }
.weight-legend { display: flex; justify-content: space-between; font-size: 14px; color: var(--slate); }
.allocator-notes { display: grid; gap: 0; font-size: 15px; }
.allocator-notes div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.allocator-notes b { font-weight: 600; }
.allocator-copy { padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 5rem); max-width: 44ch; box-sizing: content-box; }
.allocator-copy h2 { margin-bottom: 1rem; }
.block { padding-block: clamp(3rem, 18vh, 9rem); }
.block h3 { margin-bottom: 0.6rem; font-size: 1.6rem; }
.block p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.block [data-ui] { padding: 16px 18px; }
.block .hint { font-size: 14px; color: var(--slate); display: flex; justify-content: space-between; margin-top: 4px; }
.block .result { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--ink); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.pillar h3 { margin-bottom: 0.6rem; font-size: 1.55rem; }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; }
.pillar .label { display: block; margin-bottom: 0.9rem; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }

/* Verify panel */
.verify { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.verify dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.9rem 1.6rem; }
.verify dt { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: #B9C0CF; padding-top: 0.25rem; }
.verify dd { margin: 0; }
.verify dd a { color: var(--gold-soft); }
.verify figure { margin: 1.8rem 0 0; }
.verify figcaption { font-size: 0.9rem; color: #B9C0CF; margin-top: 0.6rem; }
.section-dark .picture figcaption { color: #B9C0CF; }

/* Pictures */
.picture { margin: 0; overflow: hidden; border-radius: 3px; }
.picture img { width: 100%; height: 100%; object-fit: cover; }
.picture-drift img { transform: scale(1.06); transition: transform 1600ms var(--ease-soft); }
.picture-drift.is-in img { transform: scale(1); }
.picture figcaption { font-size: 0.9rem; color: var(--slate); margin-top: 0.6rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* Steps, protocol, tables, chips, limits */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; max-width: 40em; }
.steps li { display: grid; grid-template-columns: 2.8rem 1fr; gap: 1rem; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 0.85rem; color: var(--gold-deep); padding-top: 0.35rem; }
.steps h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; }
.steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; max-width: none; }
.steps-row li { grid-template-columns: 1fr; }
.steps-row li::before { padding-top: 0; margin-bottom: 0.5rem; }
.protocol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.protocol > div { padding: 1.3rem 1.3rem 1.4rem; border-left: 1px solid var(--line); }
.protocol > div:first-child { border-left: 0; }
.protocol h3 { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--gold-deep); margin-bottom: 0.6rem; font-weight: 500; }
.protocol p { font-size: 0.95rem; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }
.data { font-size: 0.95rem; }
.data th, .data td { text-align: left; vertical-align: top; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line-soft); }
.data thead th { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--slate); font-weight: 500; border-bottom-color: var(--line); }
.data tbody th { font-weight: 500; width: 26%; }
.data td.num, .data th.num { font-family: var(--mono); font-size: 0.88rem; text-align: right; padding-right: 0; white-space: nowrap; }
.data.compare tbody th { width: 20%; color: var(--slate); font-weight: 500; }
.data.compare td:nth-child(2) { color: var(--slate); }
.data.compare td:nth-child(3) { font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 0.9rem; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); }
.limits { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 2rem; }
.limits > div, .limits > li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
.limits dt { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--slate); padding-top: 0.2rem; }
.limits dd { margin: 0; }

/* People and governance */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2.5rem; }
.person h3 { margin-bottom: 0.2rem; }
.person-role { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--gold-deep); margin-bottom: 1rem; }
.person p { font-size: 0.98rem; color: var(--ink-soft); }
.gov { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.gov h3 { margin-bottom: 0.4rem; }
.gov p { font-size: 0.98rem; color: var(--ink-soft); }
.structure { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.structure li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 3px; font-size: 0.95rem; }
.structure b { font-family: var(--mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--slate); padding-top: 0.15rem; }
.claims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; }
.claim h3 { margin-bottom: 0.6rem; }
.claim p { color: #C3C9D6; }
.claim p strong { color: var(--paper); }

/* Documents register */
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 9rem 8rem; gap: 1.5rem; align-items: start; padding: 1.2rem 0; border-bottom: 1px solid var(--line-soft); }
.doc-title { display: block; font-weight: 500; }
.doc-desc { display: block; color: var(--slate); font-size: 1rem; margin-top: 0.2rem; }
.doc-meta { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--slate); padding-top: 0.25rem; }
.doc-action { text-align: right; padding-top: 0.1rem; }
.doc-link { font-weight: 500; font-size: 0.92rem; }
.doc-lock { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--slate); padding: 0.35rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }

/* CTA with the access form open */
.cta-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.cta-form { width: min(100%, 440px); justify-self: end; background: #fff; color: var(--ink); padding: 26px; }
.cta-form h3 { margin-bottom: 0.4rem; }
.cta-form p { color: var(--slate); font-size: 0.92rem; }
.cta-form label { display: block; font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--slate); margin: 18px 0 6px; }
.cta-form input { width: 100%; font: inherit; font-family: var(--mono); font-size: 17px; letter-spacing: 0.08em; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); }
.cta-form input:focus { outline: none; border-color: var(--ink); }
.cta-form .btn { width: 100%; margin-top: 14px; }
.cta-form .error { color: var(--red); margin-top: 10px; font-size: 0.95rem; }

/* Investor area */
.inv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--slate); text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--gold-deep); }
.terms th, .terms td { text-align: left; vertical-align: top; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
.terms thead th { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--slate); font-weight: 500; }
.terms tbody th { font-weight: 500; width: 26%; }
.terms td.num, .terms th.num { font-family: var(--mono); font-size: 0.88rem; text-align: right; white-space: nowrap; }
.disclaimer { background: var(--gold-soft); padding: 1rem 1.2rem; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }

/* Admin */
.admin { padding-block: 2.5rem; }
.admin form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0.8rem; align-items: end; margin: 1.5rem 0 2rem; }
.admin label { display: grid; gap: 0.3rem; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--slate); }
.admin input { font: inherit; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.admin button { font: inherit; padding: 0.65rem 1rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 3px; cursor: pointer; }
.admin button.quiet { background: none; color: var(--red); border-color: var(--line); padding: 0.3rem 0.6rem; font-size: 0.85rem; }
.code-out { font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.1em; background: var(--gold-soft); padding: 1rem 1.2rem; border-radius: 3px; margin-bottom: 2rem; }
.counter { font-family: var(--mono); font-size: 0.85rem; color: var(--slate); margin-bottom: 1rem; }
.admin table th, .admin table td { text-align: left; padding: 0.6rem 0.8rem; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.admin .num { text-align: right; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--panel); padding-block: 3rem 2.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.foot-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: baseline; margin-bottom: 2.5rem; }
.foot-row p { margin: 0; }
.foot-what { font-family: var(--mono); letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 0.8rem; }
.foot-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-year { text-align: right; color: var(--slate); }
.foot-legal { font-size: 0.95rem; color: var(--slate); line-height: 1.55; max-width: 70ch; }
.foot-legal p { margin-bottom: 0.8rem; }


/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .stress, .allocator, .split, .split-reverse, .cta-grid, .verify { grid-template-columns: 1fr; }
  .hero-grid .schematic-wrap { max-width: 560px; }
  .stress > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .allocator-stage { position: static; height: auto; padding-block: clamp(2rem, 6vw, 4rem); }
  .allocator-copy { padding-left: var(--gutter); }
  .block { padding-block: clamp(2rem, 8vh, 4.5rem); }
  .pillars, .steps-row, .protocol, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .protocol > div:nth-child(3) { border-left: 0; }
  .protocol > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .people, .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-form { justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 2.3rem; }
  .pillars, .steps-row, .protocol, .people, .cols-2, .cols-3, .gov, .limits, .claims, .facts, .holdings { grid-template-columns: 1fr; }
  .protocol > div { border-left: 0; border-top: 1px solid var(--line); }
  .protocol > div:first-child { border-top: 0; }
  .doc { grid-template-columns: 1fr; gap: 0.5rem; }
  .doc-action { text-align: left; }
  .verify dl { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .verify dd { margin-bottom: 0.9rem; }
  .structure li, .limits > div, .funnel li { grid-template-columns: 1fr; gap: 0.3rem; }
  .call dl { grid-template-columns: 1fr; gap: 2px 0; }
  .foot-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .foot-links { justify-content: flex-start; }
  .foot-year { text-align: left; }
  .statement p { text-align: left; font-size: 1.35rem; }
  .table-wrap { overflow-x: visible; }
  .data.compare th, .data.compare td { padding: 0.6rem 0.5rem 0.6rem 0; font-size: 0.9rem; }
  .data.compare tbody th { width: auto; }
  .admin form { grid-template-columns: 1fr; }
  .site-nav { gap: 0.8rem 1rem; font-size: 0.9rem; }
  .schematic-wrap { display: none; }
}

/* Deck look: navy cover hero with the network pattern, gold numbers, navy table heads */
.cover { background: linear-gradient(90deg, #0B1F3A 0%, #0B1F3A 45%, rgba(11,31,58,0) 75%), url("/images/pattern.jpg") right center / auto 100% no-repeat, #0B1F3A; color: #fff; padding-block: clamp(4rem, 9vw, 7.5rem); }
.cover h1 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin-bottom: 1.2rem; max-width: 12em; }
.cover .eyebrow { color: var(--gold); }
.cover .lead { color: #D5DDE8; max-width: 34em; margin-bottom: 2rem; }
.cover .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.45); }
.cover .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.site-head .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.45); }
.site-head .btn-ghost:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.num { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--gold-deep); display: block; margin-bottom: 0.8rem; }
.data thead th, .terms thead th { background: var(--ink); color: #fff; padding: 0.8rem 1rem; }
.data.compare tbody th, .data.compare td { padding-left: 1rem; }
.data.compare tbody tr:nth-child(even) { background: var(--panel); }
.arch { background: var(--panel); }
.section-dark { background: var(--ink) !important; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-gold h2 { color: var(--ink); }

/* Clear home layout */
.cover-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.glance { margin: 0; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); padding: 1.6rem 1.8rem; display: grid; gap: 0; }
.glance div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid rgba(255,255,255,0.14); }
.glance div:first-child { border-top: 0; }
.glance dt { color: var(--gold); font-weight: 700; font-size: 0.95rem; }
.glance dd { margin: 0; color: #fff; font-size: 1rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { background: var(--panel); padding: 2rem 1.8rem; }
.card h3 { font-size: 1.45rem; margin-bottom: 0.2rem; }
.card-sub { color: var(--gold-deep); font-style: italic; margin-bottom: 0.9rem; }
.card p:last-child { color: var(--ink-soft); }
.more { margin-top: 2rem; font-weight: 700; }
.more a { color: var(--ink); }
ol.protocol { list-style: none; margin: 0; padding: 0; counter-reset: p; }
ol.protocol li { padding: 1.6rem 1.5rem; border-left: 1px solid var(--line); counter-increment: p; }
ol.protocol li:first-child { border-left: 0; }
ol.protocol h3 { font-family: var(--display); font-size: 1.3rem; letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 0.5rem; }
ol.protocol h3::before { content: counter(p) ". "; color: var(--gold-deep); }
ol.protocol p { font-size: 1rem; color: var(--ink-soft); }
.split-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.facts-list { margin: 0; }
.facts-list div { padding: 1rem 0; border-top: 1px solid var(--line); }
.facts-list div:last-child { border-bottom: 1px solid var(--line); }
.facts-list dt { font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; }
.facts-list dd { margin: 0; }
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.45); }
.section-dark .btn-ghost:hover { background: #fff; color: var(--ink); }
.cover { padding-block: clamp(4.5rem, 10vw, 8rem); }
@media (max-width: 980px) {
  .cover-grid, .split-even { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  ol.protocol li:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .glance div { grid-template-columns: 1fr; gap: 0.1rem; }
  ol.protocol li { border-left: 0; border-top: 1px solid var(--line); }
  ol.protocol li:first-child { border-top: 0; }
}

.page-cover { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.page-cover h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); max-width: 16em; }
.cover .inv-head p, .cover .linkbtn { color: #D5DDE8; }

@media (max-width: 640px) { .afm img { max-width: 360px; } }

/* ===== Block system (one look per block type, on every page) ===== */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lead { margin-top: 0.4rem; }
.cards { display: grid; gap: 1.25rem; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { background: var(--panel); padding: 1.8rem 1.6rem; }
.section-panel .card { background: #fff; }
.card .num { font-size: 1.7rem; margin-bottom: 0.9rem; }
.card h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 0.3rem; }
.card-sub { color: var(--gold-deep); font-style: italic; margin-bottom: 0.8rem; font-size: 1rem; }
.card p { font-size: 1rem; color: var(--ink-soft); margin-bottom: 0; }
.card .more { margin-top: 1rem; }
ol.protocol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); }
.section:not(.section-panel) ol.protocol { background: var(--panel); border-color: var(--panel-2); }
.facts-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.facts-2 div:last-child { border-bottom: 0; }
.facts-2 div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.chips { margin-bottom: 1rem; }
.chips li { background: #fff; border-color: var(--line); color: var(--ink); }
.note { margin-top: 1.2rem; max-width: 70ch; }
.facts-list + .note, .chips + .note { margin-bottom: 2rem; }
.data { background: #fff; }
.docs { background: #fff; border: 1px solid var(--line); padding: 0 1.4rem; }
.section-panel .docs { background: #fff; }
.doc:last-child { border-bottom: 0; }
.page-cover .linkbtn { color: #D5DDE8; margin-top: 1.2rem; }
.page-cover .cta-form { background: #fff; padding: 1.8rem; color: var(--ink); }
.page-cover .cta-form label { color: var(--ink); }
.split-even > .section-head { margin-bottom: 0; }
@media (max-width: 1100px) { .cards-4, .cards-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } ol.protocol { grid-template-columns: repeat(2, minmax(0, 1fr)); } ol.protocol li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .cards-2, .cards-3, .cards-4, .cards-5, .facts-2, ol.protocol { grid-template-columns: 1fr; } ol.protocol li { border-left: 0; } ol.protocol li + li { border-top: 1px solid var(--line); } .facts-2 div:nth-last-child(2) { border-bottom: 0; } }
