/* v06-pixel — the blocks page.

   Squares: a bitmap wordmark, a marquee, then a grid of large blocks with
   three-pixel outlines, forty-four-pixel notches and solid yellow shadows.
   The bitmap font is SVG rectangles, so it stays crisp at every size and
   needs no font file. */

.v6 .st-pixel { height: auto; max-width: 100%; }

/* ---------- hero ---------- */

.v6-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 10vw, 7rem) clamp(3rem, 8vw, 6rem);
}
.v6-grid-wash {
  position: absolute;
  inset: -30% -10%;
  z-index: -1;
  background-image: var(--dither-checker-25);
  background-size: calc(var(--dither-cell) * 3) calc(var(--dither-cell) * 3);
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(75% 65% at 25% 25%, #000, transparent 100%);
  mask-image: radial-gradient(75% 65% at 25% 25%, #000, transparent 100%);
  will-change: transform;
}
.v6-mark { color: var(--accent); margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.v6-hero h1 {
  font-size: var(--display-1);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.98;
  max-width: 18ch;
  text-wrap: balance;
}
.v6-hero .st-support { margin-top: var(--space-24); max-width: 32ch; }
.v6-hero .st-adopt { margin-top: var(--space-16); max-width: 46ch; }
.v6-actions { margin-top: clamp(2rem, 4vw, 3rem); gap: var(--space-16); }

/* ---------- the blocks ---------- */

.v6-heading {
  font-size: var(--display-2);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.v6-blocks {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 3.25rem);
}
.v6-block {
  --fill: var(--surface);
  --line: var(--accent);
  display: flex;
  flex-direction: column;
  gap: var(--space-14);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) ease, filter var(--dur-base) ease;
}
.v6-block-name { margin: 0; }
.v6-block-name a { color: var(--accent-hi); display: inline-block; }
.v6-block-name a::after { content: ""; position: absolute; inset: 0; }
.v6-block-lang {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.v6-block-desc {
  margin: 0;
  flex: 1;
  color: var(--text-dim);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.v6-block-links { display: flex; gap: var(--space-20); margin: 0; position: relative; z-index: 1; }
.v6-block-links a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  border-bottom: 2px solid transparent;
}
.v6-block-links a:hover { border-color: var(--accent-2); }
.v6-block:hover, .v6-block.is-hover { --line: var(--accent-2); }
.v6-block.is-near { --line: var(--border-2); }

/* ---------- sign-up ---------- */

.v6-narrow { max-width: 46rem; }
.v6-nl { --fill: var(--surface); --line: var(--accent); }
.v6-nl h2 { font-size: var(--display-3); text-transform: uppercase; letter-spacing: -0.01em; }
.v6-band { border-block: 3px solid var(--accent-2); }
.v6 .st-footer { border-top-width: 3px; border-top-color: var(--accent-2); }

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  .v6-blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v6-mark { margin-left: -4px; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .v6-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- mobile (390px) ---------- */

@media (max-width: 899px) {
  :root { --notch: 28px; }
  .v6-hero { padding-block: clamp(2rem, 10vw, 3.5rem); }
  .v6-hero h1 { font-size: clamp(1.625rem, 7.5vw, 2.25rem); max-width: none; }
  .v6-mark svg { width: 100%; }
  .v6-actions { flex-direction: column; align-items: stretch; }
  .v6-actions .st-btn { width: 100%; }
  .v6-blocks { grid-template-columns: minmax(0, 1fr); }
  .v6-block { padding: var(--space-20); }
  .v6-block-desc { -webkit-line-clamp: 99; line-clamp: 99; }
  .v6-block-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .v6-block-name a::after { content: none; }
  .v6-grid-wash { display: none; }
}
