/* Taskwire · wire-service desk. Graphite, bone, one brass accent. */
:root {
  --bg: #1b1d20; --bg2: #202226; --bg3: #26292e; --bg4: #2d3036;
  --ink: #e8e1d3; --ink2: #c9c2b4; --mute: #9d978b; --dim: #6c6963;
  --rule: rgba(232, 225, 211, .11); --rule2: rgba(232, 225, 211, .2);
  --brass: #a98b4f; --brass2: #c4a76c; --brassd: rgba(169, 139, 79, .14);
  --paper: #e6dfd0; --pink: #26231e; --pmute: #6d665a;
  --ok: #8fa67a; --bad: #b8644f;
  --sans: 'IBM Plex Sans Condensed', 'Arial Narrow', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1240px;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
code, .num { font-family: var(--mono); }
code { font-size: .86em; word-break: break-all; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brass2); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--brass); color: var(--bg); padding: 8px 14px; text-decoration: none; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ---------- top ---------- */
.top { position: sticky; top: 0; z-index: 100; background: rgba(27, 29, 32, .92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--rule); }
.top__bar { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 26px; height: 26px; fill: none; stroke: var(--brass2); stroke-width: 1.6; }
.brand__mark circle { fill: var(--bg); }
.brand__name { font-weight: 700; letter-spacing: .22em; font-size: 15px; margin: 0; }
.brand__desk { font-family: var(--mono); font-size: 11px; color: var(--dim); border: 1px solid var(--rule2); padding: 1px 6px; border-radius: 2px; }
.nav { display: flex; gap: 4px; position: relative; margin-right: auto; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: .04em; color: var(--mute); padding: 8px 10px; transition: color .2s; position: relative; z-index: 1; }
.nav a:hover, .nav a.is-on { color: var(--ink); }
.nav__ind { position: absolute; left: 0; bottom: 2px; height: 2px; width: 40px; background: var(--brass); transform: translateX(var(--x, 0)) scaleX(var(--s, 0)); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.top__right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.xlink { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--rule2); border-radius: 2px; }
.xlink svg { width: 15px; height: 15px; fill: var(--ink2); }
.menu { display: none; width: 38px; height: 34px; border: 1px solid var(--rule2); background: none; border-radius: 2px; position: relative; cursor: pointer; }
.menu span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu span:nth-child(1) { top: 13px; } .menu span:nth-child(2) { top: 19px; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* wallet */
.wallet-slot { flex: none; }
.wb { position: relative; }
.wb-btn { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; height: 34px; padding: 0 14px; border-radius: 2px; border: 1px solid var(--brass); background: var(--brass); color: #17150f; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), background .2s; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.wb-btn:hover { background: var(--brass2); }
.wb-btn:active { transform: scale(.97); }
.wb-btn.is-on { background: transparent; color: var(--ink); border-color: var(--rule2); }
.wb-btn.is-on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; }
.wb-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 400; width: 280px; max-width: calc(100vw - 24px); background: var(--bg3); border: 1px solid var(--rule2); border-radius: 3px; padding: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); animation: drop .22s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.wb-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; text-align: left; font-size: 14px; color: var(--ink); text-decoration: none; cursor: pointer; border-radius: 2px; }
.wb-item:hover, .wb-item:focus-visible { background: var(--bg4); }
.wb-item img { width: 18px; height: 18px; border-radius: 3px; }
.wb-addr { font-family: var(--mono); font-size: 12px; word-break: break-all; padding: 8px 10px 2px; color: var(--ink2); }
.wb-bal { font-family: var(--mono); font-size: 13px; padding: 2px 10px 8px; color: var(--brass2); border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.wb-note { font-size: 12px; color: var(--dim); padding: 8px 10px 4px; }

/* tape */
.tape { overflow: hidden; border-top: 1px solid var(--rule); background: var(--paper); color: var(--pink); height: 30px; position: relative; }
.tape::before, .tape::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 1; pointer-events: none; }
.tape::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.tape::after { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }
.tape__track { display: flex; width: max-content; height: 30px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .03em; will-change: transform; }
.tape__item { padding: 0 22px; white-space: nowrap; border-right: 1px dashed rgba(38, 35, 30, .3); }
.tape__item b { font-weight: 600; }
.tape__item i { font-style: normal; color: var(--pmute); margin-right: 6px; }
.tape__item.up b { color: #4d6a3e; } .tape__item.dn b { color: #8b3f2e; }

/* buttons */
.btn { --b: var(--rule2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 2px; border: 1px solid var(--b); background: none; text-decoration: none; font-size: 15px; letter-spacing: .04em; cursor: pointer; position: relative; overflow: hidden; transition: transform .15s var(--ease), border-color .2s, background .2s, color .2s; }
.btn span { position: relative; z-index: 1; }
.btn:active { transform: scale(.97); }
.btn--brass { background: var(--brass); border-color: var(--brass); color: #17150f; font-weight: 600; }
.btn--brass::after, .btn--ink::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .16); transform: translateX(-101%); transition: transform .45s var(--ease); }
.btn--brass:hover::after, .btn--ink:hover::after { transform: none; }
.btn--line:hover { border-color: var(--brass); color: var(--brass2); }
.btn--ink { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--warn:hover { border-color: var(--bad); color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.is-busy span { opacity: .55; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.copybtn { border: 1px solid var(--rule2); background: none; border-radius: 2px; height: 28px; padding: 0 10px; font-size: 12px; font-family: var(--mono); cursor: pointer; position: relative; overflow: hidden; min-width: 66px; }
.copybtn span { display: block; transition: transform .3s var(--ease), opacity .3s; }
.copybtn__b { position: absolute; inset: 0; display: grid !important; place-items: center; transform: translateY(100%); opacity: 0; color: var(--ok); }
.copybtn.is-done .copybtn__a { transform: translateY(-100%); opacity: 0; }
.copybtn.is-done .copybtn__b { transform: none; opacity: 1; }

/* shimmer */
.shimmer { display: inline-block; color: transparent !important; background: linear-gradient(90deg, var(--bg3) 0%, var(--bg4) 50%, var(--bg3) 100%); background-size: 200% 100%; animation: shim 1.3s linear infinite; border-radius: 2px; }
.tape .shimmer { background: linear-gradient(90deg, #d8d0c0, #ece6da, #d8d0c0); background-size: 200% 100%; }
@keyframes shim { to { background-position: -200% 0; } }
.flash { animation: fl .9s var(--ease); }
@keyframes fl { 0% { color: var(--brass2); } 100% { color: inherit; } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; border-bottom: 1px solid var(--rule); position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--rule) 1px, transparent 1px); background-size: 100% 44px; opacity: .35; pointer-events: none; mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; position: relative; }
.hero__copy { min-width: 0; }
.dateline { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--mute); display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 26px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.dateline b { color: var(--brass2); font-weight: 500; }
.dateline__sep { color: var(--dim); }
.hero__title { font-size: clamp(40px, 5.2vw, 70px); line-height: 1.02; letter-spacing: -.015em; font-weight: 600; margin: 0 0 24px; text-wrap: balance; }
.hero__sub { font-size: 18px; color: var(--ink2); max-width: 520px; margin: 0 0 30px; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cachip { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--rule2); padding: 6px 6px 6px 12px; border-radius: 2px; max-width: 100%; }
.cachip__k { font-family: var(--mono); font-size: 11px; color: var(--brass2); }
.cachip__v { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; word-break: normal; }
.hero__wire { margin: 0; min-width: 0; position: relative; border: 1px solid var(--rule); background: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, 0)); }
.hero__wire canvas { width: 100%; height: auto; aspect-ratio: 720 / 560; }
.hero__legend { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--mute); padding: 10px 14px; border-top: 1px solid var(--rule); }
.hero__legendR { margin-left: auto; color: var(--ink2); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 0; }
.dot--live { background: var(--brass2); border-radius: 50%; }
.dot--slip { background: var(--paper); }
.hero__slips { margin-top: 34px; }
.slips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.slip { background: var(--paper); color: var(--pink); padding: 12px 14px 12px; border-radius: 1px; position: relative; min-width: 0; font-size: 14px; box-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 24px -16px rgba(0, 0, 0, .7); }
.slip::before { content: ''; position: absolute; left: 0; right: 0; top: -5px; height: 6px; background: radial-gradient(circle at 5px 6px, transparent 4px, var(--paper) 4.5px) 0 0 / 10px 6px repeat-x; }
.slip__h { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--pmute); border-bottom: 1px dashed rgba(38, 35, 30, .3); padding-bottom: 6px; margin-bottom: 6px; }
.slip__t { margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip__r { margin: 2px 0 0; color: var(--pmute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip__hash { margin-top: 6px; font-family: var(--mono); font-size: 11px; color: #7a5f2c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip--ghost { background: transparent; border: 1px dashed var(--rule2); color: var(--dim); box-shadow: none; }
.slip--ghost::before { display: none; }
.slip--ghost .slip__h { color: var(--dim); border-color: var(--rule); }

/* split words */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .wi { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 55ms + 80ms); }
.is-ready .split .wi { transform: none; }
.reveal-load { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-ready .reveal-load { opacity: 1; transform: none; }
.is-ready .hero__sub { transition-delay: .55s; } .is-ready .hero__cta { transition-delay: .7s; } .is-ready .cachip { transition-delay: .8s; } .is-ready .hero__wire { transition-delay: .35s; }
.no-js .split .wi, .no-js .reveal-load, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- sections / feed ---------- */
.sec { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.sec--tight { padding: 64px 0; }
.sec--paper { background: var(--bg2); }
.feed { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 56px; }
.feed__meta { align-self: start; position: sticky; top: 120px; min-width: 0; }
.feed__no { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--brass2); margin: 0 0 10px; }
.feed__title { font-size: 34px; line-height: 1.05; margin: 0 0 14px; font-weight: 600; letter-spacing: -.01em; }
.feed__note { color: var(--mute); font-size: 15px; margin: 0 0 18px; }
.feed__body { min-width: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.kv { margin: 18px 0 0; display: grid; gap: 10px; }
.kv div { border-top: 1px solid var(--rule); padding-top: 8px; min-width: 0; }
.kv dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.kv dd { margin: 2px 0 0; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kv--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hint { font-size: 14px; color: var(--mute); margin: 10px 0 0; min-height: 1em; }
.hint code { color: var(--ink2); }
.err { color: var(--bad); font-size: 14px; margin: 12px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.err button { font-size: 13px; }
.empty { color: var(--dim); font-size: 15px; border: 1px dashed var(--rule2); padding: 22px; text-align: center; }

/* gauges */
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); }
.gauge { padding: 20px 22px; border-right: 1px solid var(--rule); min-width: 0; }
.gauge:last-child { border-right: 0; }
.gauge__k { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.gauge__v { margin: 6px 0 2px; font-size: 30px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gauge__s { margin: 0; font-size: 13px; color: var(--mute); }
.spark { margin-top: 20px; border: 1px solid var(--rule); padding: 16px 16px 10px; }
.spark svg { width: 100%; height: 120px; }
.spark path.l { fill: none; stroke: var(--brass2); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark path.a { fill: var(--brassd); }
.spark line { stroke: var(--rule); vector-effect: non-scaling-stroke; }
.spark__cap { margin: 8px 0 0; font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* how */
.howwire { width: 100%; height: 40px; margin-bottom: 8px; }
.howwire path { fill: none; stroke: var(--brass); stroke-width: 1.4; stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 1.8s var(--ease); vector-effect: non-scaling-stroke; }
.howwire.is-in path { stroke-dashoffset: 0; }
.howwire circle { fill: var(--bg); stroke: var(--brass2); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.step { min-width: 0; }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--brass2); letter-spacing: .1em; margin: 0 0 8px; }
.step h3 { font-size: 22px; margin: 0 0 8px; font-weight: 600; }
.step p:last-child { color: var(--mute); font-size: 15px; margin: 0; }

/* forms */
.form { border: 1px solid var(--rule2); background: var(--bg); padding: 22px; display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; border: 0; padding: 0; }
.field__k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 0; }
.field input, .field textarea { width: 100%; background: var(--bg2); border: 1px solid var(--rule2); border-radius: 2px; padding: 10px 12px; font-size: 15px; resize: vertical; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.field textarea { font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brassd); }
.field--grow { flex: 1; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.form__foot .hint { margin: 0; flex: 1 1 260px; }
.form__btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule2); border-radius: 2px; height: 42px; }
.seg label { position: relative; z-index: 1; display: grid; place-items: center; cursor: pointer; font-size: 14px; color: var(--mute); transition: color .25s; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { color: #17150f; font-weight: 600; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--brass2); outline-offset: -3px; }
.seg__ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: var(--brass); border-radius: 1px; transition: transform .4s var(--ease); }
.seg.is-b .seg__ind { transform: translateX(calc(100% - 3px)); }
.filebtn { position: relative; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ledger */
.ledbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ledger { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.entry { background: var(--paper); color: var(--pink); padding: 16px 18px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 18px; position: relative; border-left: 4px solid var(--brass); animation: slipIn .6s var(--ease); }
@keyframes slipIn { from { opacity: 0; transform: translateY(-10px) scale(.99); } }
.entry.is-bad { border-left-color: var(--bad); background: #e9d6cd; }
.entry__n { font-family: var(--mono); font-size: 26px; font-weight: 500; color: #7a5f2c; line-height: 1; }
.entry__n small { display: block; font-size: 10px; letter-spacing: .1em; color: var(--pmute); margin-top: 6px; }
.entry__main { min-width: 0; }
.entry__agent { font-family: var(--mono); font-size: 12px; color: var(--pmute); margin: 0; }
.entry__req { margin: 2px 0 0; font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.entry__res { margin: 2px 0 0; color: #4a453c; font-size: 15px; overflow-wrap: anywhere; }
.entry__res[contenteditable="true"] { outline: 1px dashed var(--bad); background: rgba(184, 100, 79, .08); }
.entry__meta { grid-column: 2 / 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; font-family: var(--mono); font-size: 11px; color: var(--pmute); border-top: 1px dashed rgba(38, 35, 30, .3); padding-top: 8px; margin-top: 4px; }
.entry__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.entry__meta b { color: var(--pink); font-weight: 500; }
.entry__side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 3px 7px; border: 1px solid currentColor; border-radius: 2px; text-transform: uppercase; white-space: nowrap; }
.tag--ok { color: #4d6a3e; } .tag--bad { color: #8b3f2e; } .tag--w { color: #7a5f2c; }
.entry .copybtn { border-color: rgba(38, 35, 30, .3); color: var(--pink); }

/* verify */
.verify { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.verify__in { display: grid; gap: 12px; align-content: start; min-width: 0; }
.verify__out { border: 1px solid var(--rule2); padding: 22px; position: relative; min-width: 0; overflow: hidden; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.checks i { width: 18px; height: 18px; border: 1px solid var(--rule2); border-radius: 50%; position: relative; transition: background .3s, border-color .3s; }
.checks li.ok i { border-color: var(--ok); background: var(--ok); }
.checks li.ok i::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); animation: tick .35s var(--ease); }
.checks li.bad i { border-color: var(--bad); background: var(--bad); }
.checks li.bad i::after { content: '×'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--bg); font-size: 14px; line-height: 1; font-weight: 700; }
.checks li.skip i { border-style: dashed; }
@keyframes tick { from { transform: rotate(45deg) scale(0); } }
.checks em { grid-column: 2; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--dim); overflow-wrap: anywhere; }
.stamp { position: absolute; right: 18px; top: 14px; margin: 0; font-family: var(--mono); font-weight: 600; letter-spacing: .14em; font-size: 13px; padding: 6px 10px; border: 2px solid; transform: rotate(-6deg); animation: stamp .45s var(--ease); background: var(--bg); z-index: 2; }
.stamp.ok { color: var(--ok); } .stamp.bad { color: var(--bad); }
@keyframes stamp { from { transform: rotate(-6deg) scale(1.8); opacity: 0; } }

/* services */
.svc { border-top: 1px solid var(--rule2); }
.svc__head, .svcrow { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr) minmax(0, 2.4fr) 90px 120px; gap: 14px; align-items: center; }
.svc__head { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.svcrow { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.svcrow > * { min-width: 0; }
.svcrow__n { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.svcrow__n i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.svcrow.up .svcrow__n i { background: var(--ok); box-shadow: 0 0 0 4px rgba(143, 166, 122, .15); }
.svcrow.down .svcrow__n i { background: var(--bad); }
.svcrow__p { font-family: var(--mono); font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svcrow__a { font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svcrow__l { font-family: var(--mono); font-size: 14px; text-align: right; }
.svcrow__h { display: flex; gap: 3px; align-items: flex-end; height: 22px; justify-content: flex-end; }
.svcrow__h b { width: 9px; background: var(--brass); opacity: .75; transform-origin: bottom; animation: bar .5s var(--ease); }
.svcrow__h b.x { background: var(--bad); }
@keyframes bar { from { transform: scaleY(0); } }

/* life (pinned) */
.life { height: 240vh; position: relative; border-bottom: 1px solid var(--rule); background: var(--bg); }
.life__pin { position: sticky; top: 90px; height: calc(100vh - 90px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.life__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.life__copy { min-width: 0; }
.life__title { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.04; margin: 0 0 14px; font-weight: 600; }
.life__sub { color: var(--mute); margin: 0 0 24px; }
.life__stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--rule2); }
.life__stops li { padding: 10px 0 10px 18px; position: relative; color: var(--dim); transition: color .4s; min-width: 0; }
.life__stops li::before { content: ''; position: absolute; left: -5px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--rule2); transition: background .4s, border-color .4s; }
.life__stops li.is-on { color: var(--ink); }
.life__stops li.is-on::before { background: var(--brass); border-color: var(--brass); }
.life__stops b { display: block; font-size: 18px; font-weight: 600; }
.life__stops span { display: block; font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.life__stage { min-width: 0; }
.life__stage canvas { width: 100%; height: auto; aspect-ratio: 680 / 520; }
.life__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rule); }
.life__prog i { display: block; height: 100%; background: var(--brass); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* anchor */
.anchor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.card { border: 1px solid var(--rule2); background: var(--bg); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; transition: border-color .3s; }
.card:hover { border-color: rgba(169, 139, 79, .5); }
.card--wide { grid-column: 1 / -1; }
.card__t { margin: 0; font-size: 20px; font-weight: 600; }
.memo { margin: 0; background: var(--paper); color: var(--pink); padding: 12px 14px; display: grid; gap: 4px; }
.memo__k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--pmute); }
.memo code { font-size: 12px; }
.inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.result { font-size: 14px; min-width: 0; }
.result .row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.result .row span:first-child { font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.result .row span:last-child { overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px; }
.result a { color: var(--brass2); }
.memos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.memos li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; align-items: baseline; }
.memos li > * { min-width: 0; }
.memos time { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.memos code { overflow-wrap: anywhere; word-break: break-word; }
.memos a { font-family: var(--mono); font-size: 12px; color: var(--brass2); }
.memos li.is-tw code { color: var(--brass2); }
.skel { height: 14px; margin: 8px 0; }

/* spec + faq */
.spec { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.code { margin: 0; background: var(--bg2); border: 1px solid var(--rule); padding: 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--ink2); overflow-x: auto; white-space: pre; min-width: 0; }
.specnotes { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.specnotes li { border-top: 1px solid var(--rule); padding-top: 12px; color: var(--mute); font-size: 15px; }
.specnotes b { color: var(--ink); font-weight: 600; display: block; }
.faq { display: grid; }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 20px; font-weight: 500; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--brass2); border-bottom: 1.5px solid var(--brass2); transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease); }
.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa p { margin: 0 0 22px; color: var(--mute); max-width: 720px; }

/* footer */
.foot { padding: 64px 0 40px; background: var(--bg2); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }
.foot__honest { color: var(--mute); font-size: 14px; max-width: 640px; }
.foot__honest b { color: var(--ink); }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; justify-content: flex-end; }
.foot__links a { color: var(--mute); text-decoration: none; font-size: 15px; }
.foot__links a:hover { color: var(--brass2); }
.foot__end { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 18px; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* sheet + toast */
.sheet { position: fixed; inset: 0; z-index: 500; background: rgba(10, 11, 12, .72); display: grid; place-items: center; padding: 16px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet__card { width: 560px; max-width: 100%; background: var(--bg3); border: 1px solid var(--rule2); padding: 26px; animation: drop .35s var(--ease); max-height: calc(100vh - 32px); overflow: auto; }
.sheet__card h2 { margin: 0 0 16px; font-size: 26px; font-weight: 600; }
.sheet__list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 10px; }
.sheet__list li { border-top: 1px solid var(--rule); padding-top: 10px; font-size: 15px; color: var(--ink2); overflow-wrap: anywhere; }
.sheet__list b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass2); font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 600; background: var(--paper); color: var(--pink); padding: 10px 16px; font-size: 14px; border-radius: 2px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); max-width: calc(100vw - 32px); animation: drop .3s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .feed { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .feed__meta { position: static; }
  .hero__grid, .life__grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .howwire { display: none; }
}
@media (max-width: 900px) {
  .top__bar { gap: 12px; padding: 0 16px; }
  .menu { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--rule2); padding: 8px 16px 14px; margin: 0; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .nav__ind { display: none; }
  .top__bar { position: relative; }
  .brand__desk { display: none; }
  .wrap { padding: 0 16px; }
  .verify, .spec, .anchor, .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__links { justify-content: flex-start; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gauge:nth-child(2) { border-right: 0; }
  .gauge:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .svc__head { display: none; }
  .svcrow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .svcrow__p, .svcrow__a { grid-column: 1 / -1; }
  .svcrow__l { grid-row: 1; grid-column: 2; }
  .svcrow__h { grid-column: 1 / -1; justify-content: flex-start; }
  .slips { grid-template-columns: minmax(0, 1fr); }
  .slips li:nth-child(n+2) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 28px; }
  .sec { padding: 64px 0; }
  .form__row, .steps, .kv--row { grid-template-columns: minmax(0, 1fr); }
  .entry { grid-template-columns: 44px minmax(0, 1fr); }
  .entry__side { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .entry__meta { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .entry__n { font-size: 20px; }
  .memos li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .result .row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .gauge { padding: 14px; }
  .gauge__v { font-size: 22px; }
  .feed__title { font-size: 28px; }
  .life { height: auto; }
  .life__pin { position: static; height: auto; padding: 64px 0; }
  .life__prog { display: none; }
  .wb-btn { padding: 0 10px; font-size: 12px; }
  .brand__name { font-size: 13px; letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .split .wi, .reveal-load, .reveal { opacity: 1 !important; transform: none !important; }
}
