[data-menu-motion].is-menu-animating {
  backface-visibility: hidden;
}

[data-menu-motion].is-menu-animating [data-menu-item] {
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: opacity 280ms cubic-bezier(.22, .74, .18, 1), transform 340ms cubic-bezier(.22, .74, .18, 1);
}

[data-menu-motion].is-menu-animating[data-menu-state="opening"] [data-menu-item],
[data-menu-motion].is-menu-animating[data-menu-state="open"] [data-menu-item] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: calc(70ms + (var(--menu-item-index, 0) * 40ms));
}

[data-menu-motion].is-menu-animating.is-menu-at-start [data-menu-item] {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition-delay: 0ms;
}

[data-menu-motion].is-menu-animating[data-menu-state="closing"] [data-menu-item] {
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  transition-duration: 180ms, 220ms;
  transition-delay: calc(var(--menu-item-close-index, 0) * 20ms);
}

[data-menu-motion][data-menu-state="opening"],
[data-menu-motion][data-menu-state="open"],
[data-menu-motion][data-menu-state="closing"] { overscroll-behavior: contain; }

@media (prefers-reduced-motion: reduce) {
  [data-menu-motion].is-menu-animating [data-menu-item] { opacity: 1; transform: none; transition: none; }
}

/* === AOA MENU OPEN VISUAL CANONICAL START === */

/*
 * One visual source of truth for the OPEN menu.
 * Motion logic remains untouched.
 */

.menu-panel,
.menu-panel[open],
[data-menu-motion][data-menu-state="opening"],
[data-menu-motion][data-menu-state="open"] {
  background: #fff !important;
  background-color: #fff !important;
  color: #111 !important;
}

dialog.menu-panel {
  inset: 0 !important;

  width: 100vw !important;
  height: 100dvh !important;

  min-height: 100dvh !important;
  max-height: none !important;

  margin: 0 !important;

  border: 0 !important;
}

dialog.menu-panel::backdrop {
  background: transparent !important;
}

.menu-panel a,
.menu-panel button,
.menu-panel span,
.menu-panel p,
.menu-panel div,
.menu-panel nav,
[data-menu-motion][data-menu-state="opening"] a,
[data-menu-motion][data-menu-state="opening"] button,
[data-menu-motion][data-menu-state="open"] a,
[data-menu-motion][data-menu-state="open"] button {
  color: #111 !important;
}

.menu-panel svg,
.menu-panel svg *,
[data-menu-motion][data-menu-state="opening"] svg,
[data-menu-motion][data-menu-state="opening"] svg *,
[data-menu-motion][data-menu-state="open"] svg,
[data-menu-motion][data-menu-state="open"] svg * {
  color: #111 !important;

  fill: currentColor;
  stroke: currentColor;
}

.menu-panel img,
[data-menu-motion][data-menu-state="opening"] img,
[data-menu-motion][data-menu-state="open"] img {
  filter: brightness(0) !important;
}


/*
 * Critical:
 * article hero normally makes header white.
 * OPEN MENU must override it.
 */

body:has([data-menu-motion][data-menu-state="opening"]) header,
body:has([data-menu-motion][data-menu-state="opening"]) .site-header,
body:has([data-menu-motion][data-menu-state="open"]) header,
body:has([data-menu-motion][data-menu-state="open"]) .site-header {
  color: #111 !important;

  background: transparent !important;
}

body:has([data-menu-motion][data-menu-state="open"]) header a,
body:has([data-menu-motion][data-menu-state="open"]) header button,
body:has([data-menu-motion][data-menu-state="open"]) .site-header a,
body:has([data-menu-motion][data-menu-state="open"]) .site-header button {
  color: #111 !important;
}

body:has([data-menu-motion][data-menu-state="open"]) header svg,
body:has([data-menu-motion][data-menu-state="open"]) .site-header svg {
  color: #111 !important;

  filter: none !important;
}

body:has([data-menu-motion][data-menu-state="open"]) header img,
body:has([data-menu-motion][data-menu-state="open"]) .site-header img {
  filter: brightness(0) !important;
}

/* === AOA MENU OPEN VISUAL CANONICAL END === */


/* AOA_MENU_TYPE_FINAL_START */
.menu-panel{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;max-width:none!important;margin:0!important;border:0!important;overflow:hidden!important;overscroll-behavior:none!important;background:#fff!important;box-sizing:border-box!important;}
.menu-panel__inner{height:100%!important;max-height:100%!important;overflow:hidden!important;}
.menu-panel__nav a{font-family:"Evolventa",sans-serif!important;font-size:20px!important;font-weight:400!important;line-height:1.15!important;letter-spacing:0!important;}
[class*="menu-panel__social"] a,.menu-panel__email{font-family:"Evolventa",sans-serif!important;font-size:20px!important;font-weight:400!important;line-height:1.15!important;}
.menu-panel__close{font-family:"Evolventa",sans-serif!important;font-size:12px!important;font-weight:400!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;}
@media(max-width:720px){.menu-panel{height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;}.menu-panel__nav a,[class*="menu-panel__social"] a,.menu-panel__email{font-size:13px!important;}.menu-panel__close{font-size:11px!important;}}
/* AOA_MENU_TYPE_FINAL_END */

/* AOA_MENU_CLOSE_HEADER_TONE_START */
body:has([data-menu-motion][data-menu-state="closing"]) .site-header {
  transition:
    transform .72s cubic-bezier(.22,.74,.18,1),
    color 0s,
    background-color 0s;
}
/* AOA_MENU_CLOSE_HEADER_TONE_END */
