:root {
  --ground: #0e0f14;
  --ground-raised: #16171e;
  --ground-sunk: #1f2029;
  --ink: #eef0f7;
  --ink-2: #b2b5c4;
  --ink-3: #868a9c;
  --rule: #2c2e3a;
  --rule-strong: #43465a;
  --glow: #7d97ff;        /* spectral periwinkle, from the logo */
  --glow-core: #eef2ff;
  --glow-ink: #a3b4ff;
  --shield: #1fe07a;      /* hidden / shielded */
  --public: #ff5d6c;      /* exposed */

  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, monospace;

  --step-0: 1rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.5rem, 1.2rem + 4.2vw, 4.75rem);
  --step-5: clamp(2.6rem, 1rem + 6.2vw, 7rem);
  --radius-m: 10px;
  --radius-l: 16px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --max: 1280px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: .14s;
  --dur-2: .28s;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-gated { overflow: hidden; }
h1, h2, h3 { margin: 0; font-weight: 800; }
h3 { font-size: 1.1875rem; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 1.15em;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--ground-raised);
  font: 600 .9375rem/1 var(--font-display);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.btn:hover { background: var(--glow); border-color: var(--glow); color: #fff; }
.btn-glow { background: var(--glow); border-color: var(--glow); color: #0b0c12; }
.btn-glow:hover { background: var(--ink); border-color: var(--ink); color: var(--ground-raised); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--ground-raised); }
.link-btn { background: none; border: 0; padding: 0; color: var(--glow-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Gate ---------- */
.gate { position: fixed; inset: 0; z-index: 50; --seam: 50%; }
.gate__half {
  position: absolute; left: 0; right: 0; background: var(--ground);
  transition: transform 1.1s var(--ease-in-out);
}
.gate__half--top { top: 0; height: calc(var(--seam) - 1px); }
.gate__half--bottom { bottom: 0; height: calc(100% - var(--seam) - 1px); }
.gate__seam {
  position: absolute; left: 0; right: 0; top: var(--seam); height: 3px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--glow) 12%, var(--glow-core) 50%, var(--glow) 88%, transparent);
  box-shadow: 0 0 18px 2px rgba(125, 151, 255, .55), 0 0 60px 8px rgba(125, 151, 255, .18);
  transform-origin: center; animation: seam-draw 1.2s var(--ease-out) both;
  overflow: hidden;
}
.gate__seam i {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(14,15,20,.65) 22px 26px, transparent 26px 70px);
  animation: shimmer 6s linear infinite;
}
.gate__mark {
  position: absolute; left: 50%; top: var(--seam); width: 64px; height: 64px;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 0 16px rgba(125, 151, 255, .7));
  animation: mark-rise 1.1s .5s var(--ease-out) both, breathe 3.6s 1.6s var(--ease-in-out) infinite;
}
.gate__copy {
  position: absolute; left: 0; right: 0; top: calc(var(--seam) + 40px);
  display: grid; justify-items: center; gap: 28px; padding-inline: var(--gutter); text-align: center;
}
.gate__title { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.2rem); line-height: 1; letter-spacing: -.04em; font-variation-settings: "wdth" 112; }
.gate__line { display: block; animation: words-up .9s var(--ease-out) both; }
.gate__line:nth-child(1) { animation-delay: .9s; }
.gate__line:nth-child(2) { animation-delay: 1.05s; }
.gate__enter { min-width: 132px; min-height: 48px; animation: words-up .8s 1.3s var(--ease-out) both; }

.gate.is-open .gate__half--top { transform: translateY(-100%); }
.gate.is-open .gate__half--bottom { transform: translateY(100%); }
.gate.is-open .gate__seam, .gate.is-open .gate__mark, .gate.is-open .gate__copy { opacity: 0; transition: opacity .35s ease; }
.gate.is-gone { display: none; }

@keyframes seam-draw { from { transform: translateY(-50%) scaleX(0); } to { transform: translateY(-50%) scaleX(1); } }
@keyframes shimmer { to { background-position: 700px 0; } }
@keyframes mark-rise { from { opacity: 0; transform: translate(-50%, -10%) scale(.6); } to { opacity: 1; transform: translate(-50%, -100%) scale(1); } }
@keyframes breathe { 50% { filter: drop-shadow(0 0 28px rgba(125, 151, 255, .95)); } }
@keyframes words-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Field (fixed terrain) ---------- */
.field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.field__canvas { width: 100%; height: 100%; display: block; }
.field__labels { position: absolute; inset: 0; transition: opacity .4s ease; }
.mark { position: absolute; left: 0; top: 0; will-change: transform; }
.mark__dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0 18%, var(--glow-core) 40%, var(--glow) 100%);
  box-shadow: 0 0 12px var(--glow);
}
.mark[data-top] .mark__dot { width: 13px; height: 13px; }
.mark__label {
  position: absolute; left: 10px; top: -34px; display: flex; gap: 8px; align-items: baseline;
  padding: 5px 9px; border: 1px solid rgba(238, 240, 247, .13); border-radius: 999px;
  background: rgba(14, 15, 20, .72); backdrop-filter: blur(10px);
  font-size: .8125rem; white-space: nowrap;
}
.mark__rank { color: var(--ink-3); font-family: var(--font-mono); }
.mark__who { font-weight: 700; }
.mark__amt { color: var(--shield); font-family: var(--font-mono); }

/* ---------- Header ---------- */
.bar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rule); background: rgba(14, 15, 20, .72); backdrop-filter: blur(22px); }
.bar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; }
.bar__actions { display: flex; gap: 8px; }
#nav-connect.is-connected { font-family: var(--font-mono); font-weight: 400; }

/* ---------- Menu ---------- */
/* A panel that drops from under the Menu button; the page stays visible.
   Items are "ghosts": thin, condensed and faint, and they materialise
   (wide, heavy, solid) on hover. */
.menu {
  position: fixed; top: 72px; right: var(--gutter); z-index: 60;
  width: min(520px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100svh - 88px); overflow-x: hidden; overflow-y: auto;
  background: rgba(22, 23, 30, .9); backdrop-filter: blur(22px);
  border: 1px solid var(--rule-strong); border-radius: var(--radius-l);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  visibility: hidden; clip-path: inset(0 0 100% 0 round 16px);
  transition: clip-path .45s var(--ease-in-out), visibility 0s linear .45s;
}
.menu[data-open="true"] {
  visibility: visible; clip-path: inset(0 round 16px);
  transition: clip-path .6s var(--ease-out), visibility 0s;
}
.menu::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% 110%, rgba(125, 151, 255, .2), transparent 70%);
  pointer-events: none;
}
.menu__inner { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 14px 24px 0; }
.menu__nav { position: relative; padding: 0 0 16px; }
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; }

.menu__item {
  display: grid; grid-template-columns: 1.5rem 1fr; align-items: baseline; gap: 2px 12px;
  padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink-3);
}
.menu__list li:last-child .menu__item { border-bottom: 0; }
.menu__word {
  font-family: "Anybody", var(--font-display);
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); line-height: 1.05; letter-spacing: -.01em; white-space: nowrap;
  font-variation-settings: "wdth" 56, "wght" 200;
  color: transparent;
  background: linear-gradient(180deg, rgba(238, 240, 247, .55), rgba(238, 240, 247, .18));
  -webkit-background-clip: text; background-clip: text;
  transition: font-variation-settings .7s var(--ease-out), letter-spacing .7s var(--ease-out), filter .5s ease;
}
.menu__n { font-size: .8125rem; color: var(--ink-3); transition: color var(--dur-2) var(--ease-out); }
.menu__desc { grid-column: 2; font-size: .8125rem; color: var(--ink-3); transition: color var(--dur-2); }

/* The materialise moment */
.menu__item:hover .menu__word, .menu__item:focus-visible .menu__word {
  font-variation-settings: "wdth" 132, "wght" 860;
  letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 0%, var(--glow-core) 35%, var(--glow) 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 22px rgba(125, 151, 255, .45));
}
.menu__item:hover .menu__n, .menu__item:focus-visible .menu__n { color: var(--glow); }
.menu__item:hover .menu__desc, .menu__item:focus-visible .menu__desc { color: var(--shield); }
.menu__item:focus-visible { outline: none; }
.menu__item:focus-visible .menu__word { outline: 2px solid var(--glow); outline-offset: 6px; border-radius: 4px; }
/* Quiet the siblings while one is lit */
.menu__list:hover .menu__item:not(:hover) .menu__word { filter: blur(1.5px); opacity: .6; }

/* Entrance: rows rise in, staggered, after the seam opens */
.menu__list li { opacity: 0; transform: translateY(14px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
.menu[data-open="true"] .menu__list li {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease-out) calc(.12s + var(--i) * 60ms), transform .7s cubic-bezier(.22, 1.3, .36, 1) calc(.12s + var(--i) * 60ms);
}
.menu__seam {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--glow-core), var(--glow) 45%, transparent);
  box-shadow: 0 0 18px rgba(125, 151, 255, .55);
  transition: transform .9s var(--ease-out);
}
.menu[data-open="true"] .menu__seam { transform: scaleX(1); transition-delay: .2s; }

.menu__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 16px 0 20px; font-size: .9375rem; }
.menu__foot a { color: var(--ink-2); text-decoration: none; }
.menu__foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
main, .foot { position: relative; z-index: 1; }
.hero { min-height: calc(100svh - 64px); display: flex; flex-direction: column; }
.ticker { display: flex; align-items: center; gap: 16px; height: 44px; border-bottom: 1px solid var(--rule); background: rgba(14, 15, 20, .6); padding-inline: var(--gutter); }
.ticker__badge { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.ticker__window { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: flex; width: max-content; }
.ticker__list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker__item { display: inline-flex; gap: 8px; padding: 0 18px; font-size: .8125rem; white-space: nowrap; color: var(--ink-2); }
.ticker__item b { color: var(--ink); font-weight: 600; }
.ticker__item .mono { color: var(--shield); }
.ticker__note { font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.crawl { animation: crawl var(--crawl, 80s) linear infinite; }
.crawl:hover { animation-play-state: paused; }
@keyframes crawl { to { transform: translateX(-50%); } }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--shield); display: inline-block; animation: pulse-dot 1.6s var(--ease-in-out) infinite; }
@keyframes pulse-dot { 50% { opacity: .35; transform: scale(.7); } }

.hero__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding-bottom: clamp(48px, 9vh, 96px); }
.hero__title { font-size: var(--step-5); line-height: .95; letter-spacing: -.045em; font-variation-settings: "wdth" 112; text-shadow: 0 2px 40px rgba(14, 15, 20, .8); }
/* Ghost word: "Nobody's" is see-through and glitches into glyphs now and then */
.ghost-word {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(238, 240, 247, .8);
}
.ghost-word.is-glitch {
  color: var(--ink);
  -webkit-text-stroke: 0;
  text-shadow: -3px 0 var(--shield), 3px 0 var(--glow);
}
.hero__lede { max-width: 54ch; color: var(--ink-2); font-size: 1.1875rem; text-shadow: 0 1px 20px rgba(14, 15, 20, .9); }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Bands ---------- */
.band { position: relative; z-index: 1; padding-top: clamp(56px, 8vw, 104px); padding-bottom: 8px; }
.band::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: rgba(14, 15, 20, .78); pointer-events: none; }
.band--last { margin-bottom: 40svh; padding-bottom: clamp(56px, 8vw, 96px); }
.band__head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 8px 24px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 6px solid var(--ink); }
.band__head h2 { font-size: var(--step-3); letter-spacing: -.03em; font-variation-settings: "wdth" 108; }
.band__head p { color: var(--ink-2); }

.run { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.stage { display: flex; flex-direction: column; gap: 10px; padding: 28px 20px 8px 0; }
.stage + .stage { border-left: 1px solid var(--rule); padding-left: 20px; }
.stage p { color: var(--ink-2); font-size: .9375rem; }
.stage__at { font-size: .8125rem; color: var(--glow-ink); }
.stage__cmd { align-self: flex-start; font-size: .8125rem; padding: 4px 8px; border-radius: 6px; background: var(--ground-sunk); color: var(--ink); }

.split { display: grid; font-size: .75rem; }
.split span { display: flex; align-items: center; min-height: 30px; padding-inline: 10px; }
.split__a { background: rgba(125, 151, 255, .22); border: 1px solid var(--glow); border-radius: 6px 6px 0 0; }
.split__b { background: rgba(31, 224, 122, .14); border: 1px solid var(--shield); border-top: 0; border-radius: 0 0 6px 6px; }
.split b { font-weight: 400; }

.weights { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.weights li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: .875rem; }
.weights b { font-size: .75rem; color: var(--ink-3); }
.weights i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--glow), var(--shield)); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot--on { background: var(--shield); }
.dot--off { background: var(--ink-3); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px;
  border: 1px solid var(--rule); border-radius: var(--radius-l);
  background: rgba(22, 23, 30, .82); backdrop-filter: blur(12px);
  transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.card:hover { border-color: var(--glow); transform: translateY(-2px); }
.card[data-phase="public"]:hover { border-color: var(--public); }
.card__head { display: flex; align-items: center; gap: 12px; }
.card__head > div { flex: 1; min-width: 0; display: grid; }
.card__badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ground-sunk); font-weight: 800; }
.card__sub { font-size: .75rem; color: var(--ink-3); }
.card__score { font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem); line-height: 1; letter-spacing: -.02em; }
.card__score--hidden { color: var(--glow); }
.card[data-phase="public"] .card__score { color: var(--public); }
.card__foot { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--ink-2); }
.pill { font-size: .75rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--public); color: var(--public); }
.pill--on { border-color: var(--shield); color: var(--shield); }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.row__tag { font-size: .8125rem; color: var(--glow-ink); }
.row__main { font-weight: 600; }
.row__meta { font-size: .8125rem; color: var(--ink-3); }

.connect { display: grid; gap: 14px; padding-top: 8px; }
.connect__state { display: flex; align-items: center; gap: 16px; }
.connect__addr { font-family: var(--font-mono); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--shield); color: var(--shield); }
.connect__msg { color: var(--ink-2); min-height: 1.5em; }
.connect__msg.is-error { color: var(--public); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--rule); background: var(--ground); }
.foot__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: 40px; }
.foot__line { color: var(--ink-2); margin-top: 10px; }
.foot__cols { display: flex; gap: 48px; }
.foot__cols div { display: grid; gap: 8px; align-content: start; justify-items: start; }
.foot__cols a { text-decoration: none; color: var(--ink-2); }
.foot__cols a:hover { color: var(--ink); }
.foot__base { padding-block: 16px 28px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--ink-3); }

/* ---------- Wallet picker ---------- */
.wallets { width: min(420px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--rule-strong); border-radius: var(--radius-l); background: var(--ground-raised); color: var(--ink); }
.wallets::backdrop { background: rgba(5, 6, 10, .7); backdrop-filter: blur(4px); }
.wallets__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.wallets__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wallets__item { display: flex; justify-content: space-between; width: 100%; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--ground-sunk); color: var(--ink); font: 600 1rem var(--font-display); text-decoration: none; cursor: pointer; }
.wallets__item span + span { font: .8125rem var(--font-mono); color: var(--ink-3); }
.wallets__item.is-ready span + span { color: var(--shield); }
.wallets__item:hover { border-color: var(--glow); }
.wallets__note { margin-top: 14px; font-size: .8125rem; color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .run { grid-template-columns: 1fr 1fr; }
  .stage, .stage + .stage { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
  .stage:nth-child(even) { border-left: 1px solid var(--rule); padding-left: 20px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .run { grid-template-columns: 1fr; }
  .stage:nth-child(even) { border-left: 0; padding-left: 0; }
  .band__head { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr auto; }
  .row__tag { grid-column: 1 / -1; }
  .ticker__note { display: none; }
  .mark__label { display: none; }
  .bar__actions .btn { padding: 0 .9em; }
  .foot__cols { gap: 28px; }
}

/* Touch: no hover, so items show their solid state and description up front */
@media (hover: none), (max-width: 640px) {
  .menu__word {
    font-size: clamp(1.5rem, 1rem + 2.4vw, 2rem);
    font-variation-settings: "wdth" 118, "wght" 800; letter-spacing: -.03em;
    background: linear-gradient(180deg, #fff, var(--glow-core) 40%, var(--glow));
    -webkit-background-clip: text; background-clip: text;
  }
  .menu { top: 68px; }
  .menu__list:hover .menu__item:not(:hover) .menu__word { filter: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .menu, .menu[data-open="true"] { transition: visibility 0s; clip-path: none; }
  .menu__list li, .menu[data-open="true"] .menu__list li { transition: none; transform: none; }
  .menu__word { transition: none; }
  html { scroll-behavior: auto; }
  .gate__seam, .gate__mark, .gate__line, .gate__enter { animation-duration: .01s; animation-delay: 0s; animation-iteration-count: 1; }
  .gate__half { transition-duration: .3s; }
  .crawl { animation-duration: 400s; }
  .live-dot { animation: none; }
  .card { transition: none; }
}
