:root {
  --topbar-height: 52px;
}

/* ── Topbar bar ───────────────────────────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-height);
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(0,0,0,0.25);
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 100;
}

.identity {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-right: 24px;
}

.name {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
  font-weight: 600;
  font-variant: small-caps;
}

/* ── Desktop nav ──────────────────────────────────────────────────────────── */

.topbar-panel {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.menu_page {
  display: flex;
  gap: 32px;
  align-items: center;
}

@keyframes nav-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.menu_page a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  height: 40px;
  display: flex;
  align-items: center;
  will-change: transform, opacity;
  animation: nav-slide-in 0.5s ease both;
}

.menu_page a:nth-child(1) { animation-delay:   0ms; }
.menu_page a:nth-child(2) { animation-delay:  70ms; }
.menu_page a:nth-child(3) { animation-delay: 140ms; }
.menu_page a:nth-child(4) { animation-delay: 210ms; }
.menu_page a:nth-child(5) { animation-delay: 280ms; }

.menu_page a:hover,
.menu_page a.selected { color: white; }

/* ── Desktop language switcher ────────────────────────────────────────────── */

.menu_language {
  display: flex;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu_language a {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}

.menu_language a:hover,
.menu_language a.selected { color: white; }
