/* The project list stays attached to the header and leaves the page visible. */
:root {
  --einhar-readable-pixels: var(--einhar-pixel-field, linear-gradient(#f5f4f0,#f5f4f0));
}
@keyframes einhar-header-pixels { to { background-position: 48px -36px; } }
body.projects-open-page::before { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.site-header { z-index: 900 !important; }
.site-header .projects-nav { position: relative !important; }
.site-header .projects-nav > .projects-menu {
  position: absolute !important;
  z-index: 710 !important;
  top: calc(100% + 6px) !important;
  left: auto !important;
  right: -6px !important;
  width: min(288px,calc(100vw - 40px)) !important;
  max-width: none !important;
  max-height: min(320px,calc(100dvh - 85px)) !important;
  box-sizing: border-box !important;
  overflow: auto !important;
  padding: 6px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: #111 !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.38) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(0,-8px,0) !important;
  animation: none !important;
  transition: opacity .14s ease, transform .18s cubic-bezier(.2,.72,.2,1), visibility .14s ease !important;
}
.site-header.projects-open .projects-nav > .projects-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate3d(0,0,0) !important;
}
.site-header .projects-menu-inner {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
}
.site-header .projects-list {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 2px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
.site-header .projects-entry {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 9px 11px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #f5f4f0 !important;
  font: 500 19px/1.15 var(--font-einhar,Arial,sans-serif) !important;
  letter-spacing: -.045em !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
  cursor: pointer !important;
  transition: background-color .2s ease !important;
}
.site-header .projects-entry[href]:hover,
.site-header .projects-entry[href]:focus-visible { background: #1e1e1e !important; opacity: 1 !important; }
.site-header .projects-entry:focus-visible { outline: 2px solid #f5f4f0 !important; outline-offset: -2px !important; }
.site-header .projects-entry-icon { position: static !important; flex: none; width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.site-header .projects-entry-name {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: 100%;
  min-width: 0;
  color: inherit !important;
  font: inherit !important;
}
.site-header .projects-entry-label { display: inline-block; color: inherit; font: inherit; }
.site-header .projects-entry-name svg {
  position: static !important;
  flex: none !important;
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  opacity: .68 !important;
  transition: transform .2s ease, opacity .2s ease !important;
}
.site-header .projects-entry[href]:hover .projects-entry-name svg,
.site-header .projects-entry[href]:focus-visible .projects-entry-name svg { opacity: 1 !important; transform: translate(2px,-2px) !important; }

/* Square signals live in the letterforms and echo the footer wordmark. */
.site-header .wordmark { position: relative; isolation: isolate; opacity: 1 !important; }
.site-header .wordmark::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: 34px;
  height: 24px;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  background-image: var(--einhar-readable-pixels);
  background-size: var(--einhar-pixel-size);
  background-repeat: repeat;
  -webkit-mask: url("assets/einhar-mark-white.svg") center / 100% 100% no-repeat;
  mask: url("assets/einhar-mark-white.svg") center / 100% 100% no-repeat;
  transition: opacity .18s ease;
}
.site-header .wordmark:hover .einhar-header-symbol,
.site-header .wordmark:focus-visible .einhar-header-symbol { opacity: 0; }
.site-header .wordmark:hover::before,
.site-header .wordmark:focus-visible::before { opacity: 1; animation: einhar-header-pixels .58s steps(5,end) infinite; }
.brand-grain-text { display: inline-block; }
.brand-grain-text:hover,
.site-header .wordmark:hover .brand-grain-text,
.site-header .wordmark:focus-visible .brand-grain-text,
.site-header .projects-entry[href]:hover .projects-entry-label,
.site-header .projects-entry[href]:focus-visible .projects-entry-label,
.site-header .mobile-project-entry[href]:hover .mobile-project-entry-label,
.site-header .mobile-project-entry[href]:focus-visible .mobile-project-entry-label,
.footer-brand-name:hover {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  background-image: var(--einhar-readable-pixels);
  background-size: var(--einhar-pixel-size);
  background-position: 0 0;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: einhar-header-pixels .58s steps(5,end) infinite;
}
.site-header .wordmark .einhar-header-name { font-size: 21.5px !important; }
.site-header .site-nav .nav-direct-link,
.site-header .site-nav .projects-trigger { font-size: 14.5px !important; }
.site-header .site-nav .nav-direct-link:hover,
.site-header .site-nav .nav-direct-link:focus-visible,
.site-header .site-nav .projects-trigger:hover .nav-label,
.site-header .site-nav .projects-trigger:focus-visible .nav-label {
  color: transparent !important;
  opacity: 1 !important;
  -webkit-text-fill-color: transparent;
  background-image: var(--einhar-readable-pixels);
  background-size: var(--einhar-pixel-size);
  background-position: 0 0;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: einhar-header-pixels .58s steps(5,end) infinite;
}
.site-header .site-nav .projects-trigger .nav-label { display: inline-block; }

@media(max-width:760px) {
  .site-header .projects-nav > .projects-menu { display: none !important; }
  .site-header .mobile-projects-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 8px 0 13px !important;
  }
  .site-header .mobile-project-entry {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100%;
    min-height: 52px;
    padding: 8px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #f5f4f0 !important;
    text-decoration: none;
    font: 500 20px/1.25 var(--font-einhar,Arial,sans-serif) !important;
    letter-spacing: -.04em;
  }
  .site-header .mobile-project-entry-name { display: inline-flex; align-items: center; gap: 10px; }
  .site-header .mobile-project-entry-label { display: inline-block; color: inherit; font: inherit; }
  .site-header .mobile-project-entry-name svg { width: 15px; height: 15px; }
  .site-header .wordmark::before { width: 30px; height: 22px; }
  .site-header .wordmark .einhar-header-name { font-size: 20px !important; }
}
@media(prefers-reduced-motion:reduce) {
  .site-header .projects-nav > .projects-menu,
  .site-header .projects-entry-name svg,
  .site-header .wordmark::before,
  .brand-grain-text,
  .site-header .projects-entry-label,
  .site-header .mobile-project-entry-label,
  .footer-brand-name,
  .site-header .site-nav .nav-direct-link,
  .site-header .site-nav .projects-trigger .nav-label { transition: none !important; animation: none !important; }
}
