/*
 * Vintage Executive Search — theme styles.
 * Shell (fixed side navigation), block styles, page sections and motion.
 * Colours, fonts and sizes come from theme.json presets.
 */

/* ---------- Tokens ---------- */

:root {
	--ve-sidebar-w: clamp(16.5rem, 20vw, 21rem);
	--ve-gutter: clamp(1.25rem, 0.4rem + 3.6vw, 5.5rem);
	--ve-section-y: var(--wp--preset--spacing--70, 7rem);
	--ve-wide: var(--wp--style--global--wide-size, 1160px);
	--ve-topbar: 4.5rem;
	--ve-bar: var(--wp-admin--admin-bar--height, 0px);
	--ve-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ve-rule: rgb(91 24 42 / 0.3);
	--ve-on-dark: rgb(255 255 255 / 0.8);
	--ve-on-dark-soft: rgb(255 255 255 / 0.6);
	--ve-on-dark-line: rgb(255 255 255 / 0.16);
}

/* ---------- Base ---------- */

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-size-adjust: from-font;
}

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

p, li {
	text-wrap: pretty;
}

::selection {
	background: var(--wp--preset--color--bordo);
	color: #fff;
}

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

a {
	text-underline-offset: 0.22em;
	text-decoration-thickness: 1px;
}

img {
	height: auto;
}

/* Structural wrappers never take flow-layout gaps. */
body .ve-shell > *,
body .ve-content > *,
body .ve-main > *,
body .ve-page-content > * {
	margin-block: 0;
}

/* Short pages keep the footer at the bottom of the viewport. */
.ve-content {
	display: flex;
	flex-direction: column;
	min-height: calc(100svh - var(--ve-bar) - var(--ve-topbar));
}

.ve-content > .ve-main {
	flex: 1 0 auto;
}

/* ---------- Side navigation (header template part) ---------- */

.ve-sidebar {
	position: relative;
	z-index: 40;
	background: var(--wp--preset--color--bordo);
	color: #fff;
}

.ve-sidebar a {
	color: inherit;
}

.ve-sidebar .ve-sidebar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--ve-topbar);
	padding-inline: var(--ve-gutter);
}

.ve-sidebar .ve-sidebar__inner > * {
	margin-block: 0;
}

.ve-sidebar .ve-nav--desktop,
.ve-sidebar .ve-sidebar__foot {
	display: none;
}

/* Brand */
.ve-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
	color: #fff;
}

.ve-brand__mark {
	flex: none;
	width: 1.9rem;
	height: auto;
}

.ve-brand__text {
	display: flex;
	flex-direction: column;
}

.ve-brand__name {
	font-family: var(--wp--preset--font-family--bodoni);
	font-size: 1.3rem;
	line-height: 1;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	margin-right: -0.36em;
}

.ve-brand__sub {
	margin-top: 0.5rem;
	font-size: 0.55rem;
	line-height: 1;
	letter-spacing: 0.37em;
	text-transform: uppercase;
	color: var(--ve-on-dark);
}

/* Navigation: shared */
.ve-nav .wp-block-navigation-item__content {
	text-decoration: none;
}

/* Navigation: desktop column, numbered */
.ve-nav--desktop .wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	counter-reset: ve-nav;
	scroll-target-group: auto;
}

.ve-nav--desktop .wp-block-navigation-item {
	counter-increment: ve-nav;
	color: var(--ve-on-dark-soft);
	transition: color 0.35s var(--ve-ease);
}

.ve-nav--desktop .ve-menu-contact {
	display: none;
}

.ve-nav--desktop .wp-block-navigation-item__content {
	display: flex;
	align-items: baseline;
	gap: 0.95rem;
	padding-block: 0.3rem;
	font-family: var(--wp--preset--font-family--bodoni);
	font-size: clamp(1.5rem, 0.95rem + 0.85vw, 2rem);
	line-height: 1.2;
}

.ve-nav--desktop .wp-block-navigation-item__content::before {
	content: counter(ve-nav, decimal-leading-zero);
	min-width: 1.35rem;
	font-family: var(--wp--preset--font-family--hanken);
	font-size: 0.66rem;
	letter-spacing: 0.12em;
	color: rgb(255 255 255 / 0.45);
	transform: translateY(-0.65em);
}

.ve-nav--desktop .wp-block-navigation-item__label {
	position: relative;
}

.ve-nav--desktop .wp-block-navigation-item__label::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.04em;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--ve-ease);
}

.ve-nav--desktop .wp-block-navigation-item:hover,
.ve-nav--desktop .wp-block-navigation-item:focus-within,
.ve-nav--desktop .wp-block-navigation-item:has(> a[aria-current="true"]),
.ve-nav--desktop .wp-block-navigation-item:has(> a:is(:target-current, .is-current)) {
	color: #fff;
}

.ve-nav--desktop .wp-block-navigation-item:hover .wp-block-navigation-item__label::after,
.ve-nav--desktop a[aria-current="true"] .wp-block-navigation-item__label::after,
.ve-nav--desktop a:is(:target-current, .is-current) .wp-block-navigation-item__label::after {
	transform: scaleX(1);
}

/* Navigation: mobile overlay */
.ve-nav--mobile .wp-block-navigation__responsive-container-open {
	color: #fff;
	padding: 0.5rem;
	margin-right: -0.5rem;
}

.ve-nav--mobile .wp-block-navigation__responsive-container-open svg {
	width: 30px;
	height: 30px;
}

.ve-nav--mobile .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem var(--ve-gutter) 2.5rem;
}

.ve-nav--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4.5rem;
	align-items: flex-start;
}

.ve-nav--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.35rem;
	align-items: flex-start;
}

.ve-nav--mobile .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--bodoni);
	font-size: clamp(2rem, 1.4rem + 3vw, 2.75rem);
	line-height: 1.2;
}

.ve-nav--mobile .wp-block-navigation__responsive-container-close svg {
	width: 30px;
	height: 30px;
}

/* Sidebar footer */
.ve-sidebar__foot .wp-block-buttons {
	margin: 0;
}

.ve-sidebar__foot .wp-block-button,
.ve-sidebar__foot .wp-block-button__link {
	width: 100%;
}

.ve-sidebar .ve-sidebar__meta {
	margin-block-start: 1.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	color: var(--ve-on-dark-soft);
}

/* Mobile and tablet: sticky top bar */
@media (max-width: 1023.98px) {
	.ve-sidebar {
		position: sticky;
		top: var(--ve-bar);
	}

	.ve-section {
		scroll-margin-top: calc(var(--ve-topbar) + var(--ve-bar));
	}
}

@media (max-width: 600px) {
	.admin-bar .ve-sidebar {
		top: 0;
	}
}

/* Desktop: fixed column on the left */
@media (min-width: 1024px) {
	.ve-sidebar {
		position: fixed;
		top: var(--ve-bar);
		bottom: 0;
		left: 0;
		width: var(--ve-sidebar-w);
		overflow-y: auto;
		scrollbar-width: none;
		box-shadow: inset -1px 0 0 rgb(255 255 255 / 0.08);
	}

	.ve-sidebar .ve-sidebar__inner {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		min-height: 100%;
		padding: clamp(2rem, 5.5vh, 3.25rem) clamp(1.75rem, 2.3vw, 2.75rem);
	}

	.ve-sidebar .ve-nav--desktop {
		display: flex;
		margin-block: auto;
		padding-block: 2.5rem;
	}

	.ve-sidebar .ve-sidebar__foot {
		display: block;
	}

	.ve-sidebar .ve-nav--mobile {
		display: none;
	}

	.ve-brand__mark {
		width: 2.2rem;
	}

	.ve-brand__name {
		font-size: 1.45rem;
	}

	.ve-brand__sub {
		font-size: 0.58rem;
	}

	.ve-content {
		min-height: calc(100svh - var(--ve-bar));
		margin-inline-start: var(--ve-sidebar-w);
	}
}

/* ---------- Block styles ---------- */

.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--bodoni);
	font-style: italic;
	font-size: 1.125rem;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--wp--preset--color--bordo);
}

.is-style-label {
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

.is-style-lead {
	max-width: 42rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.65;
	color: var(--wp--preset--color--slate);
}

.is-style-statement {
	font-family: var(--wp--preset--font-family--bodoni);
	font-style: italic;
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
	line-height: 1.3;
	color: var(--wp--preset--color--bordo);
}

:root .is-style-sans {
	font-family: var(--wp--preset--font-family--hanken);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
}

.is-style-card {
	position: relative;
	padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	transition: border-color 0.45s var(--ve-ease), box-shadow 0.45s var(--ve-ease);
}

.is-style-card:hover {
	border-color: var(--ve-rule);
	box-shadow: 0 1.75rem 3rem -2.25rem rgb(18 26 40 / 0.35);
}

.is-style-card > .is-style-eyebrow + h3 {
	margin-block-start: 0.6rem;
}

.is-style-card > h3 + .is-style-label {
	margin-block-start: 0.6rem;
}

.is-style-rule {
	position: relative;
	padding-top: 1.6rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.is-style-rule::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 3rem;
	height: 1px;
	background: var(--wp--preset--color--bordo);
	transition: width 0.7s var(--ve-ease);
}

.is-style-rule:hover::before {
	width: 100%;
}

.is-style-rule > h3 + p {
	margin-block-start: 0.85rem;
}

/* Buttons */
.wp-block-button__link {
	transition: background-color 0.35s var(--ve-ease), color 0.35s var(--ve-ease), border-color 0.35s var(--ve-ease);
}

:root .wp-block-button.is-style-outline > .wp-block-button__link {
	padding: 1.05rem 1.75rem;
	border: 1px solid currentColor;
	background: transparent;
	color: var(--wp--preset--color--bordo);
}

:root .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--bordo);
	background: var(--wp--preset--color--bordo);
	color: #fff;
}

:root .ve-dark .wp-block-button.is-style-outline > .wp-block-button__link,
:root .ve-sidebar .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: rgb(255 255 255 / 0.55);
	color: #fff;
}

:root .ve-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover,
:root .ve-sidebar .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: #fff;
	background: #fff;
	color: var(--wp--preset--color--bordo);
}

:root .wp-block-button.is-style-light > .wp-block-button__link {
	border-color: #fff;
	background: #fff;
	color: var(--wp--preset--color--bordo);
}

:root .wp-block-button.is-style-light > .wp-block-button__link:hover {
	border-color: #fff;
	background: transparent;
	color: #fff;
}

/* ---------- Dark surfaces ---------- */

.ve-dark {
	color: var(--ve-on-dark);
}

.ve-dark :is(h1, h2, h3, h4, h5, h6) {
	color: #fff;
}

.ve-dark .is-style-eyebrow,
.ve-dark .is-style-statement {
	color: #fff;
}

.ve-dark .is-style-label,
.ve-dark .is-style-lead {
	color: var(--ve-on-dark);
}

.ve-dark a:not(.wp-element-button) {
	color: #fff;
}

/* ---------- Sections ---------- */

.ve-section {
	position: relative;
	padding: var(--ve-section-y) var(--ve-gutter);
}

.ve-wrap {
	max-width: var(--ve-wide);
	margin-inline: auto;
}

.ve-wrap > .is-style-eyebrow + :is(h1, h2),
.ve-wrap > .is-style-label + .is-style-eyebrow {
	margin-block-start: 0.85rem;
}

.ve-wrap > h2 {
	max-width: 22ch;
}

.ve-wrap > :is(h1, h2) + .is-style-lead {
	margin-block-start: 1.5rem;
}

.ve-wrap > :is(.ve-grid, .ve-steps, .is-style-card, .ve-panel, .wp-block-columns) {
	margin-block-start: var(--wp--preset--spacing--60);
}

.ve-wrap > .is-style-eyebrow + .wp-block-columns {
	margin-block-start: 1.75rem;
}

.ve-wrap > .is-style-card + .ve-grid {
	margin-block-start: var(--wp--preset--spacing--30);
}

.ve-wrap > .ve-panel + .ve-grid {
	margin-block-start: var(--wp--preset--spacing--60);
}

/* Hero */
.ve-hero {
	display: grid;
	align-content: center;
	min-height: calc(100svh - var(--ve-bar) - 7.5rem);
	padding-block: clamp(4rem, 2rem + 8vh, 8.5rem) clamp(3rem, 2rem + 4vh, 5rem);
	overflow: hidden;
}

.ve-hero::before {
	content: "";
	position: absolute;
	top: 12%;
	right: -5%;
	width: clamp(16rem, 34vw, 40rem);
	aspect-ratio: 44 / 36;
	background: var(--wp--preset--color--bordo);
	-webkit-mask: url("../img/v-mark.svg") center / contain no-repeat;
	mask: url("../img/v-mark.svg") center / contain no-repeat;
	opacity: 0.05;
	pointer-events: none;
}

.ve-hero .ve-wrap {
	position: relative;
	width: 100%;
}

.ve-hero .is-style-eyebrow {
	font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem);
}

.ve-hero .ve-hero__title {
	max-width: 12.5ch;
	margin-block-start: 1.25rem;
	letter-spacing: -0.02em;
	line-height: 1;
}

.ve-hero .ve-hero__row {
	margin-block-start: var(--wp--preset--spacing--50);
	gap: 2rem;
}

/* Strip under the hero */
.ve-strip {
	padding-inline: var(--ve-gutter);
	border-top: 1px solid var(--ve-rule);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ve-strip .ve-strip__row {
	max-width: var(--ve-wide);
	margin-inline: auto;
	gap: 0;
}

.ve-strip .ve-strip__item {
	padding-block: 1.6rem;
}

.ve-strip .ve-strip__item + .ve-strip__item {
	padding-inline-start: clamp(1.5rem, 1rem + 2vw, 3rem);
	border-inline-start: 1px solid var(--wp--preset--color--line);
}

.ve-strip .ve-strip__text {
	margin-block-start: 0.35rem;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}

@media (max-width: 781.98px) {
	.ve-strip .ve-strip__item + .ve-strip__item {
		padding-inline-start: 0;
		border-inline-start: 0;
		border-top: 1px solid var(--wp--preset--color--line);
	}
}

/* Founder */
.ve-wrap .ve-founder {
	gap: clamp(2.5rem, 1rem + 5vw, 6rem);
}

.ve-portrait {
	position: relative;
	isolation: isolate;
	max-width: 22rem;
	margin: 0 1.25rem 1.25rem 0;
}

.ve-portrait img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	filter: grayscale(1);
}

.ve-portrait::after {
	content: "";
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	z-index: -1;
	border: 1px solid var(--ve-rule);
}

.ve-founder__body > h2.ve-founder__name {
	margin-block-start: 0;
}

.ve-founder__body > .ve-founder__role {
	margin-block-start: 0.6rem;
	margin-block-end: 2rem;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--ink);
}

.ve-founder__body > p:not([class]) {
	max-width: 40rem;
}

.ve-founder__body > .is-style-statement {
	max-width: 30ch;
	margin-block-start: 2.25rem;
}

.ve-link a {
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.15em;
	transition: color 0.3s var(--ve-ease);
}

/* Services */
.ve-service-main .wp-block-columns {
	gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}

.ve-service-main__title {
	font-size: var(--wp--preset--font-size--xx-large);
}

.ve-service-main__title + .is-style-label {
	margin-block-start: 0.85rem;
}

/* Why Vintage: panel */
.ve-panel {
	position: relative;
	overflow: hidden;
	padding: clamp(2rem, 1rem + 4vw, 4.75rem);
}

.ve-panel::after {
	content: "";
	position: absolute;
	right: -3rem;
	bottom: -4rem;
	width: clamp(14rem, 26vw, 24rem);
	aspect-ratio: 44 / 36;
	background: #fff;
	-webkit-mask: url("../img/v-mark.svg") center / contain no-repeat;
	mask: url("../img/v-mark.svg") center / contain no-repeat;
	opacity: 0.05;
	pointer-events: none;
}

.ve-panel > .ve-panel__title {
	margin-block-start: 0.85rem;
	font-size: var(--wp--preset--font-size--xx-large);
}

.ve-panel > .ve-panel__text {
	margin-block-start: 2rem;
	gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}

.ve-panel > .ve-pillars {
	position: relative;
	margin-block-start: 2.75rem;
	padding-block-start: 2rem;
	border-top: 1px solid var(--ve-on-dark-line);
}

.ve-pillars > p {
	margin: 0;
	padding-inline-start: 1rem;
	border-inline-start: 1px solid var(--wp--preset--color--bordo-vivo);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #fff;
}

/* Private markets */
.ve-pm .ve-pm__head {
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--ve-on-dark-line);
	font-family: var(--wp--preset--font-family--hanken);
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gris);
}

.ve-pm .ve-pm__head + * {
	margin-block-start: 1.25rem;
}

.ve-list {
	padding: 0;
	list-style: none;
}

.ve-list li {
	padding-block: 0.6rem;
	border-bottom: 1px solid var(--ve-on-dark-line);
	color: #fff;
	line-height: 1.5;
}

.ve-list li:first-child {
	padding-top: 0;
}

.ve-pm .is-style-statement + p {
	margin-block-start: 1rem;
	font-size: 0.9375rem;
}

/* Approach */
.ve-steps > .ve-step {
	display: flex;
	flex-direction: column;
	padding: 1.75rem 1.5rem 1.5rem;
	background: var(--wp--preset--color--snow);
	border: 1px solid var(--wp--preset--color--line);
	transition: background-color 0.45s var(--ve-ease), border-color 0.45s var(--ve-ease);
}

.ve-steps > .ve-step:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--ve-rule);
}

.ve-steps > .ve-step--accent,
.ve-steps > .ve-step--accent:hover {
	border-color: var(--wp--preset--color--bordo);
	background: var(--wp--preset--color--bordo);
}

.ve-step > * {
	margin-block-start: 0;
}

.ve-step .ve-step__num {
	font-family: var(--wp--preset--font-family--bodoni);
	font-style: italic;
	font-size: 1.9rem;
	line-height: 1;
	color: var(--wp--preset--color--bordo);
}

.ve-step > .ve-step__num + h3 {
	margin-block-start: 1.25rem;
}

.ve-step .ve-step__text {
	margin-block: 0.6rem 1.75rem;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.ve-step > .ve-step__deliverable {
	margin-block-start: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.ve-step__deliverable > * {
	margin: 0;
}

.ve-step .ve-step__out {
	margin-block-start: 0.3rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--wp--preset--color--ink);
}

@media (min-width: 782px) {
	.ve-step .ve-step__out {
		min-height: 2.9em;
	}
}

@media (max-width: 781.98px) {
	.ve-hero .ve-hero__cta,
	.ve-perspectives .wp-block-buttons {
		justify-content: flex-start;
	}
}

/* Perspectives */
.ve-perspectives {
	padding-block: var(--wp--preset--spacing--60);
	border-top: 1px solid var(--wp--preset--color--line);
}

.ve-perspectives .ve-perspectives__row {
	gap: 2rem;
	margin-block-start: 0;
}

.ve-perspectives .ve-perspectives__text {
	max-width: 32ch;
	margin-block-start: 0.85rem;
	font-family: var(--wp--preset--font-family--bodoni);
	font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.2rem);
	line-height: 1.28;
	color: var(--wp--preset--color--ink);
}

/* Contact */
.ve-cta .ve-wrap {
	max-width: 50rem;
	text-align: center;
}

.ve-cta .ve-wrap::before {
	content: "";
	display: block;
	width: 2.75rem;
	aspect-ratio: 44 / 36;
	margin: 0 auto 2.25rem;
	background: #fff;
	-webkit-mask: url("../img/v-mark.svg") center / contain no-repeat;
	mask: url("../img/v-mark.svg") center / contain no-repeat;
}

.ve-cta .ve-wrap > h2 {
	max-width: none;
	font-size: clamp(2.6rem, 1.5rem + 4vw, 5rem);
}

.ve-cta .ve-wrap > .is-style-lead {
	margin-inline: auto;
}

.ve-cta .ve-wrap > .wp-block-buttons {
	margin-block-start: 2.5rem;
	gap: 0.75rem;
}

.ve-cta .ve-wrap > .ve-cta__note {
	margin-block-start: 2.25rem;
	font-size: 1.0625rem;
	color: var(--ve-on-dark-soft);
}

/* Footer */
.ve-footer {
	padding: 1.75rem var(--ve-gutter);
	background: var(--wp--preset--color--bordo-oscuro);
	color: var(--ve-on-dark-soft);
	font-size: 0.8125rem;
}

.ve-footer .ve-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	max-width: var(--ve-wide);
	margin-inline: auto;
}

.ve-footer .ve-footer__inner > * {
	margin: 0;
}

.ve-footer a {
	color: inherit;
	text-decoration-color: rgb(255 255 255 / 0.35);
	transition: color 0.3s var(--ve-ease);
}

.ve-footer a:hover {
	color: #fff;
}

/* Inner pages */
.ve-page {
	padding: var(--wp--preset--spacing--70) var(--ve-gutter);
}

.ve-page > .is-style-lead {
	max-width: var(--wp--style--global--content-size, 720px);
}

.ve-page > .ve-page__title {
	margin-block-end: 2.5rem;
}

.ve-prose h2 {
	margin-block-start: 2.75rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.ve-prose > * + * {
	margin-block-start: 1.1rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
	@keyframes ve-rise {
		from {
			opacity: 0;
			transform: translate3d(0, 1.75rem, 0);
		}
	}

	/* Hero entrance on load */
	.ve-hero .ve-wrap > * {
		animation: ve-rise 1.1s var(--ve-ease) backwards;
	}

	.ve-hero .ve-wrap > :nth-child(2) {
		animation-delay: 0.12s;
	}

	.ve-hero .ve-wrap > :nth-child(3) {
		animation-delay: 0.24s;
	}

	.ve-hero .ve-wrap > :nth-child(4) {
		animation-delay: 0.42s;
	}

	/* Reveal on scroll: decorative, progressive enhancement only */
	@supports ((animation-timeline: view()) and (animation-range: entry)) {
		.ve-section:not(.ve-hero) .ve-wrap > :is(p, h2, h3, .wp-block-buttons, .is-style-card),
		.ve-grid > *,
		.ve-steps > *,
		.ve-founder > .wp-block-column > *,
		.ve-panel > *,
		.ve-perspectives__row > .wp-block-column > * {
			animation: ve-rise auto linear backwards;
			animation-timeline: view();
			animation-range: entry 0% entry 75%;
		}

		.ve-grid > :nth-child(3n + 2),
		.ve-steps > :nth-child(4n + 2) {
			animation-range: entry 8% entry 85%;
		}

		.ve-grid > :nth-child(3n),
		.ve-steps > :nth-child(4n + 3) {
			animation-range: entry 16% entry 95%;
		}

		.ve-steps > :nth-child(4n) {
			animation-range: entry 24% entry 100%;
		}
	}

	/* Reading progress along the side navigation */
	@supports (animation-timeline: scroll()) {
		@keyframes ve-progress-x {
			from {
				transform: scaleX(0);
			}
			to {
				transform: scaleX(1);
			}
		}

		@keyframes ve-progress-y {
			from {
				transform: scaleY(0);
			}
			to {
				transform: scaleY(1);
			}
		}

		.ve-sidebar::after {
			content: "";
			position: absolute;
			left: 0;
			right: 0;
			bottom: 0;
			height: 2px;
			background: rgb(255 255 255 / 0.85);
			transform-origin: left;
			pointer-events: none;
			animation: ve-progress-x auto linear both;
			animation-timeline: scroll(root);
		}

		@media (min-width: 1024px) {
			.ve-sidebar::after {
				position: fixed;
				top: var(--ve-bar);
				bottom: 0;
				left: calc(var(--ve-sidebar-w) - 2px);
				right: auto;
				width: 2px;
				height: auto;
				transform-origin: top;
				animation-name: ve-progress-y;
			}
		}
	}
}
