/* ==========================================================================
   HQDM: Miami SEO pages (post type miami_seo, /miami-seo/<area>), v5 "space + cyan" (agent D, 05.11.2026).
   Order: hero (eyebrow pill, H1, cyan glow bar, Miami skyline, lede, links) > main content (sticky in-page nav built
   by suburb.js from the chapter H2s | chapters: lead statement, HUD panel pair, lit-hairline chapter | offer strip)
   > about + map (HUD mount) > optional extra chapter > FAQ > closing strip > other areas (glass tiles).
   Markup: build.py area_* helpers, page-upload/2026-11-05-miami-wave3/build_wave3.py, patterns/miami-seo-starter.php.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero: copy left, the skyline on the hero floor to the right (cyan city light from the right, violet from the left).
   Under 1024px the skyline sits in the flow right under the headline.
   -------------------------------------------------------------------------- */
.hq-hero--area { padding-bottom: var(--section-tight); isolation: isolate; overflow: clip; }
.hq-hero--area::before {
	content: "";
	position: absolute;
	inset: 0;
	/* two-light field (phase 2 tokens): violet from the left, cyan from the right, plus a violet crown over the copy
	   and a cyan pool behind the skyline; the copy column stays on the dark side (contrast unchanged) */
	background:
		var(--light-l),
		var(--light-r),
		radial-gradient(40% 56% at 18% 0%, rgba(113, 61, 223, .22), transparent 72%),
		radial-gradient(44% 60% at 84% 92%, var(--cyan-18), transparent 72%),
		radial-gradient(30% 40% at 96% 20%, var(--cyan-8), transparent 70%);
	-webkit-mask: linear-gradient(180deg, #000 70%, transparent);
	mask: linear-gradient(180deg, #000 70%, transparent);
	z-index: -2;
	pointer-events: none;
}
.hq-hero--area .hq-hero__content { width: 100%; max-width: var(--wide); justify-self: center; }
.hq-hero--area .hq-title { max-width: 16ch; text-wrap: balance; }
.hq-hero--area .hq-glowbar { margin-top: var(--sp-5); }
.hq-hero--area .hq-lede { color: var(--c-text); margin-top: var(--sp-5); max-width: var(--measure-prose); text-wrap: pretty; }
.hq-area-sky {
	/* r2: the night skyline (miami-night.svg, same asset as the Miami landing heroes): transparent sky, its own lit
	   waterline, so no box edges and no extra glow layers; under 1024px it stands in the flow under the H1 */
	position: relative;
	z-index: -1;
	height: clamp(180px, 46vw, 300px);
	margin: var(--sp-6) calc(-1 * var(--gutter)) 0;
	background: url("../../img/miami-night.svg") 80% 100% / auto 100% no-repeat;
	pointer-events: none;
}
@media (min-width: 1024px) {
	.hq-hero--area { min-height: min(86svh, 760px); display: grid; align-content: center; }
	.hq-area-sky {
		/* r3 (critique MJ5): starts at the copy column's right edge (lede max 33em = ~52% at 1440) and fades in
		   over the next 22%, so no tower crosses a line of copy on any of the 15 Miami pages */
		position: absolute;
		left: 52%;
		right: 0;
		bottom: 0;
		height: min(64%, 500px);
		margin: 0;
		background-position: 100% 100%;
		-webkit-mask: linear-gradient(90deg, transparent, #000 46%);
		mask: linear-gradient(90deg, transparent, #000 46%);
	}
}
.hq-hero__links { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hq-hero__links a {
	/* look: base.css (first = primary pill, the rest = outlined pill); size = every primary CTA */
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 1rem 2rem;
	font-size: 1.125rem;
	line-height: 1.3;                          /* = the primary's rolling label, so both links are the same height */
	text-decoration: none;
}
.hq-hero__links a:active { transform: scale(.97); }
@media (max-width: 781px) { .hq-hero__links a { font-size: 1rem; padding: .875rem 1.625rem; } }

/* --------------------------------------------------------------------------
   Main content: nav column (JS) + chapters. Without JS, or under 1024px, the chapters use the full width.
   -------------------------------------------------------------------------- */
.hq-area-body > * { max-width: var(--wide); }
.hq-area-body > * + * { margin-top: var(--sp-9); }
.hq-area-nav { display: none; }
@media (prefers-reduced-motion: no-preference) { html:has(.hq-area-nav) { scroll-behavior: smooth; } }
@media (min-width: 1024px) {
	/* .hq-js is set in <head>, so the nav column exists before suburb.js fills it (no shift) */
	.hq-js .hq-area-body { display: grid; grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr); column-gap: clamp(40px, 5vw, 88px); row-gap: var(--sp-9); align-items: start; }
	.hq-js .hq-area-body > * { grid-column: 2; max-width: none; margin: 0; }
	.hq-js .hq-area-body > .hq-area-nav { display: block; grid-row: 1 / span 2; }
}
/* nav states: inactive muted, the active chapter brightest (its bar fills violet to cyan) */
.hq-area-nav .hq-tabs__link { font-size: 1rem; color: var(--c-text-muted); }
.hq-area-nav .is-active .hq-tabs__link { color: var(--c-text-strong); }
.hq-area-nav .is-active .hq-tabs__bar { background: rgba(255, 255, 255, .18); box-shadow: 0 0 10px -2px var(--cyan-60); }
.hq-area-nav .hq-tabs__link:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: var(--r-1); }

.hq-area-chapters { container-type: inline-size; display: grid; row-gap: var(--sp-9); }
.hq-area-chapters > *, .hq-area-ch > *, .hq-area-pair > * { margin: 0; }
.hq-area-ch > * + * { margin-top: var(--sp-4); }
.hq-area-ch h2 { scroll-margin-top: 112px; text-wrap: balance; }
.hq-area-ch p { font-size: var(--fs-prose); line-height: 1.7; color: var(--c-text-muted); max-width: var(--measure-prose); text-wrap: pretty; }
@media (max-width: 781px) { .hq-area-chapters { row-gap: var(--sp-8); } .hq-area-body > * + * { margin-top: var(--sp-8); } }

/* 1. Lead: the section's opener, big H2 + the first paragraph as a statement that fills in on scroll */
.hq-area-ch--lead h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.022em; max-width: 18ch; }
.hq-area-ch--lead > h2 + * { margin-top: var(--sp-6); }
.hq-area-ch p.hq-area-lead { font-family: var(--ff-heading); font-size: var(--fs-h3); font-weight: 400; line-height: 1.45; letter-spacing: -.015em; color: var(--c-text-strong); max-width: 46ch; }

/* 2. Middle chapters: one HUD glass panel, side by side when the column allows, a lit hairline between them */
.hq-area-pair {
	position: relative;
	display: grid;
	gap: var(--sp-7);
	padding: var(--sp-7) clamp(24px, 3.4vw, 48px);
	font-size: 1rem;
	border-radius: var(--r-3);
	background: var(--glass-ray), var(--glass-bg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	box-shadow: var(--glass-shadow);
	--hud-s: 16px;   /* r2 G1: rounded brackets 8px outside the panel (base.css .hq-hud) */
}
.hq-area-pair::after {
	/* glass rim with the cyan trace bottom-right (the panel sits on the right of the two-light field) */
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: var(--glass-rim-cyan);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}
.hq-area-ch--pair { position: relative; }
.hq-area-ch--pair + .hq-area-ch--pair { padding-top: var(--sp-7); background: var(--hairline) 0 0 / 100% 1px no-repeat; }
.hq-area-ch--pair h2 { font-size: var(--fs-h3); font-weight: var(--fw-heading-sm); line-height: 1.25; letter-spacing: -.012em; max-width: 22ch; }
.hq-area-ch--pair h2::after {
	/* small cyan glow line under the title (services mockup) */
	content: "";
	display: block;
	width: 28px;
	height: 2px;
	margin-top: var(--sp-4);
	border-radius: var(--r-pill);
	background: var(--c-cyan);
	box-shadow: 0 0 10px 0 var(--cyan-60);
}
.hq-area-ch--pair > h2 + * { margin-top: var(--sp-5); }
.hq-area-ch--pair p { font-size: 1rem; }
@container (min-width: 640px) {
	.hq-area-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5cqi, 64px); }
	.hq-area-ch--pair + .hq-area-ch--pair { padding-top: 0; background: none; }
	.hq-area-ch--pair:nth-child(even)::before {
		/* vertical lit hairline between the two columns */
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: calc(-1 * clamp(16px, 2.5cqi, 32px));
		width: 1px;
		background: linear-gradient(180deg, transparent, rgba(196, 173, 255, .28) 30%, rgba(103, 232, 249, .5) 50%, rgba(196, 173, 255, .28) 70%, transparent);
	}
}

/* 3. Last chapter: a lit hairline opens it, statement-size H2, two paragraphs read side by side */
.hq-area-ch--lit { display: grid; column-gap: var(--sp-7); padding-top: var(--sp-8); background: var(--hairline-lit) 0 0 / 100% 1px no-repeat; }
.hq-area-ch--lit > * { margin: 0; }
.hq-area-ch--lit > * + * { margin-top: var(--sp-5); }
:is(.hq-area-ch--lit, .hq-area-ch--after) h2 { font-size: var(--fs-statement); font-weight: var(--fw-heading-sm); line-height: 1.2; letter-spacing: -.025em; max-width: 24ch; }
@container (min-width: 640px) {
	:is(.hq-area-ch--lit, .hq-area-ch--after):has(> p + p) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-7); }
	:is(.hq-area-ch--lit, .hq-area-ch--after):has(> p + p) > h2 { grid-column: 1 / -1; }
	:is(.hq-area-ch--lit, .hq-area-ch--after):has(> p + p) > p + p { margin-top: var(--sp-5); }
}

/* Offer strip (same card on every Miami page): copy left, button right */
.hq-area-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-7); align-items: center; padding: var(--sp-7) clamp(24px, 3.4vw, 48px); --rim: var(--glass-rim-cyan); }
.hq-area-offer > * { grid-column: 1; margin: 0; }
.hq-area-offer > * + * { margin-top: var(--sp-3); }
.hq-area-offer h3 { font-size: var(--fs-statement); font-weight: var(--fw-heading-sm); line-height: 1.15; letter-spacing: -.025em; max-width: 20ch; }
.hq-area-offer > h3 + p { margin-top: var(--sp-4); }
.hq-area-offer p:not(.hq-label) { color: var(--c-text-muted); max-width: var(--measure-prose); text-wrap: pretty; }
.hq-area-offer > .wp-block-buttons { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
@media (max-width: 781px) {
	.hq-area-offer { grid-template-columns: 1fr; }
	.hq-area-offer > .wp-block-buttons { grid-column: 1; grid-row: auto; margin-top: var(--sp-6); }
}

/* --------------------------------------------------------------------------
   About + map: open copy on the left, the map in a HUD mount on the right (wider than the copy)
   -------------------------------------------------------------------------- */
.hq-area-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 96px); align-items: center; }
.hq-area-about > * { max-width: none; margin: 0 !important; }
.hq-area-about .hq-area-about__text { font-size: 1rem; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-radius: 0; }
.hq-area-about .hq-area-about__text::after { content: none; }
.hq-area-about__text > * { margin: 0; }
.hq-area-about__text > * + * { margin-top: var(--sp-4); }
.hq-area-about__text p { color: var(--c-text-muted); font-size: var(--fs-prose); line-height: 1.7; max-width: var(--measure-prose); text-wrap: pretty; }
.hq-area-about__text > h2:first-child { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.022em; max-width: 14ch; text-wrap: balance; }
.hq-area-about__text > h2:first-child + * { margin-top: var(--sp-5); }
.hq-area-about__text > :is(h2, h3):not(:first-child) {
	/* second heading (office address, directions): a small location row under a hairline */
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin-top: var(--sp-7);
	padding-top: var(--sp-6);
	font-size: var(--fs-h4);
	line-height: 1.3;
	background: var(--hairline) 0 0 / 100% 1px no-repeat;
}
.hq-area-about__text > :is(h2, h3):not(:first-child)::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-cyan);
	box-shadow: 0 0 0 4px var(--cyan-8), 0 0 12px 1px var(--cyan-60);
}
.hq-area-map { --hud-s: 16px; border-radius: var(--r-3); }   /* same radius as the map inside: the HUD frame is concentric with the box it frames */
.hq-area-map .hq-map { min-height: clamp(320px, 36vw, 500px); box-shadow: inset 0 0 0 1px var(--c-line), var(--glass-shadow); }
.hq-area-map .hq-map::after {
	/* vignette so the bright satellite tiles sink into the page */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 90px 10px rgba(10, 3, 24, .75);
	pointer-events: none;
}
.hq-area-map .hq-map iframe[src*="!5e1"] { filter: brightness(.65) saturate(.7); }
@media (max-width: 900px) {
	.hq-area-about { grid-template-columns: 1fr; row-gap: var(--sp-7); }
	.hq-area-map .hq-map { min-height: 340px; }
}

/* Extra chapter some pages carry between the map and the FAQ (wave 3) */
.hq-area-after { container-type: inline-size; }
.hq-area-ch--after > * { margin: 0; }
.hq-area-ch--after > * + * { margin-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   FAQ (accordion.css look), centred title over one column of questions
   -------------------------------------------------------------------------- */
.hq-suburb .hq-faq-section > .hq-section-title { text-align: center; margin-inline: auto; max-width: 18ch; }
.hq-suburb .hq-faq-section > .hq-faq { max-width: 880px; }

/* --------------------------------------------------------------------------
   Closing CTA: one strip, sentence left and the button right (audit: no lone centred sentence)
   -------------------------------------------------------------------------- */
.hq-suburb .hq-band { padding-block: var(--section-tight); }
.hq-suburb .hq-band__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: clamp(32px, 6vw, 96px);
	align-items: center;
	padding: var(--sp-7) clamp(24px, 4vw, 56px);
	text-align: left;
}
.hq-suburb .hq-band__panel > * { grid-column: 1; max-width: var(--measure-prose); margin: 0; }
.hq-suburb .hq-band__panel > * + * { margin-top: var(--sp-4); }
.hq-suburb .hq-band__panel > .hq-section-title { font-size: var(--fs-statement); max-width: 24ch; margin-inline: 0; }
.hq-suburb .hq-band__panel > p { color: var(--c-text); font-size: var(--fs-lead); line-height: 1.55; }
.hq-suburb .hq-band__panel > .wp-block-buttons { grid-column: 2; grid-row: 1 / span 9; justify-content: flex-end; margin: 0; }
@media (max-width: 781px) {
	.hq-suburb .hq-band__panel { grid-template-columns: 1fr; }
	.hq-suburb .hq-band__panel > .wp-block-buttons { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: var(--sp-6); }
}

/* --------------------------------------------------------------------------
   Other areas: glass tiles lit from the bottom edge (links: rim + arrow react on hover); the current page is
   marked by site.js (aria-current) and does not react.
   -------------------------------------------------------------------------- */
.hq-areas > .hq-section-title { text-align: center; margin-inline: auto; }
.hq-areas__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); width: 100%; max-width: var(--wide); margin-inline: auto; padding: 0; list-style: none; }
.hq-areas__grid li { flex: 0 1 228px; margin: 0; }
.hq-area-card {
	position: relative;
	display: grid;
	gap: 2px;
	min-height: 120px;
	height: 100%;
	align-content: end;
	font-size: 1rem;
	padding: var(--sp-5);
	border-radius: var(--r-3);
	border: 0;
	background: var(--glass-lit-bottom), var(--glass-bg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	box-shadow: var(--glass-shadow), inset 0 -1px 0 rgba(255, 255, 255, .22);
	text-decoration: none;
	transition: box-shadow var(--d-2) var(--ease), transform var(--d-1) var(--ease-out);
}
.hq-area-card::before {
	/* arrow-up-right (icon set) drawn as a mask, so it takes the text colour */
	content: "";
	position: absolute;
	top: var(--sp-5);
	right: var(--sp-5);
	width: 18px;
	height: 18px;
	background: var(--c-text-faint);
	-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 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%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 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--d-2) var(--ease-out), background-color var(--d-2) var(--ease);
}
.hq-area-card__name { font-family: var(--ff-heading); color: var(--c-text-strong); font-weight: var(--fw-heading-sm); font-size: var(--fs-h4); letter-spacing: -.008em; }
.hq-area-card__more { color: var(--c-text-faint); font-size: var(--fs-ui); }
.hq-area-card:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
@media (hover: hover) {
	.hq-area-card:not([aria-current]):hover::before { transform: translate(2px, -2px); background-color: var(--c-cyan); transition-duration: var(--d-hover); }
	.hq-area-card:not([aria-current]):hover .hq-area-card__more { color: var(--c-text-muted); }
	.hq-area-card[aria-current="page"]:hover { --rim: var(--glass-rim-cyan); box-shadow: var(--glass-shadow), inset 0 -1px 0 rgba(255, 255, 255, .22); }
}
.hq-area-card:not([aria-current]):active { transform: scale(.98); }
.hq-area-card[aria-current="page"] { --rim: var(--glass-rim-cyan); cursor: default; }
.hq-area-card[aria-current="page"]::before {
	/* "you are here": a cyan beacon instead of the arrow */
	top: calc(var(--sp-5) + 5px);
	right: calc(var(--sp-5) + 5px);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-cyan);
	box-shadow: 0 0 0 4px var(--cyan-8), 0 0 12px 1px var(--cyan-60);
	-webkit-mask: none;
	mask: none;
}
@media (max-width: 600px) { .hq-areas__grid li { flex-basis: calc(50% - var(--sp-3) / 2); } .hq-area-card { padding: var(--sp-4); min-height: 104px; } .hq-area-card::before { top: var(--sp-4); right: var(--sp-4); } }

/* Standard suburb templates (posts in the Suburb category: single-suburb.html, category-suburb.html) reuse the look */
.hq-suburb-hero, .hq-suburb__body, .hq-suburb-related, .hq-suburb-list { padding: var(--section) var(--gutter); max-width: var(--wide); margin-inline: auto; }

/* ==========================================================================
   Miami landing pages (r2, agent D 06.11.2026): /seo-services-miami + /areas-served (build.py miami_hero /
   miami_intro, hook class hq-miami). Loaded on top of service.css (B's v5 service hero grid stays the base).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Full-hero night sky: the skyline (miami-night.svg) stands on a waterline across the whole hero, the logo strip
   sits on the bay below it. A sky gradient carries the two lights; a soft dark field behind the copy keeps the
   H1 and the CTA on calm ground (text sits on the sky, never on bright windows).
   -------------------------------------------------------------------------- */
.hq-hero--sky {
	--sky-floor: 168px;   /* bay band under the waterline: the logo strip (about 125px) lives here, 40px under the line */
	min-height: min(100svh, 940px);
	grid-template-rows: minmax(0, 1fr) auto;
	align-content: stretch;
	row-gap: 0;
	padding-bottom: 0 !important;
	overflow: clip;
}
.hq-hero--sky > .hq-hero__content, .hq-hero--sky > .hq-trust, .hq-hero--sky > .hq-hstage { align-self: center; }
.hq-hero--sky::before { display: none; }   /* B's horizon streak: the waterline is the horizon now */
.hq-hero--sky::after {
	/* sky: violet light from the top left, the city's cyan glow rising from the right of the horizon */
	inset: 0;
	height: auto;
	background:
		radial-gradient(52% 46% at 8% 0%, rgba(113, 61, 223, .3), transparent 74%),
		radial-gradient(60% 34% at 72% calc(100% - var(--sky-floor)), rgba(58, 209, 255, .16), transparent 72%),
		radial-gradient(70% 30% at 30% calc(100% - var(--sky-floor)), rgba(151, 71, 255, .14), transparent 72%);
}
.hq-msky {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	/* every sky layer reaches 0 before the hero edge: no seam into the intro (critique M1) */
	-webkit-mask: linear-gradient(180deg, #000 calc(100% - 120px), transparent);
	mask: linear-gradient(180deg, #000 calc(100% - 120px), transparent);
}
.hq-hero--sky::after {
	-webkit-mask: linear-gradient(180deg, #000 calc(100% - 160px), transparent);
	mask: linear-gradient(180deg, #000 calc(100% - 160px), transparent);
}
.hq-msky::before {
	/* the night sky over the city: the site's two star layers, faded out before the towers and the copy's dark field */
	content: "";
	position: absolute;
	inset: 0 0 var(--sky-floor);
	background: url("../../img/stars-near.svg") 0 0 / 700px 700px repeat, url("../../img/stars-far.svg") 0 0 / 380px 380px repeat;
	-webkit-mask: linear-gradient(180deg, transparent 6%, #000 22%, rgba(0, 0, 0, .5) 46%, transparent 64%);
	mask: linear-gradient(180deg, transparent 6%, #000 22%, rgba(0, 0, 0, .5) 46%, transparent 64%);
	opacity: .8;
}
.hq-msky__city {
	/* r2 polish: the skyline v2 (signature towers, 780 units tall, waterline at 640): the horizon rises to ~60% of the
	   hero, the tall Brickell cluster stands behind the trust panel / stage, low towers stay on the copy side */
	--city-h: clamp(380px, 44vw, 640px);
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(var(--sky-floor) - var(--city-h) * .1795);   /* the SVG's own bay + reflection (140 of 780 units) overlaps the floor */
	height: var(--city-h);
	background: url("../../img/miami-night.svg") 50% 100% / auto 100% no-repeat;
	transform-origin: 50% 100%;
}
@media (min-width: 1024px) {
	/* the copy side of the city stays a dim silhouette, the towers come to full light behind the trust panel / stage */
	/* r3 (critique MJ5): every line of copy on calm ground: the city is a 12% ghost under the copy column and
	   comes to full light only past it (the copy ends at ~47% of the hero at every desktop width) */
	.hq-msky__city { -webkit-mask: linear-gradient(90deg, rgba(0, 0, 0, .12) 0 47%, #000 62%); mask: linear-gradient(90deg, rgba(0, 0, 0, .12) 0 47%, #000 62%); }
	.hq-hero--sky .hq-lede { max-width: 34em; }
}
.hq-msky__sky {
	/* the bay continues under the SVG's reflection and fades to transparent at the hero edge, so the page's own
	   ambient light runs on into the intro (no seam at the hero floor: critique M1) */
	position: absolute;
	inset: auto 0 0;
	height: var(--sky-floor);
	background: linear-gradient(180deg, rgba(10, 4, 32, .55), rgba(10, 4, 32, 0));
}
.hq-msky::after {
	/* calm ground for the copy: a soft dark field over the towers on the copy side, plus a top fade */
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(46% 48% at 22% 46%, rgba(10, 3, 24, .82), rgba(10, 3, 24, .4) 55%, transparent 80%),
		linear-gradient(180deg, var(--c-bg) 0%, transparent 22%);
}
.hq-hero--sky .hq-hero__content { position: relative; z-index: 1; }
.hq-hero--sky .hq-logos { position: relative; z-index: 1; grid-row: 2; align-self: end; margin-top: clamp(48px, 6vw, 80px) !important; padding-bottom: 56px; }
.hq-hero--sky .hq-logos__title { color: var(--c-text); white-space: nowrap; }   /* one line on phones: the rails shrink (critique m7) */
@media (prefers-reduced-motion: no-preference) {
	.hq-msky__city { animation: hq-msky-in 1.6s var(--ease-out) both; }
	@keyframes hq-msky-in { from { transform: scale(1.035) translateY(8px); } }
}
@media (max-width: 1023px) {
	.hq-hero--sky { --sky-floor: 176px; min-height: 0; grid-template-rows: none; padding-top: var(--hero-top); }
	.hq-hero--sky .hq-logos { grid-row: auto; padding-bottom: 48px; }
	.hq-msky__city { --city-h: clamp(300px, 58vw, 440px); background-position: 80% 100%; }
	.hq-msky::after { background: linear-gradient(180deg, var(--c-bg) 0%, rgba(10, 3, 24, .55) 30%, rgba(10, 3, 24, .2) 52%, transparent 70%); }
	.hq-hero--sky .hq-logos { margin-top: clamp(180px, 40vw, 300px) !important; }   /* the skyline shows between the copy and the strip */
}
@media (max-width: 600px) {
	.hq-hero--sky { --sky-floor: 188px; }
	.hq-msky__city { --city-h: 300px; background-position: 74% 100%; }
	.hq-hero--sky .hq-logos { margin-top: 200px !important; }
	.hq-hero--sky:not(.hq-hero--trust) .hq-logos { margin-top: 270px !important; }   /* r3: towers start under the CTA, not behind it */
}

/* --------------------------------------------------------------------------
   Trust panel (Miami): the three ratings from the hero copy in one glass HUD panel over the skyline. Google leads
   (number + stars filled to 4.9 / 5); Clutch and BBB share the row under a hairline. Stars fill once on load.
   -------------------------------------------------------------------------- */
.hq-trust {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	align-self: center;
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
	margin: 0 !important;
	padding: var(--sp-6) var(--sp-6) var(--sp-5);
	border-radius: var(--r-3);
	background:
		radial-gradient(90% 70% at 100% 0%, rgba(58, 209, 255, .1), transparent 70%),
		linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02) 60%),
		rgba(14, 8, 32, .58);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	box-shadow: var(--glass-shadow), 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.hq-trust__item { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num mark" "label label"; align-items: center; column-gap: var(--sp-3); row-gap: var(--sp-2); }
.hq-trust__item--lead { grid-template-areas: "num mark" "num label"; column-gap: var(--sp-5); row-gap: var(--sp-1); align-items: end; padding-bottom: var(--sp-5); }
.hq-trust__num {
	grid-area: num;
	font-family: var(--ff-heading);
	font-size: var(--fs-h3);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--c-text-strong);
	font-variant-numeric: tabular-nums;
}
.hq-trust__item--lead .hq-trust__num { font-size: var(--fs-number); letter-spacing: -.035em; }
.hq-trust__label { grid-area: label; font-size: var(--fs-ui); line-height: 1.35; color: var(--c-text-muted); }
.hq-trust__item--lead .hq-trust__label { align-self: start; color: var(--c-text); }
.hq-trust__row {
	display: grid;
	grid-template-columns: max-content max-content;   /* each item as wide as its label: no wrapped "BBB accreditation" */
	padding-top: var(--sp-5);
	border-top: 1px solid transparent;
	border-image: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(103, 232, 249, .3) 60%, rgba(255, 255, 255, .06)) 1;
}
.hq-trust__row > .hq-trust__item + .hq-trust__item { padding-left: var(--sp-5); margin-left: var(--sp-5); box-shadow: inset 1px 0 0 rgba(255, 255, 255, .1); }
.hq-trust__row > .hq-trust__item:first-child { padding-right: 0; }
/* stars: a dim track and a cyan copy clipped to the rating (--v = rating / 5) */
.hq-trust__stars { grid-area: mark; position: relative; display: inline-block; justify-self: start; line-height: 0; --star: 14px; }
.hq-trust__item--lead .hq-trust__stars { --star: 18px; align-self: end; margin-bottom: .32em; }
.hq-trust__track, .hq-trust__fill { display: inline-flex; gap: calc(var(--star) * .22); }
.hq-trust__stars svg { width: var(--star); height: var(--star); fill: currentColor; stroke: none; }
.hq-trust__track { color: rgba(255, 255, 255, .14); }
.hq-trust__fill { position: absolute; inset: 0; color: var(--c-cyan); filter: drop-shadow(0 0 6px rgba(103, 232, 249, .45)); clip-path: inset(0 calc((1 - var(--v)) * 100%) 0 0); }
.hq-trust__badge {
	grid-area: mark;
	justify-self: start;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: var(--c-cyan);
	background: rgba(103, 232, 249, .08);
	box-shadow: inset 0 0 0 1px var(--cyan-35);
}
.hq-trust__badge .hq-icon { display: block; width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
	.hq-trust__fill { animation: hq-trust-fill 1.1s var(--ease-out) both; animation-delay: .7s; }
	.hq-trust__row .hq-trust__fill { animation-delay: .9s; }
	@keyframes hq-trust-fill { from { clip-path: inset(0 100% 0 0); } }
}
@media (max-width: 1023px) {
	.hq-trust { grid-column: 1; grid-row: auto; justify-self: start; width: min(100%, 460px); margin-top: var(--sp-7) !important; }
}
@media (max-width: 420px) {
	.hq-trust { padding: var(--sp-5); }
	.hq-trust__row > .hq-trust__item + .hq-trust__item { padding-left: var(--sp-4); margin-left: var(--sp-4); }
}

/* areas-served: B's local SEO stage sits on the right over the skyline (its own CSS); show it on phones too, small */
.hq-hero--sky .hq-hstage { z-index: 1; }

/* --------------------------------------------------------------------------
   Miami intro: the first sentence as the scroll-fill statement, then two rows, each a text column beside a photograph
   (text | river, then avenue | text), so the 290 words read in two short runs broken by pictures.
   -------------------------------------------------------------------------- */
.hq-mintro {
	display: grid;
	row-gap: clamp(56px, 7vw, 112px);
	padding-inline: max(var(--gutter), calc((100% - var(--wide)) / 2));
}
.hq-mintro > * { margin: 0 !important; }
.hq-mintro__statement {
	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);
	max-width: 28em;
	text-wrap: balance;
}
.hq-mintro__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	column-gap: clamp(40px, 6vw, 104px);
	align-items: center;
}
.hq-mintro__row--flip { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.hq-mintro__text { position: relative; }
.hq-mintro__text > * { margin: 0; }
.hq-mintro__text > * + * { margin-top: var(--sp-5); }
.hq-mintro__text p { font-size: 1.125rem; line-height: 1.7; color: var(--c-text); max-width: 34em; text-wrap: pretty; }
.hq-mintro__text::before {
	/* a short lit hairline opens each text run (the chapter mark used across v5) */
	content: "";
	display: block;
	width: 56px;
	height: 1px;
	margin-bottom: var(--sp-5);
	background: linear-gradient(90deg, var(--c-cyan), transparent);
	box-shadow: 0 0 12px var(--cyan-35);
}
@media (max-width: 1023px) {
	.hq-mintro__row, .hq-mintro__row--flip { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-7); }
	.hq-mintro__row--flip > .hq-mvis { order: 2; }
	.hq-mvis { width: min(100%, 600px); }
}

/* visual mounts: dark glass, r-3, HUD corners; the art is wordless and aria-hidden */
.hq-mvis {
	--on: 1;
	position: relative;
	margin: 0;
	border-radius: var(--r-3);
	background:
		radial-gradient(70% 60% at 85% 20%, rgba(58, 209, 255, .1), transparent 70%),
		radial-gradient(60% 60% at 10% 100%, rgba(151, 71, 255, .14), transparent 70%),
		#090419;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -48px rgba(0, 0, 0, .9);
}
html.hq-js .hq-mvis:not(.is-on) { --on: 0; }

/* Miami intro photographs (r3, Milan 08.11: the map and the wired results visual replaced). Real Brickell night
   photography (Freepik, not AI: drone + Sony originals with camera EXIF) in the v5 photo treatment (filter, 12%
   violet multiply, cyan rim) inside the HUD mount; one small wordless glass tile per photo breaks the frame toward
   the text (rating stars beside the paragraph that states the ratings; the results page where the client climbs to
   #1 beside the paragraph about rankings). Motion: once in view (.is-on) the photo settles from a slow push-in and
   the tile rises after it; while scrolling the picture drifts a few percent inside its frame (scroll-driven CSS,
   no JS). Reduced motion: the end frame, no drift. */
.hq-mph {
	--mph-ratio: 4 / 3;
	aspect-ratio: var(--mph-ratio);
	background: #07031a;
	box-shadow: 0 48px 90px -50px rgba(0, 0, 0, .95);
}
.hq-mph__frame {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: inherit;
	isolation: isolate;
}
.hq-mph__drift { position: absolute; inset: -5% 0; }
.hq-mph__frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: var(--photo-filter);
	transform: scale(calc(1.02 + (1 - var(--on)) * .07));
	transition: transform 2200ms var(--ease-out);
}
.hq-mph__frame::before,
.hq-mph__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.hq-mph__frame::before { z-index: 1; background: var(--photo-tint); mix-blend-mode: multiply; }
.hq-mph__frame::after {
	/* edges fall off into the page's night; the rim is the v5 photo rim */
	z-index: 2;
	background:
		radial-gradient(120% 90% at 50% 38%, transparent 58%, rgba(6, 2, 18, .5)),
		linear-gradient(180deg, transparent 72%, rgba(6, 2, 18, .35));
	box-shadow: var(--photo-rim);
}
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.hq-mph__drift { animation: hq-mph-drift linear both; animation-timeline: view(); }
		@keyframes hq-mph-drift { from { transform: translateY(-4%); } to { transform: translateY(4%); } }
	}
}

/* the glass tile: B's satellite recipe, in front of the HUD frame */
.hq-mph__sat {
	position: absolute;
	z-index: 3;
	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, .95);
	opacity: calc(.001 + var(--on) * .999);
	transform: translateY(calc((1 - var(--on)) * 20px)) scale(var(--sat-s, 1));
	transition: opacity 700ms var(--ease-out) 450ms, transform 900ms var(--ease-out) 450ms;
}
.hq-mph__sat > .hq-scene { width: 100%; height: 100%; border-radius: calc(var(--r-3) - 6px); --sc-lead: 700ms; }
/* fixed tile sizes (the scenes are laid out for these), scaled down as a whole on smaller mounts */
.hq-mph__sat--stars { left: -40px; bottom: -36px; width: 232px; height: 118px; transform-origin: 0 100%; }
.hq-mph__sat--seo { right: -44px; top: 9%; width: 268px; height: 244px; transform-origin: 100% 0; }
@media (max-width: 1279px) {
	.hq-mph__sat { --sat-s: .9; }
	.hq-mph__sat--stars { left: -24px; }
	.hq-mph__sat--seo { right: -24px; }
}
@media (max-width: 1023px) {
	/* one column: the tiles stay inside the column edges and hang below the photo */
	.hq-mph__sat { --sat-s: 1; }
	.hq-mph__sat--stars { left: 16px; bottom: -28px; }
	.hq-mph__sat--seo { right: 16px; top: auto; bottom: -32px; transform-origin: 100% 100%; }
	.hq-mintro__row:has(.hq-mph__sat) > .hq-mph { margin-bottom: 32px !important; }
}
@media (max-width: 600px) {
	.hq-mph__sat { --sat-s: .76; }
	.hq-mph__sat--stars { left: 12px; }
	.hq-mph__sat--seo { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.hq-mph__frame img, .hq-mph__sat { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hq-mvis * { transition: none !important; }
}

/* r3 polish (critique n7, n10): Miami landing pages body sections */
.hq-hero--sky ~ .hq-factsec .hq-facts__opener { max-width: 38em; }   /* ~105ch at 1440 before: cap the measure */
.hq-hero--sky ~ .hq-ncardsec .hq-ncard { min-height: 0; }             /* Education: cards as tall as their copy */
.hq-hero--sky ~ .hq-ncardsec .hq-ncard > .hq-medal { display: none; }  /* one marker per card: the number chip */
.hq-hero--sky ~ .hq-ncardsec .hq-ncard > .hq-ncard__num { align-self: flex-start; }
