/* One header geometry across the homepage and project pages. */
@import url('/assets/circular.css');
:root { --header-h: 99px; }
.site-header {
  height: var(--header-h);
  box-sizing: border-box;
  font-family: "Circular Std", "DM Sans", sans-serif;
  padding-block: 32px;
}
.site-header .wordmark {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  padding: 0;
  line-height: 1;
}
.site-header .wordmark img {
  position: static;
  display: block;
  flex: none;
  width: 35px;
  height: 35px;
  max-width: none;
  aspect-ratio: 1;
  object-fit: contain;
}
.site-header .nav > a { font-size: 20px; }
@media (max-width: 1024px) {
  :root { --header-h: 104px; }
  .site-header .wordmark { flex-basis: 30px; width: 30px; height: 30px; }
  .site-header .wordmark img { width: 30px; height: 30px; }
}
@media (max-width: 760px) {
  :root { --header-h: 88px; }
  .site-header { padding-block: 24px; }
  .site-header .nav > a { font-size: 17px; }
}

/* Project headers and their mobile menus continue the hero color. */
.site-header { --header-background: var(--tan, var(--bg, #fff)); }
.site-header, .site-header .nav { background: var(--header-background); transition: background-color 180ms ease; }
.site-header.is-past-hero { --header-background: var(--bg, #FDFDFD); }
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .nav { transition: none; } }

.site-header .work-menu { display: contents; }
@media (min-width: 1025px) {
  .site-header .work-menu { display: block; position: relative; }
  .site-header .work-menu > a { font-size: 20px; }
  .site-header .work-menu .nav-sub { display: none; position: absolute; top: 100%; right: -20px; width: max-content; max-width: calc(100vw - 32px); padding: 18px 20px; margin: 0; background: #fff; border: 1px solid #d9d9d9; border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / .08); z-index: 20; }
  .site-header .work-menu.is-open .nav-sub { display: flex; flex-direction: column; gap: 0; }
  .site-header .work-menu .nav-sub a { display: flex; align-items: baseline; padding: 10px 0; font-size: 16px; line-height: 1.45; color: var(--ink-muted, #6b6b6b); text-decoration: none; }
  .site-header .work-menu .nav-sub a:hover, .site-header .work-menu .nav-sub a:focus-visible, .site-header .work-menu .nav-sub a[aria-current="page"] { color: #000; }
  .site-header .work-menu .nav-sub .hook { display: inline-block; flex: 0 0 1.4em; width: 1.4em; }
}
