/* The site nav, shared by the home page and the case studies, and the "Ask me anything" box.
   Home: the box sits under the hero and docks into the middle of the nav as you scroll (landing.js).
   Case studies: the box lives in the middle of the nav from the start. */
:root { --nav-ink: #0c0c0c; --nav-muted: #67676e; --nav-accent: #b8336a; --nav-font: Manrope, system-ui, sans-serif; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255,254,252,0.9); backdrop-filter: blur(10px); font-size: 14px; font-weight: 500; }
.nav-in { position: relative; max-width: 1440px; margin: 0 auto; box-sizing: border-box; padding: 18px 40px; display: flex; justify-content: space-between; align-items: center; }
.logo { height: 30px; width: auto; display: block; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; }
.nav-pill { padding: 8px 14px; border: 1px solid var(--nav-ink); border-radius: 999px; }
.nav { font-family: var(--nav-font); }
.nav a { color: var(--nav-ink); }
.nav a:hover { color: var(--nav-muted); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ask me anything: styled like the nav (pill, thin border, frosted off-white, Manrope 14) ---------- */
.chat { display: flex; align-items: center; gap: 10px; height: 48px; box-sizing: border-box; padding: 0 6px 0 18px;
  background: rgba(255,254,252,0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(12,12,12,0.16); border-radius: 999px; box-shadow: 0 6px 20px -10px rgba(20,20,40,0.18);
  transition: border-color .2s, box-shadow .2s; }
.chat:hover { border-color: rgba(12,12,12,0.32); }
.chat:focus-within { border-color: var(--nav-ink); box-shadow: 0 6px 20px -10px rgba(20,20,40,0.22); }
.chat-spark { flex: none; fill: var(--nav-accent); }
.chat input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 14px var(--nav-font); color: var(--nav-ink); }
.chat input::placeholder { color: var(--nav-muted); font-weight: 400; }
.chat-send { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 0; background: var(--nav-ink); color: #fff; cursor: pointer; transition: background .2s; }
.chat-send:hover { background: var(--nav-accent); }
.chat-note { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; font-size: 13px; color: var(--nav-muted); }

/* case studies: the box in the middle of the nav, same place the home page's box docks */
.nav-chat { position: absolute; left: 50%; top: 50%; z-index: 1; width: 560px; max-width: calc(100% - 760px); transform: translate(-50%, -50%); }
.nav-chat .chat-note { text-align: center; }
@media (max-width: 1060px) { .nav-chat { display: none; } }
@media (max-width: 600px) { .nav-in { padding: 14px 16px; } .nav-links { gap: 14px; font-size: 13px; } .nav-pill { padding: 6px 11px; } .logo { height: 26px; } }
