/*
 * AETERNUS page sections (ACF flexible content layouts in /components).
 * Design tokens, fonts and buttons live in css/base.css.
 */

/* ---------- Shared ---------- */

.ae-section {
	position: relative;
	width: 100%;
	padding: 0 !important;
	font-family: var(--ae-font-sans);
	color: var(--ae-charcoal);
}

.ae-section--white {
	background: var(--ae-white);
}

.ae-section--ivory {
	background: var(--ae-ivory);
}

.ae-section--teal {
	background: var(--ae-teal);
	color: var(--ae-white);
}

:where(.ae-section) p,
:where(.ae-section) figure,
:where(.ae-section) blockquote {
	margin: 0;
}

:where(.ae-section) ul,
:where(.ae-section) ol {
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ae-section li {
	margin: 0;
}

.ae-section__inner {
	max-width: var(--ae-container);
	margin: 0 auto;
	padding: clamp(72px, 8vw, 120px) var(--ae-gutter);
	box-sizing: border-box;
}

.ae-section__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 28px;
}

.ae-section__head-main {
	max-width: 720px;
}

.ae-section__intro {
	max-width: 360px;
	font-size: 16px;
	line-height: 26px;
}

.ae-section .ae-eyebrow {
	margin-bottom: 20px;
}

.ae-eyebrow--teal {
	color: var(--ae-teal);
}

.ae-heading {
	margin: 0;
	font-family: var(--ae-font-display);
	/* Sections can set --ae-heading-size for a smaller desktop heading; the 380px rule below still applies. */
	font-size: var(--ae-heading-size, clamp(32px, 4.2vw, 54px));
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.08em;
	color: var(--ae-teal);
}

.ae-heading--md {
	font-size: clamp(30px, 5vw, 40px);
	line-height: 1.15;
	letter-spacing: 0.08em;
}

.ae-heading,
.ae-page-banner .ae-page-banner__title,
.ae-hero .ae-hero__title {
	overflow-wrap: break-word;
}

@media (max-width: 380px) {
	.ae-heading,
	.ae-heading--md {
		font-size: 25px;
		letter-spacing: 0.06em;
	}
}

.ae-heading--gold {
	color: var(--ae-gold);
}

.ae-rule {
	display: block;
	width: 40px;
	height: 2px;
	background: var(--ae-gold);
}

.ae-rule--center {
	margin: 0 auto 36px;
}

a.ae-link,
a.ae-link:visited {
	display: inline-block;
	font-size: 14px;
	color: var(--ae-teal);
	text-decoration: underline !important;
	text-underline-offset: 6px;
	transition: opacity 0.2s ease;
}

a.ae-link:hover {
	color: var(--ae-teal);
	opacity: 0.8;
}

a.ae-link--light,
a.ae-link--light:visited,
a.ae-link--light:hover {
	color: var(--ae-white);
	text-underline-offset: 5px;
}

a.ae-link--icon,
a.ae-link--icon:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none !important;
}

a.ae-link--icon span {
	text-decoration: underline;
	text-underline-offset: 5px;
}

a.ae-link--icon .ae-wa-icon {
	flex-shrink: 0;
}

/* Text from WYSIWYG fields */

.ae-richtext > * + * {
	margin-top: 0.85em;
}

.ae-section .ae-richtext ul,
.ae-section .ae-richtext ol {
	padding-left: 1.25em;
}

.ae-section .ae-richtext ul {
	list-style: disc;
}

.ae-section .ae-richtext ol {
	list-style: decimal;
}

.ae-section .ae-richtext li + li {
	margin-top: 0.4em;
}

.ae-richtext strong,
.ae-richtext b {
	font-weight: 500;
}

.ae-richtext a,
.ae-richtext a:visited {
	font-size: inherit;
	color: inherit;
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.ae-section a:focus-visible,
.ae-section button:focus-visible {
	outline: 2px solid var(--ae-gold) !important;
	outline-offset: 3px;
}

/* Image and video frames with a fixed aspect ratio */

.ae-frame {
	position: relative;
	overflow: hidden;
	background: rgba(9, 71, 76, 0.09);
}

.ae-frame--portrait {
	aspect-ratio: 4 / 5;
}

.ae-frame--landscape {
	aspect-ratio: 3 / 2;
}

.ae-frame--wide {
	aspect-ratio: 16 / 9;
}

/* Natural shape: the photo keeps its own proportions instead of being cropped to a ratio.
   Declared after `.ae-frame img` so it wins on equal specificity. */
.ae-frame--auto {
	aspect-ratio: auto;
	align-self: start;
}

.ae-frame img,
.ae-frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.ae-frame--auto img {
	position: static;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.ae-frame__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

/* Click-to-play film inside a frame */

.ae-player {
	position: absolute;
	inset: 0;
}

.ae-player__video {
	background: var(--ae-teal);
}

.ae-player__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(9, 71, 76, 0.3);
	color: var(--ae-gold-light);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ae-player__play[hidden] {
	display: none;
}

.ae-player__play svg {
	transition: transform 0.2s ease;
}

.ae-player__play:hover {
	background: rgba(9, 71, 76, 0.45);
}

.ae-player__play:hover svg {
	transform: scale(1.06);
}

.ae-section .ae-player__play:focus-visible {
	outline-offset: -8px;
}

/* ---------- 1. Hero: full-screen film behind the headline ---------- */

.ae-hero {
	display: flex;
	align-items: flex-end;
	min-height: 640px;
	min-height: max(640px, 100vh);
	min-height: max(640px, 100svh);
	overflow: hidden;
	isolation: isolate;
	background: var(--ae-teal);
	color: var(--ae-white);
}

.ae-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--ae-teal-soft);
}

.ae-hero__media img,
.ae-hero__media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.ae-hero__video {
	display: none;
}

/* Icon-only mute/unmute control for the banner film, bottom right of the hero. */
.ae-hero__sound[hidden] {
	display: none;
}

.ae-hero__sound {
	position: absolute;
	right: var(--ae-gutter);
	/* Above the marquee strip, and clear of the floating WhatsApp button in the corner. */
	bottom: 88px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 50%;
	background: rgba(9, 71, 76, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: var(--ae-white);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ae-hero__sound:hover,
.ae-hero__sound:focus-visible {
	border-color: rgba(255, 255, 255, 0.75);
	background: rgba(9, 71, 76, 0.72);
}

.ae-hero__sound-waves,
.ae-hero__sound-mute {
	display: block;
	width: 18px;
	height: 18px;
}

.ae-hero__sound-waves {
	display: none;
}

.ae-hero__sound.is-on .ae-hero__sound-waves {
	display: block;
}

.ae-hero__sound.is-on .ae-hero__sound-mute {
	display: none;
}

/* The film does not autoplay below 768px, so the control has nothing to do there. */
@media (max-width: 767px) {
	.ae-hero__sound {
		display: none;
	}
}

.ae-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(9, 71, 76, 0.75) 0%, rgba(9, 71, 76, 0) 28%),
		linear-gradient(90deg, rgba(9, 71, 76, 0.9) 0%, rgba(9, 71, 76, 0.6) 48%, rgba(9, 71, 76, 0.15) 100%);
}

.ae-hero__inner {
	width: 100%;
	padding-top: 160px;
	padding-bottom: clamp(64px, 9vw, 128px);
}

.ae-hero__content {
	max-width: 660px;
}

.ae-section .ae-hero__eyebrow {
	display: inline-block;
	margin-bottom: 28px;
	/* Right padding is trimmed by the letter spacing that trails the last letter. */
	padding: 5px calc(15px - 0.3em) 5px 15px;
	border: 1px solid var(--ae-gold);
	border-radius: 999px;
	background: var(--ae-white);
	font-weight: 700;
	color: #8a6420;
}

.ae-hero .ae-hero__title {
	margin: 0;
	font-family: var(--ae-font-display);
	font-size: clamp(48px, 6.4vw, 96px);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: 0.08em;
	color: var(--ae-gold-light);
	text-shadow:
		0 1px 2px rgba(4, 36, 39, 0.6),
		0 2px 18px rgba(4, 36, 39, 0.55);
}

/* "Medium" heading size for longer hero headings (e.g. Blueprint page) */
.ae-hero.ae-hero--medium-title .ae-hero__title {
	font-size: clamp(34px, 3.6vw, 52px);
	line-height: 1.12;
	letter-spacing: 0.07em;
}

.ae-hero--center.ae-hero--medium-title .ae-hero__content {
	max-width: 1100px;
}

.ae-hero__intro {
	max-width: 520px;
	margin-top: 32px;
	font-size: 18px;
	font-weight: 300;
	line-height: 30px;
	color: var(--ae-white);
}

.ae-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 28px;
	margin-top: 40px;
}

.ae-hero__note {
	font-size: 14px;
	letter-spacing: 0.04em;
	color: var(--ae-ink-muted);
}

.ae-hero__whatsapp {
	margin-top: 28px;
	font-size: 14px;
	color: var(--ae-ink-muted);
}

/* Centred hero: content in the middle of the film, with an even overlay instead of a left-hand fade */

.ae-hero--center {
	align-items: center;
}

.ae-hero--center .ae-hero__overlay {
	background:
		radial-gradient(ellipse 60% 55% at 50% 52%, rgba(9, 71, 76, 0.55) 0%, rgba(9, 71, 76, 0) 100%),
		linear-gradient(180deg, rgba(9, 71, 76, 0.8) 0%, rgba(9, 71, 76, 0.45) 30%, rgba(9, 71, 76, 0.45) 70%, rgba(9, 71, 76, 0.75) 100%);
}

.ae-hero--center .ae-hero__content {
	max-width: 960px;
	margin: 0 auto;
	text-align: center;
}

.ae-hero--center .ae-hero__title {
	/* Balances the letter spacing after the last letter so the line sits truly centred. */
	padding-left: 0.08em;
}

.ae-hero--center .ae-hero__intro {
	margin-right: auto;
	margin-left: auto;
}

.ae-hero--center .ae-hero__actions {
	justify-content: center;
}

@media (min-width: 768px) {
	.ae-hero__video {
		display: block;
	}
}

@media (max-width: 767px) {
	.ae-hero__overlay,
	.ae-hero--center .ae-hero__overlay {
		background: linear-gradient(180deg, rgba(9, 71, 76, 0.8) 0%, rgba(9, 71, 76, 0.55) 40%, rgba(9, 71, 76, 0.9) 100%);
	}

	.ae-hero__inner {
		padding-top: 140px;
	}
}

@media (max-width: 480px) {
	.ae-section .ae-hero__eyebrow {
		padding: 4px calc(11px - 0.12em) 4px 11px;
		font-size: 10px;
		line-height: 16px;
		letter-spacing: 0.12em;
	}
}

/* Hero: scrolling strip along the bottom, over the film */

.ae-hero--has-marquee .ae-hero__inner {
	padding-bottom: calc(clamp(64px, 9vw, 128px) + 52px);
}

.ae-marquee {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	overflow: hidden;
	padding: 17px 0;
	border-top: 1px solid var(--ae-line);
}

.ae-marquee__track {
	display: flex;
	width: max-content;
	animation: ae-marquee var(--ae-marquee-duration, 40s) linear infinite;
}

.ae-marquee:hover .ae-marquee__track {
	animation-play-state: paused;
}

.ae-section .ae-marquee__list {
	display: flex;
	flex-shrink: 0;
	width: auto;
}

.ae-section .ae-marquee__list li {
	display: flex;
	align-items: center;
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 3px rgba(9, 71, 76, 0.6);
}

.ae-marquee__list li::after {
	content: "";
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	margin: 0 28px;
	background: var(--ae-gold);
	transform: rotate(45deg);
}

@keyframes ae-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ae-marquee__track {
		width: auto;
		animation: none;
	}

	.ae-section .ae-marquee__list {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 8px;
		width: 100%;
	}

	.ae-marquee__list[aria-hidden="true"],
	.ae-marquee__repeat {
		display: none !important;
	}
}

/* ---------- 2. Who we coach ---------- */

.ae-who {
	--ae-heading-size: clamp(32px, 3.1vw, 42px);
}

.ae-who__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 24px;
	margin-top: 56px;
}

.ae-who__card {
	min-width: 0;
}

.ae-who__content {
	font-size: 15px;
	line-height: 24px;
	color: var(--ae-charcoal);
}

.ae-section .ae-who__content ul,
.ae-section .ae-who__content ol {
	padding: 0;
	list-style: none;
}

/* Auto mode: photos keep their own proportion, so the columns cannot share text rows without
   leaving ragged gaps. Each column flows tightly (photo, then its lines) instead. */
.ae-who--auto .ae-who__cards {
	row-gap: 48px;
}

.ae-who--auto .ae-who__card {
	display: block;
	grid-row: auto;
}

.ae-who--auto .ae-who__content,
.ae-who--auto .ae-who__content ul,
.ae-who--auto .ae-who__content ol {
	display: block;
}

/* Every paragraph or list item is one line, separated by a divider. */
.ae-section .ae-who__content > :not(ul):not(ol),
.ae-section .ae-who__content li {
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-section .ae-who__content > :first-child:not(ul):not(ol),
.ae-section .ae-who__content > :is(ul, ol):first-child > li:first-child {
	padding-top: 20px;
	border-top: 0;
}

.ae-who__content strong,
.ae-who__content b {
	font-weight: 500;
	color: var(--ae-teal);
}

/* Lines sit on rows shared by all columns, so the dividers line up. */
@supports (grid-template-rows: subgrid) {
	@media (min-width: 960px) {
		.ae-who__cards {
			row-gap: 0;
		}

		.ae-who__card {
			display: grid;
			grid-row: span var(--ae-who-rows, 4);
			grid-template-rows: subgrid;
		}

		.ae-who__card:nth-child(n + 4) .ae-frame {
			margin-top: 48px;
		}

		.ae-who__content,
		.ae-who__content ul,
		.ae-who__content ol {
			display: contents;
		}
	}
}

@media (max-width: 959px) {
	.ae-who__cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.ae-who__card {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		column-gap: 28px;
		align-items: start;
	}

	.ae-section .ae-who__content > :first-child:not(ul):not(ol),
	.ae-section .ae-who__content > :is(ul, ol):first-child > li:first-child {
		padding-top: 0;
	}
}

@media (max-width: 599px) {
	.ae-who__card {
		display: block;
	}

	.ae-section .ae-who__content > :first-child:not(ul):not(ol),
	.ae-section .ae-who__content > :is(ul, ol):first-child > li:first-child {
		padding-top: 20px;
	}
}

/* ---------- 3. Formula: three pillar cards ---------- */

.ae-formula__head {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.ae-formula__intro {
	max-width: 520px;
	margin: 24px auto 0;
	font-size: 16px;
	line-height: 26px;
}

.ae-formula__pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: clamp(48px, 5vw, 64px);
}

@media (max-width: 959px) {
	.ae-formula__pillars {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
}

.ae-pillar {
	display: flex;
	flex-direction: column;
	padding: clamp(32px, 3.5vw, 48px) clamp(28px, 3vw, 40px);
	background: var(--ae-ivory);
	border-top: 2px solid var(--ae-gold);
}

.ae-pillar__icon {
	display: block;
	margin-bottom: 24px;
	line-height: 0;
}

.ae-pillar__icon svg,
.ae-pillar__icon .ae-custom-icon {
	display: block;
}

.ae-pillar__label {
	margin: 0;
	font-family: var(--ae-font-display);
	font-size: clamp(28px, 2.6vw, 34px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.08em;
	color: var(--ae-teal);
}

.ae-pillar__title {
	margin-top: 10px;
	font-size: 17px;
	font-weight: 500;
	line-height: 26px;
	color: var(--ae-teal);
}

.ae-pillar__text {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(9, 71, 76, 0.15);
	font-size: 15px;
	line-height: 25px;
}

/* ---------- 3b. Session timeline ---------- */

.ae-session__intro {
	color: var(--ae-ink-muted);
}

.ae-timeline {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 32px;
	margin-top: clamp(48px, 5vw, 72px);
}

.ae-section .ae-timeline__step {
	position: relative;
}

.ae-timeline__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 22px;
	left: 60px;
	right: -16px;
	height: 1px;
	background: var(--ae-line);
}

.ae-timeline__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ae-gold);
	border-radius: 50%;
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--ae-gold-light);
	box-sizing: border-box;
}

.ae-timeline__body {
	margin-top: 28px;
}

.ae-timeline__title {
	margin: 0 0 10px;
	font-family: var(--ae-font-display);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.08em;
	color: var(--ae-white);
}

.ae-timeline__text {
	font-size: 15px;
	line-height: 24px;
	color: var(--ae-ink-muted);
}

@media (max-width: 959px) {
	.ae-timeline {
		grid-auto-flow: row;
		grid-template-columns: 1fr;
		gap: 0;
	}

	.ae-section .ae-timeline__step {
		display: grid;
		grid-template-columns: 44px 1fr;
		column-gap: 24px;
		padding-bottom: 36px;
	}

	.ae-section .ae-timeline__step:last-child {
		padding-bottom: 0;
	}

	.ae-timeline__step:not(:last-child)::after {
		top: 56px;
		bottom: 12px;
		left: 22px;
		right: auto;
		width: 1px;
		height: auto;
	}

	.ae-timeline__body {
		margin-top: 10px;
	}
}

/* ---------- 4. Coaching options ---------- */

.ae-coaching {
	--ae-heading-size: clamp(32px, 3.1vw, 42px);
}

.ae-coaching__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: 48px 56px;
	margin-top: 56px;
}

.ae-coaching__item {
	min-width: 0;
}

.ae-coaching__tag {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 32px;
}

.ae-coaching__marker {
	display: inline-block;
	width: 10px;
	height: 10px;
	background: var(--ae-gold);
}

.ae-coaching__marker--teal {
	background: var(--ae-teal);
}

.ae-coaching__label {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.3em;
	color: var(--ae-teal);
}

.ae-coaching__title {
	margin: 18px 0 12px;
	font-family: var(--ae-font-sans);
	font-size: 26px;
	font-weight: 500;
	line-height: 34px;
	color: var(--ae-teal);
}

.ae-coaching__text {
	max-width: 480px;
	font-size: 16px;
	line-height: 26px;
}

.ae-coaching__item a.ae-link {
	margin-top: 24px;
}

/* ---------- 5. Story ---------- */

.ae-story__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(48px, 6vw, 88px);
}

.ae-story__media {
	flex: 1 1 380px;
	min-width: 0;
}

.ae-story--landscape .ae-story__media {
	flex: 1.4 1 480px;
}

.ae-story__media .ae-frame {
	background: rgba(9, 71, 76, 0.08);
}

.ae-story__content {
	flex: 1.2 1 440px;
	min-width: 0;
}

.ae-story--landscape .ae-story__content {
	flex: 1 1 380px;
}

/* Title on one line on desktop: 30px at 1429px and wider, tapering only as far as needed
   below that so it never wraps. Tablets and phones keep the standard heading size. */
@media (min-width: 960px) {
	.ae-story__content .ae-heading--md {
		font-size: clamp(23px, 2.1vw, 30px);
	}
}

.ae-story__text {
	max-width: 560px;
	margin-top: 28px;
}

.ae-story__text p {
	margin: 18px 0 0;
	font-size: 17px;
	line-height: 28px;
}

.ae-story__text p:first-child {
	margin-top: 0;
}

.ae-story__credentials {
	max-width: 560px;
	margin-top: 36px;
	border-top: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-section .ae-story__credentials li {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(9, 71, 76, 0.2);
	font-size: 15px;
	line-height: 24px;
	color: var(--ae-teal);
}

.ae-story__bullet {
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	background: var(--ae-gold);
	transform: translateY(-3px);
}

.ae-story__content a.ae-link {
	margin-top: 32px;
}

/* ---------- 6. What members say ---------- */

.ae-members__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(40px, 6vw, 80px);
}

.ae-members__media {
	flex: 1.4 1 480px;
	min-width: 0;
}

.ae-members__content {
	flex: 1 1 340px;
	min-width: 0;
}

.ae-members__quote {
	padding: 0;
	border: 0;
}

.ae-members__quote p {
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 300;
	line-height: 1.5;
	color: var(--ae-teal);
}

.ae-members__attribution {
	margin-top: 24px;
	font-size: 14px;
	letter-spacing: 0.04em;
}

/* ---------- 7. Booking CTA ---------- */

.ae-cta__inner {
	max-width: 880px;
	margin: 0 auto;
	padding: clamp(72px, 8vw, 120px) var(--ae-gutter);
	box-sizing: border-box;
	text-align: center;
}

.ae-cta__text {
	max-width: 560px;
	margin: 28px auto 0;
	font-size: 17px;
	line-height: 28px;
	color: var(--ae-white);
}

.ae-section .ae-cta__text ul,
.ae-section .ae-cta__text ol {
	padding-left: 0;
	list-style-position: inside;
}

.ae-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px 28px;
	margin-top: 40px;
}

.ae-cta__note {
	margin-top: 20px;
	font-size: 14px;
	letter-spacing: 0.04em;
	color: var(--ae-ink-muted);
}

/* ==========================================================
   About page sections
   ========================================================== */

/* ---------- A1. Page banner with photo strip ---------- */

.ae-page-banner {
	overflow: hidden;
	isolation: isolate;
	background: var(--ae-teal);
	color: var(--ae-white);
}

.ae-page-banner__inner {
	padding-top: clamp(56px, 4.5vw, 64px);
	text-align: center;
}

.ae-section .ae-page-banner__eyebrow {
	margin-bottom: 22px;
}

.ae-page-banner .ae-page-banner__title {
	max-width: 980px;
	margin: 0 auto;
	font-family: var(--ae-font-display);
	font-size: clamp(34px, 3.8vw, 52px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.07em;
	color: var(--ae-gold);
}

.ae-page-banner__intro {
	max-width: 640px;
	margin: 26px auto 0;
	font-size: 17px;
	font-weight: 300;
	line-height: 28px;
	color: var(--ae-white);
}

.ae-page-banner a.ae-page-banner__link {
	margin-top: 24px;
}

.ae-page-banner__strip {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: end;
	gap: 16px;
	max-width: 1000px;
	margin: clamp(40px, 3vw, 44px) auto 0;
}

/* White band behind the lower part of the photos, so the strip straddles teal and white. */
.ae-page-banner__strip::before {
	content: "";
	position: absolute;
	left: -100vw;
	right: -100vw;
	bottom: 0;
	z-index: -1;
	height: 72%;
	background: var(--ae-white);
}

.ae-page-banner .ae-frame {
	background: #c9d6d4;
}

.ae-page-banner__photo--left,
.ae-page-banner__photo--right {
	aspect-ratio: 4 / 5;
}

.ae-page-banner__photo--centre {
	aspect-ratio: 4 / 3;
}

@media (max-width: 760px) {
	.ae-page-banner__intro {
		font-size: 16px;
		line-height: 26px;
	}

	.ae-page-banner__strip {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.ae-page-banner__photo--centre {
		grid-column: 1 / -1;
		order: -1;
	}
}

/* ---------- A2. Founder story ---------- */

.ae-founder {
	--ae-heading-size: clamp(32px, 3.4vw, 46px);
}

.ae-founder__signature {
	margin: 0;
	font-size: 14px;
	line-height: 22px;
	color: var(--ae-teal);
}

.ae-founder__signature strong {
	display: block;
	font-weight: 500;
}

.ae-founder__signature span {
	display: block;
	font-size: 11px;
	letter-spacing: 0.24em;
}

.ae-founder__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	align-items: stretch;
	gap: clamp(32px, 4vw, 56px);
	margin-top: 44px;
}

.ae-founder__photo {
	height: 100%;
	min-height: 360px;
}

.ae-founder__story {
	column-count: 2;
	column-gap: clamp(28px, 3vw, 48px);
	padding-top: 24px;
	border-top: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-founder__story.ae-richtext > * + * {
	margin-top: 0;
}

.ae-founder__story p {
	margin: 0 0 16px;
	font-size: 15.5px;
	line-height: 25px;
}

.ae-founder__story > p:first-child,
.ae-founder__story > p:last-child {
	color: var(--ae-teal);
}

@media (max-width: 760px) {
	.ae-founder__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ae-founder__photo {
		height: auto;
		min-height: 0;
		aspect-ratio: 4 / 5;
	}

	.ae-founder__story {
		column-count: 1;
	}

	.ae-founder__story p {
		font-size: 16px;
		line-height: 26px;
	}
}

/* ---------- A3. Principles ---------- */

.ae-principles {
	--ae-heading-size: clamp(32px, 3.4vw, 46px);
}

.ae-principles__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 32px;
	margin-top: 48px;
}

.ae-principles__item {
	padding-top: 22px;
	border-top: 2px solid var(--ae-teal);
}

.ae-principles__title {
	margin: 0 0 10px;
	font-family: var(--ae-font-sans);
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
	color: var(--ae-teal);
}

.ae-principles__text {
	font-size: 16px;
	line-height: 26px;
}

@media (max-width: 1023px) {
	.ae-principles__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ae-principles__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

/* ---------- A4. Feature grid with photo ---------- */

.ae-experience__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(40px, 6vw, 88px);
}

.ae-experience__media {
	flex: 0.9 1 320px;
	min-width: 0;
}

.ae-experience__media .ae-frame {
	background: var(--ae-teal-soft);
}

.ae-experience__content {
	flex: 1.3 1 440px;
	min-width: 0;
}

.ae-experience__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 40px;
	margin-top: 44px;
}

.ae-experience__item {
	padding-top: 18px;
	border-top: 1px solid var(--ae-line);
}

.ae-experience__title {
	margin: 0 0 8px;
	font-family: var(--ae-font-sans);
	font-size: 18px;
	font-weight: 500;
	line-height: 26px;
	color: var(--ae-white);
}

.ae-experience__text {
	font-size: 15px;
	line-height: 24px;
	color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 600px) {
	.ae-experience__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}

/* ---------- A5. Qualifications ---------- */

.ae-quals {
	--ae-heading-size: clamp(32px, 3.1vw, 42px);
}

.ae-quals__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 44px;
}

.ae-quals__card {
	padding: 28px;
	border: 1px solid rgba(9, 71, 76, 0.25);
}

.ae-quals__icon {
	display: block;
}

.ae-quals__title {
	margin: 18px 0 8px;
	font-family: var(--ae-font-sans);
	font-size: 18px;
	font-weight: 500;
	line-height: 26px;
	color: var(--ae-teal);
}

.ae-quals__org {
	font-size: 14px;
	line-height: 22px;
}

@media (max-width: 760px) {
	.ae-quals__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================
   Contact page sections
   ========================================================== */

.ae-heading--sm {
	font-size: clamp(28px, 3vw, 40px);
}

.ae-heading--xs {
	font-size: clamp(26px, 2.8vw, 36px);
}

a.ae-btn--teal,
a.ae-btn--teal:visited,
.ae-btn--teal {
	background: var(--ae-teal);
	color: var(--ae-white);
}

a.ae-btn--teal:hover,
a.ae-btn--teal:focus-visible {
	color: var(--ae-white);
}

/* ---------- C1. Compact split banner ---------- */

.ae-split-banner__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
	align-items: end;
	gap: clamp(28px, 4vw, 64px);
	padding-top: clamp(44px, 5vw, 72px);
	padding-bottom: clamp(40px, 5vw, 64px);
}

.ae-section .ae-split-banner__main .ae-eyebrow {
	margin-bottom: 16px;
}

.ae-split-banner .ae-split-banner__title {
	font-size: clamp(32px, 3.1vw, 42px);
	letter-spacing: 0.07em;
}

.ae-split-banner__rule {
	align-self: stretch;
	background: var(--ae-gold);
}

.ae-split-banner__text {
	max-width: 440px;
	font-size: 17px;
	line-height: 28px;
}

@media (max-width: 760px) {
	.ae-split-banner__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.ae-split-banner__rule {
		align-self: start;
		width: 48px;
		height: 2px;
	}

	.ae-split-banner__text {
		font-size: 16px;
		line-height: 26px;
	}
}

/* ---------- C2. Direct contact + enquiry form ---------- */

.ae-contact__grid {
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	align-items: start;
	gap: clamp(32px, 5vw, 80px);
	padding-top: clamp(48px, 6vw, 88px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

.ae-contact__aside {
	padding-top: clamp(28px, 4.5vw, 64px);
}

.ae-section .ae-contact__aside .ae-eyebrow {
	margin-bottom: 18px;
}

a.ae-contact__whatsapp {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 56px;
	padding: 16px 24px;
	box-sizing: border-box;
}

.ae-contact__list {
	margin-top: 28px;
	border-top: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-section .ae-contact__list li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-contact__list .ae-icon {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--ae-teal);
}

.ae-contact__list div {
	min-width: 0;
}

.ae-contact__label {
	font-size: 13px;
	line-height: 20px;
	color: #5a5f5c;
}

a.ae-contact__value,
a.ae-contact__value:visited {
	display: inline-block;
	min-height: 32px;
	font-size: 17px;
	font-weight: 500;
	line-height: 28px;
	color: var(--ae-teal);
	text-decoration: underline !important;
	text-underline-offset: 4px;
	overflow-wrap: break-word;
}

.ae-contact__panel {
	min-width: 0;
	padding: clamp(28px, 4.5vw, 64px);
	background: var(--ae-ivory);
}

.ae-contact__intro {
	max-width: 520px;
	margin-top: 16px;
	font-size: 16px;
	font-weight: 300;
	line-height: 27px;
}

.ae-contact__form {
	margin-top: 40px;
}

.ae-contact__failure {
	margin-top: 14px;
}

.ae-contact__success {
	padding: 28px;
	background: var(--ae-ivory);
	border-top: 3px solid var(--ae-teal);
}

.ae-contact__success:focus {
	outline: none;
}

.ae-contact__success-title {
	margin-top: 16px;
	font-family: var(--ae-font-display);
	font-size: 22px;
	letter-spacing: 0.08em;
	color: var(--ae-teal);
}

.ae-contact__success-text {
	margin-top: 10px;
	font-size: 16px;
	line-height: 26px;
}

.ae-contact__success-link {
	margin-top: 16px;
	font-size: 14px;
	line-height: 22px;
}

/* Contact Form 7 markup, laid out with the theme's form template */

.ae-contact__form .wpcf7-form {
	margin: 0;
}

.ae-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 34px 40px;
}

.ae-form__field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ae-form__field--full,
.ae-form__footer {
	grid-column: 1 / -1;
}

.ae-contact__form .ae-form__label {
	display: block;
	padding: 0;
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ae-teal);
}

.ae-contact__form .ae-form__label em {
	margin-left: 8px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: none;
	color: #6b6f6c;
}

.ae-contact__form .wpcf7-form-control-wrap {
	display: block;
}

.ae-contact__form input[type="text"],
.ae-contact__form input[type="email"],
.ae-contact__form input[type="tel"],
.ae-contact__form textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 4px 0 0;
	padding: 10px 0;
	box-sizing: border-box;
	border: 0;
	border-bottom: 1px solid rgba(9, 71, 76, 0.38);
	border-radius: 0;
	background: transparent;
	font-family: var(--ae-font-sans);
	font-size: 17px;
	font-weight: 300;
	line-height: 26px;
	color: var(--ae-charcoal);
	-webkit-appearance: none;
	appearance: none;
}

.ae-contact__form textarea {
	min-height: 120px;
	resize: vertical;
}

.ae-contact__form input::placeholder,
.ae-contact__form textarea::placeholder {
	color: #8a8e8b;
	font-weight: 300;
}

.ae-contact__form input[type="text"]:hover,
.ae-contact__form input[type="email"]:hover,
.ae-contact__form input[type="tel"]:hover,
.ae-contact__form textarea:hover {
	border-bottom-color: rgba(9, 71, 76, 0.7);
}

.ae-contact__form input[type="text"]:focus,
.ae-contact__form input[type="email"]:focus,
.ae-contact__form input[type="tel"]:focus,
.ae-contact__form textarea:focus {
	border-bottom: 1px solid var(--ae-teal);
	box-shadow: 0 1px 0 var(--ae-teal);
	outline: none;
}

/* Interest options as square chips on real inputs */
.ae-contact__form .wpcf7-checkbox,
.ae-contact__form .wpcf7-radio {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
	gap: 10px;
	margin-top: 14px;
}

.ae-contact__form .wpcf7-list-item {
	display: flex;
	margin: 0;
}

.ae-contact__form .wpcf7-list-item label {
	position: relative;
	display: flex;
	flex: 1;
	margin: 0;
}

.ae-contact__form .wpcf7-list-item input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.ae-contact__form .wpcf7-list-item-label {
	display: inline-flex;
	flex: 1;
	align-items: center;
	min-height: 46px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid rgba(9, 71, 76, 0.32);
	font-size: 14px;
	color: var(--ae-teal);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ae-contact__form .wpcf7-list-item label:hover .wpcf7-list-item-label {
	border-color: var(--ae-teal);
}

.ae-contact__form .wpcf7-list-item input:checked + .wpcf7-list-item-label {
	background: var(--ae-teal);
	border-color: var(--ae-teal);
	color: var(--ae-white);
}

.ae-contact__form .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label {
	outline: 3px solid var(--ae-gold-light) !important;
	outline-offset: 2px;
}

.ae-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	padding-top: 4px;
}

.ae-contact__form .ae-form__note {
	flex: 1 1 100%;
	margin: 0;
	font-size: 13px;
	line-height: 21px;
	color: #5a5f5c;
}

.ae-contact__form .ae-form__note a,
.ae-contact__form .ae-form__note a:visited {
	font-size: inherit;
	color: var(--ae-teal);
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.ae-form__submit {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.ae-contact__form .wpcf7-submit {
	min-height: 56px;
	padding: 20px 40px;
	border: 0;
	border-radius: 0;
	background: var(--ae-teal);
	font-family: var(--ae-font-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ae-white);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: opacity 0.2s ease;
}

.ae-contact__form .wpcf7-submit:disabled {
	opacity: 0.75;
	cursor: progress;
}

.ae-contact__form .wpcf7-submit:focus-visible,
.ae-contact a:focus-visible {
	outline: 3px solid var(--ae-gold-light) !important;
	outline-offset: 2px;
}

.ae-contact__form .wpcf7-spinner {
	display: none;
}

.ae-contact__form .ae-form__hint {
	font-size: 13px;
	line-height: 20px;
	color: #5a5f5c;
}

/* Errors: summary at the top, red 2px underline and a message under each field */
.ae-contact__form .wpcf7 .screen-reader-response:has(li) {
	position: static;
	width: auto;
	height: auto;
	margin: 0 0 28px;
	padding: 14px 16px;
	overflow: visible;
	clip: auto;
	clip-path: none;
	border: 1px solid #a33a2b;
	background: #fbf1ef;
	font-size: 14px;
	line-height: 22px;
	color: #7a2a1f;
	word-wrap: normal;
}

.ae-contact__form .screen-reader-response p {
	margin: 0;
	font-weight: 500;
}

.ae-contact__form .screen-reader-response:focus {
	outline: 3px solid var(--ae-gold-light) !important;
	outline-offset: 2px;
}

.ae-contact__form .screen-reader-response ul {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.ae-contact__form .screen-reader-response a,
.ae-contact__form .screen-reader-response a:visited {
	font-size: inherit;
	color: #7a2a1f;
	text-decoration: underline !important;
}

.ae-contact__form .wpcf7-not-valid {
	border-bottom: 2px solid #a33a2b !important;
	box-shadow: none !important;
}

.ae-contact__form .wpcf7-not-valid-tip {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	font-size: 14px;
	line-height: 21px;
	color: #7a2a1f;
}

.ae-contact__form .wpcf7-not-valid-tip::before {
	content: "!";
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border: 1.4px solid #a33a2b;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}

.ae-contact__form .wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 18px 20px;
	border: 1px solid #a33a2b;
	background: #fbf1ef;
	font-size: 14px;
	line-height: 22px;
	color: #7a2a1f;
}

.ae-contact__form .wpcf7 form.invalid .wpcf7-response-output,
.ae-contact__form .wpcf7 form.sent .wpcf7-response-output,
.ae-contact__form .wpcf7 form.init .wpcf7-response-output,
.ae-contact__form .wpcf7 form.resetting .wpcf7-response-output,
.ae-contact__form .wpcf7 form.submitting .wpcf7-response-output {
	display: none;
}

@media (min-width: 1024px) and (max-width: 1199px) {
	.ae-contact__grid {
		grid-template-columns: 300px minmax(0, 1fr);
		gap: 40px;
	}

	.ae-contact__panel {
		padding: 40px;
	}
}

@media (max-width: 1023px) {
	.ae-contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ae-contact__aside {
		padding-top: 0;
	}
}

@media (max-width: 760px) {
	.ae-contact__grid {
		padding-bottom: 0;
	}

	.ae-contact__panel {
		margin: 0 calc(-1 * var(--ae-gutter));
		padding: 40px var(--ae-gutter) 48px;
	}

	.ae-form {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.ae-form__submit,
	.ae-contact__form .wpcf7-submit {
		width: 100%;
	}
}

/* ---------- C3. Where we train ---------- */

.ae-settings__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px 64px;
	padding-top: clamp(48px, 6vw, 80px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

.ae-settings__content {
	flex: 1 1 420px;
	min-width: 0;
}

.ae-settings__text {
	max-width: 560px;
	margin-top: 18px;
	font-size: 16px;
	line-height: 26px;
}

.ae-section .ae-settings__tiles {
	display: flex;
	flex: 0 1 auto;
	flex-wrap: wrap;
	gap: 12px;
	width: auto;
}

.ae-section .ae-settings__tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	width: 150px;
	padding: 20px;
	box-sizing: border-box;
	border: 1px solid var(--ae-line);
	font-size: 15px;
	line-height: 22px;
}

@media (max-width: 760px) {
	.ae-section .ae-settings__tiles {
		width: 100%;
	}

	.ae-section .ae-settings__tile {
		flex: 1 1 140px;
		width: auto;
	}
}

@media (max-width: 480px) {
	.ae-section .ae-settings__tile {
		flex: 1 1 100%;
		flex-direction: row;
		align-items: center;
		gap: 16px;
		padding: 16px 20px;
	}
}

/* ---------- C4. Outlined CTA box ---------- */

.ae-cta-box__outer {
	padding-top: clamp(48px, 6vw, 80px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

.ae-cta-box__box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	padding: clamp(28px, 4vw, 48px);
	border: 1px solid rgba(9, 71, 76, 0.25);
	border-top: 3px solid var(--ae-gold);
}

.ae-cta-box__content {
	flex: 1 1 420px;
	min-width: 0;
}

.ae-cta-box__text {
	max-width: 560px;
	margin-top: 14px;
	font-size: 16px;
	line-height: 26px;
}

.ae-cta-box__note {
	max-width: 560px;
	margin-top: 12px;
	font-size: 14px;
	line-height: 22px;
	color: #5a5f5c;
}

a.ae-cta-box__button {
	min-height: 56px;
	box-sizing: border-box;
}

@media (max-width: 760px) {
	a.ae-cta-box__button {
		display: block;
		width: 100%;
	}
}

/* ==========================================================
   Coaching page sections
   ========================================================== */

/* ---------- P1. Light hero with facts strip ---------- */

.ae-lhero__inner {
	padding-top: clamp(48px, 6vw, 88px);
	padding-bottom: clamp(40px, 5vw, 64px);
}

.ae-section .ae-lhero__eyebrow {
	margin-bottom: 24px;
}

.ae-lhero .ae-lhero__title {
	max-width: 1000px;
	margin: 0;
	font-family: var(--ae-font-display);
	font-size: clamp(40px, 4.4vw, 62px);
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: 0.06em;
	color: var(--ae-teal);
	overflow-wrap: break-word;
}

.ae-lhero__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px 48px;
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-lhero__intro {
	max-width: 560px;
	font-size: 17px;
	line-height: 28px;
}

.ae-lhero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
}

.ae-lhero__media {
	max-width: 1440px;
	margin: 0 auto;
}

.ae-lhero__frame {
	aspect-ratio: 21 / 9;
}

.ae-lhero__facts {
	background: var(--ae-teal);
	color: var(--ae-white);
}

.ae-section .ae-lhero__facts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	margin-top: 0;
	margin-bottom: 0;
}

.ae-lhero__fact {
	padding: 24px;
	border-right: 1px solid var(--ae-line);
}

.ae-lhero__fact:first-child {
	padding-left: 0;
}

.ae-lhero__fact:last-child {
	border-right: 0;
}

.ae-lhero__fact-label {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.3em;
	color: var(--ae-gold-light);
}

.ae-lhero__fact-text {
	margin: 0;
	font-size: 15px;
	line-height: 24px;
}

@media (max-width: 760px) {
	.ae-lhero__intro {
		font-size: 16px;
		line-height: 26px;
	}

	.ae-lhero__frame {
		aspect-ratio: 4 / 3;
	}

	.ae-section .ae-lhero__facts-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ae-lhero__fact {
		padding: 16px 0;
		border-right: 0;
		border-bottom: 1px solid var(--ae-line);
	}

	.ae-lhero__fact:last-child {
		border-bottom: 0;
	}
}

/* ---------- P2. Coaching option cards ---------- */

.ae-optcards .ae-section__head-main,
.ae-pillars .ae-section__head-main {
	max-width: 680px;
}

/* The pillar heading runs smaller than the standard section heading: it sits above five tiles and
   reads as a caption for them rather than a statement across the page. */
.ae-pillars .ae-heading {
	font-size: clamp(24px, 2.8vw, 38px);
	letter-spacing: 0.07em;
}

.ae-section .ae-optcards__intro {
	max-width: 420px;
}

.ae-optcards__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 24px;
	margin-top: 48px;
}

.ae-optcards__card {
	display: flex;
	flex-direction: column;
	background: var(--ae-ivory);
}

.ae-optcards__card .ae-frame {
	background: rgba(9, 71, 76, 0.12);
}

.ae-optcards__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(24px, 3vw, 40px);
}

.ae-optcards__tag {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ae-section .ae-optcards__title {
	margin: 16px 0 10px;
	font-family: var(--ae-font-sans);
	font-size: 26px;
	font-weight: 500;
	line-height: 34px;
	letter-spacing: 0;
	color: var(--ae-teal);
}

.ae-optcards__text {
	font-size: 16px;
	line-height: 26px;
}

.ae-section .ae-optcards__points ul {
	margin-top: 24px;
	border-top: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-section .ae-optcards__points li,
.ae-section .ae-optcards__points > p {
	display: flex;
	gap: 14px;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid rgba(9, 71, 76, 0.2);
	font-size: 15px;
	line-height: 24px;
}

.ae-section .ae-optcards__points > p:first-child {
	margin-top: 24px;
	border-top: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-optcards__points li::before,
.ae-optcards__points > p::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3 10.5l4.5 4.5L17 5.5' stroke='%2309474c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ae-optcards__suits {
	margin-top: auto;
	padding-top: 24px;
	font-size: 16px;
	font-weight: 500;
	line-height: 26px;
	color: var(--ae-teal);
}

.ae-optcards__note {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px 32px;
	margin-top: 24px;
	padding: 20px 24px;
	border: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-optcards__note-text {
	max-width: 760px;
	font-size: 15px;
	line-height: 24px;
}

.ae-optcards__note-text strong {
	color: var(--ae-teal);
}

a.ae-optcards__note-link {
	white-space: nowrap;
	text-underline-offset: 5px;
}

/* CTA under the cards: opens the Coaching tab on the booking page. */
.ae-optcards__actions {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.ae-optcards__actions .ae-btn {
	min-width: min(260px, 100%);
	box-sizing: border-box;
}

/* ---------- P3. Numbered steps ---------- */

.ae-steps {
	--ae-heading-size: clamp(32px, 3.1vw, 42px);
}

.ae-steps__intro {
	max-width: 620px;
	margin-top: 24px;
	font-size: 17px;
	line-height: 28px;
}

.ae-section .ae-steps__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-top: 56px;
}

.ae-steps__item {
	padding-top: 24px;
	border-top: 2px solid var(--ae-teal);
}

.ae-steps__number {
	font-family: var(--ae-font-display);
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: 0.08em;
	color: var(--ae-teal);
}

.ae-section .ae-steps__title {
	margin: 12px 0 10px;
	font-family: var(--ae-font-sans);
	font-size: 21px;
	font-weight: 500;
	line-height: 29px;
	letter-spacing: 0;
	color: var(--ae-teal);
}

.ae-steps__text {
	font-size: 16px;
	line-height: 26px;
}

/* Photo above each step (Blueprint page) */
.ae-section.ae-steps--photos .ae-steps__list {
	gap: 40px 32px;
}

.ae-steps--photos .ae-steps__item {
	padding-top: 0;
	border-top: 0;
}

.ae-steps__photo {
	aspect-ratio: 4 / 3;
}

.ae-steps--photos .ae-steps__number {
	margin-top: 28px;
}

.ae-section.ae-steps--photos .ae-steps__title {
	margin-top: 10px;
}

@media (max-width: 760px) {
	.ae-steps__intro {
		font-size: 16px;
		line-height: 26px;
	}

	.ae-section .ae-steps__list {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 40px;
	}
}

/* ---------- P4. App support with phone frame ---------- */

.ae-app {
	--ae-heading-size: clamp(32px, 3.4vw, 46px);
}

.ae-app__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(48px, 7vw, 112px);
}

.ae-app__content {
	flex: 1.3 1 440px;
	min-width: 0;
	max-width: 620px;
}

.ae-app__intro {
	margin-top: 24px;
	font-size: 17px;
	font-weight: 300;
	line-height: 28px;
}

.ae-section .ae-app__features {
	margin-top: 36px;
	border-top: 1px solid var(--ae-line);
}

.ae-app__feature {
	display: flex;
	gap: 18px;
	padding: 20px 0;
	border-bottom: 1px solid var(--ae-line);
}

.ae-app__feature svg,
.ae-app__feature .ae-custom-icon {
	flex-shrink: 0;
	margin-top: 2px;
}

.ae-section .ae-app__feature-title {
	margin: 0 0 4px;
	font-family: var(--ae-font-sans);
	font-size: 18px;
	font-weight: 500;
	line-height: 26px;
	letter-spacing: 0;
	color: var(--ae-white);
}

.ae-app__feature-text {
	font-size: 15px;
	line-height: 24px;
	color: rgba(255, 255, 255, 0.86);
}

.ae-app__note {
	margin-top: 20px;
	font-size: 13px;
	line-height: 20px;
	color: var(--ae-ink-muted);
}

.ae-app__figure {
	display: flex;
	flex: 0 1 300px;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	margin: 0 auto;
}

.ae-app__phone {
	position: relative;
	width: clamp(220px, 22vw, 290px);
	aspect-ratio: 9 / 19;
	overflow: hidden;
	box-sizing: border-box;
	border: 10px solid #062f33;
	border-radius: 40px;
	background: #0e555b;
}

.ae-app__phone img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: top;
}

.ae-app__notch {
	position: absolute;
	top: 10px;
	left: 50%;
	z-index: 1;
	width: 34%;
	height: 18px;
	border-radius: 10px;
	background: #062f33;
	transform: translateX(-50%);
}

.ae-app__caption {
	margin-top: 16px;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-align: center;
	color: var(--ae-ink-muted);
}

@media (max-width: 760px) {
	.ae-app__content {
		flex-basis: 100%;
	}

	.ae-app__intro {
		font-size: 16px;
		line-height: 26px;
	}

	.ae-app__phone {
		width: 220px;
	}
}

/* ---------- P5. Pillar tiles ---------- */

.ae-section .ae-pillars__intro {
	max-width: 430px;
}

.ae-section .ae-pillars__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin-top: 48px;
}

.ae-pillars__tile {
	padding: 28px 24px;
	background: var(--ae-ivory);
}

.ae-pillars__tile svg,
.ae-pillars__tile .ae-custom-icon {
	display: block;
}

.ae-section .ae-custom-icon {
	flex-shrink: 0;
	max-width: none;
	object-fit: contain;
}

.ae-section .ae-pillars__title {
	margin: 20px 0 10px;
	font-family: var(--ae-font-sans);
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0.24em;
	color: var(--ae-teal);
}

.ae-pillars__text {
	font-size: 15px;
	line-height: 24px;
}

/* Columns under a line (Blueprint page) */
.ae-section.ae-pillars--columns .ae-pillars__intro {
	max-width: 400px;
}

.ae-section.ae-pillars--columns .ae-pillars__grid {
	gap: 0;
	margin-top: 56px;
	border-top: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-pillars--columns .ae-pillars__tile {
	padding: 32px 28px 8px 0;
	background: none;
}

.ae-section.ae-pillars--columns .ae-pillars__title {
	font-size: 19px;
	line-height: 26px;
	letter-spacing: 0;
}

@media (max-width: 1199px) {
	.ae-section .ae-pillars__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ae-section .ae-pillars__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ae-section.ae-pillars--columns .ae-pillars__grid {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 40px;
	}

	.ae-pillars--columns .ae-pillars__tile {
		padding: 28px 0 24px;
		border-bottom: 1px solid rgba(9, 71, 76, 0.2);
	}
}

@media (max-width: 479px) {
	.ae-section .ae-pillars__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- P6. Client quote ---------- */

.ae-quote__inner {
	max-width: 960px;
	margin: 0 auto;
	padding: clamp(64px, 7vw, 104px) var(--ae-gutter);
	box-sizing: border-box;
	text-align: center;
}

.ae-quote--divider::before {
	content: "";
	display: block;
	width: calc(100% - 2 * var(--ae-gutter));
	max-width: calc(var(--ae-container) - 2 * var(--ae-gutter));
	height: 1px;
	margin: 0 auto;
	background: rgba(9, 71, 76, 0.2);
}

.ae-quote__mark {
	display: block;
	margin: 12px auto 0;
}

.ae-quote__text p {
	max-width: 760px;
	margin: 24px auto 0;
	font-size: clamp(20px, 2.2vw, 27px);
	font-weight: 300;
	line-height: 1.5;
	color: var(--ae-teal);
}

.ae-quote__attribution {
	margin-top: 24px;
	font-size: 14px;
	letter-spacing: 0.06em;
}

/* ==========================================================
   Blueprint page sections
   ========================================================== */

/* Ticked list from a WYSIWYG bullet list (gold ticks on light, gold-light on teal) */
.ae-section .ae-ticks ul {
	border-top: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-section .ae-ticks li,
.ae-section .ae-ticks > p {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid rgba(9, 71, 76, 0.2);
	font-size: 16px;
	line-height: 26px;
	color: var(--ae-teal);
}

.ae-ticks li::before,
.ae-ticks > p::before {
	content: "";
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 3px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3 10.5l4.5 4.5L17 5.5' stroke='%23cda349' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ae-section .ae-ticks--light ul {
	border-top-color: var(--ae-line);
}

.ae-section .ae-ticks--light li,
.ae-section .ae-ticks--light > p {
	padding: 22px 0;
	border-bottom-color: var(--ae-line);
	font-size: 17px;
	line-height: 27px;
	color: var(--ae-white);
}

.ae-ticks--light li::before,
.ae-ticks--light > p::before {
	margin-top: 4px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3 10.5l4.5 4.5L17 5.5' stroke='%23e2bb6c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- B1. Checklist + sample report card ---------- */

.ae-leave__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(48px, 6vw, 88px);
}

.ae-leave__content {
	flex: 1 1 380px;
	min-width: 0;
}

.ae-section .ae-leave__points {
	margin-top: 40px;
}

.ae-leave__figure {
	flex: 1.25 1 460px;
	min-width: 0;
}

.ae-report {
	box-sizing: border-box;
	border: 1px solid rgba(9, 71, 76, 0.25);
	background: var(--ae-white);
}

.ae-report__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px clamp(18px, 3vw, 32px);
	background: var(--ae-teal);
}

.ae-report__label {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.3em;
	color: var(--ae-gold-light);
}

.ae-report__title {
	margin-top: 6px;
	font-family: var(--ae-font-display);
	font-size: clamp(17px, 2vw, 22px);
	letter-spacing: 0.08em;
	color: var(--ae-gold);
}

.ae-report__tag {
	padding: 6px 9px;
	background: var(--ae-gold-light);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.14em;
	white-space: nowrap;
	color: var(--ae-teal);
}

.ae-report__body {
	padding: clamp(18px, 3vw, 32px);
	font-size: 13px;
	line-height: 20px;
}

.ae-report__heading {
	margin-bottom: 10px;
	font-family: var(--ae-font-display);
	font-size: 16px;
	letter-spacing: 0.08em;
	color: var(--ae-teal);
}

.ae-report__heading--priorities {
	margin-top: 24px;
	margin-bottom: 4px;
}

.ae-section .ae-report__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 12.5px;
}

.ae-section .ae-report__table th,
.ae-section .ae-report__table td {
	padding: 10px 4px;
	border: 0;
	border-bottom: 1px solid rgba(9, 71, 76, 0.15);
	background: none;
	text-align: center;
	vertical-align: middle;
}

.ae-section .ae-report__table thead th {
	padding: 8px 2px;
	border-bottom: 0;
	background: var(--ae-ivory);
	font-size: 11px;
	font-weight: 500;
	color: var(--ae-teal);
}

.ae-section .ae-report__table th:first-child {
	padding-left: 6px;
	text-align: left;
}

.ae-section .ae-report__table tbody th {
	padding-left: 0;
	font-weight: 500;
	color: var(--ae-teal);
}

.ae-report__dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	box-sizing: border-box;
	border: 1.5px solid rgba(9, 71, 76, 0.45);
	border-radius: 50%;
	vertical-align: middle;
}

.ae-report__dot.is-marked {
	border-color: var(--ae-teal);
	background: var(--ae-teal);
}

.ae-section .ae-report__priorities {
	margin: 0;
	border-top: 1px solid rgba(9, 71, 76, 0.15);
}

.ae-report__priority {
	display: grid;
	grid-template-columns: minmax(110px, 0.8fr) 1.2fr;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid rgba(9, 71, 76, 0.15);
}

.ae-section .ae-report__priority dt {
	margin: 0;
	font-size: 14px;
	line-height: 22px;
	font-weight: 500;
	color: var(--ae-teal);
}

/* Matched to the ticked list opposite (16px), so the two columns carry the same text weight.
   Caveat has a small x-height, so the handwriting is set a step larger to read at the same size. */
.ae-section .ae-report__priority dd {
	margin: 0;
	font-family: "Caveat", "Segoe Print", cursive;
	font-size: 23px;
	line-height: 26px;
	color: var(--ae-teal);
}

.ae-leave__caption {
	margin-top: 14px;
	font-size: 13px;
	line-height: 20px;
}

@media (max-width: 480px) {
	.ae-report__head {
		flex-wrap: wrap;
	}

	.ae-section .ae-report__table thead th {
		font-size: 10px;
	}
}

@media (max-width: 359px) {
	.ae-report__body {
		padding: 16px 12px;
	}

	.ae-section .ae-report__table {
		font-size: 11.5px;
	}

	.ae-section .ae-report__table th,
	.ae-section .ae-report__table td {
		padding-right: 2px;
		padding-left: 2px;
	}

	.ae-section .ae-report__table thead th {
		font-size: 9px;
	}

	.ae-report__dot {
		width: 12px;
		height: 12px;
	}

	.ae-report__priority {
		grid-template-columns: minmax(96px, 0.8fr) 1.2fr;
	}
}

/* ---------- B2. Heading + checklist (teal) ---------- */

.ae-checklist__inner {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(40px, 6vw, 88px);
}

.ae-checklist__content {
	flex: 1 1 360px;
	min-width: 0;
}

.ae-checklist__intro {
	max-width: 420px;
	margin-top: 24px;
	font-size: 17px;
	line-height: 28px;
}

.ae-checklist__points {
	flex: 1.2 1 440px;
	min-width: 0;
}

@media (max-width: 760px) {
	.ae-checklist__intro {
		font-size: 16px;
		line-height: 26px;
	}
}

/* ---------- B3. Next step cards ---------- */

.ae-nextsteps .ae-section__head-main {
	max-width: 640px;
}

.ae-section .ae-nextsteps__intro {
	max-width: 460px;
}

.ae-nextsteps__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 24px;
	margin-top: 48px;
}

.ae-nextsteps__card {
	padding: clamp(24px, 3vw, 40px);
	background: var(--ae-white);
}

.ae-nextsteps__tag {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ae-section .ae-nextsteps__title {
	margin: 18px 0 10px;
	font-family: var(--ae-font-sans);
	font-size: 24px;
	font-weight: 500;
	line-height: 32px;
	letter-spacing: 0;
	color: var(--ae-teal);
}

.ae-nextsteps__text {
	font-size: 16px;
	line-height: 26px;
}

a.ae-nextsteps__link {
	margin-top: 32px;
}

/* ==========================================================
   Booking page sections
   ========================================================== */

/* ---------- K1. Compact booking banner ---------- */

.ae-bkbanner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px 64px;
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(36px, 4vw, 52px);
}

.ae-bkbanner__content {
	flex: 1 1 460px;
	min-width: 0;
}

.ae-section .ae-bkbanner__eyebrow {
	margin-bottom: 16px;
}

.ae-bkbanner .ae-bkbanner__title {
	margin: 0;
	font-family: var(--ae-font-display);
	font-size: clamp(30px, 3.6vw, 48px);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: 0.07em;
	color: var(--ae-gold);
	overflow-wrap: break-word;
}

.ae-bkbanner__text {
	max-width: 520px;
	margin-top: 16px;
	font-size: 17px;
	font-weight: 300;
	line-height: 28px;
}

.ae-section .ae-bkbanner__steps {
	display: flex;
	flex: 0 1 auto;
	width: auto;
	border-top: 1px solid var(--ae-line);
}

.ae-bkbanner__step {
	padding: 16px 28px 0 0;
	font-size: 15px;
}

.ae-bkbanner__step:last-child {
	padding-right: 0;
}

.ae-bkbanner__step-number {
	display: block;
	font-size: 11px;
	letter-spacing: 0.2em;
	color: var(--ae-gold-light);
}

@media (max-width: 760px) {
	.ae-bkbanner__text {
		font-size: 16px;
		line-height: 26px;
	}

	.ae-section .ae-bkbanner__steps {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
	}

	.ae-bkbanner__step {
		padding-right: 12px;
		font-size: 14px;
		line-height: 20px;
	}
}

/* ---------- K2. Choice cards ---------- */

.ae-bkchoice__inner {
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(32px, 4vw, 48px);
}

.ae-bkchoice__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 20px;
}

.ae-bkchoice__card {
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3vw, 36px);
	border-top: 3px solid var(--ae-gold);
	background: var(--ae-white);
}

.ae-bkchoice__card--teal {
	border-top-color: var(--ae-teal);
}

.ae-bkchoice__label {
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.3em;
	color: var(--ae-teal);
}

.ae-bkchoice__text {
	font-size: 17px;
	line-height: 28px;
}

.ae-bkchoice__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: auto;
	padding-top: 24px;
}

a.ae-bkchoice__btn {
	min-height: 52px;
	box-sizing: border-box;
	padding: 18px 26px;
	font-size: 13px;
	letter-spacing: 0.18em;
}

a.ae-bkchoice__btn--outline,
a.ae-bkchoice__btn--outline:visited {
	padding: 16.5px 26px;
	border: 1.5px solid var(--ae-teal);
	background: transparent;
	color: var(--ae-teal);
}

a.ae-bkchoice__btn--outline:hover,
a.ae-bkchoice__btn--outline:focus-visible {
	background: var(--ae-teal);
	color: var(--ae-white);
	opacity: 1;
}

.ae-bkchoice__note {
	font-size: 14px;
}

/* ---------- K3. Booking area: tabs, Trafft widget and "Before you book" ---------- */

.ae-booking__inner {
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

.ae-booking__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: clamp(28px, 4vw, 56px);
}

.ae-booking__main {
	min-width: 0;
}

.ae-booking__tabs {
	display: flex;
	border-bottom: 1px solid rgba(9, 71, 76, 0.25);
}

.ae-section .ae-booking__tab {
	min-height: 52px;
	margin: 0 0 -1px;
	padding: 14px 22px;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: transparent;
	font-family: var(--ae-font-sans);
	font-size: 15px;
	font-weight: 500;
	color: rgba(9, 71, 76, 0.7);
	cursor: pointer;
}

.ae-section .ae-booking__tab:hover {
	color: var(--ae-teal);
}

.ae-section .ae-booking__tab[aria-selected="true"] {
	border-bottom-color: var(--ae-teal);
	color: var(--ae-teal);
}

.ae-section .ae-booking__tab:focus-visible,
.ae-section .ae-booking__panel:focus-visible {
	outline: 3px solid var(--ae-gold-light) !important;
	outline-offset: 2px;
}

.ae-booking__panel {
	margin-top: 20px;
}

.ae-booking__panel[hidden] {
	display: none;
}

/* The Trafft widget gets the full column width, with no padding or scroll box of our own.
   Trafft's embed.js writes "border: none" inline on the iframe, so the border needs !important. */
.ae-booking__embed iframe {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	border: 1px solid rgba(9, 71, 76, 0.25) !important;
}

/* embed.js also writes "min-width: 320px" inline, wider than the column on 320px phones. */
.ae-booking__embed .embedded-booking {
	min-width: 0 !important;
}

.ae-booking__fallback {
	padding: clamp(24px, 3vw, 40px);
	border: 1px solid rgba(9, 71, 76, 0.25);
	background: var(--ae-ivory);
	font-size: 16px;
	line-height: 26px;
	color: var(--ae-teal);
}

.ae-booking__fallback[hidden] {
	display: none;
}

.ae-booking__fallback-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
	margin-top: 18px;
}

.ae-booking__help {
	margin-top: 18px;
	font-size: 15px;
	line-height: 24px;
}

.ae-booking__help a.ae-link {
	font-size: inherit;
	text-underline-offset: 5px;
}

/* Shown to clients who already bought a package and need to schedule the remaining sessions. */
.ae-booking__account {
	margin-top: 10px;
	font-size: 15px;
	line-height: 24px;
	color: rgba(9, 71, 76, 0.75);
}

.ae-booking__account a.ae-link {
	font-size: inherit;
	text-underline-offset: 5px;
}

.ae-booking__aside {
	position: sticky;
	top: 24px;
	padding: 28px;
	background: var(--ae-ivory);
}

.ae-sticky-header .ae-booking__aside {
	top: 96px;
}

.ae-section .ae-booking__aside-eyebrow {
	margin-bottom: 4px;
}

.ae-booking__note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 14px 0 4px;
	padding: 16px;
	border-left: 3px solid var(--ae-gold);
	background: var(--ae-white);
	font-size: 15px;
	line-height: 24px;
	color: var(--ae-teal);
}

.ae-booking__note svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.ae-section .ae-booking__details {
	margin: 0;
}

.ae-booking__detail {
	padding: 16px 0;
	border-bottom: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-section .ae-booking__detail dt {
	font-size: 15px;
	font-weight: 500;
	color: var(--ae-teal);
}

.ae-section .ae-booking__detail dd {
	margin: 4px 0 0;
	font-size: 15px;
	line-height: 24px;
}

/* Group coaching: base price is for two, each extra person is priced by package length. */
.ae-booking__group {
	margin-top: 18px;
	padding: 18px 16px;
	background: var(--ae-white);
	border-left: 3px solid var(--ae-teal);
}

.ae-booking__group-heading {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 22px;
	color: var(--ae-teal);
}

.ae-section .ae-booking__group-text {
	margin: 4px 0 0;
	font-size: 14px;
	line-height: 22px;
}

.ae-section .ae-booking__group-table {
	width: 100%;
	margin: 12px 0 0;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 20px;
}

.ae-section .ae-booking__group-table th,
.ae-section .ae-booking__group-table td {
	padding: 7px 0;
	border-bottom: 1px solid rgba(9, 71, 76, 0.18);
	background: none;
	text-align: left;
	font-weight: 400;
	color: var(--ae-teal);
}

.ae-section .ae-booking__group-table td {
	text-align: right;
	font-weight: 500;
	white-space: nowrap;
}

.ae-section .ae-booking__group-note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 20px;
}

.ae-booking__policies-heading {
	margin: 18px 0 8px;
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	color: var(--ae-teal);
}

.ae-section .ae-booking__policies {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ae-booking__policies a.ae-link {
	text-underline-offset: 4px;
}

.ae-booking__ask {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(9, 71, 76, 0.2);
}

.ae-booking__ask-heading {
	font-size: 16px;
	font-weight: 500;
	line-height: 25px;
	color: var(--ae-teal);
}

a.ae-booking__ask-link {
	min-height: 44px;
	margin-top: 12px;
}

@media (max-width: 1023px) {
	.ae-booking__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ae-booking__aside,
	.ae-sticky-header .ae-booking__aside {
		position: static;
	}
}

@media (max-width: 760px) {
	.ae-section .ae-booking__tab {
		flex: 1 1 50%;
		min-height: 56px;
		padding: 12px 10px;
		font-size: 14px;
		line-height: 20px;
	}
}

/* ---------- Site-wide: floating WhatsApp button ---------- */

a.ae-whatsapp-fab,
a.ae-whatsapp-fab:visited {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 990;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25d366;
	color: var(--ae-white);
	box-shadow: 0 8px 24px rgba(9, 71, 76, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.ae-whatsapp-fab:hover {
	color: var(--ae-white);
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 12px 28px rgba(9, 71, 76, 0.34);
}

a.ae-whatsapp-fab:focus-visible {
	outline: 2px solid var(--ae-gold) !important;
	outline-offset: 3px;
}

#gototop {
	right: 38px;
	bottom: 98px;
}

@media (max-width: 668px) {
	a.ae-whatsapp-fab,
	a.ae-whatsapp-fab:visited {
		right: 16px;
		bottom: 16px;
		width: 54px;
		height: 54px;
	}

	#gototop {
		right: 23px;
		bottom: 84px;
	}
}

@media (prefers-reduced-motion: reduce) {
	a.ae-whatsapp-fab,
	.ae-player__play,
	.ae-player__play svg {
		transition: none;
	}
}

/* ==========================================================
   Policy pages (page-templates/policy.php)
   Typography for whatever is written in the WordPress editor, so no per-page markup is needed.
   ========================================================== */

.ae-policy-banner__inner {
	padding-top: clamp(48px, 5vw, 72px);
	padding-bottom: clamp(40px, 4.5vw, 60px);
}

.ae-section .ae-policy-banner__eyebrow {
	margin-bottom: 18px;
}

.ae-policy-banner .ae-policy-banner__title {
	max-width: 900px;
	margin: 0;
	font-family: var(--ae-font-display);
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.07em;
	color: var(--ae-gold);
	overflow-wrap: break-word;
}

.ae-section .ae-policy-banner__meta {
	margin-top: 18px;
	font-size: 13px;
	line-height: 22px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.66);
}

.ae-policy__layout {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
	padding-top: clamp(48px, 6vw, 88px);
	padding-bottom: clamp(56px, 7vw, 104px);
}

.ae-policy__layout--single {
	grid-template-columns: minmax(0, 1fr);
}

/* ---------- Contents list ---------- */

.ae-policy__aside {
	position: sticky;
	top: 110px;
}

.ae-policy__toc {
	border-left: 1px solid rgba(9, 71, 76, 0.16);
	padding-left: 20px;
}

.ae-section .ae-policy__toc-label {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(9, 71, 76, 0.55);
}

.ae-section .ae-policy__toc-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ae-policy__toc-list li {
	position: relative;
	margin: 0;
}

/* The gold rule sits on top of the hairline beside the list, marking the section being read. */
.ae-policy__toc-list li::before {
	content: '';
	position: absolute;
	top: -1px;
	bottom: -1px;
	left: -21px;
	width: 2px;
	background: var(--ae-gold);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.ae-policy__toc-list li.is-active::before {
	opacity: 1;
}

.ae-policy__toc-list li.is-active a,
.ae-policy__toc-list li.is-active a:visited {
	color: var(--ae-gold);
	font-weight: 500;
}

.ae-policy__toc-list a,
.ae-policy__toc-list a:visited {
	font-size: 14px;
	line-height: 21px;
	color: rgba(9, 71, 76, 0.8);
	text-decoration: none;
	display: block;
}

.ae-policy__toc-list a:hover,
.ae-policy__toc-list a:focus-visible {
	color: var(--ae-gold);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- Editor content ---------- */

.ae-policy__content {
	max-width: 720px;
	font-size: 16px;
	line-height: 28px;
	color: rgba(9, 71, 76, 0.86);
}

.ae-policy__layout--single .ae-policy__content {
	margin: 0 auto;
}

.ae-policy__content > :first-child {
	margin-top: 0;
}

.ae-section .ae-policy__content p {
	margin: 0 0 18px;
}

.ae-policy__content h2,
.ae-policy__content h3,
.ae-policy__content h4 {
	font-family: var(--ae-font-sans);
	color: var(--ae-teal);
	overflow-wrap: break-word;
}

/* A hairline above each section heading does the work of separating long clauses. */
.ae-policy__content h2 {
	margin: 44px 0 16px;
	padding-top: 24px;
	border-top: 1px solid rgba(9, 71, 76, 0.16);
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.01em;
	scroll-margin-top: 110px;
}

.ae-policy__content > h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.ae-policy__content h3 {
	margin: 30px 0 12px;
	font-size: 17px;
	font-weight: 500;
	line-height: 26px;
}

.ae-policy__content h4 {
	margin: 24px 0 10px;
	font-size: 15px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ae-section .ae-policy__content ul,
.ae-section .ae-policy__content ol {
	margin: 0 0 18px;
	padding-left: 22px;
	width: auto;
}

.ae-section .ae-policy__content ul {
	list-style: disc;
}

.ae-section .ae-policy__content ol {
	list-style: decimal;
}

.ae-section .ae-policy__content li {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 28px;
}

.ae-policy__content li::marker {
	color: var(--ae-gold);
}

.ae-policy__content strong,
.ae-policy__content b {
	font-weight: 500;
	color: var(--ae-teal);
}

.ae-policy__content a,
.ae-policy__content a:visited {
	color: var(--ae-teal);
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.ae-policy__content a:hover,
.ae-policy__content a:focus-visible {
	color: var(--ae-gold);
}

.ae-section .ae-policy__content blockquote {
	margin: 0 0 22px;
	padding: 2px 0 2px 22px;
	border-left: 2px solid var(--ae-gold);
	font-size: 17px;
	line-height: 28px;
	color: var(--ae-teal);
}

.ae-policy__content hr {
	margin: 40px 0;
	border: 0;
	border-top: 1px solid rgba(9, 71, 76, 0.16);
}

.ae-policy__content img {
	display: block;
	max-width: 100%;
	height: auto;
}

.ae-section .ae-policy__content figure {
	margin: 0 0 22px;
}

/* Tables: the dashboard and the editor both allow them, so keep them inside the measure. */
.ae-policy__content .wp-block-table {
	margin: 0 0 22px;
	overflow-x: auto;
}

.ae-policy__content table {
	width: 100%;
	margin: 0 0 22px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 24px;
}

.ae-policy__content .wp-block-table table {
	margin: 0;
	min-width: 100%;
}

.ae-policy__content th,
.ae-policy__content td {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(9, 71, 76, 0.16);
	text-align: left;
	vertical-align: top;
}

.ae-policy__content table tr:last-child > th,
.ae-policy__content table tr:last-child > td {
	border-bottom-color: currentcolor;
}

.ae-policy__content th {
	background: var(--ae-ivory);
	color: var(--ae-teal);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- Contact prompt under the content ---------- */

.ae-policy__contact {
	margin-top: 44px;
	padding: 24px 26px;
	border: 1px solid rgba(9, 71, 76, 0.2);
	background: var(--ae-ivory);
}

.ae-section .ae-policy__contact-text {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 24px;
	font-weight: 500;
	color: var(--ae-teal);
}

.ae-section .ae-policy__contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
}

.ae-policy__contact-links a.ae-link {
	font-size: 15px;
	overflow-wrap: anywhere;
}

@media (max-width: 900px) {
	.ae-policy__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.ae-policy__aside {
		position: static;
	}

	.ae-policy__toc {
		border-left: 0;
		border-top: 1px solid rgba(9, 71, 76, 0.16);
		padding-top: 18px;
		padding-left: 0;
	}

	/* No side rule on phones, so the gold marker would have nothing to sit on. */
	.ae-policy__toc-list li::before {
		display: none;
	}

	.ae-policy__content {
		max-width: none;
	}
}

@media print {
	.ae-policy__aside,
	.ae-policy__contact,
	a.ae-whatsapp-fab,
	#gototop,
	.site-header,
	.site-footer {
		display: none !important;
	}

	.ae-policy-banner {
		background: none !important;
		color: #000 !important;
	}

	.ae-policy-banner__title {
		color: #000 !important;
	}
}

/* ==========================================================
   Split hero (Blueprint banner)
   An editorial composition rather than the Home hero: a full-width statement on a deep teal field,
   then an asymmetric lower row where the photograph runs off the right and bottom edges.
   Gold is used only for the eyebrow rule, the CTA and the glass chip.
   ========================================================== */

.ae-split-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(120% 100% at 0% 100%, rgba(20, 104, 112, 0.4) 0%, rgba(9, 71, 76, 0) 62%),
		linear-gradient(180deg, var(--ae-teal) 0%, #083f43 100%);
	color: var(--ae-white);
}

/* Fine film grain, so the colour field reads as print rather than a flat block. */
.ae-split-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	opacity: 0.045;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='ae-grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23ae-grain)'/%3E%3C/svg%3E");
}

.ae-split-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 clamp(20px, 2.2vw, 32px);
	font-size: 11px;
	line-height: 18px;
	letter-spacing: 0.3em;
	color: var(--ae-gold-light);
}

.ae-split-hero__eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 46px;
	height: 1px;
	background: currentColor;
	opacity: 0.75;
}

.ae-split-hero .ae-split-hero__title {
	margin: 0;
	font-family: var(--ae-font-display);
	font-size: clamp(24px, 2.4vw, 34px);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: 0.025em;
	color: var(--ae-white);
}

.ae-split-hero__line {
	display: block;
	/* Evens out the wrap when a line has to break, instead of leaving a two-word orphan. */
	text-wrap: balance;
}

/* Left column: eyebrow, statement, copy and actions. The photograph fills the right column and
   runs to the bottom edge, so the section closes on the image rather than on empty colour. */
.ae-split-hero__lower {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
	align-items: stretch;
	gap: clamp(28px, 3.2vw, 52px);
	padding-top: clamp(40px, 4.8vw, 76px);
}

.ae-split-hero__copy {
	padding-bottom: clamp(40px, 4.4vw, 72px);
	padding-left: max(var(--ae-gutter), calc((100vw - var(--ae-container)) / 2 + var(--ae-gutter)));
}

.ae-split-hero__copy-inner {
	max-width: 660px;
}

.ae-section .ae-split-hero__intro {
	max-width: 46ch;
	margin: clamp(14px, 1.4vw, 18px) 0 0;
	font-size: 17px;
	font-weight: 300;
	line-height: 29px;
	color: rgba(255, 255, 255, 0.74);
}

.ae-split-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
	margin-top: 32px;
}

.ae-split-hero__actions .ae-btn {
	flex: 0 0 auto;
}

.ae-split-hero__wa {
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	font-size: 14px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.66);
	text-decoration: none;
}

.ae-split-hero__wa-prefix {
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.44);
}

.ae-split-hero__wa-link {
	align-self: flex-start;
	padding-bottom: 3px;
	border-bottom: 1px solid rgba(226, 187, 108, 0.5);
	color: var(--ae-gold-light);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.ae-split-hero__wa:hover .ae-split-hero__wa-link,
.ae-split-hero__wa:focus-visible .ae-split-hero__wa-link {
	border-bottom-color: var(--ae-gold-light);
	color: var(--ae-white);
}

.ae-split-hero__media {
	position: relative;
	align-self: stretch;
	min-height: clamp(320px, 30vw, 430px);
	margin: 0;
	overflow: hidden;
	background: var(--ae-teal-soft);
}

.ae-split-hero__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Soft foot to the photo, so the chip always has something to sit on. */
.ae-split-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(0deg, rgba(9, 71, 76, 0.62) 0%, rgba(9, 71, 76, 0) 46%);
}

.ae-split-hero__media figcaption {
	position: absolute;
	left: clamp(16px, 1.8vw, 26px);
	bottom: clamp(16px, 1.8vw, 26px);
	z-index: 2;
	margin: 0;
	padding: 11px 16px;
	font-size: 10px;
	line-height: 16px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ae-white);
	background: rgba(9, 71, 76, 0.5);
	border: 1px solid rgba(226, 187, 108, 0.42);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* No photograph set: one column, with the copy staying on the container. */
.ae-split-hero--no-media .ae-split-hero__lower {
	grid-template-columns: minmax(0, 1fr);
}

.ae-split-hero--no-media .ae-split-hero__copy {
	padding-right: max(var(--ae-gutter), calc((100vw - var(--ae-container)) / 2 + var(--ae-gutter)));
}

.ae-split-hero--no-media .ae-split-hero__copy-inner {
	max-width: 720px;
}

/* Entrance: the statement rises in sequence, the photograph settles out of a slow push-in. */
@keyframes ae-split-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 22px, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes ae-split-settle {
	from {
		opacity: 0.45;
		transform: scale(1.06);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.ae-split-hero__eyebrow,
.ae-split-hero .ae-split-hero__title,
.ae-section .ae-split-hero__intro,
.ae-split-hero__actions {
	animation: ae-split-rise 0.85s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

.ae-split-hero__eyebrow {
	animation-delay: 0.05s;
}

.ae-split-hero .ae-split-hero__title {
	animation-delay: 0.14s;
}

.ae-section .ae-split-hero__intro {
	animation-delay: 0.26s;
}

.ae-split-hero__actions {
	animation-delay: 0.36s;
}

.ae-split-hero__media img {
	animation: ae-split-settle 1.4s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

@media (max-width: 900px) {
	.ae-split-hero__lower {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding-top: clamp(30px, 6vw, 44px);
	}

	.ae-split-hero__copy {
		padding: 0 var(--ae-gutter) clamp(32px, 8vw, 44px);
	}

	.ae-split-hero__copy-inner {
		max-width: none;
	}

	.ae-split-hero__eyebrow {
		margin-bottom: 18px;
		font-size: 10px;
	}

	.ae-split-hero__eyebrow::before {
		width: 30px;
	}

	.ae-split-hero .ae-split-hero__title {
		font-size: clamp(24px, 4.6vw, 31px);
		line-height: 1.15;
	}

	/* On phones the authored line breaks are dropped, so the headline wraps as one balanced block. */
	.ae-split-hero__line {
		display: inline;
	}

	.ae-section .ae-split-hero__intro {
		font-size: 16px;
		line-height: 27px;
	}

	.ae-split-hero__actions {
		margin-top: 26px;
		gap: 22px;
	}

	.ae-split-hero__actions .ae-btn {
		width: 100%;
	}

	.ae-split-hero__media {
		align-self: auto;
		min-height: 0;
		height: auto;
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 480px) {
	.ae-split-hero__media {
		aspect-ratio: 5 / 4;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ae-split-hero__eyebrow,
	.ae-split-hero .ae-split-hero__title,
	.ae-section .ae-split-hero__intro,
	.ae-split-hero__actions,
	.ae-split-hero__media img {
		animation: none;
	}
}

/* ==========================================================
   The Journal: blog home, archives, search and single posts
   The archive and single templates were still the previous theme's boilerplate, so these rules
   put the listing on the same type scale, teal/gold palette and spacing as the page sections.
   ========================================================== */

/* ---------- Banner ---------- */

.ae-blog-banner {
	background: var(--ae-teal);
	color: var(--ae-white);
}

.ae-blog-banner__inner {
	padding-top: clamp(56px, 5vw, 76px);
	padding-bottom: clamp(44px, 4.5vw, 62px);
	text-align: center;
}

.ae-section .ae-blog-banner__eyebrow {
	margin-bottom: 20px;
}

.ae-blog-banner__title {
	max-width: 900px;
	margin: 0 auto;
	font-family: var(--ae-font-display);
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 400;
	line-height: 1.14;
	letter-spacing: 0.07em;
	color: var(--ae-gold);
	overflow-wrap: break-word;
}

.ae-blog-banner__intro {
	max-width: 620px;
	margin: 22px auto 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 27px;
	color: var(--ae-ink-muted);
}

.ae-blog-banner__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin: 22px auto 0;
	font-size: 11px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ae-gold-light);
}

.ae-blog-banner__meta > * + *::before {
	content: "\00b7";
	margin: 0 10px;
	color: rgba(255, 255, 255, 0.4);
}

/* ---------- Listing ---------- */

.ae-blog {
	background: var(--ae-white);
}

.ae-blog__inner {
	padding-top: clamp(36px, 4vw, 56px);
	padding-bottom: clamp(64px, 7vw, 104px);
}

.ae-blog__count {
	margin: 0 0 clamp(22px, 2.6vw, 30px);
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(9, 71, 76, 0.5);
}

.ae-blog__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
	gap: clamp(22px, 2.4vw, 32px);
	align-items: stretch;
}

/* ---------- Card ---------- */

.ae-card {
	display: flex;
	flex-direction: column;
	background: var(--ae-white);
	border: 1px solid rgba(9, 71, 76, 0.14);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ae-card:hover {
	border-color: rgba(205, 163, 73, 0.55);
	box-shadow: 0 18px 40px rgba(9, 71, 76, 0.1);
	transform: translateY(-3px);
}

.ae-card__media {
	display: block;
	text-decoration: none !important;
	background: rgba(9, 71, 76, 0.08);
}

.ae-card__media img {
	transition: transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.ae-card:hover .ae-card__media img {
	transform: scale(1.04);
}

.ae-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(22px, 2.4vw, 28px);
}

.ae-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.ae-card__meta > * + *::before {
	content: "\00b7";
	margin: 0 10px;
	color: rgba(9, 71, 76, 0.35);
}

.ae-card__cat {
	color: var(--ae-teal);
}

.ae-card__date {
	color: rgba(9, 71, 76, 0.5);
}

.ae-card__title {
	margin: 14px 0 0;
	font-family: var(--ae-font-sans);
	font-size: 21px;
	font-weight: 500;
	line-height: 29px;
	letter-spacing: 0;
	color: var(--ae-teal);
	overflow-wrap: break-word;
}

.ae-card__title a,
.ae-card__title a:visited {
	color: var(--ae-teal);
	text-decoration: none !important;
}

.ae-card__title a:hover,
.ae-card__title a:focus {
	color: var(--ae-teal-soft);
}

.ae-card__excerpt {
	margin: 10px 0 0;
	font-size: 15px;
	font-weight: 300;
	line-height: 25px;
	color: rgba(39, 42, 40, 0.78);
}

.ae-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: auto 0 0;
	padding-top: 20px;
}

.ae-card__link {
	display: inline-block;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--ae-gold);
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ae-teal);
	text-decoration: none !important;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.ae-card__link::after {
	content: "\2192";
	margin-left: 8px;
}

.ae-card__link:hover,
.ae-card__link:focus {
	color: var(--ae-gold);
	border-bottom-color: var(--ae-teal);
}

.ae-card__read {
	font-size: 11px;
	line-height: 18px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(9, 71, 76, 0.42);
}

/* ---------- Lead card (first article on the blog home) ---------- */

.ae-card--featured {
	grid-column: 1 / -1;
}

.ae-card__title--featured {
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.28;
}

.ae-card__excerpt--featured {
	font-size: 16px;
	line-height: 27px;
}

@media (min-width: 880px) {
	.ae-card--featured {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		align-items: stretch;
	}

	.ae-card--featured .ae-card__media {
		height: 100%;
		min-height: 320px;
		aspect-ratio: auto;
	}

	.ae-card--featured .ae-card__body {
		justify-content: center;
		padding: clamp(28px, 3.2vw, 44px);
	}
}

/* ---------- Pagination ---------- */

.ae-pagination {
	margin-top: clamp(34px, 4vw, 56px);
}

.ae-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.ae-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid rgba(9, 71, 76, 0.2);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.06em;
	color: var(--ae-teal);
	text-decoration: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ae-pagination a.page-numbers:hover,
.ae-pagination a.page-numbers:focus {
	border-color: var(--ae-gold);
	background: rgba(205, 163, 73, 0.12);
	color: var(--ae-teal);
}

.ae-pagination .page-numbers.current {
	border-color: var(--ae-teal);
	background: var(--ae-teal);
	color: var(--ae-white);
}

.ae-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
	color: rgba(9, 71, 76, 0.45);
}

.ae-pagination .prev,
.ae-pagination .next {
	padding: 0 16px;
}

/* ---------- Empty state ---------- */

.ae-blog__empty {
	grid-column: 1 / -1;
	max-width: 620px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 40px) 0;
	text-align: center;
}

.ae-blog__empty .ae-heading {
	margin-top: 8px;
}

.ae-blog__empty-text {
	margin-top: 14px;
	font-size: 16px;
	font-weight: 300;
	line-height: 26px;
	color: rgba(39, 42, 40, 0.78);
}

.ae-blog__empty .search-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 26px;
}

.ae-blog__empty .search-form label {
	flex: 1 1 240px;
	text-align: left;
}

.ae-blog__empty .search-field {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid rgba(9, 71, 76, 0.22);
	background: var(--ae-white);
	font-family: var(--ae-font-sans);
	font-size: 15px;
	color: var(--ae-charcoal);
}

.ae-blog__empty .search-submit {
	padding: 13px 22px;
	border: 0;
	background: var(--ae-teal);
	font-family: var(--ae-font-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ae-white);
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.ae-blog__empty .search-submit:hover {
	opacity: 0.85;
}

/* ---------- Single post ---------- */

.ae-post__inner {
	padding-top: clamp(36px, 4vw, 56px);
	padding-bottom: clamp(48px, 5.5vw, 80px);
}

.ae-post__media {
	max-width: 960px;
	margin: 0 auto clamp(30px, 3.5vw, 46px);
}

.ae-post__content {
	max-width: 760px;
	margin: 0 auto;
	font-size: 17px;
	font-weight: 300;
	line-height: 30px;
	color: rgba(39, 42, 40, 0.88);
}

.ae-post__content > * + * {
	margin-top: 1.1em;
}

.ae-post__content h2,
.ae-post__content h3,
.ae-post__content h4,
.ae-post__content h5 {
	font-family: var(--ae-font-display);
	font-weight: 400;
	line-height: 1.22;
	letter-spacing: 0.06em;
	color: var(--ae-teal);
}

.ae-post__content h2 {
	margin-top: 2em;
	font-size: clamp(24px, 2.4vw, 30px);
}

.ae-post__content h3 {
	margin-top: 1.8em;
	font-size: clamp(20px, 1.9vw, 24px);
}

.ae-post__content h4 {
	margin-top: 1.7em;
	font-size: 19px;
	letter-spacing: 0.04em;
}

.ae-post__content h5 {
	margin-top: 1.6em;
	font-size: 17px;
	letter-spacing: 0.04em;
}

.ae-post__content a,
.ae-post__content a:visited {
	color: var(--ae-teal);
	text-decoration: underline !important;
	text-decoration-color: var(--ae-gold);
	text-underline-offset: 4px;
}

.ae-post__content a:hover,
.ae-post__content a:focus {
	color: var(--ae-gold);
}

.ae-post__content blockquote {
	margin-top: 1.8em;
	padding: 4px 0 4px 26px;
	border-left: 2px solid var(--ae-gold);
	font-family: var(--ae-font-display);
	font-size: clamp(19px, 1.9vw, 23px);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: var(--ae-teal);
}

.ae-post__content blockquote p {
	font-size: inherit;
	line-height: inherit;
}

.ae-post__content blockquote cite {
	display: block;
	margin-top: 14px;
	font-family: var(--ae-font-sans);
	font-size: 11px;
	font-style: normal;
	line-height: 18px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(9, 71, 76, 0.55);
}

.ae-post__content ul,
.ae-post__content ol {
	padding-left: 1.35em;
}

.ae-post__content ul {
	list-style: disc;
}

.ae-post__content ol {
	list-style: decimal;
}

.ae-post__content li + li {
	margin-top: 0.5em;
}

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

.ae-post__content figure {
	margin-top: 1.8em;
	margin-bottom: 1.8em;
}

.ae-post__content figcaption {
	margin-top: 10px;
	font-size: 13px;
	line-height: 20px;
	text-align: center;
	color: rgba(39, 42, 40, 0.6);
}

.ae-post__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 24px;
}

.ae-post__content th,
.ae-post__content td {
	padding: 12px 14px;
	border: 1px solid rgba(9, 71, 76, 0.18);
	text-align: left;
	vertical-align: top;
}

.ae-post__content th {
	background: rgba(9, 71, 76, 0.04);
	font-weight: 500;
	color: var(--ae-teal);
}

.ae-post__content hr {
	margin: 2.2em 0;
	border: 0;
	border-top: 1px solid rgba(9, 71, 76, 0.16);
}

.ae-post__pages {
	margin-top: 32px;
	font-size: 13px;
	letter-spacing: 0.08em;
	color: rgba(9, 71, 76, 0.6);
}

.ae-post__nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 16px;
	max-width: 760px;
	margin: clamp(40px, 4.5vw, 60px) auto 0;
	padding-top: clamp(26px, 3vw, 34px);
	border-top: 1px solid rgba(9, 71, 76, 0.16);
}

.ae-post__nav-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px;
	border: 1px solid rgba(9, 71, 76, 0.16);
	text-decoration: none !important;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ae-post__nav-item:hover,
.ae-post__nav-item:focus {
	border-color: var(--ae-gold);
	background: rgba(205, 163, 73, 0.08);
}

.ae-post__nav-item--next {
	text-align: right;
}

.ae-post__nav-label {
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(9, 71, 76, 0.55);
}

.ae-post__nav-title {
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--ae-teal);
	overflow-wrap: break-word;
}

/* The related grid follows a section head rather than the listing's "N articles" line, so it needs
   its own top margin to clear the heading. Matches the 48px rhythm of the other section grids. */
.ae-post-related .ae-blog__grid {
	margin-top: clamp(32px, 3.4vw, 48px);
}

@media (max-width: 760px) {
	.ae-blog__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ae-blog-banner__title {
		font-size: clamp(26px, 7vw, 34px);
	}

	.ae-post__content {
		font-size: 16px;
		line-height: 28px;
	}

	.ae-post__nav-item--next {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ae-card,
	.ae-card__media img {
		transition: none;
	}

	.ae-card:hover {
		transform: none;
	}

	.ae-card:hover .ae-card__media img {
		transform: none;
	}
}

/* ==========================================================
   404 page
   ========================================================== */

.ae-notfound__inner {
	max-width: 720px;
	text-align: center;
}

.ae-notfound .ae-eyebrow {
	margin-bottom: 24px;
}

.ae-notfound .ae-heading {
	font-size: clamp(30px, 4.4vw, 46px);
}

.ae-notfound__text {
	max-width: 520px;
	margin: 24px auto 0;
	font-size: 16px;
	line-height: 26px;
	color: var(--ae-charcoal);
}

.ae-notfound__text > :not(:first-child) {
	margin-top: 16px;
}

.ae-notfound__media {
	max-width: 480px;
	margin: 40px auto 0;
}

.ae-notfound__image {
	display: block;
	width: 100%;
	height: auto;
}

.ae-notfound__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px 28px;
	margin-top: 40px;
}

.ae-notfound__links {
	margin-top: clamp(48px, 5vw, 64px);
	padding-top: clamp(28px, 3vw, 36px);
	border-top: 1px solid rgba(9, 71, 76, 0.18);
}

.ae-section .ae-notfound__links-label {
	margin-bottom: 18px;
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(9, 71, 76, 0.6);
}

.ae-section .ae-notfound__links ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 12px;
}

.ae-section .ae-notfound__links li {
	margin: 0;
}

.ae-notfound__links a {
	display: inline-block;
	padding: 11px 20px;
	border: 1px solid rgba(9, 71, 76, 0.24);
	font-size: 11px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--ae-teal);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ae-notfound__links a:hover,
.ae-notfound__links a:focus-visible {
	border-color: var(--ae-teal);
	background: var(--ae-teal);
	color: var(--ae-white);
}

@media (max-width: 599px) {
	.ae-notfound__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ae-notfound__actions .ae-btn {
		width: 100%;
	}

	.ae-notfound__actions .ae-link {
		text-align: center;
	}
}

