/* The homepage is one scene; all visible navigation belongs to an object. */
html:has(body.desk-home),body.desk-home{margin:0;width:100%;height:100%;overflow:hidden;background:#171617}
body.desk-home #main{height:100%;max-width:none;margin:0;padding:0}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.desk-hero{height:100svh;width:100%;position:relative;overflow:hidden;background:#916c4c}
.desk-scene{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:100vw;aspect-ratio:1671/941;max-height:100svh;container-type:inline-size;isolation:isolate}
.desk-scene picture{position:absolute;inset:0;display:block;pointer-events:none}
.desk-photo{display:block;width:100%;height:100%;max-width:none;object-fit:fill;transition:opacity .45s ease;user-select:none;-webkit-user-drag:none}
.desk-night{opacity:0;filter:brightness(.9) saturate(.9)}.lamp-off .desk-night{opacity:1}.lamp-off .desk-day{opacity:0}
.desk-objects{position:absolute;inset:0;display:block}
.desk-object{position:absolute;display:flex;align-items:flex-end;justify-content:center;min-width:32px;min-height:32px;appearance:none;background:transparent;border:0;border-radius:12px;padding:0;margin:0;color:#fff;font:inherit;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:manipulation;outline:none}
.desk-object:focus-visible{outline:2px solid #ff8da3;outline-offset:4px}
.desk-home .desk-object,.desk-home .desk-object:hover,.desk-home .desk-object:focus-visible{text-decoration:none}
.desk-tag{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:11px 18px;border:1px solid #ffffff40;border-radius:99px;background:linear-gradient(135deg,#ffffff17,#ffffff04),#171c1aaa;backdrop-filter:blur(18px) saturate(125%);-webkit-backdrop-filter:blur(18px) saturate(125%);color:#fff;box-shadow:inset 0 1px 0 #ffffff20,0 8px 24px #0000001f;font:500 14px/1.3 'DM Sans',Arial,sans-serif;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .16s ease,transform .16s ease,visibility .16s;pointer-events:none}
@media(hover:hover){.desk-object:hover .desk-tag{opacity:1;visibility:visible;transform:translateY(14px)}}
.desk-object:focus-visible .desk-tag,.desk-object.is-armed .desk-tag{opacity:1;visibility:visible;transform:translateY(14px)}
.desk-object:hover,.desk-object.is-armed,.desk-object:focus-visible{z-index:5}
@font-face{font-family:Caveat;src:url('assets/Caveat.ttf') format('truetype');font-weight:400 700;font-style:normal;font-display:swap}
.desk-note-copy{position:absolute;left:45.9%;top:22%;width:5.5%;height:6.3%;margin:0;display:grid;place-items:center;transform:rotate(5deg);font-family:Caveat,'Bradley Hand',cursive;font-weight:600;font-size:.92cqw;line-height:1.03;text-align:center;color:#302319;z-index:1;pointer-events:none}
.note-mobile{display:none}
@media(max-aspect-ratio:3/4){
.desk-scene{aspect-ratio:862/1825}
.desk-object{min-width:44px;min-height:44px}
.desk-tag{font-size:13px;padding:9px 12px;gap:7px}
.desk-note-copy{left:44%;top:32.3%;width:8.8%;height:3.4%;font-size:2.35cqw}
.note-desktop{display:none}.note-mobile{display:block}
/* Keep tooltips inside the phone viewport. */
.desk-cv .desk-tag,.desk-coffee .desk-tag,.desk-spotify .desk-tag{position:absolute;right:0;bottom:0}
.desk-about .desk-tag{position:absolute;left:0;bottom:0}
}
@media(prefers-reduced-motion:reduce){.desk-photo,.desk-tag{transition:none}}

@media(min-aspect-ratio:3/4) and (max-aspect-ratio:4/3){
.desk-scene{aspect-ratio:1}
.desk-note-copy{left:47%;top:25.3%;width:6.3%;height:5.5%;font-size:1.3cqw;transform:none;line-height:1.05}
.desk-about .desk-tag,.desk-process .desk-tag{position:absolute;left:0;bottom:0}
.desk-cv .desk-tag{position:absolute;right:0;bottom:0}
}

/* Current photographic object bounds. */
.desk-work{left:29.6%;top:6.2%;width:41%;height:13.5%}
.desk-about{left:5.4%;top:6%;width:19%;height:27%}
.desk-process{left:14.2%;top:39.4%;width:20%;height:22%}
.desk-cv{left:82.8%;top:35%;width:15%;height:30%}
.desk-contact{left:65.8%;top:17%;width:4.4%;height:13%}
.desk-spotify{left:72%;top:5%;width:11%;height:20%}
.desk-coffee{left:75.8%;top:48.9%;width:7%;height:11%}
.desk-lamp{left:23.6%;top:10.6%;width:5%;height:9%}
.desk-books{left:2.6%;top:36.3%;width:10%;height:25.5%}
.desk-note-copy{left:45.2%;top:21%;width:7%;height:12.1%;font-size:1.5cqw;line-height:1.1;transform:none}
@media(max-aspect-ratio:3/4){
.desk-work{left:11%;top:19.5%;width:66%;height:8.5%}
.desk-about{left:0.7%;top:7.3%;width:30%;height:11.7%}
.desk-process{left:3.5%;top:41.4%;width:40%;height:12%}
.desk-cv{left:70.4%;top:35.9%;width:27.4%;height:14.6%}
.desk-contact{left:66.8%;top:29.2%;width:10%;height:7%}
.desk-spotify{left:73.5%;top:11.4%;width:20%;height:9.5%}
.desk-coffee{left:85%;top:60.6%;width:14%;height:5.4%}
.desk-lamp{left:29.4%;top:7.7%;width:9.4%;height:4.6%}
.desk-books{left:4.6%;top:27.4%;width:19%;height:12.5%}
.desk-note-copy{left:38.6%;top:29.8%;width:13.6%;height:6.4%;font-size:3.5cqw;line-height:1.1}
.desk-books .desk-tag{position:absolute;left:0;bottom:0}
}
@media(min-aspect-ratio:3/4) and (max-aspect-ratio:4/3){
.desk-work{left:25.7%;top:16.6%;width:48.7%;height:6%}
.desk-about{left:1.1%;top:9%;width:23%;height:20%}
.desk-process{left:1.7%;top:47.5%;width:25.5%;height:17%}
.desk-cv{left:83.3%;top:41.1%;width:16%;height:22.4%}
.desk-contact{left:76.8%;top:29.9%;width:6.6%;height:10.3%}
.desk-spotify{left:68.2%;top:1.6%;width:15.1%;height:14.4%}
.desk-coffee{left:76%;top:53.5%;width:8%;height:8.5%}
.desk-lamp{left:22.5%;top:10.3%;width:6.7%;height:6%}
.desk-books{left:2.7%;top:30%;width:12.7%;height:16.8%}
.desk-note-copy{left:44.8%;top:24.4%;width:9%;height:9.1%;font-size:2cqw;line-height:1.1}
.desk-books .desk-tag{position:absolute;left:0;bottom:0}
}

/* Keep the desk against the top of the page, with floor to either side. */
.desk-hero::before{content:"";position:absolute;inset:0;background-image:url('assets/grey-floor-v2.png');background-repeat:repeat;background-size:var(--floor-tile,720px);filter:brightness(.96);transition:filter .45s ease;pointer-events:none}
.lamp-off .desk-hero::before{filter:brightness(.23) saturate(.7)}
.desk-scene{top:0;bottom:auto;transform:translateX(-50%);--desk-front:77.2%;--rug-left:13.5%;--rug-right:86.5%;--rug-bottom:98%;--light-x:32%;--light-y:12%;filter:drop-shadow(0 9px 12px #00000050)}
/* Night falls away from the warm lamp; object labels stay clear above it. */
.desk-scene::after{content:"";position:absolute;inset:0;bottom:auto;height:var(--photo-height,100%);z-index:0;pointer-events:none;opacity:0;background:radial-gradient(ellipse 72% 85% at var(--light-x) var(--light-y),transparent 0%,#07102030 38%,#040a175c 68%,#0308139c 100%);clip-path:polygon(0 0,100% 0,100% var(--photo-front,var(--desk-front)),var(--rug-right) var(--photo-front,var(--desk-front)),var(--rug-right) var(--rug-bottom,100%),var(--rug-left) var(--rug-bottom,100%),var(--rug-left) var(--photo-front,var(--desk-front)),0 var(--photo-front,var(--desk-front)));transition:opacity .45s ease}
.lamp-off .desk-scene::after{opacity:1}
/* Retain the unchanged desk, person and rug while revealing the room floor. */
.desk-scene picture{bottom:auto;height:var(--photo-height,100%);clip-path:polygon(0 0,100% 0,100% var(--photo-front,var(--desk-front)),var(--rug-right) var(--photo-front,var(--desk-front)),var(--rug-right) var(--rug-bottom,100%),var(--rug-left) var(--rug-bottom,100%),var(--rug-left) var(--photo-front,var(--desk-front)),0 var(--photo-front,var(--desk-front)))}
.desk-scene picture:first-of-type{--photo-front:var(--day-photo-front,var(--desk-front))}
@media(min-aspect-ratio:4/3){.desk-scene picture:first-of-type{--rug-bottom:95%}}
@media(max-aspect-ratio:3/4){.desk-scene{--desk-front:73.2%;--rug-left:3.2%;--rug-right:97%;--rug-bottom:96.5%;--light-x:42%;--light-y:8%}.desk-note-copy{font-size:max(13px,3.5cqw)}}
@media(min-aspect-ratio:3/4) and (max-aspect-ratio:4/3){.desk-scene{--desk-front:76.7%;--rug-left:10%;--rug-right:90%;--rug-bottom:98%;--light-x:34%;--light-y:8%}.desk-note-copy{font-size:max(14px,2cqw)}}
@media(prefers-reduced-motion:reduce){.desk-hero::before,.desk-scene::after{transition:none}}
