@font-face {
  font-family: "Waldenburg";
  src: url("../Waldenburg-Normal.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

:root {
  --type-size: 0.875rem;
  --nav-font-size: calc(var(--type-size) * 0.9);
  --explore-btn-hover-filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.14))
    drop-shadow(0 28px 56px rgba(0, 0, 0, 0.1)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
}

html {
  scrollbar-gutter: stable;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.75rem 1rem;
  font-family: "Waldenburg", Georgia, serif;
  font-size: var(--nav-font-size);
  font-weight: normal;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--nav-fg);
  background: transparent;
  opacity: 1;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 1023px) {
    .top-nav {
      background-color: var(--page-bg);
    }
  }
}

body.boot .top-nav {
  opacity: 0;
  visibility: hidden;
}

.top-nav a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .top-nav a:hover {
    opacity: 0.55;
  }
}

.top-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.nav-left {
  grid-column: 1;
  justify-self: start;
}

.nav-centre {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.nav-right {
  grid-column: 3;
  justify-self: end;
}

.bottom-wrap {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  -webkit-transform: translate3d(-50%, 0, 0);
  transform: translate3d(-50%, 0, 0);
  z-index: 28;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  width: 100%;
  max-width: min(96vw, 52rem);
  box-sizing: border-box;
  padding: 0.35rem 1rem;
  min-height: calc(var(--nav-font-size) * 2.15 + 0.72rem);
  font-family: "Waldenburg", Georgia, serif;
  font-size: var(--nav-font-size);
  font-weight: normal;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--nav-fg);
  text-align: center;
  pointer-events: none;
}

#client-label,
#footer-project-title,
#site-project-footer-title {
  margin: 0;
  max-width: min(72vw, 28rem);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-align: center;
}

.explore-btn {
  flex-shrink: 0;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  margin: 0;
  font: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  line-height: 1.2;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--nav-fg) 35%, transparent);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  filter: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease,
    filter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .explore-btn:hover {
    border-color: color-mix(in srgb, var(--nav-fg) 65%, transparent);
    background: color-mix(in srgb, var(--nav-fg) 8%, transparent);
    filter: var(--explore-btn-hover-filter);
  }
}

.explore-btn[hidden] {
  display: none !important;
}

.seo-crawl-block {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.seo-crawl-block__h {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.seo-crawl-block__fig {
  margin: 0;
}

.seo-crawl-block--prose .seo-crawl-block__body {
  font-size: 1px;
  line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
  .top-nav {
    transition: none;
  }

  .explore-btn {
    transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  }

  .explore-btn:hover {
    filter: var(--explore-btn-hover-filter);
  }
}

@media (max-width: 768px) {
  .top-nav {
    
    padding-block: 0.5rem;
    padding-inline: max(0.75rem, env(safe-area-inset-left, 0px))
      max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .bottom-wrap {
    bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
    padding: 0.3rem max(0.65rem, env(safe-area-inset-left, 0px)) 0.3rem
      max(0.65rem, env(safe-area-inset-right, 0px));
    gap: 0.5rem 0.65rem;
    min-height: calc(var(--nav-font-size) * 2.35 + 0.5rem);
  }

  .explore-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.4rem 0.95rem;
  }
}

::selection {
  background: #000000;
  color: #ffffff;
}

::-moz-selection {
  background: #000000;
  color: #ffffff;
}
