/* System One — lesson stage + scene templates. Stage is 1920x1080 (landscape) or 1080x1920 (portrait). */
:root {
  --paper: #F4F0E6; --paper2: #EAE4D6; --paper3: #DED6C4; --ink: #1D1C1A; --ink2: #57534B; --ink3: #8C877C; --line: #D6CFBF;
  --s1: #FFC21A; --s1-soft: #FFEBB0; --s1-deep: #8A5A00; --s2: #2A9D8F; --s2-soft: #CBEDE7; --s2-deep: #1B6B61;
  --agent: var(--s1); --agent-soft: var(--s1-soft); --agent-deep: var(--s1-deep);
  --human: #3B6CF6; --human-soft: #DCE5FF;
  --good: #1F9D62; --good-soft: #D2F0E0; --warn: #FF8A3D; --warn-soft: #FFE1CC; --bad: #E0464B; --bad-soft: #FFDCDC;
  --term: #17171A; --term2: #222226; --term-fg: #EEEDE8; --term-dim: #8E8B84;
  --f-display: "Fraunces", Georgia, serif; --f-body: "Inter", system-ui, sans-serif; --f-mono: "JetBrains Mono", ui-monospace, monospace; --f-hand: "Caveat", cursive;
}
.stage { position: relative; width: 1920px; height: 1080px; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
.stage.portrait { width: 1080px; height: 1920px; }
.stage * { box-sizing: border-box; }
.stage .scenes, .stage .scene { position: absolute; inset: 0; }
.stage .scene { visibility: hidden; }
.stage .scene.bg-grid::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--line) 1.5px, transparent 1.5px); background-size: 60px 60px; opacity: .45; }
.stage .scene.bg-ink { background: var(--ink); color: var(--paper); --line: #2c2c34; }
.stage .scene.bg-ink .side-h, .stage .scene.bg-ink .side-p { color: var(--paper); }
.stage .scene.bg-agent { background: var(--s1); color: var(--ink); }
.stage .cam { position: absolute; inset: 0; padding: 120px 150px 170px; display: flex; flex-direction: column; justify-content: center; transform-origin: 50% 50%; }
.stage.portrait .cam { padding: 220px 80px 330px; }
.stage .err { color: var(--bad); font: 600 40px var(--f-mono); }

/* chrome: kicker, brand, captions, progress */
.stage .kicker { position: absolute; left: 150px; top: 54px; display: flex; gap: 16px; align-items: center; font: 500 26px var(--f-display); color: var(--ink3); letter-spacing: .01em; z-index: 3; }
.stage .kicker b { font: 700 22px var(--f-mono); color: var(--paper); background: var(--ink); border-radius: 8px; padding: 4px 10px; }
.stage .bg-ink .kicker b { background: var(--agent); }
.stage.portrait .kicker { left: 80px; top: 110px; font-size: 30px; }
.stage .brand { position: absolute; right: 56px; top: 50px; font: 600 24px var(--f-display); color: var(--ink3); display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; z-index: 3; }
.stage .brand-dot { width: 20px; height: 20px; border-radius: 6px; background: var(--agent); border: 3px solid var(--ink); }
.stage.portrait .brand { right: 80px; top: 112px; font-size: 26px; }
.stage.mode-web .brand { display: none; }
.stage .cap { position: absolute; left: 0; right: 0; bottom: 56px; display: flex; justify-content: center; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .15s; }
.stage .cap.on { opacity: 1; }
.stage .cap-in { max-width: 1500px; padding: 14px 28px; border-radius: 16px; background: rgba(22, 22, 26, .88); color: #fff; font: 600 42px/1.25 var(--f-body); text-align: center; letter-spacing: -.005em; }
.stage .cap-in span { color: rgba(255,255,255,.62); transition: color .08s; }
.stage .cap-in span.said { color: #fff; }
.stage .cap-in span.now { color: #FFC21A; }
.stage.portrait .cap { bottom: 200px; }
.stage.portrait .cap-in { max-width: 940px; font-size: 50px; }
.stage.no-caps .cap { display: none; }
.stage-progress { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: transparent; z-index: 6; }
.stage-progress i { display: block; height: 100%; background: var(--agent); transform-origin: left; transform: scaleX(0); }
.stage.mode-web .stage-progress { display: none; }

/* shared */
.stage .chip { display: inline-block; font: 700 26px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 8px 16px; border-radius: 10px; }
.stage .eyebrow { font: 700 26px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--agent-deep); margin-bottom: 26px; }
.stage .bg-ink .eyebrow { color: var(--agent); }
.stage .side-h { font: 700 64px/1.06 var(--f-display); letter-spacing: -.015em; margin: 0 0 36px; }
.stage .side-p { font: 400 36px/1.4 var(--f-body); color: var(--ink2); margin: 0; }
.stage.portrait .side-h { font-size: 64px; }
.stage .mk { background-image: linear-gradient(transparent 58%, var(--agent-soft) 58%, var(--agent-soft) 92%, transparent 92%); background-repeat: no-repeat; background-size: calc(var(--sw, 1) * 100%) 100%; padding: 0 .06em; }
.stage .bg-ink .mk { background-image: linear-gradient(transparent 58%, rgba(255, 194, 26, .55) 58%, rgba(255, 194, 26, .55) 92%, transparent 92%); }
.stage .ul { background-image: linear-gradient(var(--human), var(--human)); background-repeat: no-repeat; background-position: 0 92%; background-size: calc(var(--sw, 1) * 100%) .09em; }
.stage .st { background-image: linear-gradient(var(--bad), var(--bad)); background-repeat: no-repeat; background-position: 0 55%; background-size: calc(var(--sw, 1) * 100%) .08em; color: var(--ink3); }
.stage code.ic { font-family: var(--f-mono); font-size: .86em; background: var(--paper2); border: 2px solid var(--line); border-radius: 10px; padding: .02em .28em; }
.stage .bg-ink code.ic { background: #26262d; border-color: #3a3a44; }
.stage .src { margin-top: 30px; font: 500 24px var(--f-mono); color: var(--ink3); }
.stage .hnote { position: absolute; z-index: 4; transform: translate(-50%, -50%) rotate(var(--rot, -4deg)); font: 700 50px/1.05 var(--f-hand); color: var(--agent-deep); max-width: 520px; text-align: center; }
.stage .bg-ink .hnote { color: var(--agent); }
.stage .punch { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); pointer-events: none; }
.stage .punch span { display: inline-block; font: 700 120px var(--f-display); color: var(--ink); background: var(--s1); border: 6px solid var(--ink); padding: 10px 40px; border-radius: 22px; box-shadow: 12px 12px 0 var(--ink); white-space: nowrap; }
.stage .w { display: inline-block; }

/* title */
.stage .ti { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.stage .ti-text { flex: 1; min-width: 0; }
.stage .ti-kick { display: flex; gap: 22px; align-items: center; margin-bottom: 40px; }
.stage .ti-mod { font: 500 28px var(--f-display); color: var(--ink2); }
.stage .ti-h { font: 700 128px/.98 var(--f-display); letter-spacing: -.022em; margin: 0; max-width: 1150px; }
.stage .ti-sub { font: 400 42px/1.35 var(--f-body); color: var(--ink2); margin: 40px 0 0; max-width: 1000px; }
.stage .ti-art { position: relative; width: 480px; display: flex; justify-content: center; align-items: flex-end; flex: none; }
.stage .ti-human { margin-right: -30px; }
.stage .bubble { position: absolute; top: -70px; right: -20px; background: #fff; border: 4px solid var(--ink); border-radius: 26px; padding: 18px 26px; font: 600 32px/1.2 var(--f-body); max-width: 380px; box-shadow: 8px 8px 0 var(--ink); }
.stage.portrait .ti { flex-direction: column-reverse; align-items: flex-start; gap: 70px; }
.stage.portrait .ti-h { font-size: 112px; }
.stage.portrait .ti-art { width: 100%; justify-content: flex-start; }
.stage.portrait .bubble { left: 300px; right: auto; top: -40px; }

/* statement */
.stage .stm { display: flex; align-items: center; gap: 80px; }
.stage .stm-text { flex: 1; min-width: 0; }
.stage .stm.align-center { text-align: center; justify-content: center; }
.stage .stm.align-center .stm-text { max-width: 1500px; margin: 0 auto; }
.stage .stm-h { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; }
.stage .stm-h.size-xl { font-size: 150px; line-height: .98; }
.stage .stm-h.size-l { font-size: 112px; line-height: 1.02; }
.stage .stm-h.size-m { font-size: 86px; line-height: 1.08; }
.stage .stm-h.size-s { font-size: 66px; line-height: 1.14; letter-spacing: -.015em; }
.stage .stm-sub { font: 400 40px/1.4 var(--f-body); color: var(--ink2); margin: 44px 0 0; max-width: 1300px; }
.stage .bg-ink .stm-sub { color: #b9b9c2; }
.stage .stm-art { flex: none; display: flex; justify-content: center; }
.stage .stm-art.tone-agent .st-ico { color: var(--agent); } .stage .stm-art.tone-human .st-ico { color: var(--human); } .stage .stm-art.tone-bad .st-ico { color: var(--bad); } .stage .stm-art.tone-good .st-ico { color: var(--good); }
.stage .st-ico svg { stroke-width: 1.6; }
.stage.portrait .stm { flex-direction: column-reverse; align-items: flex-start; gap: 60px; }
.stage.portrait .stm-h.size-xl { font-size: 128px; } .stage.portrait .stm-h.size-l { font-size: 96px; } .stage.portrait .stm-h.size-m { font-size: 76px; } .stage.portrait .stm-h.size-s { font-size: 60px; }
.stage.portrait .stm-sub { font-size: 42px; }

/* quote */
.stage .qt { margin: 0; position: relative; padding-left: 10px; }
.stage .qt-mark { font: 700 260px/0.6 var(--f-display); color: var(--agent); height: 130px; }
.stage .qt-text { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.015em; max-width: 1560px; }
.stage .qt-text.size-l { font-size: 86px; line-height: 1.08; } .stage .qt-text.size-m { font-size: 68px; line-height: 1.14; } .stage .qt-text.size-s { font-size: 54px; line-height: 1.2; }
.stage .qt-cap { display: flex; align-items: center; gap: 22px; margin-top: 54px; flex-wrap: wrap; }
.stage .qt-av { width: 76px; height: 76px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 700 30px var(--f-display); flex: none; }
.stage .bg-ink .qt-av { background: var(--agent); }
.stage .qt-who { display: flex; flex-direction: column; } .stage .qt-who b { font: 700 36px var(--f-display); } .stage .qt-who i { font: 400 italic 28px var(--f-body); color: var(--ink2); font-style: normal; }
.stage .qt-src { display: flex; align-items: center; gap: 10px; margin-left: 20px; font: 500 24px var(--f-mono); color: var(--ink3); border-left: 3px solid var(--line); padding-left: 24px; max-width: 760px; }
.stage.portrait .qt-text.size-l { font-size: 76px; } .stage.portrait .qt-text.size-m { font-size: 62px; } .stage.portrait .qt-text.size-s { font-size: 50px; }
.stage.portrait .qt-src { margin-left: 0; border-left: 0; padding-left: 0; width: 100%; }

/* terminal */
.stage .term { background: var(--term); border-radius: 26px; border: 4px solid var(--ink); box-shadow: 16px 16px 0 rgba(22, 22, 26, .16); overflow: hidden; max-width: 1560px; width: 100%; align-self: center; }
.stage .term-bar { height: 64px; background: var(--term2); display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.stage .term-bar i { width: 18px; height: 18px; border-radius: 50%; background: #3a3d46; } .stage .term-bar i:first-child { background: #FF5F57; } .stage .term-bar i:nth-child(2) { background: #FEBC2E; } .stage .term-bar i:nth-child(3) { background: #28C840; }
.stage .term-bar span { margin-left: 18px; font: 500 24px var(--f-mono); color: var(--term-dim); }
.stage .term-body { height: 680px; overflow: hidden; padding: 26px 36px; }
.stage .term-scroll { will-change: transform; }
.stage .tl { display: flex; gap: 18px; height: 56px; align-items: center; font: 400 31px var(--f-mono); color: var(--term-fg); white-space: pre; overflow: hidden; }
.stage .tl .pfx { width: 28px; flex: none; text-align: center; color: var(--term-dim); }
.stage .tl .tx { overflow: hidden; text-overflow: ellipsis; }
.stage .k-cmd .pfx { color: #4ADE80; } .stage .k-cmd .tx { color: #fff; font-weight: 500; }
.stage .k-you .pfx { color: #8FB0FF; } .stage .k-you .tx { color: #C9D6FF; font-weight: 500; }
.stage .k-agent .pfx { color: var(--agent); } .stage .k-agent .tx { color: #fff; font-family: var(--f-body); font-size: 31px; }
.stage .k-tool .tx { color: var(--term-dim); } .stage .k-tool .pfx { color: #67E8F9; }
.stage .k-ok .pfx, .stage .k-ok .tx { color: #4ADE80; } .stage .k-err .pfx, .stage .k-err .tx { color: #FF7A7A; } .stage .k-warn .pfx, .stage .k-warn .tx { color: #FDE047; }
.stage .k-add { background: rgba(74, 222, 128, .12); } .stage .k-add .pfx, .stage .k-add .tx { color: #86EFAC; }
.stage .k-del { background: rgba(255, 122, 122, .12); } .stage .k-del .pfx, .stage .k-del .tx { color: #FCA5A5; }
.stage .k-dim .tx { color: #5f636c; }
.stage .tl code.ic, .stage .tl .mk { background: none; border: 0; padding: 0; color: #FFC21A; }
.stage .term-cap { margin-top: 36px; font: 500 36px/1.35 var(--f-body); color: var(--ink2); text-align: center; }
.stage.portrait .term-body { height: 940px; padding: 24px 26px; }
.stage.portrait .tl { height: 50px; font-size: 26px; gap: 12px; } .stage.portrait .k-agent .tx { font-size: 27px; }

/* code */
.stage .code { background: #FFFDF8; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 16px 16px 0 rgba(22, 22, 26, .14); overflow: hidden; max-width: 1500px; width: 100%; align-self: center; }
.stage .code-bar { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 26px; background: var(--paper2); border-bottom: 3px solid var(--ink); }
.stage .fname { font: 600 26px var(--f-mono); }
.stage .badge { margin-left: auto; font: 700 20px var(--f-mono); background: var(--s1); color: var(--ink); padding: 4px 12px; border-radius: 8px; letter-spacing: .04em; text-transform: uppercase; }
.stage .code-body { position: relative; padding: 14px 0 22px; }
.stage .code-hls { position: absolute; inset: 0; pointer-events: none; }
.stage .hlb { position: absolute; left: 0; right: 0; transform-origin: left; }
.stage .hlb.tone-agent { background: rgba(255, 194, 26, .22); border-left: 8px solid var(--s1); }
.stage .hlb.tone-human { background: rgba(46, 91, 255, .12); border-left: 8px solid var(--human); }
.stage .hlb.tone-bad { background: rgba(229, 72, 77, .14); border-left: 8px solid var(--bad); }
.stage .hlb.tone-good { background: rgba(15, 157, 88, .14); border-left: 8px solid var(--good); }
.stage .hlb-l { position: absolute; right: 22px; top: 50%; transform: translateY(-50%) rotate(-2deg); font: 700 40px var(--f-hand); color: var(--agent-deep); }
.stage .cl { position: relative; display: flex; height: 50px; align-items: center; font: 400 30px var(--f-mono); white-space: pre; }
.stage .cl .ln { width: 86px; flex: none; text-align: right; padding-right: 26px; color: var(--ink3); font-size: 24px; }
.stage .cl .cx { color: var(--ink); overflow: hidden; }
.stage .cl.d-add { background: rgba(15, 157, 88, .12); } .stage .cl.d-add .ln { color: var(--good); font-weight: 700; }
.stage .cl.d-del { background: rgba(229, 72, 77, .12); } .stage .cl.d-del .ln { color: var(--bad); font-weight: 700; } .stage .cl.d-del .cx { color: #8a3a3c; }
.stage .c-k { color: #B4361F; font-weight: 500; } .stage .c-s { color: #0B7A4A; } .stage .c-n { color: #2E5BFF; } .stage .c-c { color: var(--ink3); font-style: italic; } .stage .c-h { color: var(--agent-deep); font-weight: 700; }
.stage.portrait .cl { height: 46px; font-size: 25px; } .stage.portrait .cl .ln { width: 60px; padding-right: 16px; font-size: 20px; }

/* chat */
.stage .chat { max-width: 1440px; width: 100%; align-self: center; }
.stage .chat-h { font: 700 54px var(--f-display); letter-spacing: -.02em; margin-bottom: 34px; }
.stage .chat-list { display: flex; flex-direction: column; gap: 28px; }
.stage .msg { display: flex; align-items: flex-end; gap: 22px; }
.stage .msg .av { flex: none; width: 80px; display: flex; justify-content: center; }
.stage .msg .bub { padding: 24px 32px; border-radius: 30px; font: 400 38px/1.38 var(--f-body); border: 4px solid var(--ink); max-width: 1180px; }
.stage .msg.from-you { flex-direction: row-reverse; }
.stage .msg.from-you .bub { background: var(--human); color: #fff; border-bottom-right-radius: 8px; }
.stage .msg.from-agent .bub { background: #fff; border-bottom-left-radius: 8px; box-shadow: 8px 8px 0 rgba(22,22,26,.1); }
.stage .msg.tone-bad .bub { border-color: var(--bad); box-shadow: 8px 8px 0 var(--bad-soft); } .stage .msg.tone-good .bub { border-color: var(--good); box-shadow: 8px 8px 0 var(--good-soft); }
.stage .bub-l { display: block; font: 700 22px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 8px; }
.stage .msg.typing .bub { display: flex; gap: 10px; padding: 26px 30px; }
.stage .msg.typing .bub i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink3); animation: aeDot 1s infinite; }
.stage .msg.typing .bub i:nth-child(2) { animation-delay: .15s; } .stage .msg.typing .bub i:nth-child(3) { animation-delay: .3s; }
@keyframes aeDot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.stage.portrait .msg .bub { font-size: 36px; max-width: 840px; }

/* loop */
.stage .lp { display: flex; align-items: center; justify-content: center; gap: 70px; }
.stage .lp-side { flex: 1; max-width: 700px; }
.stage .lp-box { position: relative; flex: none; }
.stage .lp-svg { position: absolute; inset: 0; }
.stage .lp-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 2; }
.stage .lp-c { width: 140px; height: 140px; border-radius: 50%; background: var(--paper); border: 5px solid var(--ink); display: grid; place-items: center; color: var(--ink); transition: none; }
.stage .lp-node.hot .lp-c { box-shadow: 0 0 0 12px rgba(255, 194, 26, .3); }
.stage .lp-l { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; width: 340px; display: flex; flex-direction: column; gap: 4px; }
.stage .lp-l.below { top: 152px; } .stage .lp-l.above { bottom: 152px; }
.stage .lp-l.left { right: 160px; left: auto; top: 50%; transform: translateY(-50%); text-align: right; width: 300px; align-items: flex-end; }
.stage .lp-l.right { left: 160px; top: 50%; transform: translateY(-50%); text-align: left; width: 300px; align-items: flex-start; }
.stage .lp-l b { font: 700 40px var(--f-display); letter-spacing: -.02em; } .stage .lp-l i { font: 400 26px var(--f-body); color: var(--ink2); font-style: normal; }
.stage .lp-center { position: absolute; transform: translate(-50%, -50%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 280px; }
.stage .lp-center b { font: 700 40px var(--f-display); } .stage .lp-center i { font: 400 26px var(--f-body); color: var(--ink2); font-style: normal; }
.stage .lp-dot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--agent); border: 5px solid var(--ink); z-index: 3; opacity: 0; }
.stage.portrait .lp { flex-direction: column; gap: 40px; }
.stage.portrait .lp-side { max-width: none; width: 100%; }
.stage .bg-ink .lp-c { background: var(--ink); color: var(--paper); border-color: var(--paper); }
.stage .bg-ink .arcs { stroke: var(--paper); }

/* flow */
.stage .fl { display: flex; flex-direction: column; align-items: center; gap: 46px; }
.stage .fl-title { align-self: flex-start; }
.stage .fl-row { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: nowrap; }
.stage .fl-node { width: 260px; min-height: 250px; padding: 26px 18px; background: #fff; border: 4px solid var(--ink); border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; box-shadow: 10px 10px 0 rgba(22, 22, 26, .12); }
.stage .fl-node b { font: 700 34px/1.12 var(--f-display); letter-spacing: -.02em; } .stage .fl-node i { font: 400 24px/1.3 var(--f-body); color: var(--ink2); font-style: normal; }
.stage .fl-art { height: 96px; display: grid; place-items: center; color: var(--ink); }
.stage .fl-node.kind-agent { background: var(--agent-soft); } .stage .fl-node.kind-human { background: var(--human-soft); }
.stage .fl-node.kind-tool, .stage .fl-node.kind-code { background: var(--ink); color: var(--paper); } .stage .fl-node.kind-tool i, .stage .fl-node.kind-code i { color: #b9b9c2; } .stage .fl-node.kind-tool .fl-art, .stage .fl-node.kind-code .fl-art { color: var(--paper); }
.stage .fl-node.kind-test, .stage .fl-node.kind-check { background: var(--good-soft); } .stage .fl-node.kind-test .fl-art, .stage .fl-node.kind-check .fl-art { color: var(--good); }
.stage .fl-node.kind-warn { background: var(--bad-soft); } .stage .fl-node.kind-warn .fl-art { color: var(--bad); }
.stage .fl-node.kind-doc { background: #FFFDF5; } .stage .fl-node.kind-doc .fl-art { color: var(--agent-deep); }
.stage .fl-arrow { position: relative; flex: none; display: grid; place-items: center; }
.stage .fl-arrow svg { overflow: visible; } .stage .fl-arrow path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.stage .fl-edge { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 34px var(--f-hand); color: var(--agent-deep); }
.stage .fl-cap { font: 500 36px/1.4 var(--f-body); color: var(--ink2); text-align: center; max-width: 1400px; margin: 0; }
.stage .fl.vert .fl-row { flex-direction: column; gap: 4px; }
.stage .fl.vert .fl-node { width: 760px; min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; padding: 20px 28px; gap: 26px; }
.stage .fl.vert .fl-node > b { flex: 1; }
.stage .fl.vert .fl-node i { display: none; }
.stage .fl.vert .fl-art { height: auto; }
.stage .fl.vert .fl-edge { top: 50%; left: 70px; transform: translateY(-50%); }
.stage .bg-ink .fl-node { color: var(--ink); }

/* context window */
.stage .ctx { width: 100%; max-width: 1620px; align-self: center; }
.stage .ctx-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.stage .ctx-title { font: 700 58px var(--f-display); letter-spacing: -.02em; } .stage .ctx-cap { font: 600 32px var(--f-mono); color: var(--ink2); }
.stage .ctx-bar { position: relative; height: 190px; border: 5px solid var(--ink); border-radius: 26px; background: repeating-linear-gradient(-45deg, #fff, #fff 14px, #F3EFE6 14px, #F3EFE6 28px); display: flex; overflow: hidden; padding: 10px; gap: 8px; }
.stage .cb { height: 100%; border-radius: 14px; display: flex; align-items: flex-end; padding: 14px 16px; overflow: hidden; flex: none; border: 3px solid rgba(22,22,26,.85); }
.stage .cb span { font: 600 24px/1.15 var(--f-body); white-space: normal; }
.stage .cb.kind-sys { background: #2B2B33; color: #fff; } .stage .cb.kind-mem { background: var(--warn); } .stage .cb.kind-you { background: var(--human); color: #fff; } .stage .cb.kind-file { background: var(--human-soft); }
.stage .cb.kind-tool { background: var(--agent-soft); } .stage .cb.kind-out { background: var(--s1); color: var(--ink); } .stage .cb.kind-junk { background: #C9C2B3; color: #57534a; } .stage .cb.kind-sum { background: var(--good); color: #fff; } .stage .cb.kind-plan { background: var(--good-soft); }
.stage .ctx-zones { position: relative; height: 92px; margin-top: 12px; }
.stage .zone { position: absolute; top: 0; height: 100%; border-top: 6px solid; display: flex; justify-content: center; padding-top: 12px; }
.stage .zone span { font: 700 40px var(--f-hand); }
.stage .zone.tone-good { border-color: var(--good); color: var(--good); } .stage .zone.tone-bad { border-color: var(--bad); color: var(--bad); } .stage .zone.tone-warn { border-color: var(--warn); color: #b07400; }
.stage .ctx-foot { display: flex; align-items: center; gap: 40px; margin-top: 18px; }
.stage .ctx-pct { font: 600 34px var(--f-mono); } .stage .ctx-pct b { font-size: 46px; color: var(--agent-deep); }
.stage .ctx-note { font: 500 34px/1.35 var(--f-body); color: var(--ink2); }
.stage.portrait .ctx-bar { height: 260px; } .stage.portrait .ctx-title { font-size: 54px; } .stage.portrait .ctx-foot { flex-direction: column; align-items: flex-start; gap: 20px; }

/* compare */
.stage .cmp { width: 100%; }
.stage .cmp-cols { display: flex; align-items: stretch; gap: 30px; }
.stage .cmp-col { flex: 1; border: 4px solid var(--ink); border-radius: 30px; padding: 40px 44px; background: #fff; box-shadow: 10px 10px 0 rgba(22, 22, 26, .12); }
.stage .cmp-h { display: flex; align-items: center; gap: 18px; font: 700 50px/1.1 var(--f-display); letter-spacing: -.02em; margin-bottom: 30px; }
.stage .cmp-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.stage .cmp-col li { display: flex; gap: 18px; align-items: flex-start; font: 400 36px/1.32 var(--f-body); }
.stage .mk-i { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-top: 0; }
.stage .cmp-col.tone-bad { background: #FBF8F2; } .stage .cmp-col.tone-bad .cmp-h { color: var(--bad); } .stage .cmp-col.tone-bad .mk-i { background: var(--bad-soft); color: var(--bad); } .stage .cmp-col.tone-bad li { color: var(--ink2); }
.stage .cmp-col.tone-good { background: #fff; border-color: var(--ink); } .stage .cmp-col.tone-good .cmp-h { color: var(--good); } .stage .cmp-col.tone-good .mk-i { background: var(--good-soft); color: var(--good); }
.stage .cmp-col.tone-human .cmp-h { color: var(--human); } .stage .cmp-col.tone-human .mk-i { background: var(--human-soft); color: var(--human); } .stage .cmp-col.tone-human { background: #F7F9FF; }
.stage .cmp-col.tone-agent .cmp-h { color: var(--agent-deep); } .stage .cmp-col.tone-agent .mk-i { background: var(--agent-soft); color: var(--agent-deep); } .stage .cmp-col.tone-agent { background: #FFF8F4; }
.stage .cmp-col.tone-neutral .mk-i { background: var(--paper2); color: var(--ink2); }
.stage .cmp-vs { align-self: center; font: 700 36px var(--f-mono); color: var(--ink3); background: var(--paper); border: 4px solid var(--ink); border-radius: 50%; width: 90px; height: 90px; display: grid; place-items: center; flex: none; margin: 0 -60px; z-index: 2; }
.stage.portrait .cmp-cols { flex-direction: column; gap: 10px; }
.stage.portrait .cmp-vs { margin: -40px auto; }
.stage.portrait .cmp-col { padding: 34px 36px; } .stage.portrait .cmp-col li { font-size: 34px; } .stage.portrait .cmp-h { font-size: 46px; }

/* list */
.stage .lst { max-width: 1500px; }
.stage .lst ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 34px; }
.stage .lst li { display: flex; gap: 30px; align-items: flex-start; }
.stage .li-t { font: 500 46px/1.25 var(--f-body); letter-spacing: -.01em; padding-top: 4px; }
.stage .li-t small { display: block; font: 400 32px/1.35 var(--f-body); color: var(--ink2); margin-top: 8px; letter-spacing: 0; }
.stage .lst.dense ul { gap: 24px; } .stage .lst.dense .li-t { font-size: 40px; }
.stage.landscape .lst.cols2 ul { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 70px; }
.stage .bul { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; border: 4px solid var(--ink); background: #fff; }
.stage .bul.num { font: 700 34px var(--f-mono); background: var(--ink); color: var(--paper); }
.stage .bul.dot { width: 26px; height: 26px; border-radius: 50%; background: var(--agent); margin: 18px 19px; }
.stage .bul.ico.tone-good { background: var(--good-soft); color: var(--good); } .stage .bul.ico.tone-bad { background: var(--bad-soft); color: var(--bad); }
.stage .bg-ink .li-t small { color: #b9b9c2; } .stage .bg-ink .bul { border-color: var(--paper); }
.stage.portrait .li-t { font-size: 44px; } .stage.portrait .lst.dense .li-t { font-size: 38px; }

/* stat */
.stage .stat { width: 100%; }
.stage .stat-row { display: flex; gap: 60px; align-items: flex-start; }
.stage .stat-i { flex: 1; }
.stage .stat-v { font: 700 220px/1 var(--f-display); letter-spacing: -.05em; }
.stage .stat.n2 .stat-v, .stage .stat.n3 .stat-v { font-size: 170px; }
.stage .stat-i.tone-agent .stat-v { color: var(--ink); } .stage .stat-i.tone-agent .stat-v .num { background: linear-gradient(transparent 62%, var(--s1) 62%, var(--s1) 90%, transparent 90%); } .stage .stat-i.tone-human .stat-v { color: var(--human); } .stage .stat-i.tone-bad .stat-v { color: var(--bad); } .stage .stat-i.tone-good .stat-v { color: var(--good); } .stage .stat-i.tone-ink .stat-v { color: var(--ink); }
.stage .stat-l { font: 600 46px/1.22 var(--f-display); letter-spacing: -.015em; margin-top: 18px; max-width: 900px; }
.stage .stat-s { font: 400 32px/1.4 var(--f-body); color: var(--ink2); margin-top: 14px; max-width: 900px; }
.stage.portrait .stat-row { flex-direction: column; gap: 70px; } .stage.portrait .stat-v { font-size: 190px; }

/* parallel agents */
.stage .lanes-wrap { width: 100%; max-width: 1560px; align-self: center; }
.stage .lanes { display: flex; flex-direction: column; gap: 24px; }
.stage .lane { display: flex; align-items: center; gap: 28px; background: #fff; border: 4px solid var(--ink); border-radius: 24px; padding: 14px 30px 14px 20px; box-shadow: 8px 8px 0 rgba(22, 22, 26, .1); }
.stage .lane-main { flex: 1; }
.stage .lane-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.stage .lane-top b { font: 700 36px var(--f-display); letter-spacing: -.015em; } .stage .lane-st { font: 500 26px var(--f-mono); color: var(--ink2); font-style: normal; }
.stage .lane-bar { height: 20px; border-radius: 10px; background: var(--paper2); overflow: hidden; }
.stage .lane-bar i { display: block; height: 100%; background: var(--agent); transform-origin: left; transform: scaleX(0); border-radius: 10px; }
.stage .lane.is-done .lane-bar i { background: var(--good); }
.stage .lane.tone-bad .lane-bar i { background: var(--bad); }
.stage .lane-done { width: 56px; height: 56px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; flex: none; opacity: 0; }
.stage .lane.tone-bad .lane-done { background: var(--bad); }
.stage .merge { display: flex; align-items: center; gap: 18px; margin-top: 30px; font: 700 40px var(--f-display); color: var(--good); justify-content: center; }
.stage.portrait .lane { padding: 12px 22px 12px 14px; gap: 18px; } .stage.portrait .lane-top b { font-size: 32px; } .stage.portrait .lane-st { font-size: 22px; }

/* stack */
.stage .stk-wrap { display: flex; align-items: center; gap: 80px; }
.stage .stk-side { flex: 1; }
.stage .stk { flex: none; width: 900px; display: flex; flex-direction: column-reverse; gap: 16px; }
.stage .layer { border: 4px solid var(--ink); border-radius: 24px; padding: 26px 36px; display: flex; align-items: center; gap: 22px; box-shadow: 8px 8px 0 rgba(22, 22, 26, .12); }
.stage .layer b { font: 700 42px var(--f-display); letter-spacing: -.02em; } .stage .layer i { margin-left: auto; font: 400 28px var(--f-body); font-style: normal; opacity: .85; text-align: right; }
.stage .layer.tone-ink { background: var(--ink); color: var(--paper); } .stage .layer.tone-agent { background: var(--s1); color: var(--ink); } .stage .layer.tone-human { background: var(--human); color: #fff; }
.stage .layer.tone-paper { background: #fff; } .stage .layer.tone-good { background: var(--good-soft); } .stage .layer.tone-warn { background: var(--warn-soft); } .stage .layer.tone-soft { background: var(--agent-soft); }
.stage.portrait .stk-wrap { flex-direction: column; align-items: stretch; gap: 50px; } .stage.portrait .stk { width: 100%; }

/* timeline */
.stage .tln { width: 100%; }
.stage .tln-track { position: relative; height: 560px; }
.stage .tln-line { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; background: var(--ink); border-radius: 3px; }
.stage .ev { position: absolute; top: 50%; }
.stage .ev-dot { position: absolute; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--paper); border: 6px solid var(--ink); }
.stage .ev.now .ev-dot { background: var(--agent); }
.stage .ev-box { position: absolute; left: 0; bottom: 44px; transform: translateX(-50%); width: 320px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.stage .ev.alt .ev-box { bottom: auto; top: 44px; }
.stage .ev-when { font: 700 28px var(--f-mono); color: var(--agent-deep); } .stage .ev-box b { font: 700 36px/1.12 var(--f-display); letter-spacing: -.015em; } .stage .ev-box i { font: 400 26px/1.3 var(--f-body); color: var(--ink2); font-style: normal; }
.stage .tln.vert .tln-track { height: 1240px; }
.stage .tln.vert .tln-line { left: 70px; right: auto; top: 0; bottom: 0; width: 6px; height: 100%; margin: 0 0 0 -3px; }
.stage .tln.vert .ev { left: 73px !important; }
.stage .tln.vert .ev-box, .stage .tln.vert .ev.alt .ev-box { left: 50px; top: 0; bottom: auto; transform: translateY(-50%); text-align: left; width: 780px; }

/* spectrum */
.stage .spc { width: 100%; max-width: 1600px; align-self: center; }
.stage .spc-ends { display: flex; justify-content: space-between; margin-bottom: 40px; }
.stage .spc-end { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.stage .spc-end.r { align-items: flex-end; text-align: right; }
.stage .spc-end b { font: 700 42px var(--f-display); letter-spacing: -.02em; } .stage .spc-end i { font: 400 28px var(--f-body); color: var(--ink2); font-style: normal; }
.stage .spc-track { position: relative; height: 34px; border-radius: 17px; background: linear-gradient(90deg, var(--s1), #9CCB8F, var(--s2)); border: 4px solid var(--ink); margin: 60px 0 220px; }
.stage .spc-mark { position: absolute; top: 0; transform: translateX(-50%); }
.stage .spc-mark .tick { position: absolute; left: -3px; top: 30px; width: 6px; height: 40px; background: var(--ink); border-radius: 3px; }
.stage .spc-mark .lab { position: absolute; top: 84px; left: 0; transform: translateX(-50%); width: 300px; text-align: center; font: 600 32px/1.2 var(--f-body); }
.stage .spc-knob { position: absolute; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: #fff; border: 6px solid var(--ink); box-shadow: 0 6px 0 rgba(22,22,26,.2); }
.stage.portrait .spc-ends { margin-bottom: 20px; } .stage.portrait .spc-track { margin: 40px 0 300px; } .stage.portrait .spc-mark .lab { width: 230px; font-size: 28px; } .stage.portrait .spc-mark:nth-child(even) .lab { top: 180px; }

/* venn */
.stage .venn-wrap { display: flex; align-items: center; gap: 70px; justify-content: center; }
.stage .venn-side { flex: 1; max-width: 640px; }
.stage .venn { position: relative; flex: none; }
.stage .venn svg { position: absolute; inset: 0; overflow: visible; }
.stage .vc { opacity: .5; mix-blend-mode: screen; stroke: rgba(255,255,255,.9); stroke-width: 4; }
.stage .vcore { fill: var(--bad); stroke: #fff; stroke-width: 5; }
.stage .vl { position: absolute; transform: translate(-50%, -50%); text-align: center; width: 300px; display: flex; flex-direction: column; gap: 4px; }
.stage .vl b { font: 700 38px/1.1 var(--f-display); } .stage .vl i { font: 400 25px/1.3 var(--f-body); opacity: .8; font-style: normal; }
.stage .vcenter { position: absolute; transform: translate(-50%, -50%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; width: 300px; }
.stage .vcenter b { font: 700 34px var(--f-display); background: var(--bad); padding: 6px 16px; border-radius: 10px; }
.stage .bg-paper .vc { mix-blend-mode: multiply; stroke: var(--ink); opacity: .35; }
.stage.portrait .venn-wrap { flex-direction: column; gap: 20px; } .stage.portrait .venn-side { max-width: none; }

/* file tree */
.stage .tree-wrap { display: flex; align-items: center; gap: 80px; }
.stage .tree-side { flex: 1; }
.stage .tree { flex: none; width: 960px; background: #fff; border: 4px solid var(--ink); border-radius: 26px; padding: 30px 40px; box-shadow: 12px 12px 0 rgba(22,22,26,.12); }
.stage .tr-row { display: flex; align-items: center; gap: 16px; height: 66px; font: 500 32px var(--f-mono); }
.stage .tr-row.root { font-weight: 700; }
.stage .tr-row.hl .tr-name { background: var(--agent-soft); padding: 2px 10px; border-radius: 8px; font-weight: 700; }
.stage .tr-note { font: 700 38px var(--f-hand); color: var(--agent-deep); margin-left: 10px; white-space: nowrap; }
.stage.portrait .tree-wrap { flex-direction: column; align-items: stretch; gap: 40px; } .stage.portrait .tree { width: 100%; } .stage.portrait .tr-row { font-size: 28px; }

/* chart */
.stage .chart-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; }
.stage .chart-wrap .side-h { align-self: flex-start; }
.stage .chart .axis { stroke: var(--ink); stroke-width: 5; }
.stage .chart .bar { fill: var(--paper3); stroke: var(--ink); stroke-width: 4; } .stage .chart .bar.hl { fill: var(--agent); }
.stage .chart .ln { fill: none; stroke: var(--agent); stroke-width: 8; stroke-linejoin: round; stroke-linecap: round; }
.stage .chart .pt { fill: #fff; stroke: var(--ink); stroke-width: 5; } .stage .chart .pt.hl { fill: var(--agent); }
.stage .chart .ch-x { font: 600 28px var(--f-mono); fill: var(--ink2); } .stage .chart .ch-v { font: 700 32px var(--f-display); fill: var(--ink); } .stage .chart .ch-y { font: 600 24px var(--f-mono); fill: var(--ink3); }

/* formula */
.stage .fml { width: 100%; }
.stage .fml-row { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }
.stage .fml-t { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 40px; border: 4px solid var(--ink); border-radius: 28px; background: #fff; min-width: 260px; box-shadow: 10px 10px 0 rgba(22,22,26,.12); }
.stage .fml-t b { font: 700 50px var(--f-display); letter-spacing: -.02em; } .stage .fml-t i { font: 400 26px/1.3 var(--f-body); color: var(--ink2); font-style: normal; text-align: center; max-width: 280px; }
.stage .fml-t.tone-agent { background: var(--s1); color: var(--ink); } .stage .fml-t.tone-agent i { color: var(--ink); opacity: .8; }
.stage .fml-t.tone-human { background: var(--human); color: #fff; } .stage .fml-t.tone-human i { color: #fff; opacity: .85; }
.stage .fml-t.tone-soft { background: var(--agent-soft); } .stage .fml-t.tone-good { background: var(--good-soft); } .stage .fml-t.tone-ink { background: var(--ink); color: var(--paper); } .stage .fml-t.tone-ink i { color: #c8c8d0; } .stage .fml-t.tone-paper { background: #fff; }
.stage .fml-op { font: 700 90px var(--f-display); color: var(--ink3); }
.stage .fml-cap { font: 500 38px/1.4 var(--f-body); color: var(--ink2); text-align: center; margin: 50px auto 0; max-width: 1400px; }
.stage.portrait .fml-row { flex-direction: column; gap: 10px; } .stage.portrait .fml-t { width: 760px; flex-direction: row; justify-content: flex-start; padding: 24px 30px; } .stage.portrait .fml-t i { text-align: left; max-width: none; margin-left: auto; } .stage.portrait .fml-op { font-size: 64px; line-height: .8; }

/* quiz */
.stage .quiz { width: 100%; max-width: 1560px; align-self: center; }
.stage .qz-kick { display: flex; align-items: center; gap: 14px; font: 700 28px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--agent-deep); margin-bottom: 26px; }
.stage .qz-q { font: 700 70px/1.1 var(--f-display); letter-spacing: -.015em; margin: 0 0 48px; }
.stage .qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stage .qz-o { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 24px; padding: 26px 30px; background: #fff; border: 4px solid var(--ink); border-radius: 24px; font: 500 36px/1.25 var(--f-body); color: var(--ink); cursor: pointer; box-shadow: 8px 8px 0 rgba(22,22,26,.12); position: relative; transition: background .2s, opacity .2s, transform .1s; }
.stage.mode-web .qz-o:hover { background: var(--agent-soft); }
.stage .qz-l { flex: none; width: 60px; height: 60px; border-radius: 16px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 700 30px var(--f-mono); }
.stage .qz-mark { margin-left: auto; font: 700 44px var(--f-display); }
.stage .qz-o.right { background: var(--good-soft); border-color: var(--good); } .stage .qz-o.right .qz-l { background: var(--good); } .stage .qz-o.right .qz-mark::after { content: "\2713"; color: var(--good); }
.stage .qz-o.wrong { background: var(--bad-soft); border-color: var(--bad); } .stage .qz-o.wrong .qz-l { background: var(--bad); } .stage .qz-o.wrong .qz-mark::after { content: "\2717"; color: var(--bad); }
.stage .qz-o.dim { opacity: .45; }
.stage .qz-explain { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; font: 500 36px/1.4 var(--f-body); color: var(--ink); opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s; }
.stage .qz-explain svg { color: var(--agent); flex: none; margin-top: 4px; }
.stage .quiz.revealed .qz-explain { opacity: 1; transform: none; }
.stage .quiz.revealed .qz-timer { opacity: 0 !important; }
.stage .qz-timer { position: absolute; right: 150px; bottom: 170px; display: flex; align-items: center; gap: 16px; font: 600 28px var(--f-mono); color: var(--ink2); }
.stage .qz-timer svg { width: 64px; height: 64px; transform: rotate(-90deg); } .stage .qz-timer circle { fill: none; stroke: var(--agent); stroke-width: 6; stroke-dasharray: 100.5; stroke-dashoffset: 0; }
.stage.mode-web .qz-timer { display: none; }
.stage.portrait .qz-opts { grid-template-columns: 1fr; } .stage.portrait .qz-q { font-size: 64px; } .stage.portrait .qz-timer { right: 80px; bottom: 330px; }

/* recap */
.stage .rc { display: flex; align-items: center; gap: 60px; }
.stage .rc-main { flex: 1; }
.stage .rc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 26px; }
.stage .rc li { display: flex; gap: 26px; align-items: flex-start; font: 500 42px/1.28 var(--f-body); letter-spacing: -.01em; }
.stage .rc-next { display: inline-flex; align-items: center; gap: 20px; margin-top: 50px; padding: 18px 28px; background: var(--ink); color: var(--paper); border-radius: 20px; font: 500 34px var(--f-body); }
.stage .rc-next span { font: 700 24px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--s1-deep); }
.stage .rc-next b { font: 700 36px var(--f-display); }
.stage .rc-art { flex: none; }
.stage.portrait .rc { flex-direction: column-reverse; align-items: flex-start; gap: 40px; } .stage.portrait .rc li { font-size: 40px; }

/* exercise */
.stage .ex { width: 100%; max-width: 1560px; align-self: center; }
.stage .ex-h { display: flex; align-items: center; gap: 18px; font: 700 60px var(--f-display); letter-spacing: -.02em; margin-bottom: 24px; }
.stage .ex-h svg { color: var(--agent); }
.stage .ex-intro { font: 400 38px/1.4 var(--f-body); color: var(--ink2); margin: 0 0 34px; max-width: 1400px; }
.stage .ex-card { background: var(--term); border: 4px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 14px 14px 0 rgba(22,22,26,.15); }
.stage .ex-bar { height: 62px; background: var(--term2); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font: 500 22px var(--f-mono); color: var(--term-dim); }
.stage .ex-copy { all: unset; cursor: pointer; font: 700 22px var(--f-mono); color: var(--ink); background: var(--agent); padding: 8px 18px; border-radius: 10px; }
.stage.mode-capture .ex-copy { visibility: hidden; }
.stage .ex-prompt { margin: 0; padding: 30px 36px; min-height: 260px; color: #fff; font: 400 32px/1.5 var(--f-mono); white-space: pre-wrap; }
.stage.portrait .ex-prompt { font-size: 29px; }

/* wall */
.stage .wall { width: 100%; }
.stage .wall-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 30px; }
.stage .wall-i { display: flex; align-items: center; gap: 16px; }
.stage .wall-i b { display: block; font: 700 30px/1.15 var(--f-display); } .stage .wall-i i { display: block; font: 400 22px/1.25 var(--f-body); color: var(--ink2); font-style: normal; }
.stage .wall-i .qt-av { width: 62px; height: 62px; font-size: 24px; }
.stage .wall-count { display: flex; align-items: baseline; gap: 20px; margin-top: 46px; }
.stage .wall-count b { font: 700 120px var(--f-display); color: var(--s1-deep); letter-spacing: -.022em; } .stage .wall-count span { font: 600 40px var(--f-display); }
.stage.portrait .wall-grid { grid-template-columns: repeat(2, 1fr); }

.stage.mode-capture, .stage.mode-capture * { transition: none !important; animation: none !important; }

.stage .stat-i.is-text .stat-v { font-size: 120px; letter-spacing: -.03em; }
.stage.portrait .stat-i.is-text .stat-v { font-size: 130px; }
.stage.landscape .lp.has-title { padding-right: 230px; }
.stage .lp-l.left, .stage .lp-l.right { width: 250px; }
.stage.landscape .lp-c { width: 124px; height: 124px; }
.stage.landscape .lp-l.below { top: 132px; } .stage.landscape .lp-l.above { bottom: 132px; }
.stage.landscape .lp-l.left { right: 140px; } .stage.landscape .lp-l.right { left: 140px; }
.stage .msg.from-you .bub code.ic { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); color: #fff; }
.stage .fl-node i { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.stage.landscape .lp.has-title { padding-right: 200px; }
.stage.landscape .lp.has-title .lp-box { margin-left: 240px; }
.stage.landscape .lp.has-title .side-h { font-size: 56px; }

/* portrait code: fit long lines, labels as a legend under the card; long kickers truncate before the brand */
.stage.portrait .cl { font-size: var(--code-fs, 25px); }
.stage .hl-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; margin-top: 30px; }
.stage .hl-chip { display: inline-flex; align-items: center; gap: 12px; font: 700 40px var(--f-hand); color: var(--agent-deep); }
.stage .hl-chip::before { content: ""; width: 24px; height: 24px; border-radius: 7px; background: var(--agent); border: 3px solid var(--ink); }
.stage .hl-chip.tone-human::before { background: var(--human); } .stage .hl-chip.tone-bad::before { background: var(--bad); } .stage .hl-chip.tone-good::before { background: var(--good); }
.stage.portrait .kicker { max-width: 600px; }
.stage.portrait .kicker .kt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===================== System One additions ===================== */
.stage .fxdefs { position: absolute; width: 0; height: 0; }
.stage .scene { background: var(--paper); }
.stage .bgfar { position: absolute; inset: -40px; background-image: radial-gradient(circle, rgba(29, 28, 26, .13) 2px, transparent 2.6px); background-size: 48px 48px; opacity: .55; pointer-events: none; }
.stage .scene.bg-grid .bgfar { background-image: linear-gradient(rgba(29, 28, 26, .08) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(29, 28, 26, .08) 1.5px, transparent 1.5px); background-size: 64px 64px; opacity: 1; }
.stage .scene.bg-grid::before { display: none; }
.stage .scene.bg-ink .bgfar { background-image: radial-gradient(circle, rgba(255, 255, 255, .1) 2px, transparent 2.6px); }
.stage .cam { transform-origin: 0 0; }
/* line boil: 3 displacement takes cycled at 8 fps on hand-drawn strokes (the cast's outlines); text never boils */
.stage[data-boil="0"] .boil { filter: url(#boil0); } .stage[data-boil="1"] .boil { filter: url(#boil1); } .stage[data-boil="2"] .boil { filter: url(#boil2); }
/* chrome */
.stage .brand { font: 700 26px var(--f-display); color: var(--ink2); }
.stage .brand-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--s1); border: 3.5px solid var(--ink); }
.stage .kicker { font: 600 26px var(--f-display); color: var(--ink3); }
.stage .kicker b { background: var(--ink); color: var(--s1); }
.stage .chip { background: var(--ink); color: var(--s1); }
.stage .eyebrow { color: var(--s1-deep); }
.stage .ti-h { font-weight: 800; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.stage .side-h, .stage .stm-h, .stage .qt-text { font-variation-settings: "opsz" 144; }
.stage .side-h { font-weight: 750; }
.stage .stm-h { font-weight: 750; }
.stage .mk { background-image: linear-gradient(transparent 60%, var(--s1) 60%, var(--s1) 90%, transparent 90%); }
.stage .ul { background-image: linear-gradient(var(--s2), var(--s2)); }
.stage .hnote { color: var(--s2-deep); }
.stage .cap-in { background: rgba(29, 28, 26, .9); font-weight: 600; }
.stage-progress i { background: var(--s1); }
/* the cast rig */
.stage .actor { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.stage .actor .a-c, .stage .actor .a-s { transform-origin: 50% 100%; }
.stage .actor .a-i { transform-origin: 50% 100%; line-height: 0; }
.stage .actor .ch { display: block; overflow: visible; }
.stage .a-tag { margin-top: 10px; font: 700 24px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.stage .ti-art { gap: 10px; align-items: flex-end; }
.stage .ti-art .actor + .actor { margin-left: -20px; }
.stage .stm-art .actor { margin: 0 20px; }
/* seam: the probability-bar wipe */
.stage .seam-wipe { position: absolute; inset: 0; z-index: 7; pointer-events: none; visibility: hidden; }
.stage .seam-wipe .sw-fill { position: absolute; inset: 0; background: var(--s1); }
.stage .seam-wipe .sw-edge { position: absolute; top: 0; bottom: 0; right: 0; width: 14px; background: var(--ink); }
/* cards + labels shared by the decision templates */
.stage .card { background: #FFFDF8; border: 4px solid var(--ink); border-radius: 26px; box-shadow: 10px 10px 0 rgba(29, 28, 26, .12); }
.stage .card-h { display: flex; align-items: center; gap: 16px; padding: 18px 26px; border-bottom: 3px solid var(--line); color: var(--ink2); }
.stage .lbl { font: 700 22px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.stage .qb { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px; font: 700 21px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; border: 3px solid var(--ink); flex: none; }
.stage .qb-noul, .stage .qb-predicate { background: var(--s1); color: var(--ink); }
.stage .qb-choice { background: var(--ink); color: var(--s1); }
.stage .qb-score { background: var(--s2); color: #fff; }
.stage .qb-box { background: #fff; color: var(--ink); }
.stage .pbar { position: relative; height: 22px; border-radius: 11px; background: var(--paper2); border: 3px solid var(--ink); overflow: hidden; flex: 1; min-width: 80px; }
.stage .pbar .pfill { position: absolute; inset: 0; background: var(--c, var(--s1)); transform-origin: 0 50%; transform: scaleX(0); }
/* request */
.stage .rq { display: grid; grid-template-columns: 560px 110px 1fr; align-items: center; gap: 0; width: 100%; }
.stage .rq-state { align-self: center; overflow: hidden; }
.stage .rq-text { margin: 0; padding: 26px 30px 30px; font: 500 34px/1.4 var(--f-body); }
.stage .rq-json { margin: 0; padding: 22px 26px 26px; font: 500 23px/1.45 var(--f-mono); white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.stage .rq-json .c-k { color: #8A5A00; } .stage .rq-json .c-s { color: var(--s2-deep); } .stage .rq-json .c-n { color: var(--human); }
.stage .rq-wire { position: relative; height: 40px; margin: 0 6px; }
.stage .rq-wire svg { width: 100%; height: 40px; overflow: visible; }
.stage .rq-wire path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.stage .rq-pulse { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--s1); border: 4px solid var(--ink); }
.stage .rq-model { margin-left: auto; font: 700 22px var(--f-mono); color: var(--ink); background: var(--s1-soft); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 14px; }
.stage .rq-lat { font: 700 24px var(--f-mono); color: var(--ink2); min-width: 120px; text-align: right; } .stage .rq-lat b { color: var(--ink); font-variant-numeric: tabular-nums; }
.stage .rq-rows { padding: 10px 26px 18px; }
.stage .rq-row { display: grid; grid-template-columns: 150px 1fr 330px; align-items: center; gap: 20px; min-height: 84px; border-bottom: 2.5px dashed var(--line); }
.stage .rq-row:last-child { border-bottom: 0; }
.stage .rq-row .qb { justify-self: start; }
.stage .rq-qt { font: 500 29px/1.25 var(--f-body); }
.stage .rq-a { display: flex; align-items: center; gap: 14px; }
.stage .rq-v { font: 700 34px var(--f-mono); font-variant-numeric: tabular-nums; min-width: 92px; } .stage .rq-v small { font-size: 22px; color: var(--ink3); }
.stage .rq-p { font: 700 26px var(--f-mono); color: var(--ink2); }
.stage .rq-chip { font: 700 25px var(--f-mono); background: var(--ink); color: var(--s1); border-radius: 10px; padding: 6px 12px; white-space: nowrap; }
.stage .rq-lab { font: 500 24px/1.2 var(--f-body); color: var(--ink2); }
.stage .rq-row.hl { background: linear-gradient(90deg, rgba(255, 194, 26, .28), rgba(255, 194, 26, 0)); border-radius: 14px; }
.stage .rq-foot { padding: 0 26px 20px; font: 500 24px var(--f-mono); color: var(--ink3); }
.stage.portrait .rq { grid-template-columns: 1fr; grid-template-rows: auto 90px auto; }
.stage.portrait .rq-wire { width: 40px; height: 90px; justify-self: center; margin: 0; }
.stage.portrait .rq-wire svg { width: 90px; height: 40px; transform: rotate(90deg) translate(25px, 25px); transform-origin: 0 0; position: absolute; left: 20px; top: 0; }
.stage.portrait .rq-pulse { display: none; }
.stage.portrait .rq-row { grid-template-columns: 130px 1fr; grid-template-rows: auto auto; min-height: 0; padding: 14px 0; row-gap: 10px; }
.stage.portrait .rq-a { grid-column: 1 / 3; }
.stage.portrait .rq-text { font-size: 36px; }
/* noul meter */
.stage .nl { width: 100%; }
.stage .nl-q { display: flex; align-items: center; gap: 22px; margin-bottom: 40px; }
.stage .nl-q h3 { margin: 0; font: 700 50px/1.15 var(--f-display); letter-spacing: -.012em; font-variation-settings: "opsz" 144; }
.stage .nl-rows { display: flex; flex-direction: column; gap: 26px; }
.stage .nl-row { position: relative; display: grid; grid-template-columns: 46% 1fr; align-items: center; gap: 40px; }
.stage .nl-t { font: 500 32px/1.25 var(--f-body); }
.stage .nl-track { position: relative; height: 30px; border-radius: 15px; background: var(--paper2); border: 3.5px solid var(--ink); }
.stage .nl-zones { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; }
.stage .nl-zones .zn { position: absolute; top: 0; bottom: 0; }
.stage .zn-no { left: 0; background: var(--bad-soft); } .stage .zn-rv { background: var(--warn-soft); } .stage .zn-yes { background: var(--good-soft); }
.stage .nl-mid { position: absolute; left: 50%; top: -10px; bottom: -10px; width: 3px; background: var(--ink3); opacity: .5; }
.stage .nl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 12px; background: var(--s1); opacity: .9; transform-origin: 0 50%; }
.stage .nl-dot { position: absolute; top: 50%; width: 0; height: 0; }
.stage .nl-dot b { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font: 700 25px var(--f-mono); background: #fff; border: 3.5px solid var(--ink); border-radius: 999px; padding: 6px 12px; font-variant-numeric: tabular-nums; box-shadow: 4px 4px 0 rgba(29, 28, 26, .18); white-space: nowrap; }
.stage .nl-dot.is-yes b { background: var(--good); color: #fff; } .stage .nl-dot.is-no b { background: var(--bad); color: #fff; } .stage .nl-dot.is-rv b { background: var(--warn); color: var(--ink); }
.stage .nl-axis { display: flex; justify-content: space-between; margin: 26px 0 0 calc(46% + 40px); font: 600 22px var(--f-mono); color: var(--ink3); }
.stage .nl-legend { display: flex; gap: 22px; margin: 30px 0 0 calc(46% + 40px); font: 600 24px var(--f-body); }
.stage .nl-legend span { padding: 6px 14px; border-radius: 10px; border: 2.5px solid var(--ink); }
.stage .lg-no { background: var(--bad-soft); } .stage .lg-rv { background: var(--warn-soft); } .stage .lg-yes { background: var(--good-soft); }
.stage .nl-note { position: absolute; right: 0; top: -40px; font: 700 34px var(--f-hand); color: var(--s2-deep); }
.stage.portrait .nl-row { grid-template-columns: 1fr; gap: 16px; }
.stage.portrait .nl-axis, .stage.portrait .nl-legend { margin-left: 0; }
.stage.portrait .nl-legend { flex-wrap: wrap; }
.stage.portrait .nl-q h3 { font-size: 46px; }
/* choice distribution + gauge */
.stage .ds { display: grid; grid-template-columns: 1fr 380px; gap: 70px; align-items: center; width: 100%; }
.stage .ds-state { display: flex; gap: 16px; align-items: flex-start; font: 500 italic 30px/1.35 var(--f-body); color: var(--ink2); margin-bottom: 30px; max-width: 1150px; }
.stage .ds-state svg { flex: none; margin-top: 4px; color: var(--ink3); }
.stage .ds-bars { display: flex; flex-direction: column; gap: 16px; }
.stage .ds-row, .stage .lv-row { display: grid; grid-template-columns: 330px 1fr 110px; align-items: center; gap: 22px; }
.stage .ds-l { font: 600 30px/1.15 var(--f-mono); }
.stage .ds-l small { display: block; font: 400 21px/1.2 var(--f-body); color: var(--ink3); margin-top: 4px; }
.stage .ds-track { position: relative; height: 34px; border-radius: 10px; background: var(--paper2); border: 3px solid var(--ink); overflow: hidden; }
.stage .ds-fill { position: absolute; inset: 0; background: var(--paper3); transform-origin: 0 50%; transform: scaleX(0); }
.stage .ds-row.top .ds-fill, .stage .lv-row .ds-fill { background: var(--s1); }
.stage .ds-p { font: 700 30px var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; }
.stage .ds-row.is-chosen .ds-l { background: var(--ink); color: var(--s1); border-radius: 10px; padding: 4px 10px; justify-self: start; }
.stage .ds-more { font: 500 24px var(--f-mono); color: var(--ink3); padding-left: 352px; }
.stage .gauge { position: relative; width: 380px; }
.stage .gauge svg { width: 380px; height: 228px; overflow: visible; }
.stage .g-tr { fill: none; stroke: var(--paper3); stroke-width: 26; stroke-linecap: round; }
.stage .g-fl { fill: none; stroke: var(--s1); stroke-width: 26; stroke-linecap: round; }
.stage .g-nd { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.stage .gauge circle { fill: var(--ink); }
.stage .g-v { text-align: center; margin-top: 8px; } .stage .g-v b { display: block; font: 700 64px var(--f-mono); font-variant-numeric: tabular-nums; } .stage .g-v span { font: 600 24px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.stage .ds-fml { margin-top: 26px; font: 500 24px/1.4 var(--f-mono); color: var(--ink2); background: var(--paper2); border-radius: 14px; padding: 14px 18px; }
.stage.portrait .ds { grid-template-columns: 1fr; gap: 40px; }
.stage.portrait .ds-row, .stage.portrait .lv-row { grid-template-columns: 250px 1fr 100px; gap: 16px; }
.stage.portrait .ds-l { font-size: 26px; }
.stage.portrait .ds-side { display: flex; flex-direction: column; align-items: center; }
.stage.portrait .ds-more { padding-left: 0; }
/* score levels */
.stage .lv { width: 100%; }
.stage .lv-rows { display: flex; flex-direction: column; gap: 14px; }
.stage .lv-row { grid-template-columns: 60px 1fr 380px 110px; }
.stage .lv-n { width: 52px; height: 52px; border-radius: 50%; border: 3.5px solid var(--ink); display: grid; place-items: center; font: 700 26px var(--f-mono); background: #fff; }
.stage .lv-t { font: 500 29px/1.25 var(--f-body); }
.stage .lv-axis { margin: 50px 120px 0 82px; }
.stage .lv-line { position: relative; height: 6px; background: var(--ink); border-radius: 3px; }
.stage .lv-tick { position: absolute; top: -12px; width: 4px; height: 30px; background: var(--ink); margin-left: -2px; }
.stage .lv-tick b { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); font: 700 24px var(--f-mono); color: var(--ink2); }
.stage .lv-mark { position: absolute; top: 3px; width: 0; height: 0; }
.stage .lv-mark b { position: absolute; left: 0; bottom: 18px; transform: translateX(-50%); font: 700 30px var(--f-mono); background: var(--s1); border: 3.5px solid var(--ink); border-radius: 12px; padding: 6px 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage .lv-mark b::after { content: ""; position: absolute; left: 50%; bottom: -16px; margin-left: -9px; border: 9px solid transparent; border-top: 9px solid var(--ink); }
.stage .lv-cap { margin-top: 64px; font: 500 24px var(--f-mono); color: var(--ink3); text-align: center; }
.stage.portrait .lv-row { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; row-gap: 8px; }
.stage.portrait .lv-row .ds-track { grid-column: 2; } .stage.portrait .lv-row .ds-p { grid-column: 2; text-align: left; margin-top: -4px; }
.stage.portrait .lv-axis { margin: 50px 30px 0; }
/* reliability + coverage plots */
.stage .rl, .stage .cv { display: grid; grid-template-columns: auto 1fr; gap: 70px; align-items: center; width: 100%; }
.stage .rl svg, .stage .cv svg { overflow: visible; display: block; }
.stage .rl-ax { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.stage .rl-grid { stroke: var(--line); stroke-width: 2; }
.stage .rl-diag { stroke: var(--ink3); stroke-width: 4; stroke-dasharray: 2 14; stroke-linecap: round; }
.stage .rl-dl { font: 600 24px var(--f-mono); fill: var(--ink3); }
.stage .rl-tk { font: 600 24px var(--f-mono); fill: var(--ink2); }
.stage .rl-xl, .stage .rl-yl { font: 600 26px var(--f-body); fill: var(--ink2); }
.stage .rl-pt { stroke: var(--ink); stroke-width: 3.5; }
.stage .rl-pt.tone-s1 { fill: var(--s1); } .stage .rl-pt.tone-s2 { fill: var(--s2); } .stage .rl-pt.tone-ink { fill: var(--ink); } .stage .rl-pt.tone-human { fill: var(--human); }
.stage .rl-ln { fill: none; stroke-width: 4.5; stroke-linejoin: round; } .stage .rl-ln.tone-s1 { stroke: #C99400; } .stage .rl-ln.tone-s2 { stroke: var(--s2); } .stage .rl-ln.tone-human { stroke: var(--human); } .stage .rl-ln.tone-ink { stroke: var(--ink); }
.stage .rl-gap { stroke: var(--bad); stroke-width: 3.5; stroke-dasharray: 6 6; }
.stage .rl-legend { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.stage .rl-lg { display: flex; align-items: center; gap: 16px; font: 600 30px var(--f-body); flex-wrap: wrap; }
.stage .rl-lg span { font: 600 26px var(--f-mono); color: var(--ink2); }
.stage .sw { width: 30px; height: 30px; border-radius: 50%; border: 3.5px solid var(--ink); flex: none; } .stage .sw.tone-s1 { background: var(--s1); } .stage .sw.tone-s2 { background: var(--s2); } .stage .sw.tone-human { background: var(--human); } .stage .sw.tone-ink { background: var(--ink); }
.stage .rl-note { font-size: 32px; }
.stage .cv-ln { fill: none; stroke: var(--s1-deep); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.stage .cv-tg { stroke: var(--good); stroke-width: 4; stroke-dasharray: 10 10; }
.stage .cv-tgl { font: 700 24px var(--f-mono); fill: var(--good); }
.stage .cv-knob circle { fill: var(--s1); stroke: var(--ink); stroke-width: 5; }
.stage .cv-drop { stroke: var(--ink3); stroke-width: 2.5; stroke-dasharray: 4 8; }
.stage .cv-reads { position: relative; display: flex; flex-direction: column; gap: 18px; }
.stage .cv-read { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 22px; border: 3.5px solid var(--ink); border-radius: 18px; background: #FFFDF8; }
.stage .cv-th { font: 600 24px var(--f-mono); color: var(--ink2); } .stage .cv-th b { color: var(--ink); background: var(--s1); padding: 0 8px; border-radius: 6px; }
.stage .cv-n { font: 500 30px var(--f-body); } .stage .cv-n b { font: 700 34px var(--f-mono); }
.stage .cv-read i { font: 500 italic 24px var(--f-body); color: var(--ink2); font-style: normal; }
.stage.portrait .rl, .stage.portrait .cv { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
.stage.portrait .rl-side, .stage.portrait .cv-side { width: 100%; }
.stage.portrait .cv-reads { flex-direction: column; }
/* lanes */
.stage .ln3 { width: 100%; }
.stage .ln3-in { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: stretch; }
.stage .ln3-src { border: 4px dashed var(--ink3); border-radius: 22px; display: flex; align-items: flex-start; justify-content: center; padding: 18px; min-height: 200px; }
.stage .ln3-lanes { display: flex; flex-direction: column; gap: 22px; }
.stage .ln3-lane { border: 4px solid var(--ink); border-radius: 22px; padding: 14px 20px; display: grid; grid-template-columns: 430px 1fr; gap: 20px; align-items: center; min-height: 130px; background: #FFFDF8; }
.stage .ln3-lane.tone-good { background: var(--good-soft); } .stage .ln3-lane.tone-warn { background: var(--warn-soft); } .stage .ln3-lane.tone-human { background: var(--human-soft); } .stage .ln3-lane.tone-bad { background: var(--bad-soft); }
.stage .ln3-h { display: flex; align-items: center; gap: 16px; } .stage .ln3-h span { display: flex; flex-direction: column; } .stage .ln3-h b { font: 700 32px var(--f-display); } .stage .ln3-h i { font: 600 22px var(--f-mono); color: var(--ink2); font-style: normal; }
.stage .ln3-n { margin-left: auto; font: 700 44px var(--f-mono); font-style: normal; min-width: 50px; text-align: right; }
.stage .ln3-slot { display: flex; flex-wrap: wrap; gap: 12px; }
.stage .ln3-card { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 8px 14px; font: 500 23px/1.2 var(--f-body); max-width: 400px; box-shadow: 4px 4px 0 rgba(29, 28, 26, .14); }
.stage .ln3-card b { font: 700 22px var(--f-mono); background: var(--s1); border-radius: 8px; padding: 2px 8px; flex: none; }
.stage.portrait .ln3-in { grid-template-columns: 1fr; grid-template-rows: 120px auto; gap: 26px; }
.stage.portrait .ln3-src { min-height: 0; }
.stage.portrait .ln3-lane { grid-template-columns: 1fr; }
/* race */
.stage .rc2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; width: 100%; }
.stage .rc2-col { border: 4px solid var(--ink); border-radius: 26px; background: #FFFDF8; padding: 22px 26px; min-height: 560px; }
.stage .rc2-col.left { background: var(--s2-soft); } .stage .rc2-col.right { background: var(--s1-soft); }
.stage .rc2-h { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; } .stage .rc2-h span:nth-child(2) { display: flex; flex-direction: column; } .stage .rc2-h b { font: 750 36px var(--f-display); } .stage .rc2-h i { font: 500 22px var(--f-body); color: var(--ink2); font-style: normal; }
.stage .rc2-t { margin-left: auto; font: 700 40px var(--f-mono); font-variant-numeric: tabular-nums; } .stage .rc2-t b { font-weight: 700; }
.stage .rc2-out { margin: 0; font: 500 25px/1.5 var(--f-mono); white-space: pre-wrap; color: var(--ink); background: rgba(255, 255, 255, .6); border-radius: 16px; padding: 16px 18px; min-height: 360px; }
.stage .rc2-ans { display: flex; flex-direction: column; gap: 14px; }
.stage .rc2-a { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 12px 18px; font: 500 27px var(--f-body); } .stage .rc2-a b { font: 700 28px var(--f-mono); }
.stage.portrait .rc2 { grid-template-columns: 1fr; gap: 30px; } .stage.portrait .rc2-col { min-height: 0; } .stage.portrait .rc2-out { min-height: 260px; font-size: 23px; }
/* decompose */
.stage .dc { width: 100%; display: flex; flex-direction: column; gap: 34px; }
.stage .dc-big { display: flex; align-items: center; gap: 22px; align-self: center; border: 4px solid var(--ink); border-radius: 22px; background: #FFFDF8; padding: 18px 28px; font: 700 44px var(--f-display); transition: none; }
.stage .dc-big.is-split { opacity: .45; text-decoration: line-through; text-decoration-thickness: 5px; }
.stage .dc-bp { font: 700 36px var(--f-mono); }
.stage .dc-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; }
.stage .dc-parts.n3 { grid-template-columns: 1fr 1fr 1fr; }
.stage .dc-p { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 10px 16px; align-items: center; border: 3.5px solid var(--ink); border-radius: 18px; background: #fff; padding: 14px 18px; }
.stage .dc-t { font: 500 27px/1.2 var(--f-body); }
.stage .dc-v { grid-column: 1 / 3; display: flex; align-items: center; gap: 14px; } .stage .dc-v b { font: 700 28px var(--f-mono); } .stage .dc-v em { font: 700 24px var(--f-mono); color: var(--ink2); font-style: normal; }
.stage .dc-res { display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 4px solid var(--ink); border-radius: 22px; background: var(--ink); color: var(--paper); padding: 18px 28px; }
.stage .dc-f { font: 500 26px/1.35 var(--f-mono); color: #d8d4c8; }
.stage .dc-rv { display: flex; align-items: center; gap: 18px; flex: none; } .stage .dc-rv i { font: 600 24px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; font-style: normal; color: #bdb8ab; } .stage .dc-rv b { font: 800 60px var(--f-mono); color: var(--s1); display: inline-block; }
.stage.portrait .dc-parts, .stage.portrait .dc-parts.n3 { grid-template-columns: 1fr; }
.stage.portrait .dc-big { font-size: 38px; align-self: stretch; }
.stage.portrait .dc-res { flex-direction: column; align-items: flex-start; }
/* table */
.stage .tb { width: 100%; }
.stage .tb-grid { display: grid; border: 4px solid var(--ink); border-radius: 22px; overflow: hidden; background: #FFFDF8; }
.stage .tb-c { padding: 16px 20px; font: 500 27px/1.25 var(--f-body); border-bottom: 2.5px solid var(--line); border-right: 2.5px solid var(--line); display: flex; align-items: center; }
.stage .tb-head { background: var(--ink); color: var(--paper); font: 700 24px var(--f-mono); letter-spacing: .03em; border-color: #3a3833; }
.stage .tb-first { font: 700 29px var(--f-display); }
.stage .tb-hl { background: var(--s1-soft); }
.stage .tb-note { margin: 22px 0 0; font: 500 24px var(--f-mono); color: var(--ink3); }
.stage.portrait .tb-c { font-size: 23px; padding: 12px 12px; } .stage.portrait .tb-first { font-size: 24px; } .stage.portrait .tb-head { font-size: 19px; }
/* systems */
.stage .sy { width: 100%; }
.stage .sy-cols { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 36px; }
.stage .sy.n2 .sy-cols { --n: 2; } .stage .sy.n3 .sy-cols { --n: 3; } .stage .sy.n4 .sy-cols { --n: 4; gap: 24px; }
.stage .sy-col { border: 4px solid var(--ink); border-radius: 26px; background: #FFFDF8; padding: 20px 26px 26px; display: flex; flex-direction: column; align-items: flex-start; }
.stage .sy-col.who-snap { background: var(--s1-soft); } .stage .sy-col.who-mull { background: var(--s2-soft); } .stage .sy-col.who-curly { background: #E7E3DA; } .stage .sy-col.who-you { background: var(--human-soft); }
.stage .sy-av { height: 175px; display: flex; align-items: flex-end; margin-bottom: 10px; }
.stage .sy-h { font: 750 40px/1.1 var(--f-display); } .stage .sy-s { font: 600 22px var(--f-mono); color: var(--ink2); font-style: normal; margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.stage .sy-col ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.stage .sy-col li { font: 500 27px/1.3 var(--f-body); padding-left: 30px; position: relative; } .stage .sy-col li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.stage.portrait .sy-cols { grid-template-columns: 1fr; gap: 22px; } .stage.portrait .sy-col { display: grid; grid-template-columns: 140px 1fr; column-gap: 20px; padding: 16px 20px; } .stage.portrait .sy-av { grid-row: 1 / 4; height: auto; } .stage.portrait .sy-col ul { grid-column: 2; margin-top: 10px; } .stage.portrait .sy-h { font-size: 34px; } .stage.portrait .sy-col li { font-size: 25px; }
/* router */
.stage .rt { width: 100%; }
.stage .rt-in { position: relative; display: grid; grid-template-columns: 420px 360px 1fr; gap: 0 60px; align-items: center; }
.stage .rt-src { padding: 20px 24px; } .stage .rt-src p { margin: 10px 0 0; font: 500 28px/1.35 var(--f-body); }
.stage .rt-hub { display: flex; flex-direction: column; align-items: center; text-align: center; z-index: 1; } .stage .rt-hub b { font: 750 32px var(--f-display); margin-top: 8px; } .stage .rt-hub i { font: 600 22px var(--f-mono); color: var(--ink2); font-style: normal; }
.stage .rt-wires { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.stage .rt-wires path { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 1 1; }
.stage .rt-dst { display: flex; flex-direction: column; gap: 22px; z-index: 1; }
.stage .rt-d { display: flex; align-items: center; gap: 18px; border: 4px solid var(--ink); border-radius: 20px; background: #FFFDF8; padding: 12px 20px; }
.stage .rt-d.tone-s1 { background: var(--s1-soft); } .stage .rt-d.tone-s2 { background: var(--s2-soft); } .stage .rt-d.tone-human { background: var(--human-soft); } .stage .rt-d.tone-ink { background: #ECE8DE; }
.stage .rt-d span { display: flex; flex-direction: column; } .stage .rt-d b { font: 700 30px var(--f-display); } .stage .rt-d i { font: 500 22px var(--f-body); color: var(--ink2); font-style: normal; }
.stage .rt-d em { margin-left: auto; font: 700 32px var(--f-mono); font-style: normal; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 4px 12px; }
.stage .rt-cap { margin: 34px 0 0; font: 500 30px/1.35 var(--f-body); color: var(--ink2); }
.stage.portrait .rt-in { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 40px 0; }
/* jagged */
.stage .jg { width: 100%; display: flex; flex-direction: column; gap: 26px; }
.stage .jg-k { display: flex; align-items: center; gap: 14px; font: 700 26px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--bad); }
.stage .jg-card { padding: 24px 30px; }
.stage .jg-st { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; } .stage .jg-st code { font: 600 30px var(--f-mono); background: var(--paper2); padding: 4px 12px; border-radius: 10px; }
.stage .jg-q { display: flex; align-items: center; gap: 18px; font: 600 36px/1.25 var(--f-body); }
.stage .jg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 24px; }
.stage .jg-ans, .stage .jg-truth { position: relative; border: 3.5px solid var(--ink); border-radius: 18px; padding: 16px 22px; display: flex; flex-direction: column; gap: 6px; }
.stage .jg-ans { background: var(--bad-soft); } .stage .jg-truth { background: var(--good-soft); }
.stage .jg-ans b, .stage .jg-truth b { font: 750 56px var(--f-display); } .stage .jg-ans em { font: 700 26px var(--f-mono); font-style: normal; color: var(--ink2); }
.stage .jg-x { position: absolute; right: 20px; top: 50%; margin-top: -40px; width: 80px; height: 80px; border-radius: 50%; background: var(--bad); color: #fff; display: grid; place-items: center; border: 4px solid var(--ink); } .stage .jg-x svg { stroke-width: 3.2; width: 50px; height: 50px; }
.stage .jg-fix { background: var(--term); border: 4px solid var(--ink); border-radius: 22px; padding: 18px 26px; } .stage .jg-fix .lbl { color: var(--s1); } .stage .jg-fix pre { margin: 10px 0 0; font: 500 30px/1.45 var(--f-mono); color: var(--term-fg); white-space: pre-wrap; }
.stage .jg-fix .c-k { color: #FFC21A; } .stage .jg-fix .c-s { color: #8FD3C8; } .stage .jg-fix .c-n { color: #9DB7FF; } .stage .jg-fix .c-c { color: #8E8B84; }
.stage.portrait .jg-row { grid-template-columns: 1fr; }
/* outro */
.stage .oc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
.stage .oc-art { display: flex; align-items: flex-end; gap: 26px; }
.stage.portrait .oc-art { flex-wrap: wrap; justify-content: center; }
/* spectrum avatars */
.stage .spc-av { display: block; height: 130px; }
/* chat avatars for the cast */
.stage .msg .av svg { width: 76px; height: auto; }
.stage .msg.who-snap .bub { background: var(--s1-soft); } .stage .msg.who-mull .bub { background: var(--s2-soft); } .stage .msg.who-curly .bub { background: #ECE8DE; }
/* ---- sizing pass: fill the frame in landscape; phone-readable portrait (text >= ~34px at 1080 wide) ---- */
.stage .lbl { font-size: 24px; }
.stage .card-h { padding: 20px 30px; }
.stage .rq { grid-template-columns: 640px 120px 1fr; }
.stage .rq-text { font-size: 41px; padding: 30px 34px 36px; }
.stage .rq-json { font-size: 26px; padding: 24px 30px 30px; }
.stage .rq-row { grid-template-columns: 168px 1fr 360px; min-height: 112px; }
.stage .rq-qt { font-size: 34px; }
.stage .rq-v { font-size: 42px; min-width: 104px; } .stage .rq-v small { font-size: 26px; }
.stage .rq-chip { font-size: 29px; } .stage .rq-p { font-size: 29px; } .stage .rq-lab { font-size: 27px; }
.stage .pbar { height: 28px; border-radius: 14px; }
.stage .rq-model { font-size: 25px; } .stage .rq-lat { font-size: 28px; }
.stage .qb { height: 46px; font-size: 23px; padding: 0 16px; }
.stage .nl-q h3 { font-size: 56px; } .stage .nl-t { font-size: 36px; } .stage .nl-dot b { font-size: 28px; } .stage .nl-track { height: 34px; border-radius: 17px; }
.stage .nl-rows { gap: 34px; }
.stage .ds { grid-template-columns: 1fr 420px; }
.stage .ds-state { font-size: 34px; }
.stage .ds-row { grid-template-columns: 360px 1fr 130px; } .stage .ds-l { font-size: 36px; } .stage .ds-track { height: 46px; border-radius: 12px; } .stage .ds-p { font-size: 36px; }
.stage .ds-bars { gap: 22px; }
.stage .gauge, .stage .gauge svg { width: 420px; } .stage .gauge svg { height: 252px; } .stage .g-v b { font-size: 76px; } .stage .ds-fml { font-size: 26px; }
.stage .lv-row { grid-template-columns: 64px 1fr 440px 130px; } .stage .lv-t { font-size: 33px; } .stage .lv-rows { gap: 20px; } .stage .lv-n { width: 58px; height: 58px; font-size: 28px; }
.stage .rl-lg { font-size: 34px; } .stage .rl-lg span { font-size: 28px; } .stage .rl-note { font-size: 34px; }
.stage .cv-n { font-size: 34px; } .stage .cv-n b { font-size: 38px; } .stage .cv-th { font-size: 27px; }
.stage .ln3-in { grid-template-columns: 330px 1fr; } .stage .ln3-lane { grid-template-columns: 500px 1fr; min-height: 150px; } .stage .ln3-h b { font-size: 37px; } .stage .ln3-h i { font-size: 25px; } .stage .ln3-card { font-size: 26px; } .stage .ln3-card b { font-size: 25px; } .stage .ln3-n { font-size: 50px; }
.stage .rc2-h b { font-size: 42px; } .stage .rc2-h i { font-size: 25px; } .stage .rc2-out { font-size: 29px; } .stage .rc2-a { font-size: 31px; } .stage .rc2-a b { font-size: 31px; } .stage .rc2-t { font-size: 46px; }
.stage .dc-big { font-size: 52px; } .stage .dc-t { font-size: 31px; } .stage .dc-v b { font-size: 32px; } .stage .dc-v em { font-size: 27px; } .stage .dc-f { font-size: 29px; } .stage .dc-rv b { font-size: 76px; } .stage .dc-p { padding: 18px 22px; }
.stage .tb-c { font-size: 31px; padding: 20px 24px; } .stage .tb-head { font-size: 25px; } .stage .tb-first { font-size: 33px; } .stage .tb-note { font-size: 26px; }
.stage .sy-av { height: 230px; } .stage .sy-h { font-size: 48px; } .stage .sy-s { font-size: 25px; } .stage .sy-col li { font-size: 31px; } .stage .sy-col { padding: 24px 30px 34px; min-height: 640px; }
.stage .rt-in { grid-template-columns: 480px 380px 1fr; } .stage .rt-src p { font-size: 36px; } .stage .rt-hub b { font-size: 38px; } .stage .rt-hub i { font-size: 25px; } .stage .rt-d b { font-size: 36px; } .stage .rt-d i { font-size: 26px; } .stage .rt-d em { font-size: 34px; } .stage .rt-d { padding: 16px 24px; } .stage .rt-dst { gap: 28px; } .stage .rt-cap { font-size: 32px; }
.stage .jg-q { font-size: 40px; } .stage .jg-st code { font-size: 34px; } .stage .jg-fix pre { font-size: 33px; } .stage .jg-ans b, .stage .jg-truth b { font-size: 64px; }
.stage.portrait .lbl { font-size: 26px; }
.stage.portrait .rq-text { font-size: 42px; } .stage.portrait .rq-json { font-size: 27px; } .stage.portrait .rq-qt { font-size: 37px; } .stage.portrait .rq-v { font-size: 46px; } .stage.portrait .rq-chip { font-size: 32px; } .stage.portrait .rq-p { font-size: 32px; } .stage.portrait .rq-lab { font-size: 30px; } .stage.portrait .rq-row { grid-template-columns: 150px 1fr; padding: 18px 0; }
.stage.portrait .nl-q h3 { font-size: 52px; } .stage.portrait .nl-t { font-size: 38px; } .stage.portrait .nl-dot b { font-size: 30px; } .stage.portrait .nl-axis { font-size: 26px; } .stage.portrait .nl-legend { font-size: 28px; } .stage.portrait .nl-rows { gap: 30px; }
.stage.portrait .ds-row { grid-template-columns: 260px 1fr 110px; } .stage.portrait .ds-l { font-size: 34px; } .stage.portrait .ds-p { font-size: 34px; } .stage.portrait .ds-state { font-size: 35px; } .stage.portrait .ds-more { font-size: 28px; }
.stage.portrait .lv-row { grid-template-columns: 58px 1fr; } .stage.portrait .lv-t { font-size: 36px; } .stage.portrait .lv-row .ds-p { font-size: 32px; }
.stage.portrait .rl-tk { font-size: 30px; } .stage.portrait .rl-xl, .stage.portrait .rl-yl { font-size: 32px; } .stage.portrait .rl-lg { font-size: 36px; } .stage.portrait .rl-note { font-size: 36px; }
.stage.portrait .cv-reads { display: grid; } .stage.portrait .cv-reads > * { grid-area: 1 / 1; } .stage.portrait .cv-n { font-size: 38px; } .stage.portrait .cv-th { font-size: 30px; }
.stage.portrait .ln3-card { font-size: 30px; } .stage.portrait .ln3-card b { font-size: 28px; } .stage.portrait .ln3-h b { font-size: 38px; } .stage.portrait .ln3-h i { font-size: 27px; } .stage.portrait .ln3-lane { min-height: 0; }
.stage.portrait .rc2-out { font-size: 28px; } .stage.portrait .rc2-a { font-size: 32px; } .stage.portrait .rc2-h b { font-size: 40px; }
.stage.portrait .dc-big { font-size: 44px; } .stage.portrait .dc-t { font-size: 34px; } .stage.portrait .dc-f { font-size: 27px; }
.stage.portrait .tb-c { font-size: 26px; padding: 14px 12px; } .stage.portrait .tb-first { font-size: 28px; } .stage.portrait .tb-head { font-size: 21px; }
.stage.portrait .sy-col { min-height: 0; } .stage.portrait .sy-h { font-size: 42px; } .stage.portrait .sy-col li { font-size: 32px; } .stage.portrait .sy-s { font-size: 24px; }
.stage.portrait .rt-src p { font-size: 38px; } .stage.portrait .rt-d b { font-size: 38px; } .stage.portrait .rt-d i { font-size: 28px; }
.stage.portrait .jg-q { font-size: 38px; } .stage.portrait .jg-fix pre { font-size: 29px; }
/* capture determinism: no wall-clock CSS transitions anywhere on a captured stage */
.stage.mode-capture, .stage.mode-capture * { transition: none !important; animation: none !important; }
.stage.qa-noboil .boil { filter: none !important; }
.stage .lv-axis { margin-top: 96px; }
.stage .rq.st-json { grid-template-columns: 540px 96px 1fr; }
.stage .rq.st-json .rq-json { font-size: 24px; }
.stage .rq-row { grid-template-columns: 150px minmax(0, 1fr) 300px; gap: 18px; }
.stage .rq-qt code.ic { font-size: .8em; }
.stage .hlb-l { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 8px; padding: 2px 10px; }
.stage.portrait .rq.st-json { grid-template-columns: 1fr; }
/* flow: bigger nodes, room for edge labels; cast-kind nodes take their character's colour */
.stage .fl-node { width: 340px; min-height: 290px; }
.stage .fl-node b { font-size: 40px; } .stage .fl-node i { font-size: 27px; }
.stage .fl-art { height: 120px; }
.stage .fl-arrow svg { width: 150px; }
.stage .fl-edge { top: -54px; font-size: 38px; color: var(--s2-deep); }
.stage .fl-node.kind-snap { background: var(--s1-soft); } .stage .fl-node.kind-mull { background: var(--s2-soft); } .stage .fl-node.kind-curly { background: #E7E3DA; } .stage .fl-node.kind-you { background: var(--human-soft); }
.stage .layer.tone-s2 { background: var(--s2); color: #fff; }
.stage.portrait .fl.vert .fl-node { width: 900px; }
.stage.portrait .fl-node b { font-size: 42px; }
/* portrait code: wrap long lines with a hanging indent instead of shrinking them */
.stage.portrait .code.wrap .cl { height: auto; min-height: 46px; align-items: flex-start; white-space: pre-wrap; padding: 5px 0; font-size: 24px; }
.stage.portrait .code.wrap .cl .ln { line-height: 36px; }
.stage.portrait .code.wrap .cl .cx { line-height: 36px; overflow: visible; overflow-wrap: anywhere; padding-left: 2.4ch; text-indent: -2.4ch; }
.stage .hlb.tone-s2 { background: rgba(42, 157, 143, .16); border-left: 8px solid var(--s2); }
.stage .hlb.tone-warn { background: rgba(245, 159, 0, .16); border-left: 8px solid var(--warn); }
.stage .hl-chip.tone-s2::before { background: var(--s2); } .stage .hl-chip.tone-warn::before { background: var(--warn); }
.stage .hlb.tone-s2 .hlb-l { color: var(--s2-deep, #1d6f65); }
.stage .rq-row { position: relative; }
.stage .rq-mark { position: absolute; inset: -4px -10px; border-radius: 10px; background: var(--s1-soft); box-shadow: inset 6px 0 0 var(--s1); opacity: 0; z-index: 0; pointer-events: none; }
.stage .rq-row > :not(.rq-mark) { position: relative; z-index: 1; }
/* portrait: a long JSON state is context, not the point; cap it and fade the rest */
.stage.portrait .rq.st-json .rq-state { max-height: 460px; overflow: hidden; position: relative; }
.stage.portrait .rq.st-json .rq-state::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 110px; border-radius: 0 0 22px 22px; background: linear-gradient(rgba(255, 253, 248, 0), #FFFDF8 80%); }
/* flow edge labels wrap above their arrow instead of spilling over the next node */
.stage .fl:not(.vert) .fl-edge { white-space: normal; width: max-content; max-width: 190px; text-align: center; line-height: 1; top: auto; bottom: calc(100% + 6px); }
/* race: the timer keeps one width from 0.0 to the end, so the titles never reflow mid-scene */
.stage .rc2-t { white-space: nowrap; flex: none; min-width: 128px; text-align: right; }
.stage .rc2-h span:nth-child(2) { flex: 1; min-width: 0; }
.stage .rc2-t { min-width: 120px; } .stage .rc2-h b { font-size: 34px; }
