/* Amba polish: typography, colour contrast, spacing. Loaded last. */
html{scroll-behavior:smooth}
body{font-size:1.0625rem;line-height:1.7;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
p{margin-bottom:1rem}
.mut{line-height:1.8}
h1,h2,h3{text-wrap:balance}

/* section rhythm */
.sec{padding:clamp(4.25rem,7.5vw,6.25rem) 0}
.sec.sm{padding:clamp(2.75rem,5vw,4.25rem) 0}
.sec.pt-0{padding-top:0}
.ctr.mb-5,.row.mb-5{margin-bottom:3.25rem!important}
.sec h2{font-size:clamp(2rem,3.9vw,3.2rem);line-height:1.12;margin-bottom:.5rem}
.ctr h2+p.mut{margin-top:1.4rem}
.cta{padding:clamp(4rem,7vw,5.5rem) 0}
.cta h2{font-size:clamp(2.1rem,4.2vw,3.4rem);line-height:1.12}
.cta .d-flex{margin-top:2rem!important}
#clients.sec{padding:clamp(3.5rem,6vw,5rem) 0}

/* eyebrow */
.eyebrow{font-size:.74rem;letter-spacing:.3em;font-weight:600}
html[data-theme=light] .eyebrow,html[data-theme=light] .card2 small,html[data-theme=light] .more,html[data-theme=light] .ty a,html[data-theme=light] .sz span,html[data-theme=light] .bcard small,html[data-theme=light] .bfeat small,html[data-theme=light] .crumb b,html[data-theme=light] .side .sc h4{color:#85601d}
html[data-theme=light] .bpill i,html[data-theme=light] .chk i,html[data-theme=light] .vals i,html[data-theme=light] .ty>i{color:#8c6520}

/* body copy sizes */
.card2 p,.vals p,.bcard p,.ty p{font-size:.97rem;line-height:1.75}
.card2 h3{font-size:1.7rem;line-height:1.2}
.card2 .cb{padding:1.75rem 1.75rem 2rem}
.vals h3,.bcard h3{font-size:1.5rem;line-height:1.2}
.vals>div{padding:2.2rem 1.8rem}
.chk li{font-size:1rem}
.faq summary{font-size:1.4rem;line-height:1.3}
.faq p{font-size:1rem;line-height:1.85}
.faq details{padding:1.35rem 0}

/* grids: even, generous gaps */
.cards{gap:1.75rem}
.vals,.blogos,.types{gap:1.5rem}
.sd{gap:clamp(2.25rem,5vw,4.5rem)}
.side{padding:2.2rem}
.sizes{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem}
.sizes .sz{flex:0 0 calc(25% - .75rem)}
@media(max-width:640px){.sizes .sz{flex-basis:calc(50% - .5rem)}}
.stat3 b{font-size:clamp(2.4rem,4vw,3.2rem)}

/* inner hero */
.ph{padding:9.5rem 0 4.5rem}
.ph h1{font-size:clamp(2.5rem,5.4vw,4.3rem);margin-bottom:1.1rem}
.ph p.l{font-size:1.08rem;line-height:1.8;max-width:38rem}
.crumb{margin-bottom:1.25rem}
@media(max-width:640px){.ph{padding:8rem 0 3.25rem}}

/* home hero legibility (light) */
html[data-theme=light] .hero2 .eyebrow{color:#7a5716}
html[data-theme=light] .hero2 p.l{font-weight:500}
html[data-theme=light] .hero2::before{background:linear-gradient(90deg,rgba(248,244,236,.84) 0%,rgba(248,244,236,.5) 40%,rgba(248,244,236,0) 72%),linear-gradient(0deg,var(--bk) 0%,transparent 12%)}
html[data-theme=light] .hero2 .bt.ghost{background:rgba(248,244,236,.78);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
html[data-theme=light] .cc small,html[data-theme=light] .fit figcaption small{color:#f6e3b4;text-shadow:0 1px 8px rgba(0,0,0,.65)}
.cc h3,.fit figcaption b{text-shadow:0 1px 10px rgba(0,0,0,.55)}

/* buttons */
.bt{letter-spacing:.2em}
html[data-theme=light] .ft a.bt{color:#16130c}
html[data-theme=light] .ft a.bt.ghost{color:var(--ivory);background:transparent}
html[data-theme=light] .ft a.bt.ghost:hover{color:var(--ch)}
.ft a.bt,.ft a.bt.ghost{padding:.95rem 1.7rem}

/* footer rhythm */
.ftx .ft-top{padding:3rem 0}
.ftx h3{font-size:.74rem;letter-spacing:.28em;text-transform:uppercase;font-weight:600;margin-bottom:1.3rem;font-family:'Manrope',sans-serif}
.ftx .fl{gap:.7rem;font-size:.95rem}
.ftx .fv li{font-size:.95rem}
html[data-theme=light] .ftx h3{color:#85601d}
html[data-theme=light] .ft a{color:#4f483a}
.ft-b{font-size:.82rem}

/* form */
.chips{display:flex;flex-wrap:wrap;gap:.6rem}
.ct-note{font-size:.85rem}

/* mobile */
@media(max-width:767px){
  body{font-size:1rem}
  .sec h2{font-size:clamp(1.85rem,8vw,2.4rem)}
  .cards,.vals,.blogos,.types{gap:1.1rem}
  .ctr.mb-5,.row.mb-5{margin-bottom:2.4rem!important}
  .ftx .ft-top{flex-direction:column;align-items:flex-start}
  .tr4>div{padding:1.2rem .9rem}
}

/* legibility over busy photos */
html[data-theme=light] .ph::before{background:linear-gradient(180deg,rgba(248,244,236,.68),rgba(248,244,236,.42) 55%,rgba(248,244,236,.64) 100%)}
html[data-theme=light] .ph h1{color:#1b1812}
html[data-theme=light] .ph h1 em{color:#85601d}
.sd .pic{margin-top:2.5rem!important}
.container{padding-left:max(var(--bs-gutter-x,1.5rem)*.5,1.1rem);padding-right:max(var(--bs-gutter-x,1.5rem)*.5,1.1rem)}
@media(max-width:991px){
  html[data-theme=light] .hero2::before{background:linear-gradient(180deg,rgba(248,244,236,.86) 0%,rgba(248,244,236,.7) 55%,rgba(248,244,236,.2) 100%),linear-gradient(0deg,var(--bk) 0%,transparent 10%)}
  html[data-theme=light] .hero2 h1 em{color:#85601d}
}
@media(max-width:767px){
  .hero2 .eyebrow{letter-spacing:.2em;font-size:.7rem}
  .sd .pic::before{display:none}
}

/* responsive hardening */
body{overflow-x:clip;max-width:100%}
img,video,svg{max-width:100%}
.ftx .fv li{min-width:0}
.ftx .fv a,.ftx .fv span,.side .sc a,.cc3 a,.cc3 b{overflow-wrap:anywhere;min-width:0}
@media(max-width:800px) and (min-width:601px){.cc3{grid-template-columns:repeat(3,1fr);gap:.9rem}.cc3>div{padding:1.4rem 1.1rem}.cc3 b{font-size:1.2rem}}
@media(max-width:600px){.cc3{grid-template-columns:1fr}}
@media(min-width:561px) and (max-width:991px){
  .cards>.card2:last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
  .cards>.card2:last-child:nth-child(odd) .ci{aspect-ratio:auto;height:100%}
}
@media(min-width:561px) and (max-width:991px){.blogos>.bcard:last-child:nth-child(odd){grid-column:auto}}
