/* ─────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 64px;
  border-bottom: 1px solid transparent;
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
  padding: 18px 64px;
  /* Vibrancy layer — colour from behind bleeds through the blur */
  background: rgba(251, 251, 253, 0.65);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  /* Hairline separator — almost invisible, just enough to read depth */
  border-bottom-color: rgba(0, 0, 0, 0.04);
  box-shadow:
    /* Top rim highlight — light catching the glass edge */
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    /* Soft depth shadow — spatial separation, not material weight */
    0 1px 0 rgba(0, 0, 0, 0.03),
    0 8px 32px rgba(0, 0, 0, 0.04);
}

.nav-logo { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.nav-logo svg { height: 40px; width: auto; transition: height 0.5s ease; }
nav.scrolled .nav-logo svg { height: 32px; }

.nav-wordmark {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  padding-left: 18px;
  border-left: 1px solid var(--rule);
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 600px) { .nav-wordmark { display: none; } }

.nav-contact {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}

.nav-contact::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

