/* Header logo: wordmark image + live-text tagline. The tagline shows only at the top of the page
   and fades out on scroll (brand/header.js toggles #header.fa-scrolled and sets --fa-hh, the
   header's current height, which the theme shrinks from 100px to 50px while scrolling). */
@font-face {
  font-family: 'Manrope FA';
  src: url('/brand/manrope-600-latin.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

#header .logo a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  text-decoration: none;
}

#header .logo img {
  width: auto !important;
  height: min(60px, calc(var(--fa-hh, 100px) - 14px)) !important;
  max-height: none !important;
  transition: height 0.15s ease-out;
}

#header .fa-tagline {
  display: block;
  font-family: 'Manrope FA', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #4A5A6E;
  margin-top: 6px;
  max-height: 14px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.2s ease, max-height 0.2s ease, margin-top 0.2s ease;
}

#header.fa-scrolled .fa-tagline {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}

@media (max-width: 767px) {
  #header .logo img {
    height: min(50px, calc(var(--fa-hh, 83px) - 12px)) !important;
  }
  #header .fa-tagline {
    font-size: 8px;
    letter-spacing: 0.08em;
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #header .logo img, #header .fa-tagline { transition: none; }
}
