/* Shared type system, loaded last on every page */
:root{--site-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--type-h1:clamp(30px,2.5vw,48px);--type-h2:clamp(24px,1.65vw,34px);--type-h3:clamp(18px,1.1vw,23px);--type-body:clamp(15px,.85vw,17px)}
body{font-family:var(--site-font);font-size:var(--type-body);line-height:1.7}
button,input,textarea,select{font-family:inherit}
main h1,main h2,main h3,main h4{font-family:var(--site-font);text-transform:none;overflow-wrap:break-word}
main h1,main .hero h1,main .detail-hero h1,main .simple-portfolio-head h1,main .legal-hero h1{font-size:var(--type-h1);font-weight:750;line-height:1.15;letter-spacing:-.025em;margin-block:12px 20px}
main h2,main .section-head h2,main .cta h2,main .contact-panel h2{font-size:var(--type-h2);font-weight:700;line-height:1.25;letter-spacing:-.018em}
main h3,main .detail-cards h3,main .service-card h3,main .simple-project h2{font-size:var(--type-h3);font-weight:700;line-height:1.35;letter-spacing:-.01em}
main p,main .detail-cards p,main .simple-project p,main .contact-panel p,main .contact-panel address{font-size:var(--type-body);line-height:1.7}
main .lead,main .detail-hero .lead,main .simple-portfolio-head>p:not(.eyebrow){font-size:clamp(16px,1vw,19px);line-height:1.7}
main .eyebrow,main .breadcrumb,main .map-note{font-size:13px;line-height:1.6}
main .eyebrow{font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.map-frame iframe{filter:invert(.9) hue-rotate(180deg) saturate(.8);color-scheme:dark}
.map-frame{height:clamp(300px,32vw,460px)}
@media(max-width:760px){:root{--type-h1:clamp(28px,6vw,36px);--type-h2:clamp(23px,4.8vw,29px);--type-h3:19px;--type-body:16px}}

/* V31: sticky navigation and touch-friendly public pages */
html,body{overflow-x:clip;max-width:100%}
html{scroll-padding-top:150px}
.site-header{position:sticky;top:0;z-index:100;background:#090d12;isolation:isolate}
@media(max-width:1050px){
 .site-header .header-inner{height:72px;gap:12px}
 .site-header .menu-toggle{min-width:48px;min-height:48px;display:grid;align-content:center;justify-content:center;border:1px solid #344353;border-radius:8px}
 .site-header .menu-toggle span{margin:3px 0}
 .site-header .main-nav{top:100%;left:0;right:0;width:100%;max-height:calc(100vh - 73px);max-height:calc(100dvh - 73px);overflow-y:auto;overscroll-behavior:contain;background:#0c1117;padding:0 0 env(safe-area-inset-bottom);border-radius:0;box-shadow:0 14px 28px #0008}
 .site-header .main-nav>a,.site-header .services-menu summary{min-height:52px;padding:14px 20px;font-size:15px}
 .site-header .services-menu>div a{min-height:48px;padding:14px 32px;font-size:15px}
 html{scroll-padding-top:88px}
}
@media(max-width:760px){
 .container{width:calc(100% - 32px);max-width:var(--max)}
 main,main>*{min-width:0;overflow-wrap:break-word}
 .section{padding:42px 0}.section-head,.section-head.centered{margin-bottom:24px}
 .hero-copy{padding:36px 0 20px}.hero-grid{min-height:0}.hero-visual{max-height:290px}
 .detail-hero{padding:32px 0}.detail-hero .detail-grid{gap:22px}.detail-image img{height:auto;max-height:320px;min-height:0}
 .detail-cards{gap:14px}.detail-cards article,.contact-panel{padding:20px}
 .hero-actions,.extra-links,.contact-actions{gap:10px}.hero-actions .btn,.extra-links .btn,.contact-actions .btn{width:100%;min-height:50px;white-space:normal;text-align:center;padding:12px 16px}
 .cta{padding:40px 0}.cta-grid{gap:22px}.cta-action{align-items:stretch}.cta-action .btn{width:100%;white-space:normal;text-align:center}
 .service-card{min-height:0;display:flex;flex-direction:column;padding:18px;gap:14px}.service-card>img{position:static;width:100%;height:190px;object-fit:contain}.service-icon{top:18px;left:18px}.service-body{position:static}.service-body a{display:inline-flex;align-items:center;min-height:44px}
 .footer-grid{gap:24px}.site-footer{padding:36px 0 82px}.footer-grid a{overflow-wrap:anywhere;min-height:32px}.footer-bottom{margin-top:24px}
 .map-frame{height:280px}.company-details,.contact-method{overflow-wrap:anywhere;min-width:0}
 .simple-project-grid{gap:16px}.zoom-mark{width:44px;height:44px}
 .whatsapp-float{bottom:calc(14px + env(safe-area-inset-bottom));right:14px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

@media(max-width:1050px){.site-header .menu-toggle{display:grid;place-content:center;gap:5px;padding:0}.site-header .menu-toggle span{margin:0}}

/* V40: restrained navigation chevron */
.site-header .services-menu summary::after{content:"";display:block;width:12px;height:12px;flex:0 0 12px;border:0;margin:0;transform:none;background:center/12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23aeb8c4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");transition:transform .18s ease}.site-header .services-menu[open] summary::after{transform:rotate(180deg);margin:0}
