html.rook-home-boot .rook-global-header,
html.rook-home-boot .rook-global-header.is-scrolled {
  color: #050505 !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* No loading overlay; retain compatibility with legacy page markup. */
.rook-home-final-page .loader,
.rook-home-final-page .loader:not(.is-done) {
  display: none !important;
  pointer-events: none !important;
}
html.rook-home-boot::before,
html.rook-home-boot::after {
  content: none !important;
  display: none !important;
}

/* Odoo's page editor can persist a transient menu class in a customized view.
   Keep the overlay closed unless the global menu controller explicitly opens it. */
body:not(.rook-menu-open) .rook-global-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-20px) !important;
}

body.rook-menu-open .rook-global-menu.is-open {
  pointer-events: auto !important;
}

html.rook-home-boot .rook-global-header__brand,
html.rook-home-boot .rook-global-header__quick a,
html.rook-home-boot .rook-global-header__toggle {
  color: #050505 !important;
}

body.rook-home-final-active:not(.rook-home-past-hero) .rook-global-header,
body.rook-home-final-active:not(.rook-home-past-hero) .rook-global-header.is-scrolled {
  color: #050505 !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.rook-home-final-active .rook-global-header__quick a::after {
  background: currentColor !important;
}

body.rook-home-final-active:not(.rook-home-past-hero) .rook-global-header__toggle {
  color: #050505 !important;
}

@media (max-width: 820px) {
  html.rook-home-boot .rook-global-header,
  html.rook-home-boot .rook-global-header a,
  html.rook-home-boot .rook-global-header button,
  body:not(.rook-home-past-hero):has(.rook-home-final-page) .rook-global-header,
  body:not(.rook-home-past-hero):has(.rook-home-final-page) .rook-global-header a,
  body:not(.rook-home-past-hero):has(.rook-home-final-page) .rook-global-header button,
  body.rook-home-final-active:not(.rook-home-past-hero) .rook-global-header,
  body.rook-home-final-active:not(.rook-home-past-hero) .rook-global-header a,
  body.rook-home-final-active:not(.rook-home-past-hero) .rook-global-header button {
    color: #050505 !important;
  }

  body.rook-home-final-active:not(.rook-home-past-hero) .rook-global-header {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* Final header decision: keep every header label and control black on the
   homepage, independent of section, scroll state, or viewport size. */
html.rook-home-boot .rook-global-header,
html.rook-home-boot .rook-global-header a,
html.rook-home-boot .rook-global-header button,
body.rook-home-final-active .rook-global-header,
body.rook-home-final-active .rook-global-header.is-scrolled,
body.rook-home-final-active .rook-global-header a,
body.rook-home-final-active .rook-global-header button,
body.rook-home-final-active .rook-global-header__brand,
body.rook-home-final-active .rook-global-header__quick a,
body.rook-home-final-active .rook-global-header__toggle {
  color: #050505 !important;
}

body.rook-home-final-active .rook-global-header svg {
  color: #050505 !important;
  fill: currentColor;
  stroke: currentColor;
}

body.rook-home-final-active .site-header,
body.rook-home-final-active .site-header.is-scrolled,
body.rook-home-final-active .site-header .brand,
body.rook-home-final-active .site-header .hero-chapters a,
body.rook-home-final-active .site-header .menu {
  color: #050505 !important;
}

/* When the header is revealed by an upward scroll beyond the Hero, give the
   fixed black labels a warm translucent glass veil over dark sections. */
body.rook-home-final-active.rook-home-past-hero.rook-home-header-up .rook-global-header,
body.rook-home-final-active.rook-home-past-hero.rook-home-header-up .rook-global-header.is-scrolled,
body.rook-home-final-active.rook-home-past-hero.rook-home-header-up .site-header,
body.rook-home-final-active.rook-home-past-hero.rook-home-header-up .site-header.is-scrolled {
  background: rgba(202, 195, 183, 0.34) !important;
  border-bottom: 1px solid rgba(25, 24, 21, 0.2) !important;
  box-shadow: 0 8px 24px rgba(15, 15, 14, 0.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
}
