/* A quiet full-screen portfolio, with a floating photo dock. */
.home-hero{height:100svh;min-height:0;padding:0}
.home-hero:before{background:linear-gradient(180deg,#00000012,transparent 18%,transparent 54%,#000000a3)}
.portfolio-caption{position:absolute;z-index:3;left:var(--pad);bottom:calc(146px + env(safe-area-inset-bottom,0px));width:min(520px,calc(100vw - 2 * var(--pad)));color:#fff;pointer-events:none;text-shadow:0 1px 12px #0009}
.portfolio-caption p{margin:0}
.portfolio-caption .portfolio-signature{font-size:11px;line-height:1.5;letter-spacing:.04em;color:#ffffffe6;margin-bottom:10px}
#portfolio-sentence{font-size:21px;font-weight:400;line-height:1.45;letter-spacing:-.015em;text-wrap:balance;max-width:600px;transition:opacity .18s}
.portfolio-caption.is-changing #portfolio-sentence{opacity:0}
.window-open .portfolio-caption{display:none}
@media(min-width:1280px){
 .portfolio-caption{bottom:calc(44px + env(safe-area-inset-bottom,0px));width:min(340px,calc(50vw - 332.5px - var(--pad) - 24px))}
 #portfolio-sentence{font-size:19px;line-height:1.5}
}
@media(max-width:600px){
 .portfolio-caption{left:24px;right:24px;bottom:calc(90px + env(safe-area-inset-bottom,0px));transform:none;width:auto}
 .portfolio-caption .portfolio-signature{font-size:11px;letter-spacing:0;margin-bottom:8px}
 #portfolio-sentence{font-size:17px;line-height:1.5;max-width:360px}
}
.home-hero .hero-backdrops .hero-image{object-position:var(--scene-position,center)}
.home-gallery-title,.scene-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.background-controls.photo-dock{--thumb:48px;position:fixed;left:50%;right:auto;bottom:max(28px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:15px;width:max-content;max-width:calc(100vw - 48px);height:90px;padding:12px 16px;border:1px solid #ffffff9c;border-radius:999px;background:linear-gradient(145deg,#ffffff66,#ffffff2e);box-shadow:inset 0 1px 0 #ffffffb3,0 15px 45px #00000026;backdrop-filter:blur(26px) saturate(125%);-webkit-backdrop-filter:blur(26px) saturate(125%);color:rgba(0,0,0,.72)}
.photo-dock .scene-strip{display:flex;align-items:center;gap:10px;height:70px;padding:10px 6px 4px;min-width:0}
.photo-dock button.scene-choice{display:block;position:relative;flex:0 0 var(--thumb);width:var(--thumb);height:var(--thumb);border-radius:50%;background:none;border:1px solid #ffffffa6;box-shadow:0 2px 8px #00000026;transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s;transform-origin:50% 85%;padding:0}
.photo-dock .scene-choice:before{display:none}
.photo-dock .scene-choice img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;pointer-events:none}
.photo-dock .scene-choice[aria-pressed=true]{transform:translateY(-4px) scale(1.24);box-shadow:0 0 0 2px #ffffffe6,0 7px 16px #00000030;z-index:2}
.photo-dock .scene-choice[aria-pressed=true]:after{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:#fff;left:calc(50% - 2px);bottom:-10px;box-shadow:0 1px 3px #0005}
@media(hover:hover){.photo-dock .scene-choice:hover{transform:translateY(-6px) scale(1.26);z-index:3}.photo-dock .scene-choice:has(+.scene-choice:hover),.photo-dock .scene-choice:hover+.scene-choice{transform:translateY(-2px) scale(1.1)}}
.photo-dock button:focus-visible{outline:2px solid #fff;outline-offset:5px}
.photo-dock button.scene-pause{width:34px;height:44px;flex:none;border-left:1px solid #ffffff70;border-radius:0;padding-left:10px;background:none;opacity:.8}
.photo-dock .scene-pause svg{width:15px;height:15px;fill:currentColor}
.photo-dock button.scene-arrow{display:none}
.window-open .background-controls.photo-dock{display:none}
@media(max-width:760px) and (min-width:601px){.background-controls.photo-dock{--thumb:40px;gap:8px;padding:10px 13px;height:80px;bottom:22px}.photo-dock .scene-strip{gap:8px}}
@media(max-width:600px){
 .home-hero{height:100svh;min-height:0;padding:0}
 .background-controls.photo-dock{--thumb:42px;bottom:max(22px,env(safe-area-inset-bottom));max-width:none;width:calc(100vw - 28px);height:78px;padding:6px;gap:3px;border-radius:28px}
 .photo-dock .scene-strip{flex:1;height:66px;padding:10px 9px 7px;gap:10px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;scroll-behavior:smooth;scroll-padding-inline:10px}
 .photo-dock .scene-strip::-webkit-scrollbar{display:none}
 .photo-dock button.scene-choice{display:block}
 .photo-dock button.scene-arrow{display:grid;place-items:center;width:40px;height:48px;flex:none;background:transparent;border:0;border-radius:24px;color:rgba(0,0,0,.72)}
 .photo-dock .scene-arrow svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
 .photo-dock button.scene-pause{width:27px;height:36px;padding-left:4px;border:0;opacity:.66}
 .photo-dock .scene-pause svg{width:12px;height:12px}
 .photo-dock .scene-choice[aria-pressed=true]{transform:translateY(-2px) scale(1.18)}
}
@media(prefers-reduced-motion:reduce){.photo-dock .scene-choice,.photo-dock .scene-strip{transition:none;scroll-behavior:auto}}

.home-hero .hero-backdrops{--photo-fade:3.2s}
.home-hero .hero-backdrops .hero-image.is-standby{opacity:0;transition:none;z-index:0}

.photo-dock .scene-choice.is-loading:before{content:'';display:block;position:absolute;inset:-5px;width:auto;height:auto;border:2px solid #ffffff50;border-top-color:#fff;border-radius:50%;background:none;opacity:1;animation:photo-loading 1.2s linear infinite}
@keyframes photo-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.photo-dock .scene-choice.is-loading:before{animation:none;border-style:dotted}}
