.ql-banner {
	/* Vendasta reference palette (scoped so it can't leak into the rest of the theme) */
	--ql-primary: 210 100% 50%;
	--ql-bg: 226 60% 4%;
	--ql-fg: 210 40% 98%;
	--ql-muted: 215 20% 65%;
	position: relative;
	background-color: hsl(var(--ql-bg));
	overflow: hidden;
}

/* Optional background media (kept for ACF compatibility) */
.ql-banner .background {
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0.35;
}
.ql-banner .background * {
	height: 100%;
}
.ql-banner .background img,
.ql-banner .background video {
	width: 100%;
	object-fit: cover;
}

/* Deep-space backdrop: bottom glow + faint tech grid with a radial mask */
.ql-banner .space-bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.ql-banner .space-glow {
	position: absolute;
	left: 50%;
	bottom: -30%;
	transform: translateX(-50%);
	width: 130%;
	height: 60%;
	background: radial-gradient(ellipse at center, hsl(var(--ql-primary) / 0.18) 0%, transparent 60%);
	filter: blur(90px);
}
.ql-banner .space-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 4rem 4rem;
	-webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 60%, transparent 100%);
	mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 60%, transparent 100%);
}

.ql-banner .content-wrap {
	position: relative;
	z-index: 2;
	padding: 100px 0;
	color: #fff;
}
.ql-banner .content-col {
	font-size: 22px;
	font-weight: 500;
}
.ql-banner .banner-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	gap: 30px;
}
.ql-banner .banner-row.no-links {
	grid-template-columns: 1fr;
}

/* Compensate for the lost visual height when the constellation is hidden */
.ql-banner .ql-banner-inner.no-links {
	padding-block: 155px;
}
.ql-banner h1 {
	font-size: 68px;
}
.ql-banner h1 strong {
	font-weight: 900;
}
.ql-banner h1 .span1 {
	color: #f9fafc;
}
.ql-banner h1 .span-2 {
	color: #2472e1;
}
.ql-banner h1 .span-3 {
	color: #1955ab;
}
.ql-banner p {
	font-weight: 300;
}
.ql-banner .btn {
	background-color: var(--color-7);
	text-transform: none;
	letter-spacing: 0;
	font-size: 18px;
}
.ql-banner .btn:hover,
.ql-banner .btn:focus {
	background-color: var(--color-2);
	color: #fff;
}

/* ---------------------------------------------------------------------------
   Constellation
   The stage is a square box that establishes a query container; everything
   inside is sized in cqw (% of the stage width) so it scales as one unit.
   The SVG viewBox (-300..300) shares the same coordinate space as the nodes,
   so the connecting lines land exactly on each node's center.
--------------------------------------------------------------------------- */
.ql-banner .constellation {
	position: relative;
	width: 100%;
	max-width: 450px;
	aspect-ratio: 1 / 1;
	margin-inline: auto;
	container-type: inline-size;
}

.ql-banner .constellation-lines {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

/* Connection lines draw themselves in */
.ql-banner .c-line {
	stroke-dasharray: 50;
	stroke-dashoffset: 50;
	opacity: 0;
	animation: ql-line-draw 1.2s ease var(--delay, 0.6s) forwards;
}
@keyframes ql-line-draw {
	to {
		stroke-dashoffset: 0;
		opacity: 1;
	}
}
.ql-banner .c-ring {
	opacity: 0;
	animation: ql-fade-in 1.4s ease 1s forwards;
}
@keyframes ql-fade-in {
	to {
		opacity: 1;
	}
}

/* Center hub */
.ql-banner .hub {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 30cqw;
	height: 30cqw;
	transform: translate(-50%, -50%);
	z-index: 3;
	animation: ql-hub-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes ql-hub-in {
	from {
		transform: translate(-50%, -50%) scale(0);
		opacity: 0;
	}
	to {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
}
.ql-banner .hub-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: hsl(var(--ql-bg) / 0.4);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid hsl(var(--ql-primary) / 0.3);
	box-shadow: 0 0 30px hsl(var(--ql-primary) / 0.2);
	color: var(--color-7);
}
.ql-banner .hub-glow {
	position: absolute;
	inset: 0;
	border-radius: 9999px;
	background: hsl(var(--ql-primary) / 0.1);
	animation: ql-pulse-glow 3s ease-in-out infinite;
}
.ql-banner .hub-icon {
	width: 38%;
	height: 38%;
}
.ql-banner .status-dots {
	display: flex;
	gap: 1.4cqw;
	margin-top: 6%;
}
.ql-banner .status-dots span {
	width: 1.6cqw;
	height: 1.6cqw;
	min-width: 4px;
	min-height: 4px;
	border-radius: 9999px;
	background: #22c55e;
	animation: ql-blink 1.4s ease-in-out infinite;
}
.ql-banner .status-dots span:nth-child(2) {
	animation-delay: 0.2s;
}
.ql-banner .status-dots span:nth-child(3) {
	animation-delay: 0.4s;
}

/* Service nodes */
.ql-banner .node {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 23cqw;
	height: 23cqw;
	display: block;
	text-decoration: none;
	/* Resting position (also the no-animation fallback) */
	transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
	z-index: 4;
	animation: ql-node-in 0.9s cubic-bezier(0.34, 1.45, 0.5, 1) var(--delay, 0s) both;
}
@keyframes ql-node-in {
	from {
		transform: translate(-50%, -50%) scale(0.4);
		opacity: 0;
	}
	to {
		transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1);
		opacity: 1;
	}
}
.ql-banner .node-inner {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6%;
	border-radius: 14%;
	background: hsl(223 47% 9%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
	color: hsl(var(--ql-fg));
	transition: transform 0.3s ease, background-color 0.3s ease,
		border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
	background: hsl(214 60% 13%);
	border-color: hsl(var(--ql-primary) / 0.5);
	box-shadow: 0 0 26px hsl(var(--ql-primary) / 0.35);
	color: #fff;
}
.ql-banner a.node {
	cursor: pointer;
}
.ql-banner a.node:hover .node-inner,
.ql-banner a.node:focus-visible .node-inner {
	transform: translateY(-8px) scale(1.05);
}
.ql-banner a.node:focus-visible {
	outline: 2px solid hsl(var(--ql-primary) / 0.7);
	outline-offset: 4px;
	border-radius: 14%;
}
.ql-banner .node-icon {
	width: 34%;
	height: 34%;
	color: hsl(var(--ql-fg));
	transition: color 0.3s ease;
	color: var(--color-7);
	container-type: inline-size;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ql-banner .node-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}
.ql-banner .node-icon i {
	font-size: 80cqw;
}
.ql-banner .node-label {
	font-size: clamp(10px, 3.2cqw, 15px);
	line-height: 1.1;
	text-align: center;
	font-weight: 500;
	padding: 0 6%;
	color: hsl(var(--ql-muted));
	transition: color 0.3s ease;
	color: #fff;
}
body.ip .ql-banner .content-wrap {
	min-height: min(37.5vw, calc(100vh - var(--headerHeight) - 165px));
	display: flex;
	align-items: center;
}
body.ip .ql-banner .ql-banner-inner.no-links {
	padding-block: 0;
}
@keyframes ql-pulse-glow {
	0%,
	100% {
		opacity: 0.5;
		filter: blur(10px);
	}
	50% {
		opacity: 0.85;
		filter: blur(16px);
	}
}
@keyframes ql-blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.3;
	}
}

@media screen and (min-width: 1300px) {
	.ql-banner .container {
		width: 1270px;
	}
}
@media screen and (max-width: 991px) {
	.ql-banner .banner-row {
		grid-template-columns: 1fr;
	}
	.ql-banner .constellation {
		max-width: 400px;
	}
}
@media screen and (max-width: 767px) {
	.ql-banner h1 {
		font-size: 48px;
	}
	.ql-banner .constellation {
		max-width: 340px;
	}
}

/* Respect reduced-motion: show the final composition, no movement */
@media (prefers-reduced-motion: reduce) {
	.ql-banner .node,
	.ql-banner .hub,
	.ql-banner .c-line,
	.ql-banner .c-ring,
	.ql-banner .hub-glow,
	.ql-banner .status-dots span {
		animation: none !important;
	}
	.ql-banner .c-line {
		stroke-dashoffset: 0;
		opacity: 1;
	}
	.ql-banner .c-ring {
		opacity: 1;
	}
}
.test-lines .line {
	height: 10px;
	background-color: #ccc;
	text-align: center;
	font-size: 10px;
}
.test-lines .line:nth-child(even) {
	background-color: #eee;
}