:root {
	--ashv-page: 1320px;
	--ashv-gutter: var(--wp--style--root--padding-left, 24px);
	--ashv-header-h: 80px;
	--ashv-ease: var(--wp--custom--ease--out);
	--ashv-ease-io: var(--wp--custom--ease--in-out);
	--ashv-ease-back: var(--wp--custom--ease--back);
	--ashv-r-button: var(--wp--custom--radius--button);
	--ashv-slant: 12px;
	--ashv-r-panel: var(--wp--custom--radius--panel);
	--ashv-r-card: var(--wp--custom--radius--card);
	--ashv-r-inner: var(--wp--custom--radius--inner);
	--ashv-edge: var(--wp--custom--edge--default);
	--ashv-edge-hover: var(--wp--custom--edge--hover);
	--ashv-shadow: var(--wp--custom--shadow--soft);
	--ashv-shadow-hover: var(--wp--custom--shadow--soft-hover);
	--ashv-shadow-deep: var(--wp--custom--shadow--deep);
	--ashv-shadow-deep-hover: var(--wp--custom--shadow--deep-hover);
	--ashv-section-gap: var(--wp--preset--spacing--70);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ashv-header-h) + 16px);
}

html.lenis-smooth {
	scroll-behavior: auto;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

.wp-site-blocks > * {
	margin-block: 0;
}

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

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

p {
	text-wrap: pretty;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--charcoal);
	outline-offset: 3px;
	border-radius: 6px;
}

/* The slanted clip hides a normal outline, so buttons show focus inside their shape. */
:is(.ashv-btn, .ashv-ghost):focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 3px var(--wp--preset--color--charcoal), inset 0 0 0 5px var(--wp--preset--color--white);
}

.ashv-on-dark :focus-visible {
	outline-color: var(--wp--preset--color--limestone);
}

.ashv-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ashv-icon {
	width: 1em;
	height: 1em;
	flex: none;
}

.ashv-wrap {
	width: min(100% - 2 * var(--ashv-gutter), var(--ashv-page));
	margin-inline: auto;
}

.ashv-section {
	margin-block: var(--ashv-section-gap) 0;
}

.ashv-panel {
	position: relative;
	border-radius: var(--ashv-r-panel);
	overflow: hidden;
	isolation: isolate;
	padding: clamp(32px, 5vw, 72px);
}

.ashv-mark {
	position: absolute;
	z-index: -1;
	pointer-events: none;
	width: min(560px, 75vw);
	height: auto;
	aspect-ratio: 156 / 134;
	color: rgb(255 255 255 / 0.09);
}

/* Buttons hold their label and arrow together. Hover effects (ashv-fx-*) live in button-effects.css. */
.ashv-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 56px;
	padding: 0 calc(20px + var(--ashv-slant)) 0 calc(24px + var(--ashv-slant));
	border-radius: var(--ashv-r-button);
	clip-path: polygon(var(--ashv-slant) 0, 100% 0, calc(100% - var(--ashv-slant)) 100%, 0 100%);
	font: italic 600 16px/1 var(--wp--preset--font-family--button);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
	transition: transform 160ms var(--ashv-ease), background-color 200ms var(--ashv-ease), color 200ms var(--ashv-ease);
}

/* On a phone a long label wraps to two lines instead of pushing the page wider. */
.ashv-btn:not(.ashv-btn--sm) {
	max-width: 100%;
	height: auto;
	min-height: 56px;
	padding-block: 14px;
	line-height: 1.15;
	text-align: center;
	white-space: normal;
}

@media (min-width: 640px) {
	.ashv-btn:not(.ashv-btn--sm) {
		height: 56px;
		min-height: 0;
		padding-block: 0;
		white-space: nowrap;
	}
}

.ashv-btn__arrow {
	position: relative;
	width: 20px;
	height: 20px;
	transition: translate 300ms var(--ashv-ease);
}

.ashv-btn--ember {
	background: var(--wp--preset--color--ember);
	color: var(--wp--preset--color--white);
}

.ashv-btn--light {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ember-600);
}

.ashv-btn--charcoal {
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--limestone);
}

.ashv-btn--sm {
	--ashv-slant: 10px;
	height: 48px;
	padding: 0 calc(16px + var(--ashv-slant)) 0 calc(18px + var(--ashv-slant));
	gap: 10px;
	font-size: 15px;
}

.ashv-btn--sm .ashv-btn__arrow {
	width: 18px;
	height: 18px;
}

.ashv-btn:active {
	transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
	.ashv-btn:hover .ashv-btn__arrow {
		translate: 4px 0;
	}
}

.ashv-ghost {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 56px;
	padding: 0 calc(22px + var(--ashv-slant));
	border-radius: var(--ashv-r-button);
	clip-path: polygon(var(--ashv-slant) 0, 100% 0, calc(100% - var(--ashv-slant)) 100%, 0 100%);
	background: rgb(243 240 231 / 0.14);
	color: var(--wp--preset--color--limestone);
	font: italic 600 16px/1 var(--wp--preset--font-family--button);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 250ms var(--ashv-ease), color 250ms var(--ashv-ease), transform 160ms var(--ashv-ease);
}

.ashv-ghost:active {
	transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
	.ashv-ghost:hover {
		background: var(--wp--preset--color--limestone);
		color: var(--wp--preset--color--charcoal);
	}
}

.ashv-link {
	--ashv-link-chip-w: 46px;
	--ashv-link-chip-h: 36px;
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	margin-inline-start: -16px;
	padding: 14px 66px 14px 16px;
	font-family: var(--wp--preset--font-family--button);
	font-size: 14px;
	font-style: italic;
	font-weight: 600;
	letter-spacing: 0.03em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	-webkit-tap-highlight-color: transparent;
	transition: color 200ms var(--ashv-ease);
}

.ashv-link__chip {
	position: absolute;
	z-index: -1;
	top: 50%;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	box-sizing: border-box;
	width: var(--ashv-link-chip-w);
	height: var(--ashv-link-chip-h);
	padding-right: 8px;
	background: var(--wp--preset--color--ember);
	color: var(--wp--preset--color--white);
	translate: 0 -50%;
	clip-path: polygon(var(--ashv-slant) 0, 100% 0, calc(100% - var(--ashv-slant)) 100%, 0 100%);
	transition: width 450ms var(--ashv-ease-io), height 450ms var(--ashv-ease-io);
}

.ashv-link:is(:active, :focus-visible) {
	color: var(--wp--preset--color--white);
}

.ashv-link:is(:active, :focus-visible) .ashv-link__chip {
	width: 100%;
	height: 100%;
}

@media (hover: hover) and (pointer: fine) {
	.ashv-link:hover {
		color: var(--wp--preset--color--white);
	}

	.ashv-link:hover .ashv-link__chip {
		width: 100%;
		height: 100%;
	}
}

.ashv-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

/* Soft surfaces: a hairline edge and a shadow that deepens on hover. */
.ashv-surface {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--ashv-edge);
	box-shadow: var(--ashv-shadow);
	transition: box-shadow 300ms var(--ashv-ease), border-color 300ms var(--ashv-ease), transform 300ms var(--ashv-ease);
}

@media (hover: hover) and (pointer: fine) {
	.ashv-surface:hover {
		box-shadow: var(--ashv-shadow-hover);
		border-color: var(--ashv-edge-hover);
		transform: translateY(-2px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Stripes mark that ends a heading in place of a full stop. */
.ashv-end:not(:has(.ashv-lines))::after,
.ashv-end .ashv-line:last-child .ashv-line__in::after {
	content: "";
	display: inline-block;
	width: 0.52em;
	height: 0.72em;
	margin-inline-start: 0.14em;
	background: var(--ashv-end-color, var(--wp--preset--color--ember));
	-webkit-mask: url("../images/heading-end.svg") center / contain no-repeat;
	mask: url("../images/heading-end.svg") center / contain no-repeat;
}

.ashv-end .ashv-line:last-child .ashv-line__in {
	white-space: nowrap;
}


.ashv-motion .ashv-end:not(.is-in)::after,
.ashv-motion .ashv-end:not(.is-in) .ashv-line__in::after {
	opacity: 0;
}

.ashv-motion .ashv-end:not(.ashv-in-lines).is-in::after {
	animation: ashv-end-in 600ms var(--ashv-ease) 500ms backwards;
}

@keyframes ashv-end-in {
	from { opacity: 0; translate: 0 0.25em; scale: 0.6; }
}

/* A photo with both a min-height and an aspect-ratio would otherwise size its grid column to height × ratio, wider than a phone. */
:is(.ashv-split__media, .ashv-steps__media, .ashv-ab-why__photo, .ashv-ab-choose__photo, .ashv-sv-fra__photo, .ashv-sv-doors__photo, .ashv-sv-training__photo, .ashv-sp-different__photo, .ashv-sp-other__photo) {
	width: 100%;
	min-width: 0;
}
