/* Shared, stable geometry for both languages and themes. */
header .nav{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:24px;min-height:88px;padding-block:16px}
header .brand{justify-self:start;white-space:nowrap;gap:12px;min-width:0}
header .brand-avatar{flex:none;width:44px;height:44px}
header nav{justify-content:center;align-items:center;gap:24px;flex-wrap:nowrap;min-width:0;width:auto;order:initial}
header nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;white-space:nowrap;line-height:1.5}
header .preferences{justify-self:end;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:nowrap;margin:0;min-width:0}
header .preferences :is(button,a.owner-action){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:44px;min-height:44px;margin:0;padding:0 14px;font-size:.875rem;line-height:1.4;white-space:nowrap;border:1px solid var(--line);border-radius:6px;vertical-align:middle}
header #themeButton{min-width:44px;padding-inline:10px;gap:6px}
body:not(.dashboard-mode) :is(.hero-heading,.hero-copy,.section-head>div,.service,.work-card,.post>div,.about>div,.workshop-body,.contact>div){min-width:0}
body:not(.dashboard-mode) :is(h1,h2,h3,p){overflow-wrap:break-word}
body:not(.dashboard-mode) .section-head{align-items:flex-start;gap:24px}
body:not(.dashboard-mode) .section-number{flex:none;white-space:nowrap}
body:not(.dashboard-mode) .service{height:100%;gap:0}
body:not(.dashboard-mode) .service>.plain{margin-top:auto;min-height:44px;white-space:nowrap;line-height:1.6}
body:not(.dashboard-mode) #posts .read-more{display:inline-flex;align-items:center;justify-content:center;min-width:96px;width:auto;height:auto;min-height:44px;padding:8px 14px;border-radius:6px;white-space:nowrap;line-height:1.5}
body:not(.dashboard-mode) .portrait{margin:0;aspect-ratio:16/9}
body:not(.dashboard-mode) .portrait img{width:100%;height:100%;aspect-ratio:16/9;object-fit:cover}
body:not(.dashboard-mode) .contact{gap:32px}
body:not(.dashboard-mode) footer{flex-wrap:wrap;gap:16px 24px;padding-block:24px 36px}
[hidden]{display:none!important}
@media(max-width:1100px){
 header .nav{grid-template-columns:minmax(0,1fr) auto;gap:12px 24px}
 header nav{grid-column:1/-1;grid-row:2;justify-content:center;flex-wrap:wrap;gap:8px 28px}
 header .preferences{grid-column:2;grid-row:1}
 body:not(.dashboard-mode) .hero{column-gap:32px}
 body:not(.dashboard-mode) .about{gap:32px}
}
@media(min-width:761px) and (max-width:1000px){
 body:not(.dashboard-mode) :is(.cards,.work-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 header .wrap{padding-inline:20px}
 header .nav{gap:8px 12px;padding-block:12px;min-height:0}
 header .brand{font-size:1.5rem;gap:8px}
 header .brand-avatar{width:38px;height:38px}
 header .preferences :is(button,a.owner-action){padding-inline:10px;font-size:.875rem}
 header nav{gap:4px 20px;font-size:.875rem}
 body:not(.dashboard-mode) .hero{display:flex;flex-direction:column;align-items:stretch;gap:24px;padding-block:40px 32px}
 html.motion body:not(.dashboard-mode) .hero.hero-pin::after{display:none}
 html.motion body:not(.dashboard-mode) .hero.hero-pin .portrait{position:relative;top:auto;width:100%;height:auto;aspect-ratio:16/9;margin:0;border-radius:12px;clip-path:none}
 html.motion body:not(.dashboard-mode) .hero.hero-pin .portrait img{position:static;width:100%;max-width:100%;height:100%;aspect-ratio:16/9;transform:none;object-fit:cover}
 html.motion body:not(.dashboard-mode) .hero.hero-pin .portrait::after{display:none}
 html.motion body:not(.dashboard-mode) .hero :is(h1,.intro,.actions){transform:none;opacity:1}
 body:not(.dashboard-mode) .hero-note{margin:0}
 body:not(.dashboard-mode) .actions{gap:12px 20px;margin-top:24px}
 body:not(.dashboard-mode) .section-head{flex-direction:column;gap:16px;margin-bottom:24px}
 body:not(.dashboard-mode) .search{max-width:none}
 body:not(.dashboard-mode) :is(.cards,.work-grid){grid-template-columns:1fr;gap:20px}
 html.motion body:not(.dashboard-mode) #services .service{position:relative;top:auto;transform:none;min-height:0;height:auto;padding:24px;box-shadow:none}
 html.motion body:not(.dashboard-mode) #services .service :is(h3,p,.plain,.icon){transform:none;opacity:1}
 html.motion body:not(.dashboard-mode) #services .service::before,html.motion body:not(.dashboard-mode) #services .service::after,.services-hud{display:none}
 body:not(.dashboard-mode) .workshop{grid-template-columns:1fr}
 body:not(.dashboard-mode) :is(.workshop-label,.workshop-body){padding:24px}
 body:not(.dashboard-mode) .workshop-footer{align-items:flex-start;gap:16px;margin-top:24px}
 body:not(.dashboard-mode) .about{grid-template-columns:1fr;gap:24px}
 body:not(.dashboard-mode) .contact{flex-direction:column;align-items:stretch;padding:28px 24px;gap:24px;margin-block:40px}
 body:not(.dashboard-mode) #posts .post{grid-template-columns:minmax(0,1fr);gap:16px;padding-block:24px}
 body:not(.dashboard-mode) #posts .read-more{justify-self:start}
}
@media(max-width:420px){
 header .nav{grid-template-columns:1fr}
 header .brand{justify-self:center}
 header .preferences{grid-column:1;grid-row:2;justify-self:center;justify-content:center}
 header nav{grid-column:1;grid-row:3;gap:4px 18px}
 html{scroll-padding-top:190px}
}
