html { scroll-behavior: smooth; }
body { margin: 0; background: #0e1511; }
@media (prefers-color-scheme: light) { body { background: #f4f1e8; } }

/* ---------- tokens: the palette from the NeoAgent, NeoRouter and NeoRecall landing pages ---------- */
.nl {
  --bg: #0e1511; --bg-2: #0a0f0c; --surface: #171f1a; --surface-2: #1c261f;
  --ink: #ecefe5; --ink-2: #aeb7a6; --ink-3: #8b9584;
  --line: rgba(224,240,224,.09); --line-2: rgba(224,240,224,.16);
  --gold: #e1b052; --gold-2: #eac272; --gold-ink: #eac272; --gold-soft: rgba(225,176,82,.14);
  --btn: #e1b052; --btn-ink: #0e1511; --btn-hover: #eac272;
  --nav: rgba(10,15,12,.72);
  --c-agent: #84ba87; --c-router: #7a9bb8; --c-recall: #6fb0a4; --c-cloud: #a49dc9;
  --shadow: 0 48px 110px -40px rgba(0,0,0,.75), 0 20px 48px -28px rgba(0,0,0,.42);
  --orbit-rgb: 240,232,214; --dust-rgb: 234,194,114; --glow-rgb: 225,176,82;
  /* the app surface stays dark in both themes, as on the product pages */
  --a-bg: #0e1511; --a-card: #171f1a; --a-well: #1c261f; --a-ink: #ecefe5; --a-ink-2: #aeb7a6; --a-ink-3: #8b9584;
  --a-line: rgba(224,240,224,.09); --a-line-2: rgba(224,240,224,.16); --a-gold: #e1b052; --a-ok: #74c07c; --a-bad: #de8a78;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4.5vw, 48px);
  --vh: 860px;
  --ease: cubic-bezier(.16,1,.3,1);
  position: relative; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 440;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: light) {
  .nl {
    --bg: #f4f1e8; --bg-2: #ede9dc; --surface: #fdfcf8; --surface-2: #ffffff;
    --ink: #1c2117; --ink-2: #49503f; --ink-3: #62685a;
    --line: rgba(28,33,23,.10); --line-2: rgba(28,33,23,.18);
    --gold: #b07d2b; --gold-2: #c8943f; --gold-ink: #8a5f1c; --gold-soft: rgba(176,125,43,.14);
    --btn: #1c2117; --btn-ink: #fdfcf8; --btn-hover: #2a3226;
    --nav: rgba(244,241,232,.76);
    --c-agent: #5e6b4c; --c-router: #3d5a73; --c-recall: #2f7d6e; --c-cloud: #5b5486;
    --shadow: 0 40px 90px -36px rgba(28,33,23,.36), 0 18px 40px -24px rgba(28,33,23,.16);
    --orbit-rgb: 96,82,50; --dust-rgb: 150,106,36; --glow-rgb: 176,125,43;
  }
}
.nl *, .nl *::before, .nl *::after { box-sizing: border-box; }
:where(.nl) a { color: inherit; text-decoration: none; }
:where(.nl) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(.nl) img { display: block; max-width: 100%; }
:where(.nl) :is(p, h1, h2, h3, ul) { margin: 0; padding: 0; }
:where(.nl) ul { list-style: none; }
.nl :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.nl section { scroll-margin-top: 88px; }
.nl::before {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none;
  background-image: var(--grain, none); background-size: 128px; opacity: .04;
}

/* ---------- shared type ---------- */
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }
.pip { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); animation: pip 2.8s ease-in-out infinite; }
.nl em { font-style: italic; color: var(--gold-ink); }
.h2 { font-family: var(--serif); font-weight: 420; font-variation-settings: "opsz" 144; font-size: clamp(42px, 6.4vw, 96px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 420; font-variation-settings: "opsz" 96; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.028em; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.mono { font-family: var(--mono); }
.sec { padding-block: clamp(84px, 11vw, 168px); position: relative; }
.sec-head { display: grid; gap: 22px; max-width: 900px; margin-bottom: clamp(44px, 6vw, 84px); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap; transition: background .18s var(--ease), border-color .18s, color .18s; will-change: transform; overflow: hidden; }
.btn-p { background: var(--btn); color: var(--btn-ink); }
.btn-p:hover { background: var(--btn-hover); }
.btn-p::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.34) 50%, transparent 65%); transform: translateX(-120%); }
.btn-p:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-g { border: 1px solid var(--line-2); color: var(--ink); }
.btn-g:hover { border-color: var(--gold); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-s { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* ---------- reveal system: nothing is hidden until the script has booted ---------- */
.nl.js .rv { opacity: 0; transform: translateY(30px); }
.nl.js .rv.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.nl.js .ln > span { transform: translateY(112%) rotate(3deg); transform-origin: 0 100%; }
.nl.js.ready .ln > span { transform: none; transition: transform 1.25s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 120ms); }
.nl.js .fade-in { opacity: 0; }
.nl.js.ready .fade-in { opacity: 1; transition: opacity 1.1s ease .7s; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 60; top: 12px; left: 0; right: 0; padding-inline: max(4px, calc(var(--gutter) - 16px)); pointer-events: none; }
.nav-in { pointer-events: auto; max-width: 1216px; margin-inline: auto; display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 8px 8px 8px 16px; border-radius: 22px; border: 1px solid transparent; position: relative; overflow: hidden; transition: background .35s, border-color .35s, backdrop-filter .35s, box-shadow .35s; }
.nl.scrolled .nav-in { background: var(--nav); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 18px 40px -28px rgba(0,0,0,.6); }
.nav-in::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--page, 0)); opacity: .7; }
.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 18px; flex: 1; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .18s, background .18s; }
.nav-links a:hover { color: var(--ink); background: var(--gold-soft); }
.nav-end { display: flex; align-items: center; gap: 6px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; margin-left: auto; }
.burger svg { width: 22px; height: 22px; }
.sheet { pointer-events: auto; display: grid; gap: 2px; max-width: 1216px; margin: 8px auto 0; padding: 12px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); animation: sheet .35s var(--ease); }
.sheet a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; font-weight: 500; }
.sheet a:hover { background: var(--gold-soft); }

/* ---------- hero ---------- */
.hero { --hero-rest: 440px; --hero-max: 156px; position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 88px 0 28px; overflow: hidden; --hp: 0; }
.hero-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-amb { position: absolute; inset: -10% 0 auto auto; width: 70%; height: 80%; background: radial-gradient(closest-side, rgba(var(--glow-rgb), .13), transparent); pointer-events: none; animation: drift 24s ease-in-out infinite alternate; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 48px); }
.hero-copy { display: grid; gap: 22px; position: relative; z-index: 2; opacity: calc(1 - var(--hp) * 1.5); transform: translateY(calc(var(--hp) * -70px)); }
.hx { font-family: var(--serif); font-weight: 420; font-variation-settings: "opsz" 144; font-size: clamp(36px, min(9.8vw, calc((100svh - var(--hero-rest)) / 2.94)), var(--hero-max)); line-height: .93; letter-spacing: -.048em; }
.ln { display: block; overflow: hidden; padding: .03em .12em .16em 0; margin-bottom: -.14em; }
.ln > span { display: block; }
.hero .lede { max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding-top: 20px; border-top: 1px solid var(--line); }
.orbit-slot { position: relative; width: min(100%, calc(100svh - 170px)); max-width: 660px; aspect-ratio: 1; justify-self: end; z-index: 3; }
.pnode { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; min-height: 44px; opacity: 0; transition: opacity .9s ease; will-change: transform; }
.pnode.in { opacity: var(--a, 1); }
.pnode img { width: 62px; height: 62px; border-radius: 15px; box-shadow: 0 14px 34px -10px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); transition: transform .35s var(--ease); }
.pnode:hover img { transform: scale(1.12); }
.pnode span { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink); padding: 1px 8px; border-radius: 999px; background: var(--nav); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.core-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 44px); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; opacity: calc(1 - var(--hp) * 2); }

/* ---------- provider ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.ticker-in { display: flex; width: max-content; animation: slide 62s linear infinite; }
.ticker:hover .ticker-in { animation-play-state: paused; }
.ticker ul { display: flex; flex: none; }
.ticker li { display: flex; align-items: center; gap: 44px; padding-right: 44px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--ink-3); white-space: nowrap; }
.ticker li::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .6; }

/* ---------- thesis ---------- */
.thesis { font-family: var(--serif); font-weight: 420; font-variation-settings: "opsz" 144; font-size: clamp(36px, 5.6vw, 84px); line-height: 1.08; letter-spacing: -.032em; display: flex; flex-wrap: wrap; column-gap: .24em; }
.w { display: inline-block; opacity: 1; }
.nl.js:not(.flat) .w { opacity: var(--o, .14); }
.w.g { font-style: italic; color: var(--gold-ink); }

/* ---------- story: pinned on desktop, stacked on phones ---------- */
.story { position: relative; background: var(--bg-2); border-block: 1px solid var(--line); }
.story-track { height: calc(var(--vh) * 5.2); position: relative; }
.story-stage { position: sticky; top: 0; height: var(--vh); display: flex; flex-direction: column; padding: 104px 0 26px; overflow: hidden; }
.story-stage > .wrap { height: 100%; display: flex; flex-direction: column; gap: 18px; }
.story-top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.story-title { font-family: var(--serif); font-weight: 420; font-variation-settings: "opsz" 72; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.02em; }
.sts { position: relative; flex: 1; min-height: 0; }
.st { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(28px, 5vw, 80px); opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s .55s; }
.st.on { opacity: 1; visibility: visible; transition: opacity .55s ease .08s; }
.st-copy { display: grid; gap: 18px; }
.st-time { font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: .06em; display: flex; align-items: center; gap: 12px; }
.st-time img { width: 34px; height: 34px; border-radius: 9px; }
.st-h { font-family: var(--serif); font-weight: 420; font-variation-settings: "opsz" 144; font-size: clamp(42px, 5.8vw, 88px); line-height: 1; letter-spacing: -.038em; }
.nl.js .p-i { opacity: 0; transform: translateY(20px) scale(.985); }
.nl.js .st.on .p-i, .nl.js.flat .st.in .p-i { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 120ms + 120ms); }
.nl.js .st-copy > * { transform: translateY(16px); }
.nl.js .st.on .st-copy > *, .nl.js.flat .st-copy > * { transform: none; transition: transform .9s var(--ease); }
.rail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 14px; --sp: 0; }
.rail::before, .rail::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line-2); }
.rail::after { background: linear-gradient(90deg, var(--c-recall), var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--sp)); box-shadow: 0 0 14px rgba(var(--glow-rgb), .5); }
.rail-i { font-family: var(--mono); font-size: 12px; color: var(--ink-3); transition: color .35s; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.rail-i b { font-weight: 500; }
.rail-i.on { color: var(--gold-ink); }
.st .app { padding: clamp(18px, 2.5vw, 36px); gap: 18px; font-size: 16px; }
.st .wave { height: 92px; }
.nl.flat .story-track { height: auto; }
.nl.flat .story-stage { position: static; height: auto; padding: clamp(72px, 12vw, 112px) 0; }
.nl.flat .story-stage > .wrap { height: auto; gap: 36px; }
.nl.flat .sts { display: grid; gap: 72px; }
.nl.flat .st { position: static; opacity: 1; visibility: visible; }
.nl.flat .rail { display: none; }

/* ---------- app surface, shared by every live panel ---------- */
.app { position: relative; background: var(--a-card); color: var(--a-ink); border: 1px solid var(--a-line); border-radius: 24px; padding: clamp(16px, 2vw, 26px); box-shadow: var(--shadow); display: grid; gap: 14px; font-size: 15px; line-height: 1.5; min-width: 0; }
.app-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--a-ink-3); flex-wrap: wrap; }
.bubble { justify-self: end; max-width: 92%; padding: 12px 18px; border-radius: 20px 20px 6px 20px; background: linear-gradient(100deg, #8fbf8d, #c4b76b); color: #10160f; font-weight: 500; }
.well { background: var(--a-well); border: 1px solid var(--a-line); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: 12px; font-weight: 500; border: 1px solid var(--a-line-2); color: var(--a-ink-2); white-space: nowrap; }
.tag.ok { color: var(--a-ok); border-color: rgba(116,192,124,.34); }
.tag.gold { color: var(--a-gold); border-color: rgba(225,176,82,.38); background: rgba(225,176,82,.09); }
.tag.bad { color: var(--a-bad); border-color: rgba(222,138,120,.34); }
.tag.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wave { display: flex; align-items: center; gap: 3px; height: 54px; overflow: hidden; }
.wave i { flex: 1 1 0; min-width: 2px; height: 100%; border-radius: 3px; background: linear-gradient(180deg, var(--a-gold), #84ba87); transform: scaleY(var(--h)); transform-origin: 50% 50%; animation: wv 1.25s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -83ms); opacity: .9; }
.chk { display: grid; gap: 10px; }
.chk li { display: flex; align-items: center; gap: 10px; color: var(--a-ink); }
.chk svg { flex: none; width: 18px; height: 18px; color: var(--a-ok); }
.rq { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--a-line); }
.rq:last-child { border-bottom: 0; }
.rq s { color: var(--a-ink-3); }
.rq strong { font-weight: 600; font-size: 20px; }

/* ---------- system chapters ---------- */
.chaps { display: grid; gap: 28px; }
.chap { --tint: var(--gold); position: relative; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 64px); padding: clamp(22px, 4vw, 56px); transform-origin: 50% 0; }
.nl.stacked .chap { position: sticky; top: 88px; transform: scale(calc(1 - var(--s, 0) * .05)); box-shadow: var(--shadow); }
.nl.stacked .chap::after { content: ""; position: absolute; inset: 0; background: #060907; opacity: calc(var(--s, 0) * .5); pointer-events: none; }
.chap::before { content: ""; position: absolute; left: -12%; top: -30%; width: 60%; height: 90%; background: radial-gradient(closest-side, var(--tint), transparent); opacity: .13; pointer-events: none; }
.t-neoagent { --tint: var(--c-agent); }
.t-neorouter { --tint: var(--c-router); }
.t-neorecall { --tint: var(--c-recall); }
.t-neocloud { --tint: var(--c-cloud); }
.chap-status { display: inline-flex; vertical-align: 3px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--ink-2); }

/* cloud demo */
.cl-bar { height: 6px; border-radius: 6px; background: var(--a-well); overflow: hidden; }
.cl-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #b9b3d8, var(--a-gold)); transform-origin: 0 50%; animation: cl-fill 6s var(--ease) infinite; }
.cl-segs { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
.cl-segs i { height: 12px; border-radius: 3px; background: var(--a-well); border: 1px solid var(--a-line); animation: cl-seal 6s steps(1) infinite; animation-delay: calc(var(--i) * .22s); }
.cl-keys { display: grid; gap: 6px; margin-top: 4px; }
.cl-keys li { display: grid; grid-template-columns: 34px auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--a-well); border: 1px solid var(--a-line); font-size: 14px; }
.cl-keys li span:last-child { color: var(--a-ink-3); font-family: var(--mono); font-size: 12px; text-align: right; }
.cl-n { font-family: var(--mono); font-size: 12px; color: var(--a-gold); }
@keyframes cl-fill { 0% { transform: scaleX(.08); } 80%, 100% { transform: scaleX(1); } }
@keyframes cl-seal { 0% { background: var(--a-well); border-color: var(--a-line); } 6%, 100% { background: rgba(225,176,82,.75); border-color: rgba(225,176,82,.9); } }
.chap-copy { position: relative; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.chap-id { display: flex; align-items: center; gap: 14px; }
.chap-id img { width: 56px; height: 56px; border-radius: 14px; }
.chap-id b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.chap-verb { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--tint); }
.facts { display: grid; width: 100%; border-top: 1px solid var(--line); margin-top: auto; }
.facts li { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.facts b { font-family: var(--serif); font-weight: 420; font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
.chap-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chap-demo { position: relative; min-width: 0; align-self: center; }

/* recall demo */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--a-line-2); color: var(--a-ink-2); font-size: 13px; font-weight: 500; text-align: left; transition: color .18s, border-color .18s, background .18s; }
.nl .chip { color: var(--a-ink-2); }
.nl .chip:hover { border-color: var(--a-gold); color: var(--a-ink); }
.nl .chip.on { background: rgba(225,176,82,.13); border-color: rgba(225,176,82,.5); color: var(--a-gold); }
.ans { display: flex; flex-wrap: wrap; column-gap: .27em; font-size: 16px; line-height: 1.5; min-height: 4.5em; align-content: flex-start; }
.awd { display: inline-block; animation: awd .5s var(--ease) both; animation-delay: calc(var(--i) * 26ms); }
.cite { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; color: var(--a-ink-2); padding: 7px 0; }
.cite + .cite { border-top: 1px solid var(--a-line); }
.cite time { font-family: var(--mono); color: var(--a-gold); }

/* agent demo */
.mascot { flex: none; width: 96px; height: 96px; padding: 11px; border-radius: 22px; background: #030504; box-shadow: inset 0 0 0 1px rgba(236,239,229,.14), 0 18px 40px -16px rgba(225,176,82,.3); display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 1.5px; }
.md { position: relative; border-radius: 50%; background: #17201a; aspect-ratio: 1; }
.md b { position: absolute; inset: 0; border-radius: 50%; background: #e1b052; opacity: 0; transition: opacity .12s ease-out; }
.ag-top { display: flex; align-items: center; gap: 16px; }
.ag-top p { font-weight: 500; }
.log { display: grid; }
.log li { display: grid; grid-template-columns: 58px 86px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--a-line); font-size: 14px; animation: lg 12s ease-in-out infinite; animation-delay: calc(var(--i) * 3s); opacity: .42; }
.log li:last-child { border-bottom: 0; }
.log time { font-family: var(--mono); font-size: 12px; color: var(--a-ink-3); padding-top: 2px; }
.log b { font-weight: 600; color: var(--a-gold); }
.log span { color: var(--a-ink-2); }

/* router demo */
.rt-list { position: relative; height: 322px; border-radius: 14px; }
.rt { position: absolute; left: 0; right: 0; top: 0; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; border: 1px solid transparent; transition: transform .8s var(--ease), background .4s, border-color .4s, color .4s; font-size: 15px; color: var(--a-ink-2); }
.rt .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt .tm { font-family: var(--mono); font-size: 13px; color: var(--a-ink-3); }
.rt .dt { width: 8px; height: 8px; border-radius: 50%; background: transparent; flex: none; transition: background .3s, box-shadow .3s; }
.rt.top { background: rgba(225,176,82,.1); border-color: rgba(225,176,82,.36); color: var(--a-ink); font-weight: 600; }
.rt.top .dt { background: var(--a-gold); box-shadow: 0 0 0 4px rgba(225,176,82,.2); }
.rt.top .tm { color: var(--a-gold); }
.rt.busy { color: var(--a-ink-3); }
.rt.busy .nm { text-decoration: line-through; }
.endpoint { font-family: var(--mono); font-size: 13px; color: var(--a-ink-2); overflow-wrap: anywhere; }
.endpoint b { color: var(--a-gold); font-weight: 500; }

/* ---------- numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); border-block: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 52px) clamp(14px, 2.4vw, 32px); display: grid; gap: 8px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--serif); font-weight: 380; font-variation-settings: "opsz" 144; font-size: clamp(60px, 7.4vw, 112px); line-height: 1; letter-spacing: -.04em; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.stat > span { color: var(--ink-2); font-size: 15px; }

/* ---------- connections ---------- */
.links3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.lk { position: relative; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); padding: 26px; display: grid; gap: 16px; align-content: start; overflow: hidden; }
.lk-path { display: flex; align-items: center; gap: 10px; }
.lk-path img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.lk-line { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.lk-line::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px 2px rgba(var(--glow-rgb), .7); animation: run 2.8s var(--ease) infinite; animation-delay: calc(var(--d, 0) * -.9s); }
.lk h3 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.lk p { color: var(--ink-2); font-size: 15.5px; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--glow-rgb), .13), transparent 70%); opacity: 0; transition: opacity .3s; }
.spot:hover::before { opacity: 1; }
.note { margin-top: 26px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- comparison ---------- */
.ledger { border-top: 1px solid var(--line-2); }
.lr { display: grid; grid-template-columns: 1fr 1.35fr 1.35fr; gap: 20px; padding: clamp(16px, 2vw, 24px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.lr.head { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); align-items: center; }
.lr.head .us { display: flex; align-items: center; gap: 10px; color: var(--gold-ink); }
.lr.head img { width: 26px; height: 26px; }
.lr .k { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.lr .a { font-family: var(--serif); font-size: clamp(21px, 2.3vw, 32px); font-weight: 420; line-height: 1.15; letter-spacing: -.02em; }
.lr .b { color: var(--ink-3); font-size: clamp(15px, 1.3vw, 17px); }
.fine { margin-top: 22px; font-size: 14px; color: var(--ink-3); max-width: 62em; }
.fine a { text-decoration: underline; text-underline-offset: 3px; }
.honest { margin-top: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.honest > div { border-radius: 18px; border: 1px solid var(--line); padding: 20px 22px; color: var(--ink-2); font-size: 15.5px; }
.honest b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* ---------- guarantees ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.bt { position: relative; grid-column: span 4; min-height: 236px; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: border-color .3s, transform .5s var(--ease); }
.bt:hover { border-color: var(--line-2); transform: translateY(-4px); }
.bt.wide { grid-column: span 8; }
.bt .by { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tint, var(--gold-ink)); margin-bottom: auto; }
.bt h3 { font-family: var(--serif); font-weight: 420; font-variation-settings: "opsz" 96; font-size: clamp(26px, 2.7vw, 40px); line-height: 1.06; letter-spacing: -.026em; }
.bt p { color: var(--ink-2); font-size: 15.5px; max-width: 36em; }

/* ---------- gallery ---------- */
.gal { overflow: hidden; display: grid; gap: 14px; padding-block: 4px; }
.gal-row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.gal-row img { height: clamp(170px, 24vw, 340px); width: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--a-bg); }

/* ---------- install ---------- */
.inst { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.inst-copy { display: grid; gap: 20px; }
.term { background: #0a0f0c; color: var(--a-ink); border: 1px solid var(--a-line-2); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.term-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--a-line); overflow-x: auto; }
.nl .tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--a-ink-2); white-space: nowrap; transition: background .18s, color .18s; }
.nl .tab img { width: 22px; height: 22px; border-radius: 6px; }
.nl .tab:hover { color: var(--a-ink); }
.nl .tab.on { background: var(--a-well); color: var(--a-ink); }
.term-b { padding: 22px; display: grid; gap: 14px; font-family: var(--mono); font-size: 14px; line-height: 1.6; }
.term-b > * { animation: awd .6s var(--ease) both; }
.term-cmd { overflow-wrap: anywhere; }
.term-cmd i { font-style: normal; color: var(--a-gold); margin-right: 8px; }
.caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: -3px; margin-left: 4px; background: var(--a-gold); animation: blink 1.1s steps(2) infinite; }
.term-out { color: var(--a-ink-3); }
.term-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 22px; border-top: 1px solid var(--a-line); font-size: 13px; color: var(--a-ink-3); }
.nl .copy { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--a-line-2); color: var(--a-ink); font-size: 14px; font-weight: 500; transition: border-color .18s; }
.nl .copy:hover { border-color: var(--a-gold); }

/* ---------- closing ---------- */
.end { position: relative; overflow: hidden; text-align: center; padding-block: clamp(110px, 15vw, 220px); }
.end-mark { position: absolute; left: 50%; top: 50%; width: min(1040px, 150vw); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .13; pointer-events: none; }
.end-mark circle { fill: none; stroke: rgb(var(--orbit-rgb)); stroke-linecap: round; transform-origin: 50% 50%; }
.end-mark .o1 { animation: spin 46s linear infinite; }
.end-mark .o2 { animation: spin 72s linear infinite reverse; }
.end-in { position: relative; display: grid; gap: 28px; justify-items: center; }
.end .cta-row { justify-content: center; }
.foot { border-top: 1px solid var(--line); padding-block: 56px 0; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 36px; }
.foot-grid h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.foot-grid a { display: flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--ink-2); transition: color .18s; }
.foot-grid a:hover { color: var(--gold-ink); }
.foot-note { font-size: 14px; color: var(--ink-3); max-width: 28em; display: grid; gap: 12px; }
.foot-word { font-family: var(--serif); font-weight: 420; font-variation-settings: "opsz" 144; font-size: 23vw; line-height: .8; letter-spacing: -.055em; text-align: center; white-space: nowrap; color: var(--ink); opacity: .07; margin-top: 44px; margin-bottom: -.1em; user-select: none; }

/* ---------- keyframes ---------- */
@keyframes pip { 50% { box-shadow: 0 0 0 9px transparent; } }
@keyframes drift { to { transform: translate(-8%, 8%) scale(1.14); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes wv { from { transform: scaleY(calc(var(--h) * .35)); } to { transform: scaleY(var(--h)); } }
@keyframes awd { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lg { 0%, 30% { opacity: 1; } 42%, 100% { opacity: .42; } }
@keyframes run { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes sheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-links, .nav-end { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 899px) {
  .st { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .chap { grid-template-columns: minmax(0, 1fr); }
  .facts { margin-top: 0; }
  .inst { grid-template-columns: minmax(0, 1fr); }
  .bt, .bt.wide { grid-column: span 12; min-height: 190px; }
  .lr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; }
  .lr .k { grid-column: span 2; }
  .lr.head > span:first-child { display: none; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .log li { grid-template-columns: 50px minmax(0, 1fr); }
  .log span { grid-column: 2; }
  .rt { font-size: 14px; padding: 0 10px; gap: 8px; }
  .rt .tm { font-size: 12px; }
}
/* The hero always fits one screen: the headline and orbit give way to the window's height. */
@media (max-width: 1100px) { .hero { --hero-rest: 500px; } }
@media (max-height: 760px) { .hero { --hero-rest: 390px; } .hero-tags { display: none; } }
@media (max-height: 760px) and (max-width: 1100px) { .hero { --hero-rest: 450px; } }
@media (max-height: 540px) { .hero { --hero-rest: 290px; padding: 72px 0 16px; } .hero .lede, .core-tag { display: none; } }
@media (max-width: 899px) and (orientation: portrait) {
  .hero { align-items: stretch; padding: 76px 0 24px; }
  .hx { font-size: clamp(48px, min(19.5vw, 9.5svh), 120px); }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-copy { gap: 14px; }
  .orbit-slot { order: -1; flex: 1 1 0; width: 100%; max-width: none; min-height: 150px; aspect-ratio: auto; justify-self: auto; }
  .pnode { width: 84px; }
  .pnode img { width: 50px; height: 50px; border-radius: 12px; }
  .core-tag { display: none; }
}
@media (max-width: 599px) and (orientation: portrait) {
  .hero .lede { font-size: 16px; }
  .hero-tags { display: none; }
  .hero .cta-row { flex-wrap: nowrap; gap: 8px; }
  .hero .btn { min-height: 46px; padding: 0 14px; font-size: 14px; flex: 0 1 auto; }
}
@media (max-width: 899px) and (orientation: portrait) and (max-height: 720px) {
  .hx { font-size: clamp(44px, min(19.5vw, 8svh), 120px); }
  .orbit-slot { min-height: 96px; }
  .pnode { width: 44px; }
  .pnode img { width: 30px; height: 30px; border-radius: 8px; }
  .pnode span { display: none; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .pnode { width: 44px; }
  .pnode img { width: 34px; height: 34px; border-radius: 9px; }
  .pnode span { display: none; }
  .hero .cta-row { flex-wrap: nowrap; gap: 8px; }
  .hero .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
}
/* Large monitors: the hero and nav grow with the screen instead of floating in the middle. */
@media (min-width: 1700px) and (min-height: 950px) {
  .hero { --hero-max: 216px; }
  .hero-grid { max-width: 1660px; }
  .hero .lede { font-size: 22px; }
  .orbit-slot { max-width: 820px; }
  .pnode { width: 120px; }
  .pnode img { width: 76px; height: 76px; border-radius: 18px; }
  .nav-in { max-width: 1596px; }
}
@media (max-width: 899px) and (orientation: portrait) and (max-height: 600px) {
  .hero .lede { display: none; }
}
@media (max-width: 340px) {
  .hero .btn { padding: 0 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nl *, .nl *::before, .nl *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .log li { opacity: 1; }
}
.nl.still *, .nl.still *::before, .nl.still *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
.nl.still .log li { opacity: 1; }

[hidden] { display: none !important; }
