:root {
  color-scheme: dark;
  --ink: #eef9de;
  --green: #c3ff60;
  --muted: #c1d0bd;
  --line: #a3cf8a45;
  --page: #091a11;
  --pad: clamp(1rem, 4vw, 4rem);
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  color: var(--ink);
  background: var(--page);
  font-family: Outfit, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }

.site-header {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: #08190ee8;
}
.brand, nav { display: flex; align-items: center; }
.brand { gap: .7rem; font-weight: 700; letter-spacing: .06em; }
.brand img { display: block; border: 1px solid #8cba67; border-radius: 6px; }
nav { gap: clamp(.75rem, 2.6vw, 2.25rem); font: .875rem var(--mono); }

.track { position: relative; }
.view {
  position: relative;
  isolation: isolate;
  height: max(650px, 100svh);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 58% 46%, #4b8a42 0, #265e37 32%, transparent 69%),
    linear-gradient(152deg, #091a11 0%, #153922 72%, #0a2015 100%);
}
.motion .track { height: 800vh; }
.motion .view { position: sticky; top: 0; }
.grid, .orbit, .ribbons {
  position: absolute;
  pointer-events: none;
}
.grid {
  inset: 0;
  background:
    linear-gradient(#d0ffc01a 1px, transparent 1px),
    linear-gradient(90deg, #d0ffc01a 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 16%, transparent 78%);
}
.orbit {
  top: 48%;
  left: 50%;
  width: min(85vw, 1000px);
  aspect-ratio: 2.4;
  border: 1px solid #dcffb63b;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
}
.orbit::after {
  content: "";
  position: absolute;
  inset: -9%;
  border: 1px solid #dcffb620;
  border-radius: inherit;
}
.network, .label {
  margin: 0;
  text-transform: uppercase;
  color: var(--green);
  font: 700 .875rem/1.4 var(--mono);
  letter-spacing: .08em;
}
.network {
  position: absolute;
  z-index: 2;
  top: clamp(5.8rem, 15%, 8.5rem);
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: .65rem;
}
.network span { width: 1rem; height: 1px; background: currentColor; }
.hero-title {
  position: absolute;
  inset: 48% 0 auto;
  transform: translateY(-50%);
  margin: 0;
  color: var(--ink);
  font: 400 clamp(3.6rem, 13vw, 12rem)/.98 var(--display);
  text-align: center;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.motion .hero-title {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ribbons { display: none; inset: 0; width: 100%; height: 100%; }
.motion .ribbons { display: block; }
.jacket {
  position: absolute;
  inset: 48% auto auto 50%;
  width: min(48vw, 67svh, 660px);
  margin: 0;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 14px #7dff8b8c) drop-shadow(0 25px 35px #001707b3);
  pointer-events: none;
}
.motion .jacket { will-change: transform; }
.jacket img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(
    42.4% 12.7%, 45% 11.9%, 52.5% 11.4%, 58% 12.6%, 60.3% 15%,
    60.7% 18%, 63.6% 20.5%, 69.6% 23.6%, 73.7% 28%,
    77.1% 36.5%, 79.3% 46.2%, 81.1% 57%, 81.5% 70%,
    80.3% 82%, 79.7% 90.1%, 69.9% 88.6%, 68.2% 73%, 67.6% 64.5%,
    66.2% 77.9%, 61.5% 81.1%, 55% 83.4%, 49.3% 84.2%,
    41% 84.7%, 34.8% 83.5%, 29% 80.7%, 28.6% 73%, 30% 60.8%,
    27.3% 70%, 25.3% 86.4%, 17.2% 87.2%, 17.7% 75%,
    19.2% 61%, 21.7% 46%, 23.9% 35%, 26.1% 27%, 30% 23.8%,
    36.7% 20.6%, 40.8% 18.3%, 41.4% 15.3%
  );
}
.hero-copy {
  position: absolute;
  inset: auto 0 4.95rem;
  padding-inline: var(--pad);
  text-align: center;
}
.hero-copy p {
  max-width: 35ch;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.3;
  text-shadow: 0 2px 12px #021208;
}
.chapter {
  visibility: hidden;
  position: absolute;
  top: 48%;
  z-index: 1;
  width: min(33%, 390px);
  opacity: 0;
}
.chapter-story { left: calc(var(--pad) + 4vw); }
.chapter-token { right: calc(var(--pad) + 4vw); }
.chapter h2, .token-intro h2 {
  margin: 0;
  text-transform: uppercase;
  font: 400 clamp(2.5rem, 6vw, 6rem)/1 var(--display);
}
.chapter p { max-width: 31ch; margin: .8rem 0 0; font-size: clamp(1rem, 1.75vw, 1.25rem); line-height: 1.4; }
.hero-bar {
  position: absolute;
  inset: auto var(--pad) 1rem;
  min-height: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .65rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: .65rem;
  color: var(--muted);
  font: .75rem var(--mono);
}
.sound {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  gap: .5rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.sound:hover { color: var(--green); }
.wave { display: flex; align-items: center; gap: 2px; height: 13px; color: var(--green); }
.wave i { width: 1px; height: 32%; background: currentColor; }
.sound[aria-pressed="true"] .wave i:nth-child(odd) { height: 93%; }
.sound[aria-pressed="true"] .wave i:nth-child(even) { height: 60%; }
.scroll-hint { grid-column: 2; text-align: center; }
.progress {
  grid-column: 3;
  justify-self: end;
  width: clamp(2.5rem, 7vw, 6rem);
  height: 2px;
  background: #caff9c40;
}
.progress::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}
.hero-bar { display: none; }
.motion .hero-bar { display: grid; }

.token-section {
  scroll-margin-top: 4.4rem;
  padding: clamp(3rem, 9vw, 8rem) var(--pad);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at bottom left, #183c24, transparent 70%), #0a1c12;
}
.token-inner {
  max-width: 1220px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}
.token-intro h2 { margin: .55rem 0 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .5rem .9rem;
  border: 1px solid #9bce8073;
  border-radius: 4px;
  background: #102819;
  color: var(--ink);
  font: 700 .875rem/1.2 var(--mono);
  cursor: pointer;
}
.button:hover:not(:disabled) { color: var(--green); border-color: var(--green); }
.button.buy { background: var(--green); color: #122007; }
.button.buy:hover { color: #122007; background: #d5ff94; }
.button:disabled { opacity: .68; cursor: default; }
.contract { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: 7px; background: #12291b; }
.contract-row { display: flex; align-items: center; gap: .85rem; margin-top: .65rem; }
.contract-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-size: .92rem; }
.contract-row .button { flex: none; }
#status { margin: .65rem 0 0; color: var(--muted); line-height: 1.35; }
#status:empty { display: none; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.2rem var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.site-footer p { margin: 0; }
.site-footer a { flex: none; font-family: var(--mono); }

@media (max-width: 760px) {
  .view { height: max(500px, 100svh); }
  .network { top: 6rem; font-size: .78rem; }
  nav, nav .button { font-size: .76rem; }
  .jacket { width: min(94vw, 60svh); }
  .hero-title { font-size: clamp(3.35rem, 14.8vw, 8rem); }
  .orbit { width: 91vw; aspect-ratio: 1.55; }
  .hero-copy { bottom: 5.6rem; }
  .chapter { top: auto; bottom: 5.6rem; left: var(--pad); right: var(--pad); width: auto; text-align: center; }
  .chapter p { margin-inline: auto; }
  .token-inner { grid-template-columns: 1fr; }
}
@media (max-height: 649px) {
  .view { height: 100svh; min-height: 370px; }
  .network { top: 5.15rem; }
  .hero-copy, .chapter { bottom: 4.5rem; }
}
@media (max-width: 400px) {
  .contract-row { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .motion .track { height: auto; }
  .motion .view { position: relative; }
}
