/* Shared navbar + mobile menu: loaded by the homepage and every subpage, so the nav is identical everywhere */
:root { --ease-io: cubic-bezier(0.76, 0, 0.24, 1); }
.nav a, .menu a { text-decoration: none; }
.nav button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
/* ---------- Nav: floating pill ---------- */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 800; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; transition: transform 0.7s var(--ease); }
.nav.is-hidden { transform: translateY(calc(-100% - 28px)); }
.nav__pill {
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
  isolation: isolate; border: 1px solid rgba(7, 11, 31, 0.08);
  box-shadow: 0 12px 40px -14px rgba(7, 11, 31, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.5s var(--ease);
}
/* glass lives on its own layer: the blur re-samples the moving hero every frame,
   and keeping it off the text layer stops the nav text from shimmering */
.nav__pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: background 0.5s var(--ease);
}
.nav.is-scrolled .nav__pill { box-shadow: 0 18px 50px -16px rgba(7, 11, 31, 0.38), inset 0 1px 0 #fff; }
.nav.is-scrolled .nav__pill::before { background: rgba(255, 255, 255, 0.88); }
.nav__logo { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 5px; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: -0.02em; text-transform: uppercase; }
.nav__logo img { width: 30px; height: 30px; border-radius: 50%; mix-blend-mode: multiply; transition: rotate 0.6s var(--ease); }
.nav__logo:hover img { rotate: -12deg; }
.nav__links { position: relative; display: flex; gap: 2px; padding: 0 4px; margin: 0 4px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.nav__links a { position: relative; z-index: 1; height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; font-family: var(--f-body); font-weight: 500; font-size: 14px; color: var(--ink-dim); transition: color 0.35s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-current { color: #fff; }
.nav__indicator { position: absolute; z-index: 0; top: 0; left: 0; height: 40px; width: 0; border-radius: 999px; background: var(--ink); opacity: 0; pointer-events: none; transition: transform 0.55s var(--ease), width 0.55s var(--ease), opacity 0.3s; }
.nav__right { display: flex; align-items: center; gap: 6px; }
.nav__cta { height: 40px; display: inline-flex; align-items: center; gap: 10px; padding: 0 6px 0 18px; border-radius: 999px; background: var(--blue); color: #fff; font-family: var(--f-body); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background 0.35s var(--ease); }
.nav__cta-arrow { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-size: 13px; transition: transform 0.45s var(--ease), color 0.35s; }
.nav__cta:hover { background: var(--ink); }
.nav__cta:hover .nav__cta-arrow { transform: rotate(-45deg); color: var(--ink); }
.nav__progress { position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 23px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__pill { width: 100%; max-width: 560px; justify-content: space-between; }
  .nav__burger { display: block; }
}
@media (max-width: 400px) { .nav__cta { display: none; } }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 700; background: var(--blue); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 100px var(--gutter) var(--gutter); clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path 0.8s var(--ease-io); visibility: hidden; }
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu__links a { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 10vw, 76px); line-height: 1.05; letter-spacing: -0.04em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding: 8px 0; }
.menu__links .mono { color: var(--ice); }
.menu__foot { display: flex; flex-direction: column; gap: 12px; }
.menu__socials { display: flex; gap: 18px; }
