body > header > nav {
  transition: opacity 180ms cubic-bezier(.22,1,.36,1), transform 350ms cubic-bezier(.22,1,.36,1);
}
body > header.is-compact {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  pointer-events: none;
}
body > header.is-compact > nav {
  opacity: 0;
  transform: translateY(-14px) scale(.96);
  pointer-events: none;
  visibility: hidden;
}
.compact-menu {
  position: absolute;
  top: 12px;
  left: 50%;
  width: min(420px, calc(100vw - 24px));
  min-height: 64px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 999px;
  background: rgb(250 253 247 / 58%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 8px 30px rgb(23 49 33 / 14%), inset 0 1px 0 rgb(255 255 255 / 80%);
  opacity: 0;
  transform: translate(-50%, -12px) scale(1.08);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(.22,1,.36,1), transform 400ms cubic-bezier(.22,1,.36,1), visibility 200ms;
}
.is-compact .compact-menu {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  visibility: visible;
  pointer-events: auto;
}
.compact-menu__brand { justify-self: start; width: 100%; max-width: 98px; min-width: 0; }
.compact-menu__brand img { display: block; width: 100%; height: auto; }
.compact-menu__cta {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #006b33;
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  min-height: 44px;
}
.compact-menu__toggle {
  justify-self: end;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #155b3a;
  border-radius: 50%;
}
.compact-menu__toggle span { width: 21px; height: 2px; background: currentColor; }
.compact-menu__links {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 12px;
  background: rgb(250 253 247 / 88%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgb(23 49 33 / 14%);
}
.compact-menu__links a { display: block; padding: 12px 16px; color: #155b3a; font-weight: 700; border-radius: 12px; }
.compact-menu__links a:hover { background: #edf2e8; }
.compact-menu :focus-visible { outline: 2px solid #155b3a; outline-offset: 3px; }
@media (max-width: 374px) {
  .compact-menu { padding: 7px 8px; gap: 6px; }
  .compact-menu__cta { font-size: 12px; padding: 12px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .compact-menu, .compact-menu__links { background: #f6f8f2; }
}
@media (prefers-reduced-motion: reduce) {
  body > header > nav, .compact-menu { transition: none; }
}
