/* Fullscreen navigation shared by the desktop and mobile menu buttons. */
html.menu-open,
body.menu-open { overflow: hidden; }

.fullscreen-menu {
  position: fixed;
  z-index: 998;
  inset: 0;
  padding: 120px 0 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: #f7f9fd;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.fullscreen-menu::before {
  content: "";
  position: fixed;
  z-index: 1;
  inset: 0 0 auto;
  height: 104px;
  background: #f7f9fd;
  pointer-events: none;
}

.fullscreen-menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 80px;
  align-content: center;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 160px);
  min-height: calc(100dvh - 160px);
  margin-inline: auto;
}

.fullscreen-menu .fullscreen-menu-nav {
  position: static;
  display: grid;
  grid-template-columns: 1fr;
  width: auto;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  visibility: inherit;
  pointer-events: auto;
  transform: none;
  transition: none;
}

.fullscreen-menu-nav a {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  opacity: 1;
}

.fullscreen-menu-nav a small { display: none; }

.fullscreen-menu-nav a span {
  font-size: clamp(30px, 3.8vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.fullscreen-menu-nav a::after,
.fullscreen-menu-contact::after {
  content: "\2192";
  flex-shrink: 0;
  color: var(--blue);
  font-size: 28px;
  transition: transform .2s ease;
}

.fullscreen-menu-nav a:hover,
.fullscreen-menu-nav a:focus-visible,
.fullscreen-menu-nav a.is-current {
  color: var(--blue);
  background: transparent;
  border-color: var(--line);
}

.fullscreen-menu-nav a:hover::after { transform: translateX(6px); }

.fullscreen-menu-meta {
  display: grid;
  align-content: end;
  gap: 24px;
  padding-bottom: 16px;
}

.fullscreen-menu-meta p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.fullscreen-menu-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: fit-content;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 18px;
  font-weight: 800;
}

.fullscreen-menu a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.menu-open .site-header,
.menu-open .site-header.is-scrolled { color: var(--ink) !important; }

.menu-open .site-header .header-menu-toggle {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  backdrop-filter: none;
}

.menu-open .site-header .header-menu-toggle i { color: var(--ink) !important; }

.menu-open .site-header .menu-button {
  color: var(--ink) !important;
  background: #fff !important;
  border-color: var(--line) !important;
  backdrop-filter: none !important;
}

.menu-open .menu-button span:first-child,
.menu-open .menu-button span:last-child {
  top: 50%;
  bottom: auto;
}

@media (max-width: 1080px) {
  .fullscreen-menu { padding: 94px 0 32px; }
  .fullscreen-menu::before { height: 78px; }
  .fullscreen-menu-grid {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
    width: calc(100% - 32px);
    min-height: calc(100vh - 126px);
    min-height: calc(100dvh - 126px);
  }
  .fullscreen-menu-nav a { padding: 14px 0; }
  .fullscreen-menu-nav a span { font-size: clamp(28px, 5vw, 44px); }
  .fullscreen-menu-meta { gap: 16px; padding: 0; }
  .fullscreen-menu-meta p { max-width: 440px; font-size: 16px; }
  .fullscreen-menu-contact { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .fullscreen-menu,
  .fullscreen-menu-nav a::after { transition: none; }
}

@media print { .fullscreen-menu { display: none; } }

@media (min-width: 1081px) {
  .site-header.is-on-light .header-actions .header-project-link {
    color: #fff !important;
    background: var(--ink) !important;
    border-color: var(--ink) !important;
  }
  .site-header.is-on-light .header-actions .header-project-link:hover {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
  }
  .site-header.is-on-light .header-actions .header-project-link i {
    color: inherit !important;
    background: transparent !important;
  }
}
