:root {
  --paper: #f7ead8;
  --card: #fffdf8;
  --ink: #171514;
  --ink-soft: #594b42;
  --red: #d83435;
  --red-deep: #a51e22;
  --yellow: #ffd06c;
  --yellow-soft: #ffe7ad;
  --blue: #71c8e6;
  --blue-deep: #207b9d;
  --green: #7fbd8d;
  --steel: #d9dde1;
  --shadow-card: 0 12px 28px rgba(23, 21, 20, .16);
  --shadow-pop: 0 20px 48px rgba(23, 21, 20, .25);
  --wob-a: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wob-b: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --wob-c: 225px 18px 255px 18px / 18px 255px 18px 225px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  font-size: 20px;
  line-height: 1.55;
}
body.intro-lock { overflow: hidden; }
::selection { background: var(--yellow); color: var(--ink); }

#bg-stack, #grain, #ambient, #cursor-light, #intro { position: fixed; inset: 0; pointer-events: none; }
#bg-stack { z-index: 0; background: var(--paper); }
.bg {
  position: absolute;
  inset: -4%;
  opacity: 0;
  filter: blur(7px);
  transform: scale(1.04);
  transition: opacity 1.1s ease;
}
.bg.active { opacity: 1; }
.bg-home { background: radial-gradient(circle at 50% 26%, #ffe3a6 0 13%, transparent 29%), linear-gradient(135deg, #e8c9a4, #f9dfbe 46%, #cc9a81); }
.bg-pipes { background: radial-gradient(circle at 18% 18%, #71c8e6, transparent 34%), linear-gradient(135deg, #f4ddc2, #8fbe9d 48%, #f6bc85); }
.bg-sparks { background: radial-gradient(circle at 74% 24%, #fff2a3, transparent 32%), linear-gradient(135deg, #e83f3f, #f3b177 50%, #73c7e4); }
.bg-blueprint { background: linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(135deg, #407b96, #f6d1ad 52%, #d73535); background-size: 42px 42px, 42px 42px, auto; }

#grain {
  z-index: 6;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
#ambient { z-index: 2; overflow: hidden; }
#cursor-light {
  z-index: 1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 222, 158, .46), rgba(255, 222, 158, 0) 62%);
  transform: translate(-50%, -50%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .4s ease;
}
body.has-pointer #cursor-light { opacity: 1; }

#intro { z-index: 200; overflow: hidden; opacity: 1; transition: opacity 1s ease; }
#intro.gone { opacity: 0; pointer-events: none; }
.intro-bg { position: absolute; inset: -5%; background: linear-gradient(135deg, #e33a39, #f7d7b0, #6ec4df); filter: blur(7px); transform: scale(1.05); }
#intro-photos { position: absolute; inset: 0; transition: opacity .7s ease; }
#intro-photos.fade { opacity: 0; }
.intro-photo {
  position: absolute;
  width: clamp(112px, 17vw, 210px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.25) rotate(var(--rot));
}
.intro-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 20%;
  border: 4px solid var(--ink);
  border-radius: var(--wob-a);
  box-shadow: 7px 9px 0 rgba(23, 21, 20, .9);
}
.intro-photo.pop { animation: photo-pop .55s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes photo-pop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.25) rotate(calc(var(--rot) - 14deg)); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(var(--scl)) rotate(var(--rot)); }
}
#intro-word { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
#intro-word.show { opacity: 1; }
.word, .display {
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  letter-spacing: 1px;
  line-height: 1.03;
  font-weight: 900;
}
.word {
  font-size: clamp(58px, 15vw, 200px);
  color: var(--yellow);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 var(--ink), 0 24px 50px rgba(22, 14, 16, .5);
  transform: scale(.4) rotate(-4deg);
}
#intro-word.show .word { animation: word-pop .9s cubic-bezier(.2, 1.5, .35, 1) forwards; }
@keyframes word-pop {
  from { transform: scale(.4) rotate(-8deg); opacity: 0; }
  to { transform: scale(1) rotate(-2deg); opacity: 1; }
}

.floaty {
  position: absolute;
  top: -60px;
  width: 30px;
  height: 30px;
  opacity: .9;
  animation: fall linear forwards;
}
.floaty::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bit-color, var(--red));
  border: 2px solid rgba(23, 21, 20, .7);
  border-radius: 45% 55% 48% 52%;
  animation: sway ease-in-out infinite alternate;
}
@keyframes fall {
  from { transform: translateY(-8vh) translateX(0); }
  to { transform: translateY(112vh) translateX(var(--drift)); }
}
@keyframes sway {
  from { transform: rotate(-45deg); }
  to { transform: rotate(45deg); }
}

header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 14px;
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--wob-a);
  padding: 7px 12px 7px 9px;
  box-shadow: 4px 5px 0 rgba(23, 21, 20, .9);
  transform: rotate(-.4deg);
  max-width: calc(100vw - 22px);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-bar::-webkit-scrollbar { display: none; }
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); padding-right: 8px; flex: 0 0 auto; }
.nav-logo img { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; object-position: 50% 20%; }
.nav-logo span { font-family: Impact, "Arial Black", sans-serif; font-size: 22px; padding-top: 3px; white-space: nowrap; }
nav { display: flex; gap: 0; }
nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 13px;
  position: relative;
  font-weight: 800;
  white-space: nowrap;
}
nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 4px;
  background: var(--yellow);
  border-radius: 8px;
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left;
  transition: transform .22s ease;
}
nav a:hover::after { transform: scaleX(1) rotate(-1deg); }
.nav-socials { display: flex; align-items: center; gap: 7px; padding-left: 4px; }
.social-dot {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 3px 4px 0 var(--ink);
  font-size: 16px;
  font-weight: 900;
  flex: 0 0 auto;
}
.social-dot.pump { background: var(--green); }
.social-dot.telegram { background: var(--blue); }
.social-dot.twitter { background: var(--ink); color: white; }

main { position: relative; z-index: 3; }
.section {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 118px 24px;
}
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 140px;
}
.hero-logo-wrap { position: relative; width: min(440px, 76vw); margin-bottom: 12px; }
.hero-burst {
  position: absolute;
  inset: -20%;
  background: repeating-conic-gradient(from -10deg, rgba(216, 52, 53, .9) 0 10deg, rgba(255, 208, 108, .22) 10deg 20deg);
  border-radius: 50%;
  animation: sun-pulse 5s ease-in-out infinite;
}
@keyframes sun-pulse { 50% { transform: scale(1.12); opacity: .65; } }
.hero-logo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 19%;
  border: 5px solid var(--ink);
  border-radius: 52% 48% 54% 46%;
  box-shadow: 8px 11px 0 var(--ink), var(--shadow-pop);
}
.hero-title {
  font-size: clamp(50px, 11vw, 142px);
  color: var(--yellow);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.hero-sub { max-width: 760px; color: var(--ink-soft); font-size: clamp(22px, 2.5vw, 30px); margin-top: 14px; }
.ticker {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 16px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--wob-b);
  box-shadow: 3px 4px 0 var(--ink);
  color: var(--red-deep);
  font-weight: 900;
}
.hero-ctas, .cta-buttons, .pfp-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 3px solid var(--ink);
  border-radius: var(--wob-b);
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 5px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-3px) rotate(1deg); box-shadow: 5px 8px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: 2px 2px 0 var(--ink); }
.btn-white { background: var(--card); }
.btn-yellow { background: var(--yellow); }
.btn-pump { background: var(--green); }
.btn-telegram { background: var(--blue); }
.btn-twitter { background: var(--ink); color: white; }
.social-buttons .btn { min-width: 132px; }
.hero-scrollhint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 4px;
  transform: translateX(-50%) rotate(-1deg);
  color: white;
  text-shadow: 0 2px 8px rgba(23, 21, 20, .65);
  font-size: 17px;
}
.chev { font-weight: 900; font-size: 28px; animation: bob 1.1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
  background: rgba(255, 253, 248, .92);
  border: 3px solid var(--ink);
  border-radius: var(--wob-c);
  padding: 24px;
  box-shadow: var(--shadow-card), 5px 6px 0 rgba(23, 21, 20, .85);
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--blue-deep); font-weight: 900; transform: rotate(-1.4deg); }
.pipe-mark {
  width: 24px;
  height: 18px;
  display: inline-block;
  border: 4px solid currentColor;
  border-left-width: 10px;
  border-radius: 14px 4px 4px 14px;
  box-shadow: inset -5px 0 0 rgba(255,255,255,.55);
}
h2.display { font-size: clamp(34px, 5vw, 58px); margin: 12px 0 14px; }
.lede { color: var(--ink-soft); max-width: 660px; margin: 0 auto; }
.hl {
  background: linear-gradient(100deg, rgba(255, 208, 108, 0) 0%, rgba(255, 208, 108, .95) 4%, rgba(255, 208, 108, .72) 96%, rgba(255, 208, 108, 0) 100%);
  padding: 0 6px;
  border-radius: 7px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.chapters { display: grid; gap: clamp(30px, 6vw, 64px); }
.chapter-card, .creator-card, .pfp-tools, .contract-card, .featured-frame {
  position: relative;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-card), 5px 6px 0 rgba(23, 21, 20, .85);
}
.chapter-card { width: min(680px, 100%); padding: 28px; }
.chapter-card:nth-child(odd) { justify-self: start; border-radius: var(--wob-a); transform: rotate(-.8deg); }
.chapter-card:nth-child(even) { justify-self: end; border-radius: var(--wob-b); transform: rotate(.7deg); }
.chapter-card:hover { transform: translateY(-8px) rotate(0deg); box-shadow: var(--shadow-pop), 6px 9px 0 rgba(23, 21, 20, .85); }
.tape {
  position: absolute;
  top: -18px;
  left: 38px;
  width: 92px;
  height: 32px;
  background: rgba(255, 231, 173, .88);
  border: 2px solid rgba(23, 21, 20, .28);
  transform: rotate(-5deg);
}
.tape.r { left: auto; right: 46px; transform: rotate(6deg); }
.chapter-tag, .date, .who, .ca-label { color: var(--blue-deep); font-weight: 900; text-transform: lowercase; }
.chapter-card h3, .creator-body h3 { font-size: 38px; line-height: 1.05; margin: 10px 0; }
.chapter-card p { color: var(--ink-soft); }

.creator-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border-radius: var(--wob-b);
}
.post-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 18%;
  border: 4px solid var(--ink);
  border-radius: var(--wob-a);
  box-shadow: 5px 6px 0 var(--ink);
}
.lore-quote {
  margin-top: 20px;
  padding: 18px;
  background: var(--yellow-soft);
  border: 3px solid var(--ink);
  border-radius: var(--wob-c);
  font-weight: 900;
}
.who { display: block; margin-top: 8px; }

.featured-frame {
  max-width: 620px;
  margin: 0 auto;
  padding: 18px;
  border-radius: var(--wob-a);
}
#pfp-canvas {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  border-radius: 34px;
  background: var(--yellow-soft);
}
.pfp-tools {
  max-width: 800px;
  margin: 34px auto 0;
  padding: 26px;
  border-radius: var(--wob-b);
}
.tool-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
  margin: 14px 0;
  font-weight: 900;
}
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 2px 3px 0 var(--ink);
  font-weight: 900;
}
.swatch.active { outline: 4px solid white; transform: translateY(-3px); }

.contract-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: center;
  padding: 30px;
  border-radius: var(--wob-c);
}
.movement-points { display: grid; gap: 14px; margin-top: 24px; }
.point { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.dot {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 15px;
  font-weight: 900;
}
.ca-box {
  background: linear-gradient(135deg, #ffe7ad, #f7b4a3);
  border: 3px solid var(--ink);
  border-radius: var(--wob-a);
  padding: 24px;
  text-align: center;
  box-shadow: 5px 6px 0 var(--ink);
}
.contract-visual {
  display: grid;
  gap: 18px;
}
.contract-visual img {
  width: min(330px, 100%);
  justify-self: center;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 18%;
  border: 4px solid var(--ink);
  border-radius: var(--wob-a);
  box-shadow: 5px 6px 0 var(--ink);
}
.ca-value {
  margin: 12px 0 18px;
  overflow-wrap: anywhere;
  word-break: break-word;
  font: 900 clamp(21px, 3.1vw, 34px) Impact, "Arial Black", sans-serif;
  line-height: 1.08;
}
.copy-btn { width: 100%; }

.final { text-align: center; }
.cta-lines { display: grid; gap: 18px; }
.cta-line {
  display: inline-block;
  font-size: clamp(40px, 8vw, 96px);
  color: var(--yellow);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
}
footer {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 56px 24px 70px;
  background: rgba(255, 253, 248, .78);
  border-top: 3px solid rgba(23, 21, 20, .25);
}
.foot-logo { width: 78px; height: 78px; border: 3px solid var(--ink); border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.foot-title { font: 900 36px Impact, "Arial Black", sans-serif; }

.reveal {
  opacity: 0;
  transform: translateY(24px) rotate(-.4deg);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.in { opacity: 1; transform: translateY(0) rotate(0); }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .22s; }
.reveal-d3 { transition-delay: .32s; }

@media (max-width: 860px) {
  body { font-size: 18px; }
  header { top: 8px; padding: 0 8px; }
  .nav-bar {
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
    padding: 7px;
    border-width: 2px;
  }
  .nav-logo { gap: 6px; padding-right: 2px; }
  .nav-logo img { width: 36px; height: 36px; border-width: 2px; }
  .nav-logo span { font-size: 18px; }
  nav a { padding: 7px 9px; font-size: 16px; }
  .social-dot { width: 36px; height: 36px; border-width: 2px; box-shadow: 2px 3px 0 var(--ink); font-size: 13px; }
  .section { padding: 92px 18px; }
  .hero { min-height: 100svh; padding-top: 124px; }
  .hero-logo-wrap { width: min(330px, 78vw); }
  .hero-logo { border-width: 4px; box-shadow: 5px 7px 0 var(--ink), var(--shadow-card); }
  .hero-title { font-size: clamp(44px, 14vw, 76px); -webkit-text-stroke-width: 3px; text-shadow: 0 5px 0 var(--ink); }
  .hero-sub { font-size: 20px; }
  .creator-card, .contract-card { grid-template-columns: 1fr; }
  .tool-row { grid-template-columns: 1fr; gap: 8px; }
  .chapter-card:nth-child(n) { justify-self: stretch; }
  .section-head, .chapter-card, .creator-card, .pfp-tools, .contract-card { padding: 20px; }
  .btn { width: 100%; min-height: 48px; }
  .social-buttons { width: 100%; }
  .hero-scrollhint { display: none; }
  .cta-line { font-size: clamp(38px, 12vw, 58px); -webkit-text-stroke-width: 2px; text-shadow: 0 4px 0 var(--ink); }
  .ca-value { font-size: clamp(20px, 6vw, 28px); }
}

@media (max-width: 430px) {
  .section { padding-left: 14px; padding-right: 14px; }
  .nav-logo span { display: none; }
  nav a { font-size: 15px; padding: 7px 8px; }
  .word { font-size: clamp(58px, 18vw, 86px); -webkit-text-stroke-width: 3px; }
  .hero-title { font-size: clamp(40px, 13vw, 58px); }
  h2.display { font-size: clamp(31px, 10vw, 42px); }
  .chapter-card h3, .creator-body h3 { font-size: 32px; }
  .ca-value { font-size: clamp(19px, 5.7vw, 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #intro { display: none; }
  body.intro-lock { overflow: auto; }
}
