:root{--mint:#e6efe8;--forest:#153c33;--muted:#70867a;--cream:#eee8d7;--serif:'Instrument Serif',Georgia,serif;--sans:'DM Sans',Arial,sans-serif;--hand:'Caveat',cursive;--ease:cubic-bezier(.2,.8,.2,1);--box-scale:.86;--open:0;--frame-y:0px;--view-pitch:-90deg}
*{box-sizing:border-box}body{margin:0;background:var(--mint);color:var(--forest);font-family:var(--sans);font-size:16px;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;appearance:none}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid #537667;outline-offset:6px}button:disabled{cursor:default}::selection{background:#c5d6a7}.paper-grain{position:fixed;inset:0;opacity:.085;pointer-events:none;z-index:20;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.18' filter='url(%23n)'/%3E%3C/svg%3E")}.portfolio{max-width:1800px;margin:auto;min-height:100svh;overflow:clip;background:radial-gradient(ellipse at 52% 37%,#f6fbf458,transparent 60%)}.site-header{height:80px;margin:0 4.5%;display:flex;align-items:center;gap:35px;border-bottom:1px solid #153c3315}.wordmark{font-family:var(--serif);font-size:34px;letter-spacing:-1.3px;padding:0;display:flex;align-items:center;gap:13px}.wordmark span{font-family:var(--sans);font-size:23px;color:#779075;transition:transform .7s var(--ease)}.wordmark:hover span{transform:rotate(120deg)}.header-description{font-size:11px;letter-spacing:.09em;color:#819388;margin-right:auto}nav{display:flex;align-items:center;gap:30px;font-size:14px}.contact-link{display:flex;align-items:center;gap:20px;padding:10px 18px;border:1px solid #49695755;border-radius:30px;transition:background .25s}.contact-link span{font-size:19px;color:#7a9174}.contact-link:hover{background:#d9e6d8}.intro{text-align:center;margin:30px 5% 0;position:relative;z-index:2;pointer-events:none}.eyebrow{font-size:11px;letter-spacing:.16em;color:#789080}.intro h1{font-family:var(--serif);font-size:clamp(62px,5.9vw,85px);line-height:1.04;font-weight:400;letter-spacing:-2.2px;margin:10px 0 9px}.intro h1 em{font-weight:400;color:#6a8562}.intro p{font-size:14px;color:#7f9385;margin:0;line-height:1.7}.box-experience{margin-top:14px}.box-viewport{position:relative;height:560px;isolation:isolate;touch-action:pan-y}.box-scene{position:absolute;width:900px;height:500px;left:50%;top:0;perspective:2300px;perspective-origin:50% 45%;transform:translateX(-50%) translateY(var(--frame-y)) scale(var(--box-scale));transform-origin:50% 50%}.box-world{position:relative;width:100%;height:100%;transform-style:preserve-3d;transform-origin:50% 50%;transform:rotateX(var(--view-pitch));pointer-events:none}.ground-shadow{position:absolute;left:50%;top:332px;width:840px;height:160px;background:#28483538;border-radius:50%;filter:blur(25px);transform:translate(-50%,-50%);pointer-events:none;opacity:.85}.ground-shadow:after{content:'';position:absolute;inset:32px 30px 45px 0;background:#152e2454;border-radius:50%;filter:blur(12px)}.lid-cast-shadow{position:absolute;left:50%;top:297px;width:610px;height:105px;background:#203b2929;filter:blur(24px);border-radius:45%;transform:translate(-50%,-50%);transform-origin:50% 50%;pointer-events:none}.box-open-hit{position:absolute;border-radius:10px;z-index:4}.box-open-hit[hidden]{display:none}.box-open-hit:focus-visible{outline:1px dashed #4a715e;outline-offset:10px}.object-caption{position:absolute;bottom:1px;left:50%;transform:translateX(-50%);font-size:12px;letter-spacing:.02em;color:#4b705a;opacity:0;transition:opacity .18s;pointer-events:none;white-space:nowrap}.object-caption.visible{opacity:1}
/* Paperboard geometry, a rear hinge, and different inner and outer surfaces. */
.kraft{background-color:#be9666;background-image:linear-gradient(115deg,#e0b78016,#ad7c4930),url('assets/kraft-paper.png');background-size:100% 100%,650px 650px}.green{background-color:#153d32;background-image:linear-gradient(120deg,#123c33ed,#214d3ee8),url('assets/kraft-paper.png');background-size:100% 100%,600px 600px}.box-floor{position:absolute;left:0;top:160px;width:900px;height:360px;transform:rotateX(90deg);box-shadow:inset 0 0 40px #071e1bbc,inset 0 0 0 4px #18352a;border:1px solid #1b392e}.box-floor:after{content:'';position:absolute;inset:0;background:linear-gradient(#041d1780,#0a201322);opacity:calc(1 - var(--open)*.82);pointer-events:none}.box-wall{position:absolute;top:248px;height:96px;transform-style:preserve-3d}.face{position:absolute;inset:0;backface-visibility:hidden;border:1px solid #94754e55}.face.outside{transform:translateZ(2px);box-shadow:inset 0 1px #e8cba389,inset 0 -2px #88653e2e}.face.inside{transform:translateZ(-2px) rotateY(180deg);box-shadow:inset 0 -16px 20px #071e1959,inset 0 1px #6c805046}.box-front{left:0;width:900px;transform:translateZ(180px)}.box-front .outside{background-image:linear-gradient(100deg,#f1d0a415,#a5794345),url('assets/kraft-paper.png');box-shadow:inset 0 1px #eed3af99,inset 0 -3px #73553238,0 4px 0 #9c76498a}.box-back{left:0;width:900px;transform:translateZ(-180px) rotateY(180deg)}.box-left{left:-180px;width:360px;transform:rotateY(-90deg)}.box-right{left:720px;width:360px;transform:rotateY(90deg)}.box-right .outside{background-image:linear-gradient(#5c40271f,#6e482c39),url('assets/kraft-paper.png')}.wall-edge{position:absolute;left:0;right:0;top:-2px;height:5px;background:repeating-linear-gradient(90deg,#c9a677 0 2px,#b8905c 2px 3px);box-shadow:0 -1px #e9cda3,0 1px #977145;transform:rotateX(90deg);transform-origin:50% 50%;border-radius:1px}.front-brand{position:absolute;left:28px;top:43px;font-size:11px;letter-spacing:.11em;color:#4f5e3cd9}.front-edition{position:absolute;right:26px;top:36px;font-family:var(--serif);font-size:23px;color:#4c5d3a99}.thumb-notch{position:absolute;left:50%;top:-1px;width:34px;height:14px;background:#183b2e;border-radius:0 0 25px 25px;transform:translateX(-50%);box-shadow:inset 0 -1px #6a573d;opacity:.92}.box-lid{position:absolute;left:-3px;top:246px;width:906px;height:364px;transform-style:preserve-3d;transform-origin:50% 0;transform:translateZ(-182px) rotateX(90deg)}.objects-ready .box-lid{pointer-events:auto;cursor:pointer}.box-lid:focus-visible{outline:none}.box-lid:focus-visible .lid-inside{outline:2px solid #bfd0ae;outline-offset:-8px}.lid-surface{position:absolute;inset:0;border-radius:4px 4px 14px 14px;backface-visibility:hidden;border:1px solid #ae885659;overflow:hidden}.lid-outside{transform:translateZ(2px);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#23442f;box-shadow:inset 0 1px 2px #e2bd8a99,inset 0 -1px #9e7744,0 4px 5px #20302239}.lid-eyebrow{font-size:12px;letter-spacing:.19em;margin-top:-10px;color:#4d5d3bc7}.lid-name{font-family:var(--serif);font-size:95px;letter-spacing:-3px;line-height:1.1;margin:12px 0}.lid-small{font-size:12px;letter-spacing:.12em;color:#576541b8}.lid-bottom{position:absolute;bottom:25px;left:30px;right:30px;display:flex;justify-content:space-between;font-size:9px;letter-spacing:.13em;color:#5862409e}.lid-inside{transform:translateZ(-2px) rotateX(180deg);display:flex;align-items:center;flex-direction:column;justify-content:center;color:#dee4c9;box-shadow:inset 0 0 40px #061e191f,inset 0 0 0 4px #213e2d42}.lid-inside>span{opacity:var(--quote-opacity,1)}.lid-inside .inner-small{font-size:11px;letter-spacing:.19em;opacity:calc(var(--quote-opacity,1)*.58);margin:10px 0 20px}.inner-title{font-family:var(--serif);font-size:66px;line-height:.99;text-align:center;letter-spacing:-1px;font-weight:400}.inner-title em{color:#bacaab;font-weight:400}.inner-footnote{font-size:11px;letter-spacing:.21em;margin-top:27px;opacity:calc(var(--quote-opacity,1)*.5)}.lid-flap{position:absolute;top:8px;width:49px;height:338px;transform-style:preserve-3d}.lid-flap .face{border:0;box-shadow:inset 0 0 1px #76563080}.flap-left{left:-48px;transform-origin:100% 50%;transform:rotateY(-90deg)}.flap-right{right:-48px;transform-origin:0 50%;transform:rotateY(90deg)}.flap-left .face{border-radius:29px 0 0 29px}.flap-right .face{border-radius:0 29px 29px 0}.lid-tuck{position:absolute;left:10px;right:10px;top:364px;height:30px;border-radius:0 0 13px 13px;border:1px solid #96724570;border-top:0;transform-origin:50% 0;transform:rotateX(-90deg);box-shadow:inset 0 -1px #e4c79b66}.lid-edge{position:absolute;left:2px;right:2px;bottom:-2px;height:5px;transform:rotateX(90deg);background:repeating-linear-gradient(90deg,#cda877 0 2px,#9a7546 2px 3px);border-radius:1px;box-shadow:0 1px #96704688}
.object-tray{position:absolute;inset:0;transform-style:preserve-3d;pointer-events:none}.object-piece{position:absolute;left:0;top:0;width:144px;height:144px;padding:0;transform-origin:50% 100%;backface-visibility:visible;pointer-events:none;user-select:none;opacity:0;outline:none;will-change:transform}.objects-ready .object-piece:not(:disabled){pointer-events:auto;cursor:pointer}.object-art{position:absolute;inset:0;background-image:url('assets/project-objects-atlas.png');background-size:300% 200%;background-repeat:no-repeat;pointer-events:none;image-rendering:auto}.object-piece:focus-visible{outline:none}.object-piece:focus-visible:after{content:'';position:absolute;left:12%;right:12%;bottom:5px;height:1px;border-bottom:2px dashed #bfd0ae;box-shadow:0 4px 15px #b6d69452}.box-controls{position:relative;z-index:5;margin:0 6%;min-height:45px;display:flex;align-items:center;justify-content:space-between;gap:25px}.box-toggle{font-size:14px;display:flex;align-items:center;gap:9px;padding:9px 0}.toggle-symbol{font-size:22px;line-height:1;color:#779276;transition:transform .4s var(--ease)}.is-open .toggle-symbol{transform:rotate(45deg)}.gesture-hint{position:absolute;left:50%;transform:translateX(-50%) rotate(-2deg);font-family:var(--hand);font-size:24px;color:#758f79;white-space:nowrap;pointer-events:none}.project-pagination{display:flex;align-items:center;gap:19px;font-size:12px}.project-pagination[hidden]{display:none}.project-pagination button{font-size:13px;padding:9px 0}.project-pagination button:hover{text-decoration:underline;text-underline-offset:5px}#projectCount{color:#839a86;font-size:12px;min-width:57px;text-align:center}.project-information{margin:8px 6% 0;min-height:180px;position:relative;border-top:1px solid #153c3317}.selection-prompt{height:160px;display:flex;align-items:center;justify-content:center;gap:12px;color:#8aa08c}.selection-prompt[hidden]{display:none}.selection-prompt p{font-size:14px}.small-star{font-size:22px;color:#8da185}.selected-project{display:grid;grid-template-columns:minmax(0,38fr) minmax(0,62fr);padding:22px 0 19px;gap:30px;animation:information-in .45s var(--ease)}.selected-project[hidden]{display:none}.selected-category{font-size:11px;letter-spacing:.1em;color:#7b927d;text-transform:uppercase}.project-heading h2{font-family:var(--serif);font-size:42px;font-weight:400;line-height:1.05;letter-spacing:-.6px;margin:8px 0 12px;max-width:360px}.return-object{padding:0;font-size:12px;color:#789078;border-bottom:1px solid #9fb29a6b;line-height:1.7}.project-story{padding-right:30px;max-width:690px}.project-story>p{font-size:16px;color:#6e8574;line-height:1.65;margin:0 0 17px;max-width:680px}.project-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;font-size:12px}.project-links>span{color:#8a9f88;line-height:1.5;font-size:11px}.project-links>a{font-size:13px;color:#2f5940;white-space:nowrap;border-bottom:1px solid #5d7f5045;padding-bottom:3px}.project-links>a[hidden]{display:none}.site-footer{margin:10px 4.5% 0;border-top:1px solid #153c3315;padding:23px 0 27px;display:flex;align-items:center;justify-content:space-between;gap:30px;font-size:12px;line-height:1.7}.footer-secondary{color:#8d9e8f}.footer-location{text-align:right}@keyframes information-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
.about-dialog{border:1px solid #7a92703d;padding:0;background:#f0f3e9;color:var(--forest);max-width:min(900px,calc(100vw - 60px));width:100%;border-radius:8px;box-shadow:0 32px 120px #16362a45;overflow:hidden}.about-dialog::backdrop{background:#16372d59;backdrop-filter:blur(12px)}.about-dialog[open]{display:grid;grid-template-columns:34% 66%;animation:information-in .4s var(--ease)}.dialog-close{position:absolute;right:17px;top:17px;z-index:3;width:35px;height:35px;border:1px solid #6c876966;border-radius:50%;background:#f0f3e9;display:grid;place-items:center}.dialog-close span{width:12px;height:1px;background:#49694c;position:absolute;transform:rotate(45deg)}.dialog-close span+span{transform:rotate(-45deg)}.dialog-close:hover{background:#dce7d5}.about-photo{background:#d2dfcf;position:relative;min-height:470px;overflow:hidden}.about-photo img{width:100%;height:100%;object-fit:cover;object-position:47% 50%;position:absolute;inset:0}.photo-label{position:absolute;bottom:20px;left:20px;background:#f4f1de;padding:8px 12px;font-size:10px;letter-spacing:.12em;transform:rotate(-3deg)}.about-copy{padding:50px 44px 43px}.about-copy h2{font-family:var(--serif);font-size:45px;line-height:1.05;letter-spacing:-1px;font-weight:400;margin:24px 0}.about-copy h2 em{color:#71845b}.about-copy p{font-size:16px;line-height:1.7;color:#708373}.about-links{display:flex;gap:25px;margin-top:30px;font-size:14px}.about-links a{border-bottom:1px solid #a5b795;padding-bottom:4px}body.dialog-active{overflow:hidden}
@media(min-width:1650px){.site-header{height:88px}.intro{margin-top:36px}.intro h1{font-size:91px}.box-experience{margin-top:20px}.box-viewport{height:590px}.project-information{margin-top:13px}}
@media(max-width:1150px){.header-description{font-size:9px}.intro h1{font-size:72px}.box-viewport{height:530px}.ground-shadow{top:318px}.project-heading h2{font-size:37px}.selected-project{grid-template-columns:minmax(0,36fr) minmax(0,64fr);gap:20px}.project-story>p{font-size:15px}.project-links{align-items:flex-start;gap:12px}.project-links>span{max-width:50%}.gesture-hint{font-size:21px}.project-pagination{gap:13px}}
@media(max-width:850px){.header-description{display:none}nav{margin-left:auto}.site-header{height:76px}.intro{margin-top:28px}.intro h1{font-size:65px}.intro p{font-size:13px}.box-viewport{height:470px}.ground-shadow{top:283px}.box-controls{gap:10px}.gesture-hint{position:static;transform:rotate(-2deg);margin-left:auto;font-size:22px}.project-pagination{display:none}.selected-project{grid-template-columns:1fr;gap:16px;padding-top:21px}.project-heading{position:relative}.project-heading h2{max-width:none;font-size:35px;margin-bottom:0}.return-object{position:absolute;right:0;top:0}.project-story{padding-right:0}.project-story>p{font-size:16px}.project-information{min-height:150px}.selection-prompt{height:140px}.site-footer{font-size:11px}}
@media(max-width:600px){.site-header{margin:0 6%;height:73px}.wordmark{font-size:30px}.wordmark span{font-size:19px}nav{font-size:12px;gap:17px}.contact-link{padding:8px 12px;gap:10px}.intro{margin-top:32px}.eyebrow{font-size:9px}.intro h1{font-size:52px;letter-spacing:-1.4px;margin-top:14px}.intro p{font-size:12px}.box-experience{margin-top:4px}.box-viewport{height:340px}.ground-shadow{top:194px;width:900px}.box-controls{min-height:46px}.box-toggle{font-size:13px}.gesture-hint{font-size:18px}.object-caption{bottom:7px;font-size:11px}.project-information{margin-top:6px}.selection-prompt{height:125px;gap:8px}.selection-prompt p{font-size:12px}.small-star{font-size:19px}.selected-category{font-size:10px}.project-heading h2{font-size:33px;max-width:90%}.project-links{flex-wrap:wrap;gap:16px}.project-links>span{max-width:100%;font-size:11px}.site-footer{margin:22px 6% 0;gap:20px;font-size:10px}.about-dialog{max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);overflow-y:auto}.about-dialog[open]{grid-template-columns:1fr}.about-photo{min-height:210px;height:210px}.about-photo img{object-position:50% 35%}.about-copy{padding:30px}.about-copy h2{font-size:37px}}
@media(max-width:390px){nav button{display:none}.intro h1{font-size:47px}.box-viewport{height:310px}.ground-shadow{top:179px}.gesture-hint{font-size:17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The collection is one pinned scene; scroll first opens it, then moves closer. */
:root{--header-height:64px;--intro-progress:0;--camera-push:0;--box-width:900px;--box-depth:360px;--half-depth:180px;--floor-top:160px;--right-wall-left:720px;--lid-width:906px;--lid-depth:364px;--flap-depth:338px;--headline-size:clamp(44px,4.8vw,72px)}
.portfolio{max-width:none;background:none}.site-header{position:sticky;top:0;z-index:30;height:var(--header-height);background:transparent;border-bottom:0}.paper-grain{opacity:.14}
.box-experience{height:calc(220svh - var(--header-height));margin:0}.box-stage{position:sticky;top:var(--header-height);height:calc(100svh - var(--header-height));display:grid;grid-template-rows:calc(112px - var(--intro-progress)*68px) minmax(0,1fr) auto auto;padding-bottom:12px;isolation:isolate}
body{background-image:linear-gradient(#e6efe852,#e6efe852),url('assets/mint-paper-surface.png');background-size:cover;background-position:center;background-attachment:fixed}
.box-stage:after{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 46%,#f4f8e928 0%,transparent 46%,#334f3620 100%);pointer-events:none}
.intro{margin:0;padding:0 20px;opacity:calc(1 - var(--intro-progress));align-self:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}.intro h1{font-size:calc(var(--headline-size)*(1 - var(--intro-progress)*.55));line-height:1.06;letter-spacing:calc(-1.6px + var(--intro-progress)*1px);margin:0 0 5px}.intro p{height:calc(20px*(1 - var(--intro-progress)));opacity:calc(1 - var(--intro-progress));line-height:20px;font-size:14px;margin:0;overflow:hidden}
.box-viewport{height:auto;min-height:0;overflow:clip;isolation:isolate}.box-scene{width:var(--box-width);top:0}.box-floor{top:var(--floor-top);width:var(--box-width);height:var(--box-depth)}.box-front{width:var(--box-width);transform:translateZ(var(--half-depth))}.box-back{width:var(--box-width);transform:translateZ(calc(var(--half-depth)*-1)) rotateY(180deg)}.box-left{left:calc(var(--half-depth)*-1);width:var(--box-depth)}.box-right{left:var(--right-wall-left);width:var(--box-depth)}.box-lid{width:var(--lid-width);height:var(--lid-depth)}.lid-flap{height:var(--flap-depth)}.lid-tuck{top:var(--lid-depth)}
.lid-project-title{position:absolute;left:8%;width:38%;top:52%;transform:translateY(-50%);font-family:var(--serif);font-size:42px;line-height:1.06;letter-spacing:-.8px;text-align:left;text-wrap:balance;color:#e1e8cf;opacity:0;pointer-events:none}
.ground-shadow{background:#233e2b30;filter:blur(17px);border-radius:8%;opacity:.94}.ground-shadow:after{inset:6% 2% 0;background:#142b2247;border-radius:8px;filter:blur(5px)}.lid-cast-shadow{background:#1b35251c;filter:blur(22px)}
.box-controls{margin:0 6%;min-height:42px}.gesture-hint{font-size:22px}.project-pagination{display:flex}.project-pagination[hidden]{display:none}.project-information{margin:0 6%;min-height:0;max-height:min(28svh,230px);overflow:auto;overscroll-behavior:contain}.project-information[hidden]{display:none}.selected-project{padding:12px 0 10px;gap:24px}.selected-category{font-size:12px}.project-heading h2{font-size:32px;margin:5px 0 8px}.project-story>p{font-size:16px;line-height:1.5;margin-bottom:9px}.project-links>span{font-size:12px}.site-footer{margin:0 4.5%;padding:18px 0 20px}.object-caption{bottom:4px}
@media(max-width:850px){.gesture-hint{position:static;transform:rotate(-2deg);font-size:19px}.box-controls{margin:0 5%;gap:12px}.project-pagination{gap:12px}.project-pagination button{font-size:12px}.selected-project{gap:9px}.project-heading h2{font-size:30px}}
@media(max-width:600px){:root{--header-height:58px;--headline-size:clamp(29px,7.8vw,44px)}.site-header{height:var(--header-height);margin:0 5%}.wordmark{font-size:27px}.box-stage{grid-template-rows:calc(88px - var(--intro-progress)*50px) minmax(0,1fr) auto auto;padding-bottom:10px}.intro{padding:0 12px}.intro h1{font-size:calc(var(--headline-size)*(1 - var(--intro-progress)*.3));white-space:nowrap;letter-spacing:-.8px}.intro p{font-size:12px}.gesture-hint{display:none}.box-controls{min-height:42px}.box-toggle{font-size:13px}.project-pagination{gap:14px}.project-information{margin:0 5%;max-height:26svh}.selected-project{padding:9px 0;gap:8px}.project-heading h2{font-size:26px;margin:4px 0;max-width:100%}.project-story>p{font-size:15px;line-height:1.4;margin-bottom:8px}.project-links{gap:9px 18px}.project-links>span{font-size:11px}.selected-category{font-size:10px}.return-object{font-size:11px}.lid-name{font-size:76px}.lid-eyebrow{font-size:10px;letter-spacing:.12em}.lid-small{font-size:10px;letter-spacing:.08em}.lid-bottom{font-size:8px;left:20px;right:20px}.inner-title{font-size:48px}.lid-project-title{left:7%;width:86%;font-size:40px;line-height:1.04;text-align:center}.box-stage:before{background-position:46% 50%}.site-footer{margin:0 5%;font-size:10px}}

/* Cherry wood, clear hammered glass and an open velvet tray. */
:root{--header-height:56px;--wood:#9c633b;--velvet:#607348}
.box-stage{grid-template-rows:calc(112px*(1 - var(--intro-progress))) minmax(0,1fr) auto;padding-bottom:8px}
.box-controls{min-height:36px}.box-toggle{font-size:13px}.gesture-hint{font-size:20px}
.wood{background-color:var(--wood);background-image:url('assets/keepsake-materials.png');background-size:1024px 3072px;background-position:center top}
.velvet{background-color:var(--velvet);background-image:linear-gradient(125deg,#a5ae6b0d,#1c2f1540),url('assets/keepsake-materials.png');background-size:100% 100%,1024px 3072px;background-position:center,center center}
.box-floor{border:0;box-shadow:inset 0 0 22px #19251299,inset 0 0 0 18px #76532f;top:var(--floor-top)}
.box-floor:after{display:none}
.box-wall{height:66px}.face{border:0}.face.outside{box-shadow:inset 0 2px 2px #e8c69f7a,inset 0 -3px 4px #42271673}
.box-front .outside,.box-right .outside{background-image:linear-gradient(180deg,#e4b78209,#4b2b1936),url('assets/keepsake-materials.png');background-size:100% 100%,1024px 3072px;background-position:center,center top;box-shadow:inset 0 1px 2px #f3d1a19c,inset 0 -3px 4px #4d2d185c}
.face.inside{box-shadow:inset 0 -12px 15px #17200d61,inset 0 2px 2px #bcc68d40}
.wall-edge{top:-8px;height:18px;background-color:#aa7446;background-image:url('assets/keepsake-materials.png');background-size:1024px 3072px;background-position:center top;box-shadow:0 -1px 1px #edcea061,0 1px 1px #55371f7d;border-radius:1px}
.box-lid{filter:none}.lid-surface{border-radius:3px;border:1px solid #72482291;overflow:visible;background-image:url('assets/keepsake-materials.png');background-size:1024px 3072px;background-position:center top;box-shadow:inset 0 2px 2px #ecc59385,inset 0 -2px 3px #42281885,0 2px 3px #462b1840}
.lid-outside{display:block;transform:translateZ(5px)}.lid-inside{display:block;transform:translateZ(-5px) rotateX(180deg);color:#25442f}
/* Clear glass transmits the real tray. Ripples and reflections are faint overlays. */
.glass-panel{position:absolute;inset:20px;border:1px solid #49604c3d;border-radius:1px;background:linear-gradient(130deg,#f7fff210,#b7c9ab03);box-shadow:inset 0 0 0 1px #f4fff878,inset 0 0 14px #dbe4ce17,0 0 2px #233d2d33;overflow:hidden;-webkit-backdrop-filter:blur(.75px) saturate(.97);backdrop-filter:blur(.75px) saturate(.97)}
.glass-panel:before{content:'';position:absolute;inset:0;background:url('assets/keepsake-materials.png') center bottom/1024px 3072px;opacity:.09;mix-blend-mode:screen;pointer-events:none}
.glass-panel:after{content:'';position:absolute;inset:0;background:linear-gradient(118deg,transparent 5%,#ffffff06 16%,#ffffff2e 18%,#ffffff05 20%,transparent 31%,transparent 74%,#ffffff14 77%,transparent 80%);box-shadow:inset 1px 1px 2px #ffffff6b,inset -1px -1px 2px #4c685a26;pointer-events:none}
.brass-plaque{position:absolute;left:50%;bottom:5px;width:68px;height:10px;transform:translateX(-50%);background:linear-gradient(120deg,#a67b39,#dcc88a 35%,#ac8848 72%,#d7bb75);border:1px solid #73582770;border-radius:2px;box-shadow:0 1px 2px #493e2559}
.lid-edge{bottom:-3px;height:10px;box-shadow:0 1px 2px #4d2b1b8c}
.object-piece{width:144px;height:144px}.object-art{background-repeat:no-repeat}
.lid-welcome{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;pointer-events:none;color:#24432f;text-align:center;opacity:0}
.lid-welcome .inner-small{font-size:11px;letter-spacing:.19em;color:#4a603a;line-height:1.4}
.lid-welcome .inner-title{font-size:clamp(24px,3.8vw,55px);line-height:1;letter-spacing:-.8px}.lid-welcome .inner-title em{color:#60724a}
.lid-welcome .inner-footnote{font-size:10px;letter-spacing:.2em;margin:0;opacity:.72}
.project-information.lid-story{position:absolute;z-index:2;margin:0;padding:0 3px 0 0;border:0;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#71845866 transparent;color:#203d2b}
.lid-story .selected-project{display:block;padding:0;animation:none}.lid-story[hidden],.lid-story [hidden]{display:none!important}
.story-meta{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:11px;letter-spacing:.065em;line-height:1.45;color:#4b633d}
.lid-story h2{font-family:var(--serif);font-size:clamp(24px,2.6vw,39px);font-weight:400;line-height:1.03;letter-spacing:-.6px;margin:9px 0 12px;text-wrap:balance}
.story-description{font-size:15px;line-height:1.5;margin:0 0 12px;color:#334a30;max-width:48ch}
.story-tags{font-size:11px;line-height:1.5;letter-spacing:.02em;color:#566c43;margin:0 0 15px}
.story-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;font-size:12px}
.story-actions>a{border-bottom:1px solid #4260446b;padding-bottom:3px}.story-actions>a:after{content:' ↗';font-size:13px}
.lid-story .return-object{position:static;padding:0;color:#516744;font-size:12px;border-color:#6e815369;line-height:1.6}
.story-thumbnail{float:right;width:90px;height:60px;margin:2px 0 10px 12px;border-radius:3px;overflow:hidden}.story-thumbnail img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:850px){.story-description{font-size:14px;line-height:1.4}.lid-story h2{font-size:27px;margin:7px 0 10px}.story-meta{font-size:10px}.story-tags{margin-bottom:10px}.story-actions{gap:8px 16px}.lid-welcome .inner-title{font-size:34px}}
@media(max-width:600px){:root{--header-height:58px}.box-stage{grid-template-rows:calc(88px*(1 - var(--intro-progress))) minmax(0,1fr) auto;padding-bottom:8px}.box-controls{min-height:36px}.lid-welcome{gap:12px}.lid-welcome .inner-title{font-size:30px}.lid-welcome .inner-small{font-size:9px;letter-spacing:.1em}.lid-welcome .inner-footnote{font-size:9px;letter-spacing:.12em}.lid-story h2{font-size:24px}.story-meta{font-size:10px}.story-description{font-size:14px;line-height:1.4}.story-tags{font-size:10px}.story-actions{font-size:12px}.lid-story .return-object{font-size:12px}}

/* The frame surrounds the glass rather than continuing behind it. */
.lid-surface.wood{background:none;border-color:#8b5c3766}
.lid-rail{position:absolute;box-shadow:inset 0 1px 1px #eacba077,inset 0 -1px 2px #593a216e}
.rail-top,.rail-bottom{left:0;right:0;height:20px}.rail-top{top:0}.rail-bottom{bottom:0}
.rail-left,.rail-right{top:20px;bottom:20px;width:20px}.rail-left{left:0}.rail-right{right:0}

/* A deeper frame and a calm, continuous velvet lining. */
:root{--wood:#886755;--velvet:#5e7464;--wall-height:132px;--lid-frame:32px;--camera-distance:3600px}
.box-scene{perspective:var(--camera-distance)}
.wood,.box-front .outside,.box-right .outside,.wall-edge{background-color:var(--wood);background-image:linear-gradient(180deg,#f2e2cc17,#38291f1c),url('assets/keepsake-materials.png');background-size:100% 100%,1024px 3072px;background-position:center,center top;background-blend-mode:normal,luminosity}
.velvet{background-color:var(--velvet);background-image:linear-gradient(115deg,transparent 12%,#e8eed308 48%,transparent 72%),radial-gradient(ellipse at 48% 40%,#7b8e77 0%,#647b65 38%,#425b4b 78%,#2e4538 100%);background-size:100% 100%;background-position:center}
.box-wall{height:var(--wall-height)}
.box-floor{box-shadow:inset 0 0 0 7px #243e3140,inset 0 0 18px 8px #142d2338;top:var(--floor-top);transform-style:preserve-3d}
.face.inside{box-shadow:inset 0 -16px 18px #142e2257,inset 0 2px 3px #c1d0b343}
.face.outside,.box-front .outside,.box-right .outside{box-shadow:inset 0 2px 3px #f1dec18c,inset 0 -4px 9px #35251e80}
.wall-edge{top:-12px;height:26px;box-shadow:0 -1px 2px #e5cba98c,0 2px 3px #372b2177}
.lid-outside{transform:translateZ(10px)}.lid-inside{transform:translateZ(-10px) rotateX(180deg)}
.lid-surface.wood{background:none;border-color:#5c483974}
.lid-rail{box-shadow:inset 0 2px 3px #e7d4b67a,inset 0 -2px 4px #4e35257a}
.rail-top,.rail-bottom{height:var(--lid-frame)}.rail-left,.rail-right{top:var(--lid-frame);bottom:var(--lid-frame);width:var(--lid-frame)}
.glass-panel{inset:var(--lid-frame)}.lid-edge{height:20px;bottom:-7px}
.brass-plaque{bottom:10px;height:11px}
.ground-shadow{background:#23392e57;filter:blur(21px);opacity:.95;border-radius:12%}
.ground-shadow:after{inset:9% 4% 4%;background:#15291f70;filter:blur(8px);border-radius:10%}



.object-art{will-change:opacity;filter:url('#objectMatte')}.object-refraction{filter:url('#glassRefraction') saturate(.83);pointer-events:none}
.effect-definitions{position:absolute;overflow:hidden;pointer-events:none}
.box-tap-hint{position:absolute;left:50%;transform:translateX(-50%);font-size:12px;letter-spacing:.035em;color:#657d6c;white-space:nowrap;pointer-events:none}.box-tap-hint[hidden]{display:none}
@media(max-width:600px){.lid-welcome{gap:8px}.lid-welcome .inner-title{font-size:25px;line-height:1}.lid-welcome .inner-small{font-size:8px;letter-spacing:.08em}.lid-welcome .inner-footnote{font-size:8px;letter-spacing:.1em}.lid-story h2{font-size:21px;line-height:1.06;margin:5px 0 9px}.story-description{font-size:13px;line-height:1.4}.story-meta{font-size:9px;letter-spacing:.02em}.story-tags{font-size:10px}.story-actions{gap:8px;font-size:12px}.box-tap-hint{font-size:12px}}

/* One continuous bevel avoids overlapping strips at the tray corners. */
.box-rim{position:absolute;left:-6px;top:calc(242px - var(--half-depth));width:calc(var(--box-width) + 12px);height:calc(var(--box-depth) + 12px);padding:18px;transform:rotateX(90deg);border-radius:3px;pointer-events:none;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;box-shadow:inset 0 1px 2px #f0dfc785,inset 0 -2px 3px #35282070}
.box-rim:before{content:'';position:absolute;inset:17px;border:1px solid #382e2566;pointer-events:none}
.box-rim:after{content:'';position:absolute;inset:0;border:1px solid #e9d9c24a;border-radius:3px;pointer-events:none}

/* Shadows live in tray coordinates, beneath the objects and inside the walls. */
.floor-shadows{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none;transform:translateZ(.5px)}
.tray-shadow{fill:#172a20;pointer-events:none}
.box-floor:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 0 0,#16302230,transparent 18%),radial-gradient(ellipse at 100% 0,#16302230,transparent 18%),radial-gradient(ellipse at 0 100%,#16302220,transparent 16%),radial-gradient(ellipse at 100% 100%,#16302220,transparent 16%);pointer-events:none}

/* Give the longer introduction room to wrap on phones. */
@media(max-width:600px){.box-stage{grid-template-rows:calc(112px*(1 - var(--intro-progress))) minmax(0,1fr) auto}.intro h1{white-space:normal;text-wrap:balance}.intro h1 em{white-space:nowrap}.intro p{height:calc(36px*(1 - var(--intro-progress)));line-height:18px;max-width:34em;text-wrap:pretty}}

/* Seat the intro just above the closed box (offset set in index.html); eases back as the box opens */
.intro{transform:translateY(calc(var(--intro-offset,0px)*(1 - var(--intro-progress))))}

/* No vignette under the header, so the paper reads as one surface */
.box-stage:after{content:none}

/* Hide the "Passion project · …" category line on every project */
.story-meta{display:none}

/* Hide the "Put it back" button on every project */
#returnObject{display:none}

/* Header shows only the name; no bottom controls */
.wordmark span,.header-description,.site-header nav,#boxControls{display:none}

/* Readable contrast (WCAG AA 4.5:1 on the mint paper) for the small intro text */
.intro p{color:#4f6658}
.box-tap-hint{color:#4a6253}
.footer-secondary{color:#4f6658}
#selectedTags{color:#4b633d}

/* Polaroid of Janus stuck on the outside of the lid (moves with it); opens About */
.desk-polaroid{position:absolute;right:52px;top:30px;z-index:3;width:112px;padding:7px 7px 25px;background:#fbfaf4;border-radius:2px;transform:rotate(-7deg);box-shadow:0 1px 1px #1a2e2230,0 4px 8px #1a2e2238;transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.desk-polaroid img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;filter:saturate(.92) contrast(.97)}
.desk-polaroid:before{content:'';position:absolute;top:-7px;left:50%;width:42px;height:15px;margin-left:-21px;background:#efe6cfd9;transform:rotate(4deg);box-shadow:0 1px 1px #5a46281f}
.polaroid-caption{position:absolute;left:6px;right:6px;bottom:4px;font-family:'Caveat',cursive;font-size:16px;line-height:1;color:#2b3f33;text-align:center;transform:rotate(-2deg)}
.desk-polaroid.is-hovered,.desk-polaroid:hover,.desk-polaroid:focus-visible{transform:rotate(-4deg) translateY(-4px);box-shadow:0 1px 1px #1a2e2230,0 10px 18px #1a2e2240}
.desk-polaroid:focus-visible{outline:2px solid #537667;outline-offset:4px}
@media (prefers-reduced-motion:reduce){.desk-polaroid{transition:none}}

/* Soft window light: diagonal shadows of window bars falling across the paper, behind the content */
.portfolio{position:relative;z-index:1}
.window-light{position:fixed;inset:-20%;z-index:0;pointer-events:none;mix-blend-mode:multiply;opacity:.85;background:linear-gradient(128deg,transparent 0 6%,#2f4b3a33 9% 15%,transparent 19% 25%,#2f4b3a2b 28% 31%,transparent 35% 44%,#2f4b3a40 48% 60%,transparent 66%);filter:blur(26px);-webkit-mask-image:radial-gradient(ellipse 85% 75% at 30% 20%,#000 30%,#0008 60%,transparent 90%);mask-image:radial-gradient(ellipse 85% 75% at 30% 20%,#000 30%,#0008 60%,transparent 90%)}
.window-light:after{content:'';position:absolute;inset:0;background:linear-gradient(128deg,transparent 15%,#fff4d455 19% 26%,transparent 30% 36%,#fff4d444 40% 46%,transparent 50%);mix-blend-mode:screen}

/* Project details below the box */
.project-details{max-width:1080px;margin:0 auto;padding:96px 5% 72px;color:var(--forest)}
.detail-head{display:flex;flex-direction:column;gap:10px;margin-bottom:40px}
.detail-count{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#4f6658}
.detail-head h2{font-family:var(--serif);font-weight:400;font-size:clamp(42px,5.4vw,68px);line-height:1.02;letter-spacing:-1.4px;margin:0;outline:none}
.detail-body{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:56px;align-items:start}
.detail-figure{margin:0;border-radius:8px;overflow:hidden;background:#dfe9e0;box-shadow:0 1px 2px #1a2e2224,0 18px 40px -18px #1a2e2259;aspect-ratio:8/5}
.detail-figure img{display:block;width:100%;height:100%;object-fit:cover}
.detail-figure.is-object{display:grid;place-items:center;background:radial-gradient(ellipse at 50% 60%,#6f8f79,#4d6b57)}
.detail-figure.is-object img{width:62%;height:auto;object-fit:contain;filter:drop-shadow(6px 10px 10px #0f201733)}
.detail-summary{font-size:19px;line-height:1.55;margin:0 0 30px}
.detail-copy h3{font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:#4f6658;margin:26px 0 10px}
.detail-highlights{margin:0;padding:0;list-style:none}
.detail-highlights li{position:relative;padding:7px 0 7px 22px;font-size:15px;line-height:1.5;border-top:1px solid #153c3314}
.detail-highlights li:before{content:'✳';position:absolute;left:0;top:7px;font-size:12px;color:#6a8562}
.detail-why{font-size:15px;line-height:1.6;margin:0}
.detail-built{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.detail-built li{font-size:13px;padding:5px 12px;border:1px solid #153c3333;border-radius:20px}
.detail-todo{color:#5b6f61!important;border:1px dashed #4f665899!important;border-radius:6px;padding:8px 12px!important;font-size:13px!important;background:#ffffff40}
.detail-highlights li.detail-todo:before,.detail-built li.detail-todo:before{content:none}
.detail-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.detail-links a{display:inline-flex;align-items:center;gap:10px;padding:11px 20px;border-radius:30px;font-size:14px;background:var(--forest);color:#eef3ec;transition:background .25s}
.detail-links a+a{background:transparent;color:var(--forest);border:1px solid #153c3355}
.detail-links a:hover{background:#25564a}
.detail-links a+a:hover{background:#d9e6d8}
.detail-nav{display:flex;justify-content:space-between;gap:20px;margin-top:72px;padding-top:24px;border-top:1px solid #153c3322}
.detail-nav button{display:flex;flex-direction:column;gap:6px;text-align:left;padding:0;max-width:45%}
.detail-nav button:last-child{text-align:right;align-items:flex-end}
.detail-nav-label{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#4f6658}
.detail-nav button span:last-child{font-family:var(--serif);font-size:26px;line-height:1.1;transition:color .25s}
.detail-nav button:hover span:last-child{color:#6a8562}
@media(max-width:850px){.detail-body{grid-template-columns:1fr;gap:32px}.project-details{padding-top:64px}.detail-summary{font-size:17px}}
@media(max-width:600px){.detail-nav button span:last-child{font-size:20px}.window-light{opacity:.45}}
@media (prefers-reduced-motion:reduce){.detail-links a,.detail-nav button span{transition:none}}

/* Open box: through the glass you see the back of the polaroid, flipped, with the tape at the hinge edge */
.polaroid-inside{top:auto;right:52px;bottom:26px;height:130px;padding:0;background:#2a2d2a;transform:rotate(7deg);box-shadow:0 1px 1px #0d1a1440,0 3px 6px #0d1a1430}
.polaroid-inside:before{top:auto;bottom:-7px;transform:rotate(-4deg);background:#efe6cfb3}
.polaroid-back{position:absolute;inset:0;border-radius:2px;background:linear-gradient(160deg,#ffffff14,transparent 45%),repeating-linear-gradient(0deg,#ffffff05 0 2px,transparent 2px 4px)}
.back-print{position:absolute;left:10px;top:10px;font-size:7px;letter-spacing:.2em;text-transform:uppercase;color:#ffffff45}
.back-lines{position:absolute;left:10px;right:10px;bottom:18px;height:14px;border-top:1px solid #ffffff1f;border-bottom:1px solid #ffffff1f}
/* Seen from inside the lid, the photo sits on the far side of the glass: soft, hazy and low-contrast */
.polaroid-inside{filter:blur(3.2px) saturate(.75) contrast(.8);opacity:.72;box-shadow:none}
.polaroid-inside:after{content:'';position:absolute;inset:-8px;background:linear-gradient(160deg,#e9f1ea66,#dbe7dd40 60%,#e9f1ea55);pointer-events:none}
.polaroid-inside.is-hovered,.polaroid-inside:hover,.polaroid-inside:focus-visible{transform:rotate(4deg) translateY(-4px)}

/* From inside the lid the solid wooden rails cover whatever part of the photo overlaps them */
.lid-inside .lid-rail{z-index:2}
.polaroid-inside{z-index:1}

/* ==========================================================================
   Enamel theme: warm cream page, sage enamel box with silver trim and hinges,
   soft sage felt inside. Overrides the walnut + mint paper look above.
   ========================================================================== */
:root{--mint:#f4f0e6;--wood:#9fb49f;--velvet:#a2ad98;--enamel-hi:#c3d3c1;--enamel:#a3b8a2;--enamel-lo:#8ca38c;--silver:linear-gradient(180deg,#f4f4f2,#c9ccca 45%,#a9adab 55%,#e3e5e3)}
body{background-color:#f4f0e6;background-image:radial-gradient(ellipse 80% 60% at 50% 28%,#fbf9f3,transparent 70%),linear-gradient(#f5f1e8,#efeadf);background-attachment:fixed}
.paper-grain{opacity:.05}
.window-light{opacity:.28}
.window-light:after{opacity:.6}

/* Header: name left, Work and About right */
.site-header nav{display:flex;gap:44px;font-size:15px}
.site-header nav a,.site-header nav button{color:var(--forest);padding:6px 0;border-bottom:1px solid transparent;transition:border-color .25s}
.site-header nav a:hover,.site-header nav button:hover{border-bottom-color:#153c3366}

/* Enamel on every outside surface (walls, rim, lid frame) */
.wood{background-color:var(--enamel);background-image:linear-gradient(180deg,var(--enamel-hi),var(--enamel) 42%,var(--enamel-lo))}
.face.outside{box-shadow:inset 0 2px 1px #ffffff66,inset 0 -3px 6px #4d634d40}
.box-front .outside,.box-right .outside{background-image:linear-gradient(180deg,#a9bda8,#94aa93 60%,#869d86);background-size:100% 100%}
.box-right .outside{box-shadow:inset 0 2px 2px #ffffff55,inset 0 -4px 9px #3d523d4d}
.box-rim{border-radius:14px}
.box-rim:before{border-color:#6f866f80}
.box-rim:after{border-color:#ffffff73;border-radius:14px}

/* Lid frame: rounded enamel rails with a glossy top edge */
.lid-surface{border-radius:16px;border-color:#7d957d99;background-image:none}
.lid-surface.wood{border-color:#7d957d99}
.lid-rail{background-image:linear-gradient(180deg,#c6d5c4,#a4b9a3 50%,#93a993);box-shadow:inset 0 2px 2px #ffffff80,inset 0 -2px 4px #4d634d4d}
.rail-top{border-radius:16px 16px 0 0}
.rail-bottom{border-radius:0 0 16px 16px}
.lid-outside .glass-panel{border-radius:6px;box-shadow:inset 0 0 0 1px #ffffffa6,inset 0 2px 6px #4d634d33,0 0 0 1px #7d957d66}

/* Silver trim where the lid meets the box, and two hinges at the back */
.lid-edge{background:var(--silver);border-radius:3px;box-shadow:0 1px 2px #4d634d66}
.box-front .outside{border-top:3px solid #c7cbc9;border-top-left-radius:10px;border-top-right-radius:10px}
.lid-outside:before,.lid-outside:after{content:'';position:absolute;top:-7px;width:86px;height:12px;border-radius:3px;background:var(--silver);box-shadow:0 1px 2px #3d4a3a59,inset 0 0 0 1px #8f9492;z-index:4}
.lid-outside:before{left:20%}
.lid-outside:after{right:20%}

/* Cream-and-silver clasp at the front centre */
.box-front .outside:before{content:'';position:absolute;left:50%;top:-4px;width:64px;height:34px;margin-left:-32px;border-radius:6px;background:linear-gradient(180deg,#f3ecdf,#ddd2bf);border:2px solid #c3c7c5;box-shadow:0 2px 3px #3d4a3a4d,inset 0 1px #ffffffb3}

/* Sage felt inside */
.velvet{background-color:var(--velvet);background-image:radial-gradient(ellipse at 48% 40%,#b0baa6 0%,#a0ab95 45%,#8e9a84 100%)}
.box-floor{box-shadow:inset 0 0 0 6px #7f8c7640,inset 0 0 22px 6px #5e6b5638}
.face.inside{box-shadow:inset 0 -14px 16px #4f5c4740,inset 0 2px 3px #e4ebdc4d}
.brass-plaque{background:linear-gradient(120deg,#d9dcda,#f6f6f4 40%,#b7bbb9 75%,#e8eae8);border-color:#9da2a0}

/* Softer, warmer shadow on the cream page */
.ground-shadow{background:#4a564630;filter:blur(24px)}
.ground-shadow:after{background:#3a463a40}

/* Clear glass: objects read crisply through the closed lid, with only a faint softening */
.object-refraction{filter:url('#objectMatte') saturate(.95) blur(.35px)}
.site-header nav{margin-left:auto}

/* Glass reflection on the closed lid: one bright sheen in the top-left corner, fading out, plus a lit inner edge */
.lid-outside .glass-panel:after{background:
  linear-gradient(118deg,#ffffffc2 0%,#ffffff8c 6%,#ffffff4d 11%,transparent 15%),
  linear-gradient(118deg,transparent 16%,#ffffff73 17.4%,transparent 20%);
 -webkit-mask-image:radial-gradient(ellipse 38% 120% at 0 0,#000 45%,transparent 100%);mask-image:radial-gradient(ellipse 38% 120% at 0 0,#000 45%,transparent 100%);
 box-shadow:none}
.lid-outside .glass-panel{box-shadow:inset 0 0 0 1.5px #ffffffb3,inset 2px 3px 4px #ffffff59,inset -1px -2px 3px #4d634d33,0 0 0 1px #7d957d66}

/* Painted metal, not plastic: crisp specular edges, sharper light-to-shade falloff, a faint horizontal sheen */
.lid-rail{background-image:
  linear-gradient(90deg,transparent 4%,#ffffff1f 22%,transparent 40%,transparent 62%,#ffffff17 80%,transparent 96%),
  linear-gradient(180deg,#dbe6d9 0%,#b6c8b4 14%,#a2b7a1 48%,#8ea48d 82%,#7b917a 100%);
 box-shadow:inset 0 1px 0 #ffffffe6,inset 0 2px 3px #ffffff4d,inset 0 -1px 0 #566c56,inset 0 -3px 5px #4d634d4d}
.wood,.face.outside{background-image:
  linear-gradient(90deg,transparent 6%,#ffffff1c 24%,transparent 42%,transparent 64%,#ffffff14 82%,transparent 96%),
  linear-gradient(180deg,#c9d8c7 0%,#a9bca8 10%,#99ae98 45%,#879d86 85%,#6d836d 100%)}
.face.outside{box-shadow:inset 0 1px 0 #ffffffd9,inset 0 3px 4px #ffffff40,inset 0 -2px 0 #5a705a,inset 0 -6px 8px #3f553f40}
.box-front .outside,.box-right .outside{background-image:
  linear-gradient(90deg,transparent 6%,#ffffff1c 24%,transparent 42%,transparent 64%,#ffffff14 82%,transparent 96%),
  linear-gradient(180deg,#c3d3c1 0%,#a3b8a2 9%,#94aa93 45%,#829981 86%,#6a806a 100%);background-size:100% 100%}
.lid-surface,.lid-surface.wood{border-color:#6f876f}
.lid-edge{background:linear-gradient(180deg,#e9ecea,#b9bfbc 40%,#8d9592 60%,#d4d8d6);box-shadow:0 1px 0 #3f4f3f,0 2px 3px #3d4a3a66}
.ground-shadow{background:#3c473a40}
.ground-shadow:after{background:#2e392e59}

/* The lid's front edge is its enamel thickness (it sits at the top once the lid is raised), not a silver bar */
.lid-edge{background:linear-gradient(180deg,#c9d8c7,#a2b7a1 45%,#879d86);box-shadow:inset 0 1px 0 #ffffffb3,inset 0 -1px 0 #5a705a}

/* The clasp is the box's "open" button: a raised cream push-button with a silver bezel, straddling the lid seam.
   It lifts a touch when the box is hovered and presses in while clicked. */
.box-front .outside:before{top:-17px;width:80px;height:40px;margin-left:-40px;border-radius:9px;
 background:linear-gradient(180deg,#fbf7ef 0%,#efe8db 38%,#e2d9c8 70%,#d3c8b4 100%);
 border:2px solid #bfc4c2;
 box-shadow:0 0 0 1px #8f9592,0 3px 0 #b6ad9c,0 5px 7px #2f3b2f59,inset 0 2px 0 #ffffffe6,inset 0 -3px 4px #a99d8659;
 transition:transform .25s var(--ease),box-shadow .25s var(--ease)}
.box-viewport:has(.box-open-hit:hover) .box-front .outside:before{transform:translateY(-2px);box-shadow:0 0 0 1px #8f9592,0 5px 0 #b6ad9c,0 8px 10px #2f3b2f4d,inset 0 2px 0 #ffffffe6,inset 0 -3px 4px #a99d8659}
.box-viewport:has(.box-open-hit:active) .box-front .outside:before{transform:translateY(2px);box-shadow:0 0 0 1px #8f9592,0 1px 0 #b6ad9c,0 2px 3px #2f3b2f59,inset 0 2px 3px #a99d8659}
.box-front .outside{overflow:visible}
@media (prefers-reduced-motion:reduce){.box-front .outside:before{transition:none}}
/* Seat the clasp fully on the base front, tucked just under the lid seam, so the lid never hides its top */
.box-front .outside:before{top:3px;width:92px;height:40px;margin-left:-46px}

/* ==========================================================================
   Realism pass for the enamel box: no outline strokes, a thick rounded lid frame
   that rolls off at the outer edge and steps down to clear glass, a front lip
   overhanging the base with a single dark seam, small steel hinges, felt grain.
   ========================================================================== */
.lid-surface,.lid-surface.wood{border:0;border-radius:24px}
.box-rim:before,.box-rim:after{border-color:transparent}

/* Each rail shades across its own width: dark outer roll, bright crown, darker inner bevel, thin lit lip at the glass */
.lid-outside .lid-rail{box-shadow:none}
.lid-outside .rail-top{border-radius:24px 24px 0 0;background-image:linear-gradient(180deg,#869d85 0%,#a9bca7 10%,#c8d7c6 30%,#bccdba 55%,#a3b7a2 80%,#8aa089 93%,#d3dfd1 100%)}
.lid-outside .rail-bottom{border-radius:0 0 24px 24px;background-image:linear-gradient(180deg,#d3dfd1 0%,#8aa089 7%,#a3b7a2 20%,#bfcfbd 45%,#b2c4b0 70%,#93a992 88%,#778e76 100%)}
.lid-outside .rail-left{background-image:linear-gradient(90deg,#839a82 0%,#a7baa5 12%,#c3d2c1 35%,#b8c9b6 62%,#9fb39e 84%,#889e87 94%,#d0dccd 100%)}
.lid-outside .rail-right{background-image:linear-gradient(90deg,#d0dccd 0%,#889e87 6%,#9fb39e 16%,#b5c6b3 40%,#a9bca7 68%,#91a790 88%,#7a917a 100%)}

/* Clear glass that sits a step below the frame */
.lid-outside .glass-panel{border:0;border-radius:8px;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:inset 0 5px 7px #3d523d4d,inset 4px 0 6px #3d523d26,inset -4px 0 6px #3d523d26,inset 0 -2px 3px #ffffff33,inset 0 0 0 1px #ffffff40}
.lid-outside .glass-panel:before{display:none}

/* Front lip of the lid: rounded top-to-bottom shading ending in a dark seam over the base */
.lid-edge{border-radius:0 0 10px 10px;background:linear-gradient(180deg,#bfcfbd 0%,#a9bca7 35%,#8ea48d 75%,#6f866f 100%);box-shadow:0 2px 0 #4f654f,0 3px 4px #2f3f2f40}

/* Base: one smooth enamel face, darker toward the floor, shadowed just under the lid overhang */
.box-front .outside,.box-right .outside,.face.outside{background-image:
  linear-gradient(180deg,#3d523d59 0,#3d523d00 14px),
  linear-gradient(180deg,#a7bba6 0%,#9db29c 35%,#8ea48d 75%,#7c937c 100%);background-size:100% 100%}
.face.outside,.box-right .outside{box-shadow:inset 0 -2px 0 #667c66,inset 0 -8px 10px #3f553f2e}
.box-front .outside{border-top:0;border-radius:0 0 22px 22px}

/* Small steel hinges with visible knuckles */
.lid-outside:before,.lid-outside:after{top:-6px;width:58px;height:10px;border-radius:2px;
  background:repeating-linear-gradient(90deg,transparent 0 18px,#5f6563 18px 19px,transparent 19px 20px),linear-gradient(180deg,#eef0ef 0%,#b4b9b7 45%,#7e8482 75%,#a9aeac 100%);
  box-shadow:0 1px 1px #2f3a2f66,inset 0 1px 0 #ffffffb3}

/* Fine felt grain inside the tray */
.velvet{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.35'/%3E%3C/svg%3E"),radial-gradient(ellipse at 48% 40%,#b0baa6 0%,#a0ab95 45%,#8e9a84 100%);background-size:160px 160px,100% 100%}

/* Polaroid: the real frame artwork (tape and caption are part of the image) */
.desk-polaroid:not(.polaroid-inside){width:128px;padding:0;background:none;border-radius:0;box-shadow:none;filter:drop-shadow(0 1px 1px #1a2e2238) drop-shadow(0 5px 7px #1a2e2229)}
.desk-polaroid:not(.polaroid-inside) img{aspect-ratio:auto;object-fit:contain;filter:none}
.desk-polaroid:not(.polaroid-inside):before,.desk-polaroid:not(.polaroid-inside):after{display:none}
.desk-polaroid:not(.polaroid-inside).is-hovered,.desk-polaroid:not(.polaroid-inside):hover,.desk-polaroid:not(.polaroid-inside):focus-visible{box-shadow:none;filter:drop-shadow(0 2px 2px #1a2e2238) drop-shadow(0 10px 12px #1a2e2233)}
.polaroid-inside{width:122px;height:112px}

/* ==========================================================================
   Rendered materials: textures cut from the box render replace the drawn enamel,
   felt and clasp. The 3D panels and the opening animation are unchanged.
   ========================================================================== */
/* Lid: the real rounded enamel frame; the glass sits exactly inside its window */
.lid-outside.lid-surface{background:url('assets/tex-lid-frame.webp') center/100% 100% no-repeat;border-radius:18px;box-shadow:none}
.lid-outside .lid-rail{background:none;box-shadow:none}
.lid-outside .glass-panel{inset:28px 38px 25px 36px;border-radius:6px}
/* Lid lip down to the seam, with the clasp riding on it so it travels with the lid */
.lid-edge{background:url('assets/tex-lid-lip.webp') center/100% 100% no-repeat;border-radius:0;box-shadow:0 2px 3px #2f3f2f33}

/* Base front: real enamel from the seam to the rounded bottom corners */
.box-front .outside{background:url('assets/tex-base-front.webp') center/100% 100% no-repeat;box-shadow:none;border-radius:0}
.box-left .outside,.box-right .outside{background:linear-gradient(180deg,#9aae9b,#8a9e8b 60%,#7c907d);box-shadow:none}
/* Felt floor and inner walls */
.box-floor.velvet{background:url('assets/tex-felt.webp') center/100% 100% no-repeat}
.face.inside{background:url('assets/tex-inner-wall.webp') center/100% 100% no-repeat}

/* Clasp on the base front, tucked right under the seam (the lid would hide anything above it) */
.box-front .outside:before{display:block;content:'';top:1px;left:50%;width:70px;height:37px;margin-left:-35px;border:0;border-radius:0;background:url('assets/tex-clasp.webp') center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 2px 2px #2f3b2f40)}
.box-viewport:has(.box-open-hit:hover) .box-front .outside:before{transform:translateY(-1px);box-shadow:none;filter:drop-shadow(0 3px 3px #2f3b2f4d) brightness(1.04)}
.box-viewport:has(.box-open-hit:active) .box-front .outside:before{transform:translateY(1px);box-shadow:none;filter:drop-shadow(0 1px 1px #2f3b2f40) brightness(.92)}
/* Open lid: clear glass on the inside too (no leftover paper texture or blur) */
.lid-inside .glass-panel{-webkit-backdrop-filter:none;backdrop-filter:none;background:linear-gradient(130deg,#ffffff14,#ffffff05)}
.lid-inside .glass-panel:before{display:none}
/* The base texture already curves round its ends, so the square side panels would only poke out below it */
.box-left .outside,.box-right .outside{background:none;box-shadow:none}
/* Lid lip: shadow follows its rounded ends, and it sits inside the frame's corners */
.lid-edge{left:12px;right:12px;box-shadow:none;filter:drop-shadow(0 2px 2px #2f3f2f33)}
/* Inside of the lid: the same real enamel frame (mirrored top-to-bottom), drawn over the photo's back so the frame hides it */
.lid-inside.lid-surface{background:none;border-radius:18px;box-shadow:none}
.lid-inside .lid-rail{background:none;box-shadow:none}
.lid-inside:after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:url('assets/tex-lid-frame-inside.webp') center/100% 100% no-repeat}
.lid-inside .glass-panel{inset:25px 38px 28px 36px;border-radius:6px;box-shadow:inset 0 0 0 1px #ffffff40}
/* Nothing shows through the base's rounded bottom corners: the felt floor is rounded to match */
.box-floor{border-radius:14px 14px 34px 34px}
/* The lid lip belongs to the closed silhouette; it fades as the lid lifts so its ends never stick out past the frame */
.lid-edge{opacity:calc(1 - var(--open,0)*1.8)}
/* Inner side walls round off at the bottom so they never peek through the base's rounded corners */
.box-left .inside,.box-right .inside{border-radius:0 0 34px 34px}
/* The left wall is seen more side-on in perspective, so its corner needs a bigger curve to stay hidden */
.box-left .inside{border-radius:0 0 90px 90px}
