/* Agent Manager GD website. Same palette as the app's Focus theme (app/scripts/am_theme.gd).
   The touch of its own: a control room. Status lights (working, waits for you, asks, done), terminal frames, mono. */
:root {
  --bg: #172331;
  --bg-2: #1b293a;
  --panel: #1f2f42;
  --panel-2: #263a51;
  --border: #33506d;
  --deep: #2b5a7a;
  --deep-light: #5596bb;
  --mint: #8fe3ef;
  --mint-soft: #c9f4f9;
  --violet: #c8b6ff;
  --text: #e8f1f7;
  --muted: #9fb6c8;
  --faint: #617c92;
  --warn: #f5cf74;
  --orange: #ff9e64;
  --error: #ff8f8f;
  --info: #93cff5;
  --green: #7dd3a8;
  --on-accent: #0d1d26;
  --radius: 14px;
  --max: 1180px;
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, Ubuntu, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, "DejaVu Sans Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); }
a:hover { color: var(--mint-soft); }
:focus-visible { outline: 2px solid var(--mint-soft); outline-offset: 3px; border-radius: 6px; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--panel-2); padding: .1em .38em; border-radius: 5px; }
kbd { background: var(--panel-2); border: 1px solid var(--border); border-bottom-width: 2px; padding: .05em .45em; border-radius: 6px; color: var(--mint-soft); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.overline { font-family: var(--mono); color: var(--mint); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9em; }
.overline::before { content: "◆ "; color: var(--violet); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(23, 35, 49, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { max-width: var(--max); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--mono); font-weight: 700; letter-spacing: .08em; font-size: .92rem; }
.brand b { color: var(--violet); }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 8px; font-size: .94rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--panel); }
.nav-cta { border: 1px solid var(--border); }
.nav-toggle { display: none; margin-left: auto; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 1.1rem; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; }
  .nav-links.open { display: flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--panel-2); color: var(--text); border-color: var(--deep-light); }
.btn-primary { background: var(--mint); color: var(--on-accent); border-color: var(--mint); }
.btn-primary:hover { background: var(--mint-soft); color: var(--on-accent); }

/* Status lights: the app's language */
.light { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: var(--faint); margin-right: .45em; vertical-align: .05em; }
.light.working { background: var(--info); box-shadow: 0 0 0 0 rgba(147, 207, 245, .7); animation: pulse 1.8s infinite; }
.light.ok { background: var(--orange); }
.light.asks { background: var(--warn); }
.light.done { background: var(--green); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(147, 207, 245, .6); } 70% { box-shadow: 0 0 0 8px rgba(147, 207, 245, 0); } 100% { box-shadow: 0 0 0 0 rgba(147, 207, 245, 0); } }

/* Hero */
.hero { position: relative; padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(159, 182, 200, .16) 1px, transparent 1.3px); background-size: 28px 28px; background-position: -14px -14px; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 42%, #000 15%, transparent 78%); mask-image: radial-gradient(ellipse 75% 70% at 62% 42%, #000 15%, transparent 78%); }
.hero-matrix { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 80% 75% at 60% 45%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 80% 75% at 60% 45%, #000 25%, transparent 80%); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, rgba(143, 227, 239, .10), transparent 60%), linear-gradient(180deg, transparent 70%, var(--bg)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; max-width: 1360px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-family: var(--mono); font-size: clamp(1.6rem, 3.6vw, 3.2rem); white-space: nowrap; letter-spacing: .02em; margin-bottom: .2em; }
.hero h1 .accent { background: linear-gradient(90deg, var(--mint), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; margin-bottom: .6em; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.ticker { display: flex; flex-direction: column; gap: 8px; margin: 0 0 6px; min-height: 40px; }
.ticker .pill { align-self: flex-start; font-family: var(--mono); font-size: .86rem; background: rgba(31, 47, 66, .9); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: clamp(1.6rem, 7.4vw, 3.2rem); } }

/* Screens: a frame like the app's own window */
.screen { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--panel); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(143, 227, 239, .06); }
.screen .bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-family: var(--mono); font-size: .78rem; color: var(--muted); background: var(--bg-2); border-bottom: 1px solid var(--border); }
.screen .bar .dots { display: flex; gap: 6px; margin-right: 6px; }
.screen .bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-2); }
.screen img { width: 100%; cursor: zoom-in; }
.screen figcaption, .shot-caption { padding: 10px 14px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); }
.hero .screen { transform: perspective(1600px) rotateY(-4deg) rotateX(1deg); transition: transform .6s ease; }
.hero .screen:hover { transform: none; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(26px, 4vw, 56px); align-items: center; margin: 0 0 clamp(56px, 8vw, 96px); }
.feature:last-child { margin-bottom: 0; }
.feature.flip > :first-child { order: 2; }
.feature h3 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); }
.feature p { color: var(--muted); }
.feature ul { padding-left: 1.1em; color: var(--muted); }
.feature li { margin: .3em 0; }
.feature li b { color: var(--text); }
.tag { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); border: 1px solid rgba(200, 182, 255, .35); padding: 3px 9px; border-radius: 999px; margin-bottom: 12px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); margin: 0; }
.card .icon { font-family: var(--mono); color: var(--mint); font-size: 1.2rem; }

/* Terminal snippet */
.term { font-family: var(--mono); font-size: .86rem; background: #0f1823; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; color: var(--text); overflow-x: auto; white-space: pre; line-height: 1.55; }
.term .p { color: var(--green); }
.term .c { color: var(--faint); }
.term .k { color: var(--violet); }
.term .s { color: var(--warn); }

/* Better together */
.together { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.together .side { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.together .side.brain { border-color: rgba(200, 182, 255, .45); background: linear-gradient(160deg, rgba(200, 182, 255, .08), var(--panel)); }
.together .bridge { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; font-family: var(--mono); color: var(--mint); font-size: .8rem; text-align: center; }
.together .bridge span { border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; background: var(--bg-2); white-space: nowrap; }
@media (max-width: 860px) { .together { grid-template-columns: 1fr; } }

/* The Brain cycle: a session orients, works, you decide, the next one knows */
.cycle { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: c; }
.cycle li { counter-increment: c; position: relative; background: var(--panel); border: 1px solid rgba(200, 182, 255, .35); border-radius: var(--radius); padding: 20px 18px 18px; }
.cycle li::before { content: counter(c); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: var(--on-accent); font-family: var(--mono); font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.cycle li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--violet); font-family: var(--mono); z-index: 1; }
.cycle b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.cycle span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .cycle { grid-template-columns: 1fr 1fr; } .cycle li::after { display: none; } }
@media (max-width: 520px) { .cycle { grid-template-columns: 1fr; } }

/* Two screenshots side by side, each with its caption */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.shot { margin: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; cursor: zoom-in; }
.shot-caption b { color: var(--text); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* Built in loops */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--deep), var(--border)); }
.timeline li { display: grid; grid-template-columns: 104px 1fr; column-gap: 34px; padding: 10px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 113px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--mint); }
.timeline li.brain::before { border-color: var(--violet); background: var(--violet); }
.timeline .when { grid-row: 1 / span 2; text-align: right; font-family: var(--mono); font-size: .82rem; color: var(--mint); padding-top: 3px; }
.timeline li.brain .when, .timeline li.brain b { color: var(--violet); }
.timeline b { display: block; }
.timeline li > span:last-child { color: var(--muted); font-size: .93rem; }
@media (max-width: 560px) {
  .timeline::before { left: 6px; } .timeline li { grid-template-columns: 1fr; padding-left: 28px; } .timeline li::before { left: 1px; }
  .timeline .when { grid-row: auto; text-align: left; }
}

/* Principles and architecture */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.arch .box { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; position: relative; }
.arch .box h3 { font-family: var(--mono); font-size: .95rem; color: var(--mint); }
.arch .box p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .arch { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .arch { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--faint); font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .light.working { animation: none; } .hero .screen { transform: none; } html { scroll-behavior: auto; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 20, .92); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; border-radius: 10px; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); }

/* Docs and How-to layout (side navigation) */
.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 720px; }
.with-toc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 80px; }
.toc { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; font-size: .92rem; border-right: 1px solid var(--border); padding-right: 16px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.toc a:hover, .toc a.active { color: var(--text); background: var(--panel); }
.toc .group { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin: 16px 0 4px 8px; }
.doc h2 { margin-top: 2.2em; padding-top: .4em; border-top: 1px solid var(--border); }
.doc h2:first-child { margin-top: 0; border-top: 0; }
.doc h3 { margin-top: 1.6em; }
.doc p, .doc li { color: #d3e1ec; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .94rem; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--mint); font-weight: 600; }
.note { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--mint); border-radius: 8px; padding: 12px 16px; margin: 1em 0; }
.note.warn { border-left-color: var(--warn); }
@media (max-width: 900px) { .with-toc { grid-template-columns: 1fr; } .toc { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 12px; } }

/* How-to guides (generated by tools/howto/build_page.py) */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 8px 0 56px; }
.guide-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.guide-card:hover { border-color: var(--mint); transform: translateY(-2px); color: var(--text); }
.guide-card img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--border); }
.guide-card > span { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.guide-card span span { color: var(--muted); font-size: .9rem; }
.guide-card small { color: var(--mint); font-family: var(--mono); font-size: .76rem; margin-top: 4px; }
.guide { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin-bottom: 36px; scroll-margin-top: 80px; }
.guide h2 { margin-top: 0; }
.guide .goal { font-size: 1.08rem; color: var(--text); }
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: .82rem; margin: 0 0 8px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.badge { border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; text-transform: none; letter-spacing: 0; }
.badge.real { border-color: rgba(200, 182, 255, .5); color: var(--violet); }
.guide .note ul { margin: 6px 0 0; padding-left: 20px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 22px 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--border); align-items: start; }
.steps .step-text::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); color: var(--mint); font-weight: 700; margin-bottom: 6px; }
.steps .do { margin: 0 0 10px; }
.steps .see { color: var(--muted); margin: 0; padding-left: 12px; border-left: 2px solid var(--deep); }
.steps .shot { margin: 0; }
.steps .shot img { aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .steps > li { grid-template-columns: 1fr; } }
.trouble { margin-top: 18px; background: rgba(245, 207, 116, .05); border: 1px solid rgba(245, 207, 116, .3); border-radius: 10px; padding: 12px 16px; }
.trouble summary { cursor: pointer; color: var(--warn); font-weight: 600; }
.trouble ul { margin: 10px 0 0; padding-left: 20px; } .trouble li { margin-bottom: 6px; color: var(--muted); } .trouble li b { color: var(--text); }
.guide-next { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.coming-title { font-size: 1.2rem; color: var(--muted); }
.coming { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.coming li { border: 1px dashed var(--border); border-radius: 10px; padding: 10px 14px; color: var(--muted); }
.coming li span { display: block; font-family: var(--mono); font-size: .72rem; color: var(--violet); text-transform: uppercase; letter-spacing: .1em; }

/* The hero's live control room (js/live.js): sizes follow the frame's width (container units) */
.live-wrap { position: relative; }
.hero .live-wrap { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.screen .bar .bar-right { margin-left: auto; }
.live-pause { font: inherit; font-size: .74rem; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: 2px 9px; cursor: pointer; }
.live-pause:hover { color: var(--text); border-color: var(--deep-light); }
.live-cap { font-size: .82rem !important; }
.live { container-type: inline-size; position: relative; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; transition: opacity .4s ease; }
.live.fade { opacity: .25; }
.lv-app { position: absolute; inset: 0; display: grid; grid-template-columns: 30% 1fr; font-size: 1.95cqw; color: var(--text); user-select: none; }
.lv-side { position: relative; background: var(--bg-2); border-right: 1px solid var(--border); padding: 1.6cqw 1.3cqw; display: flex; flex-direction: column; gap: .7cqw; overflow: hidden; }
.lv-brand { display: flex; justify-content: space-between; font-size: 1.56cqw; letter-spacing: .04em; color: var(--mint); }
.lv-brand span { color: var(--violet); font-weight: 700; }
.lv-new { display: grid; grid-template-columns: 2.3fr 1fr; gap: .6cqw; font-size: 1.49cqw; }
.lv-new span { border: 1px solid var(--border); border-radius: .6cqw; padding: .55cqw; text-align: center; background: var(--panel); }
.lv-over { margin: .5cqw 0 0; font-size: 1.37cqw; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mint); }
.lv-over span { font-weight: 600; margin-left: .3em; }
.lv-over.warn { color: var(--orange); }
.lv-queue { display: flex; flex-direction: column; gap: .6cqw; }
.lv-wait { border: 1px solid var(--orange); border-radius: .8cqw; padding: .7cqw .8cqw; background: rgba(255, 158, 100, .06); animation: lv-in .35s ease; }
.lv-wait.st-asks { border-color: var(--warn); background: rgba(245, 207, 116, .06); }
.lv-wait b { display: block; font-size: 1.49cqw; }
.lv-wait i { display: block; font-style: normal; color: var(--muted); font-size: 1.3cqw; margin: .2cqw 0 .5cqw; }
.lv-btns { display: flex; gap: .4cqw; }
.lv-btns button { font: inherit; font-size: 1.3cqw; color: var(--text); background: var(--panel-2); border: 1px solid var(--border); border-radius: .5cqw; padding: .35cqw .7cqw; cursor: pointer; transition: transform .12s, background .12s; }
.lv-btns .lv-approve { border-color: var(--green); }
.lv-btns button.pressed, .lv-card.pressed { transform: scale(.94); background: var(--deep); }
.lv-tree { display: flex; flex-direction: column; gap: .5cqw; }
.lv-card { display: grid; grid-template-columns: auto 1fr auto; gap: .8cqw; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: .8cqw; padding: .5cqw .8cqw; transition: border-color .3s, background .3s, transform .12s; }
.lv-card.fresh { animation: lv-in .45s ease; }
.lv-card.sel { border-color: var(--mint); background: var(--panel-2); }
.lv-card.st-ok { border-color: var(--orange); }
.lv-card.st-asks { border-color: var(--warn); }
.lv-icon { display: grid; place-items: center; width: 3cqw; height: 3cqw; border-radius: .6cqw; background: #2a2630; color: #ff8a65; font-size: 1.69cqw; }
.lv-icon.t-codex { background: #1d3633; color: var(--green); }
.lv-icon.t-shell { background: var(--panel-2); color: var(--muted); }
.lv-body { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.lv-body em { font-style: normal; color: var(--violet); font-size: .85em; }
.lv-state { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-body b { font-size: 1.56cqw; font-weight: 600; }
.lv-state { font-style: normal; font-size: 1.3cqw; color: var(--muted); transition: color .3s; }
.st-working .lv-state { color: var(--info); }
.st-ok .lv-state { color: var(--orange); }
.st-asks .lv-state { color: var(--warn); }
.lv-body q { font-size: 1.23cqw; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; quotes: "“" "”"; }
.lv-body small { font-size: 1.17cqw; color: var(--faint); display: flex; gap: .7em; white-space: nowrap; overflow: hidden; }
.lv-body small .br { color: var(--violet); }
.lv-dot { width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--faint); }
.st-working .lv-dot { background: var(--info); animation: pulse 1.6s infinite; }
.st-ok .lv-dot { background: var(--orange); animation: pulse 1s infinite; }
.st-asks .lv-dot { background: var(--warn); animation: pulse 1s infinite; }
.st-done .lv-dot { background: var(--mint); }
.lv-brain { margin: auto 0 0; display: flex; align-items: center; gap: 1cqw; padding: .8cqw 1cqw; border: 1px solid rgba(200, 182, 255, .45); border-radius: .9cqw; background: rgba(200, 182, 255, .07); }
.lv-brain > i { font-style: normal; font-size: 2.6cqw; line-height: 1; color: var(--violet); transition: transform .35s ease, text-shadow .35s; }
.lv-brain b { display: block; font-size: 1.37cqw; font-weight: 650; }
.lv-brain b em { font-style: normal; font-weight: 600; color: var(--violet); }
.lv-brain small { display: block; font-size: 1.1cqw; color: var(--muted); }
.lv-brain.glow > i, .lv-body em.glow { transform: scale(1.45); text-shadow: 0 0 1.2cqw rgba(200, 182, 255, .9); }
.lv-body em { display: inline-block; transition: transform .35s ease, text-shadow .35s; }
.lv-body em.soft { opacity: .55; }
.lv-main { display: flex; flex-direction: column; min-width: 0; }
.lv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1cqw; padding: 1.3cqw 1.6cqw .9cqw; border-bottom: 1px solid var(--border); }
.lv-head { display: flex; align-items: center; gap: 1.2cqw; min-width: 0; }
.lv-title { display: flex; flex-direction: column; min-width: 0; }
.lv-title b { font-size: 1.95cqw; }
.lv-title small { font-size: 1.23cqw; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-pill { display: inline-flex; align-items: center; gap: .5cqw; font-size: 1.37cqw; white-space: nowrap; color: var(--muted); }
.lv-pill.st-working { color: var(--info); } .lv-pill.st-ok { color: var(--orange); } .lv-pill.st-asks { color: var(--warn); } .lv-pill.st-done { color: var(--mint); }
.lv-pill .lv-dot { margin: 0; }
.lv-views { display: flex; gap: .3cqw; white-space: nowrap; font-size: 1.23cqw; color: var(--muted); }
.lv-views span { border: 1px solid var(--border); border-radius: .5cqw; padding: .35cqw .6cqw; background: var(--panel); }
.lv-views span.on { border-color: var(--mint); color: var(--text); }
.lv-term { flex: 1; margin: 1.2cqw; padding: 1.2cqw 1.4cqw; background: #121d2b; border: 1px solid var(--border); border-radius: .8cqw; box-shadow: inset 0 0 4cqw rgba(0, 0, 0, .25); transition: border-color .4s, box-shadow .4s; font-family: "JetBrains Mono", var(--mono); font-size: 1.52cqw; line-height: 1.55; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.lv-term .ln { white-space: pre; overflow: hidden; text-overflow: ellipsis; animation: lv-type .25s ease; }
.lv-term .prompt { color: #e8f1f7; background: rgba(255, 255, 255, .06); white-space: pre-wrap; padding: .2cqw .4cqw; }
.lv-term .tool { color: #e8f1f7; } .lv-term .tool::first-letter { color: var(--green); }
.lv-term .dim { color: var(--faint); }
.lv-term .text { color: var(--text); }
.lv-term .code { color: #c9d6e2; }
.lv-term kw { color: #ff7ab2; } .lv-term ty { color: #8fd6ff; } .lv-term fn { color: #82e0aa; } .lv-term st { color: #f5cf74; } .lv-term nu { color: #c8b6ff; }
.lv-term .q { color: var(--text); font-weight: 600; }
.lv-term .tabs b { background: var(--info); color: var(--on-accent); padding: 0 .3em; font-weight: 500; }
.lv-term .opt { color: var(--muted); } .lv-term .opt.sel { color: var(--info); }
.lv-term .spin { color: #e98a6c; }
.lv-term .spin.done { color: var(--faint); }
.lv-term .rule { height: 1px; background: var(--border); margin: .5cqw 0; }
.lv-term .in { color: var(--muted); }
.lv-term .foot { color: var(--warn); font-size: 1.3cqw; }
.lv-term .caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--muted); animation: lv-blink 1s steps(1) infinite; }
.lv-toasts { position: absolute; right: 1.6cqw; bottom: 1.6cqw; display: flex; flex-direction: column; align-items: flex-end; gap: .6cqw; pointer-events: none; }
.lv-toast { font-size: 1.49cqw; padding: .8cqw 1.2cqw; border-radius: .8cqw; background: var(--panel-2); border: 1px solid var(--deep-light); box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .4); animation: lv-in .35s ease; transition: opacity .45s, transform .45s; }
.lv-toast.ok { border-color: var(--orange); } .lv-toast.asks { border-color: var(--warn); } .lv-toast.done { border-color: var(--mint); }
.lv-toast.brain { border-color: var(--violet); color: var(--violet); background: linear-gradient(160deg, rgba(200, 182, 255, .14), var(--panel-2)); }
.lv-toast.out { opacity: 0; transform: translateY(.6cqw); }
.lv-cursor { position: absolute; left: 0; top: 0; width: 2cqw; height: auto; opacity: 0; transition: transform .7s cubic-bezier(.45, .05, .25, 1), opacity .3s, visibility .3s; filter: drop-shadow(0 .2cqw .4cqw rgba(0, 0, 0, .5)); pointer-events: none; visibility: hidden; z-index: 3; }
.lv-cursor.on { opacity: 1; visibility: visible; }
.lv-cursor.click { scale: .85; }
@keyframes lv-in { from { opacity: 0; transform: translateY(-.6cqw); } to { opacity: 1; transform: none; } }
@keyframes lv-type { from { opacity: 0; } to { opacity: 1; } }
@keyframes lv-blink { 50% { opacity: 0; } }
@container (max-width: 560px) { .lv-views, .lv-body small, .lv-body q, .lv-wait i { display: none; } .lv-app { font-size: 2.6cqw; } }
@media (prefers-reduced-motion: reduce) { .live *, .live { animation: none !important; transition: none !important; } }
.hero-grid > * { min-width: 0; }
.live-wrap { max-width: 100%; }
@media (max-width: 980px) { .hero .live-wrap { transform: none; } }
/* Live hero: the Grid view and voice dictation */
.lv-main { position: relative; }
.lv-grid { display: none; flex: 1; margin: 1.2cqw; gap: .9cqw; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; min-height: 0; }
.lv-main.grid .lv-grid { display: grid; }
.lv-main.grid .lv-term { display: none; }
.lv-tile { background: #142030; border: 1px solid var(--border); border-radius: .8cqw; padding: .8cqw 1cqw; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; animation: lv-in .3s ease; transition: border-color .3s; }
.lv-tile.st-done { border-color: rgba(143, 227, 239, .5); }
.lv-tile p { margin: 0 0 .5cqw; display: flex; align-items: center; gap: .6cqw; font-size: 1.2cqw; color: var(--muted); }
.lv-tile.st-working p { color: var(--info); } .lv-tile.st-done p { color: var(--mint); }
.lv-tb { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; font-family: "JetBrains Mono", var(--mono); font-size: 1.05cqw; line-height: 1.5; color: #c9d6e2; overflow: hidden; }
.lv-tb .ln { white-space: pre; overflow: hidden; text-overflow: ellipsis; animation: lv-type .25s ease; }
.lv-tb .tool::first-letter { color: var(--green); }
.lv-tb .good { color: var(--green); } .lv-tb .bad { color: var(--error); } .lv-tb .spin { color: var(--faint); }
.lv-voice { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.96); width: 72%; display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; align-items: center; gap: .6cqw 1.2cqw; padding: 1.6cqw 2cqw; background: rgba(31, 47, 66, .97); border: 1px solid var(--mint); border-radius: 1.2cqw; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 2; }
.lv-voice.on { opacity: 1; transform: translate(-50%, -50%); }
.lv-voice .mic { font-size: 2.4cqw; }
.lv-meter { display: flex; align-items: center; gap: .3cqw; height: 2.6cqw; }
.lv-meter i { width: .45cqw; height: 30%; background: var(--mint); border-radius: .3cqw; transition: height .12s; }
.lv-vt { font-size: 1.35cqw; color: var(--text); }
.lv-vt small { color: var(--muted); font-size: .85em; }
.lv-voice .said { grid-column: 1 / -1; font-family: "JetBrains Mono", var(--mono); font-weight: 500; font-size: 1.5cqw; color: var(--mint-soft); min-height: 1.5em; }
.live.calm .lv-cursor { transition: opacity .01s; }
.lv-term .typed { color: var(--text); }
/* Hero terminal, closer to Claude Code: welcome box, diff lines, a breathing spinner, the test run */
.lv-main:has(.lv-pill.st-working) .lv-term { border-color: rgba(147, 207, 245, .35); box-shadow: inset 0 0 4cqw rgba(0, 0, 0, .25), 0 0 2.4cqw rgba(147, 207, 245, .08); }
.lv-welcome { align-self: flex-start; display: flex; flex-direction: column; gap: .2cqw; margin-bottom: auto; padding: .9cqw 1.6cqw .9cqw 1.2cqw; border: 1px solid #d77757; border-radius: .7cqw; color: var(--muted); animation: lv-type .4s ease; }
.lv-welcome b { color: var(--text); font-weight: 600; margin-bottom: .6cqw; } .lv-welcome b i { font-style: normal; color: #d77757; }
.lv-welcome .cwd { margin-top: .6cqw; color: var(--faint); }
.lv-term .add { background: rgb(27, 58, 38); color: #d8f3e2; }
.lv-term .del { background: rgb(66, 31, 38); color: #f6d6db; }
.lv-term .add, .lv-term .del { margin: 0 -.4cqw; padding: 0 .4cqw; }
.lv-term .good { color: var(--green); }
.lv-term b.ok { color: var(--green); font-weight: 600; }
.lv-term .spin .g { display: inline-block; width: 1em; text-align: center; color: #e98a6c; }
.lv-term .spin .verb { color: #e98a6c; background: linear-gradient(90deg, #e98a6c 0%, #e98a6c 40%, #ffd3c2 50%, #e98a6c 60%, #e98a6c 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: lv-shimmer 1.8s linear infinite; }
.lv-term .spin .meta { color: var(--faint); }
.lv-term .foot { display: flex; justify-content: space-between; }
.lv-term .foot .ctx { color: var(--violet); opacity: .8; }
@keyframes lv-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (max-width: 600px) {
  .guide-cards { gap: 10px; }
  .guide-card { flex-direction: row; align-items: center; }
  .guide-card img { width: 38%; flex: none; border-bottom: 0; border-right: 1px solid var(--border); }
  .guide-card > span { padding: 10px 12px; }
  .guide-card span span { display: none; }
}

/* The showcase video (#showcase): a 16:9 player in the site's terminal frame, poster first, no sound until asked */
.showcase .section-head h2 { text-wrap: balance; }
.showcase-player { margin: 0 auto; max-width: 1080px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(143, 227, 239, .08); }
.showcase-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #101a26; }
.showcase-player figcaption { padding: 12px 16px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--border); }
.showcase-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; text-align: center; }
.license-line { margin: 0; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--warn); font-size: .95rem; }
.showcase-foot .hero-actions { justify-content: center; }

/* ================================================================ Home, « Your agent lab » (2026-11-13, js/home.js) */
.home .hero-lab { padding-bottom: clamp(34px, 5vw, 60px); }
@media (min-width: 981px) { .hero-lab .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7.4fr); } }
.tagline-lab { font-family: var(--mono); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.05; margin: .15em 0 .45em; letter-spacing: -.01em; }
.tagline-lab span { background: linear-gradient(92deg, var(--mint) 0%, var(--violet) 55%, var(--orange) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lab-sheen 9s ease-in-out infinite alternate; }
@keyframes lab-sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.lead b { color: var(--text); }
.subline { font-family: var(--mono); font-size: .86rem; color: var(--mint); letter-spacing: .04em; margin: 14px 0 0; }
.btn-ghost { background: transparent; }
.hero-film { position: relative; transform: perspective(1800px) rotateY(-5deg) rotateX(1.5deg); transition: transform .7s ease, box-shadow .7s ease; box-shadow: 0 40px 100px rgba(0, 0, 0, .5), 0 0 0 1px rgba(143, 227, 239, .1), 0 0 80px rgba(143, 227, 239, .08); }
.hero-film:hover { transform: none; }
.hero-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0d1620; cursor: pointer; }
.hero-film .bar button { font: inherit; font-size: .74rem; color: var(--text); background: rgba(143, 227, 239, .08); border: 1px solid var(--border); border-radius: 6px; padding: 2px 10px; cursor: pointer; margin-left: 6px; }
.hero-film .bar button:hover { border-color: var(--mint); }
.hero-film .film-sound { color: var(--on-accent); background: var(--mint); border-color: var(--mint); font-weight: 600; }
.hero-film .film-sound[aria-pressed="true"] { background: transparent; color: var(--mint); }
@media (max-width: 980px) { .hero-film { transform: none; } }

/* the eleven tiles */
.features-index { padding-top: clamp(40px, 6vw, 72px); }
.fx-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; counter-reset: fx; }
.fx-grid a { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 12px; padding: 18px 18px 16px; height: 100%; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.fx-grid a::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 80%) var(--my, 0%), rgba(143, 227, 239, .16), transparent 55%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.fx-grid a:hover { transform: translateY(-3px); border-color: var(--deep-light); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); color: var(--text); }
.fx-grid a:hover::after { opacity: 1; }
.fx-n { grid-row: 1 / 3; font-family: var(--mono); font-size: .72rem; color: var(--faint); padding-top: 4px; }
.fx-i { position: absolute; right: 14px; top: 12px; font-size: 1.3rem; color: var(--mint); opacity: .5; transition: opacity .25s ease, transform .25s ease; }
.fx-grid a:hover .fx-i { opacity: 1; transform: scale(1.15) rotate(-6deg); }
.fx-grid b { font-size: 1.02rem; padding-right: 28px; }
.fx-grid small { color: var(--muted); font-size: .84rem; line-height: 1.4; }

/* the bar that follows you */
.featnav { position: fixed; left: 0; right: 0; top: 61px; z-index: 45; background: rgba(23, 35, 49, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transform: translateY(-110%); opacity: 0; transition: transform .35s ease, opacity .35s ease; pointer-events: none; }
.featnav.show { transform: none; opacity: 1; pointer-events: auto; }
.featnav-in { max-width: var(--max); margin: 0 auto; padding: 8px 16px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.featnav-in::-webkit-scrollbar { display: none; }
.featnav a { flex: none; font-family: var(--mono); font-size: .74rem; color: var(--muted); text-decoration: none; padding: 5px 11px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.featnav a:hover { color: var(--text); }
.featnav a.on { color: var(--on-accent); background: var(--mint); }
.featnav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--mint), var(--violet)); transform-origin: left; transform: scaleX(0); }

/* a feature section */
.feat-sec { scroll-margin-top: 104px; }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.feat.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat.flip > :first-child { order: 2; }
.feat h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.home h1, .home h2, .home h3, .home .section-head p { text-wrap: balance; }
.feat-num { font-family: var(--mono); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: .8em; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; color: var(--muted); }
.checks li { position: relative; padding-left: 26px; margin: .55em 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--mint); font-weight: 700; }
.checks li b { color: var(--text); }
.planned { margin: 26px 0 0; color: var(--muted); font-size: .92rem; }
.badge-soon { display: inline-block; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--warn); border: 1px solid rgba(245, 207, 116, .5); border-radius: 999px; padding: 1px 9px; margin-right: 8px; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; } .feat.flip > :first-child { order: 0; } }

/* a picture with numbered points, and a card per point outside the picture (js/home.js): beside it with a line to
   each point (01), or under it (03). A tour lights one at a time; the pointer or the keyboard takes over. */
.container.wide { max-width: 1380px; }
.anno { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr) minmax(0, 1fr); gap: clamp(26px, 3.4vw, 52px); align-items: stretch; }
.anno-col { list-style: none; margin: 0; padding: 0; }
.anno-col { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; }
.anno-fig { margin: 0; align-self: center; }
.anno-card { position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 4px 11px; padding: 14px 16px 13px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; outline: none; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease; }
.anno-n { grid-row: 1 / 4; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--mint); border: 1.5px solid var(--mint); background: var(--bg); transition: background .3s ease, color .3s ease; }
.anno-card > b { font-size: .98rem; line-height: 1.3; align-self: center; }
.anno-card > span:not(.anno-n) { grid-column: 2; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.anno-card > span b { color: var(--text); }
.anno-card em { grid-column: 2; justify-self: start; margin-top: 4px; font-style: normal; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; transition: color .3s ease, border-color .3s ease; }
.anno-card.on, .anno-card:focus-visible { border-color: var(--mint); background: var(--panel-2); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, .35), 0 0 0 3px rgba(143, 227, 239, .12); }
.anno-card.on .anno-n { background: var(--mint); color: var(--on-accent); }
.anno-card.on em { color: var(--mint); border-color: rgba(143, 227, 239, .5); }
.anno-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .8s ease .4s; }
.in .anno-lines, .anno.in .anno-lines { opacity: 1; }   /* the block that reveals may be the picture's own, or the viewer around it */
.anno-lines path { fill: none; stroke: rgba(143, 227, 239, .4); stroke-width: 1.5; transition: stroke .3s ease, stroke-width .3s ease; }
.anno-lines path.on { stroke: var(--mint); stroke-width: 2.5; filter: drop-shadow(0 0 5px rgba(143, 227, 239, .7)); }
.hot-wrap { position: relative; }
.hot { position: absolute; left: var(--x); top: var(--y); z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; font-family: var(--mono); font-size: .74rem; font-weight: 700; line-height: 1; color: var(--on-accent); background: var(--mint); box-shadow: 0 0 0 3px rgba(13, 29, 38, .85); transition: transform .3s ease, box-shadow .3s ease; }
.hot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; }
.hot.on { transform: scale(1.22); box-shadow: 0 0 0 3px rgba(13, 29, 38, .85), 0 0 18px var(--mint); }
.hot.on::after { animation: hot-ping 1.6s ease-out infinite; }
@keyframes hot-ping { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
/* the approvals picture has two states: each its own points and cards */
.viewer [data-tab="1"], .viewer.alt [data-tab="0"] { display: none; }
.viewer.alt .hot[data-tab="1"] { display: grid; }
.viewer.alt .anno-card[data-tab="1"] { display: grid; }
@media (max-width: 1040px) {
  .anno { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .anno-fig { grid-column: 1 / -1; order: -1; }
  .anno-lines { display: none; }
  .anno-col { justify-content: flex-start; gap: 12px; }
}
@media (max-width: 640px) { .anno { grid-template-columns: 1fr; } .hot { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: .66rem; } }

/* views and themes */
.viewer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { font: inherit; font-size: .9rem; color: var(--muted); background: none; border: 0; border-radius: 9px; padding: 7px 16px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--mint); color: var(--on-accent); font-weight: 600; }
.swatches { display: flex; gap: 10px; align-items: center; }
.swatches::before { content: "Themes"; font-family: var(--mono); font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; margin-right: 4px; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; padding: 0; transition: transform .2s ease, border-color .2s ease; }
.sw:hover { transform: scale(1.12); }
.sw.on { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(143, 227, 239, .25); }
.sw-focus { background: conic-gradient(#172331 0 50%, #8fe3ef 0 75%, #c8b6ff 0); }
.sw-terminal { background: conic-gradient(#050805 0 50%, #39ff7a 0 75%, #1f6b35 0); }
.sw-neon { background: conic-gradient(#1a0f2e 0 50%, #ff5fd2 0 75%, #4ff0ff 0); }
.sw-paper { background: conic-gradient(#f4ecdc 0 50%, #2a4a7a 0 75%, #c98b4b 0); }
.viewer-screen img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: opacity .18s ease, transform .18s ease; }
.viewer-img.swap { opacity: 0; transform: scale(.995); }

/* the control room's legend */
.legend { list-style: none; padding: 14px 16px; margin: 18px 0 0; display: grid; gap: 9px; color: var(--muted); font-size: .92rem; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.legend li { display: grid; grid-template-columns: 14px 11.5em 1fr; align-items: baseline; column-gap: 8px; }
.legend .light { margin: 0; justify-self: center; align-self: center; }
.legend b { color: var(--text); }

/* two screenshots, one over the other */
.stack { position: relative; padding: 0 0 12% 0; }
.stack .screen:first-child { width: 88%; }
.stack .stack-2 { position: absolute; right: 0; bottom: 0; width: 62%; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(143, 227, 239, .12); transition: transform .5s ease; }
.stack:hover .stack-2 { transform: translate(8px, 8px); }

/* the Brain's bridge, flowing */
.bridge-flow { position: relative; display: block; width: 100%; height: 14px; }
.bridge-flow::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: linear-gradient(90deg, var(--mint), var(--violet)); opacity: .5; }
.bridge-flow i { position: absolute; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: flow 3s linear infinite; }
.bridge-flow i:nth-child(2) { animation-delay: 1s; background: var(--violet); box-shadow: 0 0 10px var(--violet); animation-direction: reverse; }
.bridge-flow i:nth-child(3) { animation-delay: 2s; }
@keyframes flow { from { left: 0; } to { left: calc(100% - 8px); } }

/* MCP */
@keyframes blink { 50% { opacity: 0; } }
.orch { margin-top: clamp(56px, 8vw, 96px); padding: clamp(22px, 4vw, 44px); border: 1px solid rgba(200, 182, 255, .35); border-radius: 20px; background: linear-gradient(160deg, rgba(200, 182, 255, .07), transparent 55%), var(--bg); }
.orch-head { max-width: 800px; margin: 0 auto; text-align: center; }
.orch-head .feat-num { color: var(--violet); }
.orch-head h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.beta { font-size: .66rem; border: 1px solid rgba(245, 207, 116, .55); color: var(--warn); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.orch-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
@media (max-width: 860px) { .orch-steps { grid-template-columns: 1fr; } }

/* a screenshot that zooms inside its frame towards a detail, then comes back (js/home.js); the button switches by hand */
.zoom-frame { position: relative; overflow: hidden; }
.zoom-frame img { display: block; width: 100%; transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform 1.4s cubic-bezier(.5, .05, .2, 1); }
.zoom-fig.zoomed .zoom-frame img { transform: scale(var(--z, 3)); }
.shot.zoom-fig img { aspect-ratio: auto; object-fit: fill; }
.zoom-label { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); font-family: var(--mono); font-size: .74rem; color: var(--on-accent); background: var(--mint); border-radius: 8px; padding: 4px 11px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.zoom-fig.zoomed .zoom-label { opacity: 1; transform: none; transition-delay: 1s; }
.zoom-toggle { position: absolute; right: 10px; top: 10px; font: inherit; font-size: .74rem; color: var(--text); background: rgba(13, 22, 32, .82); border: 1px solid var(--border); border-radius: 8px; padding: 3px 10px; cursor: pointer; backdrop-filter: blur(4px); transition: border-color .2s ease, color .2s ease; }
.zoom-toggle:hover, .zoom-toggle:focus-visible { border-color: var(--mint); color: var(--mint); }
.zoom-fig.zoomed .zoom-toggle { border-color: var(--mint); }

/* the tunnel: three wires, each row lined up with its two ends */
.tunnel { position: relative; display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2.3fr) minmax(170px, 1fr); gap: 10px 0; align-items: center; margin: 10px 0 40px; padding: 22px 26px 18px; background: radial-gradient(ellipse at 50% 50%, rgba(143, 227, 239, .07), transparent 70%), var(--panel); border: 1px solid var(--border); border-radius: 18px; }
.tn-box { grid-row: 1 / 5; align-self: stretch; margin: -8px -12px; border-radius: 14px; border: 1px solid var(--deep-light); background: var(--bg); }
.tn-box-here { grid-column: 1; } .tn-box-cloud { grid-column: 3; border-color: rgba(200, 182, 255, .7); }
.tn-head, .tn-port, .tn-wire { position: relative; z-index: 1; }
.tn-head { grid-row: 1; padding: 2px 0 4px; }
.tn-h1 { grid-column: 1; } .tn-h3 { grid-column: 3; }
.tn-l { grid-column: 1; } .tn-w { grid-column: 2; } .tn-r { grid-column: 3; }
.tunnel .r2 { grid-row: 2; } .tunnel .r3 { grid-row: 3; } .tunnel .r4 { grid-row: 4; }
.tn-mid { grid-column: 2; justify-self: center; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.tn-port { font-family: var(--mono); font-size: .78rem; color: var(--text); padding: 7px 10px; border-radius: 8px; background: rgba(143, 227, 239, .07); border: 1px solid rgba(51, 80, 109, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-wire { display: flex; justify-content: center; align-items: center; height: 34px; margin: 0 12px; --wire: var(--mint); }
.tn-wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--border); }
.tn-wire em { position: relative; z-index: 1; font-style: normal; font-family: var(--mono); font-size: .72rem; color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px; white-space: nowrap; }
.tn-wire i { position: absolute; top: calc(50% - 3px); left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--wire); box-shadow: 0 0 10px var(--wire); animation: flow 2.6s linear infinite; }
.tn-wire i.back { animation-direction: reverse; animation-duration: 3.1s; }
.tn-wire i.late { animation-delay: -1.5s; }
.tn-wire.w2 { --wire: var(--violet); } .tn-wire.w3 { --wire: var(--warn); }
.tn-ssh { grid-column: 1 / -1; grid-row: 5; text-align: center; margin: 14px 0 0; font-family: var(--mono); font-size: .72rem; color: var(--faint); }
@media (max-width: 760px) {
  .tunnel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; padding: 18px 16px 14px; }
  .tn-mid, .tn-box { display: none; }
  .tn-h3, .tn-r { grid-column: 2; } .tn-w { grid-column: 1 / -1; height: 30px; margin: 8px 0 0; }
  .tunnel .tn-w.r2 { grid-row: 2; } .tunnel .tn-port.r2 { grid-row: 3; } .tunnel .tn-w.r3 { grid-row: 4; } .tunnel .tn-port.r3 { grid-row: 5; }
  .tunnel .tn-w.r4 { grid-row: 6; } .tunnel .tn-port.r4 { grid-row: 7; }
  .tn-wire em { font-size: .66rem; }
  .tn-ssh { grid-row: 8; }
}

/* voice */
.mini-cards { display: grid; gap: 12px; margin-top: 20px; }
.mini-cards .card { padding: 14px 18px; }
.mini-cards .card h3 { font-size: 1rem; margin-bottom: .3em; }

/* the lab */
.lab-band { position: relative; overflow: hidden; background: radial-gradient(ellipse at 15% 20%, rgba(200, 182, 255, .12), transparent 55%), radial-gradient(ellipse at 85% 80%, rgba(143, 227, 239, .1), transparent 55%), var(--bg); border-top: 1px solid var(--border); }
.lab-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 70px); align-items: start; margin-bottom: clamp(40px, 6vw, 64px); }
.lab-grid h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.principles-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.principles-list li { display: grid; gap: 2px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--mint); border-radius: 12px; }
.principles-list span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .lab-grid { grid-template-columns: 1fr; } }

/* loops: a rail, themes, search, cards */
.loop-rail { position: relative; display: flex; gap: 2px; overflow-x: auto; padding: 4px 4px 10px; margin-bottom: 18px; scrollbar-width: thin; }
.loop-rail::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 2px; background: linear-gradient(90deg, var(--deep), var(--mint)); opacity: .6; }
.dot-b { position: relative; flex: 1 0 40px; min-width: 40px; display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-family: var(--mono); font-size: .64rem; cursor: pointer; }
.dot-b .dot { width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: var(--ph, var(--mint)); border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--ph, var(--mint)); transition: transform .15s ease; }
.dot-b:hover .dot, .dot-b:focus-visible .dot { transform: scale(1.4); }
.dot-b:hover { color: var(--text); }
.dot-b.dim { opacity: .25; }
.ph-core { --ph: #93cff5; } .ph-brain { --ph: #c8b6ff; } .ph-git { --ph: #7dd3a8; } .ph-safety { --ph: #ff9e64; } .ph-voice { --ph: #f5cf74; } .ph-cloud { --ph: #8fe3ef; } .ph-site { --ph: #8196ae; }
.loop-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.loop-phases { display: flex; flex-wrap: wrap; gap: 6px; }
.loop-phases button { font: inherit; font-size: .82rem; color: var(--muted); background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--ph, var(--border)); border-radius: 8px; padding: 5px 12px; cursor: pointer; }
.loop-phases button[aria-pressed="true"] { color: var(--text); border-color: var(--ph, var(--mint)); background: var(--panel-2); }
.loop-search input { font: inherit; font-size: .9rem; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; min-width: 220px; }
.loop-search input:focus { outline: none; border-color: var(--mint); }
.loop-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.loop-list.collapsed:not(.filtering) .loop:nth-child(n+7) { display: none; }
.loop-list:empty::after, .loop-list[data-empty="Nothing matches."]::after { content: attr(data-empty); color: var(--muted); }
.loop { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--ph, var(--mint)); border-radius: var(--radius); padding: 16px 18px; transition: transform .2s ease, border-color .2s ease; }
.loop[hidden] { display: none; }
.loop:hover { transform: translateY(-2px); }
.loop h3 { font-size: 1.05rem; margin-bottom: .35em; }
.loop p { color: var(--muted); font-size: .9rem; margin: 0; }
.loop .loop-tag { font-family: var(--mono); font-size: .7rem; color: var(--ph, var(--mint)); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5em; }
.loop.flash { animation: loop-flash 1.6s ease; }
@keyframes loop-flash { 0%, 30% { box-shadow: 0 0 0 3px var(--ph, var(--mint)); } 100% { box-shadow: 0 0 0 0 transparent; } }
.loop-more-row { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.loop-more-row .btn { font: inherit; font-weight: 600; cursor: pointer; }

.final-cta .small-lab { font-size: clamp(1.4rem, 3vw, 2rem); }
.final-cta .license-line { margin-top: 26px; }
@media (prefers-reduced-motion: reduce) {
  .tagline-lab span, .hot.on::after, .bridge-flow i, .tn-wire i { animation: none; }
  .anno-card, .hot, .anno-lines { transition: none; }
  .tn-wire i { display: none; }
  .hero-film { transform: none; }
  .zoom-frame img, .zoom-label, .zoom-fig.zoomed .zoom-label { transition: none; }
}
.orch-steps .shot img { aspect-ratio: 4 / 3; }
.orch-steps .pos-right img { object-position: 100% 0; }
.orch-steps .pos-mid img { object-position: 40% 62%; }
.orch-steps .shot .crop { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.orch-steps .shot .crop img { aspect-ratio: auto; object-fit: fill; max-width: none; }
.orch-steps .pos-right .crop img { width: 222%; margin-left: -122%; }
.orch-steps .pos-mid .crop img { width: 227%; margin-left: -64%; margin-top: -31%; }
@media (max-width: 600px) {
  .fx-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .legend { grid-template-columns: 1fr; }
  .loop-search input { min-width: 0; width: 100%; }
  .loop-search { flex: 1 1 100%; }
  .stack { padding-bottom: 0; } .stack .screen:first-child { width: 100%; } .stack .stack-2 { position: static; width: 100%; margin-top: 12px; }
  .featnav { top: 57px; }
}

/* ---------------------------------------------------------------- 06 · the built-in MCP: a map, its calls, its tools (js/home.js) */
.mcp-stage { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.mcp-map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); gap: 0 clamp(24px, 3.2vw, 44px); align-items: center; padding: clamp(18px, 2.4vw, 30px); min-height: 430px; background: radial-gradient(ellipse at 40% 50%, rgba(143, 227, 239, .07), transparent 70%), var(--panel); border: 1px solid var(--border); border-radius: 18px; }
.mm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mm-lines path { fill: none; stroke: var(--border); stroke-width: 2; stroke-dasharray: 5 6; transition: stroke .3s ease, opacity .4s ease; }
.mm-lines path.hot { stroke: var(--mint); stroke-dasharray: none; }
.mm-lines path.no { stroke: var(--error); stroke-dasharray: 3 5; }
.mm-lines path.off { opacity: 0; }
.mm-dot { fill: var(--mint-soft); filter: drop-shadow(0 0 6px var(--mint)); }
.mm-node { position: relative; z-index: 1; display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); transition: border-color .3s ease, box-shadow .3s ease, opacity .5s ease, transform .5s ease; }
.mm-node b { font-size: .95rem; line-height: 1.25; }
.mm-node small { color: var(--muted); font-size: .78rem; }
.mm-lead { border-color: rgba(200, 182, 255, .7); box-shadow: 0 0 0 5px rgba(200, 182, 255, .07); }
.mm-ic { color: var(--orange); }
.mm-hub { border-color: var(--mint); text-align: center; justify-items: center; box-shadow: 0 0 0 5px rgba(143, 227, 239, .07), 0 0 40px rgba(143, 227, 239, .08); }
.mm-hub b { font-family: var(--mono); color: var(--mint); white-space: nowrap; }
.mm-hub small { white-space: nowrap; }
.mm-call { margin-top: 6px; font-family: var(--mono); font-size: .68rem; color: var(--on-accent); background: var(--mint); border-radius: 999px; padding: 1px 9px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-right { display: grid; gap: 9px; }
.mm-cap { margin: 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.mm-cap-kid { margin-top: 10px; color: var(--violet); }
.mm-s { grid-template-columns: 14px 1fr; column-gap: 8px; align-items: center; padding: 9px 12px; }
.mm-s .light { grid-row: 1 / 3; margin: 0; justify-self: center; width: 9px; height: 9px; }
.mm-kid { border-color: rgba(200, 182, 255, .6); }
.mm-kid.off { opacity: .32; border-style: dashed; transform: translateX(8px); }
.mm-node.flash { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(143, 227, 239, .18); }
.mm-node.blocked { border-color: var(--error); box-shadow: 0 0 0 4px rgba(255, 143, 143, .16); animation: mm-shake .4s ease; }
@keyframes mm-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.mcp-log { display: flex; flex-direction: column; margin: 0; }
.mcp-log .bar button { font: inherit; font-size: .74rem; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: 2px 9px; cursor: pointer; }
.mcp-log .bar button:hover { color: var(--text); border-color: var(--deep-light); }
.mcp-lines { flex: 1; height: 0; min-height: 380px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; padding: 14px 16px; background: #0f1823; font-family: var(--mono); font-size: .8rem; line-height: 1.6; }
.ml { white-space: pre-wrap; overflow-wrap: anywhere; }
.ml.call { color: var(--text); margin-top: .7em; }
.ml.call:first-child { margin-top: 0; }
.ml.call::before { content: "● "; color: var(--violet); }
.ml.call .fn { color: var(--violet); }
.ml.res, .ml.ok, .ml.no { padding-left: 2ch; color: var(--muted); }
.ml.res::before, .ml.ok::before, .ml.no::before { content: "⎿ "; color: var(--faint); }
.ml.ok { color: var(--green); }
.ml.no { color: var(--error); }
.ml.typing::after { content: "▍"; color: var(--mint); animation: blink 1s steps(1) infinite; }
.mcp-tools { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.mcp-tool { display: grid; align-content: start; gap: 5px; text-align: left; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 12px 11px; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.mcp-tool code { font-size: .78rem; color: var(--violet); background: none; padding: 0; border: 0; }
.mcp-tool span { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.mcp-tool em { justify-self: start; margin-top: 4px; font-style: normal; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; }
.mcp-tool em.any { color: var(--mint); } .mcp-tool em.new { color: var(--violet); } .mcp-tool em.own { color: var(--warn); }
.mcp-tool:hover { border-color: var(--deep-light); transform: translateY(-2px); }
.mcp-tool.on { border-color: var(--mint); background: var(--panel-2); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.mcp-rules { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mcp-rules li { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 4px 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.mcp-rules .r-ic { grid-row: 1 / 3; color: var(--mint); font-size: 1.15rem; line-height: 1.3; }
.mcp-rules b { font-size: .95rem; }
.mcp-rules li > span:last-child { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.connect-card { margin-top: 20px; padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--deep-light); background: var(--panel); }
.connect-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.connect-card b { color: var(--text); }
.connect-card .connect-title { font-family: var(--mono); font-size: .86rem; color: var(--mint); margin-bottom: 6px; }
@media (max-width: 1100px) { .mcp-stage { grid-template-columns: 1fr; } .mcp-lines { min-height: 300px; } .mcp-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mcp-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .mcp-map { grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); grid-template-areas: "lead lead" "hub right"; gap: 34px 26px; align-items: center; min-height: 0; }
  .mm-lead { grid-area: lead; } .mm-hub { grid-area: hub; } .mm-right { grid-area: right; }
  .mcp-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mcp-rules { grid-template-columns: 1fr; }
  .legend li { grid-template-columns: 14px 1fr; } .legend li > span:last-child { grid-column: 2; }
}
@media (max-width: 900px) { .feat.flip { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mm-node, .mm-node.blocked, .ml.typing::after { animation: none; transition: none; } }
#cloud .duo + p { margin-top: 18px; }

/* ---------------------------------------------------------------- enrichments (2026-11-13): cards under the viewer, a session's life, a repository line's signs, the ground button's states */
.viewer-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.viewer-cards .card { padding: 18px 20px; }
.viewer-cards .card h3 { font-size: 1.05rem; margin-bottom: .5em; }
.viewer-cards .card p { font-size: .92rem; line-height: 1.75; }
.viewer-cards .card p b { color: var(--text); }
.viewer-cards .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.viewer-cards .chips span { font-family: var(--mono); font-size: .72rem; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 1px 10px; background: var(--bg); }
.life { position: relative; list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.life::before { content: ""; position: absolute; left: 8.33%; right: 8.33%; top: 21px; height: 2px; background: linear-gradient(90deg, var(--mint), var(--violet)); opacity: .55; }
.life::after { content: ""; position: absolute; top: 17px; left: 8.33%; width: 10px; height: 10px; border-radius: 50%; background: var(--mint-soft); box-shadow: 0 0 12px var(--mint); animation: life-run 8s linear infinite; }
@keyframes life-run { from { left: 8.33%; } to { left: calc(91.67% - 10px); } }
.life li { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 4px; padding: 0 10px; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.life.in li { opacity: 1; transform: none; }
.life li:nth-child(2) { transition-delay: .14s; } .life li:nth-child(3) { transition-delay: .28s; } .life li:nth-child(4) { transition-delay: .42s; } .life li:nth-child(5) { transition-delay: .56s; } .life li:nth-child(6) { transition-delay: .7s; }
.life-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--mint); color: var(--mint); font-size: 1.05rem; }
.life li:nth-child(n+5) .life-ic { border-color: var(--violet); color: var(--violet); }
.life b { margin-top: 8px; font-size: .98rem; }
.life li > span:last-child { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.readline { margin-top: clamp(40px, 6vw, 64px); padding: 18px 22px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.readline-title { margin: 0 0 12px; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.readline ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 22px; }
.readline li { display: grid; align-content: start; gap: 4px; }
.readline li b { font-size: .95rem; }
.readline li > span:last-child { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.sig { display: flex; align-items: center; gap: 10px; height: 26px; }
.sig i { display: inline-block; flex: none; margin: 0; }
.sig em { font-style: normal; font-family: var(--mono); font-size: .72rem; color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 0 7px; background: var(--bg); }
.s-disc { width: 13px; height: 13px; border-radius: 50%; background: var(--muted); } .s-disc.ok { background: var(--green); }
.s-ring { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--muted); } .s-ring.wait { border-color: var(--warn); }
.s-diamond { width: 11px; height: 11px; background: var(--info); transform: rotate(45deg); }
.s-cross { position: relative; width: 13px; height: 13px; }
.s-cross::before, .s-cross::after { content: ""; position: absolute; left: 5.5px; top: -1px; width: 2px; height: 15px; background: var(--error); transform: rotate(45deg); }
.s-cross::after { transform: rotate(-45deg); }
.s-sq { width: 11px; height: 11px; background: var(--mint); border-radius: 2px; } .s-sq.dim { background: var(--muted); }
.s-pile { width: 11px; height: 11px; background: var(--warn); border-radius: 2px; box-shadow: 4px -4px 0 rgba(245, 207, 116, .6), 8px -8px 0 rgba(245, 207, 116, .3); margin-right: 8px !important; }
.s-up { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--green); }
.s-down { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid var(--orange); }
.btn-states { list-style: none; padding: 14px 16px; margin: 18px 0 0; display: grid; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.btn-states li { display: grid; grid-template-columns: 9.6em 1fr; align-items: center; column-gap: 12px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.pill-btn { justify-self: start; font-size: .84rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; white-space: nowrap; }
.pill-btn b { font-weight: 600; }
.pill-btn.ok { border-color: rgba(125, 211, 168, .6); } .pill-btn.warn { border-color: var(--warn); color: var(--warn); } .pill-btn.bad { border-color: var(--error); color: var(--error); }
@media (max-width: 900px) { .viewer-cards { grid-template-columns: 1fr; } .readline ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .life { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 8px; } .life::before, .life::after { display: none; } .btn-states li { grid-template-columns: 1fr; row-gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .life::after { display: none; } .life li { transition: none; } }

/* 03 · the control room, full width like 01: its two states above the picture, the states' legend and three facts under it */
.viewer-bar.centred { justify-content: center; }
.cr-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 980px; margin: clamp(30px, 4vw, 48px) auto 0; }
.cr-foot .legend, .cr-foot .checks { margin: 0; }
@media (max-width: 760px) { .cr-foot { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- compare: two rows on one scale. « Others » holds the common
   ground; ours holds the same ground, then goes further. No names, no scorecard. */
.compare { background: var(--bg); }
.cmp { display: grid; gap: 14px; max-width: 1148px; margin: 0 auto; }
.cmp-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 18px; }
.cmp-who { margin: 0; font-family: var(--mono); font-size: .86rem; letter-spacing: .04em; color: var(--muted); text-align: right; }
.cmp-us .cmp-who { color: var(--text); } .cmp-us .cmp-who b { color: var(--violet); }
.cmp-track { display: grid; grid-template-columns: minmax(0, 2fr) repeat(6, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.cmp-seg { display: grid; align-content: center; gap: 2px; min-height: 62px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); text-decoration: none; }
.cmp-seg b { font-size: .9rem; line-height: 1.25; }
.cmp-seg small { color: var(--muted); font-size: .72rem; line-height: 1.3; }
.cmp-base b { font-weight: 600; color: var(--muted); }
.cmp-us .cmp-base b { color: var(--text); }
.cmp-rest { grid-column: 2 / -1; align-self: center; height: 0; border-top: 2px dashed var(--border); opacity: .5; }
.cmp-plus { border-color: rgba(143, 227, 239, .55); background: linear-gradient(160deg, rgba(143, 227, 239, .12), var(--panel)); transform-origin: left center; opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .5s ease, border-color .2s ease, box-shadow .2s ease; }
.cmp.in .cmp-plus { opacity: 1; transform: none; }
.cmp.in .cmp-plus:nth-child(2) { transition-delay: .5s; } .cmp.in .cmp-plus:nth-child(3) { transition-delay: .68s; } .cmp.in .cmp-plus:nth-child(4) { transition-delay: .86s; } .cmp.in .cmp-plus:nth-child(5) { transition-delay: 1.04s; } .cmp.in .cmp-plus:nth-child(6) { transition-delay: 1.22s; } .cmp.in .cmp-plus:nth-child(7) { transition-delay: 1.4s; }
.cmp-plus b { color: var(--mint); }
.cmp-plus:hover, .cmp-plus:focus-visible { border-color: var(--mint); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); color: var(--text); transition-delay: 0s !important; }
@media (max-width: 1000px) {
  .cmp-row { grid-template-columns: 1fr; gap: 8px; } .cmp-who { text-align: left; }
  .cmp-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmp-base { grid-column: 1 / -1; } .cmp-rest { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cmp-plus { opacity: 1; transform: none; transition: none; } }
