:root{--ser:Georgia,serif;--bg:#18271f;--fg:#f7f6ef;--ln:#bcc4b8;--mu:#9ca89b;--bl:#89b69c}
#desk{height:700vh;padding:0}
.dk{position:sticky;top:0;height:100svh;background:radial-gradient(70% 60% at 30% 20%,#2a1d10,#0b0907);overflow:hidden}
#dc{display:block;width:100%;height:100%}
.dt{position:absolute;left:6vw;bottom:9vh;font-size:clamp(3rem,9vw,8rem);pointer-events:none;text-shadow:0 4px 40px rgba(0,0,0,.6)}
.dh{position:absolute;left:6vw;bottom:5vh;color:var(--mu);font-size:.9rem;pointer-events:none}
#object-viewer[hidden]{display:none!important}
#object-viewer{position:fixed;inset:0;z-index:310;display:flex;align-items:center;justify-content:center;padding:66px 20px 32px;background:rgba(3,4,8,.86);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);animation:viewerFade .3s ease both}
#object-viewer .viewer-paper{position:relative;max-width:min(900px,94vw);max-height:calc(100dvh - 125px);display:flex;flex-direction:column;align-items:center;gap:15px;animation:paperArrive .55s cubic-bezier(.16,1,.3,1) both}
#object-viewer .viewer-paper img{display:block;max-width:100%;max-height:calc(100dvh - 165px);object-fit:contain;border:8px solid #f2ede1;background:#f2ede1;box-shadow:0 35px 100px #000a,7px 9px 0 #c9c0ad;border-radius:3px}
#object-viewer .viewer-paper p{font-size:13px;letter-spacing:.08em;color:#d4d8e2;text-align:center}
#viewer-close{position:fixed;right:clamp(15px,5vw,65px);top:24px;z-index:3;padding:10px 19px;border:1px solid #ffffff55;border-radius:99px;background:#171a24;color:white}
#omar-card-layer[hidden]{display:none!important}
#omar-card-layer{position:fixed;inset:0;z-index:320;display:grid;place-items:center;padding:60px 18px;background:#02040bdc;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);animation:viewerFade .3s both}
#omar-card-layer .card-stage{width:min(570px,90vw);perspective:1400px;animation:paperArrive .6s cubic-bezier(.16,1,.3,1) both}
#omar-card-layer .card-3d{width:100%;aspect-ratio:1.7;position:relative;transform-style:preserve-3d;transition:transform .9s cubic-bezier(.2,.8,.2,1)}
#omar-card-layer .card-3d.flipped{transform:rotateY(180deg)}
#omar-card-layer .card-side{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:17px;overflow:hidden;padding:8%;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,#18233b,#080b12 76%);border:1px solid #7595d755;box-shadow:0 25px 80px #0009,0 0 35px #3b82ff15}
#omar-card-layer .card-side:after{content:'';position:absolute;inset:13px;border:1px solid #a7bdef55;border-radius:9px;pointer-events:none}
#omar-card-layer .card-side.back{transform:rotateY(180deg);background:linear-gradient(140deg,#0c1223,#111e3d)}
#omar-card-layer .card-name{font:italic clamp(70px,13vw,130px)/.95 'Instrument Serif',Georgia,serif;color:#fff}
#omar-card-layer .card-caption{font-size:clamp(10px,1.8vw,15px);letter-spacing:.24em;color:#8eb1ff;margin-top:18px}
#omar-card-layer .card-side.back h3{font:italic clamp(36px,7vw,60px)/1 'Instrument Serif',Georgia,serif;margin-bottom:20px}
#omar-card-layer .card-side.back a{font-size:clamp(13px,2.5vw,19px);color:#cddcff;overflow-wrap:anywhere;margin-top:13px}
#omar-card-layer .card-side.back small{color:#9aabc8;margin-top:14px}
#omar-card-layer .card-controls{display:flex;justify-content:center;gap:12px;align-items:center;margin-top:36px;flex-wrap:wrap}
#omar-card-layer .card-controls button{padding:11px 26px;border-radius:99px;background:#fff;color:#11182c;font-weight:600}
#omar-card-layer .card-controls .card-exit{background:transparent;color:white;border:1px solid #ffffff66}
#dc{cursor:pointer;touch-action:pan-y}
@media(prefers-reduced-motion:reduce){#omar-card-layer .card-3d{transition:none}
#object-viewer .viewer-paper,#omar-card-layer .card-stage,#lb img{animation:none}}
a,button,summary,[role="button"],.art img,.art.im,.page,.book-page,[data-book-action],canvas[data-clickable]{cursor:pointer!important}
#lb,#object-viewer,#omar-card-layer,#ov{overscroll-behavior:contain}
#lbx,#viewer-close,#omar-card-exit,#ovb{min-height:44px;min-width:44px}
@media(max-width:600px){#omar-card-layer .card-name{font-size:clamp(3rem,15vw,6rem)}
#omar-card-layer .card-side.back h3{font-size:clamp(1.7rem,7vw,3rem)}
#omar-card-layer .card-side.back a{font-size:clamp(.75rem,3vw,1rem)}
#omar-card-layer .card-controls{margin-top:18px}}
@media(max-height:500px) and (orientation:landscape){.dk{min-height:420px}}
@media(prefers-reduced-motion:reduce){#desk{height:auto!important}
#desk .dk{position:relative!important;height:80svh!important}}
@media(prefers-reduced-transparency:reduce){nav ul,.bf,.tk,.mq,#lb,#object-viewer,#omar-card-layer{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
@media print{nav,#gl,#ld,#cur,#pg,.mq,#desk,#p3{display:none!important}}
@media(max-width:900px),(pointer:coarse){#object-viewer,#omar-card-layer,#lb{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
#desk .dt{font-family:Arial,sans-serif;font-size:clamp(32px,4.5vw,70px);font-weight:400;letter-spacing:-.055em;max-width:520px;line-height:1.02;top:9%;left:6%;text-align:left}
#desk .dh{top:auto;bottom:10%;left:6%;color:#d0cbbd}
.book-controls{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);display:flex;gap:22px;align-items:center;z-index:4;padding:8px;border:1px solid #ffffff26;border-radius:40px;background:#111b;backdrop-filter:blur(14px);color:#eee9d9}
.book-controls button{width:44px;height:44px;border-radius:50%;border:1px solid #ffffff38;background:#ffffff0c;color:#fff;font-size:22px;cursor:pointer}
.book-controls button:hover{background:#ffffff28}
.book-controls span{font:10px Arial,sans-serif;letter-spacing:2px;min-width:135px;text-align:center}
#dc:focus-visible{outline:2px solid #e3d4ad;outline-offset:-5px}
.book-fallback{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}
#desk .dk{background:#100e09}
#desk .dt{font-size:clamp(30px,4vw,58px);max-width:560px;top:13%;left:6%}
#desk .dh{font-size:11px;letter-spacing:.1em;bottom:13%}
.book-controls{bottom:28px;padding:5px;gap:12px;border-color:#b5b79c32;background:#151810c9}
.book-controls button{width:37px;height:37px;font-size:18px}
.book-controls span{font-size:9px;letter-spacing:1.5px}
.book-controls button:disabled{opacity:.25;cursor:default!important}
.viewer-paper{max-width:min(92vw,1400px)!important}
.viewer-paper img{max-height:80vh;width:auto;max-width:100%;object-fit:contain}
@media(max-width:600px){#desk .dt{top:17%;font-size:34px;max-width:85%}
#desk .dh{bottom:19%}
.book-controls{bottom:12%}}
.folio-scene{position:absolute;inset:0;overflow:hidden;background:radial-gradient(ellipse at 31% 80%,#82785670 0,transparent 45%),radial-gradient(ellipse at 50% 45%,#28271d 0,#0e0e09 70%);perspective:1800px}
.folio-scene:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(1deg,transparent 0 2px,#c8b7880c 2px 3px,transparent 3px 7px);pointer-events:none}
.folio-heading{position:absolute;top:16%;left:7%;color:#f0eedf;font:400 clamp(30px,4vw,58px)/1 Arial,sans-serif;letter-spacing:-.055em;transition:opacity .5s}
.folio-book{position:absolute;top:43%;left:50%;width:min(80vw,1120px);aspect-ratio:3.125;transform:translate(-50%,-30%) rotateX(20deg) rotateZ(-2deg);transform-style:preserve-3d;transition:transform .95s cubic-bezier(.25,.7,.2,1)}
.folio-book:before{content:'';position:absolute;inset:-5px -6px -10px;background:#131711;border-radius:2px;box-shadow:0 3px 0 #35362b,0 7px 0 #b6b19b,0 9px 0 #21251b,12px 22px 35px #000c;transform:translateZ(-2px)}
.folio-book.is-closed{transform:translate(-75%,-30%) rotateX(20deg) rotateZ(-8deg)}
.folio-book.is-closed:before{left:50%}
.folio-book.is-closed>.folio-left{visibility:hidden}
.folio-book>canvas{position:absolute;top:0;width:50%;height:100%;display:block}
.folio-left{left:0}
.folio-right{right:0}
.folio-leaf{position:absolute;left:50%;top:0;width:50%;height:100%;transform-origin:left center;transform:rotateY(0deg) translateZ(1px);transform-style:preserve-3d;display:none;transition:transform .9s cubic-bezier(.3,.1,.25,1);z-index:3}
.folio-leaf canvas{position:absolute;inset:0;width:100%;height:100%;backface-visibility:hidden}
.folio-front{transform:translateZ(.5px)}
.folio-back{transform:rotateY(180deg) translateZ(.5px)}
.folio-leaf.turning{transform:rotateY(-180deg) translateZ(1px)}
.folio-leaf.reverse{left:0;transform-origin:right center}
.folio-leaf.reverse.turning{transform:rotateY(180deg) translateZ(1px)}
.folio-controls{position:absolute;bottom:18%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:16px;border:1px solid #eee8cd30;background:#191b13bb;padding:6px;border-radius:40px;color:#e7e7d3}
.folio-controls span{font:9px Arial;letter-spacing:1.6px;min-width:130px;text-align:center}
.folio-controls button{border:1px solid #eee8cd38;border-radius:50%;width:38px;height:38px;background:#ffffff08;color:inherit;font-size:20px;cursor:pointer}
.folio-controls button:disabled{opacity:.25;cursor:default!important}
.folio-help{position:absolute;bottom:12%;width:100%;text-align:center;font:10px Arial;color:#aaa995;letter-spacing:1px}
.folio-coffee{position:absolute;right:1%;top:26%;width:100px;height:100px;border-radius:50%;background:radial-gradient(circle at 48% 43%,#44210a 0 26%,#997344 28%,#352511 30%,#e3ddc9 32% 40%,#a9a590 43%,#e8e2d0 47% 65%,#b5b09d 67%,#e3ddc9 70%);box-shadow:10px 16px 20px #000b;transform:rotateX(25deg)}
.folio-coffee:after{content:'';position:absolute;right:14%;top:31%;width:13px;height:27px;border:5px solid #ddd7c1;border-radius:40%;transform:rotate(35deg)}
.folio-pen{position:absolute;left:4%;top:65%;width:100px;height:5px;background:linear-gradient(90deg,#baac7b 0 9%,#141812 10% 88%,#8f9779 90%);transform:rotate(-47deg);box-shadow:4px 8px 5px #000}
.folio-card{position:absolute;right:1%;top:68%;width:100px;height:55px;background:#e4dfcd;color:#303727;font:13px Arial;display:grid;place-items:center;transform:rotate(-12deg);box-shadow:5px 9px 14px #000b}
@media(max-width:600px){.folio-book{width:92vw;transform:translate(-50%,-20%) rotateX(12deg) rotateZ(-2deg)}
.folio-book.is-closed{transform:translate(-75%,-20%) rotateX(12deg) rotateZ(-8deg)}
.folio-heading{top:20%;font-size:33px}
.folio-coffee{width:62px;height:62px;right:0;top:37%}
.folio-card{width:65px;height:37px;top:66%;font-size:10px}
.folio-pen{width:65px;top:64%;left:1%}
.folio-controls{bottom:16%}
.folio-help{bottom:11%}}
@media(prefers-reduced-motion:reduce){#desk{height:700vh!important}
#desk .dk{position:sticky!important;top:0;height:100svh!important}
.folio-book,.folio-leaf{transition:none}}
#ov{position:fixed;inset:0;z-index:99999;overflow:auto;background:#000;color:#fff;scroll-behavior:smooth;font-family:system-ui,sans-serif}
#ov[hidden]{display:none}
#ov *{box-sizing:border-box}
#ov button{font:inherit;cursor:pointer}
#ov select,#ov input{font:inherit}
#ovb{position:fixed;top:10px;left:10px;z-index:9;background:rgba(0,0,0,.75);color:#fff;border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(10px);border-radius:99px;padding:8px 16px;font-weight:600;font-size:.85rem}
#ovt{display:none}
#ovb{z-index:100000!important}
#ov .fl nav{position:relative;top:auto;left:auto;right:auto;z-index:1;opacity:1;transform:none;transition:none;padding:10px 12px 10px 22px}
#ov:has(.fl) #ovb{background:#141414;color:#fff;border:1px solid #141414;backdrop-filter:none;box-shadow:0 4px 16px rgba(0,0,0,.25)}
#ov:has(.fl) .fl{padding-top:72px}
@media(prefers-reduced-motion:reduce){#desk{height:auto!important}
#desk .dk{position:relative!important;height:85svh!important}}
@media (max-width: 900px) and (pointer: coarse){#desk{height:460svh}
#desk .dk{height:100svh;min-height:0}
#desk #dc{touch-action:pan-y}
#desk .dt{top:12%;left:6%;font-size:clamp(28px,7vw,44px);max-width:88%;line-height:1.05}
#desk .dh{bottom:22%;font-size:11px;max-width:88%}
#desk .book-controls{bottom:calc(10% + env(safe-area-inset-bottom,0px));gap:12px;z-index:5}
#desk .book-controls button,#desk .folio-controls button{width:48px;height:48px;flex:none}
#desk .folio-scene{background:radial-gradient(ellipse at 50% 48%,#635640 0,#29241a 45%,#100e09 85%)}
#desk .folio-book{width:90%;max-width:650px;top:48%;transform:translate(-50%,-50%) rotateX(12deg) rotateZ(-2deg);touch-action:pan-y}
#desk .folio-book.is-closed{transform:translate(-75%,-50%) rotateX(12deg) rotateZ(-5deg)}
#desk .folio-heading{top:15%;left:6%;font-size:clamp(28px,7vw,44px);max-width:88%}
#desk .folio-coffee{top:29%;right:7%;width:clamp(48px,15vw,85px);height:auto;aspect-ratio:1}
#desk .folio-pen{top:64%;left:6%;width:80px}
#desk .folio-card{top:65%;right:6%;width:78px;height:44px}
#desk .folio-controls{bottom:calc(12% + env(safe-area-inset-bottom,0px));gap:8px;max-width:94%}
#desk .folio-help{bottom:calc(6% + env(safe-area-inset-bottom,0px));padding:0 12px}
#desk .folio-book>canvas,#desk .folio-leaf canvas{object-fit:fill}}
@media (max-height:500px) and (orientation:landscape) and (pointer:coarse){#desk .dt,#desk .folio-heading{font-size:24px;top:12%;max-width:35%}
#desk .folio-book{width:min(56vw,75vh * 3.125);top:50%}
#desk .folio-controls,#desk .book-controls{bottom:5px}
#desk .folio-help,#desk .dh{display:none}}
#desk{height:700vh;height:700svh;overflow:visible}
#desk .dk{position:sticky;top:0;height:100vh;height:100svh;min-height:0;overflow:hidden}
#desk #dc{width:100%;height:100%;max-width:none;touch-action:pan-y}
#desk.folio-active .folio-book{transition:none;transform:translate(calc(-75% + var(--opening,0)*25%),-50%) rotateX(20deg) rotateZ(-2deg);top:49%;width:min(82vw,1120px)}
#desk.folio-active .folio-leaf{transition:none;transform-style:preserve-3d;-webkit-transform-style:preserve-3d}
#desk.folio-active .folio-leaf canvas{-webkit-backface-visibility:hidden;backface-visibility:hidden}
@media(max-width:900px){#desk{height:580vh;height:580svh}
#desk.folio-active .folio-book{width:min(94vw,650px);top:49%}
#desk .folio-heading{top:16%}
#desk .folio-controls{bottom:15%}
#desk .folio-help{bottom:9%}}
@media(max-height:500px) and (orientation:landscape){#desk.folio-active .folio-book{width:min(65vw,150vh);top:49%}
#desk .folio-controls{bottom:2%}
#desk .folio-help{display:none}}
@media(prefers-reduced-motion:reduce){#desk{height:auto!important}
#desk .dk{position:relative!important;height:85svh!important}}
#desk .folio-book,#desk .folio-scene{touch-action:pan-y}
#desk .folio-controls button{min-width:44px;min-height:44px}
#desk .folio-leaf{pointer-events:none}
@media(max-width:900px),(pointer:coarse){#desk .dk{height:100svh;min-height:0;isolation:isolate}
#desk #dc{width:100%;height:100%;image-rendering:auto}
#desk .dt,#desk .folio-heading{top:max(84px,13%);left:5%;max-width:90%;font-size:clamp(25px,6.8vw,42px);line-height:1.05}
#desk .dh{bottom:17%;left:5%;max-width:90%;font-size:11px}
#desk .book-controls,#desk .folio-controls{bottom:max(28px,calc(7% + env(safe-area-inset-bottom,0px)));max-width:94%;gap:8px}
#desk .folio-help{bottom:max(6px,calc(2% + env(safe-area-inset-bottom,0px)));font-size:10px}
#desk.folio-active .folio-book{width:min(90vw,650px);top:49%}
#desk .folio-book canvas{image-rendering:auto}}
@media(max-height:500px) and (orientation:landscape){#desk .dt,#desk .folio-heading{top:74px;font-size:20px;max-width:30%}
#desk .dh,#desk .folio-help{display:none}
#desk .book-controls,#desk .folio-controls{bottom:5px}
#desk.folio-active .folio-book{width:min(64vw,175svh);top:48%}}
#desk{color:white;position:relative}#desk button,#object-viewer button,#omar-card-layer button{cursor:pointer}#desk .dt,#desk .dh{color:white}#ov{color:#eef1f6;background:#101411}
