/* Keytrix site themes. Dark (Graphite & Brass) is the main theme; Light (Porcelain & Cobalt)
   is the second. Both derive their canvases, surfaces and text from Huemantics
   brief-generator-v2 systems (counterpoint-1e2a44-d9b25f dark, counterpoint-2b3a8c-e8d9b8
   light); accents for accounts, warn/alert and the paper sections are hand-tuned.
   Roles: a1 devices / accent, a2 mailboxes and numbers, a3 accounts, warn "another route",
   alert "at risk". --glow scales every glow; --grain sets the paper-grain overlay. */
[data-palette="dark"] {
  --bg0: #0b0a07; --bg: #110f0b; --bg2: #191713; --bg3: #23201b;
  --text: #f2eee6; --muted: #afaaa0; --faint: #7d786d;
  --line: rgba(242, 238, 230, .085); --line2: rgba(242, 238, 230, .15);
  --a1: #d9b25f; --a1-ink: #1d1a14; --a2: #8fa1c4; --a3: #c7a3b8; --warn: #e3935a; --alert: #e8735f;
  --paper: #f3eee4; --paper2: #faf7f0; --p-text: #1d1a14; --p-muted: #5f5a50; --p-faint: #8c877c; --p-line: rgba(29, 26, 20, .12); --p-accent: #7a5d1a;
  --glow: .38; --grain: .55;
}

[data-palette="light"] {
  --bg0: #efece4; --bg: #f7f5ef; --bg2: #fdfcf9; --bg3: #ebe8e0;
  --text: #1d1a14; --muted: #5f5b52; --faint: #8b877c;
  --line: rgba(29, 26, 20, .1); --line2: rgba(29, 26, 20, .17);
  --a1: #2b3a8c; --a1-ink: #f8faff; --a2: #3f7a68; --a3: #8a4f7d; --warn: #9a5b00; --alert: #b3352a;
  --paper: #191a20; --paper2: #22232b; --p-text: #f1eee6; --p-muted: #b3afa5; --p-faint: #87837a; --p-line: rgba(241, 238, 230, .13); --p-accent: #9fb0f0;
  --glow: .3; --grain: .45;
}

/* Paper grain: one fixed, static layer. No blend mode, so scrolling composites it for free. */
html::after {
  content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  background: url("/assets/grain.png") 0 0 / 160px 160px; opacity: calc(var(--grain, 0) * .16);
}

/* Keytrix — Fable concept. "The orbit": the map of what every key unlocks,
   drawn as a living orrery around the key. Motion runs on its own clock, on
   entering view once, or under the pointer; nothing is bound to scroll position. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-var-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Every colour comes from /lab/palettes.css; these are the page's own names for them. */
  --ink-0: var(--bg0);
  --ink: var(--bg);
  --ink-1: var(--bg2);
  --ink-2: var(--bg3);
  --ink-3: color-mix(in srgb, var(--bg3) 82%, var(--text));
  --line-2: var(--line2);
  --lime: var(--a1);
  --lime-ink: var(--a1-ink);
  --lime-hi: color-mix(in srgb, var(--a1) 55%, #fff);
  --sky: var(--a2);
  --lilac: var(--a3);
  --amber: var(--warn);
  --coral: var(--alert);
  --paper-2: var(--paper2);
  --p-ink: var(--p-text);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gut: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--ink); }
body {
  background: var(--ink); color: var(--text);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible { outline-color: var(--p-ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip { position: fixed; z-index: 200; left: 16px; top: -60px; padding: 10px 16px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Nav island ---------- */
.nav {
  position: fixed; z-index: 90; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1240px, calc(100% - 28px)); display: flex; align-items: center; gap: 28px;
  padding: 12px 14px 12px 20px; border-radius: 20px; border: 1px solid transparent;
  transition: width .7s var(--ease), padding .7s var(--ease), background-color .5s, border-color .5s, box-shadow .7s var(--ease);
}
.nav.compact {
  width: min(780px, calc(100% - 28px)); padding: 8px 8px 8px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink-1) 72%, transparent); border-color: var(--line-2);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .7);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 640; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { width: 30px; height: 15px; fill: var(--lime); flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 560; color: var(--text); background: color-mix(in srgb, var(--lime) 10%, transparent); border: 1px solid color-mix(in srgb, var(--lime) 28%, transparent); white-space: nowrap; }
.nav-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.nav-sentinel { position: absolute; top: 140px; width: 1px; height: 1px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(100px, 13vh, 132px) 0 clamp(40px, 6vh, 72px); text-align: center; }
.hero::before { /* the matrix: a quiet dot field */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.4px);
  background-size: 26px 26px; background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 62% 52% at 50% 34%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 52% at 50% 34%, #000 10%, transparent 72%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; background: linear-gradient(transparent, var(--ink)); }
.hero-sky { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-sky i { position: absolute; border-radius: 50%; opacity: .5; will-change: transform; }
.sky-a { width: 900px; height: 900px; left: -320px; top: -420px; background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) calc(20% * var(--glow)), transparent), transparent); }
.sky-b { width: 1000px; height: 1000px; right: -380px; top: -300px; background: radial-gradient(closest-side, color-mix(in srgb, var(--sky) calc(20% * var(--glow)), transparent), transparent); }
.sky-c { width: 1100px; height: 700px; left: 50%; margin-left: -550px; bottom: -260px; background: radial-gradient(closest-side, color-mix(in srgb, var(--lilac) calc(20% * var(--glow)), transparent), transparent); }
:root.moving .sky-a { animation: drift-a 22s var(--ease-io) infinite alternate; }
:root.moving .sky-b { animation: drift-b 27s var(--ease-io) infinite alternate; }
:root.moving .sky-c { animation: drift-c 31s var(--ease-io) infinite alternate; }
@keyframes drift-a { to { transform: translate(180px, 120px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-160px, 140px) scale(.9); } }
@keyframes drift-c { to { transform: translate(120px, -60px) scale(1.15); } }

.hero-copy { position: relative; z-index: 3; max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 15px 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 520; color: var(--muted); background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2); }
.eyebrow .sep { color: var(--faint); }
.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--lime); opacity: 0; }
:root.moving .pulse-dot::after { animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

.hero-title { margin: 24px 0 0; font-weight: 640; font-size: clamp(40px, 5.7vw, 90px); line-height: .98; letter-spacing: -.055em; white-space: nowrap; }
.hero-title .ln { display: inline-block; }
.slot { display: inline-grid; justify-items: center; vertical-align: baseline; transition: width .8s var(--ease); }
.slot-word {
  grid-area: 1 / 1; display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.1em; line-height: .9; letter-spacing: -.02em; padding: 0 .1em .08em .04em; margin: 0 -.06em -.08em -.02em; white-space: nowrap;
  background: linear-gradient(100deg, var(--lime-hi) 0%, var(--lime) 30%, var(--sky) 66%, var(--lilac) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--lime);
}
.slot-word[data-kind="device"] { background-image: linear-gradient(100deg, var(--lime-hi), var(--lime) 45%, color-mix(in srgb, var(--lime) 80%, #000)); }
.slot-word[data-kind="identity"] { background-image: linear-gradient(100deg, color-mix(in srgb, var(--sky) 50%, #fff), var(--sky) 50%, color-mix(in srgb, var(--sky) 80%, #000)); }
.slot-word[data-kind="alert"] { background-image: linear-gradient(100deg, color-mix(in srgb, var(--coral) 50%, #fff), var(--coral) 55%, color-mix(in srgb, var(--coral) 85%, var(--amber))); }
.slot-word.enter { animation: word-in .9s var(--ease) both; }
.slot-word.leave { animation: word-out .55s var(--ease-io) both; }
@keyframes word-in { from { opacity: 0; transform: translateY(.42em) rotateX(-50deg); filter: blur(10px); } }
@keyframes word-out { to { opacity: 0; transform: translateY(-.36em) rotateX(45deg); filter: blur(10px); } }

.lede { max-width: 830px; margin: 22px auto 0; font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.58; color: var(--muted); text-wrap: pretty; }
.try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 26px; }
.try-label { font: 400 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.try-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px 10px 14px; border-radius: 999px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: var(--text);
  background: color-mix(in srgb, var(--ink-2) 70%, transparent); border: 1px solid var(--line-2);
  transition: border-color .25s, background-color .25s, transform .45s var(--ease), box-shadow .35s;
}
.try-btn::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) calc(16% * var(--glow)), transparent); transition: transform .4s var(--ease); }
.try-btn:hover { border-color: color-mix(in srgb, var(--coral) calc(60% * var(--glow)), transparent); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--coral) calc(45% * var(--glow)), transparent); }
.try-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--coral) 16%, transparent); border-color: var(--coral); }
.try-btn[aria-pressed="true"]::before { transform: rotate(45deg) scale(1.15); }
.try-btn[aria-pressed="true"]::after { content: "×"; margin-left: 2px; font-weight: 400; color: var(--coral); }
.readout { min-height: 1.6em; margin: 12px auto 0; max-width: 720px; font-size: 14.5px; color: var(--faint); transition: color .4s; }
.nw { white-space: nowrap; }
.readout b { color: var(--text); font-weight: 600; }
.readout .r-risk { color: var(--coral); font-weight: 600; }
.readout .r-route { color: var(--amber); font-weight: 600; }
.readout .r-key { font-weight: 600; }
.readout .r-key[data-kind="device"] { color: var(--lime); }
.readout .r-key[data-kind="identity"] { color: var(--sky); }
.readout .r-key[data-kind="account"] { color: var(--lilac); }

/* Orbit */
.orbit { position: relative; z-index: 2; width: min(1320px, 100%); margin: clamp(-56px, -3.6vw, -16px) auto 0; }
.orbit-tilt { position: relative; height: clamp(360px, 38vw, 560px); }
.orbit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* No clip on the floor: a rounded overflow clip around a rotating layer cost a full extra frame in software compositing. Each layer is round itself. */
.orbit-floor { position: absolute; left: 0; top: 0; width: 100px; height: 100px; pointer-events: none; transform-origin: 50% 50%; }
.orbit-aurora { position: absolute; inset: 0; border-radius: 50%; opacity: .5; will-change: transform;
  background: conic-gradient(from 20deg, color-mix(in srgb, var(--lime) calc(55% * var(--glow)), transparent), color-mix(in srgb, var(--sky) calc(50% * var(--glow)), transparent) 22%, color-mix(in srgb, var(--lilac) calc(55% * var(--glow)), transparent) 45%, color-mix(in srgb, var(--sky) calc(35% * var(--glow)), transparent) 62%, color-mix(in srgb, var(--lime) calc(40% * var(--glow)), transparent) 80%, color-mix(in srgb, var(--lime) calc(55% * var(--glow)), transparent)); }
.orbit-floor::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 92%, transparent) 0%, color-mix(in srgb, var(--ink) 74%, transparent) 34%, color-mix(in srgb, var(--ink) 30%, transparent) 62%, color-mix(in srgb, var(--ink) 86%, transparent) 86%, var(--ink) 100%); }
.orbit-floor::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) calc(30% * var(--glow)), transparent), color-mix(in srgb, var(--lime) calc(6% * var(--glow)), transparent) 22%, transparent 34%); }
:root.moving .orbit-aurora { animation: spin 70s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-hub { position: absolute; left: 0; top: 0; z-index: 30; width: clamp(78px, 9.4vw, 142px); pointer-events: none; }
.hub-key { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--lime) calc(45% * var(--glow)), transparent)) drop-shadow(0 12px 22px rgba(0, 0, 0, .55)); }
:root.moving .hub-key { animation: bob 6s var(--ease-io) infinite alternate; }
@keyframes bob { from { transform: translateY(-5%); } to { transform: translateY(7%); } }
.hk-l0 { stop-color: color-mix(in srgb, var(--lime) 45%, #fff); } .hk-l1 { stop-color: var(--lime); } .hk-l2 { stop-color: color-mix(in srgb, var(--lime) 75%, #000); }
.hk-s0 { stop-color: color-mix(in srgb, var(--sky) 45%, #fff); } .hk-s1 { stop-color: color-mix(in srgb, var(--sky) 88%, #000); }
.hk-v0 { stop-color: color-mix(in srgb, var(--lilac) 45%, #fff); } .hk-v1 { stop-color: color-mix(in srgb, var(--lilac) 88%, #000); }
:root:not([data-palette="lime"]) .hk-l0 { stop-color: color-mix(in srgb, var(--lime) 82%, #fff); }
:root:not([data-palette="lime"]) .hk-s0 { stop-color: color-mix(in srgb, var(--sky) 82%, #fff); }
:root:not([data-palette="lime"]) .hk-v0 { stop-color: color-mix(in srgb, var(--lilac) 82%, #fff); }
.hub-beam { position: absolute; left: 50%; top: 40%; width: 2px; height: 120%; margin-left: -1px; background: linear-gradient(color-mix(in srgb, var(--lime) 55%, transparent), color-mix(in srgb, var(--lime) 0%, transparent)); }
.hub-beam::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 70px; height: 14px; margin-left: -35px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) calc(55% * var(--glow)), transparent), transparent); }

.orbit-nodes { position: absolute; inset: 0; }
.orbit-nodes .node {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 9px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; line-height: 1; letter-spacing: -.01em; color: var(--text);
  background: color-mix(in srgb, var(--ink-1) 90%, transparent); border: 1px solid var(--line-2);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .9);
  transform-origin: 50% 100%; will-change: transform, opacity; opacity: 0;
  transition: border-color .35s, background-color .35s, color .35s, box-shadow .4s;
}
.orbit-nodes .node > i { --c: var(--lime); position: relative; width: 4px; height: 4px; margin: -5px 5px 0 0; border-radius: 1px; background: var(--c); flex: none;
  box-shadow: 5px 0 0 color-mix(in srgb, var(--c) 40%, transparent), 0 5px 0 color-mix(in srgb, var(--c) 40%, transparent), 5px 5px 0 var(--c); }
.orbit-nodes .node[data-kind="identity"] > i { --c: var(--sky); }
.orbit-nodes .node[data-kind="account"] > i { --c: var(--lilac); }
.orbit-nodes .node:hover, .orbit-nodes .node[data-state="on"] { border-color: color-mix(in srgb, var(--c, var(--lime)) 70%, transparent); }
.orbit-nodes .node[data-kind="device"] { --c: var(--lime); }
.orbit-nodes .node[data-kind="identity"] { --c: var(--sky); }
.orbit-nodes .node[data-kind="account"] { --c: var(--lilac); }
.orbit-nodes .node[data-state="on"] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), 0 8px 30px -6px color-mix(in srgb, var(--c) 45%, transparent); }
.orbit-nodes .node[data-state="hub"] { border-color: color-mix(in srgb, var(--c) 85%, transparent); background: color-mix(in srgb, var(--c) 16%, color-mix(in srgb, var(--ink-1) 92%, transparent)); }
.orbit-nodes .node[data-state="lost"] { color: color-mix(in srgb, var(--coral) 35%, var(--text)); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--coral) 80%, transparent); background: color-mix(in srgb, var(--coral) 20%, transparent); border-color: var(--coral); }
.orbit-nodes .node[data-state="lost"] > i, .orbit-nodes .node[data-state="red"] > i { --c: var(--coral); }
.orbit-nodes .node[data-state="red"] { border-color: var(--coral); box-shadow: 0 0 0 1px color-mix(in srgb, var(--coral) calc(30% * var(--glow)), transparent), 0 8px 32px -6px color-mix(in srgb, var(--coral) calc(60% * var(--glow)), transparent); }
.orbit-nodes .node[data-state="amber"] { border-color: var(--amber); }
.orbit-nodes .node[data-state="amber"] > i { --c: var(--amber); }

.orbit-foot { display: flex; justify-content: center; padding: 6px var(--gut) 0; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font: 400 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.lg-device { background: var(--lime); } .lg-identity { background: var(--sky); } .lg-account { background: var(--lilac); }
.lg-risk, .lg-route { width: 18px !important; height: 2px !important; }
.lg-risk { background: var(--coral); } .lg-route { background: var(--amber); }
.legend .lg-sep { width: 1px; height: 14px; background: var(--line-2); }

/* Intro: once, on load */
:root.anim .intro { animation: rise 1.25s var(--ease) both; animation-delay: calc(.1s + var(--d, 0) * .1s); }
:root.anim .orbit.intro { animation-name: rise-soft; animation-duration: 1.8s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(8px); } }
@keyframes rise-soft { from { opacity: 0; transform: translateY(40px) scale(.97); } }

/* ---------- Ribbon ---------- */
.ribbon { overflow: hidden; padding: clamp(26px, 3.4vw, 40px) 0; border-block: 1px solid var(--line); background: var(--ink); }
.ribbon-track { display: flex; width: max-content; align-items: center; gap: clamp(36px, 4.4vw, 64px); padding-right: clamp(36px, 4.4vw, 64px); will-change: transform;
  font-weight: 600; font-size: clamp(30px, 4.2vw, 62px); line-height: 1.1; letter-spacing: -.045em; white-space: nowrap; }
.rb { display: inline-flex; align-items: center; gap: .32em; }
.rb.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; color: var(--muted); font-size: 1.06em; }
.rb i { --c: var(--lime); width: .17em; height: .17em; border-radius: .04em; background: var(--c); margin-right: .22em;
  box-shadow: .22em 0 0 color-mix(in srgb, var(--c) 40%, transparent), 0 .22em 0 color-mix(in srgb, var(--c) 40%, transparent), .22em .22em 0 var(--c); transform: translateY(-.14em); }
.rb i.k-identity { --c: var(--sky); } .rb i.k-account { --c: var(--lilac); }

/* ---------- Shared section type ---------- */
.kicker { display: flex; align-items: center; gap: 12px; margin: 0; font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.kicker span { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--lime); letter-spacing: .06em; }
.paper .kicker { color: var(--p-faint); }
.paper .kicker span { color: var(--p-ink); border-color: var(--p-line); background: var(--paper-2); }
.display { margin: 22px 0 0; font-weight: 640; font-size: clamp(40px, 5.4vw, 84px); line-height: 1; letter-spacing: -.052em; text-wrap: balance; }
.display em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; font-size: 1.04em; }
.night .display em { background: linear-gradient(100deg, var(--lime-hi), var(--lime) 40%, var(--sky)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .06em; }
.paper .display em { background: linear-gradient(transparent 64%, color-mix(in srgb, var(--lime) 85%, transparent) 64%, color-mix(in srgb, var(--lime) 85%, transparent) 90%, transparent 90%); padding: 0 .06em; margin: 0 -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sec-lede { max-width: 58ch; margin: 26px 0 0; font-size: clamp(17px, 1.3vw, 19px); color: var(--p-muted); text-wrap: pretty; }
.night .sec-lede { color: var(--muted); }

/* Reveal: once, on entering view */
:root.anim .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.15s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
:root.anim .reveal.seen { opacity: 1; transform: none; }
:root.anim .display.reveal { opacity: 1; transform: none; }
:root.anim .display .w { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
:root.anim .display.seen .w { opacity: 1; transform: none; filter: none; }

/* ---------- Paper: questions ---------- */
.paper { background: var(--paper); color: var(--p-ink); }
.questions { position: relative; padding: clamp(96px, 12vw, 176px) 0 clamp(96px, 12vw, 168px); }
.questions .display { max-width: none; font-size: clamp(40px, 5vw, 78px); }
.display em { white-space: nowrap; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: clamp(48px, 6vw, 84px); }
.tile {
  position: relative; isolation: isolate; overflow: hidden; grid-column: span 3; display: flex; flex-direction: column;
  border-radius: 28px; color: var(--text);
  background: radial-gradient(120% 90% at 0% 0%, var(--ink-3) 0%, transparent 55%), linear-gradient(180deg, var(--ink-2), var(--ink-1));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -40px color-mix(in srgb, var(--p-ink) 55%, transparent), 0 2px 6px color-mix(in srgb, var(--p-ink) 8%, transparent);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease), box-shadow .5s;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--lime) calc(12% * var(--glow)), transparent), transparent 65%); }
.tile:hover::before { opacity: 1; }
.tile-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; min-height: 400px; }
.tile-art { position: relative; flex: 1; min-height: 220px; display: grid; place-items: center; padding: 26px 26px 0; }
.tile-wide .tile-art { padding: 30px 10px 30px 30px; }
.tile-art > svg { width: 100%; height: auto; overflow: visible; }
.art-routes > svg { max-width: 380px; }
.tile-copy { padding: 26px 34px 36px; }
.tile-wide .tile-copy { padding: 40px 56px 40px 20px; }
.tag { margin: 0; font: 400 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.t-risk { color: var(--coral); } .t-identity { color: var(--sky); } .t-device { color: var(--lime); }
.tile h3 { margin: 16px 0 12px; font-weight: 620; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.tile p:not(.tag) { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 46ch; }
.tile-art text { font-family: var(--sans); font-weight: 600; font-size: 13px; fill: var(--text); letter-spacing: -.01em; }

/* Blast art */
.bl-ring { fill: none; stroke: color-mix(in srgb, var(--text) 16%, transparent); stroke-dasharray: 2 6; }
.bl-wave { fill: none; stroke: var(--coral); stroke-width: 1.4; opacity: 0; transform-box: view-box; transform-origin: 280px 160px; }
:root.moving .tile.seen .bl-wave { animation: wave 3.6s cubic-bezier(.2, .7, .3, 1) infinite; }
.bl-wave.w2 { animation-delay: 1.2s !important; } .bl-wave.w3 { animation-delay: 2.4s !important; }
@keyframes wave { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(2.9); opacity: 0; } }
.bl-link { fill: none; stroke-width: 1.8; stroke-linecap: round; }
.bl-link.red { stroke: var(--coral); } .bl-link.amber { stroke: var(--amber); stroke-dasharray: 6 6; }
:root.anim .bl-link.red { stroke-dasharray: 240; stroke-dashoffset: 240; transition: stroke-dashoffset 1.4s var(--ease) .3s; }
:root.anim .tile.seen .bl-link.red { stroke-dashoffset: 0; }
.bl-core { fill: var(--coral); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--coral) calc(90% * var(--glow)), transparent)); }
.bl-node circle { fill: var(--coral); }
.bl-node.amber circle { fill: var(--amber); }
.bl-label { font-family: var(--mono) !important; font-weight: 400 !important; font-size: 11px !important; letter-spacing: .12em; fill: var(--coral) !important; text-anchor: middle; text-transform: uppercase; }

/* Routes art */
.rt-line { fill: none; stroke: var(--sky); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .85; }
.rt-line.alt { stroke: var(--lilac); }
:root.moving .tile.seen .rt-line { animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.rt-src rect { fill: color-mix(in srgb, var(--sky) 12%, transparent); stroke: color-mix(in srgb, var(--sky) 55%, transparent); }
.rt-src.alt rect { fill: color-mix(in srgb, var(--lilac) 12%, transparent); stroke: color-mix(in srgb, var(--lilac) 55%, transparent); }
.rt-src text { text-anchor: middle; font-size: 12.5px !important; }
.rt-dst circle { fill: var(--lilac); }
.rt-dst text { font-size: 12.5px !important; }

/* Sessions art */
.art-sessions { align-content: center; justify-items: stretch; }
.ss-device { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; padding: 0 4px 12px; border-bottom: 1px solid var(--line); }
.ss-glyph { width: 22px; height: 22px; fill: none; stroke: var(--lime); stroke-width: 1.5; }
.ss-list { list-style: none; margin: 0; padding: 4px 0 0; width: 100%; }
.ss-list li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; font-size: 14.5px; font-weight: 520; border-bottom: 1px solid var(--line); }
.ss-list li:last-child { border-bottom: 0; }
.ss-list li i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) calc(14% * var(--glow)), transparent); }
.ss-list li span { margin-left: auto; font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
:root.moving .tile.seen .ss-list li i { animation: blink 4s var(--ease-io) infinite; animation-delay: calc(var(--i) * .5s); }
@keyframes blink { 0%, 70%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) calc(14% * var(--glow)), transparent); } 80% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--lime) calc(0% * var(--glow)), transparent), 0 0 14px color-mix(in srgb, var(--lime) calc(90% * var(--glow)), transparent); } }

/* ---------- Night: privacy ---------- */
.night { background: var(--ink); color: var(--text); }
.privacy { position: relative; overflow: clip; padding: clamp(110px, 13vw, 200px) 0; }
.privacy::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(48% 60% at 24% 50%, color-mix(in srgb, var(--sky) calc(10% * var(--glow)), transparent), transparent 70%), radial-gradient(40% 50% at 80% 30%, color-mix(in srgb, var(--lilac) calc(7% * var(--glow)), transparent), transparent 70%); }
.privacy-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.privacy .display { max-width: 18ch; }
.privacy-head { margin-bottom: clamp(24px, 4vw, 56px); }
.sec-head.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.sec-head.split .kicker, .sec-head.split .display { grid-column: 1; }
.sec-head.split .sec-lede { grid-column: 2; grid-row: 2; margin: 0 0 .4em; }
@media (max-width: 900px) { .sec-head.split { display: block; } .sec-head.split .sec-lede { margin-top: 26px; } }

.sculpt-stage { position: relative; aspect-ratio: 1 / .82; perspective: 1300px; }
.sculpt-glow { position: absolute; inset: 6% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) calc(22% * var(--glow)), transparent), color-mix(in srgb, var(--sky) calc(10% * var(--glow)), transparent) 50%, transparent 75%); }
.sculpt-floor { position: absolute; left: 12%; right: 12%; bottom: 7%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.sculpt { position: absolute; left: 5%; right: 5%; top: 50%; aspect-ratio: 23 / 11; transform: translateY(-50%); transform-style: preserve-3d; }
:root.moving .sculpt { animation: sway 9s var(--ease-io) infinite alternate; }
@keyframes sway { from { transform: translateY(-52%) rotateY(-7deg) rotateZ(-1deg); } to { transform: translateY(-47%) rotateY(7deg) rotateZ(1deg); } }
.sculpt-pose { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--px, 14deg)) rotateY(var(--py, -18deg)); transition: transform 1.4s var(--ease); }
.sc { --k: var(--lime); --a: color-mix(in srgb, var(--k) 45%, #fff); --b: var(--k); --c: color-mix(in srgb, var(--k) 68%, #000); --z: 0px; position: absolute; display: block; overflow: hidden;
  transform: translateZ(var(--z));
  background: linear-gradient(160deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 34%), linear-gradient(180deg, var(--a), var(--b) 50%, var(--c));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -10px 24px rgba(0, 0, 0, .16), 0 40px 70px -26px color-mix(in srgb, var(--b) 55%, transparent); }
.sc::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 46%; transform: translateX(-160%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); }
:root.moving .sc::after { animation: sheen 7s var(--ease-io) infinite; animation-delay: var(--sd, 0s); }
@keyframes sheen { 0%, 62% { transform: translateX(-160%) skewX(-18deg); } 88%, 100% { transform: translateX(360%) skewX(-18deg); } }
.c1 { left: 2.17%; top: 4.55%; width: 18.26%; height: 38.18%; border-radius: 20%; --z: 46px; }
.c2 { left: 23.91%; top: 4.55%; width: 18.26%; height: 38.18%; border-radius: 20%; --z: 22px; --k: var(--sky); --sd: .15s; }
.c3 { left: 2.17%; top: 50%; width: 18.26%; height: 38.18%; border-radius: 20%; --z: 22px; --k: var(--lilac); --sd: .05s; }
.c4 { left: 23.91%; top: 50%; width: 18.26%; height: 38.18%; border-radius: 20%; --z: 46px; --sd: .2s; }
.shaft { left: 45.65%; top: 30.91%; width: 52.17%; height: 30.91%; border-radius: 1.9% / 30%; --z: 10px; --sd: .4s; }
.t1 { left: 68.26%; top: 56.36%; width: 9.57%; height: 27.27%; border-radius: 0 0 22% 22% / 0 0 18% 18%; --z: 4px; --sd: .55s; }
.t2 { left: 86.52%; top: 56.36%; width: 11.3%; height: 40%; border-radius: 0 0 22% 22% / 0 0 14% 14%; --z: 4px; --sd: .7s; }

.principles { list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; }
.principles li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--line-2); }
.principles li:last-child { border-bottom: 1px solid var(--line-2); }
.pr-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font: 400 12px/1 var(--mono); color: var(--lime); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.principles h3 { margin: 4px 0 6px; font-size: 20px; font-weight: 620; letter-spacing: -.025em; }
.principles p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Paper: status ---------- */
.status { padding: clamp(96px, 11vw, 160px) 0; }
.status-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 110px); align-items: end; }
.status .display { max-width: 9ch; }
.board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--p-ink); }
.board li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 2px; border-bottom: 1px solid var(--p-line); }
.bd-name { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.03em; }
.bd-state { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; font: 400 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--p-muted); background: var(--paper-2); border: 1px solid var(--p-line); white-space: nowrap; }
.bd-state i { position: relative; width: 8px; height: 8px; border-radius: 50%; }
.s-live { color: var(--p-ink); } .s-live i { background: var(--p-accent); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--p-accent) 60%, transparent); }
.s-live i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--p-accent); opacity: 0; }
:root.moving .s-live i::after { animation: ping 2.4s var(--ease) infinite; }
.s-prog { color: var(--p-muted); } .s-prog i { background: var(--sky); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--sky) 60%, var(--p-ink)); }
.s-not i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--p-faint); }

/* ---------- Closing door ---------- */
.closing { padding: clamp(100px, 12vw, 170px) var(--gut) clamp(80px, 9vw, 130px); }
.door { position: relative; isolation: isolate; overflow: hidden; max-width: 1000px; margin: 0 auto; text-align: center;
  border-radius: 999px 999px 36px 36px; border: 1px solid var(--line-2); background: var(--ink-1);
  padding: clamp(150px, 17vw, 240px) clamp(20px, 5vw, 64px) clamp(64px, 8vw, 100px);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--lime-hi) calc(35% * var(--glow)), transparent), inset 0 0 80px -20px color-mix(in srgb, var(--lime) calc(18% * var(--glow)), transparent), 0 60px 120px -60px color-mix(in srgb, var(--sky) calc(35% * var(--glow)), transparent); }
.door-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dl-spin { position: absolute; left: 50%; top: -30%; width: 130%; aspect-ratio: 1; margin-left: -65%; border-radius: 50%; opacity: .34; will-change: transform;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--lime) calc(70% * var(--glow)), transparent), color-mix(in srgb, var(--sky) calc(65% * var(--glow)), transparent) 30%, color-mix(in srgb, var(--lilac) calc(70% * var(--glow)), transparent) 55%, color-mix(in srgb, var(--sky) calc(50% * var(--glow)), transparent) 78%, color-mix(in srgb, var(--lime) calc(70% * var(--glow)), transparent)); }
:root.moving .dl-spin { animation: spin 48s linear infinite; }
.door-light::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(46% 38% at 50% 0%, color-mix(in srgb, var(--lime-hi) calc(30% * var(--glow)), transparent), transparent 75%), radial-gradient(color-mix(in srgb, var(--text) 20%, transparent) 1px, transparent 1.4px) 50% 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0,0,0,.5) 45%, transparent 75%); mask-image: linear-gradient(#000 0%, rgba(0,0,0,.5) 45%, transparent 75%); }
.door-light::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, color-mix(in srgb, var(--ink-1) 10%, transparent) 0%, color-mix(in srgb, var(--ink-1) 70%, transparent) 36%, var(--ink-1) 70%); }
.dl-follow { position: absolute; left: 0; top: 0; z-index: 2; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lime-hi) calc(16% * var(--glow)), transparent), transparent); transform: translate(min(500px, 45vw), 140px); transition: transform 1.2s var(--ease); }
.door-mark { width: 80px; height: 40px; fill: var(--lime); filter: drop-shadow(0 0 22px color-mix(in srgb, var(--lime) calc(50% * var(--glow)), transparent)); }
.door .display { margin: 26px auto 0; max-width: 13ch; }
.door p { color: var(--muted); max-width: 44ch; margin: 22px auto 0; font-size: 17.5px; }
.btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px; }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: default; }
.btn-ghost::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--faint); }

/* ---------- Footer & dock ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 110px; color: var(--faint); font-size: 14px; }
.foot-row { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.foot p { margin: 0; flex: 1; min-width: 240px; }
.foot a { color: var(--muted); text-underline-offset: 3px; }
.brand-sm { color: var(--text); font-size: 15px; }
.brand-sm .brand-mark { width: 24px; height: 12px; }

.dock { position: fixed; z-index: 95; right: 18px; bottom: 18px; display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink-1) 78%, transparent); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); font-size: 13px; }
.dock-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; border: 0; background: none; color: var(--muted); text-decoration: none; cursor: pointer; font-weight: 520; }
.dock-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.dock-ico { position: relative; width: 9px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.dock-btn[aria-pressed="true"] { color: var(--lime-ink); background: var(--lime); }
.dock-btn[aria-pressed="true"] .dock-ico { border: 0; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .tile-wide { grid-template-columns: 1fr; }
  .tile-wide .tile-copy { padding: 8px 34px 36px; }
  .privacy-grid, .status-grid { grid-template-columns: 1fr; }
  .sculpt-stage { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 900px) {
  .hero-title { white-space: normal; }
  .hero-title .ln { display: block; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-status { margin-left: auto; }
  .bento { grid-template-columns: 1fr; }
  .tile { grid-column: auto; border-radius: 24px; }
  .tile-wide .tile-art { padding: 18px 8px 0; }
  .tile-copy, .tile-wide .tile-copy { padding: 20px 24px 28px; }
  .orbit-nodes .node { font-size: 10.5px; padding: 5px 8px; gap: 0; letter-spacing: 0; }
  .orbit-nodes .node > i { display: none; }
  .orbit-tilt { height: 380px; }
  .orbit { margin-top: 0; }
  .orbit-hub { width: 62px; }
  .legend { gap: 8px 14px; font-size: 10.5px; }
  .legend .lg-sep { display: none; }
  .art-blast text { font-size: 21px; }
  .art-blast .bl-label { font-size: 17px !important; }
  .board li { padding: 18px 0; }
  .door { border-radius: 999px 999px 24px 24px; }
}
@media (max-width: 420px) {
  .eyebrow { font-size: 12px; padding: 6px 12px 6px 10px; }
  .try-label { width: 100%; margin: 0 0 4px; }
  .bd-state { padding: 7px 10px; font-size: 10.5px; }
  .dock { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .orbit-nodes .node { opacity: 1; }
}

/* ---------- Refined palettes: less plastic ----------
   Everything except the original lime trades gradient text, glossy highlights and
   sweeping sheens for flat ink, matte material and a lighter display weight. */
:root:not([data-palette="lime"]) .slot-word,
:root:not([data-palette="lime"]) .slot-word[data-kind] { background: none; -webkit-text-fill-color: currentColor; color: var(--lime); }
:root:not([data-palette="lime"]) .slot-word[data-kind="identity"] { color: var(--sky); }
:root:not([data-palette="lime"]) .slot-word[data-kind="alert"] { color: var(--coral); }
:root:not([data-palette="lime"]) .night .display em { background: none; -webkit-text-fill-color: currentColor; color: var(--lime); }
:root:not([data-palette="lime"]) .paper .display em { background: none; color: var(--p-accent); padding: 0; margin: 0; }
:root:not([data-palette="lime"]) .hero-title,
:root:not([data-palette="lime"]) .display { font-weight: 540; letter-spacing: -.045em; }
:root:not([data-palette="lime"]) .sc { background: linear-gradient(180deg, color-mix(in srgb, var(--k) 88%, #fff), var(--k) 40%, color-mix(in srgb, var(--k) 78%, #000));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent), inset 0 -8px 18px rgba(0, 0, 0, .14), 0 34px 60px -30px rgba(0, 0, 0, .6); }
:root:not([data-palette="lime"]) .sc::after { display: none; }
:root:not([data-palette="lime"]) .nav-status i,
:root:not([data-palette="lime"]) .ss-list li i { box-shadow: none; }
:root[data-palette="porcelain"] { color-scheme: light; }
:root[data-palette="porcelain"] .orbit-floor::before { opacity: .9; }

.dock .lab-palette { font: inherit; font-weight: 520; color: var(--text); background: transparent; border: 0; border-radius: 999px; padding: 8px 10px; cursor: pointer; max-width: 44vw; }
.dock .lab-palette:hover { background: rgba(255, 255, 255, .06); }
.dock .lab-palette option { color: #111; background: #fff; }

/* Keytrix composed home: the Fable orbit page plus the composed page's matrix key,
   product window and matrix separators. Loaded after fable.css; every rule here is
   scoped to a section the orbit page does not have. */
:root { --font-mono: var(--mono); --font-body: var(--sans); }
html { background: var(--ink); }
::selection { background: var(--lime); color: var(--lime-ink); }

/* ---------- 01 The key: the matrix assembles into the key ---------- */
.keyfield { position: relative; isolation: isolate; overflow: hidden; min-height: max(640px, 92svh); display: grid; align-items: center; padding: clamp(90px, 10vw, 140px) 0; }
.keyfield .field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.keyfield::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--ink)); pointer-events: none; z-index: 0; }
.keyfield-copy { position: relative; z-index: 2; width: 100%; }
.keyfield-copy > * { max-width: 520px; }
.keyfield .display { max-width: 9ch; }
.keyfield .chips { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.keyfield .chip { position: absolute; left: 0; top: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--ink-1) 88%, transparent);
  font-size: 13.5px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(var(--x), var(--y)) translate(-50%, -50%) scale(.9);
  transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .4s, box-shadow .4s; }
.keyfield .chip.on { opacity: 1; transform: translate(var(--x), var(--y)) translate(-50%, -50%); }
.keyfield .chip.lit { border-color: var(--lime); box-shadow: 0 0 28px -6px color-mix(in srgb, var(--lime) calc(60% * var(--glow)), transparent); }
@media (max-width: 900px) {
  .keyfield { align-items: start; padding-top: calc(104px + 30vw + 150px); min-height: 0; }
  .keyfield .display { max-width: none; }
}

/* Matrix separators between sections. */
.ripple { display: block; width: 100%; height: 72px; background: var(--ink); }

/* ---------- 03 Up close: the flat graph in an app-like window ---------- */
.closer { padding: clamp(96px, 12vw, 168px) 0 clamp(80px, 9vw, 130px); }
.window { margin-top: clamp(40px, 5vw, 64px); border-radius: 28px; border: 1px solid var(--line-2); overflow: hidden;
  background: linear-gradient(180deg, var(--ink-1), var(--ink));
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .7), inset 0 1px 0 color-mix(in srgb, var(--text) 7%, transparent); }
.window-bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); font: 400 12.5px/1.4 var(--mono); letter-spacing: .04em; color: var(--faint); }
.dots { display: inline-flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.legend-mini { margin-left: auto; display: flex; gap: 14px; }
.legend-mini span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.legend-mini .x::before { background: var(--coral); } .legend-mini .am::before { background: var(--amber); }
.window-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 600px; }
.panel { padding: 28px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.panel-label { margin: 0; font: 400 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.controls { display: grid; gap: 8px; }
.controls button { font: inherit; font-size: 15px; font-weight: 600; text-align: left; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--ink) 60%, transparent); color: var(--text); cursor: pointer; transition: border-color .25s, background-color .25s, transform .35s var(--ease); }
.controls button:hover { border-color: color-mix(in srgb, var(--coral) 70%, transparent); transform: translateX(3px); }
.controls button[aria-pressed="true"] { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 14%, transparent); }
.live { min-height: 7.5em; margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.panel-legend { margin: auto 0 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--faint); }
.panel-legend i { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--lime); vertical-align: middle; margin-right: 8px; }
.panel-legend .f i { border-top: 2px dotted var(--sky); } .panel-legend .r i { border-top: 2px dashed var(--lilac); }
.stage { position: relative; min-height: 600px; }
.graph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph-nodes { position: absolute; inset: 0; }
.stage .node { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--ink-1) 92%, transparent); color: var(--text); font: 600 13px/1 var(--sans);
  white-space: nowrap; cursor: pointer; will-change: transform; transition: border-color .25s, background-color .25s, opacity .35s, box-shadow .3s; }
.stage .node small { font: 400 10.5px/1 var(--mono); color: var(--faint); }
.node-glyph { display: grid; grid-template-columns: 5px 5px; gap: 2px; }
.node-glyph i { width: 5px; height: 5px; border-radius: 1.5px; background: var(--faint); }
.node-device .node-glyph i:nth-child(1), .node-device .node-glyph i:nth-child(4) { background: var(--lime); }
.node-identity .node-glyph i:nth-child(2), .node-identity .node-glyph i:nth-child(3) { background: var(--sky); }
.node-account .node-glyph i:nth-child(odd) { background: var(--lilac); }
.stage .node[data-state="on"] { border-color: color-mix(in srgb, var(--lime) 70%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--lime) calc(25% * var(--glow)), transparent); }
.stage .node[data-state="dim"] { opacity: .3; }
.stage .node[data-state="lost"] { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 22%, var(--ink-1)); text-decoration: line-through; }
.stage .node[data-state="red"] { border-color: var(--coral); box-shadow: 0 0 26px color-mix(in srgb, var(--coral) calc(35% * var(--glow)), transparent); }
.stage .node[data-state="red"] .node-glyph i { background: var(--coral); }
.stage .node[data-state="amber"] { border-color: var(--amber); }
.stage .node[data-state="amber"] .node-glyph i { background: var(--amber); }
@media (max-width: 900px) {
  .window-body { grid-template-columns: 1fr; }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .controls button { text-align: center; padding: 10px 8px; font-size: 14px; }
  .live { min-height: 4.5em; } .panel-legend, .legend-mini { display: none; }
  .stage { min-height: 520px; }
  .stage .node { font-size: 11.5px; padding: 5px 9px 5px 7px; gap: 6px; } .stage .node small { display: none; }
}

/* ---------- Style switcher ---------- */
.style-swatches { display: flex; align-items: center; gap: 4px; }
.style-swatch { position: relative; display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 5px; border-radius: 999px; font: inherit; }
.sw-dot { width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--sw-bg) 0 50%, var(--sw-a) 50% 78%, var(--sw-b) 78%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent); transition: transform .35s var(--ease), box-shadow .25s; }
.style-swatch:hover .sw-dot { transform: scale(1.1); }
.style-swatch[aria-checked="true"] .sw-dot { box-shadow: 0 0 0 2px var(--ink-1), 0 0 0 3.5px var(--text); }
.sw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.style-swatches.is-cards { flex-wrap: wrap; gap: 10px; }
.is-cards .style-swatch { padding: 9px 16px 9px 9px; border: 1px solid var(--line); font-size: 14px; font-weight: 560; }
.is-cards .style-swatch:hover { color: var(--text); border-color: var(--line-2); }
.is-cards .style-swatch[aria-checked="true"] { color: var(--text); border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.is-cards .style-swatch[aria-checked="true"] .sw-dot { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent); }
.foot-styles { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.foot-label { margin: 0; font: 400 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 560px) {
  .dock .style-swatch { padding: 3px; }
  .dock .sw-dot { width: 17px; height: 17px; }
  .dock .dock-btn [data-motion-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- Logo: Keyhole Matrix (square) ---------- */
.brand-mark { width: 22px; height: 22px; }
.brand-sm .brand-mark { width: 18px; height: 18px; }
.orbit-hub { width: clamp(60px, 6.6vw, 104px); }

/* ---------- Emblems: the other mark drafts, used as ornaments ---------- */
.emblem { --e-a: var(--lime); --e-b: var(--sky); --e-t: var(--text); display: inline-block; flex: none; width: 34px; height: 34px; }
.paper .emblem { --e-a: var(--p-accent); --e-t: var(--p-ink); }
.kicker .emblem { min-width: 0; height: 34px; padding: 0; border: 0; border-radius: 0; background: none; margin-right: 4px; }
.emblem svg { display: block; width: 100%; height: 100%; overflow: visible; }
.emblem .a { fill: var(--e-a); } .emblem .b { fill: var(--e-b); } .emblem .t { fill: var(--e-t); }
.emblem .s { fill: none; stroke: var(--e-a); } .emblem .st { fill: none; stroke: var(--e-t); }
.emblem-sm { width: 22px; height: 22px; margin-right: 2px; }
.emblem-door { width: 84px; height: 84px; }
.emblem-door .a { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--lime) calc(50% * var(--glow)), transparent)); }
.emblem .cell { transform-box: fill-box; transform-origin: center; }
:root.moving .emblem.play .cell { animation: em-pop .7s var(--ease) both; animation-delay: calc(var(--k) * 70ms); }
:root.moving .emblem.play .grow { animation: em-grow .9s var(--ease) both; animation-delay: calc(var(--k) * 90ms + .2s); transform-box: fill-box; transform-origin: left center; }
:root.moving .emblem.play .draw { stroke-dasharray: 40; animation: em-draw 1s var(--ease) both; animation-delay: calc(var(--k) * 120ms + .15s); }
:root.moving .emblem.play .door { animation: em-door 1.4s var(--ease) both .2s; transform-box: view-box; transform-origin: 5px 12px; }
:root.moving .emblem.play .glow { animation: em-fade 1.4s var(--ease) both .3s; }
:root.moving .emblem.play .open-up { animation: em-up .8s var(--ease) both .1s; }
:root.moving .emblem.play .open-down { animation: em-down .8s var(--ease) both .1s; }
:root.moving .emblem.play .fill-down { animation: em-fill .7s var(--ease) both .55s; transform-box: fill-box; transform-origin: top; }
:root.moving .emblem.play .swing { animation: em-swing 1.3s var(--ease) both .15s; transform-box: view-box; transform-origin: 5px 16px; }
:root.moving .emblem.play .spin { animation: em-spin 1.2s var(--ease) both; transform-box: fill-box; transform-origin: center; }
@keyframes em-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes em-grow { from { transform: scaleX(0); } }
@keyframes em-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes em-door { from { transform: scaleX(2.1) skewY(-11deg); } }
@keyframes em-fade { from { opacity: 0; } }
@keyframes em-up { from { transform: translateY(3px); } }
@keyframes em-down { from { transform: translateY(-3px); } }
@keyframes em-fill { from { transform: scaleY(0); } }
@keyframes em-swing { from { transform: rotate(50deg); opacity: 0; } }
@keyframes em-spin { from { transform: rotate(-90deg) scale(.6); opacity: 0; } }

/* Keytrix site: the parts the composed home did not have. Header controls, the app
   screens, features, security, AI agents, the status table, FAQ, footer, press and 404,
   all in the composed home's language (tokens.css + base.css + home.css). */

/* Heading-only CJK serif subsets (tools/fonts.py): headline accents and the hero's
   rotating word. Only the face for the page's language is ever requested. */
@font-face { font-family: "Keytrix Serif JP"; src: url("/assets/fonts/noto-serif-jp-display.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Keytrix Serif TC"; src: url("/assets/fonts/noto-serif-tc-display.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Keytrix Serif SC"; src: url("/assets/fonts/noto-serif-sc-display.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
:lang(ja) { --sans: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif; }
:lang(zh-Hant) { --sans: "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
:lang(zh-Hans) { --sans: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }

:root { --radius: 24px; }
.btn-primary { color: var(--lime-ink); background: var(--lime); text-decoration: none; cursor: pointer; border: 0; }
.btn-primary:hover { background: color-mix(in srgb, var(--lime) 88%, var(--text)); }
.btn-ghost { text-decoration: none; }
a.btn-ghost, button.btn-ghost { cursor: pointer; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { margin: 0; padding: 9px 16px; font-size: 14px; }

/* ---------- Header controls ---------- */
.nav { gap: 22px; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--text); }
.lang summary svg { width: 15px; height: 15px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; margin: 0; padding: 6px; list-style: none; min-width: 168px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--ink-1); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.lang li a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 14.5px; }
.lang li a:hover { background: var(--ink-2); color: var(--text); }
.lang li a[aria-current="true"] { color: var(--lime); }
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--text); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .i-sun { display: none; }
:root[data-palette="light"] .theme-toggle .i-sun { display: block; }
:root[data-palette="light"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--text); cursor: pointer; place-items: center; }
.menu-toggle svg { width: 18px; height: 18px; }
.nav.compact { width: min(1000px, calc(100% - 28px)); }
:root[data-palette="light"] .nav.compact { background: color-mix(in srgb, var(--bg2) 82%, transparent); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .35); }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 0; padding: 10px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--ink-1); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
  .nav-links.open a { padding: 12px 10px; font-size: 16px; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
  .nav-status { display: none; }
}
@media (max-width: 520px) {
  .lang summary span { display: none; }
  .nav-actions .btn-contact { display: none; }
}

/* ---------- Section shells ---------- */
.section { padding: clamp(96px, 12vw, 168px) 0; }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .sec-lede { max-width: 60ch; }
.note { margin: 18px 0 0; color: var(--faint); font-size: 13.5px; }
.paper .note { color: var(--p-faint); }

/* ---------- Inside: the app's own screens ---------- */
.inside-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.tabs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.tab { display: block; width: 100%; text-align: left; padding: 18px 6px 18px 52px; position: relative; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; cursor: pointer; }
.tab .tab-n { position: absolute; left: 6px; top: 22px; font: 400 12px/1 var(--mono); color: var(--faint); }
.tab h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.025em; color: var(--faint); transition: color .3s; }
.tab p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; display: none; }
.tab[aria-selected="true"] h3 { color: var(--text); }
.tab[aria-selected="true"] p { display: block; }
.tab[aria-selected="true"] .tab-n { color: var(--lime); }
.tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--lime); }
.screen { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #202124; box-shadow: 0 50px 110px -50px rgba(0, 0, 0, .7); }
.screen-bar { display: flex; gap: 7px; padding: 12px 16px; background: color-mix(in srgb, var(--ink-1) 90%, #000); border-bottom: 1px solid var(--line); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shots { position: relative; aspect-ratio: 1440 / 680; }
.shot { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.shot.active { opacity: 1; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@media (max-width: 960px) { .inside-grid { grid-template-columns: 1fr; } }

/* ---------- Features: an editorial index ---------- */
.f-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line-2); }
.f-row { display: grid; grid-template-columns: 30px 44px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.f-n { grid-row: span 2; padding-top: 6px; font: 400 12px/1 var(--mono); color: var(--faint); }
.f-study { grid-row: span 2; width: 38px; height: 38px; fill: none; stroke: var(--lime); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.f-row h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.f-row p { margin: 0; color: var(--muted); font-size: 16px; max-width: 46ch; }
.paper .f-row p { color: var(--p-muted); }
.paper .f-index { border-top-color: var(--p-line); }
.paper .f-row { border-bottom-color: var(--p-line); }
.paper .f-study { stroke: var(--p-accent); }
@media (max-width: 860px) { .f-index { grid-template-columns: 1fr; } }

/* ---------- Security ---------- */
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(32px, 4vw, 48px); }
.panel-card { border-radius: var(--radius); border: 1px solid var(--line-2); background: color-mix(in srgb, var(--ink-1) 70%, transparent); padding: clamp(24px, 3vw, 36px); }
.panel-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.panel-card p { margin: 0; color: var(--muted); font-size: 16px; }
.panel-card + .panel-card { margin-top: 18px; }
.pipeline { list-style: none; margin: 0; padding: 0; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--lime), color-mix(in srgb, var(--lime) 10%, transparent)); }
.pipeline li { position: relative; padding: 0 0 22px 44px; }
.pipeline li:last-child { padding-bottom: 0; }
.pipeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--lime); background: var(--ink-1); }
.pipeline li:last-child::before { background: var(--lime); }
.pipeline b { display: block; font: 400 14.5px/1.5 var(--mono); color: var(--lime); }
.pipeline span { color: var(--muted); font-size: 15.5px; }
.limits { border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.limits h3 { color: var(--amber); }
.limits h3 svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; }
.limits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.limits li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.limits li::before { content: ""; position: absolute; left: 1px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); }
.limits strong, .checks code, .faq code { color: var(--text); }
@media (max-width: 960px) { .sec-grid { grid-template-columns: 1fr; } }

/* ---------- AI agents ---------- */
.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--p-muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 5px; background: var(--p-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' rx='5'/%3E%3C/svg%3E"); }
.checks li::after { content: ""; position: absolute; left: 5px; top: calc(.3em + 4px); width: 8px; height: 5px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-45deg); }
.paper code { font: 400 .9em var(--mono); padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--p-ink) 7%, transparent); color: var(--p-ink); }
.honest { margin: 24px 0 0; padding: 14px 18px; border-left: 2px solid var(--amber); background: color-mix(in srgb, var(--amber) 9%, transparent); color: var(--p-muted); font-size: 15px; }
.agent-visual { display: grid; gap: 18px; }
.membrane { margin: 0; padding: 22px; border-radius: 20px; border: 1px solid var(--p-line); background: var(--paper-2); }
.m-lane { display: grid; grid-template-columns: 1.3fr 22px .8fr 1fr; align-items: center; gap: 10px; padding-top: 30px; }
.m-node { display: grid; gap: 8px; justify-items: start; padding: 14px; border-radius: 12px; border: 1px solid var(--p-line); background: var(--paper); min-width: 0; }
.m-node b { font-size: 14px; font-weight: 600; }
.m-vault { justify-items: center; background: var(--ink); color: var(--text); border-color: var(--ink); }
.m-vault svg { width: 34px; height: 34px; }
.m-chip { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 11.5px/1.5 var(--mono); padding: 3px 8px; border-radius: 7px; background: var(--ink); color: var(--amber); }
.m-val { color: var(--lime); letter-spacing: .1em; }
.m-wall { position: relative; align-self: stretch; }
.m-wall::before { content: ""; position: absolute; left: 50%; top: -6px; bottom: -6px; width: 2px; transform: translateX(-50%); background: repeating-linear-gradient(var(--p-ink) 0 6px, transparent 6px 11px); opacity: .4; }
.m-bounce { position: absolute; left: 50%; top: -30px; transform: translateX(-12%); white-space: nowrap; font-size: 11.5px; color: var(--coral); background: var(--paper-2); padding: 2px 8px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--coral) 45%, transparent); text-decoration: line-through; }
.membrane figcaption { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 14px; color: var(--p-muted); }
.terminal { border-radius: 16px; background: #0b0a08; border: 1px solid rgba(0, 0, 0, .3); color: #ddd8cc; overflow: hidden; box-shadow: 0 40px 90px -45px rgba(0, 0, 0, .6); }
.terminal-bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c2a25; }
.terminal pre { margin: 0; padding: 18px 22px 22px; font: 400 13.5px/1.75 var(--mono); overflow-x: auto; }
.terminal .c { color: #807a6d; } .terminal .p { color: #d9b25f; } .terminal .r { color: #e3935a; } .terminal .o { color: #8fa1c4; }
@media (max-width: 960px) { .agents-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .m-lane { grid-template-columns: 1fr; } .m-wall { height: 26px; } .m-wall::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 2px; transform: none; background: repeating-linear-gradient(90deg, var(--p-ink) 0 6px, transparent 6px 11px); } .m-bounce { top: -4px; } }

/* ---------- Status ---------- */
.board .bd-detail { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 400; letter-spacing: 0; color: var(--p-muted); }
.s-wip i { background: var(--amber); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--amber) 60%, var(--p-ink)); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 34px 0 0; padding: 0; list-style: none; }
.facts li { display: grid; gap: 2px; }
.facts b { font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.facts span { color: var(--p-muted); font-size: 14px; max-width: 22ch; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 2px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { margin: 0 0 24px; padding: 0 2px; color: var(--muted); max-width: 64ch; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Closing doorway: pending contact ---------- */
.door .pending { display: inline-flex; margin: 32px 0 0; padding: 12px 20px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.foot-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--text); }
.foot-btn { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.foot-btn:hover { color: var(--text); }
.foot .privacy { margin-top: 6px; }
.foot { padding-bottom: 60px; }

/* ---------- Press ---------- */
.press-main { padding: clamp(130px, 14vw, 180px) 0 clamp(80px, 10vw, 120px); }
.press-main h1 { margin: 18px 0 0; font-size: clamp(40px, 6vw, 76px); font-weight: 560; letter-spacing: -.045em; line-height: 1; max-width: 16ch; }
.press-main .lede-l { max-width: 60ch; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.press-main .btn { margin-top: 28px; }
.press-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(48px, 6vw, 72px); }
.press-grid .wide { grid-column: 1 / -1; }
.press-grid .panel-card h3 { margin-bottom: 14px; }
.press-copy { margin: 0; color: var(--muted); font-size: 16.5px; }
.copy-row { display: flex; align-items: flex-start; gap: 14px; }
.copy-row .press-copy { flex: 1; }
.copy-btn { flex: none; border: 1px solid var(--line-2); background: none; color: var(--muted); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.copy-btn:hover { color: var(--text); }
.factsheet { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; }
.factsheet dt { color: var(--faint); font-size: 14.5px; }
.factsheet dd { margin: 0; font-size: 15.5px; }
.logo-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.logo-tile { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 22px; border-radius: 14px; border: 1px solid var(--line); }
.logo-tile.dark { background: #110f0b; } .logo-tile.light { background: #f7f5ef; } .logo-tile.lime { background: #11142a; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.downloads { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.downloads a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); text-decoration: none; font-size: 14.5px; }
.downloads svg { width: 16px; height: 16px; stroke: var(--lime); fill: none; stroke-width: 2; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.swatch { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.swatch i { display: block; height: 84px; box-shadow: inset 0 -1px 0 var(--line); }
.swatch div { padding: 12px 14px; font-size: 14px; }
.swatch b { display: block; }
.swatch code { font: 400 13px var(--mono); color: var(--lime); }
.swatch span { display: block; margin-top: 4px; color: var(--faint); font-size: 13px; }
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.shot-grid a { display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-2); }
.shot-grid img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .press-grid, .logo-tiles, .shot-grid { grid-template-columns: 1fr; } .factsheet { grid-template-columns: 1fr; gap: 2px; } .factsheet dd { margin-bottom: 10px; } }

/* ---------- 404 ---------- */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px var(--gut) 80px; }
.nf .nf-mark { width: 96px; height: 96px; margin: 0 auto 28px; }
.nf h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 560; letter-spacing: -.04em; }
.nf p { color: var(--muted); }
.nf .langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 22px; font-size: 14px; }

/* ---------- CJK and Spanish type ---------- */
:lang(ja) .hero-title, :lang(zh-Hant) .hero-title, :lang(zh-Hans) .hero-title { letter-spacing: -.02em; font-size: clamp(34px, 4.6vw, 72px); }
:lang(ja) .display, :lang(zh-Hant) .display, :lang(zh-Hans) .display { letter-spacing: -.01em; line-height: 1.18; }
:lang(ja) .display em, :lang(zh-Hant) .display em, :lang(zh-Hans) .display em,
:lang(ja) .slot-word, :lang(zh-Hant) .slot-word, :lang(zh-Hans) .slot-word { font-style: normal; font-family: var(--cjk-serif, serif); font-weight: 600; letter-spacing: 0; }
:lang(ja) { --cjk-serif: "Keytrix Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; }
:lang(zh-Hant) { --cjk-serif: "Keytrix Serif TC", "PingFang TC", "Noto Serif TC", serif; }
:lang(zh-Hans) { --cjk-serif: "Keytrix Serif SC", "Songti SC", "Noto Serif SC", serif; }
:lang(es) .hero-title { font-size: clamp(36px, 5vw, 80px); }

/* ---------- Hero note and blast glow ---------- */
.hero-note { position: relative; z-index: 3; margin: 14px auto 0; padding: 0 var(--gut); text-align: center; color: var(--faint); font-size: 13px; }
.hero-title { white-space: normal; text-wrap: balance; }
.bl-g0 { stop-color: var(--coral); stop-opacity: .38; } .bl-g1 { stop-color: var(--coral); stop-opacity: 0; }
.paper .kicker .emblem, .kicker .emblem { min-width: 0; height: 34px; padding: 0; border: 0; border-radius: 0; background: none; }
.questions .display { font-size: clamp(36px, 4.2vw, 66px); }
.agents-grid .display, .faq-grid .display, .status .display { font-size: clamp(34px, 3.8vw, 58px); }
.status .display { max-width: 12ch; }
/* Long accents (CJK phrases, Spanish clauses) must wrap. */
:lang(ja) .display em, :lang(zh-Hant) .display em, :lang(zh-Hans) .display em { white-space: normal; }
@media (max-width: 760px) { .display em { white-space: normal; } }
:lang(es) .display em { white-space: normal; }
.logo-tile { min-width: 0; } .logo-tile img { max-width: 100%; }
@media (max-width: 760px) { .logo-tiles, .press-grid, .shot-grid { grid-template-columns: minmax(0, 1fr); } }
