/*
 * Sales operations (Brand Van Egmond) -- this case study's own shapes.
 *
 * The shortest of the page stylesheets so far, because this design uses the
 * export's shared primitives for nine of its twelve sections; Section,
 * SectionHead and Prose already live in case-system.css. What is left here is
 * the hero, four bespoke list shapes and the closing CTA.
 *
 * Each rule resolves the Tailwind classes on the matching element in the
 * export's src/routes/index.tsx. Tailwind's text-* sizes carry their own
 * line-height, so a figure only falls through to the num utility's 0.9 when
 * its size is arbitrary; see case-system.css before changing one. Breakpoints
 * match the export's: sm 640px, md 768px, lg 1024px.
 */

/* --------------------------------------------------------------- utilities */

/* Spacing and tick colours for the shared rule-and-eyebrow row. The row is
   green in the hero, ink over the challenge grid, and pale over both ink
   sections, which is the only reason these exist. */
.bve-row-mt { margin-top: 3.5rem; }

.bve-row-ink .cs-tick { background: rgb(var(--rv-black-rgb) / 0.4); }
.bve-row-pale .cs-tick { background: rgb(var(--rv-white-rgb) / 0.3); }
.bve-row-cta .cs-tick { background: rgb(var(--rv-white-rgb) / 0.4); }

.bve-row-pale .cs-eyebrow { color: rgb(var(--rv-white-rgb) / 0.5); }

.bve-tick-wide { width: 2.5rem; }

/* A short green bar under a section heading. */
.bve-bar {
	margin-top: 1.5rem;
	height: 0.375rem;
	width: 4rem;
	background: var(--rv-green);
}

/* The two spacings this page gives Prose: under a heading, and after a list. */
.bve-prose-top { margin-top: 2rem; }
.bve-prose-wide { margin-top: 3.5rem; }

/* One pulled paragraph is on the blue rule rather than the green one, and
   keeps the muted body colour. */
.bve-pull-blue .cs-prose-pull {
	border-left-color: var(--rv-blue);
	color: var(--rv-case-muted);
}

/* Beats the `.cs-tone-ink .cs-prose strong` white in case-system.css. */
.cs-prose .bve-strong-green {
	font-weight: 700;
	color: var(--rv-green);
}

/* ------------------------------------------------------------------- hero */

/* py-12 lg:py-20 */
.bve-hero {
	background: var(--rv-white);
	padding-block: 3rem;
}

@media (min-width: 1024px) {
	.bve-hero { padding-block: 5rem; }
}

/* The size, leading and tracking are now the shared .cs-title / .cs-cta-h
   in case-system.css; what is left here is this page's own spacing. */
.bve-title {
	margin: 1.5rem 0 0;
	max-width: 56rem;
	font-weight: 800;
	color: var(--rv-black);
}

@media (min-width: 1024px) {
	.bve-title {
		margin-top: 2rem;
		margin-left: -0.25rem;
	}
}

.bve-title-mark {
	background: var(--rv-green);
	padding-inline: 0.75rem;
	color: var(--rv-black);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.bve-progress {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

@media (min-width: 1024px) {
	.bve-progress { margin-top: 1.75rem; }
}

.bve-progress-on,
.bve-progress-off { height: 0.375rem; }

.bve-progress-on { width: 4rem; background: var(--rv-green); }
.bve-progress-off { width: 2rem; background: rgb(var(--rv-black-rgb) / 0.2); }

.bve-lede {
	margin: 2rem 0 0;
	max-width: 42rem;
	line-height: 1.625;
	color: var(--rv-case-muted);
}

/* mt-10 grid border md:grid-cols-2 */
.bve-herocards {
	display: grid;
	margin-top: 2.5rem;
	border: 1px solid var(--rv-case-border);
}

@media (min-width: 768px) {
	.bve-herocards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.bve-herocard {
	min-width: 0;
	padding: 1.5rem;
}

@media (min-width: 1024px) {
	.bve-herocard { padding: 2rem; }
}

.bve-herocard--challenge {
	border-bottom: 1px solid var(--rv-case-border);
	border-left: 3px solid var(--rv-blue);
}

@media (min-width: 768px) {
	.bve-herocard--challenge { border-bottom: 0; }
}

.bve-herocard--result {
	border-left: 3px solid var(--rv-green);
	background: rgb(var(--rv-green-rgb) / 0.1);
}

.bve-herocard-body {
	margin: 0.75rem 0 0;
	line-height: 1.625;
	color: var(--rv-case-muted);
}

.bve-herocard-body--strong {
	font-weight: 600;
	color: var(--rv-black);
}

/* mt-12 border-t pt-10, then a three-up meta row. */
.bve-meta {
	margin-top: 3rem;
	border-top: 1px solid var(--rv-case-border);
	padding-top: 2.5rem;
}

.bve-meta-grid {
	display: grid;
	gap: 2rem;
}

@media (min-width: 640px) {
	.bve-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bve-meta-client {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* The client mark is drawn for dark ground, so it sits on an ink tile. */
.bve-meta-logo {
	display: flex;
	height: 3rem;
	width: 3rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	background: var(--rv-black);
	padding: 0.375rem;
}

.bve-meta-logo img {
	height: 100%;
	width: 100%;
	object-fit: contain;
}

.bve-meta-item { min-width: 0; }

.bve-meta-value {
	margin: 0.5rem 0 0;
	font-weight: 600;
	color: var(--rv-black);
}

/* ----------------------------------------------------------------- client */

.bve-clientrow {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.bve-clientrow {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
	}
}

.bve-clientmark {
	height: 3rem;
	width: auto;
	flex-shrink: 0;
}

@media (min-width: 640px) {
	.bve-clientmark { margin-top: 0.5rem; }
}

@media (min-width: 1024px) {
	.bve-clientmark { height: 3.5rem; }
}

/* -------------------------------------------------------------- challenge */

/* mt-6 grid gap-x-10 gap-y-10 sm:grid-cols-2 lg:grid-cols-4 */
.bve-challenges {
	display: grid;
	gap: 2.5rem;
	margin-top: 1.5rem;
}

@media (min-width: 640px) {
	.bve-challenges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.bve-challenges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.bve-challenge {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.bve-challenge-rule {
	display: block;
	height: 1px;
	width: 100%;
}

.bve-challenge--blue .bve-challenge-rule  { background: rgb(var(--rv-blue-rgb) / 0.6); }
.bve-challenge--green .bve-challenge-rule { background: rgb(var(--rv-green-rgb) / 0.6); }
.bve-challenge--ink .bve-challenge-rule   { background: rgb(var(--rv-black-rgb) / 0.25); }

.bve-challenge-text {
	margin: 1.5rem 0 0;
	line-height: 1.625;
	color: rgb(var(--rv-case-muted-rgb) / 0.9);
}

/* mt-16 lg:mt-20 border-l-2 py-1 pl-6 */
.bve-consequence {
	margin-top: 4rem;
	border-left: 2px solid var(--rv-blue);
	padding: 0.25rem 0 0.25rem 1.5rem;
}

@media (min-width: 1024px) {
	.bve-consequence { margin-top: 5rem; }
}

/* text-[1.375rem] leading-[1.25] bold sm:text-2xl lg:text-[2rem]; the explicit
   leading holds at every step, so text-2xl's own 1.33333 does not apply. */
.bve-consequence-text {
	margin: 1rem 0 0;
	max-width: 48rem;
	font-size: 1.375rem;
	line-height: 1.25;
	font-weight: 700;
	color: var(--rv-black);
}

@media (min-width: 640px) {
	.bve-consequence-text { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
	.bve-consequence-text { font-size: 2rem; }
}

/* ------------------------------------------------------- strategic approach */

.bve-approach-top {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.bve-approach-label { white-space: nowrap; }

.bve-approach-line {
	height: 1px;
	flex: 1;
	background: rgb(var(--rv-white-rgb) / 0.2);
}

/* mt-12 grid gap-14 lg:grid-cols-[1.35fr_1fr] lg:gap-20 */
.bve-approach {
	display: grid;
	gap: 3.5rem;
	margin-top: 3rem;
}

@media (min-width: 1024px) {
	.bve-approach {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		gap: 5rem;
	}
}

.bve-approach-body { min-width: 0; }

/* text-[1.5rem] leading-[1.2] bold tracking-tight sm:1.875rem lg:2.25rem */
.bve-approach-h {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.025em;
}

@media (min-width: 640px) {
	.bve-approach-h { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
	.bve-approach-h { font-size: 2.25rem; }
}

.bve-approach-h-lead { color: var(--rv-white); }
.bve-approach-h-rest { color: rgb(var(--rv-white-rgb) / 0.45); }

.bve-approach-lede {
	margin: 2rem 0 0;
	max-width: 42rem;
	line-height: 1.625;
	color: rgb(var(--rv-white-rgb) / 0.6);
}

.bve-pillars {
	margin: 0;
	min-width: 0;
	align-self: start;
}

.bve-pillar {
	border-top: 1px solid rgb(var(--rv-white-rgb) / 0.2);
	padding-block: 1.5rem;
}

.bve-pillars .bve-pillar-label { color: rgb(var(--rv-white-rgb) / 0.45); }

/* text-xl lg:text-2xl, so 1.4 then 1.33333. The dd's own indent is dropped. */
.bve-pillar-title {
	margin: 0.75rem 0 0;
	font-size: 1.25rem;
	line-height: 1.4;
	font-weight: 700;
	color: var(--rv-green);
}

@media (min-width: 1024px) {
	.bve-pillar-title {
		font-size: 1.5rem;
		line-height: 1.33333;
	}
}

.bve-pillars-end { border-top: 1px solid rgb(var(--rv-white-rgb) / 0.2); }

/* ---------------------------------------------------------------- process */

/* mt-14 grid gap-x-10 gap-y-12 sm:grid-cols-2 lg:grid-cols-4 */
.bve-process {
	display: grid;
	gap: 3rem 2.5rem;
	margin-top: 3.5rem;
}

@media (min-width: 640px) {
	.bve-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.bve-process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.bve-step { min-width: 0; }

.bve-step-top {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.bve-step-dot {
	height: 0.625rem;
	width: 0.625rem;
	flex-shrink: 0;
	background: var(--rv-green);
}

.bve-step-line {
	height: 1px;
	flex: 1;
	background: rgb(var(--rv-black-rgb) / 0.15);
}

.bve-step-text {
	margin: 1.25rem 0 0;
	line-height: 1.625;
	color: rgb(var(--rv-case-muted-rgb) / 0.9);
}

/* ------------------------------------------------------------- page roles */

.bve-roles {
	margin-top: 3rem;
	border-left: 2px solid var(--rv-green);
}

/* px-6 py-10 sm:px-10 lg:grid-cols-[7rem_18rem_1fr] lg:gap-12 lg:py-14 */
.bve-role {
	display: grid;
	min-width: 0;
	gap: 1.5rem;
	border-top: 1px solid rgb(var(--rv-black-rgb) / 0.12);
	padding: 2.5rem 1.5rem;
}

@media (min-width: 640px) {
	.bve-role { padding-inline: 2.5rem; }
}

@media (min-width: 1024px) {
	.bve-role {
		grid-template-columns: minmax(0, 7rem) minmax(0, 18rem) minmax(0, 1fr);
		align-items: start;
		gap: 3rem;
		padding-block: 3.5rem;
	}
}

.bve-role:first-child { border-top-color: rgb(var(--rv-green-rgb) / 0.4); }
.bve-role:last-child { border-bottom: 1px solid rgb(var(--rv-green-rgb) / 0.4); }

/* num text-5xl lg:text-6xl, both of which carry their own line-height of 1. */
.bve-role-n {
	margin: 0;
	font-size: 3rem;
	line-height: 1;
	color: rgb(var(--rv-black-rgb) / 0.2);
}

@media (min-width: 1024px) {
	.bve-role-n { font-size: 3.75rem; }
}

.bve-role-bar {
	display: block;
	margin-top: 1rem;
	height: 3px;
	width: 2.5rem;
	background: var(--rv-green);
}

.bve-role-head,
.bve-role-body { min-width: 0; }

/* text-2xl lg:text-[2rem] lg:leading-[1.1] */
.bve-role-h {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.33333;
	font-weight: 700;
	color: var(--rv-black);
}

@media (min-width: 1024px) {
	.bve-role-h {
		font-size: 2rem;
		line-height: 1.1;
	}
}

.bve-role-body {
	line-height: 1.625;
	color: var(--rv-case-muted);
}

.bve-role-body p { margin: 0; }

@media (min-width: 1024px) {
	.bve-role-body {
		border-left: 1px solid rgb(var(--rv-black-rgb) / 0.12);
		padding-left: 3rem;
	}
}

/* ------------------------------------------------------------ quote paths */

.bve-paths {
	display: grid;
	gap: 2.5rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1024px) {
	.bve-paths {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 3rem;
	}
}

.bve-path { min-width: 0; }

.bve-path-rule {
	display: block;
	height: 1px;
	width: 100%;
	background: rgb(var(--rv-white-rgb) / 0.2);
}

.bve-path-bar {
	display: block;
	margin-top: 1.5rem;
	height: 3px;
	width: 2.5rem;
	background: var(--rv-green);
}

.bve-path-text {
	margin: 1.25rem 0 0;
	line-height: 1.625;
	color: rgb(var(--rv-white-rgb) / 0.7);
}

/* ------------------------------------------------------------- technology */

.bve-tech {
	margin: 1.5rem 0 0;
	max-width: 48rem;
	padding: 0;
	list-style: none;
}

.bve-tech-item {
	display: flex;
	gap: 0.75rem;
	line-height: 1.625;
	color: var(--rv-case-muted);
}

.bve-tech-item + .bve-tech-item { margin-top: 0.75rem; }

/* The 0.7em top margin sets the square on the first line's x-height. */
.bve-tech-dot {
	margin-top: 0.7em;
	height: 0.375rem;
	width: 0.375rem;
	flex-shrink: 0;
	background: var(--rv-green);
}

/* --------------------------------------------------------------- outcomes */

.bve-outcomes {
	margin: 3.5rem 0 0;
	padding: 0;
	list-style: none;
}

.bve-outcome {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	align-items: start;
	column-gap: 1.25rem;
	border-bottom: 1px solid rgb(var(--rv-white-rgb) / 0.12);
	padding-block: 2rem;
}

@media (min-width: 1024px) {
	.bve-outcome {
		grid-template-columns: 9rem minmax(0, 1fr);
		column-gap: 1rem;
		padding-block: 2.5rem;
	}
}

/* The first outcome is a green band that bleeds past the text column. Between
   640px and 1024px the export's -mx-8 is wider than the shell's own 1.5rem
   padding, so it runs half a rem past the shell edge; .cs-root clips it. */
.bve-outcome--featured {
	margin-inline: -1rem;
	border-bottom: 0;
	background: var(--rv-green);
	padding: 2rem 1rem;
}

@media (min-width: 640px) {
	.bve-outcome--featured {
		margin-inline: -2rem;
		padding-inline: 2rem;
	}
}

@media (min-width: 1024px) {
	.bve-outcome--featured {
		margin-inline: -3rem;
		padding: 2.5rem 3rem;
	}
}

/* num text-3xl lg:text-5xl */
.bve-outcome-n {
	font-size: 1.875rem;
	line-height: 1.2;
	color: var(--rv-green);
}

@media (min-width: 1024px) {
	.bve-outcome-n {
		font-size: 3rem;
		line-height: 1;
	}
}

.bve-outcome--featured .bve-outcome-n { color: rgb(var(--rv-black-rgb) / 0.4); }

.bve-outcome-text {
	margin: 0;
	max-width: 42rem;
	line-height: 1.625;
	color: rgb(var(--rv-white-rgb) / 0.6);
}

.bve-outcome--featured .bve-outcome-text {
	font-weight: 500;
	color: var(--rv-black);
}

/* -------------------------------------------------------------------- cta */

.bve-cta {
	position: relative;
	overflow: hidden;
	padding-block: 5rem;
}

@media (min-width: 640px) {
	.bve-cta { padding-block: 6rem; }
}

@media (min-width: 1024px) {
	.bve-cta { padding-block: 8rem; }
}

/* Twelve faint verticals, the export's column grid made visible. */
.bve-cta-grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.55;
	background-image: repeating-linear-gradient(
		to right,
		rgb(var(--rv-white-rgb) / 0.06) 0 1px,
		transparent 1px 8.333%
	);
}

.bve-cta-curve {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 10rem;
	width: 100%;
	pointer-events: none;
}

@media (min-width: 640px) {
	.bve-cta-curve { height: 13rem; }
}

.bve-cta-inner { position: relative; }

/* The size, leading and tracking are now the shared .cs-title / .cs-cta-h
   in case-system.css; what is left here is this page's own spacing. */
/* 70rem, not the design's narrower measure: at the shared 54px this closing
   copy needs 68.6rem for its first sentence and 54.3rem for its second, so a
   narrower box broke each sentence in the middle instead of keeping one per
   line. Still inside the shell at every width down to a phone, where the
   clamp has taken the size down with the viewport. */
.bve-cta-h {
	margin: 2rem 0 0;
	max-width: 70rem;
	font-weight: 700;
	color: var(--rv-white);
}

.bve-cta-accent { color: var(--rv-green); }

.bve-cta-lede {
	margin: 2rem 0 0;
	max-width: 36rem;
	font-size: 1.0625rem;
	line-height: 1.625;
	color: rgb(var(--rv-white-rgb) / 0.6);
}

.bve-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.bve-cta-btn {
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	gap: 0.75rem;
	padding-inline: 1.75rem;
	font-size: 0.9375rem;
	font-weight: 700;
}

