/* v01-neon — the neon list.

   The page is one centred column. The hero sits under a dithered sky that
   scrolls slower than the text; the tools are a list of names in display type
   that open one at a time; the sign-up is the only boxed thing on the page.
   Desktop and mobile are two compositions, not one squeezed: the desktop list
   is centred with the languages set beside the name and the description held
   back until the reader points at it, the mobile list is left-aligned with
   every description already open, because a phone has no hover. */

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

.v1-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  text-align: center;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 7rem);
}
/* The sky: an ordered-dither ramp from the accent down into the page black.
   dither.js paints the real Bayer ramp into a canvas over this gradient. */
/* The sky is a band across the top of the first screen, not a wash behind the
   claim: the type sits under it, on the page black, where it has its full
   contrast. The mask takes the ramp out before the text begins. */
.v1-sky {
  position: absolute;
  inset: 0 0 62%;
  z-index: -2;
  background-image: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 82%, #000) 0%, var(--bg) 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 52%, transparent 100%);
  will-change: transform;
}
.v1-haze {
  position: absolute;
  inset: -10% -10% 66%;
  z-index: -1;
  background-image: var(--dither-checker-25);
  background-size: calc(var(--dither-cell) * 4) calc(var(--dither-cell) * 4);
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000 0%, transparent 100%);
  mask-image: radial-gradient(60% 55% at 50% 30%, #000 0%, transparent 100%);
  will-change: transform;
}
.v1-hero-text { position: relative; }
.v1-hero h1 {
  font-size: var(--display-1);
  max-width: 20ch;
  margin-inline: auto;
  letter-spacing: -0.03em;
  text-transform: none;
  text-wrap: balance;
}
.v1-hero .st-support {
  margin: var(--space-28) auto 0;
  max-width: 32ch;
}
.v1-hero .st-adopt {
  margin: var(--space-16) auto 0;
  max-width: 44ch;
}
.v1-actions { justify-content: center; gap: var(--space-16); margin-top: clamp(2rem, 5vw, 3.5rem); }

/* ---------- the list ---------- */

.v1-heading {
  font-size: var(--display-2);
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  text-wrap: balance;
}
.v1-list {
  max-width: 62rem;
  margin-inline: auto;
  border-top: 1px solid var(--border);
}
.v1-row {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--row-rule, transparent);
  padding: clamp(1.25rem, 2.4vw, 2rem) clamp(1rem, 3vw, 2.5rem);
  transition: border-color var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
}
.v1-name {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
.v1-name::after { content: ""; position: absolute; inset: 0; }
.v1-lang {
  margin: var(--space-6) 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--dur-base) ease;
}
.v1-desc { margin: 0; color: var(--text-dim); line-height: var(--leading-relaxed); max-width: 56ch; }
.v1-links { display: flex; gap: var(--space-20); margin: var(--space-14) 0 0; position: relative; z-index: 1; }
.v1-links a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hi);
  border-bottom: 1px solid transparent;
}
.v1-links a:hover { border-color: var(--accent-2); }

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

.v1-narrow { max-width: 46rem; }
.v1-nl { --fill: var(--surface); --line: var(--accent); }
.v1-nl h2 { font-size: var(--display-3); letter-spacing: -0.01em; text-transform: none; }
.v1-nl-repeat { --line: var(--accent-2); }
.v1-band { border-block: 1px solid var(--border); }
.v1 .st-footer { text-align: center; }
.v1 .st-footer-row { justify-content: center; gap: var(--space-28); }

/* ---------- desktop: the row opens on hover and on focus ---------- */

@media (min-width: 900px) {
  .v1-row {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 4vw, 4rem);
    text-align: left;
  }
  .v1-lang { grid-column: 1; margin-top: var(--space-10); }
  .v1-open {
    grid-column: 2;
    grid-row: 1 / span 2;
    opacity: 0;
    transform: translateX(calc(-1 * var(--space-20)));
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  }
  .v1-row:hover .v1-open,
  .v1-row:focus-within .v1-open,
  .v1-row.is-hover .v1-open { opacity: 1; transform: none; }
  /* The row answers with its rule and a step to the right. Nothing is painted
     behind the name and no text changes colour. */
  .v1-row:hover, .v1-row:focus-within, .v1-row.is-hover { --row-rule: var(--accent); transform: translateX(6px); }
  /* The neighbours answer with their own rule, not by fading out. */
  .v1-row.is-near { --row-rule: var(--border-2); }
}

@media (prefers-reduced-motion: reduce) {
  .v1-open { transition: none; }
}

/* ---------- mobile (390px): a different composition ---------- */

@media (max-width: 899px) {
  .v1-hero { min-height: auto; text-align: left; padding-block: clamp(10rem, 52vw, 15rem) clamp(3rem, 10vw, 4rem); }
  .v1-hero h1 { margin-inline: 0; max-width: none; font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .v1-hero .st-support, .v1-hero .st-adopt { margin-inline: 0; }
  .v1-actions { justify-content: stretch; flex-direction: column; align-items: stretch; }
  .v1-actions .st-btn { width: 100%; }
  .v1-heading { text-align: left; }
  .v1-row { padding-inline: 0; }
  .v1-name { font-size: 1.5rem; }
  .v1-open { margin-top: var(--space-12); }
  .v1-desc { font-size: var(--text-base); }
  .v1-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .v1-sky { inset: 0 0 76%; }
  .v1-haze { display: none; }
}
