:root {
  --void: #06080B;
  --rock: #0D1116;
  --rock-2: #141A21;
  --edge: rgba(217, 225, 234, .12);
  --fog: #DCE3EB;
  --steel: #8C97A6;
  --ion: #6FE3FF;
  --gold: #E7B24C;
  --copper: #B9772F;
  --rewards: #4A86FF;
  --reserve: #E7B24C;
  --ops: #34D6C4;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --stencil: "Big Shoulders Stencil Display", "Big Shoulders Display", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--void);
  color: var(--fog);
  font: 400 17px/1.6 var(--body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 4px; border-radius: 4px; }
p { margin: 0; }

h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -.005em;
  line-height: .9;
  margin: 0;
}
h1 { font-size: clamp(58px, min(8vw, 13.5vh), 132px); }
h1 span { display: block; }
h1 span:nth-child(2) { color: var(--steel); font-weight: 500; }
h2 { font-size: clamp(46px, 6vw, 92px); max-width: 13ch; }
h3 { font: 600 18px/1.3 var(--body); margin: 0 0 6px; letter-spacing: -.005em; }

.stencil {
  font: 800 clamp(18px, 1.6vw, 22px)/1 var(--stencil);
  letter-spacing: .04em;
  color: var(--gold);
  margin-bottom: 22px;
}
.intro { color: var(--steel); font-size: 19px; max-width: 52ch; margin-top: 24px; }

/* Film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Gate intro: the Q is drawn, then its door opens ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 30px;
  background: radial-gradient(60% 60% at 50% 50%, #10161D 0%, var(--void) 70%);
  transition: opacity .9s ease .25s, visibility 0s linear 1.2s;
  cursor: pointer;
}
.gate-logo { width: min(34vmin, 260px); overflow: visible; }
.gl-ring { fill: var(--fog); }
.gate .sweep { stroke-dasharray: 100 100; stroke-dashoffset: 100; animation: sweep 1.1s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
@keyframes sweep { to { stroke-dashoffset: 0; } }
.gl-door {
  fill: url(#door-gold);
  transform-box: fill-box; transform-origin: 0% 50%;
  opacity: 0; transform: translateY(30px);
  animation: door-in .7s cubic-bezier(.16, 1, .3, 1) .75s forwards;
  transition: transform .9s cubic-bezier(.7, 0, .2, 1);
}
@keyframes door-in { to { opacity: 1; transform: none; } }
.gl-light { fill: var(--ion); opacity: 0; transition: opacity .8s ease .15s; }
.gate-word {
  font: 800 22px var(--display); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase;
  color: var(--steel); opacity: 0; animation: fade .8s ease .9s forwards;
}
.gate.turning .gl-door { animation: none; opacity: 1; transform: scaleX(.12) skewY(-14deg); }
.gate.turning .gl-light { opacity: .9; }
.gate.open { opacity: 0; visibility: hidden; }
.gate.open .gate-logo { transform: scale(2.4); opacity: 0; transition: transform 1.1s cubic-bezier(.7, 0, .3, 1), opacity .8s ease .25s; }
.gate.open .gate-word { opacity: 0; transition: opacity .3s; animation: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 8, 11, .72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding-top: 12px; padding-bottom: 12px;
  border-color: var(--edge);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; color: var(--fog); fill: currentColor; transition: color .3s; }
.brand:hover svg { color: var(--gold); }
.brand span { font: 800 24px var(--display); letter-spacing: .01em; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--steel); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--fog); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--gold);
  padding: 7px 14px; border: 1px solid rgba(231, 178, 76, .35); border-radius: 999px;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.sound {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--edge); color: var(--steel);
  font: 500 14px var(--body); padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.sound:hover { color: var(--fog); border-color: rgba(217, 225, 234, .3); }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.sound[aria-pressed="true"] { color: var(--ion); border-color: rgba(111, 227, 255, .4); }
.sound[aria-pressed="true"] .sound-bars i { animation: eq 1s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 4px;
  font: 600 16px var(--body); text-decoration: none; letter-spacing: .01em;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn-gold { background: var(--gold); color: #1A1204; box-shadow: 0 0 0 0 rgba(231, 178, 76, 0); }
.btn-gold:hover { background: #F3C877; box-shadow: 0 0 40px rgba(231, 178, 76, .35); }
.btn-line { border: 1px solid rgba(217, 225, 234, .35); color: var(--fog); }
.btn-line:hover { border-color: var(--ion); color: var(--ion); }

/* ---------- Depth gauge ---------- */
.gauge {
  position: fixed; right: calc(var(--gutter) - 8px); top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: grid; justify-items: end; gap: 14px;
  opacity: 0; transition: opacity .6s;
}
.gauge.show { opacity: 1; }
.gauge-read { font: 800 34px/1 var(--display); color: var(--fog); }
.gauge-read span::before { content: "−"; }
.gauge-read.zero span::before { content: ""; }
.gauge-read small { font-size: 18px; color: var(--steel); margin-left: 3px; }
.gauge-track { position: relative; width: 2px; height: 220px; background: var(--edge); }
.gauge-fill { position: absolute; left: 0; top: 0; width: 2px; height: 0; background: var(--ion); box-shadow: 0 0 10px var(--ion); }
.gauge-levels {
  position: absolute; right: 14px; top: 48px; height: 220px; margin: 0; padding: 0; list-style: none;
}
.gauge-levels li {
  position: absolute; right: 0; transform: translateY(-50%);
  font-size: 12px; color: var(--steel); white-space: nowrap; opacity: .45; transition: opacity .3s, color .3s;
}
.gauge-levels li::after { content: ""; display: inline-block; width: 8px; height: 1px; background: currentColor; margin-left: 8px; vertical-align: middle; }
.gauge-levels li.on { opacity: 1; color: var(--ion); }

/* ---------- Layout shell ---------- */
.level { position: relative; padding: clamp(110px, 14vw, 200px) var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.level-head { margin-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Hero ---------- */
.hero {
  max-width: none; min-height: 100svh;
  display: grid; align-content: end;
  padding-top: 120px; padding-bottom: 40px;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
  transform: scale(1.06); transform-origin: 72% 40%;
  animation: push 28s ease-in-out infinite alternate;
}
@keyframes push { to { transform: scale(1.14); } }
#quantum { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,8,11,.92) 0%, rgba(6,8,11,.55) 34%, rgba(6,8,11,0) 60%),
    linear-gradient(0deg, var(--void) 0%, rgba(6,8,11,0) 32%),
    linear-gradient(180deg, rgba(6,8,11,.7) 0%, rgba(6,8,11,0) 18%);
}
.hero-copy { max-width: 760px; }
.hero h1 span { opacity: 0; transform: translateY(40px); }
.lede { color: #B8C2CE; font-size: 19px; max-width: 48ch; margin: clamp(18px, 3vh, 30px) 0 clamp(24px, 4vh, 38px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .stencil, .lede, .hero-cta, .readout { opacity: 0; }
.ready .hero h1 span { animation: rise 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.ready .hero h1 span:nth-child(2) { animation-delay: .12s; }
.ready .hero h1 span:nth-child(3) { animation-delay: .24s; }
.ready .hero .stencil { animation: fade .8s ease forwards; }
.ready .lede { animation: fade .8s ease .45s forwards; }
.ready .hero-cta { animation: fade .8s ease .6s forwards; }
.ready .readout { animation: fade .8s ease .8s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

.readout {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0;
  margin: clamp(32px, 6vh, 64px) 0 0; border-top: 1px solid var(--edge);
}
.readout div { padding: 18px 48px 0 0; }
.readout dt { font-size: 13px; color: var(--steel); }
.readout dd { margin: 2px 0 0; font: 800 40px/1 var(--display); }

/* ---------- Airlock ---------- */
.airlock { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.airlock-media, .core-media { position: relative; overflow: hidden; border-radius: 6px; }
.airlock-media img, .core-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transform: scale(var(--z, 1.12)); transition: transform .1s linear; }
.airlock-media::after, .core-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 120px 40px var(--void);
}
.steps { list-style: none; margin: 44px 0 0; padding: 0; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; padding: 20px 0; border-top: 1px solid var(--edge); counter-increment: s; }
.steps li::before { content: counter(s); grid-row: span 2; font: 800 40px/1 var(--display); color: var(--gold); }
.steps p { color: var(--steel); font-size: 16px; }
.sealed {
  margin-top: 28px; padding: 18px 20px; font-size: 16px;
  border: 1px solid rgba(111, 227, 255, .25); border-radius: 4px; color: #BFEFFF;
  background: linear-gradient(90deg, rgba(111, 227, 255, .08), transparent);
}

/* ---------- Splitter ---------- */
.chambers { display: grid; grid-template-columns: 1.55fr 1fr; gap: 0; border: 1px solid var(--edge); border-radius: 6px; overflow: hidden; background: var(--rock); }
.chambers-media { position: relative; }
.chambers-media img { width: 100%; height: 100%; object-fit: cover; }
.chamber-tags { position: absolute; left: 0; right: 0; bottom: 6%; }
.tag {
  position: absolute; bottom: 0; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0; min-width: 108px;
  padding: 10px 12px 12px; border-radius: 4px;
  background: rgba(6, 8, 11, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-top: 2px solid var(--c);
}
.tag span { font-size: 13px; color: var(--steel); }
.tag b { font: 800 22px/1.1 var(--display); color: var(--c); }
.tag output { font: 800 30px/1 var(--display); color: var(--fog); }
.tag-rewards { --c: var(--rewards); left: 26.5%; }
.tag-reserve { --c: var(--reserve); left: 50%; }
.tag-ops { --c: var(--ops); left: 73.2%; }
.tag output.bump { animation: bump .5s ease; }
@keyframes bump { 30% { color: var(--c); text-shadow: 0 0 18px var(--c); } }

.console { padding: 36px 34px; border-left: 1px solid var(--edge); background: linear-gradient(180deg, var(--rock-2), var(--rock)); }
.console label { display: block; font-size: 14px; color: var(--steel); margin-bottom: 6px; }
.field { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid rgba(217, 225, 234, .25); margin-bottom: 28px; transition: border-color .2s; }
.field:focus-within { border-color: var(--ion); }
.field input {
  width: 100%; min-width: 0; background: none; border: 0; color: var(--fog); padding: 2px 0 8px;
  font: 800 52px/1 var(--display);
}
.field input:focus { outline: none; }
.field span { color: var(--steel); font-size: 14px; }
.warn { color: var(--gold); font-size: 14px; margin: -16px 0 18px; }
.ledger { margin: 8px 0 0; }
.ledger div { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--edge); }
.ledger dt { color: var(--steel); font-size: 15px; }
.ledger dd { margin: 0; font: 700 24px var(--display); }
.ledger-total dd { font-size: 40px; font-weight: 800; color: var(--gold); }
.fine { font-size: 13px; color: var(--steel); margin-top: 14px; }

/* ---------- Distribution ---------- */
.distribution { max-width: none; background: radial-gradient(80% 60% at 50% 100%, rgba(74, 134, 255, .1), transparent 70%); }
.distribution > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.pillars { margin: 0 auto; }
.pillars-row {
  position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(8px, 2vw, 28px);
  align-items: end; height: 340px; border-bottom: 1px solid var(--edge);
}
.pillar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.pillar-beam {
  position: relative; min-height: 2px; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(160, 196, 255, .95), rgba(74, 134, 255, .55) 40%, rgba(74, 134, 255, .15));
  box-shadow: 0 0 30px rgba(74, 134, 255, .45), inset 0 0 12px rgba(255, 255, 255, .25);
  transform-origin: bottom; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.pillar-beam::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #fff;
  box-shadow: 0 0 12px 2px #A0C4FF;
}
.pillar-val { text-align: center; font: 800 26px var(--display); margin-bottom: 8px; }
.pillar-label { position: absolute; bottom: -30px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--steel); }
.pillar.zero .pillar-val { font: 600 13px/1.3 var(--body); color: var(--gold); }
.pillar.zero .pillar-beam { background: rgba(217, 225, 234, .2); box-shadow: none; }
.pillar.zero .pillar-beam::after { display: none; }
.pillars.armed .pillar-beam { transform: scaleY(0); }
.pillars figcaption { margin-top: 48px; font-size: 14px; color: var(--steel); }

.formula {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px;
  margin-top: 72px; margin-bottom: 80px; padding: 34px;
  border: 1px solid var(--edge); border-radius: 6px; background: rgba(13, 17, 22, .7);
}
.f-label, .f-pool { font: 800 30px var(--display); }
.f-pool { color: var(--rewards); }
.f-eq { font: 500 30px var(--display); color: var(--steel); }
.f-frac { display: inline-flex; flex-direction: column; text-align: center; font-size: 17px; font-weight: 500; }
.f-frac span:first-child { padding-bottom: 8px; border-bottom: 2px solid var(--fog); }
.f-frac span:last-child { padding-top: 8px; color: var(--steel); }

.rules { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.rules li { padding-top: 18px; border-top: 1px solid var(--edge); }
.rules p { color: var(--steel); font-size: 16px; }

/* ---------- Core ---------- */
.core { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.core-media img { aspect-ratio: 4 / 4.4; }
.core-fill { display: grid; grid-template-columns: 40fr 60fr; gap: 3px; margin: 34px 0 40px; }
.core-fill span { font-size: 13px; color: var(--steel); }
.core-fill span::before { content: ""; display: block; height: 14px; margin-bottom: 8px; border-radius: 2px; }
.cf-seed::before { background: var(--copper); }
.cf-fees::before {
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, #CF9A3D 10px 20px);
  background-size: 40px 100%; animation: flow 2.5s linear infinite;
}
@keyframes flow { to { background-position: 40px 0; } }
.checks { list-style: none; padding: 0; margin: 12px 0 28px; }
.checks li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--edge); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 20px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ion); box-shadow: 0 0 10px var(--ion);
}
.honest { padding: 18px 20px; border-left: 2px solid var(--gold); background: rgba(231, 178, 76, .08); color: #F1D9A6; font-size: 16px; }

/* ---------- Protocols ---------- */
.risks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin: 0; }
.risks div { padding: 22px 0; border-top: 1px solid var(--edge); }
.risks dt { font: 800 26px/1.1 var(--display); }
.risks dd { margin: 6px 0 0; color: var(--steel); font-size: 16px; }

/* ---------- Footer ---------- */
.footer {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px;
  padding: 80px var(--gutter) 56px; border-top: 1px solid var(--edge);
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
}
.foot-word { grid-column: 1 / -1; font: 900 clamp(64px, 15vw, 220px)/.8 var(--display); color: var(--rock-2); -webkit-text-stroke: 1px rgba(217, 225, 234, .14); letter-spacing: -.01em; }
.footer p:not(.foot-word) { color: var(--steel); font-size: 15px; max-width: 60ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .gauge { display: none; }
  .chambers { grid-template-columns: 1fr; }
  .console { border-left: 0; border-top: 1px solid var(--edge); }
}
@media (max-width: 860px) {
  .airlock, .core { grid-template-columns: 1fr; }
  .rules, .risks { grid-template-columns: 1fr 1fr; }
  .readout { grid-template-columns: repeat(2, auto); }
  .readout div:nth-child(n+3) { padding-top: 22px; }
  .hero-media img { object-position: 72% 50%; }
  .hero-shade {
    background:
      linear-gradient(0deg, var(--void) 8%, rgba(6,8,11,.88) 55%, rgba(6,8,11,.35) 85%),
      linear-gradient(180deg, rgba(6,8,11,.7) 0%, rgba(6,8,11,0) 18%);
  }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .status { display: none; }
  .sound-label { display: none; }
  .brand span { font-size: 22px; }
  .lede, .intro { font-size: 17px; }
  .rules, .risks { grid-template-columns: 1fr; }
  .tag { min-width: 0; padding: 6px 6px 8px; }
  .tag span { font-size: 11px; }
  .tag b { font-size: 16px; }
  .tag output { font-size: 20px; }
  .console { padding: 26px 20px; }
  .field input { font-size: 44px; }
  .pillars-row { height: 240px; }
  .pillar-val { font-size: 16px; }
  .pillar.zero .pillar-val { font-size: 10px; }
  .formula { padding: 24px 18px; }
  .f-label, .f-pool, .f-eq { font-size: 24px; }
  .f-frac { font-size: 14px; }
  .footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .hero-media img, .cf-fees::before, .status i { animation: none; }
  .hero h1 span, .hero .stencil, .lede, .hero-cta, .readout { opacity: 1; transform: none; animation: none !important; }
}

/* Leave room for the depth gauge on wide screens */
@media (min-width: 1101px) {
  .level:not(.hero) { padding-right: calc(var(--gutter) + 130px); }
  .footer { padding-right: calc(var(--gutter) + 130px); }
}
@media (max-width: 560px) {
  .pl-long { display: none; }
  .hero h1 span:nth-child(2) { color: #A9B3C0; }
}

/* =========================================================
   Motion layer (only active when motion.js adds .mo)
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.7, 0, .2, 1); }

/* Hero recedes as you descend */
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--void); opacity: calc(var(--exit, 0) * .75);
}
.mo .hero-media img { filter: saturate(calc(1 - var(--exit, 0) * .5)); }
.hero-copy, .readout { will-change: transform, opacity; }

/* Level divider that draws in */
.mo [data-reveal="level"]::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 227, 255, .55) 20%, rgba(231, 178, 76, .55) 80%, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-io);
}
.mo [data-reveal="level"].in::before { transform: scaleX(1); }

/* Headings: words rise from behind a mask */
.mo [data-reveal="words"] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin-bottom: -.12em; }
.mo [data-reveal="words"] .wi {
  display: inline-block; transform: translate3d(0, 110%, 0) rotate(4deg); transform-origin: 0 100%;
  transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 80ms);
}
.mo [data-reveal="words"].in .wi { transform: none; }

/* Stencil labels decode in */
.mo [data-reveal="scramble"] { opacity: 0; transition: opacity .3s; }
.mo [data-reveal="scramble"].in { opacity: 1; }

/* Blur-to-focus rise */
.mo [data-reveal="up"] {
  opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(10px);
  transition: opacity 1s var(--ease-out) .25s, transform 1.2s var(--ease-out) .25s, filter 1s var(--ease-out) .25s;
}
.mo [data-reveal="up"].in { opacity: 1; transform: none; filter: none; }

/* Staggered lists */
.mo [data-reveal="stagger"] > * {
  opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--i) * 90ms + 150ms);
}
.mo [data-reveal="stagger"].in > * { opacity: 1; transform: none; filter: none; }
.mo .steps li::before, .mo .checks li::before { transition: transform .6s var(--ease-out); transition-delay: calc(var(--i) * 90ms + 400ms); }
.mo .steps:not(.in) li::before { transform: scale(.4); }
.mo .checks:not(.in) li::before { transform: scale(0); }

/* Images open like a vault iris */
.mo [data-reveal="iris"] { clip-path: circle(0% at var(--at, 50% 50%)); transition: clip-path 1.8s var(--ease-io); }
.mo [data-reveal="iris"].in { clip-path: circle(85% at var(--at, 50% 50%)); }
.mo [data-reveal="iris"] img { transition: transform .1s linear, filter 1.8s; }
.mo [data-reveal="iris"]:not(.in) img { filter: brightness(2.2) saturate(.3); }

/* Chambers fill from the floor up */
.mo [data-reveal="fill"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-io); }
.mo [data-reveal="fill"].in { clip-path: inset(0 0 0 0); }
.mo [data-reveal="fill"] .tag { opacity: 0; transform: translate(-50%, 16px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.mo [data-reveal="fill"].in .tag { opacity: 1; transform: translate(-50%, 0); }
.mo [data-reveal="fill"].in .tag-rewards { transition-delay: 1.1s; }
.mo [data-reveal="fill"].in .tag-reserve { transition-delay: 1.25s; }
.mo [data-reveal="fill"].in .tag-ops { transition-delay: 1.4s; }

/* Cursor light on panels */
.lit { position: relative; isolation: isolate; }
.lit::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 227, 255, .09), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.lit:hover::after { opacity: 1; }

/* Buttons: magnetic easing and a sheen on the gold one */
.btn, .sound, .status { transition: transform .35s var(--ease-out), background .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease-out);
}
.btn-gold:hover::after { left: 130%; }

/* Nav links: underline grows from the left */
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ion);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

/* Images breathe slightly on hover */
.airlock-media img, .core-media img { will-change: transform; }
.reveal-proxy { display: grid; min-width: 0; }

/* Quantum lock: ordinary wallet vs vault */
.threat { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 34px 0 40px; }
.threat div { padding: 18px 20px 20px; background: var(--rock-2); border-top: 2px solid var(--c); }
.threat dt { font-size: 13px; color: var(--steel); margin-bottom: 8px; }
.threat dd { margin: 0; font-size: 15px; color: var(--steel); line-height: 1.45; }
.threat b { display: block; font: 800 24px/1.1 var(--display); color: var(--fog); margin-bottom: 6px; }
.threat-old { --c: #C2553F; }
.threat div.threat-new { --c: var(--ion); background: linear-gradient(180deg, rgba(111, 227, 255, .08), var(--rock-2)); }
@media (max-width: 560px) { .threat { grid-template-columns: 1fr; } }

/* ---------- Ambient background ---------- */
.field { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .9; }
body::before, body::after {
  content: ""; position: fixed; z-index: -2; pointer-events: none; border-radius: 50%;
  width: 70vmax; height: 70vmax; filter: blur(90px);
}
body::before {
  top: -30vmax; right: -25vmax;
  background: radial-gradient(closest-side, rgba(111, 227, 255, .07), transparent);
  animation: drift-a 48s ease-in-out infinite alternate;
}
body::after {
  bottom: -35vmax; left: -25vmax;
  background: radial-gradient(closest-side, rgba(231, 178, 76, .055), transparent);
  animation: drift-b 56s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-18vmax, 22vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(20vmax, -16vmax) scale(.9); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }
a.status { text-decoration: none; }
/* Let the fixed background layers show: only the root paints the void colour. */
body { background: transparent; }

/* Footer mark */
.foot-word { display: flex; align-items: center; gap: .18em; white-space: nowrap; font-size: clamp(34px, 9.4vw, 168px) !important; }
.foot-word svg { width: .78em; height: .78em; flex: none; fill: var(--rock-2); stroke: rgba(217, 225, 234, .14); stroke-width: 3px; }

/* ---------- Wallet + vault console ---------- */
.nav-x { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--edge); color: var(--steel); transition: color .2s, border-color .2s; }
.nav-x svg { width: 15px; height: 15px; fill: currentColor; }
.nav-x:hover { color: var(--fog); border-color: rgba(217, 225, 234, .3); }
.wallet-btn { cursor: pointer; background: none; font-family: var(--body); }
.wallet-btn:hover { background: rgba(231, 178, 76, .1); }

.console-dlg {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto;
  padding: 26px 26px 22px; border: 1px solid var(--edge); border-radius: 18px;
  background: linear-gradient(180deg, #121821, #0B0F14); color: var(--fog);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 0 1px rgba(111, 227, 255, .06) inset;
}
.console-dlg::backdrop { background: rgba(3, 5, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.console-dlg[open] { animation: dlg-in .45s var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.cd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cd-head svg { width: 30px; height: 30px; fill: var(--fog); }
.cd-head h2 { font-size: 30px; max-width: none; flex: 1; }
.cd-close { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--edge); background: none; color: var(--steel); font-size: 22px; line-height: 1; cursor: pointer; }
.cd-close:hover { color: var(--fog); }
.cd-lead { color: var(--steel); margin-bottom: 16px; }
.wallet-list { display: grid; gap: 8px; }
.wl-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--edge); background: var(--rock-2); color: var(--fog); font: 600 16px var(--body); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.wl-item:hover { border-color: rgba(111, 227, 255, .5); background: #18202A; }
.wl-item img { width: 28px; height: 28px; border-radius: 7px; }
.wl-dot { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, var(--ion), var(--gold)); }
.wl-empty { color: var(--steel); font-size: 15px; }
.wl-empty a, .cd-fine a, .cd-status a, .contracts a { color: var(--ion); }

.cd-account { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--rock-2); font-size: 14px; }
.cd-account b { font-weight: 600; margin-left: 8px; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 10px #3DDC97; }
.cd-link { background: none; border: 0; color: var(--ion); font: 500 14px var(--body); cursor: pointer; padding: 0; }
.cd-link:hover { text-decoration: underline; }
.wrong-chain { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(194, 85, 63, .14); color: #F2B3A6; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.cd-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 12px; border-bottom: 1px solid var(--edge); }
.cd-tabs button { background: none; border: 0; padding: 10px 0 12px; color: var(--steel); font: 800 22px var(--display); cursor: pointer; position: relative; }
.cd-tabs button[aria-selected="true"] { color: var(--fog); }
.cd-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }
.cd-currency { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; }
.cd-currency button { padding: 10px; border-radius: 10px; border: 1px solid var(--edge); background: none; color: var(--steel); font: 600 14px var(--body); cursor: pointer; }
.cd-currency button[aria-pressed="true"] { color: var(--fog); border-color: rgba(111, 227, 255, .5); background: rgba(111, 227, 255, .07); }
.cd-label { display: block; font-size: 13px; color: var(--steel); margin-bottom: 6px; }
.cd-field { display: flex; align-items: baseline; gap: 10px; padding: 4px 0 8px; border-bottom: 1px solid rgba(217, 225, 234, .25); }
.cd-field:focus-within { border-color: var(--ion); }
.cd-field input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fog); font: 800 40px var(--display); }
.cd-field input:focus { outline: none; }
.cd-field span { color: var(--steel); font-size: 14px; }
.cd-action, .cd-claim { width: 100%; margin-top: 16px; border: 0; cursor: pointer; }
.cd-action:disabled, .cd-claim:disabled { opacity: .45; cursor: not-allowed; }
.cd-claim { background: none; }
.cd-stats { margin: 18px 0 0; }
.cd-stats div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--edge); font-size: 14px; }
.cd-stats dt { color: var(--steel); }
.cd-stats dd { margin: 0; font-weight: 600; text-align: right; }
.cd-pending dd { color: var(--gold); }
.cd-status { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--rock-2); font-size: 14px; color: var(--fog); }
.cd-fine { margin-top: 14px; font-size: 12px; color: var(--steel); }
.cap-warning { margin: 0 0 16px; padding: 12px 14px; border-left: 2px solid #C2553F; background: rgba(194, 85, 63, .1); color: #F2B3A6; font-size: 14px; }
.core-copy .cap-warning { margin: 0 0 16px; font-size: 15px; }
.threat dd span { display: block; }

.contracts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 40px; margin: 8px 0 0; font-size: 13px; }
.contracts dt { color: var(--steel); }
.contracts dd { margin: 2px 0 0; word-break: break-all; }
@media (max-width: 860px) { .contracts { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .nav-x { display: none; } .status.wallet-btn { display: inline-flex; } }

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

.foot-links { display: flex; gap: 12px; flex-wrap: wrap; }
.fine a { color: var(--ion); }
