/* ==========================================================================
   HQDM v5 vector scenes (round 2, agent B, 06.11.2026). Wordless, decorative, aria-hidden.
   Markup: 07-build/scenes.py. Loaded on every page whose content contains "hq-scene" (inc/assets.php).

   API (build.py: from scenes import scene, scene_stage):
     scene(kind, lg=False)       .hq-scene.hq-scene--<serp|map|bars|devices|cart|route|stars|gauge>[.hq-scene--lg]
                                 one dark well. Give it a size (width + height, or flex-grow inside a card);
                                 it is a size container, every mark is sized in px per tier (card / lg).
     scene_stage(kind, arc_only, cls)
                                 .hq-hstage.hq-hstage--<seo|generic|local|ppc|moving|arc>: the service hero's right
                                 half (orbit arc + glass window .hq-hwin with scene(kind, lg) + satellite .hq-hsat or the
                                 moving van line art .hq-hvan). Grid placement: column 2 / row 1 of .hq-hero--svc5;
                                 other hosts can override grid-column / width / justify-self.
   Driver: --on (0 rest, 1 active), inherited from the host. Unhosted scenes default to 1 (end state).
     hub cards: pages.css sets --on: 1 on :hover / keyboard focus (fine pointers); touch + reduced motion = 1.
     hero stage: 0 until site.js adds .is-on (~350ms after load), then 1; reduced motion = 1 at once.
   Timing: every transition takes its duration from --t and its delay from --dl, scaled by --o, so entering plays
   the choreography (ease-out entrances, ease-in-out moves, 30 to 130ms staggers, <= 1.4s in total) and leaving
   snaps back in --sc-out (250ms) with no delay. --sc-lead offsets a whole scene (hero satellite plays after the window).
   Idle: caret blink (SEO), ground ping (Local pin, PPC + SEO end points once active). Only on screen
   ([data-offscreen-pause] -> .is-offscreen), never with reduced motion.
   Strokes: structure 1px, data base 1.5px, live data 2px, icons 1.5px at every size (scenes.py icon()).
   ========================================================================== */

/* --------------------------------------------------------------------------
   The well: dark glass, dot grid, one cyan light top right, violet rising from the bottom
   -------------------------------------------------------------------------- */
.hq-scene {
	--o: var(--on, 1);
	--sc-out: var(--d-2);
	--sc-lead: 0ms;
	--sc-pad: 20px;
	--sc-panel: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .015) 70%), rgba(15, 8, 33, .8);
	--sc-panel-edge: inset 0 0 0 1px rgba(255, 255, 255, .085), inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 44px -22px rgba(0, 0, 0, .9);
	--sk-1: rgba(196, 173, 255, .46);   /* skeleton title */
	--sk-2: rgba(255, 255, 255, .1);    /* skeleton text */
	position: relative;
	overflow: hidden;
	container-type: size;
	isolation: isolate;
	border-radius: calc(var(--r-3) - var(--sp-2));
	background:
		radial-gradient(60% 70% at 100% 0%, var(--cyan-8), transparent 70%),
		radial-gradient(80% 70% at 40% 120%, rgba(151, 71, 255, .22), transparent 72%),
		#0a0418;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .05);
	pointer-events: none;
}
.hq-scene--lg { --sc-pad: 24px; }
.hq-scene::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(circle, rgba(255, 255, 255, .075) 0 1px, transparent 1.2px) 8px 8px / 16px 16px;
	-webkit-mask: radial-gradient(75% 85% at 50% 45%, #000, transparent);
	mask: radial-gradient(75% 85% at 50% 45%, #000, transparent);
}
.hq-scene i { display: block; font-style: normal; }
.hq-scene svg { display: block; max-width: none; overflow: visible; }
.hq-scene .hq-icon { flex: none; width: var(--ic, 24px); height: var(--ic, 24px); }   /* base.css forces 24px; each mark sets --ic */
.hq-serp__bar { --ic: 14px; }
.hq-scene--lg .hq-serp__bar { --ic: 16px; }
.hq-serp__up { --ic: 12px; }
.hq-scene--lg .hq-serp__up { --ic: 14px; }
.hq-node { --ic: 22px; }
/* one timing rule for every mark: enter = --t after --dl, leave = --sc-out at once */
.hq-scene * {
	transition-property: none;
	transition-timing-function: var(--ease-out);
	transition-duration: calc(var(--sc-out) + var(--o) * (var(--t, 500ms) - var(--sc-out)));
	transition-delay: calc(var(--o) * (var(--sc-lead) + var(--dl, 0ms)));
}
/* skeleton text: title 6px, text 4px, pill ends */
.hq-sk { height: 4px; border-radius: var(--r-pill); background: var(--sk-2); }
.hq-sk--t { height: 6px; background: var(--sk-1); }
/* draw-on for lines that run left to right: a clip opens from the left (exact at any size, any stroke) */
.hq-reveal { clip-path: inset(-12px calc((1 - var(--o)) * 100%) -12px -12px); transition-property: clip-path; transition-timing-function: var(--ease-in-out); }
/* glass panel inside a scene (results page, 3-pack, ad) */
.hq-serp__win, .hq-pack, .hq-ad {
	position: absolute;
	border-radius: var(--r-2);
	background: var(--sc-panel);
	box-shadow: var(--sc-panel-edge);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
/* the idle ground ping (Local pin, end points) */
@keyframes hq-sc-ping { 0% { transform: scale(.35); opacity: .9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes hq-sc-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* --------------------------------------------------------------------------
   SEO: a results page; the search is typed, the client's result climbs from #4 to #1 past the
   others, a trend chart draws underneath and its end point lights.
   -------------------------------------------------------------------------- */
.hq-scene--trend { --chn: .78; --ch: calc(var(--chn) * 100%); }
.hq-scene--serp { --row: 40px; --row-h: 32px; --fav: 16px; --chn: .56; --ch: calc(var(--chn) * 100%); }
.hq-scene--serp.hq-scene--lg { --row: 46px; --row-h: 38px; --fav: 20px; }
/* chart: gridlines, the old trend (violet), the new one (cyan, draws) over a soft area */
.hq-serp__grid {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--ch);
	background:
		linear-gradient(rgba(255, 255, 255, .05) 0 0) 0 25% / 100% 1px no-repeat,
		linear-gradient(rgba(255, 255, 255, .05) 0 0) 0 50% / 100% 1px no-repeat,
		linear-gradient(rgba(255, 255, 255, .05) 0 0) 0 75% / 100% 1px no-repeat;
	-webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hq-serp__chart { position: absolute; left: 0; right: var(--sc-pad); bottom: 0; width: calc(100% - var(--sc-pad)); height: var(--ch); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hq-serp__chart path { vector-effect: non-scaling-stroke; }
.hq-serp__base { stroke: rgba(196, 173, 255, .42); stroke-width: 1.5; }
/* rest: the old trend ends in a quiet violet node; it dims as the new trend takes over */
.hq-serp__was {
	--t: 300ms;
	position: absolute;
	right: var(--sc-pad);
	top: calc(100% - var(--ch) * .45);
	width: 7px;
	height: 7px;
	margin: -3.5px -3.5px 0 0;
	border-radius: 50%;
	background: #0d0620;
	box-shadow: inset 0 0 0 1.5px rgba(196, 173, 255, .7);
	opacity: calc(1 - var(--o) * .6);
	transition-property: opacity;
}
.hq-serp__live { stroke: var(--c-cyan); stroke-width: 2; filter: drop-shadow(0 0 6px var(--cyan-35)); }
.hq-serp__area { opacity: .7; }
.hq-serp__chart.hq-reveal { --t: 1050ms; --dl: 200ms; }
.hq-serp__chart { -webkit-mask: linear-gradient(90deg, rgba(0, 0, 0, .5), #000 30%); mask: linear-gradient(90deg, rgba(0, 0, 0, .5), #000 30%); }
.hq-serp__end::before { content: ""; position: absolute; left: 4px; top: 9px; width: 1px; height: calc(var(--chn) * .85 * 100cqh - 12px); background: linear-gradient(rgba(103, 232, 249, .5) 50%, transparent 0) 0 0 / 1px 4px; -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
.hq-serp__end {
	--t: 300ms;
	--dl: 1250ms;   /* = the line's reveal delay + duration: lights as the line arrives */
	position: absolute;
	right: var(--sc-pad);
	top: calc(100% - var(--ch) * .85);
	width: 9px;
	height: 9px;
	margin: -4.5px -4.5px 0 0;
	border-radius: 50%;
	background: #e6fdff;
	box-shadow: 0 0 0 3px rgba(103, 232, 249, .22), 0 0 14px 2px var(--cyan-60);
	opacity: var(--o);
	transform: scale(calc(.4 + var(--o) * .6));
	transition-property: opacity, transform;
}
.hq-serp__end::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-cyan); animation: hq-sc-ping 2.8s var(--ease-out) 1.6s infinite both; }
/* the results window */
.hq-serp__win {
	z-index: 1;
	top: var(--sc-pad);
	left: 50%;
	width: min(100% - 2 * var(--sc-pad), 440px);
	padding: 12px;
	transform: translateX(-50%);
}
.hq-scene--lg .hq-serp__win { width: calc(100% - 2 * var(--sc-pad)); padding: 14px; }
@container (max-height: 320px) { .hq-scene--serp :is(.hq-serp__end, .hq-serp__was, .hq-serp__chart, .hq-serp__grid) { display: none; } .hq-scene--serp .hq-serp__win { top: 50%; transform: translate(-50%, -50%); } }
/* small hero windows (tablet stage): the card row tier, so the results never touch the window edge */
@container (max-height: 320px) { .hq-scene--serp.hq-scene--lg .hq-serp__win { --row: 40px; --row-h: 32px; --fav: 16px; padding: 12px; } }
/* tall wells (the 2-row SEO card): the hero row tier, so the results window and the chart share the height */
@container (min-height: 520px) { .hq-scene--serp :is(.hq-serp__chart, .hq-serp__grid, .hq-serp__end, .hq-serp__was) { --chn: .64; --ch: calc(var(--chn) * 100%); } .hq-scene--serp .hq-serp__win { --row: 46px; --row-h: 38px; --fav: 18px; width: min(100% - 2 * var(--sc-pad), 480px); padding: 14px; top: 28px; } }
.hq-serp__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	height: var(--row-h);
	padding: 0 14px;
	border-radius: var(--r-pill);
	color: var(--c-text-faint);
	background: rgba(255, 255, 255, .04);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.hq-serp__qw { position: relative; flex: 0 0 46%; height: 14px; container-type: inline-size; }
.hq-serp__q {
	--t: 320ms;
	position: absolute;
	left: 0;
	top: 4px;
	width: 100%;
	height: 6px;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .22);
	clip-path: inset(0 calc((1 - .64 - var(--o) * .36) * 100%) 0 0 round 3px);
	transition-property: clip-path;
	transition-timing-function: steps(5, end);
}
/* the caret rides the end of the typed query (container units of the query wrapper; transform only) */
.hq-serp__caret {
	--t: 320ms;
	position: absolute;
	left: 0;
	top: 0;
	width: 1.5px;
	height: 14px;
	border-radius: 1px;
	background: var(--c-cyan);
	transform: translateX(calc((.64 + var(--o) * .36) * 100cqw + 3px));
	transition-property: transform;
	transition-timing-function: steps(5, end);
	animation: hq-sc-blink 1.1s steps(1) infinite;
}
.hq-serp__list { position: relative; display: block; height: calc(4 * var(--row) - (var(--row) - var(--row-h))); margin-top: 12px; }
.hq-serp__row {
	--t: 440ms;
	--dl: calc(330ms + (2 - var(--r)) * 120ms);
	position: absolute;
	inset: 0 0 auto;
	display: grid;
	grid-template-columns: var(--fav) minmax(0, 1fr) auto;
	grid-template-rows: 6px 4px;
	align-content: center;
	column-gap: 12px;
	row-gap: 7px;
	height: var(--row-h);
	padding: 0 10px;
	border-radius: var(--r-1);
	transform: translateY(calc((var(--r) + var(--o)) * var(--row)));
	transition-property: transform;
	transition-timing-function: var(--ease-in-out);
}
.hq-serp__fav { grid-row: 1 / span 2; width: var(--fav); height: var(--fav); border-radius: 50%; background: rgba(196, 173, 255, .18); box-shadow: inset 0 0 0 1px rgba(196, 173, 255, .32); }
.hq-serp__row .hq-sk--t { width: 56%; }
.hq-serp__row .hq-sk--d { width: 88%; grid-column: 2; }
.hq-serp__row:nth-child(2) .hq-sk--t { width: 44%; }
.hq-serp__row:nth-child(3) .hq-sk--t { width: 62%; }
.hq-serp__row:nth-child(2) .hq-sk--d { width: 76%; }
.hq-serp__row.is-client {
	--t: 640ms;
	--dl: 300ms;
	z-index: 1;
	transform: translateY(calc((3 - var(--o) * 3) * var(--row)));
	background: rgba(103, 232, 249, .05);
	box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .3), 0 14px 28px -16px rgba(103, 232, 249, .5);
}
.hq-serp__row.is-client .hq-serp__fav { background: var(--c-cyan); box-shadow: 0 0 10px -1px var(--cyan-60); }
.hq-serp__row.is-client .hq-sk--t { background: var(--c-cyan); }
.hq-serp__row.is-client .hq-sk--d { background: var(--cyan-35); }
/* the payoff: an "up" chip lands on the client's row once it is #1 */
.hq-serp__up {
	--t: 300ms;
	--dl: 940ms;
	grid-column: 3;
	grid-row: 1 / span 2;
	display: grid !important;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: var(--c-cyan);
	background: rgba(103, 232, 249, .1);
	box-shadow: inset 0 0 0 1px var(--cyan-35);
	opacity: var(--o);
	transform: scale(calc(.6 + var(--o) * .4));
	transition-property: opacity, transform;
}
.hq-scene--lg .hq-serp__up { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   Local SEO: a street map with competitor pins; the client's rating fills, its pin lifts inside a
   search radius and its listing climbs to the top of the 3-pack.
   -------------------------------------------------------------------------- */
.hq-scene--map, .hq-scene--route { --pin: 20px; --pin-c: 28px; --prow: 30px; --prow-h: 26px; --star: 8px; }
.hq-scene--lg:is(.hq-scene--map, .hq-scene--route) { --pin: 24px; --pin-c: 36px; --prow: 36px; --prow-h: 30px; --star: 9px; }
.hq-map__roads { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; }
.hq-map__roads path { vector-effect: non-scaling-stroke; }
.hq-map__roads .is-minor { stroke: rgba(255, 255, 255, .055); stroke-width: 1; }
.hq-map__roads .is-casing { stroke: rgba(196, 173, 255, .06); stroke-width: 10; }
.hq-map__roads .is-major { stroke: rgba(196, 173, 255, .22); stroke-width: 1.5; }
.hq-map__water { stroke: rgba(103, 232, 249, .045); stroke-width: 18; }
/* a spot is a zero-size anchor on the map; the pin's tip sits on it */
.hq-spot { position: absolute; left: round(calc(var(--x) * 100%), 1px); top: round(calc(var(--y) * 100%), 1px); width: 0; height: 0; }
.hq-pin { position: absolute; left: calc(var(--pin) / -2); top: calc(var(--pin) * -23 / 24); width: var(--pin); height: var(--pin); }
.hq-pin__body { fill: #7b55e8; stroke: rgba(255, 255, 255, .22); stroke-width: .8; }
.hq-pin__eye { fill: #0d0620; }
.hq-spot__shadow { position: absolute; left: -6px; top: -2px; width: 12px; height: 4px; border-radius: 50%; background: rgba(0, 0, 0, .6); filter: blur(1px); }
.hq-spot:not(.hq-spot--client) { --t: 300ms; --dl: calc(var(--k) * 40ms); opacity: calc(1 - var(--o) * .5); transition-property: opacity; }
.hq-spot--client { z-index: 1; --pin: var(--pin-c); }
.hq-spot--client .hq-pin { --t: 460ms; --dl: 420ms; transform: translateY(calc(var(--o) * -6px)); filter: drop-shadow(0 0 calc(4px + var(--o) * 6px) rgba(103, 232, 249, .45)); transition-property: transform, filter; }
.hq-spot--client .hq-pin__body { fill: var(--c-cyan); stroke: rgba(255, 255, 255, .5); }
.hq-spot--client .hq-pin__eye { fill: #0a0318; }
.hq-spot--client .hq-spot__shadow { --t: 460ms; --dl: 420ms; left: -8px; width: 16px; transform: scale(calc(1 - var(--o) * .35)); opacity: calc(1 - var(--o) * .4); transition-property: transform, opacity; }
/* search radius: a dashed circle around the client that opens as it wins */
.hq-spot__radius {
	--t: 700ms;
	--dl: 380ms;
	position: absolute;
	left: -58px;
	top: -58px;
	width: 116px;
	height: 116px;
	border-radius: 50%;
	border: 1px dashed rgba(103, 232, 249, .42);
	background: radial-gradient(closest-side, rgba(103, 232, 249, .08), rgba(103, 232, 249, .02) 70%, transparent);
	opacity: calc(.25 + var(--o) * .75);
	transform: scale(calc(.62 + var(--o) * .38));
	transition-property: opacity, transform;
}
.hq-scene--lg .hq-spot__radius { left: -76px; top: -76px; width: 152px; height: 152px; }
.hq-spot__ping { position: absolute; left: -16px; top: -6px; width: 32px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-cyan); animation: hq-sc-ping 3s var(--ease-out) infinite both; }
/* the 3-pack */
.hq-pack { z-index: 1; right: 16px; top: 50%; width: min(44%, 210px); height: calc(3 * var(--prow) - (var(--prow) - var(--prow-h)) + 16px); padding: 8px; transform: translateY(-50%); }
.hq-scene--lg .hq-pack { top: auto; bottom: var(--sc-pad); right: var(--sc-pad); width: min(46%, 240px); transform: none; }
.hq-pack__row {
	--t: 420ms;
	--dl: calc(560ms + (1 - var(--r)) * 120ms);
	position: absolute;
	left: 8px;
	right: 8px;
	top: 8px;
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr);
	grid-template-rows: 5px var(--star);
	align-content: center;
	gap: 6px 10px;
	height: var(--prow-h);
	padding: 0 8px;
	border-radius: var(--r-1);
	transform: translateY(calc((var(--r) + var(--o)) * var(--prow)));
	transition-property: transform;
	transition-timing-function: var(--ease-in-out);
}
.hq-pack__pin { grid-row: 1 / span 2; align-self: center; width: 10px; height: 10px; margin-top: 1px; fill: rgba(196, 173, 255, .55); }
.hq-pack__row .hq-sk--t { height: 5px; width: 72%; background: rgba(255, 255, 255, .24); }
.hq-pack__row:nth-child(2) .hq-sk--t { width: 58%; }
/* stars: five 8px marks via a mask; the fill is a clipped layer over a faint base */
.hq-pack__stars {
	--stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Cpath d='M5 .3l1.3 2.7 2.9.4-2.1 2 .5 2.9L5 6.9 2.4 8.3l.5-2.9-2.1-2 2.9-.4z'/%3E%3C/svg%3E");
	position: relative;
	width: calc(5 * var(--star) * 10 / 9 + 4 * 2px);
	height: var(--star);
	background: rgba(196, 173, 255, .22);
	-webkit-mask: var(--stars) 0 0 / calc(var(--star) * 10 / 9 + 2px) var(--star) repeat-x;
	mask: var(--stars) 0 0 / calc(var(--star) * 10 / 9 + 2px) var(--star) repeat-x;
}
.hq-pack__stars i { position: absolute; inset: 0; background: rgba(196, 173, 255, .6); clip-path: inset(0 20% 0 0); }
.hq-pack__row.is-client {
	--t: 600ms;
	--dl: 520ms;
	z-index: 1;
	transform: translateY(calc((2 - var(--o) * 2) * var(--prow)));
	background: rgba(103, 232, 249, .06);
	box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .26);
}
.hq-pack__row.is-client .hq-pack__pin { fill: var(--c-cyan); }
.hq-pack__row.is-client .hq-sk--t { background: var(--cyan-60); }
.hq-pack__row.is-client .hq-pack__stars { background: var(--cyan-18); }
.hq-pack__row.is-client .hq-pack__stars i { --t: 420ms; --dl: 120ms; background: var(--c-cyan); clip-path: inset(0 calc((1 - .6 - var(--o) * .4) * 100%) 0 0); transition-property: clip-path; transition-timing-function: steps(2, end); }

/* --------------------------------------------------------------------------
   PPC: the cursor clicks the ad, spend bars rise in turn and a cyan conversion line joins their
   tops; the last (cyan) bar leads.
   -------------------------------------------------------------------------- */
.hq-bars__plot { position: absolute; inset: 22px 20px 20px; }
.hq-scene--lg .hq-bars__plot { inset: 32px 28px 28px; }
.hq-bars__grid {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(rgba(255, 255, 255, .05) 0 0) 0 0 / 100% 1px no-repeat,
		linear-gradient(rgba(255, 255, 255, .05) 0 0) 0 33.33% / 100% 1px no-repeat,
		linear-gradient(rgba(255, 255, 255, .05) 0 0) 0 66.66% / 100% 1px no-repeat;
}
.hq-bars__grid::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline-cyan); }
.hq-bars { position: absolute; inset: 0 0 1px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hq-bars__bar {
	--t: 560ms;
	--dl: calc(380ms + var(--k) * 45ms);
	justify-self: center;
	width: 52%;
	height: 100%;
	border-radius: 4px 4px 1px 1px;
	background: linear-gradient(180deg, rgba(167, 128, 255, .72), rgba(151, 71, 255, .16));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
	clip-path: inset(calc((1 - var(--a) - (var(--b) - var(--a)) * var(--o)) * 100%) 0 0 0 round 4px 4px 1px 1px);
	transition-property: clip-path;
}
.hq-bars__bar.is-cy { background: linear-gradient(180deg, #e6fdff, var(--c-cyan) 14%, rgba(58, 209, 255, .22)); box-shadow: none; }
.hq-bars__line { position: absolute; inset: 0 0 1px; width: 100%; height: calc(100% - 1px); fill: none; stroke: var(--c-cyan); stroke-width: 1.5; stroke-linejoin: round; }
.hq-bars__line { --t: 640ms; --dl: 820ms; opacity: var(--o); transition-property: clip-path, opacity; }   /* fades on exit so it never floats over falling bars */
.hq-bars__line polyline { vector-effect: non-scaling-stroke; }
.hq-bars__nodes { position: absolute; inset: 0 0 1px; }
.hq-bars__node {
	--t: 260ms;
	--dl: calc(840ms + var(--k) * 80ms);
	position: absolute;
	left: round(calc(var(--x) * 100%), 1px);
	bottom: round(calc(var(--b) * 100%), 1px);
	width: 7px;
	height: 7px;
	margin: 0 0 -3.5px -3.5px;
	border-radius: 50%;
	background: #0d0620;
	box-shadow: inset 0 0 0 1.5px var(--c-cyan);
	opacity: var(--o);
	transform: scale(calc(.5 + var(--o) * .5));
	transition-property: opacity, transform;
}
.hq-bars__node.is-cy { width: 9px; height: 9px; margin: 0 0 -4.5px -4.5px; background: #e6fdff; box-shadow: 0 0 0 3px rgba(103, 232, 249, .22), 0 0 12px 2px var(--cyan-60); }
.hq-bars__node.is-cy::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-cyan); animation: hq-sc-ping 2.8s var(--ease-out) 1.6s infinite both; }
/* the ad, the cursor and its click */
.hq-ad { z-index: 1; top: 14px; left: 14px; display: grid; gap: 7px; width: min(46%, 184px); padding: 10px 12px 12px; }
.hq-scene--lg .hq-ad { top: var(--sc-pad); left: var(--sc-pad); width: min(48%, 216px); gap: 9px; padding: 14px 16px 16px; }
.hq-ad__tag { width: 18px; height: 9px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .55); }
.hq-ad .hq-sk--t { width: 78%; }
.hq-ad .hq-sk--d { width: 92%; }
.hq-ad__cta {
	--t: 160ms;
	--dl: 330ms;
	position: relative;
	width: 42%;
	height: 12px;
	margin-top: 3px;
	border-radius: var(--r-pill);
	background: linear-gradient(180deg, #8a5cf7, #6534d6);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 calc(var(--o) * 3px) rgba(103, 232, 249, .25);
	transition-property: box-shadow;
}
.hq-scene--lg .hq-ad__cta { height: 14px; }
.hq-ad__ripple { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--c-cyan); opacity: 0; }
.hq-cursor {
	--t: 330ms;
	position: absolute;
	left: calc(50% - 16px * 5.5 / 24);
	top: calc(50% - 16px * 3.2 / 24);
	z-index: 1;
	width: 16px;
	height: 16px;
	fill: #fff;
	stroke: #0a0318;
	stroke-width: 1.2;
	stroke-linejoin: round;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
	transform-origin: 23% 13%;
	transform: translate(calc(30px - var(--o) * 30px), calc(14px - var(--o) * 14px));
	transition-property: transform;
}
/* the press and the ripple need a start and an end: keyframes, started by the same --on (style queries) */
@container style(--o: 1) {
	.hq-cursor { animation: hq-sc-press 220ms var(--ease-out) calc(var(--sc-lead) + 330ms); }
	.hq-ad__ripple { animation: hq-sc-ripple 620ms var(--ease-out) calc(var(--sc-lead) + 380ms) forwards; }
}
@keyframes hq-sc-press { 0%, 100% { scale: 1; } 45% { scale: .84; } }
@keyframes hq-sc-ripple { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }

/* --------------------------------------------------------------------------
   Web design (case hub): desktop, tablet and phone fan out; the speed ring fills (look unchanged)
   -------------------------------------------------------------------------- */
.hq-scene--devices { min-height: 232px; }
.hq-dev {
	position: absolute;
	left: 50%;
	bottom: -14px;
	display: grid;
	align-content: start;
	gap: 7px;
	padding: 10px;
	border-radius: var(--r-2);
	background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01)), rgba(13, 7, 30, .96);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 40px -18px rgba(0, 0, 0, .95);
	transform-origin: 50% 100%;
	transition: transform var(--d-3) var(--ease-out);
}
.hq-dev__bar { height: 5px; width: 40%; border-radius: var(--r-pill); background: rgba(255, 255, 255, .2); }
.hq-dev__hero { height: 34%; border-radius: var(--r-1); background: radial-gradient(70% 90% at 30% 20%, rgba(151, 71, 255, .5), transparent 70%), radial-gradient(50% 80% at 90% 90%, var(--cyan-18), transparent 70%), rgba(255, 255, 255, .03); }
.hq-dev__l { height: 5px; width: 82%; border-radius: var(--r-pill); background: rgba(255, 255, 255, .12); }
.hq-dev__l.is-short { width: 56%; }
.hq-dev__cta { width: 34%; height: 10px; border-radius: var(--r-pill); background: linear-gradient(180deg, #8a5cf7, #6534d6); }
.hq-dev--desk { z-index: 1; width: 60cqw; height: 80%; transform: translateX(calc(-50% - var(--o) * 16cqw)) rotate(calc(var(--o) * -4deg)); }
.hq-dev--tab { z-index: 2; width: 28cqw; height: 68%; transform: translateX(calc(-10% + var(--o) * 4cqw)) translateY(calc(var(--o) * -6px)) rotate(calc(var(--o) * 2deg)); }
.hq-dev--phone { z-index: 3; width: 14cqw; min-width: 64px; height: 56%; border-radius: var(--r-2); transform: translateX(calc(60% + var(--o) * 22cqw)) translateY(calc(var(--o) * -12px)) rotate(calc(var(--o) * 6deg)); }
.hq-dev--phone .hq-dev__hero { height: 28%; }
.hq-ring { position: absolute; top: var(--sp-4); right: var(--sp-4); width: 52px; height: 52px; transform: rotate(-90deg); }
.hq-ring circle { fill: none; stroke-width: 3; }
.hq-ring__track { stroke: rgba(255, 255, 255, .1); }
.hq-ring__val { stroke: var(--c-cyan); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--o) * 96); stroke-opacity: var(--o); filter: drop-shadow(0 0 4px var(--cyan-60)); transition: stroke-dashoffset var(--d-4) var(--ease-out), stroke-opacity var(--d-1) var(--ease); }   /* rest: track only (a round cap would leave a dot) */

/* --------------------------------------------------------------------------
   E-commerce (case hub): product, cart, checkout. Solid nodes; the dashed connector runs only
   between their edges (two segments); the cyan fill runs segment by segment, each node lights as it arrives.
   -------------------------------------------------------------------------- */
.hq-scene--cart { display: grid; place-items: center; }
.hq-nodes { display: flex; align-items: center; width: min(80%, 440px); }
.hq-node {
	--t: 260ms;
	--dl: calc(var(--k) * 380ms);
	flex: none;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	color: var(--c-text-muted);
	background: radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, .1), transparent 60%);
	background-color: rgb(calc(20 + var(--o) * 102) calc(11 + var(--o) * 61) calc(43 + var(--o) * 195));
	box-shadow: inset 0 0 0 1px rgba(196, 173, 255, calc(.3 - var(--o) * .3)), inset 0 0 0 1px rgba(103, 232, 249, calc(var(--o) * .6)), 0 0 calc(var(--o) * 22px) -4px rgba(151, 71, 255, .9);
	transition-property: background-color, box-shadow, color;
}
.hq-flow {
	position: relative;
	flex: 1;
	height: 2px;
	background: linear-gradient(90deg, transparent 25%, rgba(196, 173, 255, .4) 25% 75%, transparent 75%) 0 0 / 12px 2px round;
}
.hq-flow__live {
	--t: 380ms;
	--dl: calc(var(--s) * 380ms);
	position: absolute;
	inset: 0;
	border-radius: 1px;
	background: linear-gradient(90deg, #4fd6ee, var(--c-cyan));
	box-shadow: 0 0 8px var(--cyan-60);
	transform: scaleX(var(--o));
	transform-origin: 0 50%;
	transition-property: transform;
	transition-timing-function: var(--ease-in-out);
}

/* --------------------------------------------------------------------------
   Satellites of the hero stage: rating stars, score gauge
   -------------------------------------------------------------------------- */
.hq-scene--stars { --st: min(26px, 13cqw); --sg: min(8px, 3cqw); display: grid; place-content: center; justify-items: center; gap: 14px; }
.hq-stars { display: flex; gap: var(--sg); }
.hq-star {
	--t: 260ms;
	--dl: calc(var(--k) * 70ms);
	width: var(--st);
	height: var(--st);
	fill: rgba(103, 232, 249, calc(.08 + var(--o) * .92));
	stroke: rgba(103, 232, 249, calc(.45 + var(--o) * .55));
	stroke-width: 1.2;
	stroke-linejoin: round;
	filter: drop-shadow(0 0 calc(var(--o) * 6px) var(--cyan-35));
	transition-property: fill, stroke, filter;
	transition-timing-function: var(--ease);
}
.hq-stars__meter { position: relative; width: calc(5 * var(--st) + 4 * var(--sg)); height: 2px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); overflow: hidden; }
.hq-stars__meter i { --t: 620ms; --dl: 120ms; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-35), var(--c-cyan)); transform: scaleX(calc(.1 + var(--o) * .9)); transform-origin: 0 50%; transition-property: transform; }

.hq-scene--gauge { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 22px; }
.hq-gauge__dial { flex: none; width: 64px; height: 64px; }
.hq-gauge__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.hq-gauge__ring circle { fill: none; stroke-width: 3; }
.hq-gauge__track { stroke: rgba(255, 255, 255, .09); }
.hq-gauge__val { --t: 900ms; --dl: 80ms; stroke: var(--c-cyan); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: calc(78 - var(--o) * 70); filter: drop-shadow(0 0 4px var(--cyan-35)); transition-property: stroke-dashoffset; }
.hq-gauge__lines { display: grid; gap: 12px; flex: 1; min-width: 0; max-width: 112px; }
.hq-gauge__l { --t: 520ms; --dl: calc(200ms + var(--k) * 70ms); height: 5px; border-radius: var(--r-pill); background: rgba(196, 173, 255, .3); transform: scaleX(calc(.3 + var(--o) * (.7 - var(--k) * .2))); transform-origin: 0 50%; transition-property: transform; }
.hq-gauge__l:first-child { background: var(--cyan-60); }

/* --------------------------------------------------------------------------
   Moving route (hero window): the route draws from the depot to the client's pin, then the pin
   lifts and the client's listing climbs in the 3-pack
   -------------------------------------------------------------------------- */
.hq-route { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; }
.hq-route path { vector-effect: non-scaling-stroke; }
.hq-route__base { stroke: rgba(196, 173, 255, .34); stroke-width: 1.5; stroke-dasharray: 3 6; }
.hq-route.hq-reveal { --t: 1100ms; --dl: 120ms; }
.hq-route__live { stroke: var(--c-cyan); stroke-width: 2; filter: drop-shadow(0 0 5px var(--cyan-35)); }
.hq-route__from { position: absolute; left: round(calc(var(--x) * 100%), 1px); top: round(calc(var(--y) * 100%), 1px); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #0d0620; box-shadow: inset 0 0 0 2px rgba(196, 173, 255, .75); }
.hq-scene--route .hq-spot--client .hq-pin, .hq-scene--route .hq-spot--client .hq-spot__shadow { --dl: 1080ms; }
.hq-scene--route .hq-spot__ping { animation-delay: 1.6s; }
.hq-scene--route .hq-pack { top: var(--sc-pad); bottom: auto; left: var(--sc-pad); right: auto; transform: none; }
.hq-scene--route .hq-pack__row { --dl: calc(1240ms + (1 - var(--r)) * 120ms); }
.hq-scene--route .hq-pack__row.is-client { --dl: 1200ms; }
.hq-scene--route .hq-pack__row.is-client .hq-pack__stars i { --dl: 1000ms; }

/* --------------------------------------------------------------------------
   Hero stage (service heroes): the right half. A fixed-ratio stage (no layout shift) holds a quarter orbit
   centred on its bottom-right corner (the home ring recipe), a glass window with the page's scene at hero size,
   and one satellite tile in front of the window's lower-left corner (or, on the moving page, the old site's van
   line art drawn on in cyan). The window plays first, the satellite after it. Moved here from service.css.
   -------------------------------------------------------------------------- */
@property --hq-drift { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hq-hstage {
	--on: 1;
	--orbit: .76;
	grid-column: 2;
	grid-row: 1;
	position: relative;
	z-index: 0;
	justify-self: end;
	align-self: center;
	width: min(100%, 520px);
	aspect-ratio: 1 / .9;
	margin: 0 !important;
	container-type: inline-size;
	pointer-events: none;
}
html.hq-js .hq-hstage:not(.is-on) { --on: 0; }
.hq-hstage__orbit {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	-webkit-mask: linear-gradient(to top, transparent, #000 18%), linear-gradient(to left, transparent, #000 18%);
	-webkit-mask-composite: source-in;
	mask: linear-gradient(to top, transparent, #000 18%), linear-gradient(to left, transparent, #000 18%);
	mask-composite: intersect;
}
.hq-hstage__orbit circle { fill: none; vector-effect: non-scaling-stroke; }
.hq-hstage__ring { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.hq-hstage__arc { stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--cyan-60)); }
.hq-hstage__nodes { position: absolute; inset: 0; }
.hq-hstage__nodes i {
	position: absolute;
	left: calc(100% - 4px);
	top: calc(100% - 4px);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e6fdff;
	box-shadow: 0 0 6px 2px var(--cyan-60), 0 0 24px 6px var(--cyan-18);
	transform: rotate(calc(var(--a) + var(--hq-drift))) translateY(calc(var(--orbit) * -100cqw));
	animation: hq-hstage-drift 26s var(--ease-in-out) infinite alternate;
}
.hq-hstage__nodes i:nth-child(2) { animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes hq-hstage-drift { from { --hq-drift: -4deg; } to { --hq-drift: 4deg; } }
.hq-hstage.is-offscreen .hq-hstage__nodes i { animation-play-state: paused; }
/* glass mounts: window (the scene), satellite (a small scene in front) */
.hq-hwin, .hq-hsat {
	position: absolute;
	padding: 6px;
	border-radius: var(--r-3);
	background: var(--glass-bg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	box-shadow: var(--glass-shadow), 0 40px 80px -36px rgba(0, 0, 0, .9);
}
.hq-hwin { right: 0; top: 0; width: 92%; height: 76%; }
.hq-hsat { z-index: 1; left: 0; bottom: 0; width: 42%; height: 33%; }
.hq-hwin > .hq-scene, .hq-hsat > .hq-scene { width: 100%; height: 100%; border-radius: calc(var(--r-3) - 6px); }
.hq-hsat > .hq-scene { --sc-lead: 900ms; }
.hq-hstage--moving .hq-hwin { height: 68%; }
/* moving: the van, drawn on like a pen stroke along the bottom of the stage */
/* one composition with the route window: the van group spans the window's width (left edge 8%, right edge 100%),
   the van sits flush with the window's left edge and its ground line runs edge to edge under the window */
.hq-hvan { position: absolute; z-index: 1; left: 8%; right: 0; bottom: 1%; }
.hq-van { display: block; width: 82%; height: auto; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hq-van__road { stroke: rgba(103, 232, 249, .35); stroke-width: 1.4; }
.hq-van__line {
	stroke: var(--c-cyan);
	stroke-width: 2;   /* user units: 1.5px at the 548px stage */
	stroke-dasharray: 100 100;
	stroke-dashoffset: calc(100 - var(--on) * 100);
	filter: drop-shadow(0 0 4px var(--cyan-35));
}
/* the pen draw exists only once the stage is on: the stylesheet can arrive after first paint, and a transition
   defined from the start would animate from the unstyled (fully drawn) state instead */
.hq-hstage.is-on .hq-van__line { transition: stroke-dashoffset 2.2s var(--ease-in-out) 200ms; }
.hq-hvan::before { content: ""; position: absolute; inset: 10% 0 -6%; z-index: -1; background: radial-gradient(60% 60% at 60% 70%, rgba(10, 3, 24, .85), transparent 75%); }
/* the hero copy sits on the dark side; with a stage the horizon streak would cross the window */
.hq-hero--svc5:has(.hq-hstage:not(.hq-hstage--arc))::before { display: none; }
/* arc only: a wide sweep behind the HUD stat tiles (Miami) or a real hero image (Ads lander) */
.hq-hstage--arc { --orbit: .9; width: min(118%, 600px); aspect-ratio: 1; margin-right: -6% !important; }
.hq-hero__stats, .hq-hero__shot { z-index: 1; }

/* idle loops only on screen, never with reduced motion */
.is-offscreen :is(.hq-serp__caret, .hq-spot__ping) { animation-play-state: paused; }
.is-offscreen .hq-serp__end::after, .is-offscreen .hq-bars__node.is-cy::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
	.hq-scene { --o: 1; }
	.hq-scene *, .hq-scene *::after, .hq-hstage * { transition: none !important; animation: none !important; }
	html.hq-js .hq-hstage:not(.is-on) { --on: 1; }
	.hq-spot__ping, .hq-serp__end::after, .hq-bars__node.is-cy::after, .hq-ad__ripple { display: none !important; }
}
/* tablets: the stage sits under the copy at a reduced size; phones: hidden (the hero stays short) */
@media (max-width: 1023px) {
	.hq-hstage { grid-column: 1; grid-row: auto; justify-self: end; width: min(100%, 440px); margin: var(--sp-6) 0 0 !important; }
	.hq-hstage--arc { display: none; }
	/* the hero's cyan light follows the stage down (it would glow over empty space above it) */
	.hq-hero--svc5:has(.hq-hstage:not(.hq-hstage--arc))::after {
		background:
			radial-gradient(40% 26% at 74% 74%, rgba(58, 209, 255, .14), transparent 70%),
			radial-gradient(52% 40% at 6% 0%, rgba(113, 61, 223, .26), transparent 74%);
	}
}
@media (max-width: 600px) { .hq-hstage { display: none; } }
