body.sober-home .hero81-track,body.sober-home .hero81-track .hero79-stage{height:auto}
/* The introduction presents the designer; product examples stay in the project section. */
body.sober-home .hero81-track .hero79-inner{min-height:600px;padding-block:56px 40px;gap:48px}
body.sober-home .hero81-track .hero-work{position:relative;width:100%;max-width:356px;height:404px;margin:0;align-self:center;isolation:isolate}
.hero-work-portrait{position:absolute;inset:0;overflow:hidden;border-radius:0 0 16px 16px;background:transparent;transform:translateY(var(--portrait-lift,0px))}
.hero-work-portrait::before{content:"";position:absolute;inset:54px 0 -40px;border-radius:100px 16px 16px 16px;background:#edf0ff;transform:translateY(var(--portrait-ground-shift,0px))}
.hero-work-portrait img{position:relative;display:block;width:100%;height:100%;object-fit:cover;object-position:center top;transform:scale(var(--portrait-scale,1.025));transform-origin:center top}
@keyframes hero-work-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:no-preference){.hero-work-portrait{animation:hero-work-in .6s both}}

/* The header already sticks: use its existing space rather than another rail. */
.project-switcher{position:relative}
.project-switcher summary{display:flex;align-items:center;gap:8px;min-height:44px;list-style:none;cursor:pointer;color:#20324c;font:600 13px/1.2 var(--sans);border-radius:8px;padding:0 10px}
.project-switcher summary::-webkit-details-marker{display:none}
.project-switcher summary svg{width:13px;height:13px;fill:currentColor;transform:rotate(90deg);transition:transform .2s}
.project-switcher[open] summary{background:#edf0ff;color:#2945e8}
.project-switcher[open] summary svg{transform:rotate(-90deg)}
body.sober-home .site-header .project-switch-panel{position:absolute;top:calc(100% + 12px);left:0;width:300px;display:block;padding:12px;background:#fff;border:1px solid #dce1e8;border-radius:14px;box-shadow:0 16px 45px #20324c22;max-height:calc(100svh - 110px);overflow:auto}
.project-switch-panel p{margin:6px 10px 10px;font-size:12px;color:#536077}
body.sober-home .site-header .project-switch-panel>a{display:grid;grid-template-columns:36px 1fr auto;gap:12px;align-items:center;min-height:55px;padding:8px 10px;border-radius:8px;text-decoration:none;color:#20324c;font-size:14px}
.project-switch-panel .project-entry-mark{width:36px;height:32px}
.project-switch-panel .project-entry-mark img{max-width:30px;max-height:28px}
.project-switch-panel .project-current{visibility:hidden;font-size:11px;color:#2945e8}
.project-switch-panel a[aria-current="location"] .project-current{visibility:visible}
body.sober-home .site-header .project-switch-panel a:hover,body.sober-home .site-header .project-switch-panel a[aria-current="location"]{background:#f0f3ff;color:#2945e8}
.project-switch-utilities{display:grid;grid-template-columns:1fr 1fr;gap:4px;border-top:1px solid #dce1e8;margin-top:10px;padding-top:8px}
body.sober-home .site-header .project-switch-utilities a{padding:12px 10px;font-size:12px;text-decoration:none;min-height:44px;box-sizing:border-box}
.project-switcher summary:focus-visible,.project-switch-panel a:focus-visible,.selection-controls button:focus-visible{outline:3px solid #304cff;outline-offset:3px}
.selection-controls{display:none}
@media(max-width:1100px) and (min-width:701px){body.sober-home .hero81-track .hero79-inner{gap:24px}body.sober-home .hero81-track .hero-work{height:370px}}
@media(max-width:800px){
 body.sober-home .site-header .desktop-nav{display:flex;margin-left:auto;gap:0}
 body.sober-home .site-header .desktop-nav>a{display:none}
 body.sober-home .site-header .header-inner{gap:10px}
 body.sober-home .site-header .header-actions{gap:0}
 body.sober-home .site-header .project-switch-panel{position:fixed;top:calc(var(--gn-header-height,67px) + 8px);left:16px;right:16px;width:auto}
 body.sober-home .sober-project-heading nav{display:flex;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-inline:2px;gap:0;scrollbar-width:thin;padding-block:4px 10px;border:0}
 body.sober-home .sober-project-heading nav a{flex:0 0 78%;box-sizing:border-box;min-height:104px;scroll-snap-align:start;border:1px solid #dce1e8!important;border-radius:12px;padding:16px;grid-template-columns:40px minmax(0,1fr) 14px;gap:12px;margin-right:10px}
 body.sober-home .sober-project-heading nav a:last-child{margin-right:0}
 body.sober-home .sober-project-heading .project-entry-mark{width:40px}
 .selection-controls{display:flex;align-items:center;justify-content:space-between;margin-top:8px;color:#536077;font-size:12px}
 .selection-controls>div{display:flex;gap:8px}
 .selection-controls button{display:grid;place-items:center;width:44px;height:44px;border:1px solid #dce1e8;border-radius:50%;background:#fff;color:#20324c;cursor:pointer}
 .selection-controls button:disabled{opacity:.35;cursor:default}
 .selection-controls svg{width:18px;height:18px;fill:currentColor}.selection-controls button:first-child svg{transform:rotate(180deg)}
}
@media(max-width:700px){
 body.sober-home .hero81-track .hero79-inner{min-height:0;padding:28px 22px 20px;gap:24px}
 body.sober-home .hero81-track .hero-work{width:min(100%,244px);height:248px;margin:0 auto;align-self:center}
 .hero-work-portrait::before{top:40px;border-top-left-radius:70px}
}
@media(max-width:480px){
 body.sober-home .site-header .brand{gap:6px;min-width:0}
 body.sober-home .site-header .brand img{width:26px;height:26px}
 body.sober-home .site-header .brand span{display:block;max-width:64px;font-size:11px;line-height:1.3;white-space:normal}
 body.sober-home .site-header .desktop-nav{margin-left:auto}
 body.sober-home .site-header .header-actions{margin-left:0}
 .project-switcher summary{padding-inline:6px;gap:5px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.project-switcher summary svg{transition:none}}

/* The header borrows only the visible project's accent; navigation stays stable. */
body.sober-home .site-header{--header-accent:var(--blue)}
body.sober-home .site-header[data-project-theme="malakoff"]{--header-accent:#b94b28}
body.sober-home .site-header[data-project-theme="cetelem"]{--header-accent:#237b35}
body.sober-home .site-header[data-project-theme="allianz"]{--header-accent:#003781}
body.sober-home .site-header[data-project-theme="apphalt"]{--header-accent:#0070c9}
body.sober-home .site-header .brand-mark{display:inline-flex;flex:none;position:relative}
@supports (mask-image:url("/assets-v25/gn-monogram.png")){
 body.sober-home .site-header .brand-mark{background:var(--header-accent);mask:url("/assets-v25/gn-monogram.png") center/contain no-repeat;transition:background-color 280ms ease}
 body.sober-home .site-header .brand-mark img{opacity:0}
}
body.sober-home .site-header .language-switch a[aria-current]{background:var(--header-accent);color:#fff;transition:background-color 280ms ease}
@media(prefers-reduced-motion:reduce){
 body.sober-home .site-header .brand-mark,body.sober-home .site-header .language-switch a[aria-current]{transition:none}
}
@media(forced-colors:active){
 body.sober-home .site-header .brand-mark{mask:none;background:none}
 body.sober-home .site-header .brand-mark img{opacity:1}
 body.sober-home .site-header .language-switch a[aria-current]{background:Highlight;color:HighlightText}
}

/* Keep the portrait still when motion is reduced, including the site preference. */
html.motion-reduced .hero-work-portrait,html.gn93-reading .hero-work-portrait{animation:none;transform:none}
html.motion-reduced .hero-work-portrait img,html.motion-reduced .hero-work-portrait::before,
html.gn93-reading .hero-work-portrait img,html.gn93-reading .hero-work-portrait::before{transform:none}
@media(prefers-reduced-motion:reduce){.hero-work-portrait,.hero-work-portrait img,.hero-work-portrait::before{transform:none}}
