@media (max-width: 1099px) {
  .site-header {
    position: relative;
    z-index: 100;
    grid-template-columns: 1fr auto;
    width: 100%;
    height: 84px;
    padding: 14px 22px;
  }

  .brand {
    grid-column: 1;
    width: 48px;
    height: 48px;
    margin: 0;
    transform: none;
  }

  .menu-toggle {
    grid-column: 2;
    display: grid;
    width: 44px;
    height: 48px;
    padding: 0;
    border: 0;
    place-items: center;
    color: #f6f2e9;
    background: transparent;
    cursor: pointer;
  }

  .menu-lines {
    position: relative;
    display: block;
    width: 32px;
    height: 14px;
  }

  .menu-lines i {
    position: absolute;
    left: 0;
    display: block;
    width: 32px;
    height: 1px;
    border: 0;
    background: currentColor;
    transition: top 240ms ease, transform 240ms ease;
  }

  .menu-lines i::before,
  .menu-lines i::after {
    display: none;
    content: none;
  }

  .menu-lines i:first-child { top: 3px; }
  .menu-lines i:last-child { top: 11px; }
  .menu-toggle[aria-expanded="true"] .menu-lines i:first-child { top: 7px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines i:last-child { top: 7px; transform: rotate(-45deg); }

  .primary-navigation {
    position: fixed;
    top: 76px;
    right: 16px;
    bottom: auto;
    left: auto;
    z-index: 99;
    display: grid;
    align-content: start;
    gap: 0;
    width: min(360px, calc(100vw - 32px));
    height: auto;
    max-height: calc(100dvh - 92px);
    padding: 10px 22px 14px;
    overflow-y: auto;
    visibility: hidden;
    border: 0;
    border-radius: 0;
    color: #f6f2e9;
    background: rgb(0 0 0 / 10%);
    opacity: 0;
    box-shadow: 0 18px 46px rgb(0 0 0 / 18%);
    -webkit-backdrop-filter: blur(18px) saturate(115%) brightness(72%);
    backdrop-filter: blur(18px) saturate(115%) brightness(72%);
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }

  .primary-navigation.open,
  .menu-open .primary-navigation {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-navigation a,
  .primary-navigation a:nth-child(n) {
    position: relative;
    display: block;
    min-width: 0;
    height: auto;
    padding: 12px 0 13px;
    border-bottom: 0;
    color: #f6f2e9;
    font-size: clamp(20px, 2.6vw, 23px);
    line-height: 1.1;
    text-align: left;
    transform: none;
  }

  .primary-navigation a:last-child { border-bottom: 0; }
  .primary-navigation a.active { color: #ff9a70; }
  .primary-navigation a::after {
    position: absolute;
    right: 20px;
    bottom: 6px;
    left: 0;
    width: auto;
    height: 2px;
    background: currentColor;
    content: "";
    opacity: 0;
    transform: none;
  }

  .primary-navigation a.active::after { display: none; }
  body.menu-open { overflow: hidden; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (max-width: 1099px) {
    .primary-navigation { background: rgb(1 75 63 / 92%); }
  }
}

@media (max-width: 560px) {
  .primary-navigation {
    right: 14px;
    left: auto;
    width: min(330px, calc(100vw - 28px));
    padding: 8px 20px 12px;
  }

  .primary-navigation a,
  .primary-navigation a:nth-child(n) {
    padding: 11px 0 12px;
    font-size: 20px;
  }
}
