/* Giblex global atmospheric page/header transitions */
:where(body) { --page-flow-deep: #071018; --page-flow-mid: #10202A; --page-flow-end: #1A2338; }
:where(header.site-head, header.site-header) {
  border-bottom: 0 !important;
  box-shadow: none !important;
  position: relative;
  z-index: 20;
}
:where(header.site-head, header.site-header)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -110px;
  height: 150px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7,16,24,.78) 0%, rgba(10,22,29,.42) 42%, rgba(16,32,42,.16) 70%, transparent 100%);
  filter: blur(18px);
}
:where(header.site-head, header.site-header) + main > :first-child,
:where(header.site-header) + .hero-banner + main {
  position: relative;
  isolation: isolate;
  border-top: 0 !important;
  box-shadow: none !important;
}
:where(header.site-head, header.site-header) + main > :first-child::after,
:where(header.site-header) + .hero-banner + main::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -90px;
  height: 210px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7,16,24,0) 0%, rgba(8,18,25,.20) 30%, rgba(12,29,37,.48) 68%, rgba(16,38,48,.72) 100%);
  filter: blur(22px);
}
:where(header.site-head, header.site-header) + main > :first-child > .wrap,
:where(header.site-header) + .hero-banner + main > .panel-wrap {
  position: relative;
  z-index: 2;
}
:where(header.site-head, header.site-header) + main > :first-child,
:where(header.site-header) + .hero-banner {
  border-bottom: 0 !important;
}
@media (max-width: 760px) {
  :where(header.site-head, header.site-header)::after { bottom: -80px; height: 120px; }
  :where(header.site-head, header.site-header) + main > :first-child::after,
  :where(header.site-header) + .hero-banner + main::before { top: -60px; height: 150px; }
}

/* Memory MCP: preserve its light editorial identity — cream at the header, then a warm transparent fade into the page. */
body.mm header.site-head {
  background: linear-gradient(180deg, #F7F1ED 0%, #EEE5E0 58%, rgba(232,222,217,.72) 100%) !important;
  color: #17191C;
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  backdrop-filter: blur(18px) saturate(112%);
}
body.mm header.site-head.is-scrolled {
  background: rgba(112,82,66,.11) !important;
  -webkit-backdrop-filter: blur(26px) saturate(112%);
  backdrop-filter: blur(26px) saturate(112%);
}
body.mm header.site-head .brand,
body.mm header.site-head .tab,
body.mm header.site-head .menu-toggle {
  color: #40352F !important;
  text-shadow: 0 1px 0 rgba(255,248,243,.38);
}
body.mm header.site-head .tab:hover,
body.mm header.site-head .tab:focus-visible,
body.mm header.site-head .brand:hover {
  color: #654F43 !important;
}
body.mm header.site-head::after {
  bottom: -125px;
  height: 165px;
  background: linear-gradient(180deg,
    rgba(247,241,237,.78) 0%,
    rgba(238,229,224,.58) 30%,
    rgba(232,222,217,.32) 58%,
    rgba(232,222,217,.10) 78%,
    rgba(232,222,217,0) 100%);
  filter: blur(20px);
}
body.mm header.site-head + main > :first-child::after {
  top: -95px;
  height: 220px;
  background: linear-gradient(180deg,
    rgba(247,241,237,0) 0%,
    rgba(241,233,228,.28) 28%,
    rgba(232,222,217,.54) 58%,
    rgba(220,211,206,.30) 78%,
    rgba(232,222,217,0) 100%);
  filter: blur(24px);
}
body.mm header.site-head + main > :first-child { background: transparent; }
body.mm header.site-head + main > :first-child > .wrap { position: relative; z-index: 2; }

/* Phantom Suite: same acrylic scroll behavior, kept in the suite's deep blue palette. */
body:has(.brand-suite) header.site-head {
  background: linear-gradient(180deg, rgba(21,29,48,.40) 0%, rgba(21,29,48,.24) 100%) !important;
  color: #FFFFFF;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
body:has(.brand-suite) header.site-head.is-scrolled {
  background: linear-gradient(180deg, rgba(18,26,42,.60) 0%, rgba(18,26,42,.42) 100%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  backdrop-filter: blur(20px) saturate(1.35);
  border-bottom-color: rgba(255,255,255,.08);
}
body:has(.brand-suite) header.site-head .brand,
body:has(.brand-suite) header.site-head .brand-suite,
body:has(.brand-suite) header.site-head .nav-link,
body:has(.brand-suite) header.site-head .nav > a,
body:has(.brand-suite) header.site-head .menu-toggle {
  color: #FFFFFF !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.18);
}
body:has(.brand-suite) header.site-head::after {
  background: linear-gradient(180deg,
    rgba(31,41,65,.72) 0%,
    rgba(26,35,56,.48) 32%,
    rgba(26,35,56,.22) 62%,
    rgba(26,35,56,0) 100%);
  filter: blur(20px);
}
body:has(.brand-suite) header.site-head + main > :first-child::after {
  background: linear-gradient(180deg,
    rgba(26,35,56,0) 0%,
    rgba(27,38,60,.28) 28%,
    rgba(26,35,56,.48) 58%,
    rgba(26,35,56,.18) 80%,
    rgba(26,35,56,0) 100%);
  filter: blur(24px);
}