/* Sticky top bar: a near-opaque surface with a light blur, so the animated page under it (sky
   crossfade, stars, floating phones) never shows through as a smear. It has its own compositing
   layer, and its hovers change only transform and opacity, so a hover never re-rasterizes the
   blurred backdrop. Over the night and later sections the dark fill crossfades in (.is-dark). */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  isolation: isolate;
  transform: translateZ(0);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(28 36 51 / 0.08);
}
.topbar::before, .topbar::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transition: opacity 0.35s;
}
.topbar::before { background: var(--bar-light); }
.topbar::after { background: var(--bar-dark); opacity: 0; }
.topbar.is-dark { color: #fff; border-bottom-color: rgb(255 255 255 / 0.1); }
.topbar.is-dark::before { opacity: 0; }
.topbar.is-dark::after { opacity: 1; }

.topbar__inner {
  display: flex; align-items: center; gap: 32px;
  width: min(1200px, 100%); height: 100%; margin-inline: auto; padding: 0 var(--gutter-r) 0 40px;
}
.brand {
  display: flex; align-items: center; gap: 18px; margin-right: auto;
  text-decoration: none; font-size: 1.7rem; font-weight: 500; letter-spacing: -0.01em;
}
.brand__icon {
  width: 56px; height: 56px; border-radius: 14px;
  box-shadow: 0 6px 16px rgb(28 36 51 / 0.2);
}
.nav { display: flex; gap: 28px; }
.nav a, .menu__panel a:not(.btn) { text-decoration: none; font-size: 1.05rem; font-weight: 500; }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--mint); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.25s var(--ease-out);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

.menu { display: none; position: relative; }
.menu__toggle {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  list-style: none; cursor: pointer;
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__bars, .menu__bars::before, .menu__bars::after {
  display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor;
}
.menu__bars { position: relative; }
.menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; }
.menu__bars::before { top: -8px; }
.menu__bars::after { top: 8px; }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  display: grid; gap: 4px; min-width: 220px; padding: 12px;
  border-radius: var(--radius-card); color: var(--navy); isolation: isolate;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 18px 40px rgb(11 17 34 / 0.25);
}
.menu__panel a:not(.btn) { position: relative; padding: 10px 12px; border-radius: 10px; }
.menu__panel a:not(.btn)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgb(61 187 176 / 0.14); opacity: 0; transition: opacity 0.2s;
}
.menu__panel a:not(.btn):hover::before { opacity: 1; }
.menu__panel .btn { margin-top: 6px; }
