/* Shared responsive rules load after every page's styles. */
body :is(.nav-inner,.container,.hero-inner,.shero-inner){width:100%}
body :is(.svc-grid,.work-grid,.team-grid,.diff-grid,.shero-grid,.hero-bottom,.footer-grid,.cta-inner,.approach-row,.pullquote-inner,.wp-work-grid,.contact-grid,.featured-grid)>*{min-width:0}
body :is(h1,h2,h3,p,.hero-meta,.project-tags,.row-main,.footer-about){overflow-wrap:break-word}
body :is(img,video,svg){max-width:100%}
body :is(.btn,.btn-primary,.nav-cta){max-width:100%;white-space:normal;text-align:center;line-height:1.4}
body .nav-inner{grid-template-columns:auto minmax(0,1fr) auto}
body .mobile-toggle{width:44px;height:44px;align-items:center;justify-content:center;padding:10px;border-radius:8px}
body .mobile-toggle span{width:24px;flex-shrink:0}
body.nav-open{overflow:hidden}
body.nav-open .nav{height:72px!important;background:#FFFFFF!important}
body .nav-inner{position:relative;z-index:2}
body .mobile-menu{position:fixed;inset:72px 0 0;background:#F8F4FB;padding:20px 0 0;height:calc(100dvh - 72px);overscroll-behavior:contain}
body .mobile-menu-inner{height:auto;min-height:100%;padding-bottom:max(24px,env(safe-area-inset-bottom))}
body .mobile-nav-kicker{color:#6F6F73;font-size:12px;margin-bottom:12px}
body .mobile-nav-links li{border-color:#DDC9EA}
body .mobile-nav-links li a{color:#111111!important;font-size:16px;padding:14px 0;letter-spacing:0;text-transform:none}
body .mobile-nav-links .menu-divider{display:none}
body .mobile-menu .nav-cta{margin-top:24px;background:#4F1F78!important;flex-shrink:0}
body .mobile-toggle.active span{background:#4F1F78!important}
body .mobile-nav-links li.current-menu-item a{color:#4F1F78!important}
body .footer-bot{gap:20px;flex-wrap:wrap}
body .hero-status{max-width:100%;line-height:1.6}
@media(max-width:1300px){
 body .nav-inner.services-nav{height:72px;grid-template-columns:minmax(0,1fr) 44px;gap:16px}
 body .nav .desktop-nav,body .nav-inner>.nav-cta{display:none!important}
 body .mobile-toggle{display:flex!important}
 body .nav-logo-img{width:160px!important;max-width:100%;height:auto}
}
@media(min-width:1301px){body .mobile-menu{display:none}body .nav .mobile-toggle{display:none!important}}
@media(max-width:1100px){
 body .svc-grid,body .work-grid,body .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .svc-grid{gap:0}
 body .svc-cell{padding:32px 24px;min-height:0;border-top:1px solid var(--line);border-right:1px solid var(--line)}
 body .svc-cell:nth-child(3n){border-right:1px solid var(--line)}
 body .svc-cell:nth-child(2n){border-right:0}
 body .svc-cell:nth-child(-n+2){border-top:0}
 body .hero-bottom{grid-template-columns:minmax(0,1fr)}
 body .hero-actions{justify-content:flex-start}
 body[class] .shero-grid,body[class] .approach-row,body[class] .pullquote-inner{grid-template-columns:minmax(0,1fr);gap:40px}
 body.ecommerce-page .ecom-reference-process .approach-row,body.ecommerce-page .ecom-reference-quote .pullquote-inner{grid-template-columns:minmax(0,1fr);gap:40px}
 body[class] .approach-image{min-height:0}
 body .shero-images{width:100%;max-width:700px}
 body .hero-stats,body[class] .shero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .proof-inner{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .proof-cell{padding:32px 24px;border-bottom:1px solid #FFFFFF30}
 body .proof-cell:nth-child(2n){border-right:0}
}
@media(max-width:800px){
 body .diff-grid,body .wp-work-grid,body .a11-work-layout{grid-template-columns:minmax(0,1fr)}
 body .diff-card{padding:28px 0!important;border-right:0}
 body[class] .faq-list,body.ecommerce-page .ecom-reference-faq .faq-list{grid-template-columns:minmax(0,1fr);gap:0}
 body[class] .faq-item,body[class] .faq-item:nth-child(2n){padding:24px 0;border-right:0}
 body .section,body .section.tight{padding-block:64px}
 body .about-section>.container{padding-block:64px}
 body .shero-grid{padding-bottom:40px}
 body .cta-inner{grid-template-columns:minmax(0,1fr);gap:28px}
 body .cta-actions,body .shero-actions,body .hero-actions{flex-wrap:wrap;gap:12px}
 body .work-filter-bar{flex-wrap:wrap;gap:16px}
 body .showcase-top{align-items:flex-start;flex-wrap:wrap}
 body[class] .shero-images{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:12px}
 body[class] .shero-img.tall{grid-column:1/-1;grid-row:auto;aspect-ratio:4/3}
 body[class] .shero-img:not(.tall){aspect-ratio:1}
}
@media(max-width:600px){
 :root{--pad-x:20px}
 body .svc-grid,body .work-grid,body .team-grid{grid-template-columns:minmax(0,1fr);gap:0}
 body .work-grid,body .team-grid{gap:24px}
 body .svc-cell:nth-child(n){padding:28px 0;border-right:0;border-top:1px solid var(--line)}
 body .svc-cell:first-child{border-top:0}
 body .svc-name{font-size:28px;line-height:1.2}
 body .svc-desc{font-size:16px;line-height:1.65}
 body .a11-home-hero .hero-title{font-size:clamp(38px,10vw,60px);line-height:1.1;letter-spacing:-.035em}
 body[class] .shero-title,body.about-page .about-hero h1,body.work-page .work-hero h1,body.contact-page .contact-left h1,body .detail-hero .hero-title{font-size:clamp(36px,9.5vw,54px);line-height:1.12;letter-spacing:-.025em}
 body .a11-section-title,body .a11-showcase .a11-section-title{font-size:clamp(30px,8vw,42px);line-height:1.18}
 body[class] .cta-title,body.ecommerce-page .ecom-reference-cta .cta-title,body .cta-title{font-size:clamp(36px,9vw,52px);line-height:1.12}
 body[class] .pullquote-text{font-size:clamp(30px,8vw,40px);line-height:1.2}
 body .hero-top{align-items:flex-start;gap:16px}
 body .hero-meta{font-size:12px;line-height:1.6;flex-wrap:wrap;gap:8px}
 body .hero-stat,body[class] .shero-stat{padding:22px 12px!important}
 body .hero-stat .num,body[class] .shero-stat .num{font-size:clamp(36px,10vw,48px);line-height:1.15}
 body .hero-stats .lbl,body[class] .shero-stat .lbl{font-size:12px;line-height:1.6;letter-spacing:.02em}
 body .hero-actions .btn,body .shero-actions .btn,body .shero-actions .btn-primary,body .cta-actions .btn{height:auto;min-height:48px;padding:13px 18px}
 body .footer-grid{grid-template-columns:minmax(0,1fr);gap:32px}
 body .footer-bot{align-items:flex-start;flex-direction:column}
 body .showcase-image-label span{font-size:21px}
 body .showcase-caption,body .wp-work-copy,body .salem-project-copy,body.ecommerce-page .proj-body-s{padding:24px 20px}
 body .marketing-process-map,body .marketing-brand-tags{grid-template-columns:minmax(0,1fr)}
 body .ai-hero-workflow,body .ai-principles,body .ai-usecase,body .ux-system-panel{padding:24px 20px}
 body .ai-flow-list li{grid-template-columns:24px minmax(0,1fr);padding:14px;gap:10px}
 body .ux-type{font-size:clamp(48px,15vw,76px)}
 body.contact-page .form-row :is(input,textarea,select){font-size:16px;min-width:0}
 body.contact-page .form-card{padding:24px 20px}
 body .portfolio-row{grid-template-columns:28px minmax(0,1fr)}
 body.work-page .featured-body{padding:24px 20px}
 body .featured-title{font-size:clamp(26px,7.5vw,34px);line-height:1.2}
 body .dialog-top{gap:12px}
 body .dialog-top .section-num{font-size:12px;line-height:1.5}
 body .dialog-close{min-height:44px;flex-shrink:0}
 body .dialog-content{padding:24px 20px}
 body .dialog-content h2{font-size:clamp(30px,8vw,42px)}
}
@media(max-width:380px){:root{--pad-x:16px}body .hero-actions .btn,body .shero-actions .btn,body .shero-actions .btn-primary,body .cta-actions .btn{width:100%}body .proof-inner{grid-template-columns:minmax(0,1fr)}body .proof-cell{padding:24px 0;border-right:0}body .featured-card.tech-card>img{object-position:70% center}}

body .nav-logo-img{width:auto!important;height:60px!important;max-height:60px!important;max-width:none!important}
@media(max-width:600px){body .nav-logo-img{height:50px!important;max-height:50px!important}}

/* service pages hero: black and purple gradient (matches home) */
body[class] .shero{background:linear-gradient(135deg,#050308 0%,#160A26 35%,#3A1660 70%,#6B35A0 100%);color:#fff;border-bottom:0}
body[class] .shero-grid-bg,body[class] .shero-glow{display:none}
body[class] .shero .shero-title,body[class] .shero h1{color:#fff}
body[class] .shero .shero-title em,body[class] .shero h1 em{color:#E3C9F7}
body[class] .shero .shero-pitch,body[class] .shero .shero-stat .lbl,body[class] .shero .hero-meta,body[class] .shero .hero-meta span{color:rgba(255,255,255,.8)}
body[class] .shero .shero-stat .num{color:#fff}
body[class] .shero .hero-status{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3);color:#fff}
body[class] .shero .shero-tag{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.28);color:#fff}
body[class] .shero .btn-primary{background:#fff;border-color:#fff;color:#4F1F78}
body[class] .shero .btn-primary:hover{background:#F0E3FA;border-color:#F0E3FA}
body[class] .shero .btn-ghost-dark{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
body[class] .shero .btn-ghost-dark:hover{background:#fff;color:#4F1F78;border-color:#fff}
body[class] .shero .shero-img{border-color:rgba(255,255,255,.25)}

/* service pages: compact hero layout */
body[class] .shero{padding:48px 0 52px!important;min-height:0!important}
body[class] .shero .shero-inner{max-width:1320px}
body[class] .shero .shero-top{margin-bottom:18px}
body[class] .shero .hero-meta,body[class] .shero .shero-images,body[class] .shero .shero-stats{display:none!important}
body[class] .shero .hero-status{background:none;border:0;padding:0;border-radius:0;font-size:13px;letter-spacing:.02em;color:#D9C3EE;text-transform:none}
body[class] .shero .shero-grid{display:block!important;margin:0}
body[class] .shero .shero-left{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,380px);column-gap:64px;align-items:center}
body[class] .shero .shero-left>*{grid-column:1}
body[class] .shero .shero-left>.shero-tags{grid-column:2;grid-row:1/span 3;align-self:center;margin:0;display:flex;flex-wrap:wrap;gap:8px}
body[class] .shero .shero-title{font-size:clamp(34px,4.2vw,58px)!important;line-height:1.06!important;max-width:none!important;margin:0 0 16px!important}
body[class] .shero .shero-pitch{font-size:17px!important;line-height:1.6;max-width:56ch!important;margin:0 0 24px!important}
body[class] .shero .shero-actions{margin:0!important}
body[class] .shero .shero-tag{border-radius:999px;padding:8px 14px;font-size:13px}
@media(max-width:900px){body[class] .shero{padding:36px 0 40px!important}body[class] .shero .shero-left{grid-template-columns:minmax(0,1fr)}body[class] .shero .shero-left>.shero-tags{grid-column:1;grid-row:auto;margin-top:24px}}
body[class] .shero .shero-left{row-gap:0!important}
body[class] .shero .shero-top{margin-bottom:14px!important}
body[class] .shero .ai-hero-workflow{display:none!important}

/* global header: current page */
.nav-links li.current-menu-item a{color:#111;background:rgba(79,31,120,.08)}
.mobile-nav-links li.current-menu-item a{color:#4F1F78}

/* service hero: equal top/bottom space, content centred, aligned with header */
body[class] .shero{padding:64px 0!important;display:flex;align-items:center}
body[class] .shero .shero-inner{width:100%;max-width:1620px!important;margin:0 auto;padding:0 56px!important}
body[class] .shero .shero-top{margin-bottom:20px!important}
body[class] .shero .shero-left{align-items:center}
@media(max-width:1024px){body[class] .shero .shero-inner{padding:0 24px!important}}
@media(max-width:900px){body[class] .shero{padding:44px 0!important}}
body[class] .shero .shero-grid{padding:0!important}

/* global footer */
html body .site-footer{background:#111;color:#fff;font-family:var(--f-sans,'Geist',system-ui,sans-serif)}
.site-footer .sf-main{max-width:1620px;margin:0 auto;padding:72px 56px 64px}
.site-footer .sf-grid{display:grid;grid-template-columns:1.4fr 1fr .8fr 1.4fr;gap:56px}
.site-footer .sf-logo{width:150px;height:auto;display:block;margin-bottom:22px}
.site-footer .sf-brand p{font-size:15px;line-height:1.65;color:rgba(255,255,255,.62);max-width:34ch;margin:0}
.site-footer h4{font-family:var(--f-mono,'Geist Mono',monospace);font-size:12px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:#B58ADA;margin:0 0 22px}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.site-footer a{color:rgba(255,255,255,.82);text-decoration:none;font-size:15px;transition:color .2s}
.site-footer a:hover{color:#fff}
.site-footer .sf-contact{gap:18px}
.site-footer .sf-contact li{display:flex;gap:14px;align-items:flex-start}
.site-footer .sf-ic{flex:none;width:38px;height:38px;border-radius:10px;background:rgba(181,138,218,.14);color:#B58ADA;display:grid;place-items:center}
.site-footer .sf-ic svg{display:block;width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.site-footer .sf-contact div>span,.site-footer .sf-contact div>a{display:block;font-size:15px;color:rgba(255,255,255,.88);line-height:1.35;word-break:break-word}
.site-footer .sf-contact small{display:block;font-size:13px;color:rgba(255,255,255,.5);margin-top:3px}
.site-footer .sf-bar{background:#4F1F78}
.site-footer .sf-bar-in{max-width:1620px;margin:0 auto;padding:18px 56px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;font-size:14px;color:rgba(255,255,255,.9)}
.site-footer .sf-bar a{font-size:14px;color:#fff;display:inline-flex;gap:8px;align-items:center}
.site-footer .sf-bar a:hover{opacity:.8}
@media(max-width:1100px){.site-footer .sf-grid{grid-template-columns:1fr 1fr;gap:44px 40px}}
@media(max-width:700px){.site-footer .sf-main{padding:52px 24px 48px}.site-footer .sf-grid{grid-template-columns:1fr;gap:40px}.site-footer .sf-bar-in{padding:18px 24px;flex-direction:column;align-items:flex-start}}
