:root {
  --ink: #15120d;
  --paper: #fff7d1;
  --acid: #f7ff45;
  --sun: #ffbf1b;
  --hot: #ff4e14;
  --blue: #20b7ff;
  --green: #34c759;
  --pink: #ff5ac8;
  --shadow: 7px 7px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 90, 200, 0.22), transparent 20rem),
    radial-gradient(circle at 90% 10%, rgba(32, 183, 255, 0.28), transparent 18rem),
    linear-gradient(135deg, #fff2a6 0%, #fff7d1 45%, #f1ffd7 100%);
  color: var(--ink);
  font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 18, 13, 0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(21, 18, 13, 0.08) 2px, transparent 2px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 75%);
  z-index: 0;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.brand img {
  width: 52px;
  height: 52px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--hot);
}

nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
.button,
.contract button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: white;
  padding: 0.55rem 0.9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1deg);
}

nav a:nth-child(2),
.button:nth-child(2) {
  transform: rotate(1deg);
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  align-items: center;
  gap: clamp(1.2rem, 5vw, 4rem);
  padding: clamp(1rem, 4vw, 3rem);
}

.hero-copy {
  max-width: 720px;
}

.stamp,
.section-label {
  width: max-content;
  max-width: 100%;
  border: 3px dashed var(--ink);
  background: var(--acid);
  padding: 0.45rem 0.7rem;
  font-size: clamp(0.82rem, 2vw, 1rem);
  font-weight: 950;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

h1 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(4.1rem, 12vw, 10.5rem);
  line-height: 0.78;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 6px 6px 0 var(--sun), 11px 11px 0 var(--ink);
}

h1 span {
  display: block;
  color: var(--hot);
}

.lede {
  max-width: 45rem;
  margin: 0 0 1.2rem;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  line-height: 1.35;
  font-weight: 800;
}

.micro-copy {
  width: fit-content;
  max-width: 42rem;
  margin: 0;
  border: 3px solid var(--ink);
  background: white;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  box-shadow: 5px 5px 0 var(--hot);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 950;
  line-height: 1.35;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.3rem 0 1rem;
}

.button {
  font-size: 1rem;
  background: white;
}

.button.primary {
  background: var(--blue);
}

.contract {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  max-width: 760px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: white;
  padding: 0.7rem;
  box-shadow: var(--shadow);
}

.contract span {
  background: var(--hot);
  color: white;
  border: 3px solid var(--ink);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.contract code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: "Courier New", monospace;
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  font-weight: 900;
}

.contract button {
  cursor: pointer;
  font-family: inherit;
}

.hero-art {
  position: relative;
  min-height: 420px;
}

.main-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 6px solid var(--ink);
  border-radius: 8px;
  box-shadow: 14px 14px 0 var(--ink);
  transform: rotate(1.5deg);
  filter: saturate(1.2) contrast(1.04);
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border: 5px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
}

.hero-art::before {
  width: 28%;
  height: 21%;
  top: -2rem;
  left: 6%;
  border-color: var(--pink);
  transform: rotate(-18deg);
}

.hero-art::after {
  width: 18%;
  height: 18%;
  right: -0.5rem;
  bottom: 1.2rem;
  border-color: var(--green);
  transform: rotate(24deg);
}

.scribble {
  position: absolute;
  border: 3px solid var(--ink);
  background: white;
  padding: 0.45rem 0.65rem;
  font-weight: 950;
  box-shadow: 4px 4px 0 var(--ink);
}

.s1 {
  top: 6%;
  right: -1rem;
  transform: rotate(6deg);
  background: var(--acid);
}

.s2 {
  bottom: 12%;
  left: -1rem;
  transform: rotate(-7deg);
  background: var(--blue);
}

.s3 {
  right: 8%;
  bottom: -0.8rem;
  transform: rotate(2deg);
  background: var(--pink);
}

.ticker-tape {
  margin: 0 clamp(1rem, 4vw, 3rem);
  border-block: 5px solid var(--ink);
  background: var(--ink);
  color: var(--acid);
  display: flex;
  gap: 1rem;
  overflow: hidden;
  padding: 0.75rem 0;
  transform: rotate(-0.6deg);
}

.ticker-tape span {
  flex: 0 0 auto;
  border: 2px solid var(--acid);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-weight: 950;
  white-space: nowrap;
}

.story,
.meme-wall,
.quote-strip,
.banner-run,
.engine,
.vault {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.manifesto {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1rem;
  align-items: stretch;
}

.manifesto-copy {
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: white;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.manifesto-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5.8vw, 5.3rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--sun);
}

.manifesto-copy p {
  max-width: 78ch;
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  line-height: 1.48;
  font-weight: 850;
}

.origin-card {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: var(--acid);
  padding: 1rem;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.origin-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 8px;
}

.origin-card strong {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.9;
}

.origin-card span {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  padding: 0.75rem;
  font-weight: 950;
  line-height: 1.25;
}

.story-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.story-grid article,
figure {
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.story-grid article {
  padding: 1rem;
  min-height: 230px;
}

.story-grid strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.05;
}

.story-grid p {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.quote-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.quote-strip p {
  margin: 0;
  border: 4px solid var(--ink);
  background: var(--ink);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  min-height: 116px;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 950;
  line-height: 1.1;
  transform: rotate(-1deg);
}

.quote-strip p:nth-child(2) {
  background: var(--hot);
  color: var(--ink);
  transform: rotate(1.4deg);
}

.quote-strip p:nth-child(3) {
  background: var(--blue);
  color: var(--ink);
}

.engine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.engine-panel {
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 2rem);
}

.hot-panel {
  background:
    linear-gradient(135deg, rgba(255, 191, 27, 0.92), rgba(255, 78, 20, 0.9)),
    url("assets/HMxvAb7aIAAhi9W.jpg") center / cover;
  background-blend-mode: screen;
}

.engine-panel h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 6rem);
  line-height: 0.88;
  text-shadow: 4px 4px 0 white;
}

.engine-panel p {
  max-width: 64ch;
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.42;
  font-weight: 950;
}

.engine-stack {
  display: grid;
  gap: 0.8rem;
}

.engine-stack span {
  display: grid;
  min-height: 78px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 950;
  text-align: center;
}

.engine-stack span:nth-child(2) {
  background: var(--pink);
  transform: rotate(-1deg);
}

.engine-stack span:nth-child(3) {
  background: var(--green);
  transform: rotate(1deg);
}

.engine-stack span:nth-child(4) {
  background: var(--acid);
}

.wall-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

figure {
  margin: 0;
  overflow: hidden;
}

figure.wide {
  grid-column: span 2;
}

figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-bottom: 4px solid var(--ink);
}

figure.wide img {
  aspect-ratio: 16 / 9;
}

figcaption {
  padding: 0.75rem;
  font-weight: 950;
  background: white;
}

.tilt-left {
  transform: rotate(-2deg);
}

.tilt-right {
  transform: rotate(2deg);
}

.vault-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.vault-grid a {
  display: grid;
  color: var(--ink);
  text-decoration: none;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-1deg);
}

.vault-grid a:nth-child(2n) {
  transform: rotate(1deg);
}

.vault-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 4px solid var(--ink);
}

.vault-grid a:first-child,
.vault-grid a:nth-child(2),
.vault-grid a:last-child {
  grid-column: span 2;
}

.vault-grid a:first-child img,
.vault-grid a:nth-child(2) img,
.vault-grid a:last-child img {
  aspect-ratio: 16 / 9;
}

.vault-grid span {
  padding: 0.75rem;
  background: var(--acid);
  font-weight: 950;
}

.vault-grid a:nth-child(3n) span {
  background: var(--blue);
}

.vault-grid a:nth-child(4n) span {
  background: var(--pink);
}

.banner-run img {
  width: 100%;
  min-height: 250px;
  max-height: 420px;
  object-fit: cover;
  border: 5px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem clamp(1rem, 4vw, 3rem) 2rem;
  font-weight: 950;
}

@media (max-width: 980px) {
  .hero,
  .manifesto,
  .engine-grid,
  .story-grid,
  .quote-strip,
  .wall-grid,
  .vault-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manifesto-copy,
  .origin-card,
  .engine-panel,
  .engine-stack {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(3.8rem, 23vw, 6rem);
    text-shadow: 4px 4px 0 var(--sun), 8px 8px 0 var(--ink);
  }

  .hero {
    padding-top: 0.5rem;
  }

  .contract {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .contract button {
    grid-column: 1 / -1;
  }

  .story-grid,
  .quote-strip,
  .wall-grid,
  .manifesto,
  .engine-grid,
  .vault-grid {
    grid-template-columns: 1fr;
  }

  figure.wide {
    grid-column: auto;
  }

  .vault-grid a:first-child,
  .vault-grid a:nth-child(2),
  .vault-grid a:last-child {
    grid-column: auto;
  }

  .vault-grid a:first-child img,
  .vault-grid a:nth-child(2) img,
  .vault-grid a:last-child img {
    aspect-ratio: 1 / 1;
  }

  .scribble {
    position: static;
    width: max-content;
    max-width: 100%;
    margin: 0.5rem 0;
  }

  .hero-art {
    min-height: auto;
  }
}
