:root {
  --global-menu-paper: #f1eeeb;
  --global-menu-ink: #111113;
  --global-menu-line: rgba(17, 17, 19, .18);
  --global-menu-accent: #3894C4;
  --global-menu-ease: cubic-bezier(.2, .82, .2, 1);
}

.global-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 104px;
  height: 48px;
  padding: 0 17px 0 19px;
  color: #111;
  background: #f6f4f2;
  border: 1px solid rgba(17, 17, 19, .12);
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.global-menu-trigger:hover,
.global-menu-trigger:focus-visible {
  background: var(--global-menu-accent);
  border-color: var(--global-menu-accent);
  transform: translateY(-2px);
}

.global-menu-trigger__icon {
  display: grid;
  gap: 6px;
  width: 22px;
}

.global-menu-trigger__icon i {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.global-menu {
  position: fixed;
  z-index: 5000;
  inset: 0;
  color: var(--global-menu-ink);
  background: var(--global-menu-paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path .7s var(--global-menu-ease),
    opacity .35s ease,
    visibility .7s step-end;
  overflow: hidden;
}

.global-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0);
  transition:
    clip-path .7s var(--global-menu-ease),
    opacity .35s ease,
    visibility 0s step-start;
}

body.global-menu-open {
  overflow: hidden !important;
}

.global-menu__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 12px clamp(22px, 3.5vw, 58px);
  border-bottom: 1px solid var(--global-menu-line);
}

.global-menu__brand {
  display: block;
  width: clamp(82px, 7vw, 116px);
}

.global-menu__brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0);
}

.global-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  height: 50px;
  min-width: 110px;
  padding: 0 14px 0 20px;
  color: #fff;
  background: #111113;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.global-menu__close:hover,
.global-menu__close:focus-visible {
  color: #111;
  background: var(--global-menu-accent);
  transform: translateY(-2px);
}

.global-menu__close-icon {
  position: relative;
  width: 22px;
  height: 22px;
}

.global-menu__close-icon::before,
.global-menu__close-icon::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.global-menu__close-icon::before { transform: rotate(45deg); }
.global-menu__close-icon::after { transform: rotate(-45deg); }

.global-menu__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, .78fr);
  gap: clamp(40px, 5vw, 96px);
  height: calc(100dvh - 88px);
  padding: clamp(22px, 3.2vh, 42px) clamp(22px, 3.5vw, 58px) clamp(24px, 3.5vh, 48px);
}

.global-menu__left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.global-menu__left::-webkit-scrollbar { display: none; }

.global-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(2px, .35vh, 8px);
}

.global-menu__nav > a,
.global-menu__services-title {
  display: inline-flex;
  align-items: center;
  gap: .16em;
  max-width: 100%;
  color: var(--global-menu-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5vw, 86px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .22s ease, transform .35s var(--global-menu-ease);
}

.global-menu__nav > a:hover,
.global-menu__nav > a:focus-visible,
.global-menu__services-title:hover,
.global-menu__services-title:focus-visible {
  color: #3894C4;
  transform: translateX(10px);
}

.global-menu__services-title {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.global-menu__dot {
  flex: 0 0 auto;
  width: .12em;
  height: .12em;
  min-width: 10px;
  min-height: 10px;
  background: var(--global-menu-accent);
  border-radius: 50%;
}

.global-menu__services {
  width: 100%;
  margin-block: 0 clamp(4px, .7vh, 10px);
}

.global-menu__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin: 14px 0 12px;
}

.global-menu__chips a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 15px;
  color: #171719;
  border: 1px solid rgba(17, 17, 19, .22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.global-menu__chips a:hover,
.global-menu__chips a:focus-visible {
  color: #071008;
  background: var(--global-menu-accent);
  border-color: var(--global-menu-accent);
}

.global-menu__media {
  position: relative;
  align-self: stretch;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #d9d5d1;
}

.global-menu__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
}

.global-menu__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.28));
  pointer-events: none;
}

.global-menu__caption {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.global-menu__caption small {
  max-width: 230px;
  font-size: inherit;
  text-align: right;
}

.global-menu.is-open .global-menu__nav > a,
.global-menu.is-open .global-menu__services,
.global-menu.is-open .global-menu__media {
  animation: global-menu-enter .75s var(--global-menu-ease) both;
}

.global-menu.is-open .global-menu__nav > a:nth-of-type(1) { animation-delay: .12s; }
.global-menu.is-open .global-menu__services { animation-delay: .16s; }
.global-menu.is-open .global-menu__nav > a:nth-of-type(2) { animation-delay: .20s; }
.global-menu.is-open .global-menu__nav > a:nth-of-type(3) { animation-delay: .24s; }
.global-menu.is-open .global-menu__nav > a:nth-of-type(4) { animation-delay: .28s; }
.global-menu.is-open .global-menu__nav > a:nth-of-type(5) { animation-delay: .32s; }
.global-menu.is-open .global-menu__nav > a:nth-of-type(6) { animation-delay: .36s; }
.global-menu.is-open .global-menu__media { animation-delay: .20s; }

@keyframes global-menu-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .global-menu__layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
    gap: 32px;
  }

  .global-menu__nav > a,
  .global-menu__services-title {
    font-size: clamp(40px, 5.2vw, 66px);
  }
}

@media (max-width: 800px) {
  .global-menu__top {
    height: 70px;
    padding: 8px 16px;
  }

  .global-menu__brand { width: 78px; }

  .global-menu__close {
    min-width: 96px;
    height: 46px;
    padding-inline: 16px 12px;
  }

  .global-menu__layout {
    display: block;
    height: calc(100dvh - 70px);
    padding: 24px 18px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .global-menu__left {
    display: block;
    overflow: visible;
  }

  .global-menu__nav > a,
  .global-menu__services-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(38px, 11.5vw, 58px);
    font-weight: 850;
    line-height: 1.06;
    letter-spacing: -.045em;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .global-menu__nav {
    gap: 4px;
  }

  .global-menu__chips {
    margin: 10px 0 14px;
    gap: 7px;
  }

  .global-menu__chips a {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 10px;
  }

  .global-menu__media {
    height: min(34vh, 280px);
    margin-top: 26px;
    border-radius: 20px;
  }

  .global-menu__caption {
    left: 14px;
    right: 14px;
    bottom: 12px;
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .global-menu-trigger {
    min-width: 88px;
    height: 42px;
    gap: 10px;
    padding-inline: 14px;
    font-size: 10px;
  }

  .global-menu-trigger__icon { width: 18px; gap: 5px; }

  .global-menu__nav > a,
  .global-menu__services-title {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.08;
  }

  .global-menu__media { height: 220px; }
}


@media (min-width: 801px) and (max-height: 700px) {
  .global-menu__top {
    height: 72px;
    padding-block: 8px;
  }

  .global-menu__layout {
    height: calc(100dvh - 72px);
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .global-menu__nav > a,
  .global-menu__services-title {
    font-size: clamp(32px, min(4.1vw, 6.4vh), 54px);
    line-height: 1.04;
  }

  .global-menu__chips {
    margin-block: 6px 8px;
  }

  .global-menu__chips a {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-menu,
  .global-menu-trigger,
  .global-menu__close,
  .global-menu__nav > a,
  .global-menu__services-title,
  .global-menu__chips a {
    transition-duration: .01ms !important;
  }

  .global-menu.is-open .global-menu__nav > a,
  .global-menu.is-open .global-menu__services,
  .global-menu.is-open .global-menu__media {
    animation: none !important;
  }
}

.project-page .header .global-menu-trigger { position: relative; z-index: 2; }
@media (max-width: 900px) {
  .site-header .global-menu-trigger { display: inline-flex !important; }
}

/* One public navigation pattern across all visitor-facing pages. */
.site-header .desktop-nav,
.site-header .admin-link {
  display: none !important;
}

.site-header .site-header__actions,
.site-header .global-menu-trigger,
.project-page .header .global-menu-trigger {
  margin-left: auto;
}


/* Menu spacing safety: prevent large labels from colliding on short screens. */
@media (min-width: 801px) and (max-height: 820px) {
  .global-menu__layout {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .global-menu__nav > a,
  .global-menu__services-title {
    font-size: clamp(36px, min(4.7vw, 7.2vh), 62px);
    line-height: 1.02;
  }

  .global-menu__chips {
    margin-top: 8px;
    margin-bottom: 10px;
  }
}
