/* 00-header — DESKTOP (1024 px and wider). HERO-D. Every selector starts with .site-header .v-desktop */

/* The glass bar. It sits over the hero's sky; once the page moves (base.js adds .scrolled) it gets a soft shadow (no line). */
.site-header .v-desktop .hd {
  height: var(--header-h);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
          backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(221, 226, 232, 0), 0 1px 2px rgba(15, 26, 43, 0), 0 3px 8px rgba(15, 26, 43, 0);
  transition: box-shadow .35s var(--ease);
}
/* Scrolled: a visible edge and the app's row depth. */
.site-header.scrolled .v-desktop .hd {
  box-shadow: var(--depth-1);   /* no hairline (founder: no lines) */
}

/* logo | nav (centred on the page) | button */
.site-header .v-desktop .hd-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The real ribbon logo, 39 px tall (width only; base.css keeps the height in proportion). */
.site-header .v-desktop .hd-logo {
  justify-self: start;
  display: block;
  border-radius: 6px;
  transition: transform .25s var(--ease);
}
.site-header .v-desktop .hd-logo img { width: 126px; }
@media (hover: hover) {
  .site-header .v-desktop .hd-logo:hover { transform: rotate(-2deg); }
}

/* Nav: the app tab bar's soft pill on hover, and a pill that slides to the section in view. */
.site-header .v-desktop .hd-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-header .v-desktop .hd-nav a {
  position: relative;
  z-index: 1;
  display: block;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  line-height: 38px;
  letter-spacing: -.005em;
  color: var(--ink);
  white-space: nowrap;
  transition: color .25s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
/* Hover: the app tab bar's soft pill, with a subtle edge. */
@media (hover: hover) {
  .site-header .v-desktop .hd-nav a:hover { background: rgba(0, 0, 0, .055); box-shadow: inset 0 0 0 1px var(--edge); }
  .site-header .v-desktop .hd-nav a[aria-current]:hover { background: transparent; box-shadow: none; }
}
.site-header .v-desktop .hd-nav a:active { background: rgba(0, 0, 0, .08); box-shadow: inset 0 0 0 1px var(--edge-strong); }
.site-header .v-desktop .hd-nav a:focus-visible { outline-offset: 0; border-radius: 999px; }
.site-header .v-desktop .hd-nav a[aria-current] { color: var(--accent-edge); }

.site-header .v-desktop .hd-pill {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 50%;
  width: var(--pw, 0px);
  height: 38px;
  margin-top: -19px;
  border-radius: 999px;
  /* Selected: a raised white pill with a clear edge (readable over any section, even the deep blue one). */
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--edge), var(--depth-1);
  opacity: 0;
  transform: translateX(var(--px, 0px));
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s var(--ease);
  pointer-events: none;
}
.site-header .v-desktop .hd-pill.on { opacity: 1; }
.site-header .v-desktop .hd-pill.jump { transition: opacity .3s var(--ease); }

.site-header .v-desktop .hd-cta { justify-self: end; }

/* At 1024–1119 px the nav needs a little less air. */
@media (max-width: 1119.98px) {
  .site-header .v-desktop .hd-in { gap: 16px; }
  .site-header .v-desktop .hd-nav a { padding: 0 12px; font-size: 14.5px; }
}
