/* ============================================================================
   ONE SET OF TEXT SIZES (Nara, 1 Dec 2026)
   Home (below its opening), the AI search pages, Process improvement, Who we
   are and the founder page. Laptops use the site's own sizes (type-scale.css).
   Phones and small tablets use the matching smaller set below: size "B".
   Loaded last, and only on those nine pages.
   ============================================================================ */
@media (max-width:980px){
  :root{
    --ts-h1:clamp(30px,4.4vw,38px);
    --ts-h2-lg:clamp(26px,3.7vw,32px); --ts-h2:clamp(26px,3.7vw,32px); --ts-h2-sm:clamp(26px,3.7vw,32px);
    --ts-card-l:clamp(22px,2.9vw,26px); --ts-card-m:clamp(22px,2.9vw,26px); --ts-card-s:18px;
    --ts-intro:clamp(15px,1.95vw,16px); --ts-body:clamp(15px,1.95vw,16px); --ts-small:13.5px;
    --ts-label:11.5px; --ts-tag:11.5px; --ts-pill:12px; --ts-button:14px; --ts-filter:13.5px; --ts-figure:22px;
  }
}

/* Laptops: titles and introductions follow the screen's width and height, so the
   full-screen openings still fit. Same rule on all nine pages. */
@media (min-width:981px){
  :root{
    --ts-h1:clamp(34px,min(3.3vw,5.35vh),56px);
    --ts-intro:clamp(16px,min(1.2vw,1.95vh),18px);
  }
}

/* ---- page titles ---- */
.sh h1,.aip .aip-hero h1,.aip.aip-founder .fh h1{font-size:var(--ts-h1) !important;}

/* ---- section headings ---- */
#problems .probs-head h2,#trial h2,#trial.fin h2,#svc-final h2{font-size:var(--ts-h2-lg) !important;}
.wm-head h2,.evx-head h2,.wd-head h2,#svc-redesign .fl-head h2,.hb-head h2,.op-head h2,.op-head-copy h2,#svc-run .wrap > div > h2,.tp-head h2,#ab-start h2,
#wdPanel .svcs-head h2,.faq .faq-head h2,
.ais-home.ais-fx .ais-home-copy h2,.cr .cr-head h2,h3.fx2-head,.fx2 .rz-head .ais-card-label,.fx4 .aim > h3,
.aip.aip main :is(h2,h2.reveal):not(.op-left h2):not(.aip-market h2){font-size:var(--ts-h2) !important;}
.bn-copy h2,#svc-dmaic .svcs-head h2,#svc-support .svcs-head h2{font-size:var(--ts-h2-sm) !important;}

/* on laptops these two keep their own size: a statement, and a line under "Our founder" */
@media (max-width:980px){ .tph-more{font-size:var(--ts-button) !important;} .abf-copy .abf-lead{font-size:var(--ts-h2) !important;} .sh-support{font-size:var(--ts-intro) !important;} }

/* ---- card titles: large, then small ---- */
.fl-step h3,.aip .tc-title{font-size:var(--ts-card-l) !important;}
.prob-row h3,.wd-pane h3,.tph-name,.evx-step h3,.sp-panel h3,.sp-copy h3,
.fx3 .fx3-route strong,
.aip.aip main .op-left h2,.aip.aip main .op-left h2 span,.aip.aip main .aip-market h2,.aip.aip .fcred li p b,.aip .aip-linkcard h3,.aip .pc h3,.aip .fcard h3,
.aip .aip-quote,.aip.aip .aip-wrong .wrap > p,.aip.aip .aip-wrong .lp-row > p{font-size:var(--ts-card-m) !important;}
.hb-item h3,.op-card h3,.wm-cap h3,.dm-panel h3,.bn-card h4,
.aip .ais-pstep h3,.aip.aip-agencies .op-left li h3,.aip .wh tbody th,.aip .aip-t-price tbody th{font-size:var(--ts-card-s) !important;}

/* ---- opening and section introductions ---- */
.probs-list .probs-head p,.wm-lede,.evx-lede,.hb-intro,.wd-head > p,#wdPanel .svcs-head > p,#svc-dmaic .svcs-head > p,
.op-head > p,.op-head-copy > p,#svc-redesign .fl-head p,.sh-descriptor,.tp-head p,.abf-copy p:not(.abf-lead),
.ais-home.ais-fx .ais-home-copy p,.cr .cr-intro,.fx3 .fx3-head p,
.aip.aip .aip-hero .aip-lead,.aip.aip.aip-founder .fh .aip-lead,
.aip.aip .aip-split-head p,.aip.aip.aip-hub .aip-checks .aip-split-head p,.aip.aip.aip-hub .ais-method .ais-head p,.aip.aip.aip-hub .pc-head p,
.aip.aip .prw-head p,.aip.aip .rd-intro,.aip.aip .fhead p,.aip.aip .tc-sub,.aip.aip .aip-two > div > h2 + p{font-size:var(--ts-intro) !important;}

/* ---- body text ---- */
.prob-row-body p:not(.prob-cost),.evx-card > p:not(.evx-note):not(.evx-qual),.evx-lead,.evx-ba p,.wm-cap > p,.wd-pane p,
.fl-lede,.fl-close,.fl-close .w,.dm-panel p,.dm-keeps p,.hb-text p,.svcs-close,.op-card p,.op-scope,.op-note p,.bn-lede,.bn-list b,
.sp-copy > p:not(.sp-qual),.sp-read,.fn-support,.fn-question,.fin-lede,.tph-bio,.faq-a p,.aip.aip .faq-a p,.aip.aip .aip-block p,.aip.aip .aip-block li,.aip.aip .fcred li p,.aip.aip .fcred-l,.faq-toggle,.faq-toggle span:not([aria-hidden]),
.fx2 .ais-home-steps li,.fx2 .rz-st,.fx3 .fx3-route-in > span,.fx4 .aim-card p,.fx4 .aim-note span,.cr-before .cr-main p,.cr-stats span,
.aip.aip .aim-card p,.aip.aip .aim-note,.aip.aip .aim-note span,.aip.aip .ais-method-credit,.aip.aip .ais-pstep p,.aip.aip .pc .pc-desc,
.aip.aip .mo-card p,.aip.aip .aip-linkcard p,.aip.aip .aip-after p,.aip.aip .aip-after-line,.aip.aip .aip-cta p,.aip.aip .aip-checklist p,
.aip.aip .aip-steps p,.aip.aip .aip-flow p,.aip.aip .aip-month-note,.aip.aip .op-left p,.aip.aip .op-row p,.aip.aip .prw-cards p,
.aip.aip .aip-market p,.aip.aip .aip-notshow p,.aip.aip .fcard p,.aip.aip .fnote p,.aip.aip .wh .wh-what,.aip.aip .wh .wh-where,
.aip.aip .tc-k,.aip.aip .tc-cap,.aip.aip .aip-tablecard tbody td,.aip.aip .aip-glance tbody th,.aip.aip .rs-how,.aip.aip .rs-what,
.aip.aip .rs-row th span,.aip.aip .rs-row .rs-res{font-size:var(--ts-body) !important;}
.fx3 .fx3-art strong{font-size:var(--ts-card-s) !important;}

/* ---- notes, captions and small print ---- */
.prob-cost,.evx-qual,.sp-qual,.sp-qual-label,.bn-cards-close,.tph-role,.bn-list p,.bn-card p,.cr .cr-scope,
.aip.aip .aip-disclose,.aip.aip .aip-sources p,.aip.aip .lp figcaption,.aip.aip .aip-strip small,
.aip.aip .rd-sub,.aip.aip .rd-sub b,.aip.aip .rd-fs,.aip.aip .rd-k,.aip.aip .rd-k b,.aip.aip .rd-pill,.aip.aip .wh .wh-dates,
.aip.aip .rs-chip,.aip.aip .pc dl > div,.aip.aip .pc-price span,.aip.aip .pc-switch span,.aip.aip .pc-switch button,.aip.aip .aip-compare-fold summary{font-size:var(--ts-small) !important;}

/* ---- labels ---- */
.eyebrow,.why-label,.sp-n,.evx-row-t,.evx-k,.cr .cr-date,.fx2 .ais-meter-eng,.fx2 .ais-mini span,.fx2 .ais-home-steps span,
.aip.aip .op-left h2 small,.aip.aip .op-row h3,.aip.aip .rs-when,.aip.aip .rs-grp th,.aip.aip .aip-phase span,.aip.aip thead th,.aip.aip .aim-figure span,.fx4 .aim-figure span{font-size:var(--ts-label) !important;}
.tph-tags li{font-size:var(--ts-pill) !important;}

/* ---- buttons ---- */
.svc-cta,.ab-hero .svc-cta,.hero-cta:not(.hero *),.tph-more.abf-more,.fin .hero-cta,.evx-btn,.sh-link,.fn-cta,.bn-toggle,.glass-btn,
.ais-home.ais-fx .ais-home-actions .ais-text-link,.cr .cr-more .cr-link,.fx2 .fx-results .ais-proof-links a,.evx .evx-grid .evx-btn,.evx .evx-grid .evx-more a,.whymba .wm-more a,
.aip.aip .aip-more,.aip.aip .pc-btn,.aip.aip .svc-cta{font-size:var(--ts-button) !important;}

@media (min-width:1860px) and (min-height:980px){ .ais-home.ais-fx .ais-home-copy h2{font-size:var(--ts-h2-lg) !important;} }

/* phones: every button is 46px tall */
@media (max-width:760px){
  .svc-cta,.evx-btn,.glass-btn,.hero-cta:not(.hero *),.ais-home.ais-fx .ais-home-actions .ais-text-link,.ais-home.ais-fx .ais-home-actions .svc-cta,.cr .cr-more .cr-link,.fx2 .fx-results .ais-proof-links a,
  .evx .evx-grid .evx-btn,.evx .evx-grid .evx-more a,.whymba .wm-more a,.aip.aip .aip-more,.aip.aip .pc-btn,.aip.aip .svc-cta{min-height:46px;padding-top:.6rem;padding-bottom:.6rem;}
}

/* ============================================================================
   ONE SET OF SPACING (Nara, 2 Dec 2026)
   --sp-y  above and below a section      --sp-l  label to heading
   --sp-h  heading to its text            --sp-c  text (or heading) to the cards
   Laptops: only sections that scroll normally. The ones that fill the screen,
   or hold while you scroll, keep the spacing that fits them to the screen.
   ============================================================================ */
:root{--sp-y:clamp(88px,12vh,128px);--sp-l:20px;--sp-h:20px;--sp-c:48px;}
@media (max-width:980px){ :root{--sp-y:clamp(72px,9.4vw,92px);--sp-l:16px;--sp-h:16px;--sp-c:32px;} }

/* ---- laptops and phones: the sections that scroll normally ---- */
.cr,.fx3,.fx4,.faq.faq,
.aip.aip.aip-hub main > section:not(.aip-hero),
.aip.aip main > :is(.aip-block,.aip-notshow,.aip-results-sec,.fhist,.fnow,.aip-prwave,.op-wrap,.aip-wrong,.aip-month){padding-top:var(--sp-y) !important;padding-bottom:var(--sp-y) !important;}
.aip.aip main > .faq:has(+ .aip-endrow){padding-bottom:var(--sp-c) !important;}
.aip.aip main > .aip-endrow{padding:0 0 var(--sp-y) !important;}
.aip.aip main > .rd{padding-bottom:var(--sp-y) !important;}

.aip.aip main :is(.ais-head,.prw-head,.rd-head,.aip-block .aip-two > div,.fhead,.pc-head,.aip-split-head) > h2{margin-bottom:0;}
.aip.aip main :is(.ais-head,.prw-head,.rd-head,.aip-block .aip-two > div,.fhead,.pc-head) > h2 + p{margin-top:var(--sp-h) !important;}
.aip.aip main :is(.ais-method-top,.pc-head,.prw-head,.fhead,.aip-split-head){margin-bottom:var(--sp-c) !important;}
.aip.aip main :is(.aip-notshow,.aip-results-sec,.fnow) h2{margin-bottom:var(--sp-c) !important;}
.fx4 .aim-line,.aip.aip .aip-aim .aim-line{margin-top:var(--sp-c);margin-bottom:var(--sp-c);}
.cr .cr-head,.fx3 .fx3-head{margin-bottom:var(--sp-c);}

/* ---- phones and small tablets: every section ---- */
@media (max-width:980px){
  .ais-home.ais-fx,.fx2,#problems.probs.probs,.home-flow #problems.probs,.wm-pin > .whymba,.evx.evx,#trial.fin,
  #svc-does,#svc-dmaic,#svc-build,#svc-run,#svc-support,#svc-final,#ab-people,#ab-start,
  .aip.aip main > section:not(.aip-hero):not(.fcred):not(.aip-endrow):not(.aip-sources):not(.faq){padding-top:var(--sp-y) !important;padding-bottom:var(--sp-y) !important;min-height:0 !important;}
  .aip.aip main > .aip-hero:not(.fh){padding-bottom:var(--sp-y) !important;}
  #services-hero{padding-top:127px !important;}
  #svc-dmaic > .wrap{padding-top:0 !important;padding-bottom:0 !important;}

  .eyebrow,.aip .fh .fh-l{margin-bottom:var(--sp-l) !important;}
  .evx-head h2,#trial h2,.bn-copy h2,.fl-head h2,.hb-head h2,#svc-run h2,.faq .faq-head h2,#services-hero h1{margin-top:0 !important;}

  .ais-home.ais-fx .ais-home-copy h2,.aip.aip .aip-hero h1,.abf-copy .abf-lead{margin-bottom:var(--sp-h) !important;}
  .probs-list .probs-head p,.wm-lede,.evx-lede,.fin-lede,.sh-descriptor,#wdPanel .svcs-head p,.bn-lede,.fl-head p,#svc-dmaic .svcs-head p,.hb-intro,.fn-support,.tp-head p{margin-top:var(--sp-h) !important;}
  .sh-descriptor ~ .sh-descriptor{margin-top:.8rem !important;}
  .cr .cr-head,.fx3 .fx3-head{row-gap:var(--sp-h);}
  .aip.aip main .aip-split-head{display:block;}
  .aip.aip main .aip-split-head > p{margin:var(--sp-h) 0 0 !important;}
  .aip.aip main .aip-reits h2{margin-bottom:0;} .aip.aip main .aip-reits h2 + p{margin:var(--sp-h) 0 0 !important;} .aip.aip main .aip-reits .wrap{row-gap:var(--sp-c);}

  .ais-home.ais-fx .ais-home-actions{margin-top:24px;} .ais-fx .fx-grid{row-gap:var(--sp-c);}
  .probs-layout{gap:var(--sp-c);} .evx-grid.evx-grid{row-gap:var(--sp-c);}
  .wm-head,.wd-head.svcs-head,.tp-head,#svc-support .svcs-head,#svc-dmaic .svcs-head{margin-bottom:var(--sp-c) !important;} .wm-head + .wm-triad{margin-top:0 !important;}
  .hb-head,.faq .faq-head{padding-bottom:var(--sp-c) !important;}
  .aip.aip main .aip-solo{margin-bottom:var(--sp-c) !important;}
  .aip.aip main .aip-block .aip-two > div > p:last-child{margin-bottom:0;}
  .fx2-head{margin-top:calc(var(--sp-c) * 1.6);margin-bottom:24px;} .fx3 .fx3-head .fx2-head{margin:0;} .fx3 .fx3-arts-head{margin:calc(var(--sp-c) * 1.6) 0 24px;}
  .fin .svc-cta,.fin .hero-cta,.fn-inner .fn-cta{margin-top:24px;}
}

/* ---- phones: last details on Process improvement and Who we are ---- */
@media (max-width:980px){
  .bn .bn-copy{padding-top:var(--sp-y) !important;}
  #svc-models{padding-bottom:var(--sp-y) !important;} #svc-models .bn-cards-close{margin-bottom:0;}
  .pr-grid .pr-copy{padding-top:40px !important;padding-bottom:var(--sp-y) !important;}
  .sp-read.sp-read{display:inline-block;margin:.5rem 0 0;padding-block:0;} .sp-read span{margin-left:.35rem;}
  #svc-run .op-card{height:auto !important;min-height:var(--op-card-h,300px);}
  #ab-start h2{line-height:1.2;} #ab-start .fn-cta{margin-top:24px !important;}
}
@media (max-width:560px){ .fn-inner .fn-cta,.fn-inner .svc-cta{width:100%;} }
@media (max-width:760px){ .sh-link,.fn-cta.fn-cta,.tph-more{min-height:46px;padding-top:.6rem;padding-bottom:.6rem;} }

/* ---- the last few sizes that had their own rule ---- */
.aip.aip.aip-hub :is(.aip-monitor,.aip-who) .aip-split-head p,.aip.aip.aip-qa .aip-split-head p{font-size:var(--ts-intro) !important;}
.aip.aip.aip-qa :is(.aip-notshow li p,.aip-block p,.faq-a p),.aip.aip .rd-name,.aip.aip .rd-ft{font-size:var(--ts-body) !important;}
#supportStage .sp-panel .sp-copy .sp-qual.sp-qual{font-size:var(--ts-small) !important;}
.svcs-note-label{font-size:var(--ts-label) !important;}
@media (max-width:980px){
  .aip.aip .aip-tablecard tbody th,.aip.aip .glt button{font-size:var(--ts-body) !important;}
  .fl-n{font-size:var(--ts-label) !important;}
  #svc-models .bn-cards{padding-bottom:0 !important;}
  #services-hero{padding-bottom:var(--sp-y) !important;}
  .sh-statement{padding-top:var(--sp-y) !important;} .sh-statement .sh-statement-inner{padding-bottom:var(--sp-y) !important;}
}
@media (max-width:980px){
  .aip.aip .aip-split-head h2{max-width:none;}
  .aip.aip .pc-btn{display:flex;align-items:center;justify-content:center;}
  .tph-more{justify-content:center;}
}

/* ---- the two process sections in the fuller launch homepage ---- */
.knows-head h2,.redo-head h2,#redesigns h2,.redo-head h2 .redo-hl{font-size:var(--ts-h2) !important;}
.redo-card h3,.knows-body h3,.knows-step h3{font-size:var(--ts-card-s) !important;}
.knows-head p,.redo-head-copy p{font-size:var(--ts-intro) !important;}
.knows-body p,.knows-step p,.redo-card p{font-size:var(--ts-body) !important;}
@media (max-width:980px){ #knows,#redesigns{padding-top:var(--sp-y) !important;padding-bottom:var(--sp-y) !important;} .knows-head h2,.redo-head h2{margin-top:0 !important;} }
