/*
 * Service pages: the fact sheet (shared component 3, spec KB-554).
 *
 * Label and value rows in a glass panel under a mono head bar, the same glass
 * as the hero instrument. First use the /about/ hero; next the case study
 * heroes (client, industry, window, source).
 *
 * Core blocks only: a group, a head of two paragraphs, then one group per row
 * holding a label paragraph and a value paragraph. Every word is in the HTML
 * at load. Without JavaScript a row tints on hover. svc-facts.js adds .is-js
 * and a glide bar that slides to the row under the cursor, so the highlight
 * travels instead of blinking from row to row. Reduced motion: the bar jumps.
 *
 * Below 768px the panel goes: plain ruled rows, value set right, as on the
 * /about/ mobile board.
 */

.vy-svc-page .vy-svc-facts {
	position: relative;
	overflow: hidden;
	border: 1px solid color-mix(in oklab, var(--um-500) 35%, transparent);
	border-radius: 6px;
	background:
		radial-gradient(120% 80% at 100% 0, color-mix(in oklab, var(--um-500) 12%, transparent), transparent 60%),
		color-mix(in oklab, var(--bg-panel) 90%, transparent);
	backdrop-filter: blur(14px);
	box-shadow:
		0 40px 100px -40px color-mix(in oklab, var(--bg-canvas) 80%, transparent),
		0 0 60px color-mix(in oklab, var(--um-500) 10%, transparent);
}

.vy-svc-page .vy-svc-facts__head {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	background: var(--bg-raised);
	font-family: var(--font-mono);
	font-size: 11px;
}
.vy-svc-page .vy-svc-facts__title { color: var(--fg-3); }
.vy-svc-page .vy-svc-facts__tag { color: var(--fg-4); }

.vy-svc-page .vy-svc-facts__row {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 0 24px;
	align-items: baseline;
	padding: 17px 20px;
	border-top: 1px solid var(--border-hair);
	transition: background-color 220ms var(--svc-ease);
}

.vy-svc-page .vy-svc-facts__label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fg-4);
	transition: color 220ms var(--svc-ease);
}
.vy-svc-page .vy-svc-facts__value {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--fg-1);
}

/* No JavaScript: the row itself tints. */
.vy-svc-page .vy-svc-facts:not(.is-js) .vy-svc-facts__row:hover {
	background: color-mix(in oklab, var(--um-700) 14%, transparent);
}
.vy-svc-page .vy-svc-facts__row:hover .vy-svc-facts__label,
.vy-svc-page .vy-svc-facts__row.is-lit .vy-svc-facts__label { color: var(--um-500); }

/* The glide bar, drawn by svc-facts.js: a tint with a 2px practice rule on its
   left edge. It sits under the rows and moves with transform, so a row change
   never reflows the panel. */
.vy-svc-page .vy-svc-facts__glide {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 0;
	height: var(--glide-h, 0px);
	border-left: 2px solid var(--um-500);
	background: color-mix(in oklab, var(--um-700) 14%, transparent);
	opacity: 0;
	transform: translateY(var(--glide-y, 0px));
	transition:
		transform 320ms var(--svc-ease),
		height 320ms var(--svc-ease),
		opacity 200ms var(--svc-ease);
	pointer-events: none;
}
.vy-svc-page .vy-svc-facts.is-gliding .vy-svc-facts__glide { opacity: 1; }

@media (max-width: 767px) {
	.vy-svc-page .vy-svc-facts {
		overflow: visible;
		border: 0;
		border-radius: 0;
		background: none;
		backdrop-filter: none;
		box-shadow: none;
	}
	.vy-svc-page .vy-svc-facts__head,
	.vy-svc-page .vy-svc-facts__glide { display: none; }
	.vy-svc-page .vy-svc-facts__row {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 0 16px;
		padding: 12px 0;
	}
	.vy-svc-page .vy-svc-facts__row:last-child { border-bottom: 1px solid var(--border-hair); }
	.vy-svc-page .vy-svc-facts__label { font-size: 10px; }
	.vy-svc-page .vy-svc-facts__value { font-size: 14px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
	.vy-svc-page .vy-svc-facts__row,
	.vy-svc-page .vy-svc-facts__label,
	.vy-svc-page .vy-svc-facts__glide { transition: none; }
}
