/* Keep the full-screen mobile menu independent from the blurred sticky header. */
@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    inset: auto;
    top: 0;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    height: 100vh;
  }
}

/* Desktop hero: fit short 100%-zoom viewports without clipping the metrics. */
@media (min-width: 901px) {
  .home-hero {
    min-height: 680px;
    height: 100svh;
    max-height: 940px;
  }

  .hero-radar {
    width: clamp(680px, 47vw, 1050px);
    max-width: none;
    right: -4vw;
    top: 50%;
    transform: translateY(-48%);
  }

  .hero-metrics,
  .hero-metrics.reveal.visible {
    width: min(1180px, calc(100% - 48px));
    margin-inline: 0;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(14px, 2.4vh, 25px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-metrics > div {
    min-width: 0;
    padding-inline: clamp(12px, 1.5vw, 26px);
  }

  .hero-metrics span {
    font-size: clamp(8px, .62vw, 10px);
  }
}

@media (min-width: 901px) and (max-height: 780px) {
  .home-hero-inner {
    padding-top: 52px;
    transform: translateY(-18px);
  }

  .home-hero h1 {
    font-size: clamp(54px, 5.35vw, 78px);
    margin-block: 20px 18px;
  }

  .home-hero-copy > p {
    font-size: clamp(16px, 1.3vw, 19px);
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-metrics {
    padding-top: 14px;
  }

  .hero-metrics strong {
    font-size: 27px;
  }
}

/* The footer CTA opens like the four corner blocks in the MB brand mark. */
.circle-link.logo-cta {
  width: 270px;
  height: 235px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 17px;
  overflow: visible;
  transform: none;
  color: var(--ink);
  text-align: center;
}

.circle-link.logo-cta:hover,
.circle-link.logo-cta:focus-visible {
  background: transparent;
  color: var(--ink);
  transform: none;
  outline: none;
}

.cta-mark {
  position: relative;
  display: block;
  width: 172px;
  height: 172px;
  flex: 0 0 172px;
  filter: drop-shadow(0 20px 19px rgba(0,68,47,.30));
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease;
}

.cta-logo-exact,
.cta-piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.cta-logo-exact {
  z-index: 2;
  opacity: 1;
  transition: opacity .2s ease, transform .5s cubic-bezier(.18,.9,.22,1);
}

.cta-piece {
  z-index: 3;
  opacity: 0;
  transition: opacity .18s ease, transform .6s cubic-bezier(.18,.9,.22,1), filter .45s ease;
}

.cta-piece-cross {
  clip-path: polygon(30% 0,70% 0,70% 36%,100% 36%,100% 64%,70% 64%,70% 100%,30% 100%,30% 64%,0 64%,0 36%,30% 36%);
}
.cta-piece-1 { clip-path: polygon(0 0,43% 0,43% 43%,0 43%); }
.cta-piece-2 { clip-path: polygon(57% 0,100% 0,100% 43%,57% 43%); }
.cta-piece-3 { clip-path: polygon(0 57%,43% 57%,43% 100%,0 100%); }
.cta-piece-4 { clip-path: polygon(57% 57%,100% 57%,100% 100%,57% 100%); }

.cta-word {
  position: absolute;
  z-index: 5;
  top: 63px;
  width: 70px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #03100b;
  box-shadow: 0 10px 18px rgba(0,47,32,.22);
  font: 800 12px/1 var(--display);
  letter-spacing: .05em;
  opacity: 0;
  transform: scale(.55);
  transition: opacity .25s ease .06s, transform .5s cubic-bezier(.18,.9,.22,1) .06s;
}

.cta-word-one { left: -7px; }
.cta-word-two { right: -7px; }

.cta-caption {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 15px;
  border: 1px solid rgba(0,46,32,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.20);
  box-shadow: 0 8px 20px rgba(0,73,49,.12);
  font: 800 12px/1 var(--display);
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}

.cta-caption b {
  color: #006b4c;
  font-size: 17px;
}

.logo-cta:hover .cta-mark,
.logo-cta:focus-visible .cta-mark {
  transform: translateY(-5px) scale(1.055);
  filter: drop-shadow(0 28px 22px rgba(0,52,36,.36));
}

.logo-cta:hover .cta-logo-exact,
.logo-cta:focus-visible .cta-logo-exact {
  opacity: 0;
  transform: scale(.94);
}

.logo-cta:hover .cta-piece,
.logo-cta:focus-visible .cta-piece { opacity: 1; }
.logo-cta:hover .cta-piece-cross,
.logo-cta:focus-visible .cta-piece-cross { transform: scale(.96) rotate(1deg); }
.logo-cta:hover .cta-piece-1,
.logo-cta:focus-visible .cta-piece-1 { transform: translate(-22px,-19px) rotate(-6deg); }
.logo-cta:hover .cta-piece-2,
.logo-cta:focus-visible .cta-piece-2 { transform: translate(22px,-19px) rotate(6deg); }
.logo-cta:hover .cta-piece-3,
.logo-cta:focus-visible .cta-piece-3 { transform: translate(-22px,19px) rotate(6deg); }
.logo-cta:hover .cta-piece-4,
.logo-cta:focus-visible .cta-piece-4 { transform: translate(22px,19px) rotate(-6deg); }

.logo-cta:hover .cta-word,
.logo-cta:focus-visible .cta-word {
  opacity: 1;
  transform: scale(1);
}

.logo-cta:hover .cta-caption,
.logo-cta:focus-visible .cta-caption {
  background: var(--ink);
  color: var(--green);
  transform: translateY(4px);
}

.logo-cta:hover .cta-caption b,
.logo-cta:focus-visible .cta-caption b { color: var(--green); }

.logo-cta:active .cta-mark { transform: translateY(1px) scale(.98); }

@media (max-width: 900px) {
  .circle-link.logo-cta {
    width: 220px;
    height: 210px;
  }

  .cta-mark {
    width: 150px;
    height: 150px;
    flex-basis: 150px;
  }

  .cta-word { top: 54px; width: 62px; height: 42px; font-size: 11px; }
}

@media (max-width: 640px) {
  .circle-link.logo-cta { width: 195px; height: 195px; align-self: center; }
  .cta-mark { width: 138px; height: 138px; flex-basis: 138px; }
  .cta-word { top: 49px; width: 58px; height: 40px; }
  .cta-caption { font-size: 10px; }
}
