
/* APIS Lab v6.33 — final spacing pass, anti-overlap fixes, and Komok image refresh */
html,body{overflow-x:clip}
:where(h1,h2,h3,h4,p,li,b,span){max-width:100%}
:where(.v624-page,.v6-deep,.v623-page,.v622-page) :where(h1,h2,h3,h4,p,li){overflow-wrap:break-word}

/* 1) Lab bridge: force clean vertical flow in the left column */
.lab-tools-bridge{align-items:start!important;column-gap:64px!important}
.lab-tools-bridge>div:first-child{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;min-width:0}
.lab-tools-bridge>div:first-child>.v6-label{margin:0 0 16px!important}
.lab-tools-bridge>div:first-child>h2{margin:0 0 24px!important;max-width:10.8ch!important;line-height:.93!important;letter-spacing:-.055em!important}
.lab-tools-bridge>div:first-child>p{margin:0!important;max-width:62ch!important;line-height:1.68!important;color:#b7b3aa!important}
.lab-tools-bridge>.lab-tool-links{align-self:start!important;margin-top:6px!important}
.lab-tool-links{gap:12px!important}
.lab-tool-links a{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;min-height:74px!important;padding:20px 24px!important;border-radius:18px!important;line-height:1.35!important}
.lab-tool-links a span{margin-left:12px;flex:0 0 auto}

/* 2) Path contrast cards: prevent headline clipping */
.path-contrast{align-items:stretch!important}
.path-bad,.path-good{display:flex!important;flex-direction:column!important;min-height:0!important}
.path-bad>span,.path-good>span{display:block!important;margin:0 0 14px!important;font-size:12px!important;letter-spacing:.08em!important;text-transform:uppercase!important}
.path-bad h3,.path-good h3{margin:0 0 22px!important;font-size:clamp(22px,2.05vw,28px)!important;line-height:1.08!important;letter-spacing:-.02em!important;max-width:18ch!important}
.path-contrast ol{margin:0!important;padding-left:21px!important}
.path-contrast li{margin:10px 0!important;line-height:1.48!important}

/* 3) Tool result spacing and button rhythm */
.tool-workbench{display:flex!important;flex-direction:column!important;gap:22px!important}
.tool-workbench>.workbench-intro{margin:0!important}
.tool-workbench>.readiness-rows,.tool-workbench>.tool-form,.tool-workbench>.weights-grid,.tool-workbench>.content-columns,.tool-workbench>.funnel-input-grid{margin:0!important}
.tool-workbench>:where(button,.v6-btn){align-self:flex-start!important;max-width:100%;white-space:normal!important;text-align:center!important}
.pro-result{margin-top:24px!important}
.result-empty{padding:28px 28px 24px!important}
.result-empty b{display:block;margin:0 0 10px!important}
.result-empty p{margin:0!important;line-height:1.58!important}

/* 4) Service case card with Komok: safer text and refreshed image treatment */
.service-case{align-items:stretch!important}
.service-case-media{background:#0f1116!important}
.service-case-media img{object-position:center center!important}
.service-case-copy{padding:56px 54px!important;justify-content:center!important}
.service-case-copy>.v5-kicker{display:block!important;margin:0 0 16px!important}
.service-case-copy h2{margin:0 0 18px!important;font-size:clamp(48px,5.7vw,78px)!important;line-height:.92!important;letter-spacing:-.05em!important}
.service-case-copy p{margin:0!important;max-width:22ch!important;line-height:1.62!important}
.service-case-copy>b{display:block!important;margin-top:28px!important}
.case-index-metrics{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin-top:22px!important}
.case-index-metrics span{display:inline-flex!important;align-items:center!important;min-height:40px!important;padding:0 16px!important;border-radius:999px!important;white-space:nowrap!important}

/* 5) Generic section-head consistency */
.v624-section-head,.section6-head,.international6-head,.labx-head,.intel-block-head,.case6-two,.business-first-grid,.v5-head{align-items:start!important}
.v624-section-head>div:first-child,.section6-head>div:first-child,.international6-head>div:first-child,.labx-head>div:first-child,.intel-block-head>div:first-child,.case6-two>div:first-child,.business-first-grid>div:first-child,.v5-head>div:first-child{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0}
.v624-section-head>div:first-child>:where(h2,h3),.section6-head>div:first-child>:where(h2,h3),.international6-head>div:first-child>:where(h2,h3),.labx-head>div:first-child>:where(h2,h3),.intel-block-head>div:first-child>:where(h2,h3),.case6-two>div:first-child>:where(h2,h3),.business-first-grid>div:first-child>:where(h2,h3),.v5-head>div:first-child>:where(h2,h3){margin:0!important;max-width:14ch!important;line-height:.98!important}
.v624-section-head>:nth-child(2),.section6-head>:nth-child(2),.international6-head>:nth-child(2),.labx-head>:nth-child(2),.intel-block-head>:nth-child(2),.case6-two>:nth-child(2),.business-first-grid>:nth-child(2),.v5-head>:nth-child(2){align-self:start!important;margin-top:30px!important}

/* 6) Buttons and controls: unified spacing */
.v6-btn,.v5-btn{max-width:100%;text-align:center}
.v6-btn{line-height:1.18!important}
.result-actions,.final-cta>div,.hero6-actions,.intl-cta,.v5-actions{gap:14px!important}

@media(max-width:1180px){
  .lab-tools-bridge>div:first-child>h2{max-width:11.5ch!important}
  .service-case-copy{padding:42px!important}
}
@media(max-width:900px){
  .lab-tools-bridge{grid-template-columns:1fr!important;row-gap:28px!important}
  .lab-tools-bridge>.lab-tool-links{margin-top:0!important}
  .service-case-copy p{max-width:none!important}
}
@media(max-width:640px){
  .lab-tools-bridge>div:first-child>h2{max-width:none!important}
  .lab-tool-links a{min-height:64px!important;padding:18px 18px!important}
  .path-bad h3,.path-good h3{max-width:none!important;font-size:clamp(22px,7vw,30px)!important}
  .service-case-copy{padding:28px 24px!important}
  .service-case-copy h2{font-size:clamp(40px,14vw,62px)!important}
  .case-index-metrics span{white-space:normal!important;min-height:0!important;padding:10px 14px!important}
}
