*{box-sizing:border-box}html{background:#fff}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#171717;font-size:14px}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}button:focus-visible,a:focus-visible{outline:2px solid currentColor;outline-offset:7px}header{position:fixed;top:0;left:0;width:100%;height:106px;display:flex;align-items:center;justify-content:space-between;padding:0 4%;z-index:20;mix-blend-mode:difference;color:white}.name{position:absolute;left:50%;transform:translateX(-50%);font-size:26px;font-weight:700;letter-spacing:-1.2px}header span{font-size:10px;vertical-align:top;margin-left:4px}.about-link{margin-left:auto}#gallery{position:relative;height:calc(100svh - 300px);min-height:360px}.card{position:absolute;left:50%;top:50%;width:240px;height:162px;transform:translate(-50%,-50%) rotate(var(--r));transition:transform .8s cubic-bezier(.2,.7,.2,1),box-shadow .3s;box-shadow:0 3px 17px #0002;border:5px solid white;background:#eee;cursor:pointer}.card img{width:100%;height:100%;object-fit:cover;display:block}.card .caption{position:absolute;bottom:0;left:0;right:0;color:white;background:linear-gradient(transparent,#000b);padding:35px 12px 12px;opacity:0;text-align:left;font-size:12px;line-height:1.4;transition:opacity .2s}.card .caption b{display:block;font-weight:400}.card .play{position:absolute;top:12px;right:12px;width:26px;height:26px;border-radius:50%;background:#fff;color:#111;display:grid;place-content:center;font-size:10px;opacity:0}.expanded #gallery{height:auto;min-height:950px}.expanded .card{left:0;top:0;width:var(--w);height:auto;aspect-ratio:var(--ratio);transform:translate(var(--x),var(--y));border:0;box-shadow:none;transition:transform .85s cubic-bezier(.2,.7,.2,1),height .8s,width .8s,opacity .3s}.expanded .card:hover,.expanded .card:focus-visible{z-index:3;box-shadow:0 8px 30px #0003}.expanded .card:hover .caption,.expanded .card:focus-visible .caption,.expanded .card:hover .play{opacity:1}.intro{text-align:center;position:fixed;bottom:19%;left:0;width:100%;pointer-events:none;transition:opacity .3s}.intro p{font-size:16px;letter-spacing:-.3px;margin-bottom:13px}.intro button{font-size:11px;color:#777;pointer-events:auto}.intro span{margin-left:8px}.expanded .intro{opacity:0;pointer-events:none}.expanded .intro button{pointer-events:none}footer{position:fixed;bottom:30px;left:4%;right:4%;display:flex;justify-content:space-between;font-size:11px;z-index:5;mix-blend-mode:difference;color:white}#restack{opacity:0;pointer-events:none}.expanded #restack{opacity:1;pointer-events:auto}#about{padding:170px 12% 100px;min-height:100svh;background:#f5f4f0}.about-top{display:flex;gap:12%;align-items:start}.about-top>span,.eyebrow{font-size:10px;letter-spacing:1px}.about-top h1{font-size:clamp(60px,8vw,110px);line-height:.98;font-weight:400;letter-spacing:-6px;margin:0 0 70px}.about-body{display:grid;grid-template-columns:2fr 1fr;gap:15%;margin-left:21%}.about-body p{line-height:1.6;margin:0 0 24px}#bio{font-size:20px;line-height:1.55}.about-body a{text-decoration:underline;text-underline-offset:4px}.back-work{display:inline-block;margin:70px 0 0 21%}dialog{max-width:none;max-height:none;width:100%;height:100svh;inset:0;margin:0;padding:0;background:#101010;color:white;border:0;z-index:50}dialog::backdrop{background:#101010}.player-top{height:85px;display:flex;justify-content:space-between;align-items:center;padding:0 4%}.player-top>.player-home{font-size:20px;font-weight:bold;letter-spacing:-.8px}#screen{height:calc(100svh - 280px);min-height:230px;width:100%;background:black}#screen iframe{width:100%;height:100%;border:0}.description{position:relative;display:grid;grid-template-columns:1fr 1fr auto;gap:35px;background:#f4f3ef;color:#141414;margin:-12px auto 0;width:85%;padding:24px 30px;box-shadow:0 8px 35px #0003}.description h2{font-size:17px;font-weight:400;margin:8px 0}.description span{font-size:10px;color:#777}.description p{font-size:13px;line-height:1.5;margin:0}.description>a{font-size:11px;align-self:center}.player-bottom{display:flex;justify-content:space-between;padding:27px 7.5%;font-size:12px}body.modal{overflow:hidden}@media(max-width:700px){header{height:82px;padding:0 6%}.name{font-size:22px}header>a:not(.name){font-size:12px}#work{padding:120px 6% 80px}.card{width:210px;height:145px}.intro{bottom:23%}.expanded .card .caption{opacity:1;font-size:10px;padding:25px 8px 8px}footer{left:6%;right:6%;bottom:22px;font-size:10px}.about-top{display:block}.about-top h1{margin-top:35px;letter-spacing:-3px}.about-body{display:block;margin:0}#about{padding:140px 8% 80px}.back-work{margin-left:0}#bio{font-size:18px}.description{grid-template-columns:1fr;width:92%;gap:12px;padding:20px}.description>a{display:none}.description h2{margin:4px 0}.description p{font-size:12px}#screen{height:55svh}.player-top{height:75px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Portfolio base palette */
html,body{background:#F7F7F7;color:#000}header{mix-blend-mode:normal;color:#000}#about{background:#F7F7F7}footer{mix-blend-mode:normal;color:#000}.intro button{color:#000}.card{border-color:#F7F7F7}.description{background:#F7F7F7;color:#000}


@font-face{font-family:"Helvetica Black Local";src:local("Helvetica Black"),local("Helvetica-Black"),local("Helvetica Neue Black"),local("HelveticaNeue-Black");font-weight:900;font-style:normal;font-display:swap}
.name,.player-top>.player-home{font-family:"Helvetica Black Local",Helvetica,"Helvetica Neue",Arial,sans-serif;font-weight:900;text-transform:lowercase}

/* Edge-to-edge film stills and centered hover titles. */
.card,.expanded .card{border:0;overflow:hidden;padding:0}
.card img{object-fit:cover;transform:scale(var(--image-zoom,1));transition:filter .35s ease,transform .5s ease;pointer-events:none}
.card .caption,.expanded .card .caption{inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;background:transparent;color:#fff;font-size:clamp(11px,1.05vw,16px);line-height:1.4;letter-spacing:.02em;font-weight:400;z-index:2;opacity:0;text-shadow:0 1px 12px #0008;pointer-events:none}
.expanded .card:is(:hover,:focus-visible) img{filter:none;transform:scale(var(--image-zoom,1))}
.expanded .card:is(:hover,:focus-visible) .caption{opacity:1}
.card .play,.expanded .card:hover .play{display:none}


/* Cards travel from their actual stack positions into the gallery. */
.expanded .card{height:var(--h);transform-origin:center;transition:box-shadow .3s}
.unfolding .card{pointer-events:none;will-change:transform}
.unfolding .card img{filter:none;transform:scale(var(--image-zoom,1))}
.unfolding .card .caption{opacity:0}
#work{min-height:100svh;padding:155px 9% 95px}
@media(max-width:700px){#work{padding:120px 6% 80px}}
/* Yellow-to-green circular gradient radiating from the name's center. */
.name,.player-top>.player-home{background-image:radial-gradient(circle farthest-side at 50% 50%,#fff600 0%,#fff600 55%,#faf500 80%,#f3f200 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}

/* Loosely scattered, translucent opening stack. */
body:not(.expanded) .card{transform:translate(calc(-50% + var(--stack-x,0px)),calc(-50% + var(--stack-y,0px))) rotate(var(--r));opacity:.8}
.expanded .card{opacity:1;transition:opacity .55s ease,box-shadow .3s}
/* Warm near-black site palette. */
html,body,#about{background:#100A0A;color:#F7F7F7}
header,footer,.intro button{color:#F7F7F7}
.description{background:#100A0A;color:#F7F7F7}
.description span{color:#b9aeaa}
/* Full-bleed thumbnail edges in both stack and gallery views. */
.card,.expanded .card,.expanded .card:hover,.expanded .card:focus-visible{border:0;border-radius:0;padding:0;box-shadow:none;background:transparent}
.card img{display:block;border:0;border-radius:0;max-width:none;outline:0}

.card .caption,.expanded .card .caption{flex-direction:column;gap:5px}
.caption-client,.caption-project{display:block;text-align:center}
.caption-client{text-transform:uppercase}
.caption-project{text-transform:none;letter-spacing:0}

/* Work flows into About through a gentle vertical scroll transition. */
html{scroll-behavior:smooth;scroll-snap-type:y proximity;scroll-padding-top:0}
#work,#about{scroll-snap-align:start;scroll-margin-top:0}
#work{position:relative}
footer{position:absolute;bottom:30px}
#about{padding:150px 9% 100px;min-height:100svh}
.about-content{max-width:1120px;margin:0 auto;opacity:0;transform:translateY(45px);transition:opacity .85s ease,transform .95s cubic-bezier(.2,.7,.2,1)}
#about.revealed .about-content{opacity:1;transform:translateY(0)}
.about-heading{margin:0 0 65px}
.about-heading h1{font-size:clamp(34px,4.2vw,60px);font-weight:400;letter-spacing:-1.8px;line-height:1.1;margin:25px 0 10px}
.pronunciation{font-size:12px;color:#a69f9c}
.about-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14%}
.about-copy{font-size:18px;line-height:1.65;max-width:560px}
.about-copy p{margin:0 0 24px}
.about-copy a{text-decoration:underline;text-underline-offset:4px}
.about-contact{margin-top:50px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.about-contact>a{font-size:15px}
.about-details{font-size:13px;line-height:1.6;display:flex;flex-direction:column;gap:32px}
#about .eyebrow{font-size:10px;letter-spacing:1.5px;color:#a69f9c}
.about-details dl{margin:18px 0 0}.about-details dl>div{margin-bottom:22px}
.about-details dt{font-weight:400}.about-details dd{margin:4px 0 0;color:#a69f9c}
.about-details p{margin:14px 0 0}
#about .back-work{margin:70px 0 0;font-size:12px}
.viewing-about .intro{opacity:0;pointer-events:none}.viewing-about .intro button{pointer-events:none}
@media(max-width:700px){#about{padding:125px 8% 70px}.about-layout{grid-template-columns:1fr;gap:55px}.about-copy{font-size:16px}.about-heading{margin-bottom:42px}footer{bottom:22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto} .about-content{opacity:1;transform:none;transition:none}}

/* Section travel uses a single eased animation instead of native snap settling. */
html{scroll-snap-type:none;scroll-behavior:auto}
.section-snapping .about-content{transition:opacity .75s ease,transform 1s cubic-bezier(.16,1,.3,1)}

/* Spotlight the active thumbnail by softening its neighbors. */
body.expanded:not(.unfolding) #gallery:has(.card:hover,.card:focus-visible) .card:not(:hover):not(:focus-visible) img{filter:blur(7px);transform:scale(calc(var(--image-zoom,1) * 1.06))}
body.expanded:not(.unfolding) #gallery .card:is(:hover,:focus-visible) img{filter:none;transform:scale(var(--image-zoom,1))}


/* Near-full-bleed project player, with a quiet description below. */
#player{overflow-y:auto}
.player-top{height:64px;padding:0 2%}
#screen{width:100%;height:calc(100svh - 64px);min-height:280px}
.description{width:100%;margin:0;padding:26px 4%;box-shadow:none;grid-template-columns:1fr 1fr;gap:40px}
@media(max-width:700px){.player-top{height:60px;padding:0 5%}#screen{height:calc(100svh - 60px);min-height:0}.description{width:100%;padding:24px 6%;grid-template-columns:1fr;gap:12px}}

/* Keep film and description together within the viewport. */
#player[open]{display:flex;flex-direction:column;height:100svh}
.player-top{flex:0 0 64px}
#screen{flex:1 1 0;height:auto;min-height:0}
.description{flex:0 0 auto;margin:0;padding:22px 4%;align-items:center}
.description h2{margin:0;font-size:17px;line-height:1.4}
.description p{margin:0;line-height:1.5}
@media(max-width:700px){.player-top{flex-basis:60px}#screen{height:auto;min-height:0}.description{padding:18px 6%;gap:9px}.description h2{font-size:15px}.description p{font-size:12px}}

/* Client, project, and blurb share a clean three-column baseline. */
.description{grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,2fr);gap:clamp(24px,4vw,72px);align-items:start}
.description #project-client,.description #project-title{font-size:13px;font-weight:400;line-height:1.5;margin:0}
.description #project-client{letter-spacing:.03em}
@media(max-width:700px){.description{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 20px}.description #project-description{grid-column:1/-1}.description #project-client,.description #project-title{font-size:12px}}

/* Clean video surface: click anywhere to play or pause. */
#screen{position:relative}
#screen iframe{display:block}
.video-toggle{position:absolute;inset:0;z-index:1;width:100%;height:100%;background:transparent;border:0;cursor:pointer}
.video-toggle:focus-visible{outline:2px solid #fff600;outline-offset:-4px}

/* Minimal custom controls, without provider titles or branding. */
#screen{display:flex;flex-direction:column}
#screen iframe{flex:1 1 0;min-height:0;height:auto}
.video-toggle{height:auto;bottom:48px}
.video-controls{position:relative;z-index:2;flex:0 0 48px;display:flex;align-items:center;gap:24px;padding:0 4%;background:#100A0A;color:#f7f7f7;font-size:12px}
.video-controls button{min-width:42px;text-align:left;white-space:nowrap}
.video-controls input[type=range]{appearance:none;-webkit-appearance:none;flex:1;min-width:30px;height:3px;margin:0;background:linear-gradient(to right,#fff600 var(--progress,0%),#645d5b var(--progress,0%));cursor:pointer;border:0;border-radius:0}
.video-controls input[type=range]::-webkit-slider-thumb{appearance:none;width:10px;height:10px;border-radius:50%;background:#fff600;border:0}
.video-controls input[type=range]::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#fff600;border:0}
.video-controls input:disabled{opacity:.45;cursor:default}
.video-controls input:focus-visible{outline:1px solid #fff600;outline-offset:7px}
.video-time{font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#b9aeaa}
@media(max-width:700px){.video-controls{gap:14px;padding:0 6%;font-size:11px}.video-controls button{min-width:36px}.video-time{font-size:9px}}

/* Credits follow the first-screen film and project description. */
#player[open]{display:block;overflow-y:auto}
.player-primary{height:100svh;display:flex;flex-direction:column}
.project-credits{padding:42px 4% 70px;background:#100A0A;color:#f7f7f7;border-top:1px solid #ffffff16}
.project-credits h3{font-size:11px;font-weight:400;text-transform:uppercase;letter-spacing:.1em;margin:0 0 30px;color:#a69f9c}
#credits-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 5vw;margin:0}
#credits-list dt{font-size:11px;line-height:1.5;color:#a69f9c;margin-bottom:5px}
#credits-list dd{font-size:13px;line-height:1.6;margin:0}
@media(max-width:700px){.project-credits{padding:30px 6% 50px}#credits-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}}
/* A quieter, more minimal About layout. */
#about{padding:150px 9% 90px}
.about-content{max-width:1020px}
.about-heading{margin:0 0 46px}
.about-heading h1{font-size:24px;line-height:1.3;letter-spacing:-.5px;margin:18px 0 8px}
.pronunciation{font-size:11px}
.about-layout{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:15%}
.about-copy{font-size:14px;line-height:1.75;max-width:450px}
.about-copy p{margin:0 0 19px}
.about-contact{margin-top:35px;gap:10px}
.about-contact>a{font-size:13px}
.about-details{font-size:12px;line-height:1.65;gap:25px}
.about-details dl{margin-top:13px}
.about-details dl>div{margin-bottom:18px}
.about-details dd{margin-top:2px}
#about .eyebrow{font-size:9px;letter-spacing:1.1px}
#about .back-work{margin-top:50px;font-size:11px}
@media(max-width:700px){#about{padding:115px 8% 65px}.about-heading{margin-bottom:32px}.about-heading h1{font-size:22px}.about-layout{grid-template-columns:1fr;gap:38px}.about-copy{font-size:13px;line-height:1.75}.about-details{font-size:11px}}
/* About fits a single viewport at standard desktop and phone sizes. */
#about{height:100svh;min-height:100svh;padding:105px 7% 28px;display:flex;align-items:center}
.about-content{max-width:1280px;width:100%;margin:auto}
.about-heading{margin-bottom:28px}
.about-heading h1{font-size:22px;margin:12px 0 5px}
.about-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1.55fr);gap:8%}
.about-copy{font-size:13px;line-height:1.65}
.about-copy p{margin-bottom:14px}
.about-contact{margin-top:22px;gap:8px}
.about-details{display:grid;grid-template-columns:1.15fr 1fr;gap:24px 30px;align-content:start;font-size:11px;line-height:1.55}
.about-details>div:first-child{grid-row:span 2}
.about-details dl{margin-top:12px}.about-details dl>div{margin-bottom:16px}
.about-details p{margin-top:12px}
#about .back-work{margin-top:26px}
@media(max-width:700px){
 #about{padding:90px 7% 22px}
 .about-heading{margin-bottom:18px}.about-heading h1{font-size:20px;margin-top:9px}.pronunciation{font-size:10px}
 .about-layout{grid-template-columns:1fr;gap:22px}
 .about-copy{max-width:none;font-size:12px;line-height:1.55}.about-copy p{margin-bottom:10px}
 .about-contact{margin-top:16px;gap:6px}.about-contact>a{font-size:12px}
 .about-details{font-size:10px;line-height:1.45;gap:14px 22px}.about-details dl{margin-top:8px}.about-details dl>div{margin-bottom:11px}
 #about .eyebrow{font-size:8px}#about .back-work{margin-top:18px;font-size:10px}
}
@media(max-height:740px){
 #about{padding-top:85px;padding-bottom:18px}
 .about-heading{margin-bottom:15px}.about-heading h1{font-size:19px;margin:8px 0 4px}
 .about-copy{font-size:12px;line-height:1.5}.about-copy p{margin-bottom:9px}
 .about-contact{margin-top:14px}.about-details{font-size:10px;gap:15px 22px}.about-details dl>div{margin-bottom:11px}
 #about .back-work{margin-top:16px}
}
@media(max-width:700px) and (max-height:740px){.about-copy{font-size:11px;line-height:1.45}.about-layout{gap:15px}.about-details{font-size:9px}.about-details dl>div{margin-bottom:8px}.about-heading{margin-bottom:13px}.about-contact{margin-top:10px}}
/* Give the bio more breathing room before the résumé columns. */
@media(min-width:701px){.about-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1.3fr);gap:16%}}

/* A faster, crisp arrival when the gallery snaps into About. */
.section-snapping #about .about-content{transition:opacity .3s ease-out,transform .54s cubic-bezier(.16,1,.3,1)}

/* Unlabelled text blocks with the CV aligned to the far right. */
.about-content{max-width:none}
.about-heading{margin-bottom:25px}.about-heading h1{margin-top:0}
.about-layout{grid-template-columns:minmax(0,410px) minmax(0,430px);justify-content:space-between;gap:clamp(70px,15vw,280px)}
.about-details{grid-template-columns:1.15fr 1fr;gap:32px;justify-self:end;width:100%}
.about-details>div:first-child{grid-row:auto}
.about-details dl{margin-top:0}
.about-contact{margin-top:24px}
@media(min-width:1000px){#about{padding-right:4%}}
@media(max-width:900px){.about-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10%}.about-details{gap:20px}}
@media(max-width:700px){.about-layout{grid-template-columns:1fr;gap:30px}.about-details{width:100%;grid-template-columns:1.15fr 1fr}.about-heading{margin-bottom:18px}}
@media(max-width:700px) and (max-height:740px){.about-layout{gap:20px}}

/* Keep the return link near About's lower-left corner. */
#about{position:relative;padding-bottom:70px}
#about .back-work{position:absolute;left:7%;bottom:30px;margin:0}
@media(max-width:700px){#about{padding-bottom:60px}#about .back-work{bottom:22px}}

/* Leave room for the final glyph beyond its advance width. */
.name,.player-top>.player-home{display:inline-block;padding-right:.16em;padding-left:.04em;line-height:1.25;overflow:visible}

/* A volume of film frames: depth becomes time. */
.time-cube{position:absolute;left:50%;top:50%;width:290px;height:190px;transform:translate(-50%,-50%);perspective:1100px;perspective-origin:50% 35%;isolation:auto}
.cube-volume{position:relative;width:100%;height:100%;transform-style:preserve-3d;transform:rotateX(-18deg) rotateY(-30deg)}
body:not(.expanded) .time-cube .card{left:0;top:0;width:290px;height:190px;transform:translateZ(var(--depth));transform-style:preserve-3d;transform-origin:center;opacity:1;overflow:visible;box-shadow:none;transition:none;z-index:auto!important;cursor:pointer}
body:not(.expanded) .time-cube .card img{position:absolute;inset:0;opacity:.12;transform:scale(1);object-fit:cover;backface-visibility:visible;pointer-events:none}
body:not(.expanded) .time-cube .card.cube-front img{opacity:.65}
.time-slice{position:absolute;inset:0;display:block;background-repeat:no-repeat;opacity:.065;pointer-events:none;backface-visibility:visible}
.cube-wire{position:absolute;display:block;border:1px solid #e5e3d126;pointer-events:none;box-sizing:border-box;backface-visibility:visible}
.cube-wire-front,.cube-wire-back{width:290px;height:190px;left:0;top:0}
.cube-wire-front{transform:translateZ(122px)}.cube-wire-back{transform:translateZ(-122px)}
.cube-wire-top,.cube-wire-bottom{width:290px;height:244px;left:0;top:50%;margin-top:-122px}
.cube-wire-top{transform:translateY(-95px) rotateX(90deg)}.cube-wire-bottom{transform:translateY(95px) rotateX(90deg)}
.cube-wire-left,.cube-wire-right{width:244px;height:190px;left:50%;margin-left:-122px;top:0}
.cube-wire-left{transform:translateX(-145px) rotateY(90deg)}.cube-wire-right{transform:translateX(145px) rotateY(90deg)}
@media(max-width:700px){.time-cube{transform:translate(-50%,-50%) scale(.73)}}

/* A slow turn through the volume of film frames. */
.cube-volume{animation:cube-turn 48s linear infinite;will-change:transform}
@keyframes cube-turn{
 0%{transform:rotateX(-18deg) rotateY(-30deg)}
 25%{transform:rotateX(-10deg) rotateY(60deg)}
 50%{transform:rotateX(-18deg) rotateY(150deg)}
 75%{transform:rotateX(-26deg) rotateY(240deg)}
 100%{transform:rotateX(-18deg) rotateY(330deg)}
}
@media(prefers-reduced-motion:reduce){.cube-volume{animation:none;will-change:auto}}

/* Cursor-led camera: a restrained tilt, with click-to-unfold. */
.cube-volume{animation:none;transform:rotateX(var(--camera-x,0deg)) rotateY(var(--camera-y,0deg));transition:transform .65s cubic-bezier(.2,.7,.2,1)}
.time-cube{cursor:pointer;outline-offset:75px}
.time-cube:focus-visible{outline:1px solid #fff600}
@media(prefers-reduced-motion:reduce){.cube-volume{transition:none}}

/* Mobile: touch-first navigation, gallery, and player. */
@media(max-width:700px){
 body{overflow-x:clip}
 header{height:calc(72px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 20px 0;background:linear-gradient(#100a0afa,#100a0a00)}
 header>a:not(.name){display:flex;align-items:center;min-height:44px;font-size:12px}
 .name{font-size:22px}
 #work{padding:calc(88px + env(safe-area-inset-top)) 20px 32px}
 body:not(.expanded) #gallery{height:calc(100svh - 120px - env(safe-area-inset-top));min-height:0}
 .expanded #gallery{min-height:0}
 .time-cube{transform:translate(-50%,-50%) scale(.78);touch-action:pan-y}
 .cube-volume{--camera-x:-12deg;--camera-y:-18deg}
 .card{touch-action:pan-y}
 .expanded .card .caption{inset:auto 0 0;min-height:70px;opacity:1;padding:28px 10px 12px;font-size:11px;line-height:1.35;gap:3px;background:linear-gradient(transparent,#000b);text-shadow:0 1px 8px #0009}
 .expanded .card .caption-client{font-size:10px;letter-spacing:.03em}
 .unfolding .card .caption{opacity:0}
 .player-primary{height:auto;min-height:0}
 #player{height:100dvh}
 .player-top{flex-basis:calc(64px + env(safe-area-inset-top));height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 20px 0}
 .player-top>.player-home{font-size:20px}
 #close{min-width:44px;min-height:44px}
 #screen{flex:0 0 auto;height:calc(100vw * .5625 + 56px)}
 .video-controls{flex-basis:56px;gap:14px;padding:0 20px;font-size:12px}
 .video-controls button{min-height:44px;min-width:44px}
 .video-toggle{bottom:56px}
 .video-controls input[type=range]{height:44px;background:none;touch-action:pan-x}
 .video-controls input[type=range]::-webkit-slider-runnable-track{height:3px;background:linear-gradient(to right,#fff600 var(--progress,0%),#645d5b var(--progress,0%))}
 .video-controls input[type=range]::-webkit-slider-thumb{width:14px;height:14px;margin-top:-5.5px}
 .video-controls input[type=range]::-moz-range-track{height:3px;background:#645d5b}
 .video-controls input[type=range]::-moz-range-progress{height:3px;background:#fff600}
 .video-controls input[type=range]::-moz-range-thumb{width:14px;height:14px}
 .video-time{font-size:9px}
 .description{padding:22px 20px 28px;gap:12px 20px}
 .description #project-client,.description #project-title{font-size:12px}
 .description #project-description{font-size:13px;line-height:1.6}
 .project-credits{padding:28px 20px calc(32px + env(safe-area-inset-bottom))}
 #credits-list{gap:23px 20px}#credits-list dt{font-size:10px}#credits-list dd{font-size:12px}
 #about{padding:calc(88px + env(safe-area-inset-top)) 24px calc(68px + env(safe-area-inset-bottom));height:100svh;align-items:center}
 .about-heading h1{font-size:20px}.about-heading{margin-bottom:20px}
 .about-copy{font-size:clamp(12px,1.6svh,14px);line-height:1.55}.about-copy p{margin-bottom:10px}
 .about-layout{gap:24px}.about-details{font-size:clamp(10px,1.35svh,12px);gap:20px;line-height:1.5}
 .about-details dl>div{margin-bottom:12px}.about-contact{margin-top:17px}.about-contact>a{font-size:12px}
 #about .back-work{left:24px;bottom:calc(16px + env(safe-area-inset-bottom));min-height:44px;display:flex;align-items:center;font-size:11px}
}
@media(max-width:370px){.name{font-size:20px}.video-controls{gap:10px;padding:0 16px}.video-time{font-size:8px}}
@media(hover:none){
 body.expanded:not(.unfolding) #gallery:has(.card:hover,.card:focus-visible) .card img{filter:none;transform:scale(var(--image-zoom,1))}
}
@media(max-width:700px) and (max-height:740px){
 #about{padding-top:80px;padding-bottom:62px}.about-heading{margin-bottom:13px}.about-layout{gap:16px}.about-copy{font-size:12px;line-height:1.45}.about-copy p{margin-bottom:8px}.about-details{font-size:10px;line-height:1.4}.about-details dl>div{margin-bottom:9px}.about-contact{margin-top:12px}
}

/* Each front film slips to the rear as the next layer advances. */
body:not(.expanded) .time-cube .card{transition:transform .85s cubic-bezier(.4,0,.2,1)}
body:not(.expanded) .time-cube .card img{transition:opacity .7s ease}
@media(prefers-reduced-motion:reduce){body:not(.expanded) .time-cube .card,body:not(.expanded) .time-cube .card img{transition:none}}

/* Softer, lighter frame density with a gradual diffusion through depth. */
body:not(.expanded) .time-cube .card{transition:transform 2.3s cubic-bezier(.4,0,.2,1)}
body:not(.expanded) .time-cube .card img{opacity:.075;filter:blur(2.4px);transition:opacity 2.2s ease,filter 2.2s ease}
body:not(.expanded) .time-cube .card.cube-front img{opacity:.4;filter:blur(.9px)}
.time-slice{opacity:.04;filter:blur(1.5px)}
@media(prefers-reduced-motion:reduce){body:not(.expanded) .time-cube .card,body:not(.expanded) .time-cube .card img{transition:none}}

/* A persistent light switch, repeated inside the modal's top layer. */
:root{color-scheme:dark;--switch-bg:#100a0a;--switch-ink:#f7f7f7}
.theme-switch{position:fixed;right:calc(24px + env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));z-index:70;display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 12px;background:var(--switch-bg);color:var(--switch-ink);font-size:11px;line-height:1;letter-spacing:.01em;border:0;border-radius:0}
.switch-track{display:block;position:relative;width:27px;height:15px;border:1px solid currentColor;border-radius:20px;opacity:.8}
.switch-track:after{content:'';position:absolute;left:3px;top:3px;width:7px;height:7px;border-radius:50%;background:currentColor;transition:transform .2s}
.theme-switch[aria-checked=true] .switch-track:after{transform:translateX(12px)}
html[data-theme=light]{color-scheme:light;--switch-bg:#f7f7f7;--switch-ink:#000}
html[data-theme=light],html[data-theme=light] body,html[data-theme=light] #about,html[data-theme=light] #player,html[data-theme=light] .description,html[data-theme=light] .project-credits,html[data-theme=light] .video-controls{background:#F7F7F7;color:#000}
html[data-theme=light] header{color:#000}
html[data-theme=light] .name,html[data-theme=light] .player-home{background-image:none;color:#000;-webkit-text-fill-color:#000}
html[data-theme=light] .about-details dd,html[data-theme=light] .pronunciation,html[data-theme=light] #credits-list dt,html[data-theme=light] .project-credits h3,html[data-theme=light] .video-time{color:#666}
html[data-theme=light] .project-credits{border-top-color:#0002}
html[data-theme=light] .cube-wire{border-color:#0003}
html[data-theme=light] .video-controls input[type=range]{background:linear-gradient(to right,#111 var(--progress,0%),#ccc var(--progress,0%))}
html[data-theme=light] .video-controls input[type=range]::-webkit-slider-thumb{background:#111}
html[data-theme=light] .video-controls input[type=range]::-moz-range-thumb{background:#111}
html[data-theme=light] :is(button,a,input):focus-visible{outline-color:#000}
@media(max-width:700px){
 .theme-switch{right:calc(12px + env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));font-size:10px;padding:8px 10px;gap:9px}
 html[data-theme=light] header{background:linear-gradient(#f7f7f7fa,#f7f7f700)}
 html[data-theme=light] .video-controls input[type=range]{background:none}
 html[data-theme=light] .video-controls input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right,#111 var(--progress,0%),#ccc var(--progress,0%))}
 html[data-theme=light] .video-controls input[type=range]::-moz-range-track{background:#ccc}
 html[data-theme=light] .video-controls input[type=range]::-moz-range-progress{background:#111}
}

/* Supplied light-state rocker: clicking it switches back to dark. */
.switch-fallback{display:flex;align-items:center;gap:12px}
.switch-image{display:none;width:39px;height:73px;object-fit:contain}
.theme-switch[aria-checked=true]{background:transparent;padding:4px;min-width:47px;min-height:81px}
.theme-switch[aria-checked=true] .switch-fallback{display:none}
.theme-switch[aria-checked=true] .switch-image{display:block}

/* Both theme states use the supplied rocker images. */
.theme-switch,.theme-switch[aria-checked=true]{background:transparent;padding:4px;min-width:47px;min-height:81px}
.theme-switch .switch-image{display:block;width:39px;height:73px}
/* Editorial pairing for client and film names. */
@font-face{font-family:"Portfolio Neue Haas";src:local("Neue Haas Grotesk Display Pro Medium"),local("NeueHaasGroteskDispPro-Md"),local("Neue Haas Grotesk Text Pro Medium"),local("NeueHaasGroteskTextPro-Md"),local("Neue Haas Grotesk Medium"),local("NeueHaasDisplay-Mediu");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Portfolio Neue Montreal Mono";src:local("PP Neue Montreal Mono"),local("PPNeueMontrealMono-Regular"),local("Neue Montreal Mono"),local("NeueMontrealMono-Regular");font-weight:400;font-style:normal;font-display:swap}
.list-client,.caption-client,.description #project-client{font-family:"Portfolio Neue Haas","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:600}
.list-project,.caption-project,.description #project-title{font-family:"Portfolio Neue Montreal Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;font-weight:400;letter-spacing:-.035em}

@font-face{font-family:"Portfolio Neue Haas";src:url("assets/fonts/NHaasGroteskTXPro-65Md.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}

@font-face{font-family:"Portfolio Neue Montreal Light";src:url("assets/fonts/NeueMontreal-Light.otf") format("opentype");font-weight:300;font-style:normal;font-display:swap}
.list-project,.caption-project,.description #project-title{font-family:"Portfolio Neue Montreal Light","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;letter-spacing:-.02em}
/* Neue Montreal for both lines of the thumbnail hover labels. */
.card .caption,.card .caption-client,.card .caption-project{font-family:"Portfolio Neue Montreal Light","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;letter-spacing:-.02em}

/* Full-bleed content crops and a sparse, dissolving film volume. */
.cube-still{position:absolute;inset:0;display:block;overflow:hidden;pointer-events:none}
body:not(.expanded) .time-cube .cube-still img{width:100%;height:100%;transform:scale(var(--image-zoom,1));object-fit:cover}
body:not(.expanded) .time-cube .card{transition:transform 3.5s cubic-bezier(.4,0,.2,1)}
body:not(.expanded) .time-cube .card img{opacity:.04;filter:blur(2.5px);transition:opacity 3.3s ease,filter 3.3s ease}
body:not(.expanded) .time-cube .card.cube-front img{opacity:.23;filter:blur(1.5px)}
.time-slice{overflow:hidden;opacity:.03;filter:none;background:none}
.time-exposure{position:absolute;inset:-3px;display:block;background-repeat:no-repeat;filter:blur(1.5px);opacity:0;transition:opacity 1.8s ease-in-out;pointer-events:none}
.expanded .cube-still{position:absolute;inset:0;overflow:hidden}
@media(prefers-reduced-motion:reduce){body:not(.expanded) .time-cube .card,body:not(.expanded) .time-cube .card img,.time-exposure{transition:none}}
/* A faint trace of the wordmark's yellow around the volume. */
.cube-wire,html[data-theme=light] .cube-wire{border-color:rgba(255,246,0,.14)}
/* Lift the image luminance while keeping the volume airy. */
body:not(.expanded) .time-cube .card img{filter:brightness(1.35) blur(2.5px)}
body:not(.expanded) .time-cube .card.cube-front img{filter:brightness(1.35) blur(1.5px)}
.time-exposure{filter:brightness(1.35) blur(1.5px)}

/* Continuous conveyor motion begins on the first rendered frame. */
body:not(.expanded) .time-cube .card{transition:none}
body:not(.expanded) .time-cube .card img,body:not(.expanded) .time-cube .card.cube-front img{opacity:var(--layer-alpha,.12);filter:brightness(1.35) blur(var(--layer-softness,2px));transition:none}
.time-slice{opacity:var(--sample-alpha,.025)}

/* Brighter individual exposures, much less cumulative layer density. */
body:not(.expanded) .time-cube .card img,body:not(.expanded) .time-cube .card.cube-front img{filter:brightness(1.8) blur(var(--layer-softness,2px))}
.time-exposure{filter:brightness(1.8) blur(1.5px)}

/* Luminous, additive exposures: all depths stay bright and translucent. */
body:not(.expanded) .time-cube .cube-still{mix-blend-mode:screen}
body:not(.expanded) .time-cube .card img,body:not(.expanded) .time-cube .card.cube-front img{filter:brightness(2.6) contrast(.92) saturate(1.15) blur(1.8px)}
.time-slice{mix-blend-mode:screen}
.time-exposure{filter:brightness(2.6) contrast(.92) saturate(1.15) blur(2px);transition:opacity 1.8s linear}
html[data-theme=light] body:not(.expanded) .time-cube .cube-still,html[data-theme=light] .time-slice{mix-blend-mode:normal}

/* Reference balance: readable leading exposure and a light, luminous trail. */
body:not(.expanded) .time-cube .card img,body:not(.expanded) .time-cube .card.cube-front img{filter:brightness(1.9) contrast(.96) saturate(1.02) blur(var(--layer-softness,1.8px))}
.time-exposure{filter:brightness(2.1) contrast(.92) saturate(1.02) blur(2px)}
/* More luminous exposures without increasing their opacity or density. */
body:not(.expanded) .time-cube .card img,body:not(.expanded) .time-cube .card.cube-front img{filter:brightness(2.35) contrast(.96) saturate(1.05) blur(var(--layer-softness,1.8px)) drop-shadow(0 0 5px rgba(255,245,205,.2))}
.time-exposure{filter:brightness(2.6) contrast(.92) saturate(1.05) blur(2px) drop-shadow(0 0 6px rgba(255,245,205,.16))}
/* Neue Montreal throughout the About page. */
#about,#about h1,#about p,#about a,#about dt,#about dd,#about .pronunciation{font-family:"Portfolio Neue Montreal Light","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300}

@font-face{font-family:"Portfolio Neue Montreal Regular";src:url("assets/fonts/NeueMontreal-Regular.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap}
#about,#about h1,#about p,#about a,#about dt,#about dd,#about .pronunciation{font-family:"Portfolio Neue Montreal Regular","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400}
/* A narrower, centered project gallery. */
.expanded #gallery{width:85%;margin-left:auto;margin-right:auto}

/* Match the video surround to the selected site palette. */
#player,.player-primary,#screen,#screen iframe{background-color:#100A0A}
#screen iframe{color-scheme:normal}
html[data-theme=light] #player,html[data-theme=light] .player-primary,html[data-theme=light] #screen,html[data-theme=light] #screen iframe{background-color:#F7F7F7}
/* Half-size rocker artwork, retaining a comfortable touch target. */
.theme-switch,.theme-switch[aria-checked=true]{min-width:44px;min-height:44px;padding:3px;justify-content:center}
.theme-switch .switch-image{width:19.5px;height:36.5px}
/* Quiet contrast for white hover captions. */
.card .caption,.expanded .card .caption{text-shadow:0 1px 3px rgba(0,0,0,.55),0 2px 9px rgba(0,0,0,.3)}
/* One step more weight for the About bio. */
#about .about-copy>p{font-weight:500;-webkit-text-stroke:.12px currentColor}
/* Softer link underlines in the About text. */
#about .about-copy a{text-decoration-thickness:1px;text-decoration-color:rgba(247,247,247,.38);text-underline-offset:3px;-webkit-text-stroke:0}
html[data-theme=light] #about .about-copy a{text-decoration-color:rgba(0,0,0,.32)}
/* A small darker-yellow spot tracks the pointer inside the wordmark. */
.name.is-logo-hovered,.player-top>.player-home.is-logo-hovered{background-image:radial-gradient(circle 24px at var(--logo-x,50%) var(--logo-y,50%),#d9d400 0%,#e9e200 40%,#fff600 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
html[data-theme=light] .name.is-logo-hovered,html[data-theme=light] .player-home.is-logo-hovered{background-image:radial-gradient(circle 24px at var(--logo-x,50%) var(--logo-y,50%),#d9d400 0%,#e9e200 40%,#fff600 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
/* Equal-sized introduction and bio, two pixels larger. */
#about .about-copy>p,#about .about-heading h1{font-size:15px}
#about .about-heading h1{line-height:1.65;letter-spacing:normal}
@media(max-height:740px){#about .about-copy>p,#about .about-heading h1{font-size:14px}}
@media(max-width:700px){#about .about-copy>p,#about .about-heading h1{font-size:clamp(14px,calc(1.6svh + 2px),16px)}}
@media(max-width:700px) and (max-height:740px){#about .about-copy>p,#about .about-heading h1{font-size:14px}}

#about .agency-name{white-space:nowrap}

/* Creative / director filters flank the centered wordmark. */
.identity{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:26px;white-space:nowrap}
.identity .name{position:static;left:auto;transform:none}
.role-filter{font-family:"Portfolio Neue Montreal Regular","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:400;min-height:44px;opacity:.5;transition:opacity .2s}
.role-filter:hover,.role-filter:focus-visible,.role-filter[aria-pressed=true]{opacity:1}
.card[hidden]{display:none!important}
@media(max-width:700px){
 header{height:calc(96px + env(safe-area-inset-top));align-items:flex-end;padding-bottom:0}
 .identity{top:calc(12px + env(safe-area-inset-top));gap:12px}
 .identity .name{font-size:22px}
 .role-filter{font-size:11px}
 header>a:not(.name){min-height:40px}
 #work{padding-top:calc(112px + env(safe-area-inset-top))}
}

/* Filtered projects disappear without moving their gallery neighbors. */
.expanded .card{transition:opacity .3s ease,box-shadow .3s}
.expanded .card.role-hidden{opacity:0;visibility:hidden;pointer-events:none}

.role-filter:disabled{opacity:.3;cursor:default;pointer-events:none}

/* Immediate role filtering; thumbnail positions are already established. */
.role-filter{transition:none}
.expanded .card{transition:none}

/* Recognition sits quietly toward the lower right of About. */
.about-recognition{position:absolute;right:4%;bottom:72px;max-width:430px;font-family:"Portfolio Neue Montreal Regular","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:11px;font-weight:400;line-height:1.6;color:#a69f9c}
.about-recognition p{margin:0 0 5px}
html[data-theme=light] .about-recognition{color:#666}
@media(max-width:900px){.about-recognition{right:7%;max-width:42%;font-size:10px;bottom:65px}}
@media(max-width:700px){
 #about{height:100svh;min-height:100svh}
 .about-recognition{position:static;max-width:none;margin:26px 0 0 auto;width:100%;font-size:10px;line-height:1.5}
 .about-recognition p{margin-bottom:5px}
}

@media(max-width:700px) and (max-height:740px){.about-recognition{margin-top:15px;font-size:9px;line-height:1.35}.about-recognition p{margin-bottom:3px}.about-details dl>div{margin-bottom:7px}}
/* Recognition follows the CV in normal flow, with its own row. */
.about-recognition{position:static;right:auto;bottom:auto;width:430px;max-width:100%;margin:38px 0 0 auto}
@media(max-width:900px){.about-recognition{width:45%;max-width:100%;margin-top:30px}}
@media(max-width:700px){.about-recognition{width:100%;margin-top:24px}}
@media(max-width:700px) and (max-height:740px){.about-recognition{margin-top:16px}}

.card[data-project-id="behemoth"] .caption-client{text-transform:none}
.card[data-project-id="behemoth"] .caption-project{display:none}
/* Airier hover labels, with a little more emphasis on the client. */
.card .caption,.card .caption-client,.card .caption-project{letter-spacing:.015em}
.card .caption-client{font-family:"Portfolio Neue Montreal Regular","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400}

.card .caption-project:empty{display:none}

/* Email and recognition share the same lower alignment. */
.about-bottom{display:flex;justify-content:space-between;align-items:flex-start;gap:clamp(40px,10vw,180px);margin-top:38px}
#about .about-bottom .about-contact{margin:0;flex-shrink:0}
#about .about-bottom .about-recognition{position:static;width:430px;max-width:100%;margin:0}
@media(max-width:900px){.about-bottom{gap:10%;margin-top:30px}#about .about-bottom .about-recognition{width:45%}}
@media(max-width:700px){.about-bottom{display:grid;grid-template-columns:1fr;gap:18px;margin-top:24px}#about .about-bottom .about-recognition{width:100%}}
#about .about-bottom .about-contact a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:rgba(247,247,247,.38)}
html[data-theme=light] #about .about-bottom .about-contact a{text-decoration-color:rgba(0,0,0,.32)}

/* Silent local hover preview; the still remains underneath until playback is ready. */
.card .hover-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:0;z-index:1;transition:opacity .18s ease}
body.expanded:not(.unfolding) .card.hover-playing .hover-preview{opacity:1}

/* Show the opening frame of Ford Racing immediately on hover. */
.card[data-project-id="ford-racing-F1"] .hover-preview{transition:none}

/* Soft, independently drifting color streaks for the Behemoth thumbnail. */
.card .behemoth-lava{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;z-index:1;opacity:0;transition:opacity .35s ease}
.behemoth-lava .lava-streak{animation:none}
body.expanded:not(.unfolding) .card[data-project-id="behemoth"]:not(.role-hidden):is(:hover,:focus-visible) .behemoth-lava{opacity:1}
body.expanded .card[data-project-id="behemoth"] .cube-still{z-index:0}

/* Mobile home: one column, with sharpness determined by viewport position. */
@media(max-width:700px),(hover:none) and (pointer:coarse){
 #gallery{width:100%;margin-left:0;margin-right:0}
 body.expanded:not(.unfolding) #gallery .card .cube-still img{filter:blur(7px)!important;transform:scale(calc(var(--image-zoom,1)*1.05))!important;transition:filter .3s ease,transform .3s ease}
 body.expanded:not(.unfolding) #gallery .card.mobile-in-focus .cube-still img{filter:none!important;transform:scale(var(--image-zoom,1))!important}
 .card .hover-preview{display:none}
 .cube-volume{--camera-x:0deg;--camera-y:0deg;transition:transform .15s ease-out}
 .expanded .card .caption{opacity:1}
}
@media(prefers-reduced-motion:reduce){.cube-volume{transition:none}}

/* The fullscreen container keeps the custom controls alongside the film. */
#screen:fullscreen{width:100vw;height:100dvh;min-height:0;display:flex;flex-direction:column;background:#100a0a}
#screen:-webkit-full-screen{width:100vw;height:100dvh;min-height:0;display:flex;flex-direction:column;background:#100a0a}
#screen:fullscreen iframe,#screen:-webkit-full-screen iframe{flex:1;min-height:0;width:100%;height:0}
.video-fullscreen{flex-shrink:0}
@media(max-width:700px),(hover:none) and (pointer:coarse){
 .time-cube{touch-action:none;cursor:grab}
 .time-cube:active{cursor:grabbing}
 .theme-switch{display:none!important}
 .video-controls{gap:8px;padding-left:16px;padding-right:16px;font-size:11px}
 .video-controls .video-fullscreen{min-width:64px}
}
@media(max-width:370px){.video-controls .video-time{display:none}}

/* Four-corner fullscreen icon, anchored at the bottom-right of the controls. */
.video-controls{padding-right:12px}
.video-controls .video-fullscreen{display:grid;place-items:center;flex:0 0 44px;min-width:44px;width:44px;height:44px;padding:0;margin-left:auto;color:inherit}
.video-fullscreen svg{display:block;width:20px;height:20px;pointer-events:none}

/* Mobile captions follow the same viewport focus as image sharpness. */
@media(max-width:700px),(hover:none) and (pointer:coarse){
 body.expanded #gallery .card .caption{opacity:0;transition:opacity .25s ease}
 body.expanded:not(.unfolding) #gallery .card.mobile-in-focus:not(.role-hidden) .caption{opacity:1}
}

/* Mobile drag may begin on any unoccupied part of the intro screen. */
@media(max-width:700px),(hover:none) and (pointer:coarse){
 body:not(.expanded) #work,body:not(.expanded) #gallery{touch-action:none}
 #gallery{width:90%;margin-left:5%;margin-right:5%}
}

/* Center the intro against the viewport rather than the padded gallery. */
@media(max-width:700px),(hover:none) and (pointer:coarse){
 body:not(.expanded) #work{padding-top:0;padding-bottom:0;min-height:100svh}
 body:not(.expanded) #gallery{height:100svh;min-height:0}
 .expanded #gallery{width:76.5%;margin-left:auto;margin-right:auto}
}

/* Give mobile About a dark lead-in and enough height to snap fully to the top. */
@media(max-width:700px),(hover:none) and (pointer:coarse){
 #about{margin-top:72px;height:100vh;min-height:100vh;height:100dvh;min-height:100dvh;background:#100a0a}
}

/* Lift middle values with a white-preserving gamma curve; keep the volume sparse. */
body:not(.expanded) .time-cube .card img,body:not(.expanded) .time-cube .card.cube-front img{filter:brightness(2) contrast(.96) url(#cube-midtones) saturate(1.03) blur(var(--layer-softness,1.8px))}
body:not(.expanded) .time-cube .time-exposure{filter:brightness(2.15) contrast(.94) url(#cube-midtones) saturate(1.03) blur(2px)}
body:not(.expanded) .time-cube .cube-halo{position:absolute;inset:-24px;display:block;pointer-events:none;background-size:cover;background-repeat:no-repeat;opacity:var(--cloud-alpha,.018);mix-blend-mode:screen;filter:url(#cube-midtones) blur(13px);mask-image:radial-gradient(ellipse 28% 34% at 9% 30%,#000 10%,transparent 95%),radial-gradient(ellipse 30% 38% at 91% 62%,#000 12%,transparent 95%),radial-gradient(ellipse 36% 24% at 48% 96%,#000 12%,transparent 95%);-webkit-mask-image:radial-gradient(ellipse 28% 34% at 9% 30%,#000 10%,transparent 95%),radial-gradient(ellipse 30% 38% at 91% 62%,#000 12%,transparent 95%),radial-gradient(ellipse 36% 24% at 48% 96%,#000 12%,transparent 95%);animation:cube-cloud-float 15s ease-in-out infinite alternate;backface-visibility:visible}
@keyframes cube-cloud-float{0%{transform:translate3d(-6px,5px,2px) scale(1.02) rotate(-2deg)}50%{transform:translate3d(6px,-8px,3px) scale(1.08) rotate(1deg)}100%{transform:translate3d(-3px,-13px,2px) scale(1.04) rotate(2deg)}}
@media(prefers-reduced-motion:reduce){body:not(.expanded) .time-cube .cube-halo{animation:none}}

/* Restore color and luminous midtones without thickening the translucent planes. */
body:not(.expanded) .time-cube .card img,body:not(.expanded) .time-cube .card.cube-front img{filter:saturate(1.38) contrast(1.06) brightness(2.65) url(#cube-midtones) blur(var(--layer-softness,1.8px))}
body:not(.expanded) .time-cube .time-exposure{filter:saturate(1.32) contrast(1.04) brightness(2.75) url(#cube-midtones) blur(2px)}
body:not(.expanded) .time-cube .cube-halo{filter:saturate(1.25) url(#cube-midtones) blur(13px);opacity:calc(var(--cloud-alpha,.018)*.72)}

/* Reference glow: a readable luminous lead plane, with sparse colored depth. */
body:not(.expanded) .time-cube .card img,body:not(.expanded) .time-cube .card.cube-front img{filter:saturate(1.32) contrast(1.04) brightness(2.05) url(#cube-midtones) blur(var(--layer-softness,1.8px)) drop-shadow(0 0 5px rgba(255,240,195,.12))}
body:not(.expanded) .time-cube .time-exposure{filter:saturate(1.3) contrast(1.03) brightness(2.2) url(#cube-midtones) blur(2.5px)}
body:not(.expanded) .time-cube .cube-halo{filter:saturate(1.5) brightness(2.4) url(#cube-midtones) blur(12px);opacity:var(--cloud-alpha,.018)}

/* Feather each exposure into an irregular, airy perimeter. */
body:not(.expanded) .time-cube .cube-still,
body:not(.expanded) .time-cube .time-slice{
 overflow:visible;
 -webkit-mask-image:radial-gradient(ellipse 72% 76% at 48% 47%,#000 34%,rgba(0,0,0,.94) 48%,rgba(0,0,0,.58) 67%,rgba(0,0,0,.16) 85%,transparent 100%);
 mask-image:radial-gradient(ellipse 72% 76% at 48% 47%,#000 34%,rgba(0,0,0,.94) 48%,rgba(0,0,0,.58) 67%,rgba(0,0,0,.16) 85%,transparent 100%);
}
body:not(.expanded) .time-cube .cube-still img,
body:not(.expanded) .time-cube .card.cube-front .cube-still img{
 -webkit-mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3) 5%,#000 19%,#000 80%,rgba(0,0,0,.25) 95%,transparent),linear-gradient(0deg,transparent,rgba(0,0,0,.35) 6%,#000 20%,#000 80%,rgba(0,0,0,.25) 96%,transparent);
 -webkit-mask-composite:source-in;
 mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3) 5%,#000 19%,#000 80%,rgba(0,0,0,.25) 95%,transparent),linear-gradient(0deg,transparent,rgba(0,0,0,.35) 6%,#000 20%,#000 80%,rgba(0,0,0,.25) 96%,transparent);
 mask-composite:intersect;
}
body:not(.expanded) .time-cube .time-exposure{
 -webkit-mask-image:radial-gradient(ellipse 66% 73% at 51% 49%,#000 40%,rgba(0,0,0,.65) 68%,transparent 100%);
 mask-image:radial-gradient(ellipse 66% 73% at 51% 49%,#000 40%,rgba(0,0,0,.65) 68%,transparent 100%);
}
body:not(.expanded) .time-cube .cube-halo{inset:-40px;filter:saturate(1.5) brightness(2.4) url(#cube-midtones) blur(18px)}
body:not(.expanded) .time-cube .time-slice{
 -webkit-mask-image:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent),linear-gradient(0deg,transparent,#000 24%,#000 76%,transparent);
 -webkit-mask-composite:source-in;
 mask-image:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent),linear-gradient(0deg,transparent,#000 24%,#000 76%,transparent);
 mask-composite:intersect;
}

/* Fill the whole volume; dissolve only the outer rim of each full-size plane. */
body:not(.expanded) .time-cube .cube-still,
body:not(.expanded) .time-cube .time-slice,
body:not(.expanded) .time-cube .time-exposure,
body:not(.expanded) .time-cube .cube-still img,
body:not(.expanded) .time-cube .card.cube-front .cube-still img,
body:not(.expanded) .time-cube .cube-fill{
 -webkit-mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.7) 3%,#000 8%,#000 92%,rgba(0,0,0,.7) 97%,transparent),linear-gradient(0deg,transparent,rgba(0,0,0,.7) 3%,#000 8%,#000 92%,rgba(0,0,0,.7) 97%,transparent);
 -webkit-mask-composite:source-in;
 mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.7) 3%,#000 8%,#000 92%,rgba(0,0,0,.7) 97%,transparent),linear-gradient(0deg,transparent,rgba(0,0,0,.7) 3%,#000 8%,#000 92%,rgba(0,0,0,.7) 97%,transparent);
 mask-composite:intersect;
}
body:not(.expanded) .time-cube .cube-fill{position:absolute;inset:0;display:block;pointer-events:none;background-size:cover;background-repeat:no-repeat;opacity:var(--sample-alpha,.006);mix-blend-mode:screen;filter:saturate(1.3) contrast(1.03) brightness(2.2) url(#cube-midtones) blur(2px);backface-visibility:visible}

/* Sequence cube: every film plane plays its own ordered, silent frame sequence. */
body:not(.expanded) .time-cube .cube-film{position:absolute;inset:0;display:block;pointer-events:none;background-repeat:no-repeat;opacity:0;mix-blend-mode:screen;filter:saturate(1.32) contrast(1.04) brightness(2.05) url(#cube-midtones) blur(var(--layer-softness,1.8px));backface-visibility:visible}
body:not(.expanded) .time-cube .cube-sequence-ready .cube-film{opacity:var(--layer-alpha,.036)}
body:not(.expanded) .time-cube .cube-sequence-ready .cube-still{opacity:0}
body:not(.expanded) .time-cube .cube-sequence-trail{visibility:hidden;filter:saturate(1.3) contrast(1.03) brightness(2.2) url(#cube-midtones) blur(2.5px)}
body:not(.expanded) .time-cube .cube-sequence-ready .cube-sequence-trail{visibility:visible}
body:not(.expanded) .time-cube .cube-film{-webkit-mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.7) 3%,#000 8%,#000 92%,rgba(0,0,0,.7) 97%,transparent),linear-gradient(0deg,transparent,rgba(0,0,0,.7) 3%,#000 8%,#000 92%,rgba(0,0,0,.7) 97%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.7) 3%,#000 8%,#000 92%,rgba(0,0,0,.7) 97%,transparent),linear-gradient(0deg,transparent,rgba(0,0,0,.7) 3%,#000 8%,#000 92%,rgba(0,0,0,.7) 97%,transparent);mask-composite:intersect}

/* Prepare the About reveal layer before it scrolls into view. */
#about .about-content{will-change:opacity,transform}

/* Mobile loads cube assets first; frozen cube frames bridge the gallery reveal. */
.card img[data-deferred-src]{visibility:hidden}
.gallery-placeholder{position:absolute;inset:0;display:block;pointer-events:none;background-repeat:no-repeat;z-index:0}
body:not(.expanded) .gallery-placeholder{display:none}
@media(max-width:700px),(hover:none) and (pointer:coarse){
 body.expanded:not(.unfolding) #gallery .card .gallery-placeholder{filter:blur(7px);transform:scale(1.05);transition:filter .3s ease,transform .3s ease}
 body.expanded:not(.unfolding) #gallery .card.mobile-in-focus .gallery-placeholder{filter:none;transform:none}
}

@media(max-width:700px),(hover:none) and (pointer:coarse){
 .time-cube{transition:opacity .28s ease}
 .time-cube.cube-loading{opacity:0;pointer-events:none}
}

/* Prepared sequence textures carry their color, glow, blur, and edge feather. */
body:not(.expanded) .time-cube.cube-baked .cube-film,
body:not(.expanded) .time-cube.cube-baked .cube-sequence-trail,
body:not(.expanded) .time-cube.cube-baked .cube-sequence-ready .cube-halo{filter:none;-webkit-mask-image:none;mask-image:none}
body:not(.expanded) .time-cube.cube-baked .cube-sequence-ready .cube-still{display:none}
body.viewing-about .time-cube .cube-halo,.time-cube.cube-paused .cube-halo{animation-play-state:paused}

/* Mobile rotation follows the finger without restarting desktop easing. */
@media(max-width:700px),(hover:none) and (pointer:coarse){
 body:not(.expanded) .time-cube .cube-volume{transition:none}
 body:not(.expanded) .time-cube.cube-dragging .cube-halo{animation-play-state:paused}
}
