/* Production cell – digital twin in the browser. Sibling of /showcase/: same top bar, type, dark hall and orange accent. */
@font-face{font-family:'DM Sans';font-style:normal;font-display:swap;font-weight:100 1000;src:url(./fonts/dm-sans-latin-wght.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-display:swap;font-weight:200 800;src:url(./fonts/manrope-latin-wght.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--ink:#eef1f3;--muted:#a8b3bd;--accent:#fa7947;--paper:#f7f8f8;--line:#ffffff21;--font:'DM Sans','Segoe UI',sans-serif;--display:Manrope,'DM Sans','Segoe UI',sans-serif;
  --run:#55d99a;--wait:#f5b94a;--fault:#ff5c49;--pause:#9aa9b5;color-scheme:dark}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{background:#161d23;color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased}
button,a,input{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
button:disabled{cursor:wait;opacity:.5}
button:focus-visible,a:focus-visible,canvas:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
svg{display:block}
button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
[hidden]{display:none!important}
#app,#viewport{position:fixed;inset:0}
#viewport canvas{width:100%;height:100%;display:block;outline-offset:-5px;touch-action:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* Shade that keeps the text readable over the hall */
.scene-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(13,19,25,.9),rgba(13,19,25,.6) 22%,rgba(13,19,25,.08) 44%,transparent 66%),linear-gradient(0deg,rgba(13,19,25,.85),transparent 27%,transparent 83%,rgba(13,19,25,.65))}
.exploring .scene-shade{background:linear-gradient(90deg,rgba(13,19,25,.5),transparent 46%),linear-gradient(0deg,rgba(13,19,25,.75),transparent 23%,transparent 80%,rgba(13,19,25,.72))}

/* Top bar */
.topbar{position:absolute;top:0;left:0;right:0;height:98px;padding:0 42px;display:flex;align-items:center;justify-content:space-between;z-index:12;border-bottom:1px solid #ffffff0e}
.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-family:var(--display);font-weight:750;font-size:27px;letter-spacing:-1.3px;line-height:1}
.brand-symbol{height:33px;width:33px;color:var(--accent)}
.brand-3d{font-weight:400}
.brand small{display:block;font-family:var(--font);font-size:7px;letter-spacing:2.3px;font-weight:500;margin-top:9px;color:#bac3ca}
.header-center{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;font-size:9px;letter-spacing:1.8px;color:#c3ccd4;white-space:nowrap}
.live-dot{width:5px;height:5px;border-radius:50%;background:var(--run);box-shadow:0 0 0 4px #55d99a14;animation:live 2.4s ease-in-out infinite}
.header-actions{display:flex;align-items:center;gap:21px}
.text-button{background:none;border:0;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:550;padding:7px 0}
.text-button:hover{color:var(--accent)}
.icon-button{height:38px;width:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#ffffff08}
.icon-button:hover{background:#ffffff17}
.cta-link{display:inline-flex;align-items:center;gap:12px;padding:10px 15px;border:1px solid #fa794790;border-radius:5px;color:#ffe9df;background:rgba(30,26,26,.72);backdrop-filter:blur(10px);text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap;transition:background .2s,border-color .2s,color .2s}
.cta-link span{font-size:16px;line-height:1;color:var(--accent)}
.cta-link:hover{background:var(--accent);border-color:var(--accent);color:#191e22}
.cta-link:hover span{color:#191e22}

/* Intro */
.intro{position:absolute;z-index:3;top:clamp(142px,20vh,220px);left:42px;max-width:430px;transition:opacity .3s,transform .4s;pointer-events:none}
.intro button{pointer-events:auto}
.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.7px;line-height:1.5}
.intro .eyebrow{display:flex;align-items:center;gap:10px;color:#c4cbd1}
.short-line{width:23px;height:2px;background:var(--accent);flex-shrink:0}
h1{font-family:var(--display);font-size:clamp(42px,4.2vw,70px);font-weight:500;line-height:1.13;letter-spacing:-3px;margin:25px 0}
h1 span{color:var(--accent)}
.intro p{font-size:15px;line-height:1.7;color:#bec7cf;margin:0 0 28px;max-width:360px}
.primary-button{padding:15px 20px;background:var(--accent);color:#191e22;border:0;border-radius:5px;font-size:13px;font-weight:700;display:inline-flex;gap:28px;align-items:center;transition:background .2s,transform .2s}
.primary-button:hover{background:#ff986b;transform:translateY(-2px)}
.primary-button>span{font-size:21px;line-height:1}
.intro-note{font-size:10px;color:#9daab5;margin-top:15px}
.exploring .intro{opacity:0;visibility:hidden;transform:translateX(-12px)}

/* Cell figures (right edge, beside the cell) */
.kpi{position:absolute;top:122px;right:42px;z-index:5;width:178px;padding:14px 15px 12px;background:rgba(24,32,40,.88);border:1px solid #a8bccc30;border-radius:11px;box-shadow:0 12px 40px #0003;backdrop-filter:blur(18px)}
.kpi-head{display:grid;gap:8px;justify-items:start;margin-bottom:14px}
.kpi-head .eyebrow{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.4px;color:#c8d2da}
.tag{font-size:8px;font-weight:600;letter-spacing:1.1px;color:#9fb0bd;border:1px solid #9fb0bd45;border-radius:20px;padding:3px 7px;white-space:nowrap}
.kpi-row{display:grid;grid-template-columns:1fr;gap:13px;margin:0}
.kpi-row>div{min-width:0}
.kpi-row dt{font-size:10px;color:#a3afba;margin-bottom:4px}
.kpi-row dd{margin:0;display:flex;align-items:baseline;gap:6px;white-space:nowrap}
.kpi-row b{font-family:var(--display);font-size:29px;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums;line-height:1}
.kpi-row small{font-size:10px;color:#a3afba}
.kpi.alarm #kpiRun{color:var(--fault)}
.kpi.low #kpiRate,.kpi.low #kpiOee{color:#ffb39f}
.spark{display:block;width:100%;height:36px;margin-top:14px}
.spark path.line{fill:none;stroke:var(--accent);stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.spark path.area{fill:#fa794718;stroke:none}
.spark line{stroke:#ffffff26;stroke-width:1;stroke-dasharray:2 4;vector-effect:non-scaling-stroke}
.kpi-foot{display:grid;gap:9px;font-size:9px;color:#93a1ad;margin-top:6px;font-variant-numeric:tabular-nums}
.kpi-foot span+span{padding-top:9px;border-top:1px solid #ffffff14;font-size:10px}
.kpi-foot b{color:#d4dce2;font-weight:600}

/* Call-out for faults and bottlenecks */
.alert{position:absolute;z-index:11;top:118px;left:50%;transform:translateX(-50%);width:min(520px,calc(100% - 28px));display:flex;align-items:center;gap:13px;padding:11px 12px 11px 14px;background:rgba(40,22,20,.95);border:1px solid #ff5c4990;border-radius:10px;box-shadow:0 14px 44px #0006;backdrop-filter:blur(16px);animation:card-in .3s ease}
.alert-icon{width:30px;height:30px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:var(--fault);color:#24100d}
.alert-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.alert-copy{flex:1;min-width:0;display:grid;gap:3px}
.alert-copy strong{font-size:13px;font-weight:650;line-height:1.3}
.alert-copy span{font-size:11.5px;line-height:1.45;color:#e8cdc8}
.alert-action{flex-shrink:0;height:36px;padding:0 14px;border:0;border-radius:5px;background:#fff;color:#2a1512;font-size:12px;font-weight:700;white-space:nowrap}
.alert-action:hover{background:#ffe3dc}
.alert.recover{background:rgba(38,32,18,.95);border-color:#f5b94a90}
.alert.recover .alert-icon{background:var(--wait);color:#2a1f08}
.alert.recover .alert-copy span{color:#e9dcc0}
.alert.ok{background:rgba(18,36,30,.95);border-color:#55d99a80}
.alert.ok .alert-icon{background:var(--run);color:#0c261b}
.alert.ok .alert-copy span{color:#cfe6dc}
.alert.info{background:rgba(24,32,40,.95);border-color:#fa794780}
.alert.info .alert-icon{background:var(--accent);color:#24140d}
.alert.info .alert-copy span{color:#d5dde3}

/* Exhibit caption and hint above the control bar */
.exhibit-caption{position:absolute;left:42px;bottom:148px;display:flex;gap:16px;align-items:center;pointer-events:none}
.exhibit-number{font-size:11px;letter-spacing:1px;border-right:1px solid #ffffff30;padding:9px 16px 9px 0;color:var(--accent)}
.exhibit-caption h2{font-size:16px;font-weight:550;letter-spacing:-.2px;margin:0 0 5px}
.exhibit-caption p{font-size:11px;color:var(--muted);margin:0}
.proximity-hint{position:absolute;right:42px;bottom:155px;display:flex;gap:10px;align-items:center;font-size:11px;color:#bec7cf;pointer-events:none;transition:opacity .3s}
.hint-ring{width:19px;height:19px;border:1px solid #899aa8;border-radius:50%;position:relative}
.hint-ring:after{content:'';position:absolute;width:5px;height:5px;border-radius:50%;background:var(--accent);inset:6px}
.exploring .proximity-hint{opacity:0}
.exploring .exhibit-caption{visibility:hidden}

/* Control bar */
.bottom-ui{position:absolute;bottom:24px;left:42px;right:42px;z-index:10}
.simulation-bar{min-height:76px;display:flex;align-items:center;gap:18px;padding:10px;background:rgba(24,32,40,.92);border:1px solid #a8bccc30;border-radius:9px;box-shadow:0 12px 40px #0002;backdrop-filter:blur(22px)}
.simulation-button{border:0;border-radius:5px;padding:0 22px;min-width:132px;height:52px;display:flex;align-items:center;justify-content:center;gap:11px;background:var(--accent);color:#1b2024;font-size:13px;font-weight:700;flex-shrink:0;transition:background .2s}
.simulation-button:hover{background:#ff9466}
.simulation-button svg{width:16px;height:16px}
.simulation-state{display:flex;align-items:center;gap:10px;min-width:210px}
.simulation-state>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.simulation-state strong{font-size:12px;font-weight:550}
.simulation-state span:not(.state-dot){font-size:10px;color:#a3afba}
.state-dot{width:7px;height:7px;background:var(--run);border-radius:50%;flex-shrink:0;box-shadow:0 0 10px #55d99a66}
.state-fault .state-dot{background:var(--fault);box-shadow:0 0 10px #ff5c4980}
.state-paused .state-dot{background:var(--pause);box-shadow:none}
.speed{display:grid;gap:7px;flex:1;min-width:150px;max-width:300px;margin:0 auto;padding:0 6px}
.speed-head{display:flex;justify-content:space-between;align-items:baseline;font-size:10px;color:#a3afba;white-space:nowrap}
.speed-head b{font-size:12px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.speed input{-webkit-appearance:none;appearance:none;width:100%;height:20px;margin:0;background:transparent;cursor:pointer}
.speed input::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(90deg,var(--accent) var(--fill,50%),#ffffff26 var(--fill,50%))}
.speed input::-moz-range-track{height:3px;border-radius:3px;background:#ffffff26}
.speed input::-moz-range-progress{height:3px;border-radius:3px;background:var(--accent)}
.speed input::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-6.5px;border-radius:50%;background:#f3f6f8;border:0;box-shadow:0 1px 6px #0008}
.speed input::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#f3f6f8;border:0;box-shadow:0 1px 6px #0008}
.whatif-button,.tour-button{height:47px;padding:0 18px;border:1px solid #8295a544;background:#ffffff05;color:#edf2f5;border-radius:5px;display:flex;align-items:center;justify-content:center;gap:10px;position:relative;overflow:hidden;font-size:12px;white-space:nowrap;flex-shrink:0;transition:background .2s,border-color .2s,color .2s}
.whatif-button:hover,.tour-button:hover{background:#ffffff0e}
.whatif-button svg{width:16px;height:16px;color:var(--wait)}
.whatif-button.active{border-color:#ff5c49;background:#ff5c4922;color:#ffd9d3}
.whatif-button.active svg{color:var(--fault)}
.tour-button svg{width:14px;height:14px;fill:currentColor;stroke:none}
.tour-progress{position:absolute;bottom:0;left:0;height:2px;width:0;background:var(--accent)}
.bottom-meta{display:flex;justify-content:space-between;padding-top:15px;color:#aab7c2;font-size:10px;letter-spacing:.2px}
.bottom-meta>span{display:flex;align-items:center;gap:9px}
.bottom-meta>span:last-child{font-size:8px;letter-spacing:1.2px}
.bottom-meta svg{height:15px;width:14px;fill:none;stroke:currentColor;stroke-width:1.3}
.bottom-meta i{font-style:normal;margin:0 2px}
.tiny-cross{color:var(--accent);font-size:15px;margin-left:14px}

/* Station labels in the scene */
.hotspots{position:absolute;inset:0;pointer-events:none;z-index:4}
.hotspot{position:absolute;left:0;top:0;display:flex;align-items:center;gap:7px;padding:5px 11px 5px 5px;border:1px solid #ffffff4a;border-radius:30px;background:rgba(25,34,42,.9);color:#f0f4f6;font-size:11px;font-weight:500;box-shadow:0 3px 18px #0003;pointer-events:auto;white-space:nowrap;will-change:transform;transition:background .2s,border-color .2s}
.hotspot{touch-action:none}.embedded .hotspot{touch-action:pan-y}
.hotspot .n{height:24px;width:24px;display:grid;place-items:center;border:1px solid #9cafbd66;border-radius:50%;font-size:9px;color:#b6c4d0;transition:background .2s,border-color .2s,color .2s}
.hotspot .led{width:7px;height:7px;border-radius:50%;background:var(--run);box-shadow:0 0 8px currentColor;color:var(--run);margin-left:2px}
.hotspot[data-state=idle] .led,.hotspot[data-state=blocked] .led{background:var(--wait);color:var(--wait)}
.hotspot[data-state=paused] .led{background:var(--pause);color:transparent}
.hotspot[data-state=fault]{border-color:var(--fault);background:rgba(62,24,20,.94)}
.hotspot[data-state=fault] .led{background:var(--fault);color:var(--fault);animation:blink .8s steps(2,jump-none) infinite}
.hotspot:hover,.hotspot.hover{border-color:#fa7947a0}
.hotspot.active{background:#e9eef1;color:#26343e}
.hotspot.active .n{border-color:var(--accent);background:var(--accent);color:#202930}
.connector{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
.connector path{fill:none;stroke:var(--accent);stroke-width:1;stroke-dasharray:3 4;opacity:.7}
.connector circle{fill:var(--accent)}

/* Station card */
.info-card{position:absolute;left:42px;top:122px;width:382px;z-index:6;max-height:calc(100dvh - 258px);display:flex;flex-direction:column;color:#edf3f6;background:#18222bf7;border:1px solid #b7cfdf38;border-radius:14px;box-shadow:0 24px 70px #07101866,inset 0 1px 0 #ffffff08;backdrop-filter:blur(20px);overflow:hidden;isolation:isolate;animation:card-in .3s ease}
.card-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px 0;flex-shrink:0}
.card-category{display:flex;align-items:center;gap:10px}
.card-number{display:grid;place-items:center;width:28px;height:28px;border:1px solid #fa794754;border-radius:7px;color:#ffa174;background:#fa79470b;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.card-top .eyebrow{color:#c1cdd5;font-size:9px;letter-spacing:1.35px}
.close-button{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;color:#b6c4ce;border:1px solid #b7cfdf20;border-radius:50%;background:transparent;transition:background .18s,color .18s}
.close-button:hover{background:#ffffff10;color:#fff}
.close-button svg{width:16px;height:16px}
.card-body{padding:0 20px 18px;overflow:auto;scrollbar-width:thin;scrollbar-color:#637583 transparent;overscroll-behavior:contain}
.card-body:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.card-body h2{font-family:var(--display);margin:10px 0 8px;font-size:28px;line-height:1.2;font-weight:550;letter-spacing:-1px;color:#f4f7f9}
.card-body #infoCopy{font-size:13px;line-height:1.6;color:#bcc9d2;margin:0}
.live{margin:16px 0 0;background:#101b24;border:1px solid #8cabb824;border-radius:9px;overflow:hidden}
.live-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 13px 10px}
.live-status{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600}
.live-status i{width:9px;height:9px;border-radius:50%;background:var(--run);box-shadow:0 0 10px var(--run)}
.live[data-state=idle] .live-status i,.live[data-state=blocked] .live-status i{background:var(--wait);box-shadow:0 0 10px var(--wait)}
.live[data-state=paused] .live-status i{background:var(--pause);box-shadow:none}
.live[data-state=fault] .live-status{color:#ffb7ad}
.live[data-state=fault] .live-status i{background:var(--fault);box-shadow:0 0 10px var(--fault);animation:blink .8s steps(2,jump-none) infinite}
.live[data-state=fault]{border-color:#ff5c4966}
.cycle-track{height:2px;background:#ffffff12}
.cycle-track i{display:block;height:100%;width:100%;transform:scaleX(0);transform-origin:left;background:linear-gradient(90deg,#dfe6e9,var(--accent))}
.figures{display:grid;grid-template-columns:1fr 1fr;margin:0}
.figures>div{padding:11px 13px 10px;border-top:1px solid #99bdd21a}
.figures>div:nth-child(odd){border-right:1px solid #99bdd21a}
.figures>div.wide{grid-column:1/-1;border-right:0;display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.figures dt{font-size:10px;color:#9fb0bd;margin-bottom:5px}
.figures .wide dt{margin:0}
.figures dd{margin:0;font-family:var(--display);font-size:21px;font-weight:600;letter-spacing:-.6px;font-variant-numeric:tabular-nums;line-height:1.1;white-space:nowrap}
.figures .wide dd{font-size:14px;letter-spacing:-.2px}
.figures dd small{font-family:var(--font);font-size:10px;font-weight:400;letter-spacing:0;color:#9fb0bd;margin-left:4px}
.meter{display:block;height:3px;margin-top:8px;border-radius:3px;background:#ffffff14;overflow:hidden}
.meter i{display:block;height:100%;width:100%;transform-origin:left;background:#7fd3ee;border-radius:inherit}
.meter.warm i{background:#ff955f}
.fault-button{width:100%;margin-top:12px;height:42px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #f5b94a66;border-radius:7px;background:#f5b94a0d;color:#ffe2ad;font-size:12px;font-weight:600;transition:background .2s,border-color .2s,color .2s}
.fault-button:hover{background:#f5b94a22}
.fault-button svg{width:16px;height:16px}
.fault-button.active{border-color:var(--fault);background:var(--fault);color:#24100d}
.fault-button.active:hover{background:#ff7d6e}
.card-note{font-size:10px;line-height:1.5;color:#8fa1ae;margin:10px 0 0}
.card-footer{padding:10px 14px;gap:12px;background:#121c25;border-top:1px solid #adc8db24;min-height:62px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.card-arrow,.card-next{border:1px solid #bed3e52b;background:transparent;border-radius:7px;min-height:40px;transition:background .18s,border-color .18s}
.card-arrow{width:40px;flex-shrink:0;display:grid;place-items:center;color:#c3d1db}
.card-arrow svg,.card-next svg{width:17px;height:17px}
.card-next{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-left:auto;padding:6px 10px;min-width:150px;text-align:left;color:#f0f4f7}
.card-next>span{display:grid;gap:3px}
.card-next small{color:#9fb0bd;font-size:7px;letter-spacing:1.2px;font-weight:500}
.card-next strong{font-size:12px;font-weight:550}
.card-next svg{color:#ffa174;flex-shrink:0}
.card-arrow:hover,.card-next:hover{background:#ffffff0b;border-color:#fa79477a}
.card-pagination{display:flex;flex-direction:column;gap:7px;align-items:flex-start}
.card-pagination #infoIndex{color:#b3c2cd;font-size:10px;font-variant-numeric:tabular-nums;letter-spacing:1px}
.card-progress{display:flex;gap:3px}
.card-progress i{width:10px;height:2px;background:#60758466;border-radius:1px}
.card-progress i.active{background:#ffa174}

/* Loader and error */
.loader,.error{position:absolute;inset:0;z-index:40;background:#171e25;display:grid;place-items:center;padding:24px}
.loader{transition:opacity .7s,visibility .7s;background:radial-gradient(ellipse at 65% 25%,#2a3743,#171e25 65%)}
.loader.done{opacity:0;visibility:hidden;pointer-events:none}
.loader-inner{width:min(400px,100%)}
.loader-mark{width:54px;height:54px;border:1px solid #77899950;border-radius:12px;display:grid;place-items:center;color:var(--accent);font-family:var(--display);font-size:21px;font-weight:650;margin-bottom:42px}
.loader-inner .eyebrow{font-size:9px;color:var(--muted)}
.loader h2,.error h2{font-family:var(--display);font-size:29px;font-weight:500;letter-spacing:-1px;margin:15px 0}
.loader p,.error p{font-size:13px;line-height:1.6;color:var(--muted)}
.load-track{height:2px;background:#4d5e6b;margin-top:30px;overflow:hidden}
.load-track>span{display:block;height:100%;width:0;background:var(--accent);transition:width .3s}
.load-meta{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:12px}
.error>div{max-width:450px}
.error .primary-button{margin-top:15px}
.embed-hint,.mini-kpi{display:none}

@keyframes card-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@keyframes blink{0%{opacity:1}100%{opacity:.25}}
@keyframes live{0%,100%{opacity:1}50%{opacity:.45}}

/* Sizes */
@media(min-width:1600px){
  .intro,.info-card,.exhibit-caption{left:60px}.topbar{padding:0 60px}.bottom-ui{left:60px;right:60px}
  .info-card{width:400px;top:150px}.kpi{right:60px;top:150px;width:190px}.proximity-hint{right:60px}.alert{top:140px}
  .card-body #infoCopy{font-size:14px}
}
@media(max-width:1180px){
  .header-center{display:none}
  .simulation-state{min-width:0}.simulation-state span:not(.state-dot){display:none}
}
@media(max-width:1050px){
  .topbar{padding:0 26px;height:86px}
  .intro{left:26px;top:130px}h1{font-size:47px}.intro p{font-size:13px}
  .info-card{left:26px;top:110px;width:350px;max-height:calc(100dvh - 255px)}
  .kpi{right:26px;top:110px;width:160px}.kpi-row b{font-size:25px}.intro p{max-width:300px}
  .proximity-hint{right:26px}.bottom-ui,.exhibit-caption{left:26px}.bottom-ui{right:26px}
  .simulation-bar{gap:12px}.simulation-button{min-width:112px;padding:0 16px}.whatif-button,.tour-button{padding:0 14px}
  .bottom-meta>span:last-child{font-size:7px;letter-spacing:.6px}
  .alert{top:104px}
}
@media(max-width:860px){.simulation-state{display:none}.speed{margin:0;max-width:none}}
@media(max-width:900px) and (min-width:701px){.intro p,.intro-note,.exhibit-caption,.proximity-hint{display:none}h1{font-size:40px;margin:16px 0 18px}.kpi{width:150px;padding:12px 13px 10px}.kpi .spark,.kpi-foot span:first-child{display:none}.kpi-foot span+span{border:0;padding:0;margin-top:4px}}
@media(min-width:701px) and (max-height:800px){
  .info-card{top:112px;max-height:calc(100dvh - 254px)}.card-top{padding-top:10px}.card-body{padding-bottom:12px}
  .card-body h2{font-size:25px;margin-top:5px;margin-bottom:6px}.card-body #infoCopy{font-size:12px;line-height:1.5}
  .live{margin-top:12px}.live-head{padding:8px 13px}.figures>div{padding:8px 13px 7px}.figures dd{font-size:19px}
  .fault-button{margin-top:9px;height:38px}.card-footer{min-height:56px;padding-top:7px;padding-bottom:7px}
}
@media(max-height:700px) and (min-width:701px){
  .intro{top:116px}h1{font-size:42px;margin:17px 0}.intro p{font-size:13px;margin-bottom:20px}.intro-note{display:none}
  .info-card{top:105px;max-height:calc(100dvh - 250px)}.kpi{top:105px}.exhibit-caption{bottom:135px}.bottom-ui{bottom:16px}.proximity-hint{bottom:140px}.alert{top:100px}
  .spark,.kpi-foot span:first-child{display:none}.kpi-foot span+span{border:0;padding:0;margin-top:6px}.kpi-row{gap:10px}.kpi-head{margin-bottom:10px}
}
/* Phone held sideways */
@media(max-height:480px) and (min-width:701px){
  .topbar{height:58px}.brand{font-size:22px}.brand-symbol{width:27px;height:27px}.brand small{display:none}
  .intro,.exhibit-caption,.proximity-hint,.bottom-meta{display:none}
  .kpi{top:68px;right:26px;width:auto;padding:8px 13px 7px}
  .kpi-head,.spark,.kpi-foot{display:none}
  .kpi-row{grid-template-columns:auto auto auto;gap:20px}.kpi-row b{font-size:19px}.kpi-row dt{font-size:9px;margin-bottom:2px}.kpi-row small{font-size:9px}
  .bottom-ui{bottom:10px}.simulation-bar{min-height:56px;padding:6px;gap:10px}.simulation-button{height:44px}.whatif-button,.tour-button{height:42px}
  .info-card{top:66px;max-height:calc(100dvh - 142px)}.card-body h2{font-size:21px;margin:3px 0 4px}.card-body #infoCopy,.card-note{display:none}
  .live{margin-top:8px}.live-head{padding:6px 12px}.figures>div{padding:6px 12px 5px}.figures dd{font-size:17px}.fault-button{margin-top:8px;height:34px}
  .card-footer{min-height:46px;padding:5px 12px}.card-arrow,.card-next{min-height:34px}
  .alert{top:64px}
}
@media(max-width:700px){
  .topbar{height:75px;padding:0 15px 0 19px}
  .brand{font-size:22px;gap:7px}.brand-symbol{width:28px;height:28px}.brand small{font-size:6px;letter-spacing:1.6px;margin-top:7px}
  .header-actions{gap:9px}.header-actions .text-button span{display:none}.icon-button{height:34px;width:34px}
  #fullscreenButton{display:none}
  .cta-link{padding:8px 10px;font-size:11px;gap:7px}.cta-link span{font-size:14px}
  .intro{top:99px;left:19px;right:19px;max-width:none}
  .intro .eyebrow{font-size:8px;letter-spacing:1px}
  h1{font-size:38px;letter-spacing:-1.7px;margin:13px 0;line-height:1.1}
  .intro p{font-size:12px;line-height:1.55;margin-bottom:14px;max-width:320px}
  .primary-button{padding:12px 16px;font-size:12px}.intro-note{display:none}
  .scene-shade{background:linear-gradient(180deg,rgba(13,19,25,.9),rgba(13,19,25,.74) 30%,transparent 52%,rgba(13,19,25,.62) 84%)}
  .exploring .scene-shade{background:linear-gradient(0deg,rgba(13,19,25,.75),transparent 55%),linear-gradient(180deg,#0d1319a0,transparent 25%)}
  .proximity-hint,.exhibit-caption,.connector{display:none}
  /* figures become a strip above the control bar */
  .kpi{top:auto;right:14px;left:14px;bottom:138px;width:auto;padding:9px 12px 8px;border-radius:9px}
  .kpi-head,.spark,.kpi-foot{display:none}
  .kpi-row{grid-template-columns:1.3fr .9fr 1fr;gap:10px}.kpi-row dt{font-size:9px;margin-bottom:3px}.kpi-row b{font-size:21px}.kpi-row small{font-size:9px}.kpi-row dd{gap:5px}
  .exploring .kpi{display:none}
  .bottom-ui{left:14px;right:14px;bottom:14px}
  .simulation-bar{min-height:60px;padding:7px;gap:8px;border-radius:8px;flex-wrap:wrap}
  .simulation-button{min-width:0;width:46px;height:46px;padding:0;gap:0}.simulation-button span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .speed{min-width:0;padding:0 4px;gap:4px;max-width:none}.speed-head{font-size:9px}.speed-head b{font-size:11px}
  .whatif-button{height:46px;padding:0 11px;gap:7px;font-size:11px}.whatif-button .long{display:none}
  .tour-button{width:46px;height:46px;padding:0}.tour-button #tourLabel{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .bottom-meta{justify-content:center;font-size:9px;padding-top:10px}.bottom-meta>span:first-child{display:none}.bottom-meta>span:last-child{font-size:7.5px;letter-spacing:1px}.tiny-cross{display:none}
  .hotspot{font-size:10px;padding:3px 8px 3px 3px;gap:5px}.hotspot .n{width:20px;height:20px;font-size:8px}.hotspot .led{width:6px;height:6px;margin-left:1px}
  .info-card{left:14px;right:14px;top:auto;bottom:112px;width:auto;max-height:52dvh;border-radius:13px}
  .card-top{padding:9px 12px 0}.card-category{gap:8px}.card-number{width:23px;height:23px;font-size:9px;border-radius:5px}
  .card-top .eyebrow{font-size:8px;letter-spacing:1px}.close-button{width:32px;height:32px}
  .card-body{padding:0 14px 12px}.card-body h2{font-size:22px;margin:4px 0 5px;letter-spacing:-.7px}
  .card-body #infoCopy{font-size:12px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .live{margin-top:10px}.live-head{padding:8px 11px}.figures>div{padding:8px 11px 7px}.figures dd{font-size:18px}.figures dt{margin-bottom:3px}
  .fault-button{margin-top:9px;height:40px}.card-note{display:none}
  .card-footer{min-height:52px;padding:6px 11px}.card-next{min-width:140px}
  .alert{top:84px;padding:9px 10px 9px 11px;gap:10px}.alert-icon{width:26px;height:26px}.alert-copy strong{font-size:12px}.alert-copy span{font-size:11px}
  .alert-action{height:34px;padding:0 11px;font-size:11px}
  .has-alert .intro{opacity:0;visibility:hidden}
}
@media(max-width:700px) and (max-height:740px){.intro p{display:none}h1{font-size:32px;margin:11px 0 14px}.intro{top:92px}.kpi{bottom:132px;padding:7px 12px 6px}.kpi-row b{font-size:19px}}
@media(max-width:380px){.brand small{display:none}.cta-link{font-size:10.5px;padding:8px 8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Compact view for the homepage (?embed=1) */
.embedded .intro,.embedded .exhibit-caption,.embedded .proximity-hint,.embedded .bottom-meta,.embedded .tour-button,.embedded .simulation-state,.embedded .speed,.embedded .kpi,.embedded .connector,.embedded .cta-link{display:none!important}
.embedded .scene-shade{background:linear-gradient(0deg,#111a2466,transparent 27%);pointer-events:none}
.embedded .topbar{display:flex;inset:12px 12px auto auto;width:auto;height:auto;padding:0;z-index:7;pointer-events:none;border:0}
.embedded .topbar .brand,.embedded .header-center,.embedded #fullscreenButton,.embedded #resetButton span{display:none!important}
.embedded .header-actions{display:block}
.embedded #resetButton{pointer-events:auto;display:grid;place-items:center;width:32px;height:32px;border:1px solid #b7d0de40;border-radius:50%;background:#142028df;padding:7px;color:#dce7ea}
.embedded .mini-kpi{display:flex;position:absolute;z-index:5;top:12px;left:12px;gap:12px;align-items:baseline;padding:7px 11px;background:#142028d9;border:1px solid #b7d0de30;border-radius:7px;font-size:10px;color:#a9b7c2;font-variant-numeric:tabular-nums;white-space:nowrap}
.embedded .mini-kpi b{font-family:var(--display);font-size:14px;font-weight:600;color:var(--ink);margin-right:3px}
.embedded .mini-kpi .tag{font-size:7px;padding:2px 5px}
.embedded .bottom-ui{bottom:14px;left:15px;right:auto}
.embedded .simulation-bar{width:max-content;min-height:44px;gap:7px;padding:5px;background:#17212bc9;border-color:#ffffff18;backdrop-filter:blur(12px);flex-wrap:nowrap}
.embedded .simulation-button{height:32px;width:auto;min-width:92px;padding:0 12px;font-size:10px;border-radius:3px;gap:8px}
.embedded .simulation-button span{position:static;width:auto;height:auto;clip-path:none}
.embedded .simulation-button svg{height:12px;width:12px}
.embedded .whatif-button{height:32px;padding:0 11px;font-size:10px;border-radius:3px;gap:7px}.embedded .whatif-button svg{width:13px;height:13px}
.embedded .hotspot{font-size:9px;gap:5px;padding:4px 7px 4px 4px;background:#142028c9;border-color:#b7d0de40}
.embedded .hotspot .n{width:19px;height:19px;font-size:7px}
.embedded .hotspot.active{background:#edf2f3;color:#293944}
.embedded .hotspot[data-state=fault]{border-color:var(--fault);background:rgba(62,24,20,.94)}
.embedded .info-card{top:12px;left:12px;bottom:auto;right:auto;width:min(310px,calc(100% - 24px));max-height:calc(100dvh - 82px);border-radius:9px;backdrop-filter:none;background:#18222b}
.embedded .card-top{padding:9px 12px 0}.embedded .card-body{padding:0 13px 12px}.embedded .card-body h2{font-size:21px;margin:5px 0}
.embedded .card-body #infoCopy{font-size:11px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.embedded .live{margin-top:10px}.embedded .live-head{padding:7px 10px}.embedded .figures>div{padding:7px 10px 6px}.embedded .figures dd{font-size:16px}.embedded .figures dt{font-size:9px;margin-bottom:3px}
.embedded .fault-button{height:34px;margin-top:8px;font-size:11px}.embedded .card-note{display:none}
.embedded .card-footer{min-height:46px;padding:6px 10px}.embedded .card-next{min-width:118px;min-height:34px}.embedded .card-arrow{min-height:34px;width:34px}
.embedded .alert{top:auto;bottom:66px;left:15px;transform:none;width:min(430px,calc(100% - 30px));padding:8px 9px 8px 10px;gap:9px}
.embedded .alert-icon{width:24px;height:24px}.embedded .alert-copy strong{font-size:11.5px}.embedded .alert-copy span{font-size:10.5px}.embedded .alert-action{height:30px;font-size:10.5px;padding:0 10px}
.embedded .loader{padding:28px;background:radial-gradient(ellipse at 40% 30%,#2c3941,#1a242c)}
.embedded .loader-inner{max-width:250px}.embedded .loader-mark{width:39px;height:39px;border-radius:7px;font-size:15px;margin-bottom:24px}.embedded .loader h2{font-size:23px;letter-spacing:-.8px}.embedded .loader .eyebrow{font-size:7px;letter-spacing:.9px}.embedded .loader p{font-size:11px}.embedded .load-meta{font-size:8px}.embedded .error h2{font-size:24px}.embedded .error p{font-size:12px}
.embedded .embed-hint{display:block;position:absolute;right:17px;bottom:24px;font-size:8px;letter-spacing:.8px;color:#cbd7dd;pointer-events:none;text-shadow:0 1px 8px #000}
.embedded .exploring .mini-kpi{display:none}
@media(max-width:520px){.embedded .embed-hint{display:none}.embedded .alert-copy span{display:none}.embedded .alert{bottom:62px}.embedded .mini-kpi .tag{display:none}.embedded .bottom-ui{left:10px;bottom:12px}.embedded .alert{left:10px;width:calc(100% - 20px)}}
