/* Flintlever: light-first site on Paper. Layout: sticky header, hero with a live
   workflow schematic, a Navy method band (Adopt, Adapt, Advance), workflow cards,
   a calculator, principles, contact. The 22.5 degree lever angle is the one
   recurring graphic device. */
:root {
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --sunk: #F2F3F0;
  --alt: #E9EDF3;
  --ink: #14213D;
  --ink-2: #33415C;
  --muted: #5B6B82;
  --line: #E1E4E6;
  --line-2: #C9CFD6;
  --grid: rgba(91, 107, 130, .10);
  --spark: #E79515;
  --spark-text: #A85A00;
  --spark-soft: #FCF1DE;
  --band: #14213D;
  --band-ink: #FAFAF7;
  --band-muted: #A3B1C2;
  --band-line: rgba(163, 177, 194, .22);
  --btn: #14213D;
  --btn-ink: #FAFAF7;
  --btn-hover: #22335A;
  --focus: #E79515;
  --shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 18px 40px -24px rgba(20, 33, 61, .28);

  --f-display: "Inter", "Inter Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1D2633; --surface: #2A3647; --sunk: #232E3D; --alt: #18202C; --ink: #FAFAF7; --ink-2: #D9DEE5; --muted: #A3B1C2;
    --line: #36445A; --line-2: #4A5A71; --grid: rgba(163, 177, 194, .08);
    --spark: #EEA82F; --spark-text: #F0B04A; --spark-soft: rgba(238, 168, 47, .12);
    --band: #141C29; --band-ink: #FAFAF7; --band-muted: #A3B1C2; --band-line: rgba(163, 177, 194, .18);
    --btn: #FAFAF7; --btn-ink: #14213D; --btn-hover: #FFFFFF; --focus: #EEA82F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 18px 40px -24px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1D2633; --surface: #2A3647; --sunk: #232E3D; --alt: #18202C; --ink: #FAFAF7; --ink-2: #D9DEE5; --muted: #A3B1C2;
  --line: #36445A; --line-2: #4A5A71; --grid: rgba(163, 177, 194, .08);
  --spark: #EEA82F; --spark-text: #F0B04A; --spark-soft: rgba(238, 168, 47, .12);
  --band: #141C29; --band-ink: #FAFAF7; --band-muted: #A3B1C2; --band-line: rgba(163, 177, 194, .18);
  --btn: #FAFAF7; --btn-ink: #14213D; --btn-hover: #FFFFFF; --focus: #EEA82F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 18px 40px -24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* Logo swaps: light artwork by default, reversed artwork on dark grounds */
.on-dark { display: none }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none }
  :root:not([data-theme="light"]) .on-dark { display: block }
}
:root[data-theme="dark"] .on-light { display: none }
:root[data-theme="dark"] .on-dark { display: block }

* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 88px }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block }
a { color: inherit }
p { margin: 0 }
h1, h2, h3 { margin: 0; font-family: var(--f-display); color: var(--ink); text-wrap: balance; font-optical-sizing: auto }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; border-radius: 6px; z-index: 20 }
.skip:focus { left: 16px }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter) }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--spark); transform: rotate(-22.5deg) }
.section { padding-block: clamp(72px, 10vw, 128px) }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px) }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -0.028em; font-weight: 700 }
.section-head p { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 8px; font: 600 16px/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--btn); color: var(--btn-ink) }
.btn-primary:hover { background: var(--btn-hover) }
.btn-primary .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 4px rgba(231, 149, 21, .22) }
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: transparent }
.btn-ghost:hover { border-color: var(--ink) }
.btn:active { transform: translateY(1px) }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px);
  transform: translateY(-110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .2s;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line) }
.site-header.show, .site-header:focus-within { transform: none }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px }
.brand { display: block; flex: none; margin-left: -8px }
.brand img { height: 56px; width: auto }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px) }
.nav a.link { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding-block: 6px }
.nav a.link:hover { color: var(--ink) }
.nav .btn { min-height: 42px; padding: 10px 18px; font-size: 15px }
@media (max-width: 860px) { .nav a.link { display: none } }
@media (max-width: 420px) { .nav .btn .long { display: none } }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 72px); align-items: center }
.hero-copy { display: grid; gap: 26px; min-width: 0 }
.hero h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.034em; font-weight: 750 }
.hero h2 .soft { font-weight: 400; color: var(--muted) }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 54ch }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 13px/1.4 var(--f-mono); color: var(--muted); letter-spacing: .02em }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px }
.hero-proof span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2) }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr) } }

/* Schematic */
.schematic {
  position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden;
}
.schematic-bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 11.5px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.schematic-bar .live { display: inline-flex; align-items: center; gap: 8px; color: var(--spark-text) }
.schematic-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--spark); animation: blink 1.6s ease-in-out infinite }
.schematic-canvas {
  background-color: var(--surface);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px; padding: 14px;
}
.schematic svg { width: 100%; height: auto }
.schematic .wire { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 4 5 }
.schematic .node rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5 }
.schematic .node .tag { font: 500 11px var(--f-mono); letter-spacing: .1em; fill: var(--muted) }
.schematic .node .ttl { font: 600 16.5px var(--f-body); fill: var(--ink) }
.schematic .node .sub { font: 400 13px var(--f-body); fill: var(--muted) }
.schematic .node.ai .tag { fill: var(--spark-text) }
.schematic .node.ai rect.chip { fill: var(--spark-soft); stroke: none }
.schematic .node rect.chip { fill: var(--sunk); stroke: none }
.schematic .node .ring { fill: none; stroke: var(--spark); stroke-width: 2; opacity: 0 }
.schematic .wire-done { fill: none; stroke: var(--spark); stroke-width: 1.75; stroke-linecap: round; opacity: .7 }
.schematic .node > rect:first-child, .schematic .node .tag, .schematic .node .ttl, .schematic .node .sub, .schematic .node rect.chip, .schematic .rail-dot { transition: fill .3s, stroke .3s }
.schematic .node.done > rect:first-child { fill: var(--spark-soft); stroke: var(--spark) }
.schematic .node.done .tag { fill: var(--spark-text) }
.schematic .node.done rect.chip { fill: var(--surface) }
.schematic .rail-dot.done { fill: var(--spark-soft); stroke: var(--spark) }
.schematic .node.hit .ring { animation: ping .8s ease-out }
.schematic .spark-core { fill: var(--spark) }
.schematic .rail-dot { fill: var(--surface); stroke: var(--line-2); stroke-width: 2 }
.sch-narrow { display: none !important }
@media (max-width: 560px) { .sch-wide { display: none !important } .sch-narrow { display: block !important } }
.schematic .spark-glow { fill: var(--spark); opacity: .28 }
.schematic-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); font: 500 11px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.schematic-foot div { padding: 10px 16px; display: grid; gap: 3px; min-width: 0 }
.schematic-foot div + div { border-left: 1px solid var(--line) }
.schematic-foot b { font-weight: 500; color: var(--ink); letter-spacing: .02em; text-transform: none; font-size: 12.5px }
@keyframes ping { 0% { opacity: 1; stroke-width: 6 } 100% { opacity: 0; stroke-width: 2 } }
@keyframes blink { 50% { opacity: .35 } }

/* Problem strip */
.problem { border-block: 1px solid var(--line); background: var(--alt) }
.problem-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start }
.problem h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700 }
.stalls { display: grid; gap: 0; margin: 0; padding: 0; list-style: none }
.stalls li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding-block: 18px; border-top: 1px solid var(--line) }
.stalls li:last-child { border-bottom: 1px solid var(--line) }
.stalls b { font: 500 12.5px/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px }
.stalls p { color: var(--ink-2) }
.problem .answer { margin-top: 26px; font-size: 1.15rem; color: var(--ink); font-weight: 500; max-width: 46ch }
@media (max-width: 860px) {
  .problem-grid { grid-template-columns: minmax(0, 1fr) }
  .stalls li { grid-template-columns: minmax(0, 1fr); gap: 4px }
}

/* Method band */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden }
.band .eyebrow { color: var(--band-muted) }
.band .section-head h2 { color: var(--band-ink) }
.band .section-head p { color: var(--band-muted) }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: stage; border-top: 1px solid var(--band-line) }
.stage { padding: 34px clamp(20px, 3vw, 36px) 36px 0; display: grid; gap: 16px; align-content: start; min-width: 0 }
.stage + .stage { padding-left: clamp(20px, 3vw, 36px); border-left: 1px solid var(--band-line) }
.stage-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px }
.stage-num { font: 500 13px var(--f-mono); color: var(--band-muted); letter-spacing: .08em }
.stage-meta { font: 500 12px var(--f-mono); color: var(--spark); letter-spacing: .1em; text-transform: uppercase }
.stage h3 { color: var(--band-ink); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1 }
.stage .metaphor { font-size: 1.05rem; color: var(--band-ink); font-weight: 500 }
.stage p.body { color: var(--band-muted); font-size: 16px }
.stage ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--band-ink) }
.stage li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: baseline }
.stage li::before { content: ""; width: 10px; height: 2px; background: var(--spark); transform: translateY(-4px) rotate(-22.5deg) }
.stage-icon { width: 56px; height: 56px }
.stage-icon .s { stroke: var(--band-muted) }
.stage-icon .f { fill: var(--band-ink) }
.stage-icon .sp { fill: #EEA82F }
@media (max-width: 900px) {
  .stages { grid-template-columns: minmax(0, 1fr) }
  .stage, .stage + .stage { padding: 30px 0; border-left: 0 }
  .stage + .stage { border-top: 1px solid var(--band-line) }
}

/* Workflows */
.flows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px }
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0; position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 10px 28px -6px rgba(20, 33, 61, .12); transition: border-color .25s, transform .25s, box-shadow .25s }
.flow::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--spark); transform: scaleX(0); transform-origin: left; transition: transform .35s }
.flow:hover::before, .flow.is-after::before { transform: scaleX(1) }
.flow.is-after { border-color: rgba(231, 149, 21, .35) }
.flow:hover { border-color: var(--line-2); box-shadow: 0 2px 4px rgba(20, 33, 61, .05), 0 18px 40px -8px rgba(20, 33, 61, .2) }
.flow h3 { font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25 }
.pipe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 11.5px/1.2 var(--f-mono); color: var(--muted) }
.pipe span { padding: 5px 8px; border-radius: 5px; background: var(--sunk); white-space: nowrap }
.pipe span.ai { background: var(--spark-soft); color: var(--spark-text) }
.pipe i { font-style: normal; color: var(--line-2) }
.flow { grid-template-rows: auto auto 1fr auto }
.flow:hover { transform: translateY(-2px) }
.flow-top { display: flex; align-items: center; gap: 10px }
.flow .pipe { font-size: 10.5px; gap: 4px }
.flow .pipe span { padding: 3px 6px }
.flow-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--spark-soft); color: var(--spark-text); transition: background .3s, color .3s }
.flow.is-after .flow-ic { box-shadow: inset 0 0 0 1.5px var(--spark) }
/* Before and After as a flash card */
.flip { perspective: 900px }
.flip-in { display: grid; transition: transform .6s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; height: 100% }
.flow.is-after .flip-in { transform: rotateY(180deg) }
.face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 9px; padding: 10px 12px; display: grid; gap: 4px; align-content: start; font-size: 13.5px; line-height: 1.45 }
.face p { margin: 0 }
.face.before { background: transparent; color: var(--ink-2); box-shadow: inset 2px 0 0 var(--line-2); border-radius: 0 }
.face.after { background: var(--spark-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--spark); transform: rotateY(180deg) }
.face-tag { font: 500 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.face.after .face-tag { color: var(--spark-text) }
.flip-btn { justify-self: start; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 2px 12px 2px 6px; font: 600 12.5px var(--f-body); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s }
.flip-btn:hover { border-color: var(--spark) }
.flow.is-after .flip-btn { background: var(--spark-soft); border-color: var(--spark); color: var(--spark-text) }
/* the lever: resting down, pulled up to the brand's 22.5 degrees */
.lever .lv-base { fill: var(--line-2) }
.lever .lv-arm { transform-origin: 18px 24px; transform: rotate(12deg); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1) }
.lever .lv-arm line { stroke: var(--muted); stroke-width: 4; stroke-linecap: round; transition: stroke .3s }
.lever .lv-ball { fill: var(--muted); transition: fill .3s }
.lever .lv-glow { fill: var(--spark); opacity: 0; transition: opacity .3s }
.lever .lv-pivot { fill: var(--ink) }
.flip-btn:hover .lv-arm { transform: rotate(4deg) }
.flow.is-after .lv-arm { transform: rotate(-22.5deg) }
.flow.is-after .lv-arm line { stroke: var(--ink) }
.flow.is-after .lv-ball { fill: var(--spark) }
.flow.is-after .lv-glow { opacity: .3 }
.flip-btn .to-before, .flow.is-after .flip-btn .to-after { display: none }
.flow.is-after .flip-btn .to-before { display: inline }
/* the card's workflow runs, step by step, when it flips to After */
.pipe span, .pipe i { transition: background .25s, color .25s }
.flow.is-after .pipe span { animation: step-on .35s ease-out forwards; animation-delay: calc(.25s + var(--i) * .32s) }
.flow.is-after .pipe i { color: var(--spark-text) }
@keyframes step-on { to { background: var(--spark-soft); color: var(--spark-text); box-shadow: inset 0 0 0 1px var(--spark) } }
@media (prefers-reduced-motion: reduce) { .flip-in, .lever .lv-arm { transition: none } .flow.is-after .pipe span { animation-duration: .01s; animation-delay: 0s } }
@media (max-width: 1100px) { .flows { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
@media (max-width: 820px) { .flows { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 640px) { .flows { grid-template-columns: minmax(0, 1fr) } }
/* Workflow loop (built by main.js; without JS the cards stay a grid) */
/* every other card is navy: the card re-scopes the colour tokens, so its contents follow */
.flow.alt { --surface: #14213D; --ink: #FAFAF7; --ink-2: #D9DEE5; --muted: #A3B1C2; --line: #2A3A57; --line-2: #4A5A71; --sunk: #22314F; --spark-soft: rgba(238, 168, 47, .16); --spark-text: #F0B04A; background: var(--surface); color: var(--ink); border-color: var(--line) }
.flow.alt:hover { border-color: var(--line-2) }
.flows.is-loop { --gap: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap) }
.flow-col { height: calc(var(--ch, 300px) * 2 + var(--gap)); overflow: hidden; margin: 0 -12px; padding: 0 12px; -webkit-mask-image: linear-gradient(transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(transparent, #000 5%, #000 95%, transparent) }
.flow-track { display: grid; row-gap: var(--gap); will-change: transform }
.flows.is-loop .flow { height: var(--ch, auto) }
.flows.is-loop .flow:hover { transform: none }
.flows.is-loop .pipe { min-height: 51px; align-content: flex-start }
@media (max-width: 820px) { .flows.is-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); --gap: 16px } }
@media (max-width: 640px) { .flows.is-loop { grid-template-columns: minmax(0, 1fr) } .flows.is-loop .pipe { min-height: 0 } }

/* Calculator */
.calc-section { background: var(--alt); border-block: 1px solid var(--line) }
.faq-section { background: var(--alt); border-block: 1px solid var(--line) }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow) }
.calc-in { padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 22px; align-content: start; min-width: 0 }
.field { display: grid; gap: 8px }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px }
.field label { font-weight: 600; font-size: 15.5px }
.field .hint { font-size: 13.5px; color: var(--muted) }
.field output { font: 600 15px var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums }
.field input[type="number"] {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--paper); color: var(--ink); font: 500 17px var(--f-mono); font-variant-numeric: tabular-nums;
}
.field input[type="number"]:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent }
.field input[type="range"] { width: 100%; accent-color: var(--spark); height: 28px }
.task { display: grid; gap: 8px }
.task select { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: 500 16px var(--f-body) }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px }
.calc-out { background: var(--band); color: var(--band-ink); padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 24px; align-content: space-between; min-width: 0; position: relative }
.calc-out .eyebrow { color: var(--band-muted) }
.big { display: grid; gap: 6px }
.big .n { font: 700 clamp(3.2rem, 7vw, 5rem)/1 var(--f-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--band-ink) }
.big .u { color: var(--band-muted); font-size: 15px }
.minis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--band-line) }
.minis div { padding-top: 16px; display: grid; gap: 4px; min-width: 0 }
.minis div + div { padding-left: 18px; border-left: 1px solid var(--band-line) }
.minis .n { font: 600 1.6rem/1.1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--band-ink) }
.minis .u { color: var(--band-muted); font-size: 13.5px }
.formula { font: 400 12.5px/1.6 var(--f-mono); color: var(--band-muted); border-top: 1px dashed var(--band-line); padding-top: 14px; overflow-wrap: anywhere }
.lever-gauge { width: 100%; height: 64px }
.lever-gauge .base { fill: var(--band-muted); opacity: .5 }
#g-arm { transform-box: view-box; transform-origin: 70px 46px; transition: transform .5s cubic-bezier(.2, .8, .2, 1) }
.lever-gauge .arm { stroke: var(--band-muted); stroke-width: 7; stroke-linecap: round }
.lever-gauge .tip { fill: #EEA82F; filter: drop-shadow(0 0 6px rgba(238, 168, 47, .7)) }
.lever-gauge .ful { fill: var(--band-ink) }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 420px) { .two { grid-template-columns: minmax(0, 1fr) } }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink) }
.principle { padding: 24px 22px 8px 0; display: grid; gap: 10px; align-content: start; min-width: 0 }
.principle + .principle { padding-left: 22px; border-left: 1px solid var(--line) }
.principle h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em }
.principle p { color: var(--ink-2); font-size: 15.5px }
@media (max-width: 980px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .principle:nth-child(3) { padding-left: 0; border-left: 0 }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: minmax(0, 1fr) }
  .principle, .principle + .principle { padding: 22px 0 6px; border-left: 0 }
  .principle + .principle { border-top: 1px solid var(--line); margin-top: 12px }
}

/* Stack */
.stack { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 28px; border-top: 1px solid var(--line) }
.stack h3 { font: 500 12.5px/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.stack ul.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line) }
.logos li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .2s }
.logos svg { flex: none; width: 24px; height: 24px; fill: var(--muted); transition: fill .2s }
.logos span { min-width: 0; overflow-wrap: anywhere }
.logos svg.api { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; transition: stroke .2s }
.logos svg.api circle { fill: var(--muted); stroke: none }
.logos li:hover { color: var(--ink) }
.logos li:hover svg { fill: var(--c) }
.logos li:hover svg.api { fill: none; stroke: var(--c) }
.logos li:hover svg.api circle { fill: var(--c) }
.logos li.msli:hover rect:nth-child(1) { fill: #F25022 }
.logos li.msli:hover rect:nth-child(2) { fill: #7FBA00 }
.logos li.msli:hover rect:nth-child(3) { fill: #00A4EF }
.logos li.msli:hover rect:nth-child(4) { fill: #FFB900 }
.logos rect { transition: fill .2s }
@media (max-width: 1020px) { .stack ul.logos { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
@media (max-width: 560px) { .stack ul.logos { grid-template-columns: repeat(2, minmax(0, 1fr)) } .logos li { padding: 14px 12px; gap: 10px; font-size: 14px } }
.stack p { grid-column: 2; font-size: 14px; color: var(--muted); max-width: 72ch }
@media (max-width: 760px) { .stack { grid-template-columns: minmax(0, 1fr) } .stack p { grid-column: 1 } }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 860px; border-top: 1px solid var(--line) }
.faq details { border-bottom: 1px solid var(--line) }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-block: 22px; font-weight: 600; font-size: 1.1rem }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-4px); transition: transform .2s }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px) }
.faq details p { padding-bottom: 22px; color: var(--ink-2); max-width: 68ch }

/* Contact */
.contact { background: var(--band); color: var(--band-ink) }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center }
.contact h2 { color: var(--band-ink); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 750 }
.contact h2 .soft { color: var(--band-muted); font-weight: 400 }
.contact .lede { color: var(--band-muted); font-size: 1.15rem; max-width: 52ch; margin-top: 20px }
.contact-card { border: 1px solid var(--band-line); border-radius: 14px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; min-width: 0 }
.contact-card .label { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted) }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px }
.email { font: 600 clamp(1.25rem, 2.6vw, 1.6rem)/1.2 var(--f-display); color: var(--band-ink); text-decoration: none; overflow-wrap: anywhere; letter-spacing: -0.01em }
.email:hover { text-decoration: underline; text-decoration-color: #EEA82F; text-underline-offset: 5px }
.copy { font: 500 13px var(--f-mono); color: var(--band-ink); background: transparent; border: 1px solid var(--band-line); border-radius: 6px; padding: 7px 10px; cursor: pointer }
.copy:hover { border-color: var(--band-muted) }
.contact-card ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: s }
.contact-card li { counter-increment: s; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; color: var(--band-muted); font-size: 15.5px }
.contact-card li::before { content: counter(s); font: 500 12px/1.9 var(--f-mono); color: #EEA82F }
.contact-card li b { color: var(--band-ink); font-weight: 600 }
.contact .btn-primary { background: #FAFAF7; color: #14213D; justify-self: start }
.contact .btn-primary:hover { background: #FFFFFF }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr) } }

/* Footer */
.site-footer { padding-block: 48px 40px; border-top: 1px solid var(--line) }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px }
.foot img { width: 320px; height: auto; margin-left: -12px }
.foot-meta { display: grid; gap: 6px; justify-items: end; font-size: 14px; color: var(--muted) }
.foot-meta a { text-decoration: none }
.foot-meta a:hover { color: var(--ink) }
@media (max-width: 640px) { .foot-meta { justify-items: start } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .schematic .node .ring, .schematic-bar .live::before { animation: none }
  #g-arm { transition: none }
}

/* Opening screen: full-bleed navy with a live, interactive network.
   Always dark, in both themes, like the reversed logo artwork. */
.stage-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #FAFAF7;
  min-height: clamp(600px, 100svh, 1000px); display: grid; place-items: center;
  padding: clamp(72px, 10vh, 120px) var(--gutter) clamp(96px, 14vh, 140px);
  background:
    radial-gradient(120% 90% at 50% 0%, #2A3E66 0%, rgba(42, 62, 102, 0) 60%),
    radial-gradient(80% 70% at 85% 100%, rgba(231, 149, 21, .14) 0%, rgba(231, 149, 21, 0) 60%),
    linear-gradient(180deg, #1B2B4B 0%, #14213D 55%, #0F1A31 100%);
}
.stage-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; cursor: crosshair }
.stage-hero canvas.net-top { z-index: 1; pointer-events: none }
.stage-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 42% at 50% 54%, rgba(15, 26, 49, .62) 0%, rgba(15, 26, 49, 0) 100%) }
.sh-in { position: relative; display: grid; justify-items: center; text-align: center; gap: 26px; max-width: 940px; pointer-events: none }
.sh-in a { pointer-events: auto }
.sh-logo { width: clamp(300px, 34vw, 400px); height: auto; margin-bottom: clamp(8px, 3vh, 28px) }
.stage-hero h1 { color: #FAFAF7; font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700 }
.stage-hero h1 .soft { display: block; font-weight: 400; color: #A3B1C2 }
.sh-lede { color: #C6D0DC; font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 60ch }
.sh-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px }
.sh-primary { background: #FAFAF7; color: #14213D }
.sh-primary:hover { background: #FFFFFF }
.sh-primary .dot { width: 8px; height: 8px; border-radius: 50%; background: #E79515; box-shadow: 0 0 0 4px rgba(231, 149, 21, .25) }
.sh-ghost { color: #FAFAF7; border-color: rgba(163, 177, 194, .45) }
.sh-ghost:hover { border-color: #FAFAF7 }
.stage-hero :focus-visible { outline-color: #EEA82F }
.sh-hint { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(163, 177, 194, .75); pointer-events: none; padding-inline: 70px }
.sh-hint .coarse { display: none }
.sh-again { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; border: 0; border-radius: 999px; padding: 11px 22px; background: #EEA82F; color: #14213D; font: 600 15px/1 var(--f-body); cursor: pointer; box-shadow: 0 0 0 6px rgba(238, 168, 47, .18), 0 10px 30px rgba(0, 0, 0, .3); white-space: nowrap; animation: sh-again-in .4s ease-out }
.sh-again:hover { background: #F4BA4F }
.sh-again[hidden] { display: none }
.stage-hero.has-again .sh-hint { visibility: hidden }
.sh-panel { position: absolute; z-index: 3; box-sizing: border-box; padding: 14px 16px 12px; border-radius: 12px; background: rgba(20, 33, 61, .97); border: 1px solid rgba(238, 168, 47, .5); box-shadow: 0 14px 40px rgba(0, 0, 0, .4); color: #FAFAF7; text-align: left }
.sh-panel[hidden] { display: none }
.sh-panel::after { content: ""; position: absolute; left: calc(var(--tip) - 7px); bottom: -7px; width: 12px; height: 12px; background: rgba(20, 33, 61, .97); border-right: 1px solid rgba(238, 168, 47, .5); border-bottom: 1px solid rgba(238, 168, 47, .5); transform: rotate(45deg) }
.sh-panel .sp-h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font: 600 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #EEA82F }
.sh-panel .sp-x { border: 0; background: none; color: #A3B1C2; font: 400 20px/1 var(--f-body); cursor: pointer; padding: 0 2px }
.sh-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.sh-panel li { display: grid; gap: 1px }
.sh-panel li b { font: 600 14px/1.35 var(--f-body); color: #EEA82F }
.sh-panel li span { font: 400 11.5px/1.4 var(--f-mono); color: #A3B1C2; padding-left: 16px }
.sh-panel .sp-e { margin: 8px 0 0; font: 400 12px/1.4 var(--f-mono); color: #A3B1C2 }
@keyframes sh-again-in { from { opacity: 0; transform: translate(-50%, 8px) } }
@media (prefers-reduced-motion: reduce) { .sh-again { animation: none } }
@media (hover: none) { .sh-hint .fine { display: none } .sh-hint .coarse { display: inline } }
.sh-scroll { position: absolute; right: var(--gutter); bottom: 24px; width: 34px; height: 52px; border: 1px solid rgba(163, 177, 194, .4); border-radius: 18px; display: grid; justify-items: center; padding-top: 10px }
.sh-scroll span { width: 4px; height: 10px; border-radius: 2px; background: #EEA82F; animation: nudge 1.8s ease-in-out infinite }
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: 1 } 60% { transform: translateY(14px); opacity: .2 } }
@media (max-width: 560px) { .sh-hint { bottom: 22px; padding-inline: 56px 64px; text-align: left } }
@media (prefers-reduced-motion: reduce) { .sh-scroll span { animation: none } }


/* Example workflow tabs */
.flow-tabs { display: flex; flex-wrap: wrap; gap: 6px }
.flow-tabs button { font: 600 14px var(--f-body); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s }
.flow-tabs button:hover { border-color: var(--ink) }
.flow-tabs button[aria-selected="true"] { background: var(--btn); color: var(--btn-ink); border-color: var(--btn) }
.hero .lede { min-height: 6.4em }
.schematic .node text { transition: opacity .25s }
.schematic.swap .node text { opacity: 0 }
@media (max-width: 920px) { .hero .lede { min-height: 0 } }

/* Privacy page */
.legal { max-width: 760px; padding-block: 48px 80px; display: grid; gap: 14px; align-content: start }
.legal .brand { margin-bottom: 24px }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05 }
.legal h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin-top: 22px }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65 }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px }
.legal .legal-date { color: var(--muted); font: 500 13px var(--f-mono) }
.legal mark.fill { background: var(--spark-soft); color: var(--spark-text); padding: 0 4px; border-radius: 4px }
.legal .legal-back { margin-top: 28px }
