/* Brand intro: a large transparent glass N0X with "Contextual Intelligence" settles into the small N0X logo at the top of the hero.
   Pages set the colour variables on .brand-intro (defaults are the warm Agentic Marketing palette). */
.brand-intro {
  --rest-top: 96px; --rest-w: 112px;
  --bi-tint: 255,240,228; --bi-filter: brightness(2.1) saturate(1.7); --bi-sheen: 255,247,238;
  --bi-bloom: rgb(96,62,72); --bi-glow-a: rgba(255,196,160,.5); --bi-glow-b: rgba(255,150,110,.18);
  --bi-edge: rgba(255,250,246,.3); --bi-tagline: rgba(255,236,220,.82); --bi-focus: currentColor;
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
html[data-theme="light"] .brand-intro {
  --bi-tint: 120,62,52; --bi-filter: brightness(.78) saturate(1.6);
  --bi-bloom: rgb(184,169,165); --bi-glow-a: rgba(160,90,76,.32); --bi-glow-b: rgba(160,90,76,.1);
  --bi-edge: rgba(70,50,50,.22); --bi-tagline: rgba(70,38,40,.8);
}
.brand-intro-logo { position: absolute; top: var(--rest-top); left: 50%; width: var(--rest-w); height: auto; transform: translateX(-50%); opacity: 0; filter: drop-shadow(0 4px 14px rgba(8,4,10,.55)); }
.brand-intro-mark { position: absolute; top: 0; left: 0; transform-origin: 50% 50%; will-change: transform; }
.brand-intro-glass, .brand-intro-glow > span, .brand-intro-bloom-wrap > span { position: absolute; inset: 0; -webkit-mask: url("/assets/brand/nox-glass-mask.png?v=2") center / contain no-repeat; mask: url("/assets/brand/nox-glass-mask.png?v=2") center / contain no-repeat; }
.brand-intro-glass { opacity: 0; overflow: hidden; background: linear-gradient(135deg, rgba(var(--bi-tint),.2), rgba(var(--bi-tint),.05) 46%, rgba(var(--bi-tint),.16)); -webkit-backdrop-filter: blur(4px) var(--bi-filter); backdrop-filter: blur(4px) var(--bi-filter); }
html[data-theme="light"] .brand-intro-glass { background: linear-gradient(135deg, rgba(var(--bi-tint),.14), rgba(var(--bi-tint),.04) 46%, rgba(var(--bi-tint),.12)); }
.brand-intro-edge { position: absolute; inset: 0; -webkit-mask: url("/assets/brand/nox-glass-edge.png?v=2") center / contain no-repeat; mask: url("/assets/brand/nox-glass-edge.png?v=2") center / contain no-repeat; background: var(--bi-edge); }
.brand-intro-glass::after { content: ""; position: absolute; inset: -10% -60%; background: linear-gradient(105deg, transparent 40%, rgba(var(--bi-sheen),.34) 50%, transparent 60%); transform: translateX(-70%); }
.brand-intro.is-playing .brand-intro-glass::after { animation: brand-intro-sheen 2s cubic-bezier(.45,0,.2,1) .5s both; }
.brand-intro-mark-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: drop-shadow(0 4px 14px rgba(8,4,10,.55)); }
html[data-theme="light"] .brand-intro-mark-logo, html[data-theme="light"] .brand-intro-logo { filter: drop-shadow(0 3px 10px rgba(60,30,30,.22)); }
.brand-intro-bloom-wrap, .brand-intro-bloom { position: absolute; inset: 0; }
.brand-intro-bloom { opacity: 0; -webkit-mask: linear-gradient(#000 0 0), url("/assets/brand/nox-glass-mask.png?v=2") center / contain no-repeat; -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0), url("/assets/brand/nox-glass-mask.png?v=2") center / contain no-repeat; mask-composite: exclude; }
.brand-intro-bloom-wrap { filter: blur(7px); }
.brand-intro-bloom-wrap > span { background: var(--bi-bloom); }
.brand-intro-glow { position: absolute; inset: 0; opacity: 0; filter: blur(22px); }
.brand-intro-glow > span { background: radial-gradient(circle at 50% 50%, var(--bi-glow-a), var(--bi-glow-b) 70%); }
.brand-intro-tagline { position: absolute; left: 0; right: 0; margin: 0; color: var(--bi-tagline); font: 500 clamp(.72rem, 1.3vw, .95rem)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .42em; text-align: center; text-transform: uppercase; opacity: 0; text-shadow: 0 2px 18px rgba(8,4,10,.8); }
html[data-theme="light"] .brand-intro-tagline { text-shadow: 0 2px 14px rgba(255,255,255,.7); }
.brand-intro.is-rested .brand-intro-logo { opacity: 1; pointer-events: auto; cursor: pointer; }
.brand-intro-home:focus-visible .brand-intro-logo { outline: 1px solid var(--bi-focus); outline-offset: 6px; border-radius: 4px; }
.brand-intro.is-rested .brand-intro-mark, .brand-intro.is-rested .brand-intro-tagline { display: none; }
@media (max-width: 740px) { .brand-intro { --rest-top: 70px; --rest-w: 80px; } }
@keyframes brand-intro-sheen { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
