/* XOG — one night-time world behind scrolling chapters. Palette from the live site's tokens (inventory §5). */
:root {
  --bg: #040506; --surface: #0f1114; --surface-alt: #111317; --card: #16181d;
  --border: #34363d; --tertiary: #5b606b; --secondary: #9fa2ad; --muted: #a7aab4; --fg: #f3f4f7;
  --steel: #3c3b6e; --steel-hi: #d4b35e; --steel-soft: #a9adc4; --red: #b22234; --flag-blue: #3c3b6e; --flag-red: #b22234;
  --amber: #e0425a; --gold: #d4b35e; --glory-blue: #3c3b6e; --glory-red: #b22234;   /* Old Glory red/blue + gold (Pete: "very american") */
  --glass: rgba(9, 11, 20, .86); --glass-strong: rgba(9, 11, 20, .93);   /* opaque enough to drop backdrop-filter (review item 3) */
  --serif: 'Libre Caslon Display', 'Caslon', Georgia, serif;   /* Caslon: the face of the Declaration's first printing */ --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 3.57vw, 54.4px);
  --flag-rule: linear-gradient(90deg, #3c3b6e 0 33.3%, #f3f4f7 33.3% 66.6%, #b22234 66.6%);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 13.6px/1.65 var(--sans); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: -999px; top: 6.8px; z-index: 99; background: var(--fg); color: var(--bg); padding: 6.8px 10.2px; }
.skip:focus { left: 10.2px; }

/* ---------- world + still fallback ---------- */
#world { position: fixed; inset: 0; width: 85.0vw; height: 100vh; height: 100lvh; z-index: 0; display: block; opacity: 0; transition: opacity 1.6s ease; }
.gl-on #world { opacity: 1; }
.still {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(60, 59, 110, .30), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgba(178, 34, 52, .12), transparent 70%),
    repeating-linear-gradient(60deg, rgba(255,255,255,.018) 0 1px, transparent 1px 28.9px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,.018) 0 1px, transparent 1px 28.9px),
    var(--bg);
  transition: opacity 1.4s ease;
}
.gl-on .still { opacity: 0; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55)); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; }
.progress i { display: block; height: 100%; width: 100%; background: var(--flag-rule); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* ---------- top bar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 23.8px; padding: 13.6px var(--gutter); transition: background .4s; }
.topbar.scrolled { background: rgba(9, 11, 20, .94); border-bottom: 1px solid rgba(52, 54, 61, .6); }
.brand img { width: 28.9px; height: 28.9px; }
.nav { margin-left: auto; display: flex; gap: 25.5px; }
.nav a { text-decoration: none; font: 500 11px/1 var(--sans); color: var(--muted); letter-spacing: .02em; padding: 5.1px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.nav a:hover, .nav a.on { color: var(--steel-hi); border-color: var(--steel); }
.pill { font: 500 10.2px/1 var(--sans); color: var(--muted); background: rgba(15, 17, 20, .6); border: 1px solid var(--border); padding: 6.8px 10.2px; display: inline-flex; align-items: center; gap: 6.8px; cursor: pointer; }
.pill .k { font-size: 8.5px; border: 1px solid var(--border); padding: 2px 5px; }
.pill:hover { color: var(--fg); border-color: var(--steel); }
@media (max-width: 760px) { .nav { gap: 13.6px; } .nav a { font-size: 10.2px; } .pill { display: none; } }
@media (max-width: 420px) { .nav { gap: 10.2px; } .nav a { font-size: 9.8px; } }

.rail { position: fixed; right: var(--gutter); bottom: 28.9px; z-index: 25; display: flex; flex-direction: column; gap: 10.2px; align-items: flex-end; }
.rail a { display: flex; align-items: center; gap: 8.5px; text-decoration: none; font: 500 8.9px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--tertiary); transition: color .4s; }
.rail a span { opacity: 0; transform: translateX(5.1px); transition: opacity .4s, transform .4s; }
.rail a i { width: 11.9px; height: 1px; background: currentColor; transition: width .4s, background .4s; }
.rail a.on { color: var(--fg); } .rail a.on span, .rail:hover a span { opacity: 1; transform: none; }
.rail a.on i { width: 28.9px; background: var(--flag-rule); }
@media (max-width: 760px) { .rail { display: none; } }

/* ---------- chapters ---------- */
main { position: relative; z-index: 5; }
.ch { position: relative; min-height: 165vh; }
.ch.tall { min-height: 235vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 71.4px var(--gutter) 51px; }
.sticky.center { justify-content: center; text-align: center; }
.sticky.right { justify-content: flex-end; }
.flow { padding: 102px var(--gutter) 34px; }

.panel { position: relative; max-width: 476px; padding: 28.9px 30.6px; background: var(--glass); border: 1px solid rgba(52, 54, 61, .7); border-top: 2px solid transparent; border-image: none; box-shadow: inset 0 1px 0 0 rgba(178, 34, 52, .55); }
.panel::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--flag-rule); opacity: .7; }
.panel.wide { max-width: 731px; }
.panel.narrow { max-width: 544px; }
.center-text { text-align: center; }

.eyebrow { margin: 0 0 11.9px; font: 600 9.3px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--steel-hi); }
h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--fg); margin: 0; }
h2 { font-size: clamp(25.5px, 2.89vw, 39.1px); line-height: 1.08; margin-bottom: 18.7px; letter-spacing: -.005em; }
h2.xl { font-size: clamp(32.3px, 4.25vw, 61.2px); line-height: 1.02; }
h3 { font-size: 17.8px; line-height: 1.2; margin-bottom: 6.8px; }
.panel p { color: var(--muted); margin: 0 0 11.9px; }
.lede { font-size: 15.3px; line-height: 1.6; }
.panel p:last-child { margin-bottom: 0; }

.btn { display: inline-flex; align-items: center; gap: 8.5px; font: 600 11px/1 var(--sans); letter-spacing: .04em; text-decoration: none; padding: 12.8px 20.4px; border: 0; cursor: pointer; color: #fff; }
.btn.red { background: var(--red); box-shadow: 0 0 0 0 rgba(192, 12, 30, .25); transition: box-shadow .35s, transform .35s, background .35s; }
.btn.red:hover { box-shadow: 0 0 28.9px 5.1px rgba(192, 12, 30, .25); background: #d0101f; transform: translateY(-1px); }
.btn svg { width: 13.6px; height: 13.6px; fill: none; stroke: currentColor; stroke-width: 2; }

/* reveal */
.rv { opacity: 0; transform: translateY(22.1px); transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); }
.ch.in .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- hero ---------- */
.hero { min-height: 200vh; }
.hero .sticky { flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero-logo { width: clamp(127.5px, 16.15vw, 255px); height: auto; filter: drop-shadow(0 15.3px 42.5px rgba(60, 59, 110, .35)); animation: logoIn 1.8s cubic-bezier(.2,.7,.2,1) both .2s, breathe 5s ease-in-out 2.2s infinite; }
.gl-on .hero-logo { opacity: 0; animation: none; }   /* the world draws the mark from its own pixels, then lays this same image over it */
.gl-on.logo-live .hero-logo { opacity: 1; transition: opacity 1.2s ease; }
@keyframes logoIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { opacity: .85; } }
.hero-eyebrow { margin-top: 25.5px; letter-spacing: .42em; color: var(--fg); opacity: .9; }
.hero-sub { max-width: 476px; color: var(--muted); font-size: 15.3px; margin: 0 0 23.8px; }
.hero-eyebrow, .hero-sub, .hero-cta { opacity: 0; animation: fade 1.4s ease forwards; }
.hero-eyebrow { animation-delay: 2.3s; } .hero-sub { animation-delay: 2.7s; } .hero-cta { animation-delay: 3.1s; }
@keyframes fade { to { opacity: 1; } }
.scroll-cue { position: absolute; bottom: 22.1px; left: 50%; width: 1px; height: 39.1px; background: rgba(255,255,255,.12); overflow: hidden; }
.scroll-cue i { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--fg); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-logo, .hero-eyebrow, .hero-sub, .hero-cta { animation: none; opacity: 1; } .scroll-cue { display: none; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(17px, 5.1vw, 93.5px); }
.stats b { display: block; font: 400 clamp(54.4px, 7.65vw, 112.2px)/1 var(--serif); color: var(--fg); text-shadow: 0 0 34px rgba(212, 179, 94, .35); }
.stats span { display: block; margin-top: 13.6px; font: 600 9.3px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 28.9px; } .stats b { font-size: 57.8px; } }

/* ---------- cards ---------- */
.ic { width: 18.7px; height: 18.7px; fill: none; stroke: var(--steel-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cards { display: grid; gap: 11.9px; }
.card { display: grid; grid-template-columns: 25.5px 1fr; column-gap: 11.9px; padding: 15.3px 0 13.6px; border-top: 1px solid rgba(52, 54, 61, .8); }
.card .ic { grid-row: span 2; margin-top: 2px; }
.card p { margin: 0; font-size: 12.8px; }

.quote { margin: 0 auto; max-width: 833px; }
.quote blockquote { margin: 22.1px 0; font: italic 400 clamp(22.1px, 2.8vw, 39.1px)/1.3 var(--serif); color: var(--fg); }
.quote .orn { display: block; width: 187px; height: 1px; margin: 0 auto; background: var(--flag-rule); position: relative; }
.quote .orn::after { content: ''; position: absolute; left: 50%; top: -4px; width: 6.8px; height: 6.8px; border: 1px solid var(--steel-hi); transform: translateX(-50%) rotate(45deg); background: var(--bg); }
[data-words] .w { opacity: .14; transition: opacity .5s ease, text-shadow .5s; }
[data-words] .w.lit { opacity: 1; text-shadow: 0 0 22.1px rgba(212, 179, 94, .35); }

.regions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8.5px; }
.regions li { position: relative; padding: 11.9px 0 11.9px 18.7px; border-left: 1px solid var(--border); transition: border-color .6s, background .6s; }
.regions li::before { content: ''; position: absolute; left: -4px; top: 17.8px; width: 6px; height: 6px; border-radius: 50%; background: var(--tertiary); transition: background .6s, box-shadow .6s; }
.regions li.on { border-color: var(--steel-hi); background: linear-gradient(90deg, rgba(60, 59, 110, .14), transparent); }
.regions li.on::before { background: var(--steel-hi); box-shadow: 0 0 11.9px 3px rgba(212, 179, 94, .6); }
.regions p { margin: 0; font-size: 12.8px; }

/* about photo panel */
.panel.photo { overflow: hidden; max-width: 544px; padding: 40.8px 34px; }
.panel.photo { isolation: isolate; }
.photo-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .72; filter: saturate(.9); }
.photo-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,5,6,.05) 0%, rgba(4,5,6,.55) 45%, rgba(4,5,6,.92) 100%); }
.panel.photo { padding-top: 144.5px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 22.1px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 6.8px; bottom: 6.8px; width: 1px; background: linear-gradient(var(--steel), transparent); }
.timeline li { position: relative; padding: 0 0 18.7px; opacity: .25; transition: opacity .7s; }
.timeline li.lit { opacity: 1; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 6px; width: 7.6px; height: 7.6px; border: 1px solid var(--steel-hi); transform: rotate(45deg); background: var(--bg); }
.timeline li.lit::before { background: var(--steel); box-shadow: 0 0 10.2px rgba(212, 179, 94, .8); }
.timeline p { margin: 0; }

.legacy { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legacy li { font: 400 clamp(18.7px, 2.04vw, 27.2px)/1.3 var(--serif); padding: 10.2px 0 10.2px 25.5px; position: relative; border-bottom: 1px solid rgba(52, 54, 61, .6); }
.legacy li::before { content: ''; position: absolute; left: 4px; top: 50%; width: 7.6px; height: 7.6px; margin-top: -5px; border: 1px solid var(--steel-hi); transform: rotate(45deg); }

.grid6 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10.2px; }
.fcard { position: relative; padding: 15.3px 17px 13.6px; background: rgba(22, 24, 29, .55); border-left: 2px solid var(--steel); transition: background .5s, border-color .5s, transform .5s; }
.fcard .ic { position: absolute; right: 13.6px; top: 13.6px; }
.fcard h3 { font-size: 16.1px; padding-right: 25.5px; }
.fcard p { margin: 0; font-size: 11.9px; line-height: 1.55; }
.fcard.on { background: rgba(60, 59, 110, .16); border-color: var(--steel-hi); transform: translateX(4px); }
@media (max-width: 760px) { .grid6 { grid-template-columns: 1fr; gap: 6.8px; } .fcard { padding: 10.2px 11.9px; } .fcard p { font-size: 11px; } }

.soon { display: grid; gap: 10.2px; margin-bottom: 22.1px; }
.scard { position: relative; padding: 15.3px 17px; border-left: 2px dashed var(--border); background: rgba(22, 24, 29, .4); opacity: .78; }
.scard .ic { position: absolute; right: 13.6px; top: 13.6px; stroke: var(--secondary); }
.badge { display: inline-block; margin-bottom: 6.8px; font: 600 8.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 5.1px 8.5px; border: 1px solid var(--border); border-radius: 84.1px; color: var(--secondary); }
.scard p { margin: 0; font-size: 11.9px; }
.cta-band { padding-top: 18.7px; border-top: 1px solid rgba(52, 54, 61, .7); }

/* governance frame */
.panel.frame { border-color: rgba(60, 59, 110, .45); }
.corner { position: absolute; width: 13.6px; height: 13.6px; border: 0 solid var(--steel-hi); }
.corner.tl { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.corner.tr { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; }
.corner.bl { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; }
.corner.br { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.gov { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28.9px; }
.gov > div { padding: 13.6px 0; border-top: 1px solid transparent; border-image: linear-gradient(90deg, rgba(191,10,48,.4), rgba(48,91,166,.4)) 1; opacity: .3; transition: opacity .8s; }
.gov > div.lit { opacity: 1; }
.gov h3 { font-size: 16.1px; } .gov p { font-size: 11.9px; line-height: 1.55; margin: 0; }
.gov .eyebrow { margin-bottom: 6.8px; }
.badges { list-style: none; margin: 15.3px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6.8px; }
.badges li { font: 600 8.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--steel-hi); border: 1px solid rgba(60, 59, 110, .6); padding: 6.8px 10.2px; border-radius: 84.1px; }
.badges li::before { content: '◆ '; }
@media (max-width: 760px) { .gov { grid-template-columns: 1fr; } .gov > div { padding: 8.5px 0; } .gov p { font-size: 11px; } }

/* contact */
.ch.contact { min-height: 100vh; }
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10.2px; margin: 22.1px 0 25.5px; }
.route { position: relative; display: block; padding: 17px 18.7px; text-decoration: none; background: rgba(22, 24, 29, .55); border-top: 2px solid var(--steel); transition: background .4s, transform .4s; }
.route:hover { background: rgba(60, 59, 110, .14); transform: translateY(-2px); }
.route .ic { margin-bottom: 10.2px; }
.route p { margin: 0 0 10.2px; font-size: 11.9px; }
.route .go { font: 600 10.2px/1 var(--sans); letter-spacing: .08em; color: var(--steel-hi); }
.form { display: grid; gap: 15.3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15.3px 20.4px; }
.form label { display: grid; gap: 5.1px; font: 600 8.9px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--tertiary); }
.form em { color: var(--steel-hi); font-style: normal; }
.form input, .form select, .form textarea { font: 400 12.8px/1.5 var(--sans); color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--border); padding: 6.8px 0; letter-spacing: 0; text-transform: none; border-radius: 0; }
.form select { appearance: none; background: transparent; }
.form select option { background: var(--surface); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--steel-hi); }
.form small { min-height: 11.9px; font: 500 9.3px/1.3 var(--sans); letter-spacing: .02em; text-transform: none; color: #f05a68; }
.send { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; }
.note { flex: 1 1 221px; margin: 0 !important; font-size: 10.6px !important; color: var(--tertiary) !important; }
.note a, .urgent a { color: var(--steel-hi); }
.status { margin: 0 !important; color: var(--steel-soft) !important; font-size: 11.9px; }
.urgent { margin-top: 22.1px !important; padding-top: 15.3px; border-top: 1px solid rgba(52, 54, 61, .7); }
@media (max-width: 640px) { .routes, .row2 { grid-template-columns: 1fr; } .panel { padding: 20.4px 17px; } }

.foot { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20.4px; margin: 34px var(--gutter) 0; padding: 35.7px 0 59.5px; border-top: 1px solid transparent; border-image: var(--flag-rule) 1; }
.foot .fcol { display: grid; align-content: start; gap: 6.8px; }
.foot p { margin: 0; color: var(--muted); font-size: 11.9px; }
.foot a { text-decoration: none; color: var(--muted); font-size: 11.9px; }
.foot a:hover { color: var(--fg); }
.foot .eyebrow { margin: 0 0 5.1px; }
.foot .copy { grid-column: 1 / -1; font-size: 10.2px; color: var(--tertiary); padding-top: 17px; }
@media (max-width: 640px) { .foot { grid-template-columns: 1fr; } }

/* market tape: the site's own commodity words, no prices */
.tape { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: 22.1px; overflow: hidden; pointer-events: none; border-top: 1px solid rgba(52, 54, 61, .5); background: linear-gradient(180deg, rgba(4,5,6,.2), rgba(4,5,6,.8)); opacity: 0; transition: opacity 1s; }
.tape.on { opacity: 1; }
.tape-in { display: inline-flex; white-space: nowrap; font: 500 8.9px/22.1px var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--tertiary); animation: tape 70s linear infinite; }
.tape-in span { padding: 0 18.7px; } .tape-in span::after { content: '◆'; margin-left: 37.4px; color: var(--steel); font-size: 6px; vertical-align: 2px; }
.tape-in span.hot { color: var(--amber); }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-in { animation: none; } }

.hud { position: fixed; left: var(--gutter); bottom: 34px; z-index: 50; font: 500 9.3px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* presenter */
.presenting .topbar, .presenting .tape, .presenting .progress { opacity: 0; pointer-events: none; }
.presenting { cursor: none; }

/* phones: panels sit low so the world shows above */
@media (max-width: 760px) {
  /* phones: long panels must scroll, so chapters flow instead of pinning */
  .ch, .ch.tall { min-height: 0; }
  .ch:not(.hero) .sticky { position: relative; height: auto; min-height: 100svh; }
  .sticky { align-items: flex-end; padding: 59.5px 13.6px 37.4px; }
  .sticky.center { align-items: center; }
  .hero .sticky { align-items: center; justify-content: center; padding-top: 59.5px; }
  .panel { max-width: none; width: 100%; }
  .lede { font-size: 13.6px; }
  .quote blockquote { font-size: 20.4px; }
}

@media (max-width: 760px) { .tape { display: none; } }

/* ---------- rebuild 2: chapter stages, explainers, interactive moments ---------- */
.ch.xtall { min-height: 330vh; }
.eyebrow.explainer { color: var(--amber); }
.eyebrow.explainer span { color: var(--tertiary); letter-spacing: .18em; }
.fine { font-size: 10.6px !important; color: var(--tertiary) !important; margin-top: 13.6px !important; }

/* value chain steps (scrub with scroll, or click a step) */
.chain { margin-top: 18.7px; padding-top: 15.3px; border-top: 1px solid rgba(52, 54, 61, .8); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5.1px; counter-reset: st; }
.steps button { all: unset; cursor: pointer; display: block; height: 100%; padding: 8.5px 6.8px 6.8px; border-top: 2px solid var(--border); transition: border-color .4s, background .4s; }
.steps b { display: block; font: 600 9.3px/1.3 var(--sans); letter-spacing: .06em; color: var(--secondary); counter-increment: st; }
.steps b::before { content: counter(st, decimal-leading-zero) ' '; color: var(--tertiary); }
.steps span { display: block; margin-top: 5.1px; font-size: 9.8px; line-height: 1.4; color: var(--tertiary); opacity: 0; max-height: 0; overflow: hidden; transition: opacity .4s, max-height .4s; }
.steps li.on button { border-color: var(--amber); background: linear-gradient(180deg, rgba(232, 162, 74, .12), transparent); }
.steps li.on b { color: var(--fg); }
.steps li.on span { opacity: 1; max-height: 102px; }
.steps button:focus-visible { outline: 1px solid var(--steel-hi); outline-offset: 2px; }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps span { opacity: 1; max-height: none; } }

.terms, .glossary { margin: 0; display: grid; gap: 0; }
.terms > div, .glossary > div { display: grid; grid-template-columns: 93.5px 1fr; gap: 13.6px; padding: 10.2px 0; border-top: 1px solid rgba(52, 54, 61, .7); }
.terms dt, .glossary dt { font: 400 17px/1.2 var(--serif); color: var(--fg); }
.terms dd, .glossary dd { margin: 0; color: var(--muted); font-size: 12.3px; line-height: 1.55; }
.glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28.9px; }
.glossary > div { grid-template-columns: 1fr; gap: 4px; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } .terms > div { grid-template-columns: 1fr; gap: 4px; } }
.panel h2 + .eyebrow.explainer { margin-top: 5.1px; }
#trading h2 { font-size: clamp(20.4px, 2.04vw, 27.2px); }

.facts { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.facts li { position: relative; padding: 10.2px 0 10.2px 37.4px; border-top: 1px solid rgba(52, 54, 61, .7); color: var(--muted); font-size: 12.8px; counter-increment: f; }
.facts li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: 11px; font: 400 18.7px/1 var(--serif); color: var(--amber); }
.facts b { color: var(--fg); font-weight: 600; }

/* fraction picker */
.picker { display: grid; gap: 5.1px; margin-top: 6.8px; }
.picker button { all: unset; cursor: pointer; display: grid; grid-template-columns: 11.9px 1fr; column-gap: 10.2px; padding: 8.5px 10.2px; border-left: 2px solid var(--border); background: rgba(22, 24, 29, .4); transition: background .35s, border-color .35s; }
.picker i { grid-row: span 2; width: 8.5px; height: 8.5px; margin-top: 5px; border-radius: 50%; }
.picker button:nth-child(1) i { background: #cfe2ff; } .picker button:nth-child(2) i { background: #9fd0ff; } .picker button:nth-child(3) i { background: #f6e27a; }
.picker button:nth-child(4) i { background: #f0a64a; } .picker button:nth-child(5) i { background: #a8471c; }
.picker b { font: 600 11.9px/1.4 var(--sans); color: var(--secondary); }
.picker span { font-size: 11px; color: var(--tertiary); line-height: 1.45; }
.picker button.on { background: rgba(60, 59, 110, .16); border-color: var(--steel-hi); }
.picker button.on b { color: var(--fg); } .picker button.on span { color: var(--muted); }
.picker button:focus-visible { outline: 1px solid var(--steel-hi); outline-offset: 2px; }

/* chart hotspots: positioned by main.js from the 3D world */
.hots { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.hot { all: unset; position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; opacity: 0; transition: opacity .6s; will-change: transform; }
.hots.on .hot { opacity: 1; }
.hot i { display: block; width: 13.6px; height: 13.6px; margin: -8px 0 0 -8px; border: 1px solid var(--steel-hi); border-radius: 50%; background: rgba(60, 59, 110, .35); box-shadow: 0 0 0 0 rgba(212, 179, 94, .6); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 11.9px rgba(212, 179, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 179, 94, 0); } }
.hot span { position: absolute; left: 13.6px; top: -12px; width: 221px; padding: 10.2px 11.9px; font-size: 11px; line-height: 1.5; color: var(--muted); background: var(--glass-strong); border: 1px solid rgba(52, 54, 61, .8); opacity: 0; transform: translateY(5.1px); transition: opacity .3s, transform .3s; pointer-events: none; }
.hot b { display: block; font: 400 15.3px/1.2 var(--serif); color: var(--fg); margin-bottom: 4px; }
.hot:hover span, .hot:focus-visible span, .hot.open span { opacity: 1; transform: none; }
.hot:hover i, .hot.open i { background: var(--steel-hi); }
@media (prefers-reduced-motion: reduce) { .hot i { animation: none; } }
@media (max-width: 760px) { .hot span { width: 170px; font-size: 10.2px; } }

/* ---------- platform (company facts from the public deck) ---------- */
.kv { margin: 5.1px 0 15.3px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 23.8px; }
.kv > div { padding: 8.5px 0; border-top: 1px solid rgba(52, 54, 61, .7); }
.kv dt { font: 600 8.9px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--tertiary); }
.kv dd { margin: 4px 0 0; font: 400 17px/1.25 var(--serif); color: var(--fg); }
.panel b { color: var(--fg); font-weight: 600; }
.progs { display: grid; gap: 4px; max-height: 56vh; overflow: auto; padding-right: 5.1px; }
.progs .rg { margin: 8.5px 0 2px !important; font: 600 8.9px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--amber) !important; }
.progs button { all: unset; cursor: pointer; display: block; padding: 6.8px 10.2px; border-left: 2px solid var(--border); transition: background .3s, border-color .3s; }
.progs b { display: block; font: 600 11.9px/1.4 var(--sans); color: var(--secondary); }
.progs span { display: block; font-size: 11px; line-height: 1.45; color: var(--tertiary); }
.progs button:hover, .progs button:focus-visible, .progs button.on { background: rgba(60, 59, 110, .14); border-color: var(--steel-hi); outline: none; }
.progs button:hover b, .progs button.on b { color: var(--fg); } .progs button:hover span, .progs button.on span { color: var(--muted); }
.vchart { margin: 5.1px 0 0; }
.vchart svg { width: 100%; height: auto; display: block; }
.vchart .grid line { stroke: rgba(142, 155, 175, .18); }
.vchart text { font: 500 9.3px var(--sans); fill: var(--tertiary); text-anchor: middle; }
.vchart .ax text { text-anchor: end; }
.vchart .vl text { font: 400 12.8px var(--serif); fill: var(--fg); }
.vchart .xl text { font-weight: 600; fill: var(--secondary); letter-spacing: .06em; }
.vchart .xs text { font-size: 8.5px; }
.vchart .b { fill: #e8a24a; }
.vchart .t { stroke: #a9c6ff; stroke-width: 1.2; stroke-dasharray: 4 3; }
.model { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20.4px; margin-bottom: 15.3px; }
.model > div { padding-top: 10.2px; border-top: 1px solid rgba(52, 54, 61, .8); }
.model h3 { font-size: 15.3px; } .model p { font-size: 11.5px; line-height: 1.5; margin: 0; }
.bridge { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11.9px; margin: 5.1px 0 13.6px; font: 600 8.9px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); }
.bridge .bar { position: relative; height: 2px; background: linear-gradient(90deg, var(--amber), #f6e27a); }
.bridge .bar i { position: absolute; top: -4px; left: 0; width: 8.5px; height: 8.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10.2px #fff; animation: run 3.2s linear infinite; }
@keyframes run { to { left: calc(100% - 8.5px); } }
.bridge em { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font-style: normal; color: var(--fg); letter-spacing: .08em; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20.4px; }
.kpis > div { padding: 8.5px 0; border-top: 1px solid rgba(52, 54, 61, .7); }
.kpis b { display: block; font: 400 22.1px/1.15 var(--serif); }
.kpis span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.45; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .bridge .bar i { animation: none; left: 50%; } }
@media (max-width: 760px) { .kv, .model, .kpis { grid-template-columns: 1fr; } .progs { max-height: none; } .kv dd { font-size: 15.3px; } }
@media (max-width: 760px) {
  .bridge { grid-template-columns: 1fr; gap: 6.8px; }
  .bridge .bar { margin: 18.7px 0 4px; }
}

/* ---------- patriotic emphasis (Pete 12 Oct: "very american...very patriotic") ---------- */
em.us { font-style: normal; color: #fff; background-image: linear-gradient(90deg, rgba(178, 34, 52, .7), rgba(178, 34, 52, .7)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 1px; }
h2 em.us, .xl em.us { color: #f3f4f7; background-size: 100% 1px; }
.hero-us { margin: 11.9px 0 18.7px; font: 500 9.3px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--secondary); }
.hero-us .us-stars { color: var(--gold); letter-spacing: .5em; font-size: 8.5px; }
@media (max-width: 760px) { .hero-us { font-size: 8.5px; letter-spacing: .14em; } .hero-us .us-stars { display: none; } }

/* ---------- flowing chapters (Codex crawl + Pete "I HAVE TO SCROLL A HUNDRED TIMES"): reading chapters are UNPINNED and
   take their own content height, so every wheel notch moves the copy. Only the capabilities flight keeps a pinned scrub. */
.ch { min-height: 0; }
.ch.tall, .ch.xtall { min-height: 150vh; }           /* capabilities: the one true scrub */
.ch.contact { min-height: 0; }
.ch .sticky.duo { position: relative; top: auto; display: block; height: auto; padding-top: 0; padding-bottom: 0; }
.ch .sticky.duo > .phase { display: flex; align-items: center; min-width: 0; min-height: 54vh; padding: 5vh 0; }
.ch .sticky.duo > .phase.heroish { min-height: 100vh; min-height: 100svh; padding: 71.4px 0 51px; }
.phase.center { justify-content: center; text-align: center; }
.phase.right { justify-content: flex-end; }
.phase.heroish { flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.anchor { position: absolute; width: 0; height: 0; }
.progs { max-height: none !important; overflow: visible !important; }   /* no nested scroller swallowing wheel notches */
@media (max-width: 760px) {
  .ch, .ch.tall, .ch.xtall, .ch.hero { min-height: 0; }
  .ch .sticky.duo > .phase { min-height: 0; align-items: flex-end; padding: 47.6px 0 23.8px; }
  .ch .sticky.duo > .phase.heroish { min-height: 100svh; }
  .ch .sticky.duo > .phase.center, .ch .sticky.duo > .phase.heroish { align-items: center; }
}

/* rev 7 (XOG team copy request): products strip, office line */
.prods { list-style: none; display: flex; flex-wrap: wrap; gap: 6.8px; margin: 8.5px 0 0; padding: 0; }
.prods li { font: 500 10.2px/1 var(--sans, inherit); letter-spacing: .08em; text-transform: uppercase; padding: 6.8px 10.2px; border: 1px solid rgba(255,255,255,.16); border-radius: 849.1px; color: rgba(243,238,230,.86); }
.prods-h { margin-top: 15.3px; }
.offices, .foot-loc { opacity: .78; font-size: .92em; margin-top: 6.8px; }

/* Contact fits one screen (Pete 12 Oct: "shrink this quite a bit so it fits on page break size") */
#contact .panel { padding-top: 28px; padding-bottom: 24px; }
#contact h2.xl { font-size: clamp(28px, 2.6vw, 40px); margin-bottom: 8px; }
#contact .lede { font-size: 15px; margin-bottom: 4px; }
#contact .offices { font-size: 13px; margin-top: 2px; }
#contact .routes { gap: 12px; margin: 16px 0 14px; }
#contact .route { padding: 12px 16px; }
#contact .route .ic { width: 18px; height: 18px; margin-bottom: 4px; }
#contact .route h3 { font-size: 16px; margin-bottom: 2px; }
#contact .route p { font-size: 13px; margin-bottom: 4px; }
#contact .form label { font-size: 10px; }
#contact .form input, #contact .form select, #contact .form textarea { font-size: 14px; padding-top: 4px; padding-bottom: 6px; }
#contact .form .row2, #contact .form > label { margin-bottom: 10px; }
#contact .form textarea { height: 64px; min-height: 64px; }
#contact .send { margin-top: 6px; }
#contact .urgent { font-size: 12.5px; margin-top: 8px; }
#contact .form { gap: 8px; }
#contact .row2 { gap: 8px 20px; }
#contact .form .row2, #contact .form > label { margin-bottom: 0; }
#contact .form label { display: block; }
#contact .form em { margin-left: 3px; }
#contact .form input, #contact .form select, #contact .form textarea { display: block; width: 100%; margin-top: 2px; }
#contact .form small { display: block; min-height: 0; }
#contact .form small:empty { display: none; }
#contact .form textarea { height: 56px; min-height: 56px; }
#contact .urgent { padding-top: 8px; }
/* Contact, second pass (Pete: "make smaller") */
#contact .panel { max-width: 860px; }
#contact h2.xl { font-size: clamp(24px, 2.1vw, 32px); }
#contact .lede { font-size: 14px; }
#contact .offices { font-size: 12px; }
#contact .routes { margin: 12px 0 10px; }
#contact .route { padding: 10px 14px; }
#contact .route h3 { font-size: 14.5px; }
#contact .route p { font-size: 12px; line-height: 1.45; }
#contact .form input, #contact .form select, #contact .form textarea { font-size: 13px; }
#contact .form textarea { height: 48px; min-height: 48px; }
/* Trading depth, compliance policies, four stats */
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3.4vw, 64px); }
.stats.four b { font-size: clamp(44px, 5.6vw, 88px); }
@media (max-width: 640px) { .stats.four { grid-template-columns: 1fr 1fr; } .stats.four b { font-size: 46px; } }
.core-lede { font-size: 14.5px; margin: -6px 0 16px; max-width: 620px; }
#trading .panel .facts { margin-top: 14px; }
#trading .panel > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.6; }
.prods-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 620px; }
