/* Shared responsive safeguards for the active portfolio, including iOS Safari. */
/* The public portrait is already cropped; never zoom or offset it again. */
.portrait.portrait-clean,.profile-photo .portrait.portrait-clean{aspect-ratio:1/1!important;border-radius:4px}
.portrait.portrait-clean img,.profile-photo .portrait.portrait-clean img{position:static;display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center;transform:none!important;transition:none!important}
.hero.cv-hero.hero-with-portrait{max-width:1120px;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"heading portrait" "introduction portrait";column-gap:48px;row-gap:22px;align-items:center;padding-top:44px;padding-bottom:40px}
html[lang] body .hero-with-portrait.cv-hero .hero-copy h1{font-size:clamp(38px,4.7vw,60px);line-height:1.08;letter-spacing:-.045em}
.hero-with-portrait .hero-copy{grid-area:heading;align-self:end}
.hero.cv-hero.hero-with-portrait .hero-introduction{grid-area:introduction;align-self:start;max-width:100%;padding:0}
.hero.cv-hero.hero-with-portrait .hero-introduction .lead{max-width:none;line-height:1.7}
.hero.cv-hero.hero-with-portrait .hero-actions{flex-direction:row;align-items:center;gap:12px 24px;margin-top:24px}
.hero-with-portrait .hero-photo{grid-area:portrait;width:100%;max-width:320px;justify-self:end}
.hero-photo>.hero-linkedin{margin-top:12px;min-height:44px;font-size:14px}
@media(max-width:1000px) and (min-width:761px){
 .hero.cv-hero.hero-with-portrait{grid-template-columns:minmax(0,1fr) clamp(220px,28vw,280px);column-gap:32px}
}
@media(max-width:760px){
 .hero.cv-hero.hero-with-portrait{grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "portrait" "introduction";row-gap:22px;padding-top:32px;padding-bottom:32px}
 .hero-with-portrait .hero-photo{width:min(230px,65vw);justify-self:start}
 .hero.cv-hero.hero-with-portrait .hero-introduction{max-width:100%}
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{-webkit-hyphens:none;hyphens:none}
html[lang] body main :is(h1,h2,h3,p,li,dt,dd,figcaption){-webkit-hyphens:none;hyphens:none;word-break:normal}
html[lang] body .hero.cv-hero .hero-copy h1{overflow-wrap:normal;-webkit-hyphens:none;hyphens:none}
html[lang] body :is(.page-intro,.project-title-row) h1{overflow-wrap:normal}
.shell>*,:is(.hero,.horizontal-heading,.profile-layout,.next-step-grid,.qualification-layout,.project-body,.cv-opportunity-grid,.contact-layout,.job)>*{min-width:0}
.hero-secondary-actions,.project-card-action,.stack-arrows,.footer-links{max-width:100%}
.menu-toggle{width:44px;min-width:44px}
.contact-app-help{max-width:43ch;margin-top:24px;font-size:14px;line-height:1.65;color:var(--muted)}
.contact-copy{min-height:44px;padding:10px 4px;text-decoration-color:currentColor}
.contact-method{-webkit-hyphens:none;hyphens:none}
.contact-value{user-select:text;-webkit-user-select:text}
.mobile-page-nav{display:none}
@media(max-width:1050px){
 .mobile-page-nav{display:block;padding-block:24px 32px}
 .mobile-page-nav a{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px;padding:16px 20px;background:var(--surface);color:var(--ink);border-radius:12px;text-decoration:none}
 .mobile-page-nav small{display:block;font-size:14px;line-height:1.5;color:var(--muted)}
 .mobile-page-nav strong{display:block;font-size:20px;line-height:1.4;font-weight:600}
 .mobile-page-nav .arrow{color:var(--accent);flex-shrink:0}
 .mobile-page-nav a:is(:hover,:focus-visible){color:var(--accent);outline:2px solid currentColor;outline-offset:3px}
 .next-project{display:none}
 .nav-enhanced .site-nav.is-open{max-height:calc(100svh - 140px);overflow-y:auto;overscroll-behavior-y:contain}
}
@media(max-width:760px){
 .cv-training,.cv-career-list{grid-template-columns:minmax(0,1fr)}
 .cv-training{gap:28px}
 .compact-footer .footer-inline{flex-wrap:wrap}
 .footer-links{margin-left:0;flex:1 1 100%;gap:6px 18px}
 .footer-links>a{display:inline-flex;align-items:center;min-height:44px}
 .project-card-action{min-height:48px}
 .privacy-category{flex-wrap:wrap}
}
@media(max-width:700px){.cv-strengths{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
 .shell{padding-inline:clamp(20px,5vw,28px)}
 .nav-wrap{gap:8px}
 .nav-tools{gap:8px;min-width:0}
 .site-header .brand-lockup.brand-signature .brand-mark{width:88px;height:44px}
 .languages a{min-width:26px;min-height:44px}
 .header-phone{font-size:12px}
 .hero.cv-hero{gap:22px;padding-top:38px;padding-bottom:32px}
 html[lang] body .hero.cv-hero .hero-copy h1{font-size:clamp(32px,9.2vw,44px);line-height:1.12;letter-spacing:-.04em}
 html[lang] body :is(.intro-band,.contact-heading,.notice-intro) h1{font-size:clamp(30px,8.5vw,42px);line-height:1.15;letter-spacing:-.035em}
 html[lang] body main h2{font-size:clamp(27px,7.5vw,36px);line-height:1.2;letter-spacing:-.03em}
 html[lang] body main h3{font-size:clamp(22px,6.3vw,27px);line-height:1.3;letter-spacing:-.025em}
 .hero.cv-hero .hero-introduction .lead{font-size:17px;line-height:1.75}
 .hero-secondary-actions{gap:4px 20px}
 .hero-secondary-actions>.text-link{font-size:14px}
 .page-index .availability-bar{gap:10px 22px}
 .page-index .availability-bar>span{min-width:0}
 .overview-subnav-links>a{min-height:48px;font-size:14px}
 .cv-fit,.profile-copy,.job-content,.showcase-copy{min-width:0}
 .job{padding-left:22px}
 .project-contribution{padding-left:16px}
 .page-contact .contact-layout.contact-direct{gap:28px;min-height:0}
 .direct-contact-item .contact-value{font-size:clamp(16px,4.25vw,24px);line-height:1.55;white-space:normal;text-wrap:wrap;overflow-wrap:anywhere;letter-spacing:-.025em}
 .direct-contact-item{padding-block:14px 8px}
 .contact-app-help{font-size:14px;margin-top:20px}
 .contact-action+.contact-action{margin-top:20px}
 .privacy-banner{max-height:calc(100svh - 28px);overflow-y:auto;bottom:max(14px,env(safe-area-inset-bottom))}
 .privacy-dialog,.gallery-lightbox{max-width:calc(100% - 24px)}
}
@media(max-width:380px){
 .site-header .brand-lockup.brand-signature .brand-mark{width:72px;height:40px}
 .nav-tools{gap:6px}
 .header-phone{font-size:12px}
 .hero-secondary-actions{column-gap:16px}
}
/* At very narrow widths the number gets its own row instead of shrinking away. */
@media(max-width:359px){
 .nav-enhanced .nav-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;padding-block:4px}
 .nav-enhanced .nav-wrap>.brand-lockup{grid-column:1;grid-row:1;justify-self:start}
 .nav-enhanced .nav-tools{display:contents}
 .nav-enhanced .menu-toggle{grid-column:2;grid-row:1;justify-self:end}
 .nav-enhanced .header-phone{grid-column:1;grid-row:2;justify-self:start;font-size:13px}
 .nav-enhanced .languages{grid-column:2;grid-row:2;justify-self:end}
 .nav-enhanced .site-nav{grid-column:1/-1;grid-row:3}
 .privacy-actions>button{flex-basis:100%;min-width:0}
}

/* Consistent availability typography; cyan separators sit between the facts. */
.page-index .availability-bar{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px;color:var(--ink);font-family:inherit;font-size:clamp(16px,1.35vw,18px);font-weight:650;line-height:1.5}
.page-index .availability-bar>span,.page-index .availability-bar>span:nth-child(n+3){display:inline-flex;align-items:center;gap:24px;min-width:0;margin:0;font:inherit;color:inherit;grid-column:auto}
.page-index .availability-bar>span:not(:first-child)::before{content:"";display:block;width:6px;height:6px;flex:0 0 6px;margin:0;border-radius:50%;background:var(--accent)}
@media(max-width:700px){
 .page-index .availability-bar{flex-direction:column;align-items:flex-start;gap:12px;font-size:16px}
 .page-index .availability-bar>span{flex-direction:column;align-items:flex-start;gap:12px}
 .page-index .availability-bar>span:not(:first-child)::before{align-self:center}
}

/* Native dialogs keep the page behind them stationary, including the full-screen Lenz scene. */
html:has(:is(.gallery-lightbox,.privacy-dialog,.lenz-portal)[open]){overflow:hidden}
@media(max-width:600px){html[lang] body main .commercial-card-caption h2{font-size:24px;line-height:1.3;letter-spacing:-.035em}}
/* Device audit: keep dialog controls reachable, including short landscape windows. */
.privacy-close,.gallery-lightbox-close{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;line-height:1;touch-action:manipulation}
.privacy-dialog h2{padding-right:38px}
.privacy-banner{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.gallery-lightbox{padding-top:52px;max-height:calc(100dvh - 24px);overscroll-behavior:contain}
.gallery-lightbox img,.gallery-lightbox video{max-height:min(70svh,calc(100dvh - 150px));max-width:100%}
.gallery-lightbox-controls button{flex:0 0 44px}
.gallery-lightbox-caption{min-width:0;overflow-wrap:anywhere}
.privacy-storage-wrap{max-width:100%;overscroll-behavior-inline:contain}
.escape-mini-space .callback-launcher{visibility:hidden;pointer-events:none}
@media(max-height:500px) and (max-width:1100px){
 nav.cv-jump.overview-subnav{position:static}
 .career-index{position:static}
 .privacy-banner{bottom:max(12px,env(safe-area-inset-bottom));max-height:calc(100dvh - 24px)}
}
@media(pointer:coarse){
 .contact-copy,.project-intro>.back-link,.privacy-banner-links>a,.privacy-notice-link{min-height:44px;display:inline-flex;align-items:center}
 .privacy-optional{min-height:44px}
}
@media(max-width:700px){
 .escape-mini-space .privacy-banner{bottom:calc(94px + env(safe-area-inset-bottom));max-height:calc(100dvh - 118px - env(safe-area-inset-bottom))}
}
