/* HB Site Kit feature: flow-background. Moved from HB Site 0.2.1 (hb-site.css) on 29 Nov 2026, rules unchanged. */
/* ================= Dark flow variant (page has a section with class hb-flow-page) ================= */
body:has(.hb-flow-page) { background: #0B1113 !important; }
body:has(.hb-flow-page) #page-container, body:has(.hb-flow-page) #et-main-area, body:has(.hb-flow-page) #main-content, body:has(.hb-flow-page) .et-l--post, body:has(.hb-flow-page) .et_builder_inner_content { background: transparent !important; }
.hb-flow-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #0B1113; }
.hb-flow-bg::before, .hb-flow-bg::after { content: ""; position: absolute; inset: -25%; will-change: transform; }
/* two soft teal lights; JS moves them with scroll (--hb-sy) and the pointer (--hb-mx/--hb-my) */
.hb-flow-bg::before {
	background:
		radial-gradient(38% 32% at calc(12% + var(--hb-mx, 0) * 8%) calc(22% + var(--hb-sy, 0) * 40%), rgba(22,187,170,.22), transparent 70%),
		radial-gradient(34% 30% at calc(90% - var(--hb-mx, 0) * 6%) calc(70% - var(--hb-sy, 0) * 35%), rgba(14,124,114,.28), transparent 70%);
	animation: hb-drift 26s ease-in-out infinite alternate;
}
.hb-flow-bg::after {
	background: radial-gradient(30% 26% at calc(55% + var(--hb-my, 0) * 6%) calc(45% + var(--hb-sy, 0) * 20%), rgba(22,187,170,.08), transparent 70%);
	animation: hb-drift 34s ease-in-out -8s infinite alternate-reverse;
}
@keyframes hb-drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 3%, 0) scale(1.08); } }
/* film grain so the gradient looks printed rather than digital */
.hb-flow-grain {
	position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
	.hb-flow-bg::before, .hb-flow-bg::after { animation: none; }
}
/* Light text on the dark canvas renders with normal (not thinned) anti-aliasing; Divi has no font-smoothing setting (moved from HB Site 29 Nov 2026) */
body:has(.hb-flow-page) { -webkit-font-smoothing: auto; }
/* A hair of letter spacing on paragraphs and list items in Text modules on the dark canvas (approved look; moved from HB Site
   29 Nov 2026). Kept here because Divi's letter-spacing setting applies to the whole module (chat bubbles, panels, table
   cells), not to paragraphs only: the native try changed Doors, Services and the comparison table. */
body:has(.hb-flow-page) .et_pb_section .et_pb_text:not(.hb-chat .et_pb_text) p, body:has(.hb-flow-page) .et_pb_section .et_pb_text li, body:has(.hb-flow-page) .et_pb_section .et_pb_icon_list_text { letter-spacing: .005em; } /* chat bubbles never had it */ /* not in popups */
