/* ─────────────────────────── Tokens ─────────────────────────── */
:root {
  --bg: #050607;
  --bg-2: #08090c;
  --panel: #0a0c10;
  --panel-2: #0f1217;
  --panel-3: #151920;
  --ink: #eceef1;
  --ink-2: #a8afba;
  --ink-3: #78808d;
  --ink-4: #3c424d;
  --line: rgba(236, 238, 241, 0.075);
  --line-2: rgba(236, 238, 241, 0.13);
  --line-3: rgba(236, 238, 241, 0.22);
  --gold: #e9b44c;
  --gold-a: rgba(233,180,76, 0.13);
  --red: #ff5d4d;
  --red-a: rgba(255, 93, 77, 0.13);
  --green: #4fd6a4;
  --green-a: rgba(79, 214, 164, 0.12);

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1320px;
  --gut: clamp(20px, 4.5vw, 64px);
  --out: cubic-bezier(.16, 1, .3, 1);
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 560; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
dl, dd { margin: 0; }
::selection { background: var(--gold); color: var(--bg); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-size: .86em; }
.dim { color: var(--ink-3); }
.red { color: var(--red); }
.green { color: var(--green); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--gold); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ─────────────────────────── Primitives ─────────────────────────── */
.lbl {
  display: inline-block; font: 500 11.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.lbl--gold { color: var(--gold); }
.lbl--red { color: var(--red); }
.lbl--green { color: var(--green); }

.pill {
  display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(10,12,16,.6);
  font: 500 11px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2);
}

.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--ink-3); }
.dot--gold { background: var(--gold); box-shadow: 0 0 10px rgba(233,180,76,.7); }
.dot--red { background: var(--red); box-shadow: 0 0 10px rgba(255,93,77,.7); }

.dot--pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--gold);
  background: var(--gold); color: #15110a; font: 560 15px/1 var(--sans); letter-spacing: -.005em; cursor: pointer;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s, transform .4s var(--out);
  box-shadow: 0 10px 34px -14px rgba(233,180,76,.55);
}
.btn:hover { background: #f1c164; transform: translateY(-1px); box-shadow: 0 14px 40px -14px rgba(233,180,76,.7); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: rgba(236,238,241,.05); border-color: var(--line-3); box-shadow: none; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn__arrow { display: inline-block; transition: transform .4s var(--out); }
.ico { width: 16px; height: 16px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.lbl__n { font-weight: 500; margin-right: 12px; opacity: .65; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:hover .btn__arrow--down { transform: translateY(3px); }

.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); overflow: hidden;
}

/* ─────────────────────────── Type ─────────────────────────── */
.h-display {
  margin-top: 26px; font-size: clamp(40px, 5.8vw, 92px); line-height: .92; letter-spacing: -.045em;
  font-weight: 560; font-variation-settings: "wdth" 112;
}
h2 {
  font-size: clamp(32px, 3.8vw, 58px); line-height: .98; letter-spacing: -.04em; font-variation-settings: "wdth" 110;
}
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }
.line--dim { color: var(--ink-3); }
.line--accent { color: var(--gold); }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--ink-2); letter-spacing: -.005em; max-width: 560px; }

/* split-line reveal */
.js [data-split] .line > span { transform: translateY(105%); transition: transform 1.1s var(--out); }
.js [data-split].is-in .line > span { transform: none; }
.js [data-split].is-in .line:nth-child(2) > span { transition-delay: .09s; }
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--out), transform 1s var(--out); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ─────────────────────────── Nav ─────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .5s, border-color .5s, backdrop-filter .5s; }
.nav.is-stuck { background: rgba(5,6,7,.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.nav__inner { height: 72px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 620 19px/1 var(--sans); letter-spacing: -.02em; font-variation-settings: "wdth" 115; }
.brand { gap: 12px; }
.brand__word { display: block; height: 26px; width: auto; }
.nav__links { display: flex; gap: 30px; font-size: 14.5px; color: var(--ink-2); }
.nav__links a { position: relative; padding: 6px 0; transition: color .25s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--out); }
.nav__links a.is-current::after { transform: scaleX(1); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__plain { font-size: 14.5px; color: var(--ink-2); transition: color .25s; }
.nav__plain:hover { color: var(--ink); }
.nav__toggle { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 22px; }
.nav.is-open .nav__toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ─────────────────────────── Hero ─────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; padding-top: clamp(130px, 19vh, 200px); }
.hero__lead { margin-top: 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.readout { display: flex; gap: 22px; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.readout span { display: inline-flex; align-items: center; gap: 9px; }
.readout span:first-child { color: var(--ink-2); }
.scroll { font: 500 11.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); padding: 6px 0 6px 14px; border-left: 1px solid var(--line-3); position: relative; overflow: hidden; }
.scroll::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 40%; background: var(--gold); animation: scroll 2.2s var(--out) infinite; }
@keyframes scroll { 0% { transform: translateY(-100%); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(250%); opacity: 0; } }

/* ─────────────────────────── Scroll story (hero is frame one) ─────────────────────────── */
.story { position: relative; height: 820vh; } /* JS adds the hand-off overlap */
.story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story__layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,6,7,.96) 0%, rgba(5,6,7,.82) 36%, rgba(5,6,7,0) 62%); }
.story__hero { position: relative; z-index: 2; padding-top: clamp(130px, 19vh, 200px); will-change: transform, opacity; }

.story__anchor { position: absolute; top: 105vh; left: 0; width: 1px; height: 1px; }
.story__caps { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.scap {
  position: absolute; top: 50%; width: min(400px, 34vw); padding: 26px 28px 28px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(15,18,23,.88), rgba(10,12,16,.88)); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .5s var(--out), transform .7s var(--out);
}
.scap--left { left: var(--gut); transform: translate(-24px, -50%); }
.scap--right { right: var(--gut); transform: translate(24px, -50%); }
.scap--bottom { left: 50%; top: auto; bottom: 7vh; width: min(560px, 90vw); transform: translate(-50%, 24px); text-align: center; }
.scap.is-on { opacity: 1; pointer-events: auto; }
.scap--left.is-on, .scap--right.is-on { transform: translate(0, -50%); }
.scap--bottom.is-on { transform: translate(-50%, 0); }
.scap h3 { margin: 14px 0 10px; font-size: clamp(22px, 1.95vw, 28px); line-height: 1.05; letter-spacing: -.035em; font-variation-settings: "wdth" 110; }
.scap p { color: var(--ink-2); font-size: 16px; }
.scap__cta { margin-top: 18px; }
.story__rail { position: absolute; z-index: 3; right: var(--gut); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; opacity: 0; transition: opacity .4s; }
.story__rail li { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); text-align: right; padding-right: 14px; border-right: 2px solid var(--line); transition: color .3s, border-color .3s; }
.story__rail li.is-done { color: var(--ink-3); border-color: var(--line-3); }
.story__rail li.is-on { color: var(--gold); border-color: var(--gold); }
.story__pin.has-rail .story__rail { opacity: 1; }
.rail__eye { position: absolute; right: -32px; top: 0; width: 22px; height: 22px; margin-top: -11px; padding: 3px; border-radius: 50%; color: var(--gold);
  background: var(--bg); box-shadow: 0 0 0 1px rgba(233,180,76,.45), 0 0 14px rgba(233,180,76,.3); opacity: 0; transition: transform .6s var(--out), opacity .4s; }
.rail__eye.is-on { opacity: 1; }
.rail__eye .eye { width: 100%; height: 100%; display: block; }
.story__pin::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.story__layer { transform-origin: 50% 40%; }
.story__pin.has-rail.is-leaving .story__hud { opacity: 0; }
.story__pin.is-leaving .story__rail { opacity: 0; }
/* hero art: the mark, full size */
.hero-art {
  --aw: min(51vw, 90vh); position: absolute; z-index: 1; pointer-events: none;
  width: var(--aw); height: var(--aw); left: calc(78.5% - var(--aw) / 2); top: calc(54% - var(--aw) / 2);
}
.hero-art svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* the mark: clean strokes that draw themselves on */
.lg-o { filter: drop-shadow(0 0 9px rgba(233,180,76,.32)); }
.lgs.lgs--in { stroke: var(--inlay, #0d0c0a); }
.lgs { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.2;
  animation: lgDraw var(--t, .6s) cubic-bezier(.45,.05,.25,1) var(--d, 0s) forwards; }
@keyframes lgDraw { to { stroke-dashoffset: 0; } }
.art-glow { fill: url(#artGlowG); opacity: 0; transition: opacity .8s var(--out); }
.art-glow.is-lit { opacity: .45; }

@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }
.hero-art * { vector-effect: non-scaling-stroke; }
.hero-art .lgs { vector-effect: none; }
.art-cell { fill: none; stroke: rgba(233,180,76,.12); stroke-width: 1; }
.art-vtx { fill: rgba(233,180,76,.3); }
.art-pulse { fill: #ffe7b0; }
.art-fade { opacity: 0; animation: artFade 1.4s var(--out) var(--d, 0s) forwards; }

@keyframes artFade { to { opacity: 1; } }

@keyframes artSpin { to { transform: rotate(360deg); } }
.story__vig { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(115% 85% at 50% 48%, rgba(5,6,7,0) 52%, rgba(5,6,7,.82) 100%); }
.story__hud {
  position: absolute; z-index: 3; top: 92px; left: 50%; transform: translate(-50%, -8px);
  display: flex; align-items: center; gap: 12px; padding: 10px 18px; max-width: calc(100% - 32px);
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(10,12,16,.74); backdrop-filter: blur(12px);
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .45s var(--out), transform .6s var(--out);
}
.story__pin.has-rail .story__hud { opacity: 1; transform: translate(-50%, 0); }
.story__hud b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.story__hud .gold { color: var(--gold); } .story__hud .red { color: var(--red); } .story__hud .green { color: var(--green); }
.hud__eye { width: 15px; height: 15px; flex: none; color: var(--gold); transition: color .4s; }
.hud__eye .eye { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 4px currentColor); }
.story__hud[data-tone="red"] .hud__eye { color: var(--red); } .story__hud[data-tone="green"] .hud__eye { color: var(--green); }
.hud__txt { display: flex; align-items: center; gap: 10px; }
.eye circle { fill: currentColor; }
.eye .eye__r { opacity: .3; animation: eyeRing 2.4s calc(var(--i) * .4s) ease-in-out infinite; }
@keyframes eyeRing { 0%, 55%, 100% { opacity: .28; } 18% { opacity: 1; } }

@keyframes hudPulse { 50% { opacity: .35; } }
.hud__bar { position: relative; display: inline-block; width: 72px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.hud__bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; }
.story__caps { counter-reset: cap; }
.scap { counter-increment: cap; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 30px 80px -30px rgba(0,0,0,.8); }
.scap::before {
  content: counter(cap, decimal-leading-zero); position: absolute; top: 16px; right: 22px;
  font: 600 56px/1 var(--sans); font-variation-settings: "wdth" 118; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(233,180,76,.22); pointer-events: none;
}
.scap:last-child::before { -webkit-text-stroke-color: rgba(79,214,164,.28); }
.scap > * { position: relative; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--out), transform .8s var(--out); }
.scap.is-on > * { opacity: 1; transform: none; }
.scap.is-on > :nth-child(1) { transition-delay: .06s; } .scap.is-on > :nth-child(2) { transition-delay: .13s; }
.scap.is-on > :nth-child(3) { transition-delay: .2s; } .scap.is-on > :nth-child(4) { transition-delay: .28s; }
/* the problem, as a timeline story */

@keyframes tlPing { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }

.k { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--red); background: rgba(255,93,77,.25); }

/* the ending: everything steps back except the block the story opens next */

/* the Bybit beat: one circle, one afternoon */

/* step 5: the caption doubles as the Argus AI console */
.scap--ai { width: min(430px, 36vw); }
.scap--ai p { font-size: 15px; }
.ai { margin-top: 18px; padding: 14px 14px 12px; border: 1px solid rgba(233,180,76,.25); border-radius: 12px; background: rgba(5,6,7,.6); transition: border-color .5s; }
.ai.is-broken { border-color: rgba(255,93,77,.45); }
.ai.is-confirmed { border-color: rgba(79,214,164,.45); }
.ai__head { display: flex; align-items: center; gap: 10px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ai__name { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); }
.ai__name > i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(233,180,76,.8); animation: hudPulse 1.2s ease-in-out infinite; }
.ai__n { margin-left: auto; }
.ai__n b { color: var(--ink); font-weight: 600; font-size: 20px; letter-spacing: -.01em; font-family: var(--sans); font-variant-numeric: tabular-nums; margin-left: 6px; }
.ai__say { margin-top: 12px !important; font: 500 14.5px/1.35 var(--sans) !important; color: var(--ink) !important; min-height: 2.7em; }
.ai__say.is-new { animation: logIn .45s var(--out); }
.ai.is-broken .ai__say { color: var(--red) !important; } .ai.is-confirmed .ai__say { color: var(--green) !important; }
.ai.is-broken .ai.is-broken .scap::after { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(233,180,76,.15)); transform: scaleX(var(--k, 0)); transform-origin: left; }
@media (min-width: 861px) { .scap--right { right: calc(var(--gut) + 104px); } }

/* chain + graph scene */
.c-block rect.c-body { fill: #0e1116; stroke: rgba(236,238,241,.2); stroke-width: 1.2; }
.c-block.is-target rect.c-body { stroke: rgba(233,180,76,.55); }
.c-num { font: 560 15px var(--sans); font-variation-settings: "wdth" 110; fill: var(--ink); letter-spacing: -.01em; }
.c-meta { font: 500 9px var(--mono); fill: var(--ink-3); letter-spacing: .04em; }
.c-row rect { fill: rgba(236,238,241,.05); }
.c-row text { font: 400 5.6px var(--mono); fill: var(--ink-2); font-variant-ligatures: none; }
.c-row .c-row__m { fill: var(--ink-3); }
.c-row--hot rect { fill: rgba(233,180,76,.14); stroke: rgba(233,180,76,.7); stroke-width: .5; transition: opacity .3s; }
.c-row--hot text, .c-row--hot .c-row__m { fill: var(--gold); }
.c-spine { stroke: rgba(236,238,241,.14); stroke-width: 1.4; }
.c-lane { font: 500 11px var(--mono); letter-spacing: .16em; fill: var(--ink-3); }
/* world dressing */
.w-dot { fill: rgba(236,238,241,.16); }
.w-scan { stroke: var(--gold); stroke-width: 1.2; }
.c-block rect.c-body { transition: stroke .35s; }
.c-block.is-scan rect.c-body { stroke: rgba(233,180,76,.5); }
.c-chk { font: 500 7px var(--mono); letter-spacing: .06em; fill: var(--green); fill-opacity: 0; transition: fill-opacity .5s; }
.c-block.is-seen .c-chk { fill-opacity: .85; }
.c-block.is-case.is-target .c-chk { fill: var(--red); }
.c-block.is-inc rect.c-body, .c-block.is-inc .f-body { stroke: var(--red) !important; }
.c-block.is-inc .c-chk { fill: var(--red); fill-opacity: 1; }
.c-block.is-inc .c-meta { fill: var(--red); }
.c-tag__n { font: 600 17px var(--sans); font-variation-settings: "wdth" 110; fill: var(--ink); letter-spacing: -.01em; }
.c-tag__a { font: 600 22px var(--sans); font-variation-settings: "wdth" 112; fill: var(--red); letter-spacing: -.02em; }
.c-block.is-case:not(.is-target) .c-num { fill: var(--ink); }
.c-block.is-case .c-meta { fill: var(--ink-2); }
.g-halo { fill: none; stroke-width: 14; stroke: transparent; transition: stroke .4s; }
.g-node.is-hot .g-halo { stroke: rgba(233,180,76,.12); }
.g-node.is-bad .g-halo { stroke: rgba(255,93,77,.16); }
.g-node.is-ok .g-halo { stroke: rgba(79,214,164,.16); }
.c-block.is-ok rect.c-body { stroke: rgba(79,214,164,.75); }
.w-branch { fill: none; stroke: rgba(233,180,76,.75); stroke-width: 1.2; }
.f-body--fork { fill: #0a0c10; stroke: rgba(233,180,76,.75); stroke-width: 1.2; stroke-dasharray: 5 4; transition: stroke .4s; }
.f-body--fork.is-ok { stroke: rgba(79,214,164,.8); }
.f-head { font: 500 6.6px var(--mono); fill: var(--ink-3); letter-spacing: .05em; font-variant-ligatures: none; }
.f-head .v { fill: var(--ink-2); } .f-head .gold { fill: var(--gold); }
.f-tab { font: 500 7px var(--mono); letter-spacing: .2em; fill: var(--ink-3); }
.f-tab--fork { fill: var(--gold); }
.c-block.is-ok .f-tab { fill: var(--green); }
.m-txt { font: 400 5.6px var(--mono); fill: var(--ink-2); font-variant-ligatures: none; }
#mTx { fill: var(--gold); }
/* contract graph (graph units; the frame scales it to ~0.3) */
.g-edge { fill: none; stroke: rgba(236,238,241,.26); stroke-width: 2.6; }
.g-node rect { fill: url(#nodeFill); stroke: rgba(236,238,241,.22); stroke-width: 2; transition: stroke .35s; }
.g-node--ext rect { fill: #0a0c10; stroke-dasharray: 7 6; }
.g-node .g-dot { fill: var(--ink-4); transition: fill .35s; }
.g-node.is-hot rect { stroke: var(--gold); stroke-width: 2.6; } .g-node.is-hot .g-dot { fill: var(--gold); }
.g-node.is-bad rect { stroke: var(--red); stroke-width: 2.6; } .g-node.is-bad .g-dot { fill: var(--red); }
.g-node.is-ok rect { stroke: var(--green); stroke-width: 2.6; } .g-node.is-ok .g-dot { fill: var(--green); }
.g-title { font: 560 20px var(--sans); font-variation-settings: "wdth" 110; fill: var(--ink); letter-spacing: -.02em; }
.g-sub { font: 500 11px var(--mono); fill: var(--ink-3); letter-spacing: .04em; }
.g-part { fill: var(--gold); }
.g-pulse { fill: #ffe7b0; stroke: rgba(233,180,76,.35); stroke-width: 8; }
.g-ripple { fill: none; stroke-width: 3; }
.g-tag rect { fill: rgba(7,8,10,.94); stroke-width: 1.6; }
.g-tag text { font: 500 11.5px var(--mono); letter-spacing: .03em; font-variant-ligatures: none; }
.g-tag--gold rect { stroke: rgba(233,180,76,.6); } .g-tag--gold text { fill: var(--gold); }
.g-tag--red rect { stroke: rgba(255,93,77,.65); } .g-tag--red text { fill: var(--red); }
.g-tag--green rect { stroke: rgba(79,214,164,.65); } .g-tag--green text { fill: var(--green); }
.f-ok rect { stroke-width: .8; }
.g-try { fill: none; stroke: rgba(236,238,241,.55); stroke-width: 1.6; }
.g-path { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.g-path--red { stroke: var(--red); filter: drop-shadow(0 0 8px rgba(255,93,77,.6)); }
.g-path--green { stroke: var(--green); stroke-dasharray: 16 12; }
/* step 5: simulations of the fork */
.sim__wire { fill: none; stroke: var(--gold); stroke-width: .8; }
.sim__b { fill: #0d1015; stroke: rgba(236,238,241,.16); stroke-width: .8; transition: stroke .3s, fill .3s; }
.sim.is-run .sim__b { stroke: rgba(233,180,76,.6); }
.sim.is-held .sim__b { stroke: rgba(236,238,241,.22); }
.sim.is-broken .sim__b { stroke: var(--red); fill: #1a0d0c; }
.sim.is-dim { opacity: .25; }
.sim__n { font: 500 5.8px var(--mono); fill: var(--ink-3); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.sim__s { font: 500 5.2px var(--mono); fill: var(--ink-4); letter-spacing: .08em; text-transform: uppercase; }
.sim.is-run .sim__s { fill: var(--gold); } .sim.is-held .sim__s { fill: var(--green); } .sim.is-broken .sim__s { fill: var(--red); }
.sim__pool { fill: rgba(236,238,241,.04); stroke: rgba(236,238,241,.25); stroke-width: .6; }
.sim.is-broken .sim__pool { stroke: var(--red); }
.sim__pl { font: 500 5px var(--mono); fill: var(--ink-3); letter-spacing: .06em; }
.sim__gbg { fill: rgba(236,238,241,.08); }
.sim__gf { fill: var(--gold); }
.sim.is-broken .sim__gf { fill: var(--red); }
.sim__rule { stroke: var(--red); stroke-width: .8; stroke-dasharray: 1.6 1.2; }
.sim__eye { color: var(--gold); }
.sim__eye-bg { fill: #0b0a07; stroke: currentColor; stroke-opacity: .5; stroke-width: .8; }
.sim__mark path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.sim__eye.is-hit { color: var(--red); } .sim__eye.is-hit .g-agent__glow { fill: rgba(255,93,77,.2); }
.ai__eye { width: 14px; height: 14px; display: inline-block; color: var(--gold); }
.ai__eye .eye { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 4px rgba(233,180,76,.6)); }
.ai.is-broken .ai__eye { color: var(--red); } .ai.is-confirmed .ai__eye { color: var(--green); }
/* step 5: the Argus AI at work */

.g-agent__glow { fill: rgba(233,180,76,.16); }

 

/* ─────────────────────────── Hand-off ─────────────────────────── */
.handoff {
  position: relative; z-index: 4; margin-top: -100vh; padding-top: 30vh; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,6,7,0) 0, rgba(5,6,7,.6) 14vh, rgba(5,6,7,.94) 24vh, var(--bg) 30vh);
}
.handoff > * { pointer-events: auto; }
.ticker { position: relative; background: var(--bg); border-top: 1px solid var(--line-2); padding: 18px 0; }
.ticker::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(233,180,76,.6) 30%, rgba(233,180,76,.6) 70%, transparent); }

@keyframes tickSweep { from { background-position: 115% 0; } 70%, to { background-position: -15% 0; } }

.tick.is-new i::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: hudPulse 1.4s ease-in-out infinite; }
.tick { display: inline-flex; align-items: baseline; gap: 10px; margin-right: 10px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: linear-gradient(180deg, #0f1217, #0a0c10); font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; }
.tick b { color: var(--ink); font-weight: 500; }
.tick i { font-style: normal; color: var(--green); }
.tick.is-new { border-color: rgba(233,180,76,.45); box-shadow: 0 0 0 3px rgba(233,180,76,.06); }
.tick.is-new i { color: var(--gold); }
.strip { border-top: 0; }

.promise { position: relative; background: var(--bg); padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--line-2); }
.promise::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(233,180,76,.6) 30%, rgba(233,180,76,.6) 70%, transparent); }
.promise__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.promise__item { padding-right: 36px; }
.promise__item + .promise__item { padding-left: 36px; border-left: 1px solid var(--line); }
.promise__item h2 { font-size: clamp(36px, 3.8vw, 60px); }
.promise__item:first-child h2 { color: var(--gold); }
.promise__item p { margin-top: 18px; color: var(--ink-2); font-size: 16px; max-width: 340px; }

/* ─────────────────────────── Watch thread ─────────────────────────── */
.spine {
  position: fixed; top: 0; bottom: 0; left: calc(var(--cl, 64px) - 30px); width: 1px; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .7s var(--out);
  background: linear-gradient(180deg, transparent 0, rgba(233,180,76,.38) 16%, rgba(233,180,76,.38) 46%, rgba(236,238,241,.12) 46%, rgba(236,238,241,.12) 84%, transparent 100%);
}
body.spine-on .spine { opacity: 1; }
.spine__eye { position: absolute; left: -11px; top: 46%; width: 23px; height: 23px; margin-top: -11.5px; padding: 4px; border-radius: 50%; background: var(--bg); color: var(--gold); box-shadow: 0 0 0 1px rgba(233,180,76,.45), 0 0 22px rgba(233,180,76,.22); }
.spine__eye .eye { width: 100%; height: 100%; display: block; animation: eyeSpin 40s linear infinite; }
@keyframes eyeSpin { to { transform: rotate(360deg); } }
.sec__head { position: relative; }
.sec__head::before {
  content: ""; position: absolute; left: -34.5px; top: 1px; width: 9px; height: 9px; border-radius: 50%; display: none;
  border: 1px solid var(--line-3); background: var(--bg); transition: border-color .6s, background .6s, box-shadow .6s;
}
.sec__head.is-seen::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 5px rgba(233,180,76,.1), 0 0 16px rgba(233,180,76,.55); }
@media (min-width: 1081px) { .sec__head::before { display: block; } }
@media (max-width: 1080px) { .spine { display: none; } }

/* section entrances: a hairline draws in before each label, the intro sharpens into focus */
.js .sec__head .lbl::before { content: ""; display: inline-block; vertical-align: middle; width: 0; height: 1px; margin: -2px 0 0; background: currentColor; transition: width .9s var(--out) .2s, margin .9s var(--out) .2s; }
.js .sec__head .lbl.is-in::before { width: 28px; margin-right: 12px; }
.js .sec__head .lead.rv { filter: blur(8px); transition: opacity 1s var(--out), transform 1s var(--out), filter 1.2s var(--out); }
.js .sec__head .lead.rv.is-in { filter: none; }

/* ─────────────────────────── Scenes (pinned sections after the demo) ─────────────────────────── */
.scene { position: relative; border-top: 1px solid var(--line); }
.scene__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.scene--process { height: 400vh; }
/* services: a plain grid, no pin */
.scene--services { height: auto; }
.scene--services .scene__pin { position: relative; height: auto; padding: clamp(96px, 10vw, 140px) 0; }
.scene--services .svc__track { display: grid; grid-template-columns: repeat(4, 1fr); width: auto; transform: none !important; padding: 0 max(var(--gut), calc((100vw - var(--wrap)) / 2)); }
.scene--services .svc { width: auto; }
.scene__grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(40px, 6vw, 96px); align-items: center; width: 100%; padding-top: 40px; }
.scene__head { margin-bottom: 0; }
.scene__head .lead { margin-top: 26px; }
.scene__steps { list-style: none; margin: 40px 0 0; padding: 0; display: flex; gap: 14px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); }
.scene__steps li { flex: 1; padding-top: 12px; border-top: 1px solid var(--line-2); transition: color .4s, border-color .4s; }
.scene__steps li.is-on { color: var(--gold); border-color: var(--gold); }

/* approach: one finding, opinion → proof */
.finding { position: relative; padding: 30px 32px 28px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel)); transition: border-color .7s, box-shadow .7s; }
.finding.is-argus { border-color: rgba(233,180,76,.4); box-shadow: 0 0 0 1px rgba(233,180,76,.07), 0 50px 120px -50px rgba(233,180,76,.35); }
.finding.is-argus::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .8; }
 .finding h3, .finding dd { display: grid; }
 .finding h3 > *, .finding dd > * { grid-area: 1 / 1; }

.finding h3 { margin: 22px 0 18px; font-size: clamp(22px, 2vw, 28px); line-height: 1.12; letter-spacing: -.025em; font-variation-settings: "wdth" 108; }

.finding__row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); }
.finding__row dt { font: 500 11px/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.finding__row dd { margin: 0; color: var(--ink-2); }

.term__l { display: block; white-space: pre-wrap; opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .5s var(--out); }
.term__l.is-in { opacity: 1; transform: none; }

/* services: horizontal track */
.scene--services .scene__pin { flex-direction: column; justify-content: center; align-items: stretch; }
.scene--services .scene__head h2 { font-size: clamp(34px, 4vw, 60px); }
.svc__ico { position: relative; width: 76px; height: 76px; margin: 22px 0 22px; display: grid; place-items: center; border-radius: 20px;
  border: 1px solid rgba(233,180,76,.28); background: radial-gradient(120% 120% at 30% 20%, rgba(233,180,76,.14), rgba(233,180,76,.02) 60%), var(--panel-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 40px -20px rgba(233,180,76,.35); }
.svc__ico svg { width: 40px; height: 40px; fill: var(--gold); opacity: 0; transform: scale(.82) translateY(4px); transition: opacity .6s var(--out), transform .8s var(--out); }
.svc.is-shown .svc__ico svg { opacity: 1; transform: none; }
.scene__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }

.svc__track { display: flex; gap: 24px; width: max-content; padding: 0 max(var(--gut), calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.svc { width: min(440px, 80vw); padding: 28px 30px 30px; border: 1px solid var(--line-2); border-radius: var(--r); background: linear-gradient(180deg, var(--panel-2), var(--panel));
  opacity: calc(.4 + var(--v) * .6); transform: translateY(calc((1 - var(--v)) * 20px)); }
.svc h3 { margin: 6px 0 12px; font-size: 24px; letter-spacing: -.025em; font-variation-settings: "wdth" 108; }
.svc p { color: var(--ink-2); font-size: 15.5px; }
.svc .tags { margin-top: 22px; }

/* process: steps and what you receive */
.scene--process .scene__pin { padding-top: 96px; }
.scene--process .scene__head h2 { font-size: clamp(34px, 3.8vw, 58px); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: st; }
.step { position: relative; counter-increment: st; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); }
.step::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 500 12px/1 var(--mono); color: var(--ink-4); transition: color .4s; }
.step__when { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); transition: color .4s; }
.step h3 { margin-top: 6px; font-size: 19px; letter-spacing: -.02em; color: var(--ink-3); transition: color .4s; font-variation-settings: "wdth" 106; }
.step p { max-height: 0; overflow: hidden; opacity: 0; color: var(--ink-2); font-size: 15px; transition: max-height .6s var(--out), opacity .5s, margin .6s var(--out); }
.step.is-done h3 { color: var(--ink-2); } .step.is-done::before { color: var(--gold); }
.step.is-on::before, .step.is-on .step__when { color: var(--gold); }
.step.is-on h3 { color: var(--ink); }
.step.is-on p { max-height: 120px; opacity: 1; margin-top: 8px; }
.pile { position: relative; height: min(440px, 62vh); }
.dl { position: absolute; left: 0; right: 0; top: 50%; padding: 24px 26px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(calc(-50% + 70px)) scale(.97); transition: opacity .55s var(--out), transform .8s var(--out), filter .6s; }
.dl.is-in { opacity: calc(1 - var(--depth) * .28); transform: translateY(calc(-50% - var(--depth) * 26px)) scale(calc(1 - var(--depth) * .045)); filter: brightness(calc(1 - var(--depth) * .2)); }
.dl.is-in[style*="--depth: 0"], .dl.is-in[style*="--depth:0"] { border-color: rgba(233,180,76,.35); }
.dl__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dl__kind { font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.dl__tag { flex: none; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 7px 10px; border: 1px solid rgba(233,180,76,.35); border-radius: 999px; }
.dl__tag--red { color: var(--red); border-color: rgba(255,93,77,.4); } .dl__tag--green { color: var(--green); border-color: rgba(79,214,164,.4); }
.dl__kv div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dl__kv dt { font: 500 11px/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); } .dl__kv dd { margin: 0; color: var(--ink-2); }
.dl__list { margin: 14px 0 0; padding-left: 22px; color: var(--ink-2); display: grid; gap: 9px; }
.dl__list li::marker { color: var(--gold); font: 500 12px var(--mono); }
.dl__p { margin-top: 14px; color: var(--ink-2); }
.dl__p--t { color: var(--ink); font-size: 15.5px; }
.dl__p--t + .dl__p { margin-top: 6px; font-size: 14px; }
.dl__code { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #06070a; border: 1px solid var(--line); font: 400 12.5px/1.8 var(--mono); color: var(--ink-2); white-space: pre-wrap; }
.dl__bar { margin-top: 16px; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; } .dl__bar i { display: block; height: 100%; width: 100%; background: var(--green); }
.dl__files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.dl__files li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; }
.dl__files b { font: 500 13px var(--mono); color: var(--ink); } .dl__files span { color: var(--ink-3); }

/* contact: the eye returns */
.contact__eye { width: 120px; height: 120px; margin-bottom: 30px; color: var(--gold); }
.c-mark { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 22px rgba(233,180,76,.25)); }
.contact__eye .lgs { animation-play-state: paused; }
.contact__eye.is-in .lgs { animation-play-state: running; }
.c-mark__node { fill: var(--gold); opacity: 0; }
.contact__eye.is-in .c-mark__node { animation: nodeBlink 6s calc(2.4s + var(--i) * .9s) ease-in-out infinite; }
@keyframes nodeBlink { 0%, 90%, 100% { opacity: 0; } 95% { opacity: .9; } }

/* ─────────────────────────── Strip ─────────────────────────── */
.strip { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.strip__cell { padding: 30px 28px 32px 0; }
.strip__cell + .strip__cell { padding-left: 28px; border-left: 1px solid var(--line); }
.strip__cell p { margin-top: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ─────────────────────────── Sections ─────────────────────────── */
.sec { position: relative; padding: clamp(96px, 10vw, 156px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec__head { margin-bottom: clamp(48px, 6vw, 80px); }
.sec__head h2 { margin-top: 22px; }
.sec__head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.sec__head--split .lead { padding-bottom: 8px; }
.source { margin-top: 28px; font: 400 12px/1.5 var(--mono); color: var(--ink-3); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 40px 32px 0 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.num {
  display: block; font-size: clamp(52px, 6.4vw, 104px); line-height: .88; letter-spacing: -.055em; font-weight: 300;
  font-variation-settings: "wdth" 118; font-variant-numeric: tabular-nums;
}
.stat:first-child .num { color: var(--gold); }
.stats--cost { margin-bottom: clamp(48px, 6vw, 80px); }
.stats--cost .stat:first-child .num { color: var(--red); }
.stat p { margin-top: 22px; color: var(--ink-2); max-width: 280px; }

/* comparison */

.cmd__copy { flex: none; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s; }
.cmd__copy:hover { color: var(--ink); border-color: var(--line-3); }

/* ─────────────────────────── Services ─────────────────────────── */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.service__n { font: 500 12px/1 var(--mono); color: var(--gold); letter-spacing: .1em; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags span { font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; }

/* ─────────────────────────── Process ─────────────────────────── */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.cycle li { position: relative; padding: 30px 24px 0 0; }
.cycle li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.cycle li::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--gold); transition: width 1.2s var(--out); }
.cycle li + li::before { left: -1px; }
.cycle.is-in li::before { width: 100%; }
.cycle.is-in li:nth-child(2)::before { transition-delay: .15s; } .cycle.is-in li:nth-child(3)::before { transition-delay: .3s; }
.cycle.is-in li:nth-child(4)::before { transition-delay: .45s; } .cycle.is-in li:nth-child(5)::before { transition-delay: .6s; }
.cycle h3 { margin: 30px 0 10px; font-size: 24px; letter-spacing: -.03em; font-variation-settings: "wdth" 108; }
.cycle li:last-child h3 { color: var(--gold); }
.cycle p { color: var(--ink-2); font-size: 15px; }

/* ─────────────────────────── Ledger ─────────────────────────── */
.ledger { border-top: 1px solid var(--line-2); }
.ledger__row { display: grid; grid-template-columns: 96px 1fr 140px 2.4fr 1.3fr; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); transition: background .3s; }
.ledger__row:not(.ledger__row--head):hover { background: linear-gradient(90deg, transparent, rgba(236,238,241,.025), transparent); }
.ledger__row--head { padding: 14px 0; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ledger__name { font-size: 19px; color: var(--ink); letter-spacing: -.02em; font-variation-settings: "wdth" 108; font-weight: 520; }
.ledger__row > .mono:last-child { color: var(--green); }
.ledger__loss { display: flex; flex-direction: column; gap: 8px; }
.ledger__bar { display: block; height: 3px; width: calc(var(--w, .5) * 100%); background: linear-gradient(90deg, var(--red), rgba(255,93,77,.25)); border-radius: 2px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--out) .25s; }
.ledger__row.is-in .ledger__bar { transform: none; }
.ledger__note { margin-top: 28px; max-width: 760px; color: var(--ink-2); font-size: 15px; }

/* ─────────────────────────── Contact ─────────────────────────── */
.reach { padding: 0; overflow: hidden; }
.reach__main { padding: clamp(28px, 4vw, 48px); }
.reach__lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; color: var(--ink); max-width: 720px; letter-spacing: -.01em; }
.reach__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.reach__copy { height: 50px; padding: 0 18px; border-radius: 999px; }
.reach__urgent { display: flex; align-items: center; gap: 14px; padding: 20px clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; transition: background .3s, color .3s; }
.reach__urgent b { color: var(--red); font-weight: 560; }
.reach__urgent:hover { background: var(--red-a); color: var(--ink); }
.reach__go { margin-left: auto; color: var(--red); transition: transform .4s var(--out); }
.reach__urgent:hover .reach__go { transform: translateX(4px); }

/* ─────────────────────────── Footer ─────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 14.5px; color: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 12px; }
.footer__grid .lbl { margin-bottom: 6px; }
.footer__grid a:not(.brand) { transition: color .2s; width: fit-content; }
.footer__grid a:not(.brand):hover { color: var(--ink); }
.footer__brand p { margin-top: 16px; max-width: 300px; color: var(--ink-3); }
.footer__base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }

/* code fonts: keep `=>` literal; placed after the `font` shorthands that reset it */
code, pre { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }

/* ─────────────────────────── Responsive ─────────────────────────── */
@media (max-width: 1080px) {
  .nav__plain { display: none; }
  .nav__toggle { display: inline-block; }
  .nav__right { gap: 10px; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(5,6,7,.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px; font-size: 18px; color: var(--ink);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav.is-open { background: rgba(5,6,7,.97); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  
  .strip__cell:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip__cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ledger__row { grid-template-columns: 90px 1fr 100px; }
  .ledger__row > :nth-child(4), .ledger__row > :nth-child(5) { grid-column: 2 / -1; }
  .ledger__row--head > :nth-child(4), .ledger__row--head > :nth-child(5) { display: none; }
  .cycle { grid-template-columns: 1fr; }
  .cycle li, .cycle li + li { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .cycle li::before { display: none; }
  .cycle h3 { margin-top: 14px; }
}
@media (max-width: 860px) {
  .story { height: 760vh; }
  .scene__grid, .scene__grid--process { grid-template-columns: 1fr; gap: 28px; padding-top: 64px; }
  .scene--services { height: auto; }
  .scene--services .scene__pin { position: relative; height: auto; padding: 96px 0; }
  .svc__track { flex-direction: column; width: auto; transform: none !important; padding: 0 var(--gut); }
  .svc { width: auto; }
  .scene--approach { height: auto; }
  .scene--approach .scene__pin { position: relative; height: auto; padding: 96px 0; }
  .scene__steps { display: none; }
  .finding { padding: 22px 20px; }
  .finding__row { grid-template-columns: 1fr; gap: 4px; }
  
  .scene--process { height: auto; }
  .scene--process .scene__pin { position: relative; height: auto; padding: 96px 0; }
  .step h3 { color: var(--ink); } .step::before, .step__when { color: var(--gold); }
  .step p { max-height: none; opacity: 1; margin-top: 8px; }
  .pile { height: auto; display: grid; gap: 14px; }
  .dl, .dl.is-in { position: relative; top: auto; opacity: 1; transform: none; filter: none; padding: 18px 20px; }
  .dl__kind { font-size: 15px; }
  .story__hero { padding-top: 104px; }
  
  
  
  
  
  
  
  
   
  
   
  
  
  
  
  .hero-art { --aw: min(100vw, 46vh); left: calc(50% - var(--aw) / 2); top: auto; bottom: calc(150px - var(--aw) / 2); }
  .story__scrim { background: linear-gradient(180deg, rgba(5,6,7,.92) 0%, rgba(5,6,7,.82) 52%, rgba(5,6,7,.2) 80%, rgba(5,6,7,.55) 100%); }
  .scap, .scap--left, .scap--right, .scap--bottom { left: 16px; right: 16px; top: auto; bottom: 18px; width: auto; transform: translateY(18px); text-align: left; padding: 18px 20px; }
  .scap.is-on, .scap--left.is-on, .scap--right.is-on, .scap--bottom.is-on { transform: none; }
  .scap h3 { font-size: 22px; margin: 10px 0 6px; }
  .scap p { font-size: 14.5px; }
  .story__rail { display: none; }
  .scap--ai > p { display: none; }
  .ai__say { min-height: 0; font-size: 13.5px !important; margin-top: 8px !important; }
  .ai { margin-top: 10px; padding: 10px 12px; }
  .hud__x, .hud__bar { display: none; }
  
  
  .scap::before { font-size: 40px; top: 12px; right: 16px; }
  .sec__head--split { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
   .services { grid-template-columns: 1fr; }
  .readout span:nth-child(n+2) { display: none; }
}
@media (max-width: 560px) {
  .nav .btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
  
  .strip__cell, .strip__cell + .strip__cell, .strip__cell:nth-child(3) { padding: 24px 0; border-left: 0; }
  .strip__cell + .strip__cell { border-top: 1px solid var(--line); }
  
  
  .ledger__row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .ledger__row > :nth-child(1) { grid-column: 1 / -1; }
  .ledger__row--head { display: none; }
  .ledger__row > :nth-child(4), .ledger__row > :nth-child(5) { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-split] .line > span, .js .rv { transform: none; opacity: 1; }
  .lgs { stroke-dashoffset: 0; } .art-fade { opacity: 1; }
}

/* services grid: tablet and phone */
@media (max-width: 1080px) { .scene--services .svc__track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .scene--services .svc__track { grid-template-columns: 1fr; padding: 0 var(--gut); } }

@media (max-width: 860px) {
  .promise__grid { grid-template-columns: 1fr; margin-top: 20px; }
  .promise__item, .promise__item + .promise__item { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .promise__item h2 { font-size: 36px; }
}

/* ─────────────────────────── Large screens ───────────────────────────
   --s is set from the viewport (1 on laptops, up to 1.8 on big monitors). Everything
   sized in px is multiplied by it so type and layout grow with the screen. */
@media (min-width: 861px) {
  :root { --wrap: calc(1320px * var(--s, 1)); --gut: clamp(20px, 4.5vw, calc(64px * var(--s, 1))); }
  body { font-size: calc(16px * var(--s, 1)); }
  .lbl { font-size: calc(11.5px * var(--s, 1)); }
  .btn { height: calc(50px * var(--s, 1)); padding: 0 calc(24px * var(--s, 1)); font-size: calc(15px * var(--s, 1)); }
  .btn--sm { height: calc(40px * var(--s, 1)); padding: 0 calc(18px * var(--s, 1)); font-size: calc(14px * var(--s, 1)); }
  .nav__inner { height: calc(72px * var(--s, 1)); }
  .nav__links, .nav__plain { font-size: calc(14.5px * var(--s, 1)); }
  .brand img:first-child { width: calc(36px * var(--s, 1)); height: calc(36px * var(--s, 1)); }
  .brand__word { height: calc(26px * var(--s, 1)); }
  .h-display { font-size: clamp(40px, 5.8vw, calc(92px * var(--s, 1))); }
  h2 { font-size: clamp(32px, 3.8vw, calc(58px * var(--s, 1))); }
  .lead { font-size: clamp(17px, 1.45vw, calc(20px * var(--s, 1))); max-width: calc(560px * var(--s, 1)); }
  .hero__lead { margin-top: calc(30px * var(--s, 1)); }

  /* story overlays */
  .scap { width: min(calc(400px * var(--s, 1)), 34vw); padding: calc(26px * var(--s, 1)) calc(28px * var(--s, 1)) calc(28px * var(--s, 1)); }
  .scap--ai { width: min(calc(430px * var(--s, 1)), 36vw); }
  .scap--bottom { width: min(calc(560px * var(--s, 1)), 90vw); }
  .scap h3 { font-size: clamp(22px, 1.95vw, calc(28px * var(--s, 1))); }
  .scap p { font-size: calc(16px * var(--s, 1)); }
  .scap--ai p { font-size: calc(15px * var(--s, 1)); }
  .scap::before { font-size: calc(46px * var(--s, 1)); }
  .story__hud { top: calc(92px * var(--s, 1)); font-size: calc(11px * var(--s, 1)); padding: calc(10px * var(--s, 1)) calc(18px * var(--s, 1)); gap: calc(12px * var(--s, 1)); }
  .hud__eye { width: calc(15px * var(--s, 1)); height: calc(15px * var(--s, 1)); }
  .story__rail { gap: calc(14px * var(--s, 1)); }
  .story__rail li { font-size: calc(10px * var(--s, 1)); padding-right: calc(14px * var(--s, 1)); }
  .rail__eye { width: calc(22px * var(--s, 1)); height: calc(22px * var(--s, 1)); margin-top: calc(-11px * var(--s, 1)); right: calc(-32px * var(--s, 1)); }
  .ai { padding: calc(14px * var(--s, 1)); }
  .ai__head { font-size: calc(10.5px * var(--s, 1)); }
  .ai__n b { font-size: calc(20px * var(--s, 1)); }
  .ai__say { font-size: calc(14.5px * var(--s, 1)) !important; }
  .ai__eye { width: calc(14px * var(--s, 1)); height: calc(14px * var(--s, 1)); }

  /* sections */
  .promise__item h2 { font-size: clamp(36px, 3.8vw, calc(60px * var(--s, 1))); }
  .promise__item p { font-size: calc(16px * var(--s, 1)); max-width: calc(340px * var(--s, 1)); }
  .svc { padding: calc(28px * var(--s, 1)) calc(30px * var(--s, 1)); }
  .svc h3 { font-size: calc(24px * var(--s, 1)); }
  .svc p { font-size: calc(15.5px * var(--s, 1)); }
  .svc__ico { width: calc(76px * var(--s, 1)); height: calc(76px * var(--s, 1)); }
  .svc__ico svg { width: calc(40px * var(--s, 1)); height: calc(40px * var(--s, 1)); }
  .tags span { font-size: calc(11px * var(--s, 1)); }
  .step__when { font-size: calc(10.5px * var(--s, 1)); }
  .step h3 { font-size: calc(19px * var(--s, 1)); }
  .step p { font-size: calc(15px * var(--s, 1)); }
  .pile { height: min(calc(440px * var(--s, 1)), 62vh); }
  .dl { padding: calc(24px * var(--s, 1)) calc(26px * var(--s, 1)); }
  .dl__kind { font-size: calc(17px * var(--s, 1)); }
  .dl__tag, .dl__kv dt { font-size: calc(10.5px * var(--s, 1)); }
  .dl__kv div { grid-template-columns: calc(96px * var(--s, 1)) 1fr; }
  .dl__p--t { font-size: calc(15.5px * var(--s, 1)); }
  .dl__p--t + .dl__p, .dl__files li { font-size: calc(14px * var(--s, 1)); }
  .dl__code { font-size: calc(12.5px * var(--s, 1)); }
  .dl__files b { font-size: calc(13px * var(--s, 1)); }
  .num { font-size: clamp(52px, 6.4vw, calc(104px * var(--s, 1))); }
  .stat p { max-width: calc(280px * var(--s, 1)); }
  .ledger__row { font-size: calc(15px * var(--s, 1)); }
  .ledger__row--head { font-size: calc(11px * var(--s, 1)); }
  .ledger__name { font-size: calc(19px * var(--s, 1)); }
  .ledger__note { font-size: calc(15px * var(--s, 1)); max-width: calc(760px * var(--s, 1)); }
  .source { font-size: calc(12px * var(--s, 1)); }
  .reach__lead { font-size: clamp(19px, 1.7vw, calc(24px * var(--s, 1))); max-width: calc(720px * var(--s, 1)); }
  .reach__urgent { font-size: calc(15px * var(--s, 1)); }
  .footer { font-size: calc(14.5px * var(--s, 1)); }
  .contact__eye { width: calc(120px * var(--s, 1)); height: calc(120px * var(--s, 1)); }
}
@media (min-width: 1081px) { .ledger__row { grid-template-columns: calc(96px * var(--s, 1)) 1fr calc(140px * var(--s, 1)) 2.4fr 1.3fr; } }
@media (min-width: 861px) and (max-width: 1180px) { .stats--cost .stat { min-width: 0; } .stats--cost .num { font-size: 5.4vw; } }

/* phones: each "How we work" deliverable sits directly under its step, instead of all
   five stacking after the list. The header, list and pile dissolve into one flex column
   and CSS order interleaves step 1, card 1, step 2, card 2 ... */
@media (max-width: 860px) {
  .scene__grid--process { display: flex; flex-direction: column; gap: 0; }
  .scene__grid--process .scene__head, .scene__grid--process .steps, .scene__grid--process .pile { display: contents; }
  .scene__grid--process .scene__head > .lbl { order: 0; align-self: flex-start; }
  .scene__grid--process .scene__head > h2 { order: 1; align-self: flex-start; margin: 22px 0 18px; text-align: left; }
  .scene__grid--process .step:nth-child(1) { order: 10; } .scene__grid--process .dl:nth-child(1) { order: 11; }
  .scene__grid--process .step:nth-child(2) { order: 20; } .scene__grid--process .dl:nth-child(2) { order: 21; }
  .scene__grid--process .step:nth-child(3) { order: 30; } .scene__grid--process .dl:nth-child(3) { order: 31; }
  .scene__grid--process .step:nth-child(4) { order: 40; } .scene__grid--process .dl:nth-child(4) { order: 41; }
  .scene__grid--process .step:nth-child(5) { order: 50; } .scene__grid--process .dl:nth-child(5) { order: 51; }
  .scene__grid--process .dl, .scene__grid--process .dl.is-in { margin: 4px 0 26px 36px; }
}
/* phones: the header button never wraps; contact buttons share a line */
@media (max-width: 560px) {
  .nav .btn--sm { white-space: nowrap; padding: 0 13px; }
  .reach__actions { gap: 10px; }
  .reach__actions .btn { white-space: nowrap; }
  .reach__actions .btn { padding: 0 18px; font-size: 14px; }
  .reach__copy { height: 44px; padding: 0 14px; }
}
