/* Automative theme styles */

/* Wanted Sans (SIL OFL 1.1, see assets/fonts/OFL.txt) — Latin subset, variable weight */
@font-face {
	font-family: "Wanted Sans";
	font-style: normal;
	font-weight: 400 1000;
	font-display: swap;
	src: url("../fonts/WantedSansVariable-latin.woff2") format("woff2-variations"),
		url("../fonts/WantedSansVariable-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6-02C7, U+02D0-02DD, U+2000-209F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--color-primary: #294D97;
	--color-primary-dark: #1F3C78;
	--color-secondary: #12B6AF;
	--color-tertiary: #f4d989;
	--color-dark: #111418;
	--color-text: #2b2f36;
	--color-muted: #6b7280;
	--color-bg: #ffffff;
	--color-light: #f4f5f7;
	--font-base: "Wanted Sans", "Helvetica Neue", Arial, sans-serif;
	--font-display: "Wanted Sans", "Helvetica Neue", Arial, sans-serif;
	--container: 1200px;
}

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

/* Keep #section targets clear of the fixed header */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 110px;
}

.admin-bar {
	scroll-padding-top: 142px;
}

/* Space taken by the fixed header (12px from the top + 66px bar + 22px breathing room),
   used by sticky elements so they stop just below it. The WordPress admin bar pushes the header down 32px. */
:root {
	--header-offset: 100px;
}

body.admin-bar {
	--header-offset: 132px;
}

body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
}

::selection {
	background: var(--color-secondary);
	color: var(--color-dark);
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

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

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 16px;
}

/* Page loader — lorry with spinning wheels and a turning gear */
.site-loader {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--color-bg);
	transition: opacity 0.5s ease, visibility 0.5s ease;
	/* Safety net: hide after 8s even if JavaScript never runs. */
	animation: loader-failsafe 0.5s ease 8s forwards;
}

@keyframes loader-failsafe {
	to {
		opacity: 0;
		visibility: hidden;
	}
}

.site-loader.is-hidden {
	opacity: 0;
	visibility: hidden;
}

.loader-scene {
	overflow: hidden;
	width: min(360px, 80vw);
}

.loader-truck {
	display: block;
	width: 100%;
	height: auto;
}

.loader-cargo {
	fill: var(--color-primary);
}

.loader-cargo-line {
	stroke: rgba(255, 255, 255, 0.35);
	stroke-width: 1.5;
	stroke-linecap: round;
}

.loader-cab,
.loader-chassis,
.loader-wheel circle {
	fill: var(--color-dark);
}

.loader-window {
	fill: #e8edf3;
}

.loader-light {
	fill: var(--color-secondary);
}

.loader-gear-teeth {
	fill: none;
	stroke: #fff;
	stroke-width: 3.5;
	stroke-dasharray: 3.14 3.14;
}

.loader-gear-core {
	fill: #fff;
}

.loader-gear-hole {
	fill: var(--color-secondary);
}

.loader-wheel .loader-hub {
	fill: #c9ced6;
}

.loader-spoke {
	stroke: #c9ced6;
	stroke-width: 1.5;
	stroke-linecap: round;
}

.loader-speed line {
	stroke: var(--color-secondary);
	stroke-width: 2.5;
	stroke-linecap: round;
	opacity: 0;
	animation: loader-speed 0.8s linear infinite;
}

.loader-speed line:nth-child(2) {
	animation-delay: 0.25s;
}

.loader-speed line:nth-child(3) {
	animation-delay: 0.5s;
}

.loader-road {
	stroke: #c9ced6;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 14 10;
	animation: loader-road 0.6s linear infinite;
}

.loader-body {
	animation: loader-bump 0.4s ease-in-out infinite alternate;
}

.loader-wheel,
.loader-gear {
	transform-box: fill-box;
	transform-origin: center;
	animation: loader-spin 0.6s linear infinite;
}

.loader-gear {
	animation-duration: 1.6s;
}

.loader-text {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-muted);
	animation: loader-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes loader-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes loader-road {
	to {
		stroke-dashoffset: 24;
	}
}

@keyframes loader-bump {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(-1px);
	}
}

@keyframes loader-speed {
	0% {
		opacity: 0;
		transform: translateX(10px);
	}
	40% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translateX(-12px);
	}
}

@keyframes loader-pulse {
	from {
		opacity: 0.5;
	}
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-loader * {
		animation: none !important;
	}
}

/* Header — floating glass bar */
.site-header {
	position: fixed;
	top: 12px;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 0 24px;
	pointer-events: none;
}

.admin-bar .site-header {
	top: 44px;
}

.header-bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1280px;
	min-height: 66px;
	margin: 0 auto;
	padding: 8px 10px 8px 10px;
	background: #ffffff;
	border: 0;
	border-radius: 48px;
	/* Hairline ring defines the edge on white sections; soft drop lifts it off the hero. */
	box-shadow: 0 0 0 1px rgba(15, 27, 61, 0.06), 0 2px 6px rgba(15, 27, 61, 0.06), 0 12px 32px -8px rgba(15, 27, 61, 0.22);
	-webkit-backdrop-filter: blur(20px) saturate(140%);
	backdrop-filter: blur(20px) saturate(140%);
	pointer-events: auto;
	transition: background 0.3s, box-shadow 0.3s;
}

/* .site-header.is-scrolled .header-bar {
	box-shadow: 0 6px 30px rgba(40, 30, 20, 0.07);
} */

.mobile-nav-brand {
	display: none;
}

/* Desktop: near-opaque frosted bar so the nav stays legible over the hero video. */
@media (min-width: 861px) {
	.header-bar {
		-webkit-backdrop-filter: blur(24px) saturate(180%);
		backdrop-filter: blur(24px) saturate(180%);
	}

	.site-header.is-scrolled .header-bar {
		box-shadow: 0 0 0 1px rgba(15, 27, 61, 0.08), 0 2px 6px rgba(15, 27, 61, 0.08), 0 16px 36px -10px rgba(15, 27, 61, 0.28);
	}

	.main-navigation a {
		position: relative;
		font-weight: 500;
	}

	.main-navigation a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -6px;
		height: 2px;
		background: var(--color-secondary);
		border-radius: 2px;
		transform: scaleX(0);
		transition: transform 0.25s;
	}

	.main-navigation a:hover::after,
	.main-navigation .current-menu-item > a::after {
		transform: scaleX(1);
	}
}

.brand {
	display: flex;
	align-items: center;
	gap: 6px;
}

.brand-mark {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	color: var(--color-secondary);
}

.brand-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
}

.brand-name {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--color-dark);
}

.brand-tagline {
	margin-top: 3px;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-primary);
}

.custom-logo {
	display: block;
	height: var(--logo-height, 48px);
	width: auto;
	max-width: 260px;
	object-fit: contain;
}

.main-navigation ul {
	display: flex;
	gap: 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--color-dark);
	transition: color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--color-primary);
}

.header-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 28px;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: #fff;
	background: var(--color-primary);
	border-radius: 999px;
	white-space: nowrap;
	transition: background 0.2s;
}

.header-cta:hover {
	background: var(--color-primary-dark);
	color: #fff;
}

.header-cta-icon {
	flex-shrink: 0;
	transition: transform 0.2s;
}

.header-cta:hover .header-cta-icon {
	transform: translate(2px, -2px);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0 12px;
	background: var(--color-dark);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.menu-toggle span {
	display: block;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
	opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.entry {
	margin-bottom: 48px;
}

.entry-title a {
	color: var(--color-dark);
}

.entry-meta {
	color: var(--color-muted);
	font-size: 0.875rem;
}

.btn:hover {
	background: var(--color-primary-dark);
	color: #fff;
}

.btn {
	display: inline-block;
	padding: 12px 24px;
	background: var(--color-primary);
	color: #fff;
	border-radius: 4px;
}

/* Footer — full width */
.site-footer {
	background: var(--color-primary);
	color: rgba(255, 255, 255, 0.85);
}

.site-footer .brand-name {
	color: #fff;
}

.site-footer .brand-tagline,
.site-footer .brand-mark {
	color: var(--color-secondary);
}

/* CTA flips to white on the blue footer */
.site-footer .footer-cta {
	background: #fff;
	color: var(--color-primary);
}

.site-footer .footer-cta:hover {
	background: var(--color-secondary);
	color: var(--color-dark);
}

.footer-card {
	max-width: 1280px;
	margin: 0 auto;
	padding: 34px 44px 24px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1.2fr 1.2fr 0.8fr;
	gap: 48px;
}

.footer-logo {
	display: block;
	height: 48px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

.footer-about {
	margin: 20px 0 0;
	max-width: 300px;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.75);
}

.footer-cta {
	margin-top: 24px;
}

.footer-heading {
	margin: 0 0 20px;
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #fff;
}

.footer-contact,
.footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.footer-icon {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--color-secondary);
}

.footer-contact a,
.footer-links a {
	color: rgba(255, 255, 255, 0.85);
	transition: color 0.2s;
}

.footer-contact a:hover,
.footer-links a:hover {
	color: var(--color-secondary);
}

.footer-units {
	display: grid;
	gap: 18px;
}

.footer-unit-title {
	display: block;
	margin-bottom: 4px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-secondary);
}

.footer-unit p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.footer-links li {
	margin-bottom: 12px;
	font-size: 0.9375rem;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 10px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
	margin: 0;
}

/* Social icons, bottom right of the footer */
.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 0 auto;
	padding: 0;
	list-style: none;
}

.footer-social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.footer-social a:hover,
.footer-social a:focus-visible {
	color: var(--color-primary, #1f3c88);
	background: #fff;
	border-color: #fff;
	transform: translateY(-2px);
}

/* Links typed into the copyright text (e.g. "Developed by <a>…</a>") */
.footer-copyright a {
	font-weight: 600;
	color: #fff;
	transition: color 0.2s;
}

.footer-copyright a:hover {
	color: var(--color-secondary);
}


/* Floating WhatsApp button */
.whatsapp-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.7);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
	color: #fff;
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 14px 36px -8px rgba(37, 211, 102, 0.85);
}

/* Floating back-to-top button, stacked above the WhatsApp button.
   The teal ring fills as the page scrolls (--progress is set in main.js). */
.back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	color: #fff;
	background: conic-gradient(var(--color-secondary) calc(var(--progress, 0) * 1turn), rgba(41, 77, 151, 0.25) 0);
	box-shadow: 0 10px 30px -8px rgba(41, 77, 151, 0.7);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(0.85);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease;
}

.back-to-top.has-whatsapp {
	bottom: 94px;
}

/* Inner blue disc inside the progress ring */
.back-to-top::before {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--color-primary);
	transition: background 0.25s ease;
}

.back-to-top svg {
	position: relative;
	transition: transform 0.25s ease;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
	color: #fff;
	box-shadow: 0 14px 36px -8px rgba(41, 77, 151, 0.85);
}

.back-to-top:hover::before,
.back-to-top:focus-visible::before {
	background: var(--color-primary-dark);
}

.back-to-top:hover svg {
	transform: translateY(-3px);
}

@media (max-width: 600px) {
	.whatsapp-float {
		right: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}

	.back-to-top {
		right: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}

	.back-to-top.has-whatsapp {
		bottom: 80px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.back-to-top,
	.back-to-top svg {
		transition: none;
	}
}

@media (max-width: 1100px) {
	.header-bar {
		padding-left: 24px;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.main-navigation ul {
		gap: 28px;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 58px;
	}
}

@media (max-width: 860px) {
	.site-header {
		padding: 0 16px;
	}

	.header-bar {
		padding: 8px 8px 8px 16px;
		border-radius: 28px;
		isolation: isolate;
		/* backdrop-filter would trap the fixed slide-out menu inside the bar, so the blur moves to ::before. */
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.header-bar::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		border-radius: inherit;
		-webkit-backdrop-filter: blur(20px) saturate(140%);
		backdrop-filter: blur(20px) saturate(140%);
	}

	/* Dimmed backdrop behind the slide-out menu; clicking it closes the menu (see main.js). */
	.site-header::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: -1;
		background: rgba(15, 27, 61, 0.4);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s, visibility 0.35s;
	}

	.site-header.menu-open::before {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.brand-name {
		font-size: 1.375rem;
	}

	.brand-mark {
		width: 36px;
		height: 36px;
	}

	.custom-logo {
		height: min(var(--logo-height, 48px), 40px);
		max-width: 180px;
	}

	.brand-tagline {
		font-size: 0.625rem;
	}

	.header-cta {
		display: none;
	}

	.menu-toggle {
		display: flex;
		position: relative;
		z-index: 2;
	}

	/* Off-canvas menu that slides in from the right. */
	.main-navigation {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 1;
		width: min(80vw, 320px);
		padding: 96px 28px 28px;
		overflow-y: auto;
		background: #fff;
		box-shadow: -12px 0 40px rgba(15, 27, 61, 0.12);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
	}

	.site-header.menu-open .main-navigation {
		transform: translateX(0);
		visibility: visible;
	}

	/* Logo at the top of the slide-out menu, level with the close button */
	.mobile-nav-brand {
		position: absolute;
		top: 22px;
		left: 28px;
		right: 76px;
		display: flex;
		align-items: center;
		gap: 8px;
		height: 44px;
	}

	.admin-bar .mobile-nav-brand {
		top: 68px;
	}

	.mobile-nav-brand img {
		display: block;
		width: auto;
		max-width: 100%;
		height: 40px;
		object-fit: contain;
	}

	.mobile-nav-brand .brand-mark {
		width: 36px;
		height: 36px;
	}

	.mobile-nav-brand .brand-name {
		font-size: 1.125rem;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0;
	}

	.main-navigation li + li {
		border-top: 1px solid rgba(41, 77, 151, 0.12);
	}

	.main-navigation a {
		display: block;
		padding: 14px 0;
		font-size: 1.0625rem;
	}

	.footer-card {
		padding: 40px 16px 20px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-social {
		margin-left: 0;
	}
}


/* Automotive Enhancement theme styles.
   Everything is scoped under .ae-site (the page wrapper) so it can't clash with WordPress core, the parent theme or plugins.
   Animation names are prefixed ae- for the same reason. */

.ae-site {
  --bg: #ffffff;
  --bg-2: #f4f7fc;
  --card: #ffffff;
  --line: rgba(41, 77, 151, 0.12);
  --text: #0f1b3d;
  --muted: #5b6785;
  --primary: #294D97;
  --primary-2: #1F3C78;
  --accent: #12B6AF;
  --accent-2: #0e9a94;
  --accent-ink: #0c8f89; /* darker teal for small text on white */
  --radius: 18px;
  --max: 1200px;
  --serif: var(--font-display);
  --sans: var(--font-base);
}

.ae-site * { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
.ae-site {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
.ae-site a { color: inherit; text-decoration: none; }
.ae-site img { max-width: 100%; display: block; }
.ae-site ul { list-style: none; }

.ae-site .container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.ae-site section { padding: 50px 0; position: relative; scroll-margin-top: 60px; }

.ae-site .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 20px;
}
.ae-site .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.ae-site h1, .ae-site h2, .ae-site h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.ae-site h1 { font-size: clamp(44px, 7vw, 92px); }
.ae-site h2 { font-size: clamp(34px, 4.6vw, 60px); }
.ae-site h3 { font-size: 22px; letter-spacing: -0.01em; }
.ae-site .serif { font-family: var(--serif); font-style: italic; font-weight: inherit; color: var(--accent-ink); }
.ae-site .lead { color: var(--muted); font-size: 18px; max-width: 620px; }
.ae-site .section-head { margin-bottom: 64px; }
.ae-site .section-head.center { text-align: center; }
.ae-site .section-head.center .lead { margin: 20px auto 0; }
.ae-site .section-head .lead { margin-top: 20px; }

/* Buttons */
.ae-site .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 500;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer; border: 1px solid transparent; color: inherit;
}
.ae-site .btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 10px 40px -10px rgba(41, 77, 151, .8); }
.ae-site .btn-primary:hover { transform: translateY(-2px); background: linear-gradient(135deg, var(--primary-2), var(--accent)); box-shadow: 0 16px 50px -10px rgba(18, 182, 175, .6); }
.ae-site .btn-ghost { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); backdrop-filter: blur(6px); }
.ae-site .btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.ae-site .btn .arrow { transition: transform .25s ease; }
.ae-site .btn:hover .arrow { transform: translateX(4px); }

/* ===== 1. VIDEO HERO ===== */
.ae-site .hero {
  min-height: 100vh; min-height: 100svh; padding: 0;
  display: flex; align-items: flex-end; overflow: hidden;
  /* Fallback shown until the video loads (or if it's missing) */
  background:
    radial-gradient(ellipse at 70% 30%, rgba(41,77,151,.45), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(18,182,175,.25), transparent 55%),
    #08101f;
}
.ae-site .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ae-site .hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,16,31,.55) 0%, rgba(8,16,31,.15) 40%, rgba(8,16,31,.9) 100%),
    linear-gradient(90deg, rgba(8,16,31,.6), transparent 60%);
}
.ae-site .hero { color: #fff; }
.ae-site .hero .eyebrow, .ae-site .hero .serif { color: var(--accent); }
.ae-site .hero .container { position: relative; padding-bottom: 96px; padding-top: 160px; }
.ae-site .hero h1 { max-width: 900px; }
.ae-site .hero .lead { margin-top: 24px; color: rgba(238,242,251,.8); }
.ae-site .hero-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* Cards */
.ae-site .card {
  background: var(--card); box-shadow: 0 14px 40px -24px rgba(15,27,61,.25);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .3s ease, transform .3s ease;
}
/* Location card stays in view beside the map while scrolling, just below the fixed header */
.ae-site #location .card {
  position: sticky; top: var(--header-offset); align-self: start; height: fit-content;
}
@media (max-width: 1000px) {
  .ae-site #location .card { position: static; } /* stacked under the map: no sticking */
}
.ae-site .card:hover { border-color: rgba(18,182,175,.35); transform: translateY(-4px); }
.ae-site .card p { color: var(--muted); margin-top: 12px; }
.ae-site .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ===== 2. ABOUT ===== */
.ae-site .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

/* Left: heading + image collage with a floating card */
.ae-site .about-collage {
  position: relative; display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
  height: 440px; margin: 0 0 90px;
}
.ae-site .tile {
  position: relative; overflow: hidden; border-radius: 22px; display: grid; place-items: center;
  color: rgba(41,77,151,.35); border: 1px solid var(--line);
}
.ae-site .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ae-site .tile:hover img { transform: scale(1.06); }
/* Tiles wipe open when the collage (not each masked tile) scrolls into view */
.ae-site .about-collage .tile { clip-path: inset(0 0 100% 0 round 22px); transition: clip-path 1.3s var(--ease) var(--d, 0s); }
.ae-site .about-collage.in .tile { clip-path: inset(0 0 0 0 round 22px); }
.ae-site .tile svg { position: relative; transition: transform .6s var(--ease); }
.ae-site .tile:hover svg { transform: scale(1.1); }
.ae-site .tile.t1 { grid-row: 1 / 3; background: radial-gradient(circle at 30% 20%, rgba(41,77,151,.35), transparent 60%), radial-gradient(circle at 80% 90%, rgba(18,182,175,.3), transparent 55%), #eaf0fb; }
.ae-site .tile.t2 { background: radial-gradient(circle at 70% 30%, rgba(18,182,175,.35), transparent 60%), #eef6f6; }
.ae-site .tile.t3 { background: radial-gradient(circle at 30% 80%, rgba(41,77,151,.3), transparent 60%), #eef1f9; }
.ae-site .about-card {
  position: absolute; left: 10%; bottom: -80px; width: min(440px, 82%); z-index: 2;
  padding: 28px 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -28px rgba(15,27,61,.4);
}
.ae-site .about-card-head { display: flex; gap: 18px; align-items: flex-start; }
.ae-site .about-card-head .icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(18,182,175,.12); color: var(--accent-ink); }
.ae-site .about-card h3 { font-size: 21px; line-height: 1.3; }
.ae-site .about-card .divider { display: block; width: 40px; height: 2px; background: var(--accent); margin: 20px 0 16px 64px; }
.ae-site .about-card p { color: var(--muted); font-size: 15px; margin-left: 64px; }

/* Right: heading + first two paragraphs */
.ae-site .about-text { padding-top: 8px; }
.ae-site .about-intro { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.ae-site .about-text p { color: var(--muted); margin-top: 20px; font-size: 17px; }
.ae-site .about-text .about-lead { color: var(--text); font-size: 19px; font-weight: 500; line-height: 1.5; }

/* Below, full width: one navy showcase block (same navy as the hero) —
   remaining paragraphs as divided columns on top, tick pills + counters underneath */
.ae-site .about-more { margin-top: 56px; }
.ae-site .about-showcase {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  padding: 56px 52px 44px; border-radius: 28px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(41,77,151,.6), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(18,182,175,.18), transparent 50%),
    linear-gradient(160deg, #08101f 0%, #0f1b3d 55%, #16306a 100%);
  box-shadow: 0 40px 80px -40px rgba(15,27,61,.6);
}
/* Faint road-map grid in the background */
.ae-site .about-showcase::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

.ae-site .about-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ae-site .about-value { padding: 4px 36px 8px; transition: transform .4s var(--ease); }
.ae-site .about-value:first-child { padding-left: 0; }
.ae-site .about-value:last-child { padding-right: 0; }
.ae-site .about-value + .about-value { border-left: 1px solid rgba(255,255,255,.12); }
.ae-site .about-value:hover { transform: translateY(-4px); }
.ae-site .about-value-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.ae-site .about-value .icon {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent); background: rgba(18,182,175,.12); transition: background .3s ease, color .3s ease;
}
.ae-site .about-value .icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(18,182,175,.45); animation: ae-spin 20s linear infinite; }
.ae-site .about-value:hover .icon { background: var(--accent); color: #fff; }
.ae-site .about-value .num { font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--accent); }
.ae-site .about-value .num::after { content: ""; display: inline-block; vertical-align: middle; width: 36px; height: 1px; margin-left: 10px; background: rgba(18,182,175,.5); }
.ae-site .about-value p { color: rgba(238,242,251,.78); font-size: 15.5px; line-height: 1.75; }

.ae-site .about-panel {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  margin-top: 44px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.12);
}
.ae-site .about-points { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.ae-site .about-points li {
  display: inline-flex; gap: 10px; align-items: center; padding: 10px 18px 10px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(18,182,175,.35);
  transition: background .3s ease, border-color .3s ease;
}
.ae-site .about-points li:hover { background: rgba(18,182,175,.16); border-color: var(--accent); }
.ae-site .about-points .tick { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #08101f; background: var(--accent); }
.ae-site .stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.ae-site .stat { padding: 4px 16px; text-align: center; }
.ae-site .stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.ae-site .stat .val { font-size: 46px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.ae-site .stat .val em { font-family: var(--serif); font-style: normal; color: var(--accent); }
.ae-site .stat p { color: rgba(238,242,251,.65); margin-top: 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 1000px) {
  .ae-site .about-more { margin-top: 40px; }
  .ae-site .about-showcase { padding: 40px 32px 34px; }
  .ae-site .about-values { grid-template-columns: 1fr; gap: 28px; }
  .ae-site .about-value, .ae-site .about-value:first-child, .ae-site .about-value:last-child { padding: 0; }
  .ae-site .about-value + .about-value { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 28px; }
  .ae-site .about-panel { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .ae-site .about-showcase { padding: 30px 20px 26px; border-radius: 22px; }
  .ae-site .stat { padding: 4px 6px; }
  .ae-site .stat p { font-size: 11px; }
}

/* ===== 3. SERVICES ===== */
.ae-site .svc-head { display: flex; justify-content: center; text-align: center; margin-bottom: 56px; }
.ae-site .eyebrow.pill { padding: 8px 16px; border-radius: 999px; background: rgba(18,182,175,.1); border: 1px solid rgba(18,182,175,.25); font-size: 11px; }
.ae-site .eyebrow.pill::before { display: none; }
.ae-site .dot-line { position: relative; border-top: 1px dashed rgba(41,77,151,.3); margin: 48px 0 8px; }
.ae-site .dot-line::before, .ae-site .dot-line::after { content: ""; position: absolute; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.ae-site .dot-line::before { left: 0; }
.ae-site .dot-line::after { right: 0; }
.ae-site .dot-line.reveal { transform: scaleX(0); transform-origin: left; }
.ae-site .dot-line.reveal.in { transform: scaleX(1); transition-duration: 1.4s; }

.ae-site .svc-row {
  display: grid; grid-template-columns: 96px 1fr 170px; align-items: center; gap: 24px;
  padding: 34px 24px; border-bottom: 1px dashed rgba(41,77,151,.18); border-radius: 18px;
  transition: background .4s ease;
}
.ae-site .svc-row:last-child { border-bottom: 0; }
.ae-site .svc-row:hover { background: linear-gradient(90deg, rgba(41,77,151,.05), rgba(18,182,175,.06)); }
.ae-site .svc-num { font-size: 14px; font-weight: 500; color: var(--accent-ink); font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.ae-site .svc-row h3 { font-size: 24px; transition: color .3s ease, transform .4s var(--ease); }
.ae-site .svc-row p { color: var(--muted); margin-top: 10px; max-width: 480px; font-size: 15px; }
.ae-site .svc-row:hover h3 { color: var(--primary); transform: translateX(6px); }
.ae-site .svc-icon { position: relative; justify-self: end; width: 130px; height: 110px; display: grid; place-items: center; }
.ae-site .svc-icon::before {
  content: ""; position: absolute; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,182,175,.22), rgba(41,77,151,.08) 60%, transparent 72%);
  transition: transform .6s var(--ease);
}
.ae-site .svc-icon svg, .ae-site .svc-icon img { position: relative; width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(41,77,151,.25)); animation: ae-iconFloat 5s ease-in-out infinite; transition: transform .6s var(--ease); }
.ae-site .svc-row:nth-child(2n) .svc-icon svg, .ae-site .svc-row:nth-child(2n) .svc-icon img { animation-delay: -2.5s; }
.ae-site .svc-row:hover .svc-icon svg, .ae-site .svc-row:hover .svc-icon img { transform: scale(1.12) rotate(-6deg); }
.ae-site .svc-row:hover .svc-icon::before { transform: scale(1.35); }
@keyframes ae-iconFloat { 50% { translate: 0 -8px; } }

/* Scroll-in: icon pops in at the row's centre (--svc-shift, set in main.js) then glides to its place while the text slides in from the left */
.ae-site .svc-row.reveal-group > * { opacity: 0; }
.ae-site .svc-row.reveal-group.in .svc-icon { animation: ae-svcIcon 1.6s var(--ease) both; }
.ae-site .svc-row.reveal-group.in > :not(.svc-icon) { animation: ae-svcText 1s var(--ease) .7s both; }
.ae-site .svc-row.reveal-group.in .svc-num { animation-delay: .6s; }
@keyframes ae-svcIcon {
  0%   { opacity: 0; transform: translateX(var(--svc-shift, 0px)) scale(.6); }
  35%  { opacity: 1; transform: translateX(var(--svc-shift, 0px)) scale(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes ae-svcText {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: none; }
}

/* ===== 4. VLTD MODELS + 6. FEATURES: dark navy bands (same navy as the hero) ===== */
.ae-site .dark-band {
  color: #fff; overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(41,77,151,.45), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(18,182,175,.14), transparent 50%),
    linear-gradient(180deg, #08101f 0%, #0f1b3d 55%, #16306a 100%);
}
.ae-site .dark-band .eyebrow, .ae-site .dark-band .serif { color: var(--accent); }
.ae-site .dark-band .lead { color: rgba(238,242,251,.72); }

.ae-site .vltd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ae-site .vltd-card {
  position: relative; overflow: hidden; background: #fff; border-radius: 14px;
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.6);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ae-site .vltd-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(18,182,175,.55); }
.ae-site .vltd-photo { aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 22px; }
.ae-site .vltd-photo img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.ae-site .vltd-card:hover .vltd-photo img { transform: scale(1.06); }
.ae-site .vltd-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px;
  font-size: 14px; font-weight: 500; color: #fff; text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--accent-2));
  transform: translateY(100%); transition: transform .35s var(--ease);
}
.ae-site .vltd-card:hover figcaption, .ae-site .vltd-card:focus-within figcaption { transform: none; }
@media (hover: none) { .ae-site .vltd-card figcaption { position: static; transform: none; } }

/* ===== 5. VERTICALS: icon circles joined by a dotted line, 3 per row ===== */
.ae-site .vert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 24px; }
.ae-site .vert-item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px 32px; border-bottom: 1px solid rgba(15,27,61,.75); }
/* Dotted connector from this icon to the next one in the row */
.ae-site .vert-item:not(:nth-child(3n)):not(:last-child)::after {
  content: ""; position: absolute; top: 38px; left: calc(50% + 50px); width: calc(100% - 100px + 24px);
  border-top: 2px dotted rgba(41,77,151,.3);
}
.ae-site .vert-icon {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 6px 0 30px;
  border-radius: 50%; color: #fff; background: var(--text);
  box-shadow: 0 12px 24px -12px rgba(15,27,61,.55);
  transition: transform .5s var(--ease);
}
.ae-site .vert-item:nth-child(odd) .vert-icon { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.ae-site .vert-icon::after { content: ""; position: absolute; inset: -7px; border: 1px dashed rgba(41,77,151,.5); border-radius: 50%; animation: ae-spin 18s linear infinite; }
@keyframes ae-spin { to { transform: rotate(360deg); } }
.ae-site .vert-item:hover .vert-icon { transform: translateY(-4px) scale(1.06); }
.ae-site .vert-item h3 { font-size: 22px; font-weight: 600; transition: color .3s ease; }
.ae-site .vert-item:hover h3 { color: var(--primary); }
.ae-site .vert-item p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ===== 6. FEATURES: two white cards with tick lists ===== */
.ae-site .feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.ae-site .feature-card { color: var(--text); border-color: transparent; box-shadow: 0 24px 50px -24px rgba(0,0,0,.6); }
.ae-site .feature-card h3 { text-align: center; font-size: 22px; font-weight: 600; color: var(--primary); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ae-site .feature-list { list-style: none; display: grid; gap: 18px; margin-top: 22px; }
.ae-site .feature-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ae-site .feature-check { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -2px; border-radius: 50%; color: #fff; background: var(--text); transition: background .3s ease; }
.ae-site .feature-list li:hover .feature-check { background: var(--accent); }

@media (max-width: 1000px) {
  .ae-site .vltd-grid, .ae-site .vert-grid { grid-template-columns: repeat(2, 1fr); }
  .ae-site .vert-item:not(:nth-child(3n)):not(:last-child)::after { display: none; }
  .ae-site .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ae-site .vltd-grid { grid-template-columns: 1fr; gap: 16px; }
  .ae-site .vltd-photo { padding: 14px; }
  .ae-site .vert-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== 5. CONTACT ===== */
.ae-site .contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.ae-site .contact-info { display: grid; gap: 16px; margin-top: 40px; }
.ae-site .info-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.ae-site .info-row .icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: rgba(18,182,175,.1); color: var(--accent-ink); }
.ae-site .info-row small { display: block; color: var(--muted); font-size: 13px; }
.ae-site .form { padding: 40px; }
.ae-site .form:hover { transform: none; }
.ae-site .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ae-site .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.ae-site .field label { font-size: 13px; color: var(--muted); }
.ae-site .field input, .ae-site .field select, .ae-site .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(41,77,151,.18); background: var(--bg-2);
  color: var(--text); font: inherit; font-size: 15px; transition: border-color .2s, background .2s;
}
.ae-site .field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.ae-site .field select option { background: var(--bg-2); }
.ae-site .field textarea { min-height: 130px; resize: vertical; }
.ae-site .field input:focus, .ae-site .field select:focus, .ae-site .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(18,182,175,.05); }
.ae-site .form .btn { width: 100%; justify-content: center; margin-top: 6px; }
/* Contact Form 7 output */
.ae-site .wpcf7-form-control-wrap { display: block; }
.ae-site .field .wpcf7-not-valid { border-color: #e2645a; }
.ae-site .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #e2645a; font-size: 12px; }
.ae-site .form .wpcf7-submit { cursor: pointer; border: 0; font: inherit; }
.ae-site .form .wpcf7-submit:disabled { opacity: .6; cursor: wait; }
.ae-site .wpcf7-spinner { display: block; margin: 12px auto 0; }
.ae-site .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; border: 1px solid #e2645a; color: #e2645a; font-size: 14px; }
/* After a successful send, hide the fields and show the message as a thank-you panel */
.ae-site .wpcf7 form.sent > *:not(.wpcf7-response-output) { display: none; }
.ae-site .wpcf7 form.sent .wpcf7-response-output { margin: 0; padding: 40px 24px; border-color: rgba(18,182,175,.4); background: rgba(18,182,175,.08); color: var(--accent-ink); text-align: center; font-size: 16px; }
.ae-site .wpcf7 form.sent .wpcf7-response-output::before { content: "✓"; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: rgba(18,182,175,.15); font-size: 28px; }

/* ===== 6. LOCATION ===== */
.ae-site .location-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.ae-site .map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 440px; background: var(--card); }
.ae-site .map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; }
.ae-site .hours li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ae-site .hours li:last-child { border-bottom: 0; }
.ae-site .hours li span:last-child { color: var(--muted); }
.ae-site .location-card .btn { margin-top: 24px; width: 100%; justify-content: center; }
.ae-site .location-card address { font-style: normal; color: var(--muted); margin: 12px 0 24px; }

/* ===== ANIMATIONS ===== */
.ae-site { --ease: cubic-bezier(.22, 1, .36, 1); }

/* Scroll reveal: default slides up; data-anim picks a variant; --d is the stagger delay */
.ae-site .reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease), clip-path 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}
.ae-site .reveal[data-anim="left"] { transform: translateX(-60px); }
.ae-site .reveal[data-anim="right"] { transform: translateX(60px); }
.ae-site .reveal[data-anim="zoom"] { transform: scale(.88); }
.ae-site .reveal[data-anim="blur"] { transform: translateY(20px); filter: blur(12px); }
.ae-site .reveal[data-anim="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round 24px); }
.ae-site .reveal.in { opacity: 1; transform: none; filter: none; }
.ae-site .reveal[data-anim="clip"].in { clip-path: inset(0 0 0 0 round 24px); }

/* Headings: words rise out of a mask */
/* Extra bottom/right padding (cancelled by negative margins) keeps descenders like the italic "y" and "g" from being clipped */
.ae-site .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .14em .26em 0; margin: 0 -.14em -.16em 0; }
.ae-site .split .w > span { display: inline-block; transform: translateY(135%); transition: transform 1s var(--ease); }
.ae-site .split.in .w > span { transform: none; }
/* Highlighter sweep under the accent words */
/* .ae-site .serif {
  background: linear-gradient(rgba(18,182,175,.22), rgba(18,182,175,.22)) 0 88% / 0% .28em no-repeat;
  transition: background-size 1.1s var(--ease) .7s;
} */
.ae-site .in .serif, .ae-site .split.in .serif { background-size: 100% .28em; }

/* Eyebrow dot pulse */
.ae-site .eyebrow::before { animation: ae-dotPulse 2.2s ease-in-out infinite; }
@keyframes ae-dotPulse { 50% { box-shadow: 0 0 0 6px rgba(18,182,175,0), 0 0 18px var(--accent); transform: scale(1.3); } }

/* Buttons: light sweep on hover */
.ae-site .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.ae-site .btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg);
}
.ae-site .btn-primary:hover::after { animation: ae-shine .8s var(--ease); }
@keyframes ae-shine { to { left: 130%; } }

/* Cards: cursor-following glow */
.ae-site .card { position: relative; isolation: isolate; }
.ae-site .card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(18,182,175,.14), transparent 45%);
}
.ae-site .card:hover::before { opacity: 1; }

/* Hero */
.ae-site .hero-video { animation: ae-heroZoom 20s var(--ease) both; }
@keyframes ae-heroZoom { from { transform: scale(1.18); } to { transform: scale(1); } }
.ae-site .hero .container { will-change: transform, opacity; }
.ae-site .scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px;
  opacity: 0; animation: ae-fadeIn 1s ease 1.6s forwards;
}
.ae-site .scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--accent); animation: ae-cue 1.8s ease-in-out infinite;
}
@keyframes ae-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes ae-fadeIn { to { opacity: 1; } }

/* Ticker band under the hero */
.ae-site .ticker {
  overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0;
  background: linear-gradient(90deg, rgba(41,77,151,.07), rgba(18,182,175,.08));
}
.ae-site .ticker-track { display: flex; width: max-content; animation: ae-ticker 32s linear infinite; }
.ae-site .ticker:hover .ticker-track { animation-play-state: paused; }
.ae-site .ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.ae-site .ticker-track span::after { content: "✦"; color: var(--accent-ink); font-size: 14px; }
@keyframes ae-ticker { to { transform: translateX(-50%); } }

/* Section background glows */
.ae-site #services::before, .ae-site #verticals::before {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%;
  filter: blur(90px); opacity: .12; pointer-events: none; animation: ae-drift 18s ease-in-out infinite alternate;
}
.ae-site #services::before { background: var(--primary); top: 10%; left: -240px; }
.ae-site #verticals::before { background: var(--accent); bottom: 0; right: -260px; opacity: .1; animation-duration: 22s; }
@keyframes ae-drift { to { transform: translate(140px, -80px) scale(1.15); } }

/* About: floating card bobs gently once it's in */
.ae-site .about-card.in:not(.reveal) { animation: ae-cardBob 7s ease-in-out infinite; }
@keyframes ae-cardBob { 50% { transform: translateY(-8px); } }

/* Services */

/* Contact */
.ae-site .info-row { transition: border-color .3s ease, transform .4s var(--ease); }
.ae-site .info-row:hover { border-color: rgba(18,182,175,.35); transform: translateX(6px); }
.ae-site .field label { transition: color .2s ease; }
.ae-site .field:focus-within label { color: var(--accent-ink); }
.ae-site .wpcf7 form.sent .wpcf7-response-output::before { animation: ae-pop .6s var(--ease); }
@keyframes ae-pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } }

/* Location */
.ae-site .hours li { transition: padding .3s var(--ease), color .3s ease; }
.ae-site .hours li:hover { padding-left: 8px; color: var(--accent-ink); }

/* Certification slider: endless forward loop (slides are cloned in main.js), 5 / 4 / 3 / 2 per view, arrows on the sides */
.ae-site #certifications { background: var(--bg-2); }
.ae-site .cert-slider { --per: 5; --gap: 20px; position: relative; padding: 0 64px; }
.ae-site .cert-viewport { overflow: hidden; padding: 10px 0 30px; touch-action: pan-y; outline: none; }
.ae-site .cert-viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.ae-site .cert-track { position: relative; display: flex; gap: var(--gap); transition: transform .8s var(--ease); will-change: transform; }
.ae-site .cert-slide {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  display: flex; flex-direction: column; padding: 12px 12px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.ae-site .cert-slide:hover { transform: translateY(-6px); border-color: rgba(18,182,175,.4); box-shadow: 0 20px 36px -22px rgba(41,77,151,.45); }
.ae-site .cert-frame {
  aspect-ratio: 5 / 5; display: grid; place-items: center; padding: 12px; overflow: hidden;
  border-radius: 12px;
}
.ae-site .cert-frame img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .5s var(--ease); -webkit-user-drag: none; user-select: none; }
.ae-site .cert-slide:hover .cert-frame img { transform: scale(1.04); }
.ae-site .cert-slide figcaption { display: flex; align-items: center; gap: 10px; padding: 0 4px; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--text); }
.ae-site .cert-badge { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--accent-ink); background: rgba(18,182,175,.12); }
.ae-site .cert-arrow {
  position: absolute; top: calc(50% - 22px); z-index: 2; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(41,77,151,.2); background: #fff;
  color: var(--primary); font: inherit; font-size: 18px; cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(15,27,61,.3); transition: background .2s, color .2s, border-color .2s;
}
.ae-site .cert-arrow.prev { left: 0; }
.ae-site .cert-arrow.next { right: 0; }
.ae-site .cert-arrow:hover, .ae-site .cert-arrow:focus-visible { background: var(--primary); border-color: var(--primary); color: #fff; }
.ae-site .cert-arrow[hidden], .ae-site .cert-dots[hidden] { display: none; }
.ae-site .cert-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.ae-site .cert-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(41,77,151,.22); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.ae-site .cert-dots button[aria-current="true"] { width: 26px; background: var(--primary); }
@media (max-width: 1200px) { .ae-site .cert-slider { --per: 4; } }
@media (max-width: 1000px) { .ae-site .cert-slider { --per: 3; } }
@media (max-width: 600px) {
  .ae-site .cert-slider { --per: 1; --gap: 12px; padding: 0 28px; }
  .ae-site .cert-arrow { width: 38px; height: 38px; font-size: 15px; }
  .ae-site .cert-arrow.prev { left: -8px; }
  .ae-site .cert-arrow.next { right: -8px; }
  .ae-site .cert-slide { padding: 8px 8px 14px; }
  .ae-site .cert-slide figcaption { font-size: 15px; gap: 10px; margin-top: 14px; justify-content: center; }
  .ae-site .cert-badge { width: 22px; height: 22px; }
}

/* Announcement popup (template-parts/popup.php; opened by main.js) */
.ae-popup {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px;
  background: rgba(8, 16, 31, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  font-family: var(--font-base); opacity: 0; transition: opacity .35s ease;
}
.ae-popup[hidden] { display: none; }
.ae-popup.open { opacity: 1; }
.ae-popup-box {
  display: flex; flex-direction: column; width: 70vw; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.7);
  transform: translateY(24px) scale(.97); transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.ae-popup.open .ae-popup-box { transform: none; }
.ae-popup-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 18px 18px 28px; }
.ae-popup-head h2 {
  margin: 0; font-size: clamp(18px, 2.3vw, 20px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
  text-transform: uppercase; color: #0f1b3d;
}
.ae-popup-close {
  flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: #5b6785; cursor: pointer; transition: background .2s, color .2s, transform .3s;
}
.ae-popup-close:hover, .ae-popup-close:focus-visible { background: #f4f7fc; color: #294D97; transform: rotate(90deg); outline: none; }
.ae-popup-media { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
/* Image at the full popup width, natural height; scrolls inside the popup only if taller than the screen */
.ae-popup-media img { display: block; width: 100%; height: auto; }
.ae-popup-foot { padding: 12px; }
.ae-popup-btn {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 20px; border-radius: 8px;
  font-size: 18px; font-weight: 500; color: #fff; text-decoration: none;
  background: linear-gradient(90deg, #0f1b3d, #294D97); background-size: 200% 100%; transition: background-position .4s ease, box-shadow .3s;
}
.ae-popup-btn:hover, .ae-popup-btn:focus-visible { color: #fff; background-position: 100% 0; box-shadow: 0 12px 26px -12px rgba(41,77,151,.7); outline: none; }
@media (max-width: 600px) {
  .ae-popup { padding: 12px; }
  .ae-popup-box { width: 100%; border-radius: 8px; }
  /* Small centred heading with the close button on the right */
  .ae-popup-head { gap: 6px; padding: 10px 6px 10px 46px; } /* left padding balances the close button so the heading is truly centred */
  .ae-popup-head h2 { flex: 1; font-size: 15px; line-height: 1.3; text-align: center; }
  /* Whole image, never cropped: full popup width, natural height */
  .ae-popup-media img { width: 100%; height: auto; min-height: 0; max-height: none; object-fit: contain; }
  .ae-popup-close { width: 34px; height: 34px; }
  .ae-popup-close svg { width: 20px; height: 20px; }
  .ae-popup-foot { padding: 8px; }
  .ae-popup-btn { min-height: 42px; font-size: 14px; border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .ae-popup, .ae-popup-box { transition: none; }
}

/* VLTD gallery lightbox (built in main.js, appended to <body>) */
.ae-site a.vltd-photo { cursor: zoom-in; }
.ae-site a.vltd-photo:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 14px; }
.ae-lb {
  position: fixed; inset: 0; z-index: 10000; display: grid; grid-template-rows: auto 1fr auto;
  font-family: var(--font-base); color: #fff; background: rgba(8, 16, 31, .94);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.ae-lb.open { opacity: 1; visibility: visible; }
.ae-lb button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.ae-lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.ae-lb-count { font-size: 18px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.ae-lb-tools { display: flex; gap: 4px; }
.ae-lb-tool { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; transition: background .2s, color .2s; }
.ae-lb-tool:hover, .ae-lb-tool:focus-visible { background: rgba(255,255,255,.12); color: #12B6AF; outline: none; }
.ae-lb-tool[aria-pressed="true"] { color: #12B6AF; }
.ae-lb-tool svg { width: 24px; height: 24px; }
.ae-lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 84px; }
.ae-lb-frame {
  position: relative; display: grid; place-items: center; overflow: hidden;
  width: min(1110px, 100%); height: 100%; max-height: 74vh; border-radius: 8px; background: #fff;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
/* Fill the frame and letterbox with object-fit, so tall and wide images both fit whole */
.ae-lb-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px; user-select: none; -webkit-user-drag: none;
  cursor: zoom-in; transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .25s ease;
}
.ae-lb.zoomed .ae-lb-img { transform: scale(2.2); cursor: zoom-out; transition-property: opacity; }
.ae-lb-img.fade { opacity: 0; }
.ae-lb-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px; text-align: center; font-size: 15px; font-weight: 500; color: #fff; background: linear-gradient(90deg, #294D97, #0e9a94); }
.ae-lb-caption:empty { display: none; }
.ae-lb-frame.has-caption .ae-lb-img { padding-bottom: 64px; }
.ae-lb.zoomed .ae-lb-caption { opacity: 0; }
.ae-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; transition: background .2s, color .2s; }
.ae-lb-nav:hover, .ae-lb-nav:focus-visible { background: rgba(255,255,255,.12); color: #12B6AF; outline: none; }
.ae-lb-nav svg { width: 30px; height: 30px; }
.ae-lb-nav.prev { left: 14px; }
.ae-lb-nav.next { right: 14px; }
.ae-lb-thumbs { display: flex; justify-content: safe center; gap: 10px; padding: 16px 18px 20px; overflow-x: auto; scrollbar-width: none; transition: opacity .3s ease; }
.ae-lb-thumbs::-webkit-scrollbar { display: none; }
.ae-lb.no-thumbs .ae-lb-thumbs { display: none; }
.ae-lb-thumb {
  flex-shrink: 0; width: 76px; height: 76px; padding: 4px !important; border-radius: 6px; background: #fff !important;
  opacity: .5; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s, transform .2s;
}
.ae-lb-thumb img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ae-lb-thumb:hover { opacity: .85; }
.ae-lb-thumb[aria-current="true"] { opacity: 1; outline-color: #12B6AF; transform: translateY(-3px); }
.ae-lb-progress { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: #12B6AF; }
.ae-lb.playing .ae-lb-progress { animation: ae-lbProgress var(--lb-delay, 3s) linear forwards; }
@keyframes ae-lbProgress { to { width: 100%; } }
@media (max-width: 700px) {
  .ae-lb-top { padding: 10px 8px 10px 14px; }
  .ae-lb-tool { width: 40px; height: 40px; }
  .ae-lb-tool svg { width: 20px; height: 20px; }
  .ae-lb-tool.fs { display: none; }
  .ae-lb-stage { padding: 0 12px; }
  .ae-lb-frame { max-height: 64vh; }
  .ae-lb-nav { width: 42px; height: 42px; background: rgba(8,16,31,.55); }
  .ae-lb-nav.prev { left: 16px; }
  .ae-lb-nav.next { right: 16px; }
  .ae-lb-thumbs { justify-content: flex-start; }
  .ae-lb-thumb { width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .ae-lb, .ae-lb * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1000px) {
  .ae-site .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ae-site .about-grid, .ae-site .contact-grid, .ae-site .location-grid { grid-template-columns: 1fr; gap: 48px; }
  .ae-site .about-collage { height: 400px; }
  .ae-site .location-grid { gap: 20px; }
}
@media (max-width: 600px) {
  .ae-site section { padding: 40px 0; }
  .ae-site .grid-3, .ae-site .form-row { grid-template-columns: 1fr; }
  /* Stack: number → content → icon */
  .ae-site .svc-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 8px; }
  .ae-site .svc-row h3 { font-size: 21px; }
  .ae-site .svc-icon { justify-self: stretch; width: 100%; height: 110px; margin-top: 6px; }
  .ae-site .svc-row.reveal-group.in .svc-icon { animation: ae-svcText 1s var(--ease) .85s both; }
  .ae-site .about-collage { height: auto; grid-template-rows: 150px 150px; margin-bottom: 0; }
  .ae-site .about-card { position: relative; left: auto; bottom: auto; grid-column: 1 / -1; margin: -40px 12px 0; width: auto; padding: 24px; }
  .ae-site .about-card .divider { margin-left: 0; }
  .ae-site .about-card p { margin-left: 0; }
  .ae-site .about-points { grid-template-columns: 1fr; }
  .ae-site .stat .val { font-size: 34px; }
  .ae-site .form-row { gap: 0; }
  .ae-site .form { padding: 26px; }
  .ae-site .card { padding: 26px; }
  .ae-site .hero .container { padding-bottom: 56px; }
  .ae-site .map, .ae-site .map iframe { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .ae-site *, .ae-site *::before, .ae-site *::after { animation: none !important; transition: none !important; }
  .ae-site .reveal, .ae-site .split .w > span, .ae-site .scroll-cue, .ae-site .about-collage .tile, .ae-site .svc-row > * {
    opacity: 1 !important; transform: none !important; translate: none !important; filter: none !important; clip-path: none !important;
  }
  .ae-site .serif { background-size: 100% .28em; }
}
@media (max-width: 600px) {
  .ae-site .scroll-cue { display: none; }
}

/* ===== BRANDS SLIDER ===== */
.ae-site .brands-slider { display: grid; gap: 18px; }
.ae-site .brand-row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ae-site .brand-track { display: flex; gap: 18px; width: max-content; animation: ae-brandScroll 65s linear infinite; }
.ae-site .brand-row.reverse .brand-track { animation-direction: reverse; animation-duration: 75s; animation-delay: -5s; }
.ae-site .brand-row:hover .brand-track { animation-play-state: paused; }
@keyframes ae-brandScroll { to { transform: translateX(calc(-50% - 9px)); } }
.ae-site .brand {
  flex: 0 0 auto; width: 200px; height: 96px; border-radius: 16px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px -22px rgba(15,27,61,.3);
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--muted);
  transition: color .3s ease, border-color .3s ease, transform .4s var(--ease), box-shadow .3s ease;
  overflow: hidden;
}
.ae-site .brand img { max-width: 60%; max-height: 90px; object-fit: contain; transition: transform .4s var(--ease); }
.ae-site .brand:hover { color: var(--primary); border-color: rgba(18,182,175,.4); transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(41,77,151,.4); }
.ae-site .brand:hover img { transform: scale(1.06); }
@media (max-width: 600px) {
  .ae-site .brand { width: 150px; height: 76px; font-size: 16px; }
  .ae-site .brand img{ max-width: 70%; max-height: 70px; }
}
/* ===== Spring wave lines (see automative_wave_lines()) ===== */
.wave-lines {
	display: none; /* temprory hide */
	position: absolute;
	left: 0;
	right: 0;
	height: clamp(140px, 22vw, 320px);
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	opacity: .55;
}
.wave-lines.is-top { top: 0; }
.wave-lines.is-bottom { bottom: 0; }
.wave-lines.is-flip svg { transform: scaleX(-1); }
.wave-lines.is-soft { opacity: .35; }
.wave-lines svg { display: block; width: 100%; height: 100%; }
.wave-lines path {
	stroke-width: 1.1;
	vector-effect: non-scaling-stroke;
	transform-origin: 76% 35%;
	/* Each line starts a little later than the one before, so the swell ripples across the ribbon */
	animation: wave-sway 6s ease-in-out infinite alternate;
	animation-delay: calc(var(--i) * -0.3s);
}
@keyframes wave-sway {
	0%   { transform: translate(-1.5%, 14px) scaleY(.82); }
	50%  { transform: translate(0, 0) scaleY(1.04); }
	100% { transform: translate(1.5%, -14px) scaleY(1.18); }
}
/* Light streaks that run along the lines */
.wave-lines .wave-flow path {
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-dasharray: 7 93;
	animation: wave-sway 6s ease-in-out infinite alternate, wave-run 7s linear infinite;
	animation-delay: calc(var(--i) * -0.3s), calc(var(--i) * -0.55s);
}
@keyframes wave-run {
	from { stroke-dashoffset: 100; }
	to { stroke-dashoffset: 0; }
}

/* Keep section content above the waves */
.ae-site section > .container { position: relative; z-index: 1; }

.site-footer { position: relative; overflow: hidden; }
.site-footer .footer-card { position: relative; z-index: 1; }
.wave-lines.is-footer { height: 100%; opacity: .3; }
/* The green gradient disappears on the blue footer, so draw light lines with gold streaks instead */
.wave-lines.is-footer g { stroke: #fff; }
.wave-lines.is-footer .wave-flow { stroke: var(--color-secondary); }

@media (max-width: 700px) {
	.wave-lines { opacity: .35; }
	.wave-lines.is-soft, .wave-lines.is-footer { opacity: .2; }
}

@media (prefers-reduced-motion: reduce) {
	.wave-lines path { animation: none; }
	.wave-lines .wave-flow { display: none; }
}
