/* Use the original transparent logo; recolor only its wordmark on dark surfaces. */
.brand-logo {
  position: relative;
  display: block;
  width: clamp(180px, 20vw, 260px);
  max-width: 100%;
}

header.site .brand-logo {
  width: clamp(144px, 16vw, 208px);
}

header.site .brand-logo img,
header.site:not(.scrolled) .brand-logo img,
footer.site .brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  filter: none;
}

/* The empty gap between the gold symbol and the wordmark starts at 17%.
   Masking preserves every transparent pixel without changing the symbol. */
.brand-logo::after {
  content: "";
  display: none;
  position: absolute;
  inset: 0;
  background: #fff;
  -webkit-mask: url("../assets/images/fw-logo.png") center / 100% 100% no-repeat;
  mask: url("../assets/images/fw-logo.png") center / 100% 100% no-repeat;
  clip-path: inset(0 0 0 18%);
  pointer-events: none;
}

/* The existing scroll handler switches the header back to navy and gold. */
header#siteHeader:not(.scrolled) .brand-logo::after,
footer.site .brand-logo::after {
  display: block;
}

footer.site .brand-logo {
  width: min(100%, 260px);
  margin-bottom: 16px;
}

/* Secondary actions share the homepage hero's outline and cyan hover glow. */
.btn.btn-ghost {
  --secondary-text: #0e0e0f;
  --secondary-border: rgba(13,23,20,.16);
  --secondary-bg: transparent;
  --secondary-active-text: #07677c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  border: 1px solid var(--secondary-border);
  border-radius: 14px;
  background: var(--secondary-bg);
  color: var(--secondary-text);
  text-align: center;
  text-decoration: none;
  transition: color 200ms cubic-bezier(.22,1,.36,1),
              background-color 200ms cubic-bezier(.22,1,.36,1),
              border-color 200ms cubic-bezier(.22,1,.36,1),
              box-shadow 200ms cubic-bezier(.22,1,.36,1),
              transform 200ms cubic-bezier(.22,1,.36,1);
}
:where(.fw-hero, .page-hero, .cta-banner, .article-cta, .cta-band, .section--dark) .btn.btn-ghost {
  --secondary-text: #f5f7fb;
  --secondary-border: rgba(255,255,255,.24);
  --secondary-bg: rgba(255,255,255,.04);
  --secondary-active-text: #00e5ff;
}
.btn.btn-ghost .btn__label { min-width: 0; }
.btn.btn-ghost .btn__arrow {
  flex: none;
  line-height: 1;
  transition: transform 200ms cubic-bezier(.22,1,.36,1);
}
.btn.btn-ghost:is(:hover, :focus-visible, :active) {
  color: var(--secondary-active-text);
  border-color: var(--secondary-active-text);
  background: rgba(0,229,255,.08);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0,229,255,.45), 0 0 26px rgba(0,229,255,.18);
}
.btn.btn-ghost:focus-visible {
  outline: 2px solid var(--secondary-active-text);
  outline-offset: 3px;
}
.btn.btn-ghost:is(:hover, :focus-visible) .btn__arrow { transform: translateX(3px); }
.btn.btn-ghost:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .btn.btn-ghost, .btn.btn-ghost .btn__arrow { transition: none; }
  .btn.btn-ghost:is(:hover, :focus-visible, :active),
  .btn.btn-ghost:is(:hover, :focus-visible) .btn__arrow { transform: none; }
}
