.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--header-height);
  background: transparent;
}

.site-header__inner {
  width: var(--container-wide);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 2px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  line-height: 1;
  transform: translateY(1px);
}

.brand__title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #111;
}

.brand__subtitle {
  display: block;
  width: 100%;
  text-align: center;

  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;

  letter-spacing: 0.28em;
  text-transform: uppercase;

  color: #8c8c8c !important;
  opacity: 0.9;
}

.brand__title + .brand__subtitle {
  margin-top: -2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  opacity: 0.88;
  transition: opacity 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -8px;
  height: 10px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='18' viewBox='0 0 220 18' fill='none'%3E%3Cpath d='M2 11.8C18 10.6 32.6 11.4 47.4 11.7C63.2 12.1 78.8 11.6 94.6 11.25C111.2 10.88 127.8 10.32 144.35 10.08C159.4 9.86 174.15 10.36 188.95 10.95C198.25 11.32 207.1 11.05 217.8 10.35' stroke='%23151515' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
  transition:
    opacity 0.18s ease,
    transform 0.38s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  opacity: 1;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-link:not(:hover):not(:focus-visible):not(.is-active)::after {
  transform-origin: right center;
}
.menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--surface-strong);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px;
}

.mobile-menu__nav {
  display: grid;
  gap: 12px;
}

.mobile-menu__nav a {
  font-size: clamp(18px, 4.2vw, 24px);
  line-height: 1.18;
  letter-spacing: var(--type-nav-letter-spacing);
  font-weight: var(--type-nav-weight);
  text-transform: uppercase;
}

.mobile-menu__close {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 14px;
  letter-spacing: var(--type-nav-letter-spacing);
  text-transform: uppercase;
  font-weight: var(--type-nav-weight);
}

.site-header,
.site-header__inner {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.has-header-fill .site-header,
body.has-header-fill .site-header__inner {
  background: var(--bg) !important;
}

/* Final client revisions: header layout */
.site-header__inner {
  width: auto;
  margin: 0;
  padding-left: clamp(32px, 4.6vw, 76px);
  padding-right: clamp(32px, 4.6vw, 76px);
}

.brand {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  transform: none;
}

.brand__title {
  font-size: 15px;
  letter-spacing: 0.44em;
}

.brand__title::after {
  content: "|";
  display: inline-block;
  margin-left: 0.48em;
  letter-spacing: 0;
}

.brand__subtitle {
  width: auto;
  font-size: 10px;
  letter-spacing: 0.34em;
  color: currentColor !important;
  opacity: 0.82;
}

.brand__title + .brand__subtitle {
  margin-top: 0;
}

body.page-home .brand__title,
body.page-home .brand__subtitle,
body.page-home .nav-link,
body.projects-page .brand__title,
body.projects-page .brand__subtitle,
body.projects-page .nav-link {
  color: #fff !important;
}

body.page-home .nav-link::after,
body.projects-page .nav-link::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='18' viewBox='0 0 220 18' fill='none'%3E%3Cpath d='M2 11.8C18 10.6 32.6 11.4 47.4 11.7C63.2 12.1 78.8 11.6 94.6 11.25C111.2 10.88 127.8 10.32 144.35 10.08C159.4 9.86 174.15 10.36 188.95 10.95C198.25 11.32 207.1 11.05 217.8 10.35' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
}

body.projects-page.has-header-fill .site-header,
body.projects-page.has-header-fill .site-header__inner {
  background: #bfc0c2 !important;
}

/* Final client batch: clean thin nav underline, grey headers, mobile menu logo */
.nav-link::after {
  left: 0;
  right: 0;
  bottom: -9px;
  height: 1px;
  background: currentColor;
  background-image: none !important;
  background-size: auto;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    opacity 0.18s ease,
    transform 0.36s cubic-bezier(0.22, 0.8, 0.24, 1);
}

body.has-header-fill:not(.admin-body) .site-header,
body.has-header-fill:not(.admin-body) .site-header__inner {
  background: var(--page-grey) !important;
}

body.has-header-fill:not(.admin-body) .brand__title,
body.has-header-fill:not(.admin-body) .brand__subtitle,
body.has-header-fill:not(.admin-body) .nav-link {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  opacity: 1 !important;
}

body.has-header-fill:not(.admin-body) .brand__title::after {
  opacity: 1 !important;
}

.mobile-menu {
  background: var(--page-grey);
}

.mobile-menu__brand {
  position: absolute;
  top: 0;
  right: 16px;
  height: var(--header-height);
  display: inline-flex;
  z-index: 2;
}

.mobile-menu__close {
  display: none !important;
}


/* 0104.8 public nav underline stays white; mobile menu remains black by inherited menu override */
body:not(.admin-body) .site-header .nav-link::after {
  background: currentColor !important;
  background-image: none !important;
}
