/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad-x);
  background: rgba(244, 237, 224, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__mark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
}
.nav__mark-dot {
  color: var(--accent);
  font-size: 10px;
  margin: 0 1px;
  transform: translateY(-3px);
  display: inline-block;
}
.nav__brand-sub {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--ink-mid);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { width: 100%; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.lang-switch a {
  padding: 8px 12px;
  color: var(--ink-mid);
  transition: all 0.2s var(--ease);
}
.lang-switch a:hover { color: var(--accent); }
.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.nav__cta:hover {
  background: var(--accent);
  color: var(--ink);
}
.nav__cta:hover svg { transform: translateX(3px); }
.nav__cta svg { transition: transform 0.3s var(--ease); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav__burger span {
  height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}
.nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 70px 0 0 0;
  background: var(--paper);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 40px var(--pad-x);
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer a {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.drawer__cta {
  margin-top: auto;
  color: var(--accent) !important; /* override drawer link color on accent CTA */
}
.drawer__lang {
  display: flex;
  gap: 16px;
  font-family: var(--f-mono) !important;
  font-size: 14px !important;
}
.drawer__lang a {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
}
.drawer__lang a[aria-current="true"] { color: var(--accent); font-weight: 700; }
