/* Mercatura: a Florentine merchant bank by daylight. Ivory parchment, ink, vermilion and lapis, gold leaf,
   marbled endpapers and a banknote seal. Dark ink bands only where contrast earns it. */

:root {
  --bg: #f6efe1;
  --bg-2: #efe4cf;
  --card: #fffaf0;
  --ink: #17130e;
  --ink-2: #3b3229;
  --muted: #74685a;
  --dim: #9a8d7b;
  --line: rgba(23, 19, 14, .12);
  --line-strong: rgba(23, 19, 14, .26);
  --gold: #a47b2c;
  --gold-hi: #e2c27a;
  --gold-soft: #f3e3b8;
  --red: #b3261e;
  --red-deep: #8a1b15;
  --lapis: #22378a;
  --lapis-deep: #172866;
  --band: #15110c;
  --band-text: #efe6d2;
  --earn: #2c7a4b;
  --paper: #fbf5e8;
  --paper-2: #f0e5cd;
  --paper-rule: rgba(23, 19, 14, .10);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 16px;
  --gilt: linear-gradient(135deg, #7a5a1c 0%, #e9cf86 26%, #a47b2c 48%, #f6e3a6 66%, #8d6a26 86%, #d8b867 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 88% -10%, rgba(226, 194, 122, .28), transparent 62%),
    radial-gradient(900px 600px at -5% 0%, rgba(179, 38, 30, .07), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(179, 38, 30, .22); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.mt-12 { margin-top: 12px; }
.mt-36 { margin-top: 36px; }
.mb-24 { margin-bottom: 24px; }
.cta-gap { margin-top: 28px; }
/* Grid children may shrink below their content (long code lines, addresses) instead of widening the page. */
.hero .wrap > *, .bignum > *, .split > *, .token > *, .join > *, .ledger-big > *, .docs > *, .desks > *, .cards > *, .steps > * { min-width: 0; }

/* Gold leaf on text, with a slow sheen. On ivory it runs darker so it stays legible. */
.foil {
  background: linear-gradient(105deg, #6f5118 0%, #b98e36 22%, #e7c77c 36%, #9a7126 52%, #d2ad5e 70%, #7b5a1c 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
}
.on-dark .foil, .band-lapis .foil, .token .foil {
  background-image: linear-gradient(105deg, #b8913f 0%, #f6e3a6 24%, #d7b25e 42%, #fff4cf 56%, #c49a45 76%, #f0d48c 100%);
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
em.red, .red-em em { color: var(--red); font-style: italic; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow .folio { color: var(--gold); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 239, 225, .82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.brand:hover img { transform: rotate(-24deg); }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .26em; text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--red); transform: scaleX(0); transition: transform .25s ease; transform-origin: left; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15.5px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-red { color: #fff6ea; background: linear-gradient(180deg, #c8352b, var(--red) 55%, var(--red-deep)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 24px rgba(179, 38, 30, .28); }
.btn-red:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 30px rgba(179, 38, 30, .36); }
.btn-gold { color: #1d150a; background: linear-gradient(180deg, #f3dc95, #d6b25e 55%, #b38a3a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 24px rgba(164, 123, 44, .25); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(54px, 7.2vw, 112px); line-height: .92; letter-spacing: -.025em; margin: 0 0 28px;
}
.hero h1 em { font-style: italic; color: var(--red); }
.lede { font-size: 19.5px; color: var(--ink-2); max-width: 560px; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.facts b { color: var(--red); font-weight: 500; }

/* A gilt frame around marbled endpaper; the ledger lies on top of it. */
.gilt { padding: 9px; border-radius: 28px; background: var(--gilt); box-shadow: 0 40px 90px rgba(70, 45, 10, .28), 0 2px 0 rgba(255, 255, 255, .6) inset; }
.endpaper {
  position: relative; border-radius: 20px; padding: 54px 38px 42px;
  background: url("/img/marble-hero.webp") center / cover, #284089;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), inset 0 0 60px rgba(0, 0, 0, .25);
}

/* ---------- The paper ledger card ---------- */
.ledger-card {
  position: relative;
  background:
    repeating-linear-gradient(180deg, transparent 0 33px, var(--paper-rule) 33px 34px),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink);
  border-radius: 6px;
  padding: 26px 26px 22px 46px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 24px 60px rgba(10, 8, 30, .45), 0 0 0 1px rgba(164, 123, 44, .35);
  transform: rotate(-1.2deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.endpaper:hover .ledger-card { transform: rotate(0deg) translateY(-4px); }
.ledger-card::before { /* the red margin rule of an account book */
  content: ""; position: absolute; top: 0; bottom: 0; left: 30px; width: 2px;
  background: linear-gradient(180deg, rgba(179, 38, 30, .6), rgba(179, 38, 30, .35));
}
.ledger-card .wax { position: absolute; top: -38px; right: -30px; width: 92px; height: 92px; filter: drop-shadow(0 8px 12px rgba(80, 10, 6, .4)); animation: stamp .9s cubic-bezier(.2, .9, .3, 1.2) .35s both; }
/* The stamp starts at 1.2x, not larger: the first frame is held through the delay, and a bigger box reached past the
   right edge on phones (402px of scroll width at 390), which the page's layout then kept. */
@keyframes stamp { 0% { transform: scale(1.2) rotate(-40deg); opacity: 0; } 55% { transform: scale(.92) rotate(-6deg); opacity: 1; } 100% { transform: scale(1) rotate(-10deg); opacity: 1; } }
.lc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-right: 52px; }
.lc-title { font-family: var(--serif); font-size: 27px; font-weight: 600; margin: 0; }
.lc-live { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lc-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--earn); box-shadow: 0 0 0 3px rgba(44, 122, 75, .18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(44, 122, 75, .05); } }
.lc-form { display: flex; gap: 8px; margin: 6px 0 10px; }
.lc-form input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13.5px; padding: 11px 12px; border: 1px solid rgba(23, 19, 14, .22); border-radius: 8px; background: rgba(255, 255, 255, .7); color: var(--ink); }
.lc-form button { font: inherit; font-weight: 600; font-size: 14px; padding: 0 16px; border-radius: 8px; border: 0; cursor: pointer; background: var(--ink); color: var(--paper); }
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(23, 19, 14, .2); background: transparent; color: var(--muted); }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.lc-net { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0 10px; border-bottom: 2px solid var(--ink); }
.lc-net span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lc-net strong { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.lc-rows { list-style: none; margin: 0; padding: 0; }
.lc-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--paper-rule); font-size: 15px; animation: rowin .5s ease both; }
.lc-rows li:nth-child(2) { animation-delay: .07s; } .lc-rows li:nth-child(3) { animation-delay: .14s; } .lc-rows li:nth-child(4) { animation-delay: .21s; }
@keyframes rowin { from { opacity: 0; transform: translateX(-8px); } }
.lc-rows li span:last-child { font-family: var(--mono); font-size: 14px; }
.lc-idle { margin: 14px 0 6px; font-size: 15px; }
.lc-idle b { color: var(--red); }
.bar { height: 8px; border-radius: 99px; background: rgba(23, 19, 14, .1); overflow: hidden; margin: 6px 0 12px; }
.bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--red-deep), #d0574a); border-radius: 99px; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.lc-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.lc-note b { color: var(--earn); }
.lc-foot { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lc-foot a { color: var(--muted); }
.lc-empty { font-size: 15px; color: var(--muted); padding: 18px 0; }

/* ---------- Ticker: an ink band ---------- */
.ticker { background: var(--band); overflow: hidden; position: relative; }
.ticker-track { display: flex; width: max-content; animation: tick 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--mono); font-size: 13px; color: #b9ad96; padding: 14px 22px; white-space: nowrap; }
.ticker-track span b { color: #fff4dc; font-weight: 500; }
.ticker-track span i { color: var(--gold-hi); font-style: normal; margin-left: 26px; font-size: 10px; vertical-align: 1px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Marbled ribbons: thin slices of a marbled sheet along a band's edge. */
.ribbon { height: 22px; background: url("/img/marble-strip.webp") center / cover; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25), inset 0 1px 0 rgba(0, 0, 0, .25); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.2vw, 70px); line-height: 1.01;
  letter-spacing: -.02em; margin: 0 0 22px; max-width: 940px;
}
.section h2 em, .page-head h1 em, .token h2 em { font-style: italic; color: var(--red); }
.section .intro { font-size: 19px; color: var(--ink-2); max-width: 650px; margin: 0 0 52px; }

/* The ornament between sections: hairlines and the seal. */
.orn { display: flex; align-items: center; gap: 18px; max-width: var(--wrap); margin: 80px auto 0; padding: 0 var(--gutter); }
.orn + .section { padding-top: 72px; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent); }
.orn img { width: 40px; height: 40px; }

/* The lapis band: the big live number. */
.band-lapis {
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(120, 150, 255, .22), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(10, 20, 70, .5), transparent 60%),
    var(--lapis);
  color: #f3ecdc; padding: 0;
}
.band-lapis .inner { padding: 96px 0; }
.band-lapis .eyebrow { color: var(--gold-hi); }
.bignum { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.bignum .figure { font-family: var(--serif); font-weight: 500; font-size: clamp(66px, 11vw, 176px); line-height: .88; letter-spacing: -.03em; margin: 0; }
.bignum .figure small { display: block; font-family: var(--mono); font-size: 15px; line-height: 1.5; letter-spacing: .08em; color: #c9d1ef; margin-top: 18px; }
.bignum p { font-size: 19px; color: #e7e3d7; margin: 0 0 16px; }
.bignum .src { font-family: var(--mono); font-size: 12.5px; color: #aab4dd; }
.bignum .src a { color: #aab4dd; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.step { padding: 34px 32px 8px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line-strong); }
.step .n { font-family: var(--serif); font-style: italic; font-size: 68px; line-height: 1; color: var(--red); margin-bottom: 18px; }
.step h3 { font-size: 21px; margin: 0 0 10px; font-weight: 600; }
.step p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.split .sticky { position: sticky; top: 110px; }
.points { list-style: none; padding: 0; margin: 0; }
.points li { padding: 18px 0; border-top: 1px solid var(--line-strong); }
.points li b { display: block; font-weight: 600; margin-bottom: 4px; }
.points li span { color: var(--muted); }

/* The house factor's portrait, framed in gilt, with the mandate laid over its corner. */
.portrait { position: relative; padding-bottom: 150px; }
.portrait .gilt { padding: 12px; border-radius: 6px; transform: rotate(1.2deg); }
.portrait .gilt img { border-radius: 2px; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
.portrait .plate { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #3b2a0c; background: var(--gilt); padding: 6px 12px; border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); white-space: nowrap; }
.portrait .mandate { position: absolute; left: -36px; right: 64px; bottom: 0; }
.mandate {
  position: relative; background: linear-gradient(180deg, #fffaf0, #f1e6cf); color: var(--ink);
  padding: 30px 30px 26px; border-radius: 4px; transform: rotate(-1.4deg);
  box-shadow: 0 30px 70px rgba(60, 40, 10, .3), 0 0 0 1px rgba(164, 123, 44, .35);
}
.mandate .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.mandate h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 6px 0 12px; }
.mandate blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 18.5px; line-height: 1.45; font-style: italic; }
.mandate dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; border-top: 1px solid var(--paper-rule); padding-top: 14px; }
.mandate dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 2px; }
.mandate dd { margin: 0; }
.mandate .wax { position: absolute; right: 18px; top: -30px; width: 74px; height: 74px; transform: rotate(12deg); filter: drop-shadow(0 6px 10px rgba(80, 10, 6, .35)); }
.example { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 26px; }

.desks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.desk {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 22px; display: flex; flex-direction: column; min-height: 240px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 30px rgba(60, 40, 10, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.desk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gilt); }
.desk:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 20px 40px rgba(60, 40, 10, .12); }
.desk .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); display: flex; justify-content: space-between; }
.desk .k span { color: var(--gold); }
.desk h3 { font-family: var(--serif); font-size: 31px; font-weight: 500; margin: 10px 0 10px; line-height: 1.05; }
.desk p { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }
.desk .live { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-family: var(--mono); font-size: 13px; color: var(--ink); }
.desk .live b { color: var(--lapis); font-weight: 500; }
.desk .live small { display: block; color: var(--dim); font-size: 11.5px; margin-top: 4px; }

.compare { width: 100%; border-collapse: collapse; }
.compare th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 18px 14px 0; border-bottom: 2px solid var(--ink); }
.compare td { padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line-strong); vertical-align: top; }
.compare td:first-child { font-weight: 600; width: 22%; }
.compare td.old { color: #9b5b50; text-decoration: line-through; text-decoration-color: rgba(179, 38, 30, .7); width: 34%; }
.compare td.new { color: var(--ink); }
.compare td.new::before { content: "✦"; color: var(--gold); margin-right: 10px; font-size: 12px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: var(--card); box-shadow: 0 10px 30px rgba(60, 40, 10, .05); }
.card .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card h3 { font-size: 21px; font-weight: 600; margin: 8px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* The token block: ink, gold and a marbled edge. */
.token {
  position: relative; overflow: hidden; border-radius: 26px; padding: 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
  color: var(--band-text);
  background: linear-gradient(90deg, var(--band) 0%, var(--band) 52%, rgba(21, 17, 12, .82) 70%, rgba(21, 17, 12, .55) 100%), url("/img/marble-wide.webp") right center / cover;
  box-shadow: 0 40px 90px rgba(40, 25, 5, .3);
}
.token::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(226, 194, 122, .35); border-radius: 18px; pointer-events: none; }
.token h2 { margin-bottom: 16px; }
.token h2 em { color: inherit; }
.token .eyebrow { color: var(--gold-hi); }
.token .intro { color: #d9cfba; }
.token .tiers { list-style: none; margin: 0; padding: 22px 24px; counter-reset: t; background: rgba(21, 17, 12, .78); border-radius: 16px; border: 1px solid rgba(226, 194, 122, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); position: relative; z-index: 1; }
.token .tiers li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(226, 194, 122, .18); }
.token .tiers li:first-child { border-top: 0; }
.token .tiers li::before { counter-increment: t; content: counter(t, upper-roman); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-hi); color: var(--gold-hi); font-family: var(--serif); font-style: italic; font-size: 13px; }
.token .tiers b { display: block; color: #fff4dc; }
.token .tiers span { color: #c8bca4; font-size: 15.5px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); background: rgba(255, 255, 255, .4); }
.pill.on { color: var(--earn); border-color: rgba(44, 122, 75, .35); background: rgba(44, 122, 75, .07); }
.pill.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--earn); }
.pill.build { color: var(--gold); border-color: rgba(164, 123, 44, .4); background: rgba(226, 194, 122, .14); }
.pill.off { color: var(--muted); }
.token .pill { color: #d9cfba; border-color: rgba(226, 194, 122, .4); background: transparent; }

.code {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7; background: var(--band); border: 1px solid rgba(0, 0, 0, .3); border-radius: 14px;
  padding: 18px 20px; overflow-x: auto; color: #eadfc4; white-space: pre; margin: 0; box-shadow: 0 20px 50px rgba(40, 25, 5, .18);
}
.code .c { color: #8c8170; }
.code .g { color: var(--gold-hi); }

.status { width: 100%; border-collapse: collapse; }
.status td { padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line-strong); vertical-align: top; }
.status td:first-child { width: 34%; font-weight: 600; }
.status td:nth-child(2) { width: 22%; }
.status td:last-child { color: var(--muted); }

/* ---------- Pages (ledger, factors, developers, docs) ---------- */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 6.2vw, 88px); line-height: .98; letter-spacing: -.02em; margin: 0 0 18px; }
.page-head p:not(.eyebrow) { font-size: 19.5px; color: var(--ink-2); max-width: 720px; margin: 0; }

.ledger-big { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: start; padding-bottom: 96px; }
.ledger-big .endpaper { padding: 48px 34px 36px; }
.ledger-big .ledger-card { transform: none; padding-top: 30px; }
.ltable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ltable th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 8px 8px 0; border-bottom: 2px solid var(--ink); }
.ltable th.r, .ltable td.r { text-align: right; padding-right: 0; padding-left: 8px; }
.ltable td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--paper-rule); }
.ltable td.r { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.ltable tr.group td { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); padding-top: 18px; border-bottom: 1px solid rgba(23, 19, 14, .25); }
.ltable .sym { font-weight: 600; }
.ltable .where { color: var(--muted); font-size: 13.5px; }
.ltable tr.total td { border-top: 2px solid var(--ink); border-bottom: 3px double var(--ink); font-weight: 600; padding-top: 12px; }
.earning { color: var(--earn); }
.side { display: grid; gap: 16px; }
.side .card label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.side .card input { width: 100%; font-family: var(--mono); font-size: 15px; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.runway-out { font-family: var(--serif); font-size: 56px; line-height: 1; margin: 16px 0 6px; color: var(--lapis); }
.runway-out small { font-family: var(--sans); font-size: 16px; color: var(--muted); }

.docs { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-bottom: 110px; }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 8px; font-size: 14.5px; border-left: 2px solid var(--line-strong); padding-left: 16px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--red); }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 42px; line-height: 1.08; margin: 64px 0 16px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--red); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 0 12px 10px 0; }
.prose td { border-bottom: 1px solid var(--line-strong); padding: 12px 12px 12px 0; vertical-align: top; color: var(--ink-2); }
.prose code { font-family: var(--mono); font-size: 14px; background: rgba(226, 194, 122, .22); border: 1px solid rgba(164, 123, 44, .25); padding: 1px 6px; border-radius: 6px; color: #5a3f0e; }
.prose td code { white-space: nowrap; }
.prose .code { margin: 16px 0; }
.prose a { color: var(--red); }
.callout { border-left: 3px solid var(--red); padding: 6px 0 6px 18px; color: var(--ink-2); background: rgba(179, 38, 30, .04); }

.join { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.form { border: 1px solid var(--line-strong); border-radius: 20px; padding: 28px; background: var(--card); box-shadow: 0 30px 70px rgba(60, 40, 10, .1); position: relative; }
.form::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 4px; background: var(--gilt); border-radius: 0 0 4px 4px; }
.form .roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.form .roles button { font: inherit; padding: 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; }
.form .roles button[aria-pressed="true"] { color: #fff6ea; background: linear-gradient(180deg, #c8352b, var(--red)); border-color: transparent; font-weight: 600; }
.form label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 15px; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.form textarea { min-height: 110px; resize: vertical; }
.form .btn { width: 100%; margin-top: 20px; }
.form .msg { margin-top: 14px; font-size: 14.5px; }
.form .msg.ok { color: var(--earn); }
.form .msg.err { color: var(--red); }

/* ---------- Footer: ink, under a marbled ribbon ---------- */
.foot { background: var(--band); color: #9a8f7c; font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 70px; }
.foot .brand { color: var(--band-text); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: #cfc4ad; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot p { margin: 12px 0 0; max-width: 520px; }

/* ---------- Vlad accounts: /vlad (body.vl) and the home band ----------
   Calm and centred: a warm ivory canvas, one big Bodoni line per section, lapis pills, gold objects, few words. */
.btn-lapis { color: #f6efe1; background: linear-gradient(180deg, #2d44a3, var(--lapis) 55%, var(--lapis-deep)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 24px rgba(23, 40, 102, .24); }
.btn-lapis:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 30px rgba(23, 40, 102, .32); }
body.vl { background: var(--bg); }

.vl-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.vl-display { font-family: var(--serif); font-weight: 500; font-optical-sizing: auto; font-size: clamp(58px, 8.8vw, 140px); line-height: .9; letter-spacing: -.035em; margin: 0 0 44px; }
.vl-display em, .vl-h2 em { font-style: italic; color: var(--red); }
.vl-display em, .vl-h2 em { display: block; }
.vl-h2.vl-one em { display: inline; }
.vl-display-sm { font-size: clamp(48px, 6.6vw, 108px); }
.vl-lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 580px; margin: 0 0 34px; }
.vl-h2 { font-family: var(--serif); font-weight: 500; font-optical-sizing: auto; font-size: clamp(44px, 5.8vw, 92px); line-height: .95; letter-spacing: -.03em; margin: 0 0 22px; }
.vl-left { text-align: left; }
.vl-sub { font-size: 18.5px; line-height: 1.55; color: var(--ink-2); max-width: 600px; margin: 0 0 40px; }
.vl-fine { font-size: 13.5px; line-height: 1.65; color: var(--muted); max-width: 640px; margin: 30px auto 0; }
.vl-fine .mono { font-size: 12.5px; color: var(--ink-2); }
.vl-icon { width: 96px; height: 96px; margin-bottom: 26px; filter: drop-shadow(0 12px 16px rgba(80, 55, 10, .2)); }

/* The hero: the seal as a small tile, one line, one pill, florins drifting around it. */
.vl-hero { position: relative; overflow: clip; padding: 72px 0 36px; }
.vl-tile { width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; margin-bottom: 36px; background: linear-gradient(180deg, #fffaf0, #f2e5c8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(164, 123, 44, .28), 0 20px 40px rgba(110, 80, 20, .18); }
.vl-tile img { width: 64px; height: 64px; }
.vl-floaters { position: absolute; inset: 0; pointer-events: none; }
.floater { position: absolute; height: auto; filter: drop-shadow(0 16px 18px rgba(80, 55, 10, .22)); will-change: transform; animation: vl-drift 6.5s ease-in-out infinite alternate; }
@keyframes vl-drift { from { translate: 0 0; } to { translate: 0 -12px; } }
.f1 { width: 76px; left: 9%; top: 16%; rotate: -16deg; }
.f2 { width: 116px; right: 8%; top: 12%; rotate: 12deg; animation-duration: 8s; }
.f3 { width: 94px; left: 3.5%; top: 50%; rotate: 8deg; animation-delay: -2s; }
.f4 { width: 70px; right: 11%; top: 50%; rotate: -10deg; animation-delay: -4s; animation-duration: 7s; }
.f5 { width: 54px; right: 5%; top: 78%; rotate: 20deg; animation-delay: -1s; }
.f6 { width: 60px; left: 16%; top: 80%; rotate: -24deg; animation-delay: -3s; animation-duration: 9s; }

/* The certificate: a gilt-edged passbook page that rises as it scrolls in. */
.vl-cert-wrap { display: flex; justify-content: center; padding: 0 16px 120px; }
.vl-passbook { width: min(520px, 100%); padding: 10px; border-radius: 36px; background: var(--gilt); box-shadow: 0 50px 100px rgba(70, 45, 10, .24), inset 0 2px 0 rgba(255, 255, 255, .6); transform-origin: 50% 100%; will-change: transform; }
.vl-page { background: linear-gradient(180deg, #fffaf0, #f4e9d3); border-radius: 28px; padding: 18px 18px 28px; }
.vl-cert { position: relative; aspect-ratio: 10 / 7; display: grid; place-items: center; margin-bottom: 30px; border-radius: 6px; background: url("/img/certificate.svg") center / 100% 100% no-repeat, #fbf5e8; box-shadow: 0 18px 30px rgba(40, 30, 10, .16), 0 0 0 1px rgba(34, 55, 138, .14); }
/* A low optical size keeps the dollar sign's strokes visible in gold at this size; the edge separates it from the paper. */
.vl-cert-amount { font-family: var(--serif); font-weight: 700; font-optical-sizing: none; font-variation-settings: "opsz" 14; font-size: clamp(76px, 15vw, 132px); line-height: 1; letter-spacing: -.04em; margin-top: -3%; }
.vl-cert-amount .foil { filter: drop-shadow(0 1px 0 rgba(90, 64, 18, .45)); }
.vl-cert-seal { position: absolute; left: 50%; bottom: -1%; width: 17%; height: auto; transform: translateX(-50%); filter: drop-shadow(0 5px 7px rgba(80, 55, 10, .3)); } /* stamped on the lower band */
.vl-cert-from { font-size: 14px; color: var(--muted); margin: 0 10px 4px; }
.vl-cert-name { font-family: var(--serif); font-weight: 500; font-size: 48px; line-height: 1; letter-spacing: -.025em; margin: 0 10px 12px; }
.vl-cert-line { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lapis); margin: 0 10px 26px; }
.vl-cert-btn { display: flex; margin: 0 10px; }

/* Three facts, one sentence each, under thin rules. */
.vl-facts { padding: 10px 0 130px; }
.vl-facts-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.vl-fact { padding: 4px 44px 4px 44px; min-width: 0; }
.vl-fact:first-child { padding-left: 0; }
.vl-fact + .vl-fact { border-left: 1px solid var(--line-strong); }
.vl-fact img { width: 104px; height: 104px; margin-bottom: 24px; filter: drop-shadow(0 12px 14px rgba(80, 55, 10, .18)); }
.vl-fact p { font-size: 18px; line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 310px; }

/* The reel: what an agent reads, in rounded tiles. */
.vl-reel { background: var(--paper); padding: 130px 0 110px; }
.vl-track { list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: min(540px, 82%); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.vl-track::-webkit-scrollbar { display: none; }
.vl-slide { scroll-snap-align: start; min-width: 0; }
.vl-panel { height: 400px; border-radius: 40px; padding: 46px 40px 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.vl-panel.gold { background: linear-gradient(165deg, #efd8a2, #dcbb6c); }
.vl-panel.lapis { background: radial-gradient(500px 300px at 80% 0%, rgba(120, 150, 255, .25), transparent 60%), var(--lapis); }
.vl-panel.ink { background: radial-gradient(500px 300px at 20% 0%, rgba(226, 194, 122, .16), transparent 60%), var(--band); }
.vl-screen { width: min(100%, 360px); height: 100%; background: var(--paper); border-radius: 26px 26px 0 0; padding: 18px 20px 0; overflow: hidden; box-shadow: 0 -8px 40px rgba(0, 0, 0, .16); text-align: left; }
.vl-screen-bar { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; padding: 6px 12px; border-radius: 999px; background: rgba(226, 194, 122, .3); color: #5a3f0e; margin-bottom: 14px; }
.vl-screen pre { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--ink); white-space: pre; overflow: hidden; }
.vl-caption { margin: 22px 4px 0; font-size: 16.5px; line-height: 1.5; color: var(--muted); max-width: 520px; }
.vl-caption b { color: var(--ink); font-weight: 600; }
.vl-arrows { display: flex; gap: 12px; margin-top: 40px; }
.vl-arrow { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; padding: 0 0 3px; font: 400 28px/1 var(--serif); color: #f6efe1; background: var(--lapis-deep); cursor: pointer; transition: background .2s ease; }
.vl-arrow:disabled { background: rgba(23, 19, 14, .16); cursor: default; }

/* Live counters. */
.vl-counts { display: grid; grid-template-columns: repeat(3, 230px); gap: 14px; justify-content: center; margin-top: 6px; }
.vl-count { background: #f1e6cf; border-radius: 28px; padding: 30px 18px 24px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; min-height: 160px; }
.vl-num { font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 5vw, 76px); line-height: 1; letter-spacing: -.035em; }
.vl-num.soon { font-size: 32px; font-style: italic; letter-spacing: -.01em; color: var(--ink-2); padding-bottom: 10px; }
.vl-num-label { font-size: 14px; color: var(--muted); }
.vl-kpi-note { margin: 16px auto 52px; }

/* The funds, behind a segmented control. */
.vl-funds { background: var(--paper); padding: 130px 0 120px; }
.vl-seg { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 34px; border-radius: 999px; background: #efe3c9; }
.vl-seg button { font: inherit; font-size: 15px; font-weight: 500; padding: 10px 22px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s ease, color .2s ease; }
.vl-seg button[aria-selected="true"] { background: var(--lapis-deep); color: #f6efe1; box-shadow: 0 6px 14px rgba(23, 40, 102, .25); }
.vl-fund { width: 100%; max-width: 940px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; text-align: left; background: #f3e9d4; border-radius: 36px; padding: 46px; }
.vl-fund[hidden] { display: none; }
.vl-fund > * { min-width: 0; }
.vl-fund-id { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--red); }
.vl-fund h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 4.6vw, 68px); line-height: 1; letter-spacing: -.03em; margin: 12px 0 14px; }
.vl-fund-head p { color: var(--ink-2); margin: 0 0 34px; }
.vl-price span { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.vl-price b { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 4.2vw, 60px); line-height: 1; letter-spacing: -.025em; color: var(--lapis); }
.vl-price b.soon { font-size: 30px; font-style: italic; letter-spacing: -.01em; color: var(--ink-2); }
.vl-bars-label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.vl-bars-label[hidden] { display: none; }
.vl-fund .targets + .vl-bars-label { margin-top: 26px; }
.targets { list-style: none; margin: 0; padding: 0; }
.targets li { display: grid; grid-template-columns: 58px 1fr 50px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--paper-rule); }
.targets li:first-child { border-top: 1px solid var(--paper-rule); }
.targets .sym { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); }
.targets .pct { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--ink-2); }
.tbar { height: 6px; border-radius: 99px; background: rgba(23, 19, 14, .08); overflow: hidden; }
.tbar i { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lapis-deep), #5068c8); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.targets.holds .tbar i { background: linear-gradient(90deg, #a47b2c, #e2c27a); }

/* How the money works. */
.vl-money { padding: 130px 0 120px; }
.vl-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--line-strong); }
.vl-steps > div { padding: 30px 36px 0 0; min-width: 0; }
.vl-steps > div + div { padding-left: 36px; border-left: 1px solid var(--line-strong); }
.vl-steps .n { font-family: var(--serif); font-style: italic; font-size: 42px; line-height: 1; color: var(--red); }
.vl-steps h3 { font-size: 20px; font-weight: 600; margin: 16px 0 8px; }
.vl-steps p { color: var(--muted); margin: 0; }

/* How an agent claims. */
.vl-claim { background: var(--paper); padding: 130px 0 120px; }
.claim-steps { list-style: none; counter-reset: c; padding: 0; margin: 0; }
.claim-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.claim-steps li::before { counter-increment: c; content: counter(c, upper-roman); font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--red); }
.claim-steps b { display: block; font-weight: 600; margin-bottom: 4px; }
.claim-steps span { color: var(--muted); }
.claim-steps code { font-family: var(--mono); font-size: 13px; background: rgba(226, 194, 122, .22); border: 1px solid rgba(164, 123, 44, .25); padding: 1px 6px; border-radius: 6px; color: #5a3f0e; overflow-wrap: anywhere; }
.code-stack { display: grid; gap: 16px; }
.code-stack .code { font-size: 12.5px; }
.code-stack .example { margin-top: 4px; line-height: 1.6; }
.code-stack .example a { color: var(--red); }
.vl-ask { padding: 120px 0 110px; }
.ask-label { font-size: 15px; color: var(--ink-2); margin: 0; }
.ask-copy { justify-self: start; }
.vl-ask .code { white-space: pre-wrap; overflow-wrap: anywhere; } /* wraps on screen; the copied text keeps each URL whole */

/* Patrons. */
.vl-patrons { padding: 140px 0 130px; }
.vl-patrons .vl-sub { margin-bottom: 0; }

/* Answers: rounded cards, round plus buttons. */
.vl-answers { background: var(--paper); padding: 130px 0 120px; }
.vl-groups { max-width: 900px; margin: 46px 0 0; display: grid; gap: 14px; }
.vl-group { background: #f3e9d4; border-radius: 30px; padding: 4px 32px; }
.vl-group[open] { padding-bottom: 16px; }
.vl-group > summary, .vl-q > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; cursor: pointer; }
.vl-group > summary::-webkit-details-marker, .vl-q > summary::-webkit-details-marker { display: none; }
.vl-group > summary { padding: 24px 0; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.015em; }
.vl-q { border-top: 1px solid var(--line-strong); }
.vl-q > summary { padding: 17px 0; font-size: 16.5px; font-weight: 500; }
.vl-q p { margin: 0 0 20px; padding-right: 48px; color: var(--ink-2); max-width: 760px; }
.vl-group summary i { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; background: rgba(23, 19, 14, .07); transition: transform .25s ease, background .2s ease; }
.vl-q summary i { width: 26px; height: 26px; }
.vl-group summary i::before, .vl-group summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.vl-group summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.vl-group details[open] > summary i, .vl-group[open] > summary i { transform: rotate(45deg); }
.vl-group summary:hover i { background: rgba(23, 19, 14, .13); }

/* Closing. */
.vl-close { padding: 110px 0 150px; }
.vl-chest { width: 360px; height: auto; margin-bottom: 26px; filter: drop-shadow(0 28px 30px rgba(80, 55, 10, .22)); }

/* The home band, in the same voice. */
.vlad-band { position: relative; overflow: clip; background: var(--paper); padding: 120px 0 110px; }
.vlad-band .eyebrow { justify-content: center; }
.vlad-band .vl-tile { margin-bottom: 30px; }
.vlad-band .cta-row { justify-content: center; }
.vb-coin { position: absolute; height: auto; filter: drop-shadow(0 16px 18px rgba(80, 55, 10, .22)); pointer-events: none; }
.vb-coin.c1 { width: 104px; left: 9%; top: 22%; rotate: -14deg; }
.vb-coin.c2 { width: 78px; right: 10%; top: 30%; rotate: 16deg; }
.vb-coin.c3 { width: 58px; right: 17%; bottom: 16%; rotate: -8deg; }

/* Things that rise into place as they scroll in. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .foil, .ticker-track, .ledger-card .wax, .lc-rows li, .lc-live::before, .floater { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Narrow screens ---------- */
/* Six nav links: tighten before the menu takes over at 760px. */
@media (max-width: 1160px) {
  .nav .wrap { gap: 20px; }
  .nav-links { gap: 18px; }
}
@media (max-width: 980px) {
  .nav .btn { display: none; }
  .vl-fund { grid-template-columns: 1fr; gap: 30px; }
  .vl-fact { padding: 4px 28px; }
  .vl-steps > div { padding-right: 24px; }
  .vl-steps > div + div { padding-left: 24px; }
  .hero .wrap, .bignum, .split, .token, .join, .ledger-big { grid-template-columns: 1fr; gap: 44px; }
  .desks, .cards { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(2, 1fr); }
  .split .sticky { position: static; }
  .token { background: linear-gradient(180deg, var(--band) 0%, var(--band) 55%, rgba(21, 17, 12, .7) 100%), url("/img/marble-wide.webp") center bottom / cover; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(246, 239, 225, .98); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: inline-block; }
  .nav .btn { display: none; }
  .hero { padding: 40px 0 56px; }
  .endpaper { padding: 40px 14px 22px; }
  .ledger-card { transform: none; padding: 22px 16px 18px 34px; }
  .ledger-card::before { left: 20px; }
  .ledger-card .wax { width: 70px; height: 70px; top: -30px; right: -12px; }
  .lc-net strong { font-size: 36px; }
  .section { padding: 76px 0; }
  .band-lapis .inner { padding: 70px 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 26px 0 8px; border-left: 0; border-top: 1px solid var(--line-strong); }
  .desks, .cards { grid-template-columns: 1fr; }
  .token { padding: 30px 20px; }
  .token .tiers { padding: 14px 16px; }
  .compare td:first-child { width: auto; }
  .lc-form { flex-direction: column; }
  .lc-form button { padding: 11px; }
  .portrait { padding-bottom: 0; }
  .portrait .mandate { position: relative; left: auto; right: auto; bottom: auto; margin-top: -40px; margin-left: 8px; margin-right: 8px; }
  .mandate { padding: 26px 20px 22px; }
  .toc { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .claim-steps li { grid-template-columns: 36px 1fr; }
  .vl-hero { padding: 28px 0 112px; }
  .vl-tile { width: 80px; height: 80px; border-radius: 22px; margin-bottom: 28px; }
  .vl-tile img { width: 54px; height: 54px; }
  /* On a phone the florins sit beside the seal tile and under the pill, never on the words. */
  .f1 { width: 50px; left: 7%; top: 34px; }
  .f2 { width: 64px; right: 6%; top: 18px; }
  .f3, .f6 { display: none; }
  .f4 { width: 46px; right: 10%; top: auto; bottom: 26px; }
  .f5 { width: 38px; right: auto; left: 12%; top: auto; bottom: 44px; }
  .vl-cert-wrap { padding-bottom: 80px; }
  .vl-passbook { border-radius: 28px; padding: 8px; }
  .vl-page { border-radius: 22px; padding: 12px 12px 22px; }
  .vl-cert-name { font-size: 40px; }
  .vl-facts { padding-bottom: 90px; }
  .vl-facts-row { grid-template-columns: 1fr; }
  .vl-fact, .vl-fact:first-child { padding: 26px 0; }
  .vl-fact + .vl-fact { border-left: 0; border-top: 1px solid var(--line-strong); }
  .vl-fact img { width: 84px; height: 84px; margin-bottom: 16px; }
  .vl-reel, .vl-funds, .vl-money, .vl-claim, .vl-answers { padding: 84px 0 80px; }
  .vl-patrons { padding: 90px 0 84px; }
  .vl-close { padding: 80px 0 100px; }
  .vl-track { grid-auto-columns: 88%; gap: 14px; margin-top: 34px; }
  .vl-panel { height: 330px; border-radius: 28px; padding: 26px 18px 0; }
  .vl-screen { border-radius: 20px 20px 0 0; padding: 14px 14px 0; }
  .vl-screen pre { font-size: 11px; }
  .vl-caption { font-size: 15.5px; }
  .vl-counts { grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
  .vl-count { min-height: 0; padding: 16px 6px 14px; border-radius: 18px; gap: 8px; justify-content: flex-start; }
  .vl-hero .f1, .vl-hero .f2 { display: none; } /* they would sit on the live numbers */
  .vl-num { font-size: 36px; }
  .vl-num.soon { font-size: 16px; padding-bottom: 4px; }
  .vl-num-label { font-size: 11.5px; line-height: 1.3; text-align: center; }
  .vl-kpi-note { margin-bottom: 36px; }
  .vl-seg { display: flex; width: 100%; }
  .vl-seg button { flex: 1; padding: 10px 4px; font-size: 13.5px; }
  .vl-fund { padding: 28px 22px; border-radius: 28px; }
  .vl-steps { grid-template-columns: 1fr; }
  .vl-steps > div, .vl-steps > div + div { padding: 26px 0 0; border-left: 0; }
  .vl-steps > div + div { margin-top: 26px; border-top: 1px solid var(--line-strong); }
  .vl-group { padding: 2px 18px; border-radius: 24px; }
  .vl-group[open] { padding-bottom: 10px; }
  .vl-q p { padding-right: 0; }
  .vl-chest { width: 260px; }
  .vlad-band { padding: 84px 0 80px; }
  .vb-coin.c1 { width: 56px; left: 4%; top: 6%; }
  .vb-coin.c2 { width: 48px; right: 5%; top: 10%; }
  .vb-coin.c3 { display: none; }
  .prose td code { white-space: normal; overflow-wrap: anywhere; }
}

/* ------------------------------------------------------------------ /treasury (2026-10-23) */
.tr-hero { padding: 76px 0 64px; }
.tr-title { font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 7vw, 108px); line-height: .94; letter-spacing: -.03em; margin: 0 0 22px; }
.tr-title em { font-style: italic; color: var(--red); }
.tr-lede { font-size: 19.5px; line-height: 1.55; color: var(--ink-2); max-width: 680px; margin: 0 0 48px; }
.tr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tr-kpi { background: #f1e6cf; border-radius: 26px; padding: 30px 24px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 168px; border: 1px solid transparent; }
.tr-kpi.gilt { background: linear-gradient(180deg, #fffaf0, #f6ead0) padding-box, var(--gilt) border-box; box-shadow: 0 18px 40px rgba(110, 80, 20, .14); }
.tr-num { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 4.4vw, 68px); line-height: 1; letter-spacing: -.035em; font-variant-numeric: lining-nums; }
.tr-kpi-label { font-size: 14px; color: var(--muted); }
.tr-asof { font-family: var(--mono); font-size: 12.5px; color: var(--dim); margin: 18px 0 0; }
.tr-band .bignum .figure { font-size: clamp(64px, 9vw, 150px); }

.tr-alloc { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: rgba(23, 19, 14, .07); margin: 0 0 30px; box-shadow: inset 0 1px 2px rgba(23, 19, 14, .12); }
.tr-seg { display: block; width: 0; height: 100%; transition: width 1.3s cubic-bezier(.2, .8, .2, 1); }
.tr-seg.ready, .tr-dot.ready { background: linear-gradient(90deg, var(--lapis-deep), #5068c8); }
.tr-seg.accounts, .tr-dot.accounts { background: linear-gradient(90deg, #a47b2c, #e2c27a); }
.tr-seg.wallet, .tr-dot.wallet { background: linear-gradient(90deg, #17130e, #4a4036); }
.tr-seg.borro, .tr-dot.borro { background: linear-gradient(90deg, var(--red-deep), var(--red)); }
.tr-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; }

.tr-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tr-table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 16px 12px 0; border-bottom: 2px solid var(--ink); }
.tr-table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line-strong); vertical-align: top; color: var(--ink-2); }
.tr-table td b { color: var(--ink); font-weight: 600; }
.tr-table .r { text-align: right; padding-right: 0; white-space: nowrap; }
.tr-table td.mono { font-size: 14.5px; color: var(--ink); }
.tr-addr { display: block; margin: 6px 0 0 20px; font-family: var(--mono); font-size: 12px; color: var(--gold); text-decoration: none; }
a.tr-addr:hover { color: var(--red); }
.tr-addrs td.mono { font-size: 13px; word-break: break-all; }
.tr-addrs a { color: var(--red); font-size: 14px; }

.tr-flow { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.tr-flow li { position: relative; padding: 26px 26px 0 0; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.tr-flow li:not(:last-child)::after { content: "→"; position: absolute; right: 12px; top: 22px; font-family: var(--serif); font-size: 26px; color: var(--gold); }
.tr-flow .n { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--red); }
.tr-flow b { font-size: 19px; font-weight: 600; }
.tr-flow span:not(.n) { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.tr-next { display: flex; gap: 18px; align-items: flex-start; margin-top: 52px; padding: 24px 26px; border: 1.5px dashed rgba(164, 123, 44, .55); border-radius: 18px; background: rgba(255, 250, 240, .6); }
.tr-next p { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 820px; }
.tr-next b { color: var(--ink); }

.tr-funds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tr-fund { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 22px; box-shadow: 0 14px 34px rgba(60, 40, 10, .06); display: flex; flex-direction: column; }
.tr-fund .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.tr-fund h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -.01em; margin: 6px 0 10px; }
.tr-fund-nav { margin: 0 0 16px; display: flex; flex-direction: column; gap: 2px; }
.tr-fund-nav b { font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: -.02em; }
.tr-fund-nav span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tr-holds { list-style: none; margin: 0 0 14px; padding: 0; }
.tr-holds li { display: grid; grid-template-columns: 62px 1fr 50px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--paper-rule); }
.tr-holds li.empty { display: block; color: var(--muted); font-size: 14.5px; border-bottom: 0; }
.tr-holds .sym { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.tr-holds .pct { font-family: var(--mono); font-size: 12.5px; text-align: right; color: var(--ink-2); }
.tr-holds .tbar i { background: linear-gradient(90deg, #a47b2c, #e2c27a); }
.tr-fund .tr-addr { margin: auto 0 0; }

.tr-rules { display: grid; gap: 16px; }
.tr-rule { border-radius: 20px; padding: 26px 26px 20px; background: var(--card); border: 1px solid var(--line); }
.tr-rule.can { border-color: rgba(164, 123, 44, .45); }
.tr-rule.cannot { background: var(--band); border-color: var(--band); color: var(--band-text); }
.tr-rule h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0 0 12px; }
.tr-rule ul { list-style: none; margin: 0; padding: 0; }
.tr-rule li { position: relative; padding: 9px 0 9px 24px; line-height: 1.55; border-top: 1px solid var(--line); }
.tr-rule.cannot li { border-top-color: rgba(239, 230, 210, .14); color: #d9cfba; }
.tr-rule li::before { content: "✦"; position: absolute; left: 0; top: 10px; font-size: 11px; color: var(--gold); }
.tr-rule.cannot li::before { color: var(--gold-hi); }
.tr-fine { font-size: 13.5px; line-height: 1.65; color: var(--muted); max-width: 760px; margin: 26px 0 0; }
.tr-fine a { color: var(--red); }

@media (max-width: 980px) {
  .tr-kpis { grid-template-columns: repeat(2, 1fr); }
  .tr-flow { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .tr-flow li:nth-child(2)::after { content: none; }
  .tr-funds { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tr-hero { padding: 36px 0 44px; }
  .tr-lede { font-size: 17px; margin-bottom: 30px; }
  .tr-kpis { gap: 10px; }
  .tr-kpi { min-height: 0; padding: 18px 14px 16px; border-radius: 20px; gap: 8px; }
  .tr-num { font-size: 38px; }
  .tr-kpi-label { font-size: 12.5px; }
  .tr-table thead { display: none; }
  .tr-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
  .tr-table td { padding: 0; border: 0; }
  .tr-table td:first-child { grid-column: 1 / 2; }
  .tr-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 14.5px; }
  .tr-table:not(.tr-addrs) td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .tr-table:not(.tr-addrs) td:nth-child(4) { grid-column: 2; grid-row: 3; font-size: 12.5px; color: var(--muted); }
  .tr-addrs tr { grid-template-columns: 1fr auto; }
  .tr-addrs td.mono { grid-column: 1 / -1; grid-row: 2; }
  .tr-flow { grid-template-columns: 1fr; }
  .tr-flow li::after { content: none !important; }
  .tr-next { flex-direction: column; gap: 10px; }
}

/* ---------- /treasury: the Borro deposit, from the chain (written into the HTML by the Worker, src/treasury.js) ---------- */
[data-borro-show][hidden], .tr-mini-slot[hidden] { display: none !important; } /* a block's own display never beats hidden */
.tr-borro { margin-top: 52px; }
.tr-borro-head { display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px; border-radius: 18px; background: var(--card); border: 1.5px solid rgba(164, 123, 44, .45); box-shadow: 0 14px 34px rgba(60, 40, 10, .06); }
.tr-borro-head p { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 860px; }
.tr-borro-head b { color: var(--ink); }
.tr-borro-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 34px 0 0; border-top: 2px solid var(--ink); }
.tr-bk { display: flex; flex-direction: column; padding: 18px 22px 0 0; min-width: 0; }
.tr-bk + .tr-bk { padding-left: 22px; border-left: 1px solid var(--line-strong); }
.tr-bk dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.5; min-height: 3em; }
.tr-bk dd { margin: 12px 0 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 2.8vw, 44px); line-height: 1; letter-spacing: -.025em; font-variant-numeric: lining-nums; }
.tr-bk dd .u { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.tr-bk small { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.tr-borro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 40px; align-items: start; }
.tr-borro-grid.solo { grid-template-columns: minmax(0, 1fr); }

/* The next Vlad account: a gilt-edged card whose bar fills as the Borro earnings arrive. The fill's width is an SVG
   attribute (right with no script); script only adds .in to slide it in from zero and stamp the seal. */
.tr-nxt { position: relative; border-radius: 26px; padding: 26px 28px 24px; border: 1.5px solid transparent; background: linear-gradient(180deg, #fffaf0, #f6ead0) padding-box, var(--gilt) border-box; box-shadow: 0 18px 40px rgba(110, 80, 20, .14); }
.tr-nxt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.tr-nxt-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.tr-nxt-no { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(34px, 3vw, 46px); line-height: 1; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.tr-nxt-bar { position: relative; }
.tr-meter { display: block; height: 22px; border-radius: 99px; overflow: hidden; background: rgba(23, 19, 14, .07); box-shadow: inset 0 1px 2px rgba(23, 19, 14, .14); }
.tr-meter svg { display: block; }
.tr-meter .tick { stroke: rgba(23, 19, 14, .16); stroke-width: 1; }
.js [data-meter] .tr-meter .fil { transform: scaleX(0); transform-box: fill-box; transform-origin: 0 50%; transition: transform 1.7s cubic-bezier(.2, .8, .2, 1) .15s; }
.js [data-meter].in .tr-meter .fil { transform: none; }
.tr-nxt-scale { display: flex; justify-content: space-between; margin: 8px 2px 0; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.tr-nxt-label { margin: 18px 0 6px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.tr-nxt-label b { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -.02em; color: var(--ink); margin-right: 2px; font-variant-numeric: lining-nums tabular-nums; }
.tr-nxt-parts { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--muted); }
.tr-nxt-pace { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 14.5px; color: var(--ink-2); }
.tr-seal { position: absolute; right: -10px; top: 50%; width: 88px; height: 88px; margin-top: -44px; filter: drop-shadow(0 8px 12px rgba(80, 10, 6, .35)); transform: rotate(-10deg); }
.tr-seal img { display: block; width: 100%; height: 100%; }
.tr-seal b { position: absolute; left: 50%; bottom: -4px; translate: -50% 0; padding: 3px 9px; border-radius: 3px; background: var(--red); color: #fff6ea; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(80, 10, 6, .3); }
.js [data-meter] .tr-seal { opacity: 0; }
.js [data-meter].in .tr-seal { animation: stamp .9s cubic-bezier(.2, .9, .3, 1.2) 1.7s both; }

/* Every deposit, newest first, in the page's ledger rules with a double-ruled total. */
.tr-deps-k { margin: 0 0 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.tr-deps td { padding: 15px 16px 15px 0; }
.tr-deps td.r { padding-right: 0; }
.tr-deps td.mono { font-size: 15px; font-variant-numeric: tabular-nums; }
.tr-deps a { color: var(--gold); font-size: 13px; text-decoration: none; }
.tr-deps a:hover { color: var(--red); }
.tr-deps tfoot td { border-top: 2px solid var(--ink); border-bottom: 3px double var(--ink); color: var(--ink); font-weight: 600; }
.tr-deps tfoot td.r:last-child { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }

/* /vlad: the same bar, compact, under the live counters. */
.tr-mini-slot { display: flex; justify-content: center; width: 100%; margin: -42px 0 20px; } /* inside the note's own margin: the hero keeps its first screen */
.tr-mini { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; padding: 4px 16px 4px 14px; border-radius: 999px; border: 1px solid rgba(164, 123, 44, .4); background: rgba(255, 250, 240, .7); color: var(--ink-2); font-size: 13.5px; line-height: 1.4; text-decoration: none; }
.tr-mini:hover { border-color: var(--gold); }
.tr-mini-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.tr-mini-k b { margin-left: 4px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.tr-mini .tr-meter { flex: none; width: 160px; height: 8px; }
.tr-mini-v b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .js [data-meter] .tr-meter .fil { transform: none; transition: none; }
  .js [data-meter] .tr-seal { opacity: 1; animation: none; }
}
@media (max-width: 980px) {
  .tr-borro-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-bk:nth-child(3) { padding-left: 0; border-left: 0; }
  .tr-bk:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--line-strong); }
  .tr-borro-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tr-borro { margin-top: 36px; }
  .tr-borro-head { flex-direction: column; gap: 10px; padding: 20px; }
  .tr-bk { padding: 14px 12px 0 0; }
  .tr-bk + .tr-bk { padding-left: 12px; }
  .tr-bk dt { min-height: 4.5em; font-size: 10.5px; }
  .tr-bk dd { font-size: 26px; }
  .tr-bk small { font-size: 12.5px; }
  .tr-nxt { padding: 22px 18px 20px; border-radius: 22px; }
  .tr-nxt-no { font-size: 32px; }
  .tr-nxt-label b { font-size: 26px; }
  .tr-seal { right: 4px; width: 72px; height: 72px; margin-top: -36px; }
  .tr-table.tr-deps td { padding: 0; }
  .tr-table.tr-deps td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .tr-table.tr-deps td:nth-child(2) { grid-column: 2; grid-row: 1; font-size: 15px; }
  .tr-table.tr-deps td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .tr-deps tfoot tr { border-top: 2px solid var(--ink); border-bottom: 3px double var(--ink); }
  .tr-deps tfoot td { border: 0; }
  .tr-mini-slot { margin: -18px 0 32px; }
  .tr-mini { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; width: 100%; padding: 12px 16px; border-radius: 20px; }
  .tr-mini .tr-meter { width: 100%; }
}

/* $MERCA contract line on the home page (2026-10-23) */
.ca { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 18px 0 0; }
.ca-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ca a { font-size: 14px; color: var(--ink); word-break: break-all; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.ca a:hover { color: var(--red); }

/* ------------------------------------------------------------------ Factor accounts: /accounts, /accounts/{agentId},
   the /factors directory and /factors/{address} (2026-10-23). Rendered by fa-render.js; widths only from script. */
[data-show][hidden] { display: none !important; } /* a state block's own display never beats hidden */
.fa-hero .tr-lede { margin-bottom: 34px; }
.fa-status { display: flex; gap: 18px; align-items: flex-start; max-width: 940px; margin: 0 0 34px; padding: 22px 24px; border: 1.5px dashed rgba(164, 123, 44, .55); border-radius: 18px; background: rgba(255, 250, 240, .66); }
.fa-status .pill { flex: none; margin-top: 2px; }
.fa-status p { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.fa-status b { color: var(--ink); }
.fa-status a { color: var(--red); }
.fa-status .mono { white-space: nowrap; font-size: .92em; }
.fa-status.on { border-style: solid; border-color: rgba(44, 122, 75, .35); }
.fa-kpis { margin-top: 6px; }
.tr-num .soon { display: inline-block; font-size: clamp(26px, 2.5vw, 34px); font-style: italic; letter-spacing: -.01em; color: var(--ink-2); }
.tr-num a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.fa-title em { display: block; }
.fa-num-name { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -.015em; overflow-wrap: anywhere; }
.fa-num-sm { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; letter-spacing: -.01em; }
.fa-crumb { color: inherit; text-decoration: none; }
.eyebrow .fa-break { text-transform: none; letter-spacing: .04em; }
.eyebrow .mono { text-transform: none; letter-spacing: .04em; } /* an account's address keeps its own case */
.fa-crumb:hover { text-decoration: underline; }
.fa-facts { padding-top: 34px; }
.fa-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tr-rule.fa-factor { border-color: rgba(34, 55, 138, .3); background: linear-gradient(180deg, #fffaf0, #f2ead9); }
.tr-rule.fa-factor li::before { color: var(--lapis); }
.fa-lookup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; }
.fa-lookup .intro { margin-bottom: 0; }
.fa-form input { font-family: var(--mono); font-size: 16px; }
.fa-form .msg { font-size: 13.5px; }
.fa-callout { color: var(--red-deep); }
.fa-callout .mono { color: var(--red-deep); }

.fa-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.fa-grid h2 { font-size: clamp(38px, 4.4vw, 60px); }
.fa-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.fa-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.fa-card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 24px 20px; box-shadow: 0 14px 34px rgba(60, 40, 10, .06); }
.fa-card h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; margin: 4px 0 12px; }
.fa-card h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.fa-card h3 a:hover { color: var(--red); }
.fa-card .muted a { color: var(--red); }
.fa-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.fa-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 0 0 14px; overflow-wrap: anywhere; }
.fa-quote { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: 18.5px; line-height: 1.45; color: var(--ink); }
.fa-warn { color: var(--red-deep); font-size: 14.5px; margin: 0; }
.fa-addr { color: var(--gold); text-decoration: none; font-size: 12.5px; overflow-wrap: anywhere; }
a.fa-addr:hover { color: var(--red); }
.fa-break { overflow-wrap: anywhere; word-break: break-all; }
.fa-kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.fa-kv th { width: 38%; text-align: left; vertical-align: top; font-weight: 500; font-size: 13.5px; color: var(--muted); padding: 10px 12px 10px 0; border-top: 1px solid var(--paper-rule); }
.fa-kv td { padding: 10px 0; border-top: 1px solid var(--paper-rule); color: var(--ink); overflow-wrap: anywhere; }
.fa-kv tr:first-child th, .fa-kv tr:first-child td { border-top: 0; }
.fa-kv .muted { font-size: 13.5px; }

.fa-alloc { display: flex; height: 14px; margin: 8px 0 14px; border-radius: 99px; overflow: hidden; background: rgba(23, 19, 14, .07); box-shadow: inset 0 1px 2px rgba(23, 19, 14, .12); }
.fa-alloc:empty { display: none; }
.fa-seg { display: block; width: 0; height: 100%; transition: width 1.3s cubic-bezier(.2, .8, .2, 1); }
.fa-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 26px; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.fa-legend li { display: inline-flex; align-items: center; gap: 8px; }
.fa-legend b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.fa-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.fa-seg.cash, .fa-dot.cash { background: linear-gradient(90deg, #17130e, #4a4036); }
.fa-seg.treasury, .fa-dot.treasury { background: linear-gradient(90deg, var(--lapis-deep), #5068c8); }
.fa-seg.portfolio, .fa-dot.portfolio { background: linear-gradient(90deg, #a47b2c, #e2c27a); }
.fa-seg.runway, .fa-dot.runway { background: linear-gradient(90deg, #1f5c38, #5fae7d); }
.fa-seg.sweep, .fa-dot.sweep { background: linear-gradient(90deg, var(--red-deep), #d0574a); }
.fa-seg.payroll, .fa-dot.payroll { background: linear-gradient(90deg, #5b4a80, #9c8bc0); }
.fa-paper { padding: 9px; border-radius: 14px; background: var(--gilt); box-shadow: 0 30px 70px rgba(70, 45, 10, .2); }
.fa-ledger { transform: none; border-radius: 8px; padding: 20px 22px 16px 46px; }
.fa-ledger .ltable td .where { font-size: 12.5px; }
.losing { color: var(--red); }
.fa-moves a { color: var(--red); }
.fa-mandate { transform: rotate(-.6deg); margin-top: 30px; }
.fa-mandate .fa-quote { font-size: 21px; }
.fa-mandate .fa-meta { margin: 0; }
.fa-factor-name { overflow-wrap: anywhere; }

/* The directory */
.fd { padding-top: 64px; }
.fd-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 40px; align-items: end; margin-bottom: 34px; }
.fd-head h2 { margin-bottom: 0; }
.fd-head .intro { margin: 0; font-size: 17px; }
.fd-frame, .fd-scroll { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 20px 50px rgba(60, 40, 10, .07); }
.fd-scroll { overflow-x: auto; }
.fd-ghost td { opacity: .5; }
.fd-over { position: absolute; inset: 49px 0 0 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 26px 36px; background: linear-gradient(90deg, rgba(255, 250, 240, .98) 0%, rgba(255, 250, 240, .93) 58%, rgba(255, 250, 240, .55) 100%); }
.fd-over p { margin: 0; max-width: 640px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.fd-over b { color: var(--ink); }
.fd-bar { display: block; height: 9px; margin: 6px 0; border-radius: 99px; background: rgba(23, 19, 14, .1); }
.fd-bar.w40 { width: 40%; } .fd-bar.w50 { width: 50%; } .fd-bar.w60 { width: 60%; } .fd-bar.w80 { width: 80%; } .fd-bar.w90 { width: 90%; }
.fd-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fd-table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 18px 16px 12px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.fd-table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line-strong); vertical-align: top; color: var(--ink-2); }
.fd-table tr:last-child td { border-bottom: 0; }
.fd-table th:first-child, .fd-table td:first-child { padding-left: 24px; }
.fd-table .r { text-align: right; padding-right: 24px; }
.fd-table td.mono { font-size: 13.5px; white-space: nowrap; }
.fd-rank { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.1; color: var(--red); white-space: nowrap; }
.fd-rank .pill { margin-left: 8px; vertical-align: 5px; font-style: normal; padding: 3px 8px; font-size: 10.5px; }
.fd-name { font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--ink); text-decoration: none; }
.fd-name:hover { color: var(--red); }
.fd-mandate { display: block; max-width: 520px; margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.fd-record b { font-family: var(--mono); font-weight: 500; }
.fd-record small { display: block; font-size: 12.5px; color: var(--muted); }

@media (max-width: 980px) {
  .fa-keys, .fa-grid, .fa-two, .fa-lookup, .fd-head { grid-template-columns: 1fr; }
  .fa-lookup { gap: 30px; }
  .fd-head { gap: 16px; }
  .fa-side { position: static; }
}
@media (max-width: 760px) {
  .fa-status { flex-direction: column; gap: 10px; padding: 18px 18px; }
  .fa-status p { font-size: 15.5px; }
  .tr-num .soon { font-size: 22px; }
  .fa-num-name { font-size: 22px; }
  .fa-num-sm { font-size: 18px; }
  .fa-card { padding: 20px 18px 16px; border-radius: 18px; }
  .fa-card h3 { font-size: 24px; }
  .fa-kv th { width: 40%; }
  .fa-paper { padding: 6px; border-radius: 10px; }
  .fa-ledger { padding: 16px 12px 12px 30px; }
  .fa-ledger::before { left: 18px; }
  .fa-sheet .where { display: block; }
  .fa-mandate { transform: none; }
  .fa-mandate .fa-quote { font-size: 18px; }
  .fd { padding-top: 40px; }
  .fd-ghost { display: none; }
  .fd-over { position: static; padding: 22px 18px; background: transparent; }
  .fd-over p { font-size: 15.5px; }
  .fd-table thead { display: none; }
  .fd-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 18px 16px; border-bottom: 1px solid var(--line-strong); }
  .fd-table tr:last-child { border-bottom: 0; }
  .fd-table td, .fd-table td:first-child { padding: 0; border: 0; }
  .fd-table td:first-child { grid-row: 1 / span 2; }
  .fd-table td:nth-child(n+3) { grid-column: 2; font-size: 13.5px; }
  .fd-table .r { text-align: left; padding: 0; }
  .fd-table td.r::before { content: "Clients "; color: var(--muted); font-family: var(--sans); }
  .fd-table td.mono { white-space: normal; }
}

/* Eight nav links since /accounts (2026-10-23): tighter below 1100px, and the menu takes over below 940px. */
.nav-links a { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav .wrap { gap: 16px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14.5px; }
}
@media (max-width: 940px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(246, 239, 225, .98); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: inline-block; }
}

/* Long code in a table cell wraps instead of widening the page; long addresses in prose links break on phones. */
.prose table.wrap-code td code { white-space: normal; overflow-wrap: anywhere; }
.prose a.mono { overflow-wrap: anywhere; word-break: break-all; }
/* Long inline code in prose (an address, a formula) wraps instead of widening the page on a phone. */
.prose p code, .prose li code { overflow-wrap: anywhere; }

/* The account page's signed read: the owner's wallet signs one message to see its own account (2026-10-23). */
.fa-msg { min-height: 1.4em; margin: 14px 0 0; font-size: 14.5px; color: var(--muted); }
.fa-msg.err { color: var(--red); }
