/* Shared site header: brand, section nav and the Get in touch button. */
.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(241,240,236,.88);
  backdrop-filter:saturate(140%) blur(8px);
  -webkit-backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center;
  column-gap:30px; height:64px;
}
.brand{
  display:flex; align-items:center; gap:11px;
  font-weight:600; letter-spacing:-.01em; font-size:1.02rem;
  text-decoration:none; color:var(--ink);
}
.brand-mark{ width:22px; height:22px; display:block; flex:none; }
.nav{ display:flex; align-items:center; gap:30px; justify-self:end; }
.nav a, .nav-cta{
  font-family:"IBM Plex Mono", monospace;
  font-size:.78rem; letter-spacing:.04em; text-transform:uppercase;
  text-decoration:none; color:var(--ink-soft);
}
.nav a{ padding:6px 0; position:relative; white-space:nowrap; }
.nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:1.5px;
  background:var(--accent); transition:right .28s ease;
}
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after{ right:0; }
.nav a[aria-current="page"]{ color:var(--ink); }
.nav-cta{
  color:var(--accent); border:1px solid var(--line-strong);
  padding:8px 16px; border-radius:2px; transition:border-color .2s, color .2s, background .2s;
  white-space:nowrap;
}
.nav-cta:hover{ border-color:var(--accent); }
.nav-cta[aria-current="page"]{ background:var(--accent); border-color:var(--accent); color:var(--paper); }
@media (prefers-reduced-motion: reduce){ .nav a::after{ transition:none; } }

/* Phones: brand and button on the first row, section links on a second row. */
@media (max-width:720px){
  .topbar-inner{ grid-template-columns:1fr auto; height:auto; row-gap:0; padding-top:12px; padding-bottom:4px; }
  .nav{ grid-column:1 / -1; grid-row:2; justify-self:stretch; gap:22px; overflow-x:auto; padding:8px 0 6px; scrollbar-width:none; }
  .nav::-webkit-scrollbar{ display:none; }
  .nav a, .nav-cta{ font-size:.72rem; }
  .nav-cta{ padding:7px 12px; }
}
