:root {
  --lime: #ccff00;
  --ink: #f4f7ea;
  --muted: #b7c3a6;
  --bg: #070806;
  --card: rgba(12, 16, 8, 0.78);
  --line: rgba(204, 255, 0, 0.32);
  --pink: #ff4f9a;
  --dock: 86px;
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-story: "Literata", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.45;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--lime); }
button, input { font: inherit; }

.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.wash {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(204, 255, 0, 0.16), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(204, 255, 0, 0.1), transparent 22%),
    linear-gradient(to bottom, rgba(7, 8, 6, 0.2) 0%, rgba(7, 8, 6, 0.05) 34%, rgba(7, 8, 6, 0.55) 70%, var(--bg) 100%);
}
.wash::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 70%;
  left: -20%;
  top: -10%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.14), transparent 60%);
  animation: drift 12s ease-in-out infinite alternate;
}
@keyframes drift {
  to { transform: translate3d(6%, 8%, 0) scale(1.12); }
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand img {
  width: 36px;
  height: 36px;
  animation: wag 2.2s ease-in-out infinite;
  transform-origin: 50% 80%;
}
a.chip { text-decoration: none; }
.chip {
  margin: 0;
  border: 1px solid var(--line);
  color: var(--lime);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(7, 8, 6, 0.55);
  animation: glow 1.8s ease-in-out infinite;
}

main {
  position: relative;
  z-index: 2;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 20px calc(var(--dock) + 18px);
}
.kicker {
  margin: 0 0 8px;
  color: var(--lime);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
h1 {
  margin: 0;
  font-size: clamp(52px, 15vw, 120px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 100%;
}
h1 .line {
  display: block;
  animation: slam 0.7s cubic-bezier(0.16, 0.9, 0.24, 1) both;
}
h1 .line:nth-child(2) { animation-delay: 0.12s; }
h1 em {
  font-style: normal;
  color: var(--lime);
  display: inline-block;
  animation: hood 2.6s ease-in-out 0.8s infinite;
}
.ticker {
  display: flex;
  gap: 18px;
  overflow: hidden;
  margin-top: 14px;
  max-width: 100%;
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker p {
  margin: 0;
  white-space: nowrap;
  animation: marquee 14s linear infinite;
}
.rise { animation: slam 0.6s both; }
.lede, .hero-row, .count { animation: slam 0.7s both; }
.lede { animation-delay: 0.22s; }
.hero-row { animation-delay: 0.32s; }
.count { animation-delay: 0.42s; }
.lede {
  max-width: min(38ch, 100%);
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--font-story);
  font-size: 18px;
}
.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.btn-lime { background: var(--lime); color: #14180c; }
.btn-blink {
  animation: blinkyg 0.7s steps(1, end) infinite;
}
@keyframes blinkyg {
  0% { background: #ffe600; box-shadow: 0 0 18px #ffe600; }
  50% { background: #ccff00; box-shadow: 0 0 18px #ccff00; }
}
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
button.btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
#send:not(:disabled) {
  background: var(--lime);
  color: #14180c;
  border-color: var(--lime);
}
.count {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.count div {
  min-width: 64px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 10px 10px;
}
.count b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--lime);
}
.count b.flip { animation: digit 0.4s ease; }
.count span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sheet {
  margin: 8px 12px 18px;
  background: rgba(7, 8, 6, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 20px 32px;
}
.idx {
  margin: 0;
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h2 {
  margin: 8px 0 12px;
  font-size: clamp(36px, 8vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.story p, .fine, .phase p, .nzz p {
  font-family: var(--font-story);
  font-size: 17px;
  color: #e7edd9;
}
.story p { margin: 0 0 16px; }
.pull {
  margin: 8px 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--lime);
  font-family: var(--font-story);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
}
.portrait {
  border-radius: 22px;
  border: 1px solid var(--line);
  margin: 8px 0 18px;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 280px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 -4px;
}
.rail figure {
  scroll-snap-align: start;
  margin: 0;
  background: #10160c;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  animation: floaty 4.5s ease-in-out infinite;
}
.rail figure:nth-child(odd) { animation-delay: -1.4s; }
.rail img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.rail figcaption {
  padding: 10px 12px 12px;
  font-size: 13px;
  color: var(--muted);
}
.rail strong { display: block; color: var(--ink); font-size: 15px; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.stats div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.stats b {
  display: block;
  color: var(--lime);
  font-size: 28px;
  letter-spacing: -0.04em;
}
.stats span { color: var(--muted); font-size: 13px; }

.phases { display: grid; gap: 12px; }
.phase {
  border-radius: 22px;
  padding: 16px;
  background: #10160c;
  border: 1px solid var(--line);
}
.phase.now { background: var(--lime); color: #14180c; }
.phase.now p, .phase.now .tag { color: #24300a; }
.tag {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 800;
}
.phase h3 { margin: 6px 0; font-size: 28px; letter-spacing: -0.04em; }
.phase p { margin: 0; }
.mint-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}
.wl-form { display: grid; gap: 8px; margin-top: 18px; }
.wl-form label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.wl-form input {
  width: 100%;
  background: #10160c;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font: 16px/1.4 var(--font-display);
}
.wl-form .hint { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.need {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
  display: grid;
  gap: 10px;
}
.preview {
  margin: 0;
  white-space: pre-wrap;
  background: #070806;
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
  font: 14px/1.45 var(--font-story);
}
#post-link[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
#send:disabled { opacity: 0.45; }
.spots { margin: 8px 0 18px; }
.spots b {
  font-size: clamp(56px, 12vw, 84px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--lime);
}
.spots span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
.spots i {
  display: block;
  height: 8px;
  margin-top: 12px;
  border-radius: 99px;
  background: #1c2414;
  overflow: hidden;
}
.spots em {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
}
.xlink { font-weight: 800; text-underline-offset: 3px; }

.dock {
  position: fixed;
  z-index: 6;
  left: 8px;
  right: 8px;
  width: auto;
  bottom: calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(8, 10, 6, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  padding: 6px 4px;
}
.dock a {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 2px 8px;
  border-radius: 18px;
}
.dock svg { display: block; margin: 0 auto 3px; }
.dock a[aria-current="page"] {
  color: #14180c;
  background: var(--lime);
}

@media (max-width: 700px) {
  .chip { display: none; }
  h1 { font-size: clamp(44px, 12.4vw, 72px); }
  .lede { font-size: 16px; }
  .dock a { font-size: 9px; letter-spacing: 0.02em; }
  .count { gap: 6px; }
  .count div { min-width: 0; flex: 1; padding: 8px 4px 10px; }
  .count b { font-size: 22px; }
}

@media (min-width: 900px) {
  .hero { padding: 0 8vw 48px; }
  .lede { font-size: 20px; }
  .sheet {
    margin: 12px auto 24px;
    width: min(1080px, calc(100% - 48px));
    padding: 48px 48px 56px;
  }
  .story-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
  }
  .portrait { position: sticky; top: 84px; }
  .rail {
    grid-auto-columns: 240px;
  }
  .phases { grid-template-columns: 1fr 1fr; }
  .nzz-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
  }
}

@keyframes slam {
  from { opacity: 0; transform: translateY(28px) rotate(-1.5deg); }
  to { opacity: 1; transform: none; }
}
@keyframes hood {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-8px); }
}
@keyframes wag {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(12deg); }
}
@keyframes glow {
  50% { box-shadow: 0 0 0 7px rgba(204, 255, 0, 0.16); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 18px)); }
}
@keyframes digit {
  0% { transform: translateY(-10px) scale(1.18); }
  100% { transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage { display: none; }
  *, *::before, *::after {
    animation: none !important;
  }
}
