.history-reactor{--hr-ink:#080e15;border:5px solid var(--hr-ink);padding:clamp(18px,4vw,38px);margin:30px 0;background:#241d3f;color:#edf4dd;box-shadow:9px 9px 0 var(--hr-ink)}.history-reactor *{box-sizing:border-box}.hr-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.studio .history-reactor h2{color:#edf4dd;font:900 clamp(30px,5vw,54px)/1.05 system-ui,sans-serif;text-shadow:none;text-transform:none;letter-spacing:-.04em;margin:10px 0}.history-reactor p{line-height:1.6}.hr-kicker{font:800 .75rem/1.6 monospace;color:#e9ca85}.hr-power{min-width:160px;font:800 .85rem monospace}.hr-power progress{width:100%;display:block;margin-top:12px;accent-color:#8cdec5}.hr-eras{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:26px 0}.studio .history-reactor button{cursor:pointer;min-height:46px;border:3px solid #080e15;background:#e9ca85;color:#080e15;border-radius:3px;padding:10px 13px;font:800 .9rem/1.3 system-ui,sans-serif}.hr-eras button{display:flex;align-items:center;flex-direction:column;gap:6px;text-align:center;box-shadow:3px 3px 0 #080e15}.hr-eras button>span{font:900 2rem/1 monospace}.hr-eras small{font-size:.7rem}.hr-eras button[aria-pressed=true]{outline:3px solid #edf4dd;outline-offset:2px}.studio .hr-eras button.is-restored{background:#8cdec5}.hr-eras button.is-restored b:after{content:' ✓'}.hr-console{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);background:#0c181e;border:3px solid #080e15}.hr-visual{position:relative;background:#9fb5f1;border-right:3px solid #080e15;padding:24px;display:grid;align-content:center;min-height:350px;overflow:hidden}.hr-visual svg{display:block;width:100%;height:auto}.hr-year{font:900 clamp(40px,7vw,86px)/1 monospace;color:#080e15;align-self:end;text-align:right;letter-spacing:-.08em}.hr-copy{padding:24px;min-width:0}.studio .hr-copy h3{font:900 1.8rem/1.2 system-ui,sans-serif;color:#edf4dd;margin:10px 0}.hr-task{border-left:4px solid #ff9164;padding-left:14px;font-weight:700}.hr-controls{display:flex;flex-wrap:wrap;gap:10px}.hr-status{padding:12px;background:#1e343b;border:1px solid #36565c;min-height:68px;font:.88rem/1.6 monospace!important}.hr-tape-readout{flex-basis:100%;padding:14px;background:#edf4dd;color:#080e15;font:900 1.5rem monospace}.history-reactor footer{display:flex;flex-wrap:wrap;align-items:center;gap:18px;padding-top:22px}.history-reactor footer p{flex:1;min-width:180px;font-size:.85rem}.history-reactor a{color:#e9ca85}.history-reactor button:focus-visible,.history-reactor a:focus-visible{outline:3px solid #ff9164;outline-offset:4px}.history-trace{display:block;margin:12px 0 0;font:700 .65rem/1.7 monospace!important;letter-spacing:.025em;text-decoration:underline;color:inherit}.eq-machine .history-trace,.lab-machine .history-trace{color:#080e15}.hr-moth.is-removed{visibility:hidden}.hr-running .hr-tape{animation:hr-feed 1s steps(4) both}.hr-running .hr-card{animation:hr-card 1s steps(3) both}.is-visible .hr-gear{transform-origin:125px 115px;animation:hr-gear 12s linear infinite}.hr-running .hr-moth:not(.is-removed){transform-origin:190px 110px;animation:hr-moth 1s ease-in-out 2}.hr-running .hr-wave{animation:hr-score 1.2s steps(3) 2}.hr-running .hr-pointer{animation:hr-pointer 1s steps(3) both}.hr-running .hr-network{animation:hr-score 1s steps(3) 2}
@keyframes hr-gear{to{transform:rotate(360deg)}}@keyframes hr-feed{to{transform:translateX(-16px)}}@keyframes hr-card{50%{transform:translateY(16px)}}@keyframes hr-moth{50%{transform:rotate(8deg)}}@keyframes hr-score{50%{transform:translateY(-6px)}}@keyframes hr-pointer{50%{transform:translate(-35px,-20px)}}
/* Existing machine movement now follows cards, relays and discrete instructions. */
.ml-flow,.ml-belt,.m-bubble{animation-timing-function:steps(6)!important;animation-duration:4s!important}.ml-blink,.m-blink,.lf-lamp,.machine-lights b{animation-duration:4s!important}.ml-spin{animation-duration:8s!important}.ml-steam,.ml-rise,.ml-slosh,.lab78-art-steam,.l78-bubble,.lab78-art-leaves,.lab78-art-eyes,.l78-held-cone{animation:none!important}.eq-bit,.eq-phone,.eq-orbit,.m-float,.lab78-art-orbit{animation:none!important}.eq-scan,.lab78-art-code,.lab78-art-wave{animation-timing-function:steps(4)!important;animation-duration:5s!important}
@media(max-width:850px){.hr-eras{grid-template-columns:repeat(3,minmax(0,1fr))}.hr-console{grid-template-columns:1fr}.hr-visual{min-height:240px;border-right:0;border-bottom:3px solid #080e15;grid-template-columns:1fr auto;align-items:center}.hr-visual svg{max-height:230px}.hr-heading{display:block}.hr-power{max-width:230px;margin-top:18px}}@media(max-width:480px){.hr-visual{display:block;padding:12px}.hr-year{font-size:44px}.hr-copy{padding:18px}.hr-eras{gap:9px}.studio .hr-eras button{padding:10px 6px}.history-reactor{padding:16px;box-shadow:5px 5px 0 #080e15}}
@media(prefers-reduced-motion:reduce){.history-reactor *{animation:none!important;transition:none!important}}.access-no-motion .history-reactor *,.access-calm .history-reactor *{animation:none!important;transition:none!important}.access-calm .ml-flow,.access-calm .ml-spin,.access-calm .lf-lamp,.access-calm .lab-floor *,.access-calm .mega-lab *{animation:none!important}.access-contrast .history-reactor{background:#000;color:#fff}.access-contrast .hr-copy{background:#000}.access-contrast .hr-status{background:#000;color:#fff}@media print{.history-reactor{box-shadow:none}.history-trace{font-size:10pt!important}}

.history-launch{padding:28px 0;border-top:3px solid #10151f;border-bottom:3px solid #10151f;margin:30px 0}.flask i{animation:none!important}.machine-lights b{animation-timing-function:steps(2)!important}.history-reactor h1{font:900 clamp(30px,5vw,54px)/1.05 system-ui,sans-serif;color:#edf4dd;text-transform:none;letter-spacing:-.04em;margin:10px 0;text-shadow:none}

/* Dr. Turing's illustrated control room: heavy ink, machinery and finite rewards. */
.hr-host{display:grid;grid-template-columns:1fr 1.2fr;gap:24px;padding:clamp(20px,4vw,40px);margin:28px 0;background:#12252b;border:5px solid #080e15;box-shadow:9px 9px 0 #080e15;color:#edf4dd}.studio .hr-host h1{font:900 clamp(32px,5vw,62px)/1.03 system-ui,sans-serif;text-transform:none;text-shadow:none;color:#edf4dd;letter-spacing:-.045em;margin:12px 0 20px}.hr-host-copy>p{line-height:1.65}.hr-host-art{min-width:0;align-self:center;position:relative}.hr-turing-scene{width:100%;height:auto;display:block;border:4px solid #080e15}.hr-host .primary,.hr-host button{display:inline-block;min-height:46px;padding:12px 16px;background:#e9ca85;color:#080e15;border:3px solid #080e15;font:800 .9rem/1.4 system-ui,sans-serif;text-decoration:none;margin:8px 6px 8px 0;cursor:pointer}.hr-host-message{border-left:4px solid #8cdec5;padding:12px;background:#18353b;font:.8rem/1.6 monospace}.hr-era-strip{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px;font:800 .7rem monospace}.hr-era-strip>*{padding:8px;background:#edf4dd;color:#080e15;border:2px solid #080e15}.hr-era-strip .is-current,.hr-era-strip b{background:#e9ca85}.hr-host .hrhost-art-gear{transform-box:fill-box;transform-origin:center;animation:hr-gear 10s linear infinite}.hr-host .hrhost-art-code{animation:hr-scanline 5s steps(4) infinite}.hr-host-art{animation:hr-arrive .5s ease-out both}.history-reactor{position:relative;scroll-margin-top:20px}.history-reactor.is-visible .hr-visual:after{content:'';position:absolute;inset:12px;pointer-events:none;border:3px dashed #080e15;animation:hr-circuit 12s steps(6) infinite}.hr-xp{font:900 .75rem/1.5 monospace;color:#e9ca85}.hr-quiz{background:#0c181e;border:4px solid #080e15;padding:clamp(18px,4vw,32px);margin-top:24px}.hr-quiz[hidden],.hr-console[hidden],.hr-eras[hidden]{display:none!important}.studio .hr-quiz h2,.studio .hr-finale h2{color:#edf4dd;font:900 clamp(30px,5vw,55px)/1.1 system-ui,sans-serif;text-transform:none;letter-spacing:-.04em;margin:16px 0}.hr-quiz h3{color:#edf4dd;font:800 1.4rem/1.4 system-ui,sans-serif}.hq-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}.studio .hq-option{display:flex;align-items:center;flex-direction:column;gap:16px;min-height:160px;padding:22px 16px;text-align:center;background:#edf4dd;box-shadow:4px 4px 0 #080e15}.hq-option>span:first-child{font:900 clamp(24px,4vw,40px)/1.2 monospace}.studio .hq-option.is-correct{background:#8cdec5;opacity:1;animation:hr-reward .45s ease-out}.studio .hq-option.is-retry{background:#e9ca85}.hq-option:disabled{cursor:default}.hr-quiz>button{margin:10px 8px 0 0}.hr-finale{position:relative;padding:36px;border:4px solid #080e15;background:#12252b;text-align:center;margin-top:24px;animation:hr-arrive .4s ease-out}.hr-seal{display:grid;place-items:center;width:150px;height:150px;margin:auto;background:#8cdec5;color:#080e15;border:7px double #080e15;font:900 60px/1 monospace;transform:rotate(-6deg);animation:hr-reward .7s ease-out}.hr-seal span{font:900 17px monospace}.hr-takeaways{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:24px 0}.hr-takeaways span{border:2px solid #8cdec5;padding:8px 12px;font:800 .8rem monospace}.hr-finale .primary{display:inline-block;background:#e9ca85;color:#080e15;border:3px solid #080e15;padding:14px 20px;margin:16px;font-weight:800}.hr-host a:focus-visible,.hr-host button:focus-visible{outline:3px solid #ff9164;outline-offset:4px}@keyframes hr-arrive{from{transform:translateY(14px);opacity:.4}to{transform:none;opacity:1}}@keyframes hr-reward{50%{transform:translateY(-8px) scale(1.04)}}@keyframes hr-scanline{50%{transform:translateX(5px)}}@keyframes hr-circuit{50%{border-color:#edf4dd}}@media(max-width:850px){.hr-host{grid-template-columns:1fr}.hr-host-art{max-width:650px}.hq-options{grid-template-columns:1fr}.studio .hq-option{flex-direction:row;text-align:left;min-height:90px}.hq-option>span:first-child{min-width:100px}.hr-finale{padding:24px}}@media(prefers-reduced-motion:reduce){.hr-host *,.hr-host-art,.history-reactor *,.hr-visual:after{animation:none!important;transition:none!important}}.access-no-motion .hr-host *,.access-calm .hr-host *,.access-no-motion .hr-visual:after,.access-calm .hr-visual:after{animation:none!important;transition:none!important}.access-contrast .hr-host{background:#000;color:#fff}

.hr-host .hrhost-rotors{transform-box:fill-box;transform-origin:center;animation:hr-gear 12s linear infinite}.hr-host .hrhost-wave{transform-box:fill-box;transform-origin:center;animation:hr-reward 3s ease-in-out infinite}.hr-host .hrhost-monitor{animation:hr-circuit 5s steps(3) infinite}.hr-host .hrhost-held-cone{transform-box:fill-box;transform-origin:bottom;animation:hr-host-cone 4s ease-in-out infinite}@keyframes hr-host-cone{50%{transform:rotate(-5deg)}}@media(prefers-reduced-motion:reduce){.hr-host *{animation:none!important}}.access-no-motion .hr-host *,.access-calm .hr-host *{animation:none!important}

.dc-launch{width:100%;display:grid;grid-template-columns:100px 1fr;gap:12px;text-align:left;background:#e9ca85;color:#080e15;border:5px solid #080e15;padding:26px;margin:30px 0;box-shadow:8px 8px 0 #080e15;cursor:pointer}.dc-launch>span{grid-row:span 2;font:900 30px monospace;align-self:center}.dc-launch strong{font:900 clamp(22px,4vw,36px)/1.1 system-ui}.dc-launch small{font:700 14px monospace}.dc-launch:hover{transform:translateY(-3px)}.dc-launch:focus-visible,.dc-chamber button:focus-visible{outline:4px solid #ff9164;outline-offset:4px}.dc-chamber{padding:30px;background:#12252b;border:5px solid #080e15;color:#edf4dd}.dc-chamber[hidden]{display:none}.studio .dc-chamber h2{font:900 clamp(28px,4vw,46px)/1.1 system-ui;color:#edf4dd;text-transform:none}.dc-experiment{display:grid;grid-template-columns:1fr 1.4fr;gap:24px}.dc-experiment svg{width:100%;background:#18353b;border:3px solid #080e15}.dc-credit{font:.8rem monospace;color:#8cdec5}.dc-choices{display:grid;gap:10px}.dc-chamber button{padding:14px;background:#edf4dd;color:#080e15;border:3px solid #080e15;font-weight:800;cursor:pointer}.dc-chamber button.is-explored{background:#8cdec5}.dc-chamber button:disabled{opacity:.5;cursor:default}.dc-chamber>button{margin:10px 8px 0 0}.dc-steam{animation:dc-rise 3s ease-in-out infinite}.dc-path{stroke-dasharray:10 6;animation:dc-route 4s linear infinite}.dc-dial{transform-box:fill-box;transform-origin:center;animation:hr-reward 4s ease-in-out infinite}@keyframes dc-rise{50%{transform:translateY(-8px)}}@keyframes dc-route{to{stroke-dashoffset:-64}}@media(max-width:700px){.dc-experiment{grid-template-columns:1fr}.dc-experiment svg{max-height:220px}.dc-launch{grid-template-columns:1fr}.dc-launch>span{grid-row:auto}.dc-chamber{padding:20px}}@media(prefers-reduced-motion:reduce){.dc-chamber *,.dc-launch{animation:none!important;transform:none!important}}.access-no-motion .dc-chamber *,.access-calm .dc-chamber *{animation:none!important}

.history-reactor [data-hr-next],.history-reactor [data-hr-quiz],.history-reactor [data-hq-next],.dc-chamber [data-dc-next]{min-height:58px;border:4px solid #080e15;background:#e9ca85;color:#080e15;padding:16px 22px;font:900 1rem/1.4 system-ui;box-shadow:5px 5px 0 #080e15;text-align:left}.history-reactor button:not(:disabled):hover,.dc-chamber [data-dc-next]:not(:disabled):hover{transform:translateY(-2px)}.history-reactor button:disabled{opacity:.5;cursor:default}

body.studio.time-lab{background:#0c181e;background-image:none}.time-lab>.skip-link{position:absolute;left:16px;top:-80px;z-index:1000;padding:12px;background:#edf4dd;color:#080e15}.time-lab>.skip-link:focus{top:12px}.studio.time-lab>header.studio-header{position:relative;inset:auto;display:flex!important;flex-direction:row;width:100%;max-width:1160px;min-height:70px;height:auto!important;padding:16px 24px;margin:0 auto;background:#0c181e!important;border-bottom:2px solid #36565c;text-align:left;overflow:visible}.time-lab>header.studio-header>a{color:#edf4dd;font-weight:800;text-decoration:none}.time-lab>header.studio-header nav{display:flex!important;visibility:visible;gap:8px;flex-wrap:wrap}.time-lab>header.studio-header nav a{color:#edf4dd;background:#18353b;border:1px solid #36565c;border-radius:0;padding:10px 14px}.studio.time-lab main{width:100%;max-width:1160px;padding:0 24px;margin:0 auto}.time-lab .hr-host{grid-template-columns:1.1fr 1fr;margin-top:24px}.hr-project{margin-top:24px;padding:18px;border:2px solid #8cdec5;background:#142128}.hr-project label{display:block;font-weight:800;margin:14px 0 8px}.hr-project textarea{width:100%;min-height:100px;padding:12px;border:2px solid #36565c;background:#edf4dd;color:#080e15;font:16px/1.5 system-ui;resize:vertical}.hr-project [data-hr-note-status]{font-size:13px;min-height:20px}.history-reactor .hr-project .primary{background:#8cdec5;color:#080e15;border-radius:0;font-size:16px}.hr-project p{font-size:16px!important}@media(max-width:850px){.time-lab .hr-host{grid-template-columns:1fr}.studio.time-lab>header.studio-header{align-items:flex-start;flex-direction:column;gap:12px}.studio.time-lab main{padding:0 16px}}

.history-reactor .hr-console{align-items:start}.history-reactor .hr-visual{min-height:0;height:auto;align-self:start;padding:18px}.history-reactor .hr-visual svg{max-height:280px;aspect-ratio:380/250}.history-reactor .hr-year{font-size:48px;margin-top:8px}.hr-display{display:block;background:#080e15;color:#edf4dd;padding:14px;margin-top:14px;font:800 15px/1.5 monospace;overflow-wrap:anywhere}.history-reactor .hr-visual:after{display:none}.hr-project summary{cursor:pointer;font:800 16px/1.5 system-ui;color:#8cdec5;padding:8px 0;min-height:44px}.hr-project .hr-mechanic,.hr-project .hr-bridge{padding:12px;border-left:3px solid #e9ca85}.hr-project .hr-bridge{border-color:#8cdec5}.hr-copy,.hr-controls,.hr-project{min-width:0}.history-reactor button,.hr-project a{overflow-wrap:anywhere;max-width:100%}.hr-controls button{touch-action:manipulation}.hr-project textarea{box-sizing:border-box;max-width:100%}@media(max-width:850px){.history-reactor .hr-console{grid-template-columns:minmax(0,1fr)}.history-reactor .hr-visual{width:100%;border-right:0;border-bottom:3px solid #080e15}.history-reactor .hr-visual svg{max-height:180px}.history-reactor .hr-copy{padding:18px}.hr-eras{grid-template-columns:repeat(3,minmax(0,1fr))}.hr-heading{flex-wrap:wrap}}@media(max-width:420px){.history-reactor{padding:12px}.hr-eras{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-copy .hr-controls{display:grid;grid-template-columns:1fr}.hr-tape-readout{grid-column:1/-1}.hr-project{padding:12px}}

.history-reactor>.hr-project{width:100%;margin-top:16px;padding:18px 22px;background:#142128}.history-reactor>.hr-project>summary{padding:8px 0;border-bottom:0;background:none}.history-reactor>.hr-project[open]>summary{margin-bottom:18px}.history-reactor>.hr-project>p{max-width:85ch}.history-reactor>.hr-project textarea{max-width:850px}.history-reactor .hr-visual svg{max-height:210px}.history-reactor .hr-visual{position:sticky;top:16px}@media(max-width:850px){.history-reactor .hr-visual{position:static}.history-reactor>.hr-project{padding:16px}.history-reactor .hr-visual svg{max-height:150px}}

/* Explicit ink for light launch/cards and dark navigation controls. */
body.studio .dc-launch strong{color:#080e15}
body.studio .lg-card .history-trace{color:#17354a}
body.studio.time-lab .studio-header nav a{color:#edf4dd!important}
body.studio.time-lab .motion-toggle{color:#edf4dd}
