:root { color-scheme: dark;  /* one deliberate dark look */
  --bg: #0c151a;
  --bg2: #12232a;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef3f4;
  --muted: #a8bdc5;
  --dim: #93a9b2;  /* small secondary text; AA on bg and bg2 */
  --violet: #527d89;
  --cyan: #87bec8;
  --pink: #bec7cc;
  --green: #34d399;
  --red: #f87171;
  --radius: 16px;
  --max: 1160px; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
code { background: var(--panel); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
img { display: block; max-width: 100%; }
/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px max(20px, calc((100% - var(--max)) / 2)); background: rgba(12, 21, 26, 0.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.04em; }
.brand img { width: 30px; height: 30px; }
.links { display: flex; gap: 22px; margin-left: 12px; }
.links a { white-space: nowrap; color: var(--muted); font-size: 0.93rem; font-weight: 500; transition: color 0.2s; }
.links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; }
/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; font-weight: 600; background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; box-shadow: 0 8px 30px -8px rgba(82, 125, 137, 0.6); transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(135, 190, 200, 0.55); }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.3); }
.btn.small { padding: 8px 16px; font-size: 0.88rem; }
/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 20px 48px; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 14s ease-in-out infinite alternate; }
.g1 { width: 520px; height: 520px; background: var(--violet); top: -160px; left: -120px; }
.g2 { width: 460px; height: 460px; background: var(--cyan); bottom: -200px; right: -80px; animation-delay: -6s; opacity: 0.35; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.hero-inner { position: relative; max-width: var(--max); margin: auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-link { display: inline-flex; align-items: center; gap: 9px; padding: 6px 16px 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 0.88rem; font-weight: 600; transition: border-color 0.2s, transform 0.2s; }
.badge-link:hover { border-color: rgba(255, 255, 255, 0.35); transform: translateY(-1px); }
.badge-link img { height: 22px; width: auto; flex: none; }
.venue-note { margin-top: 10px; color: var(--dim); font-size: 0.78rem; letter-spacing: 0.04em; }
h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; margin: 18px 0 20px; font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink), var(--violet)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 16s linear infinite; }
@keyframes shine { to { background-position: 300% 0; } }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 540px; }
.lead b { color: var(--text); }
.stats { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 36px; }
.stats b { display: block; font-size: 1.7rem; font-weight: 800; }
.stats span { color: var(--muted); font-size: 0.85rem; }
.prompt { color: var(--cyan); }
/* orbit: VLM core, physical devices, attacks */
.orbit { --s: min(540px, 100vw - 32px, max(440px, calc(100svh - 230px))); position: relative; width: var(--s); height: var(--s); margin: auto; }
.orbit-rings, .orbit-fx { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-rings circle { fill: none; }
.r-dev { stroke: rgba(255, 255, 255, 0.10); stroke-width: 0.35; stroke-dasharray: 1 2.2; }
.r-atk { stroke: rgba(244, 114, 182, 0.3); stroke-width: 0.4; stroke-dasharray: 0.6 1.6; animation: spin 120s linear infinite; transform-box: fill-box; transform-origin: center; }
.orbit-rings path { fill: none; }
.r-label { fill: var(--muted); font: 600 3.6px "JetBrains Mono", monospace; letter-spacing: 0.9px; text-anchor: middle; opacity: 0.8; }
.r-label.atk { fill: var(--pink); }
.r-atk-glow { stroke: rgba(244, 114, 182, 0.08); stroke-width: 7; }
@keyframes spin { to { transform: rotate(360deg); } }
.core { position: absolute; left: 50%; top: 50%; width: calc(var(--s) * 0.25); height: calc(var(--s) * 0.25); transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-content: center; justify-items: center; text-align: center; z-index: 3;
  background: radial-gradient(circle at 35% 30%, rgba(82, 125, 137, 0.55), rgba(135, 190, 200, 0.18) 60%, rgba(12, 21, 26, 0.9) 100%); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 0 60px -6px rgba(82, 125, 137, 0.7), inset 0 0 30px rgba(135, 190, 200, 0.25); }
.core::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(135, 190, 200, 0.35); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.07); opacity: 0.35; } }
.core-eye .icn { display: block; width: calc(var(--s) * 0.1125); height: calc(var(--s) * 0.1125); object-fit: contain; filter: drop-shadow(0 0 10px rgba(135, 190, 200, 0.45)); }
.core b { font-size: calc(var(--s) * 0.034); letter-spacing: 0.08em; line-height: 1.1; }
.core span { color: var(--muted); font-size: max(11px, calc(var(--s) * 0.021)); }
.core-shield { position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--green); box-shadow: 0 0 24px var(--green), inset 0 0 24px rgba(52, 211, 153, 0.4); opacity: 0; transform: scale(0.9); transition: opacity 0.25s, transform 0.25s; }
.core.shielded .core-shield { opacity: 1; transform: scale(1); }
.core.hit .core-shield { opacity: 1; transform: scale(1); border-color: var(--red); box-shadow: 0 0 24px var(--red), inset 0 0 24px rgba(248, 113, 113, 0.4); }
.core.hit { box-shadow: 0 0 70px -4px rgba(248, 113, 113, 0.8), inset 0 0 30px rgba(248, 113, 113, 0.3); }
.verdict { position: absolute; top: calc(100% + 20px); left: 50%; padding: 2px 10px; border-radius: 999px; font: 600 0.7rem "JetBrains Mono", monospace; font-style: normal; white-space: nowrap; color: var(--bg); opacity: 0; transform: translate(-50%, -4px); transition: opacity 0.3s, transform 0.3s; }
.verdict.ok { background: var(--green); }
.verdict.bad { background: var(--red); }
.verdict.show { opacity: 1; transform: translate(-50%, 0); }
.ob { position: absolute; left: 0; top: 0; z-index: 2; white-space: nowrap; }
.ob.atk { will-change: transform; }
.ob.dev { width: calc(var(--s) * 0.064); height: calc(var(--s) * 0.064); border-radius: 50%; display: grid; place-items: center; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
.ob.dev .icn { width: 56%; height: 56%; }
.ob.dev.on { color: #fff; border-color: rgba(135, 190, 200, 0.7); box-shadow: 0 0 18px -2px rgba(135, 190, 200, 0.7); }
.ob.atk { --c: var(--pink); display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 8px; font: 500 0.68rem "JetBrains Mono", monospace; color: var(--text); background: rgba(12, 21, 26, 0.85); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); transition: box-shadow 0.3s, background 0.3s; }
.ob.atk .icn { width: 13px; height: 13px; color: var(--muted); }
.ob.atk.fire { background: color-mix(in srgb, var(--c) 35%, rgba(12, 21, 26, 0.9)); box-shadow: 0 0 20px var(--c); }
.beam { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; opacity: 0.85; filter: drop-shadow(0 0 6px currentColor); }
.beam-head { fill: #fff; filter: drop-shadow(0 0 8px currentColor); }
.orbit-log { position: relative; max-width: 500px; margin: 4px auto 0; padding: 10px 70px 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.35); font-size: 0.76rem; color: var(--muted); }
.orbit-log ol { list-style: none; padding: 0; display: grid; grid-template-rows: repeat(3, 1.5em); }
.orbit-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: pop 0.35s ease both; }
.orbit-log em { font-style: normal; font-size: 0.66rem; font-weight: 600; padding: 0 5px; margin-right: 6px; border-radius: 4px; color: var(--bg); }
.orbit-log .atk { background: var(--pink); }
.orbit-log .def { background: var(--green); }
.orbit-log .hit { background: var(--red); }
.orbit-log .eval { background: var(--cyan); }
.orbit-log b { color: var(--text); font-weight: 500; }
#orbit-pause { position: absolute; right: 10px; top: 10px; padding: 3px 10px; font-size: 0.72rem; }
/* strip */
/* sections */
.section { padding: 88px 20px; max-width: calc(var(--max) + 40px); margin: auto; }
.section.alt { max-width: none; background: linear-gradient(180deg, var(--bg) 0, var(--bg2) 140px, var(--bg)); }
.section.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow { color: var(--cyan); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.15; margin: 10px 0 14px; }
.head p { color: var(--muted); }
/* reveal */
.js .reveal { transform: translateY(24px); transition: transform 0.7s ease; }
/* visible at rest; only slides in */
.js .reveal.in { transform: none; }
/* pipeline */
.flow { position: relative; }
.flow-svg { width: 100%; height: auto; position: absolute; inset: 0; }
.wires use { stroke: url(#lg); stroke-width: 2; stroke-dasharray: 6 8; fill: none; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.packets circle { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.nodes { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4%; }
.node { text-align: center; padding: 26px 14px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); transition: transform 0.25s, border-color 0.25s; }
.node:hover { transform: translateY(-4px); border-color: rgba(82, 125, 137, 0.55); }
.node .ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, rgba(82, 125, 137, 0.25), rgba(135, 190, 200, 0.2)); }
.node b { display: block; margin-bottom: 4px; }
.api { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; margin-top: 56px; align-items: center; }
.code { background: #070912; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; overflow-x: auto; font-size: 0.86rem; line-height: 1.75; }
.code .k { color: var(--pink); }
.code .f { color: var(--cyan); }
.code .s { color: #fbbf24; }
.code .c { color: var(--dim); }
.api-notes { list-style: none; padding: 0; display: grid; gap: 12px; }
.api-notes li { padding: 14px 16px; border-left: 2px solid var(--violet); background: var(--panel); border-radius: 0 10px 10px 0; color: var(--muted); }
.api-notes b { color: var(--text); }
/* cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: transform 0.25s, border-color 0.25s, background 0.25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(135, 190, 200, 0.45); background: rgba(255, 255, 255, 0.06); }
.ic2 { width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; display: grid; place-items: center; color: var(--cyan); background: rgba(135, 190, 200, 0.1); border: 1px solid rgba(135, 190, 200, 0.25); }
.ic2 .icn { width: 22px; height: 22px; }
.node .ic .icn { width: 26px; height: 26px; color: #fff; }
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.95rem; }
/* library */
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.tab, .ttab, .chip { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; transition: all 0.2s; }
.tab { padding: 9px 22px; font-weight: 600; }
.tab.active, .chip.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.chip { padding: 5px 14px; font-size: 0.85rem; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.item { padding: 20px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); animation: pop 0.35s ease both; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
.item b { display: block; font-size: 1.04rem; }
.item .cat { display: inline-block; margin: 8px 0; font-size: 0.74rem; padding: 2px 9px; border-radius: 999px; background: rgba(82, 125, 137, 0.16); color: #c4b5fd; }
.item p { color: var(--muted); font-size: 0.88rem; }
.item .venue { margin-top: 10px; font-size: 0.76rem; color: var(--dim); }
/* demo trio */
.side { display: grid; grid-template-columns: 1fr 1.8rem 1fr 1.8rem 1fr; gap: 18px; align-items: center; }
#demo .side { max-width: 860px; }
#demo .side { margin-top: 22px; align-items: start; }
.side figure:nth-child(2) { grid-column: 3; }
.side figure { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.side img { border-radius: 10px; width: 100%; aspect-ratio: 1; object-fit: cover; }
figcaption { padding: 12px 4px 4px; }
figcaption b { display: block; }
figcaption span { color: var(--muted); font-size: 0.88rem; }
@keyframes nudge { 50% { transform: translateX(6px); color: var(--cyan); } }
/* terminal */
.term { background: #070912; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 900px; margin: auto; }
.term-tabs { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); flex-wrap: wrap; }
.ttab { padding: 6px 14px; font-size: 0.85rem; border-radius: 8px; }
.ttab.active { color: #fff; background: rgba(82, 125, 137, 0.25); border-color: rgba(82, 125, 137, 0.5); }
.copy { margin-left: auto; font: inherit; font-size: 0.82rem; cursor: pointer; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.copy:hover { color: var(--text); }
.term pre { padding: 22px; font-size: 0.86rem; line-height: 1.75; overflow-x: auto; min-height: 230px; white-space: pre; }
.term .c { color: var(--dim); }
.cite pre { min-height: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.small-label { color: var(--muted); font-size: 0.82rem; padding-left: 4px; }
/* roadmap */
.road { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 34px; }
.road-line { position: absolute; top: 10px; left: 4%; right: 4%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.road-fill { width: 25%; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); position: relative; }
.road-fill::after { content: ""; position: absolute; inset: 0 -60px 0 auto; width: 60px; background: linear-gradient(90deg, var(--cyan), transparent); animation: probe 2.4s ease-in-out infinite; }
@keyframes probe { 0% { transform: translateX(-60px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(260%); opacity: 0; } }
.stage { position: relative; padding: 24px; border-radius: var(--radius); border: 1px dashed var(--line); background: var(--panel); }
.stage::before { content: ""; position: absolute; top: -30px; left: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.stage.now { border-style: solid; border-color: rgba(82, 125, 137, 0.6); background: rgba(82, 125, 137, 0.1); }
.stage.now::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 6px rgba(135, 190, 200, 0.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(135, 190, 200, 0); } }
.stage .badge { display: inline-block; margin-bottom: 6px; font-size: 0.72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.stage.now .badge { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.stage h3 { margin: 4px 0 8px; }
.stage p { color: var(--muted); font-size: 0.92rem; }
.stage ul { margin: 12px 0 0; padding-left: 18px; color: #8b93bd; font-size: 0.84rem; }
.see { display: inline-block; margin-top: 12px; color: var(--cyan); font-size: 0.88rem; font-weight: 600; }
.see:hover { color: var(--text); }
/* footer */
.footer { padding: 48px max(20px, calc((100% - var(--max)) / 2)); border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; color: var(--muted); font-size: 0.9rem; }
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { color: var(--text); }
/* responsive */
@media (max-width: 960px) {
  .hero-inner, .api { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead { margin: auto; }
  .stats { justify-content: center; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .road { grid-template-columns: 1fr 1fr; }
  .road-line { display: none; }
  .nav { flex-wrap: wrap; row-gap: 8px; }
  .links { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 88%, transparent); }
}
@media (max-width: 640px) {
  .grid3, .road { grid-template-columns: 1fr; }
  .lib { grid-template-columns: 1fr 1fr; gap: 10px; }
  .item { padding: 14px; }
  .item b { font-size: 0.92rem; }
  .item p { font-size: 0.8rem; }
  .r-label { display: none; }
  .verdict { top: calc(100% + 5px); }
  .orbit-log { font-size: 0.68rem; }
  .orbit-log ol { grid-template-rows: none; min-height: 6.2em; }
  .orbit-log li { white-space: normal; }
  .ob.atk { padding: 5px; border-radius: 50%; }
  .ob.atk span { display: none; }
  .ob.atk .icn { width: 12px; height: 12px; }
  .nodes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flow-svg { display: none; }
  .side { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; }
  .side figure { flex: 0 0 72%; scroll-snap-align: center; }
  .footer { grid-template-columns: 1fr; }
  .section { padding: 72px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { transform: none; }
  html { scroll-behavior: auto; }
  .packets, #orbit-pause { display: none; }
}
/* roadmap checklists and the collapsible evolve animation */
.road.r3 { grid-template-columns: repeat(3, 1fr); max-width: var(--max); margin: 0 auto; }
.road.r3 .road-fill { width: 66%; }
.stage ul.check { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; color: var(--muted); font-size: 0.86rem; }
.stage ul.check li { position: relative; padding-left: 24px; }
.stage ul.check li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--dim); box-sizing: border-box; }
.stage.now ul.check li::before { border-color: var(--green); background: color-mix(in srgb, var(--green) 25%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.4l2.4 2.4 5-5.2' fill='none' stroke='%2334d399' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.stage .next { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }  /* planned items of a delivered stage */
.stage .next small { color: var(--dim); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.stage .next ul.check { margin-top: 8px; }
.stage.now .next ul.check li::before { border-color: var(--dim); background: none; }
.stage .see { display: inline-block; margin-top: 14px; color: var(--cyan); font-weight: 600; font-size: 0.88rem; }
.evo-more { max-width: var(--max); margin: 22px auto 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.evo-more > summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.evo-more > summary::-webkit-details-marker { display: none; }
.evo-more > summary > [data-icon] { display: inline-flex; color: var(--cyan); }
.evo-more > summary small { color: var(--muted); font-size: 0.86rem; }
.evo-more > summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: var(--radius); }
.evo-more .chev { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.25s; }
.evo-more[open] .chev { transform: rotate(-135deg); }
.evo-more[open] > summary { border-bottom: 1px solid var(--line); }
.evo-more .st-evo { padding: 16px; }
@media (max-width: 960px) {
  .road.r3 { grid-template-columns: 1fr; }
  .road.r3 .road-line { display: none; }
}
/* five feature cards: three on the first row, two wider ones on the second */
.grid3.five { grid-template-columns: repeat(6, 1fr); }
.grid3.five > .card { grid-column: span 2; }
.grid3.five > .card:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 960px) {
  .grid3.five { grid-template-columns: 1fr 1fr; }
  .grid3.five > .card, .grid3.five > .card:nth-child(n+4) { grid-column: auto; }
  .grid3.five > .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid3.five { grid-template-columns: 1fr; }
  .grid3.five > .card:last-child { grid-column: auto; }
}
/* review fixes */
.nb { white-space: nowrap; }
h1 { text-wrap: balance; }
html { scroll-padding-top: 84px; }
.btn, .tab.active, .chip.active, .stage.now .badge { color: var(--bg); }
.js .card.reveal.in:hover { transform: translateY(-4px); }
.item .cat[data-ch="Perturbation"] { background: rgba(82, 125, 137, 0.18); color: #c4b5fd; }
.item .cat[data-ch="Generation"] { background: rgba(135, 190, 200, 0.14); color: #67e8f9; }
.item .cat[data-ch="Injection"] { background: rgba(244, 114, 182, 0.16); color: #f9a8d4; }
.item .cat[data-ch="Defense"] { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.item .venue { color: var(--muted); }
.stats { flex-wrap: wrap; }
@media (max-width: 960px) {
  html { scroll-padding-top: 112px; }
}

.node small { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.nodes { align-items: stretch; }

.api { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; }
.btn.ghost { color: var(--text); }
@media (max-width: 640px) { .code { font-size: 0.72rem; padding: 16px; } }

/* phones */
@media (max-width: 640px) {
  .lib { grid-template-columns: 1fr; gap: 10px; }
  .item { padding: 14px 16px; }
  .item b { font-size: 1rem; }
  .item p { font-size: 0.86rem; }
  .term pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.74rem; min-height: 0; }
  .code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .road.r3 .stage::before { display: none; }
  .road.r3 { padding-top: 0; }
  .evo-more > summary small { display: none; }
}

/* one-line pipeline heading */
#pipeline .head { max-width: 1000px; }
@media (min-width: 900px) { #pipeline .head h2 { white-space: nowrap; } }

/* physical-world scenes: two counter-rotating rings around the VLM */
.sc-ring { position: relative; max-width: 860px; height: clamp(210px, 27vw, 300px); margin: 0 auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.sc { position: absolute; left: 0; top: 0; margin: 0; overflow: hidden; border-radius: 14px; background: var(--bg2); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85); will-change: transform; }
.sc img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sc figcaption { position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 600; color: var(--text); background: rgba(12, 21, 26, 0.78); }
.sc figcaption i, .sc-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.sc-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 6px auto 40px; padding: 0 16px; max-width: 700px; color: var(--muted); font-size: 0.82rem; }
.sc-legend li { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 640px) { .sc figcaption { display: none; } .sc-ring { height: 235px; } }
#pipeline .flow { max-width: 960px; margin-left: auto; margin-right: auto; }

/* Why RedPhys: chatbot red-teaming versus RedPhys, as two flows */
.vs { display: grid; gap: 16px; max-width: 1040px; margin: 0 auto 28px; }
.vs-lane { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px 18px 18px; }
.vs-chat { border-style: dashed; }
.vs-redphys { border-color: rgba(82, 125, 137, 0.55); background: rgba(82, 125, 137, 0.08); }
.vs-tag { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; }
.vs-tag b { font-size: 1.02rem; }
.vs-tag span { color: var(--muted); font-size: 0.82rem; }
.vs-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.vs-step { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; opacity: 0.28; transition: opacity 0.5s; }
.vs-step.seen { opacity: 1; }
.vs-step:not(:last-child)::after { content: "→"; position: absolute; right: -19px; top: 50%; color: var(--dim); opacity: 0; transition: opacity 0.4s; }
.vs-step.done:not(:last-child)::after { opacity: 1; }
.vs-step small { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; }
.vs-step.on small { color: var(--cyan); }
.vs-step img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.vs-cap { color: var(--muted); font-size: 0.8rem; }
.vs-bubble, .vs-reply, .vs-metric, .vs-icon { border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); padding: 10px 12px; font-size: 0.86rem; min-height: 56px; display: grid; align-content: center; }
.vs-icon { place-items: center; }
.vs-icon .icn { width: 26px; height: 26px; color: var(--muted); }
.vs-reply.ok { border-color: rgba(52, 211, 153, 0.6); color: var(--green); }
.vs-reply.bad { border-color: rgba(248, 113, 113, 0.6); color: var(--red); }
.vs-metric { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.vs-ans { position: relative; display: grid; gap: 4px; min-height: 56px; align-content: start; }
.vs-ans s { font-size: 0.9rem; color: var(--text); text-decoration-color: transparent; transition: color 0.4s, text-decoration-color 0.4s; }
.vs-ans s.cut { color: var(--dim); text-decoration-color: var(--red); }
.vs-ans b { font-size: 0.9rem; color: var(--red); opacity: 0; transition: opacity 0.4s; }
.vs-ans b.show, .vs-ans em.show { opacity: 1; }
.vs-ans em { font-style: normal; font-size: 0.72rem; color: #fff; background: rgba(248, 113, 113, 0.85); border-radius: 999px; padding: 1px 9px; width: fit-content; opacity: 0; transition: opacity 0.4s; }
.grid3.four { grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; }
@media (max-width: 960px) { .vs-steps { grid-template-columns: 1fr 1fr; } .vs-step:not(:last-child)::after { display: none; } .grid3.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid3.four { grid-template-columns: 1fr; } }

.vs-q { margin-left: auto; font-style: normal; font-size: 0.78rem; color: var(--muted); }
.vs-redphys .vs-q { color: #c4b5fd; }
.vs-model { display: flex; align-items: center; gap: 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); padding: 10px 12px; min-height: 56px; font-size: 0.86rem; color: var(--muted); }
.vs-model .icn { width: 24px; height: 24px; }
.vs-vs { justify-self: center; margin: -6px 0; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.vs-ans s:not(.cut) { color: var(--green); }
@media (max-width: 640px) { .vs-q { margin-left: 0; flex-basis: 100%; } }

.vs-chat .vs-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .vs-chat .vs-steps { grid-template-columns: 1fr 1fr; } }

.vs-bubble { gap: 6px; }
.vs-bubble.mono { font-size: 0.74rem; line-height: 1.5; color: var(--muted); }
.vs-chip { width: fit-content; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; background: rgba(248, 113, 113, 0.16); color: #fca5a5; }
.vs-redphys .vs-step:nth-child(2) img { border: 2px solid var(--red); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18); }

/* polish: hero order, nav, widths, bands, rhythm, phones, cards */
.venue-note { margin: 0 0 14px; color: var(--cyan); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { margin: 0 0 28px; }
.stats { margin-top: 28px; }
.stats b { line-height: 1.1; margin-bottom: 2px; }
.badges { margin-top: 32px; }
.vs { max-width: none; }
.term { max-width: 960px; }
.section.alt { background: linear-gradient(180deg, var(--bg) 0, var(--bg2) 120px, var(--bg2) calc(100% - 120px), var(--bg) 100%); }
.section { padding: clamp(56px, 7vw, 88px) 20px; }
.head { margin-bottom: clamp(32px, 4vw, 48px); }
h2, .head p { text-wrap: balance; }
#cite { padding-top: 0; }
#cite .head { margin-bottom: 18px; }
.item { display: flex; flex-direction: column; border-radius: var(--radius); transition: border-color 0.25s; }
.item .venue { margin-top: auto; padding-top: 10px; }
.item:hover, .node:hover { border-color: rgba(135, 190, 200, 0.45); }
.rs-mini { width: min(260px, 28vw); }
.rs-card { display: flex; flex-direction: column; }
.rs-def { margin-block: auto; }
.rs-grid, .rs-stats, .road { gap: 20px; }
.ttab { border-radius: 999px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }
.axes { display: grid; gap: 12px; max-width: 960px; margin: 14px auto 40px; padding: 0 16px; }
.axes > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.axes > div > span { width: 140px; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.axes > div > i { font-style: normal; font-size: 0.8rem; padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.axes > div > i.err { border-color: rgba(248, 113, 113, 0.4); color: var(--red); }
.axes .sc-legend { margin: 0; padding: 0; max-width: none; justify-content: flex-start; flex: 1; }
@media (min-width: 961px) { .vs-chat .vs-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vs-chat .vs-step:last-child { grid-column: 3 / 5; } }
@media (max-width: 960px) {
  .badges { justify-content: center; }
  .nav { flex-wrap: nowrap; gap: 16px; padding-block: 10px; }
  .links { order: 0; width: auto; flex: 1; min-width: 0; margin: 0; }
  html { scroll-padding-top: 68px; }
  .vs-chat .vs-step:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) { .axes > div > span { width: 100%; } }
@media (max-width: 640px) {
  .grid3.four .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
  .grid3.four .ic2 { grid-row: 1 / 3; margin: 0; }
}

/* motion polish */
.ripple { fill: none; stroke: currentColor; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: rip 0.9s ease-out forwards; }
@keyframes rip { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
.ob.dev.err { border-color: var(--red); box-shadow: 0 0 18px -2px var(--red); }
.ob.dev.err .icn { animation: jolt 0.45s ease; }
@keyframes jolt { 20% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 80% { transform: rotate(-4deg); } }
.vs-step.on img, .vs-step.on .vs-bubble, .vs-step.on .vs-reply { box-shadow: 0 0 0 1px rgba(135, 190, 200, 0.55), 0 0 26px -6px rgba(135, 190, 200, 0.6); }
.vs-step img, .vs-bubble, .vs-reply { transition: box-shadow 0.5s; }
.vs-step:not(:last-child)::after { transform: translateX(-6px); transition: opacity 0.4s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s; }
.vs-step.done:not(:last-child)::after { transform: none; color: var(--cyan); }
.vs-redphys .vs-step img { clip-path: inset(0); transition: clip-path 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s; }
.vs-redphys .vs-step:not(.seen) img { clip-path: inset(0 100% 0 0); }
.vs-redphys .vs-step:nth-child(2) img { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18); }
.vs-redphys .vs-step:nth-child(2).on img { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18), 0 0 26px -6px rgba(248, 113, 113, 0.6); }
.vs-ans { border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.04); padding: 12px; aspect-ratio: 16 / 9; align-content: center; gap: 8px; transition: border-color 0.3s, box-shadow 0.4s; }
.vs-ans.flip { border-color: rgba(248, 113, 113, 0.7); box-shadow: 0 0 30px -8px var(--red); }
.vs-ans b { transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; }
.vs-ans b.show { transform: none; }
.vs-ans em { transform: scale(0.6); transition: opacity 0.3s, transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.vs-ans em.show { transform: none; }
.vs-bubble.mono { min-height: 5.6em; }
.vs-reply.bad { animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.sc.tiny figcaption { font-size: 0; gap: 0; padding: 4px 5px; }
.sc.hl { border-color: var(--c); box-shadow: 0 0 0 2px var(--c), 0 0 26px -4px var(--c); }
.sc img { transition: transform 0.5s; }
.sc:hover img { transform: scale(1.06); }
.sc-legend li { cursor: default; }

/* animated figures are looked at, not selected: dragging across them neither selects text nor picks up an image */
img { -webkit-user-drag: none; }
.orbit, .orbit-log, .sc-ring, .sc-legend, .axes, .vs-lane, .flow, .st-evo, .rs-scatter, .rs-bars, .rs-def, .rs-eq { -webkit-user-select: none; user-select: none; }

/* the fixed behaviors are a deck: each loop draws a new card */
.vs-deck { position: relative; margin: 0 8px 8px 0; }
.vs-deck::before, .vs-deck::after { content: ""; position: absolute; inset: 0; border-radius: 10px; border: 1px solid var(--line); background: #171b2e; }
.vs-deck::before { transform: translate(8px, 8px) rotate(2deg); }
.vs-deck::after { transform: translate(4px, 4px) rotate(1deg); background: #1a1f33; }
.vs-card { position: relative; z-index: 1; min-height: 5.6em; background: #1e2238; border-color: rgba(248, 113, 113, 0.45); }
.vs-step.seen .vs-card { animation: draw 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
@keyframes draw { from { transform: translate(-26px, -22px) rotate(-9deg) scale(0.92); opacity: 0; box-shadow: 0 0 34px 2px rgba(248, 113, 113, 0.6); } 55% { opacity: 1; } to { transform: none; box-shadow: none; } }
.vs-bubble.mono { min-height: 7.2em; }
@media (prefers-reduced-motion: reduce) { .vs-step.seen .vs-card { animation: none; } }

/* roadmap: four stages, the third in progress */
.road.r4 { grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; }
.road.r4 .road-fill { width: 64%; }
.stage.wip { border-style: solid; border-color: rgba(135, 190, 200, 0.5); background: rgba(135, 190, 200, 0.06); }
.stage.wip::before { border-color: var(--cyan); background: linear-gradient(90deg, var(--cyan) 50%, var(--bg) 50%); animation: pulse 2s ease-in-out infinite; }
.stage.wip .badge { color: var(--cyan); border-color: rgba(135, 190, 200, 0.5); }
.stage.wip ul.check li::before { border-color: rgba(135, 190, 200, 0.55); }
.flow-mini { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.74rem; }
.flow-mini span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.04); animation: fm 4.5s ease-in-out infinite; }
.flow-mini span:nth-of-type(2) { animation-delay: 1.5s; }
.flow-mini span.end { animation-delay: 3s; }
.flow-mini i { flex: 1 1 8px; min-width: 8px; height: 1px; background: var(--line); }
@keyframes fm { 0%, 100% { color: var(--muted); border-color: var(--line); } 8%, 30% { color: var(--cyan); border-color: rgba(135, 190, 200, 0.6); background: rgba(135, 190, 200, 0.12); } 40% { color: var(--muted); border-color: var(--line); background: rgba(255, 255, 255, 0.04); } }
@media (prefers-reduced-motion: reduce) { .flow-mini span { animation: none; } }
@media (max-width: 1100px) { .road.r4 { grid-template-columns: 1fr 1fr; } .road.r4 .road-line { display: none; } .road.r4 { padding-top: 0; } .road.r4 .stage::before { display: none; } }
@media (max-width: 640px) { .road.r4 { grid-template-columns: 1fr; } }
.stage.wip p b { color: var(--cyan); font-weight: 700; }
.flow-mini { gap: 4px; }
.flow-mini span { white-space: nowrap; padding: 3px 8px; }
.flow-mini i { flex: 1 1 4px; min-width: 4px; }

/* hero: the line a prompt injection slips into the prompt */
.inj { position: absolute; left: 50%; top: calc(50% - var(--s) * 0.232); transform: translate(-50%, 4px); z-index: 4; max-width: calc(var(--s) * 0.5); padding: 5px 10px; border-radius: 10px; border: 1px solid rgba(244, 114, 182, 0.75); background: rgba(12, 21, 26, 0.92); color: #f9a8d4; font-size: max(10px, calc(var(--s) * 0.021)); line-height: 1.35; text-align: center; opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.inj.show { opacity: 1; transform: translate(-50%, 0); }

/* RedPhys / LoopLeap Lab: paper-aligned branding; existing interactive behavior retained. */
.brand-logo { background: #fff; border-radius: 7px; padding: 3px 8px; flex-shrink: 0; }
.brand-logo img { width: 154px; height: auto; }
.links { flex-wrap: wrap; gap: 10px 18px; }
.hero-inner { grid-template-columns: 1.25fr 1fr; gap: 28px; }
.hero h1 { font-size: clamp(2rem, 3vw, 2.45rem); line-height: 1.14; }
.lab-note { color: var(--cyan); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .83rem; }
.venue-note { margin-top: 5px; }
.hero .lead { font-size: 1.05rem; line-height: 1.65; max-width: 650px; }
.authors { color: var(--text); margin: 20px 0; font-size: .9rem; line-height: 1.8; }
.authors span { color: var(--muted); }
.hero .stats { margin: 24px 0; }
.hero .glow { opacity: .18; }
.hero-vis { min-width: 0; }
.overview-section { padding-top: 40px; }
.overview-section .head { max-width: 780px; margin-bottom: 28px; }
.paper-overview { background: white; color: #53616b; border: 1px solid #bbc8ce; border-radius: 12px; padding: 22px; }
.paper-overview img { width: 100%; height: auto; }
.paper-overview figcaption { margin-top: 14px; font-size: .9rem; line-height: 1.5; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.scope-grid article { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.scope-grid h3 { margin-bottom: 8px; color: var(--cyan); }
.scope-grid p, .scope-note { color: var(--muted); }
.scope-note { margin-top: 20px; padding: 18px 22px; border-left: 3px solid var(--cyan); background: var(--panel); }
.scope-note strong { color: var(--text); }
.repo-link { margin-top: 20px; text-align: center; font-size: .92rem; overflow-wrap: anywhere; }
.repo-link a, .citation-note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.citation-note { max-width: 840px; margin: -20px auto 26px; color: var(--muted); line-height: 1.7; }
.footer .brand-logo { width: fit-content; margin: 0 auto 18px; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } .hero-copy { max-width: 760px; margin: auto; } .hero-vis { width: 100%; } .nav { gap: 18px; } .links { margin-left: 0; gap: 8px 14px; } }
@media (max-width: 600px) { .scope-grid { grid-template-columns: 1fr; } .paper-overview { padding: 10px; border-radius: 8px; } .paper-overview figcaption { font-size: .8rem; } .brand-logo img { width: 132px; } .hero h1 { font-size: 2rem; } .nav { align-items: flex-start; } .citation-note { margin-top: 0; } }
