/* MangaFire: “Full Bleed”
 * One accent, one flame, one idea: the chrome leaves and the page stays.
 * No libraries. No scroll hijacking. Everything degrades to readable HTML.
 */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #050607;
  --ink-2: #07090c;
  --surface: #0a0d11;
  --surface-2: #0e1217;
  --text: #e8edf2;
  --text-2: #b9c2cc;
  --muted: #8b97a3;
  --line: rgba(232, 237, 242, 0.12);
  --line-strong: rgba(232, 237, 242, 0.2);
  --accent: #10a3ea;
  --accent-hi: #37b6f6;
  --ice: #7dd3fc;
  --accent-ink: #050607;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: min(100% - 3rem, 1240px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, summary { font: inherit; }

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

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

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--text);
  color: var(--ink);
  font: 500 12px/1 var(--font-mono);
  text-decoration: none;
  transition: top 180ms var(--ease);
}
.skip:focus { top: 16px; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* A very fine film grain, so the black has a surface. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 950;
  height: 2px;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 800;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid transparent;
  transition:
    background-color 240ms linear,
    border-color 240ms linear,
    backdrop-filter 240ms linear;
}
.topbar.is-scrolled {
  background: rgba(5, 6, 7, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-flame { width: 17px; height: 17px; }

.topbar-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 160ms linear, color 160ms linear, background-color 160ms linear;
}
.topbar-cta:hover { border-color: var(--accent); color: var(--accent); }
.topbar-version { color: var(--muted); font-weight: 400; letter-spacing: 0.04em; }

/* Section jump links. The bar is 72 px tall and only has room for three
 * labels once the viewport is wide enough for the hero's two columns. */
.topbar-nav { display: none; gap: 30px; }
@media (min-width: 900px) { .topbar-nav { display: flex; } }
.topbar-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 160ms linear;
}
.topbar-nav a:hover,
.topbar-nav a:focus-visible { color: var(--text); }

/* Ids sit on each section head, not the section box, so a jump lands on the
 * eyebrow instead of the 140 to 150 px of padding above it. 72 px bar + 24 px. */
#gestures,
#install,
#questions { scroll-margin-top: 96px; }

/* ---------- Shared type ---------- */

.section-index {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-lede {
  max-width: 46ch;
  margin: 24px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}

.quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 160ms linear, border-color 160ms linear;
}
.quiet:hover { color: var(--text); border-bottom-color: var(--line-strong); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 160ms linear,
    transform 220ms var(--ease),
    box-shadow 220ms linear;
  will-change: transform;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 520ms var(--ease);
  pointer-events: none;
}
.btn:hover { background: var(--accent-hi); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 46px; padding: 0 20px; font-size: 13px; margin-top: 32px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: 96px;
  background:
    radial-gradient(90% 70% at 78% 38%, rgba(16, 163, 234, 0.07), transparent 62%),
    var(--ink);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: 0.22;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 64px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 40px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pulse {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(16, 163, 234, 0.5);
  animation: pulse 3.2s ease-out infinite;
}

.hero-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8.2vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.92;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1.04em;
}

.lede {
  max-width: 44ch;
  margin: 30px 0 0;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 36px;
}

.meta {
  margin: 20px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  width: min(38vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 163, 234, 0.24), rgba(16, 163, 234, 0.05) 46%, transparent 68%);
  filter: blur(18px);
  animation: breathe 9s ease-in-out infinite;
  z-index: -1;
}
.hero-rings { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; }
.hero-rings i {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0;
  animation: ringIn 1.4s var(--ease) 0.7s both;
}
.hero-rings i:nth-child(1) { width: 260px; height: 260px; }
.hero-rings i:nth-child(2) { width: 380px; height: 380px; border-color: rgba(16, 163, 234, 0.16); animation-delay: 0.85s; }
.hero-rings i:nth-child(3) { width: 510px; height: 510px; animation-delay: 1s; }

.flame {
  width: clamp(220px, 25vw, 340px);
  overflow: visible;
  filter: drop-shadow(0 0 54px rgba(16, 163, 234, 0.32));
}
.flame-outer, .flame-inner { fill-opacity: 0; }
.flame-outer { fill: var(--accent); stroke: var(--ice); stroke-width: 1.1; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.5s var(--ease) 0.15s both, fillIn 0.9s ease 0.95s both; }
.flame-inner { fill: var(--ice); stroke: var(--ice); stroke-width: 1; stroke-dasharray: 110; stroke-dashoffset: 110; animation: draw 1.1s var(--ease) 0.55s both, fillIn 0.7s ease 1.25s both; }

.hero-caption {
  position: absolute;
  bottom: 2px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 1s var(--ease) 1.35s both;
}

.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 20px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-foot p { margin: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts span::before { content: ""; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }

.scroll-cue { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; }
.scroll-cue i {
  display: block;
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2.4s ease-in-out infinite;
}

/* Hero entrance */
.hero-in { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
.hero-title .hero-in { animation-name: lineUp; animation-duration: 1s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes lineUp {
  from { transform: translateY(112%); }
  to { transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill-opacity: 1; } }
@keyframes ringIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes breathe {
  0%, 100% { opacity: 0.62; transform: translate(var(--gx, 0), var(--gy, 0)) scale(1); }
  50% { opacity: 0.95; transform: translate(var(--gx, 0), var(--gy, 0)) scale(1.05); }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 163, 234, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(16, 163, 234, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 163, 234, 0); } }
@keyframes cue { 0%, 100% { opacity: 0.35; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- The browser leaves ----------
 * Hallmark · macrostructure: pinned before → after · genre: atmospheric
 * theme: Full Bleed (existing system, preserved) · enrichment: real captures
 * Two real 540×1200 captures, cropped in CSS. Nothing is drawn except the
 * hairline. --p is written by app.js on scroll; no layout reads per frame.
 */

.difference { position: relative; background: var(--ink); }

.leave { height: 260vh; position: relative; }

.leave-stage {
  --p: 0;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.leave-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  height: 100%;
  padding: 92px 0 48px;
}

.leave-copy { min-width: 0; }
.leave-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  opacity: calc(1 - var(--p) * 4.2);
}
.leave-copy .section-index { opacity: calc(1 - var(--p) * 5); }

.leave-lede {
  max-width: 42ch;
  margin: 22px 0 0;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.6;
}

.leave-captions {
  position: relative;
  height: 3.4em;
  max-width: 34ch;
  margin-top: 24px;
}
.leave-captions p {
  position: absolute;
  inset: 0;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  text-wrap: balance;
}
.leave-captions p.is-active { opacity: 1; transform: none; }
.leave-captions p:last-child { color: var(--ice); }

.capture-wrap {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.capture-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}
.js .capture-toggle { display: inline-flex; }
.capture-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 160ms linear, color 160ms linear;
}
.capture-toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.capture-toggle button:hover { color: var(--text); }
.capture-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.capture {
  --h: min(78svh, 700px);
  /* 152 px of a 1200 px capture, as a percentage of the frame's height. */
  --band: 12.6667%;
  position: relative;
  height: var(--h);
  aspect-ratio: 540 / 1200;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #07090c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.capture img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* The Chrome frame, band and all. It is only ever visible through the band
 * above .capture-screen, and it slides up by exactly that band's height. */
.capture-frame {
  transform: translateY(calc(var(--p) * var(--band) * -1));
}
/* The app frame: the same page with the band already gone. Its top edge sits
 * on the bottom edge of the band at every value of --p, so the page under it
 * never moves. Nothing is faded; the band simply leaves. */
.capture-screen {
  transform: translateY(calc((1 - var(--p)) * var(--band)));
}

/* The toggle snaps --p rather than being scrolled to, so give it a short
 * slide. Scroll itself is already continuous and must not be transitioned. */
.capture.is-snapping .capture-frame,
.capture.is-snapping .capture-screen {
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.leave-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}
.leave-rail i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color 240ms linear, transform 240ms linear;
}
.leave-rail i.is-on { background: var(--accent); transform: scale(1.5); }

@media (max-width: 860px) {
  .leave-inner {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 20px;
    padding: 84px 0 24px;
  }
  .leave-copy h2 { font-size: clamp(1.9rem, 7.4vw, 2.5rem); }
  .leave-lede { margin-top: 14px; font-size: 0.95rem; max-width: 52ch; }
  .leave-captions { margin-top: 12px; height: 3.2em; max-width: none; }
  .capture { --h: min(40svh, 380px); }
  .leave-rail { display: none; }
}

/* Without script, or without motion, the section shows the app: the thing the
 * page is arguing for. The band is a transition, not content. */
html:not(.js) .capture-frame { display: none; }
html:not(.js) .capture-screen { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .capture[data-view="app"] .capture-frame { display: none; }
  .capture[data-view="chrome"] .capture-screen { display: none; }
  .capture[data-view="chrome"] .capture-frame { transform: none; }
  .capture-screen { transform: none; }
}

/* ---------- Reasons ---------- */

.reasons { padding: 150px 0 150px; }
.section-head { max-width: 760px; }
.reason-list { margin-top: 64px; border-top: 1px solid var(--line); }
.reason {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px 64px;
  align-items: start;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}
.reason h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-wrap: balance;
}
.reason p { margin: 0; max-width: 55ch; color: var(--text-2); font-size: 15.5px; line-height: 1.7; }

/* ---------- Gestures ---------- */

.gestures { padding: 150px 0; border-top: 1px solid var(--line); }
.gestures .section-head > p:not(.section-index) {
  max-width: 60ch;
  margin: 20px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}

.gesture-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.gesture {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 26px;
  align-items: start;
}
.gesture-shot { width: min(100%, 240px); margin: 0; }
.gesture-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #07090c;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}
.gesture-frame img,
.gesture-frame video { display: block; width: 100%; height: auto; background: #07090c; }

.gesture-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(5, 6, 7, 0.72);
  color: var(--text);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 160ms linear, color 160ms linear;
}
.js .gesture-play { display: grid; }
.gesture-play:hover,
.gesture-play:focus-visible { border-color: var(--accent); color: var(--accent); }
.gesture-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gesture-play svg { width: 13px; height: 13px; }
.gesture-play[data-playing="true"] .icon-play { display: none; }
.gesture-play[data-playing="false"] .icon-pause { display: none; }
.gesture-shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.gesture-label {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gesture-copy h3 {
  margin: 14px 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-wrap: balance;
}
.gesture-copy p:not(.gesture-label) {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Install ---------- */

.install {
  padding: 140px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}
.install-head { position: sticky; top: 120px; }
.install-head h2 { font-size: clamp(2.6rem, 4.6vw, 4rem); }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step-num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.step p { margin: 0; max-width: 44ch; color: var(--text-2); font-size: 15px; line-height: 1.65; }

.scan-shell { margin-top: 40px; }
.scan {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
}
.scan summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  list-style: none;
  transition: color 160ms linear;
}
.scan summary::-webkit-details-marker { display: none; }
.scan summary::after {
  content: "+";
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}
.scan[open] summary::after { content: "−"; }
.scan summary:hover,
.scan summary:focus-visible { color: var(--text); }
.scan-body {
  display: grid;
  grid-template-columns: auto minmax(0, 340px);
  align-items: center;
  gap: 24px;
  padding: 4px 16px 20px;
}
.scan-body p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}
.scan-code {
  width: fit-content;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  line-height: 0;
}
.scan-code img { display: block; width: 150px; height: 150px; max-width: none; }

/* Below this the QR and its sentence cannot share a row without squashing
 * the code, which breaks the scan. */
@media (max-width: 560px) {
  .scan-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

.install-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 22px;
  margin-top: 72px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(16, 163, 234, 0.035);
}
.note-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}
.install-note h3 {
  margin: 1px 0 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.install-note p { margin: 0; max-width: 82ch; color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.install-note strong { color: var(--text); font-weight: 600; }
.install-note a { color: var(--ice); text-decoration-color: rgba(125, 211, 252, 0.4); text-underline-offset: 3px; }

/* ---------- Updates ---------- */

.updates {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 80px;
  align-items: center;
  padding: 150px 0;
}
.update-visual { position: relative; }
.update-shot {
  width: min(100%, 300px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--surface-2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.update-shot img { width: 100%; height: auto; }
.update-caption {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.updates-copy h2 { font-size: clamp(2.5rem, 4.5vw, 4rem); }
.updates-copy p { max-width: 50ch; margin: 22px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.updates-copy .quiet { margin-top: 28px; }

/* ---------- FAQ ---------- */

.faq { padding: 0 0 150px; }
.faq-list { margin-top: 56px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  position: relative;
  width: 15px;
  height: 15px;
  flex: none;
}
.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 1px;
  background: var(--muted);
  transition: transform 220ms var(--ease), background-color 160ms linear;
}
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0deg); }
.faq-item[open] summary { color: var(--ice); }
.faq-item[open] summary i::before,
.faq-item[open] summary i::after { background: var(--ice); }
.faq-body { animation: faqIn 260ms var(--ease); }
.faq-body p {
  max-width: 74ch;
  margin: 0;
  padding: 0 0 28px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.75;
}
.faq-body a { color: var(--ice); text-decoration-color: rgba(125, 211, 252, 0.4); text-underline-offset: 3px; }
.faq-body strong { color: var(--text); font-weight: 600; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

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

.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 72px;
}
.footer-mark {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.footer-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer nav a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 160ms linear;
}
.footer nav a:hover { color: var(--text); }
.footer-fine {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
}
.wordmark {
  width: 100%;
  color: #0c1015;
  font-family: var(--font-display);
  font-size: clamp(4.8rem, 19vw, 17.5rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.72;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* ---------- Reveals ---------- */

.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Technical page ---------- */

.doc { padding: 132px 0 96px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.back:hover { color: var(--text); }
.doc h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}
.doc-lede { max-width: 58ch; margin: 26px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.7; }

.facts { margin: 64px 0 0; border-top: 1px solid var(--line); }
.fact {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 8px 40px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.fact dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 3px;
}
.fact dd {
  margin: 0;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.fact dd a { color: var(--ice); text-decoration-color: rgba(125, 211, 252, 0.4); text-underline-offset: 3px; }

.hash-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy {
  display: none;
  flex: none;
  min-width: 72px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms linear, color 160ms linear;
}
.js .copy { display: inline-flex; }
.copy:hover,
.copy:focus-visible { border-color: var(--accent); color: var(--accent); }
.copy[data-copied="true"] { border-color: var(--accent); color: var(--accent); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.doc h2 {
  margin: 72px 0 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.doc p { max-width: 68ch; color: var(--text-2); font-size: 15px; line-height: 1.75; }
.doc code {
  padding: 2px 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.86em;
}
.code {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.band {
  margin-top: 96px;
  padding: 64px 0 76px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.band h2 { margin: 0; font-size: 1.45rem; }
.chip {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.manifest {
  margin: 28px 0 0;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.manifest .k { color: var(--muted); }
.band p { margin: 28px 0 0; max-width: 72ch; color: var(--muted); font-size: 14px; line-height: 1.75; }

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

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: 32px; }
  .hero-art { min-height: 420px; }
  .reason { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; }
  .install-grid { gap: 48px; }
  .updates { gap: 48px; }
}

@media (max-width: 860px) {
  :root { --shell: min(100% - 2.5rem, 680px); }
  .topbar { height: 64px; padding: 0 20px; }

  .hero { min-height: auto; padding-top: 108px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  .hero-art { min-height: 300px; order: 2; }
  .flame { width: min(58vw, 240px); }
  .hero-rings i:nth-child(1) { width: 180px; height: 180px; }
  .hero-rings i:nth-child(2) { width: 260px; height: 260px; }
  .hero-rings i:nth-child(3) { width: 340px; height: 340px; }
  .hero-caption { bottom: -4px; }
  .hero-foot { flex-wrap: wrap; justify-content: flex-start; gap: 14px 24px; }
  .hero-facts { order: 3; flex-basis: 100%; }
  .scroll-cue { margin-left: auto; }

  .leave { height: 220vh; }
  .leave-inner { gap: 32px; }
  .capture { --h: min(70svh, 560px); }

  .reasons { padding: 110px 0; }
  .gestures { padding: 110px 0; }
  .gesture-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 44px;
    padding-top: 0;
  }
  .gesture {
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 24px 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
  }
  .gesture-shot { width: 100%; }
  .reason { grid-template-columns: 1fr; gap: 10px; padding: 34px 0; }
  .reason h3 { max-width: 24ch; }
  .reason p { max-width: 60ch; }

  .install { padding: 110px 0; }
  .install-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .install-head { position: static; }
  .install-note { margin-top: 48px; padding: 24px; }

  .updates { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 110px 0; }
  .update-visual { order: 2; }
  .update-shot { width: min(100%, 320px); margin-inline: auto; }

  .faq { padding-bottom: 110px; }

  .footer-top { flex-direction: column; gap: 28px; padding-top: 48px; padding-bottom: 48px; }
  .footer-fine { text-align: left; }
  .wordmark { font-size: clamp(4.2rem, 21vw, 12rem); }

  .doc { padding: 112px 0 72px; }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .fact dt { padding-top: 12px; }
  .fact dd { margin-bottom: 10px; }
}

@media (max-width: 560px) {
  :root { --shell: min(100% - 2rem, 680px); }
  body { font-size: 16px; }
  .gesture {
    grid-template-columns: minmax(0, 1fr);
    padding: 34px 0;
  }
  .gesture-shot { width: min(100%, 240px); }
  .hero-title { font-size: clamp(2.85rem, 13.5vw, 4.2rem); }
  .lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .btn { width: 100%; }
  .hero-actions .quiet { align-self: flex-start; }
  .hero-foot { font-size: 8px; }
  .hero-facts { gap: 10px 18px; }
  .hero-art { min-height: 250px; }
  .flame { width: min(54vw, 200px); }
  .leave-inner { padding: 78px 0 20px; }
  .leave-copy h2 { font-size: 1.85rem; }
  .capture { --h: min(42svh, 360px); }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .step-num { font-size: 1.8rem; }
  .install-note { grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 20px; }
  .note-mark { width: 26px; height: 26px; }
  .update-shot { width: min(100%, 280px); }
  .faq-item summary { padding: 20px 0; }
  .footer nav { gap: 10px 20px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-in { opacity: 1 !important; transform: none !important; }
  .flame-outer, .flame-inner { fill-opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .hero-rings i { opacity: 1 !important; }
  .hero-caption { opacity: 1 !important; }

  .leave { height: auto; }
  .leave-stage { position: static; height: auto; padding: 96px 0 80px; }
  .leave-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0; }
  .leave-copy h2, .leave-copy .section-index { opacity: 1; }
  .leave-captions { height: auto; margin-top: 20px; }
  .leave-captions p { position: static; opacity: 1; transform: none; margin-top: 8px; }
  .capture { --h: min(58svh, 520px); justify-self: start; }
  .leave-rail { display: none; }
  .reveal { opacity: 1; transform: none; }
}
