/* Keep the full navigation comfortably spaced before using the compact menu. */
html { scroll-padding-top: 120px; }
.site-header .nav {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}
.site-header .nav > .nav-cta {
  white-space: nowrap;
}
.site-header .nav > .nav-cta.nav-call,
.site-header .nav .nav-links .nav-menu-cta.nav-call {
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue);
  text-shadow: none;
  text-align: center;
}
.site-header .nav > .nav-cta.nav-call:is(:hover, :focus-visible),
.site-header .nav .nav-links .nav-menu-cta.nav-call:is(:hover, :focus-visible) {
  background: var(--coastal-hover);
  border-color: var(--blue);
  color: var(--blue);
}
.site-header.site-header--overlay:not(.is-sticky) .nav > .nav-call {
  border-color: rgba(255, 255, 255, .76);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.site-header.site-header--overlay:not(.is-sticky) .nav > .nav-call:is(:hover, :focus-visible) {
  border-color: #fff;
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

/* Keep both actions on one line without crowding the links or the artwork. */
@media (min-width: 1361px) {
  .site-header.site-header--artwork .nav { gap: 18px; }
  .site-header .nav .nav-links { gap: 20px; }
  .site-header .nav-links a { white-space: nowrap; }
  .site-header .nav > .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--blue);
  }
}
@media (min-width: 1361px) and (max-width: 1500px) {
  .site-header.site-header--artwork .nav { gap: 14px; }
  .site-header .nav .nav-links { gap: 14px; }
  .site-header.site-header--artwork .brand-logo { width: 228px; }
  .site-header .nav > .nav-cta { padding-inline: 14px; }
}

@media (max-width: 1360px) {
  .site-header .nav {
    height: 82px;
    display: flex;
    justify-content: space-between;
  }
  .site-header .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    overflow-y: auto;
    padding: 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(27, 43, 56, .12);
  }
  .site-header--overlay .nav-links {
    background: rgba(20, 35, 46, .96);
  }
  .site-header .nav-links.open {
    display: flex;
  }
  .site-header.is-sticky .nav-links.open {
    background: #fff;
  }
  .site-header .nav-links .nav-menu-cta,
  .site-header.is-sticky .nav-links .nav-menu-cta {
    display: block;
    padding: 12px 16px;
    border-radius: 999px;
    background: #285878;
    color: #fff;
    text-shadow: none;
  }
  .site-header .nav-links .nav-menu-cta {
    min-height: 48px;
    text-align: center;
  }
  .site-header .nav > .nav-cta {
    display: none;
  }
  .site-header .menu-toggle {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .nav > .nav-cta { transition: none; }
  .site-header .nav > .nav-cta:hover { transform: none; }
}

/* Give the client's artwork room without stretching its original proportions. */
.site-header--artwork .nav { height: 120px; }
.site-header--artwork .brand { flex-shrink: 0; }
.site-header--artwork .brand-logo { width: 260px; height: auto; }
.site-header--artwork.is-sticky .nav,
.site-header--artwork:not(.site-header--overlay) .nav { height: 104px; }
.site-header--artwork.is-sticky .brand-logo,
.site-header--artwork:not(.site-header--overlay) .brand-logo { width: 228px; }
.footer-brand .brand-logo { width: 300px; max-width: 100%; }
@media (max-width: 1360px) {
  .site-header.site-header--artwork .nav { height: 104px; }
  .site-header.site-header--artwork .brand-logo { width: min(220px, calc(100vw - 100px)); }
  .site-header.site-header--artwork .nav-links {
    top: calc(100% + 8px);
    overflow-y: auto;
    max-height: calc(100vh - 128px);
    max-height: calc(100dvh - 128px - env(safe-area-inset-bottom));
  }
}

/* Give the expanded navigation and both contact actions enough room. */
@media (min-width: 1361px) {
  .site-header .nav.wrap { width: min(100% - 48px, 1440px); }
  .site-header .nav .nav-links { gap: 18px; }
}
