.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-500), var(--green-400), var(--gold-300));
  z-index: 1100;
  transition: width .1s linear;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: padding .35s var(--ease-out), background .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(13, 27, 42, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img {
  height: 136px;
  width: auto;
  transition: height .35s var(--ease-out);
}

.nav.is-scrolled .nav-logo img { height: 60px; }

@media (max-width: 560px) {
  .nav-logo img { height: 88px; }
  .nav.is-scrolled .nav-logo img { height: 46px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: width .3s var(--ease-out);
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav.is-scrolled .nav-links a { color: var(--ink-soft); }
.nav.is-scrolled .nav-links a:hover { color: var(--ink); }

.nav-cta { padding: 12px 22px; font-size: 14px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.nav-burger span {
  width: 18px; height: 2px;
  background: var(--ink);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}

.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer — always fixed/off-canvas regardless of viewport, so it
   never participates in normal document flow at desktop widths */
.nav-mobile {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(78vw, 340px);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  padding: 100px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .4s var(--ease-out);
  z-index: 999;
}
.nav-mobile.is-open { transform: translateX(0); }

.nav-mobile a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.nav-mobile .btn { margin-top: 20px; }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(13, 27, 42, .45);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
  z-index: 998;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta.desktop-only { display: none; }
}
