/* Cervo: dark editorial. Tonal panels, 1px hairlines, light serif display, one cool accent, one warm stone CTA. */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --deep: #161818;
  --panel: #1f2222;
  --bg: #262929;
  --raised: #3d4242;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #a3a6a5;
  --soft: #c4c8c6;
  --head: #f4f5f4;
  --mute: #6d7270;
  --signal: #8fa7c9;
  --signal-dim: rgba(143, 167, 201, 0.22);
  --stone: #d0c9bf;
  --stone-hover: #918b85;
  --bull: #6fb08f;
  --bear: #c9786f;
  --warn: #c9ad6f;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 2.6vw, 32px);
  --max: 1376px;
  --ease-out: cubic-bezier(0.12, 0.23, 0.5, 1);
  --ease-io: cubic-bezier(0.87, 0, 0.13, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 810px) { body { font-size: 19px; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--head); font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; }
::selection { background: var(--signal-dim); color: var(--head); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--stone); color: var(--deep); border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }

/* ---------- type scale ---------- */
.display { font-size: clamp(54px, 7.4vw, 104px); line-height: 0.98; letter-spacing: -0.04em; }
.h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.04em; }
.h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.h3 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.04; letter-spacing: -0.02em; }
.h4 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -0.01em; }
.lede { color: var(--text); max-width: 34ch; }
.lede strong, .copy strong { color: var(--soft); font-weight: 500; }
.copy { display: grid; gap: 1em; max-width: 44ch; }
.small { font-size: 14px; line-height: 1.5; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 62px;
  background: rgba(38, 41, 41, 0.38);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.04em; color: var(--head); display: inline-flex; align-items: center; gap: 10px; }
.wordmark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { font-size: 14px; color: var(--head); padding: 10px 16px; border-radius: 12px; transition: background-color 0.25s; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.07); }
.nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.06); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 12px; background: var(--raised); color: var(--head); font-size: 14px; transition: background-color 0.25s; }
.pill:hover { background: #4a5050; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); }
.pill .dot.on { background: var(--bull); box-shadow: 0 0 0 4px rgba(111, 176, 143, 0.18); animation: pulse 2.4s ease-in-out infinite; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--raised); color: var(--head); cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: currentColor; transition: transform 0.25s; }
.sheet { display: none; }
@media (max-width: 809px) {
  .nav-links, .nav .pill { display: none; }
  .menu-btn { display: block; }
  .sheet[data-open] { display: grid; position: fixed; inset: 62px 0 0 0; z-index: 39; align-content: start; gap: 4px; padding: 24px var(--gutter); background: var(--panel); }
  .sheet a { font-family: var(--serif); font-weight: 300; font-size: 44px; letter-spacing: -0.03em; color: var(--head); padding: 6px 0; border-bottom: 1px solid var(--line); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
}

/* ---------- buttons ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 50px; padding: 0 20px; border-radius: 10px;
  background: var(--stone); color: var(--deep); font-size: 16px; font-weight: 500;
  transition: background-color 0.3s;
}
.cta:hover { background: var(--stone-hover); }
.cta .arrow { transition: transform 0.3s var(--ease-out); }
.cta:hover .arrow { transform: translateX(4px); }
.cta.compact { width: auto; display: inline-flex; min-width: 260px; justify-self: start; }
.sticky { position: sticky; top: 110px; }
@media (max-width: 809px) { .sticky { position: static; } }
.link { color: var(--soft); border-bottom: 1px solid var(--line-strong); transition: color 0.2s, border-color 0.2s; }
.link:hover { color: var(--head); border-color: var(--signal); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--panel); min-height: min(100svh, 900px); padding: 140px 0 48px; display: flex; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-rows: auto 1fr auto; gap: 48px; }
.hero h1 { max-width: 11ch; }
.hero-foot { display: grid; gap: 22px; justify-self: end; width: min(100%, 440px); }
.hero.short { min-height: 0; padding: 150px 0 80px; }
.hero.short .wrap { grid-template-rows: auto; gap: 26px; }
.hero.short h1 { max-width: 14ch; }
.hero.short .lede { max-width: 46ch; }
.flow { position: absolute; inset: -10% -5% -10% -5%; z-index: 1; pointer-events: none; opacity: 0; transform: scale(1.1); }
.flow path { fill: none; stroke: rgba(255, 255, 255, 0.11); stroke-width: 1; vector-effect: non-scaling-stroke; }
.flow .mark { stroke: rgba(255, 255, 255, 0.28); }
.flow .lit { stroke: var(--signal); stroke-opacity: 0.55; stroke-dasharray: 3 220; stroke-dashoffset: 0; }
.ready .flow { animation: flowIn 1.3s var(--ease-out) 0.4s forwards; }
.ready .flow .lit { animation: travel 9s linear infinite; }
.glow { position: absolute; z-index: 0; inset: 0; background: radial-gradient(60% 50% at 78% 70%, rgba(143, 167, 201, 0.10), transparent 70%); opacity: 0; transform: scale(1.2); }
.ready .glow { animation: glowIn 1s var(--ease-io) 0.2s forwards; }

/* ---------- plus field (canvas) ---------- */
.field { height: 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.field.thin { height: 40px; }
.field canvas { width: 100%; height: 100%; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.panel { background: var(--panel); }
.section.deep { background: var(--deep); }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.split > :last-child { justify-self: end; width: min(100%, 460px); }
@media (max-width: 809px) { .split { grid-template-columns: 1fr; } .split > :last-child { justify-self: start; } }
.wide-head { max-width: 22ch; margin-bottom: 56px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
@media (max-width: 809px) { .cols-2 { grid-template-columns: 1fr; } }
.right-copy { display: grid; grid-template-columns: 1fr minmax(0, 520px); }
.right-copy > div { grid-column: 2; display: grid; gap: 1em; }
@media (max-width: 809px) { .right-copy { grid-template-columns: 1fr; } .right-copy > div { grid-column: 1; } }

.feature { display: grid; gap: 8px; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.feature h3 { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--head); letter-spacing: 0; }
.feature p { font-size: 15px; }
.feature svg { width: 22px; height: 22px; color: var(--signal); margin-bottom: 6px; }
.features { display: grid; gap: 28px; }

/* ---------- engine map ---------- */
.map { position: relative; margin-top: 72px; aspect-ratio: 16 / 8; min-height: 380px; border-radius: 16px; background: var(--deep); overflow: hidden; }
.map svg { width: 100%; height: 100%; }
.map .grid-dot { fill: rgba(255, 255, 255, 0.08); }
.map .spoke { stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; fill: none; stroke-dasharray: 2 5; }
.map .ring { fill: var(--panel); stroke: var(--line-strong); }
.map .hub { fill: var(--panel); stroke: var(--signal); stroke-width: 1.2; }
.map .hub-label { font-family: var(--serif); font-size: 30px; fill: var(--head); letter-spacing: -1px; }
.map .node rect { fill: var(--panel); stroke: var(--line-strong); rx: 8; }
.map .node text { font-family: var(--mono); font-size: 13px; fill: var(--soft); }
.map .node .state { font-size: 10px; fill: var(--mute); letter-spacing: 0.06em; }
.map .node.built rect { stroke: rgba(143, 167, 201, 0.55); }
.map .node.building rect { stroke: var(--warn); stroke-dasharray: 3 3; }
.map .node.live rect { stroke: var(--bull); }
.map .packet { fill: var(--head); }
.map .bracket { stroke: rgba(255, 255, 255, 0.35); fill: none; stroke-width: 1.2; }
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--mute); }
.map-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; border: 1px solid; vertical-align: -1px; }
.map-legend .b::before { border-color: rgba(143, 167, 201, 0.8); }
.map-legend .p::before { border-color: var(--warn); border-style: dashed; }
.map-legend .n::before { border-color: var(--line-strong); }
@media (max-width: 809px) { .map { aspect-ratio: auto; height: 520px; } }

/* ---------- cards / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.card { position: relative; background: var(--panel); border-radius: 16px; padding: clamp(20px, 2.4vw, 32px); display: grid; align-content: start; gap: 14px; min-width: 0; border: 1px solid transparent; }
.section.panel .card { background: var(--bg); }
.card .k { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: var(--mute); }
.card h3 { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.08; letter-spacing: -0.01em; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.row-2 { grid-row: span 2; }
@media (max-width: 1023px) { .span-4, .span-5, .span-7, .span-8 { grid-column: span 6; } }
@media (max-width: 809px) { .bento > * { grid-column: 1 / -1 !important; grid-row: auto !important; } }

.tag { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; max-width: 100%; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); line-height: 1.3; }
.tag.ph { border-style: dashed; color: var(--mute); }
.tag.live { border-color: rgba(111, 176, 143, 0.5); color: var(--bull); }
.tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bull); animation: pulse 2.4s ease-in-out infinite; }
.tag.stale { border-color: rgba(201, 173, 111, 0.5); color: var(--warn); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.step { background: rgba(110, 125, 140, 0.16); border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-height: 380px; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; }
.step .top { display: flex; justify-content: space-between; color: var(--mute); }
.step .top svg { width: 26px; height: 26px; color: var(--signal); }
.step h3 { align-self: end; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.02; }
.step p { color: var(--soft); font-size: 16px; }
@media (max-width: 1023px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* ---------- live view widgets ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; color: var(--soft); text-align: right; font-family: var(--mono); font-size: 13px; }
.big { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.04em; color: var(--head); }
.big small { font-size: 0.32em; letter-spacing: 0; color: var(--mute); font-family: var(--sans); font-weight: 500; margin-left: 8px; }
.outcome { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }
.outcome.SIGNAL { color: var(--bull); } .outcome.WATCHING { color: var(--warn); } .outcome.NO_TRADE { color: var(--mute); }

.rail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.rail li { list-style: none; height: 46px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); position: relative; transition: background-color 0.4s, border-color 0.4s; }
.rail li.pass { background: rgba(143, 167, 201, 0.32); border-color: rgba(143, 167, 201, 0.6); }
.rail li.fail { background: rgba(201, 120, 111, 0.22); border-color: rgba(201, 120, 111, 0.6); }
.rail li.ph { animation: shimmer 2.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 120ms); }
.rail ol { margin: 0; padding: 0; display: contents; }
.rail-labels { display: flex; justify-content: space-between; color: var(--mute); }
.gate-name { min-height: 1.5em; color: var(--soft); font-size: 15px; }

.parts { display: grid; gap: 10px; }
.part { display: grid; grid-template-columns: minmax(0, 150px) 1fr 52px; gap: 12px; align-items: center; font-size: 14px; }
.part .bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.part .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--signal); transition: width 1.1s var(--ease-out); }
.part.ph .bar i { background: rgba(255, 255, 255, 0.14); }
.part .v { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.threshold { display: flex; justify-content: space-between; color: var(--mute); border-top: 1px solid var(--line); padding-top: 12px; }

.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; margin: 8px 0 0; padding: 0; }
.pipe li { list-style: none; display: grid; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--mute); text-align: center; }
.pipe li i { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.pipe li.ok i { background: var(--bull); } .pipe li.waiting i { background: var(--warn); } .pipe li.idle i { background: var(--signal); opacity: 0.6; }
.pipe ol { display: contents; }

/* bars that grow when scrolled into view */
.bars { display: flex; align-items: flex-end; gap: 5px; height: 220px; padding-top: 12px; }
.bars span { flex: 1; min-width: 3px; border-radius: 999px 999px 4px 4px; background: rgba(255, 255, 255, 0.10); height: 4%; transition: height 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 28ms); }
.bars span.hi { background: var(--signal); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--mute); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: rgba(255, 255, 255, 0.2); }
.legend i.hi { background: var(--signal); }

.crosses { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; color: var(--signal); font-family: var(--mono); font-size: 14px; opacity: 0.9; }
.crosses span { text-align: center; opacity: 0.25; transition: opacity 0.6s; }
.crosses span.on { opacity: 1; }

/* ---------- candle charts ---------- */
.setup { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; margin-top: 72px; }
@media (max-width: 1023px) { .setup { grid-template-columns: 1fr; } }
.setup-frame { background: var(--deep); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.setup-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 8px 10px; color: var(--mute); }
.steps-tabs { display: flex; gap: 6px; }
.steps-tabs button { width: 42px; height: 4px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12); cursor: pointer; position: relative; }
.steps-tabs button::after { content: ""; position: absolute; inset: -10px 0; }
.steps-tabs button[aria-selected="true"] { background: var(--signal); }
.setup-plot svg, .record-plot svg { width: 100%; height: auto; overflow: visible; }
.gl { stroke: rgba(255, 255, 255, 0.05); stroke-dasharray: 2 4; }
.c line { stroke-width: 1; }
.c.up rect, .c.up line { fill: var(--signal); stroke: var(--signal); }
.c.dn rect, .c.dn line { fill: var(--bear); stroke: var(--bear); }
.setup-plot .c { opacity: 0; transition: opacity 0.35s; }
.setup-plot .c.on { opacity: 1; }
.layer.zones, .layer.plan { opacity: 0; transition: opacity 0.6s var(--ease-out); }
.layer.on { opacity: 1; }
.lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; fill: var(--mute); }
.lbl.end { text-anchor: end; } .lbl.mid { text-anchor: middle; }
.lbl.bear { fill: var(--bear); }
.liq { stroke: var(--soft); stroke-dasharray: 3 4; stroke-width: 1; }
.sweep { fill: rgba(201, 120, 111, 0.10); stroke: var(--bear); stroke-dasharray: 3 3; }
.poi { fill: rgba(143, 167, 201, 0.12); stroke: rgba(143, 167, 201, 0.6); }
.lvl { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.lvl.bear { stroke: var(--bear); }
.badge rect { fill: var(--panel); stroke: var(--line-strong); }
.badge .score { font-family: var(--mono); font-size: 18px; fill: var(--signal); }
.setup-copy { display: grid; gap: 18px; }
.setup-copy .num { font-family: var(--mono); font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.setup-copy h3 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -0.02em; }
.setup-copy .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.caption { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--mute); text-transform: uppercase; }

.record { margin-top: 56px; }
.record-plot { position: relative; height: clamp(220px, 26vw, 320px); }
.record-plot svg { height: 100%; }
.record .win { fill: rgba(143, 167, 201, 0.07); stroke: rgba(143, 167, 201, 0.35); transition: x 0.6s var(--ease-out), width 0.6s var(--ease-out); }
.record .edge { stroke: var(--signal); stroke-width: 1; }
.record-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 12px; }
@media (max-width: 809px) { .record-foot { grid-template-columns: 1fr; } }
.stage-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-tabs button { display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--mute); font: 500 14px var(--sans); cursor: pointer; }
.stage-tabs button[aria-selected="true"] { border-color: rgba(143, 167, 201, 0.5); color: var(--head); background: rgba(143, 167, 201, 0.08); }
.stage-tabs b { font-weight: 500; color: var(--signal); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--mute); text-transform: uppercase; }
.stats dd { margin: 6px 0 0; font-family: var(--mono); font-size: clamp(22px, 2.4vw, 32px); color: var(--head); }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px 1fr 24px; align-items: baseline; gap: 12px; padding: 22px 0; color: var(--signal); font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .n { font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: 0.04em; }
.acc summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 28px; color: var(--soft); justify-self: end; transition: transform 0.3s; }
.acc details[open] summary::after { content: "\2212"; }
.acc .body { padding: 0 0 26px 64px; display: grid; gap: 10px; max-width: 70ch; }
@media (max-width: 600px) { .acc .body { padding-left: 0; } }

table.plain { width: 100%; border-collapse: collapse; font-size: 15px; }
table.plain th, table.plain td { text-align: left; padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-weight: 500; color: var(--mute); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
table.plain td.n { text-align: right; font-family: var(--mono); font-size: 13px; color: var(--soft); }
.tbl-wrap { overflow-x: auto; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; padding: 28px 0; background: var(--bg); }
.ticker .track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker:hover .track, .ticker:focus-within .track { animation-play-state: paused; }
.ticker span { font-size: clamp(22px, 2.2vw, 28px); color: var(--text); padding: 0 26px; white-space: nowrap; display: inline-flex; align-items: center; gap: 52px; }
.ticker span::after { content: "\2316"; color: var(--signal); font-size: 0.9em; }

/* ---------- closing band + footer ---------- */
.closing { background: var(--bg); padding: clamp(80px, 10vw, 140px) 0 64px; }
.closing .split { align-items: end; }
.closing .right { display: grid; gap: 22px; }
footer { background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.foot-grid h4 { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--head); }
.foot-grid a { display: block; font-size: 15px; padding: 3px 0; color: var(--text); }
.foot-grid a:hover { color: var(--head); }
.foot-grid .wordmark { display: inline-flex; font-size: 26px; color: var(--head); padding: 0; }
.foot-grid .about { display: grid; gap: 14px; align-content: start; font-size: 15px; max-width: 32ch; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; font-size: 13px; color: var(--mute); }
.legal p { max-width: 90ch; }
@media (max-width: 809px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid .about { grid-column: 1 / -1; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .reveal.d1 { transition-delay: 0.08s; } .js .reveal.d2 { transition-delay: 0.16s; } .js .reveal.d3 { transition-delay: 0.24s; }

@keyframes flowIn { to { opacity: 1; transform: scale(1); } }
@keyframes glowIn { to { opacity: 1; transform: scale(1); } }
@keyframes travel { to { stroke-dashoffset: -446; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: 0.45; } }
@keyframes shimmer { 0%, 100% { background: rgba(255, 255, 255, 0.04); } 50% { background: rgba(255, 255, 255, 0.10); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  .flow, .glow { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
