@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800;900&family=Roboto+Slab:wght@400;500;600;700;800;900&display=swap");

/* =========================================================
   V4 FLAGSHIP SYSTEM — production-facing corporate polish
   ========================================================= */
:root{--ease:cubic-bezier(.22,.61,.36,1)}
html{scroll-padding-top:90px}
body{font-kerning:normal;text-rendering:optimizeLegibility}
::selection{background:var(--ink);color:var(--bg)}
.mast{mix-blend-mode:normal}.mast.scrolled{background:color-mix(in srgb,var(--dark) 95%,transparent)!important}
.desktop-nav{gap:clamp(18px,2.1vw,34px)}
.brand-name{font-size:14px}.brand-sub{font-size:7.5px}
.v4-eyebrow{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.23em;display:flex;align-items:center;gap:14px}
.v4-eyebrow:before{content:'';width:36px;height:1px;background:currentColor;opacity:.8}
.v4-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.22em;font-weight:850}
.v4-rule{height:1px;background:currentColor;opacity:.2}
.v4-num{font-variant-numeric:tabular-nums lining-nums}
.v4-link{display:inline-flex;gap:20px;align-items:center;padding:14px 0;border-bottom:1px solid currentColor;text-transform:uppercase;font-size:10px;letter-spacing:.18em;font-weight:850}.v4-link:after{content:'↗';font-size:17px;transition:transform .25s var(--ease)}.v4-link:hover:after{transform:translate(4px,-4px)}
.v4-gridbg{background-image:linear-gradient(to right,color-mix(in srgb,currentColor 8%,transparent) 1px,transparent 1px),linear-gradient(to bottom,color-mix(in srgb,currentColor 8%,transparent) 1px,transparent 1px);background-size:64px 64px}
.v4-reveal{opacity:1;transform:none;transition:transform .8s var(--ease)}.js .v4-reveal.is-visible{transform:none}
.v4-crop{overflow:hidden}.v4-crop img,.v4-crop .v4-media{transition:transform 1.2s var(--ease)}.v4-crop:hover img,.v4-crop:hover .v4-media{transform:scale(1.025)}
.page-hero{min-height:88svh!important;padding:190px 0 84px!important}.page-hero h1{font-size:clamp(66px,9.6vw,158px)!important;line-height:.82!important;letter-spacing:-.065em!important}.page-hero p{max-width:760px!important}.page .section{padding:clamp(96px,10vw,160px) 0!important}.page .two-col{gap:clamp(58px,9vw,150px)!important}.page .three-col{background:transparent!important;gap:0!important;border-top:1px solid var(--line);border-left:1px solid var(--line)}.page .three-col>div{border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:300px!important;padding:clamp(28px,3.3vw,54px)!important}.page .list-row{padding:46px 0!important}.page .content-image{min-height:76vh!important}.footer{padding-top:clamp(80px,9vw,145px)!important}.footer-top{grid-template-columns:1.55fr .7fr .75fr!important}.footer-top h2{font-size:clamp(52px,7vw,108px)!important;max-width:900px!important}.footer-bottom{margin-top:90px!important}
@media(max-width:900px){.wrap,.wrap.narrow{width:calc(100% - 40px)!important}.page-hero{min-height:76svh!important;padding:135px 0 54px!important}.page-hero h1{font-size:clamp(52px,15vw,88px)!important}.footer-top{grid-template-columns:1fr!important}.footer-bottom{margin-top:55px!important}}
@media(max-width:520px){.wrap,.wrap.narrow{width:calc(100% - 32px)!important}.page-hero h1{font-size:clamp(48px,14vw,72px)!important}}
@media(prefers-reduced-motion:reduce){.js .v4-reveal{opacity:1;transform:none;transition:none}.v4-crop img,.v4-crop .v4-media{transition:none}}




/* MATHABA — capability that multiplies */
body.mathaba{--earth:#b86439;--sage:#667460;--cream:#f4efe4;--dark2:#151d19}
.math4-hero{min-height:100svh;display:grid;grid-template-columns:1.03fr .97fr;background:#17201b;color:white;position:relative;overflow:hidden}.math4-copy{padding:190px 7vw 72px max(40px,calc((100vw - 1440px)/2));display:flex;flex-direction:column;justify-content:flex-end;position:relative;z-index:2}.math4-photo{background:url('hero.jpg') center/cover no-repeat;position:relative;min-height:760px}.math4-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(23,32,27,.45),transparent 38%),linear-gradient(0deg,rgba(0,0,0,.38),transparent 45%)}.math4-photo-tag{position:absolute;z-index:2;right:28px;bottom:30px;writing-mode:vertical-rl;text-transform:uppercase;font-size:8px;letter-spacing:.24em;color:white}.math4-title{font-family:Georgia,serif;font-size:clamp(68px,8.9vw,145px);font-weight:400;line-height:.8;letter-spacing:-.065em;margin:26px 0}.math4-title em{font-weight:400;color:#dd8557}.math4-copy p{font-size:clamp(17px,1.5vw,22px);line-height:1.65;color:#d3ddd6;max-width:700px}.math4-ownership{display:grid;grid-template-columns:1fr 1fr;margin-top:38px;border-top:1px solid rgba(255,255,255,.25);border-bottom:1px solid rgba(255,255,255,.25)}.math4-ownership div{padding:18px 22px 18px 0;border-right:1px solid rgba(255,255,255,.25)}.math4-ownership div:last-child{border:0;padding-left:22px}.math4-ownership strong{font-family:Georgia,serif;font-size:38px;font-weight:400;color:#dd8557}.math4-ownership span{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.16em;margin-top:5px;color:#9eaea4}
.math4-engines{display:grid;grid-template-columns:repeat(3,1fr);background:var(--cream)}.math4-engine{min-height:510px;padding:55px clamp(28px,4vw,64px);border-right:1px solid #d2c8b6;display:flex;flex-direction:column;justify-content:space-between}.math4-engine:nth-child(2){background:var(--sage);color:white}.math4-engine:nth-child(3){background:var(--earth);color:white}.math4-engine .n{font-size:9px;letter-spacing:.2em}.math4-engine h2{font-family:Georgia,serif;font-size:clamp(46px,4.5vw,72px);font-weight:400;line-height:.9;margin:0}.math4-engine p{font-size:15px;line-height:1.7;max-width:440px}.math4-engine a{align-self:flex-start}
.math4-founder{padding:150px 0;background:#f6f2e9;position:relative;overflow:hidden}.math4-founder:before{content:'ENGINEERED';position:absolute;right:-2vw;top:0;font-family:Georgia,serif;font-size:17vw;color:rgba(20,28,23,.028);letter-spacing:-.08em}.math4-founder-grid{display:grid;grid-template-columns:.72fr 1.28fr;gap:10vw;position:relative}.math4-founder h2{font-family:Georgia,serif;font-size:clamp(55px,6.8vw,108px);font-weight:400;line-height:.88;letter-spacing:-.06em;margin:26px 0}.math4-founder h2 em{font-weight:400;color:var(--earth)}.math4-founder-copy{padding-top:17vh}.math4-founder-copy p{font-size:20px;line-height:1.75;color:#686d65}.math4-values{display:grid;grid-template-columns:repeat(4,1fr);margin-top:75px;border-top:1px solid #cbc5b8;border-left:1px solid #cbc5b8}.math4-values div{padding:30px;min-height:210px;border-right:1px solid #cbc5b8;border-bottom:1px solid #cbc5b8}.math4-values span{font-size:9px;letter-spacing:.19em;color:#8a7b6d}.math4-values b{font-family:Georgia,serif;font-weight:400;font-size:31px;display:block;margin-top:58px}
.math4-skills{padding:150px 0;background:#17201b;color:white}.math4-skills-head{display:grid;grid-template-columns:.68fr 1.32fr;gap:10vw}.math4-skills h2{font-family:Georgia,serif;font-size:clamp(55px,6.7vw,108px);font-weight:400;line-height:.88;letter-spacing:-.06em;margin:0}.math4-skills h2 em{font-weight:400;color:#dd8557}.math4-badges{display:grid;grid-template-columns:repeat(3,1fr);margin-top:80px;border-top:1px solid #455049;border-left:1px solid #455049}.math4-badges div{padding:38px;min-height:250px;border-right:1px solid #455049;border-bottom:1px solid #455049}.math4-badges strong{font-family:Georgia,serif;font-size:clamp(42px,4.5vw,70px);font-weight:400;color:#e4d4c8}.math4-badges span{display:block;margin-top:75px;font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:#96a29a}.math4-course{margin-top:52px;border-top:1px solid #455049}.math4-course div{display:grid;grid-template-columns:80px .8fr 1.2fr;gap:30px;padding:28px 0;border-bottom:1px solid #455049}.math4-course span{font-size:9px;letter-spacing:.2em;color:#77867d}.math4-course b{font-family:Georgia,serif;font-size:28px;font-weight:400}.math4-course p{margin:0;color:#94a098;line-height:1.6;font-size:13px}
.math4-multiplier{padding:150px 0;background:#b86439;color:white}.math4-multiplier h2{font-family:Georgia,serif;font-size:clamp(62px,8.5vw,136px);font-weight:400;line-height:.84;letter-spacing:-.065em;margin:28px 0 65px;max-width:1250px}.math4-multiplier h2 em{font-weight:400;color:#17201b}.math4-flow{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid rgba(255,255,255,.3);border-left:1px solid rgba(255,255,255,.3)}.math4-flow div{padding:28px;border-right:1px solid rgba(255,255,255,.3);border-bottom:1px solid rgba(255,255,255,.3)}.math4-flow b{font-family:Georgia,serif;font-weight:400;font-size:28px}.math4-flow span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.15em;color:#f0c7b2;margin-top:12px}
@media(max-width:900px){.math4-hero{grid-template-columns:1fr}.math4-copy{padding:142px 20px 64px}.math4-photo{min-height:58vh;grid-row:1}.math4-title{font-size:clamp(62px,18vw,102px)}.math4-engines{grid-template-columns:1fr}.math4-engine{min-height:370px}.math4-founder-grid,.math4-skills-head{grid-template-columns:1fr}.math4-founder-copy{padding-top:20px}.math4-values,.math4-flow{grid-template-columns:1fr 1fr}.math4-badges{grid-template-columns:1fr}.math4-course div{grid-template-columns:42px 1fr}.math4-course p{grid-column:2}}@media(max-width:560px){.math4-values,.math4-flow{grid-template-columns:1fr}.math4-ownership strong{font-size:31px}}
/* Industrial visual calibration */
:root{--sans:"Roboto",Arial,Helvetica,sans-serif;--display:"Roboto Slab","Roboto",Arial,Helvetica,sans-serif}
body.mathaba{--earth:#c18b2c;--sage:#4c7180}
h1,h2,h3,h4,.section-title,.big-title,[class*="4-"] b,[class*="4-"] strong{font-family:var(--display)!important;font-style:normal!important;font-weight:800!important}
[class*="4-"] em,[class*="4-"] i{font-family:var(--display)!important;font-style:normal!important}
.page-hero h1{font-family:var(--display)!important;font-weight:800!important;line-height:.95!important;letter-spacing:-.025em!important;font-size:clamp(60px,8.4vw,138px)!important}
.pret4-title,.andru4-title,.math4-title,.coms4-title,.afr4-title,.mth4-title,.pf4-title{font-family:var(--display)!important;font-weight:800!important;font-style:normal!important;line-height:.86!important;letter-spacing:-.035em!important;margin:0!important}
.pret4-topline,.andru4-topline,.coms4-topline,.afr4-topline,.mth4-topline,.pf4-topline{margin-bottom:44px!important}
.pret4-deck,.andru4-bottom,.coms4-deck,.afr4-deck,.mth4-deck{margin-top:56px!important}
.pf4-copy p{margin-top:46px!important;margin-bottom:46px!important}
.math4-title em,.math4-founder h2 em,.math4-skills h2 em{color:var(--earth)!important}
.math4-multiplier{background:var(--earth)!important}
.math4-pillars a:nth-child(2){background:var(--sage)!important}
@media(max-width:900px){.page-hero h1{font-size:clamp(52px,14vw,92px)!important}.pret4-title,.andru4-title,.math4-title,.coms4-title,.afr4-title,.mth4-title,.pf4-title{line-height:.88!important;letter-spacing:-.03em!important}}
@media(max-width:560px){.page-hero h1{font-size:clamp(46px,13vw,72px)!important}}


/* Balanced section headers */
:is(.afr4-workshop-head,.afr4-throughput-head,.andru4-system-head,.andru4-work-head,.coms4-model-head,.coms4-cap-head,.math4-skills-head,.mth4-method-head,.pret4-architecture-head,.pret4-projects-head,.pf4-signal-head,.pf4-stack-head){
  display:grid!important;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)!important;
  gap:clamp(42px,6vw,92px)!important;
  align-items:start!important
}
:is(.afr4-workshop-head,.afr4-throughput-head,.andru4-system-head,.andru4-work-head,.coms4-model-head,.coms4-cap-head,.math4-skills-head,.mth4-method-head,.pret4-architecture-head,.pret4-projects-head,.pf4-signal-head,.pf4-stack-head)>:is(.v4-eyebrow,.v4-kicker){
  align-items:flex-start!important;
  font-size:clamp(13px,1.05vw,16px)!important;
  line-height:1.4!important;
  letter-spacing:.14em!important;
  font-weight:850!important;
  padding-top:10px!important;
  max-width:340px!important
}
:is(.afr4-workshop-head,.afr4-throughput-head,.andru4-system-head,.andru4-work-head,.coms4-model-head,.coms4-cap-head,.math4-skills-head,.mth4-method-head,.pret4-architecture-head,.pret4-projects-head,.pf4-signal-head,.pf4-stack-head)>.v4-eyebrow:before{
  width:52px!important;
  height:2px!important
}
:is(.afr4-workshop-head,.afr4-throughput-head,.andru4-system-head,.andru4-work-head,.coms4-model-head,.coms4-cap-head,.math4-skills-head,.mth4-method-head,.pret4-architecture-head,.pret4-projects-head,.pf4-signal-head,.pf4-stack-head)>h2{
  font-size:clamp(48px,5.4vw,94px)!important;
  line-height:.94!important;
  letter-spacing:-.035em!important;
  max-width:820px!important
}
@media(max-width:900px){
  :is(.afr4-workshop-head,.afr4-throughput-head,.andru4-system-head,.andru4-work-head,.coms4-model-head,.coms4-cap-head,.math4-skills-head,.mth4-method-head,.pret4-architecture-head,.pret4-projects-head,.pf4-signal-head,.pf4-stack-head){
    grid-template-columns:1fr!important;
    gap:28px!important
  }
  :is(.afr4-workshop-head,.afr4-throughput-head,.andru4-system-head,.andru4-work-head,.coms4-model-head,.coms4-cap-head,.math4-skills-head,.mth4-method-head,.pret4-architecture-head,.pret4-projects-head,.pf4-signal-head,.pf4-stack-head)>:is(.v4-eyebrow,.v4-kicker){
    font-size:12px!important;
    padding-top:0!important;
    max-width:none!important
  }
  :is(.afr4-workshop-head,.afr4-throughput-head,.andru4-system-head,.andru4-work-head,.coms4-model-head,.coms4-cap-head,.math4-skills-head,.mth4-method-head,.pret4-architecture-head,.pret4-projects-head,.pf4-signal-head,.pf4-stack-head)>h2{
    font-size:clamp(46px,12vw,74px)!important
  }
}
