/* ============================================================================
 * Dynamic Leverage Strategy — private investor microsite
 * Design system ported from the investor deck (quant theme). 23-section v2.
 * ==========================================================================*/

:root {
  --bg:        #FAFAF7;
  --bg-2:      #F1EFEA;
  --bg-risk:   #FBF4F2;
  --card:      #FFFFFF;
  --panel-ink: #0E2536;
  --ink:       #0F2A3F;
  --ink-dim:   #4A5A6B;
  --ink-faint: #8995A1;
  --rule:      #BFC6CF;
  --line:      #E2DFD6;
  --gold:      #B8935A;
  --gold-soft: #D8C49B;
  --pos:       #2E6E4F;
  --neg:       #B34A3E;
  --neg-soft:  #D08E84;
  --f-display: 'Space Grotesk', 'Helvetica Neue', Helvetica, sans-serif;
  --f-body:    'Inter', 'Helvetica Neue', Helvetica, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;
  --f-serif:   'Instrument Serif', 'Times New Roman', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-weight: 300;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
body.locked { overflow: hidden; }
::selection { background: var(--gold-soft); color: var(--ink); }
strong { font-weight: 600; }

/* ============================ ACCESS GATE ================================ */
.gate {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 0%, #15324a 0%, #0a1c2b 70%);
  transition: opacity .75s cubic-bezier(.4,0,.2,1), visibility .75s ease;
}
.gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-card {
  width: min(440px, 90vw);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  padding: 48px 44px 36px; text-align: center; backdrop-filter: blur(6px);
}
.gate-card.shake { animation: shake .42s ease; }
@keyframes shake { 10%,90%{transform:translateX(-2px)} 30%,70%{transform:translateX(5px)} 50%{transform:translateX(-7px)} }
.gate-mark { font-family: var(--f-mono); font-size: 12px; letter-spacing: .26em; color: var(--gold-soft); margin-bottom: 30px; }
.gate-card h1 { font-family: var(--f-display); font-weight: 500; font-size: 34px; letter-spacing: -.02em; color: #F4F4F0; margin-bottom: 10px; }
.gate-card p { font-size: 15px; color: #9fb0bf; margin-bottom: 26px; }
.gate-input {
  width: 100%; text-align: center; font-family: var(--f-mono);
  font-size: 26px; letter-spacing: .4em; padding: 14px 10px; color: #F4F4F0;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 5px; outline: none; transition: border-color .2s;
}
.gate-input:focus { border-color: var(--gold); }
.gate-btn {
  width: 100%; margin-top: 14px; font-family: var(--f-mono); font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase; padding: 14px; cursor: pointer;
  color: #0a1c2b; background: var(--gold-soft); border: none; border-radius: 5px;
  transition: background .2s, transform .1s;
}
.gate-btn:hover { background: #e6d3aa; }
.gate-btn:active { transform: scale(.99); }
.gate-error { min-height: 20px; margin-top: 14px; font-size: 12.5px; color: var(--neg-soft); }
.gate-disc { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 11px; line-height: 1.55; color: #5d7184; }

/* ============================== HERO ==================================== */
#hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(130% 100% at 50% 0%, #14304a 0%, #0a1c2b 75%);
  padding: 70px 24px 90px;
}
.hero-video-wrap {
  position: relative; width: min(1120px, 92vw); aspect-ratio: 16/9;
  border-radius: 6px; overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  opacity: 0; transform: scale(.985);
  transition: opacity 1s ease, transform 1.3s cubic-bezier(.2,.7,.2,1);
}
.hero-video-wrap.ready { opacity: 1; transform: none; }
#hero-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-play {
  position: absolute; inset: 0; margin: auto; width: 92px; height: 92px;
  display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); border: none; border-radius: 50%;
  cursor: pointer; transition: transform .15s, background .2s;
}
.hero-play.show { display: flex; }
.hero-play:hover { transform: scale(1.06); background: #fff; }
.hero-play::after {
  content: ''; width: 0; height: 0; margin-left: 6px;
  border-style: solid; border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--panel-ink);
}
.hero-bar { margin-top: 30px; display: flex; gap: 16px; align-items: center; }
.hero-skip, .hero-sound {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: #cdd9e3; background: transparent;
  border: 1px solid rgba(255,255,255,0.22); padding: 12px 22px;
  border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.hero-skip:hover, .hero-sound:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hero-sound { display: none; }
.hero-sound.show { display: inline-block; }
.hero-cap {
  position: absolute; top: 38px; left: 0; right: 0; text-align: center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--gold-soft);
}

/* ============================== WELCOME ================================== */
.welcome {
  position: fixed; inset: 0; z-index: 990;
  display: flex; justify-content: center; overflow-y: auto;
  padding: 58px 30px;
  background:
    radial-gradient(56% 42% at 50% 5%, rgba(184,147,90,0.18) 0%, rgba(184,147,90,0) 72%),
    radial-gradient(140% 108% at 50% 0%, #1d3f5c 0%, #0c2336 47%, #050f18 100%);
}
.welcome[hidden] { display: none; }
.welcome.closing { opacity: 0; transition: opacity .55s ease; pointer-events: none; }
.welcome::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(72% 60% at 50% 40%, transparent 50%, rgba(3,9,15,0.72) 100%);
}
.welcome-frame {
  position: fixed; inset: 22px; pointer-events: none;
  border: 1px solid rgba(216,196,155,0.16);
  opacity: 0; transition: opacity 1s ease .1s;
}
.welcome.show .welcome-frame { opacity: 1; }
.welcome-frame::before, .welcome-frame::after {
  content: ''; position: absolute; width: 28px; height: 28px;
}
.welcome-frame::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--gold); border-left: 1px solid var(--gold);
}
.welcome-frame::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold);
}
.welcome-inner { position: relative; margin: auto; max-width: 680px; text-align: center; }
.welcome-inner > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.welcome.show .welcome-inner > * { opacity: 1; transform: translateY(0); }
.welcome.show .welcome-seal     { transition-delay: .06s; }
.welcome.show .welcome-mark     { transition-delay: .14s; }
.welcome.show .welcome-eyebrow  { transition-delay: .20s; }
.welcome.show .welcome-title    { transition-delay: .27s; }
.welcome.show .welcome-flourish { transition-delay: .35s; }
.welcome.show .welcome-sub      { transition-delay: .42s; }
.welcome.show .welcome-form     { transition-delay: .50s; }
.welcome.show .welcome-disc     { transition-delay: .58s; }
.welcome-seal {
  width: 64px; height: 64px; margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid rgba(216,196,155,0.45);
  box-shadow: 0 0 0 5px rgba(216,196,155,0.05), inset 0 0 26px rgba(184,147,90,0.16);
}
.welcome-seal span { font-family: var(--f-serif); font-style: italic; font-size: 29px; color: var(--gold-soft); }
.welcome-mark {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .44em;
  color: var(--gold-soft); padding-left: .44em;
}
.welcome-eyebrow {
  margin-top: 15px; font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .26em; text-transform: uppercase; color: #708698;
}
.welcome-title {
  margin-top: 20px; font-family: var(--f-display); font-weight: 500;
  letter-spacing: -.025em; font-size: clamp(40px, 6.2vw, 62px);
  line-height: 1.06; color: #F6F4EF;
}
.welcome-title .em {
  display: inline-block; margin-top: .1em;
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: 1.06em; letter-spacing: 0; color: var(--gold);
}
.welcome-flourish {
  width: 116px; height: 1px; margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.welcome-sub {
  max-width: 468px; margin: 24px auto 0;
  font-size: 16px; line-height: 1.62; color: #aab8c5;
}
.welcome-btn {
  position: relative; overflow: hidden; margin-top: 38px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .24em;
  text-transform: uppercase; padding: 18px 48px; cursor: pointer;
  color: #1a1505; border: none; border-radius: 3px;
  background: linear-gradient(135deg, #ead8ac 0%, #c6a569 52%, #dcc89d 100%);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(216,196,155,0.55);
  transition: transform .16s ease, box-shadow .25s ease;
}
.welcome-btn span { position: relative; z-index: 1; }
.welcome-btn::after {
  content: ''; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.66), transparent);
  transform: skewX(-20deg);
}
.welcome-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 0 0 1px var(--gold-soft), 0 0 30px rgba(184,147,90,0.4);
}
.welcome-btn:hover::after { animation: welcomeSheen .85s ease; }
.welcome-btn:active { transform: translateY(0); }
@keyframes welcomeSheen { from { left: -75%; } to { left: 140%; } }
.welcome-note {
  margin-top: 22px; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase; color: #5d7184;
}
.welcome-disc {
  max-width: 488px; margin: 30px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px; line-height: 1.66; color: #56697b;
}
/* desktop-recommendation note — shown to phone visitors only */
.welcome-tip { display: none; }
@media (max-width: 560px) {
  .welcome { padding: 40px 20px; }
  .welcome-frame { inset: 14px; }
}
/* welcome — access form */
.welcome-form {
  margin-top: 32px; display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.welcome-input {
  width: 268px; max-width: 78vw; text-align: center;
  font-family: var(--f-mono); font-size: 21px; letter-spacing: .32em;
  padding: 14px 10px 14px calc(10px + .32em);
  color: #F4F4F0; background: rgba(0,0,0,0.3);
  border: 1px solid rgba(216,196,155,0.3); border-radius: 4px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.welcome-input::placeholder { color: #4a5e70; }
.welcome-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,147,90,0.12); }
.welcome-error {
  min-height: 15px; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .03em; color: var(--neg-soft);
}
.welcome-form .welcome-btn { margin-top: 4px; }
.welcome-form.shake { animation: shake .42s ease; }
.welcome-unlocked .welcome-input,
.welcome-unlocked .welcome-error { display: none; }

/* entry transition — the welcome screen simply fades away to reveal the film */

/* ========================= HERO VIDEO CONTROLS =========================== */
#hero-video { cursor: pointer; }
.vctl {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 44px 16px 14px;
  background: linear-gradient(to top, rgba(4,11,18,.94) 0%, rgba(4,11,18,.6) 52%, transparent 100%);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.hero-video-wrap.ready .vctl { opacity: 1; pointer-events: auto; }
/* idle — film playing, pointer inactive: controls + cursor fade away */
.hero-video-wrap.idle { cursor: none; }
.hero-video-wrap.idle .vctl { opacity: 0; pointer-events: none; }
.hero-video-wrap.idle .hero-play { opacity: 0; pointer-events: none; }
.vctl-btn {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em;
  color: #d3dde6; background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16); border-radius: 5px;
  height: 34px; padding: 0 13px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.vctl-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.vctl-pp { width: 44px; }
.vctl-pp::before {
  content: ''; display: block;
  width: 0; height: 0; margin-left: 3px; border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}
.vctl-pp.playing::before {
  width: 12px; height: 13px; margin-left: 0; border: none;
  border-left: 4px solid #fff; border-right: 4px solid #fff;
}
.vctl-seek {
  flex: 1; min-width: 70px; height: 6px; border-radius: 4px; cursor: pointer;
  background: rgba(255,255,255,.2); position: relative; touch-action: none;
}
.vctl-seek-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--gold); border-radius: 4px;
}
.vctl-seek-fill::after {
  content: ''; position: absolute; right: -6px; top: 50%;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(184,147,90,.35);
}
.vctl-time {
  font-family: var(--f-mono); font-size: 11px; color: #9fb0bf;
  white-space: nowrap; letter-spacing: .02em;
}
.vctl-vol { display: flex; align-items: center; gap: 8px; }
.vctl-snd { width: 36px; padding: 0; }
.vctl-snd svg { display: block; }
.vctl-snd .snd-wave { transition: opacity .15s; }
.vctl-snd.off { color: #8995A1; position: relative; }
.vctl-snd.off .snd-wave { opacity: 0; }
.vctl-snd.off::after {
  content: ''; position: absolute; left: 9px; right: 9px; top: 50%;
  height: 1.7px; background: #d08e84; transform: rotate(-30deg);
}
.vctl-volbar {
  width: 62px; height: 6px; border-radius: 4px; cursor: pointer;
  background: rgba(255,255,255,.2); position: relative; touch-action: none;
}
.vctl-volfill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 50%;
  background: #d3dde6; border-radius: 4px;
}
.vctl-volfill::after {
  content: ''; position: absolute; right: -5px; top: 50%;
  width: 11px; height: 11px; border-radius: 50%; background: #fff;
  transform: translateY(-50%);
}
.vctl-full { width: 38px; padding: 0; }
.vctl-full svg { display: block; }
.hero-video-wrap:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; }
.hero-video-wrap:fullscreen #hero-video { object-fit: contain; }
@media (max-width: 600px) {
  .vctl { gap: 7px; padding: 40px 10px 10px; }
  .vctl-time, .vctl-volbar { display: none; }
  .vctl-btn { padding: 0 9px; font-size: 10px; }
}

/* ============== PER-SECTION: NEXT CHEVRON + CONFIDENTIAL LINE ============= */
.block-next {
  display: flex; align-items: center; justify-content: center; padding: 0;
  width: 46px; height: 38px; margin: 26px auto 2px;
  background: none; border: none; cursor: pointer; color: var(--ink-dim);
  transition: transform .16s ease, color .16s;
}
.block-next:hover { color: var(--gold); transform: translateY(4px); }
.block-next:active { transform: translateY(2px); }
.block-next svg { display: block; }
.block.dark .block-next { color: #8295a4; }
.block.dark .block-next:hover { color: var(--gold-soft); }
.block-disc {
  margin-top: 40px; padding-top: 15px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 10px; line-height: 1.55;
  letter-spacing: .035em; color: var(--ink-faint);
}
.block-disc b { color: var(--ink-dim); letter-spacing: .14em; font-weight: 600; }
.block.dark .block-disc { border-top-color: #1d3a52; color: #6f8597; }
.block.dark .block-disc b { color: #9aabba; }

/* ============================ SECTION FRAME ============================= */
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
section.block {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 0; border-bottom: 1px solid var(--line);
}
section.block > .wrap { flex: 0 0 auto; }
section.block.dark { background: var(--panel-ink); border-bottom-color: #1d3a52; }
section.block.tone-risk { background: var(--bg-risk); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .19em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.eyebrow.neg { color: var(--neg); }
.eyebrow.gold { color: var(--gold-soft); }

.title {
  font-family: var(--f-display); font-weight: 500; font-size: 54px;
  line-height: 1.07; letter-spacing: -.03em; color: var(--ink); max-width: 20ch;
}
.title.xl { font-size: 86px; max-width: 14ch; }
.title.serif { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.015em; font-size: 64px; }
.block.dark .title { color: #F4F4F0; }
.em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--gold); }
.em.neg { color: var(--neg); }
.em.pos { color: var(--pos); }
.lead { margin-top: 22px; max-width: 64ch; font-size: 21px; line-height: 1.6; color: var(--ink-dim); }
.block.dark .lead { color: #aeb9c4; }
.note { margin-top: 22px; font-size: 13px; color: var(--ink-faint); max-width: 84ch; line-height: 1.6; }
.hl-light { color: #F4F4F0; }
.neg-t { color: var(--neg); }
.pos-t { color: var(--pos); font-weight: 500; }
.accent { color: var(--gold); }

/* ============================ REVEAL ==================================== */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .9s cubic-bezier(.16,.84,.44,1), transform 1s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ============================ STAT BAND ================================= */
.statband {
  margin-top: 44px; display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.statband .stat { flex: 1; min-width: 200px; background: var(--card); padding: 28px 30px; }
.stat .val { font-family: var(--f-display); font-weight: 600; font-size: 46px; letter-spacing: -.03em; color: var(--ink); }
.stat .lbl { margin-top: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }

/* ============================ CARDS ===================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 42px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 42px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: 4px; padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 12px;
}
.card.pos { border-top-color: var(--pos); }
.card.neg { border-top-color: var(--neg); background: #fdf6f4; }
.card.ink { border-top-color: var(--ink); }
.card.ghost { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-top: 4px solid var(--gold); }
.card-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.card-tag.neg { color: var(--neg); }
.card-tag.gold { color: var(--gold-soft); }
.card.pos .card-tag { color: var(--pos); }
.card.ink .card-tag { color: var(--ink); }
.card-name { font-family: var(--f-display); font-weight: 600; font-size: 23px; letter-spacing: -.02em; color: var(--ink); }
.card-name.light { color: #F4F4F0; }
.card-body { font-size: 16px; line-height: 1.55; color: var(--ink-dim); }
.card-body.light { color: #aeb9c4; }
.card-big { font-family: var(--f-display); font-weight: 600; font-size: 64px; letter-spacing: -.04em; color: var(--ink); line-height: .9; }
.card-stat { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(179,74,62,0.3); display: flex; justify-content: space-between; align-items: baseline; }
.cs-v { font-family: var(--f-display); font-weight: 600; font-size: 34px; color: var(--neg); letter-spacing: -.03em; }
.cs-l { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); text-align: right; }

.ask {
  margin-top: 28px; padding: 22px 28px; background: var(--ink); color: #fff;
  display: flex; gap: 24px; align-items: center; border-radius: 4px;
}
.ask-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--gold-soft); font-weight: 600; white-space: nowrap; }
.ask-txt { font-family: var(--f-serif); font-style: italic; font-size: 21px; line-height: 1.4; }

/* ============================ FORMULA (why we exist) ==================== */
.formula { display: flex; align-items: stretch; gap: 12px; margin-top: 42px; flex-wrap: wrap; }
.layer {
  flex: 1; min-width: 200px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); border-left: 4px solid var(--ink-faint);
  border-radius: 4px; padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px;
}
.layer:nth-child(3) { border-left-color: var(--gold); }
.layer:nth-child(5) { border-left-color: var(--neg); }
.layer.outcome { background: var(--gold); border-color: var(--gold); border-left-color: #fff; }
.layer-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.layer-tag.gold { color: var(--gold-soft); }
.layer-tag.neg { color: var(--neg-soft); }
.layer.outcome .layer-tag { color: #0a1c2b; }
.layer-name { font-family: var(--f-display); font-weight: 600; font-size: 24px; color: #F4F4F0; letter-spacing: -.02em; }
.layer.outcome .layer-name { color: #0a1c2b; }
.layer p { font-size: 15px; line-height: 1.5; color: #9fb0bf; }
.layer.outcome p { color: #1a3145; }
.serif-i { font-family: var(--f-serif); font-style: italic; }
.op { display: flex; align-items: center; font-family: var(--f-display); font-size: 40px; color: var(--gold-soft); }

/* ============================ PIPELINE ================================== */
.pipeline {
  margin-top: 38px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.stage {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-top: 2px solid var(--gold); border-radius: 5px;
  padding: 24px 22px;
}
.stage-n {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--f-mono); font-size: 15px; color: var(--ink);
  margin-bottom: 18px;
}
.stage.primary .stage-n { background: var(--ink); color: #fff; border-color: var(--ink); }
.stage-tag {
  display: block; font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.stage-head {
  font-family: var(--f-display); font-weight: 600; font-size: 19px; color: var(--ink);
  margin: 7px 0 10px; letter-spacing: -.015em; line-height: 1.2;
}
.stage p { font-size: 13px; line-height: 1.55; color: var(--ink-dim); max-width: none; }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr; } }

/* ============================ EQUATION ================================== */
.equation { margin: 44px 0 8px; display: flex; align-items: baseline; justify-content: center; gap: 30px; flex-wrap: wrap; }
.eq-num { font-family: var(--f-display); font-weight: 600; font-size: 150px; letter-spacing: -.05em; color: var(--ink); line-height: .9; }
.eq-num.dim { color: var(--ink-dim); }
.eq-num.eq-result { text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: 16px; text-decoration-color: var(--gold); }
.eq-op { font-family: var(--f-display); font-size: 70px; font-weight: 300; color: var(--ink-faint); }

/* ============================ PANEL ==================================== */
.panel { margin-top: 42px; background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 32px 34px 36px; }
.panel-title { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 22px; }
.panel-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 38px; align-items: start; }

.controls { display: flex; flex-direction: column; gap: 24px; }
.control-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; }
.control-lbl { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.control-val { font-family: var(--f-display); font-weight: 600; font-size: 22px; color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--card); box-shadow: 0 1px 5px rgba(0,0,0,0.28); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--card); box-shadow: 0 1px 5px rgba(0,0,0,0.28); }
.control-scale { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-faint); }

.chart-host { width: 100%; }
.chart-host svg.chart { width: 100%; height: auto; display: block; }

/* ----- shared chart svg ----- */
svg .grid { stroke: var(--line); stroke-dasharray: 2 5; }
svg .axis-base { stroke: var(--rule); }
svg .ax-y { fill: var(--ink-faint); font-family: var(--f-mono); font-size: 13px; text-anchor: end; }
svg .ax-x { fill: var(--ink-faint); font-family: var(--f-mono); font-size: 13px; text-anchor: middle; }
svg .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
svg .line-strategy { stroke: var(--ink); }
svg .line-hedge { stroke: var(--neg); }
svg .line-etf { stroke: var(--gold); }
svg .line-spy { stroke: var(--ink-faint); }
svg .area-strategy { fill: rgba(15,42,63,0.07); }
svg .dot-strategy { fill: var(--ink); } svg .dot-hedge { fill: var(--neg); }
svg .dot-etf { fill: var(--gold); } svg .dot-spy { fill: var(--ink-faint); }
svg .flag-lbl { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; font-weight: 600; }
svg .flag-val { font-family: var(--f-display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
svg .flag-lead { stroke-width: .8; opacity: .55; }
svg .flag-strategy { fill: var(--ink); stroke: var(--ink); }
svg .flag-hedge { fill: var(--neg); stroke: var(--neg); }
svg .flag-etf { fill: var(--gold); stroke: var(--gold); }
svg .flag-spy { fill: var(--ink-faint); stroke: var(--ink-faint); }

/* legends */
.legend, .wf-legend, .rg-legend { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 18px; }
.legend-item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-dim); }
.legend-swatch { width: 22px; height: 4px; border-radius: 2px; flex-shrink: 0; }
.sw-strategy { background: var(--ink); height: 5px; } .sw-hedge { background: var(--neg); }
.sw-etf { background: var(--gold); } .sw-spy { background: var(--ink-faint); }
.sw-wf-base { background: var(--ink-faint); } .sw-wf-edge { background: var(--ink); }
.sw-wf-lever { background: var(--gold); } .sw-wf-result { background: var(--pos); }
.sw-it-hist { background: var(--ink); } .sw-it-proj { background: var(--gold); }
.sw-rg-winbig { background: #1F6B3A; } .sw-rg-win { background: #5FA079; }
.sw-rg-red { background: #C98879; } .sw-rg-deep { background: #8C3B2E; }

/* readout */
.readout { display: flex; flex-direction: column; gap: 16px; }
.readout-window { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-faint); }
.readout-hero { background: var(--ink); border-radius: 4px; padding: 22px 26px; }
.readout-hero .rh-lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.readout-hero .rh-val { font-family: var(--f-display); font-weight: 600; font-size: 34px; letter-spacing: -.03em; color: #fff; margin-top: 6px; }
.readout-hero .rh-sub { font-family: var(--f-mono); font-size: 13px; color: #aeb9c4; margin-top: 6px; }
.readout-rows { display: flex; flex-direction: column; }
.readout-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.readout-row:last-child { border-bottom: none; }
.rr-name { font-size: 14px; color: var(--ink-dim); }
.rr-val { font-family: var(--f-mono); font-size: 17px; font-weight: 600; color: var(--ink); }
.readout-mult { display: flex; justify-content: space-between; align-items: baseline; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 14px 20px; }
.rm-name { font-size: 13px; color: var(--ink-dim); }
.rm-val { font-family: var(--f-display); font-weight: 600; font-size: 30px; color: var(--gold); }

.riskbox { margin-top: 26px; padding: 18px 24px; border: 2px solid var(--neg); background: #fbeeeb; border-radius: 4px; display: flex; flex-direction: column; gap: 7px; }
.rb-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; color: var(--neg); font-weight: 700; }
.rb-txt { font-family: var(--f-serif); font-size: 18px; line-height: 1.4; color: var(--ink); }

/* ============================ WATERFALL ================================ */
svg .wf-bar { }
svg .wf-base { fill: var(--ink-faint); } svg .wf-edge { fill: var(--ink); }
svg .wf-lever { fill: var(--gold); } svg .wf-result { fill: var(--pos); }
svg .wf-link { stroke: var(--ink-faint); stroke-width: 1; stroke-dasharray: 3 3; }
svg .wf-val { font-family: var(--f-display); font-weight: 600; font-size: 17px; text-anchor: middle; }
svg .wf-val.wf-base { fill: var(--ink-faint); } svg .wf-val.wf-edge { fill: var(--ink); }
svg .wf-val.wf-lever { fill: var(--gold); } svg .wf-val.wf-result { fill: var(--pos); }
svg .wf-xlbl { font-family: var(--f-mono); font-size: 11px; fill: var(--ink-dim); text-anchor: middle; }

/* ============================ IT CHART ================================= */
svg .it-today { stroke: var(--ink-faint); stroke-dasharray: 3 3; }
svg .it-tag { font-family: var(--f-mono); font-size: 9px; fill: var(--ink-faint); letter-spacing: .12em; }
svg .it-cone { fill: rgba(184,147,90,0.16); }
svg .it-hist { fill: none; stroke: var(--ink); stroke-width: 2.6; }
svg .it-proj { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-dasharray: 6 4; }
svg .it-dot { fill: var(--ink); } svg .it-dot.proj { fill: var(--gold); }
svg .it-end { font-family: var(--f-display); font-weight: 600; font-size: 16px; fill: var(--ink); text-anchor: end; }
svg .it-end.proj { fill: var(--gold); }
.it-head { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 14px; }

/* ============================ ENTITIES ================================= */
.entities { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 16px; }
.entity { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; padding: 22px 24px; }
.ent-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.ent-name { font-family: var(--f-display); font-weight: 600; font-size: 19px; color: #F4F4F0; margin: 8px 0 5px; }
.ent-sub { font-size: 13px; color: #9fb0bf; }

/* ============================ CARD-LG (mechanics) ====================== */
.card-lg { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 32px 36px; display: flex; flex-direction: column; gap: 14px; }
.cl-head { display: flex; justify-content: space-between; align-items: baseline; }
.cl-gain { font-family: var(--f-display); font-weight: 600; font-size: 34px; color: var(--gold); letter-spacing: -.03em; }
.minirows { margin-top: 6px; display: flex; flex-direction: column; }
.mr { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-dim); }
.mr:last-child { border-bottom: none; }
.mr span:last-child { font-family: var(--f-mono); font-weight: 600; color: var(--ink); }
.mr.win { color: var(--gold); font-weight: 600; }
.mr.win span:last-child { color: var(--gold); }
.vs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.vs-cell { padding: 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; }
.vs-cell.win { border-color: var(--gold); background: #faf4ea; }
.vs-lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.vs-val { display: block; font-family: var(--f-display); font-weight: 600; font-size: 56px; letter-spacing: -.04em; color: var(--gold); margin-top: 6px; }
.vs-val.dim { color: var(--ink-dim); }

/* ============================ DECADES ================================== */
.decades { margin-top: 42px; display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; }
.decade { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ink-faint); border-radius: 4px; padding: 20px 18px; }
.decade.accent { border-top-color: var(--gold); background: #faf4ea; }
.dec-era { font-family: var(--f-display); font-weight: 600; font-size: 22px; color: var(--ink); }
.dec-theme { font-size: 13px; color: var(--ink-dim); margin: 8px 0 10px; line-height: 1.35; min-height: 36px; }
.dec-leaders { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-faint); }
.projbox { margin-top: 24px; padding: 22px 28px; background: var(--ink); color: #fff; border-radius: 4px; display: flex; gap: 24px; align-items: center; }
.pb-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); white-space: nowrap; }
.pb-txt { font-size: 18px; line-height: 1.45; color: #e6ebef; }
.pb-txt strong { color: var(--gold-soft); }

/* ============================ FUNNEL =================================== */
.funnel { display: flex; flex-direction: column; gap: 16px; }
.fn-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: center; }
.fn-n { font-family: var(--f-mono); font-size: 11px; color: var(--ink-faint); }
.fn-name { font-family: var(--f-display); font-weight: 600; font-size: 19px; color: var(--ink); margin-top: 2px; }
.fn-sub { font-size: 12px; font-style: italic; color: var(--ink-dim); }
.fn-bar-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.fn-bar { height: 54px; background: var(--bg-2); border: 1px solid var(--rule); min-width: 0; }
.fn-bar.accent { background: var(--ink); border-color: var(--ink); }
.fn-val { font-family: var(--f-display); font-weight: 600; font-size: 30px; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.fn-val.accent { color: var(--gold); }

/* ============================ REGIME HEATMAP =========================== */
.regime-grid { margin-top: 36px; display: grid; grid-template-columns: 1.6fr 1.3fr 0.9fr; gap: 22px; align-items: start; }
.regime-col { display: flex; flex-direction: column; gap: 12px; }
.regime-head { display: flex; flex-direction: column; gap: 5px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.rh-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rh-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.regime-col.up .rh-label { color: #1F6B3A; }
.regime-col.side .rh-label { color: #8C3B2E; }
.regime-col.down .rh-label { color: #3D3D3D; }
.rh-count { font-family: var(--f-mono); font-size: 12px; font-weight: 700; padding: 2px 8px; }
.regime-col.up .rh-count { background: rgba(31,107,58,0.14); color: #1F6B3A; }
.regime-col.side .rh-count { background: rgba(140,59,46,0.14); color: #8C3B2E; }
.regime-col.down .rh-count { background: rgba(61,61,61,0.12); color: #3D3D3D; }
.rh-verdict { font-family: var(--f-serif); font-style: italic; font-size: 26px; color: var(--ink); }
.rh-avg { font-family: var(--f-display); font-weight: 700; font-size: 28px; letter-spacing: -.03em; }
.regime-col.up .rh-avg { color: #1F6B3A; }
.regime-col.side .rh-avg, .regime-col.down .rh-avg { color: #8C3B2E; }
.rh-row.sub { font-family: var(--f-mono); font-size: 11px; color: var(--ink-faint); }
.regime-cells { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.regime-col.down .regime-cells { grid-template-columns: repeat(2,1fr); }
.rg-cell { padding: 8px 9px; min-height: 64px; display: flex; flex-direction: column; justify-content: space-between; }
.rg-cell.winbig { background: #1F6B3A; color: #F4F1EA; }
.rg-cell.win { background: #5FA079; color: #0F2A3F; }
.rg-cell.red { background: #C98879; color: #0F2A3F; }
.rg-cell.deep { background: #8C3B2E; color: #F4F1EA; }
.rg-top { display: flex; justify-content: space-between; align-items: baseline; }
.rg-yr { font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.rg-diff { font-family: var(--f-mono); font-size: 10px; opacity: .7; font-weight: 600; }
.rg-bot { display: flex; flex-direction: column; }
.rg-spy { font-family: var(--f-mono); font-size: 9px; opacity: .6; }
.rg-str { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.regime-blurb { font-size: 13px; font-style: italic; color: var(--ink-dim); }

/* ============================ RR BLOCKS ================================ */
.rr-block { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 26px 30px; }
.rr-block.neg { border-color: var(--neg-soft); }
.rr-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.rr-name-b { font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; font-weight: 700; }
.rr-block.pos .rr-name-b { color: var(--pos); }
.rr-block.neg .rr-name-b { color: var(--neg); }
.rr-tag { font-family: var(--f-serif); font-style: italic; font-size: 19px; color: var(--ink-dim); }
.rr-tag.pos { color: var(--pos); }
.rr-line { display: grid; grid-template-columns: 1fr 5.6em 5.6em; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-dim); }
.rr-line .rr-v { font-family: var(--f-mono); font-weight: 600; color: var(--ink); text-align: right; }
.rr-line.hero { background: #faf4ea; margin: 0 -10px; padding: 12px 10px; }
.rr-line.hero span { color: var(--gold); font-weight: 700; }
.rr-colhead { padding: 2px 0 7px; }
.rr-colhead span { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); text-align: right; }
.rr-colhead span:first-child { text-align: left; }
.rr-foot { margin-top: 14px; font-family: var(--f-serif); font-size: 16px; color: var(--ink-dim); }

/* ============================ ALPHA SLEEVE ============================= */
.alpha-grid { margin-top: 42px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.alpha-play { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.ap-n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; color: var(--gold); font-weight: 700; }
.ap-name { font-family: var(--f-display); font-weight: 600; font-size: 21px; color: var(--ink); }
.alpha-play p { font-size: 14px; line-height: 1.5; color: var(--ink-dim); }

/* ============================ WORKED EXAMPLES ========================== */
.worked { margin-top: 38px; }
.worked-head { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.worked-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 16px; }
.we-card { border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.we-card.hero { border-color: var(--gold); background: #faf4ea; }
.we-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.we-card.hero .we-tag { color: var(--gold); }
.we-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; font-family: var(--f-mono); font-size: 14px; color: var(--ink-dim); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.we-net { display: flex; justify-content: space-between; align-items: baseline; }
.we-net span { font-size: 13px; color: var(--ink-dim); }
.we-net strong { font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; color: var(--ink); }

/* ============================ STRUCT CARDS ============================= */
.struct { background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 26px 30px; }
.struct.accent { border: 2px solid var(--gold); background: #faf4ea; }
.struct-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.struct.accent .struct-tag { color: var(--gold); }
.struct-name { font-family: var(--f-display); font-weight: 600; font-size: 26px; color: var(--ink); margin: 4px 0 14px; letter-spacing: -.02em; }
.struct.accent .struct-name { color: var(--gold); }
.struct-rows { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.sr { display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sr:last-child { border-bottom: none; }
.sr span:first-child { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--ink-dim); letter-spacing: .08em; }
.sr span:last-child { font-size: 15px; color: var(--ink-dim); }

/* ============================ FEES TABLE =============================== */
.fees-table-wrap { margin-top: 38px; }
.ft-title { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.fees-table { display: flex; flex-direction: column; }
.ft-row { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1fr 1fr 0.8fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; font-family: var(--f-mono); font-size: 15px; }
.ft-row span { text-align: right; color: var(--ink-dim); }
.ft-row span:first-child { text-align: left; }
.ft-head { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--rule); }
.ft-year { font-family: var(--f-display); font-weight: 600; font-size: 19px; color: var(--ink); display: flex; flex-direction: column; }
.ft-year em { font-family: var(--f-serif); font-size: 13px; color: var(--ink-dim); }
.ft-gross { color: var(--ink); font-weight: 600; }
.ft-ours { color: var(--gold); font-weight: 700; font-size: 17px; }
.ft-delta { color: var(--gold); font-weight: 600; }

/* fee bars */
.fee-wrap { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.fee-bar-row { display: grid; grid-template-columns: 220px 1fr 120px; gap: 20px; align-items: center; }
.fee-bar-name { font-size: 15px; color: var(--ink-dim); }
.fee-track { height: 38px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.fee-fill { height: 100%; border-radius: 3px; transition: width .6s cubic-bezier(.4,0,.2,1); }
.fee-fill.ours { background: var(--ink); }
.fee-fill.trad { background: var(--gold); }
.fee-bar-val { font-family: var(--f-display); font-weight: 600; font-size: 24px; color: var(--ink); text-align: right; }
.fee-extra { margin-top: 14px; background: #eef5f0; border: 1px solid rgba(46,110,79,0.3); border-radius: 4px; padding: 20px 26px; display: flex; justify-content: space-between; align-items: center; }
.fx-lbl { font-size: 15px; color: var(--pos); }
.fx-val { font-family: var(--f-display); font-weight: 600; font-size: 38px; color: var(--pos); letter-spacing: -.02em; }

/* ============================ TEAR SHEET =============================== */
.tear-rows { margin-top: 36px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.tear-row { display: grid; grid-template-columns: 2.4fr 1fr 1fr 1.2fr; align-items: center; background: var(--card); }
.tear-row > span { padding: 14px 22px; text-align: right; font-family: var(--f-mono); font-size: 19px; color: var(--ink); border-bottom: 1px solid var(--line); }
.tear-headrow > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 2px solid var(--ink); font-weight: 600; }
.tear-headrow .tear-metric-h { text-align: left; }
.tear-headrow .tear-str-h { color: var(--gold); }
.tear-group { grid-column: 1/-1; padding: 9px 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); font-weight: 700; background: var(--bg-2); border-bottom: 1px solid var(--ink); }
.tear-metric { text-align: left !important; display: flex; flex-direction: column; gap: 1px; }
.tear-metric strong { font-family: var(--f-display); font-size: 18px; color: var(--ink); }
.tear-metric em { font-family: var(--f-serif); font-size: 13px; color: var(--ink-dim); }
.tear-v { color: var(--ink-dim) !important; }
.tear-str { background: #faf4ea; color: var(--gold) !important; font-weight: 700; }

/* ============================ TERMS ==================================== */
.terms-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 42px; }
.term { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 4px; padding: 30px; }
.term:nth-child(2) { border-top-color: var(--pos); }
.term:nth-child(3) { border-top-color: var(--ink); }
.term-lbl { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.term-val { font-family: var(--f-display); font-weight: 600; font-size: 50px; letter-spacing: -.03em; color: var(--ink); margin: 12px 0 8px; }
.term-sub { font-size: 14px; color: var(--ink-dim); }
.termcols { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top: 32px; }
.tc-head { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.tc { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tc span:first-child { font-family: var(--f-serif); font-style: italic; font-size: 15px; color: var(--ink-dim); }
.tc span:last-child { font-family: var(--f-mono); font-size: 13px; color: var(--ink); }
.liquidity { margin-top: 24px; background: var(--ink); border-radius: 4px; padding: 24px 30px; display: flex; gap: 22px; align-items: center; }
.lq-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--gold-soft); white-space: nowrap; }
.lq-txt { color: #e6ebef; font-size: 17px; line-height: 1.5; }
.lq-txt strong { color: #fff; }

/* ============================ STEPS ==================================== */
.steps { margin-top: 42px; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.step:last-child { border-bottom: none; }
.step-n { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #F4F4F0; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: 17px; }
.step.accent .step-n { background: var(--gold); color: #0a1c2b; }
.step-head { font-family: var(--f-display); font-weight: 600; font-size: 24px; color: #F4F4F0; }
.step.accent .step-head { color: var(--gold-soft); }
.step p { font-size: 16px; line-height: 1.5; color: #9fb0bf; margin-top: 4px; }
.cta { margin-top: 30px; padding: 30px 34px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 5px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.cta-mail { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 30px; color: #F4F4F0; margin-top: 6px; text-decoration: none; transition: color .18s ease; }
a.cta-mail:hover { color: var(--gold-soft); }
.cta-sub { font-size: 15px; color: #9fb0bf; max-width: 40ch; }

/* ============================ DISCLOSURES ============================== */
.backtest-banner { margin-top: 26px; padding: 20px 26px; background: var(--neg); color: #fff; display: flex; gap: 22px; align-items: center; border-radius: 4px; }
.bb-tag { font-family: var(--f-display); font-weight: 700; letter-spacing: .06em; font-size: 14px; padding: 6px 12px; background: #fff; color: var(--neg); white-space: nowrap; }
.bb-txt { font-size: 15px; line-height: 1.5; }
.disclosures { margin-top: 30px; columns: 2; column-gap: 48px; }
.disclosures p { font-size: 14px; line-height: 1.6; color: var(--ink-dim); margin-bottom: 16px; break-inside: avoid; }
.disclosures strong { color: var(--ink); }

/* ============================ FOOTER =================================== */
.foot { background: var(--panel-ink); color: #9fb0bf; padding: 50px 0 56px; }
.foot .wrap { display: flex; flex-direction: column; gap: 16px; }
.foot-mark { font-family: var(--f-mono); font-size: 13px; letter-spacing: .24em; color: var(--gold-soft); }
.foot-disc { font-size: 12px; line-height: 1.65; }

/* ============================ CRISIS =================================== */
.crisis-rows { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.crisis-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 22px 26px; }
.crisis-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.crisis-name { font-family: var(--f-display); font-weight: 600; font-size: 19px; color: var(--ink); }
.crisis-period { font-family: var(--f-mono); font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.crisis-kind { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; }
.crisis-kind.synthetic { background: var(--bg-2); color: var(--ink-faint); }
.crisis-kind.actual { background: #eef5f0; color: var(--pos); }
.crisis-bars { display: flex; flex-direction: column; gap: 9px; }
.crisis-bar-row { display: grid; grid-template-columns: 150px 1fr 54px 110px; gap: 14px; align-items: center; }
.crisis-bar-name { font-size: 14px; color: var(--ink-dim); }
.crisis-track { height: 16px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.crisis-fill { height: 100%; border-radius: 2px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.crisis-fill.spy { background: var(--ink-faint); }
.crisis-fill.etf { background: var(--neg); }
.crisis-fill.strategy { background: var(--pos); }
.crisis-pct { font-family: var(--f-mono); font-size: 14px; font-weight: 600; color: var(--neg); text-align: right; }
.crisis-loss { font-family: var(--f-mono); font-size: 15px; font-weight: 600; color: var(--ink); text-align: right; }

/* ============================ RESPONSIVE =============================== */
@media (max-width: 980px) {
  .title { font-size: 38px; } .title.xl { font-size: 50px; } .title.serif { font-size: 42px; }
  .lead { font-size: 18px; }
  section.block { padding: 44px 0; }
  .panel-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-3, .grid-2, .alpha-grid, .worked-grid, .terms-grid, .termcols, .entities { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .formula { flex-direction: column; }
  .op { justify-content: center; }
  .equation { gap: 14px; } .eq-num { font-size: 84px; } .eq-op { font-size: 44px; }
  .decades { grid-template-columns: repeat(2,1fr); }
  .regime-grid { grid-template-columns: 1fr; }
  .rr-block, .fn-row { } .fn-row { grid-template-columns: 1fr; gap: 8px; }
  .tear-row { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .tear-row > span { padding: 10px 12px; font-size: 15px; }
  .ft-row { grid-template-columns: 1.6fr 1fr 1fr; font-size: 13px; }
  .ft-row span:nth-child(4), .ft-row span:nth-child(5), .ft-row span:nth-child(6) { display: none; }
  .fee-bar-row { grid-template-columns: 1fr; gap: 6px; }
  .disclosures { columns: 1; }
  .ask, .projbox, .liquidity, .cta, .backtest-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .crisis-bar-row { grid-template-columns: 110px 1fr 46px; }
  .crisis-bar-row .crisis-loss { display: none; }
  .hero-video-wrap { width: 96vw; }
  .stage p { max-width: none; }
}

/* ===================== MOBILE / PHONE OPTIMISATION ====================== */
@media (max-width: 640px) {
  /* breathing room — content was running edge-to-edge on phones */
  section.block > .wrap { padding-left: 20px; padding-right: 20px; }
  .foot .wrap { padding-left: 20px; padding-right: 20px; }

  /* "best viewed on desktop" note — phone visitors only */
  .welcome-tip {
    display: block; max-width: 300px; margin: 20px auto 0;
    font-family: var(--f-mono); font-size: 10px; letter-spacing: .11em;
    line-height: 1.7; text-transform: uppercase; color: var(--gold-soft);
  }

  /* type scale */
  .title { font-size: 30px; }
  .title.xl { font-size: 35px; }
  .title.serif { font-size: 29px; }
  .lead { font-size: 15.5px; }
  .eyebrow { font-size: 12px; gap: 10px; }
  .eyebrow::before { width: 22px; }

  /* equation */
  .equation { gap: 10px; margin: 26px 0 4px; }
  .eq-num { font-size: 58px; }
  .eq-op { font-size: 30px; }

  /* cards / panels — trim heavy padding */
  .card { padding: 22px 20px 24px; }
  .card-lg { padding: 22px 20px; }
  .panel { padding: 18px 16px; }
  .stage { padding: 20px 18px; }
  .statband .stat { padding: 22px 22px; }
  .ask, .projbox, .liquidity, .cta, .backtest-banner { padding: 20px 22px; }
  .layer, .entity { padding: 20px 20px; }

  /* §10 mechanics — vs-pair numbers were overflowing the card */
  .vs-pair { grid-template-columns: 1fr; gap: 10px; }
  .vs-cell { padding: 16px 18px; }
  .vs-val { font-size: 42px; }
  .cl-head { flex-wrap: wrap; gap: 4px 12px; }
  .cl-gain { font-size: 28px; }

  /* §13 funnel — bar + value were overflowing the row */
  .fn-bar-wrap { display: block; }
  .fn-val { display: block; margin-top: 7px; }

  /* §12 decades — mono leader strings were overflowing 2-up cards */
  .decades { grid-template-columns: 1fr; }
  .dec-theme { min-height: 0; }
  .dec-leaders { overflow-wrap: anywhere; }

  /* §20 subscription terms — long mono values were overflowing */
  .tc { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .tc span:last-child { overflow-wrap: anywhere; }

  /* regime heatmap — 3 cells per row was too cramped on a phone */
  .regime-cells { grid-template-columns: repeat(2, 1fr); }

  /* tear sheet — tighten the four columns */
  .tear-row > span { padding: 9px 9px; font-size: 12.5px; }
  .tear-metric strong { font-size: 13px; }

  /* fees-compare table — five columns are tight */
  .ft-row { font-size: 11px; gap: 5px; }

  /* §21 next steps — the email link must not overflow the cta box */
  .cta-mail { display: block; font-size: 19px; overflow-wrap: anywhere; }
  .cta { padding: 20px 20px; }

  /* readout / worked figures shouldn't overflow their boxes */
  .rh-val, .readout-hero .rh-val { word-break: break-word; }
  .we-net strong, .card-big, .cs-v, .fn-val { word-break: break-word; }
}
