/* Mobile sidebar — desktop nav unchanged above 720px */

.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-menu-toggle:hover {
  background: var(--navy-tint);
  border-color: var(--rule-2);
}

.nav-menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-menu-toggle span::before,
.nav-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-menu-toggle span::before {
  top: -5px;
}

.nav-menu-toggle span::after {
  top: 5px;
}

.nav-menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 14, 26, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(340px, 88vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(234, 238, 247, 0.95) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  border-left: 1px solid var(--rule);
  box-shadow: -24px 0 64px rgba(10, 14, 26, 0.12);
  transform: translateX(104%);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.mobile-nav-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--rule);
}

.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.mobile-nav-brand img {
  width: 36px;
  height: auto;
}

.mobile-nav-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-close:hover {
  background: var(--navy-tint);
  color: var(--ink);
}

.mobile-nav-links {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px 12px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: var(--navy-tint);
  color: var(--ink);
}

.mobile-nav-links a.active em {
  color: var(--navy-bright);
  font-style: italic;
}

.mobile-nav-links a .mobile-nav-arrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-links a:hover .mobile-nav-arrow {
  transform: translateX(3px);
  color: var(--navy-bright);
}

.mobile-nav-cta {
  position: relative;
  z-index: 1;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-cta .login {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}

.mobile-nav-cta .btn {
  width: 100%;
  justify-content: center;
}

.mobile-nav-tagline {
  position: relative;
  z-index: 1;
  padding: 0 22px 24px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5vw, 1.55rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
}

.mobile-nav-tagline em {
  font-style: italic;
  color: var(--navy-bright);
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .nav-menu-toggle {
    display: inline-flex;
  }

  nav.top .navcta {
    display: none;
  }

  nav.top .row {
    gap: 12px;
  }
}
