:root {
  --soot: #12100b;
  --ink: #1a1710;
  --paper: #f4ebd2;
  --gold: #f0c400;
  --gold-hot: #ffd84a;
  --mute: #b3a57a;
  --line: rgba(240, 196, 0, 0.22);
  --glass: rgba(18, 16, 11, 0.72);
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --font: "Sora", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--paper);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  background:
    radial-gradient(880px 520px at 88% -10%, rgba(240, 196, 0, 0.16), transparent 58%),
    radial-gradient(720px 480px at 6% 18%, rgba(240, 196, 0, 0.07), transparent 52%),
    radial-gradient(640px 420px at 70% 108%, rgba(160, 110, 20, 0.12), transparent 50%),
    var(--soot);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); }
::selection { background: var(--gold); color: #1a1400; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#formula, .haze, .grain, .grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
#formula { z-index: 0; width: 100%; height: 100%; }
.haze {
  z-index: 0;
  background:
    radial-gradient(circle at 22% 74%, rgba(240, 196, 0, 0.05), transparent 26%),
    radial-gradient(circle at 78% 28%, rgba(255, 216, 74, 0.05), transparent 24%);
  animation: haze 22s ease-in-out infinite alternate;
}
.grain {
  z-index: 1;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
}
.grid {
  z-index: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(240, 196, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 196, 0, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 78%);
  animation: gridshift 28s linear infinite;
}
.rail {
  display: none;
  position: fixed;
  left: 1.15rem;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: rgba(179, 165, 122, 0.55);
}
.seek {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-hot));
  box-shadow: 0 0 14px var(--gold);
}

.shell {
  width: min(1120px, calc(100% - 8vw));
  margin: 0 auto;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 6vw;
  background: rgba(18, 16, 11, 0.28);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.bar.stuck {
  background: rgba(18, 16, 11, 0.88);
  border-bottom-color: var(--line);
}
.mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mark img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(240, 196, 0, 0.45), 0 0 18px rgba(240, 196, 0, 0.28);
}
.mark strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.mark small {
  display: block;
  margin-top: 0.18rem;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}
.links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.links a {
  color: var(--mute);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.links a:hover { color: var(--paper); }
.xbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(240, 196, 0, 0.06);
}
.xbtn:hover { border-color: var(--gold); }
.menu {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}
.menu span:not(.sr) {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1px;
  background: var(--paper);
}
.menu span:nth-child(1) { top: 16px; }
.menu span:nth-child(2) { top: 24px; }

.hero {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 4.2rem;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse 1.8s ease-in-out infinite;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.4rem, 9vw, 7.4rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.03em;
}
.ticker-name {
  margin: 0.85rem 0 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.42em;
}
.lede {
  max-width: 34rem;
  margin: 1.35rem 0 0;
  color: #ddd3b3;
  font-size: 1.08rem;
  font-weight: 300;
}
.ca-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.9rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 1.7rem;
  padding: 0.7rem 0.75rem 0.7rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(240, 196, 0, 0.05);
}
.ca-box span {
  color: var(--mute);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ca-box code {
  font-size: 0.78rem;
  word-break: break-all;
}
.ca-box button {
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1a1400;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.ca-box button:hover { background: var(--gold-hot); }
.ca-box button.done { transform: scale(0.97); }

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.15rem;
  border: 1px solid var(--gold);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.pill img { width: 18px; height: 18px; }
.pill.gold {
  background: var(--gold);
  color: #1a1400;
  box-shadow: 0 0 24px rgba(240, 196, 0, 0.22);
}
.pill.gold img { filter: brightness(0); }
.pill.ink { background: transparent; color: var(--paper); }
.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(240, 196, 0, 0.16);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.8rem 0 0;
}
.quotes div {
  padding: 0.75rem 0.8rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(240, 196, 0, 0.06), transparent);
}
.quotes dt {
  color: var(--mute);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.quotes dd {
  margin: 0.28rem 0 0;
  font-family: var(--mono);
  font-size: 0.92rem;
}
.quotes dd.up { color: #d8f0a8; }
.quotes dd.down { color: #e7a18a; }

.flask {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  transition: transform 0.25s ease-out;
}
.orbit {
  position: absolute;
  width: min(420px, 92%);
  animation: spin 28s linear infinite;
}
.orbit circle:not(.bead) {
  fill: none;
  stroke: rgba(240, 196, 0, 0.28);
  stroke-dasharray: 4 10;
}
.orbit .bead { fill: var(--gold); }
.orbit .bead.delay { animation: pulse 2.4s ease-in-out infinite 0.6s; }
.hex {
  position: relative;
  z-index: 1;
  width: min(280px, 68vw);
  aspect-ratio: 1;
  clip-path: polygon(25% 4%, 75% 4%, 98% 50%, 75% 96%, 25% 96%, 2% 50%);
  box-shadow: 0 0 60px rgba(240, 196, 0, 0.22);
  animation: breathe 6s ease-in-out infinite;
}
.hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.caption {
  position: relative;
  z-index: 1;
  margin: 1.4rem 0 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tape {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(240, 196, 0, 0.05);
}
.tape-run {
  display: flex;
  width: max-content;
  animation: tape 28s linear infinite;
}
.tape p {
  margin: 0;
  padding: 0.7rem 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.tape em {
  margin: 0 0.9rem;
  color: var(--gold);
  font-style: normal;
}

.about, .buy, .chart, .join {
  position: relative;
  z-index: 2;
  padding: 6.2rem 0;
}
.head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.head span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}
.head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 0.95;
}
.lead {
  max-width: 38rem;
  margin: 0 0 2.2rem;
  color: var(--mute);
}

.ledger {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
}
.manifesto, .tiles article, .ideas li, .protocol li, .door {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(240, 196, 0, 0.055), rgba(18, 16, 11, 0.35));
}
.manifesto { padding: 1.7rem 1.6rem 1.8rem; }
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.manifesto h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1.05;
}
.manifesto p { margin: 0 0 0.9rem; color: #ddd3b3; }
.manifesto p:last-child { margin-bottom: 0; }
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.tiles article { padding: 1.1rem 1rem; }
.tiles h3, .ideas span, .protocol em {
  margin: 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tiles p {
  margin: 0.45rem 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
}

.ideas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.ideas li { padding: 1.25rem 1.15rem; }
.ideas strong {
  display: block;
  margin: 0.55rem 0 0.4rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
}
.ideas p { margin: 0; color: var(--mute); }

.protocol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.protocol li {
  position: relative;
  padding: 1.4rem 1.3rem 1.5rem;
  overflow: hidden;
}
.protocol li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.6s ease;
}
.protocol li.in::after { height: 100%; }
.protocol h3 {
  margin: 0.55rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.7rem;
}
.protocol p { margin: 0; color: #ddd3b3; }
.protocol code {
  display: block;
  margin: 0.9rem 0 0.55rem;
  color: var(--gold);
  font-size: 0.74rem;
  word-break: break-all;
}
.spec {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.spec li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  border-bottom: 1px solid rgba(240, 196, 0, 0.12);
  font-size: 0.82rem;
}
.spec span { color: var(--mute); }
.spec b { font-weight: 500; font-family: var(--mono); font-size: 0.74rem; }
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0.9rem 0 0;
  color: var(--gold);
  font-size: 0.88rem;
}
.textlink:hover { color: var(--gold-hot); }

.scope {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0a07;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.scope iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

.plate {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0a07;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.plate img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  animation: platein 1.4s ease both;
}
.doors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.door {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.95rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.door:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(240, 196, 0, 0.08);
}
.door img { width: 22px; height: 22px; flex: 0 0 auto; }
.door strong { display: block; font-size: 0.95rem; }
.door small { color: var(--mute); font-size: 0.74rem; }

.end {
  position: relative;
  z-index: 2;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.86rem;
}
.end-row {
  display: grid;
  gap: 0.35rem;
  text-align: center;
}
.end-ca {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.74rem;
  word-break: break-all;
}

.js .rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .rise.in {
  opacity: 1;
  transform: none;
}

@keyframes haze {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
}
@keyframes gridshift {
  from { background-position: 0 0; }
  to { background-position: 72px 72px; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@keyframes tape { to { transform: translateX(-50%); } }
@keyframes platein {
  from { transform: scale(1.04); opacity: 0.5; }
  to { transform: none; opacity: 1; }
}

@media (max-width: 980px) {
  .hero-split, .ledger, .ideas, .protocol, .doors, .quotes {
    grid-template-columns: 1fr 1fr;
  }
  .quotes { grid-template-columns: 1fr 1fr; }
  .hero-split { gap: 2.2rem; }
}
@media (max-width: 760px) {
  .menu { display: block; }
  .links {
    display: none;
    position: absolute;
    top: 100%;
    right: 4vw;
    left: 4vw;
    padding: 1rem 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(18, 16, 11, 0.96);
    border: 1px solid var(--line);
  }
  .links.open { display: flex; }
  .hero { padding-top: 3.4rem; }
  .hero-split, .ledger, .ideas, .protocol, .doors {
    grid-template-columns: 1fr;
  }
  .scope iframe { height: 480px; }
}
@media (min-width: 1200px) {
  .rail { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .rise { opacity: 1; transform: none; }
}
