:root {
  --ink: #14110d;
  --paper: #fff4d6;
  --paper-2: #ffe7a3;
  --hat: #ffd400;
  --hat-deep: #f0b400;
  --rust: #ff6a12;
  --clay: #c2410c;
  --steel: #1b212b;
  --steel-2: #2c3544;
  --sky: #6ec6ff;
  --dusk: #ff9a4d;
  --cream: #fffaf0;
  --shadow: 8px 8px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  background: #1a140e;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #ffb35a 0%, transparent 55%),
    radial-gradient(circle at 12% 80%, rgba(110, 198, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #2b1a12 0%, #1a140e 42%, #121820 100%);
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 212, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 212, 0, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 70px,
    rgba(255, 212, 0, 0.035) 70px,
    rgba(255, 212, 0, 0.035) 74px
  );
  pointer-events: none;
}

.yard {
  perspective: 1800px;
  perspective-origin: 50% 12%;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.display {
  font-family: "Bangers", cursive;
  letter-spacing: 0.04em;
  line-height: 0.92;
}

.stamp {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* NAV — riveted I-beam */
.beam-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #2a313d 0%, #171c24 100%);
  border-bottom: 6px solid var(--ink);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
}

.beam-nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--hat) 0 18px,
    var(--ink) 18px 36px
  );
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 14px;
}

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

.logo-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 5px;
  overflow: visible;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 2rem;
  color: var(--hat);
  text-shadow: 3px 3px 0 #000;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a:not(.nav-cta) {
  color: #f7ecd2;
  text-decoration: none;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:not(.nav-cta):hover {
  background: rgba(255, 212, 0, 0.12);
  color: var(--hat);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 14px;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover,
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-hat {
  background: var(--hat);
  color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: var(--hat);
}

.btn-sky {
  background: #19c37d;
  color: #062116;
}

.btn-paper {
  background: var(--paper);
  color: var(--ink);
}

.icon-btn i {
  font-size: 1.15rem;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 4px solid var(--ink);
  background: var(--hat);
  box-shadow: 3px 3px 0 #000;
  font-size: 1.4rem;
}

.nav-drawer {
  display: none;
}

/* 3D slabs */
.slab {
  position: relative;
  transform-style: preserve-3d;
  background: var(--paper);
  border: 5px solid var(--ink);
  box-shadow: var(--shadow);
}

.slab::before,
.slab::after {
  content: "";
  position: absolute;
  background: #9a6b14;
  border: 5px solid var(--ink);
  z-index: -1;
}

.slab::before {
  top: 10px;
  right: -18px;
  width: 18px;
  height: calc(100% - 8px);
  transform: skewY(-42deg);
}

.slab::after {
  left: 12px;
  bottom: -18px;
  width: calc(100% - 8px);
  height: 18px;
  transform: skewX(-42deg);
}

.rivets {
  position: absolute;
  inset: 10px;
  pointer-events: none;
}

.rivets span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe27a, #c98910 70%);
  border: 2px solid var(--ink);
}

.rivets span:nth-child(1) { top: 0; left: 0; }
.rivets span:nth-child(2) { top: 0; right: 0; }
.rivets span:nth-child(3) { bottom: 0; left: 0; }
.rivets span:nth-child(4) { bottom: 0; right: 0; }

.art-board {
  position: relative;
  background: #0f1218;
  border: 5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}

.art-board img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0f1218;
}

.art-sq {
  aspect-ratio: 1 / 1;
}

.art-wide {
  aspect-ratio: 3 / 1;
}

.kicker {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  border: 3px solid var(--ink);
  padding: 2px 10px 0;
  font-size: 1.15rem;
  box-shadow: 3px 3px 0 var(--ink);
}

/* HERO — upward crane view */
.hero {
  padding: 42px 0 20px;
}

.hero-stage {
  transform: rotateX(7deg) rotateY(-9deg);
  padding: 28px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 212, 0, 0.35), transparent 28%),
    linear-gradient(160deg, #ffe38a 0%, #fff4d6 48%, #ffd59a 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.speech {
  position: relative;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 28px 28px 28px 8px;
  padding: 16px 18px;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 800;
  max-width: 36rem;
}

.speech::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -16px;
  border-width: 16px 0 0 18px;
  border-style: solid;
  border-color: var(--ink) transparent transparent transparent;
}

.speech::before {
  content: "";
  position: absolute;
  left: 32px;
  bottom: -9px;
  border-width: 12px 0 0 14px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  margin: 14px 0 10px;
  text-shadow: 4px 4px 0 #000, 0 0 0 #000;
}

.hero h1 span {
  color: var(--rust);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}

.ca-plate {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--steel);
  color: var(--hat);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 100%;
}

.ca-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(52vw, 420px);
}

.ca-plate button {
  border: 3px solid var(--ink);
  background: var(--hat);
  color: var(--ink);
  font-weight: 900;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
}

.hero-art {
  transform: rotate(3deg) translateY(8px);
}

.burst {
  position: absolute;
  top: -18px;
  left: -16px;
  z-index: 2;
  background: var(--rust);
  color: #fff;
  border: 4px solid var(--ink);
  padding: 8px 12px 6px;
  font-size: 1.4rem;
  transform: rotate(-12deg);
  box-shadow: 4px 4px 0 var(--ink);
}

/* ABOUT — torn blueprint */
.about {
  padding: 28px 0 10px;
}

.about-stage {
  transform: rotateX(5deg) rotateY(8deg);
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    repeating-linear-gradient(0deg, #d6ecff, #d6ecff 27px, #c5e1f8 28px);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.about-copy {
  background: rgba(255, 250, 240, 0.92);
  border: 4px dashed var(--ink);
  padding: 20px;
}

.about h2,
.buy h2,
.community h2 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 8px 0 12px;
}

.about p {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.stat {
  background: var(--hat);
  border: 3px solid var(--ink);
  text-align: center;
  padding: 8px 6px 6px;
  box-shadow: 3px 3px 0 var(--ink);
}

.stat b {
  display: block;
  font-size: 1.35rem;
}

/* HOW TO BUY — planted job signs */
.buy {
  padding: 34px 0 16px;
}

.buy-stage {
  transform: rotateX(6deg) rotateY(-5deg);
  padding: 26px;
  background: linear-gradient(145deg, #ffe08a, #fff6cf 45%, #ffc46b);
}

.buy-top {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
  align-items: center;
}

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

.permit {
  background: #fffdf5;
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 14px 14px 12px;
  transform: rotate(var(--tilt));
}

.permit:nth-child(1) { --tilt: -2.4deg; }
.permit:nth-child(2) { --tilt: 2.1deg; }
.permit:nth-child(3) { --tilt: 1.6deg; }
.permit:nth-child(4) { --tilt: -1.8deg; }

.permit:hover {
  transform: rotate(0deg) translateY(-4px);
}

.permit-no {
  display: inline-block;
  background: var(--ink);
  color: var(--hat);
  padding: 0 8px;
  font-size: 1.1rem;
}

.permit h3 {
  margin: 8px 0 6px;
  font-size: 1.7rem;
}

.permit p {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

/* COMMUNITY — roadside billboard */
.community {
  padding: 36px 0 24px;
}

.community-stage {
  transform: rotateX(4deg) rotateY(4deg);
  padding: 20px;
  background: linear-gradient(180deg, #2b3340, #171c24);
  color: #fff8e6;
}

.community-stage h2,
.community-stage .kicker {
  color: var(--hat);
}

.community-stage .kicker {
  color: #fff;
}

.community p {
  font-weight: 700;
  max-width: 40rem;
}

.billboard-art {
  margin: 16px 0 18px;
  background: #0b0e13;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* FOOTER */
.site-foot {
  border-top: 6px solid var(--ink);
  background: #10141b;
  color: #efe3c4;
  padding: 22px 0 28px;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--hat);
  color: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 16px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 60;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .yard {
    perspective: none;
  }

  .hero-stage,
  .about-stage,
  .buy-stage,
  .community-stage {
    transform: none;
  }

  .slab::before,
  .slab::after {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .buy-top {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 16px;
    max-height: 0;
    overflow: hidden;
  }

  .nav-drawer.is-open {
    max-height: 360px;
  }

  .nav-drawer a {
    text-decoration: none;
    font-weight: 800;
    color: #fff6d8;
    padding: 10px 12px;
    border: 3px solid transparent;
  }

  .stat-row,
  .permits {
    grid-template-columns: 1fr;
  }

  .hero-art,
  .permit {
    transform: none;
  }

  .ca-code {
    max-width: 58vw;
  }
}
