/* IBIX sitewide calm layer, 2026-11-29.
   Built from the studio's graded research (IBIX Studio: reference/RESEARCH-LIBRARY-2026-11.md,
   web design update + website aesthetics reports; rules in design/BUILD-CONTRACT.md F to I).
   Depth from tonal navy layers and hairlines instead of glass blur and glow; clearer secondary
   text; modern, progressive-enhancement features only (older browsers simply ignore them). */

/* Four navy layers: page, bands, cards, menus (aesthetics report, "Applying it to ibixagency.com") */
:root{
  --surface:#08121F;
  --glass-bg:#0C1828;
  --surface-raised:#122033;
  --silver-muted:#8fa8bd; /* was #5f7f9b (about 4.4:1); now about 7.9:1 on the page navy */
}

/* No glow wash behind the page, no frosted glass */
body{background-image:none!important}
*{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* Typography polish: balanced headings, no lonely last words in paragraphs (Baseline, ignored where unsupported) */
h1,h2,h3,h4{text-wrap:balance}
p,li,blockquote{text-wrap:pretty}

/* Clear keyboard focus everywhere (WCAG 2.2) */
:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}

/* Selected text in brand colour */
::selection{background:rgba(0,229,255,.28);color:#fff}

/* Quick, quiet cross-fade between pages in browsers that support it; none for reduced motion */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.18s}
@media (prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}

/* With the frosted blur gone, the header needs to be near-solid so page text never ghosts through it */
#site-header{background:#040B16!important}
#site-header[data-home]:not(.scrolled){background:transparent!important}
/* Phone menu open: the page lock resets scroll to 0, which used to turn the homepage header see-through */
#site-header:has(#navMobileMenu[open]),#site-header:has(details[open].ibx-mob-menu){background:#040B16!important}
