/* Vaylmark theme. Dark, minimal, precise. All styles live here. */

@font-face {
	font-family: 'Vaylmark Display';
	src: url('../fonts/VaylmarkDisplay-Regular.ttf') format('truetype');
	font-weight: 300 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--vm-bg: #030303;
	--vm-panel: #131416;
	--vm-heading: #ffffff;
	--vm-body: #b8b9b9;
	--vm-cream: #dfdbd4;
	--vm-button-fill: #e0dad0;
	--vm-champagne: #cbb89b;
	--vm-rule: rgba(147, 141, 129, 0.45);
	--vm-input-border: rgba(147, 141, 129, 0.5);
	--vm-container: 1280px;
	--vm-pad-x: clamp(20px, 5.3vw, 76px);
	--vm-section-y: clamp(56px, 7vw, 110px);
	--vm-font: 'Roboto', Arial, sans-serif;
	--vm-font-display: 'Vaylmark Display', 'Roboto', Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--vm-bg);
	color: var(--vm-body);
	font-family: var(--vm-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--vm-heading);
	font-family: var(--vm-font-display);
	font-weight: 400;
}

p {
	margin: 0 0 1.25em;
}

a {
	color: var(--vm-cream);
}

a:hover {
	color: var(--vm-heading);
}

:focus-visible {
	outline: 1px solid var(--vm-cream);
	outline-offset: 2px;
}

/* Utilities */

.vm-container {
	max-width: var(--vm-container);
	margin: 0 auto;
	padding-left: var(--vm-pad-x);
	padding-right: var(--vm-pad-x);
}

.vm-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.vm-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--vm-button-fill);
	color: var(--vm-bg);
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.vm-skip-link:focus-visible {
	left: 16px;
	top: 16px;
}

.vm-rule {
	border: 0;
	border-top: 2px solid var(--vm-rule);
	margin: 0;
}

.vm-rule--full {
	width: 100%;
}

.vm-eyebrow {
	margin: 0 0 22px;
	color: var(--vm-champagne);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	line-height: 1.7;
}

.vm-eyebrow--center {
	text-align: center;
}

.vm-h2 {
	font-size: clamp(30px, 3.6vw, 44px);
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: 0.01em;
	margin: 0 0 24px;
}

.vm-intro {
	font-size: 17px;
	line-height: 1.65;
	max-width: 640px;
	color: var(--vm-body);
}

.vm-section {
	padding: var(--vm-section-y) 0;
}

/* Buttons */

.vm-button {
	display: inline-block;
	padding: 14px 30px;
	font-family: var(--vm-font);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-decoration: none;
	text-align: center;
	border: 1px solid transparent;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.vm-button--primary {
	background: var(--vm-button-fill);
	color: var(--vm-bg);
	border-color: var(--vm-button-fill);
}

.vm-button--primary:hover {
	background: #efeae3;
	border-color: #efeae3;
	color: var(--vm-bg);
}

.vm-button--secondary {
	background: transparent;
	color: var(--vm-cream);
	border-color: rgba(223, 219, 212, 0.6);
}

.vm-button--secondary:hover {
	background: rgba(223, 219, 212, 0.1);
	border-color: rgba(223, 219, 212, 0.9);
	color: var(--vm-heading);
}

/* Header */

.vm-header {
	position: relative;
	background: var(--vm-bg);
	border-bottom: 1px solid var(--vm-rule);
}

.vm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 88px;
}

.vm-header__brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.vm-header__wordmark {
	height: 30px;
	width: auto;
}

.vm-header__nav {
	display: flex;
	align-items: center;
	gap: 38px;
}

.vm-nav-link {
	color: var(--vm-body);
	font-size: 15px;
	font-weight: 400;
	text-decoration: none;
	transition: color 160ms ease;
}

.vm-nav-link:hover {
	color: var(--vm-heading);
}

.vm-nav-link[aria-current="page"] {
	color: var(--vm-heading);
}

.vm-header__cta {
	padding: 11px 22px;
	font-size: 14px;
}

.vm-nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
}

.vm-nav-toggle__line {
	display: block;
	width: 24px;
	height: 1px;
	background: var(--vm-cream);
}

.vm-nav-toggle__line + .vm-nav-toggle__line {
	margin-top: 7px;
}

/* Hero */

.vm-hero {
	position: relative;
	overflow: hidden;
}

.vm-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
}

.vm-hero__title {
	font-size: clamp(40px, 6vw, 68px);
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: 0.005em;
	margin: 0 0 28px;
}

.vm-hero__text {
	font-size: 17px;
	line-height: 1.65;
	max-width: 560px;
	color: var(--vm-body);
	margin: 0 0 1.25em;
}

.vm-hero__content .vm-button {
	margin-top: 16px;
}

/* Bleeding hero: image fills to the right viewport edge behind the text column. */
.vm-hero--bleed {
	display: flex;
	align-items: center;
	min-height: clamp(560px, 82vh, 880px);
}

.vm-hero--bleed .vm-hero__content {
	max-width: 600px;
	padding-right: clamp(32px, 5vw, 80px);
}

.vm-hero--bleed .vm-hero__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.vm-hero--bleed .vm-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right;
}

.vm-hero--bleed .vm-hero__media::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #030303 0%, transparent 35%);
}

/* Numbered steps */

.vm-steps {
	margin-top: clamp(40px, 5vw, 64px);
}

.vm-step {
	display: grid;
	grid-template-columns: 90px 260px minmax(0, 1fr);
	gap: clamp(24px, 3vw, 48px);
	align-items: center;
	min-height: 96px;
	padding: 30px 0;
	border-top: 2px solid var(--vm-rule);
}

.vm-step__num {
	color: var(--vm-champagne);
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
}

.vm-step__title {
	font-size: 22px;
	font-weight: 300;
	line-height: 1.3;
}

.vm-step__desc {
	margin: 0;
	color: var(--vm-body);
	border-left: 2px solid var(--vm-rule);
	padding-left: clamp(24px, 3vw, 48px);
}

/* Two-column split sections */

.vm-split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(40px, 6vw, 96px);
}

.vm-split__right p {
	color: var(--vm-body);
	font-size: 16.5px;
	line-height: 1.7;
}

.vm-split__right p:last-child {
	margin-bottom: 0;
}

/* Split with a vertical hairline between heading and copy. */
.vm-split--ruled {
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.vm-split--ruled .vm-split__right {
	border-left: 2px solid var(--vm-rule);
	padding-left: clamp(32px, 4vw, 64px);
}

/* Ruled list */

.vm-ruled-list {
	list-style: none;
	margin: 28px 0;
	padding: 0;
}

.vm-ruled-list li {
	border-top: 2px solid var(--vm-rule);
	padding: 18px 0;
	color: var(--vm-cream);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
}

.vm-ruled-list li:last-child {
	border-bottom: 2px solid var(--vm-rule);
}

/* Subsection rows (Our Approach) */

.vm-subrows {
	margin-top: clamp(40px, 5vw, 64px);
}

.vm-subrow {
	display: grid;
	grid-template-columns: minmax(0, 35%) minmax(0, 65%);
	border-top: 2px solid var(--vm-rule);
	padding: clamp(36px, 4.5vw, 60px) 0;
}

.vm-subrow__heading {
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 300;
	line-height: 1.25;
	padding-right: clamp(28px, 3.5vw, 56px);
	margin: 0;
}

.vm-subrow__body {
	border-left: 2px solid var(--vm-rule);
	padding-left: clamp(28px, 3.5vw, 56px);
}

.vm-subrow__body p {
	color: var(--vm-body);
	line-height: 1.7;
}

.vm-subrow__body p:last-child {
	margin-bottom: 0;
}

/* Case study results (Our Approach) */

.vm-cases {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin-top: clamp(32px, 4vw, 52px);
	text-align: left;
}

.vm-case {
	padding: 0 clamp(28px, 3.5vw, 56px);
}

.vm-case:first-child {
	padding-left: 0;
}

.vm-case:last-child {
	padding-right: 0;
}

.vm-case + .vm-case {
	border-left: 2px solid var(--vm-rule);
}

.vm-case__title {
	color: var(--vm-champagne);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.35;
	margin: 0 0 14px;
}

.vm-case p {
	color: var(--vm-body);
	line-height: 1.7;
	margin: 0;
}

.vm-case__link {
	display: inline-block;
	margin-top: 18px;
	color: var(--vm-champagne);
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(203, 184, 155, 0.6);
	transition: color 160ms ease;
}

.vm-case__link:hover {
	color: var(--vm-heading);
}

/* CTA band */

.vm-section--band {
	padding: clamp(48px, 6vw, 84px) 0;
}

.vm-band {
	border-top: 2px solid var(--vm-rule);
	border-bottom: 2px solid var(--vm-rule);
	padding: clamp(40px, 5vw, 64px) 0;
}

.vm-band__title {
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 300;
	line-height: 1.25;
	margin: 0 0 16px;
}

.vm-band__text {
	color: var(--vm-body);
	font-size: 17px;
	line-height: 1.65;
	max-width: 620px;
	margin: 0 0 30px;
}

/* Engagement model grid (Partnerships) */

.vm-models {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin-top: clamp(40px, 5vw, 64px);
}

.vm-model {
	padding: clamp(30px, 4vw, 52px);
}

.vm-model:nth-child(odd) {
	padding-left: 0;
	border-right: 2px solid var(--vm-rule);
}

.vm-model:nth-child(even) {
	padding-right: 0;
}

.vm-model:nth-child(-n + 2) {
	border-bottom: 2px solid var(--vm-rule);
}

.vm-model__title {
	font-size: 24px;
	font-weight: 300;
	line-height: 1.3;
	margin: 0 0 16px;
}

.vm-model p {
	color: var(--vm-body);
	line-height: 1.7;
	margin: 0;
}

/* Inquiry section + form */

.vm-inquiry__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}

.vm-form-status {
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 1px solid var(--vm-rule);
	font-size: 15px;
	line-height: 1.5;
}

.vm-form-status--sent {
	color: var(--vm-champagne);
	border-color: rgba(203, 184, 155, 0.55);
}

.vm-form-status--error {
	color: var(--vm-heading);
}

.vm-form {
	display: block;
}

.vm-form-row {
	margin-bottom: 20px;
}

.vm-form-row--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
}

.vm-field label {
	display: block;
	margin: 0 0 8px;
	color: var(--vm-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.vm-input,
.vm-textarea {
	width: 100%;
	background: var(--vm-panel);
	border: 1px solid var(--vm-input-border);
	border-radius: 0;
	color: var(--vm-heading);
	font-family: var(--vm-font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	height: 44px;
	padding: 10px 14px;
	transition: border-color 160ms ease;
}

.vm-textarea {
	height: auto;
	min-height: 110px;
	resize: vertical;
}

.vm-input:hover,
.vm-textarea:hover {
	border-color: rgba(147, 141, 129, 0.75);
}

.vm-input:focus-visible,
.vm-textarea:focus-visible {
	outline: 1px solid var(--vm-cream);
	outline-offset: 2px;
}

.vm-form-submit {
	width: 100%;
	height: 52px;
	padding: 0 20px;
}

/* Honeypot: off-screen, never display:none. */
.vm-hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Footer */

.vm-footer {
	border-top: 2px solid var(--vm-rule);
	padding: 30px 0;
}

.vm-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.vm-footer__brand {
	display: inline-flex;
	align-items: center;
}

.vm-footer__wordmark {
	height: 26px;
	width: auto;
}

.vm-footer__tagline {
	margin: 0;
	color: var(--vm-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

/* Fallback template (index.php) */

.vm-page-title {
	margin-bottom: 36px;
}

.vm-content {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.7;
}

.vm-content h1,
.vm-content h2,
.vm-content h3,
.vm-content h4 {
	margin: 1.6em 0 0.6em;
	line-height: 1.3;
}

.vm-content a {
	color: var(--vm-cream);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vm-content ul,
.vm-content ol {
	color: var(--vm-body);
	padding-left: 1.4em;
}

/* Mobile */

@media (max-width: 900px) {
	.vm-header__inner {
		height: 72px;
	}

	.vm-header__wordmark {
		height: 26px;
	}

	.vm-nav-toggle {
		display: block;
	}

	.vm-header__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 100;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--vm-bg);
		border-bottom: 1px solid var(--vm-rule);
		padding: 12px var(--vm-pad-x) 28px;
	}

	.vm-nav-open .vm-header__nav {
		display: flex;
	}

	.vm-nav-link {
		display: block;
		padding: 16px 0;
		font-size: 17px;
		border-top: 1px solid var(--vm-rule);
	}

	.vm-header__cta {
		margin-top: 20px;
		padding: 13px 22px;
		font-size: 15px;
		text-align: center;
	}

	.vm-hero--bleed {
		display: block;
		min-height: 0;
	}

	.vm-hero--bleed .vm-hero__inner {
		padding-top: clamp(56px, 10vw, 88px);
		padding-bottom: clamp(44px, 8vw, 72px);
	}

	.vm-hero--bleed .vm-hero__content {
		max-width: none;
		padding-right: 0;
	}

	.vm-hero--bleed .vm-hero__media {
		position: static;
		width: 100%;
		height: clamp(260px, 56vw, 460px);
	}

	.vm-hero--bleed .vm-hero__media::before {
		display: none;
	}

	.vm-hero__text {
		max-width: none;
	}

	.vm-step {
		grid-template-columns: 1fr;
		gap: 10px;
		min-height: 0;
		padding: 26px 0;
		align-items: start;
	}

	.vm-step__desc {
		border-left: 0;
		padding-left: 0;
	}

	.vm-split,
	.vm-split--ruled {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.vm-split--ruled .vm-split__right {
		border-left: 0;
		padding-left: 0;
	}

	.vm-subrow {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.vm-subrow__heading {
		padding-right: 0;
	}

	.vm-subrow__body {
		border-left: 0;
		padding-left: 0;
	}

	.vm-cases {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.vm-case {
		padding: 0;
	}

	.vm-case + .vm-case {
		border-left: 0;
		border-top: 2px solid var(--vm-rule);
		margin-top: 32px;
		padding-top: 32px;
	}

	.vm-models {
		grid-template-columns: 1fr;
	}

	.vm-model,
	.vm-model:nth-child(odd),
	.vm-model:nth-child(even) {
		padding: 28px 0;
		border-right: 0;
	}

	.vm-model:nth-child(-n + 2) {
		border-bottom: 0;
	}

	.vm-model:not(:last-child) {
		border-bottom: 2px solid var(--vm-rule);
	}

	.vm-inquiry__grid {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.vm-form-row--split {
		grid-template-columns: 1fr;
	}

	.vm-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}
