/* Isolated CRT concept. All physical motion belongs to the computer, never the room. */
[data-opening-preview="computer"]{--crt-ink:#242827;--crt-paper:#d7d1be}
.computer-story{height:215svh;position:relative;z-index:3;margin-bottom:-100svh;pointer-events:none}
.computer-stage{height:100svh;position:sticky;top:0;overflow:hidden;isolation:isolate;pointer-events:auto;background:#414641;color:#eeeae0;perspective:1600px;perspective-origin:50% 45%}
.studio-room{position:absolute;inset:0;background:radial-gradient(ellipse at 20% 20%,#8c928579,transparent 70%),linear-gradient(105deg,#5d635b,#3b403c 75%);pointer-events:none}
.studio-room:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,#00000002 0 1px,transparent 1px 4px);opacity:.5}
.studio-window{position:absolute;left:-5%;top:10%;width:32%;height:49%;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px;border:11px solid #343c37;background:#343c37;transform:skewY(-8deg);box-shadow:18px 17px 0 #232c2a26,0 0 60px #c1b48b16}
.studio-window i{background:linear-gradient(135deg,#c0c4ac,#8a9a89 65%,#657c70);box-shadow:inset 0 0 0 2px #4b5d4f}
.studio-window:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,#f2e3b326,transparent 60%)}
.wall-plaque{position:absolute;right:9%;top:23%;color:#bbb9a7;border-top:1px solid #979d8d80;padding-top:14px;font:500 24px/1.4 'Space Grotesk',sans-serif;letter-spacing:.2em}
.wall-plaque small{font:9px/2 system-ui,sans-serif;letter-spacing:.16em;color:#9fa795}
.desk-surface{position:absolute;left:0;right:0;top:var(--desk-y,70%);bottom:-3%;background:repeating-linear-gradient(2deg,transparent 0 5px,#3d2b1d16 6px 7px,transparent 8px 18px),linear-gradient(#746049,#967756 30%,#795b3e);border-top:3px solid #a68b68;box-shadow:0 -24px 60px #17201a40}
.desk-surface:after{content:'';position:absolute;inset:0;background:linear-gradient(115deg,#e7d3a126,transparent 50%,#251b1238)}
.desk-edge{position:absolute;left:0;right:0;bottom:0;height:12px;background:linear-gradient(#4b3829,#382c23);border-top:2px solid #b08d64}
.desk-shadow{position:absolute;left:50%;top:var(--desk-y);width:calc(590px * var(--computer-fit));height:calc(170px * var(--computer-fit));translate:-50% -15%;background:#10181280;filter:blur(16px);border-radius:50%}
.workstation-fit{position:absolute;left:50%;top:50%;width:720px;height:660px;margin-left:-360px;margin-top:-330px;transform:scale(var(--computer-fit,.8));transform-style:preserve-3d;pointer-events:none}
.computer-rig{position:absolute;inset:0;transform-style:preserve-3d;transform-origin:50% 50%;will-change:transform}
.monitor-cabinet{position:absolute;left:80px;top:20px;width:560px;height:440px;transform-style:preserve-3d}
.case-face{position:absolute;backface-visibility:hidden;border:1px solid #8b8878}
.case-front{inset:0;transform:translateZ(90px);background:linear-gradient(115deg,#e5dfca,#cbc4ae 68%,#b8b29d);border-radius:19px 19px 14px 14px;box-shadow:inset 2px 3px 1px #fff7, inset -3px -4px 2px #7b786369; padding:29px 29px 67px}
.screen-bevel{height:100%;padding:12px;background:linear-gradient(145deg,#9b9988,#575d55 52%,#c8c6b0);border-radius:39px 39px 31px 31px;box-shadow:inset 1px 3px 5px #323a35b0,0 2px 1px #f6efd1;}
.crt-screen{position:relative;width:100%;height:100%;border-radius:29px 29px 24px 24px;overflow:hidden;background:#07100e;box-shadow:inset 0 0 22px #000c;isolation:isolate}
.crt-screen>img,.crt-screen>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;max-width:none}
#computer-film{opacity:0;object-fit:cover;background:#010715}
.screen-glass{position:absolute;inset:0;z-index:4;border-radius:inherit;background:linear-gradient(125deg,#eaf7ec19,transparent 35%,transparent 75%,#00000017);box-shadow:inset 0 0 10px 3px #102c2b80;pointer-events:none}
.case-brand{position:absolute;bottom:24px;left:35px;color:#4d564b;font:700 14px/1 system-ui,sans-serif;letter-spacing:.06em;display:flex;gap:7px;align-items:center}
.case-brand small{font:7px/1 system-ui,sans-serif;letter-spacing:.1em;margin-left:9px;color:#727868}
.case-mark{font-size:24px;color:#566754}
.screen-controls{position:absolute;bottom:26px;right:31px;display:flex;gap:10px;align-items:center}
.screen-controls i{width:19px;height:7px;border-radius:3px;background:#929381;box-shadow:0 1px 1px #f1ead4,inset 0 1px 2px #4d5747}
.screen-controls b{width:8px;height:8px;margin-left:10px;border-radius:50%;background:#9bc177;box-shadow:inset 0 0 0 2px #626e4f}
.case-back{inset:0;transform:translateZ(-90px) rotateY(180deg);background:linear-gradient(135deg,#bcb8a3,#9e9e8b);border-radius:12px}
.case-left,.case-right{top:0;width:180px;height:440px;background:linear-gradient(90deg,#a4a38f,#cec8b3);border-radius:11px}
.case-left{left:-90px;transform:rotateY(-90deg)}
.case-right{right:-90px;transform:rotateY(90deg);background:linear-gradient(90deg,#c6c1ac,#989d8a)}
.case-top,.case-bottom{left:0;width:560px;height:180px;background:linear-gradient(#bbb8a1,#d9d3bd);border-radius:11px}
.case-top{top:-90px;transform:rotateX(90deg)}
.case-bottom{bottom:-90px;transform:rotateX(-90deg);background:#969985}
.side-vents{position:absolute;left:35px;right:35px;bottom:45px;height:130px;background:repeating-linear-gradient(0deg,transparent 0 8px,#5c665864 9px 12px);border-radius:4px}
.back-vents{margin:40px;height:160px;background:repeating-linear-gradient(0deg,#6d7763 0 3px,transparent 4px 11px)}
.serial-plate{margin:40px;width:230px;padding:18px;background:#d8d4bd;color:#4f594b;border:1px solid #888c77;font:10px/1.5 monospace;letter-spacing:.07em}
.serial-plate span{display:block;letter-spacing:.5em;margin-top:12px;font-size:17px}
.back-ports{position:absolute;right:45px;bottom:55px;display:flex;gap:16px}.back-ports i{height:27px;width:32px;background:#525c4e;border:4px solid #959e89;border-radius:3px}
.monitor-neck{position:absolute;left:285px;top:455px;width:150px;height:54px;transform:translateZ(8px);background:linear-gradient(90deg,#898e7a,#c2c0a7 30%,#939781);border-radius:0 0 16px 16px;box-shadow:inset 0 8px 10px #4f584e60}
.monitor-foot{position:absolute;left:227px;top:497px;width:267px;height:34px;transform:translateZ(20px);background:linear-gradient(#d4cfb5,#a9ac96);border:1px solid #949b84;border-radius:60% 60% 9px 9px;box-shadow:0 8px 12px #1d251e44}
.desktop-base{position:absolute;left:60px;top:524px;width:600px;height:65px;transform:translateZ(10px);background:linear-gradient(#d4cfb5 0 8%,#a9ac97 9% 14%,#c8c6b0 15%,#b1b5a0);border:1px solid #919a83;border-radius:5px;box-shadow:0 13px 9px #17211850,inset 0 -6px #808e77}
.base-seam{position:absolute;inset:12px 20px auto;height:1px;background:#8e9781}.base-name{position:absolute;left:28px;top:30px;font:8px monospace;letter-spacing:.15em;color:#65705c}
.floppy-drive{position:absolute;top:22px;right:100px;width:140px;height:27px;background:#9da58d;border:1px solid #8a957e;box-shadow:inset 0 1px 2px #727f6b}.floppy-drive:before{content:'';position:absolute;top:8px;left:12px;right:12px;height:4px;background:#4b5848}.floppy-drive i{position:absolute;bottom:2px;right:9px;width:14px;height:6px;background:#d1d1b7}
.base-switch{position:absolute;right:30px;top:26px;width:16px;height:16px;background:#68745d;box-shadow:inset 0 0 0 3px #a6b293;border-radius:2px}
.keyboard-cable{position:absolute;inset:0;transform:translateZ(80px);fill:none;stroke:#292f26;stroke-width:5}
.keyboard{position:absolute;left:50px;top:577px;width:525px;height:160px;transform:translateZ(143px) rotateX(63deg);transform-origin:center top;padding:13px 14px;background:linear-gradient(#c0bea5,#a1a78e);border:1px solid #a6ad93;border-bottom:13px solid #7f8b72;border-radius:8px;box-shadow:0 14px 10px #26311e69}
.key-row{display:flex;gap:4px;height:23px;margin-bottom:4px;justify-content:center}.key-row i{flex:1;background:#dad9c0;border-radius:3px;border:1px solid #a1a98f;border-bottom:4px solid #9ba58d;font:8px/17px monospace;font-style:normal;text-align:center;color:#5d6954;box-shadow:0 1px 1px #626e59}.key-row .space-key{flex:7}.key-row i:first-child{background:#c5c9b0}.key-row.row-4{width:65%;margin-inline:auto}
.mouse-pad{position:absolute;left:595px;top:598px;width:110px;height:110px;transform:translateZ(100px) rotateX(67deg);background:#46513f;border:1px solid #5e6b52;border-radius:8px;box-shadow:0 8px 8px #25351c60}.mouse{position:absolute;left:28px;top:20px;width:50px;height:70px;background:linear-gradient(110deg,#d9d5ba,#a0ab90);border-radius:40% 40% 45% 45%;border-bottom:8px solid #7d8c70;box-shadow:4px 5px 6px #26382070}.mouse i{position:absolute;top:9px;bottom:42%;left:50%;width:1px;background:#8b987d}.mouse:after{content:'';position:absolute;top:37%;left:3px;right:3px;height:1px;background:#8b987d}
.desk-props{position:absolute;inset:0;pointer-events:none}.notebook{position:absolute;left:8%;top:calc(var(--desk-y) + 55px);width:160px;height:110px;transform:rotate(-13deg) skewX(12deg);background:#c6c0a2;border-left:10px solid #555c46;box-shadow:4px 7px 0 #b5b097,5px 12px 15px #312e1f5c;padding:22px 10px;color:#62684f;font:italic 12px/1.4 Georgia,serif}.notebook i{display:block;height:2px;margin-top:12px;background:#a6aa8a;width:60%}.coffee{position:absolute;right:10%;top:calc(var(--desk-y) + 28px);width:69px;height:66px;background:linear-gradient(90deg,#7c8170,#babca5 44%,#969e83);border-radius:5px 5px 32% 32%;box-shadow:3px 14px 14px #312b1f66}.coffee:before{content:'';position:absolute;inset:-9px 0 auto;height:22px;border-radius:50%;background:#403b2c;border:5px solid #b8bda5}.coffee:after{content:'';position:absolute;right:-21px;top:9px;width:24px;height:36px;border:8px solid #8b967b;border-left:0;border-radius:0 50% 50% 0}
.computer-logo{position:absolute;inset:0;display:grid;place-items:center;opacity:0;pointer-events:none;background:#020815;z-index:4}.computer-logo img{width:min(1200px,100vw);height:auto;max-width:none}
.computer-top,.computer-bottom{position:absolute;left:5%;right:5%;z-index:8;display:flex;justify-content:space-between;align-items:center;gap:16px;font:10px/1.5 system-ui,sans-serif;letter-spacing:.08em}.computer-top{top:max(25px,env(safe-area-inset-top))}.computer-top>span{color:#e9e9d8}.computer-top>div{display:flex;align-items:center;gap:24px}.computer-top a{color:#f5f2e4}.computer-top button{border:1px solid #d8dcc34a;background:#2633283b;color:#e7e9d8;padding:8px 11px;border-radius:3px;font:10px system-ui,sans-serif;backdrop-filter:blur(5px)}.computer-bottom{bottom:max(35px,env(safe-area-inset-bottom));color:#f8f0df;text-shadow:0 1px 4px #332916;font-size:9px}.computer-progress{position:absolute;top:calc(100% + 12px);height:2px;left:0;right:0;background:#ffffff25}.computer-progress i{display:block;height:100%;width:0;background:#dcc984}
@media(max-width:700px){.computer-top,.computer-bottom{left:18px;right:18px;font-size:9px}.computer-top{top:max(18px,env(safe-area-inset-top))}.computer-top>div{gap:14px}.computer-top button{font-size:9px;padding:7px}.computer-bottom{bottom:max(45px,env(safe-area-inset-bottom));align-items:flex-end}.computer-bottom>span{max-width:49%;font-size:8px}.studio-window{left:-16%;top:15%;width:45%;height:36%;border-width:8px;gap:8px;padding:8px}.wall-plaque{right:8%;top:18%;font-size:17px}.wall-plaque small{font-size:7px}.notebook{left:-35px;top:calc(var(--desk-y) + 68px);transform:rotate(-13deg) skewX(12deg) scale(.65);transform-origin:left top}.coffee{right:7%;top:calc(var(--desk-y) + 110px);transform:scale(.65);transform-origin:right top}}
@media(prefers-reduced-motion:reduce){.computer-story{height:100svh;margin-bottom:0}.computer-stage{position:relative}}
.computer-brand-field{position:absolute;inset:0;z-index:3;background:#020815;opacity:0;pointer-events:none}
.computer-emblem{position:absolute;z-index:5;max-width:none;height:auto;opacity:0;pointer-events:none}
.computer-logo{background:transparent;z-index:6}
@media(prefers-reduced-motion:reduce){.computer-emblem{display:none}}
/* The desk hardware stays put. Only the closed, six-faced CRT turns. */
.computer-rig{transform:none;will-change:auto}
.monitor-turn,.desk-hardware{position:absolute;inset:0;transform-style:preserve-3d}
.monitor-turn{transform-origin:50% 36.364%;will-change:transform}
.desk-hardware{transform:rotateY(-12deg) rotateX(4deg)}
/* As the CRT approaches, its complete assembly occludes the stationary desk. */
.computer-story.is-approaching .workstation-fit{z-index:2}
.computer-story.is-approaching .monitor-turn{z-index:2}
.computer-story.is-approaching .desk-hardware{z-index:1}
@media(max-width:700px){.workstation-fit{margin-top:-355px}}

/* Deliberate three-view navigation; the website follows at its actual header. */
.computer-story{height:100svh;margin-bottom:0;pointer-events:auto;overflow-anchor:none}
.computer-story.is-body{height:0!important;margin:0;overflow:hidden;visibility:hidden;pointer-events:none}
.computer-progress{display:none}
.computer-story[data-view="entering"] .computer-progress{display:block;width:min(280px,72vw);height:14px;left:50%;right:auto;transform:translateX(-50%);border:2px solid;border-color:#777 #eee #eee #777;background:#d4d4d4;padding:2px;box-sizing:border-box}
.computer-story[data-view="entering"] .computer-progress i{background:#245b94}
.computer-story[data-view="entering"] .computer-system-loading{position:absolute;z-index:9;top:calc(50% + clamp(100px,18vw,210px));height:18px}
.computer-system-loading::before{content:'LOADING DEV STUDIO…';position:absolute;top:calc(100% + 9px);bottom:auto;left:-20px;right:-20px;text-align:center;color:#f5f2e4;font:600 11px/1.4 system-ui,sans-serif;letter-spacing:.12em;text-shadow:0 1px 3px #020815}
.computer-story[data-view="entering"] .computer-bottom{visibility:hidden}
.computer-stage{position:relative;touch-action:pan-x pinch-zoom}
.computer-bottom #computer-hint{font:inherit;letter-spacing:inherit;color:inherit;text-shadow:inherit;border:0;background:transparent;padding:8px 0;cursor:pointer;max-width:52%;text-align:right}
.computer-bottom #computer-hint:disabled{cursor:default;opacity:.85}
.computer-top button[hidden]{display:none}
#website-top{scroll-margin-top:0}
#website-top:focus{outline:none}
.computer-stage.is-entering{position:fixed;inset:0;width:100%;z-index:30}
.computer-logo img{transform-origin:50% 50%;will-change:transform}
/* Blend only the original PNG's empty outer 6%; lettering and emblem stay opaque. */
.computer-logo img{mask-image:linear-gradient(to bottom,transparent,#000 6%,#000 94%,transparent),linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);mask-composite:intersect}
/* Two faint wisps rise from the existing cup without changing its geometry. */
.coffee>i{position:absolute;left:0;right:0;top:-4px;height:0;pointer-events:none}
.coffee>i:before,.coffee>i:after{content:'';position:absolute;bottom:0;left:22px;width:14px;height:38px;border-left:2px solid #eee9d6;border-radius:50%;opacity:0;mask-image:linear-gradient(transparent,#000 30%,#000 65%,transparent);animation:coffee-steam 4.8s ease-in-out infinite;animation-delay:-1.4s}
.coffee>i:after{left:40px;height:32px;animation-duration:5.7s;animation-delay:-3.6s}
@keyframes coffee-steam{0%{opacity:0;transform:translate(0,5px) scaleX(.8)}25%{opacity:.24}60%{opacity:.15;transform:translate(4px,-15px) scaleX(1.2)}100%{opacity:0;transform:translate(-2px,-34px) scaleX(1.5)}}
.computer-story.is-body .coffee>i,.computer-story.is-page-hidden .coffee>i,.computer-story:not([data-view="idle"]):not([data-view="loading"]):not([data-view="playing"]) .coffee>i{display:none}
@media(prefers-reduced-motion:reduce){.coffee>i{display:none}.coffee>i:before,.coffee>i:after{animation:none}}
