/* Final shared responsive layer: keep desktop composition unchanged. */
.menu-toggle{display:none}
.mobile-menu:not([open]){display:none}
.mobile-menu{box-sizing:border-box;position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;padding:20px 24px max(32px,env(safe-area-inset-bottom));background:#111013;color:#f6f3fa;overflow:auto;overscroll-behavior:contain;font-family:inherit}
.mobile-menu::backdrop{background:#111013}
.mobile-menu-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:24px;border-bottom:1px solid #39323f}
.mobile-menu-top .logo img{width:152px;height:auto}
.menu-close,.menu-toggle{width:48px;height:48px;flex:0 0 48px;padding:12px;border:1px solid #51465f;border-radius:50%;color:#f6f3fa;background:transparent;cursor:pointer}
.menu-close svg{fill:none;stroke:currentColor;stroke-width:1.7}
.mobile-menu nav{display:flex;flex-direction:column;margin:20px 0 28px}
.mobile-menu nav a{display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:10px 0;border-bottom:1px solid #39323f;color:#f6f3fa;text-decoration:none;font-size:clamp(24px,6vw,34px);line-height:1.25;letter-spacing:-.035em}
.mobile-menu nav a[aria-current=page]{color:#ab80ff}
.mobile-menu-cta{display:flex;justify-content:space-between;align-items:center;min-height:56px;padding:14px 22px;border-radius:99px;background:#a477ff;color:#18111f;text-decoration:none;font-weight:650}
.menu-toggle:focus-visible,.menu-close:focus-visible,.mobile-menu a:focus-visible{outline:2px solid #c3a5ff;outline-offset:5px}
@media(max-width:1000px){
 header.nav.nav-ready{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:16px;min-height:80px;padding-block:16px}
 header.nav.nav-ready>nav,header.nav.nav-ready>.nav-cta{display:none}
 header.nav.nav-ready .logo{flex:0 1 auto;min-width:0}
 header.nav.nav-ready .logo img{width:152px;max-width:100%;height:auto}
 header.nav.nav-ready>.menu-toggle{display:flex;flex-direction:column;justify-content:center;gap:6px}
 .menu-toggle span{display:block;width:22px;height:1.5px;background:currentColor;flex-shrink:0}
}
@media(max-width:640px){
 html{scroll-padding-top:20px}
 .wrap{max-width:100%;width:calc(100% - 40px)}
 header.nav.nav-ready{min-height:76px;padding-block:14px}
 header.nav.nav-ready .logo img{width:144px}
 .hero.hero-v2{padding-top:28px}
 .hero.hero-v2 h1{font-size:clamp(42px,11.5vw,64px);line-height:1.04;letter-spacing:-.055em}
 .hero.hero-v2 .intro{font-size:16px;line-height:1.6}
 .hero.hero-v2 .eyebrow{font-size:10px;line-height:1.6;letter-spacing:.12em}
 .hero-founder{gap:12px}
 .hero-founder img{flex-shrink:0;width:42px;height:42px}
 .hero-founder strong,.hero-founder p span{line-height:1.5}
 main :is(section,article,figure,div){min-width:0}
 main :is(h1,h2,h3,p,a){overflow-wrap:break-word}
 .button{white-space:normal;text-align:center;min-height:48px}
 .note-page table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 input,select,textarea{font-size:16px!important;max-width:100%}
 dialog:not(.mobile-menu){max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
 .faq-list summary{gap:16px;line-height:1.45}
 .case-entry-grid .button,.service-actions .button{width:100%;justify-content:center}
 .result-metric{grid-template-columns:minmax(90px, .7fr) minmax(0,1fr);gap:16px}
 .result-metric strong{font-size:clamp(40px,12vw,52px)}
 .footer-bottom{gap:18px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(max-width:640px){
 .hero-v2 .headline-line,.hero-v2 .intro,.hero-v2 .hero-actions,.hero-v2 .eyebrow{animation:none!important;opacity:1!important;transform:none!important;filter:none!important}
 .service-hero h1{font-size:clamp(36px,9.5vw,52px);line-height:1.1}
 .brief-dialog{padding:20px;border-radius:18px}
 .brief-dialog .brief-close{position:sticky;top:0;z-index:1;background:#19151e}
 .brief-dialog .brief-form-actions .button{width:100%}
}
.mobile-contact[hidden]{display:none!important}
.mobile-contact{display:none}
@media(max-width:640px){
 .mobile-contact{position:fixed;z-index:40;right:20px;bottom:max(16px,env(safe-area-inset-bottom));display:flex;align-items:center;min-height:48px;padding:12px 20px;background:#a477ff;color:#17111e;border:1px solid #c4a5ff;border-radius:99px;font-size:14px;font-weight:650;text-decoration:none;box-shadow:0 6px 24px #0005}
 .mobile-contact:focus-visible{outline:2px solid white;outline-offset:4px}
 .portfolio-filters{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:8px;padding:4px 2px 12px;scroll-padding-inline:2px;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#745996 transparent}
 .portfolio-filters button{flex:0 0 auto;white-space:nowrap;min-height:44px}
 .portfolio-filters button[aria-pressed=true]{background:#a477ff;color:#17111e;border-color:#c4a5ff}
 .story-image-dialog[open]{width:calc(100% - 16px);padding:12px;max-height:calc(100dvh - 16px)}
 .story-dialog-top{position:sticky;top:0;background:#151219;z-index:1;gap:12px;align-items:center}
 .story-dialog-top button{min-height:44px;min-width:60px}
 .story-image-dialog img{touch-action:pan-x pan-y pinch-zoom}
}

@media(max-width:640px){.showcase-copy h2 em{display:block}.showcase-copy>p br{display:initial}}
