/**
 * VA theme styles. Tokens only: presets from theme.json, plus the few
 * brand values with no preset as named properties below.
 *
 * Sections: tokens · base · type styles · marks · header · footer · bands ·
 * lists · home · article · page bodies · forms · motion.
 */

/* ---------- Tokens ---------- */
:root {
	--va-rule: 2px solid var(--wp--preset--color--ink);
	--va-hair: 1px solid var(--wp--preset--color--stone);
	--va-ease: var(--wp--custom--ease--snap);
	--va-fast: var(--wp--custom--duration--fast);
	--va-med: var(--wp--custom--duration--med);
	--mark-ink: var(--wp--preset--color--rocket);
	--mark-tilt: -1.6deg;
	--mark-reveal: var(--wp--custom--duration--mark) var(--wp--custom--ease--snap);
}

/* ---------- Base ---------- */
:root :where(.wp-site-blocks) > * {
	margin-block: 0;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

p {
	text-wrap: pretty;
}

h1,
h2,
h3 {
	text-wrap: balance;
}

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

a {
	transition: color var(--va-fast) var(--va-ease);
}

::selection {
	background: var(--wp--preset--color--rocket);
	color: var(--wp--preset--color--ink);
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--rocket);
	outline-offset: 3px;
}

.va-main > * {
	margin-block: 0;
}

/* ---------- Type styles ---------- */
.is-style-micro,
.va-micro,
.va-running-label,
.va-post-meta,
.va-kicker-terms,
.va-card__terms,
.va-link-micro,
.is-style-kicker,
.is-style-dots,
.wp-block-read-more {
	font-family: var(--wp--preset--font-family--caption);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: var(--wp--custom--tracking--micro);
	text-transform: uppercase;
	line-height: 1.5;
}

.is-style-micro,
.va-post-meta > :not(:first-child),
.va-card__terms {
	color: var(--wp--preset--color--charcoal);
}

.is-style-kicker,
.va-kicker-terms {
	color: var(--wp--preset--color--rocket);
	font-weight: 700;
}

.va-kicker-terms a {
	color: inherit;
}

.is-style-dots {
	color: var(--wp--preset--color--rocket);
	letter-spacing: var(--wp--custom--tracking--wide);
}

.va-quiet {
	color: var(--wp--preset--color--slate);
}

.va-link-micro,
.wp-block-read-more {
	font-weight: 600;
}

.is-style-lead {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--l);
	font-weight: 500;
	line-height: 1.45;
}

.va-intro {
	max-width: 46ch;
	font-size: clamp(18px, 1.5vw, 21px);
	line-height: 1.65;
}

.va-intro--muted {
	font-size: 18px;
	color: var(--wp--preset--color--stone);
}

.va-pull {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(36px, 4vw, 56px);
	line-height: 1.15;
}

:root :where(.is-style-display, .is-style-display-small, .va-title-xl, .va-hero__title, .va-title-project, .va-title-article) {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	line-height: var(--wp--custom--leading--display);
	text-transform: uppercase;
	letter-spacing: 0;
	margin: 0;
}

.wp-block-heading.is-style-display {
	font-size: clamp(64px, 8vw, 128px);
	line-height: .9;
}

.wp-block-heading.is-style-display-small,
.wp-block-post-title.is-style-display-small {
	font-size: var(--wp--custom--type--title);
	line-height: .9;
}

.va-hero__title {
	font-size: var(--wp--custom--type--hero);
}

.va-title-xl {
	font-size: clamp(80px, 13vw, 220px);
}

.va-title-project {
	font-size: clamp(72px, 12vw, 200px);
	max-width: 11ch;
}

.va-title-article {
	font-size: clamp(64px, 10.5vw, 176px);
	line-height: .9;
	max-width: 13ch;
}

.wp-block-heading.is-style-italic {
	font-style: italic;
	font-weight: 600;
	font-size: 32px;
	margin: 0;
}

.wp-block-post-title.is-style-serif {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	margin: 0;
}

.wp-block-post-title a,
.va-link-micro a,
.va-card a {
	color: inherit;
}

.wp-block-post-title a:hover {
	color: var(--wp--preset--color--rocket);
}

/* ---------- Marks ---------- */
.va-mark {
	position: relative;
	display: inline-block;
	color: inherit;
}

.va-mark > i {
	position: absolute;
	pointer-events: none;
	color: var(--mark-ink);
	transform: rotate(var(--mark-tilt));
}

.va-mark > i > svg {
	display: block;
	width: 100%;
	height: 100%;
}

.va-mark-strike > i { left: -3%; right: -3%; top: 22%; height: .3em; }
.va-mark-underline > i { left: -2%; right: -3%; bottom: -.02em; height: .2em; }
.va-mark-underline-wobbly > i { left: -2%; right: -2%; bottom: -.08em; height: .26em; }
.va-mark-scribble > i { left: -4%; right: -4%; top: -6%; height: .9em; transform: rotate(calc(var(--mark-tilt) * -1)); }
.va-mark-circle > i { left: -9%; right: -9%; top: -30%; height: 1.2em; }
.va-mark-asterisk { height: 1em; vertical-align: top; }
.va-mark-asterisk > i { right: -.3em; top: -.2em; width: .42em; height: .42em; transform: rotate(8deg); }

/* Reveal: a left-to-right wipe, no fades. Without JS the marks just show. */
.va-js .va-mark[data-reveal] > i {
	clip-path: inset(-20% 100% -20% -10%);
	transition: clip-path var(--mark-reveal);
}

.va-js .va-mark[data-reveal="on"] > i,
.editor-styles-wrapper .va-mark > i {
	clip-path: inset(-20% -10% -20% -10%);
}

/* Unprocessed marks in the editor: hint where the mark sits. */
.editor-styles-wrapper [class^="va-mark-"]:not(.va-mark) {
	text-decoration: underline wavy var(--wp--preset--color--rocket);
	text-decoration-thickness: 2px;
	text-underline-offset: .12em;
}

/* Paper marks on dark grounds. */
.is-style-ink,
.is-style-ink-box,
.has-ink-background-color {
	--mark-ink: var(--wp--preset--color--paper);
}

/* ---------- Header ---------- */
.va-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
}

.va-header > * {
	margin: 0 !important;
}

.va-running-label {
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.va-header__logo,
.va-header__logo a {
	display: block;
	line-height: 0;
}

.va-header__logo img {
	display: block;
	width: 61px;
	height: 32px;
}

.va-nav {
	justify-self: end;
}

.va-nav .wp-block-navigation-item__content {
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
}

.va-nav .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--rocket);
}

.va-nav .is-accent > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--rocket);
}

.va-nav .is-accent > .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--ink);
}

.va-nav .wp-block-navigation__responsive-container-open,
.va-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--ink);
}

/* Mobile overlay: paper, big Besley links. */
.va-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	padding: 32px var(--wp--preset--spacing--gutter);
}

.va-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 72px;
}

.va-nav .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(48px, 14vw, 88px);
	font-weight: 400;
	letter-spacing: 0;
	line-height: .95;
}

.va-nav .is-menu-open .wp-block-navigation__container {
	gap: 12px;
}

/* Pinned header. Always sticky and solid paper; a hairline appears once the
   page scrolls. Over a dark opener (body.va-header-overlay, see
   inc/header.php) it starts transparent with a paper logo and nav, the opener
   slides up underneath it, and it turns solid again on scroll. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--paper);
	box-shadow: 0 1px 0 transparent;
	transition: background-color .3s var(--va-ease), box-shadow .3s var(--va-ease), color .3s var(--va-ease);
}

@media (max-width: 600px) {
	/* WordPress unpins its admin bar on phones. */
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

.va-scrolled .wp-site-blocks > header.wp-block-template-part {
	box-shadow: 0 1px 0 var(--wp--preset--color--sand);
}

/* The logo is painted in currentColor through the SVG as a mask, so it follows
   the header's colour. The <img> stays for its alt text. */
.va-header__logo a {
	width: 61px;
	height: 32px;
	background-color: currentColor;
	-webkit-mask: url(../images/VA_logo_dark.svg) center / contain no-repeat;
	mask: url(../images/VA_logo_dark.svg) center / contain no-repeat;
}

.va-header__logo img {
	opacity: 0;
}

.va-header-overlay .wp-site-blocks > header.wp-block-template-part {
	margin-bottom: calc(-1 * var(--va-header-h, 96px));
}

.va-header-overlay .wp-site-blocks > header + * {
	margin-block-start: 0;
}

.va-header-overlay:not(.va-scrolled) .wp-site-blocks > header.wp-block-template-part {
	color: var(--wp--preset--color--paper);
	background-color: transparent;
}

.va-header-overlay:not(.va-scrolled) .va-running-label,
.va-header-overlay:not(.va-scrolled) .va-nav .wp-block-navigation__responsive-container-open,
.va-header-overlay:not(.va-scrolled) .va-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item:not(.is-accent) > .wp-block-navigation-item__content,
.va-header-overlay:not(.va-scrolled) .va-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .is-accent > .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--paper);
}

/* Over the halftone, a soft ink shade keeps the nav readable, and Contact
   goes paper with a rocket underline (rocket text vanishes on rocket dots). */
.va-header-overlay .wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0 0 -40px;
	z-index: -1;
	background: linear-gradient(to bottom, rgb(20 19 18 / .75), rgb(20 19 18 / 0));
	pointer-events: none;
	transition: opacity .3s var(--va-ease);
}

.va-header-overlay.va-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	opacity: 0;
}

.va-header-overlay:not(.va-scrolled) .va-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .is-accent > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--paper);
	border-bottom-color: var(--wp--preset--color--rocket);
}

/* The opener keeps its own top padding, but never less than the header plus
   breathing room. */
.va-header-overlay .va-page-body > :first-child {
	margin-block-start: 0;
	padding-top: max(var(--wp--preset--spacing--xxl), calc(var(--va-header-h, 96px) + 32px)) !important;
}

@media (max-width: 781px) {
	.va-header {
		grid-template-columns: auto 1fr;
	}

	.va-running-label {
		display: none;
	}
}

/* ---------- Footer ---------- */
.va-footer p {
	margin: 0;
}

.va-footer a {
	color: inherit;
}

/* ---------- Rules, splits, sections ---------- */
.is-style-rule,
.va-rule-top {
	border-top: var(--va-rule);
	padding-top: 20px;
}

.va-rule-top.is-style-split,
.va-hero .va-rule-top {
	padding-top: 28px;
}

.va-rule-hair {
	border-top: var(--va-hair);
	padding-top: 14px;
}

.is-style-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 24px 64px;
}

.is-style-split > * {
	margin: 0;
}

section.is-style-split {
	gap: 40px 64px;
}

.is-style-split.va-align-end {
	align-items: end;
}

.is-style-split.va-align-center {
	align-items: center;
}

.va-case-section__copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 62ch;
	padding-top: clamp(0px, 2vw, 40px);
}

.va-case-section__copy > * {
	margin: 0;
}

.va-case-section__copy p:not([class]) {
	font-size: 19px;
	color: var(--wp--preset--color--charcoal);
}

.va-case-section .wp-block-heading.is-style-display {
	font-size: clamp(96px, 12vw, 200px);
	line-height: .88;
}

.is-style-ink {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.is-style-ink a:hover {
	color: var(--wp--preset--color--rocket);
}

/* ---------- Halftone ---------- */
.wp-block-spacer.is-style-halftone {
	background: var(--va-halftone) center / cover;
	margin-block: 0;
}

.wp-block-group.is-style-halftone,
.wp-block-group.is-style-halftone-cta,
.va-band.is-quote {
	position: relative;
	overflow: hidden;
	display: flex;
	padding: clamp(56px, 8vw, 140px) var(--wp--preset--spacing--gutter);
	background: var(--va-halftone) center / cover;
}

.wp-block-group.is-style-halftone,
.va-band.is-quote {
	justify-content: flex-end;
}

.wp-block-group.is-style-halftone-cta {
	justify-content: flex-start;
	padding-block: clamp(80px, 10vw, 140px);
}

/* The badge: only ever over halftone, solid ink, full opacity. */
.wp-block-group.is-style-halftone::before,
.wp-block-group.is-style-halftone-cta::before,
.va-band.is-quote::before {
	content: "";
	position: absolute;
	left: -70px;
	bottom: -110px;
	width: clamp(240px, 28vw, 420px);
	aspect-ratio: 1;
	background: var(--va-badge) center / contain no-repeat;
	pointer-events: none;
}

.wp-block-group.is-style-halftone-cta::before {
	left: auto;
	bottom: auto;
	right: -60px;
	top: -80px;
	width: clamp(260px, 30vw, 440px);
}

.wp-block-group.is-style-halftone > *,
.wp-block-group.is-style-halftone-cta > * {
	position: relative;
	margin: 0;
}

.is-style-ink-box {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 780px;
	padding: clamp(28px, 3.5vw, 52px);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.is-style-ink-box > * {
	margin: 0;
}

.is-style-halftone-cta .is-style-ink-box {
	max-width: 640px;
	gap: 18px;
	padding: clamp(28px, 3vw, 44px);
}

.va-band-quote {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(34px, 4vw, 60px);
	line-height: 1.12;
	text-wrap: balance;
}

.va-cta-email {
	align-self: flex-start;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.4;
}

.va-cta-email a {
	color: inherit;
	border-bottom: 2px solid var(--wp--preset--color--rocket);
}

.va-cta-email a:hover {
	color: var(--wp--preset--color--rocket);
}

/* Quote block, halftone style: the children read as one ink box. */
.wp-block-quote.is-style-halftone {
	position: relative;
	overflow: hidden;
	display: flex;
	padding: clamp(48px, 7vw, 120px) clamp(24px, 5vw, 80px);
	background: var(--va-halftone) center / cover;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
	font-size: clamp(32px, 3.6vw, 52px);
}

.wp-block-quote.is-style-halftone > * {
	width: min(100%, 760px);
	margin: 0;
	padding: 0 clamp(28px, 3.5vw, 48px) 20px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	--mark-ink: var(--wp--preset--color--paper);
}

.wp-block-quote.is-style-halftone > :first-child {
	padding-top: clamp(28px, 3.5vw, 48px);
}

.wp-block-quote.is-style-halftone > :first-child::before {
	content: ". . .";
	display: block;
	margin-bottom: 20px;
	font-family: var(--wp--preset--font-family--caption);
	font-style: normal;
	font-size: 11px;
	letter-spacing: var(--wp--custom--tracking--wide);
	color: var(--wp--preset--color--rocket);
}

.wp-block-quote.is-style-halftone > :last-child {
	padding-bottom: clamp(28px, 3.5vw, 48px);
}

.wp-block-quote.is-style-halftone cite {
	color: var(--wp--preset--color--stone);
}

/* Default quote: Besley italic with the rocket dots. */
.wp-block-quote:not(.is-style-halftone) {
	margin-inline: 0;
	padding: 0;
	font-size: clamp(28px, 3vw, 40px);
}

.wp-block-quote:not(.is-style-halftone)::before {
	content: ". . .";
	display: block;
	margin-bottom: 12px;
	font-family: var(--wp--preset--font-family--caption);
	font-style: normal;
	font-size: 11px;
	letter-spacing: var(--wp--custom--tracking--wide);
	color: var(--wp--preset--color--rocket);
}

.wp-block-quote cite,
.wp-block-pullquote cite {
	display: block;
	margin-top: 16px;
	font-family: var(--wp--preset--font-family--caption);
	font-size: 11px;
	font-style: normal;
	letter-spacing: var(--wp--custom--tracking--micro);
	text-transform: uppercase;
	color: var(--wp--preset--color--charcoal);
}

/* ---------- Lists ---------- */
.wp-block-list.is-style-numbered,
.wp-block-list.is-style-rows {
	list-style: none;
	margin-inline: 0;
	padding: 0;
	counter-reset: va-n;
}

.wp-block-list.is-style-numbered > li {
	counter-increment: va-n;
	display: grid;
	grid-template-columns: clamp(64px, 8vw, 120px) minmax(0, 1fr);
	gap: 24px;
	align-items: baseline;
	padding: 24px 0;
	border-top: var(--va-hair);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 500;
	line-height: 1.3;
}

.wp-block-list.is-style-numbered > li::before {
	content: counter(va-n, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(40px, 4.5vw, 64px);
	line-height: .9;
	color: var(--wp--preset--color--rocket);
}

.wp-block-list.is-style-rows > li {
	counter-increment: va-n;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 18px 0;
	border-top: var(--va-hair);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 500;
	line-height: 1.25;
}

/* A linked row: the whole row is the target, the type doesn't change. */
.wp-block-list.is-style-rows > li:has(> a) {
	position: relative;
}

.wp-block-list.is-style-rows > li > a {
	color: inherit;
	text-decoration: none;
	transition: color var(--wp--custom--duration--fast, 120ms) var(--wp--custom--ease--snap, ease);
}

.wp-block-list.is-style-rows > li > a::before {
	content: "";
	position: absolute;
	inset: 0;
}

.wp-block-list.is-style-rows > li > a::after {
	content: "→";
	display: inline-block;
	margin-left: .3em;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity var(--wp--custom--duration--fast, 120ms) var(--wp--custom--ease--snap, ease), transform var(--wp--custom--duration--fast, 120ms) var(--wp--custom--ease--snap, ease);
}

.wp-block-list.is-style-rows > li:has(> a:hover) > a,
.wp-block-list.is-style-rows > li > a:focus-visible {
	color: var(--wp--preset--color--rocket);
}

.wp-block-list.is-style-rows > li > a:hover::after,
.wp-block-list.is-style-rows > li > a:focus-visible::after {
	opacity: 1;
	transform: none;
}

.wp-block-list.is-style-rows > li > a:focus-visible {
	outline: none;
}

.wp-block-list.is-style-rows > li:has(> a:focus-visible) {
	outline: 3px solid var(--wp--preset--color--rocket);
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-list.is-style-rows > li > a::after {
		transition: none;
		transform: none;
	}
}

.wp-block-list.is-style-rows > li::after {
	content: counter(va-n, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--caption);
	font-size: 11px;
	letter-spacing: var(--wp--custom--tracking--micro);
	color: var(--wp--preset--color--slate);
}

/* ---------- Strike stack ---------- */
.is-style-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 40px 0;
	border-top: var(--va-rule);
	border-bottom: var(--va-rule);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(48px, 6vw, 88px);
	line-height: .92;
	text-transform: uppercase;
}

.is-style-stack > * {
	margin: 0 !important;
	font: inherit;
}

.is-style-stack > :not(:last-child) {
	color: var(--wp--preset--color--slate);
}

/* ---------- Home ---------- */
.va-hero__inner > .wp-block-group:first-child p {
	margin: 0;
	white-space: nowrap;
}

.va-more a {
	font-family: var(--wp--preset--font-family--caption);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--micro);
	text-transform: uppercase;
	padding-bottom: 6px;
	border-bottom: var(--va-rule);
}

.va-model {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(24px, 4vw, 56px);
}

.va-model > .va-model__item {
	flex: 1 1 160px;
	min-width: 0;
	margin: 0;
}

.va-model__item {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.va-model__item > * {
	margin: 0;
}

.va-model {
	align-items: flex-start;
}

.va-model__icon img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}

.va-model__word {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.va-model__n {
	margin-right: 8px;
	font-family: var(--wp--preset--font-family--caption);
	font-style: normal;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: var(--wp--custom--tracking--micro);
	color: var(--wp--preset--color--slate);
	vertical-align: .3em;
}

.va-model__q {
	font-size: 15px;
	line-height: 1.55;
	color: var(--wp--preset--color--stone);
}

.va-micro-row > * {
	margin: 0;
}

.va-micro-row .wp-block-read-more {
	color: var(--wp--preset--color--charcoal);
}

.va-closer .wp-block-heading.is-style-display {
	font-size: var(--wp--custom--type--display);
}

.va-closer > .wp-block-group > * {
	margin: 0;
}

.va-closer__email a {
	font-family: var(--wp--preset--font-family--caption);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--micro);
	text-transform: uppercase;
	color: var(--wp--preset--color--rocket);
}

.va-closer__email a:hover {
	color: var(--wp--preset--color--ink);
}

/* Featured images keep their ratio box. */
.wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
	background: var(--wp--preset--color--paper-warm);
}

.wp-block-post-featured-image img {
	display: block;
	width: 100%;
}

/* ---------- Journal cards ----------
   Same treatment as the work cards (va-content-model work.css): held to the
   wide size, four across, and the image framed with the ink border and hard
   shadow that turns rocket on hover. */
.va-wide,
.wp-block-query:has(> .va-cards) {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1600px);
	margin-inline: auto !important;
}

.va-cards-head {
	margin-bottom: clamp(24px, 3vw, 40px);
	gap: 16px 24px;
}

.va-cards-head > * {
	margin: 0;
}

.va-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(40px, 4vw, 64px) clamp(24px, 3vw, 48px);
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 1280px) {
	.va-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.va-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.va-cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

.va-card .wp-block-post-featured-image {
	border: 2px solid var(--wp--preset--color--ink);
	box-shadow: 6px 6px 0 var(--wp--preset--color--ink);
	transition: box-shadow var(--wp--custom--duration--fast, 120ms) var(--wp--custom--ease--snap, ease), transform var(--wp--custom--duration--fast, 120ms) var(--wp--custom--ease--snap, ease);
}

.va-card .wp-block-post-featured-image img {
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--wp--custom--ease--snap, ease);
}

.va-card:hover .wp-block-post-featured-image,
.va-card .wp-block-post-featured-image:has(a:focus-visible) {
	box-shadow: 10px 10px 0 var(--wp--preset--color--rocket);
	transform: translate(-2px, -2px);
}

.va-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
	.va-card .wp-block-post-featured-image,
	.va-card .wp-block-post-featured-image img {
		transition: none;
	}

	.va-card:hover .wp-block-post-featured-image,
	.va-card:hover .wp-block-post-featured-image img {
		transform: none;
	}
}

.va-cards > li {
	margin: 0;
}

.va-card > * {
	margin: 0;
}

.va-card:hover .wp-block-post-title {
	color: var(--wp--preset--color--rocket);
}

.va-card__terms a {
	color: inherit;
}

.va-pagination {
	margin-top: var(--wp--preset--spacing--xl);
	padding-top: 20px;
	border-top: var(--va-rule);
	font-family: var(--wp--preset--font-family--caption);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--micro);
	text-transform: uppercase;
}

/* No visible pager: va.js loads older posts on scroll and reads the next
   link from here. It shows only if a load fails (.is-fallback). */
.va-pagination:not(.is-fallback) {
	display: none;
}

.va-pagination .current {
	color: var(--wp--preset--color--rocket);
}

/* ---------- Article ---------- */
.va-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	height: 4px;
	width: 100%;
	background: var(--wp--preset--color--rocket);
	transform-origin: 0 50%;
	transform: scaleX(0);
	pointer-events: none;
}

.admin-bar .va-progress {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.va-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 48px;
}

.va-lead-media .wp-block-post-featured-image {
	aspect-ratio: 21 / 9;
}

.va-article {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(0, 66ch) minmax(0, 1fr);
	column-gap: clamp(24px, 4vw, 64px);
	align-items: start;
}

.va-article > .wp-block-post-content {
	display: contents;
}

.va-article > .va-toc {
	grid-column: 1;
	grid-row: 1 / span 80;
	align-self: start;
	position: sticky;
	top: 48px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
}

.va-toc > * {
	margin: 0;
}

.va-toc__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--wp--preset--font-family--caption);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--micro);
	text-transform: uppercase;
	line-height: 1.5;
}

.va-toc__list a.is-current {
	color: var(--wp--preset--color--rocket);
}

.va-toc__share {
	display: flex;
	gap: 16px;
	padding-top: 16px;
	border-top: var(--va-hair);
	font-family: var(--wp--preset--font-family--caption);
	font-size: 11px;
	letter-spacing: var(--wp--custom--tracking--micro);
	text-transform: uppercase;
	color: var(--wp--preset--color--charcoal);
}

.va-article__body > * {
	grid-column: 2;
	margin-block: 0 28px;
}

.va-article__body > :first-child:is(p) {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--l);
	font-weight: 500;
	line-height: 1.45;
}

.va-article__body > h2 {
	margin-top: 40px;
	font-size: var(--wp--preset--font-size--xl);
	scroll-margin-top: 48px;
}

.va-article__body > h3 {
	margin-top: 32px;
}

.va-article__body > .alignwide,
.va-article__body > .alignfull,
.va-article__body > .is-style-halftone,
.va-article__body > .is-style-halftone-cta,
.va-article__body > .wp-block-quote.is-style-halftone {
	grid-column: 1 / -1;
	margin-block: clamp(64px, 8vw, 112px);
}

.va-article__body > .alignfull {
	margin-inline: calc(var(--wp--preset--spacing--gutter) * -1);
}

.va-article__body > .wp-block-list.is-style-numbered {
	grid-column: 2 / -1;
	margin-block: 48px;
}

.va-article__body > .is-style-stack {
	margin-block: 24px 52px;
}

.va-article__body > .va-pull {
	margin-block: 32px;
}

.va-article__body p a,
.va-article__body li a,
.va-page-body p a,
.va-page-body li a {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--rocket);
	text-decoration-thickness: 2px;
	text-underline-offset: .18em;
}

.va-article__body > .wp-block-spacer {
	display: none;
}

@media (max-width: 1199px) {
	.va-article {
		grid-template-columns: minmax(0, 1fr) minmax(0, 66ch) minmax(0, 1fr);
		column-gap: 0;
	}

	.va-article > .va-toc {
		grid-column: 2;
		grid-row: auto;
		position: static;
		flex-flow: row wrap;
		gap: 12px 24px;
		margin-bottom: 48px;
		padding-bottom: 20px;
		border-bottom: var(--va-hair);
	}

	.va-toc__list {
		flex-flow: row wrap;
		gap: 10px 24px;
	}

	.va-toc__share {
		border-top: 0;
		padding-top: 0;
	}

	.va-article__body > .wp-block-list.is-style-numbered {
		grid-column: 2;
	}
}

/* Figures and captions: hairline caption row. */
.wp-element-caption,
.wp-block-image figcaption,
.blocks-gallery-caption {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: var(--va-hair);
	font-family: var(--wp--preset--font-family--caption);
	font-size: 11px;
	letter-spacing: var(--wp--custom--tracking--micro);
	text-transform: uppercase;
	text-align: left;
	color: var(--wp--preset--color--charcoal);
}

.wp-block-gallery.has-nested-images.va-figure-pair figure.wp-block-image:not(#individual-image) {
	aspect-ratio: 4 / 3;
}

.wp-block-gallery.has-nested-images.va-gallery-square figure.wp-block-image:not(#individual-image) {
	aspect-ratio: 1;
}

.wp-block-separator {
	opacity: 1;
	margin-block: 48px;
}

.wp-block-separator.is-style-hairline {
	border-top-width: 1px;
	border-color: var(--wp--preset--color--stone);
}

/* ---------- Page and case-study bodies ---------- */
/* Side padding comes from the root padding (theme.json: the gutter), which
   core applies to these constrained bodies as .has-global-padding, so
   full-width blocks inside them can break out to the edges. */
.va-page-body,
.va-case-body {
	padding-bottom: var(--wp--preset--spacing--xxl);
}

.va-page-body.is-wide {
	padding-bottom: 0;
}

.va-case-body {
	padding-top: var(--wp--preset--spacing--xxl);
}

.va-case-body > .wp-block-group:not(.alignfull):not(.alignwide) {
	max-width: none;
}

.va-case-body .wp-block-image,
.va-case-body .wp-block-video,
.va-case-body .wp-block-gallery {
	margin-block: 0;
}

.va-case-body .is-layout-constrained > * + *,
.va-case-body .wp-block-columns {
	margin-block-start: clamp(12px, 2vw, 24px);
}

.va-case-body .wp-block-columns {
	gap: clamp(12px, 2vw, 24px);
}

.va-case-body > .wp-block-paragraph:empty {
	display: none;
}

/* Buttons */
.wp-element-button,
.wp-block-button__link {
	transition: background-color var(--va-fast) var(--va-ease), color var(--va-fast) var(--va-ease), transform var(--va-fast) var(--va-ease), box-shadow var(--va-fast) var(--va-ease);
}

.wp-element-button:active,
.wp-block-button__link:active {
	transform: translate(2px, 2px);
	box-shadow: none;
}

/* ---------- Forms ---------- */
.va-search .wp-block-search__inside-wrapper {
	border: var(--va-rule);
	padding: 0;
	max-width: 520px;
}

.va-search .wp-block-search__input {
	border: 0;
	background: transparent;
	padding: 12px 16px;
	font: inherit;
}

.va-search .wp-block-search__button {
	margin: 0;
	box-shadow: none;
	border-width: 0 0 0 2px;
}

.gform_wrapper input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.gform_wrapper textarea,
.gform_wrapper select {
	border: var(--va-rule) !important;
	border-radius: 0 !important;
	background: var(--wp--preset--color--white) !important;
	padding: 12px 14px !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 17px !important;
}

.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label {
	font-family: var(--wp--preset--font-family--caption) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: var(--wp--custom--tracking--micro);
	text-transform: uppercase;
}

/* GF prints its theme colours inline under an ID selector
   (#gform_wrapper_N[data-form-index]), so only !important on the custom
   properties reaches them. This swaps GF's default blue for ink on every
   form: step indicators, radio and checkbox marks, focus rings. */
.gform_wrapper.gform-theme {
	--gf-color-primary: var(--wp--preset--color--ink) !important;
	--gf-color-primary-rgb: 20, 19, 18 !important;
	--gf-color-primary-contrast: var(--wp--preset--color--paper) !important;
	--gf-color-primary-darker: var(--wp--preset--color--ink-soft) !important;
	--gf-color-primary-lighter: var(--wp--preset--color--charcoal) !important;
	--gf-color-in-ctrl-primary: var(--wp--preset--color--ink) !important;
	--gf-color-in-ctrl-primary-rgb: 20, 19, 18 !important;
	--gf-color-in-ctrl-primary-contrast: var(--wp--preset--color--paper) !important;
	--gf-color-in-ctrl-primary-darker: var(--wp--preset--color--ink-soft) !important;
	--gf-color-in-ctrl-primary-lighter: var(--wp--preset--color--charcoal) !important;
	--gf-radius: 0 !important;
}

/* GF 3 renders Next and Back as <button>, so they need naming here. */
.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"],
.gform_wrapper .gform_next_button,
.gform_wrapper .gform_previous_button {
	background: var(--wp--preset--color--rocket) !important;
	color: var(--wp--preset--color--ink) !important;
	border: var(--va-rule) !important;
	border-radius: 0 !important;
	box-shadow: 4px 4px 0 var(--wp--preset--color--ink) !important;
	padding: 14px 22px !important;
	font-family: var(--wp--preset--font-family--caption) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: var(--wp--custom--tracking--caps) !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
}

.gform_wrapper .gform_button:hover,
.gform_wrapper .gform_next_button:hover,
.gform_wrapper .gform_previous_button:hover {
	background: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--paper) !important;
}

/* Back is the quiet partner: outline, no shadow. */
.gform_wrapper .gform_previous_button:not(:hover) {
	background: transparent !important;
	box-shadow: none !important;
}

/* Brand Alignment Survey: 1–10 scales (fields with the class `va-scale`).
   The radio stays a real input, invisible and stretched over its tile, so
   keyboard and screen-reader behaviour is GF's own. GF's stylesheets load
   after this one, hence the long prefix. */
.gform_wrapper.gform-theme--framework .gfield.va-scale .gfield_radio {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	gap: 6px;
}

.gform_wrapper.gform-theme--framework .gfield.va-scale .gchoice {
	position: relative;
	display: block;
	margin: 0;
}

.gform_wrapper.gform-theme--framework .gfield.va-scale .gchoice input {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.gform_wrapper.gform-theme--framework .gfield.va-scale .gchoice label {
	display: grid;
	place-items: center;
	inline-size: 100%;
	max-inline-size: none;
	min-block-size: 48px;
	margin: 0;
	padding: 0;
	border: var(--va-rule);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--caption);
	font-size: 15px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	transition:
		background-color var(--va-fast) var(--va-ease),
		color var(--va-fast) var(--va-ease),
		box-shadow var(--va-fast) var(--va-ease);
}

.gform_wrapper.gform-theme--framework .gfield.va-scale .gchoice input:hover + label {
	background: var(--wp--preset--color--linen);
}

.gform_wrapper.gform-theme--framework .gfield.va-scale .gchoice input:checked + label {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	box-shadow: 3px 3px 0 var(--wp--preset--color--rocket);
}

.gform_wrapper.gform-theme--framework .gfield.va-scale .gchoice input:focus-visible + label {
	outline: 2px solid var(--wp--preset--color--rocket);
	outline-offset: 2px;
}

/* What 1 and 10 mean, under each end of the scale. */
.gform_wrapper .va-scale__poles {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-family: var(--wp--preset--font-family--caption);
	font-size: 13px;
	line-height: 1.35;
	color: var(--wp--preset--color--ink);
}

.gform_wrapper .va-scale__pole:last-child {
	text-align: right;
}

.gform_wrapper .va-scale__pole strong {
	margin-inline-end: .3em;
}

.gform_wrapper .va-scale__pole span {
	display: block;
	color: var(--wp--preset--color--slate);
}

@media (max-width: 600px) {
	.gform_wrapper.gform-theme--framework .gfield.va-scale .gfield_radio {
		gap: 3px;
	}

	.gform_wrapper.gform-theme--framework .gfield.va-scale .gchoice label {
		min-block-size: 44px;
		font-size: 13px;
	}
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0s !important;
		animation-duration: 0s !important;
		scroll-behavior: auto !important;
	}

	.va-js .va-mark[data-reveal] > i {
		clip-path: inset(-20% -10% -20% -10%);
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

@media (max-width: 600px) {
	.va-model__icon img {
		max-width: 120px;
	}
}

/* ---------- Wide rail ----------
   Every content panel sits on the theme's wide size (1600px), matching the
   work and journal card grids and the Brands are like people panel.

   Panels on paper are full-width sections with gutter padding: their side
   padding grows so the content lands on the 1600 rail, at any inner layout
   (split grids included). Below 1600 + 2 gutters it is the gutter, as before.
   Only template sections that set the gutter themselves are touched, and only
   as direct children of main. Page content does not need this: page bodies
   are constrained with root padding, so in the editor a full-width Group
   (constrained) holding a wide Group gives full-bleed with 1600 content.

   Panels with their own background (halftone quote and CTA) become boxed at
   the wide size instead, centred on the paper, like the Brands panel.
   Type sizes are unchanged. */
.va-main {
	/* % resolves where it is used: against main, for main's direct children. */
	--va-rail: max(var(--wp--preset--spacing--gutter), calc((100% - var(--wp--style--global--wide-size, 1600px)) / 2));
}

.va-main > .alignfull[style*="spacing--gutter"] {
	padding-left: var(--va-rail) !important;
	padding-right: var(--va-rail) !important;
}

.va-main > .wp-block-group.is-style-halftone,
.va-main > .wp-block-group.is-style-halftone-cta {
	box-sizing: border-box;
	width: min(100%, var(--wp--style--global--wide-size, 1600px));
	max-width: none;
	margin-inline: auto !important;
}

/* ---------- Page content: full width with wide content inside ----------
   theme.json turns on root-padding-aware alignments with the gutter as root
   padding. Any constrained container (page body, a full-width Group with
   "inner blocks use content width") pads by the gutter, its full-width
   children break out to the edges, and its wide children cap at 1600. The
   pattern for a section is: Group (full, constrained) > Group (wide) > content. */

/* The halftone strip is a spacer, which has no alignment: run it edge to edge. */
.has-global-padding > .wp-block-spacer.is-style-halftone {
	max-width: none;
	margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
	margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
}

/* The no-title, full-width template stacks sections without the paragraph gap;
   each section carries its own vertical padding. */
.va-page-body.is-wide > * {
	margin-block-start: 0;
}

/* The 66ch measure resolves at the element's font size: on display-size
   headings it can exceed the wide size. */
.va-page-body.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
	max-width: min(var(--wp--style--global--content-size), var(--wp--style--global--wide-size));
}


/* Wide panels with their own dark ground (Brands, halftone quote) run edge to
   edge on phones, where a 24px paper margin either side looks like a mistake. */
@media (max-width: 781px) {
	.has-global-padding > .alignwide:is(.vabp, .is-style-halftone, .is-style-halftone-cta) {
		max-width: none;
		width: auto;
		margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
		margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
	}
}

/* Halftone (animated) — core/group `halftone-live`. assets/js/va-halftone.js
   draws a dot field on a canvas behind the content. The ground is the group's
   own background colour (ink unless one is set); --va-halftone-dot sets the
   dot colour. The canvas is absolutely positioned so it can never change the
   group's size. In the editor, and without JS, it is a plain ink panel. */
.wp-block-group.is-style-halftone-live {
	--va-halftone-dot: var(--wp--preset--color--rocket);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}
.is-style-halftone-live > .va-halftone-live__canvas {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0 !important; /* the constrained layout's auto margins and block gap must not move it */
	pointer-events: none;
}
.is-style-halftone-live > :not(.va-halftone-live__canvas) {
	position: relative;
	z-index: 1;
}
