/* five header items since Commercial was added — scale down to fit */
.Header {
  font-size: clamp(1.7rem, 2.3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3.5vh, 3rem);
}

.Header__menu.h-m {
  gap: 0.6rem;
  flex-wrap: wrap;
}

.Header__menu.h-m a,
.HeaderDropdown__menu a {
  font-size: 0.95em;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* match the footer's STUDIO ABOVE&BELOW (3.2rem), shrinking on
   narrower windows so the five items stay on one line */
@media (min-width: 800px) {
  .Header__menu.h-m a {
    font-size: min(2.4vw, 3.2rem);
  }
}

/* Work, Archive, Commercial, Contact and About all get part of their
   layout from late-loaded extras (see cookie.js — the message form,
   Blog panel, etc.). Hide them from first paint so the original layout
   never flashes/pops in; the keyframe is a safety net that reveals the
   page if the JS fails. */
.Work,
.Archive,
.CommercialServices,
.Contact,
.About {
  opacity: 0;
  transition: opacity 0.2s ease;
  animation: sab-extras-fallback 0.3s ease 6s forwards;
}

.Work--enhanced,
.Archive--visual,
.CommercialServices--ready,
.Contact--ready,
.About--ready {
  opacity: 1;
  animation: none;
}

@keyframes sab-extras-fallback {
  to {
    opacity: 1;
  }
}

/* the commercial page has its own hamburger toggle in the top-right corner */
.CommercialServices .NavIcon,
.CommercialServices__header .NavIcon {
  display: none !important;
}

.CookieBanner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000;
}

.CookieBanner__text a {
  color: #000;
  text-decoration: underline;
}

.CookieBanner__actions {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
}

.CookieBanner__accept,
.CookieBanner__decline {
  padding: 8px 22px;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid #000;
}

/* accept and decline are given equal visual weight on purpose — the ICO
   treats a barely-visible "reject" option as a dark pattern */
.CookieBanner__accept {
  background: #000;
  color: #fff;
}

.CookieBanner__accept:hover {
  background: #fff;
  color: #000;
}

.CookieBanner__decline {
  background: #fff;
  color: #000;
}

.CookieBanner__decline:hover {
  background: #000;
  color: #fff;
}

@media (max-width: 600px) {
  .CookieBanner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .CookieBanner__actions {
    width: 100%;
  }

  .CookieBanner__accept,
  .CookieBanner__decline {
    flex: 1 1 auto;
  }
}
