/* BLACKOUT · V4 — reference B, made better. Monochrome on a light ground; Swiss technical.
   One grid (12 columns, 40 px margins), one display/text face (Inter Tight), one data face (JetBrains Mono),
   one device: the inverted black block. No colour. */

@font-face { font-family: 'Inter Tight'; src: url('./fonts/inter-tight.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../shared/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --paper: #f1f0ec;
  --paper-2: #e7e6e1;
  --card: #fbfaf8;
  --ink: #0b0b0c;
  --ink-2: #55544f;
  --ink-3: #8b8a84;
  --line: rgba(11, 11, 12, .14);
  --line-2: rgba(11, 11, 12, .08);
  --m: 40px;
  --nav: 58px;
  --r: 14px;
  --sh-1: 0 1px 2px rgba(11,11,12,.05), 0 8px 24px -12px rgba(11,11,12,.16);
  --sh-2: 0 22px 34px -20px rgba(11,11,12,.5);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* the ground is never flat: a soft light from the upper left, a shadow low right, paper grain on top of everything */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(90vw 70vh at 12% -8%, rgba(255,255,255,.95), rgba(255,255,255,0) 62%),
    radial-gradient(70vw 70vh at 96% 108%, rgba(11,11,12,.10), rgba(11,11,12,0) 60%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url('../shared/img/noise.png'); background-size: 160px; opacity: .1;
}
.ground { position: fixed; inset: 0 var(--m); z-index: 0; pointer-events: none; display: flex; justify-content: space-between; }
.ground i { width: 1px; background: linear-gradient(var(--line-2), var(--line-2)); position: relative; }
.ground i::after { content: ''; position: absolute; left: -1.5px; top: calc(var(--nav) + 22px); width: 4px; height: 4px; border-radius: 50%; background: var(--ink); opacity: .5; }

main { position: relative; }
.nav, .foot { position: relative; z-index: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, dl, dd, p, h1, h2, h3 { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.stage :focus-visible { outline-color: var(--ink); }

.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.tick { display: inline-block; width: 22px; height: 1.5px; background: currentColor; flex: none; }

.display { font-family: var(--sans); font-weight: 900; text-transform: uppercase; letter-spacing: -.038em; line-height: .88; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.h2 { font-size: clamp(40px, min(5.4vw, 10.6vh), 92px); margin-top: 18px; }
.lede { font-size: 17px; line-height: 1.42; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.lede-strong { color: var(--ink); font-weight: 600; }
.fine { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }

/* the block: the page's one device. The black block wipes in, then the letters decode. */
.blk { position: relative; display: inline-block; padding: .02em .16em .06em; margin: 0 -.02em; color: var(--paper); white-space: nowrap; }
.blk-bg { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; border-radius: .04em; }
.blk-t { position: relative; display: inline-block; }
.blk-t .ch { display: inline-block; text-align: center; }
.blk-inv { color: var(--ink); }
.blk-inv .blk-bg { background: var(--paper); }
.js .blk:not(.on) .blk-bg { transform: scaleX(0); }
.js .blk:not(.on) .blk-t { opacity: 0; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 10px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--ink); border-radius: 5px; white-space: nowrap; }
.chip-built::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip-coming { border-style: dashed; color: var(--ink-2); border-color: var(--ink-3); }
.chip-coming::before { content: ''; width: 5px; height: 5px; border-radius: 50%; border: 1px solid currentColor; }
.chip-demo { border-color: transparent; background: repeating-linear-gradient(135deg, rgba(11,11,12,.13) 0 3px, rgba(11,11,12,.04) 3px 6px); }
.chip-ink { background: var(--ink); color: var(--card); }
.chip-xs { font-size: 8.5px; padding: 3px 5px; gap: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 10px; font: 600 15px/1 var(--sans); letter-spacing: -.005em; white-space: nowrap; transition: translate .35s var(--ease), background-color .25s, color .25s, box-shadow .35s; }
.btn .i { transition: transform .35s var(--ease); }
.btn:hover .i { transform: translate(2px, -1px); }
.btn-ink { background: var(--ink); color: var(--card); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 22px -10px rgba(11,11,12,.6); }
.btn-ink:hover { translate: 0 -1px; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 16px 28px -12px rgba(11,11,12,.7); }
.btn-line { border: 1px solid var(--ink); background: rgba(251,250,248,.6); }
.btn-line:hover { background: var(--ink); color: var(--card); }
.btn-s { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 9px; }
.btn-xs { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; gap: 7px; }
.btn-l { height: 58px; padding: 0 28px; font-size: 18px; border-radius: 12px; }
.btn-wide { width: 100%; }
.btn-tag { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 6px; border: 1px solid currentColor; border-radius: 4px; opacity: .75; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* loader: the page is dark, then it comes on */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--paper); display: grid; place-items: end start; padding: var(--m); transform-origin: 50% 0; }
.loader-in { display: flex; align-items: baseline; gap: 22px; }
.loader-word { font: 900 clamp(44px, 9vw, 130px)/.85 var(--sans); letter-spacing: -.04em; }
.loader-n { font-size: 12px; letter-spacing: .14em; opacity: .7; }
.no-js .loader, .static .loader { display: none; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav); padding: 0 var(--m); display: flex; align-items: center; gap: 26px; background: rgba(241,240,236,.78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; background: var(--ink); flex: none; box-shadow: 0 6px 14px -8px rgba(11,11,12,.7); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(1.15); }
.brand-word { font: 900 21px/1 var(--sans); letter-spacing: -.03em; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; font-size: 14.5px; font-weight: 500; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* 1. hero */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 1000px; padding: calc(var(--nav) + 3.6vh) var(--m) 0; display: flex; flex-direction: column; }
.globe-slot { position: absolute; pointer-events: none; }
.globe-slot canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-globe { inset: 0 0 0 0; z-index: 0; }
.globe-shadow { position: absolute; left: 73%; top: 49%; width: min(74vh, 46vw); aspect-ratio: 1; transform: translate(-50%, -44%); border-radius: 50%; background: radial-gradient(closest-side, rgba(11,11,12,.34), rgba(11,11,12,.16) 62%, rgba(11,11,12,0) 100%); filter: blur(26px); opacity: 0; transition: opacity 1.2s .3s; }
.is-ready .globe-shadow { opacity: 1; }
.hero-copy { position: relative; }
.hero-h .ln { white-space: nowrap; }
.hero-h { font-size: min(5.9vw, 12.3vh); margin-top: 2.4vh; }
.hero-h .ln { display: block; overflow: hidden; padding: .06em 0 .02em; margin: -.06em 0 -.02em; }
.hero-h .ln-in { display: inline-block; will-change: transform; }
.hero-h .ln-blk { overflow: visible; margin-top: .03em; }
.hero-sub { margin-top: 2.6vh; font-size: clamp(15px, 1.32vw, 19px); line-height: 1.4; max-width: 31em; color: var(--ink-2); text-wrap: pretty; }
.hero-cta { margin-top: 2.8vh; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-left: 10px; padding-left: 14px; border-left: 1.5px solid var(--ink); font-size: 10.5px; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.hero-words { position: absolute; right: var(--m); bottom: 96px; text-align: right; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; line-height: 2.1; }
.hero-words li { position: relative; }
.hero-words li:first-child::before { content: ''; position: absolute; right: calc(100% + 14px); top: 50%; width: 44px; height: 1.5px; background: var(--ink); }
.orbit-tag { position: absolute; z-index: 2; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; background: var(--card); border: 1px solid var(--ink); border-radius: 6px; box-shadow: var(--sh-1); opacity: 0; will-change: transform, opacity; pointer-events: none; white-space: nowrap; }
.orbit-tag i { width: 14px; height: 1.5px; background: var(--ink); }

.features { position: relative; z-index: 2; margin-top: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); background: linear-gradient(rgba(241,240,236,.72), rgba(241,240,236,.9)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-left: calc(var(--m) * -1); margin-right: calc(var(--m) * -1); padding: 0 var(--m); }
.features li { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 16px; font-size: 13.5px; font-weight: 600; line-height: 1.2; border-left: 1px solid var(--line); }
.features li:first-child { border-left: 0; padding-left: 0; }
.features .i { width: 26px; height: 26px; stroke-width: 1.4; }
.features .chip { margin-left: auto; }

/* sections */
.sec { position: relative; padding: clamp(80px, 15vh, 150px) var(--m); }

/* 2. problem */
.problem { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
.problem .lede { margin-top: 26px; }
.problem .lede + .lede { margin-top: 12px; }
.pcards { position: relative; display: flex; justify-content: center; perspective: 1400px; padding: 30px 0; }
.pcard { flex: 0 0 34%; max-width: 290px; margin: 0 -1.2%; transform-style: preserve-3d; will-change: transform; }
.pcard-in { position: relative; aspect-ratio: 5 / 7; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--sh-2); border: 1px solid rgba(255,255,255,.8); transform: rotate(var(--rz, 0deg)) skewY(var(--sk, 0deg)); transition: box-shadow .5s; }
.pcard[data-i="0"] { --rz: -5deg; --sk: -3deg; z-index: 1; margin-top: 26px; }
.pcard[data-i="1"] { --rz: 1deg; --sk: -3deg; z-index: 2; margin-top: 0; }
.pcard[data-i="2"] { --rz: 6deg; --sk: -3deg; z-index: 3; margin-top: 30px; }
.pcard-img { position: absolute; inset: 0 0 20% 0; overflow: hidden; background: #111; }
.pcard-img img { width: 118%; max-width: none; height: 112%; margin: -4% 0 0 -9%; object-fit: cover; filter: grayscale(1) contrast(1.08); will-change: transform; }
.pcard-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251,250,248,0) 42%, rgba(251,250,248,.72) 78%, var(--card) 100%); }
.pcard-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 18px 18px; }
.pcard-n { font-size: 10.5px; letter-spacing: .14em; color: var(--ink-2); }
.pcard-txt h3 { font-size: clamp(17px, 1.6vw, 22px); font-weight: 800; letter-spacing: -.02em; margin: 4px 0 6px; }
.pcard-txt p { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }

/* 3. protocol */
.protocol { border-top: 1px solid var(--line); }
.protocol-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: 44px; }
.protocol-lede { justify-self: end; }
.xcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.xcard { position: relative; display: flex; flex-direction: column; padding: 18px 18px 20px; min-height: 330px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); transition: translate .5s var(--ease), box-shadow .5s var(--ease); }
.xcard:hover { translate: 0 -6px; box-shadow: var(--sh-2); }
.xcard header { display: flex; justify-content: space-between; align-items: center; }
.xn { font-size: 13px; font-weight: 600; }
.xcard h3 { font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 8px; text-wrap: balance; }
.xcard p { font-size: 13.5px; line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.xcard-coming { background: transparent; border-style: dashed; border-color: var(--ink-3); box-shadow: none; }
.xviz { height: 112px; margin: 14px 0 16px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.xviz .mono { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tree { display: grid; grid-template-columns: repeat(16, 7px); row-gap: 7px; justify-items: center; }
.tree i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ink); grid-column: span 2; transition: background-color .3s; }
.tree i:nth-child(1) { grid-column: 1 / -1; }
.tree i:nth-child(2), .tree i:nth-child(3) { grid-column: span 8; }
.tree i:nth-child(n+4):nth-child(-n+7) { grid-column: span 4; }
.tree i.on { background: var(--ink); }
.meter { width: 78%; height: 14px; border: 1px solid var(--ink); border-radius: 3px; padding: 2px; }
.meter b { display: block; height: 100%; width: 97.5%; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px); transform-origin: 0 50%; }
.codes { display: grid; grid-template-columns: repeat(10, 9px); gap: 6px; }
.codes i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink); transition: background-color .3s; }
.codes i.on { background: var(--ink); }
.route { display: flex; align-items: center; gap: 10px; font: 700 12px/1 var(--mono); }
.route b { padding: 7px 9px; border: 1px dashed var(--ink-3); border-radius: 6px; }
.route i { width: 64px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 9px); }

/* 4. the stage: the page goes dark, the dashboard stays lit */
.stage { position: relative; padding: clamp(70px, 13vh, 130px) var(--m) clamp(60px, 11vh, 110px); color: var(--paper); }
.stage-bg { position: absolute; inset: 0; background: radial-gradient(120vw 80vh at 50% -10%, #1d1d20, #0b0b0c 62%); transform-origin: 50% 0; will-change: transform; }
.stage-bg::after { content: ''; position: absolute; inset: 0; background: url('../shared/img/noise.png'); background-size: 160px; opacity: .09; }
.stage > * { position: relative; }
.stage > .stage-bg { position: absolute; }
.stage .kicker { color: var(--paper); }
.stage-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: 34px; }
.stage-note { justify-self: end; max-width: 30em; font-size: 15.5px; line-height: 1.42; color: rgba(241,240,236,.72); }
.demo-flag { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 7px 10px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper); border: 1px dashed rgba(241,240,236,.6); border-radius: 6px; }

.dash { color: var(--ink); background: var(--paper); border-radius: 22px; padding: 12px; display: grid; gap: 12px;
  grid-template-columns: 204px minmax(0, .92fr) minmax(0, 1.55fr) minmax(0, .95fr);
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: 'side top top top' 'side bal stage net' 'side priv stage net' 'side priv act act';
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 34px 60px -32px rgba(0,0,0,.95);
  position: relative; }
.dash::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: url('../shared/img/noise.png'); background-size: 160px; opacity: .08; }
.dash[data-view='activity'] { grid-template-areas: 'side top top top' 'side bal act act' 'side priv act act' 'side priv act act'; }
.dash[data-view='activity'] .c-stage, .dash[data-view='activity'] .c-net { display: none; }
.dash-side { grid-area: side; display: flex; flex-direction: column; gap: 14px; padding: 10px 4px 4px 6px; }
.dash-brand { display: flex; align-items: center; gap: 9px; padding: 2px 4px 10px; }
.dash-brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.dash-brand b { display: block; font: 900 15px/1 var(--sans); letter-spacing: -.02em; }
.dash-brand small { display: block; margin-top: 3px; font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.dash-nav { display: flex; flex-direction: column; gap: 3px; }
.dash-nav button { position: relative; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; text-align: left; transition: background-color .25s, color .25s; }
.dash-nav button .i { width: 17px; height: 17px; }
.dash-nav button:hover { background: rgba(11,11,12,.07); }
.dash-nav button[aria-selected='true'] { background: var(--ink); color: var(--card); box-shadow: 0 8px 16px -10px rgba(11,11,12,.8); }
.dash-nav button .chip { margin-left: auto; }
.dash-nav button[aria-selected='true'] .chip { color: var(--card); border-color: rgba(251,250,248,.6); }
.dash-status { margin-top: auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; }
.dash-status p { display: flex; align-items: center; gap: 7px; font-weight: 700; margin-bottom: 8px; letter-spacing: .12em; }
.dash-status dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 8px; }
.dash-status dt { color: var(--ink-2); }
.dash-status dd { text-align: right; }
.dash-top { grid-area: top; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 4px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.dash-title { font-size: 15px; margin-right: auto; }
.dash-title b { font-weight: 800; letter-spacing: -.01em; }
.dash-crumb { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px; border: 1px dashed var(--ink-3); border-radius: 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--sh-1); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; min-height: 22px; }
.card-h .i { width: 16px; height: 16px; }
.card-h-r { margin-left: auto; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; font-size: 9.5px; }
.c-bal { grid-area: bal; }
.c-priv { grid-area: priv; }
.c-stage { grid-area: stage; display: flex; flex-direction: column; min-height: 452px; }
.c-net { grid-area: net; display: flex; flex-direction: column; }
.c-act { grid-area: act; }

.eye { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line); transition: background-color .25s, color .25s; }
.eye:hover { background: var(--ink); color: var(--card); }
.eye .i { width: 17px; height: 17px; grid-area: 1 / 1; }
.eye .i-shut, .eye[aria-pressed='true'] .i-open { display: none; }
.eye[aria-pressed='true'] .i-shut { display: block; }
.bal-big { font: 800 clamp(30px, 3.1vw, 42px)/1 var(--mono); letter-spacing: -.04em; white-space: nowrap; }
.bal-u { font: 900 .62em/1 var(--sans); letter-spacing: -.02em; }
.bal-sub { margin-top: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.bal-actions { margin-top: 12px; display: flex; gap: 6px; }
.bal-actions .btn { flex: 1; padding: 0 6px; }
.bal-actions .i { display: none; }
.amt { position: relative; display: inline-block; }
.amt-bar { position: absolute; inset: -.08em -.14em; background: var(--ink); border-radius: 3px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--ease); pointer-events: none; }
.sealed .amt-bar { transform: scaleX(1); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* notes */
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(58px, 1fr); gap: 8px; margin: 12px 0; flex: 1; max-height: 300px; }
.note { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, var(--card), var(--paper)); overflow: hidden; }
.note::before { content: ''; position: absolute; right: -14px; top: -14px; width: 44px; height: 44px; background: repeating-linear-gradient(135deg, rgba(11,11,12,.16) 0 2px, transparent 2px 5px); border-radius: 50%; }
.note small { display: block; font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 7px; }
.note b { font: 700 clamp(17px, 1.7vw, 24px)/1 var(--mono); letter-spacing: -.02em; }
.note b em { font: 800 11px/1 var(--sans); font-style: normal; margin-left: 4px; }
.quick { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.panel[hidden] { display: none; }
.qbtn { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 11px; border: 1px solid var(--ink); border-radius: 10px; text-align: left; transition: background-color .3s, color .3s, translate .4s var(--ease); }
.qbtn:hover { background: var(--ink); color: var(--card); translate: 0 -2px; }
.qbtn:hover .chip { color: var(--card); border-color: rgba(251,250,248,.6); }
.qbtn .i { width: 19px; height: 19px; margin-bottom: 4px; }
.qbtn b { font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.qbtn span { font-size: 11px; line-height: 1.25; opacity: .7; }
.qbtn .chip { position: absolute; right: 8px; top: 9px; }

/* fields, segmented controls */
.swap-rows { display: grid; gap: 8px; }
.field { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 9px; background: var(--paper); }
.field label, .opt label { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tok { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; }
.tok-i { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--card); display: grid; place-items: center; font: 800 10px/1 var(--mono); font-style: normal; }
.tok-u { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); }
.swap-out { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--card); }
.seg button { height: 30px; padding: 0 10px; font: 600 12px/1 var(--mono); border-left: 1px solid var(--line); transition: background-color .2s, color .2s; white-space: nowrap; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--ink); color: var(--card); }
.seg-s button { height: 26px; font-size: 10.5px; padding: 0 8px; }
.swap-opts { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }

/* flow: a note travels between stations */
.flow { margin: 12px 0; padding: 12px 10px 10px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(var(--card), var(--paper)); flex: 1; display: flex; flex-direction: column; justify-content: center; }
.flow-track { position: relative; height: 26px; }
.flow-line, .flow-fill { position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; }
.flow-line { background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 8px); }
.flow-fill { background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.flow-note { position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); padding: 4px 7px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--card); border-radius: 5px; margin-left: 22px; white-space: nowrap; box-shadow: 0 6px 12px -6px rgba(11,11,12,.7); will-change: left; }
.flow-st { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.flow-st.flow-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow-st li { text-align: center; padding: 7px 4px 8px; border-radius: 8px; border: 1px solid transparent; transition: background-color .35s, color .35s, border-color .35s; }
.flow-st li b { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; }
.flow-st li span { display: block; font-size: 10px; line-height: 1.2; color: var(--ink-2); margin-top: 2px; transition: color .35s; }
.flow-st li.done { border-color: var(--line); }
.flow-st li.on { background: var(--ink); color: var(--card); }
.flow-st li.on span { color: rgba(251,250,248,.7); }
.flow-st li.fail { border: 1px dashed var(--ink); background: repeating-linear-gradient(135deg, rgba(11,11,12,.1) 0 3px, transparent 3px 6px); }
.flow-log { margin-top: 10px; min-height: 2.9em; font-size: 10.5px; line-height: 1.45; color: var(--ink); }
.seen { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 10px; }
.seen span { color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; font-size: 9px; align-self: center; }
.seen b { font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* offline stepper */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.steps li::before { content: ''; position: absolute; top: 19px; left: -50%; width: 100%; height: 1.5px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 8px); }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.on::before { background: var(--ink); }
.steps li i { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--ink); background: var(--card); display: grid; place-items: center; margin-bottom: 5px; transition: background-color .35s, color .35s, translate .5s var(--ease); }
.steps li i .i { width: 19px; height: 19px; }
.steps li.on i { background: var(--ink); color: var(--card); translate: 0 -3px; }
.steps li.done i { background: var(--paper-2); }
.steps li b { font-size: 12px; font-weight: 800; }
.steps li span { font-size: 9.5px; color: var(--ink-2); line-height: 1.2; }
.off-body { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; margin-top: 12px; align-items: stretch; }
.off-code { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 8px 10px; min-width: 0; }
.off-meta { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.off-meta b { color: var(--ink); }
.off-str { font-size: 10.5px; line-height: 1.42; word-break: break-all; min-height: 5.7em; letter-spacing: .01em; }
.off-qr { width: 104px; height: 104px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); image-rendering: pixelated; }
.off-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.off-actions .btn { height: 38px; font-size: 13.5px; padding: 0 14px; }
.off-honest { margin-top: auto; padding-top: 10px; }
.flight { color: var(--ink); }
.dot-off { background: transparent; border: 1.5px solid currentColor; }

/* network */
.net-globe { position: relative; flex: 1; min-height: 170px; margin: -4px -8px 4px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: 10.5px; }
.facts dt, .facts dd { padding: 7px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; font-size: 9px; padding-right: 10px; align-self: stretch; display: flex; align-items: center; }
.facts dd { text-align: right; font-weight: 600; }

/* activity */
.act-wrap { overflow-x: auto; }
.act { width: 100%; border-collapse: collapse; font-size: 11px; }
.act th { text-align: left; font-weight: 500; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 0 8px 7px 0; }
.act td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.act td:first-child { font-family: var(--sans); font-size: 13px; font-weight: 700; }
.act .tag { display: inline-block; padding: 3px 6px; border: 1px solid var(--ink); border-radius: 4px; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; }
.act .tag-dash { border-style: dashed; }
.act tr.new td { background: rgba(11,11,12,.05); }
.act .st { display: inline-flex; align-items: center; gap: 5px; }
.act .st .i { width: 13px; height: 13px; }
.act td:last-child, .act th:last-child { text-align: right; padding-right: 0; color: var(--ink-2); }

/* 5. close */
.close { position: relative; min-height: min(100svh, 900px); padding: clamp(90px, 17vh, 170px) var(--m) 120px; overflow: hidden; display: flex; align-items: flex-start; }
.close-globe { inset: 0; }
.close-copy { position: relative; max-width: 60vw; }
.close-h { font-size: clamp(48px, min(8.6vw, 17vh), 150px); margin: 20px 0 26px; }
.close .hero-cta { margin-top: 30px; }

/* footer */
.foot { background: var(--ink); color: rgba(241,240,236,.72); padding: 34px var(--m) 40px; }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.foot .brand { color: var(--paper); }
.foot .brand-mark { box-shadow: 0 0 0 1px rgba(241,240,236,.3); }
.foot-note { font-size: 13px; line-height: 1.5; max-width: 62em; }
.foot-r { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.foot-r a { color: var(--paper); border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* the designed 2D route (reduced motion, no WebGL, or a slow GPU): a still dot-matrix globe drawn once */
.globe-2d { position: absolute; inset: 0; width: 100%; height: 100%; }
.static .orbit-tag { display: none; }

/* ≤ 1100: the dashboard stacks and the sidebar becomes tabs */
@media (max-width: 1100px) {
  .nav-status { display: none; }
  .dash { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: 'side' 'top' 'bal' 'stage' 'net' 'priv' 'act'; max-width: 760px; margin: 0 auto; }
  .dash[data-view='activity'] { grid-template-areas: 'side' 'top' 'act'; }
  .dash-side { flex-direction: row; align-items: center; padding: 0; gap: 8px; min-width: 0; }
  .dash-brand, .dash-status { display: none; }
  .dash-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding: 2px; margin: -2px; scrollbar-width: none; flex: 1; min-width: 0; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav button { flex: none; height: 40px; padding: 0 12px; border: 1px solid var(--line); }
  .dash:not([data-view='dashboard']) .c-bal, .dash:not([data-view='dashboard']) .c-net, .dash:not([data-view='dashboard']) .c-priv { display: none; }
  .dash:not([data-view='activity']) .c-act { display: none; }
  .dash[data-view='dashboard'] { grid-template-areas: 'side' 'top' 'bal' 'stage' 'net' 'priv'; }
  .dash:not([data-view='dashboard']):not([data-view='activity']) { grid-template-areas: 'side' 'top' 'stage'; }
  .c-stage { min-height: 0; }
  .net-globe { min-height: 230px; }
  .xcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features li:nth-child(n+4) { display: none; }
}

/* phones */
@media (max-width: 720px) {
  :root { --m: 16px; --nav: 54px; }
  .ground i:nth-child(2), .ground i:nth-child(4) { display: none; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .brand-word { font-size: 19px; }
  .hero { height: auto; min-height: 100svh; max-height: none; padding-top: calc(var(--nav) + 22px); }
  .hero-copy { max-width: none; }
  .hero-h { font-size: 13.4vw; margin-top: 14px; }
  .hero-h .ln { display: inline; overflow: visible; white-space: normal; }
  .hero-h .ln-blk { display: block; }
  .hero-sub { margin-top: 16px; font-size: 15.5px; }
  .hero-cta { margin-top: 18px; gap: 8px; }
  .hero-cta .btn { flex: 1; padding: 0 12px; }
  .hero-note { flex: 0 0 100%; margin: 6px 0 0; }
  .hero-note br { display: none; }
  .hero-words { display: none; }
  .hero-globe { inset: auto 0 0 0; height: 45svh; }
  .globe-shadow { left: 50%; top: 50%; width: 78vw; }
  .hero::after { content: ''; display: block; height: 44svh; }
  .dash-top .pill, .flight { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); position: absolute; left: var(--m); right: var(--m); bottom: 0; margin: 0; padding: 0; }
  .features li { height: 58px; padding: 0 10px; font-size: 12px; gap: 8px; }
  .features li:nth-child(n+3) { display: none; }
  .features li br { display: none; }
  .features .i { width: 20px; height: 20px; }
  .features .chip { display: none; }
  .orbit-tag { display: none; }
  .sec { padding: 72px var(--m); }
  .h2 { font-size: 12.2vw; }
  .problem { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pcards { padding: 10px 0 0; margin: 0 -6px; }
  .pcard { flex-basis: 37%; margin: 0 -2.5%; }
  .pcard-in { border-radius: 12px; aspect-ratio: 5 / 8.4; }
  .pcard-img { inset: 0 0 40% 0; }
  .pcard-txt { padding: 0 9px 10px; }
  .pcard-txt h3 { font-size: 13px; line-height: 1.1; }
  .pcard-txt p { font-size: 10.5px; line-height: 1.3; }
  .pcard-n { font-size: 9px; }
  .protocol-head, .stage-head { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 26px; }
  .protocol-lede, .stage-note { justify-self: start; }
  .xcards { grid-template-columns: minmax(0, 1fr); }
  .xcard { min-height: 0; }
  .stage { padding: 72px 10px 60px; }
  .stage-head { padding: 0 6px; }
  .demo-flag { font-size: 9.5px; line-height: 1.5; align-items: flex-start; }
  .demo-flag .dot { margin-top: 4px; }
  .dash { border-radius: 16px; padding: 8px; gap: 8px; }
  .dash-top { flex-wrap: wrap; }
  .pill { font-size: 9px; padding: 0 8px; }
  .dash-nav button { font-size: 12.5px; padding: 0 10px; gap: 7px; }
  .dash-nav button .chip { display: none; }
  .quick { grid-template-columns: minmax(0, 1fr); }
  .qbtn { flex-direction: row; align-items: center; gap: 10px; }
  .qbtn .i { margin: 0; }
  .qbtn span { display: none; }
  .qbtn .chip { position: static; margin-left: auto; }
  .swap-opts { gap: 10px; }
  .seg button { padding: 0 8px; }
  .flow-st li b { font-size: 11px; }
  .flow-st li span { font-size: 9px; }
  .off-body { grid-template-columns: minmax(0, 1fr) 92px; }
  .off-qr { width: 92px; height: 92px; }
  .off-str { font-size: 9.6px; }
  .steps li span { display: none; }
  .act th:nth-child(4), .act td:nth-child(4), .act th:nth-child(2), .act td:nth-child(2) { display: none; }
  .close { min-height: 92svh; padding-top: 80px; }
  .close-copy { max-width: none; }
  .close-h { font-size: 15vw; }
  .close .btn-l { height: 52px; font-size: 16px; padding: 0 20px; flex: 1; }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .foot-r { align-items: flex-start; }
}

/* short laptops (the owner's 1280 × 610) */
@media (min-width: 1101px) and (max-height: 680px) {
  .features li { height: 62px; }
  .hero { padding-top: calc(var(--nav) + 2.6vh); }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) * { animation: none !important; transition: none !important; }
}

/* the headline and the globe may overlap: type inverts where it crosses the sphere (the block, again) */
.hero-h, .hero-words, .close-h { color: #fff; mix-blend-mode: difference; }
.hero-h .blk, .close-h .blk { color: #000; }
.hero-h .blk-bg, .close-h .blk-bg { background: #fff; }
.hero-copy { margin: auto 0; }
.problem { perspective: 1600px; }
.pcards { perspective: none; transform-style: preserve-3d; }
.pcard-in { transform: translateY(var(--ly, 0px)) rotate(var(--rz, 0deg)) skewY(var(--sk, 0deg)); transition: transform .6s var(--ease), box-shadow .5s; }
.pcard:hover .pcard-in { --ly: -12px; }

.btn[hidden] { display: none; }

/* ───────── round 2 ───────── */

/* the hero copy stays clear of the orbit */
.hero-sub { max-width: 26em; }

/* protocol: big numerals; a black band sweeps the four cards with the scroll */
.xcards { position: relative; }
.xn { font: 900 clamp(44px, 4.6vw, 68px)/.86 var(--sans); letter-spacing: -.05em; }
.xband { position: absolute; left: 0; top: -8px; bottom: -8px; width: 25%; background: #fff; mix-blend-mode: difference; border-radius: 16px; pointer-events: none; transform: translateX(-130%); will-change: transform; }
.static .xband { display: none; }
.js:not(.static) .xcard:not(.lit) .xn { opacity: .22; }
.js:not(.static) .xcard:not(.lit) .meter b, .js:not(.static) .xcard:not(.lit) .route i { transform: scaleX(0); }
.xn { transition: opacity .4s; }
.meter b, .route i { transform-origin: 0 50%; transition: transform 1.2s var(--ease); }

/* the dish card: lifted so the rim reads against the cloud */
.pcard[data-i='0'] img { filter: grayscale(1) contrast(1.12) brightness(1.08); object-position: 50% 0%; }

/* the demo's stages: big, staged sequences */
.ctl { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; }
.ctl .opt label { margin-bottom: 4px; }
.card-h-r b { color: var(--ink); font-weight: 700; }
.theatre { position: relative; flex: 1; min-height: 178px; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle, rgba(11,11,12,.15) 1px, transparent 1.3px) 7px 7px / 14px 14px, linear-gradient(var(--card), var(--paper)); }
.th-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.th-lines path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.th-z { position: absolute; border: 1.5px dashed var(--ink-3); border-radius: 12px; background: var(--card); transition: background-color .35s, color .35s, border-color .35s, box-shadow .35s; }
.th-lab { position: absolute; left: 9px; top: 7px; right: 6px; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); line-height: 1.3; transition: color .35s; }
.th-notes { left: 3%; top: 12%; width: 21%; height: 76%; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 8px; }
.th-notes i { height: 15%; max-height: 26px; border: 1px solid var(--line); border-radius: 5px; background: repeating-linear-gradient(135deg, rgba(11,11,12,.13) 0 2px, transparent 2px 5px); }
.th-esc { left: 30%; top: 8%; width: 33%; height: 50%; }
.th-esc.locked { border-style: solid; border-color: var(--ink); background: repeating-linear-gradient(135deg, rgba(11,11,12,.07) 0 3px, var(--card) 3px 7px); box-shadow: 0 14px 22px -16px rgba(11,11,12,.6); }
.th-esc.fail { border-style: dashed; }
.th-lock { position: absolute; right: 8px; top: 6px; width: 15px; height: 15px; opacity: 0; transition: opacity .3s; }
.locked .th-lock { opacity: 1; }
.th-jup { left: 72%; top: 7%; width: 23%; aspect-ratio: 1; border-radius: 50%; border-style: solid; border-color: var(--ink); display: grid; place-items: center; }
.th-jup .th-lab, .th-rel .th-lab { position: static; font-size: 9.5px; font-weight: 700; color: var(--ink); text-align: center; }
.th-jup.on, .th-rel.on, .th-dev.on { background: var(--ink); color: var(--card); }
.th-jup.on .th-lab, .th-rel.on .th-lab, .th-dev.on .th-lab { color: var(--card); }
.th-out { left: 67%; top: 64%; width: 30%; height: 30%; }
.th-out.on { border-style: solid; border-color: var(--ink); }
.th-gauge { position: absolute; left: 30%; top: 66%; width: 33%; }
.th-gauge .th-lab { position: static; display: block; margin-bottom: 9px; }
.g-bar { position: relative; height: 11px; border: 1px solid var(--ink); border-radius: 3px; background: var(--card); }
.g-bar b { position: absolute; inset: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.g-bar i { position: absolute; left: 75%; top: -8px; width: 1.5px; height: 5px; background: var(--ink); }
.th-gauge em { display: block; margin-top: 6px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--ink-2); }
.th-gauge em.ok, .th-gauge em.no { color: var(--ink); font-weight: 700; }
.th-tile { position: absolute; left: 0; top: 0; z-index: 3; min-width: 100px; height: 38px; padding: 0 11px; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--ink); border-radius: 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 12px 18px -10px rgba(11,11,12,.6); opacity: 0; will-change: transform; }
.th-small { min-width: 0; height: 26px; padding: 0 8px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; border-style: dashed; }
.th-pulse { position: absolute; left: 0; top: 0; z-index: 2; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); opacity: 0; }
.th-dev { left: 3%; top: 10%; width: 19%; height: 80%; border-style: solid; border-color: var(--ink); border-radius: 16px; display: grid; place-items: center; }
.th-dev .i { width: 34px; height: 34px; stroke-width: 1.3; }
.th-meter { position: absolute; left: 10px; right: 10px; bottom: 11px; height: 6px; border: 1px solid currentColor; border-radius: 3px; }
.th-meter b { display: block; height: 100%; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; }
.th-rel { left: 28%; top: 30%; width: 19%; aspect-ratio: 1; border-radius: 50%; border-style: solid; border-color: var(--ink); display: grid; place-items: center; }
.th-chain { left: 53%; top: 7%; width: 44%; height: 86%; border-style: solid; border-color: var(--ink); padding: 26px 11px 8px; display: flex; flex-direction: column; justify-content: center; }
.th-chain.on { box-shadow: 0 0 0 4px rgba(11,11,12,.1), 0 16px 24px -16px rgba(11,11,12,.6); }
.th-chain .seen { margin: 0; padding: 0; border: 0; grid-template-columns: minmax(0, 1fr); gap: 1px; font-size: 11.5px; }
.th-chain .seen span { font-size: 8.5px; margin-top: 5px; }
.th-chain .seen b { text-align: left; font-weight: 700; }

.off-body { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; margin-top: 10px; align-items: stretch; }
.off-qr { width: 136px; height: 136px; }
.off-code { display: flex; flex-direction: column; }
.off-big { display: flex; align-items: flex-end; gap: 9px; }
.off-big b { font-size: 46px; font-weight: 800; line-height: .82; letter-spacing: -.06em; }
.off-big span { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); line-height: 1.45; }
.off-str { font-size: 11.5px; line-height: 1.4; margin-top: 8px; min-height: 5.6em; }
.off-track { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 30px; }
.off-node { flex: none; padding: 7px 11px; border: 1.5px solid var(--ink); border-radius: 8px; font-size: 11.5px; font-weight: 700; background: var(--card); transition: background-color .35s, color .35s; white-space: nowrap; }
.off-node.on { background: var(--ink); color: var(--card); }
.off-node.fail { border-style: dashed; background: repeating-linear-gradient(135deg, rgba(11,11,12,.12) 0 3px, transparent 3px 6px); }
.off-line { flex: 1; height: 1.5px; position: relative; background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 8px); }
.off-line b { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.off-honest { font-size: 11.5px; line-height: 1.4; }
.flow-log { font-size: 11px; margin-top: 8px; min-height: 3em; }
.panel > .btn-wide { margin-top: 6px; flex: none; }

/* desktop: the whole dashboard fits one screen under the nav */
@media (min-width: 1101px) {
  #dash { scroll-margin-top: calc(var(--nav) + 14px); }
  .dash { height: clamp(500px, calc(100svh - var(--nav) - 30px), 680px); padding: 10px; gap: 10px;
    grid-template-columns: 196px minmax(0, .8fr) minmax(0, 1.62fr) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: 'side top top top' 'side bal stage net' 'side priv stage act'; }
  .dash[data-view='activity'] { grid-template-areas: 'side top top top' 'side bal act act' 'side priv act act'; }
  .dash .card { overflow: hidden; padding: 12px; }
  .dash-top { min-height: 34px; padding-bottom: 8px; }
  .dash-side { padding: 4px 2px 2px 4px; gap: 10px; min-height: 0; }
  .dash-nav button { height: 35px; }
  .c-stage { min-height: 0; }
  .bal-big { font-size: clamp(27px, 2.5vw, 36px); }
  .c-priv .fine { font-size: 11.5px; }
  .net-globe { flex: none; height: clamp(104px, 19vh, 190px); min-height: 0; margin: -6px -8px 2px; }
  .facts dt, .facts dd { padding: 4px 0; }
  .c-act .card-h { margin-bottom: 6px; }
  .act td { padding: 6px 8px 6px 0; }
  .dash:not([data-view='activity']) .c-act .card-h-r,
  .dash:not([data-view='activity']) .act th:nth-child(2), .dash:not([data-view='activity']) .act td:nth-child(2),
  .dash:not([data-view='activity']) .act th:nth-child(5), .dash:not([data-view='activity']) .act td:nth-child(5),
  .dash:not([data-view='activity']) .act th:nth-child(6), .dash:not([data-view='activity']) .act td:nth-child(6) { display: none; }
  .dash:not([data-view='activity']) .act td:nth-child(4) { text-align: right; padding-right: 0; }
  .dash:not([data-view='activity']) .act th:nth-child(4) { text-align: right; padding-right: 0; }
  .notes { max-height: none; }
}
@media (min-width: 1101px) and (max-height: 700px) {
  .stage { padding-top: 64px; }
  .stage-head { margin-bottom: 22px; }
  .dash-status { padding: 8px; }
  .steps li span { display: none; }
  .steps li i { width: 34px; height: 34px; margin-bottom: 3px; }
  .steps li::before { top: 17px; }
  .off-body { grid-template-columns: 118px minmax(0, 1fr); margin-top: 8px; }
  .off-qr { width: 118px; height: 118px; }
  .off-big b { font-size: 38px; }
  .off-str { font-size: 10.5px; min-height: 5.6em; margin-top: 6px; }
  .off-track { padding-top: 28px; margin-top: 0; }
  .off-actions .btn { height: 34px; }
  .off-honest { font-size: 10.5px; padding-top: 6px; }
  .c-priv .fine { font-size: 11px; line-height: 1.38; }
  .quick .qbtn span { display: none; }
}
@media (max-width: 1100px) {
  .theatre { flex: none; height: 236px; }
  .xband { display: none; }
}
@media (max-width: 720px) {
  .xn { font-size: 46px; }
  .th-lab { font-size: 7.5px; left: 6px; top: 5px; }
  .th-tile { min-width: 84px; height: 34px; font-size: 11px; padding: 0 7px; }
  .th-small { min-width: 0; height: 24px; font-size: 8px; }
  .th-chain { padding: 22px 8px 6px; }
  .th-chain .seen { font-size: 9.5px; }
  .off-body { grid-template-columns: 104px minmax(0, 1fr); }
  .off-qr { width: 104px; height: 104px; }
  .off-big b { font-size: 36px; }
  .off-str { font-size: 9.6px; }
  .off-node { font-size: 10.5px; padding: 6px 8px; }
}

.opt-min b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 26px; }
.off-honest { margin: 0 0 10px; padding: 0; }
.dash-nav button span { white-space: nowrap; }
@media (min-width: 1101px) {
  .dash { grid-template-columns: 208px minmax(0, .95fr) minmax(0, 1.6fr) minmax(0, 1fr); }
  .dash .card-h { letter-spacing: .08em; font-size: 10px; }
  .c-priv .chip { font-size: 8.5px; padding: 4px 6px; }
  .act .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1101px) and (max-height: 700px) {
  .off-body { grid-template-columns: 104px minmax(0, 1fr); }
  .off-qr { width: 104px; height: 104px; }
  .off-big b { font-size: 34px; }
  .off-str { min-height: 4.4em; }
  .off-honest { font-size: 10.5px; margin-bottom: 8px; }
  .flow-log { min-height: 2.9em; margin-top: 6px; }
}

@media (min-width: 1101px) and (max-height: 700px) { .c-priv .fine { font-size: 10.5px; line-height: 1.34; } .c-priv .chips { margin-bottom: 7px; } .bal-sub { margin-top: 8px; padding-bottom: 9px; } .bal-actions { margin-top: 9px; } }
