/* BLACKVEIL — black, hairlines, restraint. Headings Inter Tight 500, text Inter, labels JetBrains Mono. */
@font-face { font-family: 'Inter Tight'; src: url(/fonts/inter-tight-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url(/fonts/inter-tight-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #111310;
  --bg2: #0d0f0c;
  --panel: #161915;
  --panel2: #1d201b;
  --line: rgba(246, 245, 239, .08);
  --line2: rgba(246, 245, 239, .15);
  --ink: #f6f5ef;
  --ink2: #d6d5cd;
  --mute: #9b9b91;
  --dim: #6a6b62;
  --brass: #c9a96b;
  --brass2: #e2c891;
  --ok: #5fbf8f;
  --wait: #d6a650;
  --no: #e07a68;
  --max: 72rem;
  --gut: max(20px, 4vw);
  --head: 'Inter Tight', Inter, system-ui, sans-serif;
  --text: Inter, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
::selection { background: var(--ink); color: #000; }
.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }
.dim { color: var(--dim); }
.brass { color: var(--brass2); }
.hide { display: none !important; }

/* ───────── header ───────── */
.hdr { position: sticky; top: 0; z-index: 50; height: 64px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hdr .in { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; height: 100%; padding: 0 var(--gut); display: flex; align-items: center; gap: 18px; }
.hdr .brand { display: flex; align-items: center; gap: 10px; font: 600 16px/1 var(--head); letter-spacing: .14em; white-space: nowrap; }
.hdr .brand .mark { width: auto; height: 30px; }
.hdr .brand .lockup { display: none; }
.ca { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; min-width: 0; transition: border-color .2s; }
.ca .k { font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--dim); }
.ca .v { font: 400 11.5px/1 var(--mono); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca .v.pending { color: var(--dim); letter-spacing: .1em; font-size: 10.5px; }
.ca svg { width: 13px; height: 13px; color: var(--dim); flex: none; }
.ca:hover { border-color: var(--line2); }
.ca:hover .v { color: var(--ink); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); opacity: .78; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; transition: opacity .2s; }
.nav a:hover, .nav a.on { opacity: 1; }
.nav a:hover, .nav a.on { color: var(--ink); }
.hdr .right { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--ink2); cursor: pointer; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--line2); color: var(--ink); }
.icon-btn svg { width: 14px; height: 14px; }
.menu-btn { display: none; }
.ca-strip { display: none; }

/* ───────── buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font: 500 14px/1 var(--text); cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, opacity .2s; }
.btn:hover { background: var(--panel2); border-color: #333; }
.btn.solid { background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(232, 233, 227, .85)); color: #151713; border-color: rgba(255, 255, 255, .7); }
.btn.solid:hover { background: #e6e4df; border-color: #e6e4df; }
.btn.brass { background: var(--brass2); color: #15110a; border-color: var(--brass2); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; }

/* ───────── frame + type ───────── */
.wrap { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.label { display: flex; align-items: center; gap: 12px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.label .n { color: var(--ink); }
.label .r { margin-left: auto; color: var(--dim); }
.sec { padding: 96px 0 0; }
.sec-head { display: grid; gap: 14px; max-width: 640px; }
.sec-head.center { margin: 0 auto; text-align: center; justify-items: center; }
.h1 { font: 500 clamp(36px, 4.2vw, 56px)/1.02 var(--head); letter-spacing: -.05em; word-spacing: .08em; margin: 0; }
.h2 { font: 500 clamp(30px, 3.2vw, 46px)/1 var(--head); letter-spacing: -.05em; word-spacing: .08em; margin: 0; }
.h3 { font: 500 17px/1.35 var(--head); letter-spacing: -.01em; margin: 0; }
.h1 em, .h2 em { font-style: normal; color: var(--mute); }
.lead { font-size: 17px; line-height: 1.65; color: var(--mute); max-width: 540px; margin: 0; }
.p { color: var(--mute); margin: 0; font-size: 14.5px; }
.small { font-size: 13px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; border-radius: 2px; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line2); color: var(--mute); white-space: nowrap; }
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip.live { color: var(--ok); border-color: rgba(95, 191, 143, .28); }
.chip.plan { color: var(--wait); border-color: rgba(214, 166, 80, .28); }
.chip.no { color: var(--no); border-color: rgba(224, 122, 104, .3); }
.chip.off::before { background: var(--dim); }
.route { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.route.Settles { color: var(--ok); } .route.Queues { color: var(--wait); } .route.Refuses { color: var(--no); }

/* ───────── hero: Totalis-style stage ───────── */
.hero { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; background: #171a16; }
.hero .film, .hero .film img, .hero .film video, .hero .scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .film { z-index: -1; }
.hero .film img, .hero .film video { object-fit: cover; object-position: 50% 45%; }
.hero .film video { opacity: 0; transition: opacity .7s cubic-bezier(.22, 1, .36, 1); }
.hero .film video.on { opacity: 1; }
.hero .scrim { background: linear-gradient(90deg, rgba(9, 11, 9, .8) 0%, rgba(9, 11, 9, .45) 26%, rgba(9, 11, 9, 0) 46%), linear-gradient(180deg, rgba(8, 10, 8, .58) 0%, rgba(8, 10, 8, .06) 22%, rgba(8, 10, 8, .04) 45%, rgba(8, 10, 8, .66) 100%); }
.hero .copy { position: absolute; z-index: 1; width: min(48rem, 100% - 2.5rem); left: clamp(1.25rem, 4.2vw, 4.75rem); bottom: clamp(2rem, 4.25vw, 4rem); }
.hero .h1 { font-size: clamp(3.25rem, 5.4vw, 5.6rem); line-height: .9; letter-spacing: -.06em; word-spacing: .1em; text-wrap: balance; }
.hero .sub { color: rgba(246, 245, 239, .76); letter-spacing: -.015em; max-width: 31rem; margin: 1.35rem 0 0; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.45; text-wrap: pretty; }
.hero .cta-row { display: flex; align-items: center; gap: 26px; margin-top: 1.8rem; }
.pill { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 3.55rem; padding: .8rem 1.8rem; border-radius: 999px; color: #151713; font-size: 1rem; letter-spacing: -.01em; background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(232, 233, 227, .78)), rgba(246, 245, 239, .84); border: 1px solid rgba(255, 255, 255, .68); -webkit-backdrop-filter: blur(18px) saturate(145%); backdrop-filter: blur(18px) saturate(145%); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); transition: transform .26s cubic-bezier(.22, 1, .36, 1), box-shadow .26s; }
.pill::before { content: ''; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; opacity: .72; background: radial-gradient(circle at 26% 0, rgba(255, 255, 255, .95), transparent 40%); animation: breathe 4.8s ease-in-out infinite; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .6); }
.pill:active { transform: translateY(0) scale(.985); }
@keyframes breathe { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }
.textlink { color: var(--ink); font-size: 15px; border-bottom: 1px solid rgba(246, 245, 239, .35); padding-bottom: 2px; transition: border-color .2s; }
.textlink:hover { border-color: var(--ink); }
.hero .note { position: absolute; z-index: 1; right: clamp(1.25rem, 4.2vw, 4.75rem); bottom: clamp(2rem, 4.25vw, 4rem); display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; text-align: right; font-size: clamp(.7rem, .82vw, .82rem); letter-spacing: .08em; text-transform: uppercase; color: rgba(246, 245, 239, .62); }
.hero .note b { font-weight: 500; color: var(--ink); letter-spacing: .06em; font-size: clamp(.8rem, .95vw, .95rem); }
.hero .note .live { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: none; color: rgba(246, 245, 239, .5); }
.livepanel { margin-top: 72px; }
.livepanel .ph .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 10px; box-shadow: 0 0 0 3px rgba(95, 191, 143, .15); vertical-align: 1px; }
.livepanel .ph a { color: var(--mute); } .livepanel .ph a:hover { color: var(--ink); }

/* header floats over the hero on the home page */
body.home .hdr { position: absolute; left: 0; right: 0; height: auto; background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.home .hdr .in { max-width: none; padding: clamp(1.25rem, 2.35vw, 2.35rem) clamp(1.25rem, 4.2vw, 4.75rem); align-items: flex-start; }
body.home .ca-strip { position: absolute; top: 100px; left: 0; right: 0; z-index: 49; border-bottom: 0; background: transparent; }

/* live strip under the hero */
.strip { border-bottom: 1px solid var(--line); overflow: hidden; }
.strip .lane { display: flex; width: max-content; animation: lane 70s linear infinite; }
.strip:hover .lane { animation-play-state: paused; }
.strip .cell { display: flex; align-items: center; gap: 14px; padding: 15px 28px; border-right: 1px solid var(--line); white-space: nowrap; font-size: 13px; color: var(--ink2); }
.strip .cell .m { font: 400 11.5px var(--mono); color: var(--dim); }
.strip .cell b { font-weight: 500; color: var(--ink); }
@keyframes lane { to { transform: translateX(-50%); } }

/* ───────── study sections (copy + instrument) ───────── */
.study { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.study.flip > :first-child { order: 2; }
.study > * { min-width: 0; }
.study .copy { display: grid; gap: 18px; align-content: start; }
.checks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; color: var(--ink2); }
.checks li svg { width: 14px; height: 14px; margin-top: 4px; color: var(--ok); }
.study .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.panel .ph { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.panel .ph .r { margin-left: auto; }
.panel .pb { padding: 16px; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 44px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; transition: border-color .2s; }
.card:hover { border-color: var(--line2); }
.card .ic { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: var(--r); color: var(--ink2); margin-bottom: 10px; }
.card .ic svg { width: 16px; height: 16px; }
.card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card .p { font-size: 13.5px; }

/* simulator */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sim > * { min-width: 0; }
.sim .ctrl { padding: 6px 16px 14px; border-right: 1px solid var(--line); }
.slider { display: grid; gap: 4px; padding: 10px 0; }
.slider .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12.5px; color: var(--mute); }
.slider .top .num { color: var(--ink); font-size: 12.5px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--line2) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line2); }
input[type=range]::-moz-range-progress { height: 2px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: var(--ink); border: 2px solid #000; }
input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: 2px solid #000; }
.sim .out { padding: 16px; display: grid; gap: 12px; align-content: start; }
.sim .ask { display: flex; justify-content: space-between; gap: 10px; font: 400 12.5px var(--mono); color: var(--mute); }
.sim .ask b { color: var(--ink); font-weight: 500; }
.sim .verdict { font: 500 34px/1 var(--mono); letter-spacing: -.02em; padding: 14px 0 4px; }
.sim .why { font: 400 12px/1.7 var(--mono); color: var(--mute); }
.sim .why span { display: block; }
.sim .why .x { color: var(--no); } .sim .why .y { color: var(--ok); }
.feed { display: grid; }
.feed .it { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed .it:last-child { border-bottom: 0; }
.feed .it .what { min-width: 0; }
.feed .it .what b { font-weight: 500; color: var(--ink); }
.feed .it .what .sub { display: block; color: var(--dim); font: 400 11px/1.5 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .it .amt { font: 400 13px/1 var(--mono); white-space: nowrap; }
.feed .it.enter { animation: rowin .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes rowin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.meter { height: 2px; background: var(--line2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); width: 0; transition: width .4s; }
pre.code { margin: 0; padding: 16px; overflow-x: auto; font: 400 12px/1.7 var(--mono); color: var(--ink2); background: #050505; }
pre.code .c { color: var(--dim); } pre.code .s { color: var(--brass2); } pre.code .k { color: #9fb6c9; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 13px 16px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl a.tx { font: 400 12px/1 var(--mono); color: var(--mute); border-bottom: 1px solid var(--line2); }
.tbl a.tx:hover { color: var(--ink); }
.scroll-x { overflow-x: auto; }

/* wide cards: token, price list, closing */
.band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.band .seal { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: var(--r); }
.band .seal svg { width: 26px; height: 26px; }
.band .p { max-width: 620px; margin-top: 8px; }
.band .ca { margin-top: 14px; height: 30px; width: fit-content; max-width: 100%; }
.close { text-align: center; padding: 72px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 16px; justify-items: center; }
.close .acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* charter compare */
.charter { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.charter > div { padding: 24px; background: var(--panel); }
.charter > div + div { border-left: 1px solid var(--line); }
.charter .tier { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.charter .big { font: 500 30px/1 var(--head); letter-spacing: -.02em; margin: 14px 0 4px; }
.charter ul { list-style: none; padding: 0; margin: 16px 0 0; }
.charter li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--mute); }
.charter li b { font: 400 12.5px/1.5 var(--mono); color: var(--ink); }

/* faq */
.faq { max-width: 720px; margin: 36px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 18px 2px; font-size: 15px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 8px; height: 8px; margin-top: 6px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: rotate(45deg); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 18px; color: var(--mute); font-size: 14.5px; }

/* footer */
.foot { margin-top: 96px; border-top: 1px solid var(--line); }
.foot .bar { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 22px var(--gut); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font-size: 13px; color: var(--mute); }
.foot .bar .links { display: flex; gap: 8px; margin-left: auto; }
.foot .bar a:hover { color: var(--ink); }
.foot .fine { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut) 30px; font-size: 12px; color: var(--dim); line-height: 1.6; }

/* forms */
.field { display: grid; gap: 7px; }
.field > span { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.input { height: 42px; padding: 0 14px; border-radius: 10px; background: #050505; border: 1px solid var(--line2); outline: none; transition: border-color .2s; width: 100%; min-width: 0; font-size: 14px; }
.input:focus { border-color: #555; }
.input.mono { font-family: var(--mono); font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line2); padding: 3px; gap: 2px; border-radius: 999px; }
.seg button { border-radius: 999px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 12px; color: var(--mute); font-size: 12.5px; cursor: pointer; }
.seg button.on { background: var(--panel2); color: var(--ink); }
.form-grid { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--mute); }
.empty { padding: 26px 16px; color: var(--dim); font-size: 13.5px; text-align: center; }

/* toast */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 36px)); pointer-events: none; }
.toast a { pointer-events: auto; }
.toast { padding: 12px 16px; background: #0f0f0f; border: 1px solid var(--line2); box-shadow: 0 18px 40px -18px #000; font-size: 13.5px; animation: rowin .35s; }
.toast.ok { border-color: rgba(95, 191, 143, .4); } .toast.err { border-color: rgba(224, 122, 104, .5); }
.toast a { color: var(--ink); border-bottom: 1px solid currentColor; }

/* docs + verify */
.page-head { padding: 64px 0 36px; border-bottom: 1px solid var(--line); display: grid; gap: 16px; }
.page-head .h1, .page-head .h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; }
.doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; padding-top: 40px; }
.doc .toc { position: sticky; top: 90px; align-self: start; display: grid; }
.doc .toc a { padding: 6px 0 6px 14px; color: var(--mute); font-size: 13px; border-left: 1px solid var(--line); }
.doc .toc a:hover { color: var(--ink); border-color: var(--ink); }
.doc h2 { font: 500 24px/1.2 var(--head); letter-spacing: -.015em; margin: 56px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink2); max-width: 720px; font-size: 14.5px; }
.doc ul, .doc ol { padding-left: 18px; }
.doc code { font: 400 .88em var(--mono); color: var(--ink); background: var(--panel2); padding: 1px 6px; }
.doc pre.code { border: 1px solid var(--line); margin: 14px 0; }
.doc pre.code code { background: none; padding: 0; color: inherit; }
.doc .panel { margin: 14px 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 16px; background: var(--panel); }
.facts > div { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.facts .k { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.facts .v { font: 400 13.5px/1.5 var(--mono); margin-top: 9px; word-break: break-all; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.row .no { font: 500 12px/1.8 var(--mono); color: var(--dim); }
.row .fn { font: 400 11.5px/1.5 var(--mono); color: var(--dim); margin-top: 6px; }
.row .side { display: flex; justify-content: flex-end; }

/* mobile menu sheet */
.sheet { position: fixed; inset: 64px 0 auto 0; z-index: 49; background: #000; border-bottom: 1px solid var(--line); display: grid; padding: 6px var(--gut) 16px; }
.sheet a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.sheet a:last-child { border-bottom: 0; }

/* ───────── responsive ───────── */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hdr .ca { display: none; }
  .hdr .right { margin-left: auto; }
  .ca-strip { display: flex; align-items: center; gap: 10px; padding: 9px var(--gut); border-bottom: 1px solid var(--line); cursor: pointer; }
  .ca-strip .k { font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--dim); flex: none; }
  .ca-strip .v { font: 400 min(11.5px, 2.8vw)/1 var(--mono); color: var(--ink2); white-space: nowrap; overflow: hidden; }
  .ca-strip .v.pending { letter-spacing: .1em; color: var(--dim); }
  .ca-strip svg { width: 13px; height: 13px; color: var(--dim); flex: none; margin-left: auto; }
  .study { grid-template-columns: minmax(0, 1fr); }
  .study.flip > :first-child { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; } .doc .toc { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 50px 1fr; }
  .row .p, .row .side { grid-column: 2; }
  .row .side { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hdr .right .btn { display: none; }

  .cards { grid-template-columns: 1fr; }
  .sim { grid-template-columns: 1fr; }
  .sim .ctrl { border-right: 0; border-bottom: 1px solid var(--line); }
  .band { grid-template-columns: 1fr; padding: 26px; }
  .charter { grid-template-columns: 1fr; }
  .charter > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .two, .three { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .feed .it { grid-template-columns: 1fr auto; }
  .feed .it .route { grid-column: 2; grid-row: 1; }
  .feed .it .amt { grid-column: 2; grid-row: 2; justify-self: end; }
  .sec { padding-top: 72px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row .p, .row .side { grid-column: 1; }
  .foot .bar .links { margin-left: 0; }
}
@media (max-width: 640px) {
  .hero .copy { width: calc(100% - 2.5rem); left: 1.25rem; bottom: 6.2rem; }
  .hero .h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); letter-spacing: -.065em; }
  .hero .sub { font-size: 1rem; max-width: 22rem; }
  .hero .note { left: 1.25rem; right: 1.25rem; bottom: 1.25rem; align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: .3rem .6rem; font-size: .62rem; }
  .hero .note b { font-size: .7rem; }
  .hero .film img, .hero .film video { object-position: 50% 45%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.sim .verdict { text-transform: none; letter-spacing: -.02em; }
body.home .hdr .brand { flex-direction: column; align-items: center; gap: 8px; font-size: 15px; letter-spacing: .16em; }
body.home .hdr .brand .mark, body.home .hdr .brand span { display: none; }
body.home .hdr .brand .lockup { display: block; height: 92px; width: auto; }
body.home .hdr .ca { margin-top: 10px; background: rgba(9, 11, 9, .35); border-color: rgba(246, 245, 239, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.home .hdr .nav { margin-top: 18px; }
body.home .hdr .right { margin-top: 8px; }
.hdr .right .btn.solid { height: 38px; }

/* ───────── Roman-tech sections ───────── */
.rn { font: 500 13px/1 var(--head); letter-spacing: .18em; color: var(--ink); }
.fresco { position: relative; margin: 0 0 44px; border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 8.4; background: var(--panel); border: 1px solid var(--line); }
.fresco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.02); transition: transform 1.6s cubic-bezier(.22, 1, .36, 1); }
.fresco:hover img { transform: scale(1.045); }
.fresco::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 11, 9, .86) 0%, rgba(9, 11, 9, .45) 40%, rgba(9, 11, 9, 0) 72%), linear-gradient(180deg, transparent 40%, rgba(9, 11, 9, .55) 100%); }
.fresco figcaption { position: absolute; z-index: 1; left: clamp(20px, 3.4vw, 48px); bottom: clamp(20px, 3.2vw, 44px); display: grid; gap: 12px; max-width: 640px; }
.fresco figcaption .rn { font-size: 15px; }
.fresco .latin { font: 500 11px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: rgba(246, 245, 239, .7); }
.fresco .h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: .95; letter-spacing: -.055em; }
.card .top .rn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 50%; font-size: 11px; letter-spacing: .08em; }
.coinrow { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.coinrow .coin { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3.2; }
.coinrow .coin img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.coinrow .copy { display: grid; gap: 18px; align-content: start; }
.coinrow .ca { height: 32px; width: fit-content; max-width: 100%; }
.band .seal .rn { font-size: 18px; }
.finale { position: relative; isolation: isolate; min-height: min(92svh, 860px); margin-top: 110px; overflow: hidden; display: block; }
.finale img, .finale .scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.finale img { object-fit: cover; object-position: 50% 40%; z-index: -2; }
.finale .scrim { z-index: -1; background: linear-gradient(90deg, rgba(9, 11, 9, .8) 0%, rgba(9, 11, 9, .35) 40%, rgba(9, 11, 9, 0) 70%), linear-gradient(180deg, var(--bg) 0%, rgba(17, 19, 16, 0) 18%, rgba(8, 10, 8, 0) 55%, rgba(8, 10, 8, .7) 100%); }
.finale .copy { position: absolute; left: clamp(1.25rem, 4.2vw, 4.75rem); bottom: clamp(2rem, 4.25vw, 4rem); width: min(40rem, 100% - 2.5rem); display: grid; gap: 0; }
.finale .label { margin-bottom: 18px; }
.finale .h1 { font-size: clamp(3rem, 5vw, 5.2rem); line-height: .9; letter-spacing: -.06em; word-spacing: .1em; }
.finale .sub { color: rgba(246, 245, 239, .76); font-size: clamp(1rem, 1.3vw, 1.18rem); margin: 1.2rem 0 0; }
.finale .cta-row { display: flex; align-items: center; gap: 26px; margin-top: 1.8rem; }
body.home .foot { margin-top: 0; }
@media (max-width: 1080px) { .coinrow { grid-template-columns: 1fr; } .fresco { aspect-ratio: 16 / 9; } }
@media (max-width: 640px) { .fresco { aspect-ratio: 4 / 4.2; } .fresco img { object-position: 60% 50%; } .finale { min-height: 640px; } .finale .copy { bottom: 1.5rem; } }
.hero .latin { font: 500 11px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: rgba(246, 245, 239, .78); margin-bottom: 20px; }
@media (max-width: 640px) {
  body.home .ca-strip { background: rgba(9, 11, 9, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .hero .scrim { background: linear-gradient(180deg, rgba(8, 10, 8, .6) 0%, rgba(8, 10, 8, .1) 26%, rgba(8, 10, 8, .35) 46%, rgba(8, 10, 8, .86) 78%, rgba(8, 10, 8, .92) 100%); }
  .hero .latin { letter-spacing: .14em; font-size: 10px; }
}
@media (max-width: 640px) { body.home .hdr .brand .lockup { height: 66px; } body.home .ca-strip { top: 104px; } }

.hdr .brand canvas.glitter { display: block; }

.hero .coin3d { position: absolute; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero .coin3d.on { opacity: 1; }
.hero .coin3d canvas { width: 100%; height: 100%; display: block; }
.doc > article { min-width: 0; }
.doc pre.code { max-width: 100%; overflow-x: auto; }
.doc p, .doc li { overflow-wrap: anywhere; }
