/* PROCOGNEX v3.5 — restrained design refinement layer.
   Refines spacing, typography, surface consistency and interaction targets.
   Loaded last so original design and interactive JS are preserved.
   Guidance: shared alignment edges, spacing groups, Arial hierarchy,
   keyboard focus, optical icon balance and reduced motion. */
:root {
  --ui-space-1:4px;
  --ui-space-2:8px;
  --ui-space-3:12px;
  --ui-space-4:16px;
  --ui-space-5:24px;
  --ui-space-6:32px;
  --ui-space-7:48px;
  --ui-radius-xs:6px;
  --ui-radius-sm:10px;
  --ui-radius-md:14px;
  --ui-radius-lg:20px;
  --ui-ease:cubic-bezier(.2,0,0,1);
}

/* Keep one font family, predictable wrapping, and a readable text rhythm. */
body{font-family:Arial,Helvetica,sans-serif;line-height:1.5;text-rendering:optimizeLegibility}
h1,h2,h3,h4{font-family:Arial,Helvetica,sans-serif;overflow-wrap:normal;text-wrap:balance}
p{overflow-wrap:break-word}
a,button,input,select,textarea{font-family:inherit}
:where(a,button,input,select,textarea,summary):focus-visible{
  outline:2px solid var(--lime);
  outline-offset:3px;
}
:where(.light,.soft,.inner-section,.legal-main) :where(a,button,input,select,textarea,summary):focus-visible{outline-color:#365bb7}
html{scroll-padding-top:90px}

/* Navigation: a comfortable click target without visually inflating the bar. */
header nav{gap:clamp(10px,1.5vw,24px)}
header .navlinks{gap:clamp(2px,.6vw,9px)}
header .navlinks a,
header .navlinks .nav-menu-trigger{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;
  padding:11px 9px;
  font-size:13px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:0;
  white-space:nowrap;
}
header .navlinks a{transition:color .18s var(--ui-ease)}
header .navlinks .nav-menu-trigger{gap:8px}
header .nav-cta{min-height:44px;padding:10px 14px;font-size:13px;border-radius:var(--ui-radius-sm);white-space:nowrap}
header .brand-link{min-height:44px}
header .language-trigger{min-height:44px;border-radius:var(--ui-radius-sm)}
header .language-options{border-radius:var(--ui-radius-md)}
header .mobile-menu-toggle{
  min-width:44px;min-height:44px;
  padding:0;align-items:center;justify-content:center;
  border-radius:var(--ui-radius-sm);background:#181b1f;
}
header .mobile-menu-toggle svg{display:block;width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
header .mobile-menu-toggle .icon-close{display:none}
header .mobile-menu-toggle[aria-expanded="true"] .icon-open{display:none}
header .mobile-menu-toggle[aria-expanded="true"] .icon-close{display:block}

/* Mega menus: slightly calmer geometry with consistent internal padding. */
.mega-panel{min-height:0;column-gap:clamp(18px,2vw,30px);padding:26px;border-radius:var(--ui-radius-md)}
.mega-item,.mega-static-item{gap:12px;padding:13px;border-radius:var(--ui-radius-sm)}
.mega-icon,.mega-index{border-radius:var(--ui-radius-sm)}
.mega-feature{border-radius:var(--ui-radius-sm);padding:24px}
.mega-feature a{min-height:44px;align-items:center;border-radius:var(--ui-radius-xs)}

/* Consistent buttons and icon alignment. */
.btn{min-height:48px;padding:12px 19px;border-radius:var(--ui-radius-sm);line-height:1.3;transition:transform .18s var(--ui-ease),box-shadow .18s var(--ui-ease),border-color .18s var(--ui-ease)}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(0,0,0,.12)}

/* Sections should follow content, not manufacture large vertical blank areas. */
@media(min-width:761px){
  #capabilities,#why,#approach,#contact{
    min-height:0;
    display:block;
    padding-top:clamp(76px,7vw,104px);
    padding-bottom:clamp(76px,7vw,104px);
  }
}
.section{padding-top:clamp(72px,7vw,108px);padding-bottom:clamp(72px,7vw,108px)}
.section-head{gap:clamp(28px,4.5vw,64px);margin-bottom:clamp(32px,4vw,52px)}
.section h2,.final h2{font-size:clamp(37px,4.5vw,66px);line-height:1.09;letter-spacing:-.035em}
.section-head p{max-width:630px;font-size:16px;line-height:1.7}
.hero h1{line-height:1.055;letter-spacing:-.035em}
.hero-copy>p{font-size:16px;line-height:1.7}
.hero-actions{gap:12px;margin-top:28px}
.hero-proof{gap:8px}
.proof{font-size:11px;line-height:1.3;padding:8px 11px}

/* Capability and industry grids: shared surface shapes and inner spacing. */
.cap-grid,.industry-grid{gap:14px}
.cap,.industry,.step{border-radius:var(--ui-radius-md)}
.cap{padding:24px;min-height:190px}
.cap-number,.step small{font-size:11px;letter-spacing:.11em}
.cap h3{font-size:clamp(21px,1.9vw,27px);line-height:1.18;margin-top:26px}
.cap p{font-size:14px;line-height:1.65}
.industry{padding:24px;min-height:186px}
.industry-icon{width:40px;height:40px;border-radius:var(--ui-radius-sm)}
.industry h3{margin-top:26px;margin-bottom:10px;font-size:clamp(20px,1.75vw,25px);line-height:1.17}
.industry p{font-size:14px;line-height:1.6}
.reason{grid-template-columns:50px minmax(0,1fr);gap:12px;padding:26px 0}
.reason h3{font-size:22px;line-height:1.2}
.reason p,.why-copy p{font-size:15px;line-height:1.7}

/* Consultancy subpages: make their rhythms match the homepage. */
.inner-hero,.article-hero{padding:clamp(80px,8vw,110px) 0 clamp(70px,7vw,95px)}
.inner-hero h1,.article-hero h1{line-height:1.08;letter-spacing:-.035em;max-width:980px}
.inner-hero p,.article-hero p{font-size:17px;line-height:1.7}
.inner-section{padding:clamp(65px,7vw,92px) 0}
.service-grid,.insight-grid{gap:16px}
.service-card,.insight-card,.empty-note{padding:clamp(24px,2.8vw,34px);border-radius:var(--ui-radius-md)}
.service-card h2,.insight-card h2{margin:20px 0 14px;line-height:1.18}
.service-card p,.insight-card p,.empty-note p{font-size:15px;line-height:1.65}
.related-links a{border-radius:var(--ui-radius-sm);min-height:44px;display:inline-flex;align-items:center}
.article-content p{line-height:1.75}

/* Engagements and footer alignment. */
.engagement-heading{margin:14px 0 36px;gap:clamp(22px,4vw,44px)}
.engagement-grid{gap:16px}
.engagement-card{padding:28px 26px 30px;border-radius:var(--ui-radius-md);min-height:335px}
.engagement-card h3{margin:34px 0 17px;line-height:1.16}
.engagement-card p{font-size:14px;line-height:1.7}
.final-box{border-radius:var(--ui-radius-lg)}
.site-footer .footer-mast{padding:clamp(54px,6vw,76px) 0 clamp(48px,5vw,64px);gap:clamp(20px,3vw,44px)}
.site-footer .footer-column{gap:13px}
.site-footer .footer-column h2{margin:3px 0 7px}
.site-footer .footer-column>a{font-size:14px;line-height:1.45}
.site-footer .footer-social{border-radius:var(--ui-radius-sm);width:44px;height:44px}
.site-footer .footer-bottom{padding:21px 0 25px}
.site-footer nav.footer-legal-links{height:auto;min-height:0;align-items:center;justify-content:flex-end;gap:12px 22px}
.site-footer .footer-legal-links a{font-size:12px;line-height:1.4;padding:5px 0}
.legal-help{border-radius:var(--ui-radius-md)}

/* Process Lab: legible labels, comfortable targets, tabular live values.
   Do not change its layout grid, calculations or SVG animation. */
#pl-root .pl-shell{border-radius:var(--ui-radius-lg)}
#pl-root .pl-map-panel,#pl-root .pl-side-panel{border-radius:var(--ui-radius-md)}
#pl-root .pl-scenario-select,#pl-root .pl-shell-identity strong{font-size:12px}
#pl-root .pl-scenario-select select{min-height:42px;font-size:13px;border-radius:var(--ui-radius-sm)}
#pl-root .pl-quiet-btn,#pl-root .pl-download-btn,#pl-root .pl-copy-btn,#pl-root .pl-map-pause{min-height:40px;font-size:12px;border-radius:var(--ui-radius-sm)}
#pl-root .pl-path-btn{min-height:38px;padding:9px 11px;font-size:12px;border-radius:var(--ui-radius-sm)}
#pl-root .pl-example-pill,#pl-root .pl-pill{font-size:11px}
#pl-root .pl-map-bottom span{font-size:12px}
#pl-root .pl-hero-metric strong,#pl-root .pl-kpi-row strong,#pl-root .pl-before-after strong{font-variant-numeric:tabular-nums}
#pl-root .pl-hero-metric span{font-size:13px}
#pl-root .pl-input-item label{font-size:12px;line-height:1.4}
#pl-root .pl-number-wrap{min-height:34px;border-radius:var(--ui-radius-xs)}
#pl-root .pl-number-wrap input{font-size:13px;font-variant-numeric:tabular-nums}
#pl-root .pl-advanced{border-radius:var(--ui-radius-sm)}
#pl-root .pl-advanced summary{min-height:44px;font-size:12px}
#pl-root .pl-status-dot{flex:none}

@media(max-width:1050px){
  .section-head{gap:24px}
  .why-grid{gap:35px}
  .footer-mast{gap:26px}
  .hero-inner{gap:34px}
}
@media(max-width:1040px){
  header .mobile-menu-toggle{display:inline-flex}
  .mobile-drawer:not([hidden]){border-radius:0 0 var(--ui-radius-sm) var(--ui-radius-sm)}
  .mobile-drawer details summary{min-height:48px}
  .mobile-drawer details a{min-height:44px;display:flex;align-items:center}
}
@media(max-width:760px){
  .wrap{width:calc(100% - 32px)}
  .section{padding:70px 0}
  .section-head{margin-bottom:30px}
  .section h2,.final h2{font-size:clamp(36px,8.7vw,52px);letter-spacing:-.035em;line-height:1.09}
  .section-head p{font-size:15px;line-height:1.68}
  .hero-inner{padding-top:108px;padding-bottom:50px;gap:32px}
  .hero h1{font-size:clamp(39px,9.4vw,55px);letter-spacing:-.035em;line-height:1.08}
  .hero-proof{gap:7px}
  .proof{font-size:10px}
  .intelligence{min-height:490px;border-radius:var(--ui-radius-lg)}
  .intel-top{font-size:9px;letter-spacing:.09em}
  .domain strong{font-size:11px}
  .domain small{font-size:9px;letter-spacing:.06em}
  .drag-hint,.intel-caption{font-size:9px;letter-spacing:.06em}
  .cap,.industry,.step{border-radius:var(--ui-radius-md)}
  .cap,.industry{padding:23px}
  .cap h3{margin-top:23px}
  .reason{grid-template-columns:35px minmax(0,1fr);gap:9px}
  .engagement-heading{margin-bottom:30px}
  .engagement-card{min-height:0;padding:26px 24px}
  .engagement-card h3{margin-top:24px}
  .inner-hero,.article-hero{padding:67px 0}
  .inner-hero h1,.article-hero h1{font-size:clamp(39px,9vw,57px)}
  .inner-hero p,.article-hero p{font-size:16px}
  .service-card,.insight-card,.empty-note{padding:25px}
  .site-footer nav.footer-legal-links{justify-content:flex-start;gap:8px 19px}
  #pl-root .pl-page-title h1{font-size:clamp(24px,6.8vw,31px)}
  #pl-root .pl-path-btn{font-size:12px;padding:8px 10px;min-height:38px}
  #pl-root .pl-scenario-select select{font-size:16px} /* prevent iOS auto-zoom */
  #pl-root input[type=number]{font-size:16px} /* prevent iOS auto-zoom */
}
@media(prefers-reduced-motion:reduce){
  .btn:hover,.service-card:hover,.insight-card:hover,.cap:hover,.industry:hover{transform:none;box-shadow:none}
}

/* Small-screen simulator toolbar: no clipped example names or crowded actions. */
@media(max-width:700px){
  #pl-root .pl-shell-bar{align-items:stretch}
  #pl-root .pl-top-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:10px;
    width:100%;
  }
  #pl-root .pl-scenario-select{min-width:0;display:grid;grid-template-columns:1fr;gap:5px;font-size:12px}
  #pl-root .pl-scenario-select select{min-width:0;max-width:none;width:100%;height:44px}
  #pl-root .pl-quiet-btn{min-height:44px}
  #pl-root .pl-download-btn{grid-column:1/-1;width:100%;min-height:44px}
  #pl-root .pl-map-bottom .pl-map-pause{min-height:40px}
}

/* v3.6 — focused homepage narrative & destination page. */
#lab .home-lab-action{display:flex;align-items:center;justify-content:flex-start;margin-top:20px}
#lab .home-lab-action .btn{min-width:0}
.industries-landing #industries{min-height:0 !important;padding-top:clamp(92px,8vw,128px);padding-bottom:clamp(75px,7vw,105px)}
.industries-landing .section-head{margin-bottom:clamp(30px,4vw,48px)}
@media (max-width:760px){
  #lab .home-lab-action{margin-top:17px}
  #lab .home-lab-action .btn{width:auto}
  .industries-landing #industries{padding-top:96px}
}
