/* The main top nav (the logo and the pages), and the Work / Lab / Life filters under it. The header is the same height as the bar
   that replaces it while a live project is open (embed.css), so the logo does not move. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: calc(var(--pad) + 44px);
  padding: var(--pad) var(--pad) 0;
  background: var(--paper);
}
.site-contact { display: flex; gap: 10px; }

/* a circle button, in the same tray of paper as the Back to site pill (embed.css); on hover it fills with ink */
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  background-color: rgba(236, 236, 229, 0.86);
  box-shadow: 0 0 0 1px rgba(29, 29, 27, 0.14), 0 12px 26px -16px rgba(29, 29, 27, 0.4);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background-color: var(--ink); color: var(--paper-light); }
html.wall-open .site-header { visibility: hidden; }   /* the bar's logo takes over at once */

/* Work / Lab / About, the original site's way: large type spread across the page, each with its count, and a highlighter swipe
   (a rough-edged, multiplied colour) that slides under the one showing. The words rise in as the holding screen lifts. */
.filters {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: clamp(36px, 6vw, 72px) 0 clamp(14px, 2vw, 22px);
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1;
}
.filters button, .filters a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.2em;
  margin: 0 -0.55em;
  padding: 0.25em 0.55em 0.3em;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--ink) 38%, transparent);
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out);
}
.filters button:hover, .filters button.is-active, .filters a:hover, .filters a.is-open { color: var(--ink); }
.filters sup { font-size: 0.36em; font-weight: var(--fw-medium); letter-spacing: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.filter-pill {
  position: absolute;
  left: 0;
  opacity: 0;
  background: var(--tint, #ffe14d);
  mix-blend-mode: multiply;
  border-radius: 5px 13px 6px 11px / 12px 5px 13px 6px;
  filter: url(#marker);
  scale: 1.05 0.64;
  transform-origin: 50% 78%;
  rotate: -0.8deg;
  transition: translate 0.75s var(--ease-spring), width 0.75s var(--ease-spring), opacity var(--dur-fast);
}

/* the words rise inside a mask, one after another, as the holding screen lifts */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform calc(var(--dur-slow) * 1.2) var(--ease-out) calc(var(--wi) * 90ms + 250ms);
}
html.is-lifting .w > span, html:not(.is-holding) .w > span { transform: none; }

@media (max-width: 520px) {
  .site-header .brand-name { display: none; }   /* just the mark, so the links have room */
}
