:root {
  --ink: #151615;
  --paper: #f3f2ee;
  --muted: #6f716b;
  --line: rgba(21, 22, 21, .2);
  --font: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #655b39; outline-offset: 5px; }
button { -webkit-tap-highlight-color: transparent; }
button, a, input { touch-action: manipulation; }
#world { position: fixed; inset: 0; z-index: 0; }
#world canvas { display: block; width: 100%; height: 100%; }
.reading-wash { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(243,242,238,.96) 0%, rgba(243,242,238,.88) 27%, rgba(243,242,238,.34) 43%, rgba(243,242,238,0) 57%); transition: opacity .5s ease; }
body.spirit-follow .reading-wash { opacity: .3; }
.masthead { position: fixed; z-index: 3; top: 34px; left: 44px; right: 44px; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.wordmark { font-size: 13px; line-height: 1.25; font-weight: 800; letter-spacing: .14em; color: var(--ink); text-decoration: none; pointer-events: auto; }
.wordmark span { display: block; font-size: 9px; font-weight: 500; letter-spacing: .16em; margin-top: 8px; color: var(--muted); }
.session-label { font-size: 10px; letter-spacing: .15em; font-weight: 700; text-align: right; line-height: 1.6; }
.session-label span { display: block; font-size: 9px; color: var(--muted); font-weight: 500; }
.slide-copy { position: absolute; z-index: 2; left: 6%; top: 50%; width: 37%; max-width: 540px; transform: translateY(-54%); pointer-events: none; transition: opacity .35s ease, transform .55s ease; }
.kicker, .small-label { font-size: 10px; line-height: 1.5; letter-spacing: .2em; font-weight: 700; }
.kicker { margin: 0 0 25px; color: #676961; }
h1 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: clamp(48px, 5.5vw, 100px); line-height: .94; font-weight: 900; letter-spacing: -.065em; white-space: pre-line; }
.description { width: 94%; max-width: 390px; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.6; margin: 28px 0 0; color: #555851; }
.slide-tag { font-size: 9px; line-height: 1.65; font-weight: 700; letter-spacing: .14em; margin: 24px 0 0; max-width: 430px; }
.slide-tag::before { content: ""; display: block; width: 29px; height: 2px; background: var(--ink); margin-bottom: 13px; }
.stage-footer { position: fixed; z-index: 4; left: 44px; right: 44px; bottom: 20px; }
.stage-footer::before { content: ""; position: absolute; z-index: -1; inset: -5px -22px -20px; pointer-events: none; background: linear-gradient(180deg, rgba(243,242,238,0), rgba(243,242,238,.94) 35%); }
.timeline-row { height: 45px; display: flex; gap: 26px; align-items: center; border-bottom: 1px solid var(--line); }
.counter { flex: 0 0 47px; font-size: 11px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.timeline { display: flex; gap: 7px; flex: 1; height: 100%; align-items: center; }
.timeline button { position: relative; display: block; height: 22px; padding: 0; min-width: 8px; flex: 1; border: 0; border-radius: 0; background: transparent; }
.timeline button::before { content: ""; display: block; height: 2px; width: 100%; background: #b7b8b0; transition: height .2s, background .2s; }
.timeline button:hover::before { height: 4px; background: #6a6c65; }
.timeline button.active::before, .timeline button[aria-current="step"]::before, .timeline button[aria-current="true"]::before { height: 4px; background: var(--ink); }
.navigation { display: flex; gap: 10px; }
.arrow-button { display: grid; place-items: center; padding: 0; width: 34px; height: 34px; border: 1px solid #8f9188; border-radius: 50%; background: rgba(243,242,238,.8); font-family: Arial, sans-serif; font-size: 20px; line-height: 1; transition: color .2s, background .2s; }
.arrow-button:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.arrow-button:disabled { opacity: .3; cursor: default; }
.tools-row { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 500; color: #565950; white-space: nowrap; }
.live-dot { display: inline-block; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #647658; box-shadow: 0 0 0 3px rgba(100,118,88,.08); }
.status-divider { color: #a2a49b; margin: 0 2px; }
.tools { display: flex; gap: 20px; align-items: center; }
.tools button { border: 0; background: transparent; font-size: 10px; font-weight: 600; padding: 7px 0; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.tools button:hover, .tools button[aria-expanded="true"], .tools button[aria-pressed="true"] { color: #756843; }
kbd, .keycap { font-family: var(--font); font-size: 9px; color: #818378; display: inline-flex; min-width: 17px; height: 17px; padding: 1px 3px; justify-content: center; align-items: center; border: 1px solid #c5c7bd; border-radius: 3px; line-height: 1; }
.credits-row { display: flex; justify-content: space-between; gap: 16px; font-size: 8px; letter-spacing: .08em; line-height: 1.5; color: #74776c; }
.credits-row b { padding: 0 4px; font-weight: 400; }
.shader-panel, .dynamics-panel { position: fixed; z-index: 5; right: 44px; top: 115px; width: min(390px, calc(100vw - 88px)); padding: 25px; background: rgba(246,246,241,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(21,22,21,.17); box-shadow: 0 20px 70px rgba(29,32,23,.08); max-height: calc(100vh - 275px); overflow: auto; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.small-label { font-size: 9px; color: #6c6f62; }
.shader-panel h2, .dynamics-panel h2 { font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.04em; margin: 20px 0 18px; }
.shader-panel pre { background: rgba(217,220,207,.4); margin: 0; padding: 17px; overflow: auto; border-left: 2px solid #757c63; }
.shader-panel code { font-family: Consolas, "Courier New", monospace; font-size: 11px; line-height: 1.75; color: #3d4834; white-space: pre-wrap; word-break: break-word; }
.panel-footnote { margin: 18px 0 0; color: #686d5f; font-size: 11px; line-height: 1.5; }
.dynamics-panel { top: auto; bottom: 150px; width: 310px; }
.range-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-top: 24px; gap: 12px; }
.range-hint { font-size: 8px; color: #86897e; letter-spacing: .04em; }
input[type="range"] { width: 100%; margin: 13px 0 0; height: 16px; accent-color: #343a2c; cursor: pointer; }
.check-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; border-top: 1px solid rgba(21,22,21,.11); padding-top: 15px; margin-top: 16px; }
.check-row input { width: 16px; height: 16px; margin: 0; accent-color: #343a2c; }
.dynamics-help { font-size: 10px; color: #74786b; margin: 20px 0 0; line-height: 1.6; }
.error-state { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 15px; padding: 12vw; text-align: center; background: rgba(243,242,238,.97); font-size: 17px; line-height: 1.65; }
body.focus-mode .slide-copy, body.focus-mode .masthead, body.focus-mode .credits-row, body.focus-mode .reading-wash { opacity: 0; pointer-events: none; }
body.focus-mode .slide-copy { transform: translateY(-50%); }
body.focus-mode .stage-footer { opacity: .5; transition: opacity .2s; }
body.focus-mode .stage-footer:hover, body.focus-mode .stage-footer:focus-within { opacity: 1; }
body.focus-mode .shader-panel { display: none !important; }
@media (min-width: 1700px) { .slide-copy { left: 7%; } .masthead, .stage-footer { left: 60px; right: 60px; } }
@media (max-height: 750px) and (min-width: 761px) { .slide-copy { top: 47%; } h1 { font-size: clamp(43px, 5.3vw, 75px); } .kicker { margin-bottom: 17px; } .description { margin-top: 21px; font-size: 14px; } .slide-tag { margin-top: 18px; } .masthead { top: 24px; } .shader-panel { top: 90px; padding: 20px; } }
@media (max-width: 1000px) { .masthead, .stage-footer { left: 28px; right: 28px; } .slide-copy { left: 5%; width: 40%; } h1 { font-size: clamp(42px, 6vw, 65px); } .description { font-size: 14px; } .tools { gap: 14px; } .status-line { font-size: 9px; gap: 6px; } .credits-row { font-size: 7px; } .shader-panel, .dynamics-panel { right: 28px; } }
@media (max-width: 760px) { .masthead { top: 22px; left: 23px; right: 23px; } .wordmark { font-size: 11px; } .wordmark span { font-size: 8px; margin-top: 6px; } .session-label { font-size: 8px; } .session-label span { font-size: 7px; } .reading-wash { background: linear-gradient(180deg, rgba(243,242,238,.92) 0%, rgba(243,242,238,.86) 22%, rgba(243,242,238,.13) 50%, transparent 67%); } .slide-copy { top: 105px; left: 24px; right: 24px; width: auto; max-width: 540px; transform: none; } .kicker { font-size: 9px; margin-bottom: 14px; } h1 { font-size: clamp(43px, 8.7vw, 63px); line-height: .94; max-width: 90%; } .description { font-size: 12px; line-height: 1.5; max-width: 340px; margin-top: 15px; width: 87%; } .slide-tag { font-size: 7px; margin-top: 14px; max-width: 320px; } .slide-tag::before { display: none; } .stage-footer { left: 22px; right: 22px; bottom: 16px; } .timeline-row { height: 42px; gap: 13px; } .counter { font-size: 10px; flex-basis: 43px; } .timeline { gap: 4px; } .navigation { gap: 7px; } .arrow-button { width: 30px; height: 30px; font-size: 19px; } .tools-row { flex-direction: column; align-items: stretch; gap: 1px; padding: 10px 0 9px; } .status-line { justify-content: center; font-size: 8px; gap: 6px; } .tools { justify-content: center; gap: 24px; } .tools button { font-size: 10px; padding-top: 10px; } .tools kbd { display: none; } .credits-row { justify-content: center; text-align: center; font-size: 6px; } .credits-row span:last-child { display: none; } .shader-panel, .dynamics-panel { top: auto; right: 22px; bottom: 155px; width: calc(100vw - 44px); padding: 20px; max-height: calc(100vh - 245px); } .shader-panel h2 { font-size: 19px; } .shader-panel code { font-size: 10px; }  body.focus-mode .slide-copy { transform: translateY(-8px); } }
@media (max-height: 620px) and (max-width: 760px) { .slide-copy { top: 82px; width: 47%; } h1 { font-size: 34px; } .description { font-size: 10px; line-height: 1.4; margin-top: 10px; width: 100%; } .kicker { font-size: 8px; margin-bottom: 10px; } .slide-tag { font-size: 6px; margin-top: 10px; } .stage-footer { bottom: 10px; } .tools-row { flex-direction: row; justify-content: space-between; align-items: center; padding: 4px 0; } .tools { gap: 14px; } .tools button { padding: 8px 0; font-size: 9px; } .credits-row { display: none; } .reading-wash { background: linear-gradient(90deg, rgba(243,242,238,.95) 0%, rgba(243,242,238,.85) 28%, transparent 64%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }

/* A manually paced classroom layer; Spirit continues behind the instructions. */
.workshop-panel[hidden] { display: none; }
.workshop-panel { position: fixed; z-index: 7; inset: 0 auto 0 0; width: 44%; min-width: 490px; padding: 95px 28px 148px 44px; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border-right: 1px solid var(--line); color: var(--ink); font-size: 18px; line-height: 1.5; }
.workshop-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.workshop-progress { margin: 3px 0 11px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #5c6056; }
.workshop-heading button { flex: 0 0 auto; border: 0; background: transparent; font-size: 13px; padding: 0 0 8px 8px; }
.workshop-heading button span { font-size: 23px; line-height: 1; vertical-align: -2px; margin-left: 5px; }
.workshop-panel h2 { flex: 0 0 auto; margin: 0; font-size: 32px; letter-spacing: -.045em; line-height: 1.05; }
.workshop-heading { flex: 0 0 auto; }
.workshop-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; margin-top: 12px; padding-right: 9px; border-bottom: 1px solid var(--line); }
.workshop-goal { margin: 0 0 18px; color: #53594e; font-size: 19px; line-height: 1.5; }
.workshop-instructions { padding-left: 25px; margin: 0 0 24px; }
.workshop-instructions li { padding-left: 6px; margin-bottom: 15px; }
.workshop-instructions li::marker { font-weight: 700; color: #526448; }
.workshop-checkpoint { border-left: 3px solid #728262; padding: 3px 0 3px 16px; margin: 22px 0; }
.workshop-checkpoint strong { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.workshop-checkpoint p { margin: 6px 0 0; }
.workshop-hint { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 23px; }
.workshop-hint summary { cursor: pointer; font-size: 18px; font-weight: 600; }
.workshop-hint p { margin: 13px 0 0; }
.workshop-panel a { color: #344f7a; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.workshop-resources { display: flex; flex-wrap: wrap; gap: 11px 22px; margin: 22px 0; font-size: 16px; font-weight: 600; }
.workshop-control-bar { flex: 0 0 auto; padding-top: 12px; background: var(--paper); }
.workshop-clock { padding: 0; margin: 0; }
.workshop-clock-face { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.workshop-time { font-size: 31px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1; }
.workshop-clock-buttons { display: flex; gap: 9px; }
.workshop-panel button { border-radius: 0; }
.workshop-clock-buttons button, .workshop-step-navigation button { border: 1px solid #92978b; background: transparent; padding: 10px 13px; font-size: 15px; font-weight: 600; min-height: 43px; }
.workshop-clock-buttons button:first-child { background: #273123; color: #fff; border-color: #273123; }
.workshop-panel button:hover { filter: brightness(.84); }
.workshop-panel button:disabled { opacity: .4; cursor: default; filter: none; }
#workshopTimerStatus { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #5c6254; }
.workshop-step-navigation { margin-top: 10px; display: flex; justify-content: space-between; gap: 14px; }
.workshop-shortcuts { font-size: 10px; color: #747b6b; margin: 7px 0 0; }
body.workshop-open .slide-copy { visibility: hidden; }
body.workshop-open .reading-wash { opacity: 0 !important; }
body.workshop-open .shader-panel, body.workshop-open .dynamics-panel { display: none !important; }
body.workshop-open .masthead { z-index: 8; }
body.workshop-open .stage-footer { z-index: 9; opacity: 1; }
.tools { flex-wrap: wrap; justify-content: flex-end; gap: 5px 18px; }
@media (min-width: 1700px) { .workshop-panel { padding-left: 60px; } }
@media (max-width: 1100px) { .workshop-panel { padding-left: 28px; min-width: 460px; } .tools-row { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; } .status-line { padding-top: 6px; } }
@media (max-width: 760px) { .workshop-panel { width: 100%; min-width: 0; inset: 0; padding: 91px 23px 195px; border-right: 0; } .workshop-panel h2 { font-size: 29px; } .workshop-goal { font-size: 18px; } .workshop-instructions { font-size: 18px; line-height: 1.5; } .workshop-heading { gap: 10px; } .workshop-progress { font-size: 10px; } .workshop-shortcuts { display: none; } .workshop-clock-buttons button, .workshop-step-navigation button { font-size: 13px; padding: 9px 11px; } .tools { justify-content: center; gap: 2px 20px; } .tools-row { align-items: stretch; gap: 3px; padding: 10px 0 9px; } .status-line { padding-top: 0; } body.workshop-open .stage-footer::before { background: var(--paper); border-top: 1px solid var(--line); inset: -5px -23px -20px; } }
@media (max-height: 620px) and (max-width: 760px) { .workshop-panel { padding-top: 86px; padding-bottom: 155px; } .tools-row { align-items: center; } .tools { gap: 2px 13px; } .workshop-panel h2 { font-size: 28px; } }

@media (min-width:761px) and (max-height:800px){.workshop-panel{width:50%;min-width:560px;padding-top:82px;padding-bottom:133px}.workshop-instructions{line-height:1.4}.workshop-instructions li{margin-bottom:10px}.workshop-goal{font-size:18px;margin-bottom:12px}}
