html {
  --site-header-height: 72px;
  scroll-padding-top: calc(var(--site-header-height) + 12px);
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 0;
  border-bottom: 1px solid rgba(22, 56, 79, 0.12);
  box-shadow: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

header.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 16px rgba(6, 40, 95, 0.10);
}

.site-header .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: var(--content-width, 1240px);
  margin: 0 auto;
  padding: 12px 24px;
}

header.site-header .navtext {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

header.site-header .navtext a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink, #16384f);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.site-header .navtext a:hover {
  color: var(--teal, #087d8d);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.site-header .header-work {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ink, #16384f);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink, #16384f);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .header-work:hover,
.site-header .header-work[aria-current="page"] {
  background: var(--aqua, #eef8fa);
}

header.site-header .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: none;
  padding: 11px 18px;
  border: 1px solid #bb4d1b;
  border-radius: 4px;
  background: #bb4d1b;
  box-shadow: none;
  color: white;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

header.site-header .header-cta:hover {
  border-color: #a54016;
  background: #a54016;
}

.site-header a:focus-visible {
  outline: 3px solid #e69b12;
  outline-offset: 4px;
}

.site-header .brand { white-space: nowrap; }

.site-header .mobile-nav { display: none; }

.site-header .menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(22, 56, 79, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--ink, #16384f);
  cursor: pointer;
  list-style: none;
}

.site-header .menu-toggle::-webkit-details-marker { display: none; }
.site-header .menu-toggle::marker { content: ""; }
.site-header .menu-toggle svg { display: block; width: 24px; height: 24px; }
.site-header .menu-toggle:focus-visible {
  outline: 3px solid #e69b12;
  outline-offset: 3px;
}

.site-header .mobile-nav-links {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid rgba(22, 56, 79, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(22, 56, 79, 0.12);
}

.site-header .mobile-nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink, #16384f);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.site-header .mobile-nav-links a:hover { background: var(--aqua, #eef8fa); }

@media (min-width: 901px) and (max-width: 1100px) {
  .site-header .header-inner { gap: 16px; }
  header.site-header .navtext { gap: 8px 16px; }
}

@media (max-width: 900px) {
  html { --site-header-height: 61px; }
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto 44px;
    gap: 8px;
    padding: 8px 16px;
  }
  header.site-header .navtext { display: none; }
  /* Work for Us remains available in the compact top-right menu. */
  .site-header .header-actions .header-work { display: none; }
  .site-header .mobile-nav { display: block; position: relative; }
  header.site-header .header-cta { padding: 10px 12px; }
  .site-header .brand { font-size: 16px; }
  .site-header .brand > span { font-size: 26px; }
  .site-header .sun { font-size: 20px; }
  .site-header .mobile-nav:not([open]) .mobile-nav-links { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  header.site-header {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Transparent print logo; frame the artwork without its outer empty margins. */
.site-header .brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 350px;
  min-width: 0;
  min-height: 44px;
  filter: none;
  font-size: 0;
}

.site-header .brand .header-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70px;
  aspect-ratio: 657 / 130;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 901px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
}

@media (max-width: 768px) {
  .site-header .brand {
    max-width: 225px;
  }

  .site-header .brand .header-logo {
    max-height: 45px;
  }
}

@media (max-width: 430px) {
  header.site-header .header-cta {
    width: 96px;
    padding: 6px 8px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
}
