#scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 1px; width: 0%;
  background: linear-gradient(to right, var(--gold-dark), var(--gold-bright));
  z-index: 9000;
  transition: width .05s linear;
}
body.light-theme #scroll-bar { background: linear-gradient(to right, #6B2D0A, #B85C00); }

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 64px;
  z-index: 800;
  transition: padding .4s, background .4s, border-color .4s;
  border-bottom: 0.5px solid transparent;
}
#nav.scrolled {
  padding: 16px 64px;
  background: rgba(8,6,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(200,134,10,0.18);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-emblem {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.logo-emblem img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.logo-name {
  font-family: var(--serif);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.3;
}
.logo-name small {
  display: block;
  font-family: var(--sans);
  font-size: 8px; font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sub);
  text-decoration: none;
  position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 0.5px;
  background: var(--gold);
  transition: right .3s;
}
.nav-links a:hover { color: var(--gold-pale); }
.nav-links a:hover::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-cta {
  font-family: var(--sans);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 0.5px solid rgba(200,134,10,0.6);
  padding: 10px 22px;
  border-radius: 2px;
  cursor: none;
  background: transparent;
  transition: background .25s, border-color .25s;
  text-decoration: none;
}
.nav-cta:hover { background: rgba(200,134,10,0.1); border-color: var(--gold-bright); }

/* Hamburger — visible on tablet/mobile */
#nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  background: none;
  border: none;
  padding: 8px;
  min-width: 44px; min-height: 44px;
  align-items: center;
  justify-content: center;
}
#nav-hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--gold-pale);
  transition: transform .3s, opacity .3s;
}

/* Mobile overlay menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8,6,10,0.97);
  backdrop-filter: blur(20px);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
#mobile-menu.open { opacity: 1; pointer-events: auto; }
#mobile-menu a {
  font-family: var(--sans);
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sub);
  text-decoration: none;
  transition: color .25s;
}
#mobile-menu a:hover { color: var(--gold-pale); }
#mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: var(--gold-pale);
  font-size: 24px;
  cursor: none;
}

/* Section strip */
.section-strip {
  background: var(--black);
  padding: 11px 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 0.5px solid rgba(200,134,10,0.18);
  border-bottom: 0.5px solid rgba(200,134,10,0.18);
  position: sticky;
  top: 70px;
  z-index: 700;
  backdrop-filter: blur(8px);
}
.section-strip .num { font-family: var(--serif); font-size: 10px; color: var(--gold); letter-spacing: 0.1em; }
.section-strip .lbl { font-family: var(--sans); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.section-strip .next-hint { margin-left: auto; font-family: var(--sans); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(200,134,10,0.3); }

/* Responsive */
@media (max-width: 1024px) {
  #nav { padding: 22px 32px; }
  #nav.scrolled { padding: 14px 32px; }
  .nav-links { display: none; }
  #nav-hamburger { display: flex; }
  .section-strip { padding: 11px 32px; }
}

/* Light theme */
body.light-theme #nav.scrolled {
  background: rgba(248,238,215,0.94);
  border-bottom-color: rgba(140,89,8,0.28);
}
body.light-theme .logo-name { color: #1F0A02; }
body.light-theme .logo-name small { color: #B85C00; }
body.light-theme .nav-links a { color: rgba(31,10,2,0.7); }
body.light-theme .nav-links a:hover { color: #A4111B; }
body.light-theme .nav-links a::after { background: #B85C00; }
body.light-theme .nav-cta { color: #B85C00; border-color: rgba(184,92,0,0.55); font-weight: 500; }
body.light-theme .nav-cta:hover { background: rgba(184,92,0,0.1); border-color: #B85C00; }
body.light-theme .section-strip { background: #EDDAB0; border-top-color: rgba(140,89,8,0.3); border-bottom-color: rgba(140,89,8,0.3); }
body.light-theme .section-strip .lbl { color: #6B2D0A; font-weight: 500; }
