/* ==========================================================================
   BLITZ Campaign — locked brand components
   Phase 2. Every rule here belongs to a distinctive asset. Changing anything
   in this file changes the brand, so treat edits as brand decisions.
   ========================================================================== */

.blitz-icon { flex: 0 0 auto; }

/* ==========================================================================
   1. Four-word signature
   ========================================================================== */
.blitz-signature {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.25em;
	margin: 0;
	font-family: var(--ff-display);
	font-weight: 700;
	font-stretch: 112%;
	line-height: 1.1;
	letter-spacing: var(--wp--custom--tracking--display);
	text-transform: uppercase;
	color: var(--paper);
}
.blitz-signature--stack { flex-direction: column; gap: 0.1em 0; }

.blitz-signature--s { font-size: var(--wp--preset--font-size--body); }
.blitz-signature--m { font-size: var(--wp--preset--font-size--heading-m); }
.blitz-signature--l { font-size: var(--wp--preset--font-size--heading-l); }

.blitz-signature__word { white-space: nowrap; }

/* The full stop is the accent's smallest and most repeatable appearance. */
.blitz-signature__dot { color: var(--accent); }

.blitz-section--light .blitz-signature { color: var(--ink); }
.blitz-section--light .blitz-signature__dot { color: var(--accent-deep); }

/* ==========================================================================
   2. Growth Triangle
   ========================================================================== */
.blitz-triangle {
	margin: 0;
	color: var(--ink-line);
	max-width: 520px;
}
.blitz-triangle__stage { position: relative; }

.blitz-triangle__svg { width: 100%; height: auto; display: block; overflow: visible; }

.blitz-triangle__path {
	stroke: currentColor;
	stroke-dasharray: var(--_len, 1000);
	stroke-dashoffset: var(--_len, 1000);
	transition: stroke-dashoffset var(--t-reveal) var(--ease);
}
.blitz-triangle.is-drawn .blitz-triangle__path { stroke-dashoffset: 0; }

/* Without JS the path must simply be visible. */
.no-js .blitz-triangle__path { stroke-dasharray: none; stroke-dashoffset: 0; }

.blitz-triangle__vertex circle {
	fill: var(--accent);
	transition: r var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}

.blitz-triangle__label {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	transition: opacity var(--t-base) var(--ease);
}
/* Percentages track the vertex coordinates in the 320×288 viewBox. */
.blitz-triangle__label--growth   { left: 50%;  top: 11.8%;  transform: translate(-50%, -115%); text-align: center; }
.blitz-triangle__label--creative { left: 8.1%; top: 86.8%;  transform: translate(-42%, 20%);  text-align: center; }
.blitz-triangle__label--tech     { left: 91.9%;top: 86.8%;  transform: translate(-58%, 20%);  text-align: center; }

.blitz-triangle__name {
	font-family: var(--ff-display);
	font-weight: 700;
	font-stretch: 108%;
	font-size: var(--wp--preset--font-size--heading-s);
	letter-spacing: var(--wp--custom--tracking--tight);
	color: var(--paper);
	line-height: 1;
}
.blitz-triangle__job {
	font-size: var(--wp--preset--font-size--body-s);
	color: var(--paper-dim);
	line-height: 1.3;
	white-space: nowrap;
}

/* Focused state: one vertex emphasised, the other two receded. Used on pillar
   pages so a visitor can see where they are in the system. */
.blitz-triangle--focused .blitz-triangle__label { opacity: 0.42; }
.blitz-triangle--focused .blitz-triangle__vertex circle { opacity: 0.35; }

.blitz-triangle.is-highlight-growth   .blitz-triangle__label--growth,
.blitz-triangle.is-highlight-creative .blitz-triangle__label--creative,
.blitz-triangle.is-highlight-tech     .blitz-triangle__label--tech { opacity: 1; }

.blitz-triangle.is-highlight-growth   .blitz-triangle__vertex--growth circle,
.blitz-triangle.is-highlight-creative .blitz-triangle__vertex--creative circle,
.blitz-triangle.is-highlight-tech     .blitz-triangle__vertex--tech circle { opacity: 1; r: 7; }

/* Hover/focus emphasis on an unfocused triangle. */
.blitz-triangle:not(.blitz-triangle--focused) .blitz-triangle__stage:hover .blitz-triangle__label { opacity: 0.42; }
.blitz-triangle:not(.blitz-triangle--focused) .blitz-triangle__label:hover { opacity: 1; }

.blitz-triangle__academy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	margin-top: var(--wp--preset--spacing--xl);
	text-align: center;
}
.blitz-triangle__academy-rule {
	display: block;
	width: 1px;
	height: var(--wp--preset--spacing--m);
	background: var(--ink-line);
	margin-bottom: var(--wp--preset--spacing--xs);
}
.blitz-triangle__academy .blitz-triangle__name { color: var(--accent); }

.blitz-triangle__caption {
	margin: var(--wp--preset--spacing--l) 0 0;
	font-size: var(--wp--preset--font-size--body-s);
	color: var(--paper-dim);
	text-align: center;
}

.blitz-section--light .blitz-triangle { color: rgba(5, 7, 8, 0.2); }
.blitz-section--light .blitz-triangle__name { color: var(--ink); }
.blitz-section--light .blitz-triangle__job,
.blitz-section--light .blitz-triangle__caption { color: rgba(5, 7, 8, 0.62); }
.blitz-section--light .blitz-triangle__vertex circle { fill: var(--ink); }
.blitz-section--light .blitz-triangle__academy .blitz-triangle__name { color: var(--accent-deep); }

/*
 * The label treatment depends on how wide the TRIANGLE is, not how wide the
 * window is. Those two used to be the same thing, back when the triangle was
 * always five of twelve columns. In the consolidated philosophy section it is
 * four columns of a narrower grid, so at 1024px the window said "desktop" while
 * the triangle was 300px wide — and "Make the experience work" on one nowrap
 * line pushed the bottom-right label past the page edge.
 *
 * A container query asks the right question. Below 380px of triangle, the job
 * lines wrap and the bottom labels pull inward.
 */
.blitz-triangle { container-type: inline-size; }

@container (max-width: 380px) {
	.blitz-triangle__job { white-space: normal; max-width: 11ch; }
	.blitz-triangle__label--creative { transform: translate(-30%, 20%); }
	.blitz-triangle__label--tech     { transform: translate(-70%, 20%); }

	/* The bottom two labels hang below the stage box, and once the job text
	   wraps to three lines they hang a long way below it. Reserve the room in
	   the flow, or the caption lands on top of them — which it did at 390px. */
	.blitz-triangle__stage { margin-bottom: 4.25rem; }
	.blitz-triangle__caption { margin-top: var(--wp--preset--spacing--s); }
}

/* Fallback for engines without container queries: the old viewport rule, which
   is correct in the one place it was ever wrong-but-harmless. */
@supports not (container-type: inline-size) {
	@media (max-width: 767px) {
		.blitz-triangle__job { white-space: normal; max-width: 11ch; }
		.blitz-triangle__label--creative { transform: translate(-30%, 20%); }
		.blitz-triangle__label--tech     { transform: translate(-70%, 20%); }
	}
}

/* ==========================================================================
   3. Diagnostic block — the screenshot asset
   ========================================================================== */
.blitz-diagnostic {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--wp--preset--spacing--l);
	/* 20px phone → 28px tablet → 40px desktop, per the v0.6.2 spec. */
	padding: clamp(1.25rem, 3.5vw, 2.5rem);
	border: 1px solid var(--ink-line);
	border-radius: var(--radius);
	background: var(--ink-raised);
	max-width: 720px;
}

/* Opt-in fixed frame, for the standalone screenshot asset. Off inside a page:
   a forced ratio there just manufactures dead space. Relaxed on small screens,
   where holding a ratio would shrink the type below legible. */
.blitz-diagnostic--framed { aspect-ratio: 5 / 4; justify-content: space-between; }
@media (max-width: 700px) { .blitz-diagnostic--framed { aspect-ratio: auto; justify-content: flex-start; } }

/* White, not paper: on a paper-coloured section a paper-coloured card is
   invisible, which is exactly what happened the first time this shipped. */
.blitz-diagnostic--light {
	background: var(--card);
	border-color: rgba(5, 7, 8, 0.12);
	color: var(--ink);
	box-shadow: 0 1px 2px rgba(5, 7, 8, 0.04), 0 24px 60px -40px rgba(5, 7, 8, 0.4);
}

.blitz-diagnostic__inner { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--s); }

/* Problem, then plain answer, then a quiet capability tag. Reading order is
   the point: the visitor should recognise their own situation before meeting
   any of our vocabulary. */
.blitz-diagnostic__row {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "symptom tag" "answer answer";
	align-items: baseline;
	gap: 0.35rem 1rem;
	padding-bottom: var(--wp--preset--spacing--m);
	border-bottom: 1px solid var(--ink-line);
	transition: opacity var(--t-fast) var(--ease);
}
.blitz-diagnostic__row:last-child { padding-bottom: 0; }
.blitz-diagnostic--light .blitz-diagnostic__row { border-bottom-color: rgba(5, 7, 8, 0.1); }
.blitz-diagnostic__row:last-child { border-bottom: 0; padding-bottom: 0; }

.blitz-diagnostic__symptom {
	grid-area: symptom;
	margin: 0;
	font-family: var(--ff-display);
	font-weight: 700;
	font-stretch: 104%;
	font-size: var(--wp--preset--font-size--heading-m);
	line-height: 1.15;
	letter-spacing: var(--wp--custom--tracking--tight);
	color: var(--paper);
}
.blitz-diagnostic--light .blitz-diagnostic__symptom { color: var(--ink); }

.blitz-diagnostic__answer {
	grid-area: answer;
	margin: 0;
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.5;
	color: var(--paper-dim);
	max-width: 46ch;
}
.blitz-diagnostic--light .blitz-diagnostic__answer { color: rgba(5, 7, 8, 0.62); }

.blitz-diagnostic__pillar {
	grid-area: tag;
	align-self: center;
	padding: 0.2rem 0.6rem;
	border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent);
	white-space: nowrap;
}
.blitz-diagnostic--light .blitz-diagnostic__pillar { color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent-deep) 35%, transparent); }

/* Hovering a row recedes the others — the block behaves like the diagnosis it
   describes: one answer at a time. */
.blitz-diagnostic__inner:hover .blitz-diagnostic__row { opacity: 0.45; }
.blitz-diagnostic__inner:hover .blitz-diagnostic__row:hover { opacity: 1; }

.blitz-diagnostic__close {
	margin: 0;
	font-size: var(--wp--preset--font-size--body-s);
	color: var(--paper-dim);
	max-width: 46ch;
}
.blitz-diagnostic--light .blitz-diagnostic__close { color: rgba(5,7,8,0.62); }

/* Brand mark travels with the screenshot. */
.blitz-diagnostic__mark {
	position: absolute;
	right: clamp(1.5rem, 5vw, 3rem);
	bottom: clamp(1.5rem, 5vw, 3rem);
	opacity: 0.9;
	pointer-events: none;
}
.blitz-diagnostic__mark img { height: 28px; width: auto; }
@media (max-width: 600px) { .blitz-diagnostic__mark { position: static; margin-top: var(--wp--preset--spacing--m); } }

@media (max-width: 520px) {
	.blitz-diagnostic__row { grid-template-columns: 1fr; gap: 0.25rem; }
	}

/* ==========================================================================
   4. Diagnose band — "We diagnose before we quote."
   ========================================================================== */
/*
 * The band was originally a full-bleed accent fill. With a neon green that put
 * roughly a third of the page's total accent area into one strip, which reads
 * as loud rather than premium and breaks the "one accent, used sparingly" rule
 * the brand architecture sets out.
 *
 * It keeps its prominence through scale and a pair of accent keylines instead.
 * The only filled accent in the band is the button — which is also the only
 * thing in it you can act on.
 */
.blitz-diagnose-band {
	background: var(--ink-soft);
	color: var(--paper);
	padding-block: var(--wp--preset--spacing--2xl);
	border-block: 1px solid var(--accent);
}
.blitz-diagnose-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--m);
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.blitz-diagnose-band__line {
	margin: 0;
	font-family: var(--ff-display);
	font-weight: 700;
	font-stretch: 112%;
	font-size: var(--wp--preset--font-size--display-m);
	line-height: 1;
	letter-spacing: var(--wp--custom--tracking--display);
	color: var(--paper);
	max-width: 18ch;
}
.blitz-diagnose-band .blitz-btn--ghost {
	--_bg: var(--accent);
	--_fg: var(--ink);
	border-color: var(--accent);
}
.blitz-diagnose-band .blitz-btn--ghost:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); }

/* ==========================================================================
   5. Progressive-enhancement fallbacks
   ========================================================================== */
.no-js .blitz-burger { display: none; }
.no-js .blitz-drawer {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	padding-top: var(--wp--preset--spacing--l);
	border-top: 1px solid var(--ink-line);
}
@media (min-width: 1024px) { .no-js .blitz-drawer { display: none; } }

/* --------------------------------------------------------------------------
   Diagnostic rows on a phone

   On desktop the capability tag sits to the right of the symptom, where it
   reads as a margin note. At 390px that column steals about a third of the
   headline's width and every symptom wraps early. Below 600px the tag moves
   under the answer, which is also the correct reading order: recognise the
   problem, read the plain answer, then meet our vocabulary.
   -------------------------------------------------------------------------- */
@media (max-width: 599px) {
	.blitz-diagnostic__row {
		grid-template-columns: 1fr;
		grid-template-areas: "symptom" "answer" "tag";
		gap: 0.4rem;
	}
	.blitz-diagnostic__pillar { justify-self: start; margin-top: 0.35rem; }
	.blitz-diagnostic__row { padding-bottom: var(--wp--preset--spacing--s); }
}
