@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');
:root{--ink:#f6f8fb;--muted:#aebdcc;--green:#1cefa5;--paper:#07141f;--line:#a6c2d629;--orange:#ef8700;--blue:#2ba8ff;font-family:Roboto,Arial,sans-serif;color:var(--ink);background:#02090f;font-synthesis:none;color-scheme:dark}
*{box-sizing:border-box;letter-spacing:0}body{margin:0;min-height:100svh}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:5px}button{border:1px solid var(--line);background:var(--paper);border-radius:50%;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center}button:hover{background:#e3eee7}button:disabled{opacity:.35;cursor:default}svg.lucide{width:19px;height:19px;stroke-width:1.7}a{color:inherit;text-decoration:none}#europe{position:fixed;inset:0;width:100%;height:100%;z-index:-1}header{height:98px;padding:25px 40px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:20px}.brand-mark{width:40px;height:40px;border:2px solid var(--green);border-radius:50%;display:grid;place-items:center;color:var(--green);font-family:'Space Grotesk',sans-serif}.brand small{display:block;font-size:9px;margin-top:4px;font-weight:600}nav{display:flex;gap:10px}#map-label{position:absolute;top:137px;left:40px;display:grid;gap:7px;pointer-events:none}.eyebrow{font-size:10px;font-weight:700;color:var(--green)}#place{font-family:'Space Grotesk',sans-serif;font-size:31px;font-weight:500}#place-detail{font-size:12px;color:var(--muted)}#scene{position:relative;margin:0 4vw 100px auto;width:min(760px,63vw);min-height:590px;height:calc(100svh - 205px);max-height:830px;border-radius:48% 48% 43% 43% / 45% 43% 48% 48%;background:var(--paper);box-shadow:0 25px 95px #35564c12;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 80px;text-align:center;transition:opacity .32s,transform .6s;isolation:isolate}#scene::before{content:'';position:absolute;inset:-9px;border:1px solid #ffffffa0;border-radius:inherit;pointer-events:none}.scene-kicker{display:flex;gap:9px;align-items:center;font-size:10px;font-weight:700;color:var(--green);text-transform:uppercase}.scene-kicker .number{width:25px;height:25px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center}h1{font-family:'Space Grotesk',sans-serif;font-size:44px;font-weight:500;line-height:1.08;margin:19px 0 15px;max-width:540px}p.lede{max-width:405px;font-size:15px;line-height:1.65;color:var(--muted);margin:0}.visual{width:100%;max-width:430px;margin:25px auto 12px;min-height:140px;display:flex;flex-direction:column;justify-content:center}.scene-note{font-size:11px;line-height:1.5;color:var(--muted);max-width:380px;margin:9px auto 0}.pill{border-radius:20px;background:#e8f2eb;display:inline-flex;gap:8px;align-items:center;padding:7px 11px;font-size:10px;font-weight:600}.dot{width:6px;height:6px;background:var(--green);border-radius:50%}.giant{font-family:'Space Grotesk',sans-serif;font-size:100px;line-height:1;color:var(--green);font-weight:500}.giant span{font-size:21px;vertical-align:top;display:inline-block;padding-top:14px}.visual-caption{font-size:11px;color:var(--muted);margin-top:10px}.intro-rule{width:60px;border-top:1px solid var(--green);margin:18px auto}.intro-meta{display:flex;justify-content:center;gap:25px;font-size:11px}.intro-meta strong{display:block;font-size:17px;margin-bottom:5px}.pin{position:fixed;width:12px;height:12px;background:#fcfdfb;border:2px solid #698e7c;box-shadow:0 0 0 5px #f9fdf860;z-index:1;transition:background .3s}.pin span{position:absolute;left:19px;white-space:nowrap;font-size:10px;font-weight:600;text-shadow:0 1px 4px #fff;pointer-events:none}.pin.active{background:var(--green);border-color:var(--green);box-shadow:0 0 0 7px #18775c20}.pin:hover{background:var(--green)}#pins{position:relative;z-index:0}footer{position:fixed;bottom:28px;left:40px;right:40px;display:flex;align-items:center;justify-content:space-between;gap:24px;z-index:3}.chapter-position{display:flex;gap:17px;font-size:11px;align-items:center;min-width:240px}#position{font-family:'Space Grotesk',sans-serif;color:var(--green)}#chapter-name{color:var(--muted)}#timeline{display:flex;gap:9px;align-items:center}#timeline button{width:8px;height:8px;border:0;background:#b2c4b8;padding:0;position:relative}#timeline button::before{content:'';position:absolute;inset:-10px}#timeline button.active{width:26px;border-radius:6px;background:var(--green)}.navigation{display:flex;gap:10px}.navigation #next{border-radius:30px;width:auto;padding:0 18px;gap:22px;background:var(--ink);color:white;border:0;font-size:12px}.map-credit{position:fixed;bottom:7px;left:40px;font-size:8px;color:var(--muted)}#chapters{position:fixed;z-index:6;right:25px;top:88px;width:340px;max-height:calc(100svh - 110px);overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:20px;box-shadow:0 20px 90px #18342e25}#chapters[hidden]{display:none}.menu-heading{display:flex;align-items:center;justify-content:space-between;font-weight:600;margin-bottom:10px}#chapter-list button{display:flex;width:100%;height:auto;min-height:49px;border:0;border-radius:4px;text-align:left;justify-content:flex-start;gap:15px;background:transparent;padding:9px}#chapter-list button.active{background:#e8f2eb}#chapter-list small{color:var(--muted);display:block;font-size:10px;margin-top:3px}#chapter-list b{font-size:11px;color:var(--green)}#chapter-list span{font-size:13px}#chapters>a{display:flex;justify-content:space-between;font-size:11px;border-top:1px solid var(--line);padding-top:15px;margin-top:15px}body.travelling #scene,body.overview #scene{opacity:0;transform:translateY(25px) scale(.93);pointer-events:none}#travel{position:fixed;top:45%;left:50%;transform:translate(-50%,-50%);font-family:'Space Grotesk',sans-serif;font-size:24px;opacity:0;pointer-events:none;text-align:center;background:#fcfdfbe8;border-radius:5px;padding:14px 22px;z-index:2}body.travelling #travel{opacity:1}.tokens{display:flex;gap:7px;justify-content:center;flex-wrap:wrap}.token{border:1px solid #c6d7cc;color:var(--green);padding:10px 11px;border-radius:4px;font-family:monospace;font-size:13px}.data-docs{display:flex;justify-content:center;gap:12px;margin-bottom:19px}.doc{border:1px solid #d2dcd4;width:49px;height:59px;border-radius:4px;padding:10px 8px;transition:opacity .4s,transform .4s}.doc i{display:block;height:3px;background:#b9cabc;margin:6px 0}.doc:nth-child(2n){border-color:#d7b6a5}.filtered .doc:nth-child(2n){opacity:.15;transform:scale(.8)}.small-action{width:auto;height:33px;padding:0 13px;border-radius:4px;gap:7px;margin:16px auto 0;font-size:11px}.data-stages{display:flex;justify-content:center;gap:18px;font-size:10px;color:var(--muted);margin-top:14px}.plot{width:100%;height:130px;overflow:visible}.plot text{font-family:'DM Sans',sans-serif;font-size:10px;fill:var(--muted)}.plot path,.plot polyline{fill:none;stroke-width:2}.plot .axis{stroke:#d5dfd7;stroke-width:1}.legend{display:flex;justify-content:center;gap:17px;font-size:10px}.legend span::before{content:'';display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:5px}.legend span+span::before{background:var(--orange)}.gpu-grid{display:grid;grid-template-columns:repeat(64,1fr);gap:2px;margin:16px 0}.gpu-grid i{aspect-ratio:1;background:#4c8c73;border-radius:1px}.gpu-grid i:nth-child(5n){background:#90b29a}.run-stats{display:flex;justify-content:space-between;text-align:left;font-size:10px;color:var(--muted)}.run-stats strong{display:block;font-size:22px;color:var(--ink);font-family:'Space Grotesk',sans-serif;margin-bottom:3px}.progress-label{display:flex;justify-content:space-between;font-size:11px;margin-top:17px}progress{width:100%;height:6px;appearance:none;border:0;border-radius:5px;overflow:hidden;margin-top:10px}progress::-webkit-progress-bar{background:#e5ebe5}progress::-webkit-progress-value{background:var(--green)}progress::-moz-progress-bar{background:var(--green)}.model-block{border:1px solid var(--green);border-radius:5px;padding:13px;font-size:13px;background:#edf5ed;margin:11px 0}.loop-label{font-size:10px;color:var(--muted);margin:9px 0}.loop-arrows{display:flex;justify-content:space-around;color:var(--green);font-size:16px}.loop-bottom{display:flex;align-items:center;justify-content:center;gap:13px;margin-top:15px;font-size:12px}.loop-bottom span{border-bottom:2px solid #bfd6c5;padding:7px 0}.loop-bottom span.current{border-color:var(--orange);color:var(--orange)}.conversation{text-align:left;display:grid;gap:12px}.conversation div{border-left:2px solid var(--line);padding:10px 15px;font-size:13px;line-height:1.5}.conversation div:last-child{border-color:var(--green);margin-left:24px;background:#edf5ed}.conversation small{display:block;font-size:9px;color:var(--muted);margin-bottom:5px}.reward-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.reward-options div{border:1px solid var(--line);border-radius:5px;padding:20px 10px;font-size:12px}.reward-options strong{display:block;font-size:24px;font-family:'Space Grotesk',sans-serif;margin-bottom:8px;color:var(--green)}.monitor-readout{display:flex;justify-content:center;gap:30px;margin-bottom:12px}.monitor-readout strong{display:block;font-size:27px;font-family:'Space Grotesk',sans-serif}.monitor-readout small{font-size:10px;color:var(--muted)}.status-list{display:flex;justify-content:center;gap:18px;font-size:10px;color:var(--muted)}.status-list span::before{content:'·';color:var(--green);margin-right:5px}
@media(min-width:1600px){#scene{margin-right:8vw}}@media(max-width:1050px){#scene{width:65vw;padding:40px 45px;min-height:560px}h1{font-size:37px}#map-label{left:25px}header{padding:22px 25px}.chapter-position{min-width:190px}.pin span{font-size:9px}}
@media(max-width:700px){header{height:78px;padding:17px 19px}.brand{font-size:16px}.brand-mark{width:33px;height:33px}.brand small{font-size:8px}nav{gap:7px}nav button{width:37px;height:37px}#map-label{position:relative;top:auto;left:auto;margin:15px 23px 13px;gap:3px}#map-label .eyebrow{font-size:8px}#place{font-size:24px}#place-detail{font-size:10px}#scene{width:calc(100% - 24px);height:auto;min-height:520px;margin:18px 12px 120px;padding:44px 29px;border-radius:43% 43% 35% 35% / 24% 24% 25% 25%}h1{font-size:34px;margin:16px 0 13px}p.lede{font-size:13px;max-width:320px}.visual{margin-top:22px}.giant{font-size:87px}.scene-note{font-size:10px}.scene-kicker{font-size:9px}footer{left:0;right:0;bottom:0;padding:15px 20px 23px;background:#e8efecf5;gap:12px;flex-wrap:wrap}.chapter-position{min-width:0;flex:1;font-size:10px;gap:9px}#chapter-name{max-width:140px}#timeline{order:3;width:100%;justify-content:center;gap:12px}.navigation #next{padding:0 13px;gap:12px}.navigation button{height:39px;width:39px}.navigation #next span{font-size:11px}.map-credit{display:none}#chapters{right:12px;top:72px;width:min(340px,calc(100% - 24px))}.pin span{display:none}.pin{width:9px;height:9px}body.overview #scene{height:450px}#travel{font-size:20px;width:80%;top:40%}.run-stats strong{font-size:19px}.gpu-grid{gap:1px}.token{padding:8px}.intro-meta{gap:19px}}
.pin{padding:0}.pin::before{content:'';position:absolute;inset:-12px;border-radius:50%}.scene-kicker{color:var(--orange)}.scene-kicker .number{border-color:#e6c8b8}.giant{color:var(--blue)}.giant span{color:var(--muted)}
/* OpenEuroLLM's dark canvas, blue/orange accents and Roboto typography. */
h1,#place,.giant,.run-stats strong,.monitor-readout strong,.reward-options strong,#position,#travel,.plot text{font-family:Roboto,Arial,sans-serif}
h1{font-weight:600}
.brand{gap:20px}.brand img{display:block;width:112px;height:51px;object-fit:contain}.brand>span{font-size:9px;font-weight:500;line-height:1.6;border-left:1px solid var(--line);padding-left:18px;color:var(--muted)}
#scene{box-shadow:0 25px 95px #0004;border:1px solid #284457}
#scene::before{border-color:#2ba8ff1a}
button:hover{background:#102a3a}
.eyebrow,#position{color:var(--blue)}
#place{font-size:29px}#machine{font-size:22px;font-weight:600;color:var(--blue);margin-top:11px}#place-detail{font-size:12px;max-width:290px;line-height:1.5}
.scene-kicker{color:var(--orange);justify-content:center;line-height:1.5}.scene-kicker .number{border-color:#ef87004a;flex-shrink:0}
.pill{background:#153028;color:#8decc7}
.pin{background:#0b1b25;border-color:#769db5;box-shadow:0 0 0 5px #2ba8ff0d}
.pin span{text-shadow:0 1px 4px #02090f;color:#d3e0e9}
.pin.active{background:var(--orange);border-color:var(--orange);box-shadow:0 0 0 7px #ef870018}
.pin:hover{background:var(--blue)}
#timeline button{background:#385160}#timeline button.active{background:var(--blue)}
.navigation #next{background:var(--orange);color:#071019;font-weight:600}.navigation #next:hover{background:#ff9815}
#chapter-list button.active{background:#2ba8ff17}#chapter-list b{color:var(--blue)}
#travel{background:#07141ff2;border:1px solid var(--line);color:var(--ink)}
.token{border-color:#2ba8ff66;color:#79c9ff;background:#2ba8ff08}
.doc{border-color:#527185}.doc i{background:#527185}.doc:nth-child(2n){border-color:#c38c49}
.plot .axis{stroke:#385160}.plot path[stroke="#18775c"]{stroke:var(--blue)}.plot path[stroke="#c25a35"]{stroke:var(--orange)}
.legend span::before{background:var(--blue)}.gpu-grid i{background:#2ba8ff}.gpu-grid i:nth-child(5n){background:#238f94}
progress::-webkit-progress-bar{background:#223340}progress::-webkit-progress-value{background:var(--blue)}progress::-moz-progress-bar{background:var(--blue)}
.model-block{border-color:#2ba8ff70;background:#2ba8ff0e}.loop-arrows{color:var(--blue)}.loop-bottom span{border-color:#385160}
.conversation div:last-child{border-color:var(--blue);background:#2ba8ff0e}
.project-link{display:inline-flex;align-self:center;align-items:center;gap:7px;font-size:12px;color:#79c9ff;margin:24px auto 0;text-underline-offset:4px}.project-link:hover{text-decoration:underline}.project-link svg{width:14px;height:14px}
.family-label{font-size:10px;color:var(--muted);margin:0 0 22px}
.model-family{display:grid;grid-template-columns:1fr 18px 1fr 18px 1fr;align-items:center;gap:8px;text-align:center}
.model-family>div{display:flex;flex-direction:column;gap:7px;min-width:0}
.model-family strong{font-size:39px;font-weight:500;color:#79c9ff;line-height:1.1}
.model-family span{font-size:12px}.model-family small{font-size:10px;line-height:1.4;color:var(--muted)}
.model-family .family-current strong{color:var(--orange)}.model-family .family-current small{color:var(--green)}.model-family>svg{color:#527185;width:16px;height:16px}
.partner-group{width:100%;margin:0}
.partner-group h2{font-size:9px;font-weight:500;color:#91a6b6;line-height:1.4;margin:0 0 8px}
.partner-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 12px;list-style:none;padding:0;margin:0;width:100%}
.partner-grid li{flex:0 0 calc((100% - 60px)/6);min-width:0}
.partner-logo{height:36px;display:flex;align-items:center;justify-content:center;border-radius:3px;padding:5px;background:transparent;transition:background .16s}
.partner-logo:hover{background:#ffffff0c}.partner-logo:focus-visible{outline-offset:2px}
.partner-logo img{display:block;max-width:100%;width:auto;height:auto;max-height:25px;object-fit:contain}
#scene[data-chapter="partners"] h1{font-size:35px;margin:16px 0 12px}
#scene[data-chapter="partners"] .lede{font-size:13px;max-width:340px}
#scene[data-chapter="partners"] .visual{margin:26px 0 0;max-width:410px;gap:20px;flex-shrink:0}
#scene[data-chapter="partners"] .project-link{margin:0 auto}
#scene[data-chapter="partners"] .scene-note{display:none}
.funding-credit{display:flex;justify-content:center;align-items:center;margin:0}
.funding-credit img{display:block;width:168px;height:auto;max-width:100%}
.prelude-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px;margin:10px 0 15px}
.prelude-stats>div:last-child strong{font-size:28px;line-height:1.6}
.prelude-stats>div{display:flex;flex-direction:column;gap:8px}.prelude-stats strong{font-size:47px;font-weight:500;color:var(--blue)}.prelude-stats span{font-size:12px;color:var(--muted)}
.synth-flow{display:flex;flex-direction:column;align-items:center;gap:15px}.synth-flow>svg:first-child{width:36px;height:36px;color:var(--blue)}.synth-flow strong{font-size:14px;font-weight:500}.synth-flow>svg{color:var(--orange)}
.synth-documents{display:flex;justify-content:center;gap:9px;width:100%}.synth-document{flex:1;max-width:49px;height:65px;padding:10px 8px;border:1px solid #2ba8ff55;border-radius:4px;text-align:left}.synth-document span{font-size:10px;color:#79c9ff}.synth-document i{display:block;height:2px;background:#527185;margin-top:6px}.synth-document i:last-child{width:65%}
@media(max-width:1050px){.brand{gap:12px}.brand>span{padding-left:12px}#machine{font-size:20px}}
@media(max-width:700px){
  .brand img{width:90px;height:41px}.brand>span{font-size:7px;line-height:1.5;padding-left:10px}.brand{gap:10px}
  #map-label{display:grid;grid-template-columns:1fr auto;column-gap:10px;align-items:baseline}
  #map-label .eyebrow{grid-column:1 / -1}#place{font-size:23px}#machine{font-size:18px;margin:0;text-align:right}
  #place-detail{grid-column:1 / -1;font-size:10px;max-width:none}
  footer{background:#02090ff5;border-top:1px solid var(--line)}
  .model-family{gap:5px;grid-template-columns:1fr 13px 1fr 13px 1fr}.model-family strong{font-size:31px}.model-family span{font-size:11px}.model-family small{font-size:9px}
  .partner-grid{gap:8px}.partner-grid li{flex-basis:calc((100% - 40px)/6)}.partner-logo{height:34px;padding:3px}.partner-logo img{max-height:22px}
  #scene[data-chapter="partners"] .visual{gap:18px;margin-top:22px}#scene[data-chapter="partners"] h1{font-size:28px}
  #scene[data-chapter="intro"] h1{font-size:30px;line-height:1.15}
  #map-label{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  #scene[data-chapter="partners"]{padding-top:40px;padding-bottom:40px}.scene-kicker{font-size:9px}
}
@media(max-width:360px){.brand>span{display:none}.model-family strong{font-size:26px}.partner-grid{gap:8px 6px}.partner-grid li{flex-basis:calc((100% - 30px)/6)}.prelude-stats{gap:24px}.prelude-stats strong{font-size:37px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Figure claim tag (measured / schematic / illustrative) and the orange
   "still to fill in" chip that any null in data.js renders as. */
.figure-tag{display:inline-block;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border:1px solid var(--line);border-radius:10px;padding:2px 7px;margin-right:8px;color:var(--muted);vertical-align:1px}
.figure-tag[data-tag="measured"]{color:var(--blue);border-color:#2ba8ff55}
.figure-tag[data-tag="illustrative"]{color:var(--orange);border-color:#ef870055}
.tbd{display:inline-block;font-size:10px;font-weight:600;line-height:1.6;color:var(--orange);background:#ef870014;border:1px dashed #ef870088;border-radius:4px;padding:1px 7px;letter-spacing:0;text-transform:none;white-space:nowrap}

/* ---- the training-step figure -------------------------------------------
   Rows are labelled and spaced; the current phase decides what is lit. */
.step-figure{display:flex;flex-direction:column;gap:10px;align-items:stretch}
/* One column per position, so each input sits directly above its prediction. */
.step-grid{display:grid;grid-template-columns:78px repeat(3,minmax(0,1fr));gap:8px 10px;align-items:center}
.step-cell{display:flex;flex-direction:column;align-items:center;gap:5px;opacity:.35;transition:opacity .35s}
.step-cell .token{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.step-tag{text-align:right;font-size:9px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;line-height:1.3;color:var(--muted);opacity:.5;transition:opacity .35s}
.step-arrow{color:var(--blue);font-size:15px;line-height:1;display:inline-block;transition:transform .35s,color .35s}
.step-figure .model-block{grid-column:2 / -1;margin:0;opacity:.35;transition:opacity .35s,border-color .35s,background .35s}
.step-prob{display:block;width:80%;height:4px;border-radius:2px;background:#a6c2d62e;overflow:hidden}
.step-prob i{display:block;height:100%;background:var(--blue)}
.step-cell small{font-size:10px;color:var(--muted);white-space:nowrap}
.step-cell em{font-style:normal;font-family:monospace}
.step-cell em.is-right{color:var(--green);font-family:inherit}.step-cell em.is-wrong{color:var(--orange)}
.step-cell strong{font-size:18px;font-weight:600;color:var(--orange)}
.step-explain{display:none;font-size:11.5px;line-height:1.55;color:var(--ink);margin:0 auto;max-width:460px;min-height:34px}
.step-explain .figure-tag{margin:0 4px 0 2px}
.step-explain.current{display:block}
.token.is-right{border-color:#1cefa555;color:var(--green)}
.token.is-wrong{border-color:#ef870088;color:var(--orange);background:#ef870012}

/* phase 0 predict · 1 loss · 2 gradients · 3 update: each lights its own rows */
.visual[data-active="0"] [data-row="input"],.visual[data-active="0"] [data-row="flow"],
.visual[data-active="0"] [data-row="model"],.visual[data-active="0"] [data-row="next"],
.visual[data-active="1"] [data-row="next"],.visual[data-active="1"] [data-row="loss"],
.visual[data-active="2"] [data-row="loss"],.visual[data-active="2"] [data-row="flow"],
.visual[data-active="2"] [data-row="model"],
.visual[data-active="3"] [data-row="model"]{opacity:1}
.visual[data-active="2"] .step-arrow{transform:rotate(180deg);color:var(--orange)}
.visual[data-active="2"] .model-block{border-color:#ef8700aa}
.visual[data-active="3"] .model-block{border-color:var(--green);background:#1cefa514}
@media(max-width:700px){.step-grid{grid-template-columns:52px repeat(3,minmax(0,1fr));gap:7px 6px}.step-cell .token{font-size:11px;padding:7px 5px}.step-cell small{font-size:9px;white-space:normal;text-align:center}}
.loop-bottom button{width:auto;height:auto;min-height:0;border:0;border-bottom:2px solid #385160;border-radius:0;background:none;padding:7px 2px;font-size:12px;color:var(--muted)}
.loop-bottom button:hover{background:none;color:var(--ink);border-color:var(--ink)}
.loop-bottom button.current{border-color:var(--orange);color:var(--orange)}

/* ---- the monitoring figure ---------------------------------------------- */
.at-risk{font-size:11.5px;line-height:1.6;color:var(--muted);margin:0;text-align:center}
.at-risk strong{color:var(--orange);font-weight:600}
.watch-stats{display:flex;justify-content:center;gap:34px;text-align:center}
.watch-stats strong{display:block;font-size:20px;font-family:Roboto,Arial,sans-serif;margin-bottom:3px}
.watch-stats small{font-size:10px;color:var(--muted)}
.watch-unavailable{font-size:12px;font-weight:400;color:var(--muted)}
.babysit-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 30px}
.babysit-flow>div{display:flex;flex-direction:column;align-items:center;gap:10px}
.babysit-flow svg.lucide{width:28px;height:28px;color:var(--orange)}
.babysit-flow strong{font-size:13px}
.babysit-flow span{font-size:11px;line-height:1.5;color:var(--muted)}
.incident{margin:0;display:flex;flex-direction:column;gap:8px;align-items:center}
.incident img{width:100%;border:1px solid var(--line);border-radius:6px;display:block}
.incident figcaption{font-size:10.5px;line-height:1.5;color:var(--muted);text-align:center}
.incident--empty{border:1px dashed #a6c2d63d;border-radius:6px;padding:13px;gap:9px}
.incident-label{font-size:10px;color:var(--muted)}
#scene[data-chapter="step"] .visual,#scene[data-chapter="monitor"] .visual{gap:11px;max-width:430px;margin-top:16px}

/* The annealing figure ends with a pill; keep it clear of the chapter note. */
#scene[data-chapter="anneal"] .visual{gap:12px;margin-bottom:6px}
#scene[data-chapter="anneal"] .intro-rule{margin:6px auto}

/* ---- short viewports ----------------------------------------------------
   #scene stops shrinking at min-height 590px, so on a laptop (a 900px
   screen is roughly 780px of inner height) the content used to run into
   itself: the scene centres its children and overlaps them rather than
   overflowing. Tighten the type and spacing first, then allow scrolling as
   a safety valve so text can never sit on top of other text.
   `safe center` keeps the top of an overflowing scene reachable. */
@media (min-width:701px) and (max-height:880px){
  #scene{padding:32px 60px}
  h1{font-size:34px;margin:12px 0 10px}
  p.lede{font-size:14px;line-height:1.55}
  .visual{margin-top:14px!important;margin-bottom:6px}
  .scene-note{margin-top:6px}
  .step-figure{gap:6px}
  .step-explain{min-height:26px;line-height:1.45}
  .token{padding:7px 9px}
  #scene[data-chapter="step"] .visual,#scene[data-chapter="monitor"] .visual{gap:9px;margin-top:12px!important}
}
@media (min-width:701px) and (max-height:740px){
  /* At this height the header, the 590px floor and the footer no longer fit
     together, so let the bubble shrink and scroll rather than pushing its
     last lines out past the curve. */
  #scene{padding:24px 52px;min-height:430px;margin-bottom:76px}
  .step-figure{gap:5px}
  .step-explain{min-height:22px}
  .token{padding:6px 8px;font-size:12px}
  .step-arrow{font-size:13px}
  h1{font-size:29px;margin:9px 0 8px}
  p.lede{font-size:13.5px}
  .plot{height:104px}
  .monitor-readout strong{font-size:22px}
}
#scene{overflow-y:auto;overscroll-behavior:contain;justify-content:safe center}
#scene::-webkit-scrollbar{width:0;height:0}

/* The scene's children must never be squeezed: a compressed .visual keeps
   justify-content:center internally, so its figure spills out of both ends
   and lands on the lede above and the note below. Let the scene scroll
   instead - that is what the overflow rule above is for. */
#scene>*{flex-shrink:0}
.day-routine{display:grid;gap:20px;text-align:left}
#scene[data-chapter="MultiSynt"] .scaling-paper{margin-top:28px}
.babysitter-tasks{text-align:left;padding-left:22px;margin:0 0 24px;font-size:14px;line-height:1.75;color:var(--muted)}
.babysitter-tasks li{margin-bottom:14px}
.babysitter-tasks strong{color:var(--ink)}
.babysitter-context{text-align:left;font-size:14px;line-height:1.75;color:var(--muted);margin:12px 0 20px}
#scene[data-chapter="monitor"] .babysit-flow{width:100%;max-width:520px;margin:20px auto}
#scene[data-chapter="monitor"] .watch-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:440px;margin:12px auto 20px;gap:24px;align-items:start}
#scene[data-chapter="monitor"] .watch-stats small{display:block;line-height:1.6;max-width:170px;margin:auto}
.incident-finding{text-align:left;border-top:1px solid var(--line);padding-top:16px;margin-top:12px}
.incident-finding summary{cursor:pointer;font-size:13px;color:var(--blue);font-weight:600}
.incident-finding summary:focus-visible{outline:2px solid var(--orange);outline-offset:4px}
.incident-finding p{font-size:13px;line-height:1.7;color:var(--muted)}
.curation-source,.curation-output{display:flex;align-items:center;justify-content:center;gap:18px;font-size:14px;line-height:1.6}
.curation-source img{object-fit:contain}
.curation-source small,.curation-output small{font-size:11px;color:var(--muted)}
.curation-scale{display:block;font-size:26px;line-height:1.25;color:var(--ink);margin-bottom:6px}
.curation-source small a{text-decoration:underline;text-underline-offset:3px}
.curation-output+.curation-intro{margin:16px 0 0}
@media(max-width:450px){.curation-scale{font-size:22px}.curation-source{flex-wrap:wrap}}
.curation-source>svg,.curation-output>svg{color:var(--orange);flex-shrink:0}
.curation-arrow{margin:14px auto;color:var(--blue)}
.curation-intro{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 18px}
.curation-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;text-align:left;align-items:start}
.curation-stage{border-top:1px solid var(--line);padding:16px 0}
.curation-stage summary{cursor:pointer;display:flex;gap:10px;align-items:flex-start;position:relative;padding-right:18px}
.curation-stage summary::-webkit-details-marker{display:none}
.curation-stage summary::after{content:'+';position:absolute;right:0;color:var(--blue)}
.curation-stage[open] summary::after{content:'-'}
.curation-stage summary:focus-visible{outline:2px solid var(--orange);outline-offset:4px}
.curation-stage svg{flex-shrink:0;color:var(--blue)}
.curation-stage strong{font-size:13px;display:block}
.curation-stage small{font-size:11px;line-height:1.5;color:var(--muted);display:block;margin-top:6px}
.curation-stage p{font-size:12px;line-height:1.65;color:var(--muted);margin:14px 0 0}
@media(max-width:450px){.curation-stages{grid-template-columns:1fr}.curation-source{gap:10px}}
.project-aims{text-align:left;font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 26px}
.lede a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.project-collaboration{text-align:left;margin-top:28px}
.project-collaboration h2{font-size:20px;margin:0 0 12px}
.project-collaboration p{font-size:15px;line-height:1.7;color:var(--muted);margin:0}
.project-partners{text-align:left}
.project-partner-list{display:flex;flex-direction:column;gap:24px;max-width:520px;margin:24px auto;text-align:center}
.welcome-copy{text-align:left;font-size:16px;line-height:1.8;color:var(--muted);max-width:590px}
.welcome-copy p{margin:0 0 22px}
@media(max-width:700px){.welcome-copy{font-size:14px}}
.story-slot{width:100%;max-width:620px}
.chapter-story{margin-top:26px;border-top:1px solid var(--line);padding-top:18px}
.chapter-story summary{cursor:pointer;font-size:14px;font-weight:600;line-height:1.6;color:var(--blue);padding:6px 0}
.chapter-story summary:focus-visible{outline:2px solid var(--orange);outline-offset:5px}
.story-content{font-size:14px;line-height:1.75;color:var(--muted);overflow-wrap:anywhere;padding-top:10px}
.story-content h2,.story-content h3,.story-content h4{font-size:17px;line-height:1.4;color:var(--ink);margin:24px 0 10px}
.story-content p{margin:0 0 16px}
.story-content img{display:block;width:auto;max-width:100%;height:auto;margin:18px auto;border-radius:4px}
.story-content a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.story-content blockquote{border-left:2px solid var(--orange);padding-left:16px;margin:20px 0}
.story-content pre{overflow:auto;max-width:100%;padding:12px;background:#02090f}
.story-content table{display:block;overflow:auto;max-width:100%;border-collapse:collapse}
.story-content th,.story-content td{padding:8px;border:1px solid var(--line)}
.scaling-evidence{margin:24px 0 16px;width:100%}
.scaling-evidence img{display:block;width:100%;height:auto;border-radius:4px}
.scaling-evidence figcaption{font-size:12px;line-height:1.65;color:var(--muted);text-align:left;margin-top:12px}
.scaling-paper{display:flex;align-items:flex-start;gap:12px;text-align:left;font-size:13px;line-height:1.6;color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.scaling-paper svg{flex-shrink:0;margin-top:3px}
.scaling-details{text-align:left;border-top:1px solid var(--line);margin-top:22px;padding-top:18px}
.scaling-details summary{cursor:pointer;font-size:13px;font-weight:600}
.scaling-details summary:focus-visible{outline:2px solid var(--orange);outline-offset:5px}
.day-routine>div{display:flex;gap:16px;align-items:flex-start}
.day-routine svg{flex-shrink:0;color:var(--orange)}
.day-routine strong{font-size:14px}
.day-routine p{font-size:12px;line-height:1.5;color:var(--muted);margin:5px 0 0}

#scene[data-chapter="incident"] .visual{gap:12px;max-width:620px}
.loss-replay{display:block;width:100%;aspect-ratio:960 / 540;overflow:hidden;background:white;border-radius:4px}
.loss-replay img{width:200%;max-width:none;border:0;border-radius:0;clip-path:inset(0 calc(100% - var(--reveal,100%) / 2) 0 0)}
.loss-replay:has(svg){aspect-ratio:auto;background:#050f18;border:1px solid var(--line);border-radius:6px;padding:14px 10px 6px}
.loss-replay svg{display:block;width:100%;height:auto;overflow:visible}
.loss-replay .ticks text{fill:var(--muted);font-size:15px}
.loss-replay .ticks line,.loss-replay .axis{stroke:#a6c2d666;stroke-width:1}
.loss-replay .axis-title{fill:var(--muted);font-size:14px}
.loss-turn{opacity:0;transition:opacity .4s}
.loss-turn.shown{opacity:1}
.loss-turn line{stroke:var(--orange);stroke-width:2;stroke-dasharray:6 5}
.loss-turn text{fill:var(--orange);font-size:16px;font-weight:600}
@media (max-width:600px){.loss-replay .ticks text,.loss-replay .axis-title{font-size:28px}.loss-turn text{font-size:28px}}
.replay-controls{display:flex;align-items:center;gap:12px;text-align:left;min-height:48px}
.replay-controls button{flex-shrink:0;width:38px;height:38px}
#loss-status{font-size:12px;margin:0;color:var(--muted)}
#loss-status.loss-alert{color:var(--orange);font-weight:600}
.incident-checks{border:0;padding:0;margin:0;display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.incident-checks legend{font-size:12px;margin:0 auto 10px;padding:0}
.incident-checks button{border-radius:4px;width:auto;height:36px;padding:0 12px;font-size:11px}
.incident-checks button[aria-pressed="true"]{border-color:var(--orange);color:var(--orange)}
#incident-answer{font-size:12px;line-height:1.6;color:var(--muted);min-height:78px;margin:0}

/* A real machine accompanies each map stop without obscuring the diagram. */
#machine-photo{position:relative;width:min(23vw,230px);margin:10px 0 0;transition:opacity .3s;pointer-events:auto;grid-column:1 / -1}
#machine-photo[hidden]{display:none}
#machine-photo a{display:block}
#machine-photo img{display:block;width:auto;max-width:100%;height:110px;object-fit:contain;border-radius:4px}
#machine-photo figcaption{margin-top:8px;font-size:11px;color:var(--muted)}
body.overview #machine-photo,body.travelling #machine-photo{opacity:0;pointer-events:none}
@media(max-width:700px){
  #machine-photo{width:100%;margin:10px 0 0}
  #machine-photo img{height:90px;object-position:left center}
  body.overview #machine-photo,body.travelling #machine-photo{display:none}
}

/* ---- what goes wrong, and the token ticker ----------------------------- */
.causes{display:flex;flex-direction:column;gap:4px;width:100%}
.cause{display:grid;grid-template-columns:1fr 92px 34px;align-items:center;gap:9px;font-size:10px;color:var(--muted)}
.cause i{height:6px;border-radius:3px;background:linear-gradient(90deg,var(--blue),#2ba8ff55);justify-self:end;min-width:3px}
.cause span{text-align:left}
.cause b{font-weight:600;color:var(--ink);text-align:right}
.causes-note{font-size:9px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:0 0 3px;text-align:center}
.ticker{font-size:11.5px;line-height:1.6;color:var(--muted);margin:0;text-align:center}
.ticker strong{display:block;font-size:23px;color:var(--ink);font-variant-numeric:tabular-nums;margin:2px 0}
.ticker small{display:block;font-size:9.5px;opacity:.75}


/* The scene is an ellipse: its bottom corners curve inward and paint over
   anything sitting on the last pixels of the box. Bottom padding cannot
   reserve that strip, because flex content overflows its content box into
   the padding before it ever starts scrolling. A spacer is a flex item, so
   it takes part in the layout and pushes the content clear instead. */
#scene::after{content:'';display:block;flex:0 0 auto;height:64px}
@media (min-width:701px) and (max-height:880px){#scene::after{height:52px}}
@media (min-width:701px) and (max-height:740px){#scene::after{height:44px}}

/* The two chapters that gained content today sit closest to the curve. */
#scene[data-chapter="monitor"] .babysit-flow{margin-bottom:2px}
#scene[data-chapter="monitor"] .watch-stats{gap:26px}
#scene[data-chapter="monitor"] .cause{font-size:9.5px}
.ticker strong{font-size:20px}
.ticker{line-height:1.5}

/* On a phone the bubble should not be a fixed-height box with its own
   scrollbar: there is no room for the tall chapters, and their last lines
   ended up under the fixed footer. Let the panel grow and the page scroll,
   which is what a phone expects anyway. */
@media(max-width:700px){
  #scene{height:auto;min-height:0;max-height:none;overflow:visible;margin-bottom:130px}
  #scene::after{height:16px}
  body{overflow-y:auto}
}

/* The recorded loss plot is the widest thing on the page; on a phone its
   bottom corners reach past the bubble's curve. */
@media(max-width:700px){
  .incident img{width:92%;margin:0 auto}
  #scene[data-chapter="incident"]{padding-bottom:58px}
}

/* Split-screen chapter layout. The document is the only scrolling surface.
   The text column is sized to its 620px measure plus padding; the map gets the
   rest, so wide screens grow the map instead of leaving a gap on the right. */
:root{--split:clamp(40%, calc(100% - 740px), 58%)}
body{overflow-y:auto;padding-bottom:100px}
body::before{content:'';position:fixed;inset:0 0 0 var(--split);background:var(--paper);z-index:-1;border-left:1px solid var(--line)}
#europe{z-index:-2}
header{position:relative;z-index:2;background:transparent}
#map-label{position:fixed;top:126px;left:32px;max-width:calc(var(--split) - 64px)}
#scene,#scene[data-chapter="incident"]{width:calc(100% - var(--split));height:auto;min-height:calc(100svh - 198px);max-height:none;margin:0 0 0 var(--split);padding:40px 48px 56px;border-radius:0;background:transparent;box-shadow:none;overflow:visible;overscroll-behavior:auto;align-items:flex-start;justify-content:flex-start;text-align:left}
#scene{border:0}
#scene::before,#scene::after{display:none}
#scene h1{font-size:38px;line-height:1.14;max-width:650px;margin:20px 0 18px}
#scene .lede{font-size:15px;line-height:1.7;max-width:620px}
#scene .visual{width:100%;max-width:620px;margin:32px 0 20px!important;text-align:center;min-height:0}
#scene .scene-note{max-width:620px;margin:10px 0 0;font-size:12px;line-height:1.65}
#scene[data-chapter="partners"] .visual{max-width:520px;align-self:center}
#scene[data-chapter="partners"] .lede{max-width:620px;font-size:15px}
#scene .step-explain{max-width:500px;min-height:58px}
.loss-replay img{width:200%;margin:0}
footer{left:0;right:0;bottom:0;padding:18px 32px;margin:0;min-height:86px;background:var(--paper);border-top:1px solid var(--line)}
.map-credit{bottom:91px;left:32px}
body.overview::before,body.travelling::before{display:none}
body.overview #scene{height:auto;min-height:calc(100svh - 198px)}
@media(min-width:701px) and (max-width:1050px){
  #scene,#scene[data-chapter="incident"]{padding:32px 28px 48px}
  #scene h1{font-size:32px}
  footer{gap:16px;padding:16px 24px;flex-wrap:wrap}
  #timeline{order:3;width:100%;justify-content:center}
  body{padding-bottom:120px}
  .map-credit{bottom:118px}
}
@media(max-width:700px){
  body{padding-bottom:130px}
  body::before{display:none}
  header{height:86px;padding:16px 20px}
  #map-label{position:relative;top:auto;left:auto;max-width:none;margin:14px 20px 24px;padding-right:120px;min-height:104px;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
  #map-label #machine{text-align:left;font-size:18px}
  #map-label #place-detail{font-size:10px;line-height:1.5}
  #machine-photo{position:absolute;right:0;top:0;width:105px;margin:0}
  #machine-photo img{width:105px;height:90px;object-fit:contain}
  #scene,#scene[data-chapter="incident"]{width:100%;margin:0;padding:28px 24px 40px;min-height:0;background:var(--paper);border-top:1px solid var(--line)}
  #scene h1{font-size:30px;margin:16px 0}
  #scene .lede{font-size:14px;line-height:1.65}
  #scene .visual{margin:26px 0 18px!important}
  #scene .scene-note{font-size:11px}
  footer{padding:14px 20px 22px;gap:12px;min-height:110px}
  body.overview #scene{min-height:450px}
  body.overview #map-label{padding-right:0}
}

.loop-bottom #step-toggle{margin:0 0 0 8px;height:30px;border:1px solid var(--line);border-radius:4px;padding:0 9px}
.gpu-scale-route{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:28px}
.gpu-scale-route>div{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;min-width:0}
.gpu-scale-route strong{font-size:16px}.gpu-scale-route span{font-size:12px;line-height:1.5;color:var(--muted)}
.gpu-scale-chart{margin:0}.gpu-scale-chart svg{display:block;width:100%;height:auto;overflow:visible}
.scale-grid{stroke:var(--line);fill:none}.scale-axis{stroke:var(--muted);fill:none}
.scale-ideal{stroke:var(--muted);stroke-width:2;stroke-dasharray:6 5;fill:none}
.scale-example{stroke:var(--green);stroke-width:3;fill:none}
.scale-label{fill:var(--muted);font-size:13px}.gpu-scale-key{display:flex;justify-content:center;gap:24px;font-size:12px;margin:10px 0}
.gpu-scale-chart figcaption{font-size:12px;line-height:1.6;color:var(--muted);text-align:left;margin-top:16px}
.training-samples{text-align:left;display:grid;gap:26px}
.training-samples section{border-top:1px solid var(--line);padding-top:18px;min-width:0}
.training-samples h2{font-size:17px;line-height:1.4;margin:0 0 14px}
.training-samples dl{margin:0}.training-samples dt{font-size:11px;font-weight:700;color:var(--green);margin:14px 0 5px}
.training-samples dd,.sample-request{font-size:14px;line-height:1.65;margin:0;color:var(--muted);overflow-wrap:anywhere}
.training-samples code{white-space:pre-wrap;font-size:13px}.sample-request{color:var(--ink)}
.training-samples+.loop-label{margin-top:28px}
