/**
 * AOR WPBakery Components — component styles.
 *
 * Tokens live in tokens.css, which this file depends on. Never hard-code a
 * size, colour or spacing value here: if it is not a var(), it is a bug.
 */

/* ==========================================================================
   Container

   Width only — no horizontal padding. These sections sit inside a WPBakery
   column that already supplies gutters, and adding our own would double them.
   Kept as an inner wrapper rather than on the <section> itself so a section
   can later go full-bleed while its content stays constrained.
   ========================================================================== */

.aor-container {
	width: 100%;
	max-width: var(--aor-container-max);
	margin-inline: auto;
}

/*
 * Inside a breakout there are no Salient column gutters, so the container
 * carries its own edge padding; the max-width widens by the same amount so
 * the content still measures a full --aor-container-max between the pads.
 */
.aor-breakout .aor-container,
.aor-hero--breakout .aor-container {
	max-width: calc(var(--aor-container-max) + 2 * var(--aor-space-md));
	padding-inline: var(--aor-space-md);
}

/*
 * Vertical rhythm. Applied to the <section> rather than the container so a
 * future section background covers the padding too.
 */
.aor-section {
	padding-block: var(--aor-section-padding-y);
}

/* ==========================================================================
   Shared button
   ========================================================================== */

.aor-btn {
	display: inline-block;
	padding: var(--aor-space-4xs) var(--aor-space-sm);
	border: 1px solid transparent;
	border-radius: var(--aor-radius-pill);
	font-family: var(--aor-font-heading);
	font-size: var(--aor-text-p-md);
	font-weight: var(--aor-weight-heading);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.aor-btn--primary,
.aor-btn--primary:visited {
	background-color: var(--aor-color-btn-bg);
	border-color: var(--aor-color-btn-bg);
	color: var(--aor-color-btn-text);
}

.aor-btn--primary:hover,
.aor-btn--primary:focus {
	background-color: var(--aor-color-btn-bg-hover);
	border-color: var(--aor-color-btn-bg-hover);
	color: var(--aor-color-btn-text);
	text-decoration: none;
}

.aor-btn--dark,
.aor-btn--dark:visited {
	background-color: var(--aor-color-surface-dark);
	border-color: var(--aor-color-surface-dark);
	color: var(--aor-color-btn-text);
}

.aor-btn--dark:hover,
.aor-btn--dark:focus {
	background-color: var(--aor-color-brand);
	border-color: var(--aor-color-brand);
	color: var(--aor-color-btn-text);
	text-decoration: none;
}

/* Outline — the R3 secondary button: 2px brand stroke, transparent fill. */
.aor-btn--outline,
.aor-btn--outline:visited {
	background-color: transparent;
	border-width: 2px;
	border-color: var(--aor-color-brand);
	color: var(--aor-color-brand);
}

.aor-btn--outline:hover,
.aor-btn--outline:focus {
	background-color: var(--aor-color-brand);
	border-color: var(--aor-color-brand);
	color: var(--aor-color-btn-text);
	text-decoration: none;
}

/* ==========================================================================
   Section Intro — shared eyebrow / heading / description / button
   ========================================================================== */

.aor-section-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--aor-space-md);
	margin-bottom: var(--aor-section-intro-gap);
}

.aor-section-intro__text {
	min-width: 0;
	max-width: var(--aor-section-intro-text-max);
}

.aor-section-intro--has-button .aor-section-intro__text {
	flex: 1 1 28rem;
}

.aor-section-intro__actions {
	flex: 0 0 auto;
}

.aor-section-intro--center {
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
}

.aor-section-intro--center .aor-section-intro__text {
	max-width: var(--aor-section-intro-text-max);
}

.aor-section-intro__eyebrow {
	margin: 0 0 var(--aor-space-4xs);
	/* Salient gives every p a 27px padding-bottom; the margin owns this gap. */
	padding-bottom: 0;
	color: var(--aor-color-brand);
	font-family: var(--aor-font-heading);
	/* 18 -> 20 with 1.3 leading — the R3 eyebrow/pre-header style. */
	font-size: var(--aor-font-size-lg);
	font-weight: var(--aor-weight-heading);
	letter-spacing: 0;
	line-height: var(--aor-leading-h5);
	text-transform: uppercase;
}

.aor-section-intro__heading {
	margin: 0;
	color: var(--aor-color-heading);
	font-family: var(--aor-font-heading);
	font-size: var(--aor-text-h2);
	font-weight: var(--aor-weight-heading);
	line-height: var(--aor-leading-h2);
}

.aor-section-intro__description {
	margin-top: var(--aor-space-4xs);
	color: var(--aor-color-body);
	font-family: var(--aor-font-body);
	/* 18 -> 20 — R3 intro copy runs a step above standard body text. */
	font-size: var(--aor-font-size-lg);
	line-height: var(--aor-leading-body);
}

.aor-section-intro__description p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Icon Blocks
   ========================================================================== */

/*
 * The shortcode sets --aor-ib-cols inline; this indirection exists because an
 * inline custom property would beat any media query, so the breakpoints below
 * override the derived --aor-ib-columns instead.
 */
.aor-icon-blocks {
	--aor-ib-columns: var(--aor-ib-cols, 3);
}

.aor-icon-blocks--gray {
	background-color: var(--aor-color-surface-alt);
}

.aor-icon-blocks__grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--aor-grid-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * A full row consumes exactly 100% width, so justify-content only ever has
 * slack to distribute on a partial final row — which is precisely the
 * "centre the orphan card" behaviour the design calls for.
 */
.aor-icon-blocks--center-last-row .aor-icon-blocks__grid {
	justify-content: center;
}

.aor-icon-blocks__item {
	display: flex;
	flex: 0 1 calc((100% - (var(--aor-ib-columns) - 1) * var(--aor-grid-gap)) / var(--aor-ib-columns));
	min-width: 0;
	margin: 0;
}

.aor-icon-blocks__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	padding: var(--aor-card-padding);
	border: 1px solid var(--aor-color-border);
	border-radius: var(--aor-radius-card);
	background-color: var(--aor-color-surface);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.aor-icon-blocks__card:hover,
a.aor-icon-blocks__card:focus {
	border-color: var(--aor-color-brand);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
	color: inherit;
	text-decoration: none;
}

.aor-icon-blocks__icon {
	display: block;
	margin-bottom: var(--aor-space-md);
	color: var(--aor-color-brand);
	line-height: 0;
}

.aor-icon-blocks__icon-svg {
	display: block;
	width: var(--aor-icon-size);
	height: auto;
}

.aor-icon-blocks__title {
	display: block;
	margin-bottom: var(--aor-space-4xs);
	color: var(--aor-color-heading);
	font-family: var(--aor-font-heading);
	font-size: var(--aor-text-h4);
	font-weight: var(--aor-weight-heading);
	line-height: var(--aor-leading-h4);
}

.aor-icon-blocks__text {
	display: block;
	color: var(--aor-color-body);
	font-family: var(--aor-font-body);
	font-size: var(--aor-text-p-md);
	line-height: var(--aor-leading-body);
}

/*
 * Light-gray variant — the R3 careers row: cards drop their border (they sit
 * white-on-gray), titles step down to h5, and side padding tightens.
 */
.aor-icon-blocks--gray .aor-icon-blocks__card {
	border: 0;
	padding: var(--aor-space-md) var(--aor-space-xs);
}

.aor-icon-blocks--gray .aor-icon-blocks__title {
	margin-bottom: var(--aor-space-xs);
	font-size: var(--aor-text-h5);
	line-height: var(--aor-leading-h5);
}

/*
 * Salient decorates list items site-wide (a ::before dot, and a ::marker
 * from list styles that outrank our ul reset); our component lists are pure
 * layout, so kill both on the items themselves.
 */
.aor-icon-blocks__item,
.aor-stats__item,
.aor-logo-grid__item,
.aor-split__slide {
	list-style: none;
}

.aor-icon-blocks__item::before,
.aor-stats__item::before,
.aor-logo-grid__item::before,
.aor-split__slide::before {
	content: none;
}

/* ==========================================================================
   Stats — full-bleed brand band with the gradient M watermark
   ========================================================================== */

.aor-stats {
	position: relative;
	overflow: hidden;
	background-color: var(--aor-color-brand);
	color: var(--aor-color-text-inverse);
}

/* The M artwork ships with its 20% opacity baked in; it spans the band and
 * overflows vertically, matching the Figma crop. */
.aor-stats::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('../img/stats-m.svg') center / cover no-repeat;
	pointer-events: none;
}

.aor-stats .aor-section-intro {
	position: relative;
	z-index: 1;
}

.aor-stats .aor-section-intro__heading,
.aor-stats .aor-section-intro__eyebrow,
.aor-stats .aor-section-intro__description {
	color: var(--aor-color-text-inverse);
}

.aor-stats__grid {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: var(--aor-grid-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.aor-stats__item {
	flex: 1 1 12rem;
	min-width: 0;
	margin: 0;
}

.aor-stats__value {
	display: block;
	margin-bottom: var(--aor-space-sm);
	font-family: var(--aor-font-heading);
	font-size: var(--aor-text-stat);
	font-weight: var(--aor-weight-heading);
	line-height: var(--aor-leading-stat);
}

.aor-stats__label {
	display: block;
	font-family: var(--aor-font-heading);
	font-size: var(--aor-text-h4);
	font-weight: var(--aor-weight-heading);
	line-height: var(--aor-leading-h4);
}

/* ==========================================================================
   Logo Grid — partner logos + optional Partner of the Month spotlight
   ========================================================================== */

.aor-logo-grid--gray {
	background-color: var(--aor-color-surface-alt);
}

.aor-logo-grid .aor-section-intro {
	margin-bottom: var(--aor-space-5xl);
}

.aor-logo-grid__grid {
	--aor-lg-columns: 5;
	--aor-lg-gap: var(--aor-space-5xl);

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--aor-space-5xl) var(--aor-lg-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Fixed five-across cells, logo centred in each; a partial last row centres
 * itself, same trick as the icon grid. */
.aor-logo-grid__item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 calc((100% - (var(--aor-lg-columns) - 1) * var(--aor-lg-gap)) / var(--aor-lg-columns));
	min-width: 0;
	margin: 0;
}

.aor-logo-grid__logo {
	display: block;
}

/* The li in the selector out-specifies Salient's .row .col img rule, which
 * otherwise re-imposes max-width: 100% and a 15px bottom margin. */
.aor-logo-grid li.aor-logo-grid__item img {
	display: block;
	width: auto;
	height: auto;
	margin: 0;
	/* Never wider than the grid cell — marks shrink to fit narrow columns
	 * instead of overflowing and overlapping their neighbours. */
	max-width: min(var(--aor-logo-width), 100%);
	max-height: var(--aor-logo-height);
}

.aor-logo-grid__actions {
	margin-top: var(--aor-space-5xl);
	text-align: center;
}

.aor-logo-grid__spotlight {
	margin-top: var(--aor-space-5xl);
	text-align: center;
}

/* Label flanked by hairlines fading brand-red -> orange -> transparent. */
.aor-logo-grid__spotlight-label {
	display: flex;
	align-items: center;
	gap: var(--aor-space-md);
	margin: 0 0 var(--aor-space-2xl);
	color: var(--aor-color-brand);
	font-family: var(--aor-font-heading);
	font-size: var(--aor-text-h4);
	font-weight: var(--aor-weight-heading);
	line-height: var(--aor-leading-h4);
	text-transform: uppercase;
}

.aor-logo-grid__spotlight-label::before,
.aor-logo-grid__spotlight-label::after {
	content: '';
	flex: 1 1 0;
	height: 1px;
}

.aor-logo-grid__spotlight-label::before {
	background: linear-gradient(to right, transparent, var(--aor-color-grad-orange), var(--aor-color-grad-red));
}

.aor-logo-grid__spotlight-label::after {
	background: linear-gradient(to left, transparent, var(--aor-color-grad-orange), var(--aor-color-grad-red));
}

.aor-logo-grid__spotlight-logo {
	display: flex;
	justify-content: center;
}

.aor-logo-grid__spotlight-img {
	display: block;
	width: auto;
	max-height: var(--aor-logo-height);
}

.aor-logo-grid__spotlight-actions {
	margin-top: var(--aor-space-lg);
}

/* ==========================================================================
   Split Section — edge-to-edge image beside contained copy; carousel when
   more than one slide

   Geometry from the 1728px frame: image column 744px (43%) flush to its
   edge, copy 724px max aligned to the container on the other side, 96px gap,
   579px min height, and the gradient slash bleeding off the content-side
   edge (197px wide, taller than the section, partially off-canvas).
   ========================================================================== */

.aor-split {
	position: relative;
	overflow: hidden;
	background-color: var(--aor-color-surface);
}

.aor-split--gray {
	background-color: var(--aor-color-surface-alt);
}

/* The slash: same triangle as the hero's, hugging the content-side edge.
 * It spans the full section height so the whole red -> orange -> gold ramp
 * stays visible — no vertical overshoot, or the gold end gets clipped. */
.aor-split::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	/* Width follows height at the design's proportions, so the diagonal is
	 * the same angle whatever the section height or viewport. */
	width: auto;
	aspect-ratio: 197 / 733;
	pointer-events: none;
	z-index: 1;
}

/* Straight edge sits on the outer edge of the section; the slant faces the
 * content. Wide at the top on the left side, tapering to a point at the
 * bottom; the right side is the same shape rotated 180°. */
.aor-split--image-right::after {
	left: -1.25%;
	background: linear-gradient(
		to top,
		var(--aor-color-grad-gold) 0%,
		var(--aor-color-grad-orange) 35%,
		var(--aor-color-grad-red) 70%
	);
	clip-path: polygon(0 0, 0 100%, 100% 0);
}

.aor-split--image-left::after {
	right: -1.25%;
	background: linear-gradient(
		to bottom,
		var(--aor-color-grad-gold) 0%,
		var(--aor-color-grad-orange) 35%,
		var(--aor-color-grad-red) 70%
	);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.aor-split__viewport {
	overflow: hidden;
}

.aor-split--carousel .aor-split__viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.aor-split--carousel .aor-split__viewport::-webkit-scrollbar {
	display: none;
}

.aor-split__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aor-split__slide {
	display: flex;
	flex: 0 0 100%;
	min-width: 100%;
	min-height: clamp(420px, 33.5vw, 579px);
	margin: 0;
	scroll-snap-align: start;
}

.aor-split--image-right .aor-split__slide {
	flex-direction: row-reverse;
}

/* A background, not an <img> — image-optimizer plugins rewrite img tags and
 * re-impose intrinsic sizing, which stops the column filling its side. The
 * shortcode sets --aor-split-bg inline. */
.aor-split__media {
	position: relative;
	flex: 0 0 43%;
	overflow: hidden;
	background-color: var(--aor-color-surface-alt);
	background-image: var(--aor-split-bg);
	background-size: cover;
	background-position: center;
}

.aor-split__content {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	padding-block: var(--aor-space-7xl);
}

/* Copy aligns to the site container on its side; the image owns the other. */
.aor-split--image-right .aor-split__content {
	padding-left: max(var(--aor-space-md), calc((100vw - var(--aor-container-max)) / 2));
	padding-right: var(--aor-space-7xl);
}

.aor-split--image-left .aor-split__content {
	padding-right: max(var(--aor-space-md), calc((100vw - var(--aor-container-max)) / 2));
	padding-left: var(--aor-space-7xl);
}

.aor-split__copy {
	max-width: 45.25rem;
}

.aor-split__eyebrow {
	margin: 0 0 var(--aor-space-4xs);
	padding-bottom: 0;
	color: var(--aor-color-brand);
	font-family: var(--aor-font-heading);
	font-size: var(--aor-font-size-lg);
	font-weight: var(--aor-weight-heading);
	letter-spacing: 0;
	line-height: var(--aor-leading-h5);
	text-transform: uppercase;
}

.aor-split__heading {
	margin: 0;
	color: var(--aor-color-heading);
	font-family: var(--aor-font-heading);
	font-size: var(--aor-text-h2);
	font-weight: var(--aor-weight-heading);
	line-height: var(--aor-leading-h2);
}

.aor-split__description {
	margin-top: var(--aor-space-xs);
	color: var(--aor-color-body);
	font-family: var(--aor-font-body);
	font-size: var(--aor-font-size-lg);
	line-height: var(--aor-leading-body);
}

.aor-split__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--aor-space-xs);
	margin-top: var(--aor-space-3xl);
}

/* Carousel chrome */

.aor-split__nav {
	position: absolute;
	bottom: var(--aor-space-sm);
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	gap: var(--aor-space-xs);
}

.aor-split__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--aor-color-brand);
	border-radius: var(--aor-radius-pill);
	background: var(--aor-color-surface);
	color: var(--aor-color-brand);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.aor-split__arrow:hover:not(:disabled),
.aor-split__arrow:focus:not(:disabled) {
	background: var(--aor-color-brand);
	color: var(--aor-color-btn-text);
}

.aor-split__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.aor-split__arrow::before {
	content: '';
	display: block;
	width: 0.5em;
	height: 0.5em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
}

.aor-split__arrow--prev::before {
	transform: rotate(135deg) translate(-1px, -1px);
}

.aor-split__arrow--next::before {
	transform: rotate(-45deg) translate(-1px, -1px);
}

.aor-split__dots {
	display: flex;
	align-items: center;
	gap: var(--aor-space-5xs);
}

.aor-split__dot {
	width: 0.75rem;
	height: 0.75rem;
	padding: 0;
	border: 1px solid var(--aor-color-brand);
	border-radius: var(--aor-radius-pill);
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.aor-split__dot.is-active {
	background: var(--aor-color-brand);
}

/* Below the design width the container margin shrinks faster than the
 * slash, so the wedge would run under the copy — give the content a
 * padding floor that clears it. */
@media (max-width: 1600px) {
	.aor-split--image-right .aor-split__content {
		padding-left: max(calc(9vw + var(--aor-space-lg)), calc((100vw - var(--aor-container-max)) / 2));
	}

	.aor-split--image-left .aor-split__content {
		padding-right: max(calc(9vw + var(--aor-space-lg)), calc((100vw - var(--aor-container-max)) / 2));
	}
}

@media (max-width: 1024px) {
	.aor-icon-blocks {
		--aor-ib-columns: 2;
	}

	.aor-icon-blocks--cols-6 {
		--aor-ib-columns: 3;
	}

	/* Side-by-side gets cramped below ~1024: the slash grows with the
	 * content-driven section height and outruns its 9vw clearance, and the
	 * centred carousel nav straddles the column boundary. Stack instead:
	 * image on top, copy below. No tablet design exists — proportions are
	 * judgment via the fluid tokens. */
	.aor-split__slide,
	.aor-split--image-right .aor-split__slide {
		flex-direction: column;
		min-height: 0;
	}

	/* A full-height slash would balloon with the stacked section. Cap its
	 * height — the aspect ratio stays, so the diagonal keeps the design
	 * angle on every screen. Both orientations converge on the image-right
	 * geometry so the wedge always sits top-left. */
	.aor-split::after,
	.aor-split--image-left::after {
		top: 0;
		bottom: auto;
		left: -1.25%;
		right: auto;
		height: clamp(260px, 75vw, 420px);
		background: linear-gradient(
			to top,
			var(--aor-color-grad-gold) 0%,
			var(--aor-color-grad-orange) 35%,
			var(--aor-color-grad-red) 70%
		);
		clip-path: polygon(0 0, 0 100%, 100% 0);
	}

	.aor-split__media {
		flex: none;
		width: 100%;
		aspect-ratio: 3 / 2;
	}

	/* The variant selectors repeat here to out-specify the desktop
	 * wedge-clearance padding (the 9vw max() rules) — without them it would
	 * still win on specificity and push the copy off-centre. Inline padding
	 * matches the container edge padding. */
	.aor-split__content,
	.aor-split--image-right .aor-split__content,
	.aor-split--image-left .aor-split__content {
		padding: var(--aor-space-2xl) var(--aor-space-md);
	}

	.aor-split--carousel .aor-split__content {
		/* Keep the copy clear of the overlaid nav. */
		padding-bottom: var(--aor-space-6xl);
	}

	.aor-logo-grid__grid {
		--aor-lg-columns: 3;
	}
}

@media (max-width: 767px) {
	.aor-icon-blocks,
	.aor-icon-blocks--cols-6 {
		--aor-ib-columns: 1;
	}

	/* Two-across cells are narrow — the column gap comes down with them so
	 * the logos keep a usable width. */
	.aor-logo-grid__grid {
		--aor-lg-columns: 2;
		--aor-lg-gap: var(--aor-space-lg);
	}

	/* Stat blocks read as value + label pairs: the pair hangs together and
	 * clear air separates it from the next stat. */
	.aor-stats__grid {
		row-gap: var(--aor-space-2xl);
	}

	.aor-stats__value {
		margin-bottom: var(--aor-space-4xs);
	}

	.aor-section-intro {
		flex-direction: column;
		align-items: flex-start;
	}

	/* In column direction the --has-button flex-basis (28rem) would become
	 * a forced height and strand the button far below the copy. */
	.aor-section-intro--has-button .aor-section-intro__text {
		flex: 0 0 auto;
	}

	.aor-section-intro--center {
		align-items: center;
	}

}

/* ==========================================================================
   Hero

   Full-bleed page header. Geometry comes from the 1728px Figma frame:
   727px tall, content inset to the container, a gold->red gradient slash on
   the right edge (a right triangle, 197px wide over the full height), and a
   white V-shaped notch cutting the bottom edge — the V-point sits at 48.9%
   width, the side edges 190px above the bottom. The notch is a clip-path on
   the section, not a white overlay, so any following section colour shows
   through. The Salient transparent header overlays the top of this section,
   hence the reserved top padding.
   ========================================================================== */

.aor-hero {
	/* Notch: 190px deep at the edges of a 1728px frame = 11vw. */
	--aor-hero-notch-depth: clamp(64px, 11vw, 190px);
	/* Slash: 197px wide at 1728px = 11.4vw. */
	--aor-hero-slash-width: clamp(80px, 11.4vw, 197px);
	/* Clearance for the transparent header overlaying the section:
	 * 220px at the 1728px design width. */
	--aor-hero-header-clearance: clamp(160px, 15.05vw, 260px);

	position: relative;
	display: flex;
	align-items: center;
	/* Keeps growing past the 1728px design height (727px) on wide screens so
	 * the cover-cropped photo doesn't cut people off; capped at 880px. */
	min-height: clamp(560px, 42vw, 880px);
	padding-block: var(--aor-hero-header-clearance) calc(var(--aor-hero-notch-depth) + var(--aor-space-xl));
	/* --aor-hero-bg is the background IMAGE, set inline by the shortcode. */
	background-color: var(--aor-color-surface-dark);
	background-image: var(--aor-hero-bg);
	background-size: cover;
	background-position: center;
	color: var(--aor-color-text-inverse);
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - var(--aor-hero-notch-depth)),
		48.9% 100%,
		0 calc(100% - var(--aor-hero-notch-depth))
	);
}

/* Photo darkening, matching the Figma fill stack: 50% black multiply over
 * the whole image, plus the #333 tint over the text side (left 64% in the
 * design), faded out so no hard edge shows. */
.aor-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to right, var(--aor-overlay-tint) 0%, var(--aor-overlay-tint) 55%, transparent 75%),
		linear-gradient(var(--aor-overlay-photo), var(--aor-overlay-photo));
	pointer-events: none;
}

/* The gradient slash: gold at the bottom sweeping to red, clipped to a
 * right triangle along the right edge. The section clip-path trims its
 * bottom into the notch automatically. */
.aor-hero::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: var(--aor-hero-slash-width);
	background: linear-gradient(
		315deg,
		var(--aor-color-grad-gold) 0%,
		var(--aor-color-grad-red) 55%
	);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	pointer-events: none;
}

/* Full viewport width when placed inside a standard (contained) row/column.
 * .aor-breakout is the generic hook any full-bleed section can use;
 * .aor-hero--breakout predates it and is kept for the hero. */
.wpb_row:not(.full-width-content) .aor-hero--breakout,
.wpb_row:not(.full-width-content) .aor-breakout {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Already in a Salient full-width row — span the row, no viewport hack. */
.wpb_row.full-width-content .aor-hero--breakout,
.wpb_row.full-width-content .aor-breakout {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* Prevent column/wrapper clipping of the breakout. */
.wpb_wrapper:has(.aor-hero--breakout),
.vc_column-inner:has(.aor-hero--breakout),
.wpb_wrapper:has(.aor-breakout),
.vc_column-inner:has(.aor-breakout) {
	overflow: visible;
}

/* WPBakery gives every row and content element a 35px bottom margin. AOR
 * sections own their vertical rhythm, so rows that hold one lose it. */
.wpb_row:has([class^="aor-"]),
.wpb_row:has([class*=" aor-"]),
.wpb_content_element:has([class^="aor-"]),
.wpb_content_element:has([class*=" aor-"]) {
	margin-bottom: 0;
}

/* Salient pads the bottom of its page wrapper (40px, via a higher-priority
 * rule of its own — hence the !important). On pages built from AOR sections
 * the last section should meet the footer flush. */
.container-wrap:has([class^="aor-"]),
.container-wrap:has([class*=" aor-"]) {
	padding-bottom: 0 !important;
}

.aor-hero__container {
	position: relative;
	z-index: 1;
	width: 100%;
}

/*
 * The hero reuses the Section Intro markup but not its side-by-side layout:
 * everything stacks left-aligned, white on the photo, capped at the design's
 * 830px text measure. Design stack gap is 24px (--aor-space-xs).
 */
.aor-hero .aor-section-intro {
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	max-width: 52rem;
	margin-bottom: 0;
}

.aor-hero .aor-section-intro__text {
	/* The shared --has-button rule sets flex-basis 28rem, which in this
	 * column-direction context becomes a forced height and strands the
	 * button far below the copy. Neutralise it. */
	flex: 0 0 auto;
	max-width: none;
}

.aor-hero .aor-section-intro__eyebrow {
	margin-bottom: var(--aor-space-xs);
	color: var(--aor-color-text-inverse);
	font-size: var(--aor-text-h5);
	line-height: var(--aor-leading-h5);
	letter-spacing: 0;
	text-transform: none;
}

.aor-hero .aor-section-intro__heading {
	color: var(--aor-color-text-inverse);
	font-size: var(--aor-text-h1);
	line-height: var(--aor-leading-h1);
}

.aor-hero .aor-section-intro__description {
	margin-top: var(--aor-space-xs);
	color: var(--aor-color-text-inverse);
	/* Hero body copy is one step up from standard: 18 -> 20. */
	font-size: var(--aor-font-size-lg);
}

.aor-hero .aor-section-intro__actions {
	margin-top: var(--aor-space-sm);
}
