/* Brand theme — layered on top of existing page styles for the v2 site */
:root,:root.dark{
  --bg:#faf7f0;--bg-elev:#ffffff;--ink:#1c1a16;--ink-2:#55504a;--ink-3:#7a7268;--line:#ddd5c6;--line-2:#cfc5b3;
  --accent:#1e3a26;--cta-accent:#9e2f5a;--metric:#1e3a26;
  --paper:#faf7f0;--paper-2:#f4efe4;--paper-3:#ece5d6;--line-strong:#cfc5b3;--ink-4:#8a8278;--ink-5:#b3aa9c;
  --font-sans:"Inter",system-ui,sans-serif;--font-display:"Instrument Serif",Georgia,serif;
  --b-green:#1e3a26;--b-green-2:#2c5236;--b-ivory:#f4efe4;--b-sun:#e7a93b;--b-rose:#e37fa3;--b-rose-ink:#9e2f5a;--b-mono:"JetBrains Mono",ui-monospace,monospace;
}
body{background:var(--bg);color:var(--ink);font-family:var(--font-sans)}
.nav-links a:hover,.morecs__card:hover .morecs__cta{color:var(--b-rose)!important}
a{color:inherit}
main h1,.cs-page h1,.cc-hero__title,.hero h1,body h1{font-family:var(--font-display)!important;font-weight:400!important;letter-spacing:-.01em!important}
body h2:not(.bfoot h2){font-family:var(--font-display)!important;font-weight:400!important;letter-spacing:-.005em!important}
.ra-tag{white-space:nowrap}
::selection{background:var(--b-rose);color:var(--ink)}

/* nav */
.bnav{position:sticky;top:0;z-index:100;background:rgba(250,247,240,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.bnav .bwrap{max-width:1200px;margin:0 auto;padding:16px clamp(20px,4vw,48px);display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.bnav .bbrand{display:flex;align-items:center}
.bnav .bbrand img{width:34px;height:auto;display:block}
.bnav .bbrand-mark{display:block;width:34px;height:33px;background:center/contain no-repeat}
.bnav nav{display:flex;gap:clamp(14px,2.4vw,30px);flex-wrap:wrap}
.bnav nav a{color:var(--ink);text-decoration:none;font-size:14px;font-weight:500;font-family:var(--font-sans);transition:color .2s}
.bnav nav a:hover,.bnav nav a[aria-current="page"]{color:var(--b-rose)}
.bnav nav a{position:relative;padding-bottom:4px}
.bnav nav a::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;border-radius:2px;background:var(--b-rose);transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
.bnav nav a[aria-current="page"]::after{transform:scaleX(1)}
.bnav nav a[aria-current="page"]{color:var(--ink)}
a:hover{color:var(--b-rose)}

/* green case-study hero, like homepage */
html,body{overflow-x:clip}
.bhero{background:var(--b-green);color:var(--b-ivory);padding-bottom:56px}
.bhero + *{margin-top:48px}
.bhero .cs-back-line{margin-top:0!important;padding-top:24px}
.bhero .cs-hero-back{color:rgba(244,239,228,.8)}
.bhero .cs-hero-back:hover{color:var(--b-rose)}
.bhero .cc-hero{padding-bottom:40px}
.bhero .cc-hero__title,.bhero h1{color:var(--b-ivory)!important}
.bhero .cc-hero__sub,.bhero .cvh__sub,.bhero p{color:rgba(244,239,228,.88)!important}
.bhero b{color:var(--b-ivory)!important}
.bhero .cc-hero__eyebrow,.bhero .cvh__eyebrow{color:var(--b-sun)!important}
.bhero .cc-hero + div{margin-top:0!important;margin-bottom:0!important}
.bhero .cc-banner{margin-top:0;margin-bottom:0;box-shadow:0 30px 60px -30px rgba(0,0,0,.55)}

/* footer */
.bfoot{margin-top:clamp(96px,12vw,160px);position:relative;color:var(--b-ivory);overflow:hidden;background:var(--b-green);font-family:var(--font-sans)}
.bfoot .bdot{position:absolute;opacity:.7}
.bfoot .bdot-rose{width:clamp(160px,22vw,320px);aspect-ratio:1;background:var(--b-rose);border-radius:50%;right:6vw;top:-6vw}
.bfoot .bdot-sun{width:clamp(110px,14vw,210px);aspect-ratio:1;background:var(--b-sun);border-radius:24%;right:-3vw;top:12vw;rotate:12deg}
.bfoot .bwrap{position:relative;z-index:2;max-width:1200px;margin:0 auto;padding:clamp(80px,10vw,130px) clamp(20px,4vw,48px) 40px}
.bfoot .beyebrow{font-family:var(--b-mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:rgba(244,239,228,.8);margin-bottom:20px}
.bfoot h2{font-family:var(--font-display);font-weight:400;font-size:clamp(44px,6.6vw,96px);line-height:1;max-width:900px;text-wrap:balance;color:var(--b-ivory);margin:0}
.bfoot h2 a{color:var(--b-sun);font-style:italic;text-decoration:none}
.bfoot h2 a:hover{color:var(--b-rose)}
.bfoot .blinks{display:flex;gap:12px;flex-wrap:wrap;margin-top:36px}
.bbtn{white-space:nowrap;display:inline-flex;align-items:center;gap:8px;padding:13px 22px;border-radius:999px;font-size:14px;font-weight:500;text-decoration:none;font-family:var(--font-sans);transition:background .2s,color .2s;border:0;cursor:pointer}
.bbtn-light{background:var(--b-ivory);color:var(--b-green)}
.bbtn-light:hover{background:var(--b-rose);color:var(--ink)}
.bbtn-ghost{border:1px solid rgba(244,239,228,.6);color:var(--b-ivory);background:transparent}
.bbtn-ghost:hover{background:rgba(244,239,228,.12);color:var(--b-ivory)}
.bcopy .ce-hint{font-family:var(--b-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:rgba(30,58,38,.12)}
.bcopy.copied .ce-hint{background:var(--b-green);color:var(--b-ivory)}
.bfoot .bbottom{display:flex;justify-content:flex-end;gap:16px;margin-top:clamp(64px,8vw,110px);padding-top:22px;border-top:1px solid rgba(244,239,228,.25)}
.bfoot .bbottom span{font-size:15px;line-height:1.6;text-align:right;opacity:.85}

/* back to top */
.bto-top{position:fixed;right:clamp(16px,3vw,32px);bottom:clamp(16px,3vw,32px);z-index:60;width:48px;height:48px;border-radius:50%;background:var(--b-green);color:var(--b-ivory);display:flex;align-items:center;justify-content:center;font-size:20px;text-decoration:none;box-shadow:0 12px 28px -14px rgba(20,18,15,.6);opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .3s,transform .3s,background .2s}
.bto-top.show{opacity:1;pointer-events:auto;transform:none}
.bto-top:hover{background:var(--b-rose);color:var(--ink)}

.bfoot .bbottom{justify-content:flex-end;align-items:flex-end;flex-wrap:wrap}
.bfoot .bclassic{font-size:14px;color:rgba(244,239,228,.85);text-decoration:none}
.bfoot .bclassic:hover{color:var(--b-rose)}

@media(max-width:640px){
.bfoot .bbottom{justify-content:flex-start;flex-direction:column-reverse;align-items:flex-start;gap:14px}
.bfoot .bbottom span{text-align:left}
}

/* hamburger (mobile) */
.bburger{display:none}
@media(max-width:640px){
header.bnav .bwrap,header.nav .wrap{flex-wrap:wrap!important;padding:12px 18px!important;gap:0!important}
.bburger{display:flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;margin-right:-10px;padding:0 10px;background:none;border:0;cursor:pointer;color:inherit}
header.bnav .bburger{color:var(--ink)}
.bburger span{display:block;height:2px;width:100%;border-radius:2px;background:currentColor;transition:transform .25s ease,opacity .2s ease}
header.is-open .bburger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
header.is-open .bburger span:nth-child(2){opacity:0}
header.is-open .bburger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
header.bnav nav,header.nav nav{display:none!important;width:100%;flex-direction:column;gap:0!important;padding:8px 0 10px}
header.is-open nav{display:flex!important}
header.bnav nav a,header.nav nav a{font-size:17px!important;padding:13px 2px!important;border-top:1px solid rgba(127,120,110,.2)}
header.bnav nav a::after,header.nav nav a::after{display:none}
header.bnav nav a[aria-current="page"],header.nav nav a.is-active{color:var(--b-rose)!important}
}

.bfoot h2 a,.bfoot h2 a:visited{font-family:"Instrument Serif",Georgia,serif!important;font-style:italic!important;font-weight:400!important;letter-spacing:inherit!important;color:#e7a93b!important;text-decoration:none!important}
.bfoot h2 a:hover{color:#e37fa3!important}
.bfoot h2{font-family:"Instrument Serif",Georgia,serif!important;font-weight:400!important;letter-spacing:-.005em!important}

/* unified mobile type scale */
@media(max-width:640px){
body h1.cc-hero__title,body .rhero h1.ra-title,body h1.vd-title,body .hero h1{font-size:44px!important;line-height:1.04!important}
body h2.cc-sec__lead,body .journey__lead,body .vd-part-head h2,body .sec-head h2,body .about-body .lead{font-size:30px!important;line-height:1.12!important}
body .bfoot h2,body .contact h2{font-size:40px!important;line-height:1.04!important}
body h3.dec__h,body .jcard__h,body .gd-meta h3,body .wc-body h3,body .ra-finding h3,body .morecs__title,body .per__name{font-size:22px!important;line-height:1.15!important}
body .cc-hero__sub,body .cvh__sub,body .vd-lede,body .hero-p,body .gd-tagline,body .ra-section .ra-q{font-size:17px!important;line-height:1.55!important}
body .cc-body p,body .cc-note,body .dec__block p,body .dec__steps li,body .ra-section p,body .ra-list li,body .gd-desc,body .wc-body p,body .about-body p,body .jcard__body p,body .cc-ref li,body .per__card .t,body .sec-head p{font-size:16px!important;line-height:1.6!important}
body .ra-finding p,body .morecs__desc,body .scr__cap,body .detail__cap,body .rc p,body .art-cap{font-size:14.5px!important;line-height:1.5!important}
body .mp-kw{font-size:1.2em!important}
}
@media(max-width:640px){
body h3.dec__h,body .acc__h,body .ra-finding h3,body .cc-find__card .h{font-family:"Instrument Serif",Georgia,serif!important;font-weight:400!important;letter-spacing:0!important}
body .acc__h{font-size:20px!important;line-height:1.2!important}
body .rc h3,body .research h3,body article h3{font-size:22px!important;line-height:1.15!important}
}
@media(max-width:640px){body .cc-body p.acc__h,body .cc-body .acc__h{font-size:20px!important;line-height:1.2!important}}
@media(max-width:640px){.bfoot .bbottom{justify-content:flex-start!important;align-items:flex-start!important}.bfoot .bbottom span{text-align:left!important}.foot{justify-content:flex-start!important;align-items:flex-start!important}.foot .wordmark{display:none}.foot span,.foot .foot-copy{text-align:left!important}}
