/* ============================================================
   WHILOM COPROCESSOR — front-end
   Brand: archival ledger · parchment + ink + oxblood wax seal
   Display: Fraunces (serif) · Body: Inter · Labels/mono: IBM Plex Mono
   ============================================================ */

:root {
  /* parchment surfaces */
  --paper:    #e9dec3;   /* page parchment */
  --paper-2:  #f6f0e0;   /* raised card paper */
  --paper-3:  #fbf7ec;   /* inset (inputs / terminal) */
  --paper-dk: #ded0ad;   /* deeper parchment (insets, tracks) */

  /* ink */
  --ink:       #211b10;  /* primary ink */
  --ink-soft:  #4a4130;  /* secondary */
  --ink-faint: #685b41;  /* muted / captions — clears AA on every parchment */

  /* accents */
  --seal:        #fe4104;  /* brand vermilion (from the logo) — FILLS & non-text accents */
  --seal-deep:   #aa3008;  /* darker vermilion — TEXT/links on parchment (clears AA) */
  --seal-bright: #ff5a22;
  --btn-ink:     #2a1404;  /* near-ink text that sits ON the vermilion fills (AA) */
  --gold:        #97772f;  /* aged gold — secondary accent (non-text: swatches, strokes) */
  --gold-soft:   #b59446;
  --gold-ink:    #6f5518;  /* darker gold for TEXT roles — clears AA on paper */

  /* status */
  --ok:    #3f6b3a;   /* ledger green */
  --warn:  #97651a;   /* ochre */
  --err:   #9b2c2c;   /* error red */

  /* rules / lines */
  --rule:   rgba(33,27,16,0.18);
  --rule-2: rgba(33,27,16,0.10);
  --rule-3: rgba(33,27,16,0.06);

  /* surface tints (flip per theme) */
  --raise:   rgba(255,255,255,.45);  /* subtle raised fill on chips/controls */
  --raise-2: rgba(255,255,255,.7);   /* hover */
  --wash:    rgba(255,255,255,.2);   /* faint section wash */
  --sheen:   rgba(255,255,255,.5);   /* glass top highlight */

  /* page background — aged paper wash + faint logo-vermilion glow */
  --page-grad:
    radial-gradient(90% 60% at 88% 3%, rgba(254,65,4,.08), transparent 52%),
    radial-gradient(120% 90% at 50% -6%, #f3ead4 0%, #ebe0c5 48%, #e3d7b8 100%);

  --radius: 9px;
  --radius-sm: 5px;
  --maxw: 1200px;

  --font-disp: "Fraunces", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-px:   "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 20px 44px -26px rgba(74,55,18,.55), 0 2px 5px -3px rgba(74,55,18,.22);
  --shadow-soft: 0 10px 30px -22px rgba(74,55,18,.5);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--page-grad) fixed;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--seal); outline-offset: 2px; border-radius: 4px;
}
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; top: -100px; left: 10px; z-index: 1000;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--paper-2); color: var(--ink); font-weight: 600;
  box-shadow: 0 0 0 1px var(--seal), var(--shadow); transition: top .18s var(--ease);
}
.skip-link:focus { top: 10px; }

code { font-family: var(--font-mono); font-size: .9em; color: var(--seal-deep); background: rgba(254,65,4,.07); padding: .1em .4em; border-radius: 4px; }
.mono { font-family: var(--font-mono); letter-spacing: .1px; }

::selection { background: rgba(254,65,4,.24); color: var(--ink); }

html { scrollbar-width: thin; scrollbar-color: var(--gold) var(--paper-dk); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper-dk); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; border: 3px solid var(--paper-dk); }

/* ---------- background layers ---------- */
/* animated gradient blobs — rotating ORANGE ring (both themes) */
.blobs { position: fixed; inset: 0; z-index: -3; display: grid; place-items: center; overflow: hidden; pointer-events: none; opacity: .5; }
[data-theme="dark"] .blobs { opacity: 1; }
.blobs__rot { display: grid; grid-template-areas: "stack"; place-items: center; animation: blobspin 14s linear infinite; }
.blobs span {
  grid-area: stack;
  --bw: 5vmin;
  width: 80vmin; height: 80vmin; aspect-ratio: 1;
  border: var(--bw) solid transparent;
  border-radius: 115% 140% 145% 110% / 125% 140% 110% 125%;
  background-repeat: no-repeat; background-position: center;
  background-size: calc(100% + var(--bw) * 2);
  -webkit-mask-image: linear-gradient(transparent, transparent), linear-gradient(#000, #fff);
  mask-image: linear-gradient(transparent, transparent), linear-gradient(#000, #fff);
  -webkit-mask-clip: padding-box, border-box; mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mix-blend-mode: multiply; filter: blur(1vmin);
}
[data-theme="dark"] .blobs span { mix-blend-mode: screen; }
.blobs span:nth-child(1) { background-color: #fe4104; background-image: linear-gradient(#fe4104, #ff9a4d, #fe4104); transform: rotate(30deg) scale(1.03); }
.blobs span:nth-child(2) { background-color: #ff6a1f; background-image: linear-gradient(#ff6a1f, #ffb066, #ff6a1f); transform: rotate(60deg) scale(0.95); }
.blobs span:nth-child(3) { background-color: #d2491f; background-image: linear-gradient(#d2491f, #ff7a3d, #d2491f); transform: rotate(90deg) scale(0.97); }
.blobs span:nth-child(4) { background-color: #ff8a3d; background-image: linear-gradient(#ff8a3d, #ffd27d, #ff8a3d); transform: rotate(120deg) scale(1.02); }
@keyframes blobspin { to { transform: rotate(360deg); } }
.bg-grain {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(125% 100% at 50% 50%, transparent 56%, rgba(94,70,24,.10) 100%);
}

/* ---------- shared ---------- */
/* emphasized words in headings: oxblood italic — an old-book emphasis */
.grad-text {
  color: var(--seal-deep);
  -webkit-text-fill-color: currentColor;
  background: none;
  font-style: italic;
}
/* raised paper "card" — replaces the old dark glass */
.glass {
  background:
    linear-gradient(180deg, var(--sheen), rgba(255,255,255,0) 42%),
    var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: transparent; }
#scroll-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--seal), var(--gold)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .7em 1.25em; border-radius: var(--radius-sm); position: relative;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s;
  white-space: nowrap;
}
.btn--lg { padding: .88em 1.6em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { color: var(--btn-ink); background: var(--seal); box-shadow: 0 8px 20px -12px rgba(170,48,8,.85), inset 0 1px 0 rgba(255,255,255,.14); }
.btn--primary:hover { transform: translateY(-2px); background: var(--seal-bright); box-shadow: 0 14px 28px -14px rgba(170,48,8,.9); }
.btn--ghost { color: var(--ink); background: var(--raise); border: 1px solid var(--rule); }
.btn--ghost:hover { background: var(--raise-2); transform: translateY(-2px); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.2rem;
  padding: .85rem clamp(1rem, 4vw, 2.4rem);
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(241,234,214,.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding-top: .58rem; padding-bottom: .58rem;
}
.nav__brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.nav__logo { width: 40px; height: 40px; }
.nav__word { display: flex; flex-direction: column; line-height: 1; }
.nav__word-top { font-family: var(--font-disp); font-weight: 600; font-size: 1.4rem; letter-spacing: .2px; color: var(--ink); }
.nav__word-bottom { font-family: var(--font-px); font-weight: 500; font-size: .58rem; letter-spacing: 3px; color: var(--ink-faint); margin-top: 2px; }
.nav__links { display: flex; gap: .3rem; }
.nav__links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  padding: .45rem .75rem; border-radius: 6px; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--seal-deep); background: rgba(254,65,4,.06); }
.nav__actions { display: flex; align-items: center; gap: .55rem; }
.nav__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 6px;
  color: var(--ink-soft); border: 1px solid var(--rule);
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.nav__social:hover { color: var(--seal-deep); background: var(--sheen); border-color: rgba(254,65,4,.4); }

/* Merkle proof inspector (built in JS) — a ledger receipt */
.inspector { margin-top: 14px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--paper-3); overflow: hidden; font-family: var(--font-mono); font-size: 12px; }
.insp__head { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); font-size: 11px; }
.insp__node, .insp__step { display: flex; align-items: center; gap: 8px; padding: 7px 12px; flex-wrap: wrap; }
.insp__step { border-top: 1px dashed var(--rule-2); }
.insp__leaf { border-top: 0; }
.insp__root { border-top: 1px solid var(--rule); background: rgba(254,65,4,.07); }
.insp__lbl { min-width: 46px; color: var(--ink-faint); text-transform: uppercase; font-size: 10px; letter-spacing: .05em; }
.inspector code { color: var(--ink); background: rgba(33,27,16,.06); padding: 2px 6px; border-radius: 4px; }
.insp__root code { color: var(--seal-deep); background: rgba(254,65,4,.12); }
.insp__sib { color: var(--ink-faint) !important; background: rgba(33,27,16,.045) !important; }
.insp__op { color: var(--gold-ink); font-size: 11px; }
.insp__note { color: var(--ink-faint); margin-left: auto; font-size: 10px; }
.insp__link { color: var(--seal-deep); margin-left: auto; text-decoration: none; }
.insp__link:hover { text-decoration: underline; }
.insp__foot { padding: 8px 12px; border-top: 1px solid var(--rule); color: var(--ink-faint); font-size: 10px; }

/* live network panel */
.netpanel { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow); overflow: hidden; }
.netpanel__loading { padding: 22px; color: var(--ink-soft); text-align: center; }
.netpanel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule); }
.netcard { background: var(--paper-2); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.netcard__k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.netcard__v { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
a.netcard__v { color: var(--seal-deep); text-decoration: none; }
a.netcard__v:hover { text-decoration: underline; }
.netroot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 18px; border-top: 1px solid var(--rule); background: rgba(254,65,4,.06); }
.netroot__lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.netroot__hash { color: var(--seal-deep); text-decoration: none; word-break: break-all; font-size: 13px; }
.netroot__hash:hover { text-decoration: underline; }
.netroot__meta { margin-left: auto; font-size: 12px; color: var(--ink-soft); }
.netpanel__foot { padding: 9px 18px; border-top: 1px solid var(--rule); font-size: 11px; color: var(--ink-faint); text-align: right; }

@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(254,65,4,.5);} 70%{box-shadow:0 0 0 7px rgba(254,65,4,0);} 100%{box-shadow:0 0 0 0 rgba(254,65,4,0);} }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.is-open .nav__burger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2){ opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(7rem, 14vh, 11rem) clamp(1rem,4vw,2.4rem) 3rem; max-width: var(--maxw); margin: 0 auto; }
.hero__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-px); font-size: .68rem; font-weight: 500; letter-spacing: .4px;
  padding: .4rem .8rem; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--raise); color: var(--ink-soft);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--seal); }
.badge--warn { color: var(--warn); border-color: rgba(151,101,26,.35); background: rgba(151,101,26,.08); }

.hero__title {
  font-family: var(--font-disp); font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -1px;
  margin-bottom: 1.4rem; color: var(--ink);
}
.hero__ticker {
  display: inline-block; font-family: var(--font-px); font-size: clamp(.72rem,1.6vw,.95rem);
  letter-spacing: 2px; color: var(--seal-deep); vertical-align: middle; margin-bottom: 1rem;
  border: 1px solid var(--rule); border-radius: 6px; padding: .35rem .65rem; background: var(--raise);
}
.hero__lede { font-size: clamp(1.04rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 48ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }
.hero__stats { display: flex; gap: clamp(1rem,3vw,2.4rem); flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.7rem,3vw,2.4rem); line-height: 1; color: var(--seal-deep); }
.stat__label { font-size: .78rem; color: var(--ink-faint); margin-top: .4rem; max-width: 14ch; }

/* hero visual — wax seal card */
.hero__visual { position: relative; order: -1; }
.seal-card { padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.seal-card__head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding-bottom: .9rem; border-bottom: 1px solid var(--rule-2); }
.seal-card__title { font-family: var(--font-px); font-size: .62rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-faint); }
.seal-card__seq { font-family: var(--font-px); font-size: .62rem; color: var(--gold-ink); }
.wax-seal { width: min(78%, 280px); height: auto; display: block; filter: drop-shadow(0 14px 22px rgba(170,48,8,.4)); }
.wax-seal__rim { transform-origin: 50% 50%; animation: sealspin 44s linear infinite; }
@keyframes sealspin { to { transform: rotate(360deg); } }
.seal-card__foot { width: 100%; border-top: 1px solid var(--rule-2); padding-top: .85rem; }
.seal-note { font-size: .82rem; line-height: 1.55; color: var(--ink-soft); }
.seal-note b { color: var(--ink); font-weight: 600; }

/* hero logo mark */
.hero-mark { width: min(64%, 220px); height: auto; display: block; margin: .3rem auto .2rem; filter: drop-shadow(0 14px 26px rgba(254,65,4,.34)); animation: floaty 6s var(--ease) infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-9px) rotate(1.2deg); } }

.led { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.led--green { background: var(--ok); }
.led--red { background: var(--seal); }
.led--amber { background: var(--gold); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: hidden; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); padding: .85rem 0; margin: 2rem 0; background: var(--wash); }
.marquee__track { display: flex; gap: 2.4rem; white-space: nowrap; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-px); font-weight: 500; font-size: .92rem; letter-spacing: 3px; color: var(--ink-soft); }
.marquee__track b { color: var(--seal-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION primitives
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vh, 7rem) clamp(1rem,4vw,2.4rem); }
.section__head { max-width: 760px; margin-bottom: 3rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-px); font-size: .68rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--seal-deep); margin-bottom: 1.1rem;
}
.kicker i { font-style: normal; color: var(--ink-faint); padding: .25rem .45rem; border: 1px solid var(--rule); border-radius: 4px; }
.section__title { font-family: var(--font-disp); font-weight: 600; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.6px; color: var(--ink); }
.section__sub { margin-top: 1.1rem; font-size: clamp(1rem,1.4vw,1.12rem); color: var(--ink-soft); max-width: 60ch; }
.section__note { margin-top: 2rem; font-size: 1.05rem; color: var(--ink-soft); max-width: 70ch; padding-left: 1.2rem; border-left: 2px solid var(--seal); }

.subhead { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.2px; margin: 4rem 0 1.6rem; display: flex; align-items: center; gap: .85rem; color: var(--ink); }
.subhead::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--seal); flex-shrink: 0; }
.subhead-note { color: var(--ink-soft); font-size: 1rem; max-width: 70ch; margin: -.7rem 0 1.7rem; }
.subhead-note strong { color: var(--ink); }
.section__head + .subhead, #demo > .subhead:first-child { margin-top: 1.5rem; }

section[id], #demo { scroll-margin-top: 84px; }

/* ---------- cards grid ---------- */
.cards { display: grid; gap: 1.2rem; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--use { grid-template-columns: repeat(3, 1fr); }

.card { padding: 1.7rem 1.5rem; position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--seal); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(254,65,4,.3); box-shadow: var(--shadow), 0 0 0 1px rgba(254,65,4,.12); }
.card:hover::before { opacity: .8; }
.card h3 { font-family: var(--font-disp); font-size: 1.24rem; font-weight: 600; margin-bottom: .55rem; position: relative; color: var(--ink); }
.card p { color: var(--ink-soft); font-size: .96rem; position: relative; }
.card__index { font-family: var(--font-px); font-size: .64rem; letter-spacing: 1px; text-transform: uppercase; color: var(--seal-deep); display: inline-block; margin-bottom: 1rem; padding: .35rem .55rem; border: 1px solid var(--rule); border-radius: 4px; }

/* icon tiles */
.card__role-icon, .flow__icon, .card__use-ic, .note-bar__icon {
  width: 46px; height: 46px; border-radius: 8px; margin-bottom: 1.1rem;
  background: rgba(254,65,4,.06); border: 1px solid var(--rule);
  position: relative; display: grid; place-items: center;
}
.card__role-icon::after, .card__use-ic::after, .flow__icon::after, .note-bar__icon::after {
  content: ""; width: 22px; height: 22px; background: var(--seal);
  -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain;
}
.flow__icon[data-icon="request"]::after { -webkit-mask-image: var(--ic-doc); mask-image: var(--ic-doc); }
.flow__icon[data-icon="compute"]::after { -webkit-mask-image: var(--ic-cpu); mask-image: var(--ic-cpu); }
.flow__icon[data-icon="prove"]::after   { -webkit-mask-image: var(--ic-shield); mask-image: var(--ic-shield); }
.flow__icon[data-icon="verify"]::after  { -webkit-mask-image: var(--ic-check); mask-image: var(--ic-check); }
.card__role-icon[data-role="requestor"]::after { -webkit-mask-image: var(--ic-doc); mask-image: var(--ic-doc); }
.card__role-icon[data-role="prover"]::after    { -webkit-mask-image: var(--ic-cpu); mask-image: var(--ic-cpu); }
.card__role-icon[data-role="archivist"]::after { -webkit-mask-image: var(--ic-db); mask-image: var(--ic-db); }
.card__role-icon[data-role="staker"]::after    { -webkit-mask-image: var(--ic-shield); mask-image: var(--ic-shield); }
.card__use-ic[data-uc="airdrop"]::after { -webkit-mask-image: var(--ic-drop); mask-image: var(--ic-drop); }
.card__use-ic[data-uc="defi"]::after    { -webkit-mask-image: var(--ic-chart); mask-image: var(--ic-chart); }
.card__use-ic[data-uc="gov"]::after     { -webkit-mask-image: var(--ic-gov); mask-image: var(--ic-gov); }
.card__use-ic[data-uc="credit"]::after  { -webkit-mask-image: var(--ic-coin); mask-image: var(--ic-coin); }
.card__use-ic[data-uc="gaming"]::after  { -webkit-mask-image: var(--ic-game); mask-image: var(--ic-game); }
.card__use-ic[data-uc="more"]::after    { -webkit-mask-image: var(--ic-spark); mask-image: var(--ic-spark); }
.note-bar__icon[data-icon="anchor"]::after { -webkit-mask-image: var(--ic-anchor); mask-image: var(--ic-anchor); }

:root {
  --ic-doc:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h6'/%3E%3C/svg%3E");
  --ic-cpu:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E");
  --ic-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --ic-check:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --ic-db:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3'/%3E%3C/svg%3E");
  --ic-lock:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
  --ic-coin:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M9.5 9.5h4a1.5 1.5 0 0 1 0 3h-3a1.5 1.5 0 0 0 0 3h4'/%3E%3C/svg%3E");
  --ic-spark:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v6M12 16v6M2 12h6M16 12h6M5 5l4 4M15 15l4 4M19 5l-4 4M9 15l-4 4'/%3E%3C/svg%3E");
  --ic-gov:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V10M19 21V10M3 10l9-6 9 6M9 21v-6h6v6'/%3E%3C/svg%3E");
  --ic-drop:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2s6 7 6 11a6 6 0 0 1-12 0c0-4 6-11 6-11z'/%3E%3C/svg%3E");
  --ic-chart:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18M7 14l3-3 3 3 5-6'/%3E%3C/svg%3E");
  --ic-game:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='10' rx='5'/%3E%3Cpath d='M7 12h2M8 11v2M15.5 11.5h.01M18 13.5h.01'/%3E%3C/svg%3E");
  --ic-anchor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Cpath d='M12 8v13M5 12a7 7 0 0 0 14 0M5 12H2M19 12h3'/%3E%3C/svg%3E");
}

.card--problem .card__index { color: var(--gold-ink); border-color: rgba(151,119,47,.4); }
.card--problem:hover { border-color: rgba(151,119,47,.4); }
.card--problem::before { background: var(--gold); }
.card__tag { margin-top: 1.1rem; font-family: var(--font-mono); font-size: .76rem; color: var(--seal-deep); padding-top: .9rem; border-top: 1px solid var(--rule-2); position: relative; }

/* ---------- flow ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: .6rem; }
.flow__step { padding: 1.6rem 1.4rem; position: relative; }
.flow__num { font-family: var(--font-px); font-size: .66rem; color: var(--ink-faint); position: absolute; top: 1.1rem; right: 1.2rem; }
.flow__step h3 { font-family: var(--font-disp); font-size: 1.18rem; margin-bottom: .5rem; }
.flow__step p { color: var(--ink-soft); font-size: .9rem; }
.flow__arrow { align-self: center; width: 36px; height: 2px; background: var(--seal); position: relative; opacity: .55; }
.flow__arrow::after { content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); border-left: 7px solid var(--seal); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.flow__step.is-lit { border-color: rgba(254,65,4,.4); }
.flow__step.is-lit .flow__icon { background: rgba(254,65,4,.12); border-color: rgba(254,65,4,.4); }

/* ============================================================
   DEMO
   ============================================================ */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; overflow: hidden; }
.demo__panel { padding: clamp(1.4rem,2.5vw,2.2rem); }
.demo__panel--form { position: relative; border-right: 1px solid var(--rule-2); display: flex; flex-direction: column; gap: 1.1rem; }
.demo__tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.demo__tab {
  font-family: var(--font-mono); font-size: .8rem; padding: .5rem .8rem; border-radius: 5px;
  color: var(--ink-soft); border: 1px solid var(--rule); background: var(--raise); transition: all .2s;
}
.demo__tab.is-active { color: var(--btn-ink); background: var(--seal); border-color: transparent; font-weight: 600; }
.demo__tab:not(.is-active):hover { color: var(--seal-deep); background: var(--raise-2); }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field__label { font-family: var(--font-px); font-size: .66rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-faint); }
.field__input {
  width: 100%; padding: .7rem .85rem; border-radius: 5px; font-size: .92rem; font-family: var(--font-mono);
  color: var(--ink); background: var(--paper-3); border: 1px solid var(--rule);
  transition: border-color .2s, box-shadow .2s;
}
.field__input:focus { outline: none; border-color: var(--seal-deep); box-shadow: 0 0 0 3px rgba(254,65,4,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.seg { display: flex; flex-direction: column; gap: .4rem; }
.seg__group { display: inline-flex; gap: .3rem; background: var(--paper-dk); padding: .3rem; border-radius: 6px; border: 1px solid var(--rule); }
.seg__btn { flex: 1; font-size: .82rem; font-weight: 600; padding: .5rem; border-radius: 4px; color: var(--ink-soft); transition: all .2s; }
.seg__btn.is-active { color: var(--btn-ink); background: var(--seal); }
.demo__hint { font-family: var(--font-px); font-size: .66rem; color: var(--ink-faint); text-align: center; }

/* terminal — a ledger receipt */
.demo__panel--terminal { display: flex; flex-direction: column; gap: 1rem; background: var(--paper-dk); }
.terminal { border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-3); }
.terminal__bar { display: flex; align-items: center; gap: .45rem; padding: .6rem .9rem; border-bottom: 1px solid var(--rule-2); background: var(--raise); }
.terminal__title { margin-left: .5rem; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-faint); }
.terminal__body { padding: 1rem; font-family: var(--font-mono); font-size: .82rem; min-height: 210px; max-height: 260px; overflow-y: auto; line-height: 1.7; color: var(--ink); }
.t-line { white-space: pre-wrap; word-break: break-word; }
.t-dim { color: var(--ink-faint); }
.t-ok { color: var(--ok); }
.t-key { color: var(--seal-deep); }
.t-warn { color: var(--warn); }
.t-val { color: var(--gold-ink); }
.t-err { color: var(--err); }
.t-line .blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* pipeline stepper */
.pipeline { display: flex; align-items: center; justify-content: space-between; gap: .3rem; }
.pipeline__step { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex: 1; position: relative; }
.pipeline__step::before { content: ""; position: absolute; top: 9px; left: 50%; width: 100%; height: 2px; background: var(--rule); z-index: 0; }
.pipeline__step:last-child::before { display: none; }
.pipeline__step i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rule); background: var(--paper-2); z-index: 1; transition: all .3s; }
.pipeline__step span { font-family: var(--font-px); font-size: .62rem; color: var(--ink-faint); transition: color .3s; }
.pipeline__step.is-active i { border-color: var(--seal-deep); box-shadow: 0 0 0 4px rgba(254,65,4,.14); animation: pulse 1.2s infinite; }
.pipeline__step.is-done i { background: var(--seal); border-color: transparent; animation: none; box-shadow: none; }
.pipeline__step.is-done::before { background: var(--seal); }
.pipeline__step.is-active span, .pipeline__step.is-done span { color: var(--ink); }

/* result */
.result { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; background: rgba(254,65,4,.05); animation: fadeUp .5s var(--ease); }
.result__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .35rem 0; }
.result__k { font-family: var(--font-px); font-size: .66rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-faint); }
.result__v { font-weight: 700; font-size: 1.18rem; text-align: right; color: var(--ink); }
.result__v.grad-text { font-family: var(--font-disp); font-style: normal; color: var(--seal-deep); }
#r-proof { font-size: .82rem; color: var(--seal-deep); font-family: var(--font-mono); }
.result__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .6rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--rule-2); }
.result__grid div { display: flex; flex-direction: column; gap: .2rem; }
.result__grid span { font-family: var(--font-px); font-size: .58rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-faint); }
.result__grid b { font-family: var(--font-mono); font-size: .85rem; color: var(--ink); }

/* ---------- note bar ---------- */
.note-bar { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.6rem; margin-top: 1.6rem; }
.note-bar__icon { flex-shrink: 0; margin-bottom: 0; }
.note-bar p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- proof cards (2×2) ---------- */
.proof-cards { grid-template-columns: repeat(2, 1fr); }
.proof-cards .card--proof { display: flex; flex-direction: column; }
.card--asym .asym__viz { margin-top: auto; padding-top: .4rem; }
.card--proof__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pill { font-family: var(--font-disp); font-weight: 600; font-size: 1.05rem; padding: .35rem .9rem; border-radius: 999px; }
.pill--zk { color: var(--seal-deep); background: rgba(254,65,4,.1); border: 1px solid rgba(254,65,4,.3); }
.pill--opt { color: var(--warn); background: rgba(151,101,26,.1); border: 1px solid rgba(151,101,26,.3); }
.pill--hyb { color: var(--btn-ink); background: var(--seal); }
.pill--asym { color: var(--gold-ink); background: rgba(151,119,47,.1); border: 1px solid rgba(151,119,47,.3); }
.tag-default { font-family: var(--font-px); font-size: .56rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-ink); border: 1px solid rgba(151,119,47,.4); padding: .3rem .45rem; border-radius: 4px; }
.card--proof--feat { border-color: rgba(254,65,4,.35); }
.card--proof__how { color: var(--ink); font-size: .96rem; margin-bottom: 1.2rem; }
.card--proof dl { display: flex; flex-direction: column; gap: .9rem; margin-top: auto; }
.card--proof dt { font-family: var(--font-px); font-size: .62rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-faint); margin-bottom: .2rem; }
.card--proof dd { font-size: .88rem; color: var(--ink-soft); }

/* asymmetry viz */
.asym__viz { display: flex; flex-direction: column; gap: 1rem; }
.asym__bar { position: relative; background: var(--paper-dk); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.asym__fill { display: block; height: 38px; background: var(--gold); width: 0; transition: width 1.4s var(--ease); }
.asym__fill--verify { background: var(--seal); }
.asym__label { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: .8rem; color: var(--ink); background: rgba(246,240,224,.85); padding: 1px 8px; border-radius: 4px; white-space: nowrap; }

/* ---------- split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split--solo { grid-template-columns: 1fr; max-width: 820px; }
.split__copy p { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.02rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; margin: 1.4rem 0; }
.check-list li { position: relative; padding-left: 2rem; color: var(--ink-soft); font-size: .97rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 5px; background: rgba(254,65,4,.08); border: 1px solid var(--rule); }
.check-list li::after { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; background: var(--seal); -webkit-mask-image: var(--ic-check); mask-image: var(--ic-check); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.check-list strong { color: var(--ink); }
.callout { padding: 1rem 1.2rem; border-left: 3px solid var(--seal); background: rgba(254,65,4,.06); border-radius: 0 8px 8px 0; color: var(--ink-soft); font-size: .95rem; }
.callout strong { color: var(--ink); }
.callout--warn { border-left-color: var(--gold-ink); background: rgba(151,119,47,.08); }

/* forge-vs-verify face-off (the section thesis, visualized) */
.faceoff { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; margin: 0 0 3rem; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.faceoff__side { padding: clamp(1.5rem,3vw,2.4rem); display: flex; flex-direction: column; gap: .85rem; }
.faceoff__side--fake { background: linear-gradient(180deg, rgba(33,27,16,.05), transparent 60%); }
.faceoff__side--verify { background: linear-gradient(180deg, rgba(254,65,4,.09), transparent 60%); }
.faceoff__tag { font-family: var(--font-px); font-size: .66rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-faint); }
.faceoff__big { font-family: var(--font-disp); font-weight: 600; font-size: clamp(2.5rem,6vw,3.8rem); line-height: .95; color: var(--ink); letter-spacing: -1px; }
.faceoff__big sup { font-size: .48em; vertical-align: super; }
.faceoff__big small { font-family: var(--font-px); font-size: .2em; letter-spacing: 1.5px; color: var(--ink-faint); text-transform: uppercase; }
.faceoff__side--verify .faceoff__big { color: var(--seal-deep); }
.faceoff__side--verify .faceoff__big #verify-hashes { font-variant-numeric: tabular-nums; }
.faceoff__desc { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.faceoff__verdict { align-self: flex-start; font-family: var(--font-mono); font-size: .8rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--rule); }
.faceoff__verdict--no { color: var(--ink-faint); background: var(--raise); }
.faceoff__verdict--yes { color: var(--btn-ink); background: var(--seal); border-color: transparent; }
.faceoff__vs { display: grid; place-items: center; position: relative; }
.faceoff__vs::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--rule); }
.faceoff__vs span { font-family: var(--font-disp); font-style: italic; font-size: 1.1rem; color: var(--ink-faint); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper-2); position: relative; z-index: 1; }
@media (max-width: 760px) {
  .faceoff { grid-template-columns: 1fr; }
  .faceoff__vs { padding: .2rem 0; }
  .faceoff__vs::before { top: 50%; left: 0; right: 0; bottom: auto; width: auto; height: 1px; }
}

/* section viz titles (auction / landscape) */
.auction__title, .landscape__title { font-family: var(--font-px); font-size: .66rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.4rem; }

/* auction */
.auction { padding: 1.6rem; }
#auction-canvas { width: 100%; height: auto; }
.auction__legend { display: flex; gap: 1.4rem; justify-content: center; margin-top: 1rem; font-size: .8rem; color: var(--ink-soft); }
.auction__legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: .4rem; vertical-align: middle; }
.lg--price { background: var(--gold); }
.lg--accept { width: 10px !important; height: 10px !important; border-radius: 50% !important; background: var(--seal); }

/* use cases */
.card--use { padding: 1.7rem 1.5rem; }

/* landscape */
.landscape { padding: 1.8rem; }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.chip { font-family: var(--font-mono); font-size: .85rem; padding: .5rem .9rem; border-radius: 5px; color: var(--ink-soft); border: 1px solid var(--rule); background: var(--raise); }
.landscape__divider { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0; color: var(--ink-faint); font-family: var(--font-px); font-size: .64rem; letter-spacing: 1px; }
.landscape__divider::before, .landscape__divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.landscape__brand { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 8px; background: rgba(254,65,4,.06); border: 1px solid rgba(254,65,4,.3); }
.landscape__brand img { border-radius: 6px; }
.landscape__brand strong { display: block; font-family: var(--font-disp); font-size: 1.2rem; color: var(--ink); }
.landscape__brand span { font-size: .85rem; color: var(--ink-soft); }

/* risks */
.risks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.risk { padding: 1.6rem 1.5rem; transition: transform .3s var(--ease), border-color .3s; }
.risk:hover { transform: translateY(-4px); border-color: rgba(151,119,47,.4); }
.risk h3 { font-family: var(--font-disp); font-size: 1.14rem; display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; color: var(--ink); }
.risk__n { display: inline-grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 6px; background: rgba(151,119,47,.14); color: var(--gold-ink); font-weight: 700; border: 1px solid rgba(151,119,47,.35); }
.risk p { color: var(--ink-soft); font-size: .94rem; }

/* cta band */
.cta-band { max-width: var(--maxw); margin: 2rem auto 5rem; padding: 0 clamp(1rem,4vw,2.4rem); }
.cta-band__inner { padding: clamp(2.5rem,6vw,4.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band__inner h2 { font-family: var(--font-disp); font-weight: 600; font-size: clamp(2rem,5vw,3.3rem); letter-spacing: -.6px; margin-bottom: 1rem; color: var(--ink); }
.cta-band__inner p { color: var(--ink-soft); max-width: 55ch; margin: 0 auto 2rem; font-size: 1.08rem; }
.cta-band__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* token section */
.token { padding: clamp(1.4rem,3vw,2.2rem); max-width: 760px; }
.token__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--rule-2); }
.token__row:last-of-type { border-bottom: 0; }
.token__k { font-family: var(--font-px); font-size: .66rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-faint); }
.token__v { font-size: 1.02rem; color: var(--ink); font-weight: 600; }
.token__ca { font-family: var(--font-mono); font-size: .92rem; color: var(--seal-deep); background: var(--paper-3); border: 1px solid var(--rule); border-radius: 6px; padding: .45rem .8rem; max-width: 72%; overflow-wrap: anywhere; text-align: right; transition: background .2s, border-color .2s; }
.token__ca:not(.is-tba) { cursor: pointer; }
.token__ca:not(.is-tba):hover { background: var(--raise-2); border-color: rgba(254,65,4,.4); }
.token__ca.is-tba { font-family: var(--font-px); letter-spacing: 2px; background: rgba(254,65,4,.08); border-color: rgba(254,65,4,.3); cursor: default; }
.token__note { margin-top: 1rem; font-size: .88rem; color: var(--ink-faint); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--rule-2); background: var(--wash); padding: 4rem clamp(1rem,4vw,2.4rem) 2rem; }
.footer__top { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--rule-2); }
.footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer__brand img { border-radius: 6px; }
.footer__brand strong { font-family: var(--font-disp); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.footer__brand strong span { font-family: var(--font-px); font-weight: 500; letter-spacing: 2px; font-size: .62rem; display: block; color: var(--ink-faint); margin-top: 2px; }
.footer__brand p { color: var(--ink-faint); font-size: .9rem; margin-top: .5rem; max-width: 30ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.footer__col h3 { font-family: var(--font-px); font-size: .64rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.2rem; }
.footer__col a { display: block; color: var(--ink-soft); font-size: .92rem; padding: .35rem 0; transition: color .2s, transform .2s; }
.footer__col a:hover { color: var(--seal-deep); transform: translateX(3px); }
.footer__bottom { max-width: var(--maxw); margin: 2rem auto 0; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: space-between; }
.footer__bottom p { font-size: .82rem; color: var(--ink-faint); }
.footer__net { font-family: var(--font-mono); }

/* toast */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(140%);
  background: var(--ink); border: 1px solid var(--seal-deep); color: var(--paper-2);
  padding: .8rem 1.3rem; border-radius: 8px; font-size: .9rem; z-index: 300;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .4s var(--ease), opacity .3s var(--ease), visibility .3s;
}
.toast.is-show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }

/* ============================================================
   reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2,1fr); }
  .cards--use { grid-template-columns: repeat(2,1fr); }
  .risks { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(241,234,214,.98); backdrop-filter: blur(10px); padding: 1rem; gap: .2rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open .nav__links a { padding: .8rem 1rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin: 0 auto; order: -1; }
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { display: none; }
  .demo { grid-template-columns: 1fr; }
  .demo__panel--form { border-right: none; border-bottom: 1px solid var(--rule-2); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .cards--use, .proof-cards { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .nav__actions .btn { display: none; }
  .cards--4, .risks { grid-template-columns: 1fr; }
  .field-row, .result__grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 1.2rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  .reveal { opacity: 1; transform: none; }
  .blobs__rot { animation: none; }
  .wax-seal__rim { animation: none; }
  .hero-mark { animation: none; }
}

/* ============================================================
   NAV — Token chip + theme toggle
   ============================================================ */
.nav__theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 6px;
  color: var(--ink-soft); border: 1px solid var(--rule); background: var(--raise);
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.nav__theme:hover { color: var(--seal); border-color: rgba(254,65,4,.4); }
.nav__theme .ic-sun { display: none; }
.nav__theme .ic-moon { display: block; }
[data-theme="dark"] .nav__theme .ic-sun { display: block; }
[data-theme="dark"] .nav__theme .ic-moon { display: none; }

/* ============================================================
   DARK THEME — same archival system, logo-vermilion accent
   ============================================================ */
[data-theme="dark"] {
  --paper:    #15100a;
  --paper-2:  #221a10;
  --paper-3:  #2c2316;
  --paper-dk: #100b06;

  --ink:       #f1e7d3;
  --ink-soft:  #d6cab0;
  --ink-faint: #a99a7d;

  --seal-deep: #ff7a4d;   /* brighter vermilion — reads on dark */
  --gold-ink:  #d9b25f;

  --rule:   rgba(240,228,200,.16);
  --rule-2: rgba(240,228,200,.09);
  --rule-3: rgba(240,228,200,.05);

  --raise:   rgba(255,240,214,.06);
  --raise-2: rgba(255,240,214,.12);
  --wash:    rgba(255,240,214,.035);
  --sheen:   rgba(255,240,214,.05);

  --page-grad:
    radial-gradient(120% 95% at 50% 50%, #0b0a0e 0%, #060608 60%, #030304 100%);

  --shadow: 0 22px 48px -26px rgba(0,0,0,.66), 0 2px 6px -3px rgba(0,0,0,.5);
  --shadow-soft: 0 10px 30px -22px rgba(0,0,0,.6);
}
[data-theme="dark"] .nav.is-scrolled { background: rgba(20,14,7,.84); }
[data-theme="dark"] .nav.is-open .nav__links { background: rgba(16,11,5,.98); }
[data-theme="dark"] .bg-grain { mix-blend-mode: overlay; opacity: .05; }
[data-theme="dark"] .bg-vignette { background: radial-gradient(125% 110% at 50% 45%, rgba(4,4,6,.34) 0%, rgba(4,4,6,.66) 100%); }
[data-theme="dark"] .asym__label { background: rgba(20,14,7,.82); }

/* ============================================================
   FRAMELESS BLOCKS — airy typographic blocks over the blobs.
   Content cards lose the paper surface; functional panels
   (demo, hero seal, token, live-panel) keep theirs.
   ============================================================ */
.card, .risk, .flow__step {
  background: none;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--rule);
  padding: 1.5rem 1.1rem 0 0;
}
.card::before { display: none; }
.card:hover, .risk:hover, .flow__step:hover {
  transform: none;
  box-shadow: none;
  border-top-color: var(--seal);
}
.card:hover h3, .card:hover h4 { color: var(--seal-deep); }
.flow__step.is-lit { border-top-color: var(--seal); }
.flow__step.is-lit .flow__icon { background: rgba(254,65,4,.12); border-color: rgba(254,65,4,.4); }
/* more air between rows */
.cards { gap: 2.2rem 2.4rem; }
.risks { gap: 2.2rem 2.4rem; }
/* the proof "feature" + asymmetry cards: keep them flush too */
.card--proof--feat { border-top-color: var(--seal); }
.card__index { background: none; border: 0; padding: 0 0 .2rem; }
/* problem-card index keeps its accent color but no box */
.card--problem .card__index { border: 0; }
