:root {
  --green: #D4DD00;
  --intro-green: #D5E406;
  --ink: #000000;
  --paper: #F0F0EE;
  --font-display: 'Archivo Black', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--green);
  color: var(--ink);
  font-family: var(--font-mono);
  text-transform: lowercase;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
body.intro-locked { overflow: hidden; }
::selection { background: var(--ink); color: var(--green); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { text-transform: lowercase; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--intro-green);
  overflow: hidden;
  transition: opacity 380ms ease, visibility 380ms ease;
}
.js .intro { display: block; }
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-skip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  border: 0;
  background: transparent;
  padding: 4px;
  text-decoration: underline;
  opacity: 0;
  animation: skip-in 1ms linear 500ms forwards;
}
@keyframes skip-in { to { opacity: 1; } }
.impact-layer {
  position: absolute;
  inset: 0;
  transform-origin: center;
}
.impact-layer.shake { animation: impact-shake 150ms ease-out; }
@keyframes impact-shake {
  0% { transform: translate(0, 0); }
  22% { transform: translate(6px, -5px); }
  48% { transform: translate(-5px, 4px); }
  72% { transform: translate(3px, -2px); }
  100% { transform: translate(0, 0); }
}
.crash-word {
  position: absolute;
  font-family: var(--font-display);
  line-height: .78;
  letter-spacing: 0;
  opacity: 0;
  transform: scale(3);
  text-transform: uppercase;
  white-space: nowrap;
}
.crash-word.land { animation: land 180ms cubic-bezier(.7, 0, 1, .7) forwards; }
@keyframes land {
  to { opacity: 1; transform: var(--land-transform); }
}
.crash-1 { top: 3vh; left: -7vw; font-size: 19vw; color: var(--ink); --land-transform: rotate(-5deg) scale(1); }
.crash-2 { top: 18vh; left: 8vw; font-size: 18vw; color: var(--paper); --land-transform: rotate(4deg) scale(1); }
.crash-3 { top: 34vh; left: -34vw; font-size: 13vw; color: var(--ink); --land-transform: rotate(-2deg) scale(1); }
.crash-4 { top: 50vh; right: -8vw; font-size: 20vw; color: var(--paper); --land-transform: rotate(5deg) scale(1); }
.crash-5 { top: 64vh; left: -22vw; font-size: 12vw; color: var(--ink); --land-transform: rotate(-6deg) scale(1); }
.crash-6 { bottom: 0; right: -11vw; font-size: 22vw; color: var(--paper); --land-transform: rotate(2deg) scale(1); }
.cracks { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.crack {
  stroke: var(--ink);
  stroke-width: .28;
  stroke-linecap: square;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}
.crack.grow { animation: crack-grow 250ms linear forwards; }
@keyframes crack-grow { to { stroke-dashoffset: 0; } }
.shard {
  position: absolute;
  inset: 0;
  background: var(--intro-green);
  animation: shard-fly 700ms ease-in forwards;
  will-change: transform, opacity;
}
.shard .impact-layer { position: absolute; }
@keyframes shard-fly {
  to {
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(.96);
    opacity: 0;
  }
}
.reply-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
}
.reply-stage.show { opacity: 1; pointer-events: auto; }
.reply-stage img {
  position: absolute;
  right: clamp(-42px, 3vw, 34px);
  bottom: -46px;
  width: min(45vw, 390px);
  transform: translateY(120%);
  animation: avatar-up 420ms ease-out forwards;
}
@keyframes avatar-up { to { transform: translateY(0); } }
.bubble {
  position: absolute;
  right: min(34vw, 380px);
  bottom: min(31vw, 270px);
  min-width: 88px;
  padding: 16px 22px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 24px;
}
.cursor { display: inline-block; width: 10px; height: 1em; border-right: 2px solid var(--ink); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.entry-button {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  opacity: 0;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
}
.entry-button.show { opacity: 1; transition: opacity 280ms ease; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 52px);
  background: color-mix(in srgb, var(--green) 88%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--green); }
.brand span, h1, .stamp, .headline-output { font-family: var(--font-display); }
.brand span { font-size: 22px; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); font-size: 13px; }
nav a:not(.button), .nav-button { text-decoration: underline; text-underline-offset: 4px; }
.nav-button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
}

main { overflow: hidden; }
section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) 0;
}
.hero {
  min-height: calc(100svh - 62px);
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding-top: 24px;
}
.hero-art { order: 2; }
.hero-art img { max-height: 82svh; margin-inline: auto; }
.hero-copy { order: 1; }
h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7.8vw, 112px);
  line-height: .9;
  letter-spacing: 0;
  text-transform: none;
}
h1 span {
  display: block;
  width: min(100%, 13ch);
  margin-top: .2em;
  font-size: .5em;
  line-height: 1;
}
p { line-height: 1.55; overflow-wrap: break-word; }
.hero-copy p { width: 100%; max-width: min(100%, 420px); margin-bottom: 26px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 2px solid var(--ink);
  padding: 10px 18px;
  transition: background 120ms ease, color 120ms ease;
}
.button.small { min-height: 34px; padding: 6px 12px; }
.button.solid { background: var(--ink); color: var(--paper); }
.button.outline { background: transparent; color: var(--ink); }
.button:hover, .button:focus-visible, button:hover, button:focus-visible {
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.button.outline:hover, .button.outline:focus-visible { background: var(--ink); color: var(--paper); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 500px);
  align-items: center;
  gap: clamp(28px, 6vw, 74px);
}
.stamp {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.poster-crop {
  height: min(72vw, 710px);
  overflow: hidden;
  border: 2px solid var(--ink);
  transform: rotate(2deg);
}
.poster-crop img {
  width: 100%;
  height: calc(100% + 90px);
  object-fit: cover;
  object-position: top center;
}
.copy-block p { font-size: clamp(16px, 1.5vw, 20px); }
.copy-block p:nth-of-type(3) {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 84px);
  line-height: .85;
  margin: 18px 0;
}
.link-row, .share-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.caption { font-size: 12px; max-width: 720px; }
.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.wide-image { width: 100%; min-height: 260px; object-fit: cover; }
.formula-wrap { display: grid; gap: 28px; justify-items: center; }
.formula {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: clamp(20px, 3vw, 34px);
  text-align: center;
}
.formula strong {
  font-size: clamp(60px, 11vw, 150px);
  line-height: .8;
}
.test-card {
  width: min(100%, 430px);
  padding: 22px;
  background: var(--paper);
  border: 2px solid var(--ink);
  transform: rotate(-1.5deg);
}
.test-card h2 { margin: 0 0 12px; font-size: 18px; }
.test-card ul { padding-left: 20px; }
.test-card li { margin: 10px 0; }
.test-card p { margin-bottom: 0; font-weight: 700; }

.compressor { display: grid; justify-items: center; text-align: center; max-width: 680px; }
.compress-controls { width: 100%; margin-top: 18px; }
textarea {
  width: 100%;
  min-height: 138px;
  resize: vertical;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 16px;
  text-transform: lowercase;
}
textarea::placeholder { color: var(--ink); opacity: 1; }
.control-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.machine { width: 100%; min-height: 210px; display: grid; place-items: center; }
.headline-output {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(32px, 7vw, 76px);
  line-height: .9;
  text-transform: uppercase;
  transform-origin: center;
}
.headline-output.compressing { animation: compress-headline 1s ease-in forwards; }
@keyframes compress-headline {
  0%, 30% { transform: translateX(0) scale(1) skewX(0); letter-spacing: 0; opacity: 1; }
  36% { transform: translateX(8px) scale(1) skewX(3deg); }
  42% { transform: translateX(-8px) scale(1) skewX(-3deg); }
  100% { transform: translateX(0) scale(.03) skewX(-12deg); letter-spacing: -.18em; opacity: 0; }
}
.mini-reply {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.mini-reply.show { display: flex; }
.mini-reply img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.mini-reply span {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 8px 13px;
}
.shake { animation: small-shake 260ms ease-out; }
@keyframes small-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  55% { transform: translateX(6px); }
  78% { transform: translateX(-3px); }
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 30px);
  margin-top: 28px;
}
figure { margin: 0; border: 2px solid var(--ink); transition: transform 200ms ease; background: var(--green); }
figure:nth-child(1) { transform: rotate(-1.5deg); }
figure:nth-child(2) { transform: rotate(1deg); }
figure:nth-child(3) { transform: rotate(-.5deg); }
figure:nth-child(4) { transform: rotate(1.5deg); }
figure:nth-child(5) { transform: rotate(-1deg); }
figure:nth-child(6) { transform: rotate(.8deg); }
figure:hover { transform: translateY(-4px) rotate(0); }
figure img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.sticker-grid a {
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.sticker-grid img { aspect-ratio: 1; object-fit: cover; }
.sticker-grid span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border: 2px solid var(--ink);
  background: var(--paper);
  opacity: 0;
  transition: opacity 120ms ease;
}
.sticker-grid a:hover span { opacity: 1; }
.wide { width: min(100%, 420px); }

footer {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 34px 16px;
  font-size: 12px;
}
footer p { margin: 8px auto; max-width: 860px; }
footer a { text-decoration: underline; text-underline-offset: 4px; }

.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }

.peek {
  position: fixed;
  right: 14px;
  bottom: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(130%);
  transition: transform 280ms ease;
  pointer-events: none;
}
.peek.show { transform: translateY(0); }
.peek img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; }
.peek span { background: var(--paper); border: 2px solid var(--ink); padding: 7px 11px; }

@media (max-width: 860px) {
  .topbar { align-items: flex-start; }
  nav { justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; }
  nav a { font-size: 12px; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-art { order: 1; }
  .hero-copy { order: 2; }
  .hero-art img { max-height: 58svh; }
  .poster-crop { height: 112vw; max-height: 620px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .sticker-grid { grid-template-columns: repeat(3, 1fr); }
  .bubble { right: 42vw; bottom: 210px; }
  .reply-stage img { width: min(66vw, 320px); }
}

@media (max-width: 520px) {
  section { width: min(100% - 24px, 1180px); padding: 58px 0; }
  .topbar { align-items: flex-start; flex-direction: column; padding: 10px 12px; }
  nav { width: 100%; justify-content: flex-start; }
  nav a:nth-child(2), nav a:nth-child(4), nav a:nth-child(5) { display: none; }
  .topbar .button { width: auto; min-height: 32px; padding: 5px 10px; }
  .hero-copy { min-width: 0; }
  .hero-copy p { max-width: 30ch; }
  h1 { font-size: clamp(34px, 11.5vw, 46px); }
  .archive-grid { grid-template-columns: 1fr; }
  .sticker-grid { grid-template-columns: repeat(2, 1fr); }
  .control-footer { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .link-row .button, .share-row .button, .archive-actions .button { width: 100%; }
  .bubble { right: 33vw; bottom: 190px; font-size: 20px; padding: 12px 16px; }
}

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