:root{font-family:"Avenir Next","PingFang SC","Noto Sans CJK SC",sans-serif;color:#1d2b29;background:#f2f2eb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #d48a49;outline-offset:3px}button:disabled{opacity:.45;cursor:default}.app-shell{min-height:100vh}.app-header{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 28px;background:#f8f8f2;border-bottom:1px solid #d8ddd5}.brand{display:flex;align-items:center;gap:12px;min-width:230px}.brand-mark{height:42px;width:42px;background:#152622;color:#f9f8eb;display:grid;place-items:center;font-family:Georgia,serif;font-size:29px;border-radius:3px;letter-spacing:-4px;padding-right:5px}.brand-mark span{color:#e9a968}.brand strong{display:block;font-size:13px;letter-spacing:.18em;font-weight:800}.brand small{display:block;margin-top:3px;color:#698078;font-size:11px;letter-spacing:.11em}.header-center{color:#687b73;font-size:11px;letter-spacing:.18em;font-weight:700}.header-center span{color:#d6a370;margin:0 8px}.header-actions{display:flex;gap:8px}.header-button{background:transparent;border:1px solid #cfd8ce;border-radius:3px;color:#213932;padding:9px 13px;font-size:12px;font-weight:700;letter-spacing:.03em}.header-button:hover{background:#e7ece4}.fullscreen-symbol{font-size:17px;margin-right:5px}.menu-toggle{display:none}.workspace{display:grid;grid-template-columns:244px minmax(0,1fr) 292px;min-height:calc(100vh - 76px)}.course-nav{background:#e8ece4;border-right:1px solid #d6ddd2;padding:30px 18px 22px;display:flex;flex-direction:column}.micro-label{font-size:10px;letter-spacing:.17em;color:#698076;font-weight:800;text-transform:uppercase}.nav-top{padding:0 12px}.nav-top h2{font-family:Georgia,"Songti SC",serif;font-size:35px;line-height:1.17;letter-spacing:-.045em;font-weight:500;margin:25px 0 17px}.nav-top h2 span{color:#d38850}.nav-top p{color:#71817a;font-size:12px;line-height:1.8;margin:0 0 27px}.chapter-list{display:grid;gap:7px}.chapter-button{width:100%;border:1px solid transparent;background:transparent;color:#51665b;padding:13px 12px;display:flex;gap:10px;text-align:left;align-items:flex-start;border-radius:4px}.chapter-button:hover{background:#dde6da}.chapter-button.selected{background:#18372f;color:#f3f5e9;box-shadow:0 5px 15px #15382a1c}.chapter-number{font-family:Georgia,serif;color:#bd895a;font-size:13px;margin-top:2px}.chapter-copy{flex:1}.chapter-copy strong{font-family:"Songti SC",Georgia,serif;font-size:16px;font-weight:600;display:block}.chapter-copy small{display:block;font-size:10px;margin-top:5px;opacity:.7}.chapter-arrow{font-size:15px;opacity:.6}.nav-subtitle{margin:31px 10px 8px;border-top:1px solid #cbd6ca;padding-top:21px;font-size:11px;color:#304c3e;font-weight:800;letter-spacing:.06em;display:flex;justify-content:space-between}.nav-subtitle span{font-weight:500;color:#8a9b8e}.node-list{display:grid;gap:2px}.node-button{border:0;background:transparent;text-align:left;display:flex;gap:11px;padding:10px;color:#6f8175;font-size:12px;align-items:center;border-left:2px solid transparent}.node-button:hover{color:#254b39;background:#e0e8dc}.node-button.selected{color:#183f31;border-left-color:#d18d53;background:#e1e9dd;font-weight:750}.node-count{font:11px Georgia,serif;color:#b28b67}.nav-foot{margin-top:auto;border-top:1px solid #cbd6ca;padding:18px 10px 0;font-family:Georgia,serif;font-size:18px;color:#2d4e3d}.nav-foot span{font-family:inherit;font-size:12px;color:#819384;margin-left:8px}.main-panel{padding:29px clamp(20px,3vw,48px) 24px;min-width:0;display:flex;flex-direction:column;background:#f2f2eb}.lesson-head{display:flex;justify-content:space-between;gap:24px;min-height:150px}.lesson-eyebrow{display:flex;align-items:center;gap:9px;color:#537261;font-size:11px;font-weight:800;letter-spacing:.13em}.eyebrow-line{height:1px;width:25px;background:#c88d5a}.lesson-eyebrow i{color:#c6cfc2;font-style:normal}.lesson-head h1{font-family:"Songti SC",Georgia,serif;font-weight:500;font-size:clamp(29px,3vw,47px);line-height:1.2;letter-spacing:-.04em;margin:19px 0 10px;color:#233d32}.lesson-head p{max-width:720px;color:#667b70;font-size:13px;line-height:1.7;margin:0}.lesson-index{font:68px Georgia,serif;letter-spacing:-.07em;color:#d8e0d4;white-space:nowrap}.lesson-index small{font:17px Georgia,serif;color:#9aad9e}.stage{position:relative;width:100%;aspect-ratio:900/520;background:#102720;border-radius:5px;overflow:hidden;box-shadow:0 18px 35px #233b2524;min-height:300px}.stage:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 60% 40%,#31534665,transparent 58%),linear-gradient(125deg,#ffffff07,transparent 47%);z-index:0}.experiment-svg,.teaching-visual{width:100%;height:100%;position:relative;z-index:1;display:block}.experiment-svg{touch-action:none;user-select:none}.experiment-svg [data-drag]{cursor:grab}.experiment-svg [data-drag]:active{cursor:grabbing}.future-path{stroke:#92a79a;stroke-width:2;stroke-dasharray:7 10;opacity:.6}.drawn-path{stroke:#e8b47d;stroke-width:8;stroke-linecap:round}.anchor{fill:#f1e8c8}.target{fill:#173d30;stroke:#b7cbb9;stroke-width:2}.moving-point,.drag-handle{fill:#e9ab69;stroke:#ffdfb6;stroke-width:3;filter:drop-shadow(0 0 11px #eeb17088)}.guide{stroke:#a2b8a7;stroke-opacity:.5;stroke-width:1.5;stroke-dasharray:5 6}.diagram-label{fill:#d2dfd2;font-family:Georgia,"Songti SC",serif;font-size:19px}.active-label{fill:#f2c18b;font-family:Georgia,serif;font-size:20px}.stage-index{fill:#bdcfc0;font:700 14px "Avenir Next",sans-serif;letter-spacing:3px}.stage-note{fill:#a1bbab;font-size:15px;letter-spacing:1px}.ghost-area{fill:none;stroke:#aec4ad;stroke-width:2;stroke-dasharray:8 8;opacity:.5}.swept-area{fill:#89bda5;fill-opacity:.29;stroke:#a8d1af;stroke-width:1}.source-line{stroke:#edae72;stroke-width:7;stroke-linecap:round}.moving-line{stroke:#f0c394;stroke-width:5;stroke-linecap:round}.dimension-line{stroke:#aabfb1;stroke-width:1.5;stroke-dasharray:5 4}.base-face{fill:#4e7662;fill-opacity:.35;stroke:#9fc8aa;stroke-width:1}.side-face{fill:#5f9884;fill-opacity:.24;stroke:#a8d5b2;stroke-width:1}.top-face{fill:#b0d9b5;fill-opacity:.36;stroke:#d4e5c5;stroke-width:1.5}.prism-edge{stroke:#e0e9d6;stroke-opacity:.7;stroke-width:1.7}.stage-footer{display:flex;justify-content:space-between;align-items:center;color:#748a7e;padding:13px 2px;font-size:11px;letter-spacing:.06em}.live-dot{display:inline-block;width:6px;height:6px;background:#cd945c;border-radius:50%;margin-right:8px;vertical-align:middle}.transport{margin-top:auto;padding-top:13px;border-top:1px solid #d5ded2;display:flex;justify-content:space-between;gap:14px;align-items:center}.transport-left,.transport-right{display:flex;align-items:center;gap:7px}.transport-button{border:1px solid #cbd9cc;background:#f8f9f2;color:#355c45;border-radius:3px;padding:10px 13px;font-size:12px;font-weight:750;white-space:nowrap}.transport-button:hover{background:#e4ece1}.transport-button.accent{background:#234d3a;color:#fff;border-color:#234d3a}.transport-button.accent:hover{background:#32664e}.transport-count{font:13px Georgia,serif;color:#42644e;margin:0 8px}.transport-count em{color:#aabaaa;font-style:normal;margin:0 5px}.inspector{background:#fafaf5;border-left:1px solid #dbe2d8;padding:26px 23px 24px;display:flex;flex-direction:column;gap:21px}.inspector-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce4d8;padding-bottom:17px}.icon-button{border:0;background:none;color:#789080;font-size:22px}.inspector-section{border-bottom:1px solid #e1e7de;padding-bottom:22px}.inspector-section h3{font-size:13px;color:#2c4937;margin:0 0 20px;display:flex;justify-content:space-between;align-items:center}.inspector-section h3 span{font-size:10px;color:#95a799;font-weight:400}.slider-row{display:block;margin-bottom:18px}.slider-row>span{display:flex;justify-content:space-between;color:#657c6b;font-size:11px;font-weight:650}.slider-row output{font-family:Georgia,serif;color:#254d39;font-size:15px}.slider-row input{width:100%;margin:11px 0 0;accent-color:#ce915d;cursor:pointer;height:5px}.progress-row{padding-top:12px;border-top:1px dashed #dce4d8}.metric-card{background:#eaf0e6;border-left:3px solid #cc8e57;padding:16px 18px;display:grid;gap:3px}.metric-card span{color:#607963;font-size:11px}.metric-card strong{font:42px Georgia,serif;line-height:1;color:#204834}.metric-card small{font-size:10px;color:#829686}.toggle-list{display:grid;gap:7px}.toggle-button{display:flex;width:100%;justify-content:space-between;align-items:center;background:transparent;border:0;color:#64796a;padding:6px 0;font-size:12px;text-align:left}.toggle-button:hover{color:#234e37}.toggle-button i{display:block;width:29px;height:16px;border-radius:9px;background:#c7d0c5;position:relative;transition:background .2s}.toggle-button i:before{content:"";position:absolute;width:10px;height:10px;border-radius:50%;top:3px;left:3px;background:white;transition:transform .2s}.toggle-button.on i{background:#4b8b67}.toggle-button.on i:before{transform:translateX(13px)}.reveal-placeholder{font-size:10px;color:#9cac9a;border:1px dashed #d3ded0;margin-top:16px;padding:12px;line-height:1.5}.formula-card{margin-top:17px;padding:14px;background:#e8eee4;color:#496a50;font-size:11px;line-height:1.75}.formula-card strong{font:18px Georgia,"Songti SC",serif;color:#1e4a32}.reveal-text{margin-top:11px;padding:12px 13px;background:#f2eee2;font-size:11px;line-height:1.7;color:#785f42}.reveal-text b{display:block;margin-bottom:3px;color:#b37b42}.answer-text{background:#e5efe6;color:#3a6045}.answer-text b{color:#437c4c}.teacher-card{margin-top:auto;background:#1d4433;color:#eff5e7;padding:18px 17px;border-radius:3px}.teacher-card .micro-label{color:#bfcca4}.teacher-card p{font-size:12px;line-height:1.8;margin:10px 0 0}.teacher-card.hidden{display:none}.intro-note span{display:block;font-size:11px;color:#92a797}.intro-note strong{display:block;font:24px "Songti SC",Georgia,serif;color:#2d4f39;margin-top:10px}.intro-note p{font-size:12px;line-height:1.7;color:#7b8c80}.teaching-visual{padding:38px 45px;color:#d8e7d7}.visual-kicker{font-size:12px;letter-spacing:.2em;font-weight:750;color:#aec7b6}.narration-visual{display:flex;flex-direction:column;justify-content:space-between}.giant-symbol{font-family:Georgia,"Songti SC",serif;font-size:clamp(65px,9vw,150px);color:#e9bc84;letter-spacing:.02em;text-align:center;margin:auto}.visual-caption{font:17px "Songti SC",Georgia,serif;color:#aec9b2;letter-spacing:.06em}.image-visual{display:flex;flex-direction:column}.image-visual svg{width:100%;height:100%;min-height:0}.image-visual text{font-family:"Songti SC",Georgia,serif;font-size:19px}.motion-visual{display:flex;flex-direction:column;justify-content:space-between}.motion-scene{position:relative;height:45%;margin:auto;width:70%;border-bottom:1px dashed #739683}.motion-origin{position:absolute;bottom:-7px;left:0;width:13px;height:13px;border-radius:50%;background:#e6c195}.motion-trail{position:absolute;left:0;bottom:-3px;height:6px;width:100%;background:#e4b06e;transform-origin:left;animation:grow 4s ease-in-out infinite alternate}.motion-marker{position:absolute;bottom:-10px;left:0;width:19px;height:19px;border-radius:50%;background:#f0c38d;box-shadow:0 0 24px #d99a6488;animation:move 4s ease-in-out infinite alternate}.motion-volume .motion-trail{height:150px;bottom:0;opacity:.3;border:1px solid #e4b06e;background:#74ab8e;transform-origin:bottom left;animation:rise 4s ease-in-out infinite alternate}.motion-volume .motion-marker{bottom:0;animation:up 4s ease-in-out infinite alternate}@keyframes grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes move{from{left:0}to{left:100%}}@keyframes rise{from{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes up{from{bottom:0}to{bottom:150px}}@media(prefers-reduced-motion:reduce){.motion-trail,.motion-marker{animation:none!important}.motion-trail{transform:scaleX(1)}}
@media(max-width:1200px){.workspace{grid-template-columns:210px minmax(0,1fr) 260px}.course-nav{padding-left:12px;padding-right:12px}.inspector{padding-left:16px;padding-right:16px}.main-panel{padding-left:24px;padding-right:24px}.nav-top h2{font-size:30px}.transport{flex-wrap:wrap}.transport-right{margin-left:auto}}
@media(max-width:950px){.workspace{grid-template-columns:190px minmax(0,1fr)}.inspector{grid-column:2;display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid #dce4d8;border-left:0}.inspector-heading{grid-column:1/-1}.teacher-card{margin-top:0}.course-nav{grid-row:1/3}.header-center{display:none}.lesson-head{min-height:140px}}
@media(max-width:650px){.app-header{height:64px;padding:0 16px}.brand{min-width:0}.brand strong{font-size:11px}.brand small{font-size:9px}.brand-mark{height:36px;width:36px;font-size:24px}.header-button{padding:7px 9px}.header-button span:not(.fullscreen-symbol){display:none}.menu-toggle{display:inline-block}.workspace{display:block}.course-nav{display:none}.course-nav.open{display:flex}.main-panel{padding:23px 15px}.lesson-head{min-height:145px}.lesson-head h1{font-size:29px}.lesson-head p{font-size:12px}.lesson-index{font-size:46px}.stage{min-height:240px}.stage-footer{font-size:10px}.transport{gap:12px}.transport-left,.transport-right{width:100%;justify-content:space-between}.transport-button{padding:9px;font-size:11px}.inspector{display:block;padding:22px 18px}.inspector-section{margin-bottom:20px}.teacher-card{margin-top:20px}.teaching-visual{padding:24px}.visual-caption{font-size:13px}}
:fullscreen .app-shell{height:100vh;background:#0e211b}:fullscreen .app-header{height:58px;background:#0e211b;border-color:#274638;color:#d8e9d9}:fullscreen .brand small,:fullscreen .brand strong{color:#d8e9d9}:fullscreen .header-button{color:#d8e9d9;border-color:#547261}:fullscreen .course-nav,:fullscreen .inspector,:fullscreen .lesson-head,:fullscreen .stage-footer{display:none}:fullscreen .workspace{display:block;height:calc(100vh - 58px)}:fullscreen .main-panel{height:100%;padding:12px 24px 16px;background:#0e211b}:fullscreen .stage{flex:1;min-height:0;aspect-ratio:auto;box-shadow:none}:fullscreen .transport{margin-top:10px;padding-top:10px;border-color:#31503b}:fullscreen .transport-button{background:#1c3b2f;color:#e6f2e4;border-color:#47624b}:fullscreen .transport-count{color:#e4f1de}
.stage{touch-action:none}.projection-controls,.projection-reveals{display:none}:fullscreen .projection-controls{display:flex;gap:18px;align-items:center;justify-content:center;padding:2px 8px}:fullscreen .projection-controls .toggle-button{width:auto;gap:9px;color:#d7e7d7;font-size:11px}:fullscreen .projection-reveals{display:flex;position:absolute;z-index:4;right:25px;top:20px;max-width:310px;flex-direction:column;gap:8px;pointer-events:none}:fullscreen .projection-reveals .formula-card,:fullscreen .projection-reveals .reveal-text{margin:0;background:#edf4e9e8;color:#1b4932;box-shadow:0 8px 25px #0c1e1a66}:fullscreen .projection-reveals .reveal-text{background:#f3efdfed}
.proof-svg{font-family:Georgia,"Songti SC",serif}.proof-outer{fill:#183c30;stroke:#adc7ae;stroke-width:2.5}.proof-tile{fill:#d7a169;stroke:#ffdcaa;stroke-width:2.5}.proof-tile.tile-1,.proof-tile.tile-3{fill:#c98d5a}.proof-square{stroke-width:2.5}.square-c{fill:#477f6b;stroke:#8fc1aa}.square-a{fill:#366b93;stroke:#93c3e0}.square-b{fill:#795c9b;stroke:#c7acdc}.proof-label,.proof-a,.proof-b,.proof-c,.proof-a-area,.proof-b-area,.proof-c-area{font-size:24px;font-weight:700;fill:#f3e7ca}.proof-a,.proof-a-area{fill:#9fd4ee}.proof-b,.proof-b-area{fill:#d9b5eb}.proof-c,.proof-c-area{fill:#f5d098}.stage-index{fill:#c4dfca;font-size:19px;letter-spacing:2px}.stage-note{fill:#9fbcaa;font-size:15px}.proof-main-triangle{fill:#d6a36d22}.edge-a,.edge-b,.edge-c{stroke-width:5;stroke-linecap:round}.edge-a{stroke:#9fd4ee}.edge-b{stroke:#d9b5eb}.edge-c{stroke:#f5d098}.similar-a{fill:#70afd344}.similar-b{fill:#ac80c344}.altitude-guide{stroke:#afcdb8;stroke-width:2;stroke-dasharray:8 8}.altitude-line{stroke:#e7f0d5;stroke-width:4;stroke-linecap:round}.proof-foot{fill:#f8ecc8}.right-angle{fill:none;stroke:#e7f0d5;stroke-width:2}.proof-steps p{font-size:14px;line-height:1.7;color:#385843;min-height:50px}.proof-step-actions{display:flex;gap:8px;flex-wrap:wrap}.proof-step-actions .transport-button{font-size:11px}.placeholder-visual,.quote-visual,.question-visual,.text-visual{display:flex;flex-direction:column;justify-content:space-between}.placeholder-mark{font:clamp(88px,12vw,170px) Georgia,serif;color:#89a99855;text-align:center;margin:auto}.quote-visual blockquote{font:clamp(24px,3vw,46px) "Songti SC",Georgia,serif;color:#e8bf8b;margin:auto;max-width:700px;text-align:center;line-height:1.5}.text-visual .giant-symbol{font-size:clamp(44px,6vw,92px)}
.proof-outer-dashed{fill:none;stroke:#b9d0ba;stroke-width:2.5;stroke-dasharray:8 7}.square-difference{fill:#4b806c;stroke:#a5d2af}.proof-difference-label{fill:#e1f0d4;font-size:22px;font-weight:700;text-anchor:middle}.garfield-middle{fill:#477f6b;stroke:#9fceaf;stroke-width:2}.garfield-tile-0{fill:#d7a169}.garfield-tile-1{fill:#be865c}.euclid-source-a,.euclid-source-b,.euclid-target-a,.euclid-target-b{fill:none;stroke-width:2.5;stroke-dasharray:6 6}.euclid-source-a,.euclid-target-a{stroke:#93c3e0}.euclid-source-b,.euclid-target-b{stroke:#c7acdc}.euclid-moving-a{fill:#366b93cc;stroke:#a6d9ee;stroke-width:2}.euclid-moving-b{fill:#795c9bcc;stroke:#dec3ed;stroke-width:2}.euclid-pair-a,.euclid-pair-b{fill:none;stroke-width:2.5;stroke-dasharray:5 4}.euclid-pair-a{stroke:#9fd4ee}.euclid-pair-b{stroke:#d9b5eb}
.similar-a{stroke:#9fd4ee;stroke-width:2}.similar-b{stroke:#d9b5eb;stroke-width:2}
@media(min-width:951px){.workspace{height:calc(100dvh - 76px);min-height:620px}.course-nav,.inspector,.main-panel{min-height:0;overflow-y:auto}.stage{flex:1 1 auto;aspect-ratio:auto;min-height:260px}}

/* CH01: projected editorial stage; controls remain outside the illustration. */
/* Chapter 01: quiet controls around a projection-scale content canvas. */
.ch01-shell {
  --ch01-ink: #10151d;
  --ch01-paper: #f5f7fa;
  --ch01-blue: #8fc5ff;
  --ch01-muted: #aab6c6;
  font-family: "Avenir Next", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  background: var(--ch01-paper);
  color: #192331;
}
.ch01-shell .app-header { gap: 12px; background: #fff; border-color: #e1e6ed; }
.ch01-shell .brand-mark { background: #182738; border-radius: 10px; }
.ch01-shell .brand-mark span { color: #8fc5ff; }
.ch01-shell .brand small { color: #596b80; }
.ch01-review-label { font-size: 11px; color: #637185; letter-spacing: .06em; }
.ch01-shell .header-button, .ch01-shell .transport-button {
  min-height: 44px; border: 1px solid #ced7e3; border-radius: 10px;
  background: #fff; color: #34475e; font-size: 13px; font-weight: 600; padding: 10px 16px;
}
.ch01-shell button:hover:not(:disabled) { background: #e9f2ff; color: #164b81; }
.ch01-shell :focus-visible { outline: 3px solid #3588df; outline-offset: 4px; }
.ch01-shell .transport-button.accent { color: #fff; background: #1666ba; border-color: #1666ba; }
.ch01-workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100dvh - 76px); }
.ch01-sidebar { padding: 32px 16px; border-right: 1px solid #e0e6ee; background: #eef2f7; }
.ch01-sidebar .micro-label { color: #5e728a; }
.ch01-sidebar h2 { font-size: 34px; line-height: 1.2; letter-spacing: -.04em; margin: 20px 12px 36px; }
.ch01-sidebar h2 span { color: #2675c7; }
.ch01-section-nav { display: grid; gap: 6px; }
.ch01-section-nav button { display: flex; text-align: left; gap: 12px; border: 0; border-radius: 10px; min-height: 48px; padding: 14px 10px; background: transparent; color: #506278; font-size: 12px; line-height: 1.6; }
.ch01-section-nav b { font-size: 14px; font-variant-numeric: tabular-nums; color: #617790; }
.ch01-section-nav [aria-current=step] { background: #dceaff; color: #164e88; }
.ch01-section-nav [aria-current=step] b { color: #1666ba; }
.ch01-other { border-top: 1px solid #d6dfe9; margin-top: 32px; padding-top: 16px; font-size: 12px; }
.ch01-other summary { cursor: pointer; padding: 14px 10px; min-height: 44px; }
.ch01-other .chapter-button { width: 100%; color: #506278; }
.ch01-main { min-width: 0; display: flex; flex-direction: column; padding: clamp(24px, 3.5vw, 56px); gap: 24px; }
.ch01-heading { display: flex; gap: 24px; justify-content: space-between; align-items: center; }
.ch01-kicker { font-size: 11px; font-weight: 650; letter-spacing: .18em; color: var(--ch01-muted); }
.ch01-heading .ch01-kicker { color: #526d8c; }
.ch01-heading h1 { font-size: clamp(28px, 3.1vw, 52px); font-weight: 650; line-height: 1.25; margin: 12px 0; letter-spacing: -.04em; text-wrap: balance; }
.ch01-heading p { margin: 0; color: #56677d; font-size: clamp(15px, 1.25vw, 20px); line-height: 1.6; }
.ch01-section-number { font-size: 64px; line-height: 1; font-weight: 400; letter-spacing: -.06em; color: #94a6bc; }
.ch01-stage { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 390px; flex: 1; background: var(--ch01-ink); color: #f5f7fa; border-radius: 20px; overflow: hidden; touch-action: pan-y; }
.ch01-transport { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.ch01-transport > div, .ch01-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ch01-page { font-size: 14px; font-variant-numeric: tabular-nums; color: #56677d; }
.ch01-stage .transport-button { background: #1e2a3a; color: #e4ebf5; border-color: #46576d; }
.ch01-stage .transport-button.accent, .ch01-stage [aria-current=step] { background: #b4d8ff; color: #142e4a; border-color: #b4d8ff; }
.ch01-toolbox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ch01-toolbox > span { font-size: 12px; color: #5c6e84; margin-left: auto; }
.ch01-notes { border-left: 3px solid #337fcf; padding: 16px 20px; background: #e8eff8; font-size: 14px; line-height: 1.7; }
.ch01-notes p { margin: 5px 0; }
.ch01-reading { padding: 40px 8%; }
.ch01-reading p { white-space: pre-line; font-size: clamp(24px, 2.65vw, 44px); line-height: 1.85; margin: 24px 0; }
.ch01-reading mark { background: transparent; color: inherit; }
.ch01-reading.revealed mark { color: var(--ch01-blue); text-decoration: underline; text-underline-offset: 8px; }
.ch01-small { font-size: 13px; line-height: 1.8; color: var(--ch01-muted); }
.ch01-prompt { font-size: clamp(22px, 2vw, 32px); text-align: center; color: #c9dff8; margin: 0 0 36px; }
/* One set of twelve dots travels between the two arrangements, in either direction. */
.ch01-dots { --dot-step: clamp(25px, 3.6vw, 48px); position: relative; width: 100%; height: 220px; margin: 24px auto 0; }
.ch01-dots i { position: absolute; left: 50%; top: 50%; width: clamp(13px, 1.5vw, 22px); height: clamp(13px, 1.5vw, 22px); margin: calc(clamp(13px, 1.5vw, 22px) / -2); border-radius: 50%; background: #b5d9ff; transform: translate(calc(var(--from-x) * var(--dot-step)), calc(var(--from-y) * var(--dot-step))); }
.ch01-dots.grouped i { transform: translate(calc(var(--to-x) * var(--dot-step)), calc(var(--to-y) * var(--dot-step))); }
.ch01-dot-group { position: absolute; left: 50%; top: 50%; width: calc(var(--dot-step) * 2.3); height: calc(var(--dot-step) * 2.3); transform: translate(calc(var(--group) * var(--dot-step) * 3 - 50%), -50%); border: 1px solid #82b4ef; border-radius: 18px; background: #78b6ff12; opacity: 0; }
.ch01-dots.grouped .ch01-dot-group { opacity: 1; }
.ch01-dots[data-motion=forward] i { animation: ch01-group .7s cubic-bezier(.22, 1, .36, 1) both; }
.ch01-dots[data-motion=back] i { animation: ch01-group-back .7s cubic-bezier(.22, 1, .36, 1) both; }
.ch01-dots[data-motion=forward] .ch01-dot-group { animation: ch01-frame .7s ease-out both; }
@keyframes ch01-group { from { transform: translate(calc(var(--from-x) * var(--dot-step)), calc(var(--from-y) * var(--dot-step))); } to { transform: translate(calc(var(--to-x) * var(--dot-step)), calc(var(--to-y) * var(--dot-step))); } }
@keyframes ch01-group-back { from { transform: translate(calc(var(--to-x) * var(--dot-step)), calc(var(--to-y) * var(--dot-step))); } to { transform: translate(calc(var(--from-x) * var(--dot-step)), calc(var(--from-y) * var(--dot-step))); } }
@keyframes ch01-frame { from { opacity: 0; } to { opacity: 1; } }
.ch01-sentences { display: grid; gap: 32px; padding: 40px 6%; }
.ch01-sentences article { padding: 0 0 28px; border-bottom: 1px solid #354356; }
.ch01-sentences article:last-child { border-bottom: 0; padding-bottom: 0; }
.ch01-sentences p { font-size: clamp(23px, 2.6vw, 40px); line-height: 1.65; margin: 12px 0 0; font-weight: 500; }
.ch01-phrase { box-decoration-break: clone; -webkit-box-decoration-break: clone; border-radius: 6px; background: transparent; padding: 3px 2px; }
.ch01-sentences.structured .ch01-phrase { background: #a8c6ed10; }
.ch01-sentences.structured .ch01-phrase.content { color: #b4d9ff; background: #4b95ec20; border-bottom: 2px solid #80b8fa; }
.ch01-sentences.structured .ch01-nested { border-bottom: 2px solid #d6eaff; background: #8fc5ff1a; }
.ch01-sentences[data-motion=forward] .ch01-phrase { animation: ch01-structure .65s ease-out both; }
.ch01-sentences[data-motion=forward] .ch01-nested { animation: ch01-structure .65s .15s ease-out both; }
.ch01-sentences[data-motion=unstructure] .ch01-phrase.content { animation: ch01-unstructure .55s ease-out both; }
.ch01-sentences[data-motion=unstructure] .ch01-nested { animation: ch01-unnest .55s ease-out both; }
@keyframes ch01-unstructure { from { background: #4b95ec20; color: #b4d9ff; box-shadow: 0 2px #80b8fa; } to { background: transparent; color: inherit; box-shadow: 0 2px transparent; } }
@keyframes ch01-unnest { from { background: #8fc5ff1a; box-shadow: 0 2px #d6eaff; } to { background: transparent; box-shadow: 0 2px transparent; } }
@keyframes ch01-structure { from { background: transparent; border-color: transparent; color: #f5f7fa; } }
.ch01-item-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 36px 7%; }
.ch01-item-list li { padding: 26px 8px; text-align: center; font-size: clamp(24px, 2.5vw, 38px); border-bottom: 1px solid #435167; color: #f4f7fb; }
.ch01-cover { display: grid; place-items: center; text-align: center; min-height: 250px; font-size: clamp(25px, 3.5vw, 48px); line-height: 1.5; padding: 32px; }
.ch01-media { margin: 0; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; background: #10151d; }
.ch01-media img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; }
.ch01-media figcaption { width: 100%; padding: 14px 24px; color: #b9c6d8; font-size: 13px; line-height: 1.5; }
.ch01-oral-pause { padding: clamp(32px, 6vw, 96px); }
.ch01-oral-pause p { max-width: 24em; margin: auto; font-size: clamp(30px, 4vw, 64px); font-weight: 550; line-height: 1.55; letter-spacing: -.035em; text-wrap: balance; }
.ch01-demo-content { padding: 28px 5%; width: 100%; }
.ch01-pattern { display: block; width: 100%; max-height: 360px; color: #f2f7ff; }
.ch01-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ch01-comparison .ch01-pattern { border: 1px solid #435167; border-radius: 12px; }
.ch01-number-stage { min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; }
.ch01-digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; font-size: clamp(25px, 3.6vw, 56px); line-height: 1.5; text-align: center; color: #d5e8ff; }
.ch01-digits.grouped { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ch01-number-card { padding: 15px 5px; border: 1px solid #4e6079; border-radius: 10px; background: #203044; font-variant-numeric: tabular-nums; }
.ch01-digits.grouped .ch01-number-card { color: #142b45; background: #c1ddff; border-color: #c1ddff; }
.ch01-number-stage output { font-size: 24px; font-variant-numeric: tabular-nums; color: #a5c7f0; min-height: 32px; }
.ch01-phase-nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ch01-journey { position: relative; }
.ch01-room-heading { position: absolute; left: 3%; top: 15px; z-index: 1; }
.ch01-room-heading > span { color: #adbed4; font-size: 12px; letter-spacing: .1em; }
.ch01-room-heading h2 { margin: 10px 0; font-size: 36px; color: #bfdcff; }
.ch01-room-scene { display: block; width: 100%; max-height: 320px; }
.ch01-room-lines { stroke: #92a8c6; stroke-width: 1.5; opacity: .45; }
.ch01-object { color: #bfdcff; }
.ch01-trace { stroke: #fff; stroke-dasharray: 6 5; }
.ch01-scene-cue { font-size: clamp(17px, 1.6vw, 24px); line-height: 1.65; text-align: center; margin: 4px auto 20px; max-width: 720px; }
.ch01-route { display: flex; list-style: none; margin: 0 0 24px; padding: 0; justify-content: center; }
.ch01-route li { min-width: 60px; flex: 1; max-width: 145px; text-align: center; padding: 10px; color: #acbcd1; border-top: 2px solid #435167; font-size: 12px; }
.ch01-route li.current { color: #c1ddff; border-color: #8fc5ff; }
.ch01-route span { display: block; font-size: 11px; margin-top: 5px; }
.ch01-recall > p { text-align: center; color: #c9d6e8; }
.ch01-recall .ch01-item-list { padding: 16px 0; }
.ch01-projector-nav { display: none; }
@media (min-width: 951px) {
  .ch01-workspace { height: calc(100dvh - 76px); min-height: 620px; }
  .ch01-sidebar { overflow-y: auto; }
  .ch01-main { min-height: 0; overflow-y: auto; }
  .ch01-stage { flex: 1 0 auto; }
}
@media (max-width: 1100px) {
  .ch01-workspace { grid-template-columns: 180px minmax(0, 1fr); }
  .ch01-main { padding: 28px; }
  .ch01-sidebar { padding: 24px 12px; }
  .ch01-sidebar h2 { font-size: 30px; }
  .ch01-review-label { display: none; }
  .ch01-section-number { font-size: 48px; }
}
@media (max-width: 750px) {
  .ch01-workspace { display: block; }
  .ch01-sidebar { padding: 10px 14px; border-right: 0; border-bottom: 1px solid #d6dfe9; }
  .ch01-sidebar > h2, .ch01-sidebar > .micro-label, .ch01-section-nav button > span { display: none; }
  .ch01-section-nav { display: flex; justify-content: space-between; gap: 0; overflow-x: auto; }
  .ch01-section-nav button { min-width: 44px; min-height: 44px; flex-shrink: 0; padding: 10px 6px; justify-content: center; }
  .ch01-other { margin: 6px 0 0; padding: 0; border: 0; }
  .ch01-main { padding: 24px 16px; gap: 20px; }
  .ch01-heading { gap: 12px; }
  .ch01-heading h1 { font-size: 28px; }
  .ch01-heading p { font-size: 15px; }
  .ch01-section-number { display: none; }
  .ch01-stage { min-height: 340px; border-radius: 16px; }
  .ch01-shell .app-header { height: auto; min-height: 76px; flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .ch01-shell .header-actions { gap: 6px; flex-wrap: wrap; }
  .ch01-shell .header-button { font-size: 12px; padding: 10px 12px; }
  .ch01-shell .transport-button { font-size: 12px; padding: 10px 12px; }
  .ch01-transport { justify-content: center; }
  .ch01-item-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ch01-item-list li { padding: 16px 8px; font-size: 26px; }
  .ch01-reading { padding: 30px 7%; }
  .ch01-reading p { font-size: 25px; }
  .ch01-demo-content { padding: 24px 4%; }
  .ch01-comparison { grid-template-columns: 1fr; }
  .ch01-room-heading { position: static; display: flex; align-items: baseline; justify-content: space-between; }
  .ch01-room-heading h2 { font-size: 28px; }
  .ch01-room-scene { max-height: 260px; }
  .ch01-media { flex: 0; }
  .ch01-media figcaption { font-size: 12px; padding: 12px; }
  .ch01-sentences { padding: 30px 6%; gap: 24px; }
  .ch01-sentences p { font-size: 23px; }
  .ch01-scene-cue { font-size: 17px; }
  .ch01-digits.grouped { gap: 8px; font-size: 25px; }
  .ch01-digits { gap: 6px; font-size: 27px; }
  .ch01-number-card { padding: 15px 2px; }
}
:fullscreen .ch01-shell { height: auto; background: #10151d; color: #f5f7fa; }
:fullscreen .ch01-shell .app-header { height: 64px; background: #10151d; border-color: #283344; color: #f5f7fa; }
:fullscreen .ch01-shell .brand small { color: #b2c1d6; }
:fullscreen .ch01-sidebar, :fullscreen .ch01-notes, :fullscreen .ch01-review-label, :fullscreen [data-ch01=notes] { display: none; }
:fullscreen .ch01-workspace { display: block; height: calc(100dvh - 64px); min-height: 0; }
:fullscreen .ch01-main { height: 100%; padding: 24px 5%; gap: 18px; overflow-y: auto; }
:fullscreen .ch01-heading h1 { font-size: clamp(28px, 3vw, 52px); }
:fullscreen .ch01-heading p, :fullscreen .ch01-heading .ch01-kicker { color: #b7c7de; }
:fullscreen .ch01-section-number { color: #6d829d; }
:fullscreen .ch01-stage { min-height: 240px; border-radius: 0; }
:fullscreen .ch01-transport { margin-top: auto; }
:fullscreen .ch01-shell .transport-button, :fullscreen .ch01-shell .header-button { background: #1d2939; color: #e4ebf5; border-color: #46576d; }
:fullscreen .ch01-shell .transport-button.accent { background: #b4d8ff; color: #142e4a; }
:fullscreen .ch01-page, :fullscreen .ch01-toolbox > span { color: #b7c7de; }
:fullscreen .ch01-media img { max-height: 50vh; }
:fullscreen .ch01-projector-nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
:fullscreen .ch01-projector-nav [aria-current=step] { border-color: #8fc5ff; color: #bddcff; }
@media (prefers-reduced-motion: reduce) {
  .ch01-shell * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* CH00 and the fixed palace plan share the existing teacher-controlled workbench. */
.ch01-preface { position: relative; isolation: isolate; width: 100%; min-height: 440px; display: flex; align-items: center; background: #061726; color: #fff; }
.ch01-preface > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ch01-preface::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #061726ed, #06172680 65%, #06172625); z-index: -1; }
.ch01-preface-copy { padding: clamp(24px, 5vw, 80px); max-width: 100%; }
.ch01-preface-copy h2 { font-size: clamp(32px, 4.4vw, 72px); line-height: 1.24; margin: 22px 0 36px; text-wrap: balance; }
.ch01-preface-copy .ch01-kicker { color: #afcdea; }
.ch01-tour-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ch01-tour-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 40px); }
.ch01-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; align-items: start; margin: 18px 0; }
.ch01-map-window { overflow: hidden; border-radius: 18px; background: #e6edf6; border: 1px solid #acbfd6; }
.ch01-map { display: block; width: 100%; max-height: 420px; color: #143f74; }
.ch01-map-overview { display: block; width: 100%; }
.ch01-overview { color: #405e82; font-size: 12px; text-align: center; }
.ch01-overview .transport-button { width: 100%; }
.ch01-camera { transform-origin: 0 0; transform: var(--camera-to); }
.ch01-camera[data-moving=true] { animation: ch01-camera-travel 850ms cubic-bezier(.25,.7,.2,1) both; }
@keyframes ch01-camera-travel { from { transform: var(--camera-from); } to { transform: var(--camera-to); } }
@media (max-width: 700px) {
  .ch01-preface { min-height: 360px; }
  .ch01-map-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ch01-overview { display: grid; grid-template-columns: 1fr 130px 1fr; align-items: center; gap: 10px; }
  .ch01-map { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) { .ch01-camera[data-moving=true] { animation: none !important; } }

.ch01-map .ch01-object { color: #194d8b; stroke-width: 6; }
.ch01-map .ch01-trace { stroke: #146e91; }
.ch01-overview { color: #b7c7de; }

/* Teacher-requested memory route: a fixed architectural plan with real objects. */
.ch01-grouping { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; margin:12px 0 22px; }
.ch01-grouping > span { width:100%; text-align:center; font-size:14px; opacity:.7; }
.ch01-grouping [aria-pressed=true] { background:#244f61; color:#fff; border-color:#244f61; }
.ch01-map-window { background:#f6f3ec; border:1px solid #d6cbb7; box-shadow:0 14px 35px #172b3a12; }
.ch01-map { max-height:500px; }
.ch01-photo-pin { filter:drop-shadow(0 3px 4px #263e4924); }
.ch01-overview { color:#59767e; }
.ch01-photo-credits { display:block; margin-top:8px; font-size:11px; color:#687f89; text-align:right; }
:fullscreen .ch01-photo-credits, :fullscreen .ch01-overview { color:#bdcdd7; }
/* Scalable, local neural concept animation: CSS only, no service or frame loop. */
.neural-scene { position:relative; overflow:hidden; background:#061524; border:1px solid #24485a; border-radius:18px; isolation:isolate; }
.neural-scene svg { display:block; width:100%; height:auto; }
.neural-motion-toggle { position:absolute; z-index:4; right:100px; top:18px; width:18px; height:18px; accent-color:#8ddce9; }
.neural-motion-toggle + label { position:absolute; z-index:4; right:20px; top:17px; color:#c5e6ee; font-size:13px; }
.neural-disclaimer { position:absolute; bottom:16px; right:20px; color:#87aab8; font-size:11px; }
.neural-sequence { position:absolute; left:26px; bottom:20px; display:flex; gap:25px; color:#b1d9e3; font-size:14px; letter-spacing:2px; }
.neural-sequence span { animation:neural-caption 15s ease-in-out infinite; }
.neural-sequence span:nth-child(2) { animation-delay:-10s; }.neural-sequence span:nth-child(3) { animation-delay:-5s; }
.neural-signal { animation:neural-flow 4s linear infinite; }
.neural-aura { animation:neural-breathe 5s ease-in-out infinite; }
.neural-dust { animation:neural-drift 24s ease-in-out infinite alternate; }
.old-link { animation:neural-old 15s ease-in-out infinite; }
.new-link { animation:neural-new 15s ease-in-out infinite; }
.neural-scan { animation:neural-scan 16s linear infinite; }
.neural-motion-toggle:checked ~ svg *, .neural-motion-toggle:checked ~ .neural-sequence * { animation-play-state:paused !important; }
.ch01-neural-takeaway { font-size:clamp(20px,2.2vw,32px); line-height:1.6; text-align:center; margin:24px auto 4px; max-width:960px; text-wrap:balance; }
.ch01-preface { overflow:hidden; }
.ch01-preface > img { animation:preface-drift 30s ease-in-out infinite alternate; }
.ch01-preface::before { z-index:-1; background:linear-gradient(90deg,#061726f5,#061726b0 54%,#06172610); }
.ch01-preface .neural-intro { position:absolute; inset:0 0 0 38%; border:0; border-radius:0; background:transparent; opacity:.72; z-index:-1; mask-image:linear-gradient(90deg,transparent,#000 28%); }
.neural-intro svg { height:100%; width:100%; object-fit:cover; }
.neural-intro svg > rect { opacity:0; }
.neural-intro .neural-disclaimer { display:none; }
.ch01-preface .neural-motion-toggle, .ch01-preface .neural-motion-toggle + label { top:18px; }
.ch01-preface-copy { position:relative; pointer-events:none; padding-right:28%; text-shadow:0 2px 20px #020b13; }
.ch01-preface:has(.neural-motion-toggle:checked) > img { animation-play-state:paused; }
@keyframes neural-flow { to { stroke-dashoffset:-100; } }
@keyframes neural-breathe { 0%,100% {opacity:.35;transform:scale(.75)} 50% {opacity:1;transform:scale(1.4)} }
@keyframes neural-drift { to {transform:translate(12px,-9px)} }
@keyframes neural-old { 0%,35%,100% {opacity:1} 60%,85% {opacity:.22} }
@keyframes neural-new { 0%,22%,100% {opacity:.08} 48%,85% {opacity:1} }
@keyframes neural-caption { 0%,30%,100% {color:#fff1c5;opacity:1} 40%,90% {color:#7495a2;opacity:.55} }
@keyframes neural-scan { from {transform:translateX(-20px)} to {transform:translateX(1220px)} }
@keyframes preface-drift { from {transform:scale(1.02) translateX(-.3%)} to {transform:scale(1.1) translateX(1%)} }
@media(max-width:700px) { .neural-sequence{gap:10px;left:14px;bottom:30px;font-size:11px;letter-spacing:0}.neural-disclaimer{bottom:10px;font-size:9px}.ch01-preface-copy{padding-right:18px}.ch01-preface-copy h2{font-size:32px}.neural-scene svg{min-height:260px}.ch01-map{min-height:0}.ch01-map-layout{gap:8px} }
@media(prefers-reduced-motion:reduce) { .neural-scene *, .ch01-preface > img {animation:none !important;} .new-link{opacity:.8}.old-link{opacity:.5} }

.neural-rewire svg { height:clamp(260px,43vh,470px); }
.neural-signal { filter:drop-shadow(0 0 3px #9af7ff); }
.ch01-map { max-height:min(43vh,430px); }
:fullscreen .ch01-neural-rewire .neural-scene svg { height:42vh; max-height:470px; }
:fullscreen .ch01-neural-takeaway { margin:16px auto; font-size:clamp(22px,2vw,34px); }

.neural-depth { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.28; animation:preface-drift 30s ease-in-out infinite alternate; z-index:-1; }
.neural-rewire:has(.neural-depth) svg > rect { fill-opacity:0; }
.neural-motion-toggle:checked ~ .neural-depth { animation-play-state:paused; }
