/* Compact homepage scale, standards and OEM field. These panels replace the
   older network/sustainability/resource panels without touching Index.aspx. */
#main-content > section.network,
#main-content > #sustainability-evidence,
#main-content > section.resources { display: none !important; }

.benz-proof,
.benz-programmes {
  --proof-navy: #082d43;
  --proof-blue: #087eb8;
  --proof-line: #d4e0e7;
  position: relative;
  z-index: 12;
  overflow: clip;
  background: #fff;
  color: var(--proof-navy);
  font-family: "Manrope", Arial, sans-serif;
  isolation: isolate;
  box-sizing: border-box;
}
.benz-proof *, .benz-programmes * { box-sizing: border-box; }
.bzp-shell, .bzg-shell { width: min(1480px, calc(100% - 96px)); margin: 0 auto; }

.benz-proof { padding: clamp(38px, 4.5vh, 54px) 0 clamp(42px, 5vh, 62px); }
.benz-proof::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .46;
  background-image: linear-gradient(rgba(8,45,67,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(8,45,67,.035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}
.bzp-heading, .bzg-heading { display: grid; grid-template-columns: 220px minmax(0,1fr) 360px; gap: clamp(22px, 3vw, 52px); align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--proof-navy); }
.bzp-heading > p, .bzp-standards-copy > p, .bzg-heading > p { margin: 0; color: var(--proof-blue); font: 700 10px/1.35 "Courier New", monospace; letter-spacing: .14em; }
.bzp-heading h2, .bzg-heading h2 { margin: 0; font: 400 clamp(30px, 3.1vw, 50px)/1 Georgia, serif; letter-spacing: -.04em; white-space: nowrap; }
.bzp-heading > span, .bzg-heading > span { color: #486474; font-size: 12px; line-height: 1.55; }

.bzp-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-bottom: 1px solid var(--proof-line); counter-reset: bzp; }
.bzp-metrics article { position: relative; min-height: 160px; padding: 21px 18px 18px; border-right: 1px solid var(--proof-line); counter-increment: bzp; transition: background .3s ease, color .3s ease, transform .3s ease; }
.bzp-metrics article:first-child { border-left: 1px solid var(--proof-line); }
.bzp-metrics article:hover, .bzp-metrics article:focus-within { z-index: 2; transform: translateY(-5px); background: var(--proof-navy); color: #fff; }
.bzp-metrics article::before { content: "0" counter(bzp); display: block; margin-bottom: 21px; color: var(--proof-blue); font: 700 9px/1 "Courier New", monospace; }
.bzp-metrics strong { display: block; margin-bottom: 8px; font: 500 clamp(30px, 3vw, 47px)/.9 Georgia, serif; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bzp-metrics span { display: block; min-height: 30px; font-size: 12px; font-weight: 700; line-height: 1.25; }
.bzp-metrics small { display: none; }
.bzp-metrics .bzp-metric--oem { background: #f4f7f9; }

.bzp-standards { display: grid; grid-template-columns: 255px minmax(0,1fr); gap: 30px; padding-top: 28px; align-items: stretch; }
.bzp-standards-copy { display: flex; flex-direction: column; justify-content: center; }
.bzp-standards-copy h3 { margin: 12px 0 18px; font: 400 clamp(22px, 2vw, 30px)/1.04 Georgia, serif; letter-spacing: -.025em; }
.bzp-standards-copy a { display: inline-flex; width: max-content; gap: 16px; padding-bottom: 5px; border-bottom: 1px solid var(--proof-navy); font-size: 10px; font-weight: 700; }
.bzp-standard-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-top: 1px solid var(--proof-line); border-left: 1px solid var(--proof-line); }
.bzp-standard-grid figure { display: flex; min-height: 142px; margin: 0; padding: 15px 10px 12px; flex-direction: column; align-items: center; justify-content: space-between; border-right: 1px solid var(--proof-line); border-bottom: 1px solid var(--proof-line); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.bzp-standard-grid figure:hover { z-index: 2; transform: translateY(-4px); box-shadow: 0 14px 35px rgba(8,45,67,.09); }
.bzp-standard-grid img { width: auto; max-width: 82px; height: auto; max-height: 58px; margin: auto; object-fit: contain; filter: brightness(0) saturate(100%) invert(16%) sepia(23%) saturate(1659%) hue-rotate(158deg) brightness(91%) contrast(101%); }
.bzp-standard-grid figcaption { width: 100%; padding-top: 9px; border-top: 1px solid var(--proof-line); }
.bzp-standard-grid b, .bzp-standard-grid span { display: block; }
.bzp-standard-grid b { font-size: 10px; }
.bzp-standard-grid span { margin-top: 3px; color: #667f8e; font-size: 8px; line-height: 1.25; }
.bzp-evidence-note { grid-column: 2; margin: -20px 0 0; padding-top: 27px; color: #6b818e; font-size: 8px; line-height: 1.4; pointer-events: none; }

.benz-programmes { padding: clamp(38px, 4.5vh, 54px) 0 clamp(42px, 5vh, 62px); }
.bzg-heading h2 { font-size: clamp(30px, 3.1vw, 50px); }
.bzg-field { position: relative; height: 430px; margin-top: 25px; overflow: hidden; border-top: 1px solid var(--proof-line); border-bottom: 1px solid var(--proof-line); background: #fff; }
.bzg-field::before, .bzg-field::after { content: ""; position: absolute; pointer-events: none; }
.bzg-field::before { top: 50%; right: 0; left: 0; height: 1px; background: linear-gradient(90deg,transparent,rgba(8,45,67,.1) 18% 82%,transparent); }
.bzg-field::after { top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(transparent,rgba(8,45,67,.08) 18% 82%,transparent); }
.bzg-centre { display: flex; position: absolute; z-index: 5; top: 50%; left: 50%; width: 184px; height: 184px; padding: 28px; transform: translate(-50%,-50%); align-items: center; justify-content: center; border: 1px solid var(--proof-navy); border-radius: 50%; background: #fff; box-shadow: 0 18px 48px rgba(8,45,67,.13); transition: transform .3s ease, box-shadow .3s ease; }
.bzg-centre:hover { transform: translate(-50%,-53%); box-shadow: 0 25px 58px rgba(8,45,67,.18); }
.bzg-centre img { width: 146px; height: 54px; object-fit: contain; }
.bzg-centre span { display: none; }
.bzg-logo { --px: 0px; --py: 0px; position: absolute; z-index: 3; top: var(--y); left: var(--x); display: flex; width: clamp(86px,9vw,138px); height: 66px; margin: 0; transform: translate(calc(-50% + var(--px)),calc(-50% + var(--py) + 12px)); align-items: center; justify-content: center; opacity: 0; transition: opacity .5s ease, transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d) * 24ms); }
.benz-programmes.is-visible .bzg-logo { transform: translate(calc(-50% + var(--px)),calc(-50% + var(--py))); opacity: 1; }
.bzg-logo img { width: min(100%,130px); height: 56px; object-fit: contain; filter: none; opacity: 1; transition: transform .25s ease; }
.bzg-logo figcaption { position: absolute; right: 8px; bottom: 7px; left: 8px; color: var(--proof-navy); font: 700 8px/1.15 "Courier New", monospace; text-align: center; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.bzg-logo:hover { z-index: 7; }
.bzg-logo:hover img { transform: translateY(-5px) scale(1.08); }
.bzg-logo:hover figcaption { opacity: 1; transform: none; }
.bzg-note { margin: 14px 0 0; color: #6d8390; font-size: 8px; line-height: 1.4; text-align: right; }

/* Desktop closes in three deliberate stages: operating scale, OEM programmes,
   then PACK WITH BENZ. Each of the first two panels owns the visible area below
   the 84px site header, so neither panel is compressed into the other. */
@media (min-width: 761px) {
  .benz-proof,
  .benz-programmes {
    height: calc(100svh - 84px);
    min-height: 640px;
    scroll-margin-top: 84px;
  }
  .bzp-shell,
  .bzg-shell { height: 100%; }
  .bzp-shell { display: flex; flex-direction: column; }
  .bzp-heading { flex: 0 0 auto; }
  .bzp-metrics { flex: 0 0 clamp(178px, 23vh, 208px); }
  .bzp-metrics article { height: 100%; min-height: 0; }
  .bzp-standards {
    position: relative;
    min-height: 0;
    flex: 1 1 auto;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
  }
  .bzp-standards-copy { grid-row: 1 / -1; }
  .bzp-standard-grid { height: min(220px, 100%); align-self: center; }
  .bzp-standard-grid figure { height: 100%; min-height: 0; }
  .bzp-evidence-note { margin: 8px 0 0; padding-top: 0; }

  .bzg-shell { display: flex; flex-direction: column; }
  .bzg-heading { flex: 0 0 auto; }
  .bzg-field {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
  }
  .bzg-note { flex: 0 0 auto; }
}

@media (max-width: 1120px) {
  .bzp-shell, .bzg-shell { width: min(100% - 48px, 1020px); }
  .bzp-heading, .bzg-heading { grid-template-columns: 170px minmax(0,1fr) 250px; }
  .bzp-heading h2, .bzg-heading h2 { font-size: clamp(27px, 3.5vw, 40px); }
  .bzp-metrics article { padding-inline: 12px; }
  .bzp-metrics span { font-size: 10px; }
  .bzp-standards { grid-template-columns: 205px minmax(0,1fr); gap: 20px; }
  .bzp-standard-grid img { max-width: 68px; max-height: 52px; }
  .bzg-field { height: 420px; }
}

@media (max-width: 760px) {
  .bzp-shell, .bzg-shell { width: calc(100% - 32px); }
  .benz-proof, .benz-programmes { padding: 48px 0; }
  .bzp-heading, .bzg-heading { display: block; padding-bottom: 22px; }
  .bzp-heading h2, .bzg-heading h2 { margin-top: 14px; font-size: clamp(30px, 9vw, 42px); white-space: normal; }
  .bzp-heading > span, .bzg-heading > span { display: block; margin-top: 14px; }
  .bzp-metrics { grid-template-columns: repeat(2,1fr); }
  .bzp-metrics article { min-height: 138px; }
  .bzp-metrics article:nth-child(odd) { border-left: 1px solid var(--proof-line); }
  .bzp-metrics article::before { margin-bottom: 15px; }
  .bzp-metrics strong { font-size: 34px; }
  .bzp-standards { display: block; padding-top: 34px; }
  .bzp-standard-grid { grid-template-columns: repeat(3,1fr); margin-top: 24px; }
  .bzp-standard-grid figure { min-height: 130px; }
  .bzp-evidence-note { margin: 10px 0 0; padding: 0; }
  .bzg-field { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-flow: row dense; height: auto; overflow: visible; border-left: 1px solid var(--proof-line); }
  .bzg-field::before, .bzg-field::after { display: none; }
  .bzg-centre { position: relative; top: auto; left: auto; grid-column: 2; grid-row: 3; width: 108px; height: 108px; padding: 16px; transform: none; align-self: center; justify-self: center; }
  .bzg-centre:hover { transform: translateY(-3px); }
  .bzg-centre img { width: 98px; height: 38px; }
  .bzg-logo { position: relative; top: auto; left: auto; width: 100%; height: 88px; transform: translateY(10px); border-right: 1px solid var(--proof-line); border-bottom: 1px solid var(--proof-line); }
  .benz-programmes.is-visible .bzg-logo { transform: none; }
  .bzg-logo img { width: min(100%,82px); height: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  .bzg-logo { transition: none; }
}
