/* The site header, one definition for the home and agentic pages (17, 18), so it is the same on both:
 *   <header class="site-hd" id="nav"><a class="ivers-logo">…</a><nav>…</nav><a class="cta">…</a></header>
 * A full bar at the top of the page. Once the page leaves the top it gets .float and becomes a dark capsule
 * in the middle, only as wide as what is in it. Link after own.css and before logo.css. */
.site-hd {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 52px; box-sizing: border-box;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 0 max(24px, calc(50vw - 580px));
  font: 400 13.5px/1.2 'Inter', system-ui, sans-serif; letter-spacing: 0;
  color: var(--ink); background: rgba(255, 255, 255, 0.96);
  border: 1px solid transparent; border-bottom-color: rgba(0, 0, 0, 0.07);
  view-transition-name: site-hd;
}
.site-hd a { text-decoration: none; }
.site-hd .ivers-logo { justify-self: start; color: inherit; }
.site-hd nav { display: flex; gap: 30px; }
.site-hd nav a { color: inherit; opacity: 0.72; transition: opacity 200ms; }
.site-hd nav a.on, .site-hd nav a:hover { opacity: 1; }
.site-hd .cta { justify-self: end; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #fff; background: var(--ink); transition: background 200ms; }
.site-hd .cta:hover { background: #000; }

.site-hd.float {
  top: 12px; left: 50%; right: auto; width: max-content; max-width: calc(100vw - 24px); height: 48px; transform: translateX(-50%);
  display: flex; gap: 26px; padding: 0 7px 0 22px; border-radius: 999px; border-color: transparent;
  background: var(--ink); color: #fff; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.55);
  animation: capsule 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes capsule { from { opacity: 0; transform: translateX(-50%) translateY(-14px); } }
.site-hd.float nav { gap: 22px; }
.site-hd.float nav a { color: rgba(255, 255, 255, 0.66); opacity: 1; }
.site-hd.float nav a.on, .site-hd.float nav a:hover { color: #fff; }
.site-hd.float .ivers-logo { --logo-stop: var(--accent-hi, #ff8a5c); }
.site-hd.float .cta, .site-hd.float .cta:hover { background: #fff; color: var(--ink); padding: 8px 16px; }
.site-hd.float .cta:hover { opacity: 0.9; }

/* on a phone there is room for the name, the other page and the action */
@media (max-width: 600px) {
  .site-hd { padding: 0 16px; gap: 14px; }
  .site-hd nav a.on { display: none; }
  .site-hd.float { gap: 16px; padding: 0 7px 0 18px; }
}

/* going between the two pages: the header stays where it is and the page under it fades over */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  .site-hd.float { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
