/* ============================================================
   Slidey — shared navigation for the pages outside the homepage
   (work index, case studies, privacy). Mirrors the homepage nav in
   css/main.css; sticky rather than fixed so page content is not
   overlapped, since these pages have no full-height hero.
   Behaviour lives in js/nav.js.
   ============================================================ */
  #nav {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    padding: 30px clamp(22px, 4vw, 56px);
    border-bottom: 1px solid transparent;
    transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, color 0.35s ease;
  }
  #nav.scrolled {
    padding-top: 15px; padding-bottom: 15px;
    background: rgba(8,9,11,0.72);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
  }
  #nav a { text-decoration: none; }
  .logo { display: flex; align-items: center; gap: 14px; }
  .mark {
    width: 38px; height: 38px; border-radius: 9px; background: var(--ink);
    display: grid; place-items: center; overflow: hidden; flex: none;
  }
  .wordmark { font-weight: 800; font-size: 19px; letter-spacing: 0.16em; }
  .nav-mid { display: flex; gap: 36px; }
  .nav-mid a { font-size: 20px; font-weight: 700; letter-spacing: 0.005em; color: var(--ink); transition: color 0.3s, opacity 0.3s; }
  .nav-mid a:hover { opacity: 0.6; }
  .nav-mid .nav-contact { display: none; }
  .nav-right { display: flex; align-items: center; gap: 22px; }
  .lang-sw {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
    color: var(--dim); transition: color 0.3s ease;
  }
  .lang-sw:hover { color: var(--ink); }
  .nav-burger {
    display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }
  #nav.menu-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  #nav.menu-open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .btn-pill {
    border: 1px solid var(--hot); background: var(--hot); color: var(--hot-ink); cursor: pointer;
    border-radius: 100px; padding: 11px 22px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
    transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
  }
  a.btn-pill { display: inline-flex; align-items: center; text-decoration: none; }
  .btn-pill:hover { background: #7cec96; border-color: #7cec96; transform: translateY(-1px); }

  @media (max-width: 860px) {
    .nav-burger { display: inline-flex; }
    .btn-pill { min-height: 44px; }
    .nav-mid {
      display: none;
      position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; gap: 0;
      /* fully opaque: at 96% the page heading behind still ghosted through */
      background: #08090b;
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
      padding: 6px 0 10px;
    }
    #nav.menu-open .nav-mid { display: flex; }
    .nav-mid a { padding: 14px clamp(22px,5vw,40px); font-size: 15px; }
    .nav-mid .nav-contact { display: block; }
    #nav .btn-pill { display: none; }
  }
  @media (max-width: 560px) { #nav { padding-left: 18px; padding-right: 18px; } }
  @media (max-width: 400px) { #nav { padding-left: 14px; padding-right: 14px; } .nav-burger { width: 36px; } }
