/* =========================================================
   MOBILE NAV — hamburger + full-screen menu (≤ 720px)
   Loaded after the page styles so it wins the cascade.
   ========================================================= */
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav { padding: 14px var(--gutter); }
  .nav-logo {
    font-size: 12px;
    letter-spacing: 0.14em;
    white-space: nowrap;
    position: relative;
    z-index: 2;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -11px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    margin-left: 11px;
    background: var(--ink);
    transition: transform 240ms ease;
  }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  /* The nav bar has a backdrop-filter, so it becomes the containing block
     for fixed children. Anchor to top/left/right and give an explicit height. */
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    height: 100svh;
    z-index: 1;
    background: rgba(10,10,10,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    padding: 0 var(--gutter);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }
  .nav.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a,
  .nav-links a:not(.nav-cta) {
    display: block;
    font-family: var(--display);
    font-weight: 300;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-transform: none;
    color: var(--ink);
  }
  .nav-links a.is-current { color: var(--accent); }
  .nav-links a.is-current::after { display: none; }
  .nav-links a.nav-cta {
    margin-top: 14px;
    font-family: var(--body);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 14px 26px;
    border-color: var(--ink);
  }

  body.menu-open { overflow: hidden; }
}
