/* Agentloom · weaving / loom lanes · slate blue-grey / linen / rust · Sora + IBM Plex Serif */
:root {
  --bg: #1e2329; --bg-2: #232930; --bg-3: #2a313a; --line: rgba(233,226,212,.12); --line-2: rgba(233,226,212,.22);
  --linen: #e9e2d4; --linen-2: #cfc7b8; --muted: #9aa0a6; --rust: #b4583a; --rust-2: #c86a4b; --sage: #a9a37f; --steel: #8fa1ad;
  --ok: #9fb48c; --bad: #d07a5f;
  --sans: 'Sora', system-ui, sans-serif; --serif: 'IBM Plex Serif', Georgia, serif; --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --rail: 168px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--linen); font: 400 16.5px/1.65 var(--serif); overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: repeating-linear-gradient(90deg, rgba(233,226,212,.018) 0 1px, transparent 1px 14px), repeating-linear-gradient(0deg, rgba(233,226,212,.014) 0 1px, transparent 1px 14px); }
main, .foot, .bar { position: relative; z-index: 1; }
a { color: inherit; }
code, .mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--rust); color: #fff; padding: 8px 12px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--rust-2); outline-offset: 3px; }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.bar.is-scrolled { background: rgba(30,35,41,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.bar__in { display: flex; align-items: center; gap: 24px; height: 70px; padding: 0 32px; max-width: 1440px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 19px var(--sans); letter-spacing: -.02em; }
.logo svg { width: 30px; height: 30px; fill: none; stroke-linecap: round; }
.logo__warp { stroke: rgba(233,226,212,.45); stroke-width: 1.4; }
.logo__weft { stroke: var(--rust); stroke-width: 2.2; stroke-linejoin: round; }
.menu { flex: 1; min-width: 0; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 2px; }
.menu a { display: flex; align-items: baseline; gap: 6px; padding: 8px 12px; text-decoration: none; font: 400 14px var(--sans); color: var(--linen-2); border-radius: 4px; transition: color .2s, background .2s; }
.menu a i { font: 400 10.5px var(--mono); font-style: normal; color: var(--rust-2); }
.menu a:hover { color: var(--linen); background: rgba(233,226,212,.06); }
.bar__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.xbtn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 4px; }
.xbtn svg { width: 14px; fill: var(--linen); }
.menubtn { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); background: transparent; border-radius: 4px; cursor: pointer; padding: 0; position: relative; }
.menubtn span[aria-hidden] { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--linen); transition: transform .3s; }
.menubtn span[aria-hidden]:nth-of-type(2) { top: 16px; } .menubtn span[aria-hidden]:nth-of-type(3) { top: 23px; }
.menu-open .menubtn span[aria-hidden]:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menubtn span[aria-hidden]:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }

/* wallet */
.wallet-slot { position: relative; }
.wb { position: relative; }
.wb-btn { font: 500 13.5px var(--sans); color: #fff; background: var(--rust); border: 0; border-radius: 4px; padding: 11px 16px; cursor: pointer; white-space: nowrap; transition: background .2s, transform .15s; }
.wb-btn:hover { background: var(--rust-2); } .wb-btn:active { transform: translateY(1px); }
.wb-btn.is-on { background: transparent; color: var(--linen); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--mono); font-size: 12.5px; }
.wb-btn.is-on::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--ok); margin-right: 8px; vertical-align: 1px; }
.wb-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 300; width: min(300px, calc(100vw - 32px)); background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); animation: drop .18s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.wb-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: none; border: 0; border-radius: 4px; color: var(--linen); font: 400 13.5px var(--sans); text-decoration: none; cursor: pointer; text-align: left; }
.wb-item:hover { background: rgba(233,226,212,.07); }
.wb-item img { width: 18px; height: 18px; }
.wb-addr { padding: 8px 12px 2px; font: 12px/1.5 var(--mono); word-break: break-all; color: var(--linen-2); }
.wb-bal { padding: 2px 12px 10px; font: 500 14px var(--sans); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.wb-note { padding: 8px 12px; font-size: 12.5px; color: var(--muted); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 14.5px var(--sans); color: #fff; background: var(--rust); border: 0; border-radius: 4px; padding: 14px 22px; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s; }
.btn:hover { background: var(--rust-2); box-shadow: 0 10px 24px -14px rgba(180,88,58,.9); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--line { background: transparent; color: var(--linen); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { background: rgba(233,226,212,.06); box-shadow: inset 0 0 0 1px var(--linen-2); }
.btn--sm { padding: 10px 14px; font-size: 13px; }
.btn.is-copied { background: #4e6b4f; color: #fff; }
.f { display: grid; gap: 6px; min-width: 0; margin: 0; }
.f > span, .f legend { font: 400 12px var(--sans); letter-spacing: .04em; color: var(--muted); padding: 0; }
.f small { color: var(--rust-2); }
.in { width: 100%; min-width: 0; font: 400 15px var(--serif); color: var(--linen); background: rgba(0,0,0,.18); border: 1px solid var(--line-2); border-radius: 4px; padding: 11px 12px; transition: border-color .2s, box-shadow .2s, background .2s; }
.in.mono, input.mono { font-family: var(--mono); font-size: 13.5px; }
.in:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px rgba(180,88,58,.2); background: rgba(0,0,0,.26); }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--linen-2) 50%), linear-gradient(135deg, var(--linen-2) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select.in option { background: var(--bg-2); }
textarea.in { resize: vertical; line-height: 1.5; }
.note { margin: 10px 0 0; font: 400 13px/1.6 var(--sans); color: var(--muted); }
.note a { color: var(--rust-2); }
.tools { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tools legend { margin-bottom: 8px; width: 100%; }
.tools label { cursor: pointer; }
.tools input { position: absolute; opacity: 0; pointer-events: none; }
.tools label span { display: inline-block; padding: 7px 11px; font: 400 12.5px var(--mono); border: 1px solid var(--line-2); border-radius: 3px; color: var(--muted); transition: all .2s; }
.tools input:checked + span { color: var(--linen); border-color: var(--rust); background: rgba(180,88,58,.14); }
.tools input:focus-visible + span { outline: 2px solid var(--rust-2); outline-offset: 2px; }
.tools--col { display: grid; grid-template-columns: 1fr 1fr; }
.tools--col label span { display: block; }
.row { display: flex; gap: 10px; align-items: end; }
.row .f { flex: 1; }
.row--btns { flex-wrap: wrap; align-items: center; }

/* states */
.shim { display: block; height: 13px; width: var(--w, 80%); margin: 10px 0; border-radius: 2px; background: linear-gradient(90deg, rgba(233,226,212,.05) 0%, rgba(233,226,212,.13) 45%, rgba(233,226,212,.05) 90%); background-size: 300% 100%; animation: shim 1.3s linear infinite; }
@keyframes shim { to { background-position: -300% 0; } }
.err { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 14px; border-left: 2px solid var(--bad); background: rgba(208,122,95,.08); color: #e7b3a2; font: 400 13.5px var(--sans); }
.err__retry { font: 500 12.5px var(--sans); background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 3px; padding: 5px 10px; cursor: pointer; }
.tick { animation: tk .9s ease-out; } @keyframes tk { from { color: var(--rust-2); } }

/* choreography */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .wi { display: inline-block; transform: translateY(110%); opacity: .2; transition: transform 1s cubic-bezier(.16,.8,.2,1), opacity 1s; transition-delay: calc(var(--i) * 60ms + 150ms); }
.is-ready .split .wi { transform: none; opacity: 1; }
.ld { opacity: 0; transform: translateY(16px); transition: opacity .9s, transform .9s cubic-bezier(.16,.8,.2,1); }
.is-ready .ld { opacity: 1; transform: none; }
.ld--1 { transition-delay: .05s; } .ld--3 { transition-delay: .75s; } .ld--4 { transition-delay: .95s; } .ld--5 { transition-delay: .4s; }
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--d, 0ms), transform .9s cubic-bezier(.16,.8,.2,1) var(--d, 0ms); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; max-width: 1440px; margin: 0 auto; padding: 48px 32px 56px; min-height: calc(100vh - 70px); }
.eyebrow { margin: 0 0 22px; font: 400 12.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rust-2); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: repeating-linear-gradient(90deg, var(--rust) 0 4px, transparent 4px 7px); }
.hero__title { margin: 0; font: 300 clamp(40px, 5vw, 74px)/1.04 var(--sans); letter-spacing: -.035em; }
.hero__sub { margin: 26px 0 30px; max-width: 46ch; font-size: 18px; color: var(--linen-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.ca { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; max-width: 100%; padding: 6px 6px 6px 12px; border: 1px solid var(--line-2); border-radius: 4px; font: 400 12px var(--sans); }
.ca span { color: var(--rust-2); letter-spacing: .1em; }
.ca code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 12px; }
.ca button { font: 500 12px var(--sans); color: #fff; background: var(--rust); border: 0; border-radius: 3px; padding: 6px 10px; cursor: pointer; }
.hero__loom { margin: 0; position: relative; min-width: 0; }
.hero__loom canvas { display: block; width: 100%; height: clamp(320px, 52vh, 560px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero__loom figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font: 400 12px var(--sans); color: var(--muted); }
#loomStep { color: var(--rust-2); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- warp strip ---------- */
.warp { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(0,0,0,.14); position: relative; }
.warp__in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.warp__c { padding: 22px 18px 26px; border-left: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.warp__c:first-child { border-left: 0; padding-left: 0; }
.warp__c span { font: 400 11.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.warp__c b { font: 300 26px/1.2 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.warp__c em { font: 400 11px var(--mono); font-style: normal; color: rgba(233,226,212,.4); }
.warp__prog { display: block; height: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.warp__prog i { display: block; height: 100%; background: var(--rust); transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.16,.8,.2,1); }
.warp__line { position: absolute; left: 0; right: 0; bottom: -6px; width: 100%; height: 12px; display: block; }

/* ---------- lanes ---------- */
.lane { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.lane--alt { background: transparent; }
.lane__rail { position: relative; border-right: 1px solid var(--line); padding-top: 112px; }
.lane__rail::before { content: ''; position: absolute; right: -4px; top: 120px; width: 7px; height: 7px; background: var(--rust); transform: rotate(45deg); }
.lane__rail > * { position: sticky; top: 100px; display: block; }
.lane__rail > .lane__name { top: 122px; }
.lane__no { font: 400 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rust-2); }
.lane__name { font: 300 22px var(--sans); color: var(--linen-2); margin-top: 4px; }
.lane__body { padding: 104px 0 104px 56px; min-width: 0; border-bottom: 1px solid var(--line); }
.lane__head { max-width: 760px; margin-bottom: 40px; }
.lane__head h2 { margin: 0 0 14px; font: 300 clamp(32px, 3.6vw, 52px)/1.05 var(--sans); letter-spacing: -.03em; }
.lane__head p { margin: 0; color: var(--linen-2); font-size: 17px; }

/* spec */
.spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; }
.spec__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.f--wide { grid-column: 1 / -1; }
.spec__out { min-width: 0; background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 14px; align-content: start; }
.tabs { position: relative; display: inline-flex; gap: 0; border-bottom: 1px solid var(--line); width: 100%; }
.tabs button { position: relative; z-index: 1; padding: 10px 14px; background: none; border: 0; color: var(--muted); font: 400 13.5px var(--sans); cursor: pointer; transition: color .2s; }
.tabs button[aria-pressed="true"] { color: var(--linen); }
.tabs .seg__ind { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--rust); transition: transform .4s cubic-bezier(.3,.8,.2,1), width .4s cubic-bezier(.3,.8,.2,1); }
.code { margin: 0; padding: 14px; max-height: 340px; overflow: auto; font: 12.5px/1.6 var(--mono); color: var(--linen-2); background: rgba(0,0,0,.18); border-radius: 4px; white-space: pre-wrap; word-break: break-word; }
.code .k { color: #c9b89a; } .code .s { color: #a9b98f; } .code .n { color: #d79a7e; } .code .b { color: var(--steel); }
.kv { display: grid; gap: 10px; }
.kv div { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.kv span { font: 400 11.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kv code { font-size: 12.5px; word-break: break-all; color: var(--linen); }
.kv em { font-style: normal; font-family: var(--sans); font-size: 11.5px; padding: 2px 6px; border-radius: 2px; margin-left: 6px; }
.kv em.ok { background: rgba(159,180,140,.18); color: var(--ok); } .kv em.bad { background: rgba(208,122,95,.15); color: var(--bad); }
.spec__act { display: flex; flex-wrap: wrap; gap: 8px; }

/* policy */
.policy { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; }
.policy__rules { display: grid; gap: 16px; align-content: start; }
.policy__run { min-width: 0; }
.verdict { margin: 18px 0 10px; }
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.vgrid > div { padding: 14px; border-left: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.vgrid > div:first-child { border-left: 0; }
.vgrid span { font: 400 11px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.vgrid b { font: 300 28px/1.1 var(--sans); } .vgrid b.ok { color: var(--ok); } .vgrid b.bad { color: var(--bad); }
.vgrid small { font: 400 12px var(--sans); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbar { height: 4px; background: rgba(208,122,95,.45); margin-top: 8px; border-radius: 2px; overflow: hidden; }
.vbar i { display: block; height: 100%; background: var(--ok); transform-origin: left; transition: transform 1s cubic-bezier(.16,.8,.2,1); }
.txs { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; border-top: 1px solid var(--line); }
.txs li { display: grid; grid-template-columns: 14px 64px minmax(0, 1fr) 110px 70px; gap: 4px 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); font: 400 13px var(--sans); animation: weave .5s cubic-bezier(.16,.8,.2,1) both; animation-delay: var(--d); }
@keyframes weave { from { opacity: 0; transform: translateX(-12px); } }
.txs__mark { width: 10px; height: 10px; border-radius: 1px; background: var(--ok); }
.txs li.no .txs__mark { background: var(--bad); transform: rotate(45deg); }
.txs li.failed { opacity: .6; }
.txs__t { color: var(--muted); font-size: 12px; }
.txs__p { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.txs__p em { font: 400 11px var(--mono); font-style: normal; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--linen-2); }
.txs__p em.x { border-color: rgba(208,122,95,.6); color: var(--bad); }
.txs__v { text-align: right; font: 400 12.5px var(--mono); font-variant-numeric: tabular-nums; }
.txs__s { font: 400 11.5px var(--mono); color: var(--muted); text-decoration: none; text-align: right; }
.txs__s:hover { color: var(--rust-2); }
.txs__why { grid-column: 3 / -1; font-size: 12px; color: #e7b3a2; }

/* cost */
.cost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; }
.cost__in { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.f--check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.f--check input { width: 18px; height: 18px; accent-color: var(--rust); }
.f--check span { font: 400 13.5px var(--sans); color: var(--linen-2); letter-spacing: 0; }
.cost__out { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.06)); }
.bigcost { display: grid; gap: 2px; }
.bigcost span { font: 400 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bigcost b { font: 200 clamp(44px, 6vw, 80px)/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.bigcost small { font: 400 12.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.stack { display: flex; height: 14px; margin: 22px 0 12px; gap: 2px; overflow: hidden; }
.st { display: block; height: 100%; transition: flex-grow .8s cubic-bezier(.16,.8,.2,1); background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 1px, transparent 1px 6px); }
.st--m, .sw--m { background-color: var(--steel); } .st--c, .sw--c { background-color: var(--rust); } .st--r, .sw--r { background-color: var(--sage); }
.legend { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.legend li { display: flex; align-items: center; gap: 10px; font: 400 13px var(--sans); color: var(--linen-2); }
.legend b { margin-left: auto; font: 400 13px var(--mono); color: var(--linen); }
.sw { width: 10px; height: 10px; display: inline-block; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.cgrid div { background: var(--bg-2); padding: 12px 14px; }
.cgrid dt { font: 400 11px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.cgrid dd { margin: 2px 0 0; font: 300 21px var(--sans); font-variant-numeric: tabular-nums; }

/* flow (pinned) */
.flow { height: 400vh; position: relative; border-bottom: 1px solid var(--line); }
.flow__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 70% 40%, rgba(180,88,58,.07), transparent 60%); }
.flow__in { max-width: 1440px; width: 100%; margin: 0 auto; padding: 60px 32px 0; }
.flow__head { max-width: 740px; margin-bottom: 24px; }
.flow__head h2 { margin: 6px 0 10px; font: 300 clamp(30px, 3.6vw, 50px)/1.05 var(--sans); letter-spacing: -.03em; }
.flow__head p { margin: 0; min-height: 3.3em; color: var(--linen-2); font-size: 17px; }
.flow__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; align-items: center; }
.flow__grid svg { width: 100%; height: auto; display: block; }
.fl-lane { stroke: rgba(233,226,212,.3); stroke-width: 1; }
.fl-warp { stroke: rgba(233,226,212,.05); }
.fl-name { font: 400 13px var(--sans); fill: var(--linen-2); }
.fl-thread { fill: none; stroke: var(--rust); stroke-width: 3.5; stroke-linecap: round; }
.fl-thread.quiet { stroke: var(--steel); stroke-width: 8; stroke-linecap: butt; }
.fl-thread.neg { stroke: var(--bad); stroke-dasharray: 4 4; }
.fl-knot { fill: var(--bg); stroke: var(--linen); stroke-width: 1.5; }
.fl-knot--end { fill: var(--rust); stroke: none; transition: opacity .3s; }
.fl-amt { font: 400 11px var(--mono); fill: var(--linen); text-anchor: middle; }
.fl-pick { transition: opacity .3s; }
.ledger { width: 100%; border-collapse: collapse; font: 400 13.5px var(--sans); }
.ledger th, .ledger td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.ledger thead th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.ledger tbody th { font-weight: 400; color: var(--linen-2); }
.ledger td { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ledger td.pos { color: var(--ok); } .ledger td.neg { color: #e7b3a2; }
.ledger .note-row td { text-align: left; font: 400 11.5px var(--sans); color: var(--muted); border: 0; }
.flow__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.flow__prog i { display: block; height: 100%; background: var(--rust); transform-origin: left; transform: scaleX(0); }

/* verify */
.verify { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; }
.verify__in { display: grid; gap: 14px; }
.verify__out { min-width: 0; }
.seal { display: flex; gap: 18px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 6px; animation: weave .6s both; }
.seal svg { width: 72px; height: 72px; flex: none; fill: none; stroke-width: 3; stroke-linecap: round; }
.seal circle { stroke-dasharray: 214; stroke-dashoffset: 214; animation: draw 1s cubic-bezier(.16,.8,.2,1) forwards; }
.seal path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .55s cubic-bezier(.16,.8,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.seal--ok svg { stroke: var(--ok); } .seal--bad svg { stroke: var(--bad); }
.seal b { font: 400 22px var(--sans); } .seal p { margin: 4px 0 0; color: var(--linen-2); font-size: 15px; }
.kvl { margin: 16px 0 0; display: grid; gap: 10px; }
.kvl dt { font: 400 11px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.kvl dd { margin: 2px 0 0; font-size: 14px; } .kvl code { font-size: 12px; word-break: break-all; }

/* how */
.how { border-bottom: 1px solid var(--line); background: rgba(0,0,0,.14); }
.how__in { max-width: 1440px; margin: 0 auto; padding: 100px 32px; }
.how h2 { margin: 0 0 40px; font: 300 clamp(30px, 3.4vw, 46px)/1.05 var(--sans); letter-spacing: -.03em; }
.how__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: h; }
.how__list li { counter-increment: h; padding: 26px 24px 4px; border-top: 2px solid var(--line-2); position: relative; color: var(--linen-2); font-size: 15.5px; }
.how__list li::before { content: counter(h, decimal-leading-zero); display: block; font: 400 11.5px var(--mono); color: var(--rust-2); margin-bottom: 10px; }
.how__list li::after { content: ''; position: absolute; left: 0; top: -2px; width: 0; height: 2px; background: var(--rust); transition: width 1.2s cubic-bezier(.16,.8,.2,1) .3s; }
.how__list li.is-in::after { width: 100%; }
.how__list b { display: block; color: var(--linen); font: 500 17px var(--sans); margin-bottom: 6px; }

/* faq */
.faq { max-width: 860px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font: 400 19px/1.35 var(--sans); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font: 300 26px var(--sans); color: var(--rust-2); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--linen-2); max-width: 68ch; }

/* review dialog */
.review { border: 1px solid var(--line-2); padding: 0; border-radius: 8px; background: var(--bg-3); color: var(--linen); width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px #000; }
.review::backdrop { background: rgba(10,12,15,.6); backdrop-filter: blur(3px); }
.review__in { padding: 26px; display: grid; gap: 12px; }
.review__k { margin: 0; font: 400 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rust-2); }
.review__t { margin: 0; font: 300 26px var(--sans); }
.review__list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; color: var(--linen-2); }
.review__list code { word-break: break-all; font-size: 12px; }
.review__memo { margin: 0; padding: 12px; background: rgba(0,0,0,.25); border-radius: 4px; font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }
.review__act { display: flex; justify-content: flex-end; gap: 10px; }
.review .btn--ghost { background: transparent; color: var(--linen); box-shadow: inset 0 0 0 1px var(--line-2); }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot__in { max-width: 1440px; margin: 0 auto; padding: 56px 32px; display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 40px; }
.logo__word { font: 500 22px var(--sans); letter-spacing: -.02em; }
.foot__brand p { margin: 8px 0 0; font: 400 13px var(--sans); color: var(--muted); }
.foot__honest { margin: 0; font-size: 14.5px; color: var(--linen-2); }
.foot__links { display: grid; gap: 8px; align-content: start; }
.foot__links a, .linkish { font: 400 14px var(--sans); color: var(--linen); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.foot__links a:hover, .linkish:hover { color: var(--rust-2); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .spec, .cost, .verify { grid-template-columns: 1fr; }
  .policy { grid-template-columns: 1fr; }
  .tools--col { grid-template-columns: repeat(3, 1fr); }
  .how__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menubtn { display: block; }
  .menu { position: fixed; top: 70px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .25s, transform .25s; z-index: 40; }
  .menu-open .menu { opacity: 1; transform: none; pointer-events: auto; }
  .menu ul { flex-direction: column; padding: 10px 16px 16px; }
  .menu a { padding: 13px 10px; font-size: 16px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; }
  .warp__in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .warp__c:nth-child(4) { border-left: 0; padding-left: 0; }
  .lane { grid-template-columns: 1fr; }
  .lane__rail { border-right: 0; border-bottom: 1px solid var(--line); padding: 64px 0 14px; display: flex; gap: 14px; align-items: baseline; }
  .lane__rail::before { right: auto; left: 0; top: auto; bottom: -4px; }
  .lane__rail > * { position: static; padding: 0; margin: 0; }
  .lane__body { padding: 32px 0 72px; border-bottom: 0; }
  .flow__grid { grid-template-columns: 1fr; gap: 10px; }
  .ledger { font-size: 12px; } .ledger th, .ledger td { padding: 5px 4px; }
  .foot__in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bar__in { padding: 0 16px; gap: 8px; height: 62px; }
  .menu { top: 62px; }
  .logo { font-size: 17px; } .logo svg { width: 26px; height: 26px; }
  .wb-btn { padding: 10px 12px; font-size: 12.5px; }
  .hero, .warp__in, .lane, .flow__in, .how__in, .foot__in { padding-left: 16px; padding-right: 16px; }
  .warp__in { grid-template-columns: 1fr 1fr; }
  .warp__c { padding: 14px 10px; border-left: 0; border-top: 1px solid var(--line); }
  .warp__c:nth-child(-n+2) { border-top: 0; } .warp__c:nth-child(odd) { padding-left: 0; }
  .warp__c b { font-size: 21px; }
  .spec__form, .cost__in { grid-template-columns: 1fr; }
  .tools--col { grid-template-columns: 1fr 1fr; }
  .vgrid { grid-template-columns: 1fr 1fr; }
  .vgrid > div:nth-child(3) { border-left: 0; } .vgrid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .txs li { grid-template-columns: 12px 54px minmax(0, 1fr) 84px; }
  .txs__s { display: none; }
  .row { flex-direction: column; align-items: stretch; }
  .how__list { grid-template-columns: 1fr; }
  .flow { height: 360vh; }
  .flow__in { padding-top: 70px; }
  .flow__head p { font-size: 15px; min-height: 4.8em; }
  .hero__loom figcaption span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .split .wi, .ld, .rv { transform: none !important; opacity: 1 !important; }
}
