/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  z-index: 999999;

  transform: translateY(0);

  /* 🔥 COMBINE ALL TRANSITIONS */
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s ease,
              backdrop-filter 0.3s ease;

  will-change: transform;

  background: transparent;
}

/* 🔻 HIDE NAV */
nav.nav-hidden {
  transform: translateY(-100%);
}

/* 🔺 SHOW NAV WITH BG */
nav.nav-visible {
  background: #000;
  height: 70px;
  /* optional premium */
  /* backdrop-filter: blur(8px); */
}

/* 🚫 MENU OPEN (NO BG CONFLICT) */
nav.menu-open {
  background: transparent !important;
}

/* LOGO + TOGGLER */
.nav-logo,
.nav-toggler {
  padding: 1rem;
  cursor: pointer;
}

.nav-logo img {
  width: 150px;
  height: auto;
}

/* TOGGLER */
.nav-toggler {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggler span {
  width: 40px;
  height: 2px;
  background: #fff;
  transition: 0.4s;
}

.nav-toggler.open span:first-child {
  transform: translateY(3.5px) rotate(45deg) scaleX(0.75);
}

.nav-toggler.open span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg) scaleX(0.75);
}


/* MENU */
.nav-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}


.nav-items-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* 🔥 key */
  height: 100%;
}

.nav-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
}

.nav-bg:nth-child(1) {
  background: #0f0f0f;
}

.nav-bg:nth-child(2) {
  background: #131313;
}

.nav-bg:nth-child(3) {
  background: #1d1d1d;
}

.nav-bg:nth-child(4) {
  background: #131313;
}

.nav-items {
  display: flex;
  height: 100vh;
  gap: 2rem;
  padding: 8rem 2rem 4rem 2rem;
  background: #000000;
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  pointer-events: auto;
}

.menu-reveal {
  overflow: hidden;
  display: block;
  width: fit-content;
  clip-path: inset(0 0 100% 0);
}

/* LAYOUT FIX */
.nav-primary-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* BASE LINK */
.nav-primary-links a {
  position: relative;
  display: inline-block;
  width: fit-content;
  overflow: hidden;
  color: #797979;
  text-decoration: none;
  line-height: 1.1;
  font-size: 6.5rem;
  font-family: "degular", sans-serif;
  font-weight: 300;
  will-change: transform, clip-path;
}


/* TEXT LAYERS */
.nav-primary-links a span {
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease;
}


/* SECOND TEXT */
.nav-primary-links a span:nth-child(2) {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}

/* HOVER SLIDE */
.nav-primary-links a:hover span:first-child {
  transform: translateY(-100%);
}

.nav-primary-links a:hover span:last-child {
  transform: translateY(0);
}

/* HOVER COLOR */
.nav-primary-links a:hover span {
  color: #ffffff;
  /* white on hover */
}

/* ACTIVE STATE */
.nav-primary-links a.active span:nth-child(1),
.nav-primary-links a.active span:nth-child(2) {
  color: #ffffff;
}

.nav-primary-links a {
  font-size: 6.5rem;
}

.nav-content a .line {
  transform: translateY(100%);
}

.nav-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
  margin-left: auto;
}

.nav-right>* {
  width: 340px;
  /* keeps nice column */
}

.nav-social-links {
  align-items: flex-start;
}

.nav-location {
  text-align: left;
}

.nav-footer {
  justify-content: flex-start;
}

/* CONTAINER */
.nav-social-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

/* LINK */
.nav-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

/* ICON WRAPPER */
.nav-social-links .icon {
  display: inline-block;
}

/* ICON */
.nav-social-links i {
  font-size: 14px;
  transition: filter 0.3s ease;
}

/* 🔥 HOVER */
.nav-social-links a:hover {
  color: #fff;
}

/* 👉 TRIGGER ANIMATION */
.nav-social-links a:hover .icon {
  animation: arrowReenter45 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ✨ DIAGONAL RE-ENTER (↗ direction) */
@keyframes arrowReenter45 {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }

  40% {
    transform: translate(10px, -10px);
    /* go ↗ */
    opacity: 0;
  }

  41% {
    transform: translate(-10px, 10px);
    /* re-enter ↙ */
    opacity: 0;
  }

  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.nav-location {
  max-width: 360px;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

.nav-location .label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #ffffff;
  /* accent */
  margin-bottom: 20px;
}

.nav-location .muted {
  opacity: 0.5;
}


/* FOOTER (bottom-right) */
.nav-footer {
  position: static;
  bottom: 2rem;
  right: 2rem;

  display: flex;
  align-items: center;
  gap: 40px;

  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* LINKS */
.nav-footer-links {
  display: flex;
  gap: 30px;
}

.nav-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-footer a:hover {
  color: #fff;
}



/* MOBILE */
@media (max-width: 1000px) {
  .nav-items {
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
  }

  .nav-legal,
  .nav-secondary-links {
    display: none;
  }
}