@media (max-width: 900px) {
  .menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 112px;
    padding: 9px 15px 9px 12px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: linear-gradient(145deg, var(--sumire-pastel), var(--violet-deep));
    color: #fff;
    box-shadow: 3px 3px 0 rgba(232,187,68,.18);
    font-family: inherit;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .25s ease;
  }
  .menu:hover, .menu:focus-visible {
    transform: translateY(-1px);
    box-shadow: 4px 5px 0 rgba(232,187,68,.22);
    outline: 2px solid rgba(105,84,132,.3);
    outline-offset: 3px;
  }
  .menu[aria-expanded="true"] {
    color: #fff;
    background: linear-gradient(145deg, var(--sumire-pastel), var(--violet-deep));
  }
  .menu-icon {
    width: 27px;
    height: 27px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 0 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.48);
    border: 1px solid rgba(232,187,68,.7);
  }
  .menu-icon i {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform .25s ease, opacity .2s ease;
  }
  .menu[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
  .menu[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .menu-label { font-size: 12px; letter-spacing: .12em; white-space: nowrap; }
  #nav {
    top: 86px;
    padding: 20px clamp(24px,5vw,76px) 28px;
    gap: 0;
    background: rgba(244,240,231,.97);
    border-top: 1px solid rgba(232,187,68,.45);
    border-bottom: 1px solid var(--gold);
    box-shadow: 0 18px 35px rgba(20,42,53,.14);
    backdrop-filter: blur(12px);
  }
  #nav a {
    position: relative;
    padding: 11px 4px 11px 19px;
    border-bottom: 1px solid rgba(215,205,189,.72);
  }
  #nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sumire-pastel);
    border: 1px solid var(--gold);
    transform: translateY(-50%);
  }
  #nav a:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  .menu { min-width: 100px; padding: 7px 12px 7px 9px; }
  .menu-icon { width: 25px; height: 25px; }
  #nav { top: 72px; }
}
