/* =====================================================================
   Mycelium - design tokens (locked)

   palette, sampled off the approved avatar (chrome tubes on a black void):
     void       #050608  page background, matches the art's own black
     chrome-lo  #0a141c  tube base shadow pass
     chrome-mid #5f83a3  tube body, sampled off the cap's mid-tone
     chrome-hi  #e2f1fc  specular streak, sampled near the cap highlight
     lime       #ccff00  robinhood chain accent - a thin glow on some
                          threads and the copied-state flash only, never
                          a fill, per the batch-wide accent-only rule
     mist       #93a6b4  small print / annotations

   type: Michroma (display - the tagline, the node label, the HUD chips;
         a single-weight geometric face with a metallic 90s-tech read,
         unclaimed elsewhere this batch) + PT Mono (CA, depth readout,
         annotations - real case, always copyable)
   spacing: generous, the network itself is the layout - text sits in a
            handful of fixed spots, not a grid
   radius: 3px, just enough to soften a button edge; the tubes carry all
           the curvature this site needs
   motion: a chevron bob inviting the first scroll, starlight twinkle,
           and a few lime signal pulses that keep travelling down chosen
           root paths the whole time you are on the page - the tubes
           themselves never move, only what runs through them does
   ===================================================================== */

@font-face { font-family: 'Michroma'; src: url('assets/fonts/michroma-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'PT Mono'; src: url('assets/fonts/pt-mono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --void: #050608;
  --chrome-lo: #0a141c;
  --chrome-mid: #5f83a3;
  --chrome-hi: #e2f1fc;
  --lime: #ccff00;
  --mist: #93a6b4;

  --font-display: 'Michroma', 'Arial Narrow', sans-serif;
  --font-mono: 'PT Mono', ui-monospace, 'SFMono-Regular', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }

body {
  background: var(--void);
  color: var(--chrome-hi);
  font-family: var(--font-mono);
  min-height: 100vh;
}

a { color: inherit; }

#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.hud > * {
  background: rgba(5, 8, 10, 0.55);
  border: 1px solid rgba(95, 131, 163, 0.35);
  padding: 5px 9px;
  border-radius: 3px;
  backdrop-filter: blur(2px);
  white-space: nowrap;
}

.ticker-chip { color: var(--chrome-hi); font-weight: 700; }
.depth-readout { color: var(--lime); }
.chain-tag { color: var(--mist); display: none; }

@media (min-width: 640px) {
  .chain-tag { display: inline; }
}

main { position: relative; z-index: 1; }

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vh, 28px);
  padding: 0 20px;
  text-align: center;
}

.cap-frame {
  width: min(560px, 82vw);
}

.cap-art {
  display: block;
  width: 100%;
  height: auto;
}

.tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(11px, 2.4vw, 15px);
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: var(--chrome-hi);
  max-width: 34ch;
}

.scroll-cue {
  appearance: none;
  background: rgba(5, 8, 10, 0.6);
  border: 1px solid rgba(95, 131, 163, 0.3);
  border-radius: 3px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 14px;
  backdrop-filter: blur(2px);
  transition: opacity 200ms ease;
  pointer-events: auto;
}

.scroll-cue svg { animation: cue-bob 2.2s ease-in-out infinite; }

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 1; }
}

.world {
  position: relative;
  padding-bottom: 10vh;
}

.spacer { width: 100%; }

.annot {
  max-width: 280px;
  margin: 0 auto;
  padding: 10px 14px;
  border-left: 1px solid rgba(147, 166, 180, 0.4);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.annot-1 { margin-left: max(6vw, calc(50% - 420px)); margin-right: auto; text-align: left; }
.annot-2 { margin-right: max(6vw, calc(50% - 420px)); margin-left: auto; text-align: right; border-left: none; border-right: 1px solid rgba(147, 166, 180, 0.4); }

.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 0 20px;
}

.node-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mist);
  text-transform: lowercase;
}

.ca {
  appearance: none;
  background: rgba(6, 12, 18, 0.75);
  border: 1px solid rgba(204, 255, 0, 0.45);
  color: var(--chrome-hi);
  font-family: var(--font-mono);
  font-size: clamp(13px, 3.6vw, 16px);
  letter-spacing: 0.02em;
  padding: 12px 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.ca:hover { border-color: var(--lime); }
.ca.copied { background: rgba(204, 255, 0, 0.16); border-color: var(--lime); color: var(--lime); }

.chips {
  display: flex;
  gap: 10px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(95, 131, 163, 0.5);
  color: var(--chrome-hi);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 3px;
  transition: border-color 120ms ease, color 120ms ease;
}

.chip:hover { border-color: var(--lime); color: var(--lime); }

.network-line {
  margin: 4px 0 0;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none; }
}
