/* ============================================
   NAV — adapts to each world
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--space-sm) var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--ease-out), color 0.5s;
}

.nav--scrolled {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── World-aware backgrounds ── */
.nav--japan.nav--scrolled       { background: rgba(10, 10, 10, 0.85); }
.nav--ouarzazate.nav--scrolled  { background: rgba(13, 9, 6, 0.85); }
.nav--greece.nav--scrolled      { background: rgba(8, 12, 20, 0.88); }

/* ── World-aware text ── */
.nav--japan      { color: var(--japan-text); }
.nav--ouarzazate { color: var(--ouarza-text); }
.nav--greece     { color: var(--greece-text); }

/* ── Logo ── */
.nav__logo {
  font-family: var(--font-ethiopia);
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: inherit;
  line-height: 1;
}

.nav__logo em {
  font-style: italic;
}

/* ── Links ── */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  padding: 0.25rem 0;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.nav__link:hover { opacity: 1; }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-out);
}

.nav__link:hover::after { width: 100%; }

/* ── Mobile menu ── */
.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav__menu-btn span {
  display: block;
  width: 24px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav__menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav__menu-btn.active span:nth-child(2) { opacity: 0; }
.nav__menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0; right: -100%;
    width: 70%; height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    background: #090909;
    transition: right 0.5s var(--ease-out);
    z-index: 99;
  }

  .nav__links.open { right: 0; }
  .nav__link { font-size: 0.9rem; opacity: 1; }
  .nav__menu-btn { display: flex; }
}
