/* y-yin.io: the upstream @import pulled these two families from Google's CDN.
   Self-hosted here so the page makes no third-party request. */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('fonts/dm-sans.woff2') format('woff2')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400 600;font-display:swap;src:url('fonts/space-grotesk.woff2') format('woff2')}

:root{color-scheme:dark;--bg:#000000;--surface:#080808;--text:#eaeaea;--muted:#9a9a9a;--line:#252525;--old:#edb565;--new:#65d9ce;--gutter:24px;--control:40px}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{background:var(--bg);color:var(--text);font:14px 'DM Sans',sans-serif}button,input,select{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--control);background:transparent;border:1px solid var(--line);border-radius:8px;padding:0 12px;color:var(--text);cursor:pointer;transition:background .16s,border-color .16s,color .16s}button:hover{background:#1b1b1b;border-color:#5a5a5a}button:disabled{opacity:.3;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--new);outline-offset:3px}[hidden]{display:none!important}.icon{display:block;width:19px;height:19px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.icon-button{width:var(--control);padding:0;flex:0 0 auto}.quiet-button{border-color:transparent;color:#b4b4b4}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

.app-header{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 var(--gutter);border-bottom:1px solid var(--line);gap:20px;background:#040404}.app-header h1{font:500 17px 'Space Grotesk',sans-serif;white-space:nowrap;margin:0;letter-spacing:-.35px}.app-header h1 span{color:#7d7d7d;padding:0 4px}.header-actions{display:flex;align-items:center;gap:8px}.story-button{background:#e7e7e7;border-color:#e7e7e7;color:#101010;font-weight:600;padding:0 14px}.story-button:hover{background:#fbfbfb;border-color:#fbfbfb}.story-button .icon{width:17px;height:17px}.story-button[aria-pressed="true"]{background:transparent;border-color:#6a6a6a;color:#dcdcdc}#story-duration{padding-left:9px;border-left:1px solid #b7b7b7;color:#595959;font-size:12px;font-weight:500;white-space:nowrap}
main{height:calc(100dvh - 68px);display:flex;flex-direction:column;min-height:0}.models{height:84px;flex:0 0 auto;display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:10px var(--gutter) 0;z-index:4;pointer-events:none}.models button{min-width:0;min-height:0;display:grid;align-content:center;gap:3px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;pointer-events:auto;padding:0 6px 10px;cursor:pointer}.models button:first-child{color:var(--old)}.models button:last-child{color:var(--new)}.models strong{font:500 21px 'Space Grotesk',sans-serif;letter-spacing:-.3px}.year{color:#868686;font-size:12px;line-height:1.15;letter-spacing:1px}.count{color:#a3a3a3;font-size:12px;line-height:1.2}.is-story .models button{opacity:.45}.is-story .models .active{opacity:1;border-bottom-color:currentColor}
#scene-wrap{position:relative;min-height:0;flex:1;overflow:hidden;background:radial-gradient(ellipse at 50% 100%,#1d1d1d 0,transparent 66%)}#scene{width:100%;height:100%;display:block}#labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}#loading{position:absolute;inset:0;display:grid;place-items:center;background:var(--bg);z-index:10;color:#b0b0b0}.label{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;text-align:center;pointer-events:none;background:transparent;color:#d9d9d9;line-height:1.2;padding:3px 4px;border:0;border-radius:0;font-size:12px;min-height:0;transition:opacity .12s;text-shadow:0 1px 3px #000000,0 0 6px #000000}.label.component{pointer-events:auto;cursor:pointer;white-space:normal;line-height:1.2;font-size:14px;font-weight:500}.label.component:hover{background:transparent;color:#fff}.label.small{color:#989898}.label.callout{text-align:left;transform:translateY(-50%);padding:3px 0;color:#cdcdcd}.label.callout[data-side="left"]{text-align:right;transform:translate(-100%,-50%)}.label.callout:hover{color:var(--component-colour)}.label.callout:focus-visible{outline:1px solid var(--component-colour);outline-offset:5px}.label-guides{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.label-guides path{fill:none;stroke-width:1;stroke-opacity:.4;vector-effect:non-scaling-stroke;transition:stroke-opacity .15s}.label-guides path.active{stroke-opacity:1;stroke-width:1.5}.label.metric{font:500 21px 'Space Grotesk',sans-serif;white-space:normal;width:max-content;max-width:290px;padding:6px 8px;text-shadow:0 1px 3px #000000,0 0 7px #000000}.label.metric small{display:block;color:#b7b7b7;font:13px/1.4 'DM Sans',sans-serif;margin-top:4px}.label.original{color:var(--old)}.label.modern{color:var(--new)}.selection{display:none!important;position:absolute;top:12px;left:var(--gutter);z-index:7;max-width:calc(100% - 48px);min-height:34px;background:#0a0a0acf;border-color:#313131;color:#b6b6b6;gap:12px;padding:0 10px;font-size:12px;white-space:nowrap;backdrop-filter:blur(12px)}.selection .icon{width:14px;height:14px}.is-story .selection{display:none!important}

.explore-controls{height:68px;flex:0 0 auto;display:flex;align-items:center;gap:24px;padding:0 var(--gutter);border-top:1px solid var(--line);background:#040404}#play{color:var(--new);border-color:#404040}.context{display:flex;align-items:center;gap:14px;min-width:0;flex:1;color:#a3a3a3}.context input{display:block;flex:1;min-width:60px;max-width:320px;height:24px;margin:0;accent-color:var(--new);cursor:pointer}.context output{min-width:84px;font-variant-numeric:tabular-nums;color:#dfdfdf}.pace{margin-left:auto}select{height:var(--control);min-width:68px;background:#0e0e0e;border:1px solid var(--line);border-radius:8px;padding:0 10px;color:#d1d1d1;font-size:14px;cursor:pointer}

.story-panel{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"copy controls" "chapters time";column-gap:32px;row-gap:15px;align-items:center;min-height:178px;padding:18px var(--gutter) 16px;border-top:1px solid #373737;background:#080808}.story-copy{grid-area:copy;min-width:0}.story-kicker{margin:0 0 6px;color:#ababab;font-size:12px;font-weight:500;letter-spacing:.07em;text-transform:uppercase}.story-copy h2{font:500 clamp(18px,2vw,24px)/1.22 'Space Grotesk',sans-serif;letter-spacing:-.35px;margin:0 0 6px}.story-copy>p:last-child{font-size:16px;line-height:1.45;color:#bcbcbc;max-width:830px;min-height:2.9em;margin:0}.story-controls{grid-area:controls;display:flex;align-items:center;gap:6px}.story-controls button{border:0;color:#b6b6b6}.story-controls #story-play{width:44px;height:44px;border:1px solid #585858;color:#dbdbdb;background:#1c1c1c}.story-controls button:hover{background:#282828}.story-chapters{grid-area:chapters;display:grid;grid-template-columns:repeat(8,1fr);gap:5px;min-width:0}.story-chapters button{position:relative;min-height:22px;padding:0;border:0;border-radius:2px;background:transparent}.story-chapters button:before,.story-chapters button:after{content:'';position:absolute;left:0;right:0;top:9px;height:3px;background:#313131;border-radius:2px}.story-chapters button:after{right:auto;width:calc(var(--progress,0)*100%);background:#b6b6b6}.story-chapters button[aria-current="step"]:before{background:#616161}.story-chapters button:hover:before{background:#787878}.story-time{grid-area:time;color:#8d8d8d;font-size:12px;font-variant-numeric:tabular-nums;text-align:center;min-width:128px}

dialog{background:#0c0c0c;color:#e0e0e0;border:1px solid #474747;border-radius:12px;max-width:800px;width:calc(100% - 32px);padding:24px;max-height:88dvh}dialog::backdrop{background:#000b;backdrop-filter:blur(8px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-top h2{font-size:23px;font-weight:500;margin:0}.dialog-top button{border:0}#source-content{font-size:16px;color:#b5b5b5;line-height:1.7}#source-content h3{color:#e9e9e9;font-size:17px;font-weight:500;margin:25px 0 8px}#source-content p{margin:0}#source-content a{color:#bebebe}#source-content table{width:100%;border-collapse:collapse;font-size:14px}td,th{text-align:left;border-bottom:1px solid var(--line);padding:9px 6px;vertical-align:top}th{font-weight:500;color:#e9e9e9}

@media(max-width:979px){.models button{opacity:.45}.models .active{opacity:1;border-bottom-color:currentColor}.models{gap:14px}.models strong{font-size:20px}}
@media(max-width:760px){:root{--gutter:18px}.app-header{height:108px;flex-wrap:wrap;align-content:center;row-gap:9px;padding-top:9px;padding-bottom:9px}.app-header h1{width:100%;font-size:16px}.header-actions{width:100%;justify-content:flex-end;gap:8px}#home{margin-right:auto}#sources{position:absolute;top:6px;right:12px}.app-header h1{padding-right:34px}main{height:calc(100dvh - 108px)}.models{height:76px;padding-top:9px}.models strong{font-size:18px}.story-panel{column-gap:16px;row-gap:10px;min-height:196px;padding-top:15px;padding-bottom:12px}.story-copy>p:last-child{min-height:4.35em}.story-controls{gap:2px}.story-controls button{width:34px}.story-time{min-width:112px}.story-copy h2{font-size:20px}.explore-controls{gap:14px}}
@media(max-width:520px){:root{--gutter:14px;--control:40px}.app-header{height:104px}.app-header h1{font-size:15px;letter-spacing:-.4px}main{height:calc(100dvh - 104px)}.models{height:72px;gap:8px}.models strong{font-size:15px;letter-spacing:-.35px}.models .count{font-size:12px}.models .year{font-size:12px}.models button{padding-left:0;padding-right:0}.explore-controls{height:62px;gap:10px}.context{gap:8px;font-size:13px}.context input{min-width:48px}.context output{min-width:66px;font-size:12px}.pace select{min-width:57px;font-size:13px;padding:0 6px}.label.component{font-size:13px}.label.metric{font-size:18px;max-width:250px}.label.metric small{font-size:12px}.selection{top:9px;font-size:12px;max-width:calc(100% - 28px)}.story-panel{grid-template-areas:"copy copy" "chapters chapters" "controls time";row-gap:3px;min-height:222px;padding-top:12px;padding-bottom:max(9px,env(safe-area-inset-bottom));column-gap:12px}.story-copy h2{font-size:20px;max-width:100%}.story-copy>p:last-child{min-height:4.35em;font-size:15px;line-height:1.45}.story-kicker{margin-bottom:5px}.story-controls{justify-self:start;gap:8px}.story-controls button{width:40px}.story-controls #story-play{width:40px;height:40px}.story-time{text-align:right;min-width:0}.story-chapters{gap:5px}.is-story .label.metric{max-width:220px}.dialog-top h2{font-size:20px}dialog{padding:18px}#source-content table{font-size:12px}td,th{padding:7px 4px}}
@media(max-height:650px) and (min-width:761px){.app-header{height:56px}main{height:calc(100dvh - 56px)}.models{height:66px}.models .year{display:none}.story-panel{min-height:152px;padding-top:12px;padding-bottom:10px;row-gap:6px}.story-copy h2{font-size:20px}.story-copy>p:last-child{font-size:14px;min-height:2.9em}.explore-controls{height:56px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* The guided story uses the scene itself, with only captions and quiet transport. */
.is-story .app-header,.is-story .models{display:none}
.is-story main{height:100dvh}
.is-story #scene-wrap:after{content:'';position:absolute;inset:auto 0 0;height:210px;background:linear-gradient(transparent,#000000d9 60%,#000000f7);pointer-events:none;z-index:8}
.is-story .story-panel{position:absolute;inset:0;display:block;min-height:0;padding:0;border:0;background:none;pointer-events:none;z-index:20}
.is-story .story-copy{position:absolute;left:28px;right:28px;bottom:58px;text-align:center;pointer-events:none}
.is-story .story-kicker{display:none}
.is-story .story-copy h2{font-size:clamp(22px,2.4vw,30px);line-height:1.18;max-width:820px;margin:0 auto 9px;text-shadow:0 2px 8px #000000}
.is-story .story-copy>p:last-child{font-size:17px;line-height:1.45;max-width:680px;min-height:0;margin:0 auto;color:#c3c3c3;text-shadow:0 2px 5px #000000}
.is-story .story-controls{position:absolute;top:18px;right:18px;display:flex;gap:6px;pointer-events:auto}
.is-story .story-controls button,.is-story .story-controls #story-play{width:36px;height:36px;min-height:36px;border:0;border-radius:50%;color:#b0b0b0;background:#04040466}
.is-story .story-controls button:hover{background:#292929;color:#f3f3f3}
.is-story .story-controls .icon{width:17px;height:17px}
.is-story #story-previous,.is-story #story-next,.is-story #story-time{display:none}
.is-story .story-chapters{position:absolute;left:28px;right:28px;bottom:15px;display:grid;gap:4px;pointer-events:auto}
.is-story .story-chapters button{min-height:20px}
.is-story .story-chapters button:before,.is-story .story-chapters button:after{height:2px;top:9px}
.story-models{position:absolute;top:22px;left:0;right:0;display:grid;grid-template-columns:1fr 1fr;gap:0;color:#c3c3c3;font:500 14px/1.3 'DM Sans',sans-serif;text-align:center;pointer-events:none}
.story-models small{display:block;font-size:11px;font-weight:400;letter-spacing:1.1px;margin-bottom:3px;color:#8c8c8c}
.story-models [data-story-model="0"]{color:var(--old)}.story-models [data-story-model="1"]{color:var(--new)}
.is-story .story-models span{opacity:1}
.story-single .story-models{left:24px;right:110px;display:block;text-align:left}
.story-single[data-story-era="0"] [data-story-model="1"],.story-single[data-story-era="1"] [data-story-model="0"]{display:none}
@media(max-width:520px){.is-story .story-copy{left:20px;right:20px;bottom:55px}.is-story .story-copy h2{font-size:23px;max-width:360px;margin-bottom:8px}.is-story .story-copy>p:last-child{font-size:15px;line-height:1.45;max-width:360px;min-height:0}.is-story .story-controls{top:17px;right:13px;gap:4px}.is-story .story-controls button,.is-story .story-controls #story-play{width:36px;height:36px;min-height:36px}.story-single .story-models{left:20px;top:20px;font-size:13px}.is-story .story-chapters{left:20px;right:20px;bottom:15px}.is-story #scene-wrap:after{height:220px}}
@media(max-height:600px){.is-story .story-copy{bottom:36px}.is-story .story-copy h2{font-size:20px;margin-bottom:5px}.is-story .story-copy>p:last-child{font-size:14px;max-width:640px}.is-story .story-models{top:16px}.is-story .story-models small{display:none}.is-story .story-chapters{bottom:8px}.is-story .story-controls{top:9px}.is-story #scene-wrap:after{height:150px}}

@media(max-width:520px){.is-story .story-controls button,.is-story .story-controls #story-play{width:44px;height:44px;min-height:44px}.is-story .story-controls{top:12px;gap:0}}
@media(max-width:360px){.app-header h1{font-size:14px}#story-duration{display:none}#story-toggle-label{white-space:nowrap}.models .count{font-size:10.5px;white-space:nowrap}.context>span{display:none}}
.is-story .label.metric{max-width:min(290px,calc(50vw - 20px))}
@media(max-width:600px){.is-story .story-models{top:64px;font-size:12px;gap:14px;padding:0 10px}.is-story .story-models small{font-size:10px}.is-story .label.metric{font-size:16px;max-width:calc(50vw - 20px);padding:4px}.is-story .label.metric small{font-size:11px;line-height:1.3}.is-story .label.small{font-size:10px}}

/* --- y-yin.io additions: attribution to the original author (see README.md) --- */
.wyn-credit{position:absolute;left:var(--gutter);bottom:10px;z-index:9;margin:0;padding:5px 9px;border:1px solid #313131;border-radius:7px;background:#0a0a0acf;backdrop-filter:blur(12px);color:#9a9a9a;font-size:11px;line-height:1.3;letter-spacing:.1px;max-width:calc(100% - 2*var(--gutter));pointer-events:auto}
.wyn-credit a{color:#d2d2d2;text-decoration:underline;text-underline-offset:2px}
.wyn-credit a:hover{color:#fff}
.wyn-attribution{margin:14px 0 0;padding:12px 14px;border:1px solid #474747;border-radius:9px;background:#070707;color:#b6b6b6;font-size:13px;line-height:1.55}
.wyn-attribution a{color:#eaeaea}
@media(max-width:520px){.wyn-credit{font-size:10px;padding:4px 7px;bottom:8px}}

/* The site nav bar sits above this page, so the viewport it actually gets is
   shorter than 100dvh. sitebar.py publishes the remainder as --wyn-vh; these
   rules opt in. The fallback keeps the page correct standalone (npm-less local
   serving, or the author's own host), where no bar exists. */
main{height:calc(var(--wyn-vh, 100dvh) - 68px)}
.is-story main{height:var(--wyn-vh, 100dvh)}
@media(max-width:760px){main{height:calc(var(--wyn-vh, 100dvh) - 108px)}}
@media(max-width:520px){main{height:calc(var(--wyn-vh, 100dvh) - 104px)}}
@media(max-height:650px) and (min-width:761px){main{height:calc(var(--wyn-vh, 100dvh) - 56px)}}

/* Component explanations (y-yin.io addition — see README.md and annotations.mjs).
   pointer-events:none is load-bearing: this floats over the canvas that owns
   OrbitControls, and anything hit-testable here would eat orbit and zoom. */
.wyn-tip{position:absolute;top:0;left:0;z-index:11;pointer-events:none;max-width:320px;
  padding:11px 13px 9px;border:1px solid #474747;border-radius:10px;
  background:#080808f2;backdrop-filter:blur(14px);box-shadow:0 8px 28px #000000cc;
  will-change:transform}
.wyn-tip h3{margin:0 0 5px;font:500 14px/1.25 'Space Grotesk',sans-serif;
  letter-spacing:-.2px;color:#eaeaea}
.wyn-tip p{margin:0;font-size:12.5px;line-height:1.48;color:#bcbcbc}
.wyn-tip .wyn-tip-note{margin-top:7px;padding-top:7px;border-top:1px solid #252525;
  font-size:11.5px;line-height:1.42;color:#9a9a9a;font-style:italic}
.wyn-tip .wyn-tip-src{margin-top:8px;font-size:10.5px;letter-spacing:.15px;color:#656565}
/* Touch: no hover exists, so the text is pinned to the bottom of the scene for
   whatever component is focused, clear of the credit chip on the left. */
.wyn-tip-pinned{left:auto;right:var(--gutter);bottom:44px;top:auto;max-width:min(330px,calc(100% - 2*var(--gutter)))}
@media(max-width:760px){
  .wyn-tip{max-width:min(300px,calc(100vw - 28px))}
  .wyn-tip-pinned{left:var(--gutter);right:var(--gutter);bottom:48px;max-width:none}
}

/* Pinned explanation panel with narration (y-yin.io addition).
   Unlike .wyn-tip this one IS interactive, so it takes pointer events -- but
   only on itself, so the canvas behind it keeps orbit and zoom everywhere else. */
.wyn-panel{position:absolute;z-index:12;pointer-events:auto;
  left:var(--gutter);right:auto;bottom:44px;width:min(340px,calc(100% - 2*var(--gutter)));
  padding:12px 14px 10px;border:1px solid #474747;border-radius:11px;
  background:#080808f5;backdrop-filter:blur(14px);box-shadow:0 10px 32px #000000d9}
.wyn-panel h3{margin:0 0 5px;font:500 15px/1.25 'Space Grotesk',sans-serif;
  letter-spacing:-.2px;color:#eaeaea}
.wyn-panel p{margin:0;font-size:13px;line-height:1.5;color:#bcbcbc}
.wyn-panel .wyn-tip-note{margin-top:7px;padding-top:7px;border-top:1px solid #252525;
  font-size:11.5px;line-height:1.42;color:#9a9a9a;font-style:italic}
.wyn-panel-foot{display:flex;align-items:center;gap:11px;margin-top:11px;
  padding-top:9px;border-top:1px solid #252525}
.wyn-listen{flex:0 0 auto;min-height:32px;gap:7px;padding:0 11px;border-radius:8px;
  border:1px solid #555555;background:#121212;color:#dcdcdc;font-size:12.5px;font-weight:500}
.wyn-listen:hover{background:#212121;border-color:#747474}
.wyn-listen.is-playing{background:#252525;border-color:#949494;color:#ebebeb}
.wyn-listen .icon{width:15px;height:15px}
.wyn-listen.is-playing .icon{fill:currentColor;stroke:none}
.wyn-panel .wyn-tip-src{font-size:10.5px;line-height:1.35;letter-spacing:.1px;color:#656565;min-width:0}
/* The credit chip owns the bottom-left, so on a wide screen the panel sits above
   it; on a narrow one they stack and the panel clears it entirely. */
@media(min-width:761px){.wyn-panel{bottom:52px}}
@media(max-width:760px){
  .wyn-panel{left:var(--gutter);right:var(--gutter);width:auto;bottom:48px}
  .wyn-panel-foot{flex-wrap:wrap;gap:8px}
}
