/* Compagram subpages — shared with the approved homepage visual language. */
.cg-subpage{--cg-ink:#222b46;--cg-copy:#55617a;--cg-purple:#7142b3;--cg-blue:#1645ab;--cg-line:#e1e5f0;--cg-soft:#f4f5fb;--cg-gradient:linear-gradient(180deg,#0338a3 0%,#8328c8 100%);--cg-display:'Century Gothic',Inter,system-ui,sans-serif;color:var(--cg-ink)}
body.cg-subpage{background:#fafbfe;margin:0;font-family:Inter,system-ui,sans-serif}
.cg-subpage *, .cg-subpage *::before,.cg-subpage *::after{box-sizing:border-box}
.cg-subpage main{min-width:0}
.cg-subpage :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #9b77e2;outline-offset:4px}
.cg-subpage :is(section,[id]){scroll-margin-top:124px}
.cg-subpage img{max-width:100%}
.cg-subpage .cg-subhero{isolation:isolate;position:relative;overflow:hidden;background:var(--cg-gradient);color:#fff;padding:42px 0 84px;border:0}
.cg-subpage .cg-subhero::before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse at 82% 25%,#c4aaff24,transparent 44%),radial-gradient(ellipse at 15% 80%,#61c8ff12,transparent 52%);pointer-events:none}
.cg-subpage .cg-subhero::after{content:"";position:absolute;bottom:-1px;left:0;width:100%;height:45px;pointer-events:none;background:#fafbfe;clip-path:polygon(0 80%,12% 91%,27% 98%,42% 88%,57% 65%,74% 42%,87% 30%,100% 45%,100% 100%,0 100%)}
.cg-subpage .cg-subhero-inner{width:min(1220px,calc(100% - 64px));margin:0 auto;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:center;gap:58px;min-height:370px;position:relative;z-index:1}
.cg-subpage .cg-subhero-copy{min-width:0;padding:16px 0}
.cg-subpage .cg-eyebrow{display:flex;align-items:center;gap:12px;font-size:11px;font-weight:600;letter-spacing:.14em;line-height:1.6;text-transform:uppercase;margin:0 0 20px;color:inherit;opacity:.86}
.cg-subpage .cg-eyebrow::before{content:"";width:29px;height:1px;background:currentColor;flex:0 0 auto}
.cg-subpage .cg-subhero h1{font-family:var(--cg-display)!important;font-size:clamp(34px,3.5vw,52px)!important;font-weight:500!important;line-height:1.17!important;letter-spacing:-.045em!important;color:#fff!important;margin:0 0 23px;text-wrap:balance;max-width:760px}
.cg-subpage .cg-subhero-copy>p:not(.cg-eyebrow){font-size:16px;line-height:1.85;color:#e0e5fb!important;max-width:610px;margin:0 0 22px}
.cg-subpage .cg-subhero-art{position:relative;min-width:0;display:flex;align-items:center;justify-content:center}
.cg-subpage .cg-subhero-art>img{display:block;width:min(100%,490px);height:auto;max-height:450px;object-fit:contain;filter:drop-shadow(0 20px 38px #2413671f)}
.cg-subpage .cg-subhero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:30px}
.cg-subpage :is(.cg-btn-primary,.cg-btn-ghost){display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;border-radius:30px;padding:12px 24px;text-decoration:none!important;font:600 13px/1.4 Inter,system-ui,sans-serif;transition:background .18s,transform .18s,border-color .18s;cursor:pointer}
.cg-subpage .cg-btn-primary{background:#fff;color:#3e2b7b!important;border:1px solid #fff}
.cg-subpage .cg-btn-primary:hover{background:#eee9ff;transform:translateY(-2px)}
.cg-subpage .cg-btn-ghost{background:#ffffff0d;border:1px solid #ffffff57;color:#fff!important}
.cg-subpage .cg-btn-ghost:hover{background:#ffffff1a;border-color:#ffffffaa;transform:translateY(-2px)}
.cg-subpage .cg-subhero :is(.breadcrumb,.breadcrumbs,.cg-breadcrumb){display:flex;gap:9px;flex-wrap:wrap;color:#e0e5fb;font-size:12px;line-height:1.7;margin:0 0 25px;background:none;padding:0}
.cg-subpage .cg-subhero :is(.breadcrumb,.breadcrumbs,.cg-breadcrumb) a{color:#fff;text-decoration:none}
.cg-subpage .cg-subhero :is(.breadcrumb,.breadcrumbs,.cg-breadcrumb) a:hover{text-decoration:underline}
.cg-subpage .cg-section{padding:72px 0}
.cg-subpage .cg-wrap{width:min(1220px,calc(100% - 64px));margin-inline:auto}
.cg-subpage .cg-section-heading{font:500 clamp(27px,2.8vw,40px)/1.24 var(--cg-display);letter-spacing:-.035em;color:var(--cg-ink);margin:0 0 18px}
.cg-subpage .cg-section-copy{font-size:16px;line-height:1.85;color:var(--cg-copy);max-width:680px}
/* Existing public secondary pages receive the same quiet surfaces and hero rhythm. */
.cg-subpage .page-header{position:relative;background:var(--cg-gradient)!important;padding:66px 0 60px!important;border:0;overflow:hidden}
.cg-subpage .page-header::before{opacity:.16!important}
.cg-subpage .page-header h1{font-family:var(--cg-display)!important;font-weight:500!important;font-size:clamp(31px,3.4vw,48px)!important;line-height:1.22!important;letter-spacing:-.035em!important;color:#fff!important}
.cg-subpage .page-header :is(p,.sub p){color:#e0e5fb!important;font-size:15px!important;line-height:1.8!important}
.cg-subpage .page-header :is(a,.breadcrumb){color:#fff}
.cg-subpage :is(.ref-hero,.refs-hero,.region-hero,.regions-hero,.contact-hero,.legal-hero){background:var(--cg-gradient)!important;color:#fff}
.cg-subpage :is(.ref-hero,.refs-hero,.region-hero,.regions-hero,.contact-hero,.legal-hero) h1{font-family:var(--cg-display)!important;font-weight:500!important;letter-spacing:-.035em!important;line-height:1.2!important}
.cg-subpage :is(.contact-info-card,.contact-form-wrap,.sidebar-widget,.auth-card,.cart-summary,.order-form){border-color:var(--cg-line);border-radius:20px;box-shadow:0 12px 38px #24366306}
.cg-subpage :is(.cta-section,.contact-cta){background:var(--cg-gradient);color:#fff}
.cg-subpage .cta-section h2{color:#fff;font-family:var(--cg-display);font-weight:500;letter-spacing:-.03em}
.cg-subpage .page-header-bg{background:var(--cg-gradient)!important}
.cg-subpage .page-header-img{background-image:none!important}
.cg-subpage .page-header-glow{opacity:.35}
.cg-subpage .page-header-actions :is(.btn-primary,.btn-secondary){border-radius:30px;min-height:46px;font-weight:600;font-size:13px}
.cg-subpage .page-header-actions .btn-primary{background:#fff;color:#41297b;border-color:#fff}
.cg-subpage .page-header-actions .btn-secondary{background:#ffffff0d;color:#fff;border-color:#ffffff55}
.cg-subpage .page-header-badges span{border-color:#ffffff38;background:#ffffff0d;color:#e6e8ff}
.cg-subpage .ref-list-section .filter-tag.active{background:#6940aa;border-color:#6940aa}
.cg-subpage .cg-portfolio .cg-project-card{border-radius:22px;border-color:#e1e5f0}
.cg-subpage .case-head{background:var(--cg-gradient);padding:64px 0 54px}
.cg-subpage .case-head h1{font-family:var(--cg-display);font-weight:500;letter-spacing:-.035em}
.cg-subpage .case-type{border-color:#ffffff45;background:#ffffff0c;border-radius:22px;padding:7px 12px}
.cg-subpage .case-body{background:#fafbfe;padding-block:60px}
.cg-subpage .case-main h2{font-family:var(--cg-display);font-weight:500;letter-spacing:-.03em}
.cg-subpage .case-sidebar{border-radius:22px;background:linear-gradient(115deg,#f1f2fc,#edf6fd);border:1px solid #dfe2f1;padding:28px}
.cg-subpage .case-showcase{border-radius:22px;border-color:#e0e4ef;box-shadow:0 18px 45px #263a5008}
.cg-subpage .case-out-link{border-radius:28px;background:#5e3d9f;border-color:#5e3d9f}
.cg-subpage .case-out-link.case-site-link{background:#fff;color:#5e3d9f!important;border-color:#d6c9ec}
.cg-subpage .contact-wrap{gap:52px;align-items:start}
.cg-subpage .contact-info{background:linear-gradient(125deg,#f1f2fc,#eef6fc);padding:32px;border:1px solid #e1e4f2;border-radius:24px}
.cg-subpage .contact-form{background:#fff;border:1px solid #e1e5f0;padding:32px;border-radius:24px;box-shadow:0 18px 48px #28336607}
.cg-subpage .contact-form :is(input,textarea,select){border:1px solid #dce0ed;border-radius:12px;background:#fcfcff;font-size:15px;min-height:50px;box-shadow:none}
.cg-subpage .contact-form textarea{min-height:160px;line-height:1.7}
.cg-subpage .contact-form button{background:#633dae;border-radius:30px;min-height:48px}
.cg-subpage .hb-index .hb-index-hero,.cg-subpage .hb-place .hp-hero{background:var(--cg-gradient)!important;color:#fff}
.cg-subpage .hb-index .hb-index-hero h1,.cg-subpage .hb-place .hp-hero h1{font-family:var(--cg-display);font-weight:500;letter-spacing:-.035em;font-size:clamp(33px,4vw,54px);line-height:1.2;color:#fff}
.cg-subpage .hb-index .hb-index-hero p,.cg-subpage .hb-place .hp-hero .hp-lead{color:#e0e5fb;font-size:16px;line-height:1.85}
.cg-subpage .hb-place .hp-project{border-radius:24px;background:#ffffff0c;border-color:#ffffff33}
.cg-subpage .hb-place .hp-project :is(h2,li){color:#fff}
.cg-subpage .hb-place .hp-project :is(p,.hp-project-label){color:#e0e5fb}
.cg-subpage .hb-place :is(.hp-card,.hp-checklist,.hp-scope-card,.hp-districts a),.cg-subpage .hb-index :is(.hb-city-card a,.hb-featured-card,.hb-service-link){border-radius:18px;border-color:#dfe3ef;background:#fff}
.cg-subpage .hb-place .hp-section-tint,.cg-subpage .hb-index .hb-directory{background:linear-gradient(115deg,#f1f2fc,#edf6fd)}
.cg-subpage .hb-place :is(.hp-heading h2,.hp-copy h2),.cg-subpage .hb-index :is(.hb-intro h2,.hb-directory-head h2,.hb-faq h2){font-family:var(--cg-display);font-weight:500;letter-spacing:-.03em}
.cg-subpage .hb-place .hp-hero .hp-button,.cg-subpage .hb-index .hb-hero-primary{background:#fff;color:#493080;border-color:#fff;border-radius:30px;font-weight:600}
.cg-subpage .hb-place .hp-hero .hp-button-secondary,.cg-subpage .hb-index .hb-hero-secondary{background:#ffffff0c;color:#fff;border-color:#ffffff50;border-radius:30px}
.cg-subpage .hb-place .hp-final,.cg-subpage .hb-index .hb-trust-band{background:var(--cg-gradient);color:#fff}
.cg-subpage .hb-place .hp-final .hp-button{background:#fff;color:#493080;border-color:#fff;border-radius:30px}
.cg-subpage .hb-index .hb-proof{border-radius:20px;border-color:#e3dcef;box-shadow:0 15px 40px #30274d0d}
.cg-subpage .hb-place .hp-kicker,.cg-subpage .hb-index .hb-kicker{color:#7142b3}
.cg-subpage .hb-place :is(.hp-hero,.hp-final) .hp-kicker{color:#e0e5fb}
@media(min-width:1050px){
 .cg-subpage .page-header:not(.ref-list-header)>.container{padding-right:390px;min-height:230px}
 .cg-subpage .page-header:not(.ref-list-header)::after{content:"";position:absolute;inset:12px max(20px,calc((100vw - 1220px)/2)) 0 auto;width:350px;pointer-events:none;background:url('/uploads/references/compagram-remote-collaboration-20260927.webp') center/contain no-repeat}
}
@media(max-width:800px){.cg-subpage .contact-wrap{gap:25px}.cg-subpage .contact-info,.cg-subpage .contact-form{padding:23px}.cg-subpage .case-body{padding-block:38px}.cg-subpage .case-head{padding:44px 0 38px}.cg-subpage .case-sidebar{padding:23px}.cg-subpage .hb-index .hb-index-hero,.cg-subpage .hb-place .hp-hero{padding-top:42px;padding-bottom:54px}.cg-subpage .hb-place .hp-hero .hp-lead,.cg-subpage .hb-index .hb-index-hero p{font-size:15px}}
@media(min-width:1500px){.cg-subpage .cg-subhero-inner{min-height:405px}}
@media(max-width:1000px){.cg-subpage .cg-subhero-inner{gap:30px;min-height:330px}.cg-subpage .cg-subhero-art>img{max-height:370px}}
@media(max-width:800px){
 .cg-subpage :is(section,[id]){scroll-margin-top:86px}
 .cg-subpage .cg-subhero{padding:42px 0 58px}
 .cg-subpage .cg-subhero-inner{width:calc(100% - 40px);grid-template-columns:1fr;gap:10px;min-height:0}
 .cg-subpage .cg-subhero-copy{padding:16px 0 0}
 .cg-subpage .cg-subhero h1{font-size:clamp(31px,6vw,40px)!important;max-width:650px;line-height:1.2!important}
 .cg-subpage .cg-subhero-copy>p:not(.cg-eyebrow){font-size:15px;line-height:1.8}
 .cg-subpage .cg-subhero-art>img{width:min(78%,330px);max-height:320px}
 .cg-subpage .cg-subhero-actions{margin-top:23px}
 .cg-subpage .cg-subhero::after{height:25px}
 .cg-subpage .cg-wrap{width:calc(100% - 40px)}
 .cg-subpage .cg-section{padding:48px 0}
 .cg-subpage .page-header{padding:38px 0 42px!important}
}
@media(max-width:420px){.cg-subpage .cg-subhero-inner,.cg-subpage .cg-wrap{width:calc(100% - 32px)}.cg-subpage :is(.cg-btn-primary,.cg-btn-ghost){padding:12px 18px;font-size:12px}.cg-subpage .cg-subhero-actions{gap:9px}}
@media(prefers-reduced-motion:reduce){.cg-subpage *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.cg-subpage .hb-place .hp-final h2{color:#fff}.cg-subpage .hb-place .hp-final p{color:#e0e5fb}
