@font-face{font-family:'Course Math';src:url('../shapley/fonts/STIXTwoMath-Regular.ttf') format('truetype');font-display:swap}
:root{--ink:#242424;--blue:#234e70;--rust:#a54f32;--teal:#007f73;--muted:#606060;--rule:#767676;--light-rule:#ddd;--paper:#fff;--sans:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--serif:Georgia,'Times New Roman',serif;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:74px}body{margin:0;background:var(--paper);color:var(--ink);font:1.125rem/1.65 var(--serif)}a{color:var(--blue);text-underline-offset:.2em}button,input,select{font:inherit}button,select{min-height:42px;border:1px solid var(--rule);background:#fff;color:var(--ink);border-radius:3px;padding:.4rem .8rem}button{cursor:pointer}button:hover{background:#f1f5f7}button:disabled{opacity:.4;cursor:default}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:4px}[hidden]{display:none!important}h1,h2,h3{font-weight:400;line-height:1.14;letter-spacing:-.025em}p{margin:0 0 1.2em}.math,math{font-family:'Course Math','Cambria Math',math}.math{white-space:normal}sub,sup{line-height:0}.quiet{color:var(--muted);font-size:1rem}.equation{font-size:1.5rem;line-height:1.6;margin:1.2em 0}.equation math{font-size:1.5rem}.skip-link{position:fixed;left:12px;top:-100px;padding:10px;background:white;z-index:100}.skip-link:focus{top:8px}
.masthead{height:64px;padding:0 4vw;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--light-rule);position:sticky;top:0;background:#fffffff5;z-index:40;font:14px/1.3 var(--sans)}.masthead>a{text-decoration:none;color:var(--ink)}.masthead nav{display:flex;gap:24px}.masthead nav a{text-decoration:none}.reading-progress{position:fixed;top:63px;left:0;right:0;height:2px;z-index:41}.reading-progress span{display:block;width:0;height:100%;background:var(--blue)}
.title-page{min-height:calc(100svh - 64px);padding:40px 24px 46px;display:grid;place-items:center;text-align:center}.title-content{max-width:1000px;width:100%}.eyebrow{font:12px/1.5 var(--sans);letter-spacing:.13em;color:var(--muted);margin:0 0 18px}.title-page h1{font-size:clamp(42px,5vw,70px);line-height:1.05;margin:0 0 15px;letter-spacing:-.035em}.title-subtitle{font-size:clamp(18px,2vw,23px);margin:0 0 10px;color:var(--muted)}.title-art{display:block;width:auto;max-width:min(630px,100%);height:auto;max-height:37svh;object-fit:contain;margin:20px auto 8px}.start-link{display:inline-flex;align-items:center;min-height:44px;margin-top:10px;font:15px/1.5 var(--sans);padding:6px}
.story-layout{max-width:1500px;margin:auto;padding:0 4vw;display:grid;grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr);gap:5vw}.stage-shell{grid-column:2;grid-row:1;position:sticky;top:64px;height:calc(100svh - 64px);align-self:start;display:flex;flex-direction:column;min-width:0;padding:24px 0 18px;background:#fff}.stage-top{display:flex;justify-content:space-between;gap:16px;font:13px/1.5 var(--sans);color:var(--muted);padding-bottom:10px;border-bottom:1px solid var(--light-rule)}.visual-area{position:relative;flex:1;min-height:160px;display:flex;align-items:center;justify-content:center;isolation:isolate}.visual-area svg{display:block;width:100%;height:100%;overflow:visible}.data-intro{position:absolute;left:7%;right:7%;top:50%;transform:translateY(-50%);background:#fff}.data-intro table{border-collapse:collapse;width:100%;font:16px/1.5 var(--sans);font-variant-numeric:tabular-nums}.data-intro caption{font:22px/1.4 var(--serif);text-align:left;padding-bottom:26px}.data-intro th,.data-intro td{padding:16px 8px;border-bottom:1px solid var(--light-rule);text-align:right;font-weight:400}.data-intro th:first-child{text-align:left}.data-intro thead th{font-size:13px;color:var(--muted);border-bottom:1px solid var(--rule)}.vector-label{font:14px/1.5 var(--sans);text-align:center;color:var(--muted);margin:26px 0 6px}.vector-values{font-size:30px;text-align:center}.vector-readout{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;min-height:55px;padding:12px 0;border-top:1px solid var(--light-rule);font:14px/1.5 var(--sans);font-variant-numeric:tabular-nums}.vector-readout .value{display:block;font-family:'Course Math',math;font-size:20px;color:var(--ink)}.vector-readout .readout-label{font-size:12px;color:var(--muted)}.stage-caption{font:14px/1.5 var(--sans);color:var(--muted);min-height:44px;margin:12px 0}.stage-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--light-rule);font:13px/1.4 var(--sans)}.stage-nav span{color:var(--muted);text-align:center;font-size:12px}.stage-nav button{font:14px/1.4 var(--sans);min-width:78px}
.narrative{grid-column:1;grid-row:1;min-width:0}.step{min-height:calc(112svh - 64px);display:flex;align-items:center;padding:75px 0}.step>div{max-width:430px}.step h2{font-size:clamp(32px,3.1vw,44px);margin:0 0 24px}.step-number{font:12px/1.5 var(--sans);letter-spacing:.08em;color:var(--blue);margin-bottom:20px}.step p{line-height:1.65}.controls{font:14px/1.5 var(--sans);padding:8px 0;border-top:1px solid var(--light-rule)}.controls label{display:flex;align-items:center;justify-content:space-between;gap:12px}.controls output{font-variant-numeric:tabular-nums;color:var(--blue)}.controls input[type=range]{width:100%;min-height:26px;accent-color:var(--blue);margin:0}.controls .rate-label{margin-top:4px;justify-content:flex-start}.controls select{font-size:14px;min-height:34px;padding:3px 9px}.angle-controls{display:grid;grid-template-columns:1fr 1fr;gap:18px}
#space text{font-family:var(--sans);fill:var(--ink);font-size:14px}#space text.math-label{font-family:'Course Math',math;font-size:19px}#space .axis-label{font-size:13px;fill:var(--muted)}#space .point-label{paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round}#space .small-label{font-size:12px;fill:var(--muted)}#space .diagram-title{font-family:var(--serif);font-size:22px}#space .plot-background{fill:#fff}.afterword{max-width:810px;margin:40px auto 0;padding:80px 28px;border-top:1px solid var(--rule)}.afterword h2{font-size:clamp(32px,4vw,43px);margin:0 0 30px;max-width:24ch}.afterword p{margin:0 0 23px}.xgb-equation{margin:28px 0;font-size:1.65rem;line-height:1.5}.equation-note{display:block;font:14px/1.5 var(--sans);color:var(--muted);margin-top:12px}.afterword details{border-top:1px solid var(--light-rule);padding:18px 0}.afterword summary{font:16px/1.5 var(--sans);cursor:pointer;min-height:32px}.afterword details p{margin:20px 0 4px}.sources{margin-top:42px}.sources h3{font-size:24px}.sources p{font-size:16px}footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;border-top:1px solid var(--light-rule);padding:24px 4vw;font:14px/1.5 var(--sans)}.no-script{padding:24px;max-width:800px;margin:auto}
@media(max-width:800px){html{scroll-padding-top:60px}.masthead{height:56px;padding:0 20px}.masthead>a span{display:none}.masthead nav{gap:18px}.reading-progress{top:55px}.title-page{min-height:calc(100svh - 56px);padding:32px 22px}.title-page h1{font-size:clamp(40px,10vw,60px)}.title-art{max-height:34svh;max-width:100%}.eyebrow{font-size:11px}.story-layout{display:block;padding:0 22px}.stage-shell{top:56px;height:47svh;min-height:335px;max-height:480px;padding:12px 0 8px;z-index:20;border-bottom:1px solid var(--rule)}.stage-top{font-size:12px;padding-bottom:5px}.visual-area{min-height:110px}.data-intro{left:6%;right:6%}.data-intro caption{font-size:18px;padding-bottom:8px}.data-intro th,.data-intro td{padding:6px 8px;font-size:14px}.data-intro thead th{font-size:12px}.vector-label{margin:10px 0 0;font-size:12px}.vector-values{font-size:23px}.vector-readout{padding:5px 0;min-height:37px;gap:8px;font-size:12px}.vector-readout .value{font-size:17px}.vector-readout .readout-label{font-size:11px}.stage-caption{font-size:12px;line-height:1.35;min-height:32px;margin:5px 0}.stage-nav{padding-top:5px;font-size:12px}.stage-nav span{display:none}.stage-nav button{min-height:34px;padding:4px 12px;font-size:13px}.step{min-height:75svh;align-items:flex-start;padding:48px 0 65px;scroll-margin-top:calc(47svh + 66px)}.step>div{max-width:620px;margin:auto;width:100%}.step h2{font-size:32px;margin-bottom:20px}.step-number{margin-bottom:12px}.step p{font-size:17px;line-height:1.6}.step .quiet{font-size:15px}.step .equation{font-size:23px}.controls{padding:4px 0;font-size:12px}.controls label{font-size:12px}.controls input[type=range]{min-height:20px}.controls .rate-label{position:absolute;right:0;top:3px;margin:0}.controls select{min-height:26px;font-size:12px}.controls#path-controls{padding-right:150px;position:relative}.angle-controls{gap:14px}.stage-shell:has(#angle-controls:not([hidden])){height:52svh;min-height:380px}.afterword{padding:60px 22px;margin-top:0}.xgb-equation{font-size:23px}.equation math{font-size:23px}#space text{font-size:12px}#space text.math-label{font-size:16px}#space .axis-label{font-size:11px}#space .diagram-title{font-size:18px}#space .small-label{font-size:11px}}
@media(max-width:380px){.masthead{font-size:12px}.story-layout{padding:0 16px}.vector-readout .value{font-size:15px}.stage-top{font-size:11px}.step h2{font-size:29px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{.masthead,.stage-shell,.reading-progress,.start-link,.skip-link{display:none}.title-page{min-height:0;padding:20px}.title-page h1{font-size:38px}.title-art{max-height:200px}.story-layout{display:block;max-width:760px}.step{min-height:0;padding:24px 0;break-inside:avoid}.step>div{max-width:none}.step h2{font-size:26px}.afterword{padding-top:36px}.afterword details{display:block}.afterword details>*{display:block}footer{font-size:12px}}
@media(max-width:800px){.stage-shell{height:49svh;min-height:365px;max-height:none}.stage-shell[data-scene="0"]{min-height:400px}.stage-shell[data-scene="9"],.stage-shell[data-scene="10"]{height:55svh;min-height:410px}.vector-readout>div{min-width:0}.vector-readout .value{font-size:16px}.stage-nav button{min-height:40px}.controls input[type=range]{min-height:30px}.controls select{min-height:32px}.data-intro .vector-label{display:none}.data-intro .vector-values{margin-top:8px}.stage-shell[data-scene="9"] .vector-readout>div:nth-child(2){display:none}}
@media(max-width:380px){.vector-readout .value{font-size:14px}.vector-readout{gap:5px}.controls#path-controls{padding-right:136px}.controls .rate-label{gap:6px}}
@media(max-width:540px){.masthead nav{gap:12px;font-size:12px}.masthead{padding:0 16px;gap:10px}.masthead nav a{white-space:nowrap}}
