/* ══════════════════════════════════════
   AURA AESTHETIC — Navigation
   Mobile-first → Desktop @1024px
   Pencil: Mobile 390x56, Desktop 1440x72
   ══════════════════════════════════════ */

/* ══════════════════════════════════
   Desktop Page Transition — fade to black
   ══════════════════════════════════ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--c-bg-dark);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page-transition.is-leaving {
  opacity: 1;
}

.page-entering .page-transition {
  opacity: 1;
  transition: none;
}

.page-transition.is-revealing {
  opacity: 0;
  transition: opacity 0.6s ease;
}


/* ── Mobile: 56px nav, fixed ── */
html { scroll-padding-top: 56px; }
body { padding-top: 56px; }
body.is-open { overflow: hidden; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: var(--c-bg-dark);
  z-index: 10000;
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

/* ── Logo: Playfair 16px ── */
.nav__logo {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 4px;
}

/* Hidden on mobile */
.nav__links { display: none; }
.nav__cta   { display: none; }

/* ── Hamburger: 2 lines → X animation ── */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  width: 32px;
  height: 32px;
  margin-left: auto;
  cursor: pointer;
  z-index: 10001;
}

.nav__hamburger-line {
  display: block;
  height: 2px;
  background: var(--c-white);
  width: 22px;
  transition: transform 0.35s var(--ease-out), opacity 0.2s, width 0.3s var(--ease-out);
  transform-origin: center;
}

.nav__hamburger-line--short {
  width: 14px;
}

/* Hamburger → X when open */
.nav__hamburger.is-open .nav__hamburger-line:first-child {
  transform: translateY(4.5px) rotate(45deg);
  width: 22px;
}

.nav__hamburger.is-open .nav__hamburger-line:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
  width: 22px;
}


/* ══════════════════════════════════
   Mobile Menu Overlay
   ══════════════════════════════════ */
/* ══════════════════════════════════
   Mobile Menu — Circle clip-path expansion
   ══════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--c-bg-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  clip-path: circle(0% at calc(100% - 40px) 28px);
  transition: clip-path 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: none;
}

.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 40px) 28px);
  pointer-events: auto;
}

/* Pre-paint: menu appears open instantly before JS runs */
.menu-entering .mobile-menu {
  clip-path: circle(150% at calc(100% - 40px) 28px) !important;
  transition: none !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* Header — hidden, nav bar handles logo + X */
.mobile-menu__header {
  display: none;
}

.mobile-menu__logo {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 4px;
}

.mobile-menu__close {
  display: none;
}

/* ── Main content area — scrollable ── */
.mobile-menu__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 80px clamp(36px, 8vw, 64px) 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Nav links — motion-library style ── */
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  counter-reset: menu-item;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  counter-increment: menu-item;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out), padding-left 0.3s;
}

.mobile-menu__link::before {
  content: "0" counter(menu-item);
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-white);
  opacity: 0.2;
  flex-shrink: 0;
  min-width: 20px;
}

.mobile-menu__link:active {
  padding-left: 16px;
}

/* Stagger */
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.19s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.33s; }

/* ── CTA — left-aligned ── */
.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 32px;
  margin-left: 40px;
  padding: 14px 32px;
  background: var(--c-accent);
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-white);
  letter-spacing: 1px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
  transition-delay: 0;
}

.mobile-menu.is-open .mobile-menu__cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.40s;
}

/* ── Footer — 2 columns + bottom, fits one screen ── */
.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: auto;
  opacity: 0;
  transition: opacity 0.5s;
  transition-delay: 0;
}

.mobile-menu.is-open .mobile-menu__footer {
  opacity: 1;
  transition-delay: 0.5s;
}

.mobile-menu__footer-cols {
  display: flex;
  gap: 32px;
}

.mobile-menu__footer-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__footer-label {
  font-family: var(--ff-body);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--c-accent);
  opacity: 0.5;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mobile-menu__footer-link {
  font-family: var(--ff-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.mobile-menu__footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-menu__footer-text {
  font-family: var(--ff-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1.5;
}


/* ══════════════════════════════════════
   Desktop — 1440x72 nav overlay
   ══════════════════════════════════════ */
@media (min-width: 1024px) {

  html { scroll-padding-top: 72px; }
  body { padding-top: 72px; }

  .nav {
    height: 72px;
  }

  .nav__logo {
    font-size: 20px;
  }

  .nav__links {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
    margin-right: 40px;
  }

  .nav__link {
    font-family: var(--ff-body);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.53);
    letter-spacing: 3px;
    transition: color var(--t-fast);
    cursor: pointer;
  }

  .nav__link:hover {
    color: var(--c-white);
  }

  .nav__cta {
    display: inline-flex;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.27);
    font-family: var(--ff-body);
    font-size: 11px;
    color: var(--c-white);
    letter-spacing: 2px;
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast);
  }

  .nav__cta:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .nav__hamburger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}
