/* HEISS UI landing page. Mirrors the app: #0a0a0a canvas, floating pill surfaces, dot grid, pixel wordmark. */

@font-face {
  font-family: "PP Neue Bit";
  src: url("./fonts/PPNeueBit-Bold.woff2") format("woff2"), url("./fonts/PPNeueBit-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Geist and Geist Mono, latin subset, served from here instead of Google Fonts. */
@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/GeistMono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;

  --canvas: #0a0a0a;
  --surface: #131313;
  --surface-2: #1a1a1a;
  --surface-3: #242424;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --text: #f5f5f5;
  --text-2: #a3a3a3;
  --text-3: #7a7a7a;
  --action: #f4f4f4;
  --action-ink: #0a0a0a;
  --ember: #ff9a52;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pixel: "PP Neue Bit", var(--mono);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.2, 0, 0, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --content: 1080px;
  --wide: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: rgb(255 154 82 / 0.28); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
strong { color: var(--text); font-weight: 550; }

code {
  font: 500 0.86em/1 var(--mono);
  padding: 0.18em 0.42em;
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  white-space: nowrap;
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 16px; height: 16px; flex: none; }

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--action);
  color: var(--action-ink);
  font-weight: 550;
  transition: top 200ms var(--ease-ui);
}
.skip:focus-visible { top: 16px; }

.inline {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms var(--ease-ui);
}
.inline:hover { text-decoration-color: var(--text); }

/* ── Nav: the same floating pills as the app ─────────────────────────── */

.nav {
  position: fixed;
  inset: 14px var(--gutter) auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.pill {
  pointer-events: auto;
  background: rgb(22 22 22 / 0.78);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08),
    0 10px 36px rgb(0 0 0 / 0.35),
    inset 0 1px 0 rgb(255 255 255 / 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 5px 18px 5px 5px;
  border-radius: 24px;
  transition-property: background-color, scale;
  transition-duration: 180ms;
  transition-timing-function: var(--ease-ui);
}
.nav-brand:hover { background-color: rgb(36 36 36 / 0.86); }
.nav-brand:active { scale: 0.96; }

/* Outer 24px radius = 19px circle radius + 5px padding. */
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--action);
  color: var(--action-ink);
}
.mark svg { width: 30px; height: 30px; overflow: visible; }
.mark path { fill: currentColor; }
.mark .steam { animation: steam 3.2s ease-in-out infinite; }
.mark .steam-b { animation-delay: -1.6s; }

@keyframes steam {
  0%, 100% { opacity: 1; translate: 0 0; }
  50% { opacity: 0.35; translate: 0 -5px; }
}

.nav-brand-name {
  font: 700 19px/1 var(--pixel);
  letter-spacing: 0.01em;
  padding-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 4px;
  border-radius: 22px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition-property: background-color, color, scale;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-ui);
}
.nav-links a:hover { background-color: rgb(255 255 255 / 0.08); color: var(--text); }
.nav-links a:active { scale: 0.96; }
.nav-links .nav-gh { color: var(--text); }

.stars-count {
  margin-left: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  font: 500 12px/1.2 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(136px, 18vw, 188px) var(--gutter) 0;
  isolation: isolate;
}

/* The app's dot grid, fading out as the page goes on. */
.fx-hero .hero::before { opacity: 0; }
.hero::before {
  content: "";
  transition: opacity 1.2s var(--ease-ui);
  position: absolute;
  inset: 0 0 20%;
  z-index: -2;
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.07) 0.8px, transparent 1px);
  background-size: 24px 24px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 18%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 18%, #000 20%, transparent 75%);
}

/* Mosaic field (fx.js), drawn behind the headline and around the screenshot. */
.hero-fx {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  width: 100%;
  height: min(118vh, 1180px);
  pointer-events: none;
  display: none;
}
.fx-hero .hero-fx { display: block; }

.hero-copy {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

/* Chip: square tile, two segments, selection handles on the corners. */
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px 0 5px;
  border-radius: 12px;
  background: rgb(20 20 20 / 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgb(0 0 0 / 0.3);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition-property: background-color, color, scale;
  transition-duration: 180ms;
  transition-timing-function: var(--ease-ui);
}
.chip:hover { background-color: rgb(30 30 30 / 0.8); color: var(--text); }
.chip:active { scale: 0.96; }
.chip:focus-visible { border-radius: 12px; }

/* Tile radius 7 + 5px inset = chip radius 12. */
.chip-tile {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 2px;
  place-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #1d1d1d;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip-tile i {
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: #3a3a3a;
  animation: tile-step 2.8s steps(1) infinite;
}
.chip-tile i:nth-child(1) { animation-delay: 0s; }
.chip-tile i:nth-child(2) { animation-delay: -0.7s; }
.chip-tile i:nth-child(4) { animation-delay: -1.4s; }
.chip-tile i:nth-child(3) { animation-delay: -2.1s; }
@keyframes tile-step {
  0% { background: var(--ember); box-shadow: 0 0 8px rgb(255 154 82 / 0.7); }
  25%, 100% { background: #3a3a3a; box-shadow: none; }
}

.chip-kicker { color: var(--text); font-weight: 550; }
.chip-rule { width: 1px; height: 14px; background: var(--line-strong); }
.chip-arrow { width: 14px; height: 14px; color: var(--text-3); transition: translate 220ms var(--ease), color 180ms var(--ease-ui); }
.chip:hover .chip-arrow { translate: 2px 0; color: var(--text); }

/* Design-tool selection handles, the square accent used around the page. */
.handles { position: absolute; inset: 0; pointer-events: none; --h: 7px; }
.handles i {
  position: absolute;
  width: var(--h);
  height: var(--h);
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.32);
  transition: box-shadow 220ms var(--ease-ui), background-color 220ms var(--ease-ui);
}
.handles i:nth-child(1) { left: calc(var(--h) / -2); top: calc(var(--h) / -2); }
.handles i:nth-child(2) { right: calc(var(--h) / -2); top: calc(var(--h) / -2); }
.handles i:nth-child(3) { left: calc(var(--h) / -2); bottom: calc(var(--h) / -2); }
.handles i:nth-child(4) { right: calc(var(--h) / -2); bottom: calc(var(--h) / -2); }
.chip .handles { --h: 5px; }
.chip:hover .handles i { background: var(--ember); box-shadow: 0 0 8px rgb(255 154 82 / 0.6); }

.hero h1 {
  margin-top: 30px;
  font-size: clamp(2.9rem, 1.4rem + 6.6vw, 6.6rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.052em;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 30%, #b8b8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em; /* keep descenders inside the clipped gradient */
}

.hero-lead {
  max-width: 560px;
  margin: 26px auto 0;
  color: var(--text-2);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.55;
  letter-spacing: -0.011em;
  text-wrap: pretty;
}

/* Hero download: the card's primary button, with a pixel arrow that drops in on hover. */
.hero-cta {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 38px;
}

.hero-dl {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 0 10px 0 28px;
  border-radius: 32px;
  background: var(--action);
  color: var(--action-ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.5) inset,
    0 0 0 6px rgb(255 255 255 / 0.05),
    0 18px 48px -10px rgb(255 154 82 / 0.28),
    0 12px 32px -8px rgb(255 255 255 / 0.18);
  transition-property: background-color, box-shadow, scale;
  transition-duration: 180ms;
  transition-timing-function: var(--ease-ui);
}
.hero-dl:hover {
  background: #fff;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.5) inset,
    0 0 0 6px rgb(255 154 82 / 0.12),
    0 22px 56px -10px rgb(255 154 82 / 0.42),
    0 16px 40px -8px rgb(255 255 255 / 0.26);
}
.hero-dl:active { scale: 0.97; }
.hero-dl:focus-visible { border-radius: 32px; }
.hero-dl .handles { --h: 7px; inset: -6px; }
.hero-dl:hover .handles i { background: var(--ember); box-shadow: 0 0 8px rgb(255 154 82 / 0.6); }

.hero-dl-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--action-ink);
  overflow: hidden;
}
.hero-dl-icon svg { width: 16px; height: 16px; overflow: visible; }
.hero-dl-icon .px { fill: var(--action); shape-rendering: crispEdges; }
.hero-dl-icon .r1 { --row: 1; }
.hero-dl-icon .r2 { --row: 2; }
.hero-dl-icon .r3 { --row: 3; }
.hero-dl-icon .r4 { --row: 4; }
.hero-dl:hover .hero-dl-icon .px { animation: px-drop 1.1s steps(1) calc(var(--row, 0) * 80ms) infinite; }
@keyframes px-drop {
  0% { fill: var(--ember); translate: 0 0; }
  18% { fill: var(--ember); translate: 0 2px; }
  36%, 100% { fill: var(--action); translate: 0 0; }
}

.hero-dl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  color: var(--text-3);
  font: 500 12.5px/1.6 var(--mono);
  font-variant-numeric: tabular-nums;
}
.hero-dl-sep { width: 4px; height: 4px; background: var(--line-strong); }

/* Screenshot */

.shot {
  position: relative;
  max-width: var(--wide);
  margin: clamp(56px, 8vw, 88px) auto 0;
}

/* Warm glow picked up from the gallery's own colors. */
.shot::before {
  content: "";
  position: absolute;
  inset: 8% 6% -2%;
  z-index: -1;
  background:
    radial-gradient(40% 55% at 30% 45%, rgb(255 132 54 / 0.2), transparent 70%),
    radial-gradient(40% 55% at 72% 40%, rgb(64 170 190 / 0.13), transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

/* Frame radius 26 = image radius 20 + 6px padding. */
.shot-frame {
  padding: 6px;
  border-radius: 26px;
  background: linear-gradient(180deg, #202020, #121212);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.09),
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 2px 6px rgb(0 0 0 / 0.4),
    0 40px 120px -24px rgb(0 0 0 / 0.9);
}
.shot-frame { position: relative; }
.shot-frame .handles { --h: 9px; }
.shot-frame .handles i { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.shot:hover .handles i { box-shadow: inset 0 0 0 1px rgb(255 154 82 / 0.8); }

.shot-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0d0d0d;
  isolation: isolate;
}
.shot-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
  pointer-events: none;
}
.shot picture { display: block; }
.shot img {
  width: 100%;
  transition: opacity 500ms var(--ease-ui);
}

/* The render effect (fx.js) covers the screenshot until it has "generated". */
.shot-fx,
.shot-status { display: none; }
.fx:not(.rm) .shot-fx {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 500ms var(--ease-ui);
}
.fx:not(.rm) .shot img { opacity: 0; }
.fx:not(.rm) .shot.is-done img { opacity: 1; }
.fx:not(.rm) .shot.is-done .shot-fx { opacity: 0; }

.fx:not(.rm) .shot-status {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 12px 0 11px;
  border-radius: 9px;
  background: rgb(14 14 14 / 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: 700 16px/1 var(--pixel);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  transition-property: opacity, translate;
  transition-duration: 500ms;
  transition-timing-function: var(--ease);
}
.shot-status i {
  width: 7px;
  height: 7px;
  background: var(--ember);
  box-shadow: 0 0 8px rgb(255 154 82 / 0.8);
  animation: blink 1s steps(2) infinite;
}
.shot.is-done .shot-status { opacity: 0; translate: 0 -4px; transition-delay: 700ms; }
.shot.is-done .shot-status i { background: #5ee08a; box-shadow: 0 0 8px rgb(94 224 138 / 0.7); animation: none; }
@keyframes blink { 50% { opacity: 0.25; } }

/* Repo link */

.repo {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: clamp(40px, 6vw, 56px) auto 0;
  text-align: center;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 14px 0 20px;
  border-radius: 28px;
  background: var(--action);
  color: var(--action-ink);
  font-weight: 550;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 12px 32px -8px rgb(255 255 255 / 0.18);
  transition-property: background-color, scale, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: var(--ease-ui);
}
.repo-link:hover { background: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 16px 40px -8px rgb(255 255 255 / 0.26); }
.repo-link:active { scale: 0.96; }
.repo-link:focus-visible { border-radius: 28px; }

.repo-gh { width: 20px; height: 20px; }
.repo-name { font: 550 15px/1 var(--mono); letter-spacing: -0.02em; }
.repo-owner { color: rgb(10 10 10 / 0.5); }

.repo-stars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  background: rgb(10 10 10 / 0.07);
  font: 500 13px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.repo-stars[hidden] { display: none; }
.repo-stars .icon { width: 13px; height: 13px; }

.repo-arrow {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 9px;
  background: var(--action-ink);
  color: var(--action);
  transition: translate 220ms var(--ease);
}
.repo-link:hover .repo-arrow { translate: 3px 0; }

.repo-meta {
  color: var(--text-3);
  font-size: 14px;
  text-wrap: balance;
}

/* ── Feedback board teaser ───────────────────────────────────────────── */

.fb {
  --fb-bug: #ff6f64;
  --fb-question: #86abff;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 140px) var(--gutter) 0;
  scroll-margin-top: calc(100px - clamp(96px, 12vw, 140px));
}

/* Card radius 30 = peek radius 22 + 8px inset. */
.fb-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 8px 8px 8px clamp(24px, 4vw, 44px);
  border-radius: 30px;
  background:
    radial-gradient(circle, rgb(255 255 255 / 0.05) 0.8px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(180deg, #131313, #0e0e0e);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.05),
    0 40px 100px -30px rgb(0 0 0 / 0.9);
}
.fb-card .handles { --h: 9px; }
.fb-card:has(a:hover) .handles i { background: var(--ember); box-shadow: 0 0 8px rgb(255 154 82 / 0.6); }

.fb-copy { padding: 28px 0; }
.fb h2 {
  margin-top: 16px;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.fb-lead {
  margin-top: 14px;
  max-width: 400px;
  color: var(--text-2);
  line-height: 1.6;
  text-wrap: pretty;
}
.fb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.fb-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition-property: background-color, box-shadow, scale;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-ui);
}
.fb-btn:hover { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fb-btn:active { scale: 0.96; }
.fb-btn:focus-visible { border-radius: 22px; }
.fb-btn.is-primary { background: var(--action); color: var(--action-ink); box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 10px 28px -10px rgb(255 255 255 / 0.25); }
.fb-btn.is-primary:hover { background: #fff; }

/* A peek at the board: its three columns and what's in progress right now. */
.fb-peek {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 22px;
  background: rgb(0 0 0 / 0.28);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
  transition: background-color 200ms var(--ease-ui), box-shadow 200ms var(--ease-ui);
}
.fb-peek:hover { background: rgb(255 255 255 / 0.025); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fb-peek:focus-visible { border-radius: 22px; }
.fb-cols { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-cols > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 6px 0 12px;
  border-radius: 17px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px;
  font-weight: 550;
}
.fb-cols i { width: 7px; height: 7px; background: var(--tone); box-shadow: 0 0 8px color-mix(in srgb, var(--tone) 70%, transparent); }
.fb-cols b {
  min-width: 24px;
  padding: 4px 7px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.07);
  color: var(--text-2);
  font: 500 11.5px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.fb-cols b:empty { display: none; }
.fb-cols > span:has(b:empty) { padding-right: 12px; }

.fb-now { display: grid; gap: 10px; }
.fb-now-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font: 700 16px/1 var(--pixel);
  letter-spacing: 0.02em;
}
.fb-now-label i { width: 6px; height: 6px; background: var(--ember); box-shadow: 0 0 8px rgb(255 154 82 / 0.8); animation: blink 1.1s steps(2) infinite; }
.fb-rows { display: grid; gap: 6px; }
.fb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.fb-row > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-row .fb-kind { flex: none; width: 7px; height: 7px; background: var(--tone, var(--ember)); }
.fb-row.is-skel {
  background: linear-gradient(100deg, #121212 30%, #1a1a1a 50%, #121212 70%) 0 0 / 300% 100%;
  animation: fb-skel 1.6s linear infinite;
}
.fb-row.is-skel:nth-child(2) { opacity: 0.7; }
.fb-row.is-skel:nth-child(3) { opacity: 0.45; }
@keyframes fb-skel { to { background-position: -150% 0; } }
.fb-row.is-quiet { color: var(--text-3); font-weight: 400; }

.fb-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 550;
  transition: color 160ms var(--ease-ui);
}
.fb-open .icon { width: 14px; height: 14px; transition: translate 220ms var(--ease); }
.fb-peek:hover .fb-open { color: var(--text); }
.fb-peek:hover .fb-open .icon { translate: 3px 0; }

/* The corner nudge: shows once, a while after the page opens, until it's closed. */
.nudge {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 22px;
  background: rgb(22 22 22 / 0.86);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.09), 0 20px 50px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.05);
  opacity: 0;
  translate: 0 16px;
  scale: 0.96;
  transition: opacity 420ms var(--ease-ui), translate 620ms var(--ease), scale 620ms var(--ease);
}
.nudge[hidden] { display: none; }
.nudge.is-in { opacity: 1; translate: 0 0; scale: 1; }
.nudge-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 4px 4px;
  border-radius: 16px;
  transition: background-color 160ms var(--ease-ui);
}
.nudge-link:hover { background: rgb(255 255 255 / 0.05); }
.nudge-link:focus-visible { border-radius: 16px; }
.nudge-vote {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 40px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  transition: background-color 300ms var(--ease-ui), color 300ms var(--ease-ui);
}
.nudge-vote svg { width: 14px; height: 14px; }
.nudge-count {
  display: grid;
  height: 14px;
  overflow: hidden;
  font: 600 12.5px/14px var(--mono);
  color: var(--text);
}
.nudge-count span { grid-area: 1 / 1; transition: translate 460ms var(--ease), opacity 300ms var(--ease-ui); }
.nudge-count span + span { translate: 0 100%; opacity: 0; }
/* A moment after it lands, the vote goes in: the square turns white and the count rolls up. */
.nudge.is-voted .nudge-vote { background: var(--action); color: var(--action-ink); }
.nudge.is-voted .nudge-count { color: var(--action-ink); }
.nudge.is-voted .nudge-count span:first-child { translate: 0 -100%; opacity: 0; }
.nudge.is-voted .nudge-count span + span { translate: 0 0; opacity: 1; }
.nudge-text { display: grid; line-height: 1.3; }
.nudge-text strong { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.nudge-text span { color: var(--text-3); font-size: 13px; }
.nudge-arrow { width: 14px; height: 14px; margin-left: 4px; color: var(--text-3); transition: translate 220ms var(--ease), color 160ms var(--ease-ui); }
.nudge-link:hover .nudge-arrow { translate: 3px 0; color: var(--text); }
.nudge-x {
  display: grid;
  place-items: center;
  align-self: flex-start;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: background-color 160ms var(--ease-ui), color 160ms var(--ease-ui);
}
.nudge-x svg { width: 13px; height: 13px; }
.nudge-x:hover { background: rgb(255 255 255 / 0.08); color: var(--text); }
.nudge-x:focus-visible { border-radius: 14px; }

/* ── Features: sticky stage + scrolling list ─────────────────────────── */

.features {
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(120px, 15vw, 190px) var(--gutter) 0;
  scroll-margin-top: calc(100px - clamp(120px, 15vw, 190px));
}

.features-head {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.features-head h2 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.features-head .section-lead { max-width: 480px; margin-inline: auto; }

.features-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(56px, 8vw, 96px);
}

.feature-list {
  grid-column: 1;
  grid-row: 1;
  list-style: none;
  margin: 0;
  padding: 18vh 0 22vh;
}
.feature {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  opacity: 0.28;
  cursor: pointer;
  transition: opacity 500ms var(--ease-ui);
}
.feature.is-active { opacity: 1; cursor: default; }
.feature-idx {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font: 700 20px/1 var(--pixel);
  letter-spacing: 0.02em;
  transition: color 400ms var(--ease-ui);
}
.feature-idx::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  transition: box-shadow 400ms var(--ease-ui);
}
.feature.is-active .feature-idx { color: var(--ember); }
.feature.is-active .feature-idx::before { box-shadow: 0 0 10px rgb(255 154 82 / 0.7); }
.feature h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.feature p {
  max-width: 420px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 12px 8px 0;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 550;
}
.feature-link .icon { width: 14px; height: 14px; transition: translate 220ms var(--ease); }
.feature-link:hover .icon { translate: 3px 0; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -1px 0 var(--line-strong);
  color: var(--text);
  font: 500 0.84em/1.4 var(--mono);
  text-align: center;
}

/* Also: the smaller things, no art */
.also {
  max-width: var(--content);
  margin: clamp(8px, 2vw, 24px) auto 0;
}
.also-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
}
.also-list li {
  padding: 18px 0 20px;
  box-shadow: inset 0 1px 0 var(--line);
}
.also-list h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.also-list p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
.tag {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgb(255 154 82 / 0.12);
  color: var(--ember);
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0;
}
.trust {
  margin-top: 28px;
  padding-top: 24px;
  box-shadow: inset 0 1px 0 var(--line);
  color: var(--text-3);
  font-size: 14.5px;
  text-wrap: pretty;
}

.stage {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: max(96px, calc(50vh - 330px));
  align-self: start;
  width: 100%;
  max-width: calc((100vh - 200px) * 1.1);
  justify-self: end;
}

/* Card radius 28 = art radius 16 + 12px inset. */
.stage-card {
  position: relative;
  padding: 12px;
  border-radius: 28px;
  background:
    radial-gradient(circle, rgb(255 255 255 / 0.05) 0.8px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(180deg, #131313, #0e0e0e);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.05),
    0 40px 100px -30px rgb(0 0 0 / 0.9);
}
.stage-card .handles { --h: 9px; }

.stage-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 12px;
}
.stage-idx {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border-radius: 7px;
  background: rgb(255 154 82 / 0.12);
  color: var(--ember);
  font: 700 17px/1 var(--pixel);
  padding-top: 2px;
}
.stage-name { color: var(--text-2); font-size: 14px; font-weight: 500; }
.stage-bar.swap .stage-idx,
.stage-bar.swap .stage-name { animation: swap-in 450ms var(--ease) both; }
.stage-bar.swap .stage-name { animation-delay: 40ms; }
@keyframes swap-in { from { opacity: 0; translate: 0 5px; filter: blur(3px); } }

.stage-arts {
  position: relative;
  aspect-ratio: 480 / 400;
  border-radius: 16px;
  background: rgb(0 0 0 / 0.25);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
  overflow: hidden;
}

.stage-ticks {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 6px;
}
.stage-ticks i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #2c2c2c;
  transition: background-color 300ms var(--ease-ui), box-shadow 300ms var(--ease-ui), width 400ms var(--ease);
}
.stage-ticks i.on { width: 22px; background: var(--ember); box-shadow: 0 0 10px rgb(255 154 82 / 0.6); }

/* Arts */

.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-family: var(--sans);
  opacity: 0;
  scale: 0.97;
  filter: blur(8px);
  visibility: hidden;
  transition:
    opacity 450ms var(--ease-ui),
    scale 700ms var(--ease),
    filter 450ms var(--ease-ui),
    visibility 0s linear 450ms;
}
.art.is-active {
  opacity: 1;
  scale: 1;
  filter: none;
  visibility: visible;
  transition-delay: 0s;
}
.art text { user-select: none; }

.f-card { fill: #171717; stroke: rgb(255 255 255 / 0.08); }
.f-raised { fill: #1f1f1f; stroke: rgb(255 255 255 / 0.08); }
.f-pill { fill: #252525; }
.f-rule { stroke: rgb(255 255 255 / 0.07); }
.f-hi { fill: #ededed; }
.f-lo { fill: #8c8c8c; }
.f-strong { font-weight: 600; }
.f-mono { font-family: var(--mono); }
.f-pixel { font-family: var(--pixel); font-weight: 700; }
.f-ember { fill: var(--ember); }
.f-ok { fill: #5ee08a; }
.f-white { fill: #f4f4f4; }
.f-ink { fill: #0a0a0a; }
.f-ink-stroke { fill: none; stroke: #0a0a0a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.f-chev { fill: none; stroke: #8c8c8c; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.f-port { fill: var(--ember); }
.f-link path { stroke: rgb(255 255 255 / 0.16); stroke-dasharray: 2 3; }
.f-link-dot { fill: #3a3a3a; }

/* Every animated element's resting style is its finished state, so reduced motion shows the complete scene. */
.stage.in-view .art.is-active .ai {
  animation: ai-in 700ms var(--ease) both;
  animation-delay: calc(var(--s) * 90ms);
}
@keyframes ai-in { from { opacity: 0; transform: translateY(8px); } }

/* 08 · workflow → controls */
.map path { fill: none; stroke: var(--ember); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.map-pulse path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.07 1.2; stroke-dashoffset: 1.1; opacity: 0; }
.ctl rect { stroke: var(--ember); stroke-opacity: 0; }

.stage.in-view .is-active .map path {
  animation: draw 800ms var(--ease) both;
  animation-delay: calc(560ms + var(--w) * 90ms);
}
@keyframes draw { from { stroke-dashoffset: 1; } }
.stage.in-view .is-active .map-pulse path {
  animation: pulse 2.6s linear infinite;
  animation-delay: calc(1.7s + var(--w) * 320ms);
}
@keyframes pulse {
  0% { stroke-dashoffset: 0.07; opacity: 1; }
  60% { stroke-dashoffset: -1; opacity: 1; }
  61%, 100% { opacity: 0; }
}
.stage.in-view .is-active .ctl {
  animation: ctl-in 600ms var(--ease) both;
  animation-delay: calc(1.05s + var(--w) * 90ms);
}
@keyframes ctl-in { from { opacity: 0; transform: translateX(-8px); } }
.stage.in-view .is-active .ctl rect {
  animation: flash 1.4s var(--ease-ui) both;
  animation-delay: calc(1.05s + var(--w) * 90ms);
}
@keyframes flash { 0% { stroke-opacity: 0.9; } 100% { stroke-opacity: 0; } }
.stage.in-view .is-active.art-flow .f-port {
  animation: port 500ms var(--ease-ui) both;
  animation-delay: 560ms;
}
@keyframes port { from { fill: #3a3a3a; } }

/* 01 · a model's parts download, tick off, and it's ready */
.f-track { fill: #2c2c2c; }
.f-tint-ok { fill: rgb(94 224 138 / 0.14); }
.f-tint-ember { fill: rgb(255 154 82 / 0.14); }
.f-ok-stroke { fill: none; stroke: #5ee08a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m-fill { transform-box: fill-box; transform-origin: left center; }
.m-tick { transform-box: fill-box; transform-origin: center; }
.m-need, .m-getting { opacity: 0; }
.stage.in-view .is-active .m-fill-a { animation: m-fill-a 9s var(--ease-ui) infinite both; animation-delay: 0.6s; }
.stage.in-view .is-active .m-fill-b { animation: m-fill-b 9s var(--ease-ui) infinite both; animation-delay: 0.6s; }
.stage.in-view .is-active .m-fill-t { animation: m-fill-b 9s var(--ease-ui) infinite both; animation-delay: 0.6s; }
.stage.in-view .is-active .m-tick-a { animation: m-tick-a 9s var(--ease) infinite both; animation-delay: 0.6s; }
.stage.in-view .is-active .m-tick-b { animation: m-tick-b 9s var(--ease) infinite both; animation-delay: 0.6s; }
.stage.in-view .is-active .m-need,
.stage.in-view .is-active .m-getting { animation: m-before 9s var(--ease-ui) infinite both; animation-delay: 0.6s; }
.stage.in-view .is-active .m-ready,
.stage.in-view .is-active .m-done { animation: m-after 9s var(--ease-ui) infinite both; animation-delay: 0.6s; }
@keyframes m-fill-a { 0%, 4% { transform: scaleX(0.03); } 36%, 92% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0.03); } }
@keyframes m-fill-b { 0%, 8% { transform: scaleX(0.03); } 52%, 92% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0.03); } }
@keyframes m-tick-a { 0%, 36% { opacity: 0; transform: scale(0.5); } 40%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes m-tick-b { 0%, 52% { opacity: 0; transform: scale(0.5); } 56%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes m-before { 0%, 55% { opacity: 1; } 58%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes m-after { 0%, 55% { opacity: 0; transform: translateY(4px); } 59%, 93% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* 02 · render: gray cells clear in organic order, then come back */
.r-veil { fill: #0f0f0f; opacity: 0; }
.r-cells rect { opacity: 0; }
.r-label-gen { opacity: 0; }
.r-bar { transform-box: fill-box; transform-origin: left center; }
.r-blink { animation: blink 1s steps(2) infinite; }
.stage.in-view .is-active .r-veil { animation: veil 8s var(--ease-ui) infinite both; animation-delay: 0.4s; }
@keyframes veil { 0% { opacity: 1; } 30%, 74% { opacity: 0; } 86%, 100% { opacity: 1; } }
.stage.in-view .is-active .r-cells rect {
  animation: cell 8s var(--ease-ui) infinite both;
  animation-delay: calc(0.4s + var(--d) * 1.8s);
}
@keyframes cell {
  0% { opacity: var(--o); }
  16%, 70% { opacity: 0; }
  80%, 100% { opacity: var(--o); }
}
.stage.in-view .is-active .r-bar { animation: bar 8s var(--ease-ui) infinite both; animation-delay: 0.4s; }
@keyframes bar { 0% { transform: scaleX(0.04); } 42%, 72% { transform: scaleX(1); } 78%, 100% { transform: scaleX(0.04); } }
.stage.in-view .is-active .r-label-gen { animation: gen 8s steps(1) infinite both; animation-delay: 0.4s; }
@keyframes gen { 0% { opacity: 1; } 42% { opacity: 0; } 76%, 100% { opacity: 1; } }
.stage.in-view .is-active .r-label-done { animation: done 8s steps(1) infinite both; animation-delay: 0.4s; }
@keyframes done { 0% { opacity: 0; } 42% { opacity: 1; } 76%, 100% { opacity: 0; } }
.r-new { transform-box: fill-box; transform-origin: center; }
.stage.in-view .is-active .r-new { animation: new 8s var(--ease) infinite both; animation-delay: 0.4s; }
@keyframes new {
  0%, 41% { opacity: 0; transform: scale(0.8); }
  46%, 72% { opacity: 1; transform: none; }
  78%, 100% { opacity: 0; transform: scale(0.9); }
}

/* 03 · phone: scan the code, long press a tile, the share sheet comes up */
.f-screen { fill: #0c0c0c; }
.f-notch { fill: #1f1f1f; }
.f-grab { fill: #3a3a3a; }
.f-dot { fill: #d8d8d8; }
.p-qr rect { fill: #0a0a0a; }
.p-press { transform-box: fill-box; transform-origin: center; }
.p-press-ring { fill: none; stroke: var(--ember); stroke-width: 1.5; opacity: 0; }
.p-ring { fill: none; stroke: var(--ember); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0.35; }
.p-dim { fill: #000; opacity: 0.45; }
.p-pick { opacity: 0; }
.stage.in-view .is-active .p-ring { animation: p-ring 8s linear infinite both; }
.stage.in-view .is-active .p-press { animation: p-press 8s var(--ease) infinite both; animation-delay: 0.6s; }
.stage.in-view .is-active .p-press-ring { animation: p-press-ring 8s var(--ease-ui) infinite both; animation-delay: 0.6s; }
.stage.in-view .is-active .p-dim { animation: p-dim 8s var(--ease-ui) infinite both; animation-delay: 0.6s; }
.stage.in-view .is-active .p-sheet { animation: p-sheet 8s var(--ease) infinite both; animation-delay: 0.6s; }
.stage.in-view .is-active .p-pick { animation: p-pick 8s var(--ease-ui) infinite both; animation-delay: 0.6s; }
@keyframes p-ring { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes p-press { 0%, 14% { transform: none; } 20%, 30% { transform: scale(0.95); } 36%, 100% { transform: none; } }
@keyframes p-press-ring { 0%, 14% { opacity: 0; } 20%, 76% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes p-dim { 0%, 24% { opacity: 0; } 32%, 76% { opacity: 0.45; } 84%, 100% { opacity: 0; } }
@keyframes p-sheet { 0%, 24% { transform: translateY(160px); } 34%, 76% { transform: none; } 86%, 100% { transform: translateY(160px); } }
@keyframes p-pick { 0%, 52% { opacity: 0; } 56%, 70% { opacity: 1; } 74%, 100% { opacity: 0; } }

/* 04 · LAN: a prompt travels to the PC, then the result reaches both screens.
   Resting styles show the finished scene when motion is reduced. */
.lan-links path { stroke-width: 1.5; }
.lan-gpu { fill: rgb(255 154 82 / 0.1); stroke: var(--ember); stroke-width: 1; }
.lan-gpu-mark { fill: none; stroke: var(--ember); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lan-packets path { stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.12 1.2; opacity: 0; }
.lan-progress { transform-box: fill-box; transform-origin: left center; }
.stage.in-view .is-active .lan-request { animation: lan-packet 8s linear infinite both; }
.stage.in-view .is-active .lan-response { animation: lan-packet 8s linear infinite both; animation-delay: 2.8s; }
.stage.in-view .is-active .lan-message { animation: lan-message 8s var(--ease) infinite both; }
.stage.in-view .is-active .lan-progress { animation: lan-render 8s var(--ease-ui) infinite both; }
.stage.in-view .is-active .lan-result { animation: lan-result 8s var(--ease) infinite both; }
@keyframes lan-packet {
  0%, 15% { stroke-dashoffset: 0.12; opacity: 0; }
  16% { stroke-dashoffset: 0.12; opacity: 1; }
  30% { stroke-dashoffset: -1; opacity: 1; }
  31%, 100% { stroke-dashoffset: -1; opacity: 0; }
}
@keyframes lan-message { 0% { opacity: 0; transform: translateY(8px); } 10%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
@keyframes lan-render { 0%, 25% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
@keyframes lan-result { 0%, 58% { opacity: 0; } 68%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* 05 · find: type to search, stars pop, walk through recent prompts */
.f-badge { fill: rgb(10 10 10 / 0.6); }
.f-star { color: var(--ember); }
.f-star-off { color: #4a4a4a; }
.s-type { transform-box: fill-box; transform-origin: left center; }
.s-caret { transform: translateX(69px); }
.s-star { transform-box: fill-box; transform-origin: center; }
.stage.in-view .is-active .s-type { animation: s-type 9s steps(10, end) infinite both; animation-delay: 0.5s; }
.stage.in-view .is-active .s-caret { animation: s-caret 9s steps(10, end) infinite both, blink 1s steps(2) infinite; animation-delay: 0.5s, 0s; }
.stage.in-view .is-active .s-star { animation: s-star 9s var(--ease) infinite both; animation-delay: calc(1.9s + var(--k) * 0.2s); }
.stage.in-view .is-active .s-pick { animation: s-pick 9s var(--ease) infinite both; animation-delay: 0.5s; }
.s-c1, .s-c2 { opacity: 0; }
.stage.in-view .is-active .s-c0 { animation: s-c0 9s steps(1) infinite both; animation-delay: 0.5s; }
.stage.in-view .is-active .s-c1 { animation: s-c1 9s steps(1) infinite both; animation-delay: 0.5s; }
.stage.in-view .is-active .s-c2 { animation: s-c2 9s steps(1) infinite both; animation-delay: 0.5s; }
@keyframes s-c0 { 0% { opacity: 1; } 38% { opacity: 0; } 78%, 100% { opacity: 1; } }
@keyframes s-c1 { 0% { opacity: 0; } 38% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes s-c2 { 0% { opacity: 0; } 58% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes s-type { 0% { transform: scaleX(0); } 14%, 100% { transform: scaleX(1); } }
@keyframes s-caret { 0% { transform: none; } 14%, 100% { transform: translateX(69px); } }
@keyframes s-star { 0% { opacity: 0; transform: scale(0.4); } 5%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(0.8); } }
@keyframes s-pick {
  0%, 36% { transform: none; }
  40%, 56% { transform: translateY(24px); }
  60%, 76% { transform: translateY(48px); }
  80%, 100% { transform: none; }
}

/* 06 · vault: lock, type, unlock */
.v-lock { transform-box: fill-box; transform-origin: center; }
.v-dots rect { fill: #d8d8d8; transform-box: fill-box; transform-origin: center; }
.v-btn { transform-box: fill-box; transform-origin: center; }
.f-lockglyph rect { fill: #d8d8d8; }
.f-lockglyph .f-keyhole { fill: #141414; }
.f-lockglyph.small rect { fill: #8c8c8c; }
.stage.in-view .is-active .v-lock {
  animation: lock 7s var(--ease) infinite both;
  animation-delay: calc(0.3s + var(--v) * 0.25s);
}
@keyframes lock {
  0% { opacity: 0; transform: scale(0.92); }
  7%, 44% { opacity: 1; transform: none; }
  51%, 100% { opacity: 0; transform: scale(1.04); }
}
.stage.in-view .is-active .v-dots rect {
  animation: dot 7s var(--ease) infinite both;
  animation-delay: calc(1.1s + var(--k) * 0.17s);
}
@keyframes dot {
  0% { opacity: 0; transform: scale(0.3); }
  3%, 30% { opacity: 1; transform: none; }
  34%, 100% { opacity: 0; transform: none; }
}
.stage.in-view .is-active .v-btn { animation: press 7s var(--ease-ui) infinite both; }
@keyframes press { 0%, 38% { transform: none; } 40% { transform: scale(0.92); } 44%, 100% { transform: none; } }

/* 07 · upscale compare */
.u-split { transform-box: fill-box; transform-origin: left center; transform: scaleX(0.5); }
.u-handle { transform: translateX(200px); }
.u-line { stroke: #fff; stroke-width: 2; }
.u-tag { fill: rgb(10 10 10 / 0.6); }
.stage.in-view .is-active .u-split { animation: split 5.5s ease-in-out infinite alternate both; }
.stage.in-view .is-active .u-handle { animation: handle 5.5s ease-in-out infinite alternate both; }
@keyframes split { from { transform: scaleX(0.22); } to { transform: scaleX(0.78); } }
@keyframes handle { from { transform: translateX(88px); } to { transform: translateX(312px); } }

/* ── Sections ─────────────────────────────────────────────────────────── */

.section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 6vw, 96px);
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(112px, 14vw, 176px) var(--gutter) 0;
  scroll-margin-top: calc(120px - clamp(112px, 14vw, 176px));
}

.section-head {
  position: sticky;
  top: 112px;
  align-self: start;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ember);
  font: 700 20px/1 var(--pixel);
  letter-spacing: 0.02em;
}
.label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
}

.section h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 1.5rem + 1.9vw, 2.9rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.section-lead {
  margin-top: 18px;
  max-width: 340px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Segmented control, same shape as the app's composer controls. */

.seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 420px;
  padding: 4px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 14px;
  background: var(--surface-3);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.07);
  translate: calc(var(--i) * 100%) 0;
  transition: translate 320ms var(--ease);
}
.seg-btn {
  position: relative;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition-property: color, scale;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-ui);
}
.seg-btn:hover { color: var(--text-2); }
.seg-btn[aria-selected="true"] { color: var(--text); }
.seg-btn:active { scale: 0.96; }
.seg-btn:focus-visible { outline-offset: -2px; border-radius: 14px; }

/* Both panels share one grid cell so switching never changes the page height. */
.panels {
  display: grid;
  margin-top: 36px;
}
.panel {
  grid-area: 1 / 1;
  min-width: 0;
  animation: panel-in 380ms var(--ease) both;
}
.panel[hidden] {
  display: block;
  visibility: hidden;
  animation: none;
}
.panel:focus-visible { outline-offset: 8px; border-radius: 12px; }

@keyframes panel-in {
  from { opacity: 0; translate: 0 6px; filter: blur(3px); }
}

.panel-intro {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 36px;
}
.steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 20px;
}
.steps > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 42px;
  bottom: -28px;
  width: 1px;
  background: linear-gradient(var(--line-strong), transparent);
}
.step-n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 700 20px/1 var(--pixel);
  padding-top: 2px;
}
.steps h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 32px;
}
.steps p { color: var(--text-2); text-wrap: pretty; }
.steps h3 + p { margin-top: 2px; }
.steps .code { margin-top: 14px; }
.note { margin-top: 14px; font-size: 14.5px; color: var(--text-3) !important; }
.note code { font-size: 0.84em; }

/* Code blocks */

.code {
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -30px rgb(0 0 0 / 0.8);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 8px 0 18px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: inset 0 -1px 0 var(--line);
}

.code pre {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  font: 400 13.5px/1.8 var(--mono);
  color: #e6e6e6;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.shell .ln::before {
  content: "$ ";
  color: var(--text-3);
  user-select: none;
}

.prompt {
  max-height: 360px;
  white-space: pre-wrap;
  overflow-y: auto;
  font-size: 13px !important;
  line-height: 1.75 !important;
  color: #d9d9d9 !important;
  mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent);
  padding-bottom: 40px !important;
}
.prompt:focus-visible { outline-offset: -3px; border-radius: 0 0 16px 16px; }

/* Copy button: 32px visual, 40px hit area. Radius 12 + 8px inset ≈ card radius. */
.copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition-property: background-color, color, scale;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-ui);
}
.copy::after { content: ""; position: absolute; inset: -4px; }
.copy:hover { background: rgb(255 255 255 / 0.07); color: var(--text); }
.copy:active { scale: 0.96; }
.copy:focus-visible { outline-offset: 1px; border-radius: 10px; }

.copy-strong {
  background: var(--action);
  color: var(--action-ink);
}
.copy-strong:hover { background: #fff; color: var(--action-ink); }

.copy-icons { position: relative; width: 15px; height: 15px; }
.copy-icons .icon {
  position: absolute;
  inset: 0;
  width: 15px;
  height: 15px;
  transition-property: opacity, scale, filter;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.copy .i-check { opacity: 0; scale: 0.25; filter: blur(4px); }
.copy.is-copied .i-copy { opacity: 0; scale: 0.25; filter: blur(4px); }
.copy.is-copied .i-check { opacity: 1; scale: 1; filter: blur(0); }
.copy.is-copied:not(.copy-strong) { color: var(--text); }

.update-note {
  margin-top: 36px;
  padding-left: 52px;
  color: var(--text-3);
  font-size: 14.5px;
  line-height: 1.9;
  text-wrap: pretty;
}
.update-note strong { color: var(--text-2); font-weight: 550; }
.update-note code { font-size: 0.84em; }

/* Download card. Radii nest: card 38 = button 30 + 8px inset. */

.dl {
  --pad: 8px;
  --r: 30px;
  position: relative;
  padding: var(--pad);
  border-radius: calc(var(--r) + var(--pad));
  background:
    radial-gradient(circle, rgb(255 255 255 / 0.05) 0.8px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(180deg, #131313, #0e0e0e);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.05),
    0 40px 100px -30px rgb(0 0 0 / 0.9);
}
.dl .handles { --h: 9px; }
.dl:has(.dl-main a:hover, .dl-opts a:hover) .handles i {
  background: var(--ember);
  box-shadow: 0 0 8px rgb(255 154 82 / 0.6);
}

.dl[data-os="all"] .dl-main,
.dl:not([data-os="all"]) .dl-opts,
.dl[data-os="all"] .dl-main-size,
.dl[data-os="all"] .dl-others,
.dl[data-os="windows-x64"] .dl-intel,
.dl[data-os="linux-x64"] .dl-intel { display: none; }

.dl-opt {
  display: flex;
  align-items: center;
  min-width: 0;
  transition-property: background-color, color, box-shadow, scale;
  transition-duration: 180ms;
  transition-timing-function: var(--ease-ui);
}
.dl-text { display: grid; min-width: 0; }
.dl-name { font-weight: 550; letter-spacing: -0.015em; white-space: nowrap; }
.dl-sub {
  color: var(--text-3);
  font: 500 12px/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dl-icon {
  display: grid;
  place-items: center;
  flex: none;
  transition: translate 220ms var(--ease);
}
.dl-icon .icon { width: 17px; height: 17px; }

/* The system's own download: the page's primary action. */
.dl-main .dl-opt {
  justify-content: space-between;
  gap: 16px;
  height: calc(var(--r) * 2);
  padding: 0 11px 0 26px;
  border-radius: var(--r);
  background: var(--action);
  color: var(--action-ink);
  font-size: 17px;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 12px 32px -8px rgb(255 255 255 / 0.18);
}
.dl-main .dl-opt:hover { background: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 16px 40px -8px rgb(255 255 255 / 0.26); }
.dl-main .dl-opt:active { scale: 0.98; }
.dl-main .dl-opt:focus-visible { border-radius: var(--r); }
.dl-main .dl-icon {
  order: 1;
  width: 38px;
  height: 38px;
  border-radius: 19px;
  background: var(--action-ink);
  color: var(--action);
}
.dl-main .dl-sub { display: none; }
.dl-opt:hover .dl-icon { translate: 0 2px; }

/* Can't tell the system: all three, equal. */
.dl-opts {
  display: grid;
  gap: var(--pad);
}
.dl-opts .dl-opt {
  gap: 12px;
  height: calc(var(--r) * 2);
  padding: 0 16px 0 var(--pad);
  border-radius: var(--r);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-size: 15px;
}
.dl-opts .dl-opt:hover { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dl-opts .dl-opt:active { scale: 0.97; }
.dl-opts .dl-opt:focus-visible { border-radius: var(--r); }
.dl-opts .dl-icon {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--action);
  color: var(--action-ink);
}
.dl-opts .dl-verb {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 12px 14px 0;
  color: var(--text-3);
  font-size: 13.5px;
}
.dl-version {
  font: 500 12.5px/1.6 var(--mono);
  font-variant-numeric: tabular-nums;
}
.dl-others {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
}
.dl-others .dl-opt {
  display: inline;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.24);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.dl-others .dl-opt:hover { color: var(--text); text-decoration-color: currentColor; }
.dl-others .dl-icon,
.dl-others .dl-verb,
.dl-others .dl-sub { display: none; }
.dl-others .dl-text,
.dl-others .dl-name { display: inline; }
.dl-others .dl-name { font-weight: 500; letter-spacing: 0; }

.dl-intel {
  padding: 6px 14px 8px;
  color: var(--text-3);
  font-size: 13.5px;
  text-wrap: pretty;
}
.dl[data-os="all"] .dl-intel { padding-top: 4px; }
.dl.is-intel .dl-intel { color: var(--text-2); }

.dl + .steps { margin-top: 56px; }

/* First-launch notes, one line per system; the visitor's own is brighter. */
.os-notes {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
}
.os-notes li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  color: var(--text-3);
  transition: color 200ms var(--ease-ui);
}
.os-name {
  color: var(--text-2);
  font: 500 12.5px/1.95 var(--mono);
}
.os-notes li.is-mine { color: var(--text-2); }
.os-notes li.is-mine .os-name { color: var(--ember); }
.os-notes code { font-size: 0.84em; }

/* Source and agent installs, folded away under the steps. */
.more { margin-top: 36px; }
.more details { scroll-margin-top: 96px; }
.more .answer { padding: 4px 4px 32px; }
.more .panels { margin-top: 24px; }
.more .panel[hidden] { display: none; }
.more .panel-intro { margin-bottom: 18px; }

/* FAQ */

.faq {
  box-shadow: inset 0 1px 0 var(--line);
}

.faq details {
  box-shadow: inset 0 -1px 0 var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px 4px;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  transition: color 160ms var(--ease-ui);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -2px; border-radius: 12px; }

.faq-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  transition-property: background-color, color, box-shadow;
  transition-duration: 240ms;
  transition-timing-function: var(--ease-ui);
}
.faq-icon .icon { width: 15px; height: 15px; transition: rotate 360ms var(--ease); }
.faq summary:hover .faq-icon { background: var(--surface-3); color: var(--text); }
.faq details[open] .faq-icon { background: var(--action); color: var(--action-ink); }
.faq details[open] .faq-icon .icon { rotate: 45deg; }

.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition:
    block-size 380ms var(--ease),
    content-visibility 380ms allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

.answer {
  padding: 0 64px 26px 4px;
  color: var(--text-2);
  line-height: 1.65;
  text-wrap: pretty;
  opacity: 0;
  translate: 0 -4px;
  transition-property: opacity, translate;
  transition-duration: 300ms;
  transition-timing-function: var(--ease);
}
.faq details[open] .answer { opacity: 1; translate: 0 0; transition-delay: 60ms; }
.answer em { color: var(--text); font-style: italic; }
.answer p + p { margin-top: 12px; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  margin-top: clamp(120px, 16vw, 200px);
  padding: 0 var(--gutter);
  overflow: hidden;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 28px 0;
  box-shadow: inset 0 1px 0 var(--line);
  font-size: 14px;
}
.footer-about {
  max-width: var(--content);
  margin: 0 auto;
  padding-bottom: 28px;
  color: var(--text-3);
  font-size: 14.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 18px/1 var(--pixel);
}
.footer-brand img { width: 20px; height: 20px; }
.footer-meta { color: var(--text-3); }
.footer-meta a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.2);
  text-underline-offset: 3px;
  transition: color 160ms var(--ease-ui), text-decoration-color 160ms var(--ease-ui);
}
.footer-meta a:hover { color: var(--text); text-decoration-color: currentColor; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.footer-links a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text-2);
  transition-property: background-color, color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-ui);
}
.footer-links a:hover { background: rgb(255 255 255 / 0.06); color: var(--text); }

.bigmark-wrap {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
}
.bigmark-fx { display: none; }
.fx-mark .bigmark-wrap { aspect-ratio: 75 / 24; margin-top: clamp(4px, 1.5vw, 16px); }
.fx-mark .bigmark { visibility: hidden; position: absolute; inset: auto 0 0; }
.fx-mark .bigmark-fx {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bigmark {
  margin: 0 auto;
  max-width: var(--wide);
  text-align: center;
  font: 700 clamp(96px, 28vw, 400px)/0.72 var(--pixel);
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: linear-gradient(180deg, #262626 0%, #151515 55%, var(--canvas) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  translate: 0 12%;
}

/* ── Motion ───────────────────────────────────────────────────────────── */

.js .enter {
  animation: enter 900ms var(--ease) both;
  animation-delay: calc(var(--d) * 90ms + 80ms);
}
@keyframes enter {
  from { opacity: 0; translate: 0 14px; filter: blur(6px); }
}

.js [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition-property: opacity, translate;
  transition-duration: 900ms;
  transition-timing-function: var(--ease);
}
.js [data-reveal] + [data-reveal] { transition-delay: 90ms; }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* The screenshot settles from a gentle tilt as it scrolls into place. */
@supports (animation-timeline: view()) {
  .shot-frame {
    transform-origin: 50% 0%;
    animation: shot-settle linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 42%;
  }
  @keyframes shot-settle {
    from { transform: perspective(1800px) rotateX(14deg) scale(0.94); }
    to { transform: perspective(1800px) rotateX(0deg) scale(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .features-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 48px;
  }
  /* Pinned under the nav; its backdrop runs to the top so nothing peeks through. */
  .stage {
    grid-column: 1;
    grid-row: 1;
    top: 0;
    z-index: 2;
    max-width: none;
    margin-top: -68px;
    padding: 70px 0 22px;
    background: linear-gradient(180deg, var(--canvas) 88%, transparent);
  }
  .stage-card { padding: 8px; border-radius: 22px; }
  .stage-arts { border-radius: 14px; }
  .stage-bar { height: 36px; padding: 0 8px; }
  .stage-ticks { padding: 10px 0 4px; }
  .feature-list { grid-column: 1; grid-row: 2; padding: 8vh 0 30vh; }
  .feature { min-height: 46vh; justify-content: flex-start; }

  .section {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .section-head { position: static; }
  .section-lead { max-width: 520px; }

  .fb-card { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px; }
  .fb-copy { padding: 22px 16px 18px; }
}

@media (max-width: 600px) {
  .nav { top: 10px; }
  .nav-brand { height: 44px; padding-right: 14px; border-radius: 22px; }
  .mark { width: 34px; height: 34px; }
  .mark svg { width: 27px; height: 27px; }
  .nav-links a:not(.nav-gh) { display: none; }
  .nav-gh-label { display: none; }
  .nav-links .nav-gh { padding: 0 12px; }

  .hero h1 br { display: none; }
  .chip { gap: 9px; padding-right: 12px; white-space: nowrap; }
  .chip-kicker,
  .chip-rule { display: none; }
  .hero-lead { font-size: 1.05rem; }
  .hero-cta { margin-top: 30px; }
  .hero-dl { height: 58px; padding-left: 24px; font-size: 16px; }
  .hero-dl-icon { width: 40px; height: 40px; }
  .hero-dl-meta { flex-direction: column; gap: 2px; }
  .hero-dl-sep { display: none; }

  .shot-frame { padding: 4px; border-radius: 16px; }
  .shot img { border-radius: 12px; }

  .repo-link { height: 52px; gap: 10px; padding: 0 12px 0 16px; }
  .repo-name { font-size: 14px; }
  .repo-owner { display: none; }

  .dl { --r: 28px; }
  .dl-main .dl-opt { padding-left: 22px; font-size: 16px; }
  .os-notes { gap: 10px; }
  .os-notes li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .update-note { padding-left: 42px; }

  .seg { max-width: none; }
  .seg-btn { font-size: 13.5px; }

  .steps > li { grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
  .step-n { width: 28px; height: 28px; font-size: 18px; border-radius: 9px; }
  .steps > li:not(:last-child)::before { left: 13.5px; top: 38px; }
  .steps h3 { line-height: 28px; }

  .code pre { font-size: 12.5px; padding: 16px; }
  .prompt { font-size: 12.5px !important; }

  .faq summary { font-size: 16px; min-height: 64px; }
  .answer { padding-right: 8px; }

  .footer-links { margin-left: -12px; width: 100%; }

  .nudge { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .nudge-link { flex: 1; }
  .nudge-arrow { margin-left: auto; }
}
