/* Shared header and footer, matching contact.html. Keep page-specific styles
   outside this file. IDs deliberately isolate chrome from older page themes. */
@font-face {
  font-family: FlogesChrome;
  src: url('/assets/font/floges-sans/floges-sans-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
#siteNav:not(.home-original-header).site-header,
#footer.site-footer {
  --ink: #17201d;
  --paper: #f3f5ef;
  --lime: #b9ed83;
  --focus: #b9ed83;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: FlogesChrome, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
}
#siteNav:not(.home-original-header) *, #footer * { box-sizing: border-box; font-family: inherit; }
#siteNav:not(.home-original-header) a, #footer a { color: inherit; text-underline-offset: 5px; }
#siteNav:not(.home-original-header) :is(a, button):focus-visible,
#footer :is(a, summary):focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; }
#siteNav:not(.home-original-header) > .shell,
#footer > .shell {
  width: min(100% - 128px, 1240px);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
#siteNav:not(.home-original-header).site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 10;
  box-shadow: 0 1px 0 #ffffff26;
  transform: none;
}
#siteNav:not(.home-original-header) .header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 72px;
  border: 0;
  padding-block: 0;
}
#siteNav:not(.home-original-header) .brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  margin: 0;
  padding: 0;
}
#siteNav:not(.home-original-header) .brand img { display: block; width: 132px; height: 29px; }
#siteNav:not(.home-original-header) .site-navigation {
  display: flex;
  width: auto;
  position: static;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 28px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}
#siteNav:not(.home-original-header) .site-navigation > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
}
#siteNav:not(.home-original-header) .site-navigation > a:not(.header-cta) { position: relative; }
#siteNav:not(.home-original-header) .site-navigation > a:not(.header-cta)::after {
  content: '';
  position: absolute;
  inset: auto 0 5px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}
#siteNav:not(.home-original-header) .site-navigation > a:is(:hover, :focus-visible, [aria-current])::after { transform: scaleX(1); }
#siteNav:not(.home-original-header) .site-navigation .header-cta {
  gap: 30px;
  padding: 10px 20px !important;
  border: 1px solid #a7b5a8;
  border-radius: 0;
  background: transparent;
  color: var(--paper);
}
#siteNav:not(.home-original-header) .header-cta:hover {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}
#siteNav:not(.home-original-header) .menu-toggle { display: none; }
#siteNav:not(.home-original-header) .arrow, #footer .arrow {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  font-size: 0;
  background: currentColor;
  -webkit-mask: url('/assets/icons/arrow-right.svg') center / contain no-repeat;
  mask: url('/assets/icons/arrow-right.svg') center / contain no-repeat;
  transform: none;
}
#footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "brand links" "wordmark links" "bottom bottom";
  gap: 44px 80px;
  padding-block: 38px 26px;
  border: 0;
  border-top: 1px solid #465146;
}
#footer .footer-brand { display: block; grid-area: brand; }
#footer .footer-brand p {
  max-width: 460px;
  margin: 0;
  color: var(--paper);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.015em;
}
#footer .footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  margin-top: 0;
  font-size: 14px;
  color: #bcc8b7;
  text-decoration: none;
}
#footer .footer-top-link .arrow { width: 18px; height: 18px; transform: rotate(-90deg); }
#footer .footer-top-link:is(:hover, :focus-visible) { color: var(--lime); text-decoration: underline; }
#footer .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: 10px;
}
#footer .footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: inherit;
  font-size: 15px;
  text-decoration: none;
}
/* Keep the current destination visible alongside hover and keyboard focus. */
#footer :is(.footer-links a, .footer-contact a, .footer-diagnostic):is(:hover, :focus-visible, [aria-current]) {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
#footer .footer-wordmark {
  display: block;
  grid-area: wordmark;
  align-self: end;
  align-items: normal;
  text-decoration: underline;
  width: 100%;
  max-width: 620px;
  margin: 0;
}
#footer .footer-wordmark img { display: block; width: 100%; height: auto; max-width: 100%; opacity: 0.96; }
#footer .footer-links {
  display: grid;
  grid-area: links;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr);
  gap: 40px;
  align-content: start;
  margin: 0;
  padding: 0;
}
#footer .footer-link-group {
  display: block;
}
#footer .footer-group-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
#footer .footer-link-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
#footer .footer-link-group summary::-webkit-details-marker {
  display: none;
}
#footer .footer-link-group h2 {
  margin: 0 0 14px;
  color: #b5c1af;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-wrap: initial;
}
#footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}
#footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  grid-area: bottom;
  gap: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #c5cec6;
  font-size: 13px;
}
#footer .footer-bottom > :is(span, a) { font-size: inherit; line-height: normal; }
#footer .footer-diagnostic {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  line-height: normal;
  text-decoration: none;
}
#footer .footer-diagnostic .arrow { width: 18px; height: 18px; flex-basis: 18px; }
@media (max-width: 1199px) {
  #siteNav:not(.home-original-header) > .shell, #footer > .shell { width: calc(100% - 80px); }
  #footer .footer-inner { gap: 36px 56px; }
}
@media (max-width: 1023px) {
  #footer .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "links" "wordmark" "bottom";
    gap: 32px;
  }
  #footer .footer-wordmark { max-width: 460px; }
  #siteNav:not(.home-original-header) .header-inner { min-height: 64px; position: relative; }
  #siteNav:not(.home-original-header) .brand img { width: 118px; height: auto; }
  #siteNav:not(.home-original-header) .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    margin-left: auto;
    padding: 10px 14px;
    border: 1px solid #879581;
    border-radius: 0;
    background: transparent;
    color: var(--paper);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
  }
  #siteNav:not(.home-original-header) .menu-lines { display: block; position: relative; width: 16px; height: 16px; border: 0; transform: none; }
  #siteNav:not(.home-original-header) .menu-lines::before, #siteNav:not(.home-original-header) .menu-lines::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: translateY(-4px);
  }
  #siteNav:not(.home-original-header) .menu-lines::after { transform: translateY(4px); }
  #siteNav:not(.home-original-header) .menu-toggle[aria-expanded='true'] .menu-lines::before { transform: rotate(45deg); }
  #siteNav:not(.home-original-header) .menu-toggle[aria-expanded='true'] .menu-lines::after { transform: rotate(-45deg); }
  #siteNav:not(.home-original-header) .site-navigation {
    position: absolute;
    top: 100%;
    left: -40px;
    right: -40px;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    margin: 0;
    padding: 12px 40px 28px;
    border-bottom: 1px solid #3e4a42;
    background: var(--ink);
  }
  #siteNav:not(.home-original-header).is-enhanced .site-navigation:not(.is-open) { display: none; }
  #siteNav:not(.home-original-header) .site-navigation > a { min-height: 52px; padding: 14px 0; font-size: 18px; }
  #siteNav:not(.home-original-header) .site-navigation > a:not(.header-cta)::after { inset: auto auto 7px 0; width: 36px; }
  #siteNav:not(.home-original-header) .site-navigation .header-cta {
    align-self: stretch;
    justify-content: space-between;
    min-height: 50px;
    margin-top: 14px;
    background: var(--lime);
    border-color: var(--lime);
    color: var(--ink);
    font-size: 16px;
  }
  #siteNav:not(.home-original-header):not(.is-enhanced) { position: relative; }
  #siteNav:not(.home-original-header):not(.is-enhanced) .header-inner { flex-wrap: wrap; }
  #siteNav:not(.home-original-header):not(.is-enhanced) .menu-toggle { display: none; }
  #siteNav:not(.home-original-header):not(.is-enhanced) .site-navigation {
    position: static;
    width: 100%;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 0 0 20px;
  }
}
@media (max-width: 767px) {
  #siteNav:not(.home-original-header) > .shell, #footer > .shell { width: calc(100% - 40px); }
  #siteNav:not(.home-original-header) .site-navigation { left: -20px; right: -20px; padding-inline: 20px; }
  #footer .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 24px 18px; }
  #footer .footer-brand p { font-size: 14px; }
  #footer .footer-top-link { font-size: 13px; gap: 8px; }
  #footer .footer-wordmark { width: 140px; margin-top: 0; }
  #footer .footer-links { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid #465146; }
  #footer .footer-link-group { border-top: 1px solid #465146; }
  #footer .footer-link-group summary { min-height: 52px; cursor: pointer; }
  #footer .footer-link-group summary::after { content: "+"; color: #b5c1af; font-size: 24px; }
  #footer .footer-link-group[open] summary::after { content: "−"; }
  #footer .footer-group-links { padding-bottom: 12px; }
  #footer .footer-links a { font-size: 14px; }
  #footer .footer-link-group h2 { font-size: 14px; margin-bottom: 0; }
  #footer .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    font-size: 12px;
  }
  #footer .footer-bottom .footer-top-link { font-size: 12px; }
  #footer .footer-diagnostic { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 359px) {
  #footer .footer-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  #siteNav:not(.home-original-header) .header-cta { transition: background-color 180ms ease, color 180ms ease; }
  #siteNav:not(.home-original-header) .site-navigation > a::after,
  #siteNav:not(.home-original-header) .menu-lines::before, #siteNav:not(.home-original-header) .menu-lines::after { transition: transform 180ms ease; }
}
@media print {
  #siteNav:not(.home-original-header).site-header, #footer.site-footer { display: none; }
}

/* Footer content follows the body measure used by each page family. */
.editorial-page #footer > .shell,
.assessment-page #footer > .shell { width: min(100% - 96px, 1296px); }
@media (max-width: 1199px) {
  .editorial-page #footer > .shell,
  .assessment-page #footer > .shell { width: calc(100% - 64px); }
}
.case-page #footer > .shell { width: min(100% - 128px, 1240px); }
@media (max-width: 1199px) {
  .case-page #footer > .shell { width: calc(100% - 80px); }
}
.home-studio #footer > .shell { width: min(100% - 96px, 1320px); }
@media (max-width: 1279px) {
  .home-studio #footer > .shell { width: calc(100% - 64px); }
}
@media (max-width: 767px) {
  .editorial-page #footer > .shell,
  .assessment-page #footer > .shell,
  .home-studio #footer > .shell { width: calc(100% - 40px); }
}
@media (max-width: 359px) {
  .home-studio #footer > .shell { width: calc(100% - 32px); }
}
/* Older service and industry pages use padded .wrap containers. */
body:not(.editorial-page):not(.assessment-page):not(.home-studio) #footer > .shell {
  width: min(
    calc(100% - var(--page-gutter) - var(--page-gutter)),
    calc(var(--page-max) - var(--page-gutter) - var(--page-gutter))
  );
}

/* Services dropdown, shared by the homepage header and the subpage header.
   "Services" stays a real link; the caret button opens the menu. Without
   JavaScript the panel still opens on hover and keyboard focus. On mobile
   the services are listed under "Services" inside the menu. */
#siteNav .nav-services {
  position: relative;
  display: flex;
  align-items: center;
}
#siteNav .nav-services-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
  color: inherit;
  font-size: 14px;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
}
#siteNav:not(.home-original-header) .nav-services-link::after {
  content: "";
  position: absolute;
  inset: auto 0 5px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}
#siteNav:not(.home-original-header) .nav-services-link:is(:hover, :focus-visible)::after,
#siteNav:not(.home-original-header) .nav-services:has([aria-current]) .nav-services-link::after {
  transform: scaleX(1);
}
#siteNav.home-original-header .nav-services-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--lime);
}
#siteNav .nav-services-toggle {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 44px;
  margin: 0 0 0 2px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
#siteNav:not(.is-enhanced) .nav-services-toggle {
  display: none;
}
#siteNav .nav-caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
#siteNav .nav-services.is-open .nav-caret {
  transform: translateY(2px) rotate(-135deg);
}
#siteNav .nav-services-panel {
  border: 1px solid #ffffff1f;
  background: #0f1714;
  box-shadow: 0 24px 48px #00000066;
  padding: 10px;
}
#siteNav .nav-services-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#siteNav .nav-services-panel li a {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  color: #f3f5ef;
  text-decoration: none;
}
#siteNav .nav-services-panel li a:is(:hover, :focus-visible) {
  background: #ffffff0f;
}
#siteNav .nav-item-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
#siteNav .nav-services-panel li a:is(:hover, :focus-visible) .nav-item-title,
#siteNav .nav-services-panel li a[aria-current] .nav-item-title {
  color: var(--lime);
}
#siteNav .nav-item-desc {
  color: #a9b6ad;
  font-size: 13px;
  line-height: 1.4;
}
#siteNav .nav-services-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 6px 0;
  padding: 12px 10px 4px;
  border-top: 1px solid #ffffff1a;
  color: #a9b6ad;
  font-size: 13px;
}
#siteNav .nav-services-foot a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--lime);
  text-decoration: none;
}
#siteNav .nav-services-foot a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
#siteNav .nav-services-foot .arrow {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

@media (min-width: 1024px) {
  #siteNav .nav-services-menu {
    position: absolute;
    top: 100%;
    left: -26px;
    z-index: 30;
    width: 600px;
    padding-top: 8px; /* a hover bridge between link and panel */
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
  }
  #siteNav .nav-services.is-open .nav-services-menu,
  #siteNav:not(.is-enhanced) .nav-services:is(:hover, :focus-within) .nav-services-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  #siteNav .nav-services-menu {
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  }
  #siteNav .nav-services.is-open .nav-services-menu {
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
  }
  #siteNav .nav-caret {
    transition: transform 160ms ease;
  }
}
@media (max-width: 1023px) {
  #siteNav .nav-services {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  #siteNav .nav-services-link {
    min-height: 52px;
    padding: 14px 0;
    font-size: 18px;
  }
  #siteNav:not(.home-original-header) .nav-services-link::after {
    inset: auto auto 7px 0;
    width: 36px;
  }
  #siteNav .nav-services-toggle,
  #siteNav .nav-services-foot,
  #siteNav .nav-item-desc {
    display: none;
  }
  #siteNav .nav-services-panel {
    margin: 0 0 8px 2px;
    padding: 0 0 0 16px;
    border: 0;
    border-left: 1px solid #ffffff2e;
    background: none;
    box-shadow: none;
  }
  #siteNav .nav-services-panel ul {
    display: block;
  }
  #siteNav .nav-services-panel li a {
    padding: 10px 0;
  }
  #siteNav .nav-item-title {
    color: #c9d3cb;
    font-size: 15px;
    font-weight: 400;
  }
}
