:root {
  --ink: #17212a;
  --navy: #073b7a;
  --blue: #075fbe;
  --red: #d31f14;
  --red-dark: #8f140d;
  --cream: #f6dfb6;
  --paper: #f1c989;
  --gold: #dc9b3b;
  --sage: #6e8d87;
  --white: #fff8e8;
  --shadow: 0 24px 70px rgba(38, 20, 7, .32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(7, 95, 190, .38), transparent 22rem),
    radial-gradient(circle at 20% 0%, rgba(255, 248, 232, .95), transparent 34rem),
    linear-gradient(135deg, #e8b365, #f8dfad 42%, #a94b2d 100%);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .24;
  mix-blend-mode: multiply;
  background-image:
    repeating-radial-gradient(circle at 10% 20%, rgba(23, 33, 42, .16) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(25deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 5px);
}

.starscape {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.starscape span {
  position: absolute;
  width: 18px;
  aspect-ratio: 1;
  background: var(--white);
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 69%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
  opacity: .42;
  animation: drift 12s ease-in-out infinite;
}

.starscape span:nth-child(1) { left: 8%; top: 18%; width: 28px; }
.starscape span:nth-child(2) { right: 12%; top: 30%; animation-delay: -3s; }
.starscape span:nth-child(3) { left: 22%; bottom: 18%; width: 14px; animation-delay: -5s; }
.starscape span:nth-child(4) { right: 30%; bottom: 14%; width: 34px; animation-delay: -7s; }
.starscape span:nth-child(5) { left: 54%; top: 11%; width: 12px; animation-delay: -9s; }

.sky-ribbons {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .38;
}

.sky-ribbons span {
  position: absolute;
  left: -20vw;
  width: 140vw;
  height: 90px;
  background: linear-gradient(90deg, transparent, rgba(211, 31, 20, .7), rgba(255, 248, 232, .9), rgba(7, 95, 190, .72), transparent);
  filter: blur(.4px);
  transform: rotate(-8deg);
  animation: ribbonSweep 18s ease-in-out infinite;
}

.sky-ribbons span:nth-child(1) { top: 18%; animation-delay: -2s; }
.sky-ribbons span:nth-child(2) { top: 48%; height: 58px; animation-delay: -8s; opacity: .62; }
.sky-ribbons span:nth-child(3) { top: 78%; height: 72px; animation-delay: -14s; opacity: .72; }

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 10;
  width: min(1180px, calc(100% - 28px));
  height: 68px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(255, 248, 232, .55);
  border-radius: 8px;
  background: rgba(31, 20, 13, .58);
  color: var(--white);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.hero-actions,
.closing-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 28px;
  letter-spacing: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 248, 232, .6);
}

.site-header nav {
  justify-content: center;
  gap: clamp(12px, 3vw, 36px);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.site-header nav a {
  opacity: .88;
  transition: color .2s ease, opacity .2s ease;
}

.site-header nav a:hover {
  color: var(--gold);
  opacity: 1;
}

.nav-buy,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(48, 17, 8, .26);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.nav-buy {
  padding: 0 22px;
  background: var(--red);
  color: var(--white);
}

.button {
  padding: 0 24px;
  border: 2px solid rgba(255, 248, 232, .8);
}

.button:hover,
.nav-buy:hover {
  transform: translateY(-2px);
  filter: saturate(1.1);
  box-shadow: 0 20px 38px rgba(48, 17, 8, .34);
}

.primary {
  background: linear-gradient(135deg, var(--red), #f15925);
  color: var(--white);
}

.secondary {
  background: rgba(255, 248, 232, .9);
  color: var(--navy);
}

.wide {
  width: fit-content;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(118deg, transparent 0 38px, rgba(255, 248, 232, .08) 39px 41px, transparent 42px 82px);
  mix-blend-mode: screen;
  animation: lightMarch 9s linear infinite;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.05);
  z-index: -3;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 14, 18, .8), rgba(10, 14, 18, .18) 52%, rgba(10, 14, 18, .66)),
    linear-gradient(0deg, rgba(26, 14, 7, .96), transparent 46%);
}

.hero-content {
  width: min(780px, calc(100% - 36px));
  margin: 0 auto 118px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(62px, 12vw, 154px);
  line-height: .82;
  letter-spacing: 0;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .45);
}

.hero-copy {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
  font-weight: 800;
  color: #fff1cf;
}

.hero-actions,
.closing-actions {
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-tape {
  position: absolute;
  left: -3vw;
  right: -3vw;
  bottom: 28px;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 64px);
  padding: 12px;
  background: linear-gradient(90deg, var(--red), var(--white) 34%, var(--blue) 68%, var(--red));
  color: var(--ink);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(22px, 4vw, 46px);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.ticker {
  display: flex;
  overflow: hidden;
  border-block: 3px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(28px, 5vw, 64px);
  white-space: nowrap;
}

.ticker div {
  display: flex;
  min-width: max-content;
  animation: scroll 28s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
}

.ticker span::after {
  content: "";
  width: 16px;
  aspect-ratio: 1;
  margin-left: 24px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 69%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
}

.section-grid,
.poster-band,
.dreams,
.token-board,
.roadmap,
.closing {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.manifesto {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(76px, 10vw, 130px) 0;
}

h2 {
  margin-bottom: 18px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(48px, 8vw, 112px);
  line-height: .88;
  letter-spacing: 0;
}

.copy-stack {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.55;
}

.poster-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: clamp(70px, 10vw, 130px);
}

.poster-band article,
.token-card,
.dream-card,
.steps article {
  border: 2px solid rgba(23, 33, 42, .74);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, .78), rgba(240, 197, 127, .8)),
    var(--paper);
  box-shadow: var(--shadow);
}

.poster-band article {
  min-height: 250px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.poster-band article,
.token-card,
.steps article {
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.poster-band article:hover,
.token-card:hover,
.steps article:hover {
  transform: translateY(-6px) rotate(var(--tilt, 0deg));
  filter: saturate(1.05);
  box-shadow: 0 30px 76px rgba(38, 20, 7, .4);
}

.poster-band article::before {
  content: "";
  position: absolute;
  inset: auto -20% -32% 12%;
  height: 80px;
  background: linear-gradient(180deg, var(--red) 0 31%, var(--white) 31% 58%, var(--blue) 58% 100%);
  border-radius: 50%;
  transform: rotate(-7deg);
  opacity: .82;
}

.poster-band strong,
.steps span {
  color: var(--red-dark);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 36px;
}

h3 {
  margin-bottom: 10px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 40px;
  line-height: .95;
  letter-spacing: 0;
}

.poster-band p,
.steps p,
.token-copy p {
  font-weight: 800;
  line-height: 1.55;
}

.dreams {
  position: relative;
  margin-bottom: clamp(76px, 10vw, 132px);
  padding: clamp(34px, 6vw, 70px) 0;
}

.dreams::before {
  content: "";
  position: absolute;
  inset: 0 50% auto auto;
  width: 52vw;
  height: 52vw;
  max-height: 560px;
  border: 2px solid rgba(255, 248, 232, .52);
  border-radius: 999px;
  transform: translate(42%, -12%);
  background:
    conic-gradient(from 20deg, rgba(211, 31, 20, .24), rgba(255, 248, 232, .08), rgba(7, 95, 190, .26), rgba(211, 31, 20, .24));
  animation: slowSpin 28s linear infinite;
  pointer-events: none;
}

.dreams-intro {
  position: relative;
  max-width: 820px;
  margin-bottom: 30px;
}

.dreams-intro p:last-child {
  max-width: 690px;
  font-weight: 900;
  line-height: 1.55;
}

.dream-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  perspective: 1200px;
}

.dream-card {
  position: relative;
  min-height: 372px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.dream-card:nth-child(4n + 1) { --accent: var(--red); }
.dream-card:nth-child(4n + 2) { --accent: var(--blue); }
.dream-card:nth-child(4n + 3) { --accent: var(--gold); }
.dream-card:nth-child(4n + 4) { --accent: var(--sage); }

.dream-card::before,
.dream-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.dream-card::before {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 24%, rgba(12, 10, 9, .06) 48%, rgba(12, 10, 9, .84) 100%),
    radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 248, 232, .42), transparent 14rem);
  opacity: .92;
}

.dream-card::after {
  top: -40%;
  left: -85%;
  z-index: 2;
  width: 52%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 232, .42), transparent);
  transform: rotate(18deg);
  animation: cardShine 6.5s ease-in-out infinite;
}

.dream-card:nth-child(2n)::after { animation-delay: -2.5s; }
.dream-card:nth-child(3n)::after { animation-delay: -4s; }

.dream-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.04);
  transition: transform .45s ease, filter .45s ease;
}

.dream-card span,
.dream-card h3 {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 3;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .5);
}

.dream-card span {
  top: 16px;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 248, 232, .7);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 80%, rgba(23, 33, 42, .75));
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dream-card h3 {
  bottom: 18px;
  margin: 0;
  color: var(--white);
  font-size: clamp(32px, 3.3vw, 48px);
}

.dream-card:hover {
  transform: translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  filter: saturate(1.08);
  box-shadow: 0 34px 86px rgba(38, 20, 7, .44);
}

.dream-card:hover img {
  transform: scale(1.09);
}

.token-board {
  display: grid;
  grid-template-columns: minmax(240px, .78fr) 1.22fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: clamp(76px, 10vw, 132px);
}

.token-card {
  padding: clamp(22px, 4vw, 42px);
}

.logo-card {
  display: grid;
  place-items: center;
  background: var(--ink);
}

.logo-card img {
  width: min(100%, 380px);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .42);
}

.token-copy h2 {
  color: var(--red);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0;
}

.stats span {
  min-height: 76px;
  padding: 14px;
  border-radius: 6px;
  background: rgba(255, 248, 232, .72);
  font-weight: 900;
  text-transform: uppercase;
}

.stats b {
  display: block;
  color: var(--red-dark);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 24px;
}

.ca-stat {
  grid-column: 1 / -1;
  text-transform: none;
}

.ca-copy {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  word-break: break-all;
  cursor: pointer;
}

.ca-copy:hover {
  color: var(--red-dark);
}

.ca-copy.is-copied {
  color: var(--blue);
}

.roadmap {
  padding-bottom: clamp(76px, 10vw, 128px);
}

.roadmap > h2,
.roadmap > .section-kicker {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps article {
  min-height: 250px;
  padding: 24px;
  transform: rotate(var(--tilt));
}

.steps article:nth-child(1) { --tilt: -1.1deg; }
.steps article:nth-child(2) { --tilt: .7deg; }
.steps article:nth-child(3) { --tilt: -0.4deg; }

.closing {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  margin-bottom: 44px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(7, 59, 122, .95), rgba(23, 33, 42, .9)),
    var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.closing h2 {
  margin-bottom: 0;
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 34px;
  color: rgba(23, 33, 42, .78);
  font-size: 13px;
  font-weight: 800;
}

footer a {
  color: var(--red-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  50% {
    transform: translate3d(12px, -18px, 0) rotate(12deg);
  }
}

@keyframes ribbonSweep {
  50% {
    transform: translateX(9vw) rotate(-4deg);
  }
}

@keyframes lightMarch {
  to {
    background-position: 160px 0;
  }
}

@keyframes slowSpin {
  to {
    transform: translate(42%, -12%) rotate(360deg);
  }
}

@keyframes cardShine {
  0%, 55% {
    left: -85%;
  }
  78%, 100% {
    left: 132%;
  }
}

@keyframes scroll {
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: auto auto;
    height: auto;
  }

  .site-header nav {
    display: none;
  }

  .manifesto,
  .token-board,
  .closing {
    grid-template-columns: 1fr;
  }

  .poster-band,
  .dream-gallery,
  .steps,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 760px;
  }

  .hero-art {
    object-position: 45% center;
  }

  .hero-content {
    margin-bottom: 132px;
  }

  .dream-card {
    min-height: 420px;
  }

  .closing-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand span {
    display: none;
  }

  .nav-buy {
    padding-inline: 18px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button,
  .hero-actions,
  .closing-actions {
    width: 100%;
  }

  .hero-tape {
    justify-content: flex-start;
    overflow: hidden;
  }

  .hero-tape span {
    min-width: max-content;
  }

  .dream-card {
    min-height: 340px;
  }
}

@media (min-width: 681px) and (max-width: 1080px) {
  .dream-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
