* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #f7f0df;
  background: #120d08;
  font-family: "Courier New", Courier, monospace;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.background-video {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-overlay {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(15, 9, 5, 0.44), rgba(15, 9, 5, 0.74)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 4px
    );
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle at 30% 40%,
      rgba(255, 255, 255, 0.12) 0 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 70% 20%,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px
    );
  background-size: 7px 7px, 11px 11px;
  mix-blend-mode: overlay;
}

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

.hero {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 70px 20px 30px;
}

.hero-copy {
  width: min(780px, 100%);
  text-align: center;
}

.tiny-line,
.section-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: lowercase;
  text-shadow:
    3px 3px 0 rgba(255, 0, 102, 0.5),
    -3px -2px 0 rgba(0, 255, 170, 0.35);
  animation: title-jitter 2.8s steps(2, end) infinite;
}

.ticker {
  display: inline-block;
  margin: 18px 0 0;
  padding: 6px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.65);
  font-size: 22px;
  font-weight: 900;
  transform: rotate(-2deg);
}

.subtext {
  margin: 18px 0 0;
  font-size: clamp(15px, 2vw, 20px);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-width: 110px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  color: #f7f0df;
  background: rgba(17, 11, 7, 0.58);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease;
}

.button:hover {
  color: #120d08;
  background: #f7f0df;
  transform: translate(-2px, -2px) rotate(-1deg);
}

.schizo-lines {
  display: grid;
  gap: 6px;
  margin-top: 42px;
  font-size: 12px;
  opacity: 0.8;
}

.schizo-lines span:nth-child(odd) {
  transform: rotate(-1deg);
}

.schizo-lines span:nth-child(even) {
  transform: rotate(1deg);
}

.bouncer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  display: block;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45));
}

.rug-bouncer {
  width: clamp(95px, 13vw, 180px);
}

.cannot-bouncer {
  width: clamp(150px, 20vw, 300px);
}

.lore {
  padding: 20px 20px 90px;
}

.lore-card {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 42px;
  align-items: center;
  padding: clamp(24px, 5vw, 58px);
  border: 1px dashed rgba(255, 255, 255, 0.38);
  background: rgba(13, 9, 6, 0.82);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.28);
}

.lore-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.lore-copy p:not(.section-label) {
  max-width: 580px;
  margin: 0 0 17px;
  color: rgba(247, 240, 223, 0.82);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
}

.auction-link {
  display: inline-block;
  margin-top: 10px;
  padding-bottom: 3px;
  border-bottom: 1px dashed currentColor;
  font-weight: 700;
  text-decoration: none;
}

.image-wrap {
  position: relative;
  transform: rotate(1deg);
}

.narrative-image {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  object-fit: cover;
}

.image-note {
  position: absolute;
  right: -12px;
  bottom: -14px;
  padding: 8px 10px;
  color: #120d08;
  background: #f7f0df;
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-2deg);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.24);
  font-size: 12px;
  opacity: 0.72;
}

.copy-message {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  padding: 10px 14px;
  border: 1px solid #120d08;
  color: #120d08;
  background: #f7f0df;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) rotate(-2deg);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.copy-message.show {
  opacity: 1;
  transform: translateY(0) rotate(-2deg);
}

@keyframes title-jitter {
  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(1px, -1px);
  }

  50% {
    transform: translate(-1px, 1px);
  }

  75% {
    transform: translate(1px, 1px);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 90px 16px 35px;
  }

  h1 {
    font-size: clamp(40px, 14vw, 66px);
  }

  .rug-bouncer {
    width: 92px;
  }

  .cannot-bouncer {
    width: 150px;
  }

  .lore {
    padding: 20px 14px 70px;
  }

  .lore-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .image-wrap {
    order: -1;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1 {
    animation: none;
  }
}
