:root {
  --ink: #120e08;
  --ink-2: #1b140c;
  --ink-3: #261c10;
  --gold: #d4a017;
  --gold-hot: #f0c34a;
  --mustard: #c4921a;
  --cream: #f3ead4;
  --paper: #efe2c4;
  --paper-ink: #1a1408;
  --line: rgba(243, 234, 212, 0.14);
  --shadow: 8px 12px 0 rgba(12, 8, 4, 0.35);
  --cut: 0 10px 24px rgba(12, 8, 4, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--ink);
  color: var(--cream);
  font-family: "Newsreader", "Times New Roman", serif;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.grain,
.glowfield,
#sparks,
.flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: 8;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grain-shift 8s steps(6) infinite;
}

.glowfield {
  z-index: 0;
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(212, 160, 23, 0.16), transparent 58%),
    radial-gradient(700px 440px at 88% 18%, rgba(240, 195, 74, 0.08), transparent 60%),
    radial-gradient(800px 500px at 50% 100%, rgba(196, 146, 26, 0.1), transparent 55%),
    linear-gradient(180deg, #161009 0%, #120e08 40%, #0d0a06 100%);
}

#sparks {
  z-index: 1;
}

.edge {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
  z-index: 21;
  background: linear-gradient(180deg, var(--gold-hot), var(--gold), #8a6410, var(--gold-hot));
  background-size: 100% 220%;
  animation: edge-flow 7s linear infinite;
  box-shadow: 0 0 18px rgba(240, 195, 74, 0.35);
}

@keyframes edge-flow {
  to { background-position: 0 220%; }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
}

::-webkit-scrollbar-track {
  background: #0c0906;
}

.flash {
  z-index: 9;
  opacity: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(240, 195, 74, 0.18) 48%, transparent 72%);
}

.flash.go {
  animation: strike 0.45s ease;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

@keyframes strike {
  0% { opacity: 0; }
  15% { opacity: 1; }
  30% { opacity: 0.15; }
  50% { opacity: 0.7; }
  100% { opacity: 0; }
}

.mast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 32px;
  background: rgba(18, 14, 8, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.mast.tight {
  background: rgba(18, 14, 8, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 3px 4px 0 rgba(12, 8, 4, 0.4);
  animation: coin-bob 4.5s ease-in-out infinite;
}

.brand strong,
.brand span {
  font-family: "Bungee", sans-serif;
  letter-spacing: 0.04em;
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1;
}

.brand small {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold-hot);
}

.links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.links a {
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 234, 212, 0.72);
  position: relative;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.links a:hover {
  color: var(--cream);
}

.links a:hover::after {
  width: 100%;
}

.mast-acts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ico img {
  width: 18px;
  height: 18px;
}

.ico:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.12);
}

.buy,
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.buy {
  background: linear-gradient(180deg, var(--gold-hot), var(--gold));
  color: var(--paper-ink);
  box-shadow: 0 8px 0 #8a6410, 0 14px 24px rgba(212, 160, 23, 0.22);
}

.buy img,
.ghost img {
  width: 18px;
  height: 18px;
}

.buy:hover,
.ghost:hover {
  transform: translateY(-3px);
}

.ghost {
  border: 1px solid rgba(243, 234, 212, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.ghost img {
  filter: none;
}

.buy.lg,
.ghost.lg {
  min-height: 54px;
  padding: 0 22px;
  font-size: 15px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
}

.burger i {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.25s ease, top 0.25s ease;
}

.burger i:first-child { top: 16px; }
.burger i:last-child { top: 24px; }

.burger.open i:first-child { top: 20px; transform: rotate(40deg); }
.burger.open i:last-child { top: 20px; transform: rotate(-40deg); }

.sheet {
  position: fixed;
  inset: 74px 16px auto;
  z-index: 19;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: #1b140c;
  border: 1px solid var(--line);
  box-shadow: var(--cut);
}

.sheet.open { display: flex; }

.sheet a {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}

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

.hero {
  min-height: 100vh;
  padding: 140px 48px 80px;
  position: relative;
  overflow: hidden;
}

.seismo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  width: 100%;
  height: 220px;
  opacity: 0.28;
}

.seismo-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: draw-line 4.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(240, 195, 74, 0.45));
}

@keyframes draw-line {
  0% { stroke-dashoffset: 1800; opacity: 0.15; }
  45% { stroke-dashoffset: 0; opacity: 0.7; }
  70% { opacity: 0.7; }
  100% { stroke-dashoffset: -1800; opacity: 0.1; }
}

.hero-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.tape {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 7px;
  background: var(--gold);
  color: var(--paper-ink);
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  box-shadow: 3px 4px 0 rgba(12, 8, 4, 0.28);
}

.tape img {
  width: 14px;
  height: 14px;
  filter: brightness(0);
}

.wordmark {
  margin: 22px 0 18px;
}

.wm {
  display: block;
  font-family: "Bungee", sans-serif;
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.88;
  color: var(--cream);
  text-shadow:
    1px 1px 0 #e0b13a,
    2px 2px 0 #d4a017,
    3px 3px 0 #c4921a,
    4px 4px 0 #a67c12,
    5px 5px 0 #8a6410,
    7px 10px 18px rgba(0, 0, 0, 0.4);
  animation: jitter 6s steps(2) infinite;
}

.wm.delay { animation-delay: 0.15s; }

@keyframes jitter {
  0%, 92%, 100% { transform: translate(0, 0); }
  93% { transform: translate(-2px, 1px); }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, 0); }
}

.lead {
  max-width: 34ch;
  font-size: 24px;
  line-height: 1.35;
}

.sub {
  margin-top: 10px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-hot);
  font-size: 13px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ca {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  padding: 10px 10px 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(240, 195, 74, 0.35);
}

.ca span {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.16em;
  color: var(--gold-hot);
}

.ca code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.ca button {
  padding: 8px 14px;
  background: var(--cream);
  color: var(--paper-ink);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-coin {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.orbit,
.orbit.late {
  position: absolute;
  border: 1px solid rgba(240, 195, 74, 0.28);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orbit {
  width: 420px;
  height: 420px;
  border-top-color: var(--gold-hot);
}

.orbit.late {
  width: 500px;
  height: 500px;
  animation-direction: reverse;
  animation-duration: 26s;
  border-bottom-color: var(--gold);
}

.coin-cut {
  width: min(340px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 10px rgba(243, 234, 212, 0.08),
    10px 16px 0 rgba(12, 8, 4, 0.35),
    0 20px 50px rgba(212, 160, 23, 0.22);
  animation: coin-bob 5s ease-in-out infinite;
}

.coin-cut img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coin-pulse {
  position: absolute;
  bottom: 36px;
  width: 220px;
  opacity: 0.85;
}

.coin-pulse path {
  fill: none;
  stroke: var(--cream);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(2px 3px 0 rgba(18, 14, 8, 0.35));
  stroke-dasharray: 420;
  animation: pulse-draw 2.4s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes coin-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-draw {
  0% { stroke-dashoffset: 420; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -420; }
}

.ribbon {
  overflow: hidden;
  border-block: 1px solid rgba(240, 195, 74, 0.25);
  background: #0c0906;
  padding: 14px 0;
}

.ribbon-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 14px;
}

.ribbon-track svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-hot);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

section {
  padding: 100px 48px;
  max-width: 1240px;
  margin: 0 auto;
}

.kicker {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}

.kicker span,
.kicker b {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.kicker span {
  color: var(--gold);
  font-size: 13px;
}

.kicker b {
  font-size: 42px;
  font-weight: 600;
}

.section-lead {
  max-width: 46ch;
  font-size: 22px;
  margin-bottom: 36px;
  color: rgba(243, 234, 212, 0.82);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.paper {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.35), transparent 28%),
    var(--paper);
  color: var(--paper-ink);
  padding: 36px 34px 40px;
  box-shadow: var(--shadow);
  position: relative;
  transform: rotate(-0.6deg);
}

.paper::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(26, 20, 8, 0.12);
  pointer-events: none;
}

.paper-tag {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: #7a5a12;
}

.paper h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.95;
  margin: 10px 0 16px;
}

.paper-rule {
  height: 3px;
  background: repeating-linear-gradient(90deg, #1a1408 0 18px, transparent 18px 24px);
  margin-bottom: 18px;
}

.paper-body {
  font-size: 20px;
  line-height: 1.45;
}

.clips {
  display: grid;
  gap: 16px;
}

.clip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
  box-shadow: 6px 8px 0 rgba(12, 8, 4, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.clip:hover {
  transform: translate(-4px, -4px);
  border-color: rgba(240, 195, 74, 0.45);
}

.clip h3 {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.clip p {
  color: rgba(243, 234, 212, 0.74);
  font-size: 18px;
}

.meters {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.meter {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 2px solid var(--gold);
}

.meter span {
  display: block;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(243, 234, 212, 0.55);
}

.meter strong {
  display: block;
  margin-top: 8px;
  font-family: "Bungee", sans-serif;
  font-size: 18px;
}

.meter.live strong {
  color: var(--gold-hot);
}

.zag {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

.zag svg {
  width: 100%;
  height: 40px;
}

.zag path {
  fill: none;
  stroke: rgba(212, 160, 23, 0.55);
  stroke-width: 2;
}

.tickets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ticket {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 24px 20px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.ticket::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 12px, #8a6410 12px 16px);
}

.ticket:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.ticket .num {
  font-family: "Bungee", sans-serif;
  color: #b8860b;
  font-size: 18px;
}

.ticket img {
  width: 42px;
  height: 42px;
  margin: 16px 0 12px;
  object-fit: contain;
}

.ticket img[src*="solana"],
.ticket img[src*="dexscreener"] {
  filter: brightness(0);
}

.ticket h3 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.bezel {
  position: relative;
  border: 1px solid rgba(240, 195, 74, 0.28);
  background: #0b0906;
  box-shadow: var(--cut), 0 0 40px rgba(212, 160, 23, 0.08);
}

.bezel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(240, 195, 74, 0.18);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: rgba(243, 234, 212, 0.6);
}

.bezel-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a6410;
}

.bezel-bar i:nth-child(2) { background: var(--gold); }
.bezel-bar i:nth-child(3) { background: var(--gold-hot); }

.bezel iframe {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
  background: #0b0906;
}

.bezel::after {
  content: "";
  position: absolute;
  inset: 38px 0 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(243, 234, 212, 0.03) 0 2px,
    transparent 2px 6px
  );
  animation: scan 7s linear infinite;
}

@keyframes scan {
  0% { opacity: 0.15; }
  50% { opacity: 0.35; }
  100% { opacity: 0.15; }
}

.banner-stage {
  position: relative;
  margin: 0 0 32px;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  box-shadow: var(--shadow);
  border: 6px solid var(--paper);
}

.banner-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: banner-drift 18s ease-in-out infinite;
  transform-origin: center;
}

.banner-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18, 14, 8, 0.35));
  pointer-events: none;
}

@keyframes banner-drift {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

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

.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.dock a img {
  width: 22px;
  height: 22px;
}

.dock a:last-child img {
  filter: none;
}

.dock a:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.1);
}

.colophon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 48px 40px;
  border-top: 1px solid var(--line);
  color: rgba(243, 234, 212, 0.6);
}

.colophon .brand img {
  width: 36px;
  height: 36px;
}

.colophon .brand span {
  font-family: "Bungee", sans-serif;
  font-size: 14px;
  color: var(--cream);
}

.rise {
  opacity: 0;
  transform: translateY(28px);
}

.hero .rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero .rise:nth-child(1) { animation-delay: 0.05s; }
.hero .rise:nth-child(2) { animation-delay: 0.14s; }
.hero .rise:nth-child(3) { animation-delay: 0.22s; }
.hero .rise:nth-child(4) { animation-delay: 0.3s; }
.hero .rise:nth-child(5) { animation-delay: 0.38s; }
.hero .rise:nth-child(6) { animation-delay: 0.46s; }

.in {
  animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.tickets .ticket:nth-child(2).in { animation-delay: 0.08s; }
.tickets .ticket:nth-child(3).in { animation-delay: 0.16s; }
.tickets .ticket:nth-child(4).in { animation-delay: 0.24s; }
.clips .clip:nth-child(2).in { animation-delay: 0.1s; }
.clips .clip:nth-child(3).in { animation-delay: 0.2s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .links { display: none; }
  .mast-acts .buy span { display: none; }
  .burger { display: block; }
  .hero,
  section,
  .zag,
  .colophon {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero { padding-top: 120px; }
  .hero-grid,
  .about-grid,
  .tickets,
  .meters,
  .dock {
    grid-template-columns: 1fr;
  }
  .wm { font-size: 56px; }
  .orbit,
  .orbit.late { width: 280px; height: 280px; }
  .bezel iframe { height: 480px; }
  .colophon { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .rise { opacity: 1; transform: none; }
}
