/* ============================================================
   Navigation (light)
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.1rem var(--gutter);
  transition: background-color .5s var(--ease), backdrop-filter .5s var(--ease),
              padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(244,240,231,0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-2);
  padding-block: 0.85rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; flex: 0 0 auto; z-index: 2; }
.brand__logo { height: 42px; width: auto; margin: -4px 0; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; color: var(--ink); }

/* centred links */
.nav__links {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 0.35rem; list-style: none;
}
.nav__links a {
  display: inline-block; padding: 0.5rem 0.95rem; border-radius: 100px;
  font-size: var(--t-small); font-weight: 500; color: var(--ink-soft);
  border: 1px solid transparent;
  transition: color .3s var(--ease), background-color .3s var(--ease),
              box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.nav__links a:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6);
  border-color: rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 22px -10px rgba(12,20,34,0.32);
  transform: translateY(-2px);
}
.nav__links a.is-active { color: var(--accent); }

.nav__right { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; z-index: 2; }

/* hamburger */
.burger { display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-3); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile sheet */
.msheet {
  position: fixed; inset: 0; z-index: 99; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 0.3rem;
  padding: 6rem var(--gutter) 3rem;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
body.menu-open .msheet { transform: translateY(0); opacity: 1; pointer-events: auto; }
.msheet a {
  font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 500;
  letter-spacing: -0.02em; padding: 0.35rem 0; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.msheet a:last-child { border-bottom: none; }
.msheet .btn { margin-top: 1.5rem; align-self: flex-start; color: #fff; }
/* the CTA is a pill button, not a giant menu link — reset the inherited display type */
.msheet .fbtn {
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.01em; border-bottom: none;
  margin-top: 1.8rem; align-self: flex-start; padding: 1em 2.2em;
}

@media (max-width: 1024px) {
  .nav__links { display: none; }
  /* the top-bar CTA crowds the hamburger off the edge on narrow screens;
     the hero and the menu sheet both carry a Get started, so drop it here */
  .nav__right .btn--primary,
  .nav__right .fbtn { display: none; }
  .burger { display: flex; }
}
@media (min-width: 1025px) { .msheet { display: none; } }
