/* ============================================================
   Unprompted landing · 零依赖自包含 · 系统字体
   夜墨世界 -> 扫描 -> 纸面世界，一次刻意翻转
   ============================================================ */

:root {
  /* palette */
  --night: #0c0d12;
  --night-2: #12141c;
  --night-line: #23252f;
  --night-text: #ece9df;
  --night-dim: #8b8e9c;
  --paper: #f5f2e9;
  --paper-high: #fbf9f2;
  --paper-deep: #eae6d8;
  --paper-line: #d9d4c4;
  --ink: #1a1b20;
  --ink-soft: #4a4c56;
  --red: #d93a45;      /* brand slash */
  --red-ink: #c02f3a;  /* red as text on paper */
  --red-night: #f2545e;/* red as text on night */
  /* glitch channels (chromatic aberration only) */
  --ca-r: #ff3b4e;
  --ca-g: #37e6cf;
  --ca-b: #5b8cff;
  /* type */
  --serif: "Songti SC", "New York", ui-serif, Georgia, "Hoefler Text", "Noto Serif SC", "Source Han Serif SC", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "JetBrains Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Noto Sans SC", sans-serif;
  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  /* layout */
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--night);
  color: var(--night-text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: 64px;
  display: flex; align-items: center; gap: 32px;
  padding-inline: clamp(20px, 4vw, 48px);
  color: var(--night-text);
  transition: color .5s var(--ease-out), background-color .5s var(--ease-out);
}
body[data-world="paper"] .nav {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.nav-brand {
  position: relative; display: block; flex: none;
  height: 19px; text-decoration: none;
}
/* the two variants are pixel-aligned, so they crossfade on the world flip */
.nav-brand .wm {
  display: block; height: 100%; width: auto;
  transition: opacity .5s var(--ease-out);
}
.nav-brand .wm-paper { position: absolute; inset: 0; }
body[data-world="night"] .nav-brand .wm-paper { opacity: 0; }
body[data-world="paper"] .nav-brand .wm-night { opacity: 0; }
.nav-git {
  font-family: var(--mono); font-size: 12.5px; text-decoration: none;
  margin-left: auto;
  border: 1px solid currentColor; padding: 7px 14px;
  transition: background-color .2s, color .2s;
}
body[data-world="night"] .nav-git:hover { background: var(--night-text); color: var(--night); }
body[data-world="paper"] .nav-git:hover { background: var(--ink); color: var(--paper); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 72% 30%, var(--night-2), var(--night) 70%);
}
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(5, 6, 9, .55) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 120px var(--pad) 96px;
}

/* glitch wordmark (moonshot recipe: 3 channels, screen blend, scanlines) */
.glitch-line { margin-bottom: clamp(28px, 5vh, 48px); }
.glitch {
  position: relative; display: inline-block;
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(15px, 1.6vw, 21px);
  letter-spacing: .42em;
  color: transparent;
}
.glitch .g-base { position: relative; z-index: 2; color: var(--night-text); }
.glitch .g-ch {
  position: absolute; inset: 0; z-index: 1;
  mix-blend-mode: screen; pointer-events: none;
}
.glitch .g-r { color: var(--ca-r); }
.glitch .g-g { color: var(--ca-g); }
.glitch .g-b { color: var(--ca-b); }
.glitch::after { /* scanlines */
  content: ""; position: absolute; inset: -6px -10px; z-index: 3;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(10, 11, 16, .28) 2px 3px);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .glitch .g-r { animation: jit-r 2.2s steps(12) infinite; }
  .glitch .g-b { animation: jit-b 2.6s steps(12) infinite; }
  .glitch.burst .g-r { transform: translateX(-5px); animation: none; }
  .glitch.burst .g-b { transform: translateX(5px); animation: none; }
  .glitch.burst .g-base { transform: translateX(1px) skewX(2deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .glitch-line, .hero-title .line, .hero-sub, .hero-cta {
    animation: rise .95s var(--ease-out) both;
  }
  .glitch-line { animation-delay: .1s; }
  .hero-title .line:nth-child(1) { animation-delay: .22s; }
  .hero-title .line:nth-child(2) { animation-delay: .34s; }
  .hero-sub { animation-delay: .5s; }
  .hero-cta { animation-delay: .62s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes jit-r { 0%, 100% { transform: translateX(0); } 18% { transform: translateX(-2.5px); } 52% { transform: translateX(1.8px); } 80% { transform: translateX(-1.2px); } }
@keyframes jit-b { 0%, 100% { transform: translateX(0); } 28% { transform: translateX(2.5px); } 60% { transform: translateX(-1.8px); } 86% { transform: translateX(1.2px); } }

.hero-title {
  font-weight: 900;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.24;
  letter-spacing: .01em;
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--night-text);
}
.hero-sub {
  margin-top: clamp(20px, 3vh, 30px);
  font-family: var(--sans);
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--night-dim);
  /* em, not ch: ch is the width of "0", which badly under-measures CJK */
  max-width: 34em;
}
.hero-cta {
  margin-top: clamp(28px, 4.5vh, 44px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.cmd-chip {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--night-text); color: var(--night);
  border: 0; padding: 15px 20px;
  font-family: var(--mono); font-size: 13.5px;
  transition: transform .15s var(--ease-out);
}
.cmd-chip:active { transform: translateY(1px); }
.cmd-prompt { color: var(--red-ink); font-weight: 700; }
.cmd-hint {
  font-family: var(--sans); font-size: 12px;
  border: 1px solid color-mix(in srgb, var(--night) 30%, transparent);
  padding: 2px 8px; margin-left: 6px;
}
.btn-ghost {
  font-family: var(--sans); font-size: 14.5px;
  color: var(--night-text); text-decoration: none;
  border: 1px solid var(--night-line);
  padding: 14px 22px;
  transition: border-color .2s, background-color .2s;
}
.btn-ghost:hover { border-color: var(--night-dim); background: rgba(255, 255, 255, .04); }

/* ============ DIGEST ============ */
.digest {
  position: relative;
  background: var(--night);
  padding: clamp(90px, 14vh, 150px) 0 clamp(80px, 12vh, 130px);
  border-top: 1px solid var(--night-line);
}
.sec-title {
  font-weight: 900;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.3;
  letter-spacing: .01em;
}
.sec-lede {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: clamp(14.5px, 1.2vw, 17px);
  max-width: 56ch;
}
.night-title { color: var(--night-text); }
.night-lede { color: var(--night-dim); }

.term {
  margin-top: clamp(36px, 6vh, 56px);
  background: #08090d;
  border: 1px solid var(--night-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--night-line);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2c36; }
.term-name { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--night-dim); }
.term-body {
  padding: 26px 28px 30px;
  font-family: var(--mono);
  font-size: clamp(11px, 1.05vw, 13.5px);
  line-height: 1.75;
  color: var(--night-text);
  white-space: pre;
  overflow-x: auto;
  min-height: 36.5em;
}
.term-body .t-dim { color: var(--night-dim); }
.term-body .t-red { color: var(--red-night); }
.term-body .t-key { color: #b9bfd4; }
.caret {
  display: inline-block; width: 8px; height: 1.1em;
  background: var(--night-text); vertical-align: text-bottom;
}
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: blink 1.05s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

.fact-chips {
  margin-top: clamp(28px, 4vh, 40px);
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none;
}
.fact-chips li {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--night-dim);
  border: 1px solid var(--night-line);
  padding: 8px 14px;
}
.fact-chips b { color: var(--night-text); font-weight: 600; margin-right: 6px; }

/* ============ THE TURN ============ */
.turn { position: relative; height: 320vh; background: var(--night); }
.turn-sticky {
  position: sticky; top: 0; height: 100dvh; overflow: hidden;
}
.turn-night, .turn-paper { position: absolute; inset: 0; }
.turn-night { z-index: 1; }
.turn-paper { z-index: 2; }

.turn-night { background: var(--night); display: grid; place-items: center; }
.turn-night-line { text-shadow: 0 0 30px rgba(12, 13, 18, .9); }
.frag-field { position: absolute; inset: 0; }
.frag {
  position: absolute;
  font-family: var(--mono);
  /* brightens toward --lit as the cursor passes over it: being read */
  color: var(--night-dim); /* fallback if color-mix is unsupported */
  color: color-mix(in srgb, var(--night-text) calc(var(--lit, 0) * 100%), var(--night-dim));
  white-space: nowrap;
  opacity: calc(.2 + .32 * var(--fo, .5) + .44 * var(--lit, 0));
  /* --px/--py are the lerped pointer offset in px, set on .frag-field;
     --d is the fragment's own depth, so the field parallaxes in layers */
  transform: translate(-50%, -50%)
             translate(calc(var(--px, 0) * var(--d, .6) * 1px),
                       calc(var(--py, 0) * var(--d, .6) * 1px));
}
.frag.zh { font-family: var(--serif); }
.turn-night-line {
  position: relative;
  text-align: center;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.9;
  color: var(--night-text);
  text-shadow: 0 0 30px rgba(12, 13, 18, .9);
}
.turn-night-line code { font-family: var(--mono); font-size: .82em; color: var(--red-night); }

/* paper layer clipped by beam progress --reveal (0..1) */
.turn-paper {
  background: var(--paper);
  color: var(--ink);
  clip-path: inset(0 0 calc((1 - var(--reveal, 0)) * 100%) 0);
  display: grid; place-items: center;
}
.turn-paper-inner {
  text-align: center; padding-inline: var(--pad); max-width: 900px;
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.turn-sticky.lit .turn-paper-inner { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .turn-paper-inner { opacity: 1; transform: none; }
}
.turn-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .3em;
  color: var(--red-ink); margin-bottom: 22px;
}
.turn-title {
  font-weight: 900;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.3;
}
.turn-sub {
  margin-top: 24px;
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: clamp(14.5px, 1.25vw, 17.5px);
  max-width: 44ch;
  margin-inline: auto;
}
.scan-beam {
  position: absolute; left: 0; right: 0; z-index: 3;
  top: calc(var(--reveal, 0) * 100%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 18%, #ffb3b8 50%, var(--red) 82%, transparent);
  box-shadow: 0 0 24px 2px rgba(217, 58, 69, .55), 0 0 90px 18px rgba(217, 58, 69, .18);
  opacity: var(--beam-on, 0);
}

/* ============ PAPER WORLD SHARED ============ */
.poles, .layers, .zero, .persona, .privacy, .install {
  background: var(--paper); color: var(--ink);
}
.poles .sec-lede, .layers .sec-lede, .zero .sec-lede,
.persona .sec-lede, .privacy .sec-lede { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .26em;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.l-tag {
  color: var(--red-ink); font-weight: 700; letter-spacing: .1em;
  border: 1px solid color-mix(in srgb, var(--red-ink) 45%, transparent);
  padding: 3px 8px;
}

/* reveal-on-scroll */
.rv { opacity: 0; transform: translateY(26px); }
.rv.in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
}

/* ============ POLES ============ */
.poles { padding: clamp(100px, 15vh, 170px) 0 clamp(80px, 12vh, 130px); }
.pole-grid {
  margin-top: clamp(44px, 7vh, 70px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: stretch;
}
.pole-card {
  border: 1px solid var(--paper-line);
  background: var(--paper-high);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
}
.pole-mark {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--mono); font-size: 13px; color: var(--red-ink);
  border: 1px solid color-mix(in srgb, var(--red-ink) 40%, transparent);
  width: 26px; height: 26px; display: grid; place-items: center;
}
.pole-name { font-size: clamp(26px, 2.6vw, 38px); font-weight: 900; line-height: 1.25; }
.pole-gloss { margin-top: 6px; font-family: var(--sans); color: var(--ink-soft); font-size: 15px; }
.pole-meta { margin-top: 20px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.pole-vs {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-align: center;
}
.vs-num { font-family: var(--mono); font-weight: 700; font-size: clamp(38px, 4.5vw, 64px); color: var(--red-ink); line-height: 1; }
.vs-x { font-family: var(--mono); font-size: 18px; color: var(--red-ink); }
.vs-label { margin-top: 8px; font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); }

.gap-list { margin-top: clamp(44px, 7vh, 72px); border-top: 1px solid var(--paper-line); }
.gap-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) auto 2fr;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 22px 0;
  border-bottom: 1px solid var(--paper-line);
}
.gap-dim { font-family: var(--mono); font-size: 14px; }
.gap-dim i { font-style: normal; font-family: var(--sans); color: var(--ink-soft); font-size: 13px; margin-left: 10px; }
.gap-x { font-family: var(--mono); font-weight: 700; font-size: clamp(18px, 1.8vw, 24px); color: var(--red-ink); }
.gap-bars { display: flex; flex-direction: column; gap: 7px; }
.gbar { display: flex; align-items: center; gap: 10px; }
.gbar i {
  height: 10px; flex: 0 0 auto;
  width: calc(var(--w, 0) * 1%);
  max-width: 100%;
  background: var(--ink);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1.1s var(--ease-out);
}
.gap-row.in .gbar i { transform: scaleX(1); }
.gbar-b i { background: color-mix(in srgb, var(--ink) 38%, var(--paper)); }
.gbar b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.data-note {
  margin-top: 34px;
  font-family: var(--sans); font-size: 13px; color: var(--ink-soft);
}

/* ============ LAYERS (sticky sheets) ============ */
.layers { padding-top: clamp(100px, 15vh, 170px); }
.stack { margin-top: clamp(40px, 6vh, 64px); }
.sheet {
  position: sticky;
  top: calc(64px + var(--i, 0) * 14px);
  min-height: 66dvh;
  max-width: min(980px, calc(100% - 2 * var(--pad)));
  margin: 0 auto 10vh;
  background: var(--paper-high);
  border: 1px solid var(--paper-line);
  box-shadow: 0 -18px 50px rgba(26, 27, 32, .07);
  padding: clamp(26px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
}
.sheet[data-i="1"] { --i: 1; }
.sheet[data-i="2"] { --i: 2; }
.sheet[data-i="3"] { --i: 3; }
.sheet-head { display: flex; align-items: baseline; gap: 18px; }
.sheet-l {
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  color: var(--red-ink);
  border: 1px solid color-mix(in srgb, var(--red-ink) 40%, transparent);
  padding: 4px 10px;
}
.sheet-head h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 900; }
.sheet-body { display: grid; grid-template-columns: minmax(260px, 1fr) 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.sheet-body > p { font-family: var(--sans); color: var(--ink-soft); font-size: 15.5px; }
.sheet-fig-img {
  border: 1px solid var(--paper-line);
  background: #fff;
  padding: 10px;
}
.sheet-fig-img img { width: 100%; height: 320px; object-fit: cover; object-position: top; }
.sheet-fig-img figcaption { margin-top: 10px; font-family: var(--sans); font-size: 12px; color: var(--ink-soft); }

.density { display: flex; flex-direction: column; gap: 14px; }
.density-row { display: grid; grid-template-columns: 30px 1fr 60px; align-items: center; gap: 14px; }
.d-tag { font-family: var(--mono); font-size: 13px; color: var(--red-ink); }
.d-track { position: relative; height: 14px; background: var(--paper-deep); overflow: hidden; }
.d-track i {
  position: absolute; inset: 0 auto 0 0;
  width: calc(var(--v) * 100% / .4);
  background: var(--ink);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1.2s var(--ease-out) .15s;
}
.sheet.seen .d-track i { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .d-track i { transform: scaleX(1); transition: none; }
}
.d-val { font-family: var(--mono); font-size: 13px; text-align: right; }
.density-note { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

.sheet-ink { background: var(--ink); border-color: #000; color: var(--paper); }
.sheet-ink .sheet-body > p { color: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
.zero-pair { display: flex; flex-direction: column; gap: 18px; }
.zp-row { display: flex; align-items: baseline; gap: 22px; }
.zp-zero {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(84px, 9vw, 150px); line-height: .9;
  color: var(--red-night);
}
.zp-vs {
  font-family: var(--sans); font-size: 14px;
  color: color-mix(in srgb, var(--paper) 62%, var(--ink));
}
.zp-big { font-family: var(--mono); font-weight: 700; font-size: clamp(48px, 5vw, 84px); line-height: 1; }
.zp-cap { font-family: var(--mono); font-size: 12.5px; color: color-mix(in srgb, var(--paper) 62%, var(--ink)); }

.contra { border-left: 2px solid var(--red-ink); padding-left: 24px; }
.contra-line { font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; }
.contra-line + .contra-line { margin-top: 10px; }
.c-time { font-family: var(--mono); font-size: .68em; font-weight: 500; color: var(--red-ink); margin-right: 14px; }
.contra-gap { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

/* ============ ZERO poster ============ */
.zero { padding: clamp(110px, 16vh, 190px) 0; background: var(--paper-deep); }
.zero-line {
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.3;
}
.zero-board {
  margin-top: clamp(44px, 7vh, 76px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px);
}
.zero-cell {
  border-top: 2px solid var(--ink);
  padding-top: 26px;
  display: flex; flex-direction: column;
}
.z-word { font-family: var(--mono); font-size: clamp(15px, 1.4vw, 19px); }
.z-num {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(120px, 16vw, 240px);
  line-height: .95;
  color: var(--red-ink);
  letter-spacing: -.04em;
}
.z-against { font-family: var(--sans); font-size: 14.5px; color: var(--ink-soft); }
.z-against b { font-family: var(--mono); font-size: 1.25em; color: var(--ink); }

/* ============ PERSONA ============ */
.persona { padding: clamp(110px, 16vh, 190px) 0; }
.persona-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.axis-list { margin-top: 30px; list-style: none; display: flex; flex-direction: column; }
.axis-list li {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  padding: 13px 0; border-top: 1px solid var(--paper-line);
  display: flex; align-items: center; gap: 18px;
}
.axis-list li:last-child { border-bottom: 1px solid var(--paper-line); }
.ax { font-family: var(--mono); font-size: 13px; color: var(--red-ink); width: 34px; flex: none; }

.persona-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.persona-stage figcaption { font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); }
.tilt {
  position: relative;
  width: min(400px, 88%);
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease-out;
  box-shadow: 0 40px 90px rgba(26, 27, 32, .28), 0 6px 18px rgba(26, 27, 32, .14);
}
.tilt img { width: 100%; }
.tilt-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) calc(38% + var(--sx, 0) * 30%), transparent 58%);
  mix-blend-mode: soft-light;
}

/* ============ PRIVACY ledger ============ */
.privacy { padding: clamp(100px, 15vh, 170px) 0; background: var(--paper-high); }
.ledger {
  margin-top: clamp(40px, 6vh, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--paper-line);
  border-left: 1px solid var(--paper-line);
}
.ledger-cell {
  border-right: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: clamp(22px, 2.6vw, 36px);
  min-height: 190px;
  display: flex; flex-direction: column;
}
.lg-val {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(30px, 3vw, 44px); line-height: 1.1;
  color: var(--red-ink);
}
.lg-key { margin-top: 6px; font-weight: 900; font-size: 17px; }
.ledger-cell p {
  margin-top: 14px;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.85;
  color: var(--ink-soft);
}
.ledger-cell code { font-family: var(--mono); font-size: .92em; background: var(--paper-deep); padding: 1px 5px; }

/* ============ INSTALL ============ */
.install { padding-top: clamp(100px, 15vh, 170px); }
.inst-grid {
  margin-top: clamp(40px, 6vh, 60px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px);
}
.inst-block {
  min-width: 0;
  border: 1px solid var(--paper-line);
  background: var(--paper-high);
  padding: clamp(24px, 3vw, 40px);
}
.inst-block h3 { font-size: 21px; font-weight: 900; margin-bottom: 18px; }
.inst-block > p { font-family: var(--sans); font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }
.inst-block p code { font-family: var(--mono); font-size: .9em; background: var(--paper-deep); padding: 1px 5px; }
.code-line {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
  background: var(--ink); color: var(--paper);
  padding: 14px 16px;
}
.code-line code {
  font-family: var(--mono); font-size: 12.5px;
  /* wrap rather than clip: the long clone command must be readable in full */
  white-space: pre-wrap; overflow-wrap: anywhere;
  line-height: 1.65; flex: 1; min-width: 0;
}
.copy-btn {
  flex: none;
  font-family: var(--sans); font-size: 12px;
  background: transparent; color: var(--paper);
  border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent);
  padding: 5px 12px;
  transition: background-color .2s, color .2s, transform .15s;
}
.copy-btn:hover { background: var(--paper); color: var(--ink); }
.copy-btn:active { transform: translateY(1px); }
.inst-ask { grid-column: 1 / -1; }
.ask-quote {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 900; line-height: 1.6;
}

.footer {
  margin-top: clamp(90px, 13vh, 150px);
  border-top: 1px solid var(--paper-line);
  padding: 34px 0 44px;
}
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
}
.foot-brand { display: block; flex: none; }
.foot-brand img { display: block; height: 17px; width: auto; }
.foot-links { font-family: var(--sans); font-size: 13px; margin-left: auto; }
.foot-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--paper-line); }
.foot-links a:hover { border-color: var(--ink); }
.foot-sep { margin-inline: 10px; color: var(--ink-soft); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .sheet-body { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; }
  .persona-stage { order: -1; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .inst-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-inner { padding-top: 96px; }
  .hero-title { font-size: clamp(28px, 7.8vw, 40px); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .cmd-chip { width: 100%; justify-content: flex-start; }
  .cmd-chip .cmd-text { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .cmd-hint { flex: none; white-space: nowrap; margin-left: auto; }
  .btn-ghost { text-align: center; }
  .pole-grid { grid-template-columns: 1fr; }
  .pole-vs { flex-direction: row; gap: 12px; padding: 4px 0; }
  .vs-label { margin: 0; }
  .gap-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .gap-bars { grid-column: 1 / -1; }
  .zero-board { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .ledger-cell { min-height: 0; }
  .sheet { position: static; min-height: 0; margin-bottom: 20px; max-width: calc(100% - 2 * var(--pad)); }
  .stack { padding-bottom: 40px; }
  .cmd-chip .cmd-text { font-size: 11.5px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .foot-links { margin-left: 0; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .turn { height: auto; }
  .turn-sticky { position: static; height: auto; }
  .turn-night { position: relative; padding: 120px 0; }
  .turn-paper { position: relative; clip-path: none; padding: 120px 0; }
  .scan-beam { display: none; }
  .gbar i { transition: none; }
  .tilt { transform: none !important; }
}
