
:root{color-scheme:dark;--ink:#091d19;--panel:#102a23;--panel2:#16352b;--line:#345145;--text:#f1f0db;--muted:#b5c9b9;--green:#c1e296;--gold:#e6bd78;--red:#ffb4a4;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--ink);color:var(--text);font-size:16px;line-height:1.5}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}a{color:inherit;text-underline-offset:5px}button,a,input,select,summary{touch-action:manipulation}button{cursor:pointer;color:var(--text);background:transparent;border:1px solid var(--line);border-radius:7px;min-height:44px;padding:10px 16px;font-size:.86rem;font-weight:600;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#244939;border-color:#789968}button:disabled{opacity:.42;cursor:default}button.primary{background:var(--green);color:#163320;border-color:var(--green)}button.primary:hover{background:#d6edb5}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:4px}input:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button.small{font-size:.75rem;min-height:36px;padding:7px 10px}button.text-button{padding:10px 0;border:0;border-radius:0;color:var(--green);margin-top:12px;text-align:left}button.text-button:hover{background:transparent;text-decoration:underline}button[aria-pressed=true]{border-color:var(--green);background:#294b34}button[hidden],[hidden]{display:none!important}.skip{position:fixed;left:15px;top:-80px;padding:12px;background:var(--green);color:var(--ink);z-index:20}.skip:focus{top:10px}.masthead{border-bottom:1px solid #2b4137;display:flex;align-items:center;gap:40px;max-width:1600px;margin:auto;padding:16px 3.5%;font-size:.84rem}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:1.1rem;font-weight:750;letter-spacing:.02em}.masthead>a:nth-child(2){color:var(--green);text-decoration:none}.masthead nav{display:flex;gap:24px;margin-left:auto}.masthead nav a{text-decoration:none;color:var(--muted)}main{max-width:1510px;margin:auto;padding:0 3.5%}.case-intro{display:flex;gap:30px;align-items:end;justify-content:space-between;padding:27px 0 25px}.eyebrow{font-size:.65rem;letter-spacing:.16em;font-weight:700;color:var(--green);margin:0 0 13px}.eyebrow span{color:var(--muted);margin-left:16px;font-size:.6rem}h1{font-size:clamp(2rem,3.5vw,3.65rem);line-height:1.05;letter-spacing:-.055em;font-weight:500;margin:0}h1 em{font-family:Georgia,serif;font-weight:400;color:var(--green)}h1 br{display:none}h2{font-size:clamp(1.4rem,2.1vw,2rem);line-height:1.15;letter-spacing:-.04em;font-weight:500;margin:0 0 16px}h3{font-size:1.08rem;line-height:1.3;margin:24px 0 10px}p{margin:0 0 15px}.opening{max-width:350px;font-size:.95rem;color:var(--muted)}.opening>p:first-child{display:none}.opening .fine{margin:0}.fine{font-size:.76rem;line-height:1.6;color:var(--muted)}.chapter-nav{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:19px;padding-bottom:12px}.chapter-nav button{border:0;text-align:left;padding:10px 16px;color:var(--muted);font-weight:500;flex:1;white-space:nowrap}.chapter-nav button span{font-size:.64rem;margin-right:8px;opacity:.65}.chapter-nav button[aria-current=page]{background:var(--panel2);color:var(--green)}.workbench{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(285px,1fr);gap:27px;align-items:start}.visual-column{min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#10251f}.scene-top{display:flex;align-items:center;justify-content:space-between;padding:10px 13px;font-size:.79rem;gap:10px;border-bottom:1px solid var(--line)}.scene-top>div{display:flex;gap:6px}.stage{position:relative;height:clamp(270px,39vh,430px);isolation:isolate;background:radial-gradient(ellipse at 42% 35%,#29402f 0,#10251e 55%,#0a1b16 100%);overflow:hidden}#scene,#fallback{position:absolute;inset:0;width:100%;height:100%;display:block}#scene{z-index:1}#fallback{z-index:0}.stage canvas{display:block}.view-label{position:absolute;top:16px;left:18px;font-size:.57rem;letter-spacing:.11em;color:#c8d3b9;z-index:2;pointer-events:none;background:#0c2018b0;padding:5px 7px;border-radius:4px}.stage-note{position:absolute;bottom:12px;left:18px;right:18px;z-index:2;font-size:.75rem;color:var(--text);pointer-events:none;text-shadow:0 1px 6px #000}.test-controls{display:grid;grid-template-columns:1fr 1fr;gap:23px;padding:15px 18px;background:#122d24;border-top:1px solid var(--line)}.test-controls label{font-size:.77rem;font-weight:500}output{float:right;font-variant-numeric:tabular-nums;color:var(--green)}input[type=range]{width:100%;height:24px;accent-color:var(--green);margin:4px 0;cursor:pointer;display:block}.range-ends{display:flex;justify-content:space-between;font-size:.62rem;color:var(--muted)}.test-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;align-items:center}.test-actions button{font-size:.72rem;padding:8px;min-height:47px}.close-controls{padding:16px;display:flex;gap:12px;justify-content:space-between;background:#122d24;border-top:1px solid var(--line)}.segmented{display:flex;gap:6px}.close-controls button{font-size:.73rem;padding:8px 10px}.readout{padding:11px 18px 12px;border-top:1px solid var(--line);min-height:76px}.readout p{font-size:.81rem;margin:0 0 4px}.readout>span{font-size:.66rem;color:var(--muted);font-variant-numeric:tabular-nums}.investigation-panel{padding:10px 0 0}.investigation-panel p{font-size:.87rem;color:var(--muted)}.investigation-panel .eyebrow{font-size:.62rem;color:var(--green)}.steps{margin:15px 0 20px;padding-left:24px;font-size:.86rem;color:var(--muted)}.steps li{margin:11px 0;padding-left:5px}.steps li::marker{color:var(--gold)}.quiet-card{padding:16px 18px;border-left:2px solid var(--gold);background:#243224;border-radius:0 7px 7px 0;margin:18px 0}.mini-label{font-size:.58rem;letter-spacing:.12em;color:var(--gold)}.quiet-card p{margin:5px 0 0;color:#dfdfc8;font-size:.8rem}.surface-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.surface-grid button{min-height:65px;padding:12px;font-size:.73rem;text-align:left}.surface-grid span,.challenge span{display:block;letter-spacing:.10em;font-size:.55rem;color:var(--muted);margin-bottom:4px}.surface-grid+.fine{font-size:.69rem;margin-top:12px}.challenge{width:100%;text-align:left;border-style:dashed;border-color:#a58e61;color:var(--gold);font-size:.77rem}.challenge span{color:var(--gold)}details.guidance{font-size:.75rem;margin:16px 0;color:var(--muted)}summary{cursor:pointer}details.guidance p{font-size:.78rem;margin:12px 0}select{display:block;background:#112e24;border:1px solid var(--line);color:var(--text);font-size:.8rem;border-radius:6px;width:100%;padding:12px 8px;margin:6px 0 18px;min-height:44px}.investigation-panel label{font-size:.73rem;color:var(--muted)}#build-case{width:100%;margin-bottom:12px}.status{min-height:1.5em;font-size:.78rem;color:var(--green);margin:10px 0 15px}.notebook{border-top:1px solid var(--line);padding:28px 0 30px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:8px}.section-head h2{margin:0;font-size:1.6rem}.section-head .eyebrow{margin-bottom:8px;font-size:.58rem}.section-head h2 span{display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;border:1px solid var(--line);border-radius:50%;height:27px;width:27px;margin-left:9px;vertical-align:middle;color:var(--green)}.notebook>.fine{font-size:.75rem}.evidence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:12px}.empty-note{font-size:.84rem;color:var(--muted);padding:22px;border:1px dashed var(--line);border-radius:7px;grid-column:1/-1}.record{background:#122920;border:1px solid var(--line);border-radius:8px;padding:15px;position:relative;max-width:100%;min-width:0}.record-head{display:flex;gap:8px;align-items:start;margin-bottom:10px}.record-head input{accent-color:var(--green);width:19px;height:19px;flex-shrink:0;margin:1px 0 0;cursor:pointer}.record-head label{font-size:.8rem;cursor:pointer;font-weight:650;line-height:1.35}.record .record-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 8px}.record-facts span{font-size:.59rem;color:var(--muted)}.record-facts strong{display:block;font-size:1.05rem;font-weight:500;color:var(--text);font-variant-numeric:tabular-nums}.record p{font-size:.75rem;color:var(--muted);margin:8px 0}.record .record-tag{font-size:.56rem;letter-spacing:.12em;color:var(--green)}.record canvas{width:100%;height:90px;display:block;border-radius:5px;background:#091f18}.case-result{padding:28px;background:#1b3629;border:1px solid #74935b;border-radius:10px;margin:0 0 30px}.case-result p{max-width:85ch;font-size:.9rem}.case-result ul{padding-left:20px;color:var(--muted);font-size:.85rem}.case-result li{margin:10px 0}.result-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-top:25px}.result-actions a{font-size:.84rem;color:var(--green)}.research-section{border-top:1px solid var(--line);padding:25px 0 50px}.research-section>details>summary{font-size:.9rem;padding:10px 0;list-style:none;display:flex;justify-content:space-between}.research-content{display:grid;grid-template-columns:1fr 1fr;gap:45px;padding:25px 0 0}.research-content p,.research-content li{font-size:.82rem;color:var(--muted)}.research-content h2{font-size:1.7rem}.sources{padding-left:17px}.sources li{padding:6px 0}.sources span{display:block;margin-top:6px;font-size:.74rem}footer{max-width:1510px;margin:auto;padding:24px 3.5%;border-top:1px solid var(--line);display:flex;gap:30px;align-items:center}footer p{margin:0;font-size:.77rem;color:var(--muted)}footer>a:last-child{margin-left:auto;font-size:.76rem}dialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:13px;padding:35px;max-width:min(550px,calc(100% - 28px));max-height:85dvh}dialog::backdrop{background:#02100de6}dialog p{font-size:.9rem;color:var(--muted)}dialog a{color:var(--green)}.dialog-close{position:absolute;top:8px;right:8px;border:0;font-size:1.3rem}.notice{padding:20px;background:var(--panel)}
@media(min-width:1600px){.case-intro{padding:36px 0}.opening>p:first-child{display:block}.stage{height:455px}.investigation-panel{padding:17px 12px}.workbench{grid-template-columns:1.9fr 1fr;gap:38px}.test-controls{padding:20px}.test-actions button{font-size:.85rem}}
@media(max-width:1050px){.masthead{padding:13px 3%}.workbench{grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:20px}.case-intro{padding:24px 0 20px}h1{max-width:610px;font-size:2.3rem}.opening{max-width:250px}.opening .fine{font-size:.68rem}.stage{height:310px}.test-controls{gap:13px;padding:13px;grid-template-columns:1fr}.test-actions{grid-template-columns:1fr 1fr}.investigation-panel h2{font-size:1.6rem}.chapter-nav button{padding:10px 9px;font-size:.75rem}.chapter-nav button span{display:none}.scene-top{flex-wrap:wrap}.scene-top>div{margin-left:auto}.quiet-card{padding:12px}.steps li{margin:8px 0}.close-controls{flex-wrap:wrap}.research-content{gap:25px}}
@media(max-width:720px){.masthead{gap:20px}.masthead nav a:first-child{display:none}.masthead nav{gap:0;font-size:.74rem}.masthead>a:nth-child(2){font-size:.74rem}.brand{font-size:.98rem;gap:7px}.brand img{width:26px;height:26px}main{padding:0 4%}.case-intro{display:block;padding:20px 0 15px}.eyebrow{font-size:.56rem;margin-bottom:10px}.eyebrow span{font-size:.51rem;margin-left:10px}h1{font-size:2.05rem;max-width:540px;line-height:1.08}.opening{max-width:none;margin-top:11px}.opening .fine{font-size:.64rem}.opening br{display:none}.chapter-nav{gap:0;margin-bottom:12px;padding-bottom:9px;display:grid;grid-template-columns:1fr 1fr}.chapter-nav button{font-size:.72rem;min-height:40px;padding:8px 9px}.chapter-nav button span{display:inline;margin-right:5px;font-size:.57rem}.workbench{display:flex;flex-direction:column;gap:19px}.visual-column{width:100%}.stage{height:clamp(245px,37vh,330px)}.scene-top{padding:8px 10px;font-size:.72rem;gap:6px}.scene-top button.small{min-height:32px;font-size:.65rem;padding:6px 8px}.view-label{font-size:.50rem;left:11px;top:11px}.stage-note{font-size:.67rem;left:12px;bottom:10px}.test-controls{grid-template-columns:1fr;gap:8px;padding:11px 13px}.test-controls label{font-size:.73rem}.test-actions button{font-size:.74rem;min-height:42px}.readout{padding:10px 13px;min-height:65px}.readout p{font-size:.76rem}.readout>span{font-size:.63rem}.investigation-panel{width:100%;padding:0 4px}.investigation-panel h2{font-size:1.6rem}.investigation-panel h2 br{display:none}.investigation-panel .steps{display:none}.quiet-card{margin:12px 0}.investigation-panel p{font-size:.83rem}.surface-grid button{min-height:67px;font-size:.81rem}.surface-grid span{font-size:.59rem}.evidence-grid{grid-template-columns:1fr 1fr;gap:9px}.record{padding:11px}.record-head label{font-size:.73rem}.record-facts strong{font-size:.98rem}.notebook{padding-top:20px}.section-head{gap:12px}.section-head h2{font-size:1.3rem}.section-head .eyebrow{font-size:.51rem}.section-head button{font-size:.62rem}.research-content{grid-template-columns:1fr;gap:0}.research-section>details>summary{font-size:.8rem}.case-result{padding:22px}.case-result h2{font-size:1.6rem}.result-actions{gap:16px}footer{flex-wrap:wrap;gap:15px}footer p{order:3;flex-basis:100%;font-size:.7rem}footer>a:last-child{font-size:.7rem}.close-controls{padding:11px;gap:10px}.close-controls button{font-size:.69rem}}
@media(max-width:370px){.evidence-grid{grid-template-columns:1fr}.scene-top>span{flex-basis:100%}.scene-top>div{margin-left:0}.stage{height:240px}.masthead{gap:13px}.masthead nav{display:none}.chapter-nav button{font-size:.69rem}h1{font-size:1.85rem}.eyebrow span{display:block;margin:4px 0 0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{header,.chapter-nav,.workbench,footer,.research-section,.status,.notebook button,dialog{display:none!important}body{background:white;color:black}main{padding:0}.record,.case-result{break-inside:avoid;background:white;color:black;border-color:#555}.fine,.record p,.record-facts span,.record-facts strong,.eyebrow{color:#222}}


.mobile-surface{display:none}#drop-profile{position:absolute;right:12px;top:30px;width:160px;height:105px;z-index:2;pointer-events:none;background:radial-gradient(ellipse,#0b2319cc,transparent 75%)}
@media(max-width:720px){body[data-case-view=compare] .mobile-surface{display:block;padding:9px 12px;border-bottom:1px solid var(--line);font-size:.65rem;color:var(--muted)}.mobile-surface select{font-size:.76rem;margin:4px 0 0;min-height:40px;padding:8px}body[data-case-view=compare] .surface-grid,body[data-case-view=compare] .challenge{display:none}body[data-case-view=compare] .stage{height:240px}#drop-profile{transform:scale(.8);transform-origin:top right;top:28px;right:4px}}

@media(hover:none){.chapter-nav button:not([aria-current=page]){background:transparent}}
@media(max-width:720px){.opening .fine{font-size:.75rem}.range-ends{font-size:.7rem}.readout>span{font-size:.72rem}.stage-note{font-size:.72rem}.investigation-panel .fine{font-size:.77rem}.record .record-tag{font-size:.63rem}}

.research-content>div,.investigation-panel,.test-actions{min-width:0}.research-content{overflow-wrap:anywhere}.test-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.test-actions button{overflow-wrap:anywhere}.chapter-nav button{min-width:0}@media(max-width:720px){.chapter-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.chapter-nav button{white-space:normal}.research-content{grid-template-columns:minmax(0,1fr)}}

/* Keep the experiment controls beside their feedback and ahead of the scene. */
.keep-feedback{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 18px;border-top:1px solid var(--line);font-size:.75rem;color:var(--muted);background:#122d24}
.keep-feedback span{min-width:0}.keep-feedback a{flex-shrink:0;color:var(--green)}
.record .remove-record{margin-top:10px;color:var(--muted)}
.record .legacy-note{border-left:2px solid var(--gold);padding-left:9px}
#case-title:focus,#notebook-title:focus{outline:2px solid var(--gold);outline-offset:5px}
@media(max-width:720px){.keep-feedback{padding:8px 13px;font-size:.72rem;align-items:start}.case-intro{padding:14px 0 12px}.chapter-nav{margin-bottom:10px}.test-controls{padding:9px 13px}.stage{min-height:240px}}
@media(max-width:370px){.keep-feedback{flex-wrap:wrap;gap:4px}.case-intro h1{font-size:1.75rem}.scene-top{padding:7px 10px}}

@media(min-width:721px) and (max-height:740px){
 .masthead{padding-top:8px;padding-bottom:8px}.case-intro{padding:14px 0}.case-intro .eyebrow{margin-bottom:8px}h1{font-size:2rem}.chapter-nav{padding-bottom:8px;margin-bottom:12px}.scene-top{padding:6px 12px}.test-controls{padding:9px 16px;gap:16px}.stage{height:250px}.keep-feedback{padding-top:6px;padding-bottom:6px}
}
@media(max-width:370px){
 .masthead{padding-top:8px;padding-bottom:8px}.case-intro .eyebrow span{display:inline;margin-left:8px}.case-intro .eyebrow{font-size:.5rem;margin-bottom:8px}.opening{margin-top:8px}.opening .fine{font-size:.72rem}.test-controls .range-ends{display:none}.test-controls input[type=range]{margin-bottom:0}.keep-feedback{flex-wrap:nowrap}
}

/* Camera controls wrap without squeezing the specimen or overflowing large text. */
.scene-top{flex-wrap:wrap}.scene-top>div{flex-wrap:wrap;justify-content:flex-end;margin-left:auto}.scene-top>span{min-width:0}
@media(max-width:370px){.scene-top>div{margin-left:0;justify-content:flex-start}}

/* Chapter labels must remain inside their buttons with enlarged text. */
.chapter-nav button{white-space:normal;overflow-wrap:anywhere}
@media(min-width:721px) and (max-width:1050px){.chapter-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
