/* ==========================================================================
   HQDM home (v5, agent A, 05.11.2026): hero (Earth in globe.css, starfield galaxy.js), elephant statements,
   pillars 2x2 (services mockup), written testimonials over one light field, tool stack band, FAQ column.
   The story section lives in space.css. Tokens only (base.css); static cards never react to the pointer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero: Earth (globe.css .hq-earth) under a calm starfield, text on a dark ellipse (7:1 measured in the prototype)
   -------------------------------------------------------------------------- */
/* the shared Earth hero composition (min-height, lights, text ellipse, galaxy) lives in globe.css (.hq-hero--earth: home + About) */
.hq-hero--home .hq-label { margin-bottom: var(--sp-5); }
.hq-hero--home .hq-display { margin: 0 auto; }
.hq-hero--home .hq-glowbar { margin-top: var(--sp-5); }
.hq-hero--home .hq-lede { margin: var(--sp-5) auto 0; color: var(--c-text); text-align: center; }
.hq-hero--home .hq-hero__actions { justify-content: center; margin-top: var(--sp-6); }
.hq-hero--home .hq-logos { margin-top: clamp(56px, 7vw, 96px); }
.hq-hero--home .hq-logos__title { color: var(--c-text-strong); white-space: nowrap; }   /* one line on phones: the rails shrink, not the label */
.hq-hero--home .hq-logo-loop__item img { opacity: .78; }   /* mockup: the logo row reads clearly over the planet */

/* --------------------------------------------------------------------------
   Elephant in the room: one centred narrative (no sticky headline left / text right).
   Title > the four complaints (2 x 2, crossed marks) > two voices (statements that brighten as they scroll) >
   the turn ("Something has to change", cyan word + glow bar) > the welcome copy at reading measure.
   -------------------------------------------------------------------------- */
.hq-pain { display: grid; justify-items: center; text-align: center; }
.hq-pain > * { margin-block: 0 !important; }
.hq-pain > .hq-pain__title { max-width: 21ch; margin-inline: auto; text-wrap: balance; }
.hq-pain__list {
	list-style: none;
	padding: 0 !important;
	margin-top: var(--sp-8) !important;
	width: min(100%, 1000px);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--sp-7);
	text-align: left;
}
.hq-pain__list li {
	position: relative;
	margin: 0 !important;
	padding: var(--sp-5) 0 var(--sp-5) 52px;
	font-family: var(--ff-heading);
	font-size: var(--fs-h4);
	font-weight: var(--fw-heading-sm);
	line-height: 1.35;
	letter-spacing: -.01em;
	color: var(--c-text-strong);
	background: var(--hairline) 0 0 / 100% 1px no-repeat;
}
.hq-pain__list li::before {
	/* a crossed mark in a quiet violet ring: the old way of working, struck off */
	content: "";
	position: absolute;
	left: 0;
	top: calc(var(--sp-5) + .675em - 16px);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(196, 173, 255, .32);
	background:
		linear-gradient(45deg, transparent calc(50% - .75px), #c4adff calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)) 50% 50% / 12px 12px no-repeat,
		linear-gradient(-45deg, transparent calc(50% - .75px), #c4adff calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)) 50% 50% / 12px 12px no-repeat,
		rgba(151, 71, 255, .08);
}
/* r3 (B1, Milan: "InDesign-grade editorial spread"): one dominant voice and two supporting ones on a 12-column grid.
   The lead quote is set as display type across 11 columns; a hairline that starts with a short cyan tick opens the
   second row; the two supporting quotes sit side by side in columns 1-6 and 7-12 (r3b: same left edge as the lead),
   so the spread reads as one block. Every opening quote mark hangs outside the text edge (--hang = the glyph's advance
   in Figtree), so all left edges align on the letters. Text and quote marks are the old copy, unchanged. */
.hq-pain__quotes {
	--hang: .3em;   /* advance of the opening quote mark in Figtree incl. tracking (measured .295 to .31em) */
	width: min(100%, 1000px);   /* the same edges as the complaint list above: one grid for the whole section */
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--sp-7);
	margin-top: var(--sp-10) !important;
	text-align: left;
}
.hq-pullquote {
	margin: 0;
	max-width: none;
	font-family: var(--ff-heading);
	font-weight: 400;
	color: var(--c-text-strong);
	text-indent: calc(-1 * var(--hang));
	text-wrap: pretty;
}
.hq-pullquote strong { font-weight: 500; color: var(--c-text-strong); }
.hq-pain__quotes > .hq-pullquote:nth-child(1) {
	grid-column: 1 / -1;
	grid-row: 1;
	font-size: clamp(2.125rem, 1.15rem + 3.3vw, 4.25rem);
	line-height: 1.06;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.hq-pain__quotes::before {
	/* the rule that opens the supporting row: a 40px cyan tick, then a hairline that fades out to the right */
	content: "";
	grid-column: 1 / -1;   /* r3b (Milan 09.11): rule and supporting quotes start on the lead quote's left edge */
	grid-row: 2;
	height: 1px;
	margin: var(--sp-9) 0 var(--sp-7);
	background:
		linear-gradient(90deg, var(--cyan-60), var(--cyan-60)) 0 0 / 40px 1px no-repeat,
		linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08) 60%, transparent);
}
.hq-pain__quotes > .hq-pullquote:nth-child(n + 2) {
	grid-row: 3;
	font-size: clamp(1.25rem, 1rem + .75vw, 1.75rem);
	line-height: 1.34;
	letter-spacing: -.02em;
	color: var(--c-text);
}
.hq-pain__quotes > .hq-pullquote:nth-child(2) { grid-column: 1 / span 6; }
.hq-pain__quotes > .hq-pullquote:nth-child(3) { grid-column: 7 / span 6; }
@media (max-width: 1023px) {
	.hq-pain__quotes > .hq-pullquote:nth-child(1) { grid-column: 1 / -1; }
	.hq-pain__quotes::before { grid-column: 1 / -1; margin-block: var(--sp-8) var(--sp-6); }
	.hq-pain__quotes > .hq-pullquote:nth-child(2) { grid-column: 1 / span 6; }
	.hq-pain__quotes > .hq-pullquote:nth-child(3) { grid-column: 7 / span 6; }
}
@media (max-width: 640px) {
	.hq-pain__quotes { grid-template-columns: minmax(0, 1fr); margin-top: var(--sp-9) !important; }   /* the marks hang into the page gutter */
	.hq-pain__quotes::before { margin-block: var(--sp-7) var(--sp-6); }
	.hq-pain__quotes > .hq-pullquote:nth-child(n) { grid-column: 1; }
	.hq-pain__quotes > .hq-pullquote:nth-child(3) { grid-row: 4; padding-top: var(--sp-6); }   /* padding: block margins are reset by the layout */
}
.hq-pain__turnwrap { margin-top: var(--sp-9) !important; display: grid; justify-items: center; }
.hq-pain__turnwrap > * { margin: 0 !important; }
.hq-pain__turn { font-size: var(--fs-h2) !important; line-height: 1.12 !important; letter-spacing: -.03em; max-width: 18ch; text-wrap: balance; }
.hq-pain__turnwrap .hq-glowbar { margin-top: var(--sp-6) !important; }
/* r3 (B2, Milan): a wider measure for the welcome copy, about 74 characters a line at 18px (was 33em) */
.hq-pain__body { margin-top: var(--sp-8) !important; width: min(100%, 40rem); max-width: none !important; text-align: left; color: var(--c-text-muted); }
.hq-pain__body > * { margin-block: 0 !important; }
.hq-pain__body > * + * { margin-top: var(--sp-5) !important; }
.hq-pain__body > p { max-width: none; font-size: 1.125rem; line-height: 1.7; }   /* r2 (Milan, approved): the welcome copy at 18px */
.hq-pain__body strong { color: var(--c-text-strong); font-weight: 500; }
@media (max-width: 781px) {
	.hq-pain__list { grid-template-columns: 1fr; margin-top: var(--sp-7) !important; }
	.hq-pain__list li { padding-left: 48px; }
	.hq-pain__turnwrap { margin-top: var(--sp-8) !important; }
	.hq-pain__body { margin-top: var(--sp-7) !important; }
}

/* --------------------------------------------------------------------------
   Pillars (services mockup): 2 x 2 glass cards lit from inside, cyan medallion + title + short glow bar, text,
   the old card photo inset at the bottom (untinted). Static: no hover (Milan). Right column = cyan rim trace.
   -------------------------------------------------------------------------- */
.hq-pillars { isolation: isolate; }
.hq-pillars::before {
	/* the two lights (violet left, cyan right) behind the grid, faded out before the section edges, so the frost has
	   light to catch and no light ends on a hard line (the shared .hq-lit stops at the section box) */
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(40% 46% at 18% 52%, rgba(151, 71, 255, .26), transparent 72%),
		radial-gradient(36% 42% at 84% 70%, rgba(58, 209, 255, .12), transparent 72%);
	-webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent);
	mask: linear-gradient(transparent, #000 18%, #000 82%, transparent);
	z-index: -1;
	pointer-events: none;
}
.hq-pillars .hq-head { row-gap: var(--sp-5); }
.hq-pillars .hq-section-title { max-width: 20ch; text-wrap: balance; }
.hq-pillars__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); max-width: 1120px !important; }
.hq-pillar.hq-card {
	--img-h: 208px;
	--inset: 8px;
	display: flex;
	flex-direction: column;
	padding: var(--sp-6) var(--sp-6) calc(var(--img-h) + var(--inset) + var(--sp-6));
	overflow: hidden;
	isolation: isolate;
}
.hq-pillar:nth-child(even) { --rim: var(--glass-rim-cyan); }
.hq-pillar > * { margin: 0 !important; }
.hq-pillar::before {
	/* the old card photo as it is, inset at the bottom, concentric with the card */
	content: "";
	position: absolute;
	inset: auto var(--inset) var(--inset);
	height: var(--img-h);
	border-radius: calc(var(--r-3) - var(--inset));
	background: var(--hq-pillar-img) center 40% / cover no-repeat;
	box-shadow: var(--photo-rim), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -48px 56px -28px rgba(18, 10, 38, .7);   /* phase 4: lightest photo treatment (rim + shadow, no tint) */
	z-index: -1;
}
.hq-pillar:nth-child(1) { --hq-pillar-img: url("../../img/pillar-1.webp"); }
.hq-pillar:nth-child(2) { --hq-pillar-img: url("../../img/pillar-2.webp"); }
.hq-pillar:nth-child(3) { --hq-pillar-img: url("../../img/pillar-3.webp"); }
.hq-pillar:nth-child(4) { --hq-pillar-img: url("../../img/pillar-4.webp"); }
.hq-pillar__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--sp-4); }
.hq-pillar__head > * { margin: 0 !important; }
.hq-pillar__head .hq-medal { grid-row: 1 / span 2; }
.hq-pillar__title { font-family: var(--ff-heading); font-size: var(--fs-h3); font-weight: var(--fw-heading-sm); line-height: 1.2; letter-spacing: -.015em; color: var(--c-text-strong); align-self: end; }
.hq-pillar__title strong { font-weight: inherit; }
.hq-pillar__head .hq-glowbar { align-self: start; margin-top: var(--sp-3) !important; }
.hq-pillar__text { margin-top: var(--sp-5) !important; color: var(--c-text-muted); max-width: var(--measure-prose); }
@media (max-width: 900px) {
	.hq-pillars__grid { grid-template-columns: 1fr; }
	.hq-pillar.hq-card { --img-h: 180px; --inset: 6px; padding: var(--sp-5) var(--sp-5) calc(var(--img-h) + var(--inset) + var(--sp-5)); }
}

/* --------------------------------------------------------------------------
   Written testimonials: the v4 bento (approved), cards translucent over ONE light field (violet left, cyan right,
   cosmoq) so each card picks up a different mix of the two lights. r-3, lit from inside.
   -------------------------------------------------------------------------- */
.hq-quotes { isolation: isolate; }
.hq-quotes::before {
	content: "";
	position: absolute;
	inset: 18% 0 2%;
	background:
		radial-gradient(34% 56% at 18% 46%, rgba(151, 71, 255, .3), transparent 70%),
		radial-gradient(30% 52% at 84% 62%, rgba(58, 209, 255, .16), transparent 70%);
	/* r2 polish (critic M1): the lights fade out inside the box, so no straight edge remains at its top or bottom */
	-webkit-mask: linear-gradient(transparent, #000 18%, #000 78%, transparent);
	mask: linear-gradient(transparent, #000 18%, #000 78%, transparent);
	z-index: -1;
	pointer-events: none;
}
.hq-quotes::after {
	/* the v4 wave mesh stays a hint behind the cards (Milan) */
	content: "";
	position: absolute;
	inset: 14% -10% auto;
	height: 70%;
	background: url("../../img/waves.webp") center / cover no-repeat;
	mix-blend-mode: screen;
	opacity: .12;
	-webkit-mask: radial-gradient(60% 60% at 50% 50%, #000, transparent);
	mask: radial-gradient(60% 60% at 50% 50%, #000, transparent);
	z-index: -1;
	pointer-events: none;
}
.hq-quotes__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-4); }
.hq-quote-card:nth-child(4n + 1), .hq-quote-card:nth-child(4n) { grid-column: span 3; }
.hq-quote-card:nth-child(4n + 2), .hq-quote-card:nth-child(4n + 3) { grid-column: span 2; }
.hq-quote-card {
	position: relative;
	display: flex;
	flex-direction: column;
	font-size: 1rem;
	padding: var(--sp-6);
	border-radius: var(--r-3);
	border: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .012) 60%), rgba(16, 8, 34, .3);
	-webkit-backdrop-filter: blur(28px) saturate(170%);
	backdrop-filter: blur(28px) saturate(170%);
	box-shadow: var(--glass-shadow);
	overflow: hidden;
}
.hq-quote-card:nth-child(even) { --rim: var(--glass-rim-cyan); }
.hq-quote-card > * { margin: 0 !important; }
.hq-quote-card__head { display: flex; align-items: center; gap: var(--sp-4); }
.hq-quote-card__avatar img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 0 5px rgba(151, 71, 255, .14); }
.hq-quote-card__who > * { margin: 0; }
.hq-quote-card__name { font-family: var(--ff-heading); color: var(--c-text-strong); font-size: var(--fs-h4); font-weight: var(--fw-heading-sm); letter-spacing: -.01em; line-height: 1.25; }
.hq-quote-card__role { color: var(--c-text-muted); font-size: var(--fs-ui); line-height: 1.4; margin-top: 2px !important; }
.hq-quote-card__text { color: var(--c-text); font-size: 1.0625rem; line-height: 1.65; margin-top: var(--sp-5) !important; }
.hq-quote-card__stars { margin-top: auto !important; padding-top: var(--sp-5); }
.hq-quote-card__stars img { display: block; height: 16px; width: auto; border-radius: 0; }
@media (max-width: 900px) {
	.hq-quotes__grid { grid-template-columns: 1fr; }
	.hq-quote-card:nth-child(n) { grid-column: auto; }
	.hq-quote-card__avatar img { width: 56px; height: 56px; }
}
@media (max-width: 781px) { .hq-quote-card { padding: var(--sp-5); } }

/* --------------------------------------------------------------------------
   Tool stack band (intellix "integrated with your stack", ours "We do everything for you"; the label waits for
   Milan's approval, so the band is logos only). Six monochrome tool marks on glass tiles, cyan data lines drawing
   into the HQDM core; one data pulse per line. Tiles are not links: no hover.
   -------------------------------------------------------------------------- */
.hq-stack-band { overflow: clip; }
.hq-stack { position: relative; }
.hq-stack__stage { position: relative; width: min(100%, 1200px); margin-inline: auto; aspect-ratio: 1200 / 440; }
.hq-stack__stage::before {
	/* the core's light: violet bloom with a cyan heart, like the hero planet */
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(22% 46% at 50% 50%, rgba(151, 71, 255, .26), transparent 72%), radial-gradient(9% 20% at 50% 50%, rgba(58, 209, 255, .14), transparent 72%);
	pointer-events: none;
}
.hq-stack__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hq-stack__lines path { fill: none; vector-effect: non-scaling-stroke; }
.hq-stack__line { stroke: rgba(103, 232, 249, .32); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease-out) calc(var(--i) * 60ms); }
.hq-stack.is-armed:not(.is-in) .hq-stack__line { stroke-dashoffset: 1; }
.hq-stack__pulse { stroke: var(--c-cyan); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .05 1.95; stroke-dashoffset: .05; opacity: 0; filter: drop-shadow(0 0 3px rgba(103, 232, 249, .8)); }
.hq-stack.is-in .hq-stack__pulse { opacity: 1; animation: hq-stack-pulse 3.6s linear calc(1s + var(--i) * .55s) infinite; }
@keyframes hq-stack-pulse { from { stroke-dashoffset: .05; } 70%, to { stroke-dashoffset: -1; } }
.hq-stack__core {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 128px;
	aspect-ratio: 1;
	translate: -50% -50%;
	display: grid;
	place-items: center;
	font-size: 1.5rem;   /* scales --r-3 to 30px for the large tile */
	border-radius: var(--r-3);
	background: var(--glass-bg-strong);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	box-shadow: var(--glass-shadow), inset 0 0 0 1px var(--cyan-35), 0 0 32px -8px var(--cyan-60), 0 0 80px -24px rgba(151, 71, 255, .6);
}
.hq-stack__core::before {
	/* an orbit ring around the core (static) */
	content: "";
	position: absolute;
	inset: -34px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
	pointer-events: none;
}
.hq-stack__core img { display: block; width: 84px; height: auto; }
.hq-stack__tools { list-style: none; margin: 0; padding: 0; }
.hq-stack__tool { position: absolute; left: calc(var(--x) / 1200 * 100%); top: calc(var(--y) / 440 * 100%); translate: -50% -50%; margin: 0; }
.hq-stack__tile {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	font-size: 1rem;
	border-radius: var(--r-3);
	color: rgba(255, 255, 255, .85);
	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, .18);
	animation: hq-stack-float 7s ease-in-out calc(var(--i) * -1.3s) infinite alternate;
}
.hq-stack__tile svg { display: block; width: 30px; height: 30px; }
@keyframes hq-stack-float { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
.hq-stack.is-offscreen :is(.hq-stack__tile, .hq-stack__pulse) { animation-play-state: paused; }
@media (max-width: 781px) {
	/* phones: the core on top, the six tools as a 3 x 2 grid under it, one cyan line between them */
	.hq-stack__stage { aspect-ratio: auto; display: grid; justify-items: center; row-gap: var(--sp-7); }
	.hq-stack__stage::before { inset: -10% 0 40%; background: radial-gradient(40% 50% at 50% 50%, rgba(151, 71, 255, .26), transparent 72%); }
	.hq-stack__lines { display: none; }
	.hq-stack__core { position: relative; left: auto; top: auto; translate: none; width: 112px; }
	.hq-stack__core::after { content: ""; position: absolute; left: 50%; top: calc(100% + 1px); width: 1px; height: var(--sp-7); background: linear-gradient(var(--c-cyan), transparent); }
	.hq-stack__tools { display: grid; grid-template-columns: repeat(3, 76px); gap: var(--sp-4) var(--sp-5); }
	.hq-stack__tool { position: static; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hq-stack__tile, .hq-stack.is-in .hq-stack__pulse { animation: none; }
	.hq-stack__pulse { display: none; }
}

/* --------------------------------------------------------------------------
   FAQ: centred head over one reading column (accordion styling = accordion.css, shared)
   -------------------------------------------------------------------------- */
.hq-faq-section--home .hq-section-title { max-width: 20ch; text-wrap: balance; }
.hq-faq-section--home .hq-faq { max-width: 820px; margin-inline: auto; }
