/* ===== SHARED NAV (system pages + /systems) =====
   Mirrors the landing page nav: logo + section links + Systems dropdown
   + primary CTA pushing to homepage voice memo. Hash links are absolute
   so they navigate to landing-page sections from any page. */

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  position: relative;
  isolation: isolate;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 10px;
  transition: color 0.25s cubic-bezier(.3,.8,.3,1);
  text-decoration: none;
}
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 10px;
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(.34,1.45,.5,1),
              opacity 0.25s ease;
  z-index: -1;
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::before { transform: scale(1); opacity: 1; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.012em;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(.3,.8,.3,1), background 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 22px rgba(10,10,10,0.18);
}
.nav-cta:hover { transform: translateY(-1px); background: #1a1a1a; box-shadow: 0 14px 28px rgba(10,10,10,0.26); }

/* Systems dropdown */
.nav-dropdown { position: relative; }
.nav-link-button {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; cursor: pointer;
  font-family: "Geist", sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: -0.005em; color: var(--muted);
}
.nav-link-button .nav-dropdown-caret { width: 12px; height: 12px; transition: transform 0.2s ease; }
.nav-dropdown[data-open="true"] .nav-link-button { color: var(--cream); }
.nav-dropdown[data-open="true"] .nav-link-button::before { transform: scale(1); opacity: 1; }
.nav-dropdown[data-open="true"] .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(960px, calc(100vw - 64px));
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(10,10,10,0.12), 0 8px 18px rgba(10,10,10,0.06);
  padding: 28px 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 60;
}
.nav-dropdown[data-open="true"] .nav-dropdown-panel {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 28px; }
.nav-dd-col { display: flex; flex-direction: column; gap: 7px; }
.nav-dd-head {
  font-family: "Geist Mono", monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 4px;
}
.nav-dd-head-second { margin-top: 14px; }
.nav-dd-link {
  font-family: "Geist", sans-serif; font-weight: 500; font-size: 13.5px;
  letter-spacing: -0.005em; color: var(--muted);
  transition: color 0.15s ease;
  text-decoration: none;
}
.nav-dd-link:hover { color: var(--ink); }
.nav-dd-all {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  width: 100%; justify-content: flex-end;
  font-family: "Geist Mono", monospace; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  text-decoration: none;
}
.nav-dd-all svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.nav-dd-all:hover svg { transform: translateX(4px); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: inline-flex; }
}

/* ===== Mobile hamburger button ===== */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: border-color 0.2s ease;
}
.nav-hamburger:hover { border-color: var(--line-strong); }
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), opacity 0.2s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ===== Mobile sheet ===== */
.nav-mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--cream);
  overflow-y: auto;
  padding: 20px 22px 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.nav-mobile-sheet[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.nav-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.nav-mobile-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.nav-mobile-logo-mark { width: 38px; height: 38px; border-radius: 8px; }
.nav-mobile-logo-word {
  font-family: "Geist", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.018em;
}
.nav-mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.nav-mobile-close svg { width: 18px; height: 18px; }
.nav-mobile-primary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.nav-mobile-link {
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.018em;
  color: var(--ink);
  padding: 12px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-mobile-systems-head {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.nav-mobile-ind { margin-bottom: 18px; }
.nav-mobile-ind-head {
  font-family: "Geist", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 6px;
}
.nav-mobile-sublink {
  display: block;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  padding: 11px 0;
  min-height: 44px;
  text-decoration: none;
}
.nav-mobile-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 16px 26px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.012em;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}
