@charset "UTF-8";

:root {
  color-scheme: dark;
  --abyss: #070b0d;
  --ink: #10181b;
  --ink-soft: #131e21;
  --bone: #eee9de;
  --bone-deep: #d9d4c8;
  --muted: #9aa9a4;
  --dim: #81958e;
  --teal: #62d6c5;
  --teal-light: #b1edda;
  --teal-dark: #163b35;
  --coral: #ff816a;
  --line: #243235;
  --line-light: #3b4a49;
  --paper: #e9e6dc;
  --paper-ink: #1b2928;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Songti SC", "Noto Serif CJK SC", STSong, Georgia, serif;
  --font-mono: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;
  --shell: min(1320px, calc(100vw - 96px));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--abyss); color: var(--bone); font: 15px/1.8 var(--font-sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, input, textarea, summary { outline: none; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 5px; }
button { border: 0; }
svg { display: block; }
p, h1, h2, h3, h4, figure { margin: 0; }
ol, ul { margin: 0; padding: 0; }
::selection { color: var(--abyss); background: var(--teal); }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.shell { width: var(--shell); margin-inline: auto; }
.mono, .eyebrow, .micro-label, .section-index { font-family: var(--font-mono); }
.eyebrow { color: var(--teal); font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .14em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--bone); color: var(--abyss); padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; font-size: 12px; }
.text-button:hover { color: var(--teal); }
.text-button .icon { width: 14px; height: 14px; }
.status-dot { display: inline-block; width: 5px; height: 5px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 12px #62d6c548; }

/* The prototype status is visible, not an API-state badge. */
.prototype-bar { border-bottom: 1px solid var(--line); background: #0c1315; color: var(--muted); font: 10px/1.4 var(--font-mono); letter-spacing: .035em; }
.prototype-bar-inner { min-height: 33px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.prototype-bar-inner > span:first-child { color: var(--teal); white-space: nowrap; }
.prototype-dot { display: inline-block; width: 4px; height: 4px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--coral); }
.prototype-divider { margin: 0 7px; color: var(--dim); }
.prototype-bar .text-button { color: var(--bone-deep); font: 10px var(--font-sans); white-space: nowrap; }
.prototype-bar-detail { margin-left: auto; }

/* Header */
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 37px; height: 41px; color: var(--teal); }
.brand-word { font-size: 29px; font-weight: 600; line-height: 1; letter-spacing: -.065em; }
.brand-period { color: var(--coral); }
.brand-descriptor { margin-left: 7px; padding-left: 16px; border-left: 1px solid var(--line-light); color: var(--dim); font: 8px/1.55 var(--font-mono); letter-spacing: .11em; }
.desktop-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; margin-right: auto; }
.nav-link { display: flex; align-items: baseline; gap: 7px; padding: 33px 0 30px; color: var(--muted); font-size: 12px; transition: color 160ms; }
.nav-link span { color: var(--dim); font: 8px var(--font-mono); }
.nav-link:hover, .nav-link.active { color: var(--bone); }
.nav-link.active::after { content: ""; position: absolute; bottom: -1px; width: 18px; height: 2px; background: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 21px; }
.language-button { display: flex; align-items: center; gap: 7px; background: transparent; padding: 6px 0; color: var(--muted); font: 10px var(--font-mono); }
.language-button .icon { width: 15px; height: 15px; }
.language-button:hover { color: var(--teal); }
.github-link { color: var(--muted); }
.github-link:hover { color: var(--bone); }
.github-link .icon { width: 19px; height: 19px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 12px 20px; background: var(--teal); color: #0a201b; border: 1px solid transparent; border-radius: 2px; font-size: 12px; font-weight: 500; transition: background 180ms, border-color 180ms, transform 180ms; }
.button:hover { background: var(--teal-light); }
.button .icon { width: 17px; height: 17px; }
.button-small { min-height: 38px; padding: 8px 13px; gap: 16px; font-size: 11px; }
.button-outline { background: transparent; color: var(--bone); border-color: var(--line-light); }
.button-outline:hover { border-color: var(--teal); color: var(--teal); background: #62d6c507; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; padding: 5px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; right: 0; top: 42px; width: 220px; padding: 12px 20px; border: 1px solid var(--line-light); background: var(--ink); box-shadow: 0 16px 40px #0006; }
.mobile-nav nav a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.mobile-nav nav a:last-child { border: 0; }
.mobile-nav nav span { color: var(--dim); font: 10px var(--font-mono); }

/* Encounter */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 800px; height: 800px; right: -160px; top: -170px; background: radial-gradient(ellipse, #20483b1c 0%, transparent 64%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 56% 44%; align-items: center; min-height: 684px; padding-top: 36px; padding-bottom: 24px; }
.hero-copy { position: relative; z-index: 2; padding-top: 10px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 27px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.hero h1 { max-width: 760px; font-family: var(--font-display); font-size: clamp(46px, 4.6vw, 70px); font-weight: 400; line-height: 1.28; letter-spacing: -.055em; }
.hero h1 > span { display: block; }
.hero h1 .hero-title-second { margin-top: 6px; font-size: 1.17em; letter-spacing: -.065em; }
.hero h1 em, .section-heading h2 em, .philosophy-section h2 em, .get-started-heading h2 em { color: var(--teal-light); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 4%; right: 0; bottom: -3px; height: 7px; border-top: 1px solid #62d6c559; border-radius: 50%; transform: rotate(-2deg); }
.hero-lede { margin-top: 27px; color: var(--muted); font-size: 13px; line-height: 1.95; letter-spacing: .015em; }
.encounter-form { display: flex; align-items: center; max-width: 596px; margin-top: 29px; border: 1px solid #4b5f59; border-radius: 3px; background: #101a1bb3; transition: border-color 180ms, box-shadow 180ms; }
.encounter-form:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px #62d6c50b; }
.input-prompt { padding-left: 17px; color: var(--teal); font: 20px var(--font-mono); }
.encounter-form input { width: 100%; min-width: 0; padding: 16px 13px; border: 0; background: none; color: var(--bone); font-size: 13px; }
.encounter-form input::placeholder { color: #879892; opacity: 1; }
.encounter-submit { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-right: 6px; padding: 9px 12px; background: transparent; color: var(--teal-light); font-size: 11px; }
.encounter-submit .icon { width: 17px; height: 17px; }
.encounter-submit:hover { color: var(--coral); }
.encounter-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 596px; margin-top: 10px; color: var(--dim); font-size: 9px; }
.encounter-meta > span:first-child { display: flex; align-items: center; gap: 5px; }
.encounter-meta .icon { width: 12px; height: 12px; }
.encounter-meta .mono { font-size: 8px; letter-spacing: .03em; }
.prompt-starters { max-width: 596px; margin-top: 35px; }
.micro-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 6px; color: var(--dim); font-size: 9px; }
.micro-label span { font-size: 7px; letter-spacing: .05em; }
.prompt-starter { display: flex; align-items: center; width: 100%; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: var(--muted); font-size: 11px; transition: color 160ms, padding-left 160ms; }
.prompt-starter:last-child { border-bottom: 0; }
.prompt-starter:hover { color: var(--bone); padding-left: 5px; }
.starter-number { color: var(--dim); font: 9px var(--font-mono); }
.prompt-starter .icon { width: 14px; height: 14px; margin-left: auto; color: var(--dim); }
.prompt-starter:hover .icon { color: var(--teal); }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; padding-bottom: 26px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 13px; color: var(--muted); font-size: 10px; }
.scroll-cue-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); }
.scroll-cue-icon .icon { width: 14px; height: 14px; }
.scroll-cue small { display: block; margin-top: 2px; color: var(--dim); font: 7px var(--font-mono); letter-spacing: .04em; }
.scroll-cue:hover .scroll-cue-icon { border-color: var(--teal); }
.hero-edition { color: #5b6c67; font-size: 8px; letter-spacing: .05em; }

/* Generative presence */
.creature-stage { position: relative; align-self: stretch; min-height: 590px; isolation: isolate; overflow: clip; }
.stage-coordinate { position: absolute; z-index: 3; display: flex; gap: 24px; color: #627b70; font: 7px var(--font-mono); letter-spacing: .06em; }
.coordinate-top { top: 36px; left: 10%; right: 0; justify-content: space-between; border-bottom: 1px solid #31413970; padding-bottom: 10px; }
.coordinate-top span:first-child { color: var(--teal); }
.coordinate-side { left: 2%; top: 46%; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 7px; letter-spacing: .18em; }
.coordinate-bottom { bottom: 21px; left: 12%; right: 1%; justify-content: space-between; border-top: 1px solid #31413970; padding-top: 10px; font-size: 7px; }
.creature-halo { position: absolute; z-index: -1; border: 1px solid #52746428; border-radius: 50%; top: 50%; left: 52%; transform: translate(-50%, -50%); pointer-events: none; }
.halo-outer { width: 464px; height: 464px; border-color: #78b9a324; }
.halo-outer::before, .halo-outer::after { content: ""; position: absolute; background: #53776850; }
.halo-outer::before { width: 1px; height: 530px; top: -23px; left: 50%; }
.halo-outer::after { width: 530px; height: 1px; top: 50%; left: -23px; }
.halo-inner { width: 340px; height: 340px; border-style: dashed; border-color: #5274641c; }
.creature-orbit { position: absolute; width: 520px; height: 520px; left: 52%; top: 50%; transform: translate(-50%, -50%) rotate(-16deg); border: 1px solid #486a5126; border-radius: 50%; pointer-events: none; }
.creature-orbit span { position: absolute; width: 4px; height: 4px; border: 1px solid #72a88980; border-radius: 50%; background: var(--abyss); }
.creature-orbit span:nth-child(1) { top: 27px; left: 112px; }
.creature-orbit span:nth-child(2) { top: 204px; right: -2px; }
.creature-orbit span:nth-child(3) { bottom: 15px; left: 176px; }
.creature-orbit span:nth-child(4) { top: 160px; left: 1px; }
.hero-creature { position: absolute; z-index: 1; width: 128%; max-width: none; height: auto; left: -20%; top: 48%; transform: translateY(-50%); overflow: visible; filter: drop-shadow(0 16px 28px #0005); }
.hero-creature[data-state="listening"] { filter: drop-shadow(0 0 25px #62d6c520); }
.hero-creature[data-state="scripted"] .creature-core-aura { opacity: .3; }
.hero-creature[data-state="scripted"] .creature-constellation { opacity: .68; }
.hero-creature[data-state="scripted"] .creature-mantle { opacity: .88; }
.creature-id { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; top: 26%; right: -1%; color: var(--muted); font: 7px/1.7 var(--font-mono); letter-spacing: .06em; }
.creature-id-line { width: 45px; height: 1px; background: #6a8b7b70; position: relative; }
.creature-id-line::before { content: ""; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; border: 1px solid var(--teal); border-radius: 50%; }
.creature-id strong { font-weight: 400; color: var(--teal); }
.pose-switch { position: absolute; z-index: 3; right: 0; bottom: 68px; display: flex; align-items: center; gap: 6px; color: var(--dim); font: 6px var(--font-mono); letter-spacing: .04em; }
.pose-switch > span { margin-right: 5px; }
.pose-switch a { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.pose-switch a:hover { border-color: var(--teal); color: var(--teal); }
.pose-switch a[aria-current="true"] { border-color: #75a18f; background: #142922; color: var(--teal-light); }
.hero-creature[data-layout="fan"] { transform: translateY(-48%); }
.creature-caption { position: absolute; bottom: 66px; left: 11%; z-index: 2; }
.caption-english { font: 23px/1.15 Georgia, serif; color: #c9d3c3; letter-spacing: -.04em; }
.caption-english em { color: var(--teal-light); font-weight: 400; }
.caption-status { display: flex; align-items: center; gap: 6px; margin-top: 16px; color: #789585; font: 6px var(--font-mono); letter-spacing: .08em; }
.caption-status i { width: 3px; height: 3px; border-radius: 50%; background: var(--coral); }

/* Editorial interlude */
.interlude { display: grid; grid-template-columns: 20% 1fr auto; align-items: center; gap: 30px; border-top: 1px solid var(--line); padding-top: 58px; padding-bottom: 62px; }
.section-index { align-self: start; padding-top: 10px; color: var(--dim); font-size: 8px; letter-spacing: .12em; }
.interlude p { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 37px); line-height: 1.65; letter-spacing: -.025em; }
.interlude p em { font-style: normal; color: var(--teal-light); }
.circle-link { display: grid; place-items: center; width: 69px; height: 69px; border: 1px solid var(--line-light); border-radius: 50%; background: transparent; color: var(--teal); transition: background 180ms, transform 180ms; }
.circle-link .icon { width: 25px; height: 25px; }
.circle-link:hover { background: var(--teal); color: var(--abyss); transform: rotate(5deg); }

/* Inside: the instrument emerges */
.inside-section { padding: 92px 0 104px; background: #0c1315; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 60px; margin-bottom: 54px; }
.section-heading .eyebrow { margin-bottom: 21px; }
.section-heading h2 { font-family: var(--font-display); font-size: clamp(37px, 3.3vw, 51px); font-weight: 400; line-height: 1.42; letter-spacing: -.045em; }
.section-intro { justify-self: end; max-width: 425px; padding-bottom: 7px; color: var(--muted); font-size: 12px; line-height: 2; }
.section-intro small { display: block; margin-top: 13px; color: var(--dim); font-size: 10px; line-height: 1.8; }
.run-explorer { display: grid; grid-template-columns: 31% 69%; border: 1px solid var(--line-light); min-height: 610px; background: #0b1214; }
.run-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line-light); }
.run-tab { display: flex; align-items: center; gap: 19px; width: 100%; padding: 26px 24px; border-bottom: 1px solid var(--line); background: transparent; text-align: left; transition: background 180ms; }
.run-tab:hover { background: #14201f60; }
.run-tab.is-active { background: #172722; }
.tab-number { color: var(--dim); font: 9px var(--font-mono); }
.run-tab.is-active .tab-number { color: var(--teal); }
.tab-copy { display: flex; flex-direction: column; gap: 8px; }
.tab-copy strong { font-size: 13px; font-weight: 500; }
.tab-copy small { color: var(--dim); font: 8px var(--font-mono); letter-spacing: .03em; }
.run-tab .icon { width: 16px; height: 16px; margin-left: auto; color: var(--dim); }
.run-tab.is-active .icon { color: var(--teal); }
.run-tabs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: auto; padding: 22px; color: var(--dim); font-size: 8px; }
.run-tabs-foot .mono { margin-left: auto; font-size: 7px; }
.run-tabs-foot .status-dot { width: 4px; height: 4px; box-shadow: none; background: var(--coral); }
.run-canvas { min-width: 0; }
.run-canvas-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 45px; padding: 10px 25px; border-bottom: 1px solid var(--line); color: var(--dim); font: 7px var(--font-mono); }
.run-canvas-toolbar > span { display: flex; align-items: center; gap: 7px; }
.tiny-square { width: 4px; height: 4px; background: var(--coral); }
.toolbar-separator { color: #3b4a49; }
.run-canvas-toolbar .text-button { font: 10px var(--font-sans); color: var(--muted); }
.run-panel { padding: 31px 31px 24px; }
.panel-title { display: flex; align-items: flex-start; gap: 23px; margin-bottom: 30px; }
.panel-title > .mono { padding-top: 7px; color: var(--dim); font-size: 7px; white-space: nowrap; }
.panel-title h3 { max-width: 420px; font-size: 19px; font-weight: 400; line-height: 1.6; letter-spacing: -.02em; }
.panel-title h3 span { display: block; color: var(--muted); font-size: 12px; }
.context-composition { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; }
.composition-label { flex-shrink: 0; color: var(--dim); font: 6px var(--font-mono); letter-spacing: .03em; }
.composition-track { display: flex; width: 100%; gap: 2px; height: 6px; }
.composition-track span { display: block; }
.segment-stable { width: 55%; background: #4c8c78; }
.segment-turn { width: 24%; background: #aa9556; }
.segment-information { width: 21%; background: #509499; }
.layer-table { border-top: 1px solid var(--line-light); }
.layer-table-head, .layer-row { display: grid; grid-template-columns: 1.65fr 1fr .9fr; align-items: center; gap: 12px; }
.layer-table-head { min-height: 34px; color: var(--dim); font: 6px var(--font-mono); letter-spacing: .025em; }
.layer-row { min-height: 45px; border-top: 1px solid #21302e; }
.layer-name { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.layer-name i { width: 3px; height: 18px; background: var(--layer-color); }
.layer-name small { margin-left: 4px; color: var(--muted); font-size: 9px; }
.layer-row .mono { color: var(--muted); font-size: 8px; }
.layer-placement { color: #91a59b; font: 8px var(--font-mono); }
.information-row { background: #12202250; }
.panel-footnote { margin-top: 22px; color: var(--dim); font-size: 9px; line-height: 1.9; }
.panel-footnote > span { margin-right: 10px; color: #a2b3a9; font: 7px var(--font-mono); }
.continuity-authority { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 23px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.continuity-authority > div { display: flex; flex-direction: column; gap: 8px; }
.continuity-authority .mono { color: var(--dim); font-size: 8px; }
.continuity-authority strong { font-size: 12px; font-weight: 400; }
.authority-emphasis strong { color: var(--teal-light); }
.flow-arrow { color: var(--dim); font: 18px var(--font-mono); }
.diagram-caption { margin: 12px 0 28px; color: var(--dim); font-size: 9px; }
.distillation-flow { display: flex; align-items: center; gap: 12px; }
.distillation-node { flex: 1; }
.node-number { display: block; margin-bottom: 17px; color: var(--dim); font: 8px var(--font-mono); }
.distillation-node h4 { color: var(--teal-light); font: 18px Georgia, serif; }
.distillation-node p { min-height: 46px; margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.distillation-node small { color: var(--dim); font: 6px var(--font-mono); }
.distillation-arrow { align-self: flex-start; margin-top: 37px; color: var(--dim); font: 13px var(--font-mono); }
.governance-map { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 30px 0 37px; }
.governance-node { flex: 1; text-align: center; }
.governance-node > span { display: block; color: var(--dim); font-size: 8px; }
.governance-node strong { display: block; margin-top: 10px; font-size: 13px; font-weight: 400; }
.governance-node small { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; }
.governance-engine svg { width: 44px; height: 44px; margin: 0 auto 8px; color: var(--teal); }
.governance-engine strong { color: var(--teal-light); font: 10px var(--font-mono); letter-spacing: .1em; }
.governance-connector { flex: .8; color: var(--dim); text-align: center; font: 6px var(--font-mono); }
.governance-connector i { display: block; position: relative; height: 1px; margin-top: 12px; background: var(--line-light); }
.governance-connector i::after { content: "›"; position: absolute; right: -1px; top: -12px; color: var(--teal); font-size: 16px; }
.policy-status { min-width: 109px; color: var(--coral); font: 7px var(--font-mono); }
.policy-status.allowed { color: var(--teal); }
.evidence-card { margin-top: 26px; border-top: 1px solid var(--line); }
.evidence-card-head { display: flex; align-items: center; gap: 12px; min-height: 38px; color: var(--dim); font: 7px var(--font-mono); letter-spacing: .025em; }
.evidence-card-head > span:last-child { margin-left: auto; color: var(--muted); font: 9px var(--font-sans); letter-spacing: 0; }
.manifest-list { border-top: 1px solid var(--line-light); list-style: none; }
.manifest-list li { display: grid; grid-template-columns: 92px 1fr auto; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-light); color: var(--muted); font-size: 11px; }
.manifest-scope { color: var(--dim); font: 7px var(--font-mono); letter-spacing: .025em; }
.manifest-list small { color: var(--dim); font-size: 9px; }
.instance-probe { padding: 2px 0 6px; color: var(--muted); font-size: 11px; line-height: 2.1; }
.instance-probe em { color: var(--dim); font: 8px var(--font-mono); font-style: normal; }
.instance-probe .text-button { margin-left: 10px; vertical-align: middle; font-size: 10px; }
.proposition-list > div { display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-light); }
.proposition-list dt { color: var(--dim); font: 7px var(--font-mono); letter-spacing: .025em; }
.proposition-list dd { margin: 0; color: var(--muted); font-size: 11px; }
.permission-grid { border-top: 1px solid var(--line-light); }
.permission-row { display: flex; align-items: center; gap: 20px; min-height: 42px; border-bottom: 1px solid var(--line-light); color: var(--muted); font-size: 11px; }
.permission-row .policy-status { margin-left: auto; text-align: right; white-space: nowrap; }
.panel-value { margin-top: 26px; padding-left: 15px; border-left: 2px solid var(--coral); color: var(--bone); font-size: 13px; line-height: 1.95; letter-spacing: .01em; }

/* Engine: surface into paper */
.engine-section { color-scheme: light; padding: 97px 0 80px; background: var(--paper); color: var(--paper-ink); }
.engine-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 70px; }
.engine-section .eyebrow { margin-bottom: 22px; color: #34756a; }
.engine-intro h2 { font: clamp(64px, 6.5vw, 94px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
.engine-intro h2 em { color: #317b6a; font-weight: 400; }
.engine-intro-copy { max-width: 360px; padding-bottom: 10px; }
.engine-intro-copy p { color: #53645d; font-size: 13px; line-height: 2; }
.engine-intro-copy .mono { display: block; margin-top: 21px; color: #677b70; font-size: 7px; letter-spacing: .06em; }
.walls-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 20px; padding-top: 24px; border-top: 1px solid #b7c0b4; }
.walls-heading > span:first-child { font-size: 13px; }
.walls-heading .mono { color: #68796f; font-size: 7px; }
.wall-grid { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; border-top: 1px solid #b7c0b4; border-bottom: 1px solid #b7c0b4; }
.wall-grid li { padding: 23px 20px 26px; border-right: 1px solid #c0c8bd; }
.wall-grid li:first-child { padding-left: 0; }
.wall-grid li:last-child { border-right: 0; }
.wall-number { color: #718478; font: 7px var(--font-mono); }
.wall-grid h3 { margin-top: 25px; font-family: var(--font-display); font-size: 27px; font-weight: 400; letter-spacing: -.04em; }
.wall-grid p { margin-top: 12px; color: #5a6b61; font-size: 10px; line-height: 1.9; }
.science-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 65px; margin-bottom: 26px; }
.science-heading h3 { font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: -.03em; }
.science-heading .mono { color: #6d8074; font-size: 7px; }
.science-list { border-top: 1px solid #879d8d; }
.science-item { border-bottom: 1px solid #bac5b8; }
.science-item h4 { font-weight: 400; }
.science-trigger { display: grid; grid-template-columns: 48px 1.1fr 1fr 24px; align-items: center; gap: 22px; width: 100%; padding: 25px 0; background: transparent; text-align: left; }
.science-trigger:hover .science-name { color: #216e5b; }
.science-number { color: #758b7a; font: 9px var(--font-mono); }
.science-name { font-size: 17px; transition: color 180ms; }
.science-name small { display: block; margin-top: 5px; color: #748779; font: 7px var(--font-mono); letter-spacing: .035em; }
.science-summary { color: #637669; font-size: 11px; }
.science-trigger > .icon { width: 17px; height: 17px; color: #52705d; transition: transform 200ms; }
.science-trigger[aria-expanded="true"] > .icon { transform: rotate(45deg); }
.science-item.is-open { background: #dce2d480; }
.science-item.is-open .science-trigger { padding-left: 15px; padding-right: 15px; }
.science-body { padding: 0 60px 28px 85px; }
.science-body > p { max-width: 730px; color: #516759; font-size: 12px; line-height: 2; }
.science-evidence { margin-top: 17px; color: #356e5b; font: 10px/1.8 var(--font-mono); }
.science-evidence span { margin: 0 9px; color: #81917b; }
.science-body a { display: inline-flex; align-items: center; gap: 7px; margin-top: 19px; color: #346e5b; font-size: 10px; border-bottom: 1px solid #94b09a; }
.science-body a .icon { width: 13px; height: 13px; }
.engine-boundaries { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 78px; padding: 40px; border: 1px solid #bac5b8; }
.engine-boundaries .eyebrow { font-size: 8px; }
.engine-boundaries h3 { font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1.6; letter-spacing: -.03em; }
.boundary-list p { display: flex; gap: 17px; padding: 11px 0; color: #5d6c61; font-size: 11px; }
.boundary-list p span { color: #849281; font: 8px var(--font-mono); padding-top: 5px; }
.underlined-link { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 5px; border-bottom: 1px solid currentColor; color: inherit; font-size: 11px; }
.underlined-link .icon { width: 15px; height: 15px; }
.underlined-link:hover { color: var(--teal); }
.boundary-list .underlined-link { margin-top: 17px; color: #386a55; font-size: 10px; }

/* Philosophy */
.philosophy-section { padding: 105px 0 85px; background: #10191b; }
.philosophy-section > .shell > .eyebrow { margin-bottom: 30px; }
.philosophy-section h2 { max-width: 900px; font-family: var(--font-display); font-size: clamp(34px, 3.5vw, 53px); font-weight: 400; line-height: 1.55; letter-spacing: -.045em; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-top: 69px; }
.principle-grid article { padding-top: 22px; border-top: 1px solid var(--line-light); }
.principle-grid .mono { color: var(--dim); font-size: 8px; }
.principle-grid h3 { margin-top: 22px; font-size: 16px; font-weight: 400; }
.principle-grid p { margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 2; }
.constitution-link { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-top: 85px; padding-top: 35px; border-top: 1px solid var(--line); }
.constitution-link p { font: 30px/1.3 Georgia, serif; letter-spacing: -.03em; }
.constitution-link p em { color: var(--teal-light); }
.constitution-link .underlined-link { margin-bottom: 6px; color: var(--muted); }

/* Build your own */
.get-started-section { padding: 92px 0 89px; background: #87cdb8; color: #0e2b23; }
.get-started-section .eyebrow { color: #285c4c; }
.get-started-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 31px; }
.get-started-heading h2 { font-family: var(--font-display); font-size: clamp(38px, 4.2vw, 63px); font-weight: 400; line-height: 1.4; letter-spacing: -.055em; }
.get-started-heading h2 em { color: #214b3f; }
.cta-creature { width: 130px; height: 130px; margin-right: 30px; color: #265d4c; transform: rotate(-12deg); }
.get-started-lede { margin-top: 20px; color: #2c5c4d; font-size: 13px; }
.quickstart-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 75px; align-items: center; margin-top: 51px; padding-top: 33px; border-top: 1px solid #5ba891; }
.install-panel { border: 1px solid #4e9781; background: #c5e2ce26; }
.install-label { display: flex; justify-content: space-between; gap: 15px; padding: 11px 17px; border-bottom: 1px solid #5eaa91; color: #316451; font: 7px var(--font-mono); letter-spacing: .04em; }
.install-label > span:first-child { display: flex; align-items: center; gap: 7px; }
.install-label i { width: 4px; height: 4px; border-radius: 50%; background: #2a6a51; }
.install-command { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 19px; }
.install-command code { font: 18px var(--font-mono); letter-spacing: -.04em; }
.install-command code span { margin-right: 10px; color: #50836b; }
.copy-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px; background: none; color: #386651; font-size: 10px; }
.copy-button .icon { width: 15px; height: 15px; }
.copy-button:hover { color: #071e17; }
.install-footer { display: flex; gap: 22px; padding: 10px 18px; border-top: 1px solid #5eaa9160; color: #49775e; font: 8px var(--font-mono); }
.quickstart-actions > p { max-width: 300px; color: #36604f; font-size: 11px; }
.button-dark { margin-top: 18px; background: #122f27; color: #d9edda; }
.button-dark:hover { background: #234d3d; }
.quickstart-source { display: block; margin-top: 17px; color: #396d56; font-size: 10px; }
.quickstart-source:hover { text-decoration: underline; }

/* Footer */
.site-footer { padding: 61px 0 22px; background: #080d0f; }
.footer-main { display: flex; justify-content: space-between; gap: 70px; padding-bottom: 61px; }
.footer-brand p { margin-top: 20px; color: var(--dim); font-size: 10px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 65px; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links .mono { margin-bottom: 6px; color: var(--dim); font-size: 7px; letter-spacing: .08em; }
.footer-links a, .footer-links .text-button { color: var(--muted); font-size: 10px; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 21px; border-top: 1px solid var(--line); color: #64736f; font: 7px var(--font-mono); letter-spacing: .04em; }
.footer-slash { margin: 0 12px; color: #40504c; }

/* Dialogs: an encounter, not a customer-support widget */
dialog { color: var(--bone); border: 1px solid var(--line-light); padding: 0; background: var(--abyss); }
dialog::backdrop { background: #030809c9; backdrop-filter: blur(9px); }
.conversation-dialog { width: calc(100vw - 64px); max-width: 1440px; height: calc(100dvh - 64px); max-height: 1000px; margin: auto; overflow: hidden; }
.conversation-shell { height: 100%; display: flex; flex-direction: column; }
.conversation-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 71px; padding: 12px 26px; border-bottom: 1px solid var(--line); background: #0b1214; }
.conversation-header .brand-mark { width: 29px; height: 34px; }
.conversation-header .brand-word { font-size: 24px; }
.conversation-mode { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; }
.demo-badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 6px; border: 1px solid #84624e66; color: #e4ab8e; font: 7px var(--font-mono); letter-spacing: .035em; white-space: nowrap; }
.conversation-header-actions { display: flex; align-items: center; gap: 15px; }
.icon-button { display: grid; place-items: center; width: 35px; height: 35px; padding: 7px; border: 1px solid var(--line); background: none; color: var(--muted); }
.icon-button:hover { border-color: var(--teal); color: var(--teal); }
.icon-button .icon { width: 18px; height: 18px; }
.mobile-view-tabs { display: none; gap: 4px; }
.mobile-view-tabs button { padding: 6px 9px; background: none; color: var(--muted); font-size: 10px; }
.mobile-view-tabs button.is-active { color: var(--teal); background: #62d6c510; }
.conversation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; flex: 1; min-height: 0; }
.conversation-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.conversation-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 43px clamp(28px, 6vw, 88px) 25px; scrollbar-width: thin; scrollbar-color: var(--line-light) transparent; }
.conversation-intro { max-width: 640px; margin: 0 auto; }
.conversation-intro .eyebrow { font-size: 8px; }
.conversation-intro h2 { margin-top: 17px; font-family: var(--font-display); font-size: 44px; font-weight: 400; line-height: 1.35; letter-spacing: -.05em; }
.conversation-intro h2 em { color: var(--teal-light); font-style: normal; }
.conversation-intro > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 12px; }
.demo-notice { display: flex; align-items: flex-start; gap: 11px; margin-top: 24px; padding: 13px 15px; border: 1px solid #314039; background: #111c1b; }
.demo-notice > .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--teal); }
.demo-notice p { color: var(--muted); font-size: 10px; line-height: 1.85; }
.demo-notice strong { color: var(--bone-deep); font-weight: 500; }
.message-list { display: flex; flex-direction: column; gap: 25px; max-width: 640px; margin: 30px auto 0; list-style: none; }
.message { display: flex; gap: 13px; animation: message-in 280ms var(--ease) both; }
.message-avatar { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border: 1px solid var(--line); color: var(--teal); font: 8px var(--font-mono); }
.message-avatar svg { width: 20px; height: 20px; }
.message-content { min-width: 0; padding-top: 1px; }
.message-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.message-author { font-size: 11px; }
.message-origin { color: var(--dim); font: 7px var(--font-mono); }
.message-content > p { color: var(--bone-deep); font-size: 12px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-user { padding-left: 55px; }
.message-user .message-content { width: 100%; padding: 12px 16px; border: 1px solid #2d413b; background: #14221f; }
.message-user .message-avatar { display: none; }
.message-user .message-meta { justify-content: flex-end; }
.message-user .message-author { color: var(--muted); font-size: 9px; }
.message-user .message-content > p { font-size: 11px; }
.message-boundary .message-content > p { color: var(--muted); }
.message-followup { margin-top: 10px; color: var(--teal); font-size: 10px; }

/* ── Work strip: the run's own record of what it did (tool purposes only) ── */
.work-strip { margin-bottom: 12px; border: 1px solid var(--line); background: #0e191b; }
.work-strip-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 13px; background: none; color: var(--dim); font: 7px var(--font-mono); letter-spacing: .11em; text-align: left; cursor: pointer; }
.work-strip-toggle::before { content: "▸"; color: var(--teal); font-size: 8px; }
.work-strip-toggle[aria-expanded="true"]::before { content: "▾"; }
.work-strip-toggle:hover { color: var(--bone-deep); }
.work-steps { display: grid; gap: 9px; padding: 4px 13px 13px; }
.work-step { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.work-step-mark { flex: 0 0 6px; width: 6px; height: 6px; margin-top: 4px; border: 1px solid var(--dim); border-radius: 50%; }
.work-step.is-active .work-step-mark { border-color: var(--teal); background: var(--teal); animation: work-pulse 1.4s ease-in-out infinite; }
.work-step.is-done .work-step-mark { border-color: #74a28b; background: #74a28b; }
.work-step.is-interrupted .work-step-mark { border-color: var(--dim); background: none; border-style: dashed; }
.work-step.is-active .work-step-label { color: var(--bone-deep); }
.work-step.is-interrupted .work-step-label { opacity: .65; }
@keyframes work-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Conversation markdown (visual port of the octopi webui MarkdownMessage) ── */
.message-content .md-root { white-space: normal; }
.md-root { display: grid; gap: 8px; color: var(--bone-deep); font-size: 12px; line-height: 1.95; }
.md-root p { margin: 0; overflow-wrap: anywhere; }
.md-root ul, .md-root ol { margin: 0; padding-left: 20px; }
.md-root li { margin: 3px 0; }
.md-root li::marker { color: var(--dim); }
.md-root blockquote { margin: 0; padding: 7px 12px; border-left: 2px solid var(--teal); background: #14201f60; }
.md-root hr { border: 0; border-top: 1px solid var(--line); margin: 3px 0; }
.md-root h1, .md-root h2, .md-root h3, .md-root h4 { margin: 0; color: var(--bone); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.5; }
.md-root h1 { font-size: 15px; }
.md-root h2 { font-size: 14px; }
.md-root h3 { font-size: 13px; }
.md-root h4 { font-size: 12px; }
.md-root table { border-collapse: collapse; width: 100%; font-size: 11px; }
.md-table-scroll { overflow-x: auto; }
.md-root th, .md-root td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; }
.md-root th { background: var(--ink); color: var(--bone); font-weight: 600; }
.md-root a { color: var(--teal-light); text-decoration: underline; text-underline-offset: 2px; }
.md-root img { max-width: 100%; }
.md-image-wrapper { display: inline-block; max-width: 100%; }
.md-root strong { font-weight: 600; color: var(--bone); }
.md-inline-code { padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px; background: var(--ink); font: 11px var(--font-mono); word-break: break-word; }
.md-code-block { position: relative; border: 1px solid var(--line); border-radius: 4px; background: #0b1020; color: var(--bone); overflow: hidden; }
.md-code-block pre { margin: 0; }
/* 滚动/换行落在 .md-code 上（webui 经验：pre-wrap 软换行 + break-word 断长 token，不影响复制文本）。 */
.md-code { display: block; margin: 0; padding: 12px 14px; font: 11px/1.7 var(--font-mono); white-space: pre-wrap; word-break: break-word; }
.md-code-lang { position: absolute; top: 8px; right: 8px; padding: 2px 6px; border: 1px solid rgba(255,255,255,0.08); border-radius: 3px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); font: 7px var(--font-mono); letter-spacing: .025em; text-transform: uppercase; pointer-events: none; }
.md-copy-btn { position: absolute; top: 8px; right: 72px; padding: 3px 8px; border: 1px solid rgba(255,255,255,0.08); border-radius: 3px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); font-size: 9px; cursor: pointer; }
.md-copy-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.md-code-block:not(:has(.md-code-lang)) .md-copy-btn { right: 8px; }

/* highlight.js——恒暗代码块底（#0b1020）专属色板（webui 双主题同值）。
 * 语法色不得引用主题变量（亮色值为亮底设计，恒暗底会失读——webui 对比度审计结论）。 */
.hljs-comment, .hljs-quote { color: #9ca3af; }
.hljs-keyword, .hljs-selector-tag, .hljs-addition { color: #a78bfa; }
.hljs-number, .hljs-string, .hljs-meta .hljs-meta-string, .hljs-literal, .hljs-doctag, .hljs-regexp { color: #4ade80; }
.hljs-title, .hljs-section, .hljs-name, .hljs-selector-id, .hljs-selector-class { color: #fbbf24; }
.hljs-attr, .hljs-variable, .hljs-template-variable, .hljs-class .hljs-title, .hljs-type { color: #f87171; }
.hljs-built_in, .hljs-params { color: #38bdf8; }
.hljs-deletion { color: #f87171; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; max-width: 640px; margin: 29px auto 0; }
.scenario-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 148px; padding: 15px; border: 1px solid var(--line); background: #10191b; text-align: left; transition: border-color 180ms, background 180ms; }
.scenario-card:hover { border-color: #679887; background: #142320; }
.scenario-card .mono { margin-bottom: 17px; color: var(--dim); font-size: 7px; }
.scenario-card strong { font-size: 11px; font-weight: 500; }
.scenario-card > span:not(.mono) { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.scenario-card .icon { width: 15px; height: 15px; margin-top: auto; margin-left: auto; color: var(--teal); }
.conversation-composer-wrap { flex: 0 0 auto; padding: 15px clamp(28px, 6vw, 88px) 18px; border-top: 1px solid var(--line); background: #0b1315; }
.conversation-composer { display: flex; align-items: flex-end; gap: 15px; max-width: 640px; margin: auto; border: 1px solid #43594f; background: #101b1a; }
.conversation-composer:focus-within { border-color: var(--teal); }
.conversation-composer textarea { width: 100%; max-height: 130px; min-height: 45px; resize: none; padding: 12px 14px; border: 0; background: none; color: var(--bone); font-size: 11px; line-height: 1.8; }
.conversation-composer textarea::placeholder { color: #7f958a; }
.send-button { display: grid; place-items: center; width: 34px; height: 34px; margin: 5px; background: var(--teal); color: var(--abyss); }
.send-button:hover { background: var(--teal-light); }
.send-button .icon { width: 16px; height: 16px; }
.composer-note { display: flex; justify-content: space-between; gap: 15px; max-width: 640px; margin: 8px auto 0; color: var(--dim); font-size: 8px; }
.composer-note > span:last-child { font: 6px/1.8 var(--font-mono); }
.response-status { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto 10px; color: var(--teal); font-size: 9px; }
.response-status-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }
.response-status button { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 2px 0; background: transparent; color: var(--muted); font-size: 9px; }
.response-status button .icon { width: 11px; height: 11px; }
.response-status button:hover { color: var(--coral); }
.run-inspector { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; border-left: 1px solid var(--line); background: #0c1416; }
.inspector-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.inspector-header .eyebrow { font-size: 8px; }
.inspector-empty { margin: auto; padding: 28px; text-align: center; }
.inspector-empty-mark { width: 70px; height: 70px; margin: 0 auto 22px; color: #52766b; }
.inspector-empty h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.7; }
.inspector-empty p { margin-top: 15px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.inspector-empty strong { color: var(--bone-deep); font-weight: 400; }
.inspector-content { padding: 24px 22px; }
.inspector-run-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--dim); font: 7px var(--font-mono); }
.inspector-state { color: var(--teal); font-size: 7px; }
.inspector-content h3 { margin-top: 20px; font-size: 16px; font-weight: 400; }
.event-timeline { margin-top: 27px; list-style: none; }
.timeline-event { position: relative; display: flex; gap: 13px; padding-bottom: 25px; }
.timeline-event::before { content: ""; position: absolute; top: 13px; bottom: 0; left: 4px; width: 1px; background: var(--line-light); }
.timeline-event:last-child::before { display: none; }
.timeline-marker { position: relative; z-index: 1; flex: 0 0 9px; width: 9px; height: 9px; margin-top: 5px; border: 1px solid var(--dim); border-radius: 50%; background: var(--ink); }
.timeline-event.is-current .timeline-marker { border-color: var(--teal); background: var(--teal); }
.timeline-event.is-complete .timeline-marker { border-color: #74a28b; background: #74a28b; }
.timeline-event.is-failed .timeline-marker { border-color: var(--coral); background: var(--coral); }
.timeline-event.is-failed strong { color: var(--coral); }
.timeline-event strong { display: block; color: var(--bone-deep); font-size: 10px; font-weight: 400; }
.timeline-event small { display: block; margin-top: 4px; color: var(--dim); font: 7px var(--font-mono); }
.timeline-event p { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.inspector-summary { margin-top: 2px; padding: 14px; border: 1px solid var(--line); }
.inspector-summary .mono { color: var(--teal); font-size: 7px; }
.inspector-summary p { margin-top: 8px; color: var(--dim); font-size: 9px; line-height: 1.8; }
.inspector-disclosure { display: flex; align-items: flex-start; gap: 9px; margin-top: auto; padding: 19px 21px; border-top: 1px solid var(--line); color: var(--dim); }
.inspector-disclosure .icon { width: 14px; height: 14px; margin-top: 3px; }
.inspector-disclosure p { font-size: 8px; line-height: 1.85; }
.about-dialog { width: min(610px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; background: #101a1b; }
.about-dialog-inner { padding: 31px; }
.about-dialog-top { display: flex; align-items: center; justify-content: space-between; }
.about-mark { width: 60px; height: 60px; margin-top: 29px; color: var(--teal); }
.about-dialog h2 { margin-top: 22px; font-family: var(--font-display); font-size: 33px; font-weight: 400; line-height: 1.5; }
.about-dialog h2 + p { margin-top: 17px; color: var(--muted); font-size: 12px; }
.about-dialog ul { margin-top: 20px; padding-left: 17px; color: var(--muted); font-size: 11px; }
.about-dialog li { margin: 10px 0; padding-left: 4px; }
.about-dialog li strong { color: var(--bone-deep); font-weight: 500; }
.about-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; padding-top: 21px; border-top: 1px solid var(--line); }
.about-dialog-footer .underlined-link { color: var(--teal-light); font-size: 10px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; max-width: calc(100vw - 32px); padding: 12px 19px; border: 1px solid #58796b; background: #172b24; color: var(--bone); box-shadow: 0 7px 30px #0005; font-size: 11px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity 180ms, transform 180ms; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-note { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 12px 24px; background: var(--bone); color: var(--abyss); text-align: center; font-size: 12px; }

/* English is a hero-only preview in this iteration. */
.is-en .hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(47px, 4.6vw, 71px); letter-spacing: -.06em; }
.is-en .hero h1 .hero-title-second { color: var(--teal-light); font-style: italic; }
.is-en .hero-lede { max-width: 460px; }
.is-en .hero-lede br { display: none; }

@keyframes message-in { from { transform: translateY(7px); } to { transform: translateY(0); } }

.language-preview-note { color: var(--dim); font-size: 8px; }

/* Intermediate screens */
@media (max-width: 1180px) {
  :root { --shell: min(1100px, calc(100vw - 64px)); }
  .header-inner { gap: 20px; }
  .desktop-nav { gap: 24px; }
  .brand-descriptor { display: none; }
  .header-actions { gap: 17px; }
  .hero-grid { grid-template-columns: 58% 42%; min-height: 650px; }
  .hero h1 { font-size: clamp(43px, 4.8vw, 59px); }
  .hero-lede { font-size: 12px; }
  .hero-creature { width: 145%; left: -30%; }
  .creature-stage { min-height: 580px; }
  .halo-outer { width: 390px; height: 390px; }
  .halo-outer::before { height: 420px; top: -15px; }
  .halo-outer::after { width: 420px; left: -15px; }
  .halo-inner { width: 270px; height: 270px; }
  .creature-orbit { width: 425px; height: 425px; }
  .creature-id { right: -2%; top: 23%; }
  .coordinate-side { display: none; }
  .caption-english { font-size: 21px; }
  .run-panel { padding: 26px 22px 22px; }
  .panel-title { gap: 15px; }
  .panel-title h3 { font-size: 17px; }
  .layer-name small { font-size: 8px; }
  .layer-table-head, .layer-row { grid-template-columns: 1.55fr .85fr .9fr; gap: 8px; }
  .run-tab { padding: 26px 20px; }
  .tab-copy strong { font-size: 12px; }
  .distillation-flow { gap: 8px; }
  .distillation-node h4 { font-size: 15px; }
  .distillation-node p { font-size: 9px; }
  .distillation-arrow { font-size: 10px; }
  .wall-grid li { padding-inline: 15px; }
  .wall-grid p { font-size: 9px; }
  .science-summary { font-size: 10px; }
  .conversation-dialog { width: calc(100vw - 40px); height: calc(100dvh - 40px); }
  .conversation-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .conversation-scroll { padding-inline: 38px; }
  .conversation-composer-wrap { padding-inline: 38px; }
}

@media (max-width: 960px) {
  :root { --shell: calc(100vw - 48px); }
  .desktop-nav { gap: 18px; }
  .desktop-nav .nav-link { font-size: 11px; }
  .header-actions { gap: 13px; }
  .header-actions .github-link { display: none; }
  .hero-grid { grid-template-columns: 55% 45%; min-height: 650px; }
  .hero h1 { font-size: clamp(40px, 4.9vw, 48px); }
  .hero-lede { max-width: 385px; }
  .encounter-submit { padding-inline: 6px; }
  .encounter-submit span { display: none; }
  .encounter-meta .mono { display: none; }
  .creature-stage { min-height: 530px; }
  .creature-caption { left: 8%; }
  .caption-english { font-size: 18px; }
  .creature-id { top: 17%; }
  .halo-outer { width: 320px; height: 320px; }
  .halo-outer::before { height: 360px; top: -20px; }
  .halo-outer::after { width: 360px; left: -20px; }
  .halo-inner { width: 230px; height: 230px; }
  .creature-orbit { width: 360px; height: 360px; }
  .hero-creature { width: 165%; left: -38%; }
  .coordinate-top { left: 8%; }
  .coordinate-bottom { left: 8%; gap: 10px; font-size: 6px; }
  .section-heading { gap: 40px; }
  .section-intro { font-size: 11px; }
  .run-explorer { grid-template-columns: 29% 71%; }
  .run-tab { gap: 10px; padding: 25px 15px; }
  .tab-copy small { font-size: 6px; }
  .run-tabs-foot { padding: 15px; }
  .run-tabs-foot .mono { display: none; }
  .panel-title { display: block; }
  .panel-title h3 { margin-top: 10px; }
  .layer-name { gap: 6px; font-size: 10px; }
  .layer-name small { display: none; }
  .layer-placement { font-size: 7px; }
  .layer-row .mono { font-size: 7px; }
  .distillation-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
  .distillation-arrow { display: none; }
  .distillation-node p { min-height: 0; margin-bottom: 9px; }
  .continuity-authority strong { font-size: 10px; }
  .governance-map { gap: 7px; }
  .governance-node small { font-size: 7px; }
  .governance-connector { font-size: 5px; }
  .wall-grid h3 { font-size: 24px; }
  .wall-number { font-size: 6px; }
  .engine-intro-copy { max-width: 300px; }
  .science-trigger { grid-template-columns: 30px 1.1fr .9fr 20px; gap: 15px; }
  .science-name { font-size: 15px; }
  .science-summary { font-size: 9px; }
  .principle-grid { gap: 30px; }
  .quickstart-grid { gap: 35px; }
  .install-command code { font-size: 14px; }
  .install-label { font-size: 6px; }
  .footer-links { gap: 35px; }
}

/* Mobile: content before spectacle, conversation before instrumentation */
@media (max-width: 760px) {
  :root { --shell: calc(100vw - 40px); }
  html { scroll-padding-top: 25px; }
  body { font-size: 14px; }
  .prototype-bar-inner { min-height: 32px; gap: 10px; }
  .prototype-bar-detail { display: none; }
  .prototype-bar .text-button { margin-left: auto; font-size: 9px; }
  .prototype-bar-inner > span:first-child { font-size: 8px; }
  .header-inner { height: 71px; gap: 10px; }
  .brand { gap: 7px; }
  .brand-mark { width: 31px; height: 35px; }
  .brand-word { font-size: 26px; }
  .desktop-nav, .header-actions > .button, .header-actions > .github-link { display: none; }
  .header-actions { gap: 16px; }
  .mobile-nav { display: block; }
  .language-button .icon { width: 14px; height: 14px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; min-height: auto; padding-top: 44px; padding-bottom: 0; }
  .hero-copy { padding: 0; }
  .hero-eyebrow { margin-bottom: 22px; font-size: 7px; letter-spacing: .1em; }
  .hero h1 { max-width: 520px; font-size: clamp(38px, 8.5vw, 58px); line-height: 1.3; letter-spacing: -.06em; }
  .hero h1 .hero-title-second { margin-top: 6px; font-size: 1.17em; }
  .hero-lede { margin-top: 24px; font-size: 12px; line-height: 1.95; }
  .hero-lede br { display: none; }
  .encounter-form { margin-top: 25px; }
  .encounter-form input { padding: 15px 8px; font-size: 12px; }
  .encounter-submit { padding: 9px; }
  .encounter-submit .icon { width: 18px; height: 18px; }
  .input-prompt { padding-left: 13px; font-size: 17px; }
  .encounter-meta { font-size: 8px; }
  .prompt-starters { margin-top: 28px; }
  .micro-label { font-size: 8px; }
  .micro-label span { font-size: 6px; }
  .prompt-starter { padding: 13px 0; font-size: 11px; }
  .creature-stage { align-self: center; width: 100%; min-height: 410px; margin-top: 14px; }
  .hero-creature { width: 110%; left: -7%; top: 46%; }
  .coordinate-top { top: 23px; left: 3%; right: 3%; }
  .coordinate-bottom { bottom: 8px; left: 3%; right: 3%; font-size: 6px; }
  .halo-outer { width: 300px; height: 300px; }
  .halo-outer::before { height: 330px; top: -15px; }
  .halo-outer::after { width: 330px; left: -15px; }
  .halo-inner { width: 210px; height: 210px; }
  .creature-orbit { width: 325px; height: 325px; }
  .creature-caption { bottom: 38px; left: 4%; }
  .caption-english { font-size: 18px; }
  .caption-status { font-size: 5px; margin-top: 10px; }
  .creature-id { top: 23%; right: 3%; font-size: 6px; }
  .creature-id-line { width: 25px; }
  .hero-bottom { padding-top: 25px; padding-bottom: 27px; }
  .hero-edition { display: none; }
  .scroll-cue { font-size: 9px; }
  .scroll-cue small { font-size: 6px; }
  .interlude { grid-template-columns: 1fr auto; gap: 23px; padding-top: 38px; padding-bottom: 39px; }
  .section-index { grid-column: 1 / -1; padding: 0; font-size: 7px; }
  .interlude p { font-size: 25px; line-height: 1.6; }
  .circle-link { width: 48px; height: 48px; }
  .circle-link .icon { width: 19px; height: 19px; }
  .inside-section { padding: 58px 0 65px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading .eyebrow { margin-bottom: 17px; font-size: 8px; }
  .section-heading h2 { font-size: 35px; }
  .section-intro { margin-top: 23px; font-size: 11px; }
  .section-intro small { font-size: 9px; }
  .run-explorer { display: block; min-height: 0; }
  .run-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-right: 0; border-bottom: 1px solid var(--line-light); }
  .run-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: 17px 12px; border-bottom: 0; border-right: 1px solid var(--line); }
  .run-tab:last-of-type { border-right: 0; }
  .tab-copy { gap: 7px; }
  .tab-copy strong { font-size: 10px; }
  .tab-copy small { font-size: 6px; line-height: 1.6; }
  .run-tab .icon { display: none; }
  .tab-number { font-size: 7px; }
  .run-tabs-foot { display: none; }
  .run-canvas-toolbar { padding: 10px 15px; font-size: 6px; }
  .run-canvas-toolbar > span { gap: 5px; }
  .toolbar-separator, .run-canvas-toolbar > span { max-width: 180px; }
  .run-canvas-toolbar .text-button { font-size: 8px; white-space: nowrap; }
  .run-panel { padding: 23px 16px; }
  .panel-title { margin-bottom: 25px; }
  .panel-title h3 { font-size: 17px; }
  .panel-title h3 span { margin-top: 4px; font-size: 10px; }
  .context-composition { gap: 8px; }
  .composition-label { font-size: 5px; }
  .layer-table-head, .layer-row { grid-template-columns: 1.1fr .9fr .85fr; gap: 5px; }
  .layer-table-head { font-size: 5px; }
  .layer-name { gap: 5px; font-size: 9px; }
  .layer-row .mono { font-size: 6px; overflow-wrap: anywhere; }
  .layer-placement { font-size: 6px; overflow-wrap: anywhere; }
  .layer-name i { width: 2px; height: 14px; flex: 0 0 2px; }
  .panel-footnote { font-size: 8px; }
  .panel-footnote > span { display: block; margin-bottom: 5px; font-size: 6px; }
  .continuity-authority { gap: 8px; }
  .continuity-authority .mono { font-size: 6px; }
  .continuity-authority strong { font-size: 9px; }
  .flow-arrow { font-size: 12px; }
  .distillation-node h4 { font-size: 20px; }
  .governance-map { gap: 4px; padding-block: 20px 28px; }
  .governance-node strong { font-size: 10px; }
  .governance-node small { font-size: 6px; line-height: 1.7; }
  .governance-connector { font-size: 5px; overflow-wrap: anywhere; }
  .governance-engine svg { width: 33px; height: 33px; }
  .policy-status { min-width: 76px; font-size: 6px; }
  .permission-row { gap: 10px; min-height: 38px; font-size: 10px; }
  .manifest-list li { grid-template-columns: 78px 1fr; gap: 5px 10px; }
  .manifest-list small { grid-column: 2; }
  .instance-probe { font-size: 10px; line-height: 2; }
  .proposition-list dd { font-size: 10px; }
  .panel-value { margin-top: 20px; padding-left: 11px; font-size: 11px; }
  .engine-section { padding: 60px 0 55px; }
  .engine-intro { display: block; margin-bottom: 44px; }
  .engine-intro h2 { font-size: clamp(52px, 12vw, 77px); }
  .engine-intro-copy { margin-top: 29px; }
  .engine-intro-copy p { font-size: 12px; }
  .walls-heading { display: block; margin-bottom: 14px; }
  .walls-heading > span:first-child { font-size: 11px; }
  .walls-heading .mono { display: block; margin-top: 9px; font-size: 6px; }
  .wall-grid { grid-template-columns: 1fr 1fr; }
  .wall-grid li { padding: 19px 13px 21px; border-bottom: 1px solid #c0c8bd; }
  .wall-grid li:nth-child(2n) { border-right: 0; }
  .wall-grid li:first-child { padding-left: 13px; }
  .wall-grid li:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .wall-grid li:last-child p br { display: none; }
  .wall-number { font-size: 6px; }
  .wall-grid h3 { margin-top: 17px; font-size: 25px; }
  .wall-grid p { font-size: 9px; }
  .science-heading { display: block; margin-top: 43px; }
  .science-heading h3 { font-size: 23px; line-height: 1.65; }
  .science-heading .mono { display: block; margin-top: 11px; font-size: 6px; }
  .science-trigger { grid-template-columns: 21px 1fr 19px; gap: 10px; padding: 20px 0; }
  .science-name { font-size: 14px; }
  .science-name small { font-size: 6px; }
  .science-summary { display: none; }
  .science-item.is-open .science-trigger { padding-inline: 9px; }
  .science-body { padding: 0 15px 24px 40px; }
  .science-body > p { font-size: 11px; }
  .science-evidence { font-size: 8px; }
  .science-evidence span { margin-inline: 4px; }
  .engine-boundaries { display: block; margin-top: 47px; padding: 24px; }
  .engine-boundaries h3 { font-size: 26px; }
  .boundary-list { margin-top: 20px; }
  .boundary-list p { font-size: 10px; }
  .philosophy-section { padding: 62px 0 50px; }
  .philosophy-section h2 { font-size: 30px; }
  .principle-grid { display: block; margin-top: 42px; }
  .principle-grid article { margin-top: 29px; }
  .principle-grid h3 { margin-top: 15px; font-size: 15px; }
  .principle-grid p { font-size: 11px; }
  .constitution-link { display: block; margin-top: 46px; padding-top: 29px; }
  .constitution-link p { font-size: 26px; }
  .constitution-link .underlined-link { margin-top: 24px; }
  .get-started-section { padding: 59px 0 55px; }
  .get-started-heading { margin-top: 22px; }
  .get-started-heading h2 { font-size: 34px; line-height: 1.55; }
  .cta-creature { display: none; }
  .get-started-lede { font-size: 11px; line-height: 1.9; }
  .quickstart-grid { display: block; margin-top: 32px; padding-top: 24px; }
  .install-label { padding-inline: 11px; font-size: 5px; }
  .install-command { gap: 6px; padding: 19px 12px; }
  .install-command code { font-size: 12px; }
  .install-command code span { margin-right: 4px; }
  .copy-button { font-size: 9px; }
  .install-footer { gap: 14px; padding-inline: 12px; font-size: 6px; }
  .quickstart-actions { margin-top: 28px; }
  .quickstart-actions .button { width: 100%; }
  .quickstart-source { text-align: center; }
  .site-footer { padding-top: 43px; }
  .footer-main { display: block; padding-bottom: 32px; }
  .footer-links { gap: 20px; margin-top: 37px; }
  .footer-links a, .footer-links .text-button { font-size: 9px; }
  .footer-bottom { display: block; font-size: 6px; line-height: 2; }
  .footer-bottom > span:last-child { display: block; margin-top: 6px; }
  .conversation-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; }
  .conversation-header { min-height: 61px; padding: 10px 17px; gap: 8px; }
  .conversation-header .brand-word { font-size: 22px; }
  .conversation-header .brand-mark { width: 26px; height: 30px; }
  .conversation-mode { margin-left: auto; }
  .conversation-mode > span:last-child { display: none; }
  .demo-badge { font-size: 6px; padding: 3px 5px; }
  .conversation-header-actions { gap: 8px; }
  .conversation-header .icon-button { width: 30px; height: 30px; }
  .mobile-view-tabs { display: flex; }
  .mobile-view-tabs button { font-size: 9px; }
  .conversation-layout { display: block; position: relative; }
  .conversation-main { height: 100%; }
  .conversation-scroll { padding: 29px 20px 23px; }
  .conversation-intro h2 { font-size: 39px; }
  .conversation-intro > p:not(.eyebrow) { font-size: 11px; }
  .demo-notice { padding: 11px 12px; }
  .demo-notice p { font-size: 9px; }
  .scenario-grid { display: block; margin-top: 24px; }
  .scenario-card { position: relative; display: block; width: 100%; min-height: 0; margin-top: 10px; padding: 16px; }
  .scenario-card .mono { display: block; margin-bottom: 9px; }
  .scenario-card strong { font-size: 12px; }
  .scenario-card > span:not(.mono) { display: block; max-width: 85%; font-size: 9px; }
  .scenario-card .icon { position: absolute; right: 16px; bottom: 16px; }
  .conversation-composer-wrap { padding: 12px 20px 13px; }
  .composer-note { font-size: 7px; }
  .composer-note > span:last-child { font-size: 5px; }
  .message-list { gap: 21px; }
  .message-content p { font-size: 11px; }
  .message-user { padding-left: 28px; }
  .run-inspector { display: none; height: 100%; border: 0; }
  .conversation-shell[data-active-view="run"] .conversation-main { display: none; }
  .conversation-shell[data-active-view="run"] .run-inspector { display: flex; }
  .inspector-empty { padding: 45px; }
  .inspector-content { padding: 30px; }
  .inspector-content h3 { font-size: 22px; }
  .timeline-event strong { font-size: 12px; }
  .timeline-event p { font-size: 11px; }
  .inspector-disclosure p { font-size: 9px; }
  .about-dialog-inner { padding: 24px; }
  .about-dialog h2 { font-size: 29px; }
  .about-dialog h2 + p { font-size: 11px; }
  .about-dialog ul { font-size: 10px; }
  .is-en .hero h1 { font-size: clamp(41px, 9.2vw, 62px); }
}

@media (max-width: 390px) {
  :root { --shell: calc(100vw - 30px); }
  .hero h1 { font-size: 36px; }
  .micro-label span { display: none; }
  .creature-stage { min-height: 370px; }
  .hero-creature { width: 122%; left: -13%; }
  .creature-id { top: 20%; }
  .caption-english { font-size: 16px; }
  .tab-copy strong { font-size: 9px; }
  .tab-copy small { font-size: 5px; }
  .run-tab { padding-inline: 9px; }
  .install-command code { font-size: 11px; }
  .copy-button span { display: none; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
  .footer-links > div { min-width: 0; }
  .footer-links a, .footer-links .text-button { overflow-wrap: anywhere; }
  .conversation-mode { display: none; }
  .conversation-header-actions { margin-left: auto; }
  .conversation-scroll { padding-inline: 17px; }
  .conversation-composer-wrap { padding-inline: 17px; }
}

/* No motion is required to read, navigate, or understand a state. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-creature { filter: none; }
}

/* Text contrast: preserve the palette, but never trade legibility for atmosphere. */
.engine-section .eyebrow { color: #2b695c; }
.engine-intro-copy .mono,
.walls-heading .mono,
.wall-number,
.science-heading .mono,
.science-number,
.science-name small { color: #536b5c; }
.science-summary { color: #4d6657; }
.science-evidence span { color: #526b58; }
.boundary-list p { color: #536557; }
.boundary-list p span { color: #536b5c; }
.footer-bottom { color: #81958e; }
.footer-slash { color: #81958e; }
.get-started-section .eyebrow,
.get-started-lede,
.install-label,
.copy-button,
.install-footer,
.quickstart-actions > p,
.quickstart-source { color: #204f3d; }
.install-command code span { color: #28533f; }

@media print {
  .prototype-bar, .site-header, .creature-stage, .conversation-dialog, .about-dialog, .toast, .scroll-cue, .encounter-form, .prompt-starters, .site-footer { display: none !important; }
  body, .inside-section, .philosophy-section { background: white; color: #172723; }
  .hero-grid { min-height: auto; display: block; }
  .hero-copy { padding-block: 40px; }
  .hero h1, .section-heading h2, .philosophy-section h2 { color: #172723; }
  .shell { width: 100%; }
}
