/* AlovEnergy global UI shell, Homepage, and internal-page system. */
:root {
	--ae-color-page: #f5f7f8;
	--ae-color-surface: #ffffff;
	--ae-color-surface-strong: #0e1b26;
	--ae-color-surface-muted: #edf1f3;
	--ae-color-text: #15232d;
	--ae-color-text-muted: #5e6b73;
	--ae-color-text-inverse: #f7f9fa;
	--ae-color-border: #d8dee2;
	--ae-color-brand: #00A859;
	--ae-color-brand-strong: #007a41;
	--ae-color-brand-soft: #e9f7f0;
	--ae-color-accent-secondary: #ED3237;
	--ae-color-accent-secondary-strong: #d9272d;
	--ae-color-header-surface: rgb(255 255 255 / 0.98);
	--ae-color-hero-overlay-start: rgb(7 17 24 / 0.92);
	--ae-color-hero-overlay-mid: rgb(7 17 24 / 0.68);
	--ae-color-hero-overlay-end: rgb(7 17 24 / 0.28);
	--ae-color-border-inverse: rgb(255 255 255 / 0.16);
	--ae-color-link-inverse-muted: rgb(255 255 255 / 0.46);
	--ae-color-text-inverse-muted: rgb(247 249 250 / 0.72);
	--ae-container: 76rem;
	--ae-container-narrow: 48rem;
	--ae-header-height: 4.75rem;
	--ae-gutter: clamp(1rem, 3vw, 2rem);
	--ae-space-1: 0.25rem;
	--ae-space-2: 0.5rem;
	--ae-space-3: 0.75rem;
	--ae-space-4: 1rem;
	--ae-space-5: 1.5rem;
	--ae-space-6: 2rem;
	--ae-space-7: 3rem;
	--ae-space-8: 4.5rem;
	--ae-font-xs: 0.8125rem;
	--ae-font-sm: 0.9375rem;
	--ae-font-base: 1rem;
	--ae-font-lg: clamp(1.125rem, 1.8vw, 1.25rem);
	--ae-font-xl: clamp(1.75rem, 4vw, 3rem);
	--ae-font-hero: clamp(2.6rem, 7vw, 4.75rem);
	--ae-font-section: clamp(1.8rem, 3.5vw, 2.65rem);
	--ae-radius: 0.25rem;
	--ae-shadow: 0 0.75rem 2rem rgb(15 28 38 / 0.1);
	--ae-transition: 160ms ease;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 100%;
	line-height: 1.6;
	color: var(--ae-color-text);
	background: var(--ae-color-page);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-width: 20rem;
	background: var(--ae-color-page);
	color: var(--ae-color-text);
	font-family: inherit;
	font-size: var(--ae-font-base);
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--ae-color-brand-strong);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--ae-color-brand);
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 0.1875rem solid var(--ae-color-surface);
	outline-offset: 0.125rem;
	box-shadow: 0 0 0 0.375rem var(--ae-color-surface-strong);
}

h1,
h2,
h3,
h4 {
	margin-block: 0 0.75em;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

h1 {
	font-size: var(--ae-font-xl);
}

h2 {
	font-size: clamp(1.45rem, 2.5vw, 2rem);
}

h3 {
	font-size: var(--ae-font-lg);
}

p {
	margin-block: 0 1em;
}

.ae-container,
.ae-shell {
	width: min(calc(100% - (2 * var(--ae-gutter))), var(--ae-container));
	margin-inline: auto;
}

.ae-container-narrow {
	width: min(calc(100% - (2 * var(--ae-gutter))), var(--ae-container-narrow));
	margin-inline: auto;
}

.ae-section,
.ae-system-page {
	padding-block: var(--ae-space-8);
}

.ae-full-width-section {
	width: 100%;
}

.ae-system-page {
	min-height: 55vh;
}

.ae-system-page > article,
.ae-system-page > section {
	max-width: var(--ae-container-narrow);
}

.ae-system-page h1 + p {
	color: var(--ae-color-text-muted);
	font-size: var(--ae-font-lg);
}

.ae-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.7rem 1.1rem;
	border: 0.0625rem solid var(--ae-color-brand);
	border-radius: var(--ae-radius);
	background: var(--ae-color-brand);
	color: var(--ae-color-surface-strong);
	font: inherit;
	font-size: var(--ae-font-sm);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color var(--ae-transition), border-color var(--ae-transition), color var(--ae-transition);
}

.ae-button:hover {
	border-color: var(--ae-color-brand-strong);
	background: var(--ae-color-brand-strong);
	color: var(--ae-color-text-inverse);
}

.ae-button--secondary {
	background: transparent;
	color: var(--ae-color-brand-strong);
}

.ae-button--secondary:hover {
	background: var(--ae-color-brand-strong);
	color: var(--ae-color-text-inverse);
}

.ae-action-link {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-weight: 700;
	text-decoration-thickness: 0.0625rem;
}

.ae-skip-link {
	position: fixed;
	z-index: 1000;
	top: var(--ae-space-3);
	left: var(--ae-space-3);
	padding: var(--ae-space-3) var(--ae-space-4);
	transform: translateY(-180%);
	border-radius: var(--ae-radius);
	background: var(--ae-color-surface-strong);
	color: var(--ae-color-text-inverse);
	font-weight: 700;
	text-decoration: none;
	transition: transform var(--ae-transition);
}

.ae-skip-link:focus {
	transform: translateY(0);
	color: var(--ae-color-text-inverse);
}

.ae-site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	border-bottom: 0.0625rem solid var(--ae-color-border);
	background: var(--ae-color-header-surface);
}

.ae-header-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	min-height: var(--ae-header-height);
	gap: var(--ae-space-4);
}

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

.ae-brand-link {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--ae-color-surface-strong);
	font-weight: 800;
	text-decoration: none;
}

.ae-brand-link:hover {
	color: var(--ae-color-brand-strong);
}

.ae-brand-text {
	font-size: 1.2rem;
	letter-spacing: 0.01em;
}

.ae-brand-logo {
	display: block;
	width: auto;
	max-width: min(12rem, 45vw);
	max-height: 3rem;
}

.ae-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ae-space-3);
	min-height: 2.75rem;
	padding: 0.55rem 0.75rem;
	border: 0.0625rem solid var(--ae-color-border);
	border-radius: var(--ae-radius);
	background: var(--ae-color-surface);
	color: var(--ae-color-text);
	font: inherit;
	font-size: var(--ae-font-sm);
	font-weight: 700;
	cursor: pointer;
}

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

.ae-menu-toggle-icon {
	display: grid;
	gap: 0.2rem;
	width: 1rem;
}

.ae-menu-toggle-icon span {
	display: block;
	height: 0.1rem;
	background: currentColor;
}

.ae-navigation-panel {
	grid-column: 1 / -1;
	padding-bottom: var(--ae-space-4);
}

.ae-primary-menu,
.ae-services-subnav,
.ae-language-switcher ul,
.ae-footer-nav ul,
.ae-footer-services ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ae-primary-menu {
	display: grid;
	gap: var(--ae-space-1);
}

.ae-menu-item > a,
.ae-services-subnav a {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.55rem 0.7rem;
	border-left: 0.1875rem solid transparent;
	color: var(--ae-color-text);
	font-size: var(--ae-font-sm);
	font-weight: 700;
	text-decoration: none;
}

.ae-menu-item > a:hover,
.ae-services-subnav a:hover,
.ae-menu-item.is-active > a,
.ae-services-subnav .is-active > a {
	border-left-color: var(--ae-color-brand);
	background: var(--ae-color-brand-soft);
	color: var(--ae-color-brand-strong);
}

.ae-services-subnav {
	margin: 0 0 var(--ae-space-2) var(--ae-space-4);
	padding-left: var(--ae-space-2);
	border-left: 0.0625rem solid var(--ae-color-border);
}

.ae-services-subnav a {
	font-weight: 600;
}

.ae-language-switcher {
	margin-top: var(--ae-space-4);
	padding-top: var(--ae-space-4);
	border-top: 0.0625rem solid var(--ae-color-border);
}

.ae-language-switcher ul {
	display: flex;
	gap: var(--ae-space-2);
}

.ae-language-switcher a,
.ae-language-switcher span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.45rem 0.6rem;
	border: 0.0625rem solid var(--ae-color-border);
	border-radius: var(--ae-radius);
	color: var(--ae-color-text);
	font-size: var(--ae-font-xs);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.ae-language-switcher a:hover,
.ae-language-switcher .is-current {
	border-color: var(--ae-color-brand);
	background: var(--ae-color-brand);
	color: var(--ae-color-surface-strong);
}

.ae-language-switcher .is-unavailable {
	color: var(--ae-color-text-muted);
	opacity: 0.55;
}

.ae-nav-enhanced .ae-navigation-panel {
	display: none;
}

.ae-nav-enhanced .ae-navigation-panel.is-open {
	display: block;
}

.ae-site-footer {
	border-top: 0.25rem solid var(--ae-color-brand);
	background: var(--ae-color-surface-strong);
	color: var(--ae-color-text-inverse);
}

.ae-footer-grid {
	display: grid;
	gap: var(--ae-space-6);
	padding-block: var(--ae-space-7);
}

.ae-footer-company {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 800;
}

.ae-footer-heading {
	margin: 0 0 var(--ae-space-3);
	font-size: var(--ae-font-sm);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ae-footer-nav ul,
.ae-footer-services ul {
	display: grid;
	gap: var(--ae-space-2);
}

.ae-footer-nav a,
.ae-footer-services a,
.ae-footer-contact a {
	color: var(--ae-color-text-inverse);
	font-size: var(--ae-font-sm);
	text-decoration-color: var(--ae-color-link-inverse-muted);
}

.ae-footer-contact {
	font-style: normal;
}

.ae-footer-contact p {
	margin: 0 0 var(--ae-space-2);
}

.ae-footer-bottom {
	padding-block: var(--ae-space-4);
	border-top: 0.0625rem solid var(--ae-color-border-inverse);
	color: var(--ae-color-text-inverse-muted);
	font-size: var(--ae-font-xs);
}

@media (min-width: 42rem) {
	.ae-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.ae-header-inner {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.ae-menu-toggle {
		display: none !important;
	}

	.ae-navigation-panel,
	.ae-nav-enhanced .ae-navigation-panel,
	.ae-nav-enhanced .ae-navigation-panel.is-open {
		display: flex;
		grid-column: auto;
		align-items: center;
		justify-content: flex-end;
		gap: var(--ae-space-5);
		padding-bottom: 0;
	}

	.ae-primary-menu {
		display: flex;
		align-items: stretch;
		gap: 0;
	}

	.ae-menu-item {
		position: relative;
	}

	.ae-menu-item > a {
		min-height: var(--ae-header-height);
		padding-inline: 0.75rem;
		border-bottom: 0.1875rem solid transparent;
		border-left: 0;
		background: transparent;
	}

	.ae-menu-item > a:hover,
	.ae-menu-item.is-active > a {
		border-bottom-color: var(--ae-color-brand);
		border-left-color: transparent;
		background: transparent;
	}

	.ae-services-subnav {
		position: absolute;
		top: calc(100% - 0.0625rem);
		left: 0;
		display: none;
		min-width: 16rem;
		margin: 0;
		padding: var(--ae-space-2);
		border: 0.0625rem solid var(--ae-color-border);
		border-top: 0.1875rem solid var(--ae-color-brand);
		border-radius: 0 0 var(--ae-radius) var(--ae-radius);
		background: var(--ae-color-surface);
		box-shadow: var(--ae-shadow);
	}

	.ae-menu-item.has-children:hover > .ae-services-subnav,
	.ae-menu-item.has-children:focus-within > .ae-services-subnav {
		display: block;
	}

	.ae-services-subnav a {
		border-left-width: 0.125rem;
	}

	.ae-language-switcher {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	.ae-language-switcher a,
	.ae-language-switcher span {
		min-width: 2.75rem;
		min-height: 2.75rem;
		padding: 0.35rem 0.5rem;
	}

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

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

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

/* Phase A3 brand and Homepage primitives. */
.ae-button--inverse {
	border-color: var(--ae-color-border-inverse);
	background: transparent;
	color: var(--ae-color-text-inverse);
}

.ae-button--inverse:hover {
	border-color: var(--ae-color-surface);
	background: var(--ae-color-surface);
	color: var(--ae-color-surface-strong);
}

.ae-action-group {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ae-space-3);
}

.ae-section-heading {
	max-width: 47rem;
	margin-bottom: var(--ae-space-6);
}

.ae-section-heading h2,
.ae-home-about h2,
.ae-home-focus h2,
.ae-home-cta h2 {
	font-size: var(--ae-font-section);
}

.ae-section-heading > :last-child,
.ae-home-about-copy > :last-child,
.ae-home-focus-copy > :last-child,
.ae-home-cta-inner > div > :last-child {
	margin-bottom: 0;
}

.ae-section-kicker {
	display: flex;
	align-items: center;
	gap: var(--ae-space-3);
	margin: 0 0 var(--ae-space-3);
	color: var(--ae-color-text-muted);
	font-size: var(--ae-font-xs);
	font-weight: 800;
	letter-spacing: 0.11em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ae-section-kicker::before {
	width: 1.75rem;
	height: 0.1875rem;
	background: var(--ae-color-accent-secondary);
	content: "";
	flex: 0 0 auto;
}

.ae-section-kicker--inverse {
	color: var(--ae-color-text-inverse-muted);
}

.ae-home {
	background: var(--ae-color-page);
}

.ae-home-hero {
	position: relative;
	isolation: isolate;
	min-height: 21.875rem;
	overflow: hidden;
	background: var(--ae-color-surface-strong);
	color: var(--ae-color-text-inverse);
}

.ae-home-hero::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(90deg, var(--ae-color-hero-overlay-start) 0%, var(--ae-color-hero-overlay-mid) 52%, var(--ae-color-hero-overlay-end) 100%);
	content: "";
}

.ae-home-hero-media {
	position: absolute;
	z-index: -2;
	inset: 0;
}

.ae-home-hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 25% center;
}

.ae-home-hero-inner {
	display: flex;
	align-items: center;
	min-height: 21.875rem;
	padding-block: var(--ae-space-7);
}

.ae-home-hero-copy {
	max-width: 46rem;
}

.ae-home-hero h1 {
	margin-bottom: var(--ae-space-4);
	color: var(--ae-color-text-inverse);
	font-size: var(--ae-font-hero);
	letter-spacing: -0.035em;
}

.ae-home-hero-lead {
	max-width: 42rem;
	margin-bottom: var(--ae-space-6);
	color: var(--ae-color-text-inverse);
	font-size: clamp(1.08rem, 2.2vw, 1.4rem);
	line-height: 1.5;
}

.ae-home-services {
	background: var(--ae-color-page);
}

.ae-service-grid {
	display: grid;
	gap: var(--ae-space-4);
}

.ae-service-card {
	position: relative;
	padding: var(--ae-space-6);
	border: 0.0625rem solid var(--ae-color-border);
	border-top: 0.1875rem solid var(--ae-color-brand);
	background: var(--ae-color-surface);
}

.ae-service-card h3 {
	margin-bottom: var(--ae-space-3);
	font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.ae-service-card h3 a {
	color: var(--ae-color-text);
	text-decoration: none;
}

.ae-service-card h3 a:hover {
	color: var(--ae-color-brand-strong);
}

.ae-service-card > p:not(.ae-service-number) {
	color: var(--ae-color-text-muted);
}

.ae-service-number {
	margin: 0 0 var(--ae-space-5);
	color: var(--ae-color-accent-secondary-strong);
	font-size: var(--ae-font-xs);
	font-weight: 800;
	letter-spacing: 0.1em;
}

.ae-home-about {
	background: var(--ae-color-surface);
}

.ae-home-about-grid {
	display: grid;
	gap: var(--ae-space-6);
	align-items: start;
}

.ae-home-about-copy {
	max-width: 42rem;
}

.ae-home-about-copy > p {
	color: var(--ae-color-text-muted);
	font-size: var(--ae-font-lg);
}

.ae-home-focus {
	background: var(--ae-color-surface-strong);
	color: var(--ae-color-text-inverse);
}

.ae-home-focus-grid {
	display: grid;
	gap: var(--ae-space-6);
	align-items: start;
}

.ae-home-focus h2 {
	color: var(--ae-color-text-inverse);
}

.ae-home-focus-copy > p:not(.ae-section-kicker) {
	max-width: 42rem;
	color: var(--ae-color-text-inverse-muted);
}

.ae-focus-list {
	margin: 0;
	padding: 0;
	border-top: 0.0625rem solid var(--ae-color-border-inverse);
	list-style: none;
}

.ae-focus-list li {
	border-bottom: 0.0625rem solid var(--ae-color-border-inverse);
}

.ae-focus-list a,
.ae-focus-list span {
	display: flex;
	align-items: center;
	min-height: 4rem;
	padding-block: var(--ae-space-3);
	color: var(--ae-color-text-inverse);
	font-size: var(--ae-font-lg);
	font-weight: 700;
	text-decoration: none;
}

.ae-focus-list a::after {
	margin-left: auto;
	color: var(--ae-color-brand);
	content: "→";
}

.ae-focus-list a:hover {
	color: var(--ae-color-brand);
}

.ae-home-cta {
	background: var(--ae-color-surface-muted);
}

.ae-home-cta-inner {
	display: grid;
	gap: var(--ae-space-5);
	align-items: center;
}

.ae-home-cta-inner p:not(.ae-section-kicker) {
	max-width: 42rem;
	color: var(--ae-color-text-muted);
}

@media (max-width: 30rem) {
	.ae-home-hero {
		min-height: 25rem;
	}

	.ae-home-hero-inner {
		min-height: 25rem;
		padding-block: var(--ae-space-6);
	}

	.ae-home-hero::after {
		background: linear-gradient(90deg, var(--ae-color-hero-overlay-start) 0%, var(--ae-color-hero-overlay-mid) 78%, var(--ae-color-hero-overlay-end) 100%);
	}

	.ae-home-hero .ae-action-group {
		display: grid;
	}

	.ae-home-hero .ae-button {
		width: 100%;
	}
}

@media (min-width: 42rem) {
	.ae-service-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ae-home-about-grid,
	.ae-home-focus-grid {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	}

	.ae-home-cta-inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

@media (min-width: 64rem) {
	.ae-home-hero-copy {
		padding-left: var(--ae-space-4);
		border-left: 0.1875rem solid var(--ae-color-brand);
	}
}

/* Phase A5A — core internal page presentation. */
.ae-internal-page {
	min-height: 55vh;
	background: var(--ae-color-page);
}

.ae-internal-hero {
	padding-block: clamp(2.25rem, 5vw, 4.5rem);
	border-bottom: 0.0625rem solid var(--ae-color-border-inverse);
	background: var(--ae-color-surface-strong);
	color: var(--ae-color-text-inverse);
}

.ae-internal-hero .ae-container {
	max-width: var(--ae-container);
}

.ae-internal-hero h1 {
	max-width: 54rem;
	margin-bottom: var(--ae-space-4);
	font-size: clamp(2.15rem, 5vw, 3.75rem);
}

.ae-internal-hero__kicker {
	margin-bottom: var(--ae-space-3);
	color: var(--ae-color-brand);
	font-size: var(--ae-font-xs);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ae-internal-hero__lead {
	max-width: 52rem;
	margin: 0;
	color: var(--ae-color-text-inverse-muted);
	font-size: var(--ae-font-lg);
}

.ae-breadcrumb {
	margin-bottom: var(--ae-space-6);
	font-size: var(--ae-font-sm);
}

.ae-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ae-breadcrumb li {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-width: 0;
}

.ae-breadcrumb li:not(:last-child)::after {
	content: "/";
	color: var(--ae-color-link-inverse-muted);
}

.ae-breadcrumb a {
	color: var(--ae-color-text-inverse-muted);
}

.ae-breadcrumb a:hover {
	color: var(--ae-color-text-inverse);
}

.ae-breadcrumb [aria-current="page"] {
	color: var(--ae-color-text-inverse);
	font-weight: 700;
}

.ae-section-heading {
	margin-bottom: var(--ae-space-6);
}

.ae-section-heading--narrow {
	max-width: 50rem;
}

.ae-section-heading h2 {
	margin-bottom: 0;
}

.ae-expertise-grid,
.ae-service-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ae-space-5);
}

.ae-expertise-card,
.ae-service-card {
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	border: 0.0625rem solid var(--ae-color-border);
	border-top: 0.1875rem solid var(--ae-color-brand);
	border-radius: var(--ae-radius);
	background: var(--ae-color-surface);
}

.ae-expertise-card h3,
.ae-service-card h2 {
	margin-bottom: var(--ae-space-3);
}

.ae-expertise-card p,
.ae-service-card p {
	color: var(--ae-color-text-muted);
}

.ae-expertise-card .ae-action-link,
.ae-service-card .ae-action-link {
	margin-top: auto;
	padding-top: var(--ae-space-3);
}

.ae-card-index {
	display: block;
	margin-bottom: var(--ae-space-5);
	color: var(--ae-color-accent-secondary-strong);
	font-size: var(--ae-font-xs);
	font-weight: 800;
	letter-spacing: 0.12em;
}

.ae-about-closing {
	padding-top: 0;
}

.ae-about-closing p {
	margin: 0;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-left: 0.25rem solid var(--ae-color-brand);
	background: var(--ae-color-surface-muted);
	font-size: var(--ae-font-lg);
	font-weight: 650;
}

.ae-service-prose .ae-container-narrow {
	font-size: var(--ae-font-lg);
}

.ae-service-prose p + p {
	margin-top: var(--ae-space-5);
}

.ae-scope-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	border-top: 0.0625rem solid var(--ae-color-border);
	list-style: none;
	counter-reset: ae-scope;
}

.ae-scope-list li {
	counter-increment: ae-scope;
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	align-items: start;
	min-width: 0;
	padding: 1.15rem var(--ae-space-4);
	border-bottom: 0.0625rem solid var(--ae-color-border);
}

.ae-scope-list li:nth-child(odd) {
	border-right: 0.0625rem solid var(--ae-color-border);
}

.ae-scope-list li::before {
	content: counter(ae-scope, decimal-leading-zero);
	color: var(--ae-color-brand-strong);
	font-size: var(--ae-font-xs);
	font-weight: 800;
	letter-spacing: 0.08em;
}

.ae-scope-list span {
	min-width: 0;
	font-weight: 650;
	overflow-wrap: anywhere;
}

.ae-related-services {
	padding-top: 0;
}

.ae-related-services .ae-container {
	padding-top: var(--ae-space-6);
	border-top: 0.0625rem solid var(--ae-color-border);
}

.ae-related-services h2 {
	font-size: var(--ae-font-lg);
}

.ae-related-services ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ae-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ae-related-services a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.6rem 0.85rem;
	border: 0.0625rem solid var(--ae-color-border);
	border-radius: var(--ae-radius);
	background: var(--ae-color-surface);
	font-weight: 700;
	text-decoration: none;
}

.ae-related-services a:hover {
	border-color: var(--ae-color-brand);
}

.ae-translation-pending {
	padding: clamp(1.5rem, 4vw, 2.25rem);
	border: 0.0625rem solid var(--ae-color-border);
	border-left: 0.25rem solid var(--ae-color-brand);
	background: var(--ae-color-surface);
}

.ae-translation-pending p {
	margin-bottom: var(--ae-space-4);
	font-size: var(--ae-font-lg);
}

@media (max-width: 58rem) {
	.ae-expertise-grid,
	.ae-service-card-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 44rem) {
	.ae-internal-hero {
		padding-block: var(--ae-space-7);
	}

	.ae-breadcrumb {
		margin-bottom: var(--ae-space-5);
	}

	.ae-scope-list {
		grid-template-columns: 1fr;
	}

	.ae-scope-list li:nth-child(odd) {
		border-right: 0;
	}

	.ae-related-services ul {
		flex-direction: column;
	}

	.ae-related-services a {
		width: 100%;
	}
}

@media (max-width: 22rem) {
	.ae-scope-list li {
		grid-template-columns: 2.5rem minmax(0, 1fr);
		padding-inline: var(--ae-space-3);
	}
}

/* Phase A5B — Partners, Vacancies and Contact presentation. */
.ae-utility-content .ae-container,
.ae-contact-content .ae-container {
	min-width: 0;
}

.ae-site-state {
	max-width: var(--ae-container-narrow);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border: 0.0625rem solid var(--ae-color-border);
	border-left: 0.25rem solid var(--ae-color-brand);
	background: var(--ae-color-surface);
}

.ae-site-state.ae-container-narrow {
	margin-inline: 0;
}

.ae-site-state p:last-child {
	margin-bottom: 0;
}

.ae-partner-list,
.ae-vacancy-list {
	margin: 0;
	padding: 0;
}

.ae-partner-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ae-space-4);
	list-style: none;
}

.ae-partner-item,
.ae-vacancy-item {
	min-width: 0;
	padding: var(--ae-space-5);
	border: 0.0625rem solid var(--ae-color-border);
	border-top: 0.1875rem solid var(--ae-color-brand);
	background: var(--ae-color-surface);
}

.ae-partner-item h2,
.ae-vacancy-item h2 {
	margin-bottom: var(--ae-space-2);
	font-size: var(--ae-font-lg);
}

.ae-vacancy-list {
	display: grid;
	gap: var(--ae-space-4);
}

.ae-vacancy-item__location {
	margin-bottom: var(--ae-space-3);
	color: var(--ae-color-brand-strong);
	font-size: var(--ae-font-sm);
	font-weight: 750;
}

.ae-vacancy-item p:last-child {
	margin-bottom: 0;
}

.ae-contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.ae-contact-main,
.ae-contact-details {
	min-width: 0;
}

.ae-contact-main:empty {
	display: none;
}

.ae-contact-details h2,
.ae-contact-copy h2 {
	font-size: var(--ae-font-lg);
}

.ae-contact-copy {
	max-width: var(--ae-container-narrow);
}

.ae-contact-detail-list {
	margin: 0;
	padding: 0;
	border-top: 0.0625rem solid var(--ae-color-border);
}

.ae-contact-detail {
	display: grid;
	grid-template-columns: minmax(6rem, 0.35fr) minmax(0, 1fr);
	gap: var(--ae-space-4);
	padding-block: var(--ae-space-4);
	border-bottom: 0.0625rem solid var(--ae-color-border);
}

.ae-contact-detail dt {
	color: var(--ae-color-text-muted);
	font-size: var(--ae-font-sm);
	font-weight: 700;
}

.ae-contact-detail dd {
	min-width: 0;
	margin: 0;
	font-weight: 650;
	overflow-wrap: anywhere;
}

.ae-contact-detail a {
	overflow-wrap: anywhere;
}

@media (max-width: 58rem) {
	.ae-partner-list,
	.ae-contact-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 32rem) {
	.ae-contact-detail {
		grid-template-columns: 1fr;
		gap: var(--ae-space-1);
	}
}

.ae-contact-layout--details-only {
	grid-template-columns: minmax(0, var(--ae-container-narrow));
}


/* Phase A9 — production not-found experience and final hardening. */
.ae-not-found {
	min-height: 55vh;
	background: var(--ae-color-page);
}

.ae-not-found__section {
	padding-block: clamp(4rem, 10vw, 7rem);
}

.ae-not-found__section .ae-container-narrow {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-left: 0.25rem solid var(--ae-color-brand);
	background: var(--ae-color-surface);
}

.ae-not-found__section h1 {
	font-size: clamp(2rem, 5vw, 3.5rem);
}

.ae-not-found__section p {
	max-width: 38rem;
	color: var(--ae-color-text-muted);
	font-size: var(--ae-font-lg);
}
