/* Top navigation, mobile menu button and full-screen mobile menu */
nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 7vw;
  color: #fff;
  background: transparent;
  transition:
    background 0.5s,
    padding 0.5s;
}
nav.s {
  background: #000000;
  padding: 12px 7vw;
  backdrop-filter: none;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 15px);
  position: relative;
  z-index: 2;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
nav a.nav-brand {
  opacity: 1;
}
nav a.nav-brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.nav-brand .nav-symbol {
  display: block;
  width: auto;
  height: clamp(30px, 3.2vw, 36px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
  transition: height 0.4s ease;
}
.nav-brand .nav-wordmark {
  display: block;
  width: auto;
  height: clamp(28px, 3vw, 34px);
  aspect-ratio: 1013 / 196;
  object-fit: contain;
  flex-shrink: 0;
  transition: height 0.4s ease;
}
nav.s .nav-brand .nav-symbol {
  height: clamp(25px, 2.6vw, 29px);
}
nav.s .nav-brand .nav-wordmark {
  height: clamp(23px, 2.4vw, 27px);
}
nav div {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 0.88rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s;
}
nav a:hover {
  opacity: 1;
}
.nav-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.85;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}
.nav-ig:hover {
  color: #d8b87a;
  opacity: 1;
  transform: translateY(-1px);
}
.nav-ig-svg {
  display: block;
}
.nav-ig-bar {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 6px;
  color: #fff;
  opacity: 0.85;
  margin-left: auto;
  margin-right: 0;
  z-index: 2;
  position: relative;
  text-decoration: none;
  line-height: 1;
  transition:
    color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}
.nav-ig-bar:hover {
  color: #d8b87a;
  opacity: 1;
  transform: translateY(-1px);
}
.mb {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  background: none;
  border: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  padding: 8px;
}
.mb span {
  height: 1px;
  width: 28px;
  background: #fff;
  transition:
    transform 0.45s,
    width 0.45s;
}
.mb span:last-child {
  width: 18px;
}
.mb.x span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.mb.x span:last-child {
  width: 28px;
  transform: translateY(-4px) rotate(-45deg);
}
@media (max-width: 860px) {
  nav {
    padding: 9px 5vw;
    background: transparent;
  }
  nav.s {
    padding: 8px 5vw;
    background: #000000;
  }
  .nav-brand {
    gap: 8px;
  }
  .nav-brand .nav-symbol {
    height: 24px;
  }
  nav.s .nav-brand .nav-symbol {
    height: 20px;
  }
  .nav-brand .nav-wordmark {
    height: 22px;
  }
  nav.s .nav-brand .nav-wordmark {
    height: 19px;
  }
  .nav-ig-bar {
    display: inline-flex;
  }
  .mb {
    display: flex;
    width: 38px;
    height: 38px;
    padding: 6px;
  }
  nav div {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    background:
      radial-gradient(circle at 75% 25%, rgba(184, 148, 90, 0.16), transparent 70%),
      rgba(14, 28, 22, 0.36);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    isolation: isolate;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    padding: 0 9vw;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.5s,
      visibility 0.5s;
  }
  nav div::before {
    content: "";
    position: absolute;
    inset: -24px;
    background: url("../../assets/images/inclusions/inclusions-bg.webp") center 35% / cover no-repeat;
    filter: blur(18px) brightness(1.05) saturate(115%);
    opacity: 0.72;
    z-index: -1;
    pointer-events: none;
  }
  nav div.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  nav div a {
    font:
      500 2.6rem/1.3 "Cormorant Garamond",
      serif;
    opacity: 0;
    transform: translateY(18px);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.68);
    transition:
      opacity 0.7s,
      transform 0.7s;
  }
  nav div.open a {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i) * 0.08s + 0.15s);
  }
  nav div a.nav-ig {
    display: none;
  }
  nav.s {
    backdrop-filter: none;
  }
}
