/* v03-split — the split page.

   Desktop: a two-column grid whose left column is pinned to the window and
   whose right column scrolls. Mobile: the left column is not rendered at all
   and the right column becomes the page, with its section titles back in the
   flow where the fixed half used to say them. */

.v3-split { display: grid; }

/* ---------- the fixed half ---------- */

.v3-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-right: 1px solid var(--border-2);
}
.v3-stage-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(135deg, var(--bg) 0%, color-mix(in srgb, var(--accent) 85%, #000) 88%);
}
.v3-stage-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: clamp(2rem, 4vw, 4rem);
}
.v3-stage-word {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}
.v3-stage-word b { color: var(--accent-hi); font-weight: inherit; }
.v3-stage-plate {
  width: clamp(120px, 14vw, 220px);
  border: 2px solid var(--text);
  align-self: flex-end;
}

/* ---------- the scrolling half ---------- */

.v3-flow { min-width: 0; padding-inline: clamp(1.5rem, 4vw, 4.5rem); }
.v3-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4rem, 11vw, 8rem) clamp(3rem, 8vw, 6rem);
}
.v3-hero-wash {
  position: absolute;
  inset: -30% -30% 0 -10%;
  z-index: -1;
  background-image: var(--dither-checker-25);
  background-size: calc(var(--dither-cell) * 3) calc(var(--dither-cell) * 3);
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 20%, #000, transparent 100%);
  mask-image: radial-gradient(70% 60% at 30% 20%, #000, transparent 100%);
  will-change: transform;
}
.v3-hero h1 {
  font-size: var(--display-1);
  letter-spacing: -0.03em;
  text-transform: none;
  max-width: 17ch;
  text-wrap: balance;
}
.v3-hero .st-support { margin-top: var(--space-24); max-width: 30ch; }
.v3-hero .st-adopt { margin-top: var(--space-16); max-width: 42ch; }
.v3-actions { margin-top: clamp(2rem, 4vw, 3rem); }

.v3-section { padding-block: clamp(3rem, 8vw, 7rem); }
.v3-section-title {
  font-size: var(--display-2);
  letter-spacing: -0.02em;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* ---------- the rows ---------- */

.v3-rows { display: flex; flex-direction: column; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.v3-row {
  --fill: var(--surface);
  --line: var(--border);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) ease;
}
.v3-row-name { font-size: var(--text-3xl); font-family: var(--font-display); }
.v3-row-name a { color: var(--text); }
.v3-row-name a::after { content: ""; position: absolute; inset: 0; }
.v3-row-lang {
  margin: var(--space-6) 0 var(--space-12);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.v3-row-desc {
  margin: 0;
  color: var(--text-dim);
  line-height: var(--leading-relaxed);
  max-width: 62ch;
}
.v3-row-links { display: flex; gap: var(--space-20); margin: var(--space-16) 0 0; position: relative; z-index: 1; }
.v3-row-links a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2-hi);
  border-bottom: 1px solid transparent;
}
.v3-row-links a:hover { border-color: var(--accent-2); }
.v3-row:hover, .v3-row.is-hover { --line: var(--accent); transform: translate(-3px, -3px); }
.v3-row.is-near { --line: var(--border-2); }

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

.v3-signup { max-width: 44rem; }
.v3-nl { --fill: var(--surface); --line: var(--accent); }
.v3-nl h2 { font-size: var(--display-3); text-transform: none; letter-spacing: -0.01em; }
.v3-band { margin-inline: calc(-1 * clamp(1.5rem, 4vw, 4.5rem)); }
.v3 .st-footer { margin-top: 0; }

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

@media (min-width: 900px) {
  .v3-split { grid-template-columns: minmax(0, 38%) minmax(0, 62%); }
  .v3-stage {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    padding-top: 3.5rem;
  }
  .v3-section-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .v3 .st-footer .st-container { width: min(100% - 2rem, 100%); padding-inline: clamp(1.5rem, 4vw, 4.5rem); }
}

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

@media (max-width: 899px) {
  .v3-stage { display: none; }
  .v3-flow { padding-inline: var(--gutter); }
  .v3-hero { padding-block: clamp(2.5rem, 12vw, 4rem) clamp(2rem, 8vw, 3rem); }
  .v3-hero h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); max-width: none; }
  .v3-actions { flex-direction: column; align-items: stretch; }
  .v3-actions .st-btn { width: 100%; }
  .v3-row-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .v3-row-name a::after { content: none; }
  .v3-band { margin-inline: calc(-1 * var(--gutter)); }
}
