.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.nav-wordmark {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 10px 20px;
  color: var(--white);
  transition: all 0.25s;
}

.nav-cta:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu ul {
  text-align: center;
}

.mobile-menu li {
  overflow: hidden;
  margin-bottom: 16px;
}

.mobile-link {
  font-family: var(--display);
  font-size: 56px;
  letter-spacing: 0.05em;
  color: var(--white);
  display: block;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1), color 0.2s;
}

.mobile-menu.open .mobile-link {
  transform: translateY(0);
}

.mobile-menu.open li:nth-child(1) .mobile-link { transition-delay: 0.1s; }
.mobile-menu.open li:nth-child(2) .mobile-link { transition-delay: 0.15s; }
.mobile-menu.open li:nth-child(3) .mobile-link { transition-delay: 0.2s; }
.mobile-menu.open li:nth-child(4) .mobile-link { transition-delay: 0.25s; }

.mobile-link:hover {
  color: var(--accent-dim);
}

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