/*
 * The case file: the case study template (VOY-1545).
 *
 * Boards: docs/design/work-cases/boards/Case-A.dc.html (1440) and
 * Case-Mobile.dc.html (390). A case is a .vy-svc-page.vy-case group built from
 * the case-* patterns. The shared components it uses keep their own files:
 * the case file panel is svc-facts, the rail is svc-contents' rail mode, the
 * timeline is svc-ruler, the before and after is svc-compare, the close is
 * svc-close's split variant. This file holds what only a case has:
 *
 *   the hero layout and the status bar inside the case file panel,
 *   the body (a sticky rail beside the sections),
 *   section heads and notes,
 *   three ledgers on core/table: old against new (hover strikes the old
 *     value), results (measure, before, after, source), and left off
 *     (struck claim, reason),
 *   the numbered steps (svc-case.js opens one at a time),
 *   the problem's optional "what they asked for" list, and the quote.
 *
 * Tokens only. Radii stay inside the design system's 6px (pills are 999px),
 * where the boards draw 8 to 18px.
 */

/* ---- Hero ---------------------------------------------------------------------- */

.vy-svc-page .vy-case-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 64px;
	align-items: start;
}
.vy-svc-page .vy-case-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 26px;
	min-width: 0;
}
.vy-svc-page .vy-case-crumb {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--fg-4);
}
/* The crumb text is fg-4 and its link fg-3, 1.8:1 apart, so the link carries
   an underline as well (VOY-232, WCAG 1.4.1). */
.vy-svc-page .vy-case-crumb a {
	color: var(--fg-3);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
.vy-svc-page .vy-case-crumb a:hover { color: var(--fg-1); }
.vy-svc-page .vy-case-hero .vy-svc-eyebrow { margin-bottom: 0; }
.vy-svc-page .vy-case-h1 {
	max-width: none;
	margin-bottom: 0;
	font-size: clamp(36px, 3.75vw, 54px);
	line-height: 1.04;
	letter-spacing: -0.035em;
}
.vy-svc-page .vy-case-hero .vy-svc-lede {
	max-width: 700px;
	margin-bottom: 0;
	font-size: 18px;
}

/* The case file panel is svc-facts; a case's rows are denser than /about/'s. */
.vy-svc-page .vy-case-facts .vy-svc-facts__row {
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 0 16px;
	padding: 11px 20px;
}
.vy-svc-page .vy-case-facts .vy-svc-facts__label { font-size: 10px; }
.vy-svc-page .vy-case-facts .vy-svc-facts__value {
	font-family: var(--font-body);
	font-size: 14.5px;
	font-weight: 400;
	color: var(--fg-2);
}

/* ---- Status: Measured, or Results in progress -------------------------------------
 * .is-measured fills the bar to the end; .is-progress fills it to the middle
 * label (the launch) and dashes the rest. The bar and its ticks hang off the
 * label row, so there is no empty block to carry them. */

.vy-svc-page .vy-case-status {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px 20px 20px;
	border-top: 1px solid var(--border-hair);
}
.vy-svc-page .vy-case-status__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.vy-svc-page .vy-case-status__state {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-2);
	white-space: nowrap;
}
.vy-svc-page .vy-case-status__state::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--warn);
	box-shadow: 0 0 0 3px var(--warn-soft);
}
.vy-svc-page .vy-case-status.is-measured .vy-case-status__state::before {
	background: var(--signal-ok);
	box-shadow: 0 0 0 3px var(--signal-ok-soft);
}
.vy-svc-page .vy-case-status__kind {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--fg-4);
}

.vy-svc-page .vy-case-status__track {
	--fill: 50%;
	--fill-to: var(--warn);
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-top: 20px;
}
.vy-svc-page .vy-case-status.is-measured .vy-case-status__track {
	--fill: 100%;
	--fill-to: var(--signal-ok);
}
.vy-svc-page .vy-case-status__track::before,
.vy-svc-page .vy-case-status__track::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 6px;
	border-radius: 999px;
}
.vy-svc-page .vy-case-status__track::before { right: 0; background: var(--border-1); }
.vy-svc-page .vy-case-status__track::after {
	width: var(--fill);
	background: linear-gradient(90deg, var(--accent), var(--fill-to));
}
.vy-svc-page .vy-case-status__track p {
	position: relative;
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--fg-3);
}
.vy-svc-page .vy-case-status__track p:nth-child(2) { text-align: center; }
.vy-svc-page .vy-case-status__track p:nth-child(3) { text-align: right; }
.vy-svc-page .vy-case-status:not(.is-measured) .vy-case-status__track p:nth-child(3) { color: var(--warn); }
/* A tick on the bar above each label: left edge, centre, right edge. */
.vy-svc-page .vy-case-status__track p::before {
	content: "";
	position: absolute;
	top: -24px;
	left: 0;
	z-index: 1;
	width: 2px;
	height: 14px;
	background: var(--fg-3);
}
.vy-svc-page .vy-case-status__track p:nth-child(2)::before { left: calc(50% - 1px); }
.vy-svc-page .vy-case-status__track p:nth-child(3)::before { left: auto; right: 0; background: var(--fill-to); }
.vy-svc-page .vy-case-status__note {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--fg-3);
}

/* ---- Body: the rail beside the sections ----------------------------------------- */

.vy-svc-page .vy-case-body {
	display: grid;
	grid-template-columns: 212px minmax(0, 1fr);
	gap: 64px;
	align-items: start; /* a stretched grid item cannot stick */
}
.vy-svc-page .vy-case-main {
	display: flex;
	flex-direction: column;
	gap: 112px;
	min-width: 0;
}
.vy-svc-page .vy-case-sec {
	display: flex;
	flex-direction: column;
	gap: 28px;
	scroll-margin-top: calc(var(--vy-hdr-h, 72px) + 24px);
}
.vy-svc-page.vy-case > .vy-svc-sec:last-child { margin-bottom: 0; }

/* ---- Section heads and notes ------------------------------------------------------- */

.vy-svc-page .vy-case-head {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 760px;
}
.vy-svc-page .vy-case-head .vy-svc-eyebrow { margin-bottom: 0; }
.vy-svc-page .vy-case-sec .vy-svc-h2 {
	max-width: 24ch;
	margin-bottom: 0;
	font-size: 44px;
	line-height: 1.06;
	letter-spacing: -0.03em;
}
.vy-svc-page .vy-case-head .vy-case-lede {
	max-width: 700px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--fg-3);
}
.vy-svc-page .vy-case-note {
	max-width: 760px;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.6;
	color: var(--fg-4);
}

/* ---- Ledgers (core/table) -------------------------------------------------------------- */

.vy-svc-page .vy-case-ledger table {
	width: 100%;
	border-collapse: collapse;
	border-bottom: 1px solid var(--border-hair);
}
.vy-svc-page .vy-case-ledger :is(th, td) {
	padding: 18px 20px;
	border: 0;
	text-align: left;
	vertical-align: middle;
}
.vy-svc-page .vy-case-ledger th {
	padding-top: 0;
	padding-bottom: 12px;
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: var(--fg-4);
}
.vy-svc-page .vy-case-ledger tbody tr {
	border-top: 1px solid var(--border-hair);
	transition: background-color 260ms var(--svc-ease);
}
.vy-svc-page .vy-case-ledger tbody tr:hover { background: color-mix(in oklab, var(--bg-panel) 70%, transparent); }

/* Old against new: what mattered, the old value, the new one. Hovering a row
   strikes the old value. */
.vy-svc-page .vy-case-ledger--compare th:first-child { width: 200px; color: transparent; }
.vy-svc-page .vy-case-ledger--compare th:last-child { color: var(--um-500); }
.vy-svc-page .vy-case-ledger--compare td:first-child { font-size: 14px; color: var(--fg-4); }
.vy-svc-page .vy-case-ledger--compare td:nth-child(2) {
	font-size: 15.5px;
	line-height: 1.45;
	color: var(--fg-3);
	text-decoration: line-through;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	transition: color 260ms var(--svc-ease), text-decoration-color 260ms var(--svc-ease);
}
.vy-svc-page .vy-case-ledger--compare tr:hover td:nth-child(2) {
	color: var(--fg-4);
	text-decoration-color: var(--fg-4);
}
.vy-svc-page .vy-case-ledger--compare td:last-child {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--fg-1);
}

/* Results: measure, before, after, source. A table carrying .is-pending is a
   case whose results are not in: every after cell is the publish condition,
   in a dashed chip, never a number. */
.vy-svc-page .vy-case-ledger--results tr {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 170px 240px 120px;
	gap: 20px;
	align-items: center;
	padding: 18px 20px;
}
.vy-svc-page .vy-case-ledger--results thead tr { padding-top: 0; padding-bottom: 12px; }
.vy-svc-page .vy-case-ledger--results :is(th, td) { padding: 0; }
.vy-svc-page .vy-case-ledger--results th:nth-child(3) { color: var(--um-500); }
.vy-svc-page .vy-case-ledger--results td:first-child { font-size: 16px; color: var(--fg-2); }
.vy-svc-page .vy-case-ledger--results td:nth-child(2),
.vy-svc-page .vy-case-ledger--results td:nth-child(3) {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.vy-svc-page .vy-case-ledger--results td:nth-child(2) { color: var(--fg-3); }
.vy-svc-page .vy-case-ledger--results td:nth-child(3) { color: var(--fg-1); }
.vy-svc-page .vy-case-ledger--results td:last-child {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--fg-4);
}
.vy-svc-page .vy-case-ledger--results.is-pending th:nth-child(3) { color: var(--warn); }
.vy-svc-page .vy-case-ledger--results.is-pending td:nth-child(2) { font-size: 24px; color: var(--fg-1); }
.vy-svc-page .vy-case-ledger--results.is-pending td:nth-child(3) {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border: 1px dashed var(--border-strong);
	border-radius: 6px;
	background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--warn) 6%, transparent) 0 8px, transparent 8px 16px);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 400;
	color: var(--fg-3);
	transition: border-color 260ms var(--svc-ease), color 260ms var(--svc-ease);
}
.vy-svc-page .vy-case-ledger--results.is-pending td:nth-child(3)::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--warn);
}
.vy-svc-page .vy-case-ledger--results.is-pending tr:hover td:nth-child(3) {
	border-color: var(--warn);
	color: var(--fg-1);
}

/* Left off: the claim, struck, and the reason. */
.vy-svc-page .vy-case-ledger--struck th:first-child { width: 50%; }
.vy-svc-page .vy-case-ledger--struck td { vertical-align: top; }
.vy-svc-page .vy-case-ledger--struck td:first-child {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--fg-2);
	text-decoration: line-through;
	text-decoration-color: var(--fg-5);
	text-decoration-thickness: 2px;
	transition: color 260ms var(--svc-ease), text-decoration-color 260ms var(--svc-ease);
}
.vy-svc-page .vy-case-ledger--struck tr:hover td:first-child {
	color: var(--fg-1);
	text-decoration-color: var(--um-500);
}
.vy-svc-page .vy-case-ledger--struck td:last-child {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--fg-3);
}

/* ---- Steps ------------------------------------------------------------------------------
 * Numbered by a counter, so an Editor reorders or duplicates a step without
 * renumbering. Without JavaScript every step is open. svc-case.js opens the
 * first, and a pointer or focus on a step opens it instead; its title becomes
 * the button that holds aria-expanded. */

.vy-svc-page .vy-case-steps {
	counter-reset: vy-step;
	border-bottom: 1px solid var(--border-hair);
}
.vy-svc-page .vy-case-step {
	counter-increment: vy-step;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 8px 18px;
	padding: 20px;
	border-top: 1px solid var(--border-hair);
	transition: background-color 260ms var(--svc-ease);
}
.vy-svc-page .vy-case-step::before {
	content: counter(vy-step, decimal-leading-zero);
	grid-row: 1 / span 2;
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--um-500);
	transition: color 260ms var(--svc-ease);
}
.vy-svc-page .vy-case-step > * { grid-column: 2; }
.vy-svc-page .vy-case-step__title {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--fg-1);
}
.vy-svc-page .vy-case-step__title button {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}
.vy-svc-page .vy-case-step__title button:focus-visible {
	outline: 2px solid var(--um-500);
	outline-offset: 4px;
	border-radius: 2px;
}
.vy-svc-page .vy-case-step__body {
	max-width: 680px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--fg-3);
}

.vy-svc-page .vy-case-steps.is-js .vy-case-step::before { color: var(--border-strong); }
.vy-svc-page .vy-case-steps.is-js .vy-case-step.is-open {
	background: color-mix(in oklab, var(--bg-panel) 70%, transparent);
}
.vy-svc-page .vy-case-steps.is-js .vy-case-step.is-open::before { color: var(--um-500); }
.vy-svc-page .vy-case-steps.is-js .vy-case-step__body {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition:
		max-height 320ms var(--svc-ease),
		opacity 260ms var(--svc-ease),
		visibility 0s linear 320ms;
}
.vy-svc-page .vy-case-steps.is-js .vy-case-step.is-open .vy-case-step__body {
	max-height: 14em;
	opacity: 1;
	visibility: visible;
	transition:
		max-height 320ms var(--svc-ease),
		opacity 260ms var(--svc-ease) 60ms,
		visibility 0s;
}

/* ---- The problem: prose, and the optional "what they asked for" ---------------------- */

.vy-svc-page .vy-case-problem__body:has(> .vy-case-asks) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
}
.vy-svc-page .vy-case-prose {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 700px;
}
.vy-svc-page .vy-case-prose p {
	font-size: 17px;
	line-height: 1.7;
	color: var(--fg-3);
}
.vy-svc-page .vy-case-asks {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.vy-svc-page .vy-case-asks__label {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--fg-4);
}
.vy-svc-page .vy-case-asks__list {
	counter-reset: vy-ask;
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--border-hair);
}
.vy-svc-page .vy-case-asks__list li {
	counter-increment: vy-ask;
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid var(--border-hair);
	font-size: 16px;
	line-height: 1.5;
	color: var(--fg-2);
}
.vy-svc-page .vy-case-asks__list li::before {
	content: counter(vy-ask, decimal-leading-zero);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 2;
	color: var(--um-500);
}

/* ---- Design: the optional picker card beside the before and after ------------------------
 * For a client who chose on the design picker. The card sits beside the
 * compare frame when the body holds one; without it the compare runs full. */

.vy-svc-page .vy-case-design__body:has(> .vy-case-picker) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 24px;
	align-items: start;
}
.vy-svc-page .vy-case-picker {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	border: 1px solid var(--border-strong);
	border-radius: 6px;
	background: color-mix(in oklab, var(--bg-panel) 85%, transparent);
}
.vy-svc-page .vy-case-picker__label,
.vy-svc-page .vy-case-picker__meta {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--fg-4);
}
.vy-svc-page .vy-case-picker__title {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--fg-1);
}
.vy-svc-page .vy-case-picker__pick {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--um-500);
	border-radius: 6px;
	background: color-mix(in oklab, var(--accent) 16%, transparent);
	font-size: 14px;
	color: var(--fg-1);
}
.vy-svc-page .vy-case-picker__pick::after {
	content: "Picked";
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--um-500);
}
.vy-svc-page .vy-case-picker__note { font-size: 13.5px; color: var(--fg-4); }

/* ---- On screen: captures side by side, for a case with no before capture -----------------
 * Each capture is a picker card (label, image, note). Regency Moving (VOY-1746). */

.vy-svc-page .vy-case-shots {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
	margin-top: 32px;
}
.vy-svc-page .vy-case-shots .vy-case-picker__shot { margin: 0; }
.vy-svc-page .vy-case-shots .vy-case-picker__shot img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: top;
	border-radius: 4px;
}
@media (max-width: 767px) {
	.vy-svc-page .vy-case-shots { grid-template-columns: minmax(0, 1fr); }
}

/* ---- In their words ------------------------------------------------------------------------
 * Only ever renders with a quote in it (inc/case-file.php). */

.vy-svc-page .vy-case-quote__text {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 0;
	padding: 48px 56px;
	border: 1px solid var(--border-1);
	border-radius: 6px;
	background: color-mix(in oklab, var(--bg-panel) 60%, transparent);
}
.vy-svc-page .vy-case-quote__text::before {
	content: "\201C";
	font-family: var(--font-display);
	font-size: 96px;
	font-weight: 500;
	line-height: 0.5;
	color: var(--accent);
}
.vy-svc-page .vy-case-quote__text p {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--fg-1);
}
.vy-svc-page .vy-case-quote__text cite {
	font-family: var(--font-mono);
	font-size: 12px;
	font-style: normal;
	color: var(--fg-3);
}

/* ---- Old/new toggle (svc-case.js), a phone control ------------------------------------- */

.vy-svc-page .vy-case-toggle { display: none; }

/* ---- Under 1024px: the rail becomes pills, the body one column -------------------------- */

@media (max-width: 1023px) {
	.vy-svc-page .vy-case-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.vy-svc-page .vy-case-body { grid-template-columns: minmax(0, 1fr); gap: 56px; }
	.vy-svc-page .vy-case-sec { scroll-margin-top: calc(var(--vy-hdr-h, 64px) + 88px); }
}

/* ---- Under 768px: the mobile board ------------------------------------------------------ */

@media (max-width: 767px) {
	.vy-svc-page .vy-case-hero__copy { gap: 20px; }
	.vy-svc-page .vy-case-hero .vy-svc-lede { font-size: 16px; }
	.vy-svc-page .vy-case-h1 { font-size: 32px; line-height: 1.08; }
	.vy-svc-page .vy-case-facts .vy-svc-facts__value { font-size: 14px; color: var(--fg-1); }
	/* svc-facts drops its panel on a phone; the status keeps a frame of its own. */
	.vy-svc-page .vy-case-status {
		margin-top: 20px;
		padding: 14px 16px;
		border: 1px solid var(--border-strong);
		border-radius: 6px;
	}

	.vy-svc-page .vy-case-main { gap: 80px; }
	.vy-svc-page .vy-case-sec { gap: 24px; }
	.vy-svc-page .vy-case-sec .vy-svc-h2 { font-size: 32px; line-height: 1.08; }
	.vy-svc-page .vy-case-head { gap: 14px; }
	.vy-svc-page .vy-case-head .vy-case-lede,
	.vy-svc-page .vy-case-prose p { font-size: 16px; }

	/* Ledgers stack: each row a block, each cell a line. */
	.vy-svc-page .vy-case-ledger thead { display: none; }
	.vy-svc-page .vy-case-ledger table,
	.vy-svc-page .vy-case-ledger tbody,
	.vy-svc-page .vy-case-ledger tr,
	.vy-svc-page .vy-case-ledger td { display: block; }
	.vy-svc-page .vy-case-ledger tr { padding: 14px 0; }
	.vy-svc-page .vy-case-ledger tbody tr:hover { background: none; }
	.vy-svc-page .vy-case-ledger td { padding: 0; }

	.vy-svc-page .vy-case-ledger--compare td:first-child {
		margin-bottom: 6px;
		font-family: var(--font-mono);
		font-size: 10px;
	}
	.vy-svc-page .vy-case-ledger--compare td:nth-child(2) { text-decoration-color: var(--fg-5); color: var(--fg-4); }
	.vy-svc-page .vy-case-ledger--compare td:last-child { margin-top: 4px; font-size: 17px; }
	.vy-svc-page .vy-case-ledger--compare[data-show="new"] td:nth-child(2),
	.vy-svc-page .vy-case-ledger--compare[data-show="old"] td:last-child { display: none; }
	.vy-svc-page .vy-case-ledger--compare[data-show] td { margin-top: 0; }
	.vy-svc-page .vy-case-ledger--compare[data-show="old"] td:nth-child(2) {
		font-family: var(--font-display);
		font-size: 17px;
		font-weight: 500;
		color: var(--fg-2);
	}

	.vy-svc-page .vy-case-toggle {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
		padding: 4px;
		border: 1px solid var(--border-strong);
		border-radius: 999px;
	}
	.vy-svc-page .vy-case-toggle button {
		min-height: 44px;
		border: 0;
		border-radius: 999px;
		background: transparent;
		font-family: var(--font-body);
		font-size: 15px;
		color: var(--fg-2);
		cursor: pointer;
	}
	.vy-svc-page .vy-case-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--fg-1); }
	.vy-svc-page .vy-case-toggle button:focus-visible { outline: 2px solid var(--um-500); outline-offset: 2px; }

	/* Results: the measure and its headline value on one line, then the other
	   value and the source in mono, each named by its column (data-label,
	   copied from the header by svc-case.js). */
	.vy-svc-page .vy-case-ledger--results tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 6px 16px;
		align-items: baseline;
		padding: 14px 0;
	}
	.vy-svc-page .vy-case-ledger--results td:first-child { grid-column: 1; grid-row: 1; font-size: 15px; }
	.vy-svc-page .vy-case-ledger--results td:nth-child(3) { grid-column: 2; grid-row: 1; max-width: 50vw; text-align: right; }
	.vy-svc-page .vy-case-ledger--results td:nth-child(2) { grid-column: 1; grid-row: 2; }
	.vy-svc-page .vy-case-ledger--results td:last-child { grid-column: 2; grid-row: 2; text-align: right; }
	.vy-svc-page .vy-case-ledger--results td:nth-child(2),
	.vy-svc-page .vy-case-ledger--results td:last-child {
		font-family: var(--font-mono);
		font-size: 10.5px;
		font-weight: 400;
		letter-spacing: 0;
		color: var(--fg-4);
	}
	.vy-svc-page .vy-case-ledger--results td:nth-child(2)[data-label]::before { content: attr(data-label) ": "; }
	/* In progress the baseline is the headline and the condition goes under it. */
	.vy-svc-page .vy-case-ledger--results.is-pending td:nth-child(2) {
		grid-column: 2;
		grid-row: 1;
		font-family: var(--font-display);
		font-size: 17px;
		font-weight: 500;
		color: var(--fg-1);
		text-align: right;
	}
	.vy-svc-page .vy-case-ledger--results.is-pending td:nth-child(2)::before { content: none; }
	.vy-svc-page .vy-case-ledger--results.is-pending td:nth-child(3) {
		grid-column: 1;
		grid-row: 2;
		max-width: none;
		padding: 0;
		border: 0;
		background: none;
		text-align: left;
	}
	.vy-svc-page .vy-case-ledger--results.is-pending td:nth-child(3)[data-label]::after { content: none; }

	.vy-svc-page .vy-case-ledger--struck td:first-child { font-size: 16px; }
	.vy-svc-page .vy-case-ledger--struck td:last-child { margin-top: 6px; font-size: 14.5px; }

	.vy-svc-page .vy-case-step {
		grid-template-columns: 34px minmax(0, 1fr);
		gap: 8px 12px;
		padding: 16px 0;
	}
	.vy-svc-page .vy-case-step::before { font-size: 18px; line-height: 1.4; }
	.vy-svc-page .vy-case-step__title { font-size: 17px; }
	.vy-svc-page .vy-case-step__title button::after {
		content: "+";
		flex: none;
		font-family: var(--font-mono);
		font-size: 14px;
		color: var(--fg-4);
	}
	.vy-svc-page .vy-case-step.is-open .vy-case-step__title button::after { content: "\2212"; }
	.vy-svc-page .vy-case-step__body { font-size: 15px; }
	.vy-svc-page .vy-case-steps.is-js .vy-case-step.is-open { background: none; }

	.vy-svc-page .vy-case-problem__body:has(> .vy-case-asks),
	.vy-svc-page .vy-case-design__body:has(> .vy-case-picker) { grid-template-columns: minmax(0, 1fr); gap: 24px; }

	.vy-svc-page .vy-case-quote__text { padding: 28px 20px; gap: 16px; }
	.vy-svc-page .vy-case-quote__text::before { font-size: 64px; }
	.vy-svc-page .vy-case-quote__text p { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.vy-svc-page .vy-case-ledger tbody tr,
	.vy-svc-page .vy-case-ledger td,
	.vy-svc-page .vy-case-step,
	.vy-svc-page .vy-case-step::before,
	.vy-svc-page .vy-case-steps.is-js .vy-case-step__body,
	.vy-svc-page .vy-case-steps.is-js .vy-case-step.is-open .vy-case-step__body { transition: none; }
}

/* ---- Atmosphere ------------------------------------------------------------------ */

/* The case file in the hubs' space-and-dither language (Ben, 2026-11-05).
   The gradient half: a horizon glow under the hero, a halftone seam into
   the body, a faint haze behind each section head, and a frosted case file
   panel. The dither half is svc-case.js ("The case file's atmosphere"): the
   hero's twinkle field, the comet on the steps and the results ledger, the
   static in an empty before frame, the timeline's bursts. Token colours
   only; every layer is a pseudo-element or a canvas on an element that
   already holds content, so the editor shows nothing new. */

/* The glows run to the page edges; clip (not hidden) keeps the sticky rail. */
.vy-svc-page.vy-case { overflow-x: clip; }

.vy-svc-page .vy-case-hero {
	position: relative;
	isolation: isolate;
	padding-bottom: 120px;
}
.vy-svc-page .vy-case-live > .vy-dither,
.vy-svc-page .vy-svc-compare__before.is-static > .vy-dither,
.vy-svc-page .vy-case-timeline.vy-case-burst > .vy-dither {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
/* The hero's galaxy, horizon and sparkles are the shared space hero now
   (vy-galaxy.js, vy-galaxy.css). */

/* The case file panel: frosted, so the field shows through it. */
.vy-svc-page .vy-case-hero .vy-case-facts {
	background: color-mix(in oklab, var(--bg-panel) 72%, transparent);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow:
		0 40px 100px color-mix(in oklab, var(--bg-canvas) 55%, transparent),
		0 0 60px color-mix(in oklab, var(--accent-bright) 9%, transparent);
}

/* The seam: the horizon's screen carries into the body and fades out. */
.vy-svc-page .vy-case-body {
	position: relative;
	isolation: isolate;
}
.vy-svc-page .vy-case-body::before {
	content: "";
	position: absolute;
	inset: -120px calc(var(--svc-pad, 32px) * -1) auto;
	z-index: -1;
	height: 520px;
	pointer-events: none;
	background:
		radial-gradient(circle, color-mix(in oklab, var(--accent-bright) 40%, transparent) 0.9px, transparent 1.5px) 0 0 / 6px 6px,
		radial-gradient(60% 70% at 50% 0%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 75%);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, rgba(0, 0, 0, 0.5) 48%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 22%, rgba(0, 0, 0, 0.5) 48%, transparent);
	opacity: 0.55;
}

/* Each section head sits in a little of the same haze. */
.vy-svc-page .vy-case-sec > .vy-case-head {
	position: relative;
	isolation: isolate;
}
.vy-svc-page .vy-case-sec > .vy-case-head::before {
	content: "";
	position: absolute;
	inset: -48px auto -24px -64px;
	z-index: -1;
	width: min(520px, 90%);
	pointer-events: none;
	background:
		radial-gradient(circle, color-mix(in oklab, var(--accent-2) 45%, transparent) 0.8px, transparent 1.4px) 0 0 / 6px 6px,
		radial-gradient(closest-side, color-mix(in oklab, var(--accent-2) 12%, transparent), transparent);
	-webkit-mask-image: radial-gradient(closest-side, #000, transparent);
	mask-image: radial-gradient(closest-side, #000, transparent);
	opacity: 0.5;
}

/* Live surfaces need a box for their canvas. */
.vy-svc-page .vy-case-live { position: relative; isolation: isolate; }
.vy-svc-page .vy-case-ledger.vy-case-live { background: transparent; }
.vy-svc-page .vy-svc-compare__before.is-static { position: relative; isolation: isolate; }
/* Static, not a picture: faint, so the frame's label still reads first. */
.vy-svc-page .vy-svc-compare__before.is-static > .vy-dither { opacity: 0.6; }
.vy-svc-page .vy-case-timeline.vy-case-burst { position: relative; isolation: isolate; }

/* The close answers the hero: the same rim, upside down, under its band. */

.vy-svc-page.vy-case .vy-svc-close {
	position: relative;
	isolation: isolate;
}
.vy-svc-page.vy-case .vy-svc-close::before {
	content: "";
	position: absolute;
	inset: 0 calc(var(--svc-pad, 32px) * -1) auto;
	z-index: -1;
	height: 220px;
	pointer-events: none;
	background:
		radial-gradient(circle, color-mix(in oklab, var(--accent-bright) 45%, transparent) 0.9px, transparent 1.5px) 0 0 / 6px 6px,
		radial-gradient(50% 90% at 50% 0%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 75%);
	-webkit-mask-image: linear-gradient(180deg, #000, transparent);
	mask-image: linear-gradient(180deg, #000, transparent);
	opacity: 0.6;
}

/* The canvases are off on touch (vy-dither.js); the field is also dimmed on
   a phone so the hero copy keeps its contrast. */
@media (max-width: 767px), (hover: none) {
	.vy-svc-page .vy-case-live > .vy-dither,
	.vy-svc-page .vy-case-timeline.vy-case-burst > .vy-dither { display: none; }
	.vy-svc-page .vy-case-hero { padding-bottom: 80px; }
}

/* ---- Hero, the simpler layout (Ben, 2026-11-05) ------------------------------------ */

/* A larger title; a breadcrumb that reads as a path (Work, the kind of
   business, which links to /work/ filtered to it, then the case, with a
   cursor); the two actions and a scroll cue under the lede. */
.vy-svc-page .vy-case-hero .vy-case-h1 {
	font-size: clamp(40px, 4.4vw, 66px);
	line-height: 1.02;
	letter-spacing: -0.04em;
	text-wrap: balance;
}
.vy-svc-page .vy-case-crumb {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	align-self: flex-start;
	padding: 7px 12px;
	border: 1px solid var(--border-1);
	border-radius: 999px;
	background: color-mix(in oklab, var(--bg-panel) 70%, transparent);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.vy-svc-page .vy-case-crumb__sep { color: var(--accent-bright); }
.vy-svc-page .vy-case-crumb__here { color: var(--fg-1); }
.vy-svc-page .vy-case-crumb__here::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 12px;
	margin-left: 6px;
	vertical-align: -1px;
	background: var(--accent-bright);
	animation: vy-case-caret 1.1s steps(1) infinite;
}
@keyframes vy-case-caret { 50% { opacity: 0; } }
.vy-svc-page .vy-case-actions { margin-top: 6px; }
.vy-svc-page .vy-case-scroll { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.vy-svc-page .vy-case-scroll a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--fg-3);
	text-decoration: none;
}
.vy-svc-page .vy-case-scroll a::before {
	content: "";
	width: 1px;
	height: 28px;
	background: linear-gradient(180deg, transparent, var(--accent-bright));
	animation: vy-case-drop 1.8s var(--svc-ease, ease) infinite;
	transform-origin: top;
}
.vy-svc-page .vy-case-scroll a:hover { color: var(--fg-1); }
@keyframes vy-case-drop { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.vy-svc-page .vy-case-crumb__here::after,
	.vy-svc-page .vy-case-scroll a::before { animation: none; }
}

/* The brief case file: one key figure, four facts in two columns, the
   track, one source line. Roomier than the full panel the older cases use. */
.vy-svc-page .vy-case-facts--brief .vy-case-facts__state {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-2);
}
.vy-svc-page .vy-case-facts--brief .vy-case-facts__state::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--warn);
	box-shadow: 0 0 0 3px var(--warn-soft);
}
.vy-svc-page .vy-case-facts--brief .vy-case-facts__state.is-measured::before {
	background: var(--signal-ok);
	box-shadow: 0 0 0 3px var(--signal-ok-soft);
}
.vy-svc-page .vy-case-facts__key {
	padding: 24px 24px 22px;
	border-bottom: 1px solid var(--border-hair);
}
.vy-svc-page .vy-case-facts__key > * { margin: 0; }
.vy-svc-page .vy-case-facts__num {
	font-family: var(--font-display);
	font-size: 56px;
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.045em;
	color: var(--accent-bright);
}
.vy-svc-page .vy-case-facts__what { margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--fg-2); }
.vy-svc-page .vy-case-facts__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vy-svc-page .vy-case-facts--brief .vy-svc-facts__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 24px;
	border-top: 0;
	border-bottom: 1px solid var(--border-hair);
}
.vy-svc-page .vy-case-facts--brief .vy-svc-facts__row:nth-child(odd) { border-right: 1px solid var(--border-hair); }
.vy-svc-page .vy-case-facts--brief .vy-svc-facts__row > * { margin: 0; }
.vy-svc-page .vy-case-facts--brief .vy-svc-facts__value { font-size: 15px; line-height: 1.35; color: var(--fg-1); }
.vy-svc-page .vy-case-facts--brief .vy-case-status { padding: 22px 24px; border-top: 0; gap: 14px; }
.vy-svc-page .vy-case-facts--brief .vy-case-status__note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.02em; color: var(--fg-4); }
@media (max-width: 767px) {
	.vy-svc-page .vy-case-facts__num { font-size: 44px; }
	.vy-svc-page .vy-case-hero .vy-case-h1 { font-size: 36px; line-height: 1.06; }
	.vy-svc-page .vy-case-facts--brief .vy-svc-facts__row { padding: 14px 18px; }
	.vy-svc-page .vy-case-facts__key { padding: 20px 18px; }
}

/* ---- Hero actions ------------------------------------------------------------------ */

/* The interactive buttons are the site default now (custom.css, "Buttons:
   the interactive layer"; voyager-motion.js, effect 6). The hero's pair is
   only larger. */
.vy-svc-page .vy-case-actions .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 22px 0 24px;
	font-size: 15.5px;
	border-radius: 3px;
}
