
/* The DOM planes are projected by the same camera as their Three.js meshes. */
#surface-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}
.world-surface{position:absolute;left:0;top:0;transform-origin:0 0;overflow:hidden;backface-visibility:hidden;will-change:transform;font-size:24px;line-height:1.45;box-sizing:border-box}
.world-surface button,.world-surface input{font:inherit}
.world-surface button:focus-visible,.world-surface a:focus-visible,.world-surface input:focus-visible{outline:3px solid currentColor;outline-offset:-4px}
#room-back{position:absolute;left:4%;top:112px;z-index:4;background:#19201bf2;border-color:#e9b87570;color:var(--accent);padding:12px 20px}
.immersive .intro,.immersive .scene-label,.immersive #hotspots,.immersive .hint{visibility:hidden}
.surface-terminal{background:#102017;color:#c2dba4;border-radius:14px;box-shadow:inset 0 0 36px #020f08;font-family:monospace;display:flex;flex-direction:column}
.os-title{padding:13px 22px;display:flex;justify-content:space-between;font-size:15px;letter-spacing:2px;border-bottom:1px solid #c0db9a45;background:#223226;flex-shrink:0}
.os-tabs{display:flex;gap:2px;border-bottom:1px solid #bdd39b45;padding:0 15px;flex-shrink:0}
.os-tabs button{background:none;border:0;border-radius:0;padding:12px 19px;color:#a1b58f;font-size:21px}
.os-tabs button[aria-pressed=true]{background:#bfd79d;color:#162417}
.os-content{padding:25px 30px;overflow:auto;flex:1;min-height:0;scrollbar-color:#6d8a5f #142619}
.os-status{display:flex;justify-content:space-between;gap:12px;padding:9px 22px;background:#1a2b1e;font-size:14px;letter-spacing:1px;flex-shrink:0}
.screen-shell output{white-space:pre-wrap;overflow-wrap:anywhere;display:block;font-size:24px;line-height:1.5}
.screen-shell form{display:flex;gap:15px;align-items:center}
.screen-shell label{white-space:nowrap}
.screen-shell input{min-width:0;width:100%;background:none;border:0;outline:none;color:#e5f2c7;padding:2px;caret-color:#d7ecb3}
.world-surface h2{font:500 34px/1.2 'Space Grotesk',sans-serif;margin:10px 0 18px;letter-spacing:-.7px}
.world-surface p{font-size:24px;line-height:1.5;margin:12px 0 18px}
.world-surface .device-kicker{font:16px monospace;letter-spacing:1px;margin:0 0 12px;opacity:.75}
.device-tags{display:flex;flex-wrap:wrap;gap:10px}
.device-tags span{font-size:18px;padding:5px 9px;border:1px solid #c0db9a40;border-radius:3px}
.device-links{display:flex;gap:20px}
.device-links a{color:inherit;font-size:21px;text-underline-offset:5px;margin-top:20px}
.screen-project{border-bottom:1px solid #c0db9a30;padding:12px 0 26px;margin-bottom:22px}
.surface-projects{font-family:monospace;background:#11201c;color:#b9d8c9;border-radius:7px;display:flex;flex-direction:column}
.console-title,.console-footer{padding:16px 22px;background:#233b32;flex-shrink:0;font-size:17px;letter-spacing:1px}
.console-title{display:flex;justify-content:space-between;border-bottom:1px solid #b9d8c93a}
.console-footer{font-size:14px}
.rack-layout{display:grid;grid-template-columns:220px 1fr;flex:1;min-height:0}
.rack-layout nav{border-right:1px solid #b9d8c933;overflow:auto;padding:14px}
.rack-layout nav button{display:block;width:100%;border:0;border-radius:4px;text-align:left;font-size:19px;line-height:1.45;padding:18px 12px;background:transparent;color:#a2bcb1;margin-bottom:12px}
.rack-layout nav button span{display:block;font-size:15px;color:#d6bc80;margin-bottom:8px}
.rack-layout nav button[aria-pressed=true]{background:#b5cbb7;color:#11201c;box-shadow:inset 4px 0 #ebc68e}
.rack-layout nav button[aria-pressed=true] span{color:#304d3e}
.rack-detail{padding:24px;overflow:auto;scrollbar-color:#6e8c7d #11201c}
.rack-detail h2{font-size:31px}
.rack-detail p{font-size:22px}
.surface-whiteboard{background:#d4d1ba;color:#30483d;font-family:'DM Sans',sans-serif;padding:30px 34px;box-shadow:inset 0 0 40px #77765a20}
.board-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #30483d50;padding-bottom:14px}
.board-heading h2{font-size:38px;margin:0}
.board-heading>span{font:14px monospace;letter-spacing:1px}
.note-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin-top:24px}
.paper-note{color:#30483d;border:1px solid #65705c50;background:#e6d798;padding:20px 18px;text-align:left;border-radius:1px;box-shadow:2px 4px 0 #30483d16;min-height:307px;display:flex;flex-direction:column}
.paper-note:nth-child(2){background:#bfd0ad}
.paper-note:nth-child(3){background:#e0bfa0}
.paper-note:hover{border-color:#30483d;filter:brightness(1.035)}
.paper-note small{font:14px monospace;letter-spacing:1px}
.paper-note h3{font:600 25px/1.2 'Space Grotesk',sans-serif;margin:18px 0 8px}
.paper-note p{font-size:20px;line-height:1.4;margin:8px 0 16px}
.note-open{font-size:17px;margin-top:auto;text-decoration:underline;text-underline-offset:4px}
.board-scribble{font:21px monospace;text-align:center;margin-top:27px;color:#516652}
.expanded-note{padding:18px 12px}
#all-notes{color:#30483d;background:none;border-color:#30483d70;padding:6px 12px;font-size:18px}
.expanded-note h3{font:500 35px 'Space Grotesk',sans-serif;margin:20px 0 12px}
.expanded-note p{max-width:840px}
.board-diagram{font:26px monospace;letter-spacing:1px;border:2px dashed #30483d60;padding:22px;margin-top:25px;text-align:center}
@media(max-width:600px){#room-back{top:98px;font-size:13px} .immersive #lab{min-height:100svh}}

.immersive header{background:linear-gradient(#0b1516e8, #0b151600)}
.immersive footer{visibility:hidden}
.returning #hotspots{visibility:hidden}

.terminal form label{white-space:nowrap;flex-shrink:0}.terminal input{min-height:44px}

/* Quiet framing: the room is the main interface. */
header{height:96px;padding:25px 34px}
.brand{display:flex;flex-direction:column;gap:5px;letter-spacing:0;font-family:'DM Sans',sans-serif}
.brand strong{font-size:17px;font-weight:500}
.brand>span{font-size:12px;color:#a7afa8;font-weight:400;letter-spacing:.1px}
#view-toggle{border:0;background:transparent;font-size:13px;padding:12px 0}
#view-toggle span{margin-left:14px}
.intro,.scene-label,footer{display:none}
.hint{bottom:24px;color:#a8b1a9;letter-spacing:.3px;font:12px 'DM Sans',sans-serif;pointer-events:none}
.hotspot{width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;font-size:0;gap:0;color:#f1eddb;overflow:visible}
.hotspot>span{width:30px;height:30px;padding:0;border:1px solid #e1dbc299;border-radius:50%;display:flex;align-items:center;justify-content:center;font:11px monospace;background:#18201de0;color:#e8dbb7;flex-shrink:0;box-shadow:0 2px 10px #0003}
.hotspot>b{display:none}
.hotspot:hover,.hotspot:focus-visible{width:auto;height:34px;padding-right:12px;border-radius:20px;gap:10px;background:#17201eee;font-size:13px}
#room-back{top:98px;left:34px;border:0;background:#131c17df;font-size:13px;padding:10px 14px;border-radius:4px}
.immersive header{background:linear-gradient(#101713b8,transparent)}
#startup{position:fixed;inset:0;z-index:20;display:grid;place-items:center;background:#161c19;color:#eaece2}
.startup-inner{width:min(420px,calc(100% - 48px));text-align:center}
.startup-kicker{font:11px monospace;letter-spacing:2.5px;color:#adaf9b;margin:0 0 25px}
.startup-inner h1{font:400 clamp(36px,6vw,54px)/1.15 'Space Grotesk',sans-serif;letter-spacing:-2px;margin:0 0 22px}
.startup-description{font-size:16px;line-height:1.7;color:#a8afa7;margin:0 0 32px}
#enter-workspace{display:block;margin:auto;min-width:205px;padding:14px 23px;background:#dbddc8;color:#1a251e;border:0;border-radius:3px;font-size:14px}
#enter-workspace:hover{background:#eef0dc}
#enter-workspace:disabled{opacity:.55;cursor:wait}
#startup-simple{display:block;margin:14px auto 0;border:0;background:transparent;color:#aeb7ad;padding:9px;font-size:13px}
#startup-simple:hover{color:#e7e9da}
#startup-status{font:11px monospace;color:#88958a;letter-spacing:.3px;min-height:20px;margin-top:25px}
.startup-footnote{position:absolute;bottom:30px;font:10px monospace;letter-spacing:3px;color:#778579}
.booting main,.booting header{visibility:hidden}
body.simple #simple{padding-top:140px}
@media(max-width:600px){header{padding:22px} .brand strong{font-size:15px}.brand>span{font-size:11px}#room-back{left:22px;top:90px}.hint{font-size:11px}.hotspot>span{width:34px;height:34px}.hotspot{width:34px;height:34px}}

/* Sound controls stay quiet and accessible beside the view switch. */
header{gap:24px}.brand{margin-right:auto}.audio-controls{display:flex;align-items:center;gap:12px}.audio-toggle{font-size:12px;background:transparent;border:0;padding:10px 4px;white-space:nowrap}.volume-label{display:flex;align-items:center;gap:7px;font-size:11px;color:#b9c1b7}.volume-label input{width:65px;accent-color:#d9ddc6;cursor:pointer}.volume-label output{width:28px;font-size:11px}.startup-audio{display:block;margin:4px auto 0;padding:6px 12px;background:transparent;border:1px solid #7d8b7750;color:#b8c0b3;font-size:12px}.audio-toggle:disabled{opacity:.5}@media(max-width:700px){header{gap:8px;flex-wrap:wrap}.audio-controls{position:absolute;right:22px;top:73px;background:#141c18dd;padding:2px 8px;border-radius:4px}.volume-label{font-size:0}.volume-label input{width:50px}.volume-label output{display:none}.audio-toggle{font-size:11px}.immersive #room-back{top:113px}}

.camera-controls{display:flex;align-items:center;gap:8px;color:#b9c1b7;font-size:12px;white-space:nowrap}.camera-controls select{background:#1c2720;color:#e2e8d8;border:1px solid #677262;border-radius:4px;font:inherit;padding:7px}.simple .camera-controls{display:none}#scene canvas:focus-visible{outline:2px solid #d9ddc6;outline-offset:-4px}@media(max-width:850px){header{gap:12px}.camera-controls{position:absolute;left:34px;top:76px}.immersive #room-back{top:122px}}@media(max-width:600px){.camera-controls{left:22px}}

/* The close-up uses the exact artwork mapped onto the room mesh. */
.surface-whiteboard{padding:0;box-shadow:none;line-height:0}.surface-whiteboard img{width:100%;height:100%;display:block}.simple-whiteboard{display:block;width:100%;height:auto;border:10px solid #6b4c34;border-radius:2px}


.lamp-hinge{position:absolute;z-index:3;transform:translate(-50%,-50%);width:30px;height:30px;border:1px solid #cfba8255;border-radius:50%;padding:0;background:#25302680;color:#ead8ac;cursor:grab;touch-action:none;font:17px monospace}.lamp-hinge span{opacity:0}.lamp-hinge:hover span,.lamp-hinge:focus-visible span,.lamp-hinge.dragging span{opacity:1}.lamp-hinge:hover,.lamp-hinge:focus-visible,.lamp-hinge.dragging{border-color:#ddc99b;background:#253026ee}.lamp-hinge.dragging{cursor:grabbing}.lamp-hinge[hidden]{display:none}

.lamp-hinge-leader{position:absolute;z-index:2;height:1px;background:#cfba8266;transform-origin:left center;pointer-events:none}
.lamp-hinge-leader[hidden]{display:none}

.direct-drag,.direct-drag:hover,.direct-drag.dragging{background:transparent;border:0;border-radius:0;box-shadow:none;color:transparent;outline:none;cursor:grab;touch-action:none}
.direct-drag.dragging{cursor:grabbing}
.direct-drag:focus-visible{outline:1px dashed #cfba82;outline-offset:2px;background:transparent}

.object-controls-toggle{position:absolute;right:24px;top:130px;z-index:5;padding:7px 10px;border:1px solid #677262;border-radius:4px;background:#1c2720;color:#e2e8d8;font-family:inherit;font-size:12px;cursor:pointer}
.booting .object-controls-toggle,.immersive .object-controls-toggle,.returning .object-controls-toggle{display:none}
.show-object-controls .direct-drag{background:#253026bb;border:1px solid #cfba8299;border-radius:50%;color:#ead8ac}
.show-object-controls .direct-drag::after{content:'↔';font:16px monospace}
.show-object-controls .direct-drag[aria-orientation=vertical]::after{content:'↕'}
.show-object-controls .direct-drag:hover{background:#253026ee;border-color:#ddc99b}

/* Premium look: the room carries the navigation, so the chrome stays out of the way. */
.look-premium .settings{position:relative}
.look-premium .settings-toggle{width:34px;height:34px;padding:0;border:1px solid #ffffff1c;border-radius:50%;background:#121916a8;color:#d9ddcc;font-size:18px;line-height:1}
.look-premium .settings-toggle[aria-expanded=true]{border-color:var(--accent)}
.look-premium .settings-panel{position:absolute;right:0;top:44px;z-index:6;display:grid;gap:14px;min-width:230px;padding:16px;background:#111815f2;border:1px solid #ffffff18;border-radius:8px;box-shadow:0 18px 50px #0008;backdrop-filter:blur(8px)}
.look-premium .settings-panel[hidden]{display:none}
.look-premium .settings-panel .volume-label{font-size:12px;justify-content:space-between}
.look-premium .settings-panel .volume-label input{width:110px}
.look-premium .settings-panel .volume-label output{display:inline;width:32px}
.look-premium .settings-panel .camera-controls{position:static;justify-content:space-between}
.look-premium .settings-panel .object-controls-toggle{position:static;display:block;width:100%;text-align:left}
.look-premium .hotspot{opacity:0;pointer-events:none;transition:opacity .5s ease}
.look-premium .reveal-hotspots .hotspot,.look-premium .hotspot.is-hovered,.look-premium .hotspot:focus-visible{opacity:1;pointer-events:auto}
.look-premium .hotspot.is-hovered{width:auto;height:34px;padding-right:12px;border-radius:20px;gap:10px;background:#17201eee;font-size:13px}
.look-premium .hint{transition:opacity .8s ease}
.look-premium .explored .hint{opacity:0}
.look-premium .surface-whiteboard img{filter:brightness(.82)}

/* Monitor power: the screen collapses to a bright line and fades, like a CRT switching off. */
.surface-terminal{clip-path:inset(0);transition:clip-path .2s ease-in,opacity .14s ease .16s,filter .2s}
.surface-terminal.powered-off{clip-path:inset(49.6% 3% 49.6% 3%);opacity:0;filter:brightness(2.2);pointer-events:none!important}
/* Tetris fits inside the existing projected CRT screen. */
.os-content.tetris-content{padding:10px 20px;overflow:hidden}
.tetris-game{display:flex;justify-content:center;gap:24px;height:100%;outline:none;font-size:16px}
.tetris-game:focus-visible{outline:2px solid #bfd79d;outline-offset:3px}
.tetris-playfield{position:relative;height:100%;aspect-ratio:1/2;flex-shrink:0;border:1px solid #647c57;box-sizing:border-box}
.tetris-board{display:block;width:100%;height:100%;image-rendering:pixelated}
.tetris-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#07110cd9;color:#d5e6b7;font-size:17px;text-align:center;pointer-events:none}
.tetris-overlay[hidden]{display:none}
.tetris-info{position:relative;min-width:310px;max-width:460px;flex:1}
.world-surface .tetris-info h2{font:bold 23px monospace;margin:0 0 3px}
.tetris-info [role=status]{font-size:14px;color:#d8c282}
.tetris-info dl{display:flex;gap:9px;margin:10px 0;font-size:16px}
.tetris-info dd{margin:0 10px 0 0;color:#edf1d7}
.tetris-preview{position:absolute;right:0;top:0;display:flex;align-items:center;gap:6px;font-size:13px}
.tetris-next{width:44px;height:44px;image-rendering:pixelated}
.tetris-actions,.tetris-touch{display:flex;gap:7px}
.world-surface .tetris-info button{background:#263c2b;color:#d4e5b8;border:1px solid #8b9e73;border-radius:2px;padding:6px 9px;font-size:15px;cursor:pointer;touch-action:manipulation}
.tetris-info button:disabled{opacity:.4;cursor:default}
.world-surface .tetris-info p{font:14px/1.5 monospace;margin:8px 0}
.world-surface .tetris-info .tetris-credit{font-size:13px;margin-top:9px}
.tetris-credit a{color:#d4c18f;text-underline-offset:3px}

/* ?fps meter */
.fps-meter{position:fixed;left:12px;bottom:12px;z-index:30;padding:6px 10px;border-radius:4px;background:#0b110ee6;color:#cfe3b8;font:12px/1.4 monospace;pointer-events:none}

/* The handles toggle sits in the scene's lower right corner so it is easy to find. */
.look-premium .object-controls-toggle.floating{top:auto;right:24px;bottom:20px;padding:9px 14px;border:1px solid #d9ddc655;border-radius:20px;background:#121916d9;color:#e8ebd9;font-size:13px;box-shadow:0 6px 20px #0006;backdrop-filter:blur(6px)}
.look-premium .object-controls-toggle.floating::before{content:'✥';margin-right:8px;color:var(--accent)}
.look-premium .object-controls-toggle.floating:hover,.look-premium .object-controls-toggle.floating[aria-pressed=true]{border-color:var(--accent)}
@media(max-width:700px){.look-premium .object-controls-toggle.floating{top:96px;right:16px;bottom:auto;font-size:12px}}

/* Contact tab: one link per line. */
.contact-links{flex-direction:column;gap:6px}
.contact-links a{margin-top:6px}
.simple-experience-title{margin:28px 0 4px}

/* Phones: a "best on desktop" note, a tidier header, flat readable close-ups and a swipeable whiteboard. */
.startup-mobile-note,.mobile-note,.board-swipe{display:none}
@media(max-width:700px){
 .startup-mobile-note{display:block;margin:22px auto 0;max-width:300px;padding:10px 14px;border:1px solid #ffffff1c;border-radius:8px;font-size:13px;line-height:1.6;color:#aeb7ad}
 .mobile-note{display:block;margin:0 0 28px;padding:10px 14px;border:1px solid #ffffff1c;border-radius:8px;font-size:13px;line-height:1.6;color:#aeb7ad}
 header{flex-wrap:nowrap}
 .brand>span{display:none}
 .look-premium .audio-controls{position:static;padding:0;background:none}
 .look-premium .audio-toggle{font-size:12px}
 #simple-content>article{min-width:0}
 .board-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:2px}
 .board-scroll .simple-whiteboard{width:900px;max-width:none}
 .board-swipe{display:block;margin:8px 0 0;font:12px monospace;color:#88958a}
}

/* The settings menu drops down over the in-scene buttons rather than under them. */
.look-premium header{z-index:7}
