/* Dkompos — instrument-grade product site.
   Graphite surfaces, hairline structure, one amber, mono telemetry.
   The site is built in the app's own material: everything on this page
   could sit inside a Dkompos window without looking foreign. */

:root {
  color-scheme: dark;

  --ink: #0a0a0b;
  --ink-2: #0d0e10;
  --surface: #121316;
  --surface-2: #17181c;
  --surface-3: #1e1f24;
  --text: #f5f5f4;
  --text-2: #b9bbc0;
  --muted: #90939a;
  --faint: #81848b;
  --accent: #e5a13d;
  --accent-2: #f0b254;
  --accent-ink: #16110a;
  --accent-soft: rgba(229, 161, 61, 0.14);
  --danger: #f0867a;

  --line: rgba(245, 245, 244, 0.08);
  --line-2: rgba(245, 245, 244, 0.14);
  --line-3: rgba(245, 245, 244, 0.26);
  --focus: #f0b254;

  --shadow-frame: 0 40px 80px -28px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 24px 48px -22px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-menu: 0 18px 40px -12px rgba(0, 0, 0, 0.6);

  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-s: 8px;
  --r: 10px;
  --r-l: 14px;
  --r-xl: 14px;

  --max: 1200px;
  --measure: 66ch;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 60px;

  --quick: 140ms;
  --steady: 260ms;
  --slow: 560ms;
  --ease: cubic-bezier(0.32, 0.08, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2a2b30 var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #2a2b30;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3b41;
}

img,
svg {
  display: block;
  max-width: 100%;
}

svg {
  flex: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-s);
  transform: translate(-50%, -180%);
  background: var(--text);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--quick) var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wrap {
  width: min(var(--max), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

/* ------------------------------------------------------------------
   Type scale
   ------------------------------------------------------------------ */

.title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.lede {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.meta-line li {
  display: inline-flex;
  align-items: center;
}

.meta-line li + li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 12px;
  border-radius: 50%;
  background: var(--faint);
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(10, 10, 11, 0.92);
  transition: border-color var(--steady) var(--ease), background-color var(--steady) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 10, 11, 0.96);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand img,
.footer-brand img {
  width: 24px;
  height: 24px;
  margin-right: -3px;
}

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

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r-s);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--quick) var(--ease), background-color var(--quick) var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mobile-nav {
  display: none;
  position: static;
}

.mobile-nav summary {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
  transition: border-color var(--quick) var(--ease), color var(--quick) var(--ease);
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary:hover {
  border-color: var(--line-3);
  color: var(--text);
}

.mobile-nav summary svg {
  width: 18px;
  height: 18px;
}

.mobile-nav summary .icon-close,
.mobile-nav[open] summary .icon-menu {
  display: none;
}

.mobile-nav[open] summary .icon-close {
  display: block;
}

.mobile-nav nav {
  position: absolute;
  top: var(--header-h);
  right: 0;
  left: 0;
  display: grid;
  padding: 8px var(--gutter) 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-menu);
}

.mobile-nav nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 16px;
  font-weight: 500;
}

.mobile-nav nav a:last-child {
  border-bottom: 0;
}

.mobile-nav nav a[aria-current="page"] {
  color: var(--text);
}

/* ------------------------------------------------------------------
   Buttons and links
   ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-s);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--quick) var(--ease),
    border-color var(--quick) var(--ease),
    color var(--quick) var(--ease),
    transform var(--quick) var(--ease),
    box-shadow var(--quick) var(--ease);
}

.button svg {
  width: 16px;
  height: 16px;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.6);
}

.button-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.button-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.button-secondary {
  border-color: var(--line-2);
  background: var(--surface-2);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--line-3);
  background: var(--surface-3);
}

.button-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--quick) var(--ease), color var(--quick) var(--ease);
}

.text-link svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: transform var(--steady) var(--ease-out), color var(--quick) var(--ease);
}

.text-link:hover {
  text-decoration-color: var(--accent);
}

.text-link:hover svg {
  color: var(--accent);
  transform: translateX(3px);
}

/* ------------------------------------------------------------------
   Product window and signal card
   ------------------------------------------------------------------ */

.window {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}

.window img {
  width: 100%;
  height: auto;
}

.window-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 14px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.window-caption a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}

.window-caption a:hover {
  text-decoration-color: var(--accent);
}

.signal-card {
  padding: 16px 20px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: rgba(18, 19, 22, 0.98);
  box-shadow: var(--shadow-card);
}

.signal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.signal-head strong {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.signal-card dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.signal-card dl > div:last-child {
  border-bottom: 0;
}

.signal-card dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.signal-card dd {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* The one authored moment: the card verifies its route once, row by row,
   then the state lights amber, the way the app earns the badge. */

@media (prefers-reduced-motion: no-preference) {
  .signal-card[data-reveal] dl > div {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
  }

  .signal-card[data-reveal] dl > div:nth-child(2) { transition-delay: 90ms; }
  .signal-card[data-reveal] dl > div:nth-child(3) { transition-delay: 180ms; }
  .signal-card[data-reveal] dl > div:nth-child(4) { transition-delay: 270ms; }
  .signal-card[data-reveal] dl > div:nth-child(5) { transition-delay: 360ms; }
  .signal-card[data-reveal] dl > div:nth-child(6) { transition-delay: 450ms; }

  .signal-card[data-reveal] .signal-state {
    color: var(--faint);
    transition: color 420ms var(--ease) 760ms;
  }

  .signal-card[data-reveal] .signal-state::before {
    box-shadow: 0 0 0 3px transparent;
    transition: box-shadow 420ms var(--ease) 760ms;
  }

  .signal-card[data-reveal].is-live dl > div {
    opacity: 1;
    transform: none;
  }

  .signal-card[data-reveal].is-live .signal-state {
    color: var(--accent);
  }

  .signal-card[data-reveal].is-live .signal-state::before {
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
}

/* ------------------------------------------------------------------
   Hero — split: statement left, the product answering on the right
   ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.4vw, 70px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1;
  text-wrap: balance;
}

.hero-lede {
  max-width: 44ch;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.6;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.hero .meta-line {
  margin-top: 24px;
}

.hero-stage {
  position: relative;
  padding-bottom: 150px;
}

.hero .signal-card {
  position: absolute;
  bottom: 0;
  left: -28px;
  width: min(360px, calc(100% + 28px));
}

/* ------------------------------------------------------------------
   Proof strip
   ------------------------------------------------------------------ */

.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-grid > div {
  display: flex;
  gap: 14px;
  padding: 26px 24px 26px 0;
}

.proof-grid > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.proof-grid svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}

.proof-grid strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.proof-grid p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */

.section {
  padding: clamp(80px, 10vw, 136px) 0;
}

.section-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
}

.section-head .lede {
  justify-self: start;
}

.section-head .text-link {
  margin-top: 6px;
}

/* States ledger */

.states {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.states-copy .lede {
  margin-top: 18px;
}

.states-copy .text-link {
  margin-top: 18px;
}

.ledger {
  border-top: 1px solid var(--line-2);
}

.ledger > div {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 10px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 3px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}

.state-live::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.state-direct::before {
  background: var(--text-2);
}

.state-processed::before,
.state-converted::before {
  border: 1.5px solid var(--text-2);
  background: transparent;
}

.state-converted::before {
  border-color: var(--muted);
}

.ledger h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.ledger p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Feature bento */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

.span-2 {
  grid-column: span 2;
}

.card-body {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 22px 24px 24px;
}

.card-body h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.card-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.tag {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Demo vignettes inside cards: the app's own grammar at thumbnail scale */

.demo {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-head .state {
  padding-top: 0;
  font-size: 10.5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats > div {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.stats b {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.stats span {
  display: block;
  margin-top: 7px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bars {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.bar {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bar b {
  color: var(--text-2);
  font-weight: 500;
  text-align: right;
  letter-spacing: 0;
}

.bar i {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-2);
}

.bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w, 50%);
  border-radius: inherit;
  background: var(--accent);
}

.bar-45 { --w: 45%; }
.bar-43 { --w: 43%; }
.bar-61 { --w: 61%; }

.lyrics {
  display: grid;
  gap: 9px;
  font-family: var(--font-text);
}

.lyrics span {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.35;
}

.lyrics time {
  flex: none;
  min-width: 36px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
}

.lyrics .now {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.lyrics .now time {
  color: var(--accent);
}

.rows {
  display: grid;
  gap: 6px;
}

.row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  white-space: nowrap;
}

.row > span:first-child {
  color: var(--faint);
}

.row > span:nth-child(2) {
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.row em {
  color: var(--accent);
  font-style: normal;
}

.row.is-now {
  background: var(--accent-soft);
}

.row.is-now > span:first-child {
  color: var(--accent);
}

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.chapter:last-child {
  border-bottom: 0;
}

.chapter > span:first-child {
  color: var(--text);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
}

.chapter .progress {
  grid-column: 1 / -1;
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-2);
}

.chapter .progress::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w, 0%);
  border-radius: inherit;
  background: var(--accent);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-line svg {
  width: 28px;
  height: 28px;
  color: var(--text-2);
}

.status-line > div > b {
  display: block;
  color: var(--text);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
}

.status-line > div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.status-line .state {
  margin-left: auto;
  padding-top: 0;
  font-size: 10.5px;
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
  margin-top: 56px;
}

.principles > div {
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}

.principles h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.principles p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px 96px;
  align-items: start;
}

.faq-heading .lede {
  margin-top: 16px;
}

.faq-list {
  border-top: 1px solid var(--line-2);
}

.faq-list details {
  border-bottom: 1px solid var(--line-2);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 18px 0;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  transition: color var(--quick) var(--ease);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  color: var(--accent-2);
}

.faq-list summary svg {
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: transform var(--steady) var(--ease-out), color var(--quick) var(--ease);
}

.faq-list details[open] summary svg {
  color: var(--accent);
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 62ch;
  padding: 0 0 22px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

/* Download close */

.download {
  padding: clamp(96px, 12vw, 160px) 0;
  text-align: center;
}

.download-inner {
  display: grid;
  justify-items: center;
  max-width: 640px;
  margin-inline: auto;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
}

.app-icon svg {
  width: 42px;
  height: 42px;
  color: var(--accent);
}

.download .title {
  margin-top: 28px;
  font-size: clamp(34px, 4.2vw, 54px);
}

.download .lede {
  margin-top: 16px;
  max-width: 44ch;
}

.download .actions {
  justify-content: center;
  margin-top: 32px;
}

.download .meta-line {
  justify-content: center;
  margin-top: 22px;
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-tagline {
  max-width: 28ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col > p {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  list-style: none;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
  transition: color var(--quick) var(--ease);
}

.footer-col a:hover,
.footer-col a[aria-current="page"] {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
}

.footer-bottom .meta-line {
  color: var(--faint);
}

/* ------------------------------------------------------------------
   Secondary pages
   ------------------------------------------------------------------ */

.page {
  padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 128px);
}

.page-head h1 {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.02;
  text-wrap: balance;
}

.page-head .lede {
  max-width: 58ch;
  margin-top: 20px;
  font-size: 18px;
}

.page-head .actions {
  margin-top: 28px;
}

.prose {
  max-width: var(--measure);
  margin-top: 48px;
}

.prose h2 {
  margin-top: 44px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.prose h2 + p {
  margin-top: 12px;
}

.prose p {
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.7;
}

.prose p + p {
  margin-top: 14px;
}

.prose a:not(.button) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--quick) var(--ease);
}

.prose a:not(.button):hover {
  text-decoration-color: var(--accent);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.facts > div {
  padding: 22px 24px 22px 0;
}

.facts > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.facts strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.facts p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------
   Releases
   ------------------------------------------------------------------ */

.release-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 72px;
  align-items: end;
}

.facts-card {
  padding: 6px 22px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.facts-card > div,
.release-facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts-card > div:last-child,
.release-facts > div:last-child {
  border-bottom: 0;
}

.facts-card dt,
.release-facts dt,
.release-entry .date {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts-card dt,
.release-facts dt {
  padding-top: 3px;
}

.facts-card dd,
.release-facts dd {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.checksum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 600;
  transition: border-color var(--quick) var(--ease), color var(--quick) var(--ease);
}

.copy-button:hover {
  border-color: var(--line-3);
  color: var(--text);
}

.copy-button.is-done {
  border-color: var(--accent);
  color: var(--accent);
}

.release-shot {
  max-width: 900px;
  margin: clamp(56px, 7vw, 88px) auto 0;
}

.changelog {
  margin-top: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--line-2);
}

article.release-entry {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: repeat(16, auto);
  column-gap: 56px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

article.release-entry > * {
  grid-column: 2;
  min-width: 0;
}

article.release-entry > h2 {
  grid-column: 1;
  grid-row: 1 / -1;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

article.release-entry > h2 > span:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(229, 161, 61, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
}

article.release-entry h3 {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
  text-wrap: balance;
}

.release-entry-current h3 {
  max-width: 22ch;
  font-size: clamp(30px, 3.6vw, 44px);
}

article.release-entry > p {
  max-width: 64ch;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
}

.release-entry-current > p {
  font-size: 17px;
}

article.release-entry > ul {
  max-width: 64ch;
  margin-top: 22px;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

article.release-entry li + li,
.release-detail li + li {
  margin-top: 8px;
}

article.release-entry li::marker,
.release-detail li::marker {
  color: var(--faint);
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

article.release-entry .button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

article.release-entry:not(.release-entry-current) .button-primary {
  border-color: var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
}

article.release-entry:not(.release-entry-current) .button-primary:hover {
  border-color: var(--line-3);
  background: var(--surface-3);
  transform: none;
}

.release-facts {
  margin-top: 28px;
  border-top: 1px solid var(--line-2);
}

.release-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.release-pillars > div {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.quality-status {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.release-pillars h4 {
  margin-top: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.release-pillars h4 + p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.release-detail {
  margin-top: 44px;
}

.release-detail > h4 {
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.25;
}

.release-detail > p,
.release-detail > ul {
  max-width: 64ch;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

.release-detail > p + p {
  margin-top: 12px;
}

.release-detail > ul {
  padding-left: 20px;
}

.quality-matrix {
  margin-top: 18px;
  padding: 0;
  border-top: 1px solid var(--line-2);
  list-style: none;
}

.quality-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.quality-row:last-child {
  border-bottom: 0;
}

.quality-row h3 {
  max-width: none;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.quality-row h3 + p,
.quality-row > p:last-child {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.quality-row h3 + p {
  margin-top: 4px;
}

.quality-row > p:last-child {
  color: var(--text-2);
}

details.release-entry {
  border-bottom: 1px solid var(--line);
}

details.release-entry > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 72px;
  padding: 20px 0;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
  transition: color var(--quick) var(--ease);
}

details.release-entry > summary::-webkit-details-marker {
  display: none;
}

details.release-entry > summary:hover {
  color: var(--accent-2);
}

details.release-entry > summary .summary-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

details.release-entry > summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  margin-right: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--steady) var(--ease-out);
}

details.release-entry[open] > summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

details.release-entry > .release-note {
  max-width: 64ch;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

details.release-entry article.release-entry:last-child {
  border-bottom: 0;
}

/* ------------------------------------------------------------------
   Feedback form
   ------------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px 72px;
  align-items: start;
  margin-top: 48px;
}

.form-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.form-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.form-card h2,
.aside h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.form-card-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

.feedback-form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
}

.field small {
  margin-left: 6px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 14px;
}

.field select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2390939a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field textarea {
  min-height: 180px;
  padding: 12px 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.form-status {
  min-height: 22px;
  color: var(--text-2);
  font-size: 14px;
}

.form-status[data-tone="success"] {
  color: var(--accent);
}

.form-status[data-tone="error"] {
  color: var(--danger);
}

.screen-reader-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.aside {
  padding-top: 8px;
}

.tips {
  margin-top: 20px;
  list-style: none;
  border-top: 1px solid var(--line-2);
}

.tips li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tips li span {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.aside-note {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.aside-note a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 4px;
}

.aside-note a:hover {
  text-decoration-color: var(--accent);
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero .window {
    width: 100%;
  }

  .hero-stage {
    padding-bottom: 0;
  }

  .hero .signal-card {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .section-head,
  .states,
  .faq,
  .release-hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    gap: 16px;
  }

  .states {
    gap: 40px;
  }

  .faq {
    gap: 32px;
  }

  .release-hero {
    gap: 36px;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-2 {
    grid-column: span 2;
  }

  article.release-entry {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 0;
  }

  article.release-entry > * {
    grid-column: 1;
  }

  article.release-entry > h2 {
    grid-row: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    margin-bottom: 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 56px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    background: var(--ink);
  }

  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 46px);
  }

  .hero .window,
  .showcase .window,
  .release-shot .window {
    margin-inline: calc(-1 * var(--gutter));
    width: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .window-caption {
    padding: 0;
  }

  .proof-grid,
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid > div,
  .facts > div {
    padding: 20px 16px 20px 0;
  }

  .proof-grid > div + div,
  .facts > div + div {
    padding-left: 0;
    border-left: 0;
  }

  .proof-grid > div:nth-child(even),
  .facts > div:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

  .proof-grid > div:nth-child(n + 3),
  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .ledger > div {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 10px 16px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .release-pillars,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .quality-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .facts-card > div,
  .release-facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-grid {
    gap: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero-actions .button,
  .download .actions .button,
  .page-head .actions .button,
  .release-actions .button,
  .feedback-actions .button {
    width: 100%;
  }

  .proof-grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .proof-grid > div,
  .facts > div,
  .proof-grid > div:nth-child(even),
  .facts > div:nth-child(even) {
    padding: 18px 0;
    border-left: 0;
  }

  .proof-grid > div + div,
  .facts > div + div {
    border-top: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 8px;
  }

  .stats b {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--ink);
  }
}

/* ------------------------------------------------------------------
   Variants used by the player page
   ------------------------------------------------------------------ */

.hero-stack .hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(40px, 5vw, 64px);
  text-align: center;
}

.hero-stack .hero-copy {
  max-width: 760px;
}

.hero-stack .hero-lede {
  max-width: 54ch;
  margin-inline: auto;
}

.hero-stack .hero-actions,
.hero-stack .meta-line {
  justify-content: center;
}

.hero-stack .hero-stage {
  width: 100%;
  padding-bottom: 0;
}

.hero-stack .window {
  width: 100%;
  max-width: 900px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.split-reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.split-reverse .split-copy {
  order: 2;
}

.split-copy .lede {
  margin-top: 18px;
}

.split-copy .text-link {
  margin-top: 20px;
}

.fact-rows {
  margin-top: 28px;
  border-top: 1px solid var(--line-2);
}

.fact-rows > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fact-rows dt {
  padding-top: 3px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact-rows dd {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1040px) {
  .split,
  .split-reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-reverse .split-copy {
    order: 0;
  }

  .split-copy {
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  .split .window {
    margin-inline: calc(-1 * var(--gutter));
    width: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .fact-rows > div {
    grid-template-columns: 1fr;
  }
}

.subtitle {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-head + .split {
  margin-top: clamp(48px, 6vw, 72px);
}

/* Changelog pillar categories sit after the copy as a mono term, never above the heading. */
.release-pillars .quality-status {
  order: 3;
  margin-top: auto;
  padding-top: 14px;
}

@media (max-width: 480px) {
  .ledger > div {
    grid-template-columns: 1fr;
  }

  .ledger .state {
    order: 2;
    padding-top: 2px;
  }
}

/* Screenshots are 1224px captures: they are never rendered wider than their
   native size, and the frame is the same hairline card the rest of the site uses. */

.rows-wide .row {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

.rows-wide .row > span:first-child {
  color: var(--accent);
}

.chapters {
  display: grid;
}

.chapter > span:last-child {
  color: var(--faint);
}

.demo-head > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .rows-wide .row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 2px 12px;
  }

  .rows-wide .row > span:last-child {
    grid-column: 2;
    color: var(--faint);
  }

  .rows-wide .row > span:nth-child(2) {
    white-space: normal;
  }
}

.lede a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--quick) var(--ease);
}

.lede a:hover {
  text-decoration-color: var(--accent);
}
