/* ============================================================ */
/* SHARED NAV + MENU STYLES                                      */
/* Single source of truth — loaded by every page                 */
/* ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 32px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  mix-blend-mode: difference;
}
.nav-mark, .nav-links {
  pointer-events: auto;
}
.nav-wordmark {
  font-family: 'Didot', 'Bodoni 72', 'Playfair Display', Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  font-weight: 400;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8efbb9;
}

/* HAMBURGER */
.nav-burger {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 44px;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: none;
  transition: opacity 0.3s, background 0.25s;
  font-family: 'Didot','Bodoni 72','Playfair Display',Georgia,serif;
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--gold); text-transform: uppercase;
}
.nav-burger:hover { background: rgba(201,168,76,0.1); }
.nav-burger span { display: none; }
.nav-burger::before { content: 'Menu'; }
.nav-burger.open { background: rgba(201,168,76,0.12); }
.nav-burger.open::before { content: 'Close'; }

/* ── MOBILE NAV ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav-links { display: none !important; }
  .nav-burger {
    width: 44px; height: 44px;
    border: none; background: transparent;
    flex-direction: column; gap: 5px; padding: 10px;
    cursor: pointer;
  }
  .nav-burger::before, .nav-burger.open::before { content: none; }
  .nav-burger span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* MENU OVERLAY */
.menu-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: #4c271c;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 48px 34px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-overlay .menu-label {
  font-size: 7px; letter-spacing: 0.3em; color: rgba(201,168,76,0.5);
  text-transform: uppercase; margin-bottom: 28px;
}
.menu-overlay nav a {
  display: block;
  font-family: 'Didot', 'Bodoni 72', 'Playfair Display', Georgia, serif;
  font-size: clamp(17px, 2.4vw, 34px);
  color: var(--gold); letter-spacing: 0.01em;
  line-height: 1.2; margin-bottom: 8px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s;
}
.menu-overlay.open nav a { opacity: 1; transform: translateY(0); }
.menu-overlay nav a:hover { color: #ffffff; }
.menu-overlay nav a.menu-sub {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(7px, 0.75vw, 9px);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(201,168,76,0.55); margin-bottom: 5px;
}
.menu-overlay nav a.menu-sub:hover { color: var(--gold); }
.menu-overlay .menu-divider {
  width: 40px; height: 1px; background: rgba(201,168,76,0.25);
  margin: 16px 0;
}
.menu-overlay .menu-email {
  margin-top: 34px; font-size: 8px; letter-spacing: 0.2em;
  color: rgba(201,168,76,0.4); text-transform: uppercase;
}
.menu-commission-btn {
  display: inline-block; margin-top: 20px;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 7px; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 8px 20px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.4s ease 0.45s, transform 0.4s ease 0.45s, background 0.25s;
  text-decoration: none;
}
.menu-overlay.open .menu-commission-btn { opacity: 1; transform: translateY(0); }
.menu-commission-btn:hover { background: rgba(201,168,76,0.12); }

@media (max-height: 800px) {
  .menu-overlay { padding: 40px 56px; }
  .menu-overlay .menu-label { margin-bottom: 24px; }
  .menu-overlay nav a { font-size: clamp(22px, 3vw, 38px); margin-bottom: 6px; }
  .menu-overlay nav a.menu-sub { margin-bottom: 4px; }
  .menu-overlay .menu-divider { margin: 16px 0; }
  .menu-overlay .menu-email { margin-top: 28px; }
  .menu-commission-btn { margin-top: 20px; padding: 12px 28px; }
}

@media (max-height: 600px) {
  .menu-overlay { padding: 24px 56px; }
  .menu-overlay .menu-label { margin-bottom: 12px; }
  .menu-overlay nav a { font-size: clamp(18px, 2.5vw, 28px); margin-bottom: 3px; }
  .menu-overlay nav a.menu-sub { margin-bottom: 2px; font-size: clamp(10px, 1vw, 12px); }
  .menu-overlay .menu-divider { margin: 10px 0; }
  .menu-overlay .menu-email { margin-top: 16px; font-size: 11px; }
  .menu-commission-btn { margin-top: 12px; padding: 10px 24px; font-size: 12px; }
}

/* MENU BACKGROUND — constellation + stars */
.menu-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.menu-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.mstar {
  fill: var(--gold);
  animation: mstar-twinkle 4s ease-in-out infinite;
}
.mstar:nth-child(2)  { animation-delay: 0.7s; animation-duration: 3.5s; }
.mstar:nth-child(3)  { animation-delay: 1.4s; animation-duration: 5s; }
.mstar:nth-child(4)  { animation-delay: 0.3s; animation-duration: 4.2s; }
.mstar:nth-child(5)  { animation-delay: 2.1s; animation-duration: 3.8s; }
.mstar:nth-child(6)  { animation-delay: 1.1s; animation-duration: 4.6s; }
.mstar:nth-child(7)  { animation-delay: 1.8s; animation-duration: 3.2s; }
.mstar:nth-child(8)  { animation-delay: 0.5s; animation-duration: 5.2s; }
.mstar:nth-child(9)  { animation-delay: 2.6s; animation-duration: 4.0s; }
.mstar:nth-child(10) { animation-delay: 1.3s; animation-duration: 3.6s; }
.mstar:nth-child(11) { animation-delay: 0.9s; animation-duration: 4.8s; }
.mstar:nth-child(12) { animation-delay: 2.2s; animation-duration: 3.4s; }
@keyframes mstar-twinkle {
  0%, 100% { opacity: 0.08; }
  50%       { opacity: 0.35; }
}
/* Constellation logo frame */
.menu-const-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 560px);
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
@media (max-width: 768px) {
  .menu-const-frame { top: auto; bottom: 40px; left: 50%; transform: translateX(-50%); }
}
.menu-const { width: 100%; display: block; }
.menu-const .mc-line {
  fill: none;
  stroke: #C9A84C;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: mc-draw 9s cubic-bezier(0.16,1,0.3,1) infinite;
  animation-play-state: paused;
}
.menu-overlay.open .menu-const .mc-line { animation-play-state: running; }
.menu-const .mc-line:nth-child(1) { animation-delay: 0s; }
.menu-const .mc-line:nth-child(2) { animation-delay: 0.4s; }
.menu-const .mc-line:nth-child(3) { animation-delay: 0.8s; }
.menu-const .mc-line:nth-child(4) { animation-delay: 1.2s; }
.menu-const .mc-line:nth-child(5) { animation-delay: 1.6s; }
.menu-const .mc-line:nth-child(6) { animation-delay: 2.0s; }
.menu-const .mc-dot {
  fill: #C9A84C;
  opacity: 0.2;
  animation: mc-dot 9s ease-in-out infinite;
  animation-play-state: paused;
}
.menu-overlay.open .menu-const .mc-dot { animation-play-state: running; }
.menu-const .mc-dot:nth-child(7)  { animation-delay: 0.5s; }
.menu-const .mc-dot:nth-child(8)  { animation-delay: 1.8s; }
.menu-const .mc-dot:nth-child(9)  { animation-delay: 1.3s; }
.menu-const .mc-dot:nth-child(10) { animation-delay: 1.7s; }
.menu-const .mc-dot:nth-child(11) { animation-delay: 0.9s; }
.menu-const .mc-dot:nth-child(12) { animation-delay: 2.0s; }
.menu-const .mc-dot:nth-child(13) { animation-delay: 2.1s; }
.menu-const .mc-dot:nth-child(14) { animation-delay: 2.5s; }
.menu-const .mc-wordmark {
  fill: #C9A84C;
  opacity: 0;
  animation: mc-text 9s ease-in-out infinite;
  animation-play-state: paused;
  animation-delay: 2.4s;
}
.menu-overlay.open .menu-const .mc-wordmark { animation-play-state: running; }
.menu-const .mc-wordmark-sub {
  fill: rgba(255,255,255,0.7);
  opacity: 0;
  animation: mc-text 9s ease-in-out infinite;
  animation-play-state: paused;
  animation-delay: 2.6s;
}
.menu-overlay.open .menu-const .mc-wordmark-sub { animation-play-state: running; }
@keyframes mc-draw {
  0%   { stroke-dashoffset: 200; opacity: 0.25; }
  8%   { opacity: 1; }
  35%  { stroke-dashoffset: 0; }
  75%  { stroke-dashoffset: 0; opacity: 1; }
  90%  { opacity: 0.35; }
  100% { stroke-dashoffset: 0; opacity: 0.25; }
}
@keyframes mc-dot {
  0%, 12% { opacity: 0.2; }
  32%, 75% { opacity: 1; }
  90%, 100% { opacity: 0.2; }
}
@keyframes mc-text {
  0%, 20% { opacity: 0.15; }
  40%, 75% { opacity: 1; }
  90%, 100% { opacity: 0.15; }
}
