/* ==========================================================================
   HQDM layout: sections + light fields, section heads, header + navigation, logo strip, CTA panels + team,
   breadcrumbs, map, footer, and the v5 section mechanics driven by motion.js (step deck, scroll tab list).
   Loaded on every page.
   ========================================================================== */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
.hq-main { margin: 0; position: relative; isolation: isolate; }
.hq-main > .wp-block-post-content > * + *, .hq-main > * + * { margin-block-start: 0; }

/* --------------------------------------------------------------------------
   Sections: one rhythm (--section top and bottom on every section; bands use --section-tight)
   -------------------------------------------------------------------------- */
.hq-section {
	position: relative;
	z-index: 1;
	padding: var(--section) var(--gutter);
	overflow-x: clip;
}
.hq-section > * { max-width: var(--wide); margin-inline: auto; }
.hq-section > * + * { margin-top: var(--sp-7); }
@media (max-width: 781px) { .hq-section > * + * { margin-top: var(--sp-6); } }
/* Sections that are grids themselves keep their content inside the wide container */
:is(.hq-pain, .hq-area-body, .hq-area-about, .hq-profile, .hq-faq-section--split) { padding-inline: max(var(--gutter), calc((100% - var(--wide)) / 2)); }

/* Section head: label (only where the old page has one) > title > lede */
.hq-head { display: grid; justify-items: center; text-align: center; row-gap: var(--sp-4); }
.hq-head > * { margin: 0; }
.hq-head .hq-section-title { margin-inline: auto; }
.hq-head .hq-glowbar { margin-top: var(--sp-1); }
.hq-head--left { justify-items: start; text-align: left; }
.hq-head--left .hq-section-title { margin-inline: 0; }
.hq-head--left .hq-glowbar { margin-inline: 0; }
.hq-head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; justify-items: start; text-align: left; gap: var(--sp-5); }
.hq-head--split .hq-section-title { margin-inline: 0; }
@media (max-width: 781px) { .hq-head--split { grid-template-columns: 1fr; } }

/* Grid/flex children must not inherit WordPress flow-layout gaps */
:where(.hq-lf-row, .hq-lf-cards, .hq-steps, .hq-step, .hq-checks, .hq-check, .hq-lf-card, .hq-head, .hq-header__bar, .hq-pillars__grid, .hq-quotes__grid, .hq-stack, .hq-why__rows, .hq-why-row, .hq-case-meta,
	.hq-case-stats, .hq-case-row, .hq-geo__list, .hq-ba__stage, .hq-speed, .hq-speed__pair, .hq-video-pair, .hq-showcase .hq-showcase, .hq-faq,
	.hq-post-layout, .hq-latest__grid, .hq-area-about, .hq-profile, .hq-footer__top, .hq-footer__cols, .hq-footer__bottom,
	.hq-team-cards, .hq-logo-loop, .hq-hero__actions, .hq-pain__quotes, .hq-quote-card__head, .hq-listing__grid, .hq-faq-section--split,
	.hq-deck__stage, .hq-tabs--on) > * { margin-block: 0 !important; }

/* Light and lines on a section, composed in one background so they never overwrite each other:
   .hq-rule = lit hairline on the top edge (ONLY where a new chapter starts, see DESIGN-GUIDELINES v5 spacing),
   .hq-lit  = the two lights behind the section (violet left, cyan right), on a masked ::before (below). */
:where(.hq-section):is(.hq-rule, .hq-lit) {
	background-image: var(--_rule, none), var(--_lit-l, none), var(--_lit-r, none);
	background-size: min(var(--wide), calc(100% - 2 * var(--gutter))) 1px, 100% 100%, 100% 100%;
	background-position: 50% 0, 0 0, 0 0;
	background-repeat: no-repeat;
}
.hq-rule { --_rule: var(--hairline-lit); }
/* phase 4: the two lights live on a masked layer behind the content, so they fade out before the section's top and
   bottom edges (painted as the section background they ended on a hard line) */
.hq-lit { position: relative; isolation: isolate; }
.hq-lit::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--light-l), var(--light-r);
	-webkit-mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
	mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}

/* --------------------------------------------------------------------------
   Header: logo, centred link pill, CTA pill (behaviour unchanged; v5 glass rim with a cyan trace)
   -------------------------------------------------------------------------- */
.hq-header-wrap { position: fixed; inset: 0 0 auto; z-index: 60; pointer-events: none; }
.admin-bar .hq-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .hq-header-wrap { top: 46px; } }
.hq-header { pointer-events: auto; position: relative; transition: transform var(--d-3) var(--ease-out); }
.hq-header::before {
	/* legibility veil that appears once the page scrolls under the nav */
	content: "";
	position: absolute;
	inset: 0 0 -24px;
	background: linear-gradient(180deg, rgba(10, 3, 24, .92), rgba(10, 3, 24, .6) 60%, transparent);
	opacity: 0;
	transition: opacity var(--d-3) var(--ease);
	pointer-events: none;
}
.hq-header.is-scrolled::before { opacity: 1; }
.hq-header.is-hidden { transform: translateY(-100%); }
.hq-header__bar {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--sp-5);
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin: 0 auto;
	min-height: 76px;
	padding: 0 var(--gutter);
}
.hq-logo { justify-self: start; margin: 0 !important; }
.hq-logo a, .hq-footer__logo a { display: inline-flex; align-items: center; min-height: 44px; }
.hq-logo img { width: 92px; height: auto; display: block; }
.hq-nav { justify-self: center; margin: 0 !important; }
.hq-nav .wp-block-navigation__container {
	/* liquid glass pill: mostly clear, strong frost + saturation, specular rim (::after), light inner bevel */
	position: relative;
	gap: 2px;
	padding: 4px;
	border-radius: var(--r-pill);
	background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01) 55%, rgba(255, 255, 255, .035)), rgba(18, 10, 38, .06);
	-webkit-backdrop-filter: blur(20px) saturate(140%);
	backdrop-filter: blur(20px) saturate(140%);
	box-shadow:
		inset 0 1px 1px rgba(255, 255, 255, .22),
		inset 0 -1px 1px rgba(255, 255, 255, .06),
		inset 0 0 18px rgba(255, 255, 255, .03),
		0 10px 30px -14px rgba(0, 0, 0, .7);
}
.hq-nav .wp-block-navigation__container::after {
	/* specular rim: bright on the top-left curve, a cyan trace on the bottom-right (the two lights) */
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(115deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08) 22%, rgba(255, 255, 255, .03) 50%, rgba(255, 255, 255, .08) 78%, rgba(103, 232, 249, .42));
	-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-nav .wp-block-navigation-item { background: none; }   /* core gives items background-color: inherit: a second tint per item */
.hq-nav .wp-block-navigation-item__content {
	display: block;
	padding: 8px 14px;
	border-radius: var(--r-pill);
	color: var(--c-text-muted);
	font-size: var(--fs-ui);
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: color var(--d-2) var(--ease);
}
/* plain text links inside one glass pill: no per-item fills or dividers (Milan); current page = bright text */
.hq-nav .current-menu-item > .wp-block-navigation-item__content,
.hq-nav [aria-current="page"] { color: var(--c-text-strong); }
@media (hover: hover) {
	.hq-nav .wp-block-navigation-item__content:hover { color: var(--c-text-strong); transition-duration: var(--d-1); }
}
.hq-header__cta { justify-self: end; margin: 0 !important; }
/* the nav CTA is the compact size of the one primary recipe */
.hq-header__cta { --btn-fs: var(--fs-ui); --btn-py: 10px; --btn-px: 18px; }

/* Mobile / tablet navigation: collapses below 1024px */
.hq-nav .wp-block-navigation__responsive-container-open,
.hq-nav .wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	line-height: 0;
	border-radius: var(--r-pill);
	color: var(--c-text-strong);
	background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)), rgba(18, 10, 38, .5);
	-webkit-backdrop-filter: blur(16px) saturate(170%);
	backdrop-filter: blur(16px) saturate(170%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.hq-nav .wp-block-navigation__responsive-container-open svg,
.hq-nav .wp-block-navigation__responsive-container-close svg { width: 20px; height: 20px; margin: 0; flex: none; }
@media (min-width: 1024px) { .hq-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none !important; } }
@media (max-width: 1023px) {
	.hq-header__bar { grid-template-columns: auto 1fr auto; min-height: 68px; }
	.hq-nav { order: 3; justify-self: end; }
	.hq-header__cta { justify-self: end; }
	.hq-nav .wp-block-navigation__container { background: none; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.hq-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.hq-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
@media (max-width: 420px) { .hq-header__cta { --btn-px: 14px; } .hq-logo img { width: 80px; } }
.hq-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--c-bg) !important;
	color: var(--c-text) !important;
	padding: 0 var(--gutter) var(--sp-6);
	overflow-y: auto;
	animation: hq-menu-in var(--d-2) var(--ease) both !important;
	transform: none !important;
}
@keyframes hq-menu-in { from { opacity: 0; } to { opacity: 1; } }
.hq-nav .is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "";
	position: fixed;
	inset: 0 0 auto 0;
	height: calc(var(--hq-toggle-top, 12px) + var(--hq-toggle-size, 44px) + 12px);
	background: var(--c-bg);
	z-index: 9;
	pointer-events: none;
}
.hq-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	position: fixed !important;
	top: var(--hq-toggle-top, 12px) !important;
	left: var(--hq-toggle-left, auto) !important;
	right: auto !important;
	width: var(--hq-toggle-size, 44px);
	height: var(--hq-toggle-size, 44px);
	z-index: 10;
}
.hq-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: calc(var(--hq-toggle-top, 12px) + var(--hq-toggle-size, 44px) + var(--sp-6)) !important; align-items: stretch !important; }
.hq-nav .is-menu-open .wp-block-navigation__container { width: 100%; margin: 0 !important; gap: 0 !important; align-items: stretch !important; border-radius: 0; }
/* v5 r2 (agent A): the desktop glass pill's specular rim (::after, border-radius pill) stayed on the open menu list;
   on a near-square list a pill radius draws a circle (Milan's screenshot 9). The open menu is a plain opaque sheet. */
.hq-nav .is-menu-open .wp-block-navigation__container::after { content: none; }
.hq-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--c-line); }
.hq-nav .is-menu-open .wp-block-navigation-item__content {
	display: flex !important;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: var(--sp-4) 0 !important;
	border-radius: 0;
	background: none !important;
	color: var(--c-text-strong);
	font-family: var(--ff-heading);
	font-size: var(--fs-h3);
	font-weight: var(--fw-heading-sm);
	letter-spacing: -.012em;
}
.hq-nav .is-menu-open .wp-block-navigation-item__content::after { content: "→"; font-family: var(--ff-body); font-size: 1rem; color: var(--c-text-faint); }

/* --------------------------------------------------------------------------
   Hero (shared) + page hero
   -------------------------------------------------------------------------- */
.hq-hero { padding-top: var(--hero-top); }
.hq-hero--page { text-align: center; padding-bottom: var(--section-tight); }
.hq-hero--page .hq-title { margin-inline: auto; }
.hq-hero--page .hq-hero__content { display: grid; justify-items: center; }
.hq-hero--page .hq-hero__content > * { margin-block: 0; }
.hq-hero--page .hq-lede { margin: var(--sp-5) auto 0; max-width: var(--measure-prose); color: var(--c-text); text-wrap: pretty; }
.hq-hero--page .hq-hero__actions { justify-content: center; margin-top: var(--sp-6) !important; }
.hq-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hq-404 .hq-hero__actions { justify-content: center; }

/* --------------------------------------------------------------------------
   Logo strip: the old site lists the logos twice, so the track loops seamlessly. v5: 120px edge fades, the
   title is an eyebrow with cyan rails (mockup), the loop pauses off-screen (site.js adds .is-offscreen).
   -------------------------------------------------------------------------- */
.hq-logos { --fade: 120px; text-align: center; overflow: hidden; width: 100%; max-width: var(--wide) !important; margin-inline: auto !important; -webkit-mask: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
@media (max-width: 600px) { .hq-logos { --fade: 48px; } }
.hq-logos__title { white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 18px; font-family: var(--ff-body); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted); margin: 0 auto var(--sp-5); }
.hq-logos__title strong { color: inherit; font-weight: 500; }
.hq-logos__title::before, .hq-logos__title::after { content: ""; flex: 0 1 76px; min-width: 16px; height: 1px; background: linear-gradient(90deg, transparent, var(--c-cyan)); box-shadow: 0 0 8px var(--cyan-35); }
.hq-logos__title::after { background: linear-gradient(270deg, transparent, var(--c-cyan)); }
.hq-logo-loop { display: flex; gap: clamp(40px, 6vw, 72px); width: max-content; align-items: center; animation: hq-marquee 45s linear infinite; }
.hq-logos.is-offscreen .hq-logo-loop { animation-play-state: paused; }
.hq-logo-loop__item { margin: 0; flex: none; }
.hq-logo-loop__item img { height: 28px; width: auto; max-width: 132px; object-fit: contain; border-radius: 0; filter: brightness(0) invert(1); opacity: .5; }
@keyframes hq-marquee { to { transform: translateX(calc(-50% - clamp(20px, 3vw, 36px))); } }
@media (prefers-reduced-motion: reduce) { .hq-logo-loop { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: var(--sp-5); } .hq-logo-loop__item:nth-child(n + 9) { display: none; } .hq-logos { -webkit-mask: none; mask: none; } }

/* --------------------------------------------------------------------------
   CTA panel: global CTA + team (synced pattern) and the closing bands (service, Miami).
   Quiet luxury v5: dark frosted glass lit by the two lights (violet bloom from the top-left, a faint cyan one
   from the bottom-right), a short bright hairline on the top edge, a thin rim with a cyan trace bottom-right.
   Text rule: at most 2 centred paragraphs at 64ch; a panel with 3+ paragraphs becomes a left-aligned
   statement column + a button column.
   -------------------------------------------------------------------------- */
:is(.hq-cta-team, .hq-band) { isolation: isolate; }
:is(.hq-cta-team, .hq-band)::before {
	/* two faint pools behind the panel, so the frost has something to soften */
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(1000px, 94%);
	height: 64%;
	translate: -50% -50%;
	background:
		radial-gradient(closest-side at 32% 46%, rgba(113, 61, 223, .24), transparent),
		radial-gradient(closest-side at 74% 60%, rgba(58, 209, 255, .08), transparent);
	z-index: -1;
	pointer-events: none;
}
:is(.hq-cta-team__panel, .hq-band__panel) {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	font-size: 1rem;
	text-align: center;
	border-radius: var(--r-3);
	background:
		linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent) 50% 0 / 40% 1px no-repeat,
		radial-gradient(58% 70% at 8% -10%, rgba(151, 71, 255, .3), transparent 70%),
		radial-gradient(50% 62% at 100% 110%, rgba(58, 209, 255, .12), transparent 70%),
		linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01) 45%),
		rgba(13, 7, 28, .62);
	-webkit-backdrop-filter: blur(28px) saturate(160%);
	backdrop-filter: blur(28px) saturate(160%);
	border: 0;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .16),
		0 1px 2px rgba(0, 0, 0, .3),
		0 40px 80px -40px rgba(0, 0, 0, .85);
}
:is(.hq-cta-team__panel, .hq-band__panel)::after {
	/* thin rim: bright along the top, fading down the sides, a cyan trace on the bottom-right */
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(160deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .04) 18%, rgba(255, 255, 255, .02) 70%, rgba(103, 232, 249, .32));
	-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;
}
:is(.hq-cta-team__panel, .hq-band__panel) > .hq-section-title { margin-inline: auto; max-width: 20ch; }
:is(.hq-cta-team__panel, .hq-band__panel) p { text-wrap: pretty; }
/* 3+ paragraphs: no long centred copy (audit R4). Statement column left, button column right. */
.hq-band__panel:has(> p:nth-of-type(3)) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: clamp(32px, 6vw, 96px);
	align-items: center;
	text-align: left;
}
.hq-band__panel:has(> p:nth-of-type(3)) > * { grid-column: 1; max-width: var(--measure-prose); margin-inline: 0; }
.hq-band__panel:has(> p:nth-of-type(3)) > .hq-section-title { margin-inline: 0; max-width: 22ch; }
.hq-band__panel:has(> p:nth-of-type(3)) > .wp-block-buttons { grid-column: 2; grid-row: 1 / span 20; align-self: center; justify-content: flex-end; margin: 0 !important; }
@media (max-width: 781px) {
	.hq-band__panel:has(> p:nth-of-type(3)) { grid-template-columns: 1fr; }
	.hq-band__panel:has(> p:nth-of-type(3)) > .wp-block-buttons { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: var(--sp-5) !important; }
}

/* Global CTA + team: the team cards sit fully inside the panel on a stage light (no clipping, audit R10) */
.hq-cta-team__panel { padding: clamp(56px, 6.5vw, 96px) var(--gutter) clamp(40px, 4.5vw, 64px); }
.hq-cta-team { padding-bottom: var(--section-tight); }
.hq-cta-team__panel::before {
	/* stage light under the team cards */
	content: "";
	position: absolute;
	inset: auto 12% -20%;
	height: 55%;
	background: radial-gradient(50% 50% at 50% 50%, rgba(151, 71, 255, .26), transparent 70%);
	z-index: -1;
	pointer-events: none;
}
.hq-cta-team__panel > * { max-width: 640px; margin-inline: auto; }
.hq-cta-team__text { color: var(--c-text); font-size: var(--fs-lead); line-height: 1.55; max-width: var(--measure-prose); margin-inline: auto; text-wrap: balance; }
.hq-cta-team__actions { justify-content: center; margin-top: var(--sp-6); }
.hq-team-cards { display: flex; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-8); padding-bottom: var(--sp-2); }
.hq-team-card {
	/* fanned like the old hqdm.io cards; straighten and lift on hover (180ms in, 250ms out) */
	position: relative;
	display: grid;
	justify-items: center;
	gap: 2px;
	width: clamp(150px, 20vw, 204px);
	padding: var(--sp-5) var(--sp-4);
	font-size: 1rem;
	border-radius: var(--r-3);
	border: 0;
	background: var(--spot), var(--glass-bg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	box-shadow: var(--glass-shadow);
	color: var(--c-text);
	text-decoration: none;
	transform: rotate(-2.5deg);
	transform-origin: 50% 100%;
	transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2) var(--ease), --so var(--d-2) var(--ease);
}
.hq-team-card + .hq-team-card { transform: rotate(2.5deg); }
@media (max-width: 600px) {
	.hq-team-cards { gap: var(--sp-3); }
	.hq-team-card { width: calc(50% - 6px); padding-inline: var(--sp-3); }
	.hq-team-card__name { font-size: 1rem; white-space: nowrap; }
}
.hq-team-card img {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: var(--sp-3);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 0 5px rgba(255, 255, 255, .03), 0 12px 28px -12px rgba(0, 0, 0, .9);
}
.hq-team-card__name { font-family: var(--ff-heading); font-size: 1.0625rem; font-weight: var(--fw-heading); color: var(--c-text-strong); letter-spacing: -.01em; }
.hq-team-card__title { color: var(--c-text-faint); font-size: var(--fs-ui); }
.hq-team-card__more { margin-top: var(--sp-3); font-size: var(--fs-ui); color: var(--c-accent); }
.hq-team-card__more::after { content: "→"; display: inline-block; margin-left: .3em; transition: transform var(--d-2) var(--ease); }
@media (hover: hover) {
	.hq-team-card:hover { --so: 1; transform: translateY(-4px) rotate(0deg); box-shadow: var(--glass-shadow-hover); transition-duration: var(--d-hover); }
	.hq-team-card:hover .hq-team-card__more::after { transform: translateX(3px); }
}
.hq-team-card:active { transform: translateY(-2px) rotate(0deg) scale(.98); transition-duration: 100ms; }

/* --------------------------------------------------------------------------
   Breadcrumbs (hqdm/breadcrumbs)
   -------------------------------------------------------------------------- */
.hq-breadcrumbs ol { display: flex; flex-wrap: nowrap; max-width: 100%; justify-content: center; gap: var(--sp-2); margin: 0 0 var(--sp-5); padding: 0; list-style: none; font-size: var(--fs-ui); color: var(--c-text-faint); }
.hq-breadcrumbs li { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.hq-breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; }
.hq-breadcrumbs li + li::before { content: "/"; color: var(--c-line-2); }
.hq-breadcrumbs a { color: var(--c-text-faint); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { .hq-breadcrumbs a:hover { color: var(--c-text-strong); } }
.hq-breadcrumbs [aria-current] { min-width: 0; color: var(--c-text-muted); max-width: min(46ch, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Map (hqdm/map): a quiet dot-grid placeholder until the iframe arrives (audit R14)
   -------------------------------------------------------------------------- */
.hq-map { position: relative; min-height: 380px; font-size: 1rem; border-radius: var(--r-3); overflow: hidden; background: radial-gradient(circle, rgba(196, 173, 255, .16) 1px, transparent 1.6px) 0 0 / 22px 22px, radial-gradient(60% 60% at 50% 45%, rgba(151, 71, 255, .14), transparent 75%), var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
/* phase 4: the poster's load button (site.js): glass pill with a cyan pin, centred on the dot grid */
.hq-map__load { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: var(--sp-3); min-height: 48px; max-width: calc(100% - 2 * var(--sp-5)); padding: 10px 22px 10px 16px; font: inherit; font-size: var(--fs-ui); font-weight: 500; color: var(--c-text-strong); text-align: left; cursor: pointer; border: 0; border-radius: var(--r-pill); background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow), inset 0 0 0 1px var(--cyan-35); transition: box-shadow var(--d-2) var(--ease), transform var(--d-1) var(--ease-out); }
.hq-map__load .hq-icon { flex: none; color: var(--c-cyan); }
@media (hover: hover) and (pointer: fine) { .hq-map__load:hover { box-shadow: var(--glass-shadow-hover), inset 0 0 0 1px var(--c-cyan), 0 0 24px -6px var(--cyan-60); transition-duration: var(--d-hover); } }
.hq-map__load:active { transform: scale(.97); }
.hq-map__load:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.hq-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(205deg) saturate(.55) brightness(.92); }
.hq-map iframe[src*="!5e1"] { filter: brightness(.8) saturate(.75); }   /* satellite embeds: inverting a photo gives a negative, only dim it */

/* --------------------------------------------------------------------------
   v5 step deck (motion.js `data-pin-deck`). Without JS, under 1024px or with reduced motion: plain stacked
   steps beside a static violet-to-cyan line. Pinned (>= 1024px): the steps share one grid cell, the rail fills
   with scroll, earlier cards shrink 2% and dim. The inside of each step is styled by the page's component CSS.
   -------------------------------------------------------------------------- */
.hq-deck__stage { position: relative; display: grid; gap: var(--sp-5); margin-bottom: 0; padding: 0 0 0 44px; list-style: none; }
.hq-deck__stage::before {
	/* static line (no JS / phones / reduced motion) */
	content: "";
	position: absolute;
	left: 11px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	border-radius: var(--r-pill);
	background: linear-gradient(180deg, var(--c-neon), var(--c-cyan));
	opacity: .55;
}
.is-pinned .hq-deck__stage { grid-template-areas: "deck"; gap: 0; }
.is-pinned .hq-deck__stage::before { content: none; }
.is-pinned .hq-deck__stage > :is([data-step], .hq-deck__step) {
	grid-area: deck;
	transform-origin: 50% 0;
	/* stacked cards must hide the card behind them: opaque surface under the glass gradient, no backdrop blur (phase 4) */
	--glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015) 60%), var(--c-surface);
	background-color: var(--c-surface);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.hq-deck__rail { position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); pointer-events: none; }
.hq-deck__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--c-neon), var(--c-cyan)); box-shadow: 0 0 12px var(--cyan-35); transform: scaleY(0); transform-origin: 50% 0; }
.hq-deck__dot { position: absolute; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c-bg); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); transition: background-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease); }
.hq-deck__dot.is-on { background: var(--c-cyan); box-shadow: 0 0 0 3px var(--cyan-18), 0 0 12px var(--cyan-60); }

/* --------------------------------------------------------------------------
   v5 scroll tab list (motion.js `data-tabs-scroll`, >= 1024px): a sticky list built from the section's H3s on the
   left, the items scroll on the right; the active item's bar fills violet to cyan.
   -------------------------------------------------------------------------- */
.hq-tabs--on { display: grid; grid-template-columns: minmax(200px, 4fr) minmax(0, 8fr); column-gap: clamp(40px, 5vw, 88px); align-items: start; }
.hq-tabs--on > * { grid-column: 2; }
:where(.hq-tabs__item) + .hq-tabs__item { margin-top: var(--sp-7); }
.hq-tabs--on > .hq-tabs__item + .hq-tabs__item { margin-top: var(--sp-8) !important; }
.hq-tabs__nav { grid-column: 1 !important; position: sticky; top: 112px; align-self: start; }
.hq-tabs__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hq-tabs__list li { margin: 0; }
.hq-tabs__link { position: relative; display: flex; align-items: center; min-height: 44px; padding: 10px 0 10px 22px; color: var(--c-text-faint); font-family: var(--ff-heading); font-size: 1.0625rem; font-weight: var(--fw-heading-sm); line-height: 1.3; letter-spacing: -.01em; text-decoration: none; transition: color var(--d-2) var(--ease); }
.hq-tabs__bar { position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; overflow: hidden; border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); }
.hq-tabs__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--c-neon), var(--c-cyan)); transform: scaleY(0); transform-origin: 50% 0; }
.hq-tabs__nav .is-active .hq-tabs__link { color: var(--c-text-strong); }
@media (hover: hover) { .hq-tabs__link:hover { color: var(--c-text-strong); transition-duration: var(--d-1); } }

/* --------------------------------------------------------------------------
   Footer v5: open on the page (no box). Lit hairline on top, brand + CTA left, link columns + social glass
   circles right, legal bar, and the oversized outlined HQDM wordmark, half hidden by a gradient fade into the page
   bottom (round 2, Milan: v4 treatment back, no tool tray, no horizon line across the wordmark).
   -------------------------------------------------------------------------- */
.hq-footer-wrap { position: relative; z-index: 1; overflow: hidden; isolation: isolate; padding: var(--section) var(--gutter) 0; }
.hq-footer-wrap::before {
	/* light falling from the top hairline */
	content: "";
	position: absolute;
	left: 50%;
	top: var(--section);
	width: min(1100px, 100%);
	height: 320px;
	translate: -50% 0;
	background: radial-gradient(50% 100% at 50% 0%, rgba(113, 61, 223, .2), transparent 70%);
	z-index: -1;
	pointer-events: none;
}
.hq-footer { position: relative; max-width: var(--wide); margin: 0 auto; padding-top: var(--sp-8); }
.hq-footer::before {
	/* lit hairline: bright core in the middle, fading out to both sides */
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: var(--hairline-lit);
	box-shadow: 0 0 18px 0 rgba(151, 71, 255, .45);
}
.hq-footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); align-items: start; }
.hq-footer__brand { display: grid; align-content: start; justify-items: start; gap: var(--sp-5); }
.hq-footer__logo img { width: 112px; }
.hq-footer__cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 80px); }
.hq-footer__label { font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-faint); margin-bottom: var(--sp-4); }
ul.hq-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-1); }
.hq-footer__col--nav ul.hq-footer__links { grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: var(--sp-7); justify-content: start; }
.hq-footer__links li { margin: 0 !important; }
.hq-footer__links a { display: inline-flex; align-items: center; min-height: 30px; color: var(--c-text-muted); text-decoration: none; font-size: var(--fs-ui); transition: color var(--d-2) var(--ease), translate var(--d-2) var(--ease-out); }
@media (hover: hover) { .hq-footer__links a:hover { color: var(--c-text-strong); translate: 2px 0; transition-duration: var(--d-hover); } }
/* social glass circles (44px targets; the network name is the accessible name) */
.hq-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hq-social li { margin: 0; }
.hq-social__link {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--c-text);
	background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)), rgba(18, 10, 38, .45);
	-webkit-backdrop-filter: blur(12px) saturate(160%);
	backdrop-filter: blur(12px) saturate(160%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .14);
	transition: color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), transform var(--d-1) var(--ease-out);
}
.hq-social__link svg { display: block; width: 20px; height: 20px; }
@media (hover: hover) {
	.hq-social__link:hover { color: var(--c-cyan); box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .55), inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 18px -4px var(--cyan-60); transition-duration: var(--d-hover); }
}
.hq-social__link:active { transform: scale(.95); transition-duration: 100ms; }
.hq-social__link:focus-visible { border-radius: 50%; }
.hq-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-4); margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid rgba(255, 255, 255, .07); font-size: var(--fs-ui); color: var(--c-text-faint); }
.hq-footer__bottom p { margin: 0; }
.hq-footer__legal { display: flex; gap: var(--sp-5); }
.hq-footer__legal a { color: var(--c-text-faint); display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (hover: hover) { .hq-footer__legal a:hover { color: var(--c-text-strong); } }
.hq-footer-wrap::after {
	/* oversized outlined wordmark across the full width (v4 recipe): a thin violet stroke that fades out top to
	   bottom, so only its upper part shows before the page ends */
	content: "HQDM";
	display: block;
	margin: clamp(24px, 4vw, 48px) auto 0;
	text-align: center;
	font-family: var(--ff-heading);
	font-weight: 700;
	font-size: clamp(110px, 27vw, 420px);
	line-height: .74;
	letter-spacing: -.045em;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px rgba(196, 173, 255, .2);
	-webkit-mask: linear-gradient(180deg, #000 8%, rgba(0, 0, 0, .35) 52%, transparent 88%);
	mask: linear-gradient(180deg, #000 8%, rgba(0, 0, 0, .35) 52%, transparent 88%);
	pointer-events: none;
	user-select: none;
}
@media (max-width: 1179px) {
	.hq-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 781px) {
	.hq-footer__links a { min-height: 44px; }   /* touch: 44px targets; the tighter rows are for the desktop */
	ul.hq-footer__links { gap: 0; }
}
@media (max-width: 520px) {
	.hq-footer__cols { grid-template-columns: 1fr; gap: var(--sp-6); }
	.hq-footer__col--nav ul.hq-footer__links { column-gap: var(--sp-5); }
}

/* Article reading progress */
.hq-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 70; background: var(--c-neon); transform-origin: 0 50%; transform: scaleX(0); }
/* page heroes (hubs, blog, reviews): content follows the intro sooner */
.hq-hero--page { padding-bottom: var(--sp-7); }
.hq-hero--page + .hq-section { padding-top: var(--sp-7); }
