/* ─── Nav ───────────────────────────────────────────────────── */

.hhh-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.hhh-nav.scrolled {
  background: rgba(16, 16, 16, 0.55);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-color: var(--line);
}

.hhh-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 78px;
  padding: 0 40px;
}

/* ── Logo ── */
.hhh-nav__logo a {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hhh-nav__logo img {
  display: block;
  width: 30px;
  height: 30px;
  min-width: 30px;
  max-width: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.hhh-nav__wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hhh-nav__wordmark b {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.hhh-nav__wordmark small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  line-height: 1;
}

/* ── Pill nav (desktop) ── */
.hhh-nav__pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hhh-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hhh-nav__links li a {
  display: block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--fg);
  transition: background 150ms ease;
}

.hhh-nav__links li a:hover,
.hhh-nav__links li.current-menu-item a {
  background: rgba(255, 255, 255, 0.06);
}

/* ── Right actions ── */
.hhh-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.hhh-nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--amber);
  color: #111;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: opacity 150ms ease;
}

.hhh-nav__cta:hover { opacity: 0.88; }

/* ── Language toggle ── */
.hhh-nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color 150ms ease;
}

.hhh-nav__lang:hover {
  border-color: rgba(250, 250, 247, 0.4);
}

.hhh-nav__lang-opt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 150ms ease;
}

.hhh-nav__lang-opt:hover     { color: var(--fg); }
.hhh-nav__lang-opt.is-active { color: var(--amber); }
.hhh-nav__lang-sep           { color: var(--fg-faint); font-size: 9px; }

/* ── Burger ── */
.hhh-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--glass-hi);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hhh-nav__burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hhh-nav__burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.hhh-nav__burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ── Mobile fullscreen menu ── */
.hhh-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 100px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hhh-mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.hhh-mobile-menu__links {
  display: flex;
  flex-direction: column;
}

.hhh-mobile-menu__links li a {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.1;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  transition: color 150ms ease;
}

.hhh-mobile-menu__links li a:hover { color: var(--amber); }

.hhh-mobile-menu__cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 40px;
  background: var(--amber);
  color: #111;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 999px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 999px) {
  /* 2-col grid: logo | actions — pill is hidden so it must be removed from grid */
  .hhh-nav__inner  { padding: 0 24px; height: 64px; grid-template-columns: 1fr auto; }
  .hhh-nav__pill   { display: none; }
  .hhh-nav__burger { display: flex; }
  .hhh-nav__cta    { display: none; }
}

@media (max-width: 540px) {
  .hhh-nav__inner    { padding: 0 16px; }
  .hhh-nav__wordmark { display: none; }
}
