/* JM 3.8.1.5 — targeted responsive safeguards; no motion replacement. */
body[data-page] main {min-width:0}
body[data-page] main section[id] {scroll-margin-top:110px}
.jm-ce-profile-grid > *, .jm-ce-filters > *, .jm-est-grid > *, .jm-est-fields > *, .jm-landing-grid > * {min-width:0}
.jm-ce-modal {overscroll-behavior:contain; scrollbar-width:thin}
.jm-ce-modal .jm-ce-close {min-width:44px;min-height:44px}
.jm-ce-modal .jm-ce-tags li, .jm-ce-modal .jm-ce-action, .jm-ce-modal .jm-ce-facts strong {overflow-wrap:anywhere}
.jm-ce-modal .jm-ce-action .jm-ce-consult {white-space:normal;max-width:100%}
.jm-ce-modal .jm-ce-action > div {min-width:0}
.jm-est-fields input,.jm-est-fields select,.jm-q-form input,.jm-q-form select,.jm-q-form textarea {min-width:0;max-width:100%}
footer.jm-signature .jf-wordmark {max-width:100%;font-size:min(11.65cqw,190px)}
@media (min-width:761px) and (max-width:1024px){
 .jm-ce-modal .jm-ce-profile-grid {grid-template-columns:minmax(0,32fr) minmax(0,68fr);gap:18px}
 .jm-ce-modal .jm-ce-action {flex-wrap:wrap}
 .jm-ce-modal .jm-ce-tags {grid-template-columns:minmax(0,1fr)}
}
@media (max-width:800px){
 body[data-page] main section[id] {scroll-margin-top:84px}
 #nav.open .links {overscroll-behavior:contain;max-height:calc(100dvh - 76px);overflow-y:auto}
 .jm-hybrid-meta,.jm-hybrid-action {flex-wrap:wrap}
 .jm-hybrid-nav a {overflow-wrap:anywhere;gap:6px}
 .jm-ce-modal .jm-ce-action .jm-ce-consult {width:100%}
}
@media (max-width:480px){
 .jm-ce-modal .jm-ce-facts {grid-template-columns:minmax(0,1fr)}
 .jm-ce-modal .jm-ce-skill-heading {flex-wrap:wrap}
 .jm-ce-modal .jm-ce-identity-verified {flex-wrap:wrap;justify-content:center}
 .jm-hybrid-nav {grid-template-columns:minmax(0,1fr);gap:8px}
 .jm-hybrid-action .btn {width:100%;white-space:normal}
 footer.jm-signature .jf-bottom {flex-wrap:wrap;gap:8px}
 footer.jm-signature .jf-hub a {width:44px;height:44px}
}
@media (max-height:500px) and (orientation:landscape){
 .jm-ce-modal {max-height:94dvh}
 .jm-ce-modal .jm-ce-identity,.jm-ce-modal .jm-ce-action {position:static}
}

/* Tablet: native document scrolling and compact full navigation. */
@media (max-width:1100px), (pointer:coarse) {
 html:not(:has(dialog[open])) {height:auto!important;overflow-y:auto!important;scroll-behavior:auto!important}
 body[data-page]:not(:has(dialog[open])) {height:auto!important;overflow-y:visible!important}
 body[data-page] .hero#home .intro {position:relative;z-index:2}
 body[data-page] .hero#home .intro > * {opacity:1!important;transform:none!important;animation:none!important}
 body[data-page] .hero#home h1 .masked, body[data-page] .hero#home .jm-hero-word {opacity:1!important;transform:none!important;animation:none!important}
 body[data-page] .wa-compact {bottom:max(18px,env(safe-area-inset-bottom));right:max(18px,env(safe-area-inset-right));z-index:9}
}
@media (min-width:801px) and (max-width:1100px) {
 #nav {gap:8px;padding-inline:3%}
 #nav .links {gap:8px;margin-inline:auto}
 #nav .links>a,#nav .navtrigger {font-size:12px}
 #nav .brand strong {display:none}
 #nav > .navcta {display:inline-flex!important;align-items:center;flex:none;padding:10px 12px;font-size:12px}
 #nav .navcta .cta-arrow {display:none}
 #nav .themebox {margin-right:0}
 body[data-page] .hero#home {min-height:min(100svh,960px);padding-bottom:100px}
}
@media (min-width:801px) and (max-width:950px) {
 #nav .links {gap:5px}
 #nav .links>a,#nav .navtrigger {font-size:11px}
 #nav .brand img,#nav.small .brand img {width:44px;height:44px}
 #nav > .navcta {padding:9px 8px;font-size:11px}
}

/* JM 3.8.1.5.2: portrait tablet homepage only. Natural growth for long CMS copy. */
@media (min-width:768px) and (max-width:1366px) and (orientation:portrait) {
 body[data-page="index"] .hero#home {
  min-height:clamp(560px, 54svh, 740px);
  height:auto;
  padding-top:156px;
  padding-bottom:76px;
  align-items:flex-end;
 }
 body[data-page="index"] .hero#home .hero-top {top:110px}
 body[data-page="index"] .hero#home h1 {font-size:clamp(64px,9.2vw,112px);margin-block:18px 22px}
 body[data-page="index"] .hero#home .hero-bottom {gap:20px}
 body[data-page="index"] .hero#home .hero-scroll {bottom:18px}
 body[data-page="index"] .hero#home .hero-side {top:38%}
}

/* 3.8.1.5.3 — intrinsic responsive proportions, public UI only. */
body[data-page] {--jm-card-gap:24px}
body[data-page] main > section.section > h2 {font-size:clamp(32px,5.2vw,80px);line-height:1.08;overflow-wrap:anywhere}
body[data-page] #services .services {height:auto;min-height:0}
body[data-page] #services .svc-panel {min-height:clamp(420px,38vw,580px)}
body[data-page] #services .svc-panel.active .svc-detail:not([hidden]) {margin:clamp(88px,9vw,120px) 24px 24px}
body[data-page] .jm-ce-summary {min-width:0;overflow-wrap:anywhere}
body[data-page] .jm-ce-grid > *,body[data-page] .story-layout > *,body[data-page] .jt-grid > * {min-width:0}
@media (min-width:768px) and (max-width:1366px) and (orientation:portrait), (min-width:768px) and (max-width:1199px) {
 body[data-page] {--jm-section-pad:32px;--jm-heading-gap:28px;--jm-content-gap:20px;--jm-card-gap:16px;--jm-gutter:5%;--jm-footer-pad:32px}
 body[data-page] main > section.section > h2 {font-size:clamp(36px,5vw,56px)}
 body[data-page] #services .svc-panel {min-height:440px}
 body[data-page] #services .svc-panel.active .svc-detail:not([hidden]) {margin:88px 18px 18px}
 body[data-page] #services .jm-svc-active-title {font-size:clamp(25px,3.2vw,36px)}
 body[data-page] #services .svc-detail p {font-size:14px}
 body[data-page] .jm-trust-section .jm-trust-art {max-width:160px}
 body[data-page] .jm-trust-section .jm-trust-card:not(.jm-pinned *) {padding:16px 10px}
 body[data-page] :is(#gallery,#gallery-preview) .jm-g-grid .jm-g-tile {min-height:clamp(180px,24vw,300px)}
 body[data-page] :is(#gallery,#gallery-preview) .jm-g-grid .jm-g-tile[data-editorial-role=lead] {min-height:clamp(300px,36vw,460px)}
 body[data-page] .jm-ce-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 body[data-page] .jm-ce-modal {max-width:94vw;max-height:90dvh;padding:24px}
 body[data-page] .jm-est-form,body[data-page] .jm-est-result {padding:20px}
 body[data-page] .jt-value summary {padding:18px 0}
 body[data-page] #legal.jm-credentials {gap:28px}
 body[data-page="service-landing"] .jm-landing-hero {min-height:0;padding:124px 5% 48px;gap:4%}
 body[data-page="service-landing"] .jm-landing-copy h1 {font-size:clamp(42px,6vw,76px)}
 body[data-page="service-landing"] .jm-landing-visual img {max-height:480px}
 body[data-page] .jm-landing-scope .jm-landing-grid>article {padding:18px;min-height:0}
 body[data-page] footer.jm-signature .jf-editorial {gap:28px;padding-bottom:20px}
}
@media (max-width:800px) {
 body[data-page] #services .svc-panel {min-height:100px}
 body[data-page] #services .svc-panel.active {min-height:390px}
 body[data-page] #services .svc-panel.active .svc-detail:not([hidden]) {margin:88px 16px 18px}
 body[data-page] .jm-landing-grid {grid-template-columns:1fr}
 body[data-page="service-landing"] .jm-landing-hero {grid-template-columns:1fr;min-height:0;padding:110px var(--jm-gutter) 32px;gap:24px}
 body[data-page="service-landing"] .jm-landing-visual img {aspect-ratio:4/3;max-height:420px}
}
@media (max-width:767px) {
 body[data-page] {--jm-card-gap:12px;--jm-section-pad:24px;--jm-heading-gap:24px;--jm-gutter:20px}
 body[data-page] main > section.section > h2 {font-size:clamp(28px,8vw,40px)}
 body[data-page] .jm-ce-grid {grid-template-columns:1fr;gap:12px}
 body[data-page] .jm-est-form,body[data-page] .jm-est-result {padding:16px}
 body[data-page] :is(#gallery,#gallery-preview) .jm-g-grid .jm-g-tile {min-height:220px}
 body[data-page] .jm-landing-scope .jm-landing-grid>article {min-height:0;padding:16px}
 body[data-page] footer.jm-signature .jf-editorial {gap:24px;padding-bottom:16px}
}
/* 3.8.1.5.4 — iOS glyphs and mobile navigation */
.jm-ui-icon{display:inline-block;width:1em;height:1em;vertical-align:-.12em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;pointer-events:none}
.jm-mobile-consult{display:none!important}
@media(max-width:800px){
 #nav,#nav.small{top:0;left:0;right:0;min-height:72px;padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));gap:8px;transform:none}
 #nav .brand{padding:0;flex:0 0 auto} #nav .brand strong{display:none} #nav .brand img,#nav.small .brand img{width:48px;height:48px}
 #nav .menu,#nav #themebutton{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center} #nav .menu{order:5} #nav .langswitch{margin-left:auto;flex:none} #nav .themebox{flex:none;margin:0} #nav #themelabel{display:none}
 #nav.open,#nav.small.open{background:var(--bg);color:var(--ink);backdrop-filter:none;-webkit-backdrop-filter:none} #nav.open:before{background:var(--bg);box-shadow:none}
 #nav.open .links,#nav.small.open .links{position:absolute;top:100%;left:0;right:0;width:100%;height:calc(100vh - 72px);max-height:calc(100vh - 72px);height:calc(100dvh - 72px);max-height:calc(100dvh - 72px);min-height:0;margin:0;padding:16px 20px max(24px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--bg);color:var(--ink);border:0;border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
 #nav.open .links>a:not(.jm-mobile-consult),#nav.open .links>.navtrigger{position:relative;display:flex;align-items:center;justify-content:space-between;flex:none;width:100%;padding:15px 0;min-height:52px;font-size:clamp(20px,5vw,27px);line-height:1.2;color:var(--ink);border-bottom:1px solid var(--line);white-space:normal;text-align:left;animation:jmMenuIn .3s ease both}
 #nav.open .links>.megapanel:not([hidden]){position:static;display:block;width:100%;min-height:0;max-height:none;flex:none;padding:4px 12px;margin:0;background:var(--panel);color:var(--ink);border:0;box-shadow:none;transform:none;overflow:visible}
 #nav.open .megacopy,#nav.open .megavisual,#nav.open .nav-rail{display:none!important} #nav.open .megalinks{display:block;width:100%} #nav.open .megalinks a{display:flex;align-items:center;gap:10px;min-height:44px;padding:12px 0;color:var(--ink);font-size:15px;white-space:normal} #nav.open .megalinks b{margin-left:auto}
 #nav.open .jm-mobile-consult{display:flex!important;flex:none;align-items:center;justify-content:space-between;margin-top:22px;padding:14px 16px;min-height:48px;background:#c9f48d;color:#10291f;border-radius:5px;font-size:15px}
 html:has(body.jm-mobile-nav-open){overflow:hidden!important} body.jm-mobile-nav-open{overflow:hidden!important} body.jm-mobile-nav-open .wa-compact{visibility:hidden}
 #services .svc-panel:not(.active){min-height:0} #services .svc-panel:not(.active) .service{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:12px 8px;padding:16px 18px;height:auto;min-height:112px;text-align:left} #services .svc-panel:not(.active) .svc-index,#services .svc-panel:not(.active) .svc-name,#services .svc-panel:not(.active) .svc-arrow{position:static;inset:auto;transform:none} #services .svc-panel:not(.active) .svc-index{grid-column:1;grid-row:1;font-size:24px} #services .svc-panel:not(.active) .svc-name{grid-column:1/-1;grid-row:2;font-size:clamp(20px,5.8vw,28px);line-height:1.12} #services .svc-panel:not(.active) .svc-arrow{grid-column:2;grid-row:1;justify-self:end} 
}
@keyframes jmMenuIn{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){#nav.open .links>*{animation:none!important}}
/* 3.8.1.5.5 — native controls and iOS polish */
#faq.faq details>summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:16px;line-height:1.45;min-height:44px}
#faq.faq details>summary::-webkit-details-marker{display:none}
#faq.faq details>summary::marker{content:''}
#faq.faq details>summary::after{content:'';width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);justify-self:center;transition:transform .2s;color:#56883b}
body[data-theme=dark] #faq.faq details>summary::after{color:#c9f48d}
#faq.faq details[open]>summary::after{transform:rotate(225deg)}
body[data-page] :is(.jm-wizard,.jm-q-form,.jm-est) input[type=radio]{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;width:20px;height:20px;min-width:20px;flex:0 0 20px;margin:0;border:1.5px solid #789582;border-radius:50%;background:#f5f4ec;vertical-align:middle;cursor:pointer}
body[data-page] :is(.jm-wizard,.jm-q-form,.jm-est) input[type=radio]::before{content:'';width:10px;height:10px;border-radius:50%;background:#285b39;transform:scale(0);transition:transform .15s ease}
body[data-page] :is(.jm-wizard,.jm-q-form,.jm-est) input[type=radio]:checked{border-color:#76a85b;background:#c9f48d}
body[data-page] :is(.jm-wizard,.jm-q-form,.jm-est) input[type=radio]:checked::before{transform:scale(1)}
body[data-page] input[type=radio]:focus-visible{outline:2px solid #76a85b;outline-offset:3px}
@media(max-width:800px){
 body[data-page] #faq.faq details{padding:12px 0}
 body[data-page] #faq.faq summary{font-size:16px;overflow-wrap:anywhere}
 body[data-page] .jm-client-stories{grid-template-columns:minmax(0,1fr);gap:20px;padding-block:36px}
 body[data-page] .jm-stories-panel{border-left:0;border-top:1px solid var(--line);padding:18px 0 0;min-width:0}
 body[data-page] .jm-stories-slide blockquote{font-size:clamp(17px,4.5vw,21px);line-height:1.55}
 body[data-page] .jm-wizard aside,body[data-page] .jm-wizard form{padding:20px}
 body[data-page] .jm-choice{min-height:48px;padding:12px;gap:12px;font-size:16px}
 body[data-page] :is(input:not([type=radio]):not([type=checkbox]),select,textarea){font-size:16px}
 body[data-page] .wa-compact{bottom:calc(24px + env(safe-area-inset-bottom,0px));right:max(16px,env(safe-area-inset-right));width:48px;height:48px}
 body[data-page] main [id]{scroll-margin-top:90px}
}
@media(prefers-reduced-motion:reduce){#faq.faq summary::after,body[data-page] input[type=radio]::before{transition:none}}


.jm-landing-visual picture{display:block;width:100%;height:100%}.jm-landing-visual picture img{object-position:var(--jm-desktop,50% 50%)!important;transform-origin:var(--jm-desktop,50% 50%)}
@media(min-width:801px) and (max-width:1366px) and (orientation:portrait){.jm-landing-visual picture img{object-position:var(--jm-tablet,50% 50%)!important;transform-origin:var(--jm-tablet,50% 50%)}}
@media(max-width:800px){.jm-landing-visual picture img{object-position:var(--jm-mobile,50% 50%)!important;transform-origin:var(--jm-mobile,50% 50%)}}
