:root {
  --bg: #f4efe7;
  --bg-2: #ece7dc;
  --text: #101214;
  --muted: #615a51;
  --accent: #ff6b1a;
  --shadow: 5px 5px 0 rgba(16,18,20,.82);
  --shadow-lg: 5px 5px 0 rgba(16,18,20,.88);
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --content-width: 1180px;
  --display: "Arial Black", "Franklin Gothic Heavy", "Helvetica Neue", sans-serif;
  --body: "Arial", "Helvetica Neue", "Trebuchet MS", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(180deg, #f4efe7 0%, #ece7dc 100%);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
p { margin: 0; }

h1, h2, h3 { margin: 0; }
h1, h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.65rem, 6vw, 5.25rem); line-height: .9; }
h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: .96; }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }

.vault-frame {
  position: relative;
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  z-index: 1;
}
.ledger-narrow { width: min(calc(100% - 32px), 980px); }

.citadel-nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 0;
  background: transparent;
  transition: padding 220ms ease, background 220ms ease, border-radius 220ms ease,
              border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

body[data-page="home"] .citadel-nav {
  position: fixed;
  left: 50%;
  width: min(calc(100% - 32px), var(--content-width));
  margin-top: 0;
  transform: translateX(-50%);
}

body:not([data-page="home"]) .citadel-nav {
  padding: 12px 16px;
  border: 2px solid #101214;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

body[data-page="home"] .citadel-nav.is-floating {
  padding: 12px 16px;
  border: 2px solid #101214;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

body[data-page="home"] .citadel-nav:not(.is-floating) .coinmark-label strong,
body[data-page="home"] .citadel-nav:not(.is-floating) .coinmark-label span {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

body[data-page="home"] .citadel-nav:not(.is-floating) .pathway a {
  color: rgba(255,255,255,.78);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

body[data-page="home"] .citadel-nav:not(.is-floating) .pathway a:hover,
body[data-page="home"] .citadel-nav:not(.is-floating) .pathway a.is-active {
  color: #fff;
  background: rgba(255,255,255,.14);
}

body[data-page="home"] .citadel-nav:not(.is-floating) .cipher-toggle {
  color: #fff;
  background: rgba(16,18,20,.18);
  border-color: rgba(255,255,255,.7);
}

.route-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.coinmark { display: inline-flex; align-items: center; gap: 10px; }
.coinmark-glyph {
  position: relative; width: 16px; height: 16px;
  border-radius: 3px; background: var(--accent);
  border: 2px solid #101214; box-shadow: 2px 2px 0 rgba(16,18,20,.82);
  flex-shrink: 0;
}
.coinmark-glyph::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 1px; background: #101214;
}
.coinmark-label { display: grid; gap: 3px; line-height: 1; }
.coinmark-label strong {
  font-family: var(--display);
  font-size: 1.03rem;
  letter-spacing: -.025em;
  text-transform: none;
}
.coinmark-label span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}

.pathway { display: flex; align-items: center; gap: 2px; }
.pathway a {
  padding: 5px 10px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 0.88rem; font-weight: 600;
  transition: color 150ms ease, background 150ms ease;
}
.pathway a:hover,
.pathway a.is-active { color: var(--text); background: rgba(16,18,20,.07); }

.terminal-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding-inline: 16px;
  background: var(--accent); color: #101214;
  border: 2px solid #101214; border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 rgba(16,18,20,.82);
  font-size: 0.88rem; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap;
  transition: transform 150ms ease;
}
.terminal-cta:hover { transform: translateY(-1px); }

.cipher-toggle {
  display: none; position: relative;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 2px solid #101214; border-radius: var(--radius-sm);
  background: #fff; box-shadow: 3px 3px 0 rgba(16,18,20,.82);
}
.cipher-toggle span {
  position: absolute; width: 16px; height: 2px;
  border-radius: 999px; background: currentColor;
  transition: transform 180ms ease;
}
.cipher-toggle span:first-child { transform: translateY(-4px); }
.cipher-toggle span:last-child  { transform: translateY(4px); }
body.routes-open .cipher-toggle span:first-child { transform: rotate(45deg); }
body.routes-open .cipher-toggle span:last-child  { transform: rotate(-45deg); }

.presskey {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px;
  border-radius: var(--radius-sm); border: 2px solid #101214;
  font-weight: 700; font-size: 0.95rem;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.presskey:hover { transform: translateY(-1px); box-shadow: 7px 7px 0 rgba(16,18,20,.88); }
.presskey-orange { background: var(--accent); color: #101214; box-shadow: var(--shadow); }
.presskey-light   { background: #fff; box-shadow: var(--shadow); }

.chainline { height: 1px; background: rgba(16,18,20,.1); }

section[id],
.moment-card[id] { scroll-margin-top: 96px; }
.chain-slab { padding: 56px 0; }
.headline-lockup { display: grid; gap: 12px; text-align: center; justify-items: center; margin-bottom: 28px; }
.headline-lockup > p { color: var(--muted); font-size: 1.05rem; max-width: 36rem; }

.horizon {
  position: relative;
  overflow: hidden;
  width: 100vw;
  min-height: clamp(360px, 48vh, 500px);
  margin-left: calc(50% - 50vw);
  display: grid;
  place-items: center;
  padding:92px 40px 48px;
}

.horizon-art {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('/images/6872.jpg');
  background-size: cover;
  background-position: center;
  opacity: .96;
}

.horizon-art::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16,18,20,.42), rgba(16,18,20,.42)),
    radial-gradient(circle, rgba(16,18,20,.16) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}

.launch-copy {
  position: relative; z-index: 1;
  display: grid; gap: 22px;
  max-width: 640px; margin: 0 auto; text-align: center;
}

.launch-copy h1,
.launch-lede {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
}

.launch-lede {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 700; letter-spacing: -.01em;
  line-height: 1.22; text-transform: uppercase;
  max-width: 22ch; margin: 0 auto;
}

.launch-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.proof-tags {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px;
}
.proof-tags > span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; position: relative;
  border: 2px solid #101214; border-radius: var(--radius-sm);
  background: #fff; font-size: 0.86rem; font-weight: 700;
  box-shadow: 3px 3px 0 rgba(16,18,20,.78);
}
.proof-slash {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.ledger-show {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; align-items: center;
}
.ledger-intro { display: grid; gap: 14px; }
.ledger-intro p { color: var(--muted); font-size: 1.05rem; }

.console-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: 318px;
  padding: 34px; border: 2px solid #101214; border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(19,27,36,.98), rgba(31,42,54,.94));
  box-shadow: var(--shadow);
}

.console-points { display: grid; gap: 16px; width: 100%; }
.console-point {
  display: flex; align-items: center; gap: 10px;
  min-height: 88px;
  padding: 18px 18px; border: 2px solid #101214; border-radius: var(--radius-sm);
  background: #fff; box-shadow: 3px 3px 0 rgba(255,107,26,.88);
  font-size: 0.99rem; font-weight: 700;
}
.console-point:nth-child(2) { margin-left: 18px; }
.console-point:nth-child(3) { margin-left: 8px; }

.console-symbol {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 6px;
  background: var(--accent); border: 1.5px solid #101214;
  display: flex; align-items: center; justify-content: center;
}
.console-symbol svg {
  width: 15px; height: 15px;
  fill: none; stroke: #101214; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.desktop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.moment-card {
  padding: 34px; border: 2px solid #101214; border-radius: var(--radius-lg);
  background: #f5f0e8; box-shadow: var(--shadow);
  display: grid; gap: 10px;
}
.moment-card h3 { font-size: 1.35rem; line-height: 1.15; color: var(--text); }
.moment-card p  { color: var(--muted); font-size: 0.95rem; }

.machine-card {
  grid-column: span 2;
  background: #101214;
  box-shadow: 5px 5px 0 rgba(255,107,26,.88);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border: 2px solid #101214; border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 20px 0;
}
.machine-col { padding: 24px; border-right: 1px solid rgba(255,255,255,.1); }
.machine-col:last-child { border-right: none; }
.machine-label {
  display: block; margin-bottom: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.machine-value {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: -.04em; line-height: 1.1;
  color: #fff; margin-bottom: 8px;
}
.machine-col p { font-size: 0.85rem; color: rgba(255,255,255,.45); line-height: 1.5; }

#release-hub,
#question-bank {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: max(16px, calc((100vw - var(--content-width)) / 2));
  padding-right: max(16px, calc((100vw - var(--content-width)) / 2));
}

#release-hub {
  padding-top: 64px;
  padding-bottom: 64px;
}

#release-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.build-card {
  position: relative; overflow: hidden;
  display: grid; gap: 14px; padding: 22px;
  border: 2px solid #101214; border-radius: var(--radius-lg);
  background: #f5f0e8; box-shadow: var(--shadow);
}
.build-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
}
.build-icon {
  width: 50px; height: 50px; border: 2px solid #101214;
  border-radius: var(--radius-sm); background: var(--accent);
  display: grid; place-items: center;
  box-shadow: 3px 3px 0 rgba(16,18,20,.82);
}
.build-icon svg { width: 26px; height: 26px; display: block; fill: var(--text); }
.build-card:nth-child(3) .build-icon svg { width: 24px; height: 24px; }
.platform-note {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.build-card h3 {
  font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  letter-spacing: -.04em; color: var(--text);
}
.build-card p { color: var(--muted); font-size: 0.92rem; }

.platform-load { width: 100%; }

.hash-stack {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 8px;
}
.hash-toggle {
  background: none; border: none; cursor: pointer; padding: 0;
  color: #999; font-size: 0.78rem; font-weight: 400;
  text-decoration: underline; text-underline-offset: 2px;
  text-align: left; font-family: inherit;
}
.hash-reveal {
  margin-top: 5px; padding: 6px 8px; display: none;
  border: 1px solid rgba(16,18,20,.1); border-radius: 5px;
  background: rgba(255,255,255,.45);
  font-family: monospace; font-size: 0.7rem; color: #888;
  word-break: break-all; line-height: 1.6;
}
.hash-reveal.is-expanded { display: block; }

#question-bank {
  padding-top: 64px;
  padding-bottom: 88px;
}

#question-bank::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(236, 231, 220,.99), rgba(236,231,220,.62)),
    url('/images/ledger-honeycomb-field.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.answer-stack { display: grid; gap: 8px; }
.answer-card {
  border: 2px solid #101214; border-radius: var(--radius-md);
  background: #f5f0e8; box-shadow: var(--shadow); overflow: hidden;
}
.answer-card summary {
  list-style: none; cursor: pointer;
  padding: 14px 18px; font-size: 1rem; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.answer-card summary::-webkit-details-marker { display: none; }
.answer-card summary::after { content: "+"; color: var(--accent); font-size: 1.1rem; font-weight: 400; flex-shrink: 0; }
.answer-card[open] summary::after { content: "−"; }
.answer-body { padding: 0 18px 14px; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

.basalt-footer {
  position: relative;
  isolation: isolate;
  background-color: #101214;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 48px 0 0;
}
.basalt-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(16,18,20,.68), rgba(16,18,20,.9)),
    url('/images/contour-signal-mesh.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.basalt-inner {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
}
.basalt-top {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  width: min(100%, 1000px);
  margin: 0 auto;
  gap: 48px; padding-bottom: 36px;
}
.basalt-top::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(calc(100vw - 48px), var(--content-width));
  height: 1px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.1);
}
.basalt-wordmark {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -.05em; line-height: .88;
  text-transform: uppercase; color: #fff;
}
.wordmark-muted { color: rgba(255,255,255,.25); }

.basalt-links {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 11px 28px; align-content: start; padding-top: 4px;
}
.basalt-links a {
  color: rgba(255,255,255,.5); font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.basalt-links a:hover { color: #fff; text-decoration-color: #fff; }

.basalt-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; flex-wrap: wrap; gap: 8px;
}
.basalt-copy { color: rgba(255,255,255,.28); font-size: 0.8rem; }
.basalt-status { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.35); font-size: 0.8rem; }
.status-lumen { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }

.page-stack { display: grid; gap: 12px; padding-bottom: 80px; }

.title-slab {
  display: grid; gap: 18px; padding-top: 60px;
  padding-left: 20px; border-left: 4px solid #101214;
}
.title-slab h1 { max-width: 14ch; font-size: clamp(2.25rem, 4.2vw, 3.55rem); }
.title-slab p:last-child { max-width: 38rem; color: var(--muted); font-size: 1.05rem; }

.manual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-bottom: 12px; }
.manual-note {
  display: grid; gap: 12px; padding: 24px;
  border: 2px solid #101214; border-radius: var(--radius-md);
  background: #fff; box-shadow: var(--shadow);
}
.manual-note span { color: var(--muted); font-size: 0.76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.manual-note strong { font-size: 1.1rem; }
.manual-note p { color: var(--muted); font-size: 0.95rem; }
.manual-note:first-child { background: var(--accent); }
.manual-note:last-child { background: #101214; box-shadow: var(--shadow-lg); }
.manual-note:last-child strong,
.manual-note:last-child p,
.manual-note:last-child span { color: #f6f8fb; }

.fold-stack { display: grid; gap: 12px; }
.fold-card {
  border: 2px solid #101214; border-radius: var(--radius-md);
  background: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.fold-card summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; font-size: 1.1rem; font-weight: 700;
}
.fold-card summary::-webkit-details-marker { display: none; }
.fold-card summary::after { content: "+"; float: right; color: var(--accent); }
.fold-card[open] summary::after { content: "−"; }
.fold-body { display: grid; gap: 12px; padding: 0 22px 20px; }
.fold-body ul { display: grid; gap: 8px; padding-left: 18px; margin: 0; color: var(--muted); }

.privacy-triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.privacy-tile {
  display: grid; gap: 12px; padding: 22px;
  border: 2px solid #101214; border-radius: var(--radius-md);
  background: #fff; box-shadow: var(--shadow);
}
.privacy-tile span { color: var(--muted); font-size: 0.76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.privacy-tile strong { font-size: 1.1rem; }
.privacy-tile p { color: var(--muted); font-size: 0.95rem; }
.privacy-tile:first-child { background: var(--accent); }
.privacy-tile:last-child  { background: #101214; box-shadow: var(--shadow-lg); }
.privacy-tile:last-child strong,
.privacy-tile:last-child span { color: #f6f8fb; }

.privacy-ledger {
  display: grid; margin: 14px 0 10px;
  border: 2px solid #101214; border-radius: var(--radius-md);
  overflow: hidden; background: #fff; box-shadow: var(--shadow);
}
.privacy-line { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 20px; padding: 20px 24px; }
.privacy-line + .privacy-line { border-top: 1px solid rgba(16,18,20,.12); }
.privacy-label { color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.privacy-copyline  { color: var(--muted); font-size: 0.95rem; }

.awake .fade-lift { opacity: 0; transform: translateY(22px); transition: opacity 480ms ease, transform 480ms ease; }
.awake .fade-lift.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .ledger-show,
  .desktop-grid,
  .privacy-triptych { grid-template-columns: 1fr; }
  .machine-card { grid-template-columns: 1fr; }
  .machine-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .machine-col:last-child { border-bottom: none; }
  .build-grid, .manual-grid { grid-template-columns: repeat(2, 1fr); }
  .console-point:nth-child(2),
  .console-point:nth-child(3) { margin-left: 0; }
  .basalt-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .vault-frame, .ledger-narrow { width: min(calc(100% - 20px), var(--content-width)); }
  body[data-page="home"] .citadel-nav { width: min(calc(100% - 20px), var(--content-width)); }
  .cipher-toggle { display: inline-flex; }
  .route-panel {
    position: absolute; top: calc(100% + 10px); right: 0; left: 0;
    display: none; flex-direction: column; align-items: stretch; padding: 8px;
    border: 2px solid #101214; border-radius: var(--radius-md);
    background: rgba(255,250,244,.97); box-shadow: var(--shadow);
  }
  body.routes-open .route-panel { display: flex; }
  .pathway { flex-direction: column; align-items: stretch; }
  .pathway a, .terminal-cta { width: 100%; }
  h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  h2 { font-size: clamp(1.55rem, 7vw, 2.2rem); }
  .horizon { min-height: auto; padding: 40px 20px 36px; }
  .build-grid, .manual-grid { grid-template-columns: 1fr; }
  .hash-stack { grid-template-columns: 1fr; }
  .basalt-links { grid-template-columns: 1fr; }
  .privacy-line { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .awake .fade-lift { opacity: 1; transform: none; }
}

.closing-bank { padding-bottom: 32px; }
.signal-note { padding-top: 20px; }
.signal-note-copy { color: var(--muted); font-size: 0.95rem; }
.signal-note-link { text-decoration: underline; }