.site-mast {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  grid-template-areas: "logo navigation enquiry";
  align-items: center;
  column-gap: 20px;
}
.site-mast > .wordmark { grid-area: logo; justify-self: start; }
.site-mast > .quote-btn { grid-area: enquiry; justify-self: end; white-space: nowrap; }
.site-mast > .site-menu { grid-area: navigation; }
.site-mast summary { list-style: none; cursor: pointer; }
.site-mast summary::-webkit-details-marker { display: none; }
.site-mast .menu-btn { display: none; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 38px); }
.site-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav-item > span:first-child {
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: background-size .34s var(--disclosure-ease);
}
.site-nav-item:is(:focus-visible, [aria-current="page"], .is-current-section) > span:first-child,
.systems-menu[open] .systems-toggle > span:first-child,
.systems-menu:has(a:is([aria-current="page"], .is-current-section)) .systems-toggle > span:first-child {
  background-size: 100% 1px;
}
.site-chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s ease;
}
.systems-menu[open] .site-chevron { transform: translateY(2px) rotate(225deg); }
.systems-menu { position: relative; }
.systems-panel {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: -20px;
  width: 288px;
  max-height: calc(100svh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 20px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 24px rgb(24 35 33 / 9%);
}
.systems-panel a {
  display: block;
  padding-block: 10px;
  line-height: 1.35;
  font-size: 16px;
  text-underline-offset: .23em;
}
.systems-panel a + a { border-top: 1px solid var(--line); }
.systems-panel .systems-index-link { padding-block: 13px 7px; font-size: 14px; font-weight: 500; }
.systems-panel a:is(:focus-visible, [aria-current="page"], .is-current-section) { text-decoration: underline; }
@media (hover: hover) {
  .site-nav-item:hover > span:first-child { background-size: 100% 1px; }
  .systems-panel a:hover { text-decoration: underline; }
}
@media (max-width: 940px) {
  .site-mast {
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "logo enquiry navigation";
    column-gap: clamp(9px, 2.5vw, 22px);
  }
  .site-mast .menu-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
  }
  .site-mast .hamb { width: 15px; height: 7px; border-block: 1px solid; }
  .site-menu:not([open]) .menu-open-label, .site-menu[open] .menu-closed-label { display: none; }
  .site-mast:has(.site-menu[open]) { background: var(--paper); color: var(--ink); backdrop-filter: none; }
  .site-mast:has(.site-menu[open]) > .quote-btn { border-color: currentColor; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: block;
    padding: 0 var(--gutter) max(16px, env(safe-area-inset-bottom));
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgb(24 35 33 / 9%);
  }
  .site-nav-item { min-height: 52px; font-size: clamp(20px, 4.6vw, 26px); letter-spacing: -.03em; }
  .site-nav > a { border-top: 1px solid var(--line); }
  .systems-toggle { justify-content: space-between; }
  .site-chevron { margin-right: 4px; width: 9px; height: 9px; }
  .systems-panel {
    position: static;
    width: auto;
    max-height: none;
    padding: 0 0 10px 16px;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }
  .systems-panel a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; }
  .systems-panel a + a { border-color: rgb(24 35 33 / 12%); }
  .site-nav :focus-visible { outline-offset: -2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .systems-menu[open] .systems-panel { animation: nav-arrive .26s ease-out both; }
}
@media (max-width: 940px) and (prefers-reduced-motion: no-preference) {
  .site-menu[open] .site-nav { animation: nav-arrive .26s ease-out both; }
}
@keyframes nav-arrive {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .site-chevron, .site-nav-item > span:first-child { transition: none; }
}
