/* ============================================================
   DIRIGEX — Verifiable AI Infrastructure
   Design system: institutional / certificate-of-authenticity
   ============================================================ */

:root {
  /* surfaces */
  --void:      #090c12;
  --void-2:    #0b0e18;
  --surface:   #0f1220;
  --panel:     #11152a;
  --panel-2:   #141a32;
  --border:    #1d2336;
  --border-2:  #283250;
  --divider:   rgba(255,255,255,0.07);

  /* amber (brand primary) */
  --amber:        #c2912a;
  --amber-bright: #e3b94f;
  --amber-deep:   #9a6f1c;
  --amber-glow:   rgba(194,145,42,0.09);
  --amber-edge:   rgba(194,145,42,0.30);

  /* institutional blue (regulatory) */
  --blue:      #2f6bdb;
  --blue-soft: #6f9bf0;
  --blue-glow: rgba(47,107,219,0.09);
  --blue-edge: rgba(47,107,219,0.24);

  /* deny red */
  --red:      #c14d31;
  --red-soft: #e0795c;
  --red-glow: rgba(193,77,49,0.09);
  --red-edge: rgba(193,77,49,0.30);

  /* live / verified green (sparingly) */
  --live:      #4ea674;
  --live-soft: #74c79a;
  --live-glow: rgba(78,166,116,0.10);

  /* type */
  --text:  #eaecf3;
  --soft:  #c4cadb;
  --muted: #8a93b3;
  --faint: #69728f;

  --ff-display: 'Sora', sans-serif;
  --ff-sans: 'IBM Plex Sans', sans-serif;
  --ff-serif: 'IBM Plex Serif', serif;
  --ff-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  background: var(--void);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--amber); color: #0a0a0a; }

/* security-paper guilloché texture util */
.guilloche {
  background-image:
    repeating-linear-gradient(45deg, rgba(194,145,42,0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(194,145,42,0.03) 0 1px, transparent 1px 9px);
}

/* fine infrastructure grid util */
.gridlines {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ============================================================
   NAV
   ============================================================ */
.top-nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px) saturate(1.1);
  background: rgba(9,12,18,0.78);
  border-bottom: 1px solid var(--border);
}
.nav-shell {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--ff-display); font-weight: 700; font-size: 1.12rem;
  letter-spacing: 0.01em; color: var(--text); text-decoration: none;
}
.brand-mark {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--amber-edge);
  background: linear-gradient(160deg, var(--surface), #0a0d18);
  color: var(--amber-bright); font-family: var(--ff-serif); font-weight: 700;
  font-size: 0.95rem; border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4), 0 0 14px rgba(194,145,42,0.12);
}
.nav-brand .brand-x { color: var(--amber-bright); }
.brand-word { white-space: nowrap; }
.nav-links { display: flex; gap: 1.6rem; margin-left: 1.5rem; }
.nav-links a {
  position: relative; color: var(--muted); text-decoration: none;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.3rem 0; transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--amber); transition: right 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.nav-signin {
  color: var(--soft); text-decoration: none; font-size: 0.84rem; font-weight: 500;
  padding: 0.5rem 0.85rem; border-radius: 6px; transition: color 0.2s, background 0.2s;
}
.nav-signin:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--ff-sans); font-weight: 600; font-size: 0.84rem;
  text-decoration: none; cursor: pointer; border: none;
  padding: 0.55rem 1rem; border-radius: 6px; letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  color: #120c02;
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 6px 18px rgba(194,145,42,0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 10px 26px rgba(194,145,42,0.34); }
.btn-ghost {
  color: var(--soft); background: transparent;
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { color: var(--text); border-color: var(--amber-edge); background: var(--amber-glow); }
.btn-lg { padding: 0.8rem 1.5rem; font-size: 0.95rem; border-radius: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 72% -8%, rgba(194,145,42,0.10), transparent 60%),
    radial-gradient(900px 600px at 8% 110%, rgba(47,107,219,0.07), transparent 60%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0; opacity: 0.6;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
}
.hero-shell {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 2rem 5rem;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 4.5rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber-bright); margin-bottom: 1.6rem;
}
.eyebrow::before {
  content: ''; width: 16px; height: 1px; background: var(--amber); display: inline-block;
}
.eyebrow .star { color: var(--amber-bright); font-size: 0.8rem; }
.hero h1 {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(2.1rem, 3.9vw, 3.35rem); line-height: 1.07;
  letter-spacing: -0.025em; color: var(--text); margin: 0 0 1.6rem;
  text-wrap: balance;
}
.hero h1 .em { color: var(--amber-bright); }
.hero-sub {
  font-size: 1.12rem; line-height: 1.7; color: var(--muted);
  margin: 0 0 2rem; max-width: 46ch;
}
.hero-sub strong { color: var(--soft); font-weight: 500; }
.hero-aphorism {
  font-family: var(--ff-serif); font-size: 1.16rem; line-height: 1.5;
  color: var(--text); border-left: 2px solid var(--amber);
  padding: 0.3rem 0 0.3rem 1.3rem; margin: 0 0 2.3rem; max-width: 44ch;
}
.hero-aphorism .muted2 { color: var(--muted); }
.hero-cta { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.hero-cta-note {
  font-size: 0.8rem; color: var(--faint); display: flex; align-items: center; gap: 0.5rem;
}
.hero-cta-note .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(78,166,116,0.5); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(78,166,116,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(78,166,116,0); }
  100% { box-shadow: 0 0 0 0 rgba(78,166,116,0); }
}

/* ---------- the Governed Decision Record artifact ---------- */
.record-wrap { position: relative; }
.record-wrap::before {
  /* embossed shadow plate behind */
  content: ''; position: absolute; inset: -14px -14px -22px -2px; z-index: 0;
  background: linear-gradient(150deg, rgba(194,145,42,0.16), rgba(47,107,219,0.06));
  filter: blur(26px); opacity: 0.6; border-radius: 14px;
}
.record {
  position: relative; z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 30%),
    var(--surface);
  border: 1px solid var(--amber-edge);
  border-radius: 6px; overflow: hidden;
  font-family: var(--ff-serif);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 30px 60px -20px rgba(0,0,0,0.7),
    0 0 50px -28px rgba(194,145,42,0.5);
}
.record-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  color: #150d01; font-family: var(--ff-sans);
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 0.42rem 1rem; white-space: nowrap; gap: 0.75rem;
}
.record-banner > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.record-banner .live-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; letter-spacing: 0.12em;
}
.record-banner .live-chip .ld {
  width: 6px; height: 6px; border-radius: 50%; background: #150d01; animation: pulse2 1.8s infinite;
}
@keyframes pulse2 { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }
.record-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.05rem 1.25rem 0.9rem; border-bottom: 1px solid var(--divider);
}
.record-title {
  font-family: var(--ff-sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--amber-bright);
}
.record-id { font-family: var(--ff-mono); font-size: 0.74rem; color: var(--muted); }
.record-body { padding: 1.1rem 1.25rem 1.2rem; }
.rrow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-bottom: 0.5rem;
}
.rlabel {
  font-family: var(--ff-sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint);
  white-space: nowrap; min-width: 7rem;
}
.rval { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--soft); text-align: right; overflow-wrap: anywhere; }
.rval.resolving { color: var(--faint); }
.rrow.rsig { flex-direction: column; align-items: stretch; gap: 0.3rem; margin-bottom: 0.75rem; }
.rrow.rsig .rlabel { min-width: 0; }
.rrow.rsig .rval { text-align: left; word-break: break-all; line-height: 1.55; font-size: 0.74rem; color: var(--amber); }
.rdiv { border: none; border-top: 1px solid var(--divider); margin: 0.85rem 0; }
.rcols {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--divider); margin: 0.4rem 0 1rem; overflow: hidden;
}
.rcol { padding: 0.8rem 0.9rem; }
.rcol + .rcol { border-left: 1px solid var(--divider); }
.rcol-label {
  font-family: var(--ff-sans); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem;
}
.rcol .rrow { margin-bottom: 0.35rem; }
.rcol .rlabel { min-width: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--ff-sans); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; padding: 0.22rem 0.5rem;
  border-radius: 3px; margin-top: 0.45rem; white-space: nowrap;
}
.tag-allow { background: var(--live-glow); color: var(--live-soft); border: 1px solid rgba(78,166,116,0.3); }
.tag-deny { background: var(--red-glow); color: var(--red-soft); border: 1px solid var(--red-edge); }
.reg-bar {
  background: var(--blue-glow); border: 1px solid var(--blue-edge);
  padding: 0.65rem 0.9rem; margin-bottom: 1rem; border-radius: 4px;
}
.reg-label {
  font-family: var(--ff-sans); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-soft); margin-bottom: 0.25rem;
}
.reg-text { font-family: var(--ff-sans); font-size: 0.76rem; color: #8794b8; line-height: 1.5; }
.integrity {
  position: relative;
  background: var(--amber-glow); border: 1px solid var(--amber-edge);
  padding: 0.85rem 0.95rem; border-radius: 4px;
}
.integrity-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.integrity-status {
  font-family: var(--ff-sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--amber-bright);
}
.integrity-detail { font-size: 0.78rem; font-style: italic; color: #98a0bd; line-height: 1.55; }
.record-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--divider); padding: 0.7rem 1.25rem;
}
.foot-motif {
  font-family: var(--ff-serif); font-size: 0.74rem; font-variant: small-caps;
  letter-spacing: 0.08em; color: var(--amber-bright);
}
.foot-id { font-family: var(--ff-mono); font-size: 0.66rem; color: var(--faint); }

/* the wax seal */
.seal {
  position: relative; width: 34px; height: 34px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, var(--amber-bright), var(--amber-deep) 70%);
  color: #1a1003; font-size: 1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.18), inset 0 -4px 8px rgba(0,0,0,0.35);
  transform: scale(0.4) rotate(-18deg); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.4s;
}
.seal.stamped { transform: scale(1) rotate(0); opacity: 1; }
.seal::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px dashed rgba(194,145,42,0.4);
}

/* merkle mini-viz inside integrity */
.merkle { display: flex; align-items: flex-end; gap: 3px; height: 18px; margin-top: 0.5rem; }
.merkle i {
  flex: 1; background: linear-gradient(180deg, var(--amber-bright), transparent);
  border-radius: 1px 1px 0 0; opacity: 0.25; transition: opacity 0.4s, transform 0.4s;
  transform-origin: bottom; transform: scaleY(0.3);
}
.merkle.anchored i { opacity: 0.85; transform: scaleY(1); }

/* ============================================================
   PROOF PRIMITIVES STRIP
   ============================================================ */
.strip { border-bottom: 1px solid var(--border); background: var(--void-2); }
.strip-shell {
  max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 2rem;
  display: grid; grid-template-columns: auto repeat(3, 1fr) auto; gap: 1.5rem; align-items: center;
}
.strip-lead {
  font-family: var(--ff-sans); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); max-width: 9rem; line-height: 1.5;
}
.primitive { display: flex; flex-direction: column; gap: 0.2rem; }
.primitive .pname {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--ff-display); font-weight: 600; font-size: 0.96rem; color: var(--text);
}
.primitive .pname .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.primitive .pdesc { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.strip-anchor {
  font-family: var(--ff-mono); font-size: 0.7rem; color: var(--amber); text-align: right;
  display: flex; flex-direction: column; gap: 0.15rem; line-height: 1.4;
}
.strip-anchor span:first-child { color: var(--faint); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--ff-sans); font-weight: 700; }

/* ============================================================
   SECTIONS (general)
   ============================================================ */
.section { position: relative; padding: 6rem 0; }
.section-alt { background: var(--void-2); border-block: 1px solid var(--border); }
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }
.shell-narrow { max-width: 920px; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--ff-sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber-bright); margin: 0 0 1.1rem;
}
.kicker::before { content: ''; width: 18px; height: 1px; background: var(--amber); }
.section h2 {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.3vw, 2.6rem); line-height: 1.14; letter-spacing: -0.02em;
  margin: 0 0 1.3rem; text-wrap: balance; color: var(--text);
}
.section h2 .em { color: var(--amber-bright); }
.lede { font-size: 1.1rem; line-height: 1.7; color: var(--muted); max-width: 60ch; }
.lede strong { color: var(--soft); font-weight: 500; }
.section p { color: var(--muted); line-height: 1.75; }
.section p strong { color: var(--text); font-weight: 600; }

/* problem editorial */
.prose { max-width: 62ch; }
.prose p { font-size: 1.04rem; margin: 0 0 1.25rem; }
.prose .lead-q {
  font-family: var(--ff-serif); font-size: 1.05rem; font-style: italic; color: var(--soft);
}
.aphorism {
  font-family: var(--ff-serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.4;
  color: var(--text); border-left: 2px solid var(--amber); padding: 0.6rem 0 0.6rem 1.6rem;
  margin: 2.4rem 0; max-width: 30ch; text-wrap: balance;
}
.era-line {
  margin-top: 2.6rem; font-size: 1.06rem; color: var(--soft); max-width: 56ch;
}
.era-line strong { color: var(--amber-bright); font-weight: 600; }

/* ledger (manage vs prove) */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 2.2rem;
  border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; }
.ledger-col { padding: 1.6rem 1.7rem; }
.ledger-col.manage { background: var(--void); }
.ledger-col.prove { background: linear-gradient(180deg, var(--amber-glow), transparent), var(--surface); border-left: 1px solid var(--border-2); }
.ledger-head {
  font-family: var(--ff-sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1.3rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--divider);
}
.ledger-col.manage .ledger-head { color: var(--faint); }
.ledger-col.prove .ledger-head { color: var(--amber-bright); }
.ledger-item { padding: 0.85rem 0; border-bottom: 1px solid var(--divider); }
.ledger-item:last-child { border-bottom: none; }
.ledger-col.manage .ledger-item { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.ledger-col.prove .ledger-item { color: var(--soft); font-size: 0.92rem; line-height: 1.6; }
.ledger-col.prove .ledger-item strong { color: var(--text); }
.ledger-tax {
  margin-top: 2rem; font-family: var(--ff-serif); font-size: 1.18rem; color: var(--text);
  text-align: center; text-wrap: balance;
}
.ledger-tax .em { color: var(--amber-bright); }

/* six verbs lifecycle */
.verbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.4rem;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.verb-card {
  position: relative; background: var(--surface); padding: 1.7rem 1.6rem 1.8rem;
  transition: background 0.3s var(--ease);
}
.verb-card:hover { background: var(--panel); }
.verb-num {
  font-family: var(--ff-mono); font-size: 0.72rem; color: var(--amber); letter-spacing: 0.1em;
}
.verb-card h3 {
  font-family: var(--ff-display); font-weight: 700; font-size: 1.3rem; margin: 0.5rem 0 0.7rem; color: var(--text);
}
.verb-card h3 .dot { color: var(--amber-bright); }
.verb-card p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.verb-card.build { background: linear-gradient(180deg, var(--amber-glow), transparent), var(--surface); }
.verb-card .verb-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.9rem; }
.chip {
  font-family: var(--ff-mono); font-size: 0.64rem; color: var(--faint);
  border: 1px solid var(--border-2); padding: 0.18rem 0.45rem; border-radius: 3px; letter-spacing: 0.02em;
}

/* proof layer cards */
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 2.4rem; }
.proof-card {
  border: 1px solid var(--border-2); background: var(--surface); border-radius: 8px;
  padding: 1.5rem 1.6rem; position: relative; overflow: hidden;
}
.proof-card::before {
  content: ''; position: absolute; left: 0; top: 1.6rem; bottom: 1.6rem; width: 2px;
  background: linear-gradient(180deg, var(--amber), transparent);
}
.proof-card h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.1rem; margin: 0 0 0.7rem; color: var(--text); }
.proof-card p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.proof-card p em { color: var(--soft); font-style: italic; }
.proof-card.wide { grid-column: 1 / -1; }
.proof-card.ledger-both { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; align-items: center; }
@media (max-width: 760px) { .proof-card.ledger-both { grid-template-columns: 1fr; } }

/* mini deny record */
.mini-record {
  background: var(--void); border: 1px solid var(--red-edge); border-radius: 5px; overflow: hidden;
  font-family: var(--ff-serif);
}
.mini-banner {
  background: linear-gradient(90deg, #7c2f1c, var(--red)); color: #1a0a05;
  font-family: var(--ff-sans); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; text-align: center; padding: 0.35rem;
}
.mini-body { padding: 0.9rem 1rem; }
.mini-foot { border-top: 1px solid var(--divider); padding: 0.6rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.mini-foot .foot-motif { color: var(--red-soft); font-size: 0.68rem; }

.proof-line {
  margin-top: 2.4rem; border: 1px solid var(--amber-edge); background: var(--amber-glow);
  border-radius: 8px; padding: 1.4rem 1.7rem; font-family: var(--ff-serif);
  color: var(--text); line-height: 1.75; font-size: 1.02rem;
}
.proof-line strong { color: var(--amber-bright); font-weight: 600; }

/* outcomes */
.outcomes { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.outcomes li {
  border: 1px solid var(--border-2); background: var(--surface); border-radius: 8px;
  padding: 1.3rem 1.5rem; color: var(--muted); line-height: 1.65; font-size: 0.92rem;
  display: flex; gap: 0.9rem;
}
.outcomes li .onum {
  font-family: var(--ff-mono); font-size: 0.72rem; color: var(--amber); flex: none;
  border: 1px solid var(--amber-edge); width: 26px; height: 26px; border-radius: 5px;
  display: grid; place-items: center;
}
.outcomes li strong { color: var(--text); display: block; margin-bottom: 0.3rem; font-size: 0.98rem; font-family: var(--ff-display); font-weight: 600; }
.outcomes-tax { margin-top: 1.8rem; text-align: center; font-family: var(--ff-serif); font-size: 1.2rem; color: var(--amber-bright); }

/* personas */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.4rem; }
.persona {
  border: 1px solid var(--border-2); background: var(--surface); border-radius: 8px;
  padding: 1.6rem; display: flex; flex-direction: column;
}
.persona-role {
  font-family: var(--ff-sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber-bright); margin-bottom: 0.5rem;
}
.persona h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.18rem; margin: 0 0 0.9rem; color: var(--text); line-height: 1.3; }
.persona p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.persona p strong { color: var(--soft); }

/* closing */
.closing { position: relative; text-align: center; padding: 7rem 0 7.5rem; overflow: hidden; }
.closing .shell { position: relative; z-index: 1; }
.closing-seal {
  width: 64px; height: 64px; margin: 0 auto 2rem; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, var(--amber-bright), var(--amber-deep) 72%);
  color: #1a1003; font-size: 1.8rem; display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(0,0,0,0.5), inset 0 0 0 3px rgba(255,255,255,0.16), inset 0 -6px 12px rgba(0,0,0,0.35);
  position: relative;
}
.closing-seal::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(194,145,42,0.4); }
.closing h2 {
  font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1.4rem; text-wrap: balance;
}
.closing h2 .em { color: var(--amber-bright); }
.closing p { font-size: 1.12rem; color: var(--muted); max-width: 50ch; margin: 0 auto 1rem; line-height: 1.7; }
.closing-line {
  font-family: var(--ff-serif); font-size: 1.3rem; font-variant: small-caps; letter-spacing: 0.08em;
  color: var(--amber-bright); margin-top: 2rem;
}
.closing-cta { margin-top: 2.6rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--void-2); padding: 3rem 0 2.5rem; }
.footer-shell { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-brand { display: flex; flex-direction: column; gap: 0.7rem; max-width: 28ch; }
.footer-brand .nav-brand { font-size: 1.05rem; }
.footer-tag { font-family: var(--ff-serif); font-size: 0.9rem; color: var(--muted); font-style: italic; }
.footer-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--ff-sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 0.9rem; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.86rem; margin-bottom: 0.55rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; }
.footer-motif { font-family: var(--ff-serif); font-variant: small-caps; letter-spacing: 0.1em; color: var(--amber-bright); font-size: 0.86rem; }
.footer-note { color: var(--faint); font-size: 0.78rem; }

/* ============================================================
   SUBPAGES
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border); padding: 4.5rem 0 3.2rem;
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-shell { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }
.page-hero h1 {
  font-family: var(--ff-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08; letter-spacing: -0.025em; margin: 0.4rem 0 1rem; text-wrap: balance; max-width: 18ch;
}
.page-hero h1 .em { color: var(--amber-bright); }
.page-hero h1 em { font-family: var(--ff-serif); font-style: italic; font-weight: 600; color: var(--amber-bright); }
.page-lede {
  font-family: var(--ff-serif); font-size: 1.18rem; color: var(--muted); margin: 0; max-width: 56ch; line-height: 1.6;
}
.page-body { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 2rem 5rem; }

/* numbered stack (platform) */
.stack { display: grid; gap: 0; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; }
.stack-row {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 0;
  border-bottom: 1px solid var(--border); background: var(--surface);
  transition: background 0.3s var(--ease);
}
.stack-row:last-child { border-bottom: none; }
.stack-row:hover { background: var(--panel); }
.stack-num {
  font-family: var(--ff-mono); font-size: 0.82rem; color: var(--amber);
  padding: 1.7rem 0 0 1.6rem; letter-spacing: 0.08em;
}
.stack-main { padding: 1.6rem 1.8rem; }
.stack-main h3 { font-family: var(--ff-display); font-weight: 700; font-size: 1.4rem; margin: 0 0 0.6rem; color: var(--text); }
.stack-main h3 .dot { color: var(--amber-bright); }
.stack-main p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 0.98rem; max-width: 70ch; }
.stack-main p strong { color: var(--soft); font-weight: 600; }
.stack-row.accent { background: linear-gradient(180deg, var(--amber-glow), transparent), var(--surface); }

/* feature grid (security) */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.feat {
  border: 1px solid var(--border-2); background: var(--surface); border-radius: 10px;
  padding: 1.6rem 1.7rem; position: relative;
}
.feat-icon {
  width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center;
  border: 1px solid var(--amber-edge); background: var(--amber-glow); color: var(--amber-bright);
  font-size: 0.95rem; margin-bottom: 1rem;
}
.feat h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.12rem; margin: 0 0 0.6rem; color: var(--text); }
.feat p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.92rem; }
.feat p strong { color: var(--soft); }

/* editorial (about) */
.editorial { max-width: 64ch; }
.editorial p { font-size: 1.08rem; line-height: 1.8; color: var(--soft); margin: 0 0 1.5rem; }
.editorial p strong { color: var(--text); font-weight: 600; }
.creed { display: grid; gap: 0; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; margin: 2.5rem 0; }
.creed-item { padding: 1.4rem 1.7rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.creed-item:last-child { border-bottom: none; }
.creed-item h4 { font-family: var(--ff-serif); font-style: italic; font-size: 1.15rem; margin: 0 0 0.4rem; color: var(--amber-bright); font-weight: 600; }
.creed-item p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* faq accordion */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--border); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0.2rem; font-family: var(--ff-display); font-weight: 600; font-size: 1.08rem;
  color: var(--text); transition: color 0.2s;
}
.faq-q:hover { color: var(--amber-bright); }
.faq-q em { font-family: var(--ff-serif); font-style: italic; color: inherit; }
.faq-toggle { flex: none; width: 22px; height: 22px; position: relative; transition: transform 0.3s var(--ease); }
.faq-toggle::before, .faq-toggle::after {
  content: ''; position: absolute; background: var(--amber); transition: opacity 0.3s;
}
.faq-toggle::before { left: 50%; top: 4px; bottom: 4px; width: 1.5px; transform: translateX(-50%); }
.faq-toggle::after { top: 50%; left: 4px; right: 4px; height: 1.5px; transform: translateY(-50%); }
.faq-item.open .faq-toggle { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 0.2rem 1.5rem; color: var(--muted); line-height: 1.75; font-size: 0.98rem; max-width: 70ch; }
.faq-a-inner strong { color: var(--soft); }
.faq-a-inner em { font-style: italic; color: var(--soft); }

/* page cta band */
.cta-band {
  border-top: 1px solid var(--border); background: var(--void-2);
  padding: 4rem 0; text-align: center;
}
.cta-band h2 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 1.4rem; letter-spacing: -0.02em; }
.cta-band h2 .em { color: var(--amber-bright); }
.cta-band .hero-cta { justify-content: center; }
.cta-band .closing-line { margin-top: 1.6rem; }

@media (max-width: 760px) {
  .feat-grid { grid-template-columns: 1fr; }
  .stack-row { grid-template-columns: 1fr; }
  .stack-num { padding: 1.4rem 0 0 1.6rem; }
  .stack-main { padding: 0.6rem 1.6rem 1.6rem; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .seal { opacity: 1; transform: none; }
  .merkle i { opacity: 0.85; transform: scaleY(1); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-shell { grid-template-columns: 1fr; gap: 3rem; }
  .hero-sub, .hero-aphorism { max-width: none; }
  .strip-shell { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .strip-lead { grid-column: 1 / -1; }
  .strip-anchor { grid-column: 1 / -1; text-align: left; }
  .verbs { grid-template-columns: repeat(2, 1fr); }
  .personas { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .ledger-col.prove { border-left: none; border-top: 1px solid var(--border-2); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 680px) {
  .section { padding: 4rem 0; }
  .hero-shell { padding: 3.5rem 1.3rem 3.5rem; }
  .shell { padding: 0 1.3rem; }
  .proof-grid, .outcomes { grid-template-columns: 1fr; }
  .verbs { grid-template-columns: 1fr; }
  .strip-shell { grid-template-columns: 1fr; }
  .rrow { flex-direction: column; gap: 0.1rem; }
  .rval { text-align: left; }
  .footer-top { flex-direction: column; }
}
