:root {
  --surface: oklch(0.94 0.012 80);
  --paper: oklch(0.975 0.006 80);
  --ink: oklch(0.16 0 0);
  --muted: oklch(0.43 0 0);
  --line: oklch(0.16 0 0 / 0.1);
  --accent: oklch(0.42 0.07 235);
  --brick: oklch(0.5 0.12 38);
  --sand: oklch(0.7 0.08 78);
  --mortar: oklch(0.76 0.012 80);
  --charcoal: oklch(0.19 0 0);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  letter-spacing: 0;
}

.prototype {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.mobile-screen {
  width: min(100%, 390px);
}

.topline {
  display: flex;
  justify-content: space-between;
  padding: 0 2px 14px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.site-stage {
  position: relative;
  height: min(800px, calc(100svh - 50px));
  min-height: 690px;
  overflow: hidden;
  border: 1px solid oklch(0.28 0.01 80);
  border-radius: 28px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  box-shadow: 0 28px 80px oklch(0.16 0 0 / 0.24);
}

.site-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 92px;
  background: linear-gradient(oklch(0.16 0 0 / 0.1), transparent);
  pointer-events: none;
}

.nav-pill {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  border: 1px solid oklch(0.16 0 0 / 0.12);
  border-radius: 999px;
  background: oklch(0.98 0 0 / 0.9);
  padding: 0 16px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.headline {
  position: absolute;
  z-index: 3;
  top: 96px;
  left: 20px;
  width: 220px;
  padding: 8px 14px 8px 0;
}

.headline p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.headline h1 {
  margin: 0;
  font-family: Vollkorn, Georgia, serif;
  font-size: clamp(2.2rem, 12vw, 2.75rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0;
}

.brick-grid {
  position: absolute;
  inset: 4px 20px auto;
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  grid-template-rows: repeat(25, 23px);
  gap: 5px;
}

.brick {
  grid-column: var(--col) / span var(--span);
  grid-row: var(--row);
  min-height: 20px;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(-34px) rotate(-1.5deg) scale(0.96);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.22),
    inset 0 -2px 0 oklch(0.16 0 0 / 0.12),
    0 9px 18px oklch(0.16 0 0 / 0.12);
  animation: brick-set 620ms var(--ease-out) forwards;
  animation-delay: var(--delay);
}

.brick[data-tone="brick"] {
  background:
    linear-gradient(90deg, transparent 46%, oklch(0.16 0 0 / 0.1) 46% 50%, transparent 50%),
    linear-gradient(135deg, oklch(0.59 0.13 42), var(--brick));
}

.brick[data-tone="mortar"] {
  background: linear-gradient(135deg, oklch(0.84 0.012 80), var(--mortar));
}

.brick[data-tone="blue"] {
  background: linear-gradient(135deg, oklch(0.47 0.075 235), oklch(0.34 0.08 235));
}

.brick[data-tone="sand"] {
  background: linear-gradient(135deg, oklch(0.78 0.075 82), var(--sand));
}

.brick[data-tone="charcoal"] {
  background: linear-gradient(135deg, oklch(0.29 0.01 80), var(--charcoal));
}

.footer-panel {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border-radius: 6px;
  background: var(--ink);
  color: oklch(0.98 0 0);
  padding: 18px;
  box-shadow: 0 18px 40px oklch(0.16 0 0 / 0.24);
}

.footer-panel p {
  margin: 0 0 10px;
  color: oklch(0.82 0.06 75);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-panel strong {
  display: block;
  max-width: 17rem;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.12;
}

@keyframes brick-set {
  0% {
    opacity: 0;
    transform: translateY(-34px) rotate(-1.5deg) scale(0.96);
  }
  70% {
    opacity: 1;
    transform: translateY(2px) rotate(0.3deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brick {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
