/* Shared masthead for the homepage, every case study, and the 404 page. */
.portfolio-header {
  position: sticky; top: 0; z-index: 80; width: 100%; flex-shrink: 0;
  margin: 0; padding: 0; border: 0; box-shadow: none;
  background: rgba(245,245,247,.94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.4; font-size: 12px; font-weight: 400; letter-spacing: normal;
}
.portfolio-header nav.wrap {
  box-sizing: border-box; width: 100%; max-width: 1040px; height: 56px; min-height: 56px;
  margin: 0 auto; padding: 8px 22px;
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 20px; border: 0;
}
.portfolio-header, .portfolio-header * { box-sizing: border-box; }
.portfolio-header a { text-decoration: none; font-size: 12px; color: #343436; font-style: normal; letter-spacing: normal; }
.portfolio-header .brand {
  grid-column: 1; grid-row: 1; justify-self: start; padding: 0;
  font-size: 20px; font-weight: 700; letter-spacing: -.045em; white-space: nowrap;
}
.portfolio-header .brand span { color: inherit; }
.portfolio-header nav .portfolio-nav-pill {
  grid-column: 2; grid-row: 1; justify-self: center; order: initial;
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap;
  width: auto; max-width: 100%; margin: 0; padding: 0; gap: 28px;
  background: transparent; border: 0; border-radius: 0; box-shadow: none; white-space: nowrap;
}
.portfolio-header .portfolio-nav-pill a {
  display: inline-flex; align-items: center; padding: 7px 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: #515154; font-size: 12px; font-weight: 400; line-height: 1.4;
  transition: color .15s ease;
}
.portfolio-header .portfolio-nav-pill a[aria-current="location"] {
  color: #0066cc; font-weight: 600; background: transparent; box-shadow: none;
}
.portfolio-header .contact-nav {
  grid-column: 3; grid-row: 1; justify-self: end;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0; padding: 5px 14px; border: 1px solid #0071e3; border-radius: 999px;
  background: #0071e3; color: #fff; font-size: 12px; font-weight: 400;
  line-height: 1.4; white-space: nowrap; box-shadow: none; transform: none;
}
.portfolio-header a::after, .portfolio-header a::before { display: none; }
.portfolio-header a:focus-visible { outline: 3px solid #0071e3; outline-offset: 4px; }
@media (hover:hover) {
  .portfolio-header .portfolio-nav-pill a:hover { color: #0066cc; background: transparent; text-decoration: none; }
  .portfolio-header .contact-nav:hover { background: #0077ed; color: white; transform: none; text-decoration: none; }
}
@media (max-width:700px) {
  .portfolio-header nav.wrap {
    height: auto; min-height: 96px; padding: 10px 20px 8px;
    grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px;
  }
  .portfolio-header .contact-nav { grid-column: 2; grid-row: 1; }
  .portfolio-header nav .portfolio-nav-pill {
    grid-column: 1 / -1; grid-row: 2; width: 100%; gap: clamp(16px,6vw,28px);
  }
  .portfolio-header .portfolio-nav-pill a { display: inline-flex; padding: 9px 0; }
}
@media (prefers-reduced-motion:reduce) { .portfolio-header a { transition: none; } }
