/* =====================================================================
   CSEEF — toa.css   (shared by every page)
   Layout concept: an engraved share certificate laid on a ledger page.
   Wide reading column, certificate double-rules between sections,
   ledger-style mono labels, numbers set large in the display face.
   ===================================================================== */
:root {
  --paper:   #f4f5f1;   /* cool ledger paper */
  --surface: #ffffff;
  --ink:     #0c1a2e;   /* TOA navy, as text */
  --ink-2:   #3a4a60;
  --ink-3:   #5b6a7f;
  --rule:    #d3d9e0;
  --navy:    #0a1f3d;   /* brand navy, as a fill */
  --gold:    #8a6210;   /* gold for text on paper (AA) */
  --gold-2:  #d4aa50;   /* brand gold, for fills and lines */
  --gold-3:  #f1e3bd;   /* gold wash */
  --maple:   #b3261e;
  --ok:      #2f6b45;
  --shadow:  0 1px 0 rgba(12,26,46,.04), 0 10px 30px -12px rgba(12,26,46,.25);

  --f-display: "Playfair Display", "Playfair", Georgia, "Times New Roman", serif;
  --f-body:    "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.9rem;
  --step-0:  1.25rem;      /* 20px body: written for readers over 40 */
  --step-1:  1.5rem;
  --step-2:  2rem;
  --step-3:  clamp(2.2rem, 4.2vw, 3.1rem);
  --step-4:  clamp(2.6rem, 6vw, 4.6rem);

  --col: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper:   #08131f;
  --surface: #0e1d31;
  --ink:     #eef1f5;
  --ink-2:   #c3ccd8;
  --ink-3:   #9aa7b8;
  --rule:    #24384f;
  --navy:    #0a1f3d;
  --gold:    #e3bd66;
  --gold-2:  #d4aa50;
  --gold-3:  #2b2512;
  --maple:   #e0574d;
  --ok:      #6cbf8a;
  --shadow:  0 1px 0 rgba(0,0,0,.2), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
main { overflow-x: clip; }
a { color: var(--ink); text-decoration-color: var(--gold-2); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

.wrap { max-width: var(--col); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 38rem; }

/* ---------- Ledger label ---------- */
.label {
  font-family: var(--f-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; gap: 1rem 1.5rem; padding-block: .6rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word b {
  font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .08em;
  background: linear-gradient(180deg, #e9cf86 0%, #c9993c 48%, #8a6210 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .brand-word b { background: linear-gradient(180deg, #f6e2a6 0%, #d4aa50 55%, #a47a22 100%); -webkit-background-clip: text; background-clip: text; }
.brand-word span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a {
  font-family: var(--f-mono); font-size: .95rem; letter-spacing: .04em; text-decoration: none;
  padding: .5rem .8rem; border-radius: 999px; color: var(--ink-2);
}
.nav a:hover { background: var(--gold-3); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.theme-btn {
  font-family: var(--f-mono); font-size: .85rem; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: .45rem .8rem; cursor: pointer;
}
.theme-btn:hover { border-color: var(--gold-2); color: var(--ink); }

/* ---------- Certificate rule between sections ---------- */
.cert-rule { height: 9px; border-top: 1px solid var(--gold-2); border-bottom: 3px double var(--gold-2); opacity: .7; margin-block: 0; }
section { padding-block: clamp(3rem, 7vw, 6rem); }
.sec-head { display: grid; gap: .9rem; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.sec-head h2 { font-size: var(--step-3); }
.sec-head p { color: var(--ink-2); max-width: 40rem; }

/* ---------- Buttons ---------- */
.btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 1rem; font-weight: 600; letter-spacing: .02em;
  padding: .85rem 1.25rem; border-radius: 6px; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff;
}
.btn:hover { background: #12305a; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink-3); }
.btn.ghost:hover { border-color: var(--gold-2); background: var(--gold-3); color: var(--ink); }
:root[data-theme="dark"] .btn { background: var(--gold-2); border-color: var(--gold-2); color: #0a1626; }
:root[data-theme="dark"] .btn:hover { background: #e7c272; color: #0a1626; }
:root[data-theme="dark"] .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; color: var(--ink-3); font-size: 1rem; }
.site-foot .wrap { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: start; }
.site-foot .tag { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; color: var(--ink); }
.site-foot .mono { font-size: .85rem; }
.build-tag { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-3); }
.copy-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.copy-btn { font-family: var(--f-mono); font-size: .8rem; padding: .3rem .6rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); color: var(--ink-2); cursor: pointer; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); position: relative; overflow: hidden; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.page-hero p { font-size: var(--step-1); color: var(--ink-2); max-width: 36rem; margin-top: 1.1rem; line-height: 1.45; }
.page-hero .rosette { position: absolute; right: -8rem; top: -6rem; width: 30rem; height: 30rem; opacity: .5; pointer-events: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0s !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   HOME
   ===================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero .rosette { position: absolute; left: 50%; top: 50%; width: 62rem; height: 62rem; transform: translate(-22%, -50%); opacity: .45; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: var(--step-4); }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 700; }
.hero h1 .line2 { display: block; margin-top: .25em; font-weight: 600; color: var(--ink-2); }
.hero .lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); margin-top: 1.4rem; max-width: 34rem; }
.hero .btns { margin-top: 2rem; }

/* The two documents: tax receipt and share certificate */
.docs { position: relative; height: 36rem; }
.receipt {
  position: absolute; left: 0; top: 12rem; width: 13.5rem; z-index: 2;
  background: #fffefb; color: #1d232b; font-family: var(--f-mono); font-size: .82rem; line-height: 1.5;
  padding: 1.1rem 1.1rem 1.6rem; box-shadow: var(--shadow); transform: rotate(-4deg);
  --tooth: 8px;
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom/12px 9px repeat-x, linear-gradient(#000,#000) top/100% calc(100% - 8px) no-repeat;
          mask: radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom/12px 9px repeat-x, linear-gradient(#000,#000) top/100% calc(100% - 8px) no-repeat;
  animation: print 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.receipt .r-head { text-align: center; font-weight: 600; letter-spacing: .08em; border-bottom: 1px dashed #9aa1aa; padding-bottom: .5rem; margin-bottom: .5rem; }
.receipt .r-row { display: flex; justify-content: space-between; gap: .5rem; }
.receipt .r-total { border-top: 1px dashed #9aa1aa; margin-top: .5rem; padding-top: .5rem; font-weight: 600; }
.receipt .paid {
  display: inline-block; margin: .9rem auto 0; padding: .15rem .6rem; border: 2px solid #b3261e; color: #b3261e;
  font-weight: 700; letter-spacing: .2em; transform: rotate(-8deg);
  animation: stamp .5s 1.15s cubic-bezier(.3,1.6,.5,1) both;
}
.receipt .r-foot { margin-top: .7rem; font-size: .76rem; color: #48505b; text-align: center; }
@keyframes print { from { clip-path: inset(0 0 100% 0); translate: 0 -12px; } to { clip-path: inset(0 0 0 0); translate: 0 0; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.8); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }

.cert {
  position: absolute; right: 0; top: 0; width: min(22rem, 72%); z-index: 1;
  background: #fbf8ef; color: #142338; padding: 1rem; box-shadow: var(--shadow); transform: rotate(2.5deg);
  animation: rise 1s .35s cubic-bezier(.2,.7,.2,1) both;
}
.cert-inner { position: relative; border: 2px solid #b8913e; outline: 1px solid #b8913e; outline-offset: 4px; padding: 1.5rem 1.2rem 1.2rem; text-align: center; overflow: hidden; }
.cert-inner svg.guil { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.cert-inner > *:not(svg) { position: relative; }
.cert .c-kicker { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #6d5212; }
.cert .c-title { font-family: var(--f-display); font-size: 1.55rem; font-weight: 800; letter-spacing: .02em; margin-top: .3rem; color: #142338; }
.cert .c-sub { font-family: var(--f-display); font-style: italic; font-size: 1rem; color: #3a4a60; margin-top: .2rem; }
.cert .c-body { font-size: .95rem; line-height: 1.45; margin-top: .8rem; color: #233349; }
.cert .c-holder { margin-top: .9rem; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; color: #3a4a60; }
.cert .c-holder b { display: block; font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .02em; color: #8a1f17; margin-top: .15rem; }
.cert .seal {
  position: absolute; right: -.4rem; bottom: -.6rem; width: 4.4rem; height: 4.4rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3d98f, #c99a3c 55%, #8a6210);
  display: grid; place-items: center; color: #3d2a05; font-family: var(--f-mono); font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-align: center; line-height: 1.2;
  box-shadow: 0 4px 10px rgba(0,0,0,.25); transform: rotate(-12deg);
}
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* dividend ticker under the certificate */
.ticker {
  position: absolute; right: 0; bottom: 0; width: min(16.5rem, 54%); z-index: 3;
  background: var(--navy); color: #f4e6c2; border-radius: 8px; padding: .8rem 1rem; box-shadow: var(--shadow);
  font-family: var(--f-mono); font-size: .85rem;
  animation: rise2 .8s .9s ease both;
}
.ticker .t-top { display: flex; justify-content: space-between; color: #d4aa50; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.ticker .t-years { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; align-items: end; height: 3.2rem; margin-top: .5rem; }
.ticker .t-years i { display: block; min-height: 3px; background: linear-gradient(180deg, #f1d58b, #c9993c); border-radius: 2px 2px 0 0; transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
.ticker .t-axis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: .25rem; font-size: .68rem; color: #b8c2d0; text-align: center; }
.ticker .t-sum { margin-top: .45rem; font-size: .82rem; color: #fff; }
@keyframes rise2 { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- The idea ---------- */
.idea { background: var(--surface); border-block: 1px solid var(--rule); }
.idea-grid { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.idea-copy p { font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.55; color: var(--ink); }
.idea-copy p + p { margin-top: 1.1rem; }
.idea-copy .drop::first-letter { font-family: var(--f-display); float: left; font-size: 4.4em; line-height: .82; padding: .06em .12em 0 0; color: var(--gold); font-weight: 800; }
.idea aside { border-top: 3px double var(--gold-2); padding-top: 1rem; }
.idea aside .label { display: block; margin-bottom: .6rem; }
.idea aside p { font-size: 1.05rem; color: var(--ink-2); }

/* ---------- Mechanism diagram ---------- */
.mech { position: relative; }
.mech-fig { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1rem, 2.5vw, 2rem); box-shadow: var(--shadow); overflow-x: auto; }
.mech-fig svg { display: block; width: 100%; min-width: 640px; height: auto; }
.mech-fig text { font-family: var(--f-body); }
.mech-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.8rem; counter-reset: step; }
.mech-steps li { list-style: none; border-top: 1px solid var(--rule); padding-top: 1rem; }
.mech-steps li::before { counter-increment: step; content: "Step " counter(step); display: block; font-family: var(--f-mono); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.mech-steps h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.mech-steps p { font-size: 1.05rem; color: var(--ink-2); }
.mech-steps { padding: 0; margin-bottom: 0; }
.flow { stroke-dasharray: 2 12; stroke-linecap: round; animation: flow 1.6s linear infinite; }
.flow.slow { animation-duration: 3s; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.drip { animation: drip 3s linear infinite; }
.drip.d2 { animation-delay: 1s; } .drip.d3 { animation-delay: 2s; }
@keyframes drip { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(80px); opacity: 0; } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--f-mono); font-size: .95rem; font-weight: 600; padding: .55rem .85rem; border-radius: 6px; cursor: pointer;
  border: 1.5px solid var(--rule); background: var(--surface); color: var(--ink-2);
}
.chip:hover { border-color: var(--gold-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--gold-2); border-color: var(--gold-2); color: #0a1626; }
.calc-name { font-family: var(--f-display); font-size: var(--step-2); margin-top: 1.4rem; }
.calc-sector { font-family: var(--f-mono); font-size: .9rem; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.formula { margin-top: 1.4rem; background: var(--gold-3); border-left: 3px solid var(--gold-2); padding: 1rem 1.1rem; font-family: var(--f-mono); font-size: .95rem; line-height: 1.7; color: var(--ink); border-radius: 0 6px 6px 0; overflow-x: auto; }
.ledger { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: .95rem 1.2rem; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .k { color: var(--ink-2); font-size: 1.05rem; }
.ledger-row .k small { display: block; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-3); margin-top: .15rem; }
.ledger-row .v { font-family: var(--f-mono); font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ledger-row.hl { background: var(--gold-3); }
.ledger-row.hl .v { color: var(--gold); font-size: 1.35rem; }
.ledger-row.zero .v { color: var(--ok); }
.dilute { padding: 1.1rem 1.2rem 1.3rem; border-top: 1px solid var(--rule); }
.dilute .bar { position: relative; height: 22px; border-radius: 4px; background: var(--paper); border: 1px solid var(--rule); margin-top: .6rem; overflow: hidden; }
.dilute .bar::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--maple); }
.dilute .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold-2); width: 1%; transition: width .6s ease; }
.dilute .cap { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .82rem; color: var(--ink-3); margin-top: .4rem; }

/* ---------- Three numbers ---------- */
.numbers { background: var(--navy); color: #eef1f5; position: relative; overflow: hidden; }
.numbers .rosette { position: absolute; right: -14rem; top: -10rem; width: 44rem; height: 44rem; opacity: .35; pointer-events: none; }
.numbers .label { color: #d4aa50; }
.numbers h2 { color: #fff; }
.num-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2rem; border-top: 1px solid rgba(212,170,80,.45); }
.num { padding: 1.8rem 1.6rem 0 0; }
.num + .num { padding-left: 1.6rem; border-left: 1px solid rgba(212,170,80,.3); }
.num .big { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 6.5vw, 5.2rem); line-height: 1; color: #f1d58b; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.num .big small { font-size: .45em; font-weight: 700; color: #d4aa50; }
.num h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.25rem; margin-top: .9rem; color: #fff; }
.num p { font-size: 1.02rem; color: #c3ccd8; margin-top: .35rem; }

/* ---------- Builds chart ---------- */
.two-col.rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.two-col { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.chart-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: clamp(1rem, 2.5vw, 1.6rem); }
.chart-card svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-card .cap { font-family: var(--f-mono); font-size: .82rem; color: var(--ink-3); margin-top: .6rem; }
.chart-card text { font-family: var(--f-mono); }
.callout { font-family: var(--f-display); font-style: italic; font-size: var(--step-1); line-height: 1.35; color: var(--ink); border-left: 3px solid var(--gold-2); padding-left: 1rem; margin-top: 1.4rem; }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); }

[data-grow] { transform-box: fill-box; transform-origin: bottom; }
.is-armed [data-grow] { transform: scaleY(0); }
.is-armed.in-view [data-grow] { transform: scaleY(1); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.is-armed.in-view [data-grow]:nth-of-type(2) { transition-delay: .08s; }
[data-growx] { transform-box: fill-box; transform-origin: left; }
.is-armed [data-growx] { transform: scaleX(0); }
.is-armed.in-view [data-growx] { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }

/* ---------- Not nationalization ---------- */
.notnat { text-align: center; }
.notnat blockquote { margin: 0 auto; max-width: 52rem; font-family: var(--f-display); font-size: var(--step-3); line-height: 1.2; font-weight: 700; }
.notnat blockquote em { color: var(--gold); }
.notnat .sub { margin-top: 1rem; font-family: var(--f-display); font-style: italic; font-size: var(--step-1); color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 2rem; padding: 0; }
.pills li { list-style: none; font-family: var(--f-mono); font-size: 1rem; font-weight: 600; padding: .65rem 1rem; border: 1.5px solid var(--gold-2); border-radius: 999px; color: var(--ink); background: var(--surface); }
.pills li b { color: var(--gold); margin-right: .35rem; }

/* ---------- Q teaser / cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.card {
  display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--rule);
  border-radius: 12px; padding: 1.3rem 1.3rem 1.4rem; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--gold-2); transform: translateY(-2px); color: var(--ink); }
.card .label { display: block; margin-bottom: .5rem; }
.card h3 { font-size: 1.35rem; }
.card p { font-size: 1.02rem; color: var(--ink-2); margin-top: .5rem; }
.card .go { font-family: var(--f-mono); font-size: .9rem; color: var(--gold); margin-top: .8rem; display: inline-block; }
.card.media { padding: 0; overflow: hidden; }
.card.media .thumb { aspect-ratio: 16/9; background: var(--navy) center/cover no-repeat; position: relative; }
.card.media .thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem; border-radius: 50%; background: rgba(10,31,61,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23f1d58b'/%3E%3C/svg%3E") center/60% no-repeat; border: 2px solid #d4aa50; }
.card.media .body { padding: 1.1rem 1.3rem 1.3rem; }

/* =====================================================================
   THE TEN
   ===================================================================== */
.stake-chart svg { display: block; width: 100%; height: auto; }
.stake-chart text { font-family: var(--f-mono); }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.co {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1.2rem 1.2rem 1rem; position: relative; overflow: hidden;
}
.co::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--gold-2), transparent); }
.co-top { display: flex; align-items: center; gap: .8rem; }
.mono-badge { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #f1d58b; font-family: var(--f-mono); font-weight: 700; font-size: .78rem; letter-spacing: .02em; flex: none; border: 2px solid var(--gold-2); }
.co h3 { font-size: 1.2rem; line-height: 1.15; }
.co .sector { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.co dl { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .35rem 1rem; margin: 1rem 0 0; font-size: 1rem; }
.co dt { color: var(--ink-2); }
.co dd { margin: 0; font-family: var(--f-mono); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.gauge { margin-top: 1rem; }
.gauge .track { position: relative; height: 10px; border-radius: 5px; background: var(--rule); }
.gauge .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, #c9993c, #f1d58b); }
.gauge .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink-3); }
.gauge .mark.cap { background: var(--maple); }
.gauge .legend { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); margin-top: .35rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; min-width: 52rem; font-size: 1rem; }
table.data th, table.data td { padding: .75rem .9rem; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; background: var(--paper); position: sticky; top: 0; cursor: pointer; }
table.data thead th[aria-sort] { color: var(--gold); }
table.data td { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
table.data td:first-child { font-family: var(--f-body); font-weight: 600; }
table.data tfoot td { font-weight: 700; border-bottom: 0; background: var(--gold-3); }
.note { font-family: var(--f-mono); font-size: .85rem; color: var(--ink-3); margin-top: .8rem; line-height: 1.55; }

/* =====================================================================
   QUESTIONS
   ===================================================================== */
.q-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.q-index { position: sticky; top: 6rem; display: grid; gap: .2rem; }
.q-index a { font-size: 1rem; text-decoration: none; color: var(--ink-2); padding: .35rem 0 .35rem .8rem; border-left: 2px solid var(--rule); }
.q-index a:hover { color: var(--ink); border-left-color: var(--gold-2); }
details.q { border-bottom: 1px solid var(--rule); scroll-margin-top: 6rem; }
details.q:first-child { border-top: 1px solid var(--rule); }
details.q summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 1.3rem 0; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary .n { font-family: var(--f-mono); font-size: .9rem; color: var(--gold); }
details.q summary h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
details.q summary .pm { font-family: var(--f-mono); font-size: 1.5rem; color: var(--gold); transition: transform .25s; }
details.q[open] summary .pm { transform: rotate(45deg); }
details.q .a { padding: 0 0 1.6rem 2.6rem; max-width: 44rem; }
details.q .a p { color: var(--ink-2); }
details.q .a p + p { margin-top: .9rem; }
details.q .a .short { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* =====================================================================
   EVIDENCE
   ===================================================================== */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.tier { display: inline-block; font-family: var(--f-mono); font-size: .75rem; font-weight: 700; padding: .15rem .45rem; border-radius: 4px; }
.tier.a { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.tier.b { background: var(--gold-3); color: var(--gold); }
table.src { min-width: 46rem; }
table.src td { white-space: normal; text-align: left; vertical-align: top; }
table.src td:nth-child(2) { font-family: var(--f-mono); white-space: nowrap; text-align: right; }
table.src td:first-child { width: 30%; }
.params { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.params div { background: var(--surface); padding: 1.1rem 1.2rem; }
.params b { display: block; font-family: var(--f-display); font-size: 2rem; color: var(--gold); line-height: 1.1; }
.params span { font-size: 1rem; color: var(--ink-2); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .hero-grid, .two-col, .two-col.rev, .calc, .idea-grid, .q-layout { grid-template-columns: minmax(0, 1fr); }
  .docs { height: 30rem; max-width: 30rem; margin-inline: auto; width: 100%; }
  .q-index { position: static; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
  .mech-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .num-grid { grid-template-columns: minmax(0, 1fr); }
  .num, .num + .num { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid rgba(212,170,80,.3); }
  .brand-word span { display: none; }
  .nav a { padding: .4rem .55rem; font-size: .85rem; }
  .site-head { position: sticky; }   /* phones: slides away on scroll down, back on scroll up (toa.js autoHead) */
  .site-head.head-hide { transform: translateY(-100%); box-shadow: none; }
  .site-head .wrap { gap: .5rem 1rem; }
  .theme-btn { order: 2; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .brand img { width: 36px; height: 36px; }
  details.q .a { padding-left: 0; }
}
@media (max-width: 460px) {
  :root { --step-0: 1.15rem; }
  .docs { height: auto; display: grid; gap: 1.2rem; }
  .receipt, .cert, .ticker { position: relative; inset: auto; width: 100%; }
  .cert { order: 1; transform: rotate(1deg); }
  .receipt { order: 2; width: 86%; justify-self: start; font-size: .8rem; }
  .ticker { order: 3; }
  .cert .c-title { font-size: 1.3rem; }
}
table.src th:nth-child(3), table.src td:nth-child(3) { text-align: left; font-family: var(--f-body); font-size: 1rem; }
table.src th:nth-child(4), table.src td:nth-child(4) { text-align: center; }

/* =====================================================================
   FRONT DOOR (index.html)
   ===================================================================== */
.door { position: relative; overflow: hidden; padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.door .rosette { position: absolute; right: -12rem; top: 50%; width: 56rem; height: 56rem; transform: translateY(-50%); opacity: .35; pointer-events: none; }
.door-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.door-name {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(4.5rem, 11vw, 8.5rem); line-height: .9; letter-spacing: .04em; margin-top: .6rem;
  background: linear-gradient(180deg, #d9b766 0%, #b8892b 50%, #7d5810 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .door-name { background: linear-gradient(180deg, #f6e2a6 0%, #d4aa50 55%, #a47a22 100%); -webkit-background-clip: text; background-clip: text; }
.door-full { font-family: var(--f-display); font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 600; margin-top: .6rem; color: var(--ink); }
.door-def { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.5; color: var(--ink-2); margin-top: 1.2rem; max-width: 34rem; }
.door-btns { margin-top: 1.8rem; }
.btn-play { font-size: 1.05rem; padding: 1rem 1.4rem; }
.btn-play .pl { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #d4aa50; position: relative; flex: none; }
.btn-play .pl::after { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-left: 9px solid #0a1f3d; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
:root[data-theme="dark"] .btn-play .pl { background: #0a1f3d; }
:root[data-theme="dark"] .btn-play .pl::after { border-left-color: #d4aa50; }
.door-note { font-family: var(--f-mono); font-size: .85rem; color: var(--ink-3); margin-top: .9rem; }
.door-fig { margin: 0; }
.door-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.door-fig text { font-family: var(--f-body); }
.door-cap { font-family: var(--f-mono); font-size: .85rem; color: var(--ink-3); text-align: center; margin-top: .4rem; }
.d-slice { animation: slide 1.6s .5s cubic-bezier(.3,.7,.2,1) both; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(30px); } }
.coin { animation: coin 2.4s linear infinite; opacity: 0; }
.coin.c2 { animation-delay: .8s; } .coin.c3 { animation-delay: 1.6s; }
@keyframes coin { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }

.facts { padding-block: 0 clamp(2rem, 4vw, 3rem); }
.fact-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px double var(--gold-2); }
.fact-row li { padding: 1.1rem 1.2rem 0 0; }
.fact-row li + li { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.fact-row b { display: block; font-family: var(--f-display); font-size: 1.7rem; color: var(--gold); line-height: 1.1; }
.fact-row span { display: block; font-size: 1rem; color: var(--ink-2); margin-top: .3rem; }
.paths { padding-top: 0; }
.paths .card h3 { font-size: 1.3rem; }

/* chapter chips on The Case */
.chapters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.chapters a { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--f-mono); font-size: .95rem; padding: .5rem .9rem .5rem .5rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); }
.chapters a b { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--navy); color: #f1d58b; font-size: .8rem; }
.chapters a:hover { border-color: var(--gold-2); }

/* =====================================================================
   NARRATED WALKTHROUGH
   ===================================================================== */
.tour-open, .tour-open body { overflow: hidden; }
dialog.tour {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
dialog.tour[open] { display: grid; }
dialog.tour::backdrop { background: #0a1f3d; }
.tour-top { display: flex; align-items: center; gap: 1rem; padding: calc(env(safe-area-inset-top, 0px) + .9rem) clamp(1rem, 4vw, 2.5rem) .6rem; }
.tour-prog { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg { appearance: none; border: 0; padding: 8px 0; background: none; cursor: pointer; }
.seg i { display: block; height: 5px; border-radius: 3px; background: var(--rule); position: relative; overflow: hidden; }
.seg i::after { content: ""; position: absolute; inset: 0; background: var(--gold-2); transform-origin: left; transform: scaleX(var(--p, 0)); }
.seg.done i::after { transform: scaleX(1); }
.tour-meta { font-family: var(--f-mono); font-size: .85rem; color: var(--ink-3); white-space: nowrap; }
.tour-x { appearance: none; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.tour-x:hover { border-color: var(--gold-2); }
.tour-stage { position: relative; margin-inline: clamp(1rem, 4vw, 2.5rem); }
.scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.scene.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.tour-cap {
  margin: 0 auto; max-width: 52rem; padding: .6rem clamp(1rem, 4vw, 2.5rem) 0; text-align: center;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.35; min-height: 5.6em; color: var(--ink);
}
.tour-cap.in { animation: capIn .5s ease both; }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tour-ctl { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; padding: .8rem 1rem calc(env(safe-area-inset-bottom, 0px) + 1.2rem); }
.tbtn { appearance: none; text-decoration: none; font-family: var(--f-mono); font-size: 1rem; font-weight: 600; padding: .75rem 1.1rem; border-radius: 6px; border: 1.5px solid var(--ink-3); background: var(--surface); color: var(--ink); cursor: pointer; }
.tbtn:hover { border-color: var(--gold-2); color: var(--ink); }
.tbtn:disabled { opacity: .4; cursor: default; }
.tbtn.main { background: var(--navy); border-color: var(--navy); color: #fff; min-width: 9rem; }
:root[data-theme="dark"] .tbtn.main { background: var(--gold-2); border-color: var(--gold-2); color: #0a1626; }
.tbtn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); }

/* scene: acronym */
.acro { display: flex; gap: clamp(.6rem, 2.5vw, 2rem); align-items: flex-start; }
.acro div { text-align: center; }
.acro b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(3.4rem, 11vw, 8rem); line-height: 1; color: var(--gold); }
.acro span { display: block; font-family: var(--f-mono); font-size: clamp(.7rem, 1.6vw, 1.05rem); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: .5rem; }
.scene.on .acro div { animation: up .6s cubic-bezier(.2,.7,.2,1) both; }
.scene.on .acro span { animation: fadeIn .6s both; }
.scene.on .acro div:nth-child(1) { animation-delay: .1s; } .scene.on .acro div:nth-child(1) span { animation-delay: .9s; }
.scene.on .acro div:nth-child(2) { animation-delay: .25s; } .scene.on .acro div:nth-child(2) span { animation-delay: 1.3s; }
.scene.on .acro div:nth-child(3) { animation-delay: .4s; } .scene.on .acro div:nth-child(3) span { animation-delay: 1.7s; }
.scene.on .acro div:nth-child(4) { animation-delay: .55s; } .scene.on .acro div:nth-child(4) span { animation-delay: 2.1s; }
.scene.on .acro div:nth-child(5) { animation-delay: .7s; } .scene.on .acro div:nth-child(5) span { animation-delay: 2.5s; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* scene: receipt */
.receipt.static { position: relative; inset: auto; top: auto; left: auto; width: min(25rem, 82vw); font-size: clamp(.9rem, 1.6vw, 1.2rem); padding: 1.4rem 1.4rem 2rem; transform: rotate(-3deg); animation: none; }
.scene.on .receipt.static { animation: printS 1s cubic-bezier(.2,.7,.2,1) both; }
.scene.on .receipt.static .paid { animation: stamp .5s 1.6s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes printS { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* scene: mechanism */
.sc-svg { width: min(100%, 52rem); max-height: 100%; height: auto; }
.sc-svg text { font-family: var(--f-body); }
.m-cash, .m-share { stroke-dasharray: 400; stroke-dashoffset: 400; }
.scene.on .m-cash { animation: draw 1s .3s ease forwards; }
.scene.on .m-share { animation: draw 1.2s 2.4s ease forwards; }
.m-fund, .m-lab { opacity: 0; }
.scene.on .m-fund { animation: fadeIn .6s 3.4s both; }
.scene.on .m-lab { animation: fadeIn .6s 2.8s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* scene: unchanged */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(.8rem, 2vw, 1.4rem); }
.checks li { display: flex; align-items: center; gap: 1.1rem; font-size: clamp(1.3rem, 3vw, 2.1rem); }
.checks b { font-family: var(--f-display); color: var(--ink); margin-right: .4rem; }
.checks .ck { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 1.3rem; }
.scene.on .checks li { animation: up .5s both; }
.scene.on .checks li:nth-child(2) { animation-delay: 1.4s; }
.scene.on .checks li:nth-child(3) { animation-delay: 2.6s; }

/* scene: bars */
.sc-bars { width: min(100%, 46rem); }
.sc-bars-t { font-family: var(--f-mono); font-size: clamp(.75rem, 1.5vw, .95rem); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 1rem; }
.tbars { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.4rem, 2vw, 1.2rem); height: clamp(11rem, 34vh, 20rem); align-items: end; }
.tb { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.tb i { display: block; width: 100%; height: var(--h); background: var(--navy); border-radius: 4px 4px 0 0; transform-origin: bottom; }
.tb:last-child i { background: var(--gold-2); }
.tv { font-family: var(--f-mono); font-size: clamp(.75rem, 1.6vw, 1rem); font-weight: 700; color: var(--ink-2); margin-bottom: .35rem; }
.tb:last-child .tv { color: var(--gold); font-size: clamp(.9rem, 2vw, 1.25rem); }
.ty { font-family: var(--f-mono); font-size: clamp(.75rem, 1.5vw, .95rem); color: var(--ink-3); margin-top: .4rem; }
.scene.on .tb i { animation: grow .8s var(--d) cubic-bezier(.2,.8,.2,1) both; }
.scene.on .tv { animation: fadeIn .4s calc(var(--d, 0s) + .6s) both; }

/* scene: cost */
.sc-cost { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 3rem); width: min(100%, 50rem); align-items: center; }
.cost-a, .cost-b { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1rem, 3vw, 1.8rem); text-align: center; box-shadow: var(--shadow); }
.cost-k { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--ink-2); }
.cost-v { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 8vw, 5.5rem); color: var(--gold); line-height: 1.05; margin-block: .3rem; }
.capbar { position: relative; height: 26px; border-radius: 13px; background: var(--paper); border: 1px solid var(--rule); margin: 1.4rem 0 1rem; }
.capbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 55%; border-radius: 13px; background: linear-gradient(90deg, #c9993c, #f1d58b); transform-origin: left; }
.capbar::after { content: ""; position: absolute; right: -2px; top: -8px; bottom: -8px; width: 4px; background: var(--maple); border-radius: 2px; }
.capbar em { position: absolute; right: 0; top: -1.8rem; font-family: var(--f-mono); font-style: normal; font-size: .85rem; font-weight: 700; color: var(--maple); }
.scene.on .cost-b { animation: up .5s 2.6s both; }
.scene.on .capbar i { animation: growx 1s 3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* scene: close */
.sc-close { text-align: center; }
.sc-close img { width: clamp(80px, 14vw, 140px); height: auto; border-radius: 50%; }
.close-t { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: clamp(1.8rem, 5vw, 3.4rem); margin-top: 1rem; color: var(--ink); }
.scene.on .sc-close { animation: up .7s both; }

@media (max-width: 960px) {
  .door-grid { grid-template-columns: minmax(0, 1fr); }
  .door-fig { max-width: 34rem; width: 100%; margin-inline: auto; }
  .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-row li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .fact-row { grid-template-columns: minmax(0, 1fr); }
  .fact-row li, .fact-row li + li { border-left: 0; padding-left: 0; padding-bottom: .4rem; }
  .sc-cost { grid-template-columns: minmax(0, 1fr); }
  .tour-meta { display: none; }
  .tbtn { padding: .65rem .8rem; font-size: .92rem; }
  .tour-cap { min-height: 7.2em; }
}

.sc-svg-v { display: none; }
@media (max-width: 600px) { .sc-svg:not(.sc-svg-v) { display: none; } .sc-svg-v { display: block; width: min(100%, 22rem); } }

/* =====================================================================
   VIDEOS (videos.html) — played on the site, never sent to YouTube
   ===================================================================== */
.vids { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { position: absolute; inset: 0; padding: 0; border: 0; background: var(--navy); cursor: pointer; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.big-play { position: absolute; left: 50%; top: 50%; width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; border-radius: 50%; background: rgba(10,31,61,.8); border: 3px solid #d4aa50; }
.big-play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-left: 26px solid #f1d58b; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.poster:hover .big-play { background: #0a1f3d; transform: scale(1.05); }
.now { margin-top: 1.2rem; }
.now h2 { font-size: var(--step-2); margin-top: .4rem; }
.now p { color: var(--ink-2); margin-top: .5rem; max-width: 44rem; }
.ch-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ch-list button { width: 100%; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .9rem; align-items: center; text-align: left; padding: .5rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.ch-list button:hover { border-color: var(--gold-2); }
.ch-list button[aria-current="true"] { border-color: var(--gold-2); background: var(--gold-3); }
.ch-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; background: var(--navy); }
.ch-list span { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.ch-list b { display: block; font-family: var(--f-mono); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .2rem; }
@media (max-width: 960px) { .vids { grid-template-columns: minmax(0, 1fr); } }

/* walkthrough bars: every bar measured against the same track */
.tbars { padding-top: 2.2rem; }
.tb { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; }
.tb .tk { position: relative; }
.tb i { position: absolute; left: 0; right: 0; bottom: 0; width: auto; }
.tv { position: absolute; left: -.5rem; right: -.5rem; bottom: calc(var(--h) + .35rem); text-align: center; margin: 0; white-space: nowrap; }

/* =====================================================================
   NARRATION ON THE CASE (case_narr.js)
   ===================================================================== */
.listen {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; width: fit-content;
  font-family: var(--f-mono); font-size: .9rem; font-weight: 600; padding: .45rem .85rem .45rem .45rem;
  border: 1.5px solid var(--gold-2); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer;
}
.listen:hover { background: var(--gold-3); }
.listen .pl, .listen-all .pl { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--navy); position: relative; flex: none; }
.listen .pl::after { content: ""; position: absolute; left: 56%; top: 50%; transform: translate(-50%, -50%); border-left: 8px solid #f1d58b; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.notnat .listen { margin-inline: auto; margin-bottom: 1rem; }
.listen-all { margin-top: 1.6rem; }
.listen-all + .chapters { margin-top: 1rem; }
section.narrating { box-shadow: inset 4px 0 0 var(--gold-2); }
.narr-on body { padding-bottom: 60vh; }   /* lets the last part scroll up clear of the bar */
.narr-on .site-head { transform: translateY(-100%); transition: transform .3s ease; }
.site-head { transition: transform .3s ease; }
.narr-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--navy); color: #eef1f5; box-shadow: 0 -10px 30px -10px rgba(0,0,0,.4);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nb-prog { height: 4px; background: rgba(255,255,255,.12); }
.nb-prog i { display: block; height: 100%; background: #d4aa50; transform-origin: left; transform: scaleX(0); }
.nb-row { display: flex; align-items: center; gap: .6rem 1.5rem; padding-block: .6rem .7rem; flex-wrap: wrap; }
.nb-text { flex: 1 1 24rem; min-width: 0; }
.nb-part { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #d4aa50; }
.nb-cap { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.3; margin-top: .15rem; color: #fff; }
.nb-ctl { display: flex; gap: .5rem; flex-wrap: wrap; }
.narr-bar .tbtn { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.narr-bar .tbtn.main { background: #d4aa50; border-color: #d4aa50; color: #0a1626; }
.narr-bar .tbtn.quiet { border-color: transparent; }
.tb { align-items: stretch; justify-items: stretch; grid-template-columns: 100%; }
.tb .tk { align-self: stretch; justify-self: stretch; }
.tb .ty { justify-self: center; }
.co dt small { display: block; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); margin-top: .05rem; }
.co dd { align-self: start; }

/* =====================================================================
   NEXT CUE — fixed at the bottom; names the section below the fold
   ===================================================================== */
main [data-cue] { scroll-margin-top: 5.5rem; }
.next-cue {
  position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .7rem; max-width: calc(100vw - 2rem);
  padding: .75rem 1.1rem .75rem 1.2rem; border-radius: 999px; border: 2px solid #d4aa50;
  background: #0a1f3d; color: #fff; cursor: pointer;
  font-family: var(--f-mono); font-size: 1rem; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 10px 30px -8px rgba(10,31,61,.55);
  animation: ncIn .5s cubic-bezier(.2,.8,.2,1) both;
}
.next-cue:hover { background: #12305a; }
.next-cue .nc-k { color: #d4aa50; text-transform: uppercase; font-size: .78rem; letter-spacing: .14em; }
.next-cue .nc-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.next-cue .nc-a { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #d4aa50; color: #0a1f3d; font-size: 1.05rem; animation: ncBob 1.6s ease-in-out infinite; }
.narr-on .next-cue, .tour-open .next-cue { display: none; }
.next-cue.to-top .nc-a { animation: none; }
@keyframes ncIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ncBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (max-width: 560px) { .next-cue { font-size: .9rem; padding: .65rem .9rem; } }

/* figure highlight that follows the narration (hl.js) */
.fig-ring {
  position: fixed; z-index: 70; pointer-events: none; border-radius: 10px;
  border: 3px solid #d4aa50; box-shadow: 0 0 0 4px rgba(212,170,80,.22), 0 0 22px rgba(212,170,80,.45);
  transition: left .35s cubic-bezier(.2,.8,.2,1), top .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1);
}
.fig-ring.in { animation: ringIn .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ringIn { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: none; } }

/* =====================================================================
   THE TEN (rework 2026-10-12): examples, dividend pool, books
   ===================================================================== */
.ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.ex { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1.4rem; box-shadow: var(--shadow); }
.ex-head { display: flex; align-items: center; gap: .9rem; }
.ex-head h3 { font-size: 1.5rem; margin-top: .15rem; }
.ex-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .5rem; margin-top: 1.3rem; }
.ex-step { border: 1px solid var(--rule); border-radius: 10px; padding: .8rem .7rem; text-align: center; background: var(--paper); }
.ex-step span { display: block; font-size: .95rem; color: var(--ink-2); }
.ex-step b { display: block; font-family: var(--f-display); font-size: clamp(1.25rem, 1.8vw, 1.6rem); margin-top: .2rem; white-space: nowrap; }
.ex-step.gold { background: var(--gold-3); border-color: var(--gold-2); }
.ex-step.gold b { color: var(--gold); }
.ex-arrow { font-family: var(--f-mono); font-size: 1.1rem; color: var(--ink-3); text-align: center; white-space: nowrap; }
.ex-total { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.4rem; border-top: 3px double var(--gold-2); }
.ex-total > div { padding: 1rem 1.2rem 0 0; }
.ex-total > div + div { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.ex-total b { display: block; font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--ink); margin-top: .3rem; line-height: 1.1; }
.ex-total > div > span:not(.label) { color: var(--ink-2); font-size: 1rem; }

.pool-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1rem, 2.5vw, 1.8rem); }
.pool-card svg { display: block; width: 100%; height: auto; overflow: visible; }
.pool-card text { font-family: var(--f-mono); }
.per100 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.p100 { border: 1px solid var(--rule); border-radius: 12px; padding: 1.1rem 1.2rem; background: var(--paper); }
.p100 b { display: inline-block; font-family: var(--f-display); font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; margin-block: .35rem .25rem; color: var(--ink); }
.p100 > span:not(.label) { color: var(--ink-2); font-size: 1rem; }
.p100.gold { background: var(--gold-3); border-color: var(--gold-2); }
.p100.gold b { color: var(--gold); }
.p100.quiet b { color: var(--ink-3); }

.books { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1rem, 2.5vw, 1.8rem); overflow-x: auto; }
.books svg { display: block; width: 100%; min-width: 640px; height: auto; }
.books text { font-family: var(--f-body); }

@media (max-width: 860px) {
  .ex-grid, .per100 { grid-template-columns: minmax(0, 1fr); }
  .ex-total { grid-template-columns: minmax(0, 1fr); }
  .ex-total > div, .ex-total > div + div { border-left: 0; padding-left: 0; padding-bottom: .6rem; }
}
@media (max-width: 520px) {
  .ex-flow { grid-template-columns: minmax(0, 1fr); }
  .ex-arrow { padding: .1rem 0; transform: rotate(90deg); }
}

/* 2026-10-13 review fixes */
.p100 > .label { display: block; }
.p100 b { display: block; }
.door-indep { margin-top: .5rem; font-style: italic; }
.site-foot .foot-links { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .6rem; font-family: var(--f-mono); font-size: .85rem; }
.fact-row li > span span { display: inline; }
.next-cue[hidden] { display: none; }  /* the "dead NEXT" bug: display:inline-flex was overriding [hidden], leaving an empty pill with no target */
.site-foot .credit { font-family: var(--f-mono); font-size: .85rem; color: var(--ink-2); }
