/* ============================================================
   Lintel — liquidity vault site
   Palette: graphite + brass
   ============================================================ */

:root {
  /* ground */
  --bg:          #14171a;
  --bg-lift:     #171b1f;
  --grid:        #1e2327;
  --grid-strong: #2b3136;

  /* Type. Every neutral shares the ground's blue bias (206-210 degrees);
     --ink and --ink-2 used to sit at 90 and 130, green against a blue ground. */
  --ink:    #e6e8ea;
  --ink-2:  #cbcfd2;
  --ink-3:  #9aa3a8;
  --ink-4:  #79828a;

  /* brass accent */
  --brass:      #c8963e;
  --brass-lift: #e0b366;
  --brass-deep: #a87c2c;

  /* semantic */
  --ok:    #6dbe93;
  --crit:  #e0705a;
  /* Warning sits at 26 degrees, deliberately clear of the brass at 38: the two
     used to be 1 degree apart, so "Audit: not started" — the most important
     caution on the site — was rendered in the brand accent. */
  --amber: #e18a47;

  /* surfaces */
  --panel:        rgba(232, 234, 230, 0.030);
  --panel-quiet:  rgba(232, 234, 230, 0.016);
  --panel-line:   rgba(232, 234, 230, 0.090);
  --hair:         rgba(232, 234, 230, 0.115);
  --hair-soft:    rgba(232, 234, 230, 0.070);

  /* type stacks */
  --f-display: "Instrument Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-sans:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 1320px;
}

* { box-sizing: border-box; }
/* The hidden attribute loses to any class that sets display, so without this
   an element the script hides with el.hidden = true stays on screen. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--brass-lift);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--brass);
  color: #14171a;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 4px;
  transition: top .16s ease;
}
.skip:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 40px;
}

.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}

.mono {
  font-family: var(--f-mono);
  font-variant-ligatures: none;
}

.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================
   Header
   ============================================================ */

.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(20, 23, 26, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair-soft);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 61px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  min-height: 44px;
}
/* the mark matches the wordmark rather than the accent, so the lockup reads
   as one unit; --ink, not #fff, or the mark sits brighter than the word */
.brand svg { display: block; width: 23px; height: 23px; color: var(--ink); }
.brand-name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-left: 2px;
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
}
.hdr-nav a {
  font-size: 13.5px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 0;
  transition: color .18s ease;
  white-space: nowrap;
}
.hdr-nav a .n { font-family: var(--f-mono); font-size: 12px; color: var(--brass); }
.hdr-nav a:hover { color: var(--ink); }
.hdr-nav a.on { color: var(--ink); }
.hdr-nav a.on::before { content: "[ "; color: var(--ink-4); font-family: var(--f-mono); font-size: 12px; }
.hdr-nav a.on::after  { content: " ]"; color: var(--ink-4); font-family: var(--f-mono); font-size: 12px; }

.hdr-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-4);
}
.hdr-sep { color: var(--grid-strong); }
.hdr-tick { color: var(--ink-2); }
.hdr-tick .erc { color: var(--brass); }

.pill-net {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brass);
  color: #14171a;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
}
.pill-net::before { content: none; }
.pill-net .ely { margin-left: -3px; }
img.ely { display: inline-block; flex: 0 0 auto; border-radius: 50%; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(20, 23, 26, .25); }
.plate-code .ely { vertical-align: -2px; margin: 0 2px; }
.net { display: inline-flex; align-items: center; gap: 8px; }

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink-3);
  transition: color .18s ease;
}
.icon-link:hover { color: var(--ink); }
.icon-link svg { width: 15px; height: 15px; }

.btn-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: #14171a;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .18s ease, transform .18s ease;
}
.btn-app:hover { background: #fff; }

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--brass);
  transition: width .18s linear;
}

.hdr-burger { display: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 92px 0 104px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Knock the footage back, and warm it. Measured on the rendered page, the
     ungraded sky sat at 200 degrees and 32% saturation — the loudest area on
     the site, and near-opposite the brass at 38. The sepia pass halves that to
     17% and brings the ground to 30 degrees, so the imagery and the accent
     land in one hue family instead of fighting. */
  filter: sepia(0.55) saturate(1.10) brightness(0.58) contrast(1.06);
}
.hero-scrim,
.hero-fade { position: absolute; pointer-events: none; }
.hero-scrim {
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(20, 23, 26, 0.90) 0%,
      rgba(20, 23, 26, 0.66) 30%,
      rgba(20, 23, 26, 0.30) 58%,
      rgba(20, 23, 26, 0.10) 100%),
    linear-gradient(to bottom,
      rgba(20, 23, 26, 0.86) 0%,
      rgba(20, 23, 26, 0.40) 26%,
      rgba(20, 23, 26, 0.32) 52%,
      rgba(20, 23, 26, 0.58) 78%,
      rgba(20, 23, 26, 0.95) 100%);
}
.hero-fade {
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  background: linear-gradient(to bottom, rgba(20, 23, 26, 0) 0%, var(--bg) 94%);
}

.blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.bp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 175px 175px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, #000 55%, transparent 100%);
  opacity: .42;
}
.bp-cross {
  position: absolute;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
}
.bp-cross::before, .bp-cross::after {
  content: "";
  position: absolute;
  background: var(--grid-strong);
}
.bp-cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.bp-cross::after  { top: 0; bottom: 0; left: 50%; width: 1px; }

.bp-square {
  position: absolute;
  width: 99px;
  height: 99px;
  border: 1px solid var(--grid-strong);
}

.bp-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.bp-lines line { stroke: var(--grid-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }

.bp-note {
  position: absolute;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
  text-shadow: 0 1px 10px rgba(20, 23, 26, 0.95), 0 0 2px rgba(20, 23, 26, 0.9);
}
.bp-note b {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 5px;
}

.hero-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  min-height: 664px;
}

h1.hero-h {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 12ch;
}

.hero-lede {
  margin: 30px 0 0;
  max-width: 44ch;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-3);
}

.hero-ca {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 0;
  font-family: var(--f-mono);
  font-size: 12px;
}
.hero-ca .lbl { color: var(--ink-4); letter-spacing: .1em; }
.addr {
  color: var(--ink-2);
  background: none;
  border: 0;
  padding: 6px 0;
  min-height: 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  cursor: pointer;
  word-break: break-all;
  text-align: left;
}
.addr:hover { color: var(--brass-lift); }

.mini {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color .18s ease;
}
.mini:hover { color: var(--brass-lift); }

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 26px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--brass);
  color: #14171a;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .18s ease;
}
.btn-primary:hover { background: var(--brass-lift); }
.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--f-mono);
  color: var(--ink-2);
  border-bottom: 1px solid var(--hair);
  transition: color .18s ease, border-color .18s ease;
}
.btn-quiet:hover { color: var(--brass-lift); border-color: var(--brass); }

.callout {
  position: absolute;
  right: 0;
  bottom: 12px;
  z-index: 2;
  max-width: 292px;
}
.callout-tag {
  display: inline-block;
  background: var(--brass);
  color: #14171a;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px 3px 0 0;
}
.callout-body {
  border: 1px solid var(--brass);
  border-radius: 0 3px 3px 3px;
  padding: 18px 18px 14px;
  background: rgba(200, 150, 62, 0.055);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.callout-body a {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--brass-lift);
  border-bottom: 1px solid rgba(224, 179, 102, .4);
  padding-bottom: 1px;
}

/* ============================================================
   Sections
   ============================================================ */

.sec { padding: 116px 0; border-top: 1px solid var(--hair-soft); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 26px;
}
.eyebrow .num { color: var(--brass); font-weight: 700; }
.eyebrow .bar { width: 34px; height: 1px; background: var(--grid-strong); }

h2.sec-h {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}

.sec-lede {
  margin: 24px 0 0;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-3);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  padding: 30px;
}
.panel.quiet { background: var(--panel-quiet); border-color: var(--hair-soft); }
.panel.flush { padding: 0; }

.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px 11px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.chip.good { color: var(--ok); border-color: rgba(109, 190, 147, .38); background: rgba(109, 190, 147, .08); }
.chip.warn { color: var(--amber); border-color: rgba(225, 138, 71, .42); background: rgba(225, 138, 71, .10); }
.chip.off  { color: var(--ink-4); border-color: var(--hair-soft); }
.chip.on   { color: var(--brass-lift); border-color: rgba(200, 150, 62, .42); background: rgba(200, 150, 62, .08); }

/* --- section header: headline left, lede right on wide screens --- */

.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 72px; align-items: end; }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head .sec-lede { margin: 0; padding-bottom: 6px; }

@media (max-width: 1000px) {
  .sec-head { display: block; }
  .sec-head .sec-lede { margin-top: 24px; padding: 0; }
}

/* --- plates: the drawing-sheet frame every figure sits in --- */

.plate {
  --mk: rgba(232, 234, 230, .34);
  position: relative;
  margin: 0;
  padding: 22px 24px 20px;
  border: 1px solid var(--hair-soft);
  background:
    linear-gradient(var(--mk), var(--mk)) left top / 14px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) left top / 1px 14px no-repeat,
    linear-gradient(var(--mk), var(--mk)) right top / 14px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) right top / 1px 14px no-repeat,
    linear-gradient(var(--mk), var(--mk)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--mk), var(--mk)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--mk), var(--mk)) right bottom / 1px 14px no-repeat,
    linear-gradient(rgba(232, 234, 230, .028) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(232, 234, 230, .028) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--panel-quiet);
}
.plate-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--hair-soft);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.plate-code { color: var(--ink-4); letter-spacing: .1em; text-align: right; }
.plate-cap { margin: 16px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-4); max-width: 86ch; }
.plate-scroll { overflow-x: auto; }

/* --- 01 thesis: a ledger, not two cards --- */

.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  margin-top: 64px;
}
.ledger-h {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.ledger-col.on .ledger-h { color: var(--brass); border-bottom-color: rgba(200, 150, 62, .5); }
.ledger-col ol { list-style: none; margin: 0; padding: 0; }
.ledger-col li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hair-soft);
  font-family: var(--f-display);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -.012em;
}
.ledger-col.off li { color: var(--ink-4); }
.ledger-col.on li { color: var(--ink); }
.ledger-col .n { flex: 0 0 auto; padding-top: 4px; font-family: var(--f-mono); font-size: 11px; color: var(--brass); }
.strike {
  background: linear-gradient(var(--ink-4), var(--ink-4)) left 56% / 100% 1px no-repeat;
  transition: background-size .9s cubic-bezier(.22, .61, .36, 1) .25s;
}
.js .ledger:not(.shown) .strike { background-size: 0 1px; }
.ledger-note { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-4); }
.ledger-mid { display: flex; align-items: center; justify-content: center; color: var(--grid-strong); }
.ledger-mid svg { width: 26px; height: 120px; }

/* --- 02 mechanic: lifecycle drawing --- */

#mechanic > .shell > .plate { margin-top: 64px; }
svg.flow { display: block; width: 100%; height: auto; font-family: var(--f-sans); }
.flow .h-ln { stroke: rgba(232, 234, 230, .2); stroke-width: 1; }
.flow .h-br { stroke: var(--brass); stroke-width: 1.4; }
.flow .wall rect { fill: var(--h, url(#hatch)); stroke: var(--ink-4); stroke-width: 1; }
svg.flow-m { display: none; min-width: 0; max-width: 420px; margin: 0 auto; }
.flow .lintel { fill: var(--brass); }
.flow .ln-strong { stroke: var(--ink-4); stroke-width: 1.2; }
.flow .ln-ink { stroke: var(--ink-3); stroke-width: 1; }
.flow .coin { fill: var(--bg-lift); stroke: var(--ink-3); stroke-width: 1.2; }
.flow .coin.hype { fill: #0c2221; stroke: rgba(151, 252, 228, .42); }
.flow .coin.share { fill: var(--bg); stroke: var(--brass); }
.flow .coin-ring { fill: none; stroke: rgba(151, 252, 228, .38); stroke-width: 1; stroke-dasharray: 2 3; }
.flow .mark { color: var(--ink-2); }
.flow .coin.share + .mark { color: var(--brass-lift); }
.flow .node { fill: var(--bg-lift); stroke: var(--grid-strong); stroke-width: 1; }
.flow .node.solid { stroke: var(--ink-3); }
.flow .node.dash { fill: none; stroke: var(--ink-4); stroke-dasharray: 4 3; }
.flow .flow { fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.flow .flow-b { fill: none; stroke: var(--brass); stroke-width: 1.6; }
.flow .ret { fill: none; stroke: var(--ink-4); stroke-width: 1.2; stroke-dasharray: 5 4; }
.flow .ah { fill: none; stroke: var(--ink-3); stroke-width: 1.4; }
.flow .ah-b { fill: none; stroke: var(--brass); stroke-width: 1.6; }
.flow .bub { fill: var(--bg); stroke: var(--brass); stroke-width: 1.2; }
.flow .bar-bg { fill: rgba(232, 234, 230, .05); stroke: var(--grid-strong); }
.flow .bar-done { fill: var(--ink-4); }
.flow .bar-rel { stroke: var(--brass); stroke-width: 1; }
.flow text { fill: var(--ink-3); }
.flow .t-lbl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; fill: var(--ink-4); }
.flow .t-eq { font-size: 15px; fill: var(--ink-3); }
.flow .t-eqv { font-family: var(--f-mono); font-size: 14px; fill: var(--ink); }
.flow .t-sm { font-size: 11.5px; fill: var(--ink-4); }
.flow .t-sm.br { fill: var(--brass); }
.flow .t-node { font-size: 13px; fill: var(--ink-2); }
.flow .t-coin { font-family: var(--f-mono); font-size: 12px; fill: var(--ink); }
.flow .t-call { font-family: var(--f-mono); font-size: 13px; fill: var(--brass-lift); }
.flow .t-bub { font-family: var(--f-mono); font-size: 11px; fill: var(--brass-lift); }

.calls {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--hair-soft);
}
.calls li { padding: 30px 26px 30px 0; }
.calls li + li { padding-left: 26px; border-left: 1px solid var(--hair-soft); }
.bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--brass-lift);
}
.calls h3 { margin: 16px 0 0; font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -.02em; }
.calls code { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--brass); overflow-wrap: anywhere; }
.calls p { margin: 14px 0 0; font-size: 13.5px; line-height: 1.62; color: var(--ink-3); }

/* release chart + spec sheet */

.plot-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, .78fr);
  gap: 32px;
  margin-top: 56px;
  align-items: start;
}
.plot-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 8px; font-size: 12px; color: var(--ink-3); }
.plot-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg-solid { width: 18px; height: 2px; background: var(--brass); }
.lg-dash  { width: 18px; height: 0; border-top: 1.5px dashed var(--ink-4); }
.lg-drop  { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--brass-lift); }
.lg-h     { width: 1px; height: 12px; background: var(--ink-3); box-shadow: 3px 0 0 -0px transparent; }
.plot { position: relative; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.plot .gl { stroke: rgba(232, 234, 230, .07); }
.plot .gl0 { stroke: rgba(232, 234, 230, .16); }
.plot .ax { font-family: var(--f-mono); font-size: 10.5px; fill: var(--ink-4); }
.plot .price { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; }
.plot .area { fill: url(#plotFill); }
.plot .held { stroke: var(--ink-4); stroke-width: 1.5; stroke-dasharray: 5 4; }
.plot .hv { stroke: var(--ink-4); stroke-width: 1; }
.plot .hv-l { font-family: var(--f-mono); font-size: 9.5px; fill: var(--ink-4); }
.plot .drop { fill: var(--brass-lift); }
.plot .drop-l { font-family: var(--f-mono); font-size: 10px; fill: var(--brass-lift); }
.plot .dim { stroke: var(--ink-3); stroke-width: 1; }
.plot .dim-l { font-size: 11px; fill: var(--ink-3); }
.plot .cur { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.plot .cur-dot { fill: var(--bg); stroke: var(--brass-lift); stroke-width: 2; }
.plot .end-l { font-family: var(--f-mono); font-size: 11px; fill: var(--brass-lift); }
.plot-read {
  position: absolute;
  top: 6px;
  left: 0;
  pointer-events: none;
  background: var(--bg-lift);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 8px 11px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .12s ease;
}
.plot-read .s { color: var(--ink-4); }
.plot-read.on { opacity: 1; }
.plot-hint { color: var(--ink-3); }

.spec { padding: 22px 24px 8px; border: 1px solid var(--hair-soft); background: var(--panel-quiet); }
.spec dl { margin: 0; }
.spec dl > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair-soft);
}
.spec dl > div:last-child { border-bottom: 0; }
.spec dt { font-size: 14px; color: var(--ink-2); }
.spec dl > div::after { content: ""; grid-column: 2; grid-row: 1; align-self: center; border-bottom: 1px dotted var(--grid-strong); transform: translateY(3px); }
.spec dd { display: contents; }
.spec dd b { grid-column: 3; grid-row: 1; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-lift); }
.spec dd span { grid-column: 1 / -1; margin-top: 3px; font-size: 12.5px; color: var(--ink-4); }

/* --- 03 dual use --- */

.dual {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 28px;
  margin-top: 64px;
}
.slider-row { margin-bottom: 28px; }
.slider-row:last-child { margin-bottom: 4px; }
.slider-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
}
.slider-top .k { letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.slider-top .v { color: var(--ink); font-size: 14px; }
.slider-top .v .u { color: var(--ink-4); font-size: 11.5px; margin-left: 4px; }
.slider-hint { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-4); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  margin: 4px 0 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(var(--brass), var(--brass)) 0 0 / var(--fill, 0%) 100% no-repeat, var(--hair);
}
input[type="range"]::-moz-range-track { height: 2px; background: var(--hair); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--brass); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--brass-lift);
  transition: transform .15s ease;
}
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--brass-lift); }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { transform: scale(1.18); }

.stack { padding-bottom: 28px; margin-bottom: 26px; border-bottom: 1px solid var(--hair-soft); }
.stack-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.stack-total { font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.03em; color: var(--ink); }
.stack-total small, .job-big small { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-4); }
.stack-bar { display: flex; height: 30px; border: 1px solid var(--hair); background: rgba(232, 234, 230, .03); }
.sb { display: block; height: 100%; transition: width .25s ease; }
.sb.dep { background: #5f676e; }
.sb.rew { background: var(--brass); }
.sb.bor { background: repeating-linear-gradient(-45deg, rgba(200, 150, 62, .55) 0 1.5px, transparent 1.5px 6px); box-shadow: inset 0 0 0 1px rgba(200, 150, 62, .5); }
.stack-dims { display: flex; margin-top: 10px; }
.dim {
  position: relative;
  display: block;
  height: 18px;
  border-left: 1px solid var(--ink-4);
  border-right: 1px solid var(--ink-4);
  transition: width .25s ease;
}
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--ink-4); }
.dim em {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 8px;
  background: var(--bg);
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
  white-space: nowrap;
}
.dim.tiny em { display: none; }
.stack-key { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 12px; color: var(--ink-3); }
.stack-key li { display: flex; align-items: center; gap: 8px; line-height: 1; }
.stack-key .sb { flex: 0 0 14px; width: 14px; height: 10px; }

.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.job-head .t { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.job-big { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.03em; color: var(--ink); }
.job-cap { margin: 4px 0 18px; font-size: 12.5px; color: var(--ink-4); }
.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--hair-soft);
  font-size: 13px;
  color: var(--ink-3);
}
.kv .val { font-family: var(--f-mono); color: var(--ink-2); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv .val.br { color: var(--brass-lift); }
.honest { margin: 26px 0 0; font-size: 13px; line-height: 1.65; color: var(--ink-4); max-width: 96ch; }
.honest b { color: var(--ink-2); font-weight: 500; }

/* --- 04 comparison --- */

.cmp-wrap { margin-top: 64px; overflow-x: auto; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 760px; }
table.cmp thead th {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: left;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--hair);
  vertical-align: bottom;
}
table.cmp thead th:nth-child(1) { width: 30%; padding-left: 0; }
table.cmp thead th:nth-child(2) { width: 40%; }
table.cmp thead th:nth-child(3), table.cmp thead th:nth-child(4) { width: 15%; }
table.cmp td, table.cmp tbody th {
  padding: 22px 20px;
  border-bottom: 1px solid var(--hair-soft);
  vertical-align: middle;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-4);
  text-align: left;
  font-weight: 400;
}
table.cmp tbody tr:last-child > * { border-bottom: 0; }
table.cmp .design { padding-left: 0; }
table.cmp .design-in > span { color: var(--ink); font-size: 15px; }
table.cmp .design-in { display: flex; align-items: center; gap: 16px; }
.pic { flex: 0 0 auto; width: 44px; height: 44px; padding: 6px; border: 1px solid var(--hair-soft); fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pic .pic-b { stroke: var(--brass); }
.pic .fill { fill: var(--brass); stroke: none; }
table.cmp tr.us > * { background: rgba(200, 150, 62, .05); }
table.cmp tr.us .design-in > span { color: var(--brass-lift); }
table.cmp tr.us .pic { border-color: rgba(200, 150, 62, .4); padding: 8px; }
table.cmp tr.us .design em { display: block; margin-top: 4px; font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
table.cmp tr.us td { color: var(--ink-2); }
.mk { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-3); }
.mk::before { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; }
.mk.yes { color: var(--brass-lift); }
.mk.yes::before { background: currentColor; }
.mk.part::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.mk.no { color: var(--ink-4); }
.tbl-note { margin: 24px 0 0; font-size: 13px; line-height: 1.65; color: var(--ink-4); max-width: 80ch; }
.tbl-note b { color: var(--ink-2); font-weight: 500; }

/* --- 05 integrate --- */

.pipe { display: flex; align-items: stretch; gap: 0; margin-top: 64px; }
.pipe-node {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--hair);
  background: var(--panel-quiet);
}
.pipe-node code { font-family: var(--f-mono); font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.pipe-node.out { border-color: rgba(200, 150, 62, .5); background: rgba(200, 150, 62, .05); }
.pipe-node.out code { color: var(--brass-lift); }
.pipe-unit { font-size: 12.5px; color: var(--ink-4); }
.pipe-op { flex: 0 0 64px; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 28px; color: var(--ink-4); position: relative; }
.pipe-op::before, .pipe-op::after { content: ""; position: absolute; top: 50%; width: 14px; border-top: 1px solid var(--hair); }
.pipe-op::before { left: 0; } .pipe-op::after { right: 0; }

.integrate { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; margin-top: 28px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); padding: 0 20px; overflow-x: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex-shrink: 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-4);
  font-family: inherit;
  font-size: 13px;
  padding: 16px 12px;
  min-height: 44px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.tabs button:hover { color: var(--ink-2); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--hair-soft); }
.code-head .lang { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); }
pre.code { margin: 0; padding: 20px 24px 24px; overflow-x: auto; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.75; counter-reset: ln; }
pre.code::-webkit-scrollbar { height: 6px; }
pre.code::-webkit-scrollbar-thumb { background: var(--grid-strong); border-radius: 3px; }
pre.code code > div { counter-increment: ln; }
pre.code code > div::before { content: counter(ln); display: inline-block; width: 2.4em; margin-right: 14px; text-align: right; color: var(--grid-strong); user-select: none; }
pre.code .cm { color: var(--ink-4); }
pre.code .ln { color: var(--ink-2); }

.checklist { padding: 22px 24px 10px; border: 1px solid var(--hair-soft); background: var(--panel-quiet); }
.check { list-style: none; margin: 0; padding: 0; counter-reset: ck; }
.check li { position: relative; padding: 0 0 18px 38px; margin-bottom: 18px; border-bottom: 1px solid var(--hair-soft); counter-increment: ck; }
.check li:last-child { border-bottom: 0; margin-bottom: 0; }
.check li::before { content: counter(ck, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--f-mono); font-size: 11px; color: var(--brass); }
.check .k { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.check .v { margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--ink-4); }
.check a { color: var(--brass-lift); border-bottom: 1px solid rgba(224, 179, 102, .35); }

/* --- 06 risk: the price equation --- */

.eq { margin: 64px 0 0; padding: 44px 40px 36px; border: 1px solid var(--hair-soft); background: var(--panel-quiet); }
.eq-row { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.eq-lhs, .eq-num, .eq-den { font-family: var(--f-display); font-size: clamp(1.7rem, 4vw, 3rem); letter-spacing: -.03em; line-height: 1.15; }
.eq-lhs { color: var(--ink-3); }
.eq-op { font-family: var(--f-display); font-size: clamp(1.7rem, 4vw, 3rem); color: var(--ink-4); }
.eq-frac { display: inline-flex; flex-direction: column; align-items: center; }
.eq-num { color: var(--brass-lift); padding: 0 12px 8px; }
.eq-den { color: var(--ink); padding: 8px 12px 0; border-top: 2px solid var(--ink-3); }
.eq-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.eq-note { padding-top: 16px; border-top: 2px solid var(--grid-strong); }
.eq-note.up { border-top-color: var(--brass); }
.eq-note.both { border-top-color: var(--ink-3); }
.eq-note p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.62; color: var(--ink-3); }
.eq-note.up .label { color: var(--brass); }

.risk-list { margin-top: 48px; }
.risk-list h3 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -.02em; }
.risk-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.risk-items .item { padding: 18px 0; border-top: 1px solid var(--hair-soft); }
.risk-items .k { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.risk-items .v { margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--ink-4); }

/* --- 07 status: milestone track --- */

.track { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 64px 0 0; padding: 0; }
.track li { position: relative; padding: 30px 14px 0 0; display: flex; flex-direction: column; gap: 4px; }
.track li::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1px dashed var(--grid-strong); }
.track li.done::before { border-top: 2px solid var(--brass); top: 6px; }
.track .dot { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink-4); box-sizing: border-box; }
.track .done .dot { background: var(--brass); border-color: var(--brass); }
.track .done .dot::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 3.5px; height: 6.5px; border: solid var(--bg); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.track .wait .dot { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(225, 138, 71, .14); }
.track .t { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.track .done .t { color: var(--ink); }
.track .s { font-size: 12px; color: var(--ink-4); }

.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 52px; border-top: 1px solid var(--hair); }
.status-row { display: grid; grid-template-columns: 1fr auto; align-items: center; align-content: start; gap: 10px 16px; padding: 22px 0; border-bottom: 1px solid var(--hair-soft); }
.status-row .k { font-size: 15px; font-weight: 500; color: var(--ink); }
.status-row p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-4); }

/* --- 08 faq --- */

.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq-head { position: sticky; top: 100px; }
.faq-more { margin: 22px 0 0; font-size: 14px; color: var(--ink-4); }
.faq-more a { color: var(--brass-lift); border-bottom: 1px solid rgba(224, 179, 102, .35); }
.faq { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item:first-child { border-top: 1px solid var(--hair); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  background: none;
  border: 0;
  padding: 24px 0;
  min-height: 44px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
}
.faq-q svg { flex: 0 0 auto; width: 13px; height: 13px; color: var(--ink-4); transition: transform .22s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--brass); }
.faq-a { display: none; padding: 0 0 26px; max-width: 70ch; font-size: 14.5px; line-height: 1.7; color: var(--ink-3); }
.faq-a.open { display: block; }

/* ============================================================
   Footer
   ============================================================ */

.ftr { border-top: 1px solid var(--hair); padding: 76px 0 44px; }
.ftr-top { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 48px; }
.ftr-brand .brand { margin-bottom: 20px; }
.ftr-brand p { margin: 0 0 30px; max-width: 40ch; font-size: 13.5px; line-height: 1.65; color: var(--ink-4); }
.ftr-addr { margin-bottom: 20px; }
.ftr-addr .label { display: block; margin-bottom: 6px; }
.ftr-addr .line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.ftr-mail {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--brass-lift);
  border-bottom: 1px solid rgba(224, 179, 102, .35);
  padding-bottom: 1px;
  min-height: 32px;
}
.ftr-col h4 {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 18px;
}
.ftr-col a {
  display: block;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--ink-3);
  transition: color .18s ease;
}
.ftr-col a:hover { color: var(--brass-lift); }
.ftr-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--hair-soft);
  font-size: 12.5px;
  color: var(--ink-4);
}

/* ============================================================
   Reveal
   ============================================================ */

.reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .plot-read, .faq-q svg { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  .shell { padding: 0 28px; }
  .hdr-nav { gap: 18px; }
  .hdr-right { gap: 11px; }
  .callout { position: static; max-width: 420px; margin-top: 52px; }
}

/* Between the two, the full header is ~1,100px of content: the section
   counter and the ERC-4626 chip go first, so the nav and the app button keep
   their room and the page never scrolls sideways. */
@media (max-width: 1240px) {
  .hdr-tick, .hdr-sep, .hdr-count { display: none; }
}
/* the landing header also carries the nav; between 960 and 1060 the Docs
   link goes (it is in the footer) so the X icon and the app button keep room */
@media (max-width: 1060px) and (min-width: 961px) {
  .hdr-nav ~ .hdr-right .hdr-link { display: none; }
}
@media (max-width: 960px) {
  .hdr-nav { display: none; }
  .hdr-in { justify-content: space-between; }
  .hdr-right { margin-left: auto; }
}

@media (max-width: 900px) {
  .hdr-nav, .hdr-tick, .hdr-sep, .hdr-count { display: none; }
  .hdr-in { justify-content: space-between; }
  .hdr-right { margin-left: auto; }
  .sec { padding: 84px 0; }
  .hero { padding: 64px 0 84px; }
  .bp-note { display: none; }
  .bp-square { display: none; }
  .plot-wrap, .dual, .integrate, .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq-layout { gap: 36px; }
  .faq-head { position: static; }
  .ledger { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .ledger-mid { display: none; }
  .calls { grid-template-columns: 1fr 1fr; }
  .calls li:nth-child(3) { padding-left: 0; border-left: 0; }
  .calls li:nth-child(n+3) { border-top: 1px solid var(--hair-soft); }
  .eq-notes, .risk-items, .status-grid { grid-template-columns: minmax(0, 1fr); }
  .track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .pipe { flex-direction: column; }
  .pipe-op { flex: 0 0 48px; }
  .pipe-op::before, .pipe-op::after { display: none; }
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 1000px) {
  svg.flow-d { display: none; }
  svg.flow-m { display: block; }
}
@media (max-width: 720px) {
  .cmp-wrap { overflow: visible; border-bottom: 0; }
  table.cmp, table.cmp tbody, table.cmp tr { display: block; min-width: 0; }
  table.cmp thead { display: none; }
  table.cmp tr { padding: 20px 0; border-bottom: 1px solid var(--hair-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  table.cmp tr.us { padding: 20px 14px; margin: 0 -14px; background: rgba(200, 150, 62, .05); }
  table.cmp tr.us > * { background: none; }
  table.cmp td, table.cmp tbody th { display: block; padding: 0; border: 0; }
  table.cmp tbody th, table.cmp td:nth-child(2) { grid-column: 1 / -1; }
  table.cmp td:nth-child(3)::before, table.cmp td:nth-child(4)::before {
    display: block;
    margin-bottom: 6px;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-4);
  }
  table.cmp td:nth-child(3)::before { content: "Fungible"; }
  table.cmp td:nth-child(4)::before { content: "Priced by a view call"; }
}

@media (max-width: 620px) {
  .shell { padding: 0 20px; }
  .calls { grid-template-columns: 1fr; }
  .calls li, .calls li + li { padding: 24px 0; border-left: 0; }
  .calls li + li { border-top: 1px solid var(--hair-soft); }
  .jobs { grid-template-columns: 1fr; gap: 30px; }
  .track { grid-template-columns: 1fr 1fr; }
  .plate, .spec, .checklist { padding: 18px 16px 16px; }
  .eq { padding: 30px 18px 24px; }
  .eq-row { gap: 14px; }
  .ledger-col li { font-size: 17px; }
  .ftr-top { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .hero-ca { margin-top: 52px; }
  .brand-tag { display: none; }
  .hdr .pill-net, .hdr .icon-link { display: none; }
  .hdr-right { gap: 6px; }
  .btn-app { padding: 0 14px; font-size: 11.5px; }
  .brand-name { font-size: 18px; }
  .app-main .hdr-right .btn-connect { padding: 0 12px; }
}

/* ============================================================
   App page
   ============================================================ */

.app-main { padding: 56px 0 96px; }
.app-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  color: var(--ink-3);
  transition: color .18s ease;
}
.app-back:hover { color: var(--brass-lift); }

/* minmax(0, 1fr), not 1fr: a bare 1fr column never shrinks below the minimum
   width of what is inside it, so one rigid child widens the whole page. */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; margin-top: 30px; }
.app-col { display: grid; gap: 26px; align-content: start; min-width: 0; }

.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--hair-soft);
}
.app-head .tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.app-big {
  font-family: var(--f-mono);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 4px 0 22px;
}
.app-big .unit { font-size: .5em; color: var(--ink-4); margin-left: 6px; }

.seg { display: flex; gap: 0; border-bottom: 1px solid var(--hair); margin-bottom: 26px; }
.seg button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-4);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 18px 12px;
  min-height: 44px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.seg button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.seg button:hover { color: var(--ink-2); }

.amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 10px;
}
.amount-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 0 16px;
}
.amount-field input {
  /* width: 0 with flex-grow, not just min-width: 0. An input's minimum width
     is its built-in 20-character size — 316px at this font — and min-width
     does not lower what it contributes to its parent. That alone pushed the
     app page 60px past the edge of every phone. */
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 22px;
  padding: 16px 0;
}
.amount-field .sym { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }

.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  background: var(--brass);
  color: #14171a;
  border: 0;
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease;
}
.btn-block:hover { background: var(--brass-lift); }

.btn-connect {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: none;
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.btn-connect:hover { border-color: var(--brass); color: var(--brass-lift); }

.app-note { margin: 22px 0 0; font-size: 13px; line-height: 1.65; color: var(--ink-4); }
.app-explorer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  min-height: 44px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass-lift);
}

@media (max-width: 900px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); }
}

.max-btn {
  background: none;
  border: 0;
  padding: 6px 0 6px 12px;
  min-height: 32px;
  color: var(--ink-4);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s ease;
}
.max-btn:hover { color: var(--brass-lift); }

.btn-block:disabled {
  background: var(--surface, rgba(232, 234, 230, 0.07));
  background: rgba(232, 234, 230, 0.07);
  color: var(--ink-4);
  cursor: not-allowed;
}

/* A deposit is three signatures. Without the trail the button says only
   "Deposit" at step three, the wallet says "Transaction confirmed" after
   step two, and the two together read as a finished deposit.
   Named tx-steps: a bare .steps collided with the landing's mechanic grid. */
.tx-steps {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tx-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  color: var(--ink-4);
  padding: 9px 0;
  border-top: 2px solid var(--grid-strong);
  transition: color 0.2s, border-color 0.2s;
}
.tx-steps li + li { margin-left: 10px; }
.tx-steps .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  letter-spacing: 0;
}
.tx-steps li.done { color: var(--ok); border-top-color: var(--ok); }
.tx-steps li.done .n { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.tx-steps li.now  { color: var(--brass); border-top-color: var(--brass); }
.tx-steps li.now .n { border-width: 2px; }

.tx-status {
  margin: 14px 0 0;
  padding-left: 16px;
  position: relative;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  word-break: break-word;
}
.tx-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
}
.tx-status.pending::before { background: var(--brass); animation: pulse 1.4s ease-in-out infinite; }
.tx-status.ok::before   { background: var(--ok); }
.tx-status.warn::before { background: var(--amber); }
.tx-status.bad::before  { background: var(--crit); }
.tx-status.ok   { color: var(--ink-2); }
.tx-status.bad  { color: var(--crit); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  .tx-status.pending::before { animation: none; }
}

/* ============================================================
   Docs and policies — docs.html, terms.html, privacy.html, risks.html
   One long-form layout: a sticky contents column beside the
   article on wide screens, a single column below 960px.
   ============================================================ */

.hdr-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color .18s ease;
}
.hdr-link:hover, .hdr-link[aria-current="page"] { color: var(--ink); }

.doc-main { padding: 56px 0 104px; }
.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}
.doc-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color .18s ease, border-color .18s ease;
}
.doc-tabs a:hover { color: var(--ink); border-color: var(--grid-strong); }
.doc-tabs a[aria-current="page"] { color: var(--brass-lift); border-color: rgba(200, 150, 62, .42); background: rgba(200, 150, 62, .08); }

.doc-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.doc-toc .label { display: block; margin-bottom: 14px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; }
.doc-toc a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 1px solid var(--hair-soft);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-4);
  transition: color .18s ease, border-color .18s ease;
}
.doc-toc a:hover { color: var(--ink-2); border-left-color: var(--brass); }

.doc-head h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
}
.doc-head .lede {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-3);
}
.doc-head { margin-bottom: 48px; }
.doc-meta {
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-4);
}

.prose { max-width: 72ch; font-size: 15.5px; line-height: 1.72; color: var(--ink-2); }
.prose section { scroll-margin-top: 80px; }
.prose h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 40px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--hair-soft);
}
.prose > section:first-child h2,
.prose > .note + section h2 { margin-top: 8px; }
.doc-grid > .prose { padding-top: 0; }
.prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 8px;
  scroll-margin-top: 80px;
}
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 7px; }
.prose li::marker { color: var(--ink-4); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brass-lift); border-bottom: 1px solid rgba(224, 179, 102, .35); }
.prose a:hover { border-bottom-color: var(--brass-lift); }
.prose code {
  font-family: var(--f-mono);
  font-size: .86em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--hair-soft);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.prose pre {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--panel-quiet);
  border: 1px solid var(--hair-soft);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.prose pre code { padding: 0; border: 0; background: none; overflow-wrap: normal; }
.prose .tbl { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--hair-soft); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose th {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: var(--panel-quiet);
}
.prose td:first-child { color: var(--ink); white-space: nowrap; }
.prose .note {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(225, 138, 71, .38);
  background: rgba(225, 138, 71, .06);
  border-radius: 10px;
  color: var(--ink-2);
}
.prose .note strong { color: var(--amber); }

.doc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 26px;
  padding-bottom: 40px;
  border-top: 1px solid var(--hair-soft);
  font-size: 12.5px;
  color: var(--ink-4);
}
.doc-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.doc-foot a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-3); }
.doc-foot a:hover { color: var(--brass-lift); }

.ftr-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ftr-legal a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-3); }
.ftr-legal a:hover { color: var(--brass-lift); }

.app-legal { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-4); }
.app-legal a { color: var(--ink-3); border-bottom: 1px solid var(--hair); }
.app-legal a:hover { color: var(--brass-lift); }

@media (max-width: 960px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .doc-toc { position: static; max-height: none; padding: 18px 20px; border: 1px solid var(--hair-soft); border-radius: 12px; }
}
@media (max-width: 620px) {
  .doc-main { padding: 36px 0 80px; }
  .prose { font-size: 15px; }
  .prose td:first-child { white-space: normal; }
  .hdr .hdr-link { display: none; }
}

/* ============================================================
   Motion
   Everything here is opt-in twice: it needs the .js class (set by
   site.js, so a page without script shows everything at rest) and
   it needs prefers-reduced-motion to be unset.
   ============================================================ */

@property --ck { syntax: '<length>'; inherits: false; initial-value: 14px; }

:root { --ease: cubic-bezier(.22, .61, .36, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* crop marks lengthen and a soft light follows the pointer */
.plate {
  background-size:
    var(--ck) 1px, 1px var(--ck), var(--ck) 1px, 1px var(--ck),
    var(--ck) 1px, 1px var(--ck), var(--ck) 1px, 1px var(--ck),
    24px 24px, 24px 24px, auto;
  transition: --ck .35s var(--ease), border-color .35s var(--ease);
}
.plate:hover { --ck: 24px; border-color: var(--hair); }
.plate, .spec, .checklist, .eq, .pipe-node, .panel.out, .panel.inputs { position: relative; }
.plate::after, .spec::after, .checklist::after, .eq::after, .pipe-node::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 179, 102, .07), transparent 62%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.plate:hover::after, .spec:hover::after, .checklist:hover::after, .eq:hover::after, .pipe-node:hover::after { opacity: 1; }

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease);
}
.btn-primary:hover::after { left: 130%; }
table.cmp tbody tr { transition: background-color .25s var(--ease); }
table.cmp tbody tr:not(.us):hover > * { background: rgba(232, 234, 230, .025); }
.calls li { transition: background-color .3s var(--ease); }
.calls li:hover { background: linear-gradient(rgba(232, 234, 230, .02), transparent); }
.calls li:hover .bubble { background: var(--brass); color: var(--bg); }
.bubble { transition: background-color .25s var(--ease), color .25s var(--ease); }

@media (prefers-reduced-motion: no-preference) {

  /* reveal: rise out of a slight blur, in order */
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(3px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.shown { opacity: 1; transform: none; filter: none; }

  /* section headlines rise out of a mask */
  .js .sec-h.reveal { filter: none; clip-path: inset(0 0 100% 0); transform: translateY(36px); transition: clip-path 1.1s var(--ease-out), transform 1.1s var(--ease-out), opacity .6s var(--ease); }
  .js .sec-h.reveal.shown { clip-path: inset(-12% -4% -22% -4%); transform: none; }
  .js .eyebrow.reveal .bar { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out) .25s; }
  .js .eyebrow.reveal.shown .bar { transform: none; }

  /* lists and rows come in one after another */
  .js .reveal .stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + .15s); }
  .js .reveal.shown .stagger > *, .js .reveal.shown.stagger > * { opacity: 1; transform: none; }
  .js .reveal.stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + .15s); }

  /* hero: an intro on load, the drawing first, then the type */
  .js .hero-h, .js .hero-lede, .js .hero-cta, .js .callout { animation: rise 1.1s var(--ease-out) both; }
  .js .hero-h { animation-delay: .15s; }
  .js .hero-lede { animation-delay: .32s; }
  .js .hero-cta { animation-delay: .48s; }
  .js .callout { animation-delay: .9s; }
  .js .bp-cross, .js .bp-square { animation: fade .9s var(--ease) both; animation-delay: .5s; }
  .js .bp-note { animation: rise .9s var(--ease-out) both; animation-delay: 1.15s; }
  .js .bp-lines line { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 1.6s var(--ease) .7s forwards; }

  /* Fig. 1: walls settle, lintels set, flows draw, then value moves */
  .js .plate .flow .wall, .js .plate .flow .ln-strong, .js .plate .flow [fill^="url(#hatch)"] { opacity: 0; transition: opacity .8s var(--ease); }
  .js .plate.shown .flow .wall, .js .plate.shown .flow .ln-strong, .js .plate.shown .flow [fill^="url(#hatch)"] { opacity: 1; }
  .js .plate .flow .lintel { transform-box: fill-box; transform-origin: center; transform: scaleX(0); transition: transform .8s var(--ease-out) .45s; }
  .js .plate.shown .flow .lintel { transform: none; }
  .js .plate .flow .draw { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); opacity: 0; transition: stroke-dashoffset 1.1s var(--ease) var(--dd, .6s), opacity .15s linear var(--dd, .6s); }
  .js .plate.shown .flow .draw { stroke-dashoffset: 0; opacity: 1; }
  .js .plate .flow text, .js .plate .flow .coin, .js .plate .flow .coin-ring, .js .plate .flow use, .js .plate .flow .node, .js .plate .flow .ret { opacity: 0; transition: opacity .7s var(--ease) var(--td, .9s); }
  .js .plate.shown .flow text, .js .plate.shown .flow .coin, .js .plate.shown .flow .coin-ring, .js .plate.shown .flow use, .js .plate.shown .flow .node, .js .plate.shown .flow .ret { opacity: 1; }
  .js .plate .flow .bub { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease-out) var(--bd, 1.2s); }
  .js .plate.shown .flow .bub { transform: none; }
  .js .plate .flow .bar-done { transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out) 1s; }
  .js .plate.shown .flow .bar-done { transform: none; }
  .js .plate.shown .flow .bar-rel { animation: breathe 2.4s ease-in-out 2.4s infinite; }
  .js .plate.shown .flow .ret { animation: march 1.4s linear infinite; }
  .flow .pulse {
    fill: none;
    stroke: var(--brass-lift);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-dasharray: .05 2;
    stroke-dashoffset: .05;
    opacity: 0;
    filter: drop-shadow(0 0 4px rgba(224, 179, 102, .75));
    pointer-events: none;
  }
  .js .plate.shown .flow .pulse { opacity: 1; animation: run var(--pt, 2.8s) linear var(--pd, 2s) infinite; }

  /* Fig. 2: the line is drawn, the area fills behind it, rewards drop in */
  .js .plate .plot .price { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .3s; }
  .js .plate.shown .plot .price { stroke-dashoffset: 0; }
  .js .plate .plot .area, .js .plate .plot .held, .js .plate .plot .end-l, .js .plate .plot .dim, .js .plate .plot .dim-l { opacity: 0; transition: opacity .9s var(--ease) 1.5s; }
  .js .plate.shown .plot .area, .js .plate.shown .plot .held, .js .plate.shown .plot .end-l, .js .plate.shown .plot .dim, .js .plate.shown .plot .dim-l { opacity: 1; }
  .js .plate .plot .drop, .js .plate .plot .drop-l { opacity: 0; transform: translateY(-10px); transition: opacity .5s var(--ease), transform .6s var(--ease-out); transition-delay: calc(.5s + var(--i, 0) * 120ms); }
  .js .plate.shown .plot .drop, .js .plate.shown .plot .drop-l { opacity: 1; transform: none; }
  .plot .live { fill: none; stroke: var(--brass-lift); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
  .js .plate.shown .plot .live { animation: ring 2.4s var(--ease-out) 2.3s infinite; }

  /* 03: the bar grows when first seen (widths are set by site.js) */
  .dual.seen .sb, .dual.seen .dim { transition: width 1.2s var(--ease-out); }

  /* 06: the fraction bar and the note rules draw */
  .js .eq.reveal .eq-den::before, .js .eq.reveal .eq-note::before { transform: scaleX(0); }
  .js .eq.reveal.shown .eq-den::before, .js .eq.reveal.shown .eq-note::before { transform: none; }
  .js .eq.reveal .eq-num { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease) .6s, transform .8s var(--ease-out) .6s; }
  .js .eq.reveal.shown .eq-num { opacity: 1; transform: none; }

  /* 07: the track fills from the left, the current step breathes */
  .js .track.reveal li::before { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) calc(var(--i, 0) * 180ms + .2s); }
  .js .track.reveal.shown li::before { transform: none; }
  .js .track.reveal .dot { transform: scale(0); transition: transform .5s var(--ease-out) calc(var(--i, 0) * 180ms + .35s); }
  .js .track.reveal.shown .dot { transform: none; }
  .js .track.reveal.shown .wait .dot { animation: beacon 2.2s ease-out 1.6s infinite; }

  /* 01: the strike is drawn through, later than the column appears */
  .js .ledger:not(.shown) .strike { background-size: 0 1px; }
}

/* the drawn rules used by the animations above, at rest without them */
.eq-den { position: relative; border-top: 0; }
.eq-den::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 2px solid var(--ink-3); transform-origin: center; transition: transform 1s var(--ease-out) .3s; }
.eq-note { position: relative; border-top: 0; }
.eq-note::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 2px solid var(--grid-strong); transform-origin: left; transition: transform .9s var(--ease-out); transition-delay: calc(.6s + var(--i, 0) * 150ms); }
.eq-note.up::before { border-top-color: var(--brass); }
.eq-note.both::before { border-top-color: var(--ink-3); }

@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes march { to { stroke-dashoffset: -18; } }
@keyframes run { from { stroke-dashoffset: .05; } to { stroke-dashoffset: -1; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ring { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(225, 138, 71, .45); } 100% { box-shadow: 0 0 0 12px rgba(225, 138, 71, 0); } }

/* ============================================================
   Atmosphere: film grain, two-tone headlines
   ============================================================ */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
.sec-h .dim { color: var(--ink-4); }

/* ============================================================
   02 · the four calls as photographs with the interface on them
   ============================================================ */

.gcards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
}
.gcards > li { padding: 0; }
.gshot {
  position: relative;
  height: 236px;
  overflow: hidden;
  border-radius: 4px;
  background: #121518;
  isolation: isolate;
}
.gshot::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  background: url(/assets/hero.jpg) var(--bx, 50%) var(--by, 50%) / var(--bz, 220%) no-repeat;
  filter: sepia(.5) saturate(.75) brightness(.62) contrast(1.06);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out, ease);
}
.gshot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 23, 26, .05), rgba(20, 23, 26, .55));
}
.gcards > li:hover .gshot::before { transform: scale(1.07); }
.glass {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(84%, 248px);
  transform: translate(-50%, -50%);
  padding: 14px 15px;
  border: 1px solid rgba(232, 234, 230, .16);
  border-radius: 8px;
  background: rgba(20, 23, 26, .52);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
  font-size: 12.5px;
  color: var(--ink-2);
  transition: transform .6s var(--ease-out, ease);
}
.gcards > li:hover .glass { transform: translate(-50%, -54%); }
.g-row, .g-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.g-chip { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--hair); font-family: var(--f-mono); font-size: 10px; color: var(--ink-2); }
.g-chip.br { color: var(--brass-lift); border-color: rgba(200, 150, 62, .45); }
.g-chip.ok { color: var(--ok); border-color: rgba(109, 190, 147, .45); }
.g-big { margin: 10px 0 8px; font-family: var(--f-display); font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
.g-big small { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-4); letter-spacing: .04em; }
.g-line { padding-top: 7px; border-top: 1px solid rgba(232, 234, 230, .1); color: var(--ink-3); }
.g-line + .g-line { margin-top: 7px; }
.g-line .tnum { font-family: var(--f-mono); color: var(--ink-2); }
.g-line.hi .tnum { color: var(--brass-lift); }
.g-bar { height: 6px; margin: 2px 0 9px; border-radius: 3px; background: rgba(232, 234, 230, .1); overflow: hidden; }
.g-bar i { display: block; width: 43%; height: 100%; background: repeating-linear-gradient(-45deg, var(--brass) 0 2px, rgba(200, 150, 62, .45) 2px 5px); }
.g-tok { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid rgba(232, 234, 230, .1); color: var(--ink); font-family: var(--f-mono); font-size: 12px; }
.g-tok svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass-lift); }
.g-list { list-style: none; margin: 8px 0 0; padding: 0; }
.g-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--ink-3); }
.g-list i { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 3px rgba(200, 150, 62, .18); }
.g-list i.o { background: none; border: 1px solid var(--ink-4); box-shadow: none; }
.gcards .bubble { margin-top: 20px; }
.gcards h3 { margin: 12px 0 0; font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -.02em; }
.gcards code { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--brass); overflow-wrap: anywhere; }
.gcards p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.62; color: var(--ink-3); }
.gnote { margin: 18px 0 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-4); }

/* ============================================================
   02 · anatomy of a reward: the steps scroll, the panel stays
   ============================================================ */

.anatomy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; margin-top: 96px; }
.eyebrow.small { margin-bottom: 30px; font-size: 11px; letter-spacing: .14em; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.an-steps ol { list-style: none; margin: 0; padding: 0; }
.an-step {
  display: flex;
  gap: 16px;
  min-height: 46vh;
  padding: 4px 0 0 20px;
  border-left: 2px solid var(--grid);
  transition: border-color .5s var(--ease, ease);
}
.an-step:last-child { min-height: 30vh; }
.an-step .n { padding-top: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-4); transition: color .5s; }
.an-step h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; color: var(--ink-4); transition: color .5s; }
.an-step p { margin: 10px 0 0; max-width: 40ch; font-size: 15px; line-height: 1.62; color: var(--ink-4); opacity: .55; transition: color .5s, opacity .5s; }
.an-step.on { border-left-color: var(--brass); }
.an-step.on .n { color: var(--brass); }
.an-step.on h3 { color: var(--ink); }
.an-step.on p { color: var(--ink-3); opacity: 1; }
.an-step[data-step="2"].on { border-left-color: var(--amber); }
.an-step[data-step="2"].on .n { color: var(--amber); }

.an-stage { position: relative; }
.an-panel {
  position: sticky;
  top: 110px;
  padding: 26px 26px 0;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(200, 150, 62, .07), transparent 60%),
    linear-gradient(180deg, #181c20, #131619);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  overflow: hidden;
  transition: background .6s;
}
.an-panel[data-state="2"] { background: radial-gradient(120% 90% at 80% 0%, rgba(225, 138, 71, .09), transparent 60%), linear-gradient(180deg, #181c20, #131619); }
.an-top { display: flex; justify-content: space-between; align-items: baseline; }
.an-ex { font-size: 12px; color: var(--ink-4); }
.an-big { margin-top: 10px; font-family: var(--f-display); font-size: clamp(2.2rem, 4.4vw, 3.2rem); letter-spacing: -.03em; color: var(--ink); line-height: 1.05; }
.an-big small { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-4); }
.an-panel[data-state="4"] .an-big { color: var(--brass-lift); }
.an-sub { margin-top: 6px; font-size: 13px; color: var(--ink-3); min-height: 1.6em; }
.an-chart { display: block; width: 100%; height: auto; margin-top: 22px; overflow: visible; }
.an-base { stroke: var(--grid-strong); stroke-width: 1.2; stroke-dasharray: 4 5; }
.an-line { fill: none; stroke: var(--brass); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: .852; transition: stroke-dashoffset 1.2s var(--ease-out, ease); }
.an-panel[data-state="2"] .an-line { stroke-dashoffset: .705; }
.an-panel[data-state="3"] .an-line { stroke-dashoffset: .473; }
.an-panel[data-state="4"] .an-line { stroke-dashoffset: 0; }
.an-drop { fill: var(--amber); opacity: 0; transform-box: fill-box; transform-origin: center; transform: translateY(-30px); transition: opacity .4s, transform .7s var(--ease-out, ease); }
.an-panel:not([data-state="1"]) .an-drop { opacity: 1; transform: none; }
.an-h { stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 4; opacity: 0; transition: opacity .5s; }
.an-panel[data-state="3"] .an-h, .an-panel[data-state="4"] .an-h { opacity: 1; }
.an-axis { position: relative; height: 16px; margin-top: 8px; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-4); }
.an-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; transition: color .4s; }
.an-axis span:first-child { transform: none; }
.an-panel[data-state="2"] .an-axis span:nth-child(2) { color: var(--amber); }
.an-panel[data-state="3"] .an-axis span:nth-child(3), .an-panel[data-state="4"] .an-axis span:nth-child(4) { color: var(--brass-lift); }
.an-bar { display: flex; height: 34px; margin-top: 22px; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; background: rgba(232, 234, 230, .03); }
.an-bar i { display: block; height: 100%; transition: width .9s var(--ease-out, ease), background .5s; }
.b-dep { width: 96.15%; background: #5f676e; }
.b-rel { width: 0; background: repeating-linear-gradient(-45deg, var(--brass) 0 2px, rgba(200, 150, 62, .4) 2px 6px); }
.b-wait { width: 0; background: repeating-linear-gradient(-45deg, rgba(225, 138, 71, .9) 0 2px, rgba(225, 138, 71, .25) 2px 6px); }
.an-panel[data-state="2"] .b-wait { width: 3.85%; }
.an-panel[data-state="3"] .b-rel { width: 3.85%; }
.an-panel[data-state="4"] .b-rel { width: 3.85%; background: var(--brass); }
.an-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 11.5px; color: var(--ink-4); }
.an-key span { display: inline-flex; align-items: center; gap: 7px; }
.an-key i { width: 10px; height: 10px; border-radius: 2px; }
.k-dep { background: #5f676e; }
.k-rel { background: var(--brass); }
.k-wait { background: var(--amber); }
.an-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px -26px 0; padding: 18px 26px 22px; border-top: 1px solid var(--hair-soft); background: rgba(0, 0, 0, .12); }
.an-foot b { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 17px; font-weight: 500; color: var(--ink); }
.an-panel[data-state="4"] #an-price { color: var(--brass-lift); }
.an-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(232, 234, 230, .05); }
.an-progress i { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--brass), var(--brass-lift)); transition: width .6s var(--ease-out, ease); }
.an-panel[data-state="2"] .an-progress i { width: 50%; background: linear-gradient(90deg, var(--brass), var(--amber)); }
.an-panel[data-state="3"] .an-progress i { width: 75%; }
.an-panel[data-state="4"] .an-progress i { width: 100%; }

.spec-wide { margin-top: 72px; }
.spec-wide dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.spec-wide dl > div:nth-last-child(2) { border-bottom: 0; }

@media (max-width: 1000px) {
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 900px) {
  .anatomy { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 72px; }
  .an-stage { order: -1; position: sticky; top: 62px; z-index: 5; padding-top: 8px; background: linear-gradient(var(--bg) 85%, transparent); }
  .an-panel { position: static; padding: 16px 16px 0; }
  .an-chart { margin-top: 10px; }
  .an-axis { display: none; }
  .an-big { font-size: 1.7rem; }
  .an-sub { font-size: 12px; }
  .an-bar { height: 16px; margin-top: 12px; }
  .an-foot { margin: 14px -16px 0; padding: 12px 16px 14px; }
  .an-foot b { font-size: 15px; }
  .an-steps { padding-top: 28px; }
  .an-step { min-height: 52vh; }
  .spec-wide dl { grid-template-columns: minmax(0, 1fr); }
  .spec-wide dl > div:nth-last-child(2) { border-bottom: 1px solid var(--hair-soft); }
}
@media (max-width: 620px) {
  .gcards { grid-template-columns: minmax(0, 1fr); }
  .an-key { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gshot::before, .glass, .an-bar i, .an-line, .an-drop, .an-progress i { transition: none; }
}

/* testnet mode of the app */
.net-banner {
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 1px solid rgba(225, 138, 71, .45);
  border-radius: 6px;
  background: repeating-linear-gradient(-45deg, rgba(225, 138, 71, .07) 0 10px, rgba(225, 138, 71, .03) 10px 20px);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.net-banner b { color: var(--amber); font-weight: 600; }
.net-banner a { color: var(--brass-lift); border-bottom: 1px solid rgba(224, 179, 102, .35); white-space: nowrap; }
.pill-net.test { background: var(--amber); }

/* ============================================================
   App, redrawn as a product: vault header, position, a swap-style
   widget. Overrides the first-pass app rules above.
   ============================================================ */

.app-main { position: relative; padding: 36px 0 96px; }
.app-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 0%, rgba(200, 150, 62, .10), transparent 70%),
    radial-gradient(40% 50% at 10% 10%, rgba(120, 160, 170, .05), transparent 70%);
}
.app-main > .shell { position: relative; }

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(232, 234, 230, .035), rgba(232, 234, 230, .012));
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-sub { font-size: 12px; color: var(--ink-4); }

/* vault header */
.vhead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px 40px;
  margin-top: 18px;
  padding: 26px 28px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(200, 150, 62, .06), transparent 45%),
    linear-gradient(180deg, rgba(232, 234, 230, .04), rgba(232, 234, 230, .01));
}
.vh-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.vh-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(200, 150, 62, .55);
  background: radial-gradient(circle at 35% 30%, rgba(224, 179, 102, .22), rgba(20, 23, 26, .9) 70%);
  box-shadow: 0 0 0 6px rgba(200, 150, 62, .06);
}
.vh-mark svg { width: 30px; height: 30px; fill: var(--brass-lift); }
.vhead h1 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.025em; }
.vh-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.vh-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(225, 138, 71, .45);
  background: rgba(225, 138, 71, .08);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--amber);
}
.vh-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: beacon2 2s ease-out infinite; }
.vh-state.live { color: var(--ok); border-color: rgba(109, 190, 147, .45); background: rgba(109, 190, 147, .08); }
.vh-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin: 0; }
.vh-stats > div { padding: 2px 26px; border-left: 1px solid var(--hair-soft); min-width: 120px; }
.vh-stats > div:first-child { border-left: 0; padding-left: 0; }
.vh-stats dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.vh-stats dd { margin: 8px 0 0; font-family: var(--f-display); font-size: 22px; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.vh-stats > div { min-width: 0; }
.vh-stats dd small { display: block; margin-top: 2px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-4); }

/* layout */
.app-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 22px; margin-top: 22px; }
.app-col { gap: 22px; }
.app-col:last-child { position: sticky; top: 84px; align-self: start; }

/* position */
.pos-big { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.pos-big .unit { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-4); }
.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 22px; border-top: 1px solid var(--hair-soft); }
.pos-grid > div { padding: 14px 0; border-bottom: 1px solid var(--hair-soft); min-width: 0; }
.pos-grid > .wide { grid-column: 1 / -1; border-bottom: 0; }
.pos-grid b { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 15px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.pos-empty {
  position: absolute;
  inset: 56px 1px 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(23, 27, 31, .82), rgba(20, 23, 26, .94));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  transition: opacity .4s var(--ease, ease), visibility .4s;
}
.pos-empty svg { width: 42px; height: 42px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pos-empty svg .f { fill: var(--brass); stroke: none; }
.pos-empty p { margin: 0; font-size: 14px; color: var(--ink-3); }
.has-acct .pos-empty { opacity: 0; visibility: hidden; }
.btn-ghost {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(200, 150, 62, .55);
  border-radius: 999px;
  background: rgba(200, 150, 62, .08);
  color: var(--brass-lift);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-ghost:hover { background: rgba(200, 150, 62, .16); transform: translateY(-1px); }

/* reward cycle */
.cyc { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; position: relative; z-index: 1; }
.cyc li { display: flex; flex-direction: column; gap: 4px; padding-top: 22px; position: relative; }
.cyc-dot { position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--brass); }
.cyc li:last-child .cyc-dot { background: var(--brass); }
.cyc b { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.cyc span:not(.cyc-dot) { font-size: 12px; line-height: 1.45; color: var(--ink-4); }
.cyc-track { position: relative; height: 2px; margin: -66px 6px 64px; background: var(--grid-strong); overflow: hidden; }
.cyc-track i { position: absolute; inset: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--brass-lift), transparent); animation: sweep 3.2s cubic-bezier(.45, 0, .55, 1) infinite; }

/* details */
.dl { margin: 0; }
.dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--hair-soft); font-size: 13.5px; }
.dl dt { color: var(--ink-4); }
.dl dd { margin: 0; color: var(--ink-2); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.dl dd.warn { color: var(--amber); }
.mono-s { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); }
.app-explorer { margin-top: 0; min-height: 0; }

/* the widget */
.trade { padding: 18px; }
.seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
}
.seg::before {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 234, 230, .12), rgba(232, 234, 230, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 14px -6px rgba(0, 0, 0, .6);
  transition: transform .35s var(--ease-out, ease);
}
.trade[data-mode="withdraw"] .seg::before { transform: translateX(100%); }
.seg button {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  padding: 10px 0;
  min-height: 40px;
  font-size: 12px;
}
.seg button[aria-selected="true"] { color: var(--ink); border: 0; }

.tbox {
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: rgba(0, 0, 0, .2);
  transition: border-color .2s, box-shadow .2s;
}
.tbox:focus-within { border-color: rgba(200, 150, 62, .6); box-shadow: 0 0 0 4px rgba(200, 150, 62, .1); }
.tbox.out { background: rgba(0, 0, 0, .1); }
.tbox-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-4); }
.tbox-top em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-4); padding: 1px 6px; border: 1px solid var(--hair-soft); border-radius: 4px; }
.tbox-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.tbox-row.amount-field { border: 0; padding: 0; border-radius: 0; }
.tbox-row.amount-field input { font-family: var(--f-display); font-size: 30px; letter-spacing: -.02em; padding: 2px 0; }
.tbox-row output { flex: 1 1 auto; min-width: 0; font-family: var(--f-display); font-size: 30px; letter-spacing: -.02em; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.max-btn { padding: 4px 0; min-height: 28px; letter-spacing: .06em; font-size: 10.5px; }
.tok {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(232, 234, 230, .05);
}
.tok .sym { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); }
.tok-ic { display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.tok-ic svg { width: 15px; height: 15px; }
.tok-ic.hype, .tok-ic.hype-o { background: #0c2221; box-shadow: inset 0 0 0 1px rgba(151, 252, 228, .35); }
.tok-ic.hype svg, .tok-ic.hype-o svg { fill: #97fce4; }
.tok-ic.lint, .tok-ic.lint-o { background: var(--bg); box-shadow: inset 0 0 0 1px var(--brass); }
.tok-ic.lint svg, .tok-ic.lint-o svg { fill: var(--brass-lift); width: 14px; height: 14px; }
.trade[data-mode="deposit"] .tok-ic.hype, .trade[data-mode="deposit"] .tok-ic.lint-o,
.trade[data-mode="withdraw"] .tok-ic.lint, .trade[data-mode="withdraw"] .tok-ic.hype-o { display: grid; }
.tswap { display: grid; place-items: center; height: 0; position: relative; z-index: 2; }
.tswap svg {
  width: 34px; height: 34px; padding: 8px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: #171b1f;
  fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease-out, ease);
}
.trade[data-mode="withdraw"] .tswap svg { transform: rotate(180deg); }
.tbox.out { margin-top: 6px; }

.tmeta { margin: 14px 2px 0; }
.tmeta > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 12.5px; }
.tmeta dt { color: var(--ink-4); }
.tmeta dd { margin: 0; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); text-align: right; }

.tx-steps { margin: 16px 0 0; position: relative; }
.btn-block {
  position: relative;
  overflow: hidden;
  min-height: 54px;
  margin-top: 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--brass-lift), var(--brass));
  box-shadow: 0 12px 30px -14px rgba(200, 150, 62, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s var(--ease, ease), box-shadow .2s, filter .2s;
}
.btn-block:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 18px 36px -14px rgba(200, 150, 62, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-block:not(:disabled):active { transform: translateY(1px) scale(.995); }
.btn-block::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg);
  transition: left .8s var(--ease, ease);
}
.btn-block:not(:disabled):hover::after { left: 120%; }
.btn-block:disabled { box-shadow: none; background: rgba(232, 234, 230, .06); border: 1px solid var(--hair-soft); }

.tx-status {
  margin-top: 14px;
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
  animation: rise .5s var(--ease-out, ease) both;
}
.tx-status::before { left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px; }
.tx-status.pending::before { background: none; border: 2px solid rgba(200, 150, 62, .3); border-top-color: var(--brass-lift); animation: spin .8s linear infinite; }
.tx-status.ok { border-color: rgba(109, 190, 147, .4); }
.tx-status.warn { border-color: rgba(225, 138, 71, .4); }
.tx-status.bad { border-color: rgba(224, 112, 90, .45); }

/* numbers flash when the chain changes them */
.tick { animation: tick .9s var(--ease, ease); }
@keyframes tick { 0% { color: var(--brass-lift); text-shadow: 0 0 18px rgba(224, 179, 102, .45); } 100% { text-shadow: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { from { transform: translateX(-120%); } to { transform: translateX(420%); } }
@keyframes beacon2 { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .in { animation: rise .8s var(--ease-out, ease) both; animation-delay: var(--d, 0s); }
}
@media (prefers-reduced-motion: reduce) {
  .cyc-track i, .vh-state i, .tick { animation: none; }
}

@media (max-width: 1180px) {
  .vhead { grid-template-columns: minmax(0, 1fr); }
  .vh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vh-stats > div { min-width: 0; padding: 2px 16px; }
}
@media (max-width: 960px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-col:last-child { position: static; order: -1; }
}
@media (max-width: 620px) {
  .vhead { padding: 18px; }
  .vh-stats { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .vh-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .vh-stats dd { font-size: 18px; white-space: normal; overflow-wrap: anywhere; }
  .card { padding: 18px; }
  .cyc { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .cyc-track { display: none; }
  .tbox-row.amount-field input, .tbox-row output { font-size: 24px; }
  .pos-grid { grid-template-columns: 1fr; }
}
