:root{--background-blur:10px;--background-viewport-height:100vh;color-scheme:dark;background:#252723}
@supports(height:100dvh){:root{--background-viewport-height:100dvh}}
*{box-sizing:border-box}
html{min-height:100%;overflow-x:clip}
body{position:relative;isolation:isolate;min-height:100vh;min-height:100svh;margin:0}
/* Keep the photograph flush with the current visible viewport, including browser-bar changes. */
.background-stage{position:fixed;top:0;left:0;width:100vw;height:var(--background-viewport-height);z-index:-1;overflow:hidden;pointer-events:none;background:#252723;--photo-scale:1.14;--photo-anchor:50%;--photo-focus:-50%}
/* A softer copy fills the edges without enlarging and cropping the subject. */
.background-stage::before{content:"";position:absolute;inset:-48px;background:url("./assets/portrait.webp") center/cover no-repeat;filter:blur(36px) brightness(.84)}
.background-photo{position:absolute;left:var(--photo-anchor);bottom:0;display:block;width:auto;height:calc(var(--background-viewport-height) * var(--photo-scale));max-width:none;transform:translateX(var(--photo-focus));filter:blur(var(--background-blur));-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.page-content{position:relative;min-height:100vh;min-height:100svh}
@media(min-aspect-ratio:2/1){.background-stage{--photo-anchor:54%}}
@media(max-aspect-ratio:1/1){.background-stage{--photo-scale:1.12;--photo-anchor:54%;--photo-focus:-60%}.background-stage::before{background-position:60% center}}
@media(max-width:540px) and (orientation:portrait){.background-stage{--photo-anchor:53%}}
@media(min-width:1024px) and (orientation:landscape){html[data-platform="mac"] .background-photo{left:calc(var(--photo-anchor) + 1.5vw)}}
