/* Component library. Colors, type, and spacing come from theme.json. */

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

.icon {
	display: block;
	height: auto;
	max-width: none;
}

/* One focus ring for the interactive components. The is-focus class forces it for review. */
.button:focus-visible,
.button.is-focus,
.text-link:focus-visible,
.text-link.is-focus,
.nav-link:focus-visible,
.nav-link.is-focus,
.menu-toggle:focus-visible,
.lane-card:focus-visible,
.lane-card.is-focus,
.service-chip:focus-visible,
.share-links a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-brand);
	outline-offset: 2px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--space-2);
	border-style: solid;
	border-width: var(--wp--custom--border-width--small);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.button.primary,
.button.primary-arrow {
	background: var(--wp--preset--color--accent-hover);
	border-color: var(--wp--preset--color--accent-hover);
	color: var(--wp--preset--color--base-background);
	border-radius: var(--wp--custom--radius--medium);
	padding-block: var(--wp--preset--spacing--space-3);
	padding-inline: var(--wp--preset--spacing--space-5);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: 1.4;
}

.button.primary-arrow:hover,
.button.primary-arrow.is-hover {
	gap: var(--wp--preset--spacing--space-3);
}

.button.primary:hover,
.button.primary.is-hover,
.button.primary-arrow:hover,
.button.primary-arrow.is-hover {
	background: var(--wp--preset--color--accent-brand);
	border-color: var(--wp--preset--color--accent-brand);
	color: var(--wp--preset--color--base-background);
}

.button.secondary {
	background: var(--wp--preset--color--accent-brand);
	border-color: var(--wp--preset--color--accent-brand);
	color: var(--wp--preset--color--base-background);
	border-radius: var(--wp--custom--radius--secondary);
	padding-block: calc(var(--wp--preset--spacing--space-2) + var(--wp--preset--spacing--space-1));
	padding-inline: var(--wp--preset--spacing--space-4);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.01em;
}

.button.secondary:hover,
.button.secondary.is-hover {
	background: var(--wp--preset--color--accent-hover);
	border-color: var(--wp--preset--color--accent-hover);
	color: var(--wp--preset--color--base-background);
}

.button.secondary.full {
	width: 100%;
	border-radius: var(--wp--custom--radius--small);
}

.button.read-more {
	background: var(--tone, #b6d7f6);
	border-color: transparent;
	color: var(--wp--preset--color--contrast-strongest);
	border-radius: var(--wp--custom--radius--secondary);
	padding-block: var(--wp--preset--spacing--space-2);
	padding-inline: var(--wp--preset--spacing--space-3);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 1.6;
}

.button.read-more.blue { --tone: #b6d7f6; --tone-hover: #81b8ed; }
.button.read-more.orange { --tone: #fad5ac; --tone-hover: #f4b46b; }
.button.read-more.green { --tone: #afe3a3; --tone-hover: #83c175; }

.button.read-more:hover,
.button.read-more.is-hover {
	background: var(--tone-hover, #81b8ed);
	color: var(--wp--preset--color--contrast-strongest);
}

.text-link {
	display: inline-flex;
	align-items: center;
	color: var(--wp--preset--color--contrast-strongest);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	transition: gap 0.2s ease, color 0.2s ease;
}

.text-link.arrow {
	gap: var(--wp--preset--spacing--space-2);
	color: var(--wp--preset--color--accent-brand);
}

.text-link.arrow:hover,
.text-link.arrow.is-hover {
	gap: var(--wp--preset--spacing--space-3);
	color: var(--wp--preset--color--accent-brand);
}

.text-link.underline {
	font-size: var(--wp--preset--font-size--large);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.text-link.underline:hover,
.text-link.underline.is-hover {
	color: var(--wp--preset--color--accent-hover);
}

.hero-quote {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-self: start;
	gap: var(--wp--preset--spacing--space-2);
	width: max-content;
	max-width: min(100%, 320px);
	margin: 0;
	padding-block: var(--wp--preset--spacing--space-3);
	padding-inline: var(--wp--preset--spacing--space-4);
	border-radius: var(--wp--custom--radius--small);
	background: #fdf1d7;
	box-shadow: var(--wp--preset--shadow--card-soft);
	font-family: var(--wp--preset--font-family--body);
}

.component-library .specimen > .hero-quote {
	width: max-content;
	max-width: min(100%, 320px);
}

.hero-quote.blue,
.component-library .specimen > .hero-quote.blue {
	max-width: min(100%, 292px);
	background: #dff0ff;
}

.hero-quote .quote,
.hero-quote .attribution {
	margin: 0;
}

.hero-quote .quote {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	font-style: italic;
	line-height: 1.4;
	color: var(--wp--preset--color--contrast-strongest);
}

.hero-quote .attribution {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 1.6;
	color: var(--wp--preset--color--contrast-medium);
}

.flat-fee {
	display: inline-flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--space-1);
	padding-block: var(--wp--preset--spacing--space-1);
	padding-inline: var(--wp--preset--spacing--space-3);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base-background);
	box-shadow: 0 1px 2px rgba(12, 12, 13, 0.1), 0 1px 2px rgba(12, 12, 13, 0.05);
	color: var(--wp--preset--color--accent-brand);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-5);
	line-height: 1.15;
}

.flat-fee .info {
	display: inline-flex;
}

.flat-fee .info .icon:last-child,
.flat-fee:hover .info .icon:first-child,
.flat-fee.is-hover .info .icon:first-child {
	display: none;
}

.flat-fee:hover .info .icon:last-child,
.flat-fee.is-hover .info .icon:last-child {
	display: block;
}

.flat-fee[data-tip] {
	cursor: help;
}

.flat-fee[data-tip]:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-hover);
	outline-offset: 2px;
}

/* The tip is moved to <body> and placed by tooltip.js, so it can never be clipped or leave the viewport. */
.flat-fee-tip {
	position: fixed;
	z-index: 1000;
	box-sizing: border-box;
	max-width: calc(100vw - 24px);
	padding: var(--wp--preset--spacing--space-3);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base-background);
	box-shadow: 0 16px 16px -8px rgba(12, 12, 13, 0.1), 0 4px 4px -4px rgba(12, 12, 13, 0.05), 0 0 0 1px rgba(12, 12, 13, 0.06);
	color: var(--wp--preset--color--contrast-strongest);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 1.6;
	text-align: left;
	white-space: normal;
	overflow-wrap: anywhere;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.flat-fee-tip[hidden] {
	display: none;
}

.flat-fee-tip.is-open {
	opacity: 1;
}

/* The arrow points at the pill; tooltip.js sets --arrow-x so it still does when the tip is nudged on screen. */
.flat-fee-tip::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: var(--arrow-x, 50%);
	width: 10px;
	height: 10px;
	margin-left: -5px;
	background: var(--wp--preset--color--base-background);
	transform: rotate(45deg);
}

.flat-fee-tip.is-below::after {
	top: -5px;
	bottom: auto;
}

@media (prefers-reduced-motion: reduce) {
	.flat-fee-tip {
		transition: none;
	}
}

.field {
	display: block;
	width: 100%;
}

.field input,
.field textarea {
	width: 100%;
	border: var(--wp--custom--border-width--small) solid var(--wp--preset--color--contrast-subtle);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base-background);
	padding-block: var(--wp--preset--spacing--space-2);
	padding-inline: var(--wp--preset--spacing--space-3);
	color: var(--wp--preset--color--contrast-strongest);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	line-height: 1.4;
}

.field input::placeholder,
.field textarea::placeholder {
	color: var(--wp--preset--color--contrast-strongest);
	opacity: 0.45;
}

.field:hover input,
.field:hover textarea,
.field.is-hover input,
.field.is-hover textarea {
	border-color: var(--wp--preset--color--accent-hover);
}

.field:hover input::placeholder,
.field:hover textarea::placeholder,
.field.is-hover input::placeholder,
.field.is-hover textarea::placeholder {
	opacity: 0.75;
}

.field input:focus,
.field textarea:focus,
.field.is-focus input,
.field.is-focus textarea {
	border-width: var(--wp--custom--border-width--main);
	border-color: var(--wp--preset--color--accent-hover);
	outline: none;
}

.field input:focus::placeholder,
.field textarea:focus::placeholder,
.field.is-focus input::placeholder,
.field.is-focus textarea::placeholder {
	opacity: 1;
}

.site-header {
	background: var(--wp--preset--color--base-background);
	box-shadow: var(--wp--preset--shadow--navbar);
}

.site-header .bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--space-6);
}

.site-header.desktop .bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	width: 100%;
	max-width: var(--content-box);
	min-width: 0;
	margin-inline: auto;
	padding-block: var(--wp--preset--spacing--space-4);
	padding-inline: var(--wp--custom--site--margin);
}

.site-header.desktop .links {
	position: relative;
	left: 15px;
	justify-self: center;
	min-width: 0;
}

.site-header.desktop .button {
	justify-self: end;
}

.site-header.mobile .bar {
	padding: var(--wp--preset--spacing--space-3);
}

.site-header .logo {
	display: inline-flex;
	text-decoration: none;
}

.site-header .links {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--space-6);
}

.nav-link {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--space-2);
	margin: 0;
	padding-block: var(--wp--preset--spacing--space-2);
	padding-inline: 0;
	border: 0;
	border-bottom: var(--wp--custom--border-width--small) solid transparent;
	background: transparent;
	color: var(--wp--preset--color--contrast-strongest);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.nav-link:hover,
.nav-link.is-hover,
.nav-link.is-current,
.dropdown.is-open > .nav-link {
	color: var(--wp--preset--color--accent-hover);
	border-bottom-color: var(--wp--preset--color--accent-hover);
}

.dropdown.is-open > .nav-link .icon,
.dropdown.is-open > .nav-toggle .icon {
	transform: rotate(180deg);
}

.site-header .dropdown:has(.nav-toggle) {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--space-1);
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast-strongest);
	cursor: pointer;
}

.dropdown.is-open > .nav-toggle,
.dropdown:hover > .nav-toggle {
	color: var(--wp--preset--color--accent-hover);
}

.site-header.desktop .dropdown {
	position: relative;
}

.site-header .panel {
	display: none;
}

.site-header.desktop .panel {
	position: absolute;
	z-index: 2;
	top: 100%;
	left: 0;
	min-width: 12rem;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--x-small);
	background: var(--wp--preset--color--base-background);
	box-shadow: var(--wp--preset--shadow--navbar);
}

.site-header .dropdown.is-open .panel,
.site-header.desktop.is-interactive .dropdown:hover .panel,
.site-header.desktop.is-interactive .dropdown:focus-within .panel {
	display: grid;
}

.site-header.mobile {
	width: min(375px, 100%);
	max-width: 100%;
}

.site-header.mobile .sheet {
	display: flex;
	flex-direction: column;
	padding-block: var(--wp--preset--spacing--space-3) var(--wp--preset--spacing--space-4);
	padding-inline: var(--wp--preset--spacing--space-4);
	background: var(--wp--preset--color--base-background);
}

.site-header.mobile .sheet[hidden] {
	display: none;
}

.site-header.mobile .nav-link {
	justify-content: space-between;
	width: 100%;
	padding-block: var(--wp--preset--spacing--space-3);
	border-bottom-color: transparent;
}

.site-header.mobile .nav-link:hover,
.site-header.mobile .nav-link.is-hover,
.site-header.mobile .nav-link.is-current,
.site-header.mobile .dropdown.is-open > .nav-link {
	color: var(--wp--preset--color--contrast-strongest);
	border-bottom-color: transparent;
}

.site-header.mobile .sheet > .nav-link,
.site-header.mobile .sheet > .dropdown {
	border-bottom: var(--wp--custom--border-width--small) solid var(--wp--preset--color--contrast-subtle);
}

.site-header.mobile .dropdown:has(.nav-toggle) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
}

.site-header.mobile .dropdown:has(.nav-toggle) > .nav-link {
	flex: 1;
}

.site-header.mobile .dropdown:has(.nav-toggle) > .panel {
	flex: 1 0 100%;
}

.site-header.mobile .panel:has(.icon) {
	padding-bottom: var(--wp--preset--spacing--space-2);
}

.site-header.mobile .submenu-item:has(.icon) {
	box-sizing: border-box;
	min-height: 61px;
}

.site-header.mobile .submenu-item .icon {
	width: 24px;
	height: 24px;
}

.site-header.mobile .sheet > .button {
	margin-top: var(--wp--preset--spacing--space-4);
	margin-bottom: var(--wp--preset--spacing--space-2);
}

.menu-toggle {
	display: inline-flex;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.menu-toggle .close-icon,
.site-header.mobile.is-open .menu-toggle .open-icon {
	display: none;
}

.site-header.mobile.is-open .menu-toggle .close-icon {
	display: block;
}

.submenu-item {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--space-2);
	padding-block: var(--wp--preset--spacing--space-3);
	padding-inline: var(--wp--preset--spacing--space-3);
	background: var(--wp--preset--color--base-background);
	color: var(--wp--preset--color--contrast-strongest);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}

.submenu-item:hover,
.submenu-item.is-hover,
.submenu-item.is-current {
	background: var(--wp--preset--color--base-lighter);
	color: var(--wp--preset--color--accent-hover);
}

.submenu-item:focus-visible,
.submenu-item.is-focus {
	outline: 2px solid var(--wp--preset--color--accent-brand);
	outline-offset: -2px;
}

/* Service lane tone. It fills the lane card notch and the service chip cap. Tax is the default blue. */
.lane-card,
.service-chip {
	--lane-tone: #b6d7f6;
}

.lane-card.estate, .service-chip.estate { --lane-tone: #fad5ac; }
.lane-card.retirement, .service-chip.retirement { --lane-tone: #afe3a3; }
.lane-card.investment, .service-chip.investment { --lane-tone: #e29f99; }
.lane-card.risk, .service-chip.risk { --lane-tone: #bdf3ea; }
.lane-card.end-of-life, .service-chip.end-of-life { --lane-tone: #e6dc7e; }

.lane-card {
	--notch-width: 8rem;
	--notch-depth: 1.5rem;
	--notch-radius: calc((var(--notch-depth) / 2) + ((var(--notch-width) * var(--notch-width)) / (8 * var(--notch-depth))));
	--notch-center: calc(var(--notch-depth) - var(--notch-radius));
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--space-4);
	overflow: hidden;
	padding: var(--wp--preset--spacing--space-4);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base-background);
	box-shadow: var(--wp--preset--shadow--card);
	box-sizing: border-box;
	width: min(100%, 387px);
	min-height: 232px;
	color: inherit;
	text-align: center;
	text-decoration: none;
	transition: box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lane-card.retirement {
	justify-content: flex-end;
	gap: var(--wp--preset--spacing--space-3);
}

.lane-card > :not(.notch) {
	position: relative;
	z-index: 1;
}

.lane-card .notch {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	container-type: size;
}

.lane-card .notch::before {
	content: "";
	position: absolute;
	left: 50%;
	top: var(--notch-center);
	width: calc(var(--notch-radius) * 2);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--lane-tone);
	transform: translate(-50%, -50%);
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lane-card .copy {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--space-2);
}

.lane-card .title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast-strongest);
}

.lane-card .text,
.lane-card .text p {
	max-width: 22rem;
	color: var(--wp--preset--color--contrast-medium);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
	transition: color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.lane-card:hover,
.lane-card.is-hover {
	box-shadow: var(--wp--preset--shadow--card-soft);
}

.lane-card:hover .notch::before,
.lane-card.is-hover .notch::before {
	transform: translate(-50%, -50%) scale(calc((hypot(50cqw, 100cqh - var(--notch-center)) / var(--notch-radius)) * 1.04));
}

.lane-card:hover .text,
.lane-card.is-hover .text,
.lane-card:hover .text p,
.lane-card.is-hover .text p {
	color: var(--wp--preset--color--contrast-strongest);
}

.service-chip {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: var(--wp--preset--spacing--space-2);
	overflow: hidden;
	box-sizing: border-box;
	width: 158px;
	height: 178px;
	padding: var(--wp--preset--spacing--space-3);
	border-radius: 999px 999px var(--wp--custom--radius--small) var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base-background);
	box-shadow: var(--wp--preset--shadow--card);
	color: var(--wp--preset--color--accent-brand);
	text-align: center;
	text-decoration: none;
}

.service-chip .cap {
	position: absolute;
	top: 0;
	left: 1px;
	width: 155.847px;
	height: 65.5px;
	background: var(--lane-tone);
	pointer-events: none;
	-webkit-mask: url("../images/chips/cap.svg") center / 100% 100% no-repeat;
	mask: url("../images/chips/cap.svg") center / 100% 100% no-repeat;
	-webkit-mask-mode: alpha;
	mask-mode: alpha;
}

.service-chip .icon,
.service-chip .title {
	position: relative;
	z-index: 1;
}

.service-chip .title {
	font-family: var(--wp--preset--font-family--body);
	/* font-size: var(--wp--preset--font-size--medium); */
	font-size: 1rem;
	font-weight: 400;
	line-height: normal;
}

.service-chip.tax .title { width: 101px; }
.service-chip.estate .title { width: 126px; }
.service-chip.retirement .title { width: 146px; }
.service-chip.investment .title { width: 123px; }
.service-chip.risk .title { width: 144px; }
.service-chip.end-of-life .title { width: 94px; }

.case-card {
	--card: #dff0ff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--space-4);
	box-sizing: border-box;
	width: min(100%, 338px);
	min-height: 399px;
	padding: var(--wp--preset--spacing--space-5) var(--wp--preset--spacing--space-4);
	border-radius: var(--wp--custom--radius--small);
	background: var(--card);
	box-shadow: var(--wp--preset--shadow--card-soft);
	text-align: center;
}

.case-card.blue { --card: #dff0ff; }
.case-card.cream { --card: #fdf1d7; }
.case-card.green { --card: var(--wp--custom--color--mint); }

.case-card .top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--space-3);
	width: 100%;
}

/* Hexagon from the design. The wrapper carries the photo's tilt (blue -0.49deg, cream 0.25deg, green 0.44deg) and the two shadows; the mask lives on .shape so it can't clip them. */
.case-card .portrait {
	--tilt: 0deg;
	position: relative;
	display: block;
	width: 114px;
	height: 128px;
	flex: 0 0 auto;
	/* Figma lays the card out around the tilted hexagon's bounds, about 134px tall, so the card grows by the same 6px. */
	margin-block: 3px;
	transform: rotate(var(--tilt));
}

.case-card.blue .portrait { --tilt: -0.49deg; }
.case-card.cream .portrait { --tilt: 0.25deg; }
.case-card.green .portrait { --tilt: 0.44deg; }

/* Figma shadows: 0 4 4 -4 and 0 16 16 -8. A negative spread is an inset of the shape, and blur radius is twice the CSS blur's sigma. The shape is black at low alpha, so it needs no mask of its own. */
.case-card .portrait::before,
.case-card .portrait::after {
	content: "";
	position: absolute;
	background: url("../images/case-studies/hex-mask.svg") center / 100% 100% no-repeat;
	filter: brightness(0);
	pointer-events: none;
}

.case-card .portrait::before {
	inset: 4px;
	transform: translateY(4px);
	opacity: 0.05;
	filter: brightness(0) blur(2px);
}

.case-card .portrait::after {
	inset: 8px;
	transform: translateY(16px);
	opacity: 0.1;
	filter: brightness(0) blur(8px);
}

.case-card .portrait .shape {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	overflow: hidden;
	-webkit-mask: url("../images/case-studies/hex-mask.svg") center / 100% 100% no-repeat;
	mask: url("../images/case-studies/hex-mask.svg") center / 100% 100% no-repeat;
	-webkit-mask-mode: alpha;
	mask-mode: alpha;
}

.case-card .portrait img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.case-card .copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--space-2);
	width: 100%;
}

.case-card .quote,
.case-card .byline {
	margin: 0;
}

.case-card .quote {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast-strongest);
}

.case-card.green .quote {
	max-width: 15.5rem;
}

.case-card .byline {
	color: var(--wp--preset--color--contrast-medium);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 1.6;
}

.point-card {
	align-items: flex-start;
	width: auto;
	min-height: 0;
	text-align: start;
	padding-block-start: var(--wp--preset--spacing--space-5);
}

.point-card .title {
	margin: 0;
	font-size: var(--wp--preset--font-size--heading-3);
}

.point-card .text p {
	margin: 0 0 var(--wp--preset--spacing--space-3);
}

.point-card .text p:last-child {
	margin-bottom: 0;
}

.step-badge {
	position: relative;
	display: inline-grid;
	filter: drop-shadow(0 4px 2px rgba(12, 12, 13, 0.05)) drop-shadow(0 16px 16px rgba(12, 12, 13, 0.1));
}

.step-badge .glyphs {
	display: grid;
}

.step-badge .glyphs .icon {
	grid-area: 1 / 1;
	transition: opacity 0.4s ease;
}

.step-badge .glyphs .icon:last-child,
.step-badge.is-active .glyphs .icon:first-child {
	opacity: 0;
}

.step-badge.is-active .glyphs .icon:last-child {
	opacity: 1;
}

.step-badge.is-arriving {
	animation: step-arrive 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes step-arrive {
	0% { transform: scale(1); }
	50% { transform: scale(1.12); }
	100% { transform: scale(1); }
}

.step-badge .mark {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--accent-brand);
	font-family: var(--wp--preset--font-family--body);
	line-height: 1.4;
	text-align: center;
	transition: color 0.4s ease;
}

.step-badge .mark span {
	margin-bottom: calc(var(--wp--preset--spacing--space-1) * -1);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	letter-spacing: 0.2em;
}

.step-badge .mark strong {
	font-size: var(--wp--preset--font-size--heading-5);
	font-weight: 700;
}

.step-badge.is-active .mark {
	color: var(--wp--preset--color--base-background);
}

.share-links {
	display: flex;
	gap: var(--wp--preset--spacing--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.share-links a {
	display: inline-flex;
}

.footer-cta {
	display: flex;
	width: min(100%, 16rem);
	padding-block: var(--wp--preset--spacing--space-4);
	padding-inline: var(--wp--preset--spacing--space-3);
	border-radius: var(--wp--custom--radius--medium);
	background: linear-gradient(125deg, rgba(102, 102, 102, 0) 0%, rgba(54, 159, 117, 0.64) 100%);
	text-align: center;
}

.footer-cta__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--space-4);
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.footer-cta__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--base-lighter);
	outline-offset: 4px;
}

.footer-cta .button {
	opacity: 1;
}

.footer-cta.is-hover,
.footer-cta:hover {
	background: linear-gradient(125deg, rgba(54, 159, 117, 0) 0%, rgba(54, 159, 117, 0.64) 62%);
}

.footer-cta figure {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 9.25rem;
	height: 11.375rem;
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--small);
	background: #ebe9f3;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 1px 3px 1px rgba(0, 0, 0, 0.08);
}

.footer-cta img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 72%;
}

.footer-cta .copy {
	display: grid;
	gap: var(--wp--preset--spacing--space-2);
}

.footer-cta .title {
	margin: 0;
	color: var(--wp--preset--color--base-background);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-5);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.footer-cta .copy p:last-child {
	margin: 0;
	color: var(--wp--preset--color--base-subtle);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
	opacity: 0.64;
}

.footer-cta.is-hover .copy p:last-child,
.footer-cta:hover .copy p:last-child {
	color: var(--wp--preset--color--base-lighter);
	opacity: 1;
}

/* Fills the space behind the footer's rounded corners. White like most pages, cream where the section above the footer is cream. */
.site-footer-wrap {
	background: var(--wp--preset--color--base-background);
}

.page-story ~ .site-footer-wrap,
.page-article ~ .site-footer-wrap,
.page-about ~ .site-footer-wrap {
	background: var(--wp--preset--color--base-lighter);
}

.site-footer {
	background: var(--wp--preset--color--accent-brand);
	border-start-start-radius: var(--wp--custom--radius--x-large);
	border-start-end-radius: var(--wp--custom--radius--x-large);
	color: var(--wp--preset--color--base-background);
}

.site-footer .inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	max-width: var(--content-box);
	margin-inline: auto;
	padding-block: 64px 32px;
	padding-inline: var(--wp--custom--site--margin);
}

.site-footer .columns,
.site-footer .groups {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--space-8);
	min-width: 0;
	max-width: 100%;
}

.site-footer .group {
	display: grid;
	gap: var(--wp--preset--spacing--space-3);
}

.site-footer .heading {
	margin: 0;
	color: var(--wp--preset--color--base-background);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.4;
}

.site-footer ul {
	display: grid;
	gap: var(--wp--preset--spacing--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--space-2);
	max-width: 100%;
	color: var(--wp--preset--color--base-subtle);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
	opacity: 0.64;
	overflow-wrap: break-word;
	text-decoration: none;
}

.site-footer .logo {
	opacity: 1;
}

.site-footer a:hover,
.site-footer a.is-hover {
	color: var(--wp--preset--color--base-lighter);
	opacity: 1;
}

.site-footer a:focus-visible {
	outline: 2px solid var(--wp--preset--color--base-lighter);
	outline-offset: 2px;
}

.site-footer .footer-cta__link,
.site-footer .footer-cta__link:hover,
.site-footer .footer-cta__link:focus-visible {
	max-width: none;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	opacity: 1;
	text-decoration: none;
}

.site-footer .footer-cta .button,
.site-footer .footer-cta .button:hover {
	opacity: 1;
	color: var(--wp--preset--color--base-background);
}

.site-footer .legal {
	display: grid;
	gap: var(--wp--preset--spacing--space-4);
	padding-top: var(--wp--preset--spacing--space-4);
	border-top: var(--wp--custom--border-width--small) solid color-mix(in srgb, var(--wp--preset--color--base-lighter) 32%, transparent);
}

.site-footer .legal p {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--space-4);
	margin: 0;
	color: var(--wp--preset--color--base-subtle);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	opacity: 0.48;
}

.site-footer .legal a {
	flex-shrink: 0;
	color: inherit;
	opacity: 1;
	white-space: nowrap;
}

.site-footer .legal a:hover,
.site-footer .legal a.is-hover {
	color: var(--wp--preset--color--base-lighter);
}

.site-footer .disclaimer {
	display: block;
	text-align: center;
}

.site-footer.is-compact .columns,
.site-footer.is-compact .groups,
.site-footer.is-compact .legal p {
	flex-direction: column;
}

@media (min-width: 1025px) {
	.site-footer .logo {
		flex: none;
		width: 188px;
	}

	.site-footer .groups {
		gap: 64px;
		justify-content: flex-end;
	}

	.site-footer .group,
	.site-footer .footer-cta {
		flex: none;
	}

	.site-footer .group:nth-of-type(2) { width: 151px; }
	.site-footer .group:nth-of-type(3) { width: 183px; }

	.site-footer .group {
		gap: 16px;
	}

	.site-footer .group ul {
		gap: 11.6px;
	}

	.site-footer .group a {
		white-space: nowrap;
	}

	.site-footer .group:nth-of-type(3) li:last-child a {
		display: block;
		width: 129px;
		white-space: normal;
	}

	.site-footer .footer-cta {
		width: 253px;
		padding: 24px 16px;

		figure {
			width: 147px;
			height: 182px;
		}

		.title {
			width: 133px;
			margin-inline: auto;
			font-size: 24px;
		}

		.copy p:last-child {
			width: 165px;
			margin-inline: auto;
		}
	}

	.site-footer .footer-cta__link {
		gap: 24px;
	}

	.site-footer .legal {
		gap: 24px;
		padding-top: 24px;
		min-width: 0;
		max-width: 100%;

		p {
			font-size: 12px;
		}

		.disclaimer {
			line-height: 21px;
		}
	}

	/* The 64px row fits the 1440 frame. Narrower desktops tighten, then the card wraps onto its own line inside the panel. */
	.site-footer .inner {
		container-type: inline-size;
	}

	@container (max-width: 1257px) {
		.site-footer .columns {
			gap: 32px;
		}

		.site-footer .groups {
			flex: 1 1 auto;
			flex-wrap: wrap;
			justify-content: flex-end;
			gap: 28px 24px;
		}

		.site-footer .group,
		.site-footer .footer-cta {
			flex: 0 1 auto;
		}

		.site-footer .group a {
			white-space: normal;
		}
	}
}

@media (max-width: 1024px) {
	.site-footer .columns,
	.site-footer .groups {
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	.site-header.desktop .bar {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: var(--wp--preset--spacing--space-3);
		padding-inline: var(--wp--preset--spacing--space-3);
	}

	.site-header.desktop .links {
		order: 1;
		flex: 1 0 100%;
		justify-content: center;
	}

	.site-footer .columns,
	.site-footer .groups,
	.site-footer .legal p {
		flex-direction: column;
	}

	.site-footer .inner {
		padding-inline: var(--wp--preset--spacing--space-4);
	}
}

@media (prefers-reduced-motion: reduce) {
	.button,
	.text-link,
	.lane-card,
	.lane-card .text,
	.lane-card .text p,
	.lane-card .notch::before,
	.step-badge .glyphs .icon,
	.step-badge .mark,
	.step-badge.is-arriving {
		transition: none;
		animation: none;
	}
}

.line-list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--space-4);
	width: min(100%, 42.5rem);
	max-width: 100%;
	min-width: 0;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.line-list li {
	position: relative;
	display: grid;
	grid-template-columns: 3.0625rem minmax(0, 1fr);
	column-gap: var(--wp--preset--spacing--space-4);
	align-items: center;
	min-height: 3rem;
	min-width: 0;
	width: 100%;
}

.line-list .rule {
	position: absolute;
	/* A border snaps to a fixed whole device-pixel width, so every rule is the same thickness at any zoom or row offset (a 2px background varies between 2 and 3 device px). */
	top: 50%;
	/* Stop at the centre of the dot cluster (half of the 3.0625rem mark), not its right edge. */
	right: calc(100% - 1.53125rem);
	width: 100vw;
	height: 0;
	margin-top: -1px;
	border-top: 2px solid color-mix(in srgb, var(--wp--preset--color--accent-hover) 32%, transparent);
	pointer-events: none;
}

.line-list.is-contained .rule {
	left: 0;
	width: auto;
}

.line-list .mark {
	position: relative;
	width: 3.0625rem;
	height: 3.0625rem;
	overflow: hidden;
}

.line-list .mark .icon {
	position: absolute;
	left: 0;
	top: -379.775px;
	width: 49px;
	height: 425.762px;
	max-width: none;
	transform-origin: 24.289px 404.275px;
	transform: rotate(-90deg);
}

.line-list p {
	margin: 0;
	color: var(--wp--preset--color--contrast-strongest);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
}

@media (max-width: 767px) {
	.line-list {
		width: min(100% - (2 * var(--wp--preset--spacing--space-3)), 42.5rem);
	}
}

.component-library {
	display: grid;
	gap: var(--wp--custom--section-space--small);
	padding-block: var(--sec-s);
}

.component-library .band {
	display: grid;
	gap: var(--wp--preset--spacing--space-5);
	min-width: 0;
	max-width: 100%;
}

.component-library .band h2 {
	margin: 0;
}

.component-library .row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--space-5);
	min-width: 0;
	max-width: 100%;
}

.component-library .specimen {
	display: grid;
	gap: var(--wp--preset--spacing--space-2);
	align-content: start;
	min-width: 0;
	max-width: 100%;
}

.component-library .specimen > * {
	min-width: 0;
	max-width: 100%;
}

.component-library .label {
	margin: 0;
	color: var(--wp--preset--color--contrast-medium);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.6;
}

.component-library .glass-stage {
	padding: var(--wp--preset--spacing--space-7);
	background: var(--wp--preset--gradient--dashed-line-horizontal);
}

.component-library .fields {
	display: grid;
	gap: var(--wp--preset--spacing--space-3);
	width: min(100%, 37.5rem);
}

.component-library .lane-card:not(.point-card) {
	width: min(100%, 387px);
}

.component-library .case-fan {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	padding-block: var(--wp--preset--spacing--space-4);
}

.component-library .case-fan .case-card {
	margin-inline: -0.75rem;
}

.component-library .case-fan .case-card.blue { transform: rotate(-1.35deg); }
.component-library .case-fan .case-card.cream { transform: rotate(1.85deg); z-index: 1; }
.component-library .case-fan .case-card.green { transform: rotate(-0.93deg); }

.component-library .point-card {
	width: min(100%, 24rem);
}

.component-library .mobile-frame {
	width: min(375px, 100%);
	max-width: 100%;
	min-width: 0;
}

.component-library .note {
	margin: 0;
	max-width: var(--wp--style--global--content-size);
	color: var(--wp--preset--color--contrast-medium);
	font-size: var(--wp--preset--font-size--small);
}
