/* Resume-backed personal content, retaining the portfolio's door interactions. */
body:has(.profile-card) .doors-row{grid-template-columns:repeat(4,minmax(0,1fr));--gap:2.5rem;row-gap:4rem}
.profile-contact{line-height:1.9;margin:2rem 0;color:rgba(var(--sf-rgb),.85)}
.profile-contact a{text-decoration:underline;text-underline-offset:4px}
.fig[data-portrait="profile"]{width:min(78vw,22rem);height:min(90vw,28rem);aspect-ratio:auto;left:50%;bottom:calc(var(--bar-h) + 1rem);overflow:visible}
.fig[data-portrait="profile"] img{object-fit:cover;object-position:50% 42%;border-radius:9rem 9rem 1.5rem 1.5rem;box-shadow:0 24px 60px #0003}
.fig[data-portrait="profile"] #figBase{object-fit:cover;filter:none}
.fig[data-portrait="profile"] .fig-card{left:50%;translate:-50% 0;bottom:1rem;white-space:nowrap}
.hero:has(.fig[data-portrait="profile"]){--fig-h:min(90vw,28rem)}
@media(min-width:1024px){.fig[data-portrait="profile"]{left:auto;right:calc(max(0px,(100% - var(--shell))/2) + var(--gut) + 2rem);width:min(32vw,25rem);height:min(70vh,38rem);bottom:auto;top:50%;translate:0 -50%}.hero:has(.fig[data-portrait="profile"]) .hero-content{padding-bottom:4rem}}
@media(max-width:639.98px){body:has(.profile-card) .doors{height:calc(100svh + var(--service-stops,5)*55svh)}body:has(.profile-card) .doors-row{display:flex}.navm-item{font-size:clamp(1.15rem,5vw,2rem);padding-block:.35rem}.navm-nav{overflow-y:auto;min-height:0}}
.profile-card{background:#211f23!important;color:#f4f0ec;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:1.5rem;text-align:center}
.profile-card>img{width:58%;height:40%;object-fit:cover;object-position:50% 35%;border-radius:1rem}
.profile-card strong{font-size:clamp(1.2rem,3vw,2rem);line-height:1.1}.profile-card>span{font-size:.8rem;line-height:1.6}.profile-card-back{display:flex;flex-direction:column;justify-content:center;gap:1.5rem;height:100%;padding:2rem;text-align:center;overflow-wrap:anywhere}
.service-case{padding:clamp(24px,5vw,56px);margin-bottom:28px;border:1px solid var(--card-line);border-radius:28px;background:var(--card)}
.service-case h2{font-size:clamp(26px,3vw,42px);font-weight:600;letter-spacing:-.025em;line-height:1.12;margin-bottom:24px;max-width:24ch}
.service-case>p:not(.meta){font-size:17px;line-height:1.75;max-width:75ch;color:rgba(var(--fg-rgb),.8)}
.service-skills{display:flex;flex-wrap:wrap;gap:10px}.service-skills li{padding:10px 16px;border:1px solid var(--card-line);border-radius:999px;font-size:14px}
.service-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.service-actions .chip{min-height:44px;height:auto;padding-block:10px}
.intro h1{white-space:normal}
.curated-preview img{height:100%;object-fit:cover}
.showcase-credit{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;font-size:11px;line-height:1.5;color:rgba(var(--fg-rgb),.65)}
.showcase-credit a{text-decoration:underline;text-underline-offset:3px}
.intro .showcase-disclosure{font-size:13px;max-width:70ch;color:rgba(var(--fg-rgb),.6)}
.nav{gap:1.4rem;font-size:1rem}
.nav button{display:block}
.hdr .clock{flex:none}
.navm-nav{overflow-y:auto;justify-content:flex-start;min-height:0}.navm-item{font-size:clamp(1.2rem,3vw,2.5rem)}
/* Keep the menu header and theme controls visible while its links scroll. */
.navm{height:100dvh;overflow:hidden;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.navm-top,.navm-bot{flex:none}
.navm-nav{overscroll-behavior:contain}
.navm-item{min-height:44px;overflow-wrap:anywhere}
.navm-item small{flex:none}
@media(max-height:479.98px){.navm-top,.navm-bot{padding-block:.5rem}.navm-bot{gap:.4rem}.navm-item{padding-block:.25rem}}
/* Measured reference scale. Room pages retain their independent readable scale. */
html:has(.hero){font-size:16px}
@media(max-width:1920px){html:has(.hero){font-size:.8333333333vw}}
@media(max-width:1440px){html:has(.hero){font-size:1.1111111111vw}}
@media(max-width:1024px){html:has(.hero){font-size:1.5625vw}}
@media(max-width:640px){html:has(.hero){font-size:4.4444444444vw}}
.hero:has(.fig[data-portrait="profile"]){--fig-h:27rem;--hero-column-gap:2.5rem}
.hero .h1{font-size:2.625rem;text-wrap:balance}
.hero-content{padding-top:7rem}
.hero-left{gap:1.75rem}
.fig[data-portrait="profile"]{width:auto;height:var(--fig-h);aspect-ratio:801/1033;bottom:var(--bar-h)}
@media(min-width:640px){.hero .h1{font-size:3.5rem}}
@media(min-width:768px){.hero .h1{font-size:4.25rem}}
@media(min-width:768px) and (max-width:1023.98px){.hero:has(.fig[data-portrait="profile"]){--fig-h:43rem}}
@media(min-width:640px) and (max-width:1023.98px){.hero-left{padding-left:1.5rem}}
@media(min-width:1024px){
  .hero .h1{font-size:4.75rem}
  .hero-content{grid-template-columns:repeat(12,minmax(0,1fr));gap:2.5rem}
  .hero-left{grid-column:1/span 7}
  .fig[data-portrait="profile"]{top:auto;translate:none;right:calc(max(0px,(100% - var(--shell))/2) + var(--gut));height:min(calc(100% - var(--bar-h) - 6rem),58rem,calc((min(100vw,var(--shell)) - 2*var(--gut))*.44*1033/801))}
}
.hero .pill-in{min-height:44px}
