/* =========================================================
   Mobile menu (≤ 900px): circular reveal from the toggle,
   staggered numbered links, decorative glow + ring, smooth close
   ========================================================= */
.nav__meta { display: none; }

@media (max-width: 900px) {
  .nav.is-open { z-index: 70; }                      /* above the offer bar */

  .nav__links {
    counter-reset: navlink;
    gap: 6px;
    padding: 90px 24px 40px;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    background:
      radial-gradient(60% 40% at 85% 8%, rgba(150, 60, 255, .35), transparent 70%),
      radial-gradient(70% 45% at 10% 95%, rgba(120, 40, 230, .3), transparent 70%),
      radial-gradient(40% 30% at 50% 50%, rgba(247, 196, 124, .06), transparent 70%),
      #07030f;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    clip-path: circle(0px at calc(100% - 36px) 36px);
    transition: clip-path .65s cubic-bezier(.77, 0, .18, 1), visibility 0s linear .65s;
  }
  .nav.is-open .nav__links {
    visibility: visible;
    pointer-events: auto;
    clip-path: circle(150% at calc(100% - 36px) 36px);
    transition: clip-path .75s cubic-bezier(.77, 0, .18, 1), visibility 0s;
  }

  /* slowly rotating ring + soft orb behind the links */
  .nav__links::before {
    content: "";
    position: absolute;
    left: 50%; top: 46%;
    width: min(120vw, 620px); aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(.7);
    border-radius: 50%;
    border: 1px dashed rgba(247, 196, 124, .18);
    box-shadow: inset 0 0 80px rgba(140, 50, 255, .18), 0 0 0 40px rgba(140, 50, 255, .03);
    opacity: 0;
    transition: opacity .8s ease, transform 1.2s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
  }
  .nav.is-open .nav__links::before { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: mnSpin 60s linear infinite; }

  /* links: numbered, staggered slide-in */
  .nav__links a:not(.btn) {
    counter-increment: navlink;
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 18px;
    font-family: var(--serif);
    font-size: clamp(30px, 8vw, 40px);
    font-weight: 600;
    color: #e9e1f5;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .3s ease, transform .3s ease, color .3s;
  }
  .nav__links a:not(.btn)::before {
    content: counter(navlink, decimal-leading-zero);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    color: #f7c47c;
    opacity: .75;
    transform: translateY(-14px);
  }
  .nav__links a:not(.btn)::after {               /* gold underline that draws in (replaces the desktop dot) */
    content: "";
    position: absolute;
    left: 18px; right: 18px; bottom: 4px;
    width: auto;
    height: 2px;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(247, 196, 124, .6);
    background: linear-gradient(90deg, #b46bff, #f7c47c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
  }
  .nav__links a:not(.btn):hover, .nav__links a:not(.btn):focus-visible { color: #fff; outline: none; }
  .nav__links a:not(.btn):hover::after, .nav__links a:not(.btn):focus-visible::after,
  .nav__links a.is-active:not(.btn)::after { transform: scaleX(1); }
  .nav__links a.is-active::after { transform: scaleX(1); }
  .nav__links a.is-active:not(.btn) { color: #fff; }
  .nav__links a:not(.btn):active { transform: scale(.97); }

  .nav.is-open .nav__links a:not(.btn) {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease, transform .6s cubic-bezier(.22, 1, .36, 1), color .3s;
    transition-delay: calc(.28s + var(--n, 0) * .07s);
  }

  /* reserve button + meta line come in last */
  .nav__cta-mobile {
    margin-top: 18px !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    opacity: 0;
    transform: translateY(20px) scale(.95);
    transition: opacity .3s ease, transform .3s ease;
    animation: none;
  }
  .nav.is-open .nav__cta-mobile {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease .68s, transform .6s cubic-bezier(.34, 1.56, .64, 1) .68s;
    animation: cBtnBlink 1.6s ease-in-out 1.4s infinite;
  }
  .nav__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 0;
    font-family: var(--sans);
    font-size: 13px;
    color: #cfc4de;
    opacity: 0;
    transition: opacity .3s ease;
  }
  .nav.is-open .nav__meta { opacity: 1; transition: opacity .6s ease .8s; }
  .nav__meta-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d7d; animation: mnLive 1.6s ease-out infinite; }

  /* toggle: glowing circle, spins into an × */
  .nav__toggle {
    border-radius: 50%;
    background: rgba(140, 50, 255, .18);
    border: 1px solid rgba(200, 150, 255, .35);
    transition: background-color .3s, box-shadow .3s, transform .5s cubic-bezier(.34, 1.56, .64, 1);
  }
  .nav__toggle:active { transform: scale(.92); }
  .nav.is-open .nav__toggle { background: rgba(140, 50, 255, .35); box-shadow: 0 0 20px rgba(170, 90, 255, .6); transform: rotate(180deg); }
}

@keyframes mnSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes mnLive { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 125, .7); } 100% { box-shadow: 0 0 0 7px rgba(255, 77, 125, 0); } }

@media (prefers-reduced-motion: reduce) {
  .nav__links, .nav__links *, .nav__links::before { transition: none !important; animation: none !important; }
  .nav.is-open .nav__links a, .nav.is-open .nav__cta-mobile, .nav.is-open .nav__meta { opacity: 1 !important; transform: none !important; }
}
