:root{
  --m8m-bg:#0d0d0d;
  --m8m-bg2:#111111;
  --m8m-paper:#f2f0e9;
  --m8m-white:#ffffff;
  --m8m-ink:#111111;
  --m8m-muted:#8a8a82;
  --m8m-line:#2b2b2b;
  --m8m-light-line:#d8d7d1;
  --m8m-lime:#CBED24;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.m8m-proposal-page{
  margin:0;
  background:#0b0b0b;
  font-family:Arial,Helvetica,sans-serif;
  color:#111;
}
.m8m-shell{
  width:100%;
  max-width:1500px;
  margin:0 auto;
  background:#0d0d0d;
  overflow:hidden;
}
.m8m-print-letterhead,.m8m-print-footer{display:none}

/* HERO */
.m8m-hero{
  background:#0d0d0d;
  color:#fff;
  padding:28px 4vw 26px;
  min-height:420px;
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:18px;
  border-bottom:1px solid #222;
}
.m8m-topbar,.m8m-hero-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  font-size:10px;
}
.m8m-brand img,.m8m-brand-logo{
  display:block;
  width:auto;
  height:auto;
  max-width:185px;
  max-height:44px;
  object-fit:contain;
}
.m8m-proposal-code{
  font-size:9px;
  font-weight:700;
  letter-spacing:.06em;
}
.m8m-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(240px,.65fr);
  gap:6vw;
  align-items:center;
}
.m8m-kicker{
  font-size:9px;
  line-height:1.2;
  letter-spacing:.17em;
  font-weight:700;
  text-transform:uppercase;
  color:#6f6f69;
}
.m8m-hero .m8m-kicker,
.m8m-work .m8m-kicker,
.m8m-investment .m8m-kicker,
.m8m-final .m8m-kicker{
  color:var(--m8m-lime);
}
.m8m-hero h1{
  font-size:clamp(50px,5.2vw,82px);
  line-height:.94;
  letter-spacing:-.055em;
  font-weight:500;
  margin:10px 0 18px;
}
.m8m-hero p{
  font-size:clamp(15px,1.1vw,18px);
  line-height:1.45;
  max-width:640px;
  color:#e2e2e2;
  margin:0;
}
.m8m-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
}
.m8m-tags span{
  border:1px solid rgba(203,237,36,.75);
  border-radius:999px;
  padding:7px 12px;
  font-size:9px;
  color:var(--m8m-lime);
}
.m8m-client-mark{
  min-height:150px;
  display:grid;
  place-items:center;
  padding:10px;
  border:0!important;
  background:transparent!important;
}
.m8m-client-mark:before,.m8m-client-mark:after{
  display:none!important;
  content:none!important;
}
.m8m-client-mark img{
  display:block;
  max-width:min(84%,260px);
  max-height:105px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.m8m-client-mark>div{
  font-size:24px;
  font-weight:700;
  color:#fff;
  text-align:center;
}
.m8m-hero-foot{
  padding-top:10px;
  color:#f4f4f4;
}
.m8m-hero-foot span:last-child{text-align:right}

/* SECTION 01 + 02 like reference */
.m8m-section{
  padding:34px 4vw;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:16px;
  align-items:start;
}
.m8m-light{
  background:var(--m8m-paper);
  color:#111;
}
.m8m-dark{
  background:var(--m8m-paper);
  color:#111;
  border-left:0;
}
.m8m-light + .m8m-dark{
  border-top:1px solid var(--m8m-light-line);
}
.m8m-num{
  font-size:9px;
  color:#9a6f1d;
  padding-top:3px;
}
.m8m-section h2{
  font-size:clamp(26px,2.6vw,40px);
  line-height:1.06;
  letter-spacing:-.04em;
  font-weight:500;
  margin:8px 0 0;
  max-width:1100px;
}

.m8m-section.m8m-light{
    border-right:1px solid var(--m8m-light-line);
  }
  .m8m-section.m8m-dark{
    margin-left:-4px;
    border-top:0;
  }
}

/* COMMON BLOCKS */
.m8m-block{
  padding:34px 4vw 40px;
}
.m8m-section-head{
  display:grid;
  grid-template-columns:42px minmax(0,1.2fr) minmax(190px,.55fr);
  gap:16px;
  align-items:start;
  margin-bottom:24px;
}
.m8m-section-head>span{
  font-size:9px;
  color:#a27418;
  padding-top:3px;
}
.m8m-section-head h2,
.m8m-final h2{
  font-size:clamp(26px,2.6vw,38px);
  line-height:1.06;
  letter-spacing:-.04em;
  font-weight:500;
  margin:8px 0 0;
}
.m8m-section-intro{
  margin:25px 0 0;
  font-size:12px;
  line-height:1.5;
  color:#a8a8a0;
}

/* RELEVANT WORK - dark */
.m8m-work{
  background:#0d0d0d;
  color:#fff;
  border-top:1px solid #242424;
  border-bottom:1px solid #242424;
}
.m8m-work .m8m-section-head>span{color:#b79744}
.m8m-work .m8m-section-intro{color:#a6a6a6}
.m8m-work-grid,
.elementor-widget-shortcode .m8m-work-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
}
.m8m-work-card{
  min-width:0;
  background:#101010;
  border:1px solid rgba(203,237,36,.42);
  border-radius:7px;
  overflow:hidden;
  box-shadow:none;
  transition:transform .2s ease,border-color .2s ease;
}
.m8m-work-card:hover{
  transform:translateY(-3px);
  border-color:var(--m8m-lime);
}
.m8m-work-card-link{
  display:flex;
  flex-direction:column;
  height:100%;
  color:#fff;
  text-decoration:none;
}
.m8m-work-media{
  background:#151515;
  overflow:hidden;
}
.m8m-work-media img,
.m8m-work-placeholder{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}
.m8m-work-placeholder{
  display:grid;
  place-items:center;
  background:#151515;
  color:var(--m8m-lime);
  font-size:9px;
}
.m8m-card-copy{
  padding:12px 12px 0;
}
.m8m-card-copy h3{
  font-size:14px;
  line-height:1.15;
  margin:0 0 5px;
  color:#fff;
}
.m8m-project-industry{
  font-size:9px;
  color:#b5b5ae;
  margin-bottom:8px;
}
.m8m-project-chips{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-bottom:9px;
}
.m8m-project-chips span{
  font-size:8px;
  color:#d9f65d;
  border:1px solid rgba(203,237,36,.45);
  border-radius:999px;
  padding:4px 7px;
  background:transparent;
}
.m8m-project-cta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid #252525;
  padding:9px 0;
  font-size:9px;
  font-weight:700;
}
.m8m-project-cta span:last-child{
  font-size:15px;
  color:var(--m8m-lime);
}
.m8m-work-more{text-align:center;margin-top:18px}
.m8m-work-more a{
  display:inline-flex;
  gap:18px;
  align-items:center;
  text-decoration:none;
  color:#fff;
  border:1px solid rgba(203,237,36,.55);
  border-radius:999px;
  padding:9px 20px;
  font-size:10px;
}

/* case studies online only, dark */
.m8m-case-studies{
  background:#101010;
  color:#fff;
}
.m8m-metrics-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.m8m-metrics-grid article{
  min-height:125px;
  padding:16px;
  border:1px solid #2d2d2d;
  border-radius:8px;
  background:#151515;
}
.m8m-metrics-grid strong{
  display:block;
  font-size:24px;
  color:var(--m8m-lime);
  margin:10px 0;
}
.m8m-metrics-grid p{
  font-size:10px;
  line-height:1.5;
  color:#aaa;
  margin:0;
}

/* INVESTMENT - dark like reference */
.m8m-investment{
  background:#0d0d0d;
  color:#fff;
  border-top:1px solid #292929;
}
.m8m-investment .m8m-section-head>span{color:#b79744}
.m8m-investment .m8m-section-intro{color:#a6a6a6}
.m8m-investment-grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(245px,.6fr);
  gap:28px;
  align-items:start;
}
.m8m-quote-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  padding:14px 0;
  border-top:1px solid #343434;
}
.m8m-quote-row h3{font-size:12px;margin:0;color:#fff}
.m8m-quote-row p{font-size:9px;line-height:1.45;color:#8e8e88;margin:4px 0 0}
.m8m-quote-row>strong{font-size:12px;color:#fff}
.m8m-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid #343434;
}
.m8m-summary-item{
  padding:10px;
  border-right:1px solid #343434;
}
.m8m-summary-item:last-child{border-right:0}
.m8m-summary-item span{display:block;font-size:8px;color:#8b8b86;margin-bottom:4px}
.m8m-summary-item strong{font-size:11px;color:#fff}
.m8m-discount strong{color:var(--m8m-lime)}
.m8m-total{
  margin-top:8px;
  padding:13px 0;
  border-top:1px solid rgba(203,237,36,.5);
  border-bottom:1px solid rgba(203,237,36,.5);
  background:transparent;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--m8m-lime);
  font-size:11px;
  font-weight:700;
}
.m8m-total strong{
  font-size:23px;
  color:var(--m8m-lime);
}
.m8m-included{
  background:#101010;
  border:1px solid rgba(203,237,36,.33);
  border-radius:8px;
  padding:18px;
  color:#fff;
}
.m8m-included h3{
  font-size:14px;
  margin:0 0 13px;
  color:#fff;
}
.m8m-included ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:9px;
}
.m8m-included li{
  position:relative;
  padding-left:21px;
  font-size:9px;
  color:#e4e4e4;
}
.m8m-included li:before{
  content:"✓";
  position:absolute;
  left:0;
  top:-1px;
  width:13px;
  height:13px;
  border:1px solid var(--m8m-lime);
  color:var(--m8m-lime);
  border-radius:2px;
  display:grid;
  place-items:center;
  font-size:8px;
}

/* NEXT STEP */
.m8m-final{
  background:#0d0d0d;
  color:#fff;
  border-top:1px solid #2b2b2b;
  padding:24px 4vw 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:28px;
}
.m8m-final h2{
  max-width:760px;
}
.m8m-final p{
  font-size:10px;
  color:#aaa;
  margin:7px 0 0;
}
.m8m-actions{display:flex;gap:9px;flex-wrap:wrap}
.m8m-btn{
  appearance:none;
  border:0;
  border-radius:999px;
  padding:10px 16px;
  background:var(--m8m-lime);
  color:#111;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}
.m8m-btn-outline{
  background:transparent;
  color:#fff;
  border:1px solid #555;
}

.m8m-empty-state{
  padding:14px;
  background:#151515;
  border:1px solid #303030;
  color:#bbb;
  font-size:11px;
}

/* responsive */
@media(max-width:1100px){
  .m8m-work-grid,.elementor-widget-shortcode .m8m-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
  .m8m-hero-grid{grid-template-columns:1fr}
  .m8m-client-mark{display:none}
  .m8m-section-head{grid-template-columns:34px 1fr}
  .m8m-section-intro{grid-column:2;margin-top:0}
  .m8m-investment-grid{grid-template-columns:1fr}
  .m8m-final{align-items:flex-start;flex-direction:column}
}
@media(max-width:600px){
  .m8m-hero{min-height:auto;padding:20px}
  .m8m-brand img,.m8m-brand-logo{max-width:150px;max-height:36px}
  .m8m-hero h1{font-size:42px}
  .m8m-hero p{font-size:14px}
  .m8m-hero-foot{flex-direction:column;align-items:flex-start;font-size:8px}
  .m8m-hero-foot span:last-child{text-align:left}
  .m8m-section,.m8m-block,.m8m-final{padding-left:20px;padding-right:20px}
  .m8m-section{grid-template-columns:28px 1fr}
  .m8m-section h2,.m8m-section-head h2,.m8m-final h2{font-size:27px}
  .m8m-work-grid,.elementor-widget-shortcode .m8m-work-grid,.m8m-metrics-grid{grid-template-columns:1fr!important}
  .m8m-summary{grid-template-columns:1fr}
  .m8m-summary-item{border-right:0;border-bottom:1px solid #343434}
}

/* ADMIN repeater */
.m8m-repeater{display:grid;gap:8px;margin-top:10px}
.m8m-repeat-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.m8m-repeat-row input{width:100%}

/* PDF */
@media print{
  @page{size:A4 portrait;margin:20mm 12mm 16mm}
  html,body{
    background:#fff!important;
    color:#111!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  body.m8m-proposal-page{font-family:Arial,Helvetica,sans-serif!important}
  header,footer,.site-header,.site-footer,.elementor-location-header,.elementor-location-footer{display:none!important}
  .m8m-shell{width:100%!important;max-width:none!important;background:#fff!important;overflow:visible!important}

  .m8m-print-letterhead{
    display:flex!important;
    position:fixed;
    left:0;right:0;top:-16mm;
    height:12mm;
    align-items:center;
    justify-content:space-between;
    border-bottom:.4mm solid #CBED24;
    padding-bottom:2mm;
    background:#fff!important;
    z-index:999;
  }
  .m8m-print-brand-logo{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:42mm!important;
    max-height:8.5mm!important;
    object-fit:contain!important;
  }
  .m8m-print-meta{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    gap:.4mm!important;
    font-size:5.8pt!important;
    line-height:1.15!important;
    color:#555!important;
  }
  .m8m-print-meta strong{font-size:6.5pt!important;color:#111!important}
  .m8m-print-footer{
    display:flex!important;
    position:fixed;
    left:0;right:0;bottom:-11mm;
    height:7mm;
    align-items:center;
    justify-content:space-between;
    border-top:.2mm solid #ddd;
    color:#777;
    font-size:5.3pt!important;
    background:#fff!important;
  }

  .m8m-hero{
    display:block!important;
    min-height:0!important;
    height:auto!important;
    background:#fff!important;
    color:#111!important;
    padding:0 0 5mm!important;
    margin:0 0 3mm!important;
    border-bottom:.2mm solid #ddd!important;
  }
  .m8m-topbar,.m8m-client-mark{display:none!important}
  .m8m-hero-grid{display:block!important}
  .m8m-hero .m8m-kicker{font-size:5.8pt!important;color:#738500!important;margin:0 0 1.2mm!important}
  .m8m-hero h1{
    font-size:21pt!important;
    line-height:1!important;
    letter-spacing:-.02em!important;
    margin:0 0 2mm!important;
    color:#111!important;
    font-weight:600!important;
  }
  .m8m-hero p{font-size:7.4pt!important;line-height:1.35!important;color:#555!important}
  .m8m-tags{margin-top:2mm!important;gap:1mm!important}
  .m8m-tags span{
    font-size:5.2pt!important;
    padding:.7mm 1.5mm!important;
    color:#596800!important;
    border:.2mm solid #a8c313!important;
    background:#f6fadf!important;
  }
  .m8m-hero-foot{
    display:flex!important;
    margin-top:3mm!important;
    padding-top:2mm!important;
    border-top:.2mm solid #eee!important;
    color:#555!important;
    font-size:5.8pt!important;
  }

  /* only commercial proposal sections remain */
  .m8m-hide-pdf,
  .m8m-work,
  .m8m-case-studies,
  .m8m-final,
  .m8m-online-only,
  [class*="m8m-work"],
  [class*="m8m-case-studies"]{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }

  .m8m-section{
    display:grid!important;
    width:100%!important;
    min-height:0!important;
    grid-template-columns:7mm 1fr!important;
    gap:2.5mm!important;
    padding:3.2mm 0!important;
    margin:0!important;
    background:#fff!important;
    color:#111!important;
    border-bottom:.2mm solid #e3e3df!important;
    break-inside:avoid!important;
  }
  .m8m-num{font-size:5.8pt!important;color:#9a6e1a!important}
  .m8m-section .m8m-kicker{font-size:5.6pt!important;color:#738500!important;margin:0 0 1mm!important}
  .m8m-section h2{
    font-size:12.2pt!important;
    line-height:1.1!important;
    letter-spacing:-.015em!important;
    margin:0!important;
    color:#111!important;
    font-weight:600!important;
  }

  .m8m-investment{
    display:block!important;
    background:#fff!important;
    color:#111!important;
    padding:4mm 0!important;
    border:0!important;
  }
  .m8m-investment .m8m-section-head{
    display:grid!important;
    grid-template-columns:7mm minmax(0,1fr) 44mm!important;
    gap:2.5mm!important;
    margin-bottom:3mm!important;
  }
  .m8m-investment .m8m-section-head>span{font-size:5.8pt!important;color:#9a6e1a!important}
  .m8m-investment .m8m-kicker{font-size:5.6pt!important;color:#738500!important}
  .m8m-investment .m8m-section-head h2{
    font-size:12.5pt!important;
    line-height:1.1!important;
    color:#111!important;
    margin:0!important;
  }
  .m8m-investment .m8m-section-intro{
    font-size:5.8pt!important;
    line-height:1.35!important;
    color:#666!important;
    margin:.8mm 0 0!important;
  }
  .m8m-investment-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1.55fr) minmax(40mm,.65fr)!important;
    gap:4mm!important;
  }
  .m8m-quote-row{
    padding:1.9mm 0!important;
    border-top:.2mm solid #ddd!important;
  }
  .m8m-quote-row h3,.m8m-quote-row>strong{font-size:6.8pt!important;color:#111!important}
  .m8m-quote-row p{font-size:5pt!important;color:#666!important}
  .m8m-summary{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    border-top:.2mm solid #ddd!important;
  }
  .m8m-summary-item{padding:1.6mm!important;border-right:.2mm solid #ddd!important}
  .m8m-summary-item span{font-size:4.6pt!important;color:#777!important}
  .m8m-summary-item strong{font-size:6.2pt!important;color:#111!important}
  .m8m-total{
    padding:2.2mm!important;
    margin-top:2mm!important;
    background:#eff7c0!important;
    border:0!important;
    color:#111!important;
    font-size:6.2pt!important;
  }
  .m8m-total strong{font-size:11.5pt!important;color:#111!important}
  .m8m-included{
    background:#fafafa!important;
    color:#111!important;
    border:.2mm solid #ddd!important;
    border-radius:1.2mm!important;
    padding:2.6mm!important;
  }
  .m8m-included h3{font-size:7.5pt!important;color:#111!important;margin-bottom:1.8mm!important}
  .m8m-included ul{gap:1.1mm!important}
  .m8m-included li{font-size:5.2pt!important;color:#333!important;padding-left:3.5mm!important}
  .m8m-included li:before{
    width:2.4mm!important;height:2.4mm!important;
    font-size:4.2pt!important;
    border:.2mm solid #a8c313!important;
    color:#718600!important;
  }
}


/* v0.3.6 structural UI fixes */
.m8m-paired-band{
  display:grid;
  grid-template-columns:1fr 1fr;
  background:var(--m8m-paper);
  color:#111;
}
.m8m-paired-band .m8m-section{
  width:100%!important;
  min-height:180px;
  display:grid!important;
  margin:0!important;
  padding:34px 4vw!important;
  border:0!important;
  background:var(--m8m-paper)!important;
  color:#111!important;
}
.m8m-paired-band .m8m-section:first-child{
  border-right:1px solid var(--m8m-light-line)!important;
}
.m8m-paired-band .m8m-kicker{
  color:#6f6f69!important;
}
.m8m-paired-band h2{
  max-width:620px;
  font-size:clamp(28px,2.5vw,38px)!important;
  line-height:1.05!important;
}

/* improve relevant work section contrast/readability */
.m8m-work .m8m-section-head h2{
  color:#fff!important;
}
.m8m-work .m8m-kicker{
  color:#8c8c84!important;
}
.m8m-work .m8m-section-head{
  align-items:end;
}
.m8m-work-card{
  background:#0e0e0e!important;
}
.m8m-card-copy h3,
.m8m-project-cta{
  color:#fff!important;
}
.m8m-project-industry{
  color:#a5a59f!important;
}

/* admin UX for What's Included */
.m8m-repeater{
  display:grid;
  gap:8px;
  margin:10px 0 4px;
}
.m8m-repeat-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.m8m-repeat-row input{
  width:100%;
}

/* responsive paired band */
@media(max-width:820px){
  .m8m-paired-band{
    grid-template-columns:1fr;
  }
  .m8m-paired-band .m8m-section:first-child{
    border-right:0!important;
    border-bottom:1px solid var(--m8m-light-line)!important;
  }
}

/* PDF: hard remove online-only sections by ID */
@media print{
  #m8m-relevant-work,
  #m8m-case-studies,
  #m8m-next-step,
  .m8m-hide-pdf{
    display:none!important;
    visibility:hidden!important;
    position:absolute!important;
    left:-99999px!important;
    width:0!important;
    height:0!important;
    max-height:0!important;
    min-height:0!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }

  .m8m-paired-band{
    display:block!important;
    background:#fff!important;
  }
  .m8m-paired-band .m8m-section{
    display:grid!important;
    width:100%!important;
    min-height:0!important;
    padding:3.2mm 0!important;
    background:#fff!important;
    color:#111!important;
    border-bottom:.2mm solid #e3e3df!important;
  }
  .m8m-paired-band .m8m-section:first-child{
    border-right:0!important;
  }
}

/* v0.3.7 definitive print cleanup */
@media print{
  #m8m-relevant-work,
  #m8m-case-studies,
  #m8m-next-step,
  [data-print-hidden="1"]{
    display:none!important;
    visibility:hidden!important;
    position:absolute!important;
    left:-99999px!important;
    top:auto!important;
    width:0!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }
  .m8m-investment{margin-top:1.5mm!important;padding-top:3mm!important;}
}


/* =========================================================
   v0.3.8 - WEB LAYOUT POLISH
   ========================================================= */

@media screen {

  body.m8m-proposal-page{
    background:#0b0b0b;
  }

  .m8m-shell{
    max-width:1440px;
    margin:0 auto;
    background:#0d0d0d;
  }

  /* HERO */
  .m8m-hero{
    padding:28px clamp(28px,5vw,74px) 30px !important;
    min-height:410px !important;
  }

  .m8m-hero-grid{
    max-width:1280px;
    width:100%;
    margin:0 auto;
    grid-template-columns:minmax(0,1.12fr) minmax(240px,.58fr) !important;
    gap:clamp(38px,6vw,90px) !important;
  }

  .m8m-topbar,
  .m8m-hero-foot{
    max-width:1280px;
    width:100%;
    margin-left:auto;
    margin-right:auto;
  }

  .m8m-hero h1{
    font-size:clamp(46px,5vw,74px) !important;
    margin-top:12px !important;
    margin-bottom:14px !important;
  }

  .m8m-hero p{
    max-width:620px;
  }

  .m8m-client-mark{
    min-height:145px !important;
    justify-self:end;
    width:100%;
    max-width:320px;
  }

  /* CURRENT SITUATION + APPROACH */
  .m8m-paired-band{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    width:100%;
    background:var(--m8m-paper);
  }

  .m8m-paired-band .m8m-section{
    min-height:190px !important;
    padding:38px clamp(28px,4.8vw,70px) !important;
  }

  .m8m-paired-band .m8m-section:first-child{
    border-right:1px solid var(--m8m-light-line) !important;
  }

  .m8m-paired-band h2{
    max-width:560px !important;
    font-size:clamp(26px,2.5vw,36px) !important;
    line-height:1.07 !important;
  }

  /* COMMON FULL WIDTH SECTIONS */
  .m8m-block{
    padding:48px clamp(28px,5vw,74px) 54px !important;
  }

  .m8m-section-head{
    max-width:1280px;
    margin-left:auto !important;
    margin-right:auto !important;
    margin-bottom:30px !important;
    grid-template-columns:42px minmax(0,1.3fr) minmax(210px,.55fr) !important;
  }

  .m8m-section-head h2{
    max-width:760px;
    font-size:clamp(28px,2.7vw,39px) !important;
  }

  .m8m-section-intro{
    max-width:300px;
    justify-self:end;
  }

  /* RELEVANT WORK */
  .m8m-work{
    padding-top:56px !important;
    padding-bottom:60px !important;
  }

  .m8m-work-grid,
  .elementor-widget-shortcode .m8m-work-grid{
    max-width:1280px !important;
    margin:0 auto !important;
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:18px !important;
    align-items:stretch !important;
  }

  .m8m-work-card{
    width:100% !important;
    min-width:0 !important;
    height:100%;
    border-radius:9px !important;
  }

  .m8m-work-media img,
  .m8m-work-placeholder{
    aspect-ratio:16/9 !important;
  }

  .m8m-card-copy{
    padding:14px 14px 0 !important;
  }

  .m8m-card-copy h3{
    font-size:14px !important;
    margin-bottom:5px !important;
  }

  .m8m-work-more{
    max-width:1280px;
    margin:22px auto 0 !important;
  }

  /* INVESTMENT */
  .m8m-investment{
    padding-top:50px !important;
    padding-bottom:52px !important;
  }

  .m8m-investment-grid{
    max-width:1280px;
    margin:0 auto !important;
    grid-template-columns:minmax(0,1.7fr) minmax(260px,.62fr) !important;
    gap:34px !important;
  }

  .m8m-quote-row{
    padding:16px 0 !important;
  }

  .m8m-summary{
    margin-top:2px;
  }

  .m8m-total{
    padding:15px 0 !important;
    margin-top:10px !important;
  }

  .m8m-included{
    padding:20px !important;
    align-self:start;
  }

  /* NEXT STEP */
  .m8m-final{
    padding:30px clamp(28px,5vw,74px) 34px !important;
  }

  .m8m-final > div:first-child,
  .m8m-final .m8m-actions{
    position:relative;
    z-index:1;
  }

  .m8m-final{
    max-width:1440px;
    margin:0 auto;
  }

  .m8m-final h2{
    font-size:clamp(26px,2.5vw,36px) !important;
    margin-top:7px !important;
  }

  .m8m-actions{
    gap:10px !important;
  }

  .m8m-btn{
    padding:11px 18px !important;
  }

  /* TABLET */
  @media(max-width:1100px){
    .m8m-work-grid,
    .elementor-widget-shortcode .m8m-work-grid{
      grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }

    .m8m-section-head{
      grid-template-columns:36px minmax(0,1fr) !important;
    }

    .m8m-section-intro{
      grid-column:2;
      justify-self:start;
      margin-top:0 !important;
    }
  }

  /* MOBILE */
  @media(max-width:820px){
    .m8m-hero{
      min-height:auto !important;
      padding:22px !important;
    }

    .m8m-hero-grid{
      display:block !important;
    }

    .m8m-client-mark{
      display:none !important;
    }

    .m8m-paired-band{
      grid-template-columns:1fr !important;
    }

    .m8m-paired-band .m8m-section{
      min-height:auto !important;
      padding:34px 22px !important;
    }

    .m8m-paired-band .m8m-section:first-child{
      border-right:0 !important;
      border-bottom:1px solid var(--m8m-light-line) !important;
    }

    .m8m-block{
      padding:40px 22px 44px !important;
    }

    .m8m-work-grid,
    .elementor-widget-shortcode .m8m-work-grid{
      grid-template-columns:1fr !important;
      gap:14px !important;
    }

    .m8m-investment-grid{
      grid-template-columns:1fr !important;
      gap:22px !important;
    }

    .m8m-final{
      padding:28px 22px 32px !important;
      flex-direction:column !important;
      align-items:flex-start !important;
      gap:20px !important;
    }
  }
}


/* =========================================================
   v0.3.9 - PROBLEM VS OPPORTUNITY + CURRENCY
   ========================================================= */

@media screen {
  .m8m-comparison{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    padding:42px clamp(28px,5vw,74px);
    background:#0d0d0d;
    border-top:1px solid #242424;
    border-bottom:1px solid #242424;
  }

  .m8m-compare-card{
    position:relative;
    min-height:245px;
    padding:28px 30px 24px;
    border:1px solid #2c2c2c;
    border-radius:12px;
    overflow:hidden;
    background:#151515;
    color:#fff;
  }

  .m8m-compare-card:before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:3px;
  }

  .m8m-problem-card:before{background:#7f7f78}

  .m8m-opportunity-card{
    border-color:rgba(203,237,36,.48);
    background:linear-gradient(135deg,#151515 0%,#12150a 100%);
  }
  .m8m-opportunity-card:before{background:var(--m8m-lime)}

  .m8m-compare-top{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:24px;
  }

  .m8m-compare-top .m8m-num{
    padding:0;
    color:#9b792e;
  }

  .m8m-compare-top .m8m-kicker{
    color:#a3a39b;
  }

  .m8m-opportunity-card .m8m-num,
  .m8m-opportunity-card .m8m-kicker{
    color:var(--m8m-lime);
  }

  .m8m-compare-card h2{
    margin:0;
    max-width:600px;
    font-size:clamp(28px,2.5vw,38px);
    line-height:1.06;
    letter-spacing:-.04em;
    font-weight:500;
    color:#fff;
  }

  .m8m-compare-caption{
    position:absolute;
    left:30px;
    bottom:22px;
    font-size:9px;
    letter-spacing:.05em;
    color:#777;
  }

  .m8m-opportunity-card .m8m-compare-caption{
    color:#89954a;
  }

  /* What's Included is fully removed, use full width for commercial table */
  .m8m-investment-grid{
    grid-template-columns:1fr !important;
    max-width:1040px !important;
  }

  .m8m-investment .m8m-section-head{
    max-width:1040px !important;
  }

  @media(max-width:820px){
    .m8m-comparison{
      grid-template-columns:1fr;
      gap:12px;
      padding:30px 22px 34px;
    }

    .m8m-compare-card{
      min-height:220px;
      padding:24px 22px 22px;
    }

    .m8m-compare-card h2{
      font-size:28px;
    }

    .m8m-compare-caption{
      left:22px;
      bottom:18px;
    }
  }
}

@media print {
  .m8m-comparison{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:3mm!important;
    padding:0!important;
    margin:0 0 4mm!important;
    background:#fff!important;
    border:0!important;
  }

  .m8m-compare-card{
    min-height:32mm!important;
    padding:3mm!important;
    border:.2mm solid #ddd!important;
    border-radius:1mm!important;
    background:#fff!important;
    color:#111!important;
    break-inside:avoid!important;
  }

  .m8m-opportunity-card{
    border-color:#b8ca5b!important;
    background:#fbfce9!important;
  }

  .m8m-compare-card:before{display:none!important}

  .m8m-compare-top{
    gap:2mm!important;
    margin-bottom:2mm!important;
  }

  .m8m-compare-top .m8m-num,
  .m8m-compare-top .m8m-kicker{
    font-size:5.4pt!important;
  }

  .m8m-compare-card h2{
    font-size:10.5pt!important;
    line-height:1.12!important;
    letter-spacing:-.01em!important;
    color:#111!important;
  }

  .m8m-compare-caption{
    position:static!important;
    margin-top:2.5mm!important;
    font-size:5pt!important;
    color:#777!important;
  }

  .m8m-investment-grid{
    grid-template-columns:1fr!important;
  }

  .m8m-included{
    display:none!important;
  }
}


/* =========================================================
   v0.4.0 - PDF ONLY REWORK + CONTACT PERSON
   Online design remains unchanged.
   ========================================================= */

@media screen {
  .m8m-contact-person{
    display:block;
    margin-top:4px;
    font-size:9px;
    line-height:1.3;
    color:#a4a49e;
    font-weight:400;
  }
  .m8m-print-contact{display:none}
}

@media print {
  @page{
    size:A4 portrait;
    margin:10mm 12mm 9mm;
  }

  html,body{
    margin:0!important;
    padding:0!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    background:#fff!important;
    overflow:visible!important;
  }

  body.m8m-proposal-page{
    background:#fff!important;
  }

  .m8m-shell{
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    height:auto!important;
    display:block!important;
    overflow:visible!important;
    background:#fff!important;
    page-break-before:avoid!important;
    page-break-after:avoid!important;
    break-before:avoid-page!important;
    break-after:avoid-page!important;
  }

  /* PDF contains only header/client summary + quotation */
  #m8m-comparison,
  .m8m-comparison,
  .m8m-web-only,
  #m8m-relevant-work,
  #m8m-case-studies,
  #m8m-next-step,
  .m8m-work,
  .m8m-case-studies,
  .m8m-final,
  .m8m-hide-pdf{
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    height:0!important;
    max-height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }

  /* Letterhead is in normal document flow - avoids blank second page */
  .m8m-print-letterhead{
    display:flex!important;
    position:static!important;
    width:100%!important;
    height:15mm!important;
    margin:0 0 4mm!important;
    padding:0 0 2.5mm!important;
    align-items:center!important;
    justify-content:space-between!important;
    border-bottom:.45mm solid #CBED24!important;
    background:#fff!important;
    break-inside:avoid!important;
  }

  .m8m-print-brand{
    display:flex!important;
    align-items:center!important;
  }

  .m8m-print-brand-logo{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:58mm!important;
    max-height:12mm!important;
    object-fit:contain!important;
  }

  .m8m-print-meta{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    gap:.35mm!important;
    font-size:5.5pt!important;
    line-height:1.15!important;
    color:#555!important;
  }

  .m8m-print-meta strong{
    font-size:6.3pt!important;
    color:#111!important;
  }

  /* static footer instead of fixed footer - prevents spill page */
  .m8m-print-footer{
    display:flex!important;
    position:static!important;
    width:100%!important;
    height:auto!important;
    margin:6mm 0 0!important;
    padding:2.2mm 0 0!important;
    border-top:.25mm solid #CBED24!important;
    justify-content:space-between!important;
    align-items:center!important;
    color:#777!important;
    font-size:5pt!important;
    background:#fff!important;
    break-inside:avoid!important;
  }

  /* Compact client/proposal masthead */
  .m8m-hero{
    display:block!important;
    min-height:0!important;
    height:auto!important;
    padding:0 0 4mm!important;
    margin:0 0 3mm!important;
    background:#fff!important;
    color:#111!important;
    border-bottom:.2mm solid #ddd!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }

  .m8m-topbar,
  .m8m-client-mark{
    display:none!important;
  }

  .m8m-hero-grid{
    display:block!important;
  }

  .m8m-hero .m8m-kicker{
    font-size:5.4pt!important;
    color:#738500!important;
    margin:0 0 1mm!important;
  }

  .m8m-hero h1{
    font-size:19pt!important;
    line-height:1!important;
    letter-spacing:-.02em!important;
    font-weight:600!important;
    color:#111!important;
    margin:0 0 1mm!important;
  }

  .m8m-print-contact{
    display:block!important;
    font-size:6pt!important;
    color:#555!important;
    margin:0 0 1.2mm!important;
  }

  .m8m-hero p{
    font-size:6.7pt!important;
    line-height:1.28!important;
    color:#555!important;
    margin:0!important;
    max-width:160mm!important;
  }

  .m8m-tags{
    margin:1.8mm 0 0!important;
    gap:1mm!important;
  }

  .m8m-tags span{
    font-size:4.8pt!important;
    padding:.55mm 1.25mm!important;
    color:#596800!important;
    border:.2mm solid #a8c313!important;
    background:#f6fadf!important;
  }

  .m8m-hero-foot{
    display:flex!important;
    margin:2.3mm 0 0!important;
    padding:1.7mm 0 0!important;
    border-top:.2mm solid #eee!important;
    color:#555!important;
    font-size:5.2pt!important;
  }

  .m8m-contact-person{
    display:block!important;
    margin-top:.5mm!important;
    font-size:4.8pt!important;
    color:#666!important;
  }

  /* Commercial section */
  .m8m-investment{
    display:block!important;
    width:100%!important;
    padding:3mm 0 0!important;
    margin:0!important;
    background:#fff!important;
    color:#111!important;
    border:0!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }

  .m8m-investment .m8m-section-head{
    display:grid!important;
    grid-template-columns:6mm minmax(0,1fr) 42mm!important;
    gap:2mm!important;
    margin:0 0 2.2mm!important;
  }

  .m8m-investment .m8m-section-head>span{
    font-size:5.2pt!important;
    color:#9a6e1a!important;
  }

  .m8m-investment .m8m-kicker{
    font-size:5.2pt!important;
    color:#738500!important;
  }

  .m8m-investment .m8m-section-head h2{
    font-size:11.3pt!important;
    line-height:1.05!important;
    color:#111!important;
    margin:.6mm 0 0!important;
  }

  .m8m-investment .m8m-section-intro{
    font-size:5.1pt!important;
    line-height:1.25!important;
    color:#666!important;
    margin:.5mm 0 0!important;
  }

  .m8m-investment-grid{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }

  .m8m-quote-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:3mm!important;
    padding:1.5mm 0!important;
    border-top:.2mm solid #ddd!important;
  }

  .m8m-quote-row h3,
  .m8m-quote-row>strong{
    font-size:6.2pt!important;
    color:#111!important;
  }

  .m8m-quote-row p{
    font-size:4.5pt!important;
    line-height:1.25!important;
    color:#666!important;
    margin:.35mm 0 0!important;
  }

  .m8m-summary{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    margin:0!important;
    border-top:.2mm solid #ddd!important;
  }

  .m8m-summary-item{
    padding:1.2mm!important;
    border-right:.2mm solid #ddd!important;
  }

  .m8m-summary-item:last-child{
    border-right:0!important;
  }

  .m8m-summary-item span{
    font-size:4.1pt!important;
    color:#777!important;
  }

  .m8m-summary-item strong{
    font-size:5.7pt!important;
    color:#111!important;
  }

  .m8m-total{
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    margin:1.5mm 0 0!important;
    padding:1.8mm 2mm!important;
    background:#eff7c0!important;
    border:0!important;
    color:#111!important;
    font-size:5.8pt!important;
  }

  .m8m-total strong{
    font-size:10.6pt!important;
    color:#111!important;
  }

  /* no What's Included in this version */
  .m8m-included{
    display:none!important;
  }

  /* prevent generated pseudo elements from causing spill */
  .m8m-shell:after,
  body:after{
    display:none!important;
    content:none!important;
  }
}


/* =========================================================
   v0.4.1 - Problem/Opportunity typography + list controls
   ========================================================= */

.m8m-compare-content{
  font-size:var(--m8m-compare-size,30px);
  line-height:1.28;
  letter-spacing:-.025em;
  font-weight:var(--m8m-compare-weight,500);
  color:#fff;
  max-width:100%;
}

.m8m-compare-text{
  white-space:normal;
}

.m8m-compare-list{
  margin:0;
  padding-left:1.25em;
  display:grid;
  gap:.48em;
}

.m8m-compare-list li{
  padding-left:.18em;
}

.m8m-compare-list-bullets li::marker{
  color:#8e8e87;
}

.m8m-opportunity-card .m8m-compare-list li::marker{
  color:var(--m8m-lime);
}

.m8m-compare-list-numbers{
  padding-left:1.45em;
}

.m8m-compare-list-numbers li::marker{
  color:#9b792e;
  font-size:.72em;
  font-weight:700;
}

.m8m-opportunity-card .m8m-compare-list-numbers li::marker{
  color:var(--m8m-lime);
}

@media(max-width:820px){
  .m8m-compare-content{
    font-size:min(var(--m8m-compare-size,30px),30px);
  }
}

@media print{
  .m8m-compare-content{
    font-size:9.5pt!important;
    line-height:1.25!important;
    color:#111!important;
  }

  .m8m-compare-list{
    gap:1mm!important;
  }
}
