/* ==========================================================================
   HQDM service template v5 (agent B, 05.11.2026): every service page + the landing pages built by
   build.py build_service_generic. One layout per H2 group, chosen from its content (V5-DIRECTION §5):
   hero with a cyan light field, scroll-fill intro, numbered cards, uneven bento, scroll tab list, why-us,
   editorial columns, fact grid, map tiles, link grid, location card, mid-page strip, stacked FAQ.
   Step-like layouts (deck, rail, numbered facts, process, transit, icon row) live in steps.css.
   Static cards never react to the pointer; only links do (Milan). Tokens from base.css only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Centred hero (pages that are not the v5 service template, e.g. About: build.py generic_hero page != Service)
   -------------------------------------------------------------------------- */
.hq-hero--service { display: grid; justify-items: center; text-align: center; padding-bottom: var(--section-tight); isolation: isolate; overflow: clip; }
.hq-hero--service > * { max-width: none; margin: 0 !important; }
.hq-hero--service::after { content: ""; position: absolute; inset: 0 0 auto; height: 70%; background: radial-gradient(48% 60% at 50% 0%, rgba(113, 61, 223, .24), transparent 72%); z-index: -2; pointer-events: none; }
.hq-hero--service .hq-hero__content { display: grid; justify-items: center; position: relative; z-index: 1; }
.hq-hero--service .hq-title { margin: 0 auto; max-width: 20ch; }
.hq-hero--service .hq-lede { margin: var(--sp-5) auto 0; color: var(--c-text); max-width: 40ch; }
.hq-hero--service .hq-hero__actions { justify-content: center; margin-top: var(--sp-6); }
.hq-hero--service .hq-logos { margin: clamp(64px, 8vw, 96px) auto 0 !important; width: 100%; max-width: var(--wide) !important; }
.hq-hero--service .hq-globe { -webkit-mask: radial-gradient(closest-side, #000 95%, transparent 100%), linear-gradient(#000 30%, transparent 62%); -webkit-mask-composite: source-in; mask: radial-gradient(closest-side, #000 95%, transparent 100%), linear-gradient(#000 30%, transparent 62%); mask-composite: intersect; }
.hq-hero--service:not(.hq-hero--svc5):not(:has(.hq-hero__art)) { min-height: min(92svh, 860px); align-content: center; }
@media (max-width: 781px) { .hq-hero--service:not(.hq-hero--svc5) .hq-globe { top: 40%; } }
.hq-hero__list { list-style: none; padding: 0; margin: var(--sp-5) auto 0; display: grid; gap: var(--sp-2); justify-items: center; color: var(--c-text); }
.hq-hero__list li { margin: 0; }

/* --------------------------------------------------------------------------
   v5 service hero: left-aligned copy, a quiet cyan light field on the right (no globe, no isometric art),
   HUD stat tiles when the hero copy states ratings, Miami skyline as a horizon, logo strip below.
   -------------------------------------------------------------------------- */
.hq-hero--svc5 {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	column-gap: clamp(32px, 5vw, 80px);
	align-items: center;
	justify-items: stretch;
	text-align: left;
	padding-inline: max(var(--gutter), calc((100% - var(--wide)) / 2));
}
.hq-hero--svc5::after {
	/* two lights: violet falling from the top left, cyan blooming on the right with a thin horizon streak */
	inset: 0;
	height: auto;
	background:
		radial-gradient(34% 40% at 82% 44%, rgba(58, 209, 255, .17), transparent 70%),
		radial-gradient(16% 20% at 84% 44%, var(--cyan-18), transparent 72%),
		radial-gradient(52% 62% at 6% 0%, rgba(113, 61, 223, .26), transparent 74%);
}
.hq-hero--svc5::before {
	content: "";
	position: absolute;
	right: 0;
	top: 52%;
	width: min(56vw, 760px);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(103, 232, 249, .12) 30%, rgba(185, 246, 253, .55) 72%, transparent);
	box-shadow: 0 0 24px 2px var(--cyan-18);
	z-index: -1;
	pointer-events: none;
}
.hq-hero--svc5 .hq-hero__content { grid-column: 1; justify-items: start; text-align: left; }
.hq-hero--svc5 .hq-title { margin: 0; max-width: 19ch; }
.hq-hero--svc5 .hq-glowbar { margin-top: var(--sp-5); }
.hq-hero--svc5 .hq-lede { margin: var(--sp-5) 0 0; max-width: 46ch; color: var(--c-text); text-wrap: pretty; }
.hq-hero--svc5 .hq-lede--2 { margin-top: var(--sp-3); color: var(--c-text-muted); font-size: var(--fs-body); }
.hq-hero--svc5 .hq-hero__actions { justify-content: flex-start; margin-top: var(--sp-6); }
.hq-hero--svc5 .hq-logos { grid-column: 1 / -1; }
.hq-hero--svc5.hq-hero--short { padding-bottom: var(--section-tight); }

/* HUD stat tiles (aria-hidden: they repeat numbers the copy states) */
.hq-hero__stats { grid-column: 2; grid-row: 1; display: grid; gap: var(--sp-4); justify-items: end; align-self: center; position: relative; }
.hq-hstat {
	display: grid;
	gap: var(--sp-1);
	min-width: 220px;
	padding: var(--sp-5) var(--sp-6);
	border-radius: var(--r-3);
	background: var(--glass-lit-bottom), var(--glass-bg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	box-shadow: var(--glass-shadow);
}
.hq-hstat:nth-child(2) { margin-right: clamp(24px, 4vw, 72px); }
.hq-hstat__num { font-family: var(--ff-heading); font-size: var(--fs-number); font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--c-text-strong); font-variant-numeric: tabular-nums; }
.hq-hstat__label { font-size: var(--fs-ui); color: var(--c-text-muted); }
.hq-hstat__label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 var(--sp-2) 1px 0; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 8px var(--cyan-60); }

/* Hero stage (the right half: .hq-hstage, .hq-hwin, .hq-hsat, .hq-hvan): components/scenes.css (agent B, round 2). */

/* hero images: the Miami skyline as a horizon under the copy, real images (Ads lander) on the right */
.hq-hero__art { margin: 0; line-height: 0; }
.hq-hero__art img { display: block; width: 100%; height: auto; border-radius: 0; }
.hq-hero__skyline { grid-column: 1 / -1; position: relative; width: min(100%, 1155px); justify-self: center; margin-top: var(--sp-8) !important; -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.hq-hero__skyline::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline-cyan); box-shadow: 0 0 18px 1px var(--cyan-18); }
.hq-hero__skyline img { opacity: .9; }
.hq-hero__skyline + .hq-logos { margin-top: var(--sp-7) !important; }
.hq-hero__shot { grid-column: 2; grid-row: 1; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
.hq-hero__shot img { border-radius: var(--r-3); }

@media (max-width: 1023px) {
	.hq-hero--svc5 { grid-template-columns: minmax(0, 1fr); }
	.hq-hero__stats { grid-column: 1; grid-row: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: stretch; margin-top: var(--sp-7) !important; }
	.hq-hstat { min-width: 0; padding: var(--sp-4) var(--sp-5); }
	.hq-hstat:nth-child(2) { margin-right: 0; }
	.hq-hero__shot { grid-column: 1; grid-row: auto; width: min(100%, 560px); margin-top: var(--sp-7) !important; }
	.hq-hero--svc5::before { top: 34%; width: 70vw; opacity: .7; }
}
@media (max-width: 600px) {
	.hq-hero--svc5::before { display: none; }
	.hq-hero__stats { grid-template-columns: minmax(0, 1fr); }
	.hq-hstat { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--sp-4); }
	.hq-hstat__num { font-size: var(--fs-h2); }
}

/* --------------------------------------------------------------------------
   Intro (round 2, agent C): statement first (the first sentence, scroll fill), then the body as two balanced
   reading columns at 18px under a lit hairline with a cyan origin node; one column when the body is short. The
   kicker closes the section on its own line. No title-left / text-right split.
   -------------------------------------------------------------------------- */
.hq-intro__copy { display: grid; max-width: var(--wide) !important; color: var(--c-text); }
.hq-intro__copy > * { margin: 0 !important; max-width: none; }
.hq-intro__copy a, :is(.hq-ed__p, .hq-fact__text, .hq-tcard__text, .hq-bcard__text) a { color: var(--c-accent); text-underline-offset: .2em; }
.hq-intro__first, .hq-first {
	display: block;
	margin-bottom: var(--sp-6);
	font-family: var(--ff-heading);
	font-size: var(--fs-statement);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -.03em;
	color: var(--c-text-strong);
	text-wrap: pretty;
}
.hq-intro__statement { max-width: 23em !important; font-size: var(--fs-statement); line-height: 1.3; }
.hq-intro__statement .hq-intro__first { margin: 0; }
.hq-intro__body {
	--intro-fs: clamp(1.0625rem, 1rem + .25vw, 1.125rem);   /* 17px on phones, 18px from tablets up */
	position: relative;
	margin-top: clamp(40px, 5vw, 64px) !important;
	padding-top: clamp(32px, 4vw, 48px);
	font-size: var(--intro-fs);
	line-height: 1.72;
	max-width: 36em !important;
}
.hq-intro__body::before {
	/* lit hairline: bright at the origin node, fading out to the right */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, var(--cyan-60), rgba(151, 71, 255, .32) 28%, rgba(255, 255, 255, .08) 62%, transparent);
}
.hq-intro__body::after {
	content: "";
	position: absolute;
	left: 0;
	top: -3px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--c-cyan);
	box-shadow: 0 0 0 3px var(--cyan-8), 0 0 12px var(--cyan-60);
}
.hq-intro__body p { max-width: none; margin: 0 0 1em; font-size: inherit; line-height: inherit; text-wrap: pretty; hanging-punctuation: first; }
.hq-intro__body p:last-child { margin-bottom: 0; }

/* section heads of this template */
:is(.hq-ncardsec, .hq-bentosec, .hq-tabsec, .hq-ed, .hq-factsec, .hq-mtilesec, .hq-links, .hq-loc, .hq-mrowsec, .hq-lf-table) > .hq-head--left .hq-lede { color: var(--c-text-muted); max-width: var(--measure-prose); margin: 0; text-wrap: pretty; }
.hq-head--left .hq-lede + .hq-lede { margin-top: calc(-1 * var(--sp-2)); }
.hq-head .hq-head__medal { margin-bottom: var(--sp-2); }
.hq-head .hq-glowbar + * { margin-top: var(--sp-2); }

/* --------------------------------------------------------------------------
   Numbered cards (novagrid): /01 counters alternate top / bottom, content anchored the other way
   -------------------------------------------------------------------------- */
.hq-ncards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.hq-ncards--2, .hq-ncards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hq-ncards > * { margin: 0 !important; }
.hq-ncard { display: flex; flex-direction: column; gap: var(--sp-4); min-height: clamp(360px, 32vw, 460px); padding: var(--sp-7) var(--sp-6); }
.hq-ncard > * { margin: 0 !important; }
/* the number chip (.hq-ncard__num) and the step rail live in steps.css (round 2: the site's step number standard) */
/* phase 4 (critic): the alternating number position read as a bug; the number sits top-left on every card, the medal
   top-right, title and text below */
.hq-ncard { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; }
.hq-ncard > :not(.hq-ncard__num):not(.hq-medal) { grid-column: 1 / -1; }
.hq-ncard > .hq-medal { grid-column: 2; grid-row: 1; align-self: center; }
.hq-ncard > .hq-ncard__num { grid-row: 1; }
.hq-ncard__title, .hq-ncard h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.012em; color: var(--c-text-strong); }
.hq-ncard__text { color: var(--c-text-muted); line-height: 1.7; }
.hq-ncard__text .hq-ncard__title { display: block; margin-bottom: var(--sp-2); font-family: var(--ff-heading); font-weight: var(--fw-heading-sm); }
@media (max-width: 1023px) { .hq-ncards { grid-template-columns: minmax(0, 1fr); } .hq-ncard { min-height: 0; } }

/* --------------------------------------------------------------------------
   Uneven bento (saasland 57 / 41): the right column starts lower, so no seam lines up
   -------------------------------------------------------------------------- */
.hq-bento { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.hq-bento > * { margin: 0 !important; }
.hq-bento__col { display: grid; gap: var(--sp-5); }
.hq-bento__col > * { margin: 0 !important; }
.hq-bento__col + .hq-bento__col { margin-top: var(--sp-9) !important; }
.hq-bcard { display: grid; gap: var(--sp-4); padding: var(--sp-7); }
.hq-bcard > * { margin: 0 !important; }
.hq-bcard__title { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.012em; color: var(--c-text-strong); }
.hq-bcard__text { color: var(--c-text-muted); line-height: 1.7; }
.hq-bento__col:first-child .hq-bcard { --rim: var(--glass-rim); }
.hq-bento__col + .hq-bento__col .hq-bcard, .hq-bento__col + .hq-bento__col .hq-rcard { --rim: var(--glass-rim-cyan); }

/* result cards: round logo + name, result line as a cyan HUD chip, story, list */
.hq-rcard { display: grid; gap: var(--sp-5); padding: var(--sp-7); }
.hq-rcard > * { margin: 0 !important; }
.hq-rcard__head { display: flex; align-items: center; gap: var(--sp-4); }
.hq-rcard__head > * { margin: 0 !important; }
.hq-rcard__logo { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.hq-rcard__logo :is(figure, img) { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 50%; }
.hq-rcard__name { font-family: var(--ff-heading); font-size: var(--fs-h3); font-weight: var(--fw-heading-sm); line-height: 1.2; letter-spacing: -.012em; color: var(--c-text-strong); }
.hq-rcard__result {
	--hud-c: var(--cyan-60);
	--hud-s: 10px;
	padding: var(--sp-4) var(--sp-5) var(--sp-4) calc(var(--sp-5) + 16px);
	font-family: var(--ff-heading);
	font-size: var(--fs-h4) !important;
	font-weight: var(--fw-heading-sm);
	line-height: 1.35;
	letter-spacing: -.008em;
	color: var(--c-text-strong);
	text-transform: none;
	border-radius: var(--r-1);
	background: linear-gradient(90deg, var(--cyan-8), rgba(103, 232, 249, .02));
	box-shadow: inset 0 0 0 1px var(--cyan-18);
}
/* phase 4: the numbers of a result line read first (24px, tabular); the words stay at H4 size */
.hq-rcard__num { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--c-text-strong); line-height: 1.1; }
.hq-rcard__result::after { content: ""; position: absolute; left: var(--sp-5); top: calc(var(--sp-4) + .62em); width: 6px; height: 6px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 10px var(--cyan-60); }
.hq-rcard__text { color: var(--c-text-muted); line-height: 1.7; }
.hq-rcard ul.wp-block-list, .hq-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); color: var(--c-text); }
:is(.hq-rcard ul.wp-block-list, .hq-checklist) li { position: relative; margin: 0; padding-left: var(--sp-6); line-height: 1.55; }
:is(.hq-rcard ul.wp-block-list, .hq-checklist) li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .3em;
	width: 16px;
	height: 16px;
	background: var(--c-cyan);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hq-checklist { margin: var(--sp-5) 0 !important; }
@media (max-width: 900px) {
	.hq-bento { grid-template-columns: minmax(0, 1fr); }
	.hq-bento__col + .hq-bento__col { margin-top: 0 !important; }
	.hq-bcard, .hq-rcard { padding: var(--sp-6); }
}

/* tail under a grid (closing copy + button of the old section) */
.hq-lf-tail { max-width: 820px !important; margin-left: max(0px, calc((100% - var(--wide)) / 2)) !important; color: var(--c-text); font-size: var(--fs-prose); line-height: 1.75; }
.hq-lf-tail > * { margin: 0 0 var(--sp-4); }
.hq-lf-tail > :last-child { margin-bottom: 0; }
.hq-lf-tail--center { margin-inline: auto !important; text-align: center; max-width: 720px !important; }
.hq-lf-tail--center .hq-lf-tail__p { margin-inline: auto; max-width: var(--measure-prose); color: var(--c-text); font-size: var(--fs-prose); text-wrap: pretty; }
.hq-lf-tail__actions { justify-content: center; margin-top: var(--sp-6) !important; }
.hq-lf-tail--lead { max-width: var(--measure-prose) !important; }
.hq-lf-tail--lead .hq-lede { max-width: none; color: var(--c-text); }
.hq-lf-free > * { max-width: 820px; }
.hq-lf-free .hq-table { max-width: var(--wide); }

/* --------------------------------------------------------------------------
   Scroll tab list (cosmoq): glass cards; motion.js adds the sticky list on the left at >= 1024px
   -------------------------------------------------------------------------- */
.hq-tabs { display: grid; gap: var(--sp-4); }
.hq-tabs > * { margin: 0 !important; }
.hq-tcard { display: grid; gap: var(--sp-4); padding: var(--sp-7); }
.hq-tcard > * { margin: 0 !important; }
.hq-tcard__title { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.012em; color: var(--c-text-strong); scroll-margin-top: 140px; }
.hq-tcard__text { color: var(--c-text); line-height: 1.75; max-width: var(--measure-prose); }
.hq-tcard .hq-mapmount { margin-top: var(--sp-2) !important; }
.hq-tcard .hq-map { min-height: 300px; }
.hq-tabs--on .hq-tcard.is-active, .hq-tabs--on .hq-tcard { transition: box-shadow var(--d-2) var(--ease); }
@media (max-width: 600px) { .hq-tcard { padding: var(--sp-6) var(--sp-5); } }

/* --------------------------------------------------------------------------
   Why us (orbitly): medallion over the centred H2, glow bar, two-column glass check list
   -------------------------------------------------------------------------- */
.hq-whyus__head .hq-lede { margin-inline: auto; max-width: var(--measure-prose); color: var(--c-text-muted); text-wrap: pretty; }
.hq-whyus__head .hq-section-title { max-width: 20ch; }
.hq-wchecks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); max-width: 1000px !important; }
.hq-wchecks > * { margin: 0 !important; }
.hq-wchecks > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--sp-4) / 2); }
.hq-wcheck { display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); }
.hq-wcheck > * { margin: 0 !important; }
.hq-wcheck__body { display: grid; gap: var(--sp-1); }
.hq-wcheck__body > * { margin: 0; }
.hq-wcheck__title { font-family: var(--ff-heading); font-size: 1.125rem; font-weight: var(--fw-heading-sm); line-height: 1.35; color: var(--c-text-strong); }
.hq-wcheck__text { color: var(--c-text-muted); line-height: 1.6; }
.hq-wcheck__body > .hq-wcheck__text:only-child { color: var(--c-text-strong); }
.hq-wcheck .hq-medal { margin-top: 2px !important; }
@media (max-width: 781px) { .hq-wchecks { grid-template-columns: minmax(0, 1fr); } .hq-wchecks > :last-child:nth-child(odd) { width: auto; justify-self: stretch; } }
/* phase 4: odd groups never leave a centred orphan. 3 = one row of three; 5 = saasland uneven bento, three over two
   (wide screens, medal above the text); tablets: the last card of 5 spans the row */
@media (min-width: 1024px) {
	.hq-wchecks--3, .hq-wchecks--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: var(--wide) !important; }
	.hq-wchecks--3 > *, .hq-wchecks--5 > :nth-child(-n + 3) { grid-column: span 2; }
	.hq-wchecks--5 > :nth-child(n + 4) { grid-column: span 3; }
	.hq-wchecks--3 > :last-child:nth-child(odd) { grid-column: span 2; width: auto; justify-self: stretch; }
	.hq-wchecks--5 > :last-child:nth-child(odd) { grid-column: span 3; width: auto; justify-self: stretch; }
	:is(.hq-wchecks--3, .hq-wchecks--5) .hq-wcheck { flex-direction: column; gap: var(--sp-5); padding: var(--sp-6); }
	:is(.hq-wchecks--3, .hq-wchecks--5) .hq-wcheck .hq-medal { margin-top: 0 !important; }
	.hq-wchecks--5 > :nth-child(n + 4) .hq-wcheck__text { max-width: var(--measure-prose); }
}
@media (min-width: 782px) and (max-width: 1023px) { .hq-wchecks--5 > :last-child { grid-column: 1 / -1; width: auto; justify-self: stretch; } }

/* why-us bento: the lead copy as one wide tile (statement over two columns), the illustrated rows as an uneven
   pair under it (57 / 41) */
.hq-wb { display: grid; gap: var(--sp-5); }
.hq-wb > * { margin: 0 !important; }
.hq-wb__lead { padding: var(--sp-8) clamp(32px, 5vw, 72px); }
.hq-wb__lead > * { margin: 0 0 var(--sp-4); }
.hq-wb__lead p { margin: 0 0 var(--sp-4); }
.hq-wb__lead p:last-child { margin-bottom: 0; }
.hq-wb__lead > :last-child { margin-bottom: 0; }
.hq-wb__lead .hq-statement-p { max-width: 26em; margin-bottom: var(--sp-7) !important; }
.hq-wb__lead .hq-first { margin: 0; }
.hq-wb__text { color: var(--c-text); font-size: var(--fs-prose); line-height: 1.75; }
/* round 2 (Milan): the row tiles start on one top line and share the row height (no staggered offset) */
.hq-wb__rows { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: var(--sp-5); align-items: stretch; }
.hq-wb__rows > * { margin: 0 !important; }
.hq-wb__item { display: grid; gap: var(--sp-4); align-content: start; padding: var(--sp-7) var(--sp-6); --rim: var(--glass-rim-cyan); }
.hq-wb__item > * { margin: 0 !important; }
.hq-wb__title { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.012em; color: var(--c-text-strong); }
.hq-wb__item-text { color: var(--c-text-muted); line-height: 1.7; }
.hq-wb__actions { justify-content: center; }
@media (max-width: 900px) { .hq-wb__lead { padding: var(--sp-6); } .hq-wb__rows { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Editorial (free copy): statement first sentence, reading measure, two columns when long, lit panel for an
   H3 with its copy. Never a title-left / text-right row (the old .hq-lf-row is gone).
   -------------------------------------------------------------------------- */
.hq-ed__body { max-width: var(--wide); font-size: var(--fs-prose); line-height: 1.75; color: var(--c-text); }
.hq-ed__body > * { max-width: 760px; margin: 0 0 var(--sp-5); }
.hq-ed__body > :last-child { margin-bottom: 0; }
.hq-ed__body > .hq-ed__p:first-child { max-width: 880px; }
.hq-ed__body--cols > .hq-statement-p { max-width: 30em; margin-bottom: var(--sp-7) !important; }
.hq-ed__body--cols .hq-first { margin: 0; }
.hq-ed__cols p { margin: 0 0 var(--sp-5); }
.hq-ed__cols p:last-child { margin-bottom: 0; }
.hq-ed--center .hq-head { justify-items: center; text-align: center; }
.hq-ed--center .hq-ed__body:not(.hq-ed__body--cols) > * { max-width: 760px; margin-inline: auto !important; }
.hq-ed--center .hq-ed__body:not(.hq-ed__body--cols) > * + * { margin-top: var(--sp-5) !important; }
.hq-ed--center .hq-ed__body--cols > .hq-statement-p { margin-inline: auto !important; text-align: center; }
.hq-ed__actions { margin-top: var(--sp-6) !important; }
.hq-ed__body .hq-mapmount { max-width: none; }
/* copy + one lit panel: the copy column and the panel side by side (the panel is an H3 group, not the title) */
.hq-ed__body:has(> .hq-panel) { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 72px); align-items: start; }
.hq-ed__body:has(> .hq-panel) > * { grid-column: 1; max-width: var(--measure-prose); }
.hq-ed__body:has(> .hq-panel) > .hq-panel { grid-column: 2; grid-row: 1 / span 6; max-width: none; margin: 0 !important; }
.hq-panel { display: grid; gap: var(--sp-4); padding: var(--sp-7); }
.hq-panel > * { margin: 0 !important; }
.hq-panel__title { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.012em; color: var(--c-text-strong); }
.hq-panel__text { color: var(--c-text-muted); line-height: 1.7; font-size: var(--fs-body); }
/* two or more panels: copy full width, the panels side by side under it */
.hq-ed__body:has(> .hq-panel ~ .hq-panel) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-5); }
.hq-ed__body:has(> .hq-panel ~ .hq-panel) > * { grid-column: 1 / -1; max-width: var(--measure-prose); margin: 0 !important; }
.hq-ed__body:has(> .hq-panel ~ .hq-panel) > .hq-panel { grid-column: auto; grid-row: auto; max-width: none; align-self: stretch; }
.hq-ed__body > .hq-tabs { max-width: none; }
@media (max-width: 900px) {
	.hq-ed__body:has(> .hq-panel) { grid-template-columns: minmax(0, 1fr); }
	.hq-ed__body:has(> .hq-panel) > .hq-panel { grid-column: 1; grid-row: auto; margin-top: var(--sp-5) !important; }
	.hq-ed__body:has(> .hq-panel ~ .hq-panel) { grid-template-columns: minmax(0, 1fr); }
	.hq-ed__body:has(> .hq-panel ~ .hq-panel) > .hq-panel { margin-top: 0 !important; }
}

/* --------------------------------------------------------------------------
   Statement + fact grid (3 or 4 substantial paragraphs): opener statement, then glass columns whose first
   sentence leads in heading type
   -------------------------------------------------------------------------- */
.hq-facts__opener { max-width: 880px; color: var(--c-text); font-size: var(--fs-prose); line-height: 1.75; }
.hq-facts__opener .hq-first { margin-bottom: var(--sp-5); }
.hq-factsec .hq-head--left { row-gap: var(--sp-5); }
.hq-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.hq-facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hq-facts > * { margin: 0 !important; }
.hq-fact { padding: var(--sp-7) var(--sp-6) var(--sp-6); }
.hq-fact::before { content: ""; position: absolute; left: var(--sp-6); top: 0; width: 48px; height: 2px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--c-cyan), rgba(103, 232, 249, .2)); box-shadow: 0 0 12px var(--cyan-35); }
.hq-fact__text { margin: 0; color: var(--c-text-muted); line-height: 1.7; }
.hq-fact__lead { display: block; margin-bottom: var(--sp-3); font-size: var(--fs-body); font-weight: 500; line-height: 1.6; color: var(--c-text-strong); }
@media (max-width: 1023px) { .hq-facts { grid-template-columns: minmax(0, 1fr); } }

/* bold-led tiles (a rich-text list of "<strong>Title</strong>: copy" chunks): 5 = 2 wide + 3 */
.hq-btiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-4); }
.hq-btiles > * { margin: 0 !important; grid-column: span 2; }
.hq-btiles--5 > :nth-child(-n + 2), .hq-btiles--4 > *, .hq-btiles--2 > * { grid-column: span 3; }
.hq-btile { display: grid; gap: var(--sp-4); align-content: start; padding: var(--sp-6); }
.hq-btile > * { margin: 0 !important; }
.hq-btile__text { color: var(--c-text-muted); line-height: 1.7; }
.hq-btile__text strong { color: var(--c-text-strong); font-weight: 600; }
@media (max-width: 1023px) { .hq-btiles { grid-template-columns: minmax(0, 1fr); } .hq-btiles > *, .hq-btiles--5 > :nth-child(-n + 2) { grid-column: auto; } }

/* image-led cards (2-3 illustrated rows with real images) */
.hq-mrows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--sp-5); }
.hq-mrows > * { margin: 0 !important; }
.hq-mrow { display: grid; gap: var(--sp-4); align-content: start; }
.hq-mrow > * { margin: 0 !important; }
.hq-mrow__media img { display: block; width: 100%; height: auto; border-radius: var(--r-2); }
.hq-mrow__title { font-size: var(--fs-h3); color: var(--c-text-strong); }
.hq-mrow__text { color: var(--c-text-muted); line-height: 1.7; }

/* --------------------------------------------------------------------------
   Maps: HUD mount; neighbourhood map + tiles; location card beside the map
   -------------------------------------------------------------------------- */
.hq-mapmount { --hud-i: -8px; position: relative; }
.hq-mapmount > * { margin: 0 !important; }
.hq-mtiles { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-5); align-items: stretch; }
.hq-mtiles > * { margin: 0 !important; }
.hq-mtiles__map, .hq-mtiles__map .hq-map { height: 100%; min-height: 420px; }
.hq-mtiles__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.hq-mtiles__grid > * { margin: 0 !important; }
.hq-mtile { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.hq-mtile__text { margin: 0; color: var(--c-text-muted); font-size: var(--fs-ui); line-height: 1.65; }
.hq-mtile__name { display: block; margin-bottom: var(--sp-2); font-family: var(--ff-heading); font-size: var(--fs-h4); font-weight: var(--fw-heading-sm); line-height: 1.3; color: var(--c-text-strong); }
.hq-mtile__name a { color: inherit; text-decoration: underline; text-decoration-color: var(--cyan-60); text-underline-offset: .22em; transition: text-decoration-color var(--d-2) var(--ease); }
@media (hover: hover) { .hq-mtile__name a:hover { text-decoration-color: var(--c-cyan); transition-duration: var(--d-hover); } }
@media (max-width: 1023px) { .hq-mtiles { grid-template-columns: minmax(0, 1fr); } .hq-mtiles__map, .hq-mtiles__map .hq-map { min-height: 340px; } }
@media (max-width: 600px) { .hq-mtiles__grid { grid-template-columns: minmax(0, 1fr); } }

.hq-loc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-5); align-items: stretch; }   /* phase 4: was .hq-loc, which is also the section class */
.hq-loc__grid > * { margin: 0 !important; }
.hq-loc__card { display: grid; gap: var(--sp-5); align-content: start; padding: var(--sp-7); }
.hq-loc__card > * { margin: 0 !important; }
.hq-loc__text { color: var(--c-text); line-height: 1.75; }
.hq-loc__text > strong:first-child > br:first-child { display: none; }
.hq-loc__map, .hq-loc__map .hq-map { height: 100%; min-height: 380px; }
@media (max-width: 900px) { .hq-loc__grid { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Links: service link grid (8 or fewer) and area chip cloud. These are links: hover allowed.
   -------------------------------------------------------------------------- */
.hq-linkgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.hq-chipcloud { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); max-width: 1000px !important; }
:is(.hq-linkgrid, .hq-chipcloud) > * { margin: 0 !important; }
.hq-linkchip a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	min-height: 44px;
	color: var(--c-text-strong);
	text-decoration: none;
	background: var(--glass-bg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	box-shadow: var(--glass-shadow);
	transition: box-shadow var(--d-2) var(--ease), color var(--d-2) var(--ease);
}
.hq-linkgrid .hq-linkchip a { padding: var(--sp-5) var(--sp-6); border-radius: var(--r-3); font-family: var(--ff-heading); font-size: 1.125rem; font-weight: var(--fw-heading-sm); }
.hq-chipcloud .hq-linkchip a { padding: var(--sp-2) var(--sp-5); border-radius: var(--r-pill); font-size: var(--fs-ui); font-weight: 500; }
.hq-linkchip a::after {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: var(--c-cyan);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--d-2) var(--ease-out);
}
.hq-chipcloud .hq-linkchip a::after { width: 14px; height: 14px; }
@media (hover: hover) {
	.hq-linkchip a:hover { box-shadow: var(--glass-shadow-hover), inset 0 0 0 1px var(--cyan-35); transition-duration: var(--d-hover); }
	.hq-linkchip a:hover::after { transform: translate(2px, -2px); transition-duration: var(--d-hover); }
}
.hq-linkchip a:active { transform: scale(.98); }
.hq-linkchip a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
@media (max-width: 900px) { .hq-linkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hq-linkgrid { grid-template-columns: minmax(0, 1fr); } }

/* "Areas we serve" link buttons (Miami SEO page) */
.hq-lf-links .hq-head { margin-bottom: 0; }
.hq-chips { justify-content: center; gap: var(--sp-3); max-width: 1000px !important; }

/* --------------------------------------------------------------------------
   Bands: closing band (shared look in layout.css) and the mid-page strip
   -------------------------------------------------------------------------- */
.hq-band { padding-block: var(--section-tight); }
.hq-band__panel { max-width: var(--wide) !important; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.hq-band__panel > * { max-width: var(--measure-prose); margin-inline: auto; }
.hq-band__panel p { color: var(--c-text); font-size: var(--fs-lead); line-height: 1.55; text-wrap: pretty; }
.hq-band__panel .wp-block-buttons { justify-content: center; margin-top: var(--sp-6); }
/* closing band whose copy holds a ticked list: pitch left, the list on an inset glass plate right */
.hq-band__panel--list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: center; text-align: left; padding-inline: clamp(32px, 5vw, 72px); }
.hq-band__panel--list > * { grid-column: 1; max-width: var(--measure-prose); margin: 0 !important; }
.hq-band__panel--list > .hq-section-title { max-width: 16ch; margin: 0 0 var(--sp-5) !important; }
.hq-band__panel--list > .hq-band__list { grid-column: 2; grid-row: 1 / span 3; max-width: none; padding: var(--sp-6) var(--sp-7); border-radius: var(--r-3); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--c-line), inset 0 1px 0 rgba(255, 255, 255, .06); line-height: 2.1; color: var(--c-text-strong); }
.hq-band__panel--list > .wp-block-buttons { justify-content: flex-start; margin-top: var(--sp-6) !important; }
@media (max-width: 900px) { .hq-band__panel--list { grid-template-columns: minmax(0, 1fr); } .hq-band__panel--list > .hq-band__list { grid-column: 1; grid-row: auto; margin-top: var(--sp-5) !important; } }
/* strip: a band that sits between content sections = title + line left, button right, smaller */
.hq-band--strip .hq-band__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: clamp(32px, 5vw, 80px);
	row-gap: var(--sp-3);
	align-items: center;
	text-align: left;
	padding: var(--sp-8) clamp(32px, 5vw, 72px);
}
.hq-band--strip .hq-band__panel > * { grid-column: 1; max-width: var(--measure-prose); margin: 0 !important; }
.hq-band--strip .hq-band__panel > .hq-section-title { max-width: 24ch; font-size: var(--fs-h3); line-height: 1.2; }
.hq-band--strip .hq-band__panel p { font-size: var(--fs-body); color: var(--c-text-muted); line-height: 1.65; }
.hq-band--strip .hq-band__panel > .wp-block-buttons { grid-column: 2; grid-row: 1 / span 4; justify-content: flex-end; }
@media (max-width: 781px) {
	.hq-band--strip .hq-band__panel { grid-template-columns: minmax(0, 1fr); padding: var(--sp-7) var(--sp-5); }
	.hq-band--strip .hq-band__panel > .wp-block-buttons { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: var(--sp-3) !important; }
}

/* --------------------------------------------------------------------------
   FAQ: centred head over one accordion column (no title-left split)
   -------------------------------------------------------------------------- */
.hq-faq-section--stack .hq-faq { max-width: 820px; }
.hq-faq-section--stack .hq-head .hq-lede { margin-inline: auto; }
.hq-faq__actions { justify-content: center; }

/* --------------------------------------------------------------------------
   Table group, quotes beside the video reviews
   -------------------------------------------------------------------------- */
.hq-lf-table .hq-table table { font-size: .9375rem; }
.hq-lf-table .hq-table td:first-child { color: var(--c-text-strong); font-weight: 500; white-space: nowrap; }
.hq-lf-table .hq-table td { vertical-align: top; line-height: 1.55; }
@media (max-width: 781px) { .hq-lf-table .hq-table table { min-width: 680px; } .hq-lf-table .hq-table td:first-child { white-space: normal; } }
.hq-bigquote { max-width: 900px !important; margin: var(--sp-6) auto 0 !important; font-family: var(--ff-heading); font-size: var(--fs-statement); font-weight: 400; font-style: italic; line-height: 1.4; letter-spacing: -.02em; color: var(--c-text-strong); text-wrap: balance; }
.hq-reviews .hq-head .hq-lede { max-width: var(--measure-prose); text-wrap: pretty; }
.hq-tquotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--sp-4); }
.hq-tquotes > * { margin: 0 !important; }
.hq-tquote > * { margin: 0; }
.hq-tquote__text { color: var(--c-text); line-height: 1.65; }

/* --------------------------------------------------------------------------
   Phase 4 signature sections: one per key landing page (build.py SIGNATURES adds .hq-sig--* + a decorative,
   aria-hidden backdrop). Same copy, a different stage.
   -------------------------------------------------------------------------- */
.hq-sig { position: relative; isolation: isolate; }
.hq-sig__bg { position: absolute !important; inset: 0; z-index: -1; margin: 0 !important; max-width: none !important; pointer-events: none; overflow: hidden; -webkit-mask: radial-gradient(70% 62% at 50% 58%, #000 30%, transparent 78%); mask: radial-gradient(70% 62% at 50% 58%, #000 30%, transparent 78%); }
.hq-sig__bg svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }

/* SEO: the three numbered cards ride the step rail (steps.css + steps.js, round 2 agent C) */

/* Local SEO: the results bento sits on a dark street map with pins; the client's pin glows cyan */
/* round 2 polish (critic m14): hairline streets; the 10-unit road scaled up into a grey diagonal beam behind the cards */
.hq-sig--map .hq-sig__bg path { stroke: rgba(196, 173, 255, .16); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hq-sig--map .hq-sig__bg path.is-minor { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.hq-sig--map .hq-sig__bg circle { fill: rgba(167, 120, 255, .3); }   /* pins sit behind the glass cards: quiet, so the card blur does not turn them into smudges */
.hq-sig--map .hq-sig__bg circle.is-client { fill: var(--c-cyan); opacity: .4; }   /* no glow: it sits behind card text */

/* PPC: spend bars rise behind the "How it works" chapter */
.hq-sig--bars .hq-sig__bg { -webkit-mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent), linear-gradient(90deg, transparent 20%, #000 60%); -webkit-mask-composite: source-in; mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent), linear-gradient(90deg, transparent 20%, #000 60%); mask-composite: intersect; }
.hq-sig--bars .hq-sig__bg rect { fill: rgba(151, 71, 255, .16); }
.hq-sig--bars .hq-sig__bg rect.is-cy { fill: rgba(103, 232, 249, .22); }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.hq-sig--bars { view-timeline: --hq-sigbars block; }
		.hq-sig--bars .hq-sig__bg rect { transform-box: fill-box; transform-origin: 50% 100%; animation: hq-rise linear both; animation-timeline: --hq-sigbars; animation-range: entry 10% cover 50%; }
	}
}
@keyframes hq-rise { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* Moving: the result cards ride one cyan route (origin dot, client pin at the end), drawn as the bento scrolls in */
.hq-sig--route .hq-sig__bg path { stroke: var(--c-cyan); stroke-width: 2; stroke-dasharray: 6 10; opacity: .35; vector-effect: non-scaling-stroke; }
.hq-sig--route .hq-sig__bg circle { fill: var(--c-cyan); filter: drop-shadow(0 0 8px var(--c-cyan)); }

/* Areas served: the neighbourhood links as a constellation (stars joined by faint lines behind the chips) */
.hq-sig--stars .hq-sig__bg { -webkit-mask: radial-gradient(80% 70% at 50% 55%, #000 40%, transparent 85%); mask: radial-gradient(80% 70% at 50% 55%, #000 40%, transparent 85%); }
.hq-sig--stars .hq-sig__bg path { stroke: rgba(103, 232, 249, .2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hq-sig--stars .hq-sig__bg circle { fill: #e6fdff; opacity: .7; }
.hq-sig--stars .hq-sig__bg circle.is-big { fill: var(--c-cyan); opacity: 1; filter: drop-shadow(0 0 6px var(--c-cyan)); }
.hq-sig__bg + * { margin-top: 0 !important; }

/* --------------------------------------------------------------------------
   Round 3 (agent C, critique MJ1): two-column prose. build.py para_cols puts whole paragraphs into two grid cells,
   split at the boundary that best balances their height, so a column never ends mid-sentence. Intro, why-us lead
   panel and editorial bodies share it. One column under 860px.
   -------------------------------------------------------------------------- */
.hq-pcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(48px, 6.5vw, 104px); align-items: start; max-width: none !important; }
.hq-pcols > .hq-pcols__col { margin: 0 !important; max-width: none; }
.hq-pcols__col > * { max-width: none; }
.hq-wb__lead .hq-pcols, .hq-ed__body .hq-pcols { column-gap: clamp(40px, 5vw, 80px); }
.hq-wb__lead .hq-pcols > .hq-pcols__col + .hq-pcols__col, .hq-ed__body .hq-pcols > .hq-pcols__col + .hq-pcols__col { position: relative; }
.hq-wb__lead .hq-pcols > .hq-pcols__col + .hq-pcols__col::before, .hq-ed__body .hq-pcols > .hq-pcols__col + .hq-pcols__col::before {
	/* the old column rule, now between whole paragraphs */
	content: ""; position: absolute; top: 0; bottom: 0; left: calc(-.5 * clamp(40px, 5vw, 80px)); width: 1px; background: var(--c-line);
}
.hq-intro__body:not(.hq-pcols) { max-width: 36em !important; }
@media (max-width: 860px) {
	.hq-pcols { grid-template-columns: minmax(0, 1fr); row-gap: 1em; }
	.hq-intro__body.hq-pcols { max-width: 36em !important; }
	.hq-wb__lead .hq-pcols > .hq-pcols__col + .hq-pcols__col::before, .hq-ed__body .hq-pcols > .hq-pcols__col + .hq-pcols__col::before { content: none; }
}


/* n11 (critique R2b): a closing band whose copy runs past ~45 words keeps its centred heading and button, but the copy
   itself is a left-aligned block on a 60ch measure (6-8 centred lines were hard to read) */
.hq-band:not(.hq-band--strip) > .hq-band__panel--long:not(:has(> p:nth-of-type(3))) > p { max-width: 60ch !important; margin-inline: auto !important; text-align: left; text-wrap: pretty; }
.hq-rcard__text + .hq-rcard__text { margin-top: calc(.75em - var(--sp-5)) !important; }   /* n8: story paragraphs closer than the card's block gap */

/* --------------------------------------------------------------------------
   Round 3 (agent F, Milan 08.11 "empty panel" on /google-ads-audit): editorial panels and prose subheads.
   build.py editorial / panels_of / prose_body / join_orphans.
   -------------------------------------------------------------------------- */
/* a panel stretched to its taller neighbour keeps its rows at the top (the grid spread one H3 + one paragraph over
   2000px and left the panel looking empty) */
.hq-panel { align-content: start; }
/* panels whose copy differs by more than 1.8x: full width, one under the other, long copy in two reading columns */
.hq-ed__body--stack:has(> .hq-panel ~ .hq-panel) { grid-template-columns: minmax(0, 1fr); }
.hq-ed__body--stack > .hq-panel--wide { align-self: start; }
.hq-panel--wide > .hq-panel__text { max-width: var(--measure-prose); }
.hq-panel--wide > .hq-panel__title { max-width: 32ch; }
.hq-panel__body.hq-pcols { margin-top: var(--sp-2) !important; }
.hq-panel__body .hq-pcols__col > * { margin: 0; }
.hq-panel__body .hq-pcols__col > * + * { margin-top: var(--sp-4); }
/* an H2 with no copy of its own sits as a dimmed first line over the next section title (two-tone pair) */
.hq-head > .hq-section-title--pre, .hq-head > .hq-section-title--pre strong { color: var(--c-text-muted); font-weight: inherit; }
.hq-head > .hq-section-title--pre + .hq-section-title { margin-top: calc(-1 * var(--sp-3)); }
/* prose with subheads (a subhead without copy never becomes an empty card) */
.hq-ed .hq-ed__body.hq-ed__body--prose > .hq-ed__sub { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.012em; color: var(--c-text-strong); margin-top: var(--sp-7) !important; }
.hq-ed .hq-ed__body.hq-ed__body--prose > .hq-ed__sub + .hq-ed__sub { margin-top: var(--sp-3) !important; }
.hq-ed .hq-ed__body.hq-ed__body--prose > .hq-ed__sub + * { margin-top: var(--sp-3) !important; }
.hq-ed--center .hq-ed__body.hq-ed__body--prose > * { text-align: left; }

/* ==========================================================================
   Round 3 (agent C, Milan 08.11)
   ========================================================================== */
/* C4 why-us lead panel (/services/seo "HQDM stands out ..." and the other why-bento pages): one composed panel.
   The statement runs across the whole panel (balanced, 2 lines at desktop instead of 5 squeezed into the left half),
   a lit hairline with the cyan origin node (the intro's divider) opens the body, and the body columns are set as
   lead + support: the first column at lead size in the strong text colour, the second at reading size, muted, so
   two paragraphs of different length still end close to each other. No column rule. */
.hq-wb__lead { padding: clamp(36px, 5vw, 64px) clamp(28px, 5.5vw, 80px); }
.hq-wb__lead .hq-statement-p { max-width: none; margin: 0 !important; }
.hq-wb__lead .hq-statement-p .hq-first { max-width: 25em; text-wrap: balance; }
.hq-wb__lead > .hq-statement-p + * { position: relative; margin-top: clamp(32px, 4vw, 48px) !important; padding-top: clamp(32px, 4vw, 48px); }
.hq-wb__lead > .hq-statement-p + *::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--cyan-60), rgba(151, 71, 255, .32) 28%, rgba(255, 255, 255, .08) 62%, transparent); }
.hq-wb__lead > .hq-statement-p + *::after { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 0 3px var(--cyan-8), 0 0 12px var(--cyan-60); }
.hq-wb__lead .hq-pcols > .hq-pcols__col + .hq-pcols__col::before { content: none; }
@media (min-width: 861px) { .hq-wb__lead .hq-pcols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 96px); } }   /* the lead column is narrower: larger type, fewer words, same height */
.hq-wb__lead .hq-pcols > .hq-pcols__col:first-child .hq-wb__text { font-size: var(--fs-lead); line-height: 1.6; color: var(--c-text-strong); text-wrap: pretty; }
.hq-wb__lead .hq-pcols > .hq-pcols__col:last-child .hq-wb__text { color: var(--c-text-muted); line-height: 1.75; text-wrap: pretty; }
.hq-wb__lead > :not(.hq-statement-p):not(.hq-pcols) .hq-wb__text { max-width: 40em; }

/* C5 results closing line ("Let's be real: ..." on /services/local-seo, same on /seo-for-roofers): a closing row
   aligned to the card grid instead of a centred paragraph floating under it. Lit hairline across the grid, the copy
   left at lead size, the button on the right on the copy's centre line. One-paragraph tails only (the moving page
   tail is a longer block and stays as it is). */
.hq-results > .hq-lf-tail--center:has(> .hq-lf-tail__p:only-of-type) {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: clamp(32px, 6vw, 96px);
	align-items: center;
	max-width: var(--wide) !important;
	margin-inline: auto !important;
	padding-top: clamp(32px, 4vw, 48px);
	text-align: left;
}
.hq-results > .hq-lf-tail--center:has(> .hq-lf-tail__p:only-of-type)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--cyan-60), rgba(151, 71, 255, .32) 28%, rgba(255, 255, 255, .08) 62%, transparent); }
.hq-results > .hq-lf-tail--center:has(> .hq-lf-tail__p:only-of-type)::after { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 0 3px var(--cyan-8), 0 0 12px var(--cyan-60); }
.hq-results > .hq-lf-tail--center:has(> .hq-lf-tail__p:only-of-type) > * { margin: 0 !important; }
.hq-results > .hq-lf-tail--center:has(> .hq-lf-tail__p:only-of-type) .hq-lf-tail__p { max-width: 38em; margin: 0; font-size: var(--fs-lead); line-height: 1.6; color: var(--c-text-strong); text-wrap: pretty; }
.hq-results > .hq-lf-tail--center .hq-lf-tail__p > br:last-child { display: none; }   /* trailing blank line of the old rich text */
.hq-results > .hq-lf-tail--center:has(> .hq-lf-tail__p:only-of-type) .hq-lf-tail__actions { justify-content: flex-end; }
@media (max-width: 760px) {
	.hq-results > .hq-lf-tail--center:has(> .hq-lf-tail__p:only-of-type) { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-6); }
	.hq-results > .hq-lf-tail--center:has(> .hq-lf-tail__p:only-of-type) .hq-lf-tail__actions { justify-content: flex-start; }
}

/* C6 scroll-tab sections ("Why Local Businesses Need a Smart SEO Strategy"): the intro under the heading on a wider
   measure (~76 characters per line instead of ~58) */
.hq-tabsec > .hq-head--left .hq-lede { max-width: 42em; }
/* Deliverable tables on phones (14 service pages): a 680px table scrolled sideways inside a 350px card, the 2nd column
   cut mid-word and the 3rd off screen. Under 782px every row becomes a stacked block: deliverable (strong), what we
   do, why it matters (muted, behind a cyan rule); the header row stays on top as the legend. Same cells, same order. */
@media (max-width: 781px) {
	.hq-lf-table .hq-table { overflow: visible; }
	.hq-lf-table .hq-table table { min-width: 0; }
	.hq-lf-table .hq-table :is(table, thead, tbody, tr, th, td) { display: block; width: auto; }
	.hq-lf-table .hq-table thead tr { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); padding: var(--sp-3) var(--sp-4); background: rgba(255, 255, 255, .04); }
	.hq-lf-table .hq-table thead th { padding: 0; background: none; border: 0; }
	.hq-lf-table .hq-table tbody tr { padding: var(--sp-4); border-bottom: 1px solid rgba(255, 255, 255, .06); }
	.hq-lf-table .hq-table tbody tr:last-child { border-bottom: 0; }
	.hq-lf-table .hq-table td { padding: 0; border: 0; }
	.hq-lf-table .hq-table td:first-child { margin-bottom: var(--sp-2); }
	.hq-lf-table .hq-table td:nth-child(3) { margin-top: var(--sp-3); padding-left: var(--sp-3); border-left: 2px solid var(--cyan-35); color: var(--c-text-muted); }
}
/* phones: the panel's 48px side padding left a ~250px text column */
@media (max-width: 600px) { .hq-panel { padding: var(--sp-6) var(--sp-5); } }
/* why-us tail (11 pages): the closing line sat at the wide container's left edge under a centred head and a centred
   check grid; it closes the section centred on the grid axis */
.hq-whyus > .hq-lf-tail { margin-inline: auto !important; text-align: center; max-width: 60ch !important; text-wrap: pretty; }
.hq-whyus > .hq-lf-tail > * { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Round 3 (agent F): /googleads Ads lander sections (build.py gl_*), after the old page layout, v5 tokens.
   -------------------------------------------------------------------------- */
.hq-gl-arrow, .hq-gl-arrow img { width: 32px !important; height: 32px; margin: 0; flex: none; }
.hq-gl-arrow img { display: block; object-fit: contain; }
/* why HQDM: label, pull quote, title, lead, three numbers */
.hq-glx--why .hq-head { max-width: 760px; }
.hq-gl-quote { font-family: var(--ff-heading); font-size: var(--fs-statement); font-weight: 400; line-height: 1.3; letter-spacing: -.02em; color: var(--c-text-strong); text-wrap: balance; }
.hq-gl-title { font-size: var(--fs-h3); line-height: 1.25; color: var(--c-text-strong); }
.hq-gl-lead { color: var(--c-text-muted); font-size: var(--fs-prose); line-height: 1.7; max-width: 60ch; text-wrap: pretty; }
.hq-gl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px !important; border-top: 1px solid rgba(255, 255, 255, .08); }
.hq-gl-stat { display: grid; justify-items: center; gap: var(--sp-2); padding: var(--sp-7) var(--sp-5) 0; text-align: center; position: relative; }
.hq-gl-stat + .hq-gl-stat::before { content: ""; position: absolute; left: 0; top: var(--sp-7); bottom: 0; width: 1px; background: linear-gradient(180deg, var(--cyan-35), transparent); }
.hq-gl-stat > * { margin: 0 !important; }
.hq-gl-stat__num { font-family: var(--ff-heading); font-size: var(--fs-number); font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--c-text-strong); font-variant-numeric: tabular-nums; }
.hq-gl-stat__label { color: var(--c-text-muted); font-size: var(--fs-ui); letter-spacing: .02em; }
/* results of our clients: three glass cards */
.hq-gl-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.hq-gl-res { display: grid; grid-template-rows: auto 1fr auto; gap: var(--sp-5); padding: var(--sp-6); }
.hq-gl-res > * { margin: 0 !important; }
.hq-gl-res__who { display: flex; align-items: center; gap: var(--sp-3); }
.hq-gl-res__who > * { margin: 0 !important; }
.hq-gl-res__photo, .hq-gl-res__photo img { width: 48px !important; height: 48px; border-radius: 50%; flex: none; }
.hq-gl-res__photo img { display: block; object-fit: cover; }
.hq-gl-res__name { font-weight: 600; color: var(--c-text-strong); }
.hq-gl-res__quote { color: var(--c-text); line-height: 1.65; text-wrap: pretty; }
.hq-gl-res__stat { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "fig logo" "label logo"; align-items: end; column-gap: var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid rgba(255, 255, 255, .08); }
.hq-gl-res__stat > * { margin: 0 !important; }
.hq-gl-res__fig { grid-area: fig; display: flex; align-items: center; gap: var(--sp-2); }
.hq-gl-res__fig > * { margin: 0 !important; }
.hq-gl-res__num { font-family: var(--ff-heading); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--c-text-strong); font-variant-numeric: tabular-nums; }
.hq-gl-res__label { grid-area: label; color: var(--c-text-muted); font-size: var(--fs-ui); }
.hq-gl-res__logo { grid-area: logo; align-self: center; }
.hq-gl-res__logo img { display: block; width: auto !important; max-width: 72px; max-height: 44px; object-fit: contain; }
/* 14-day timeline (round 3, agent H): title, caption, steps and scan share one grid. Desktop: caption beside the
   title (bottom-right, over the scan column), steps and scan share one row: when the scan is taller the steps
   spread over its full height (step 1 on its top edge, step 4 on its bottom edge), when the steps are taller the
   scan is centred on them; stacked: title, steps, caption, scan (the caption sits right
   above the image it describes, its arrow points down at it). */
.hq-gl-tl { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "title cap" "steps scan"; column-gap: clamp(32px, 5vw, 72px); row-gap: var(--sp-7); align-items: start; }
.hq-gl-tl > * { margin: 0 !important; }
.hq-gl-tl__title { grid-area: title; grid-column: 1 / -1; max-width: 18ch; }
.hq-gl-cap { grid-area: cap; justify-self: end; align-self: end; display: flex; align-items: center; gap: var(--sp-3); }
.hq-gl-cap > * { margin: 0 !important; }
.hq-gl-cap__text { color: var(--c-text-muted); max-width: 22ch; text-align: right; }
.hq-gl-cap .hq-gl-arrow img { transform: rotate(180deg); }
.hq-gl-steps { grid-area: steps; align-self: stretch; display: flex; flex-direction: column; }
.hq-gl-steps > * { margin: 0 !important; }
/* every step but the last shares the spare height; the rail runs from each circle to the next one */
.hq-gl-step { flex: 1 0 auto; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto 1fr; grid-template-areas: "num title day" "num text text"; column-gap: var(--sp-4); row-gap: var(--sp-1); padding-bottom: var(--sp-6); position: relative; }
.hq-gl-step:last-child { flex: none; padding-bottom: 0; }
.hq-gl-step:not(:last-child)::before { content: ""; position: absolute; left: 21.5px; top: 50px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--c-neon), var(--c-cyan)); opacity: .5; }
.hq-gl-step > * { margin: 0 !important; }
.hq-gl-step__num { grid-area: num; align-self: start; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--c-surface); border: 1px solid var(--cyan-35); color: var(--c-text-strong); font-size: var(--fs-ui); line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 0 18px rgba(103, 232, 249, .12); }
/* title row is the circle's height: title, circle and DAY label share one centre line */
.hq-gl-step__title { grid-area: title; min-height: 44px; display: flex; align-items: center; font-family: var(--ff-heading); font-size: var(--fs-h3); line-height: 1.25; color: var(--c-text-strong); text-wrap: balance; }
.hq-gl-step__day { grid-area: day; align-self: start; height: 44px; display: flex; align-items: center; color: var(--c-cyan); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.hq-gl-step__text { grid-area: text; align-self: start; color: var(--c-text-muted); line-height: 1.65; max-width: 44ch; }
.hq-gl-scan { grid-area: scan; align-self: center; padding: var(--sp-3); }
.hq-gl-scan img { display: block; width: 100%; height: auto; border-radius: var(--r-2); }
.hq-gl-scan > * { margin: 0 !important; }
@media (max-width: 900px) {
	.hq-gl-tl { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "steps" "cap" "scan"; row-gap: var(--sp-6); }
	.hq-gl-tl__title { grid-column: auto; }
	.hq-gl-cap { justify-self: start; margin-top: var(--sp-3) !important; }
	.hq-gl-cap__text { text-align: left; }
	.hq-gl-steps { align-self: start; }
	.hq-gl-step { flex: none; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "num title" "num day" "num text"; grid-template-rows: auto; }
	.hq-gl-step__day { height: auto; }
	.hq-gl-scan { margin-top: calc(-1 * var(--sp-3)) !important; }
}
/* team: copy + press logos left, two portraits right */
.hq-gl-team { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hq-gl-team > * { margin: 0 !important; }
.hq-gl-team__copy { display: grid; gap: var(--sp-4); justify-items: start; }
.hq-gl-team__copy > * { margin: 0 !important; }
.hq-gl-feat__title { font-size: var(--fs-ui); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-faint); margin-top: var(--sp-4) !important; }
.hq-gl-feat { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.hq-gl-feat > * { margin: 0 !important; }
.hq-gl-feat__logo img { display: block; height: 40px; width: auto !important; border-radius: 6px; }
.hq-gl-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.hq-gl-person { display: grid; gap: var(--sp-1); }
.hq-gl-person > * { margin: 0 !important; }
.hq-gl-person__img img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--r-3); border: 1px solid rgba(255, 255, 255, .1); }
.hq-gl-person__img { margin-bottom: var(--sp-3) !important; }
.hq-gl-person__name { font-size: var(--fs-h3); line-height: 1.2; color: var(--c-text-strong); }
.hq-gl-person__role { color: var(--c-text-muted); font-size: var(--fs-ui); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) {
	.hq-gl-results, .hq-gl-team { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.hq-gl-stats { grid-template-columns: minmax(0, 1fr); }
	.hq-gl-stat { padding-top: var(--sp-5); }
	.hq-gl-stat + .hq-gl-stat::before { left: 25%; right: 25%; top: 0; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan-35), transparent); }
	.hq-gl-people { gap: var(--sp-3); }
}
/* written testimonials: 2 x 2 glass cards with the client photo */
.hq-gl-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); max-width: 1040px !important; }
.hq-gl-q { display: grid; grid-template-rows: auto 1fr auto; gap: var(--sp-4); padding: var(--sp-6); }
.hq-gl-q > * { margin: 0 !important; }
.hq-gl-q__id > * { margin: 0 !important; }
.hq-gl-q__role { color: var(--c-text-muted); font-size: var(--fs-ui); }
.hq-gl-q__stars img { display: block; height: 16px; width: auto !important; }
@media (max-width: 781px) { .hq-gl-quotes { grid-template-columns: minmax(0, 1fr); } }
/* --------------------------------------------------------------------------
   Round 3 (agent H): /googleads alignment pass.
   -------------------------------------------------------------------------- */
/* WP flow layout gives every block after the first margin-block-start: 20px. Inside these grids that pushed
   cards 2+ (stats, results, testimonials, team portraits) 20px down and stretched the first item 20px taller. */
:is(.hq-gl-stats, .hq-gl-results, .hq-gl-quotes, .hq-gl-people, .hq-gl-team, .hq-gl-res__stat, .hq-gl-q__id) > * { margin: 0 !important; }
/* hero benefits: the list was centred (x 265 to 633) under a left-aligned hero; it now starts on the copy edge */
.hq-hero--service .hq-hero__list { margin: var(--sp-5) 0 0 !important; padding: 0 !important; justify-items: start; text-align: left; gap: var(--sp-2); }
.hq-hero--service .hq-hero__list li { display: flex; align-items: baseline; gap: var(--sp-3); }
.hq-hero--service .hq-hero__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 8px var(--cyan-60); transform: translateY(-2px); }
/* why HQDM: the copy's line breaks are tuned for the 760px column; phones reflow the lead instead */
@media (max-width: 781px) { .hq-gl-lead br { display: none; } }
/* grid edges: the stat row (240 to 1200 at 1440) and the testimonial grid (200 to 1240) were inset from the
   1200px container every other lander section uses (results, timeline, team): one left / right edge for all */
.hq-gl-stats, .hq-gl-quotes { max-width: var(--wide) !important; }
/* CTA rows: centred on the page axis, attached to the section above (its padding is the gap) */
.hq-glx--cta { padding-top: 0; }
.hq-gl-cta { display: flex; justify-content: center; }
.hq-gl-cta > *, .hq-gl-cta .wp-block-buttons { margin: 0 !important; justify-content: center; }
/* results on tablets: one row per client (who + quote | figure + logo) instead of three tall stacked cards */
@media (min-width: 640px) and (max-width: 900px) {
	.hq-gl-res { grid-template-columns: minmax(0, 1fr) 232px; grid-template-rows: auto 1fr; grid-template-areas: "who stat" "quote stat"; column-gap: var(--sp-6); row-gap: var(--sp-4); }
	.hq-gl-res__who { grid-area: who; }
	.hq-gl-res__quote { grid-area: quote; }
	.hq-gl-res__stat { grid-area: stat; align-self: stretch; align-content: center; padding: 0 0 0 var(--sp-6); border-top: 0; border-left: 1px solid rgba(255, 255, 255, .08); }
	.hq-gl-results { grid-auto-rows: 1fr; }
}
/* stats: on tablets the 24px side padding wrapped "Revenue Generated for Clients"; on phones the stacked numbers
   lost the 20px the flow margin used to add, so each cell gets even room above and below its divider */
@media (min-width: 601px) and (max-width: 900px) { .hq-gl-stat { padding-inline: var(--sp-2); } }
@media (max-width: 600px) { .hq-gl-stat { padding-block: var(--sp-5); } .hq-gl-stat:last-child { padding-bottom: 0; } }
/* numbered fact row closed by a lone button: the button under the row, no empty glass card around it */
.hq-nfactsec > .hq-nfacts__actions { justify-content: flex-start; }
.hq-ed__body--ragged:has(> .hq-panel ~ .hq-panel) > .hq-panel { align-self: start; }

/* --------------------------------------------------------------------------
   Round 3 (agent G, Milan 08.11 "use the space better"): sub-service pages only (sections carry .hq-sub, build.py
   is_sub). Copy after a statement goes into two columns split between whole paragraphs (sub_cols picks 1:1, 7:5 or
   5:7 with the first paragraph at lead size), long intros sit right of their heading, panel pairs and scroll tab
   cards use the main service pages' card gap (24px, --sp-5) instead of 72-80px.
   -------------------------------------------------------------------------- */
.hq-subcols { column-gap: clamp(40px, 5vw, 80px); }
@media (min-width: 861px) {   /* one column below, like every .hq-pcols */
	.hq-subcols.hq-pcols--wl { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.hq-subcols:is(.hq-pcols--lead, .hq-pcols--nl) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.hq-subcols:is(.hq-pcols--lead, .hq-pcols--stmt) { align-items: first baseline; }   /* the lead's first line sits on the body's first baseline */
}
.hq-subcols.hq-pcols--lead > .hq-pcols__col:first-child > p:not(.hq-statement-p) { font-family: var(--ff-heading); font-size: calc(var(--fs-lead) * 1.16); line-height: 1.5; letter-spacing: -.01em; color: var(--c-text-strong); text-wrap: pretty; }   /* 22px at 1440 (build.py SUB_VIEWS models it) */
.hq-subcols > .hq-pcols__col + .hq-pcols__col { position: relative; }
.hq-subcols > .hq-pcols__col + .hq-pcols__col::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-.5 * clamp(40px, 5vw, 80px)); width: 1px; background: var(--c-line); }
.hq-subcols .hq-pcols__col > * { margin: 0; }
.hq-subcols .hq-pcols__col > * + * { margin-top: var(--sp-5); }
.hq-subcols .hq-pcols__col > p + .hq-checklist { margin-top: var(--sp-4) !important; margin-bottom: 0 !important; }
.hq-subcols .hq-pcols__col > .hq-checklist + * { margin-top: var(--sp-5) !important; }
.hq-subcols .hq-pcols__col > .hq-checklist:first-child { margin-top: 0 !important; }
.hq-subcols .hq-pcols__col > .hq-checklist:last-child { margin-bottom: 0 !important; }
/* one reading column: wide 760px measure; a standalone checklist goes two-up across the container */
.hq-ed__body--sub > .hq-ed__cols:not(.hq-pcols) { max-width: none; margin: 0; }
.hq-ed__body--sub > .hq-ed__cols:not(.hq-pcols) > * { max-width: 760px; margin: 0; }
.hq-ed__body--sub > .hq-ed__cols:not(.hq-pcols) > * + * { margin-top: var(--sp-5); }
.hq-ed__body--sub > .hq-ed__cols:not(.hq-pcols) > .hq-checklist { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-7); row-gap: var(--sp-3); margin: var(--sp-5) 0 0 !important; }
.hq-ed__body--sub > .hq-ed__cols:not(.hq-pcols) > .hq-checklist + * { margin-top: var(--sp-5) !important; }
.hq-ed--center .hq-ed__body--sub > .hq-ed__cols:not(.hq-pcols) { max-width: 760px; margin-inline: auto !important; }
.hq-ed__body--sub > .hq-ed__actions { margin-top: var(--sp-7) !important; }
.hq-ed--center .hq-ed__body--sub > .hq-ed__actions { justify-content: center; }
/* panel pairs: statement + columns over the pair, 24px between the panels (bento / why-us rows use the same) */
.hq-ed__body--sub:has(> .hq-panel ~ .hq-panel) { column-gap: var(--sp-5); row-gap: var(--sp-5); }
.hq-ed__body--sub:has(> .hq-panel ~ .hq-panel) > .hq-statement-p { max-width: 880px; margin: 0 0 var(--sp-5) !important; }
.hq-ed__body--sub:has(> .hq-panel ~ .hq-panel) > .hq-ed__cols { max-width: none; margin: 0 0 var(--sp-7) !important; }
.hq-ed__body--sub:has(> .hq-panel ~ .hq-panel) > .hq-ed__cols:not(.hq-pcols) > * { max-width: 760px; }
.hq-ed__body--sub .hq-statement-p .hq-first { margin: 0; }
.hq-pcols--stmt .hq-statement-p .hq-first { text-wrap: balance; }   /* statement opening the left column */
/* bold label line as the panel title (copy unchanged, it stays a paragraph) */
.hq-panel__label, .hq-panel__label strong { font-family: var(--ff-heading); font-size: var(--fs-h3); font-weight: var(--fw-heading-sm); line-height: 1.2; letter-spacing: -.012em; color: var(--c-text-strong); }
/* long intro right of the heading (Milan's approved round 3 head layout); on tab sections it lines up with the cards */
.hq-head--aside { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 88px); row-gap: var(--sp-4); align-items: end; justify-items: stretch; }
.hq-head--aside > .hq-head__main, .hq-head--aside > .hq-head__aside { display: grid; row-gap: var(--sp-4); margin: 0; }
.hq-head--aside > * > * { margin: 0; }
.hq-head--aside > .hq-head__main > .hq-section-title { max-width: 14em; }
.hq-head--aside > .hq-head__aside .hq-lede { max-width: 38em !important; text-wrap: pretty; }
.hq-tabsec > .hq-head--aside { grid-template-columns: minmax(200px, 4fr) minmax(0, 8fr); column-gap: var(--sp-4); }   /* = .hq-tabs--on columns */
.hq-head--stmt { align-items: start; }
.hq-head--stmt .hq-statement-p { max-width: none; }
.hq-head--stmt .hq-statement-p .hq-first { margin: 0; text-wrap: balance; }
.hq-head--stmt > .hq-head__aside { padding-top: .5em; }
.hq-head--stmt > .hq-head__aside .hq-lede { color: var(--c-text); }
/* long why-us intro: left-aligned columns under the centred head, the lead-in line stays centred over the cards */
.hq-section > .hq-whyus__cols { text-align: left; max-width: var(--wide) !important; }
.hq-whyus__cols p { margin: 0; max-width: none; font-size: var(--fs-prose); line-height: 1.75; color: var(--c-text); text-wrap: pretty; }
.hq-whyus__cols:not(.hq-pcols) { max-width: 760px !important; }
.hq-section > .hq-whyus__leadin { text-align: center; }
.hq-whyus__leadin > p { margin: 0 auto; }
.hq-section > .hq-whyus__leadin + .hq-wchecks { margin-top: var(--sp-6); }
/* long why-us check texts (80-word bold paragraphs) read at body weight */
.hq-wchecks--long .hq-wcheck__text, .hq-wchecks--long .hq-wcheck__text strong { font-weight: 400; line-height: 1.65; }
/* scroll tab cards: 24px apart like the bento columns (was 64px + 16px), copy on a wider measure inside the card */
.hq-sub .hq-tabs--on > .hq-tabs__item + .hq-tabs__item { margin-top: var(--sp-2) !important; }
.hq-sub .hq-tcard__text { max-width: 40em; }
@media (max-width: 900px) {
	.hq-head--aside, .hq-tabsec > .hq-head--aside { grid-template-columns: minmax(0, 1fr); }
	.hq-head--stmt > .hq-head__aside { padding-top: 0; }
}
@media (max-width: 860px) {
	.hq-subcols > .hq-pcols__col + .hq-pcols__col::before { content: none; }
	.hq-subcols { row-gap: var(--sp-5); }
	.hq-ed__body--sub > .hq-ed__cols:not(.hq-pcols) > .hq-checklist { grid-template-columns: minmax(0, 1fr); }
}
