/* Homepage (scoped to .hm) */
.hm{--g:#1d6d42;--g2:#155434;--tint:#eef6f3;--teal:#e3f6f5;--line:#d7e6df;--ink:#22302a;--mute:#56645d;color:var(--ink)}
.hm .hm-sec{padding:4.5rem 0}
.hm section[id]{scroll-margin-top:180px}
.hm .hm-sec-white{background:#fbfdfc}
.hm .hm-sec-tint{background:var(--tint)}
.hm .hm-eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--g);margin:0 0 .75rem}
.hm .hm-eyebrow-light{color:#bfe8d0}
.hm .hm-h1{font-size:clamp(2rem,5.2vw,3.4rem);font-weight:700;line-height:1.08;letter-spacing:-.02em;color:var(--g2);margin-bottom:1.1rem}
.hm .hm-h2{font-size:clamp(1.55rem,3.4vw,2.2rem);font-weight:700;line-height:1.15;letter-spacing:-.01em;color:var(--g2)}
.hm .hm-head{max-width:720px;margin-bottom:2.25rem}
.hm .hm-lead{font-size:1.15rem;color:var(--mute);max-width:620px;margin-bottom:1.75rem}
.hm .hm-ctas{display:flex;flex-wrap:wrap;gap:.75rem}
.hm .hm-btn-ghost{border:2px solid var(--g);color:var(--g);background:transparent}
.hm .hm-btn-ghost:hover{background:var(--g);color:#fff}
.hm a:focus-visible,.hm .btn:focus-visible{outline:3px solid #0f9aa6;outline-offset:3px}

/* Hero */
.hm-hero{background:linear-gradient(180deg,#f3f8f5 0%,var(--teal) 100%);padding:4rem 0 3.5rem;border-bottom:1px solid var(--line)}
.hm-hero-grid{display:grid;gap:2.5rem;align-items:center}
@media(min-width:992px){.hm-hero-grid{grid-template-columns:1.45fr 1fr}}
.hm-evidence{background:#fff;border:1px solid var(--line);border-left:5px solid var(--g);border-radius:14px;padding:1.6rem 1.5rem;box-shadow:0 10px 30px -18px rgba(21,84,52,.35)}
.hm-evidence-k{font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--mute);margin-bottom:.5rem}
.hm-evidence-stat{font-size:1.1rem;font-weight:700;line-height:1.35;color:var(--ink);margin-bottom:.8rem}
.hm-evidence-stat span{display:block;font-size:3rem;line-height:1;color:var(--g);letter-spacing:-.03em;margin-bottom:.3rem}
.hm-evidence-src{font-size:.85rem;color:var(--mute);margin:0}
.hm-evidence-src a{color:var(--g);font-weight:700}

/* Problems */
.hm-problems{list-style:none;padding:0;margin:0;display:grid;gap:0;border-top:1px solid var(--line)}
@media(min-width:768px){.hm-problems{grid-template-columns:1fr 1fr;column-gap:3rem}}
.hm-problems li{display:flex;gap:1.1rem;padding:1.4rem 0;border-bottom:1px solid var(--line)}
.hm-num{font-weight:700;color:var(--g);font-size:.9rem;padding-top:.2rem;min-width:2rem}
.hm-problems h3,.hm-svc h3,.hm-case h3{font-size:1.08rem;font-weight:700;color:var(--ink);margin-bottom:.35rem}
.hm-problems p,.hm-svc p,.hm-case p{color:var(--mute);margin:0;font-size:.97rem}

/* Forms promo */
.hm-forms{background:var(--g2);color:#e4f2ea;padding:2.75rem 0}
.hm-forms-in{display:grid;gap:1.5rem;align-items:center}
@media(min-width:992px){.hm-forms-in{grid-template-columns:1.6fr 1fr}}
.hm-forms-links{display:flex;flex-direction:column;align-items:flex-start;gap:.75rem}
@media(min-width:992px){.hm-forms-links{align-items:flex-end}}
.hm-link-light{color:#fff;font-weight:700;text-underline-offset:3px}

/* Services */
.hm-services{display:grid;gap:1rem}
@media(min-width:768px){.hm-services{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.hm-services{grid-template-columns:repeat(3,1fr)}.hm-svc-lead{grid-row:span 2}}
.hm-svc{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1.4rem;transition:transform .25s ease,box-shadow .25s ease}
.hm-svc:hover{transform:translateY(-3px);box-shadow:0 12px 26px -18px rgba(21,84,52,.45)}
.hm-svc i{color:var(--g);font-size:1.3rem;margin-bottom:.8rem;display:block}
.hm-svc-lead{background:var(--g);border-color:var(--g);display:flex;flex-direction:column;justify-content:flex-end;min-height:220px}
.hm-svc-lead i,.hm-svc-lead h3,.hm-svc-lead p{color:#fff}
.hm-svc-lead h3{font-size:1.45rem;line-height:1.2}
.hm-svc-lead p{opacity:.9}

/* Cases */
.hm-cases{display:grid;gap:1rem}
@media(min-width:768px){.hm-cases{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.hm-cases{grid-template-columns:repeat(4,1fr)}}
.hm-case{border-top:3px solid var(--g);padding-top:1rem}

/* Quotes */
.hm-quotes{display:grid;gap:1rem}
@media(min-width:768px){.hm-quotes{grid-template-columns:repeat(2,1fr)}}
.hm-quote{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1.5rem;margin:0}
.hm-quote blockquote{font-size:1.12rem;font-weight:700;color:var(--g2);line-height:1.4;margin-bottom:.75rem}
.hm-quote figcaption{font-size:.88rem;color:var(--mute)}
.hm-quote img{border:1px solid var(--line)}

/* Who + tools */
@media(max-width:575px){
body:has(.hm) .navbar-header{min-width:0;max-width:calc(100% - 48px)}
body:has(.hm) .navbar-brand{display:block;min-width:0;max-width:100%}
body:has(.hm) .header-logo{max-width:100%;height:auto}
}
.hm-who{list-style:none;padding:0;margin:0 0 2.75rem;display:flex;flex-wrap:wrap;gap:.5rem}
.hm-who li{background:var(--tint);color:var(--g2);font-weight:700;font-size:.92rem;border-radius:99px;padding:.5rem 1rem}
.hm-tools-h{font-size:1.1rem;font-weight:700;color:var(--ink);margin-bottom:1rem}
.hm-tools{list-style:none;padding:0;margin:0 0 1rem;display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}
@media(min-width:576px){.hm-tools{grid-template-columns:repeat(4,1fr)}}
@media(min-width:1100px){.hm-tools{grid-template-columns:repeat(7,1fr)}}
.hm-tools li{background:#fff;border:1px solid var(--line);border-radius:12px;height:84px;display:flex;align-items:center;justify-content:center;padding:.9rem}
.hm-tools img{max-width:100%;max-height:40px;object-fit:contain}
.hm-tool-txt{font-weight:700;font-size:1.05rem;color:var(--ink);letter-spacing:.01em}
.hm-note{font-size:.88rem;color:var(--mute);max-width:760px;margin:0}

/* About */
.hm-about{display:flex;flex-direction:column;gap:1.5rem;max-width:820px}
@media(min-width:768px){.hm-about{flex-direction:row}}
.hm-avatar{flex-shrink:0;width:76px;height:76px;border-radius:50%;background:var(--g);color:#fff;font-weight:700;font-size:1.6rem;display:flex;align-items:center;justify-content:center}
.hm-role{color:var(--mute);font-size:.92rem}
.hm-link{color:var(--g);font-weight:700;text-underline-offset:3px}

/* Contact */
.hm-contact{background:linear-gradient(180deg,var(--teal),var(--tint))}
.hm-steps{list-style:none;counter-reset:s;padding:0;margin:0 0 1.75rem}
.hm-steps li{counter-increment:s;position:relative;padding:0 0 1rem 3rem}
.hm-steps li::before{content:counter(s);position:absolute;left:0;top:0;width:2.1rem;height:2.1rem;border-radius:50%;background:#fff;border:2px solid var(--g);color:var(--g);font-weight:700;display:flex;align-items:center;justify-content:center}
.hm-steps strong{display:block}
.hm-steps span{color:var(--mute);font-size:.92rem}
.hm-contact-list{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
.hm-contact-list li{display:flex;gap:.6rem;align-items:center}
.hm-contact-list i{color:var(--g);width:1.1rem}
.hm-contact-list a{color:var(--g2);font-weight:700;text-decoration:none;word-break:break-word}
.hm-form{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.6rem;box-shadow:0 16px 40px -28px rgba(21,84,52,.5)}
.hm-form .form-control:focus{border-color:var(--g);box-shadow:0 0 0 .2rem rgba(29,109,66,.18)}

/* Blog */
.hm-blog{display:grid;gap:2rem}
@media(min-width:992px){.hm-blog{grid-template-columns:1fr 1.2fr;align-items:center}}
.hm-resource{background:var(--tint);border-radius:14px;padding:1.5rem}

/* Reveal (only when JS + motion allowed) */
.hm-js .hm-reveal{opacity:0;transform:translateY(12px);transition:opacity .5s ease,transform .5s ease}
.hm-js .hm-reveal.is-in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.hm *{transition:none!important}.hm .hm-svc:hover{transform:none}}
@media(max-width:767px){.hm .hm-sec{padding:3rem 0}.hm-hero{padding:2.5rem 0}}

/* Hero second paragraph + tools sub */
.hm .hm-lead-2{color:var(--mute);max-width:620px;margin:-.75rem 0 1.75rem}
.hm-tools-sub{font-size:.92rem;color:var(--mute);margin:-.5rem 0 1rem}
#who-we-work-with{border-bottom:1px solid var(--line)}

/* Case study */
.hm-case-study{background:linear-gradient(180deg,#fbfdfc,var(--teal))}
.hm-cs-top{display:grid;gap:1.25rem;margin-bottom:2.5rem}
@media(min-width:992px){.hm-cs-top{grid-template-columns:1fr 1fr;gap:3rem;align-items:end}}
.hm-cs-intro{color:var(--mute);font-size:1.05rem;margin:0}
.hm-cs-board{display:grid;gap:2rem;align-items:center}
@media(min-width:992px){.hm-cs-board{grid-template-columns:.8fr 1.2fr;gap:3rem}}
.hm-cs-arc{display:grid;gap:0;border-left:3px solid var(--g);padding-left:1.25rem}
.hm-cs-arc-step{position:relative;padding:.25rem 0 1.4rem}
.hm-cs-arc-step::before{content:"";position:absolute;left:calc(-1.25rem - 9px);top:.45rem;width:15px;height:15px;border-radius:50%;background:#fff;border:3px solid var(--g)}
.hm-cs-arc-step:last-child{padding-bottom:0}
.hm-cs-arc-step span{font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--g)}
.hm-cs-arc-step p{margin:.2rem 0 0;font-weight:700;color:var(--ink)}
.hm-cycle{margin:0;position:relative}
.hm-cycle-ring{list-style:none;padding:0;margin:0;display:grid;gap:.75rem}
.hm-cycle-ring li{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1.1rem 1.1rem 1.1rem 3.6rem;position:relative}
.hm-cycle-ring b{position:absolute;left:1rem;top:1rem;width:2rem;height:2rem;border-radius:50%;background:var(--g);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.9rem}
.hm-cycle-ring strong{display:block;color:var(--g2)}
.hm-cycle-ring span{color:var(--mute);font-size:.93rem}
.hm-cycle-core{display:none}
.hm-cycle figcaption{margin-top:1rem;font-size:.85rem;color:var(--mute);font-style:italic}
@media(min-width:768px){
  .hm-cycle-ring{grid-template-columns:1fr 1fr;gap:3.5rem 4.5rem}
  .hm-cycle-ring li:nth-child(3){order:4}.hm-cycle-ring li:nth-child(4){order:3}
  .hm-cycle-core{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;position:absolute;left:50%;top:calc(50% - 1.1rem);transform:translate(-50%,-50%);width:92px;height:92px;border-radius:50%;background:var(--teal);border:2px dashed var(--g);color:var(--g2);font-weight:700;font-size:.8rem;text-align:center;line-height:1.2}
  .hm-cycle-core i{font-size:1.3rem;color:var(--g)}
}
