/**
 * Enigma Aviation — global stylesheet.
 *
 * Order: fonts → tokens → base → layout → header → footer → utilities.
 *
 * CASCADE RULE, read before editing:
 * Every base element rule is wrapped in :where() so it carries ZERO class specificity. A plain
 * `.enigma h2 { margin: 0 0 .5em }` scores 0-1-1 and silently beats every single-class
 * component rule (0-1-0) — which is how headings lose their colour on dark sections and
 * `margin-inline: auto` stops centring. :where() drops that to 0-0-1 so components always win.
 *
 * Image sizing rules are the mirror image of that problem: Elementor injects
 * `.elementor img { height: auto; max-width: 100% }` at 0-1-1 around ALL builder-rendered
 * content, including header and footer templates. So every image rule here is written
 * `.enigma .parent img` (0-2-1) to outrank it regardless of stylesheet print order.
 */

/* ============================================================== fonts */

@font-face {
	font-family: 'Montserrat';
	src: url('../fonts/montserrat-regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Montserrat';
	src: url('../fonts/montserrat-medium.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Montserrat';
	src: url('../fonts/montserrat-semibold.woff') format('woff');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Montserrat';
	src: url('../fonts/montserrat-bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Montserrat';
	src: url('../fonts/montserrat-extrabold.woff') format('woff');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Montserrat';
	src: url('../fonts/montserrat-black.woff') format('woff');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Montserrat';
	src: url('../fonts/montserrat-bolditalic.woff') format('woff');
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Montserrat';
	src: url('../fonts/montserrat-extrabolditalic.woff') format('woff');
	font-weight: 800;
	font-style: italic;
	font-display: swap;
}

/* Arabic companion. Montserrat has no Arabic coverage. */
@font-face {
	font-family: 'Cairo';
	src: url('../fonts/cairo-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
	font-family: 'Cairo';
	src: url('../fonts/cairo-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
	font-family: 'Cairo';
	src: url('../fonts/cairo-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
	font-family: 'Cairo';
	src: url('../fonts/cairo-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
	font-family: 'Cairo';
	src: url('../fonts/cairo-800.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
	font-family: 'Cairo';
	src: url('../fonts/cairo-900.woff2') format('woff2');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* ============================================================== tokens */

:root {
	/* Surfaces */
	--e-bg: #0E0E0F;
	--e-bg2: #12171A;
	--e-bg3: #192025;
	--e-card: #FFFFFF;
	--e-invert: #E6E7E8;
	--e-detail: #E6E7E8;

	/* Ink */
	--e-ink: #FFFFFF;
	--e-text: #E6E7E8;
	--e-m1: rgba(230, 231, 232, .74);
	--e-m2: rgba(230, 231, 232, .64);
	--e-m3: rgba(230, 231, 232, .53);
	--e-m4: rgba(230, 231, 232, .42);
	--e-m5: rgba(230, 231, 232, .33);

	/* Inks used on light and accent surfaces */
	--e-ink-solid: #1B1B1D;
	--e-text-solid: #404041;

	/* Lines and chips */
	--e-dot: rgba(230, 231, 232, .28);
	--e-l1: rgba(230, 231, 232, .06);
	--e-l2: rgba(230, 231, 232, .1);
	--e-l3: rgba(230, 231, 232, .17);
	--e-chip: rgba(230, 231, 232, .05);
	--e-chip-solid: rgba(14, 14, 15, .45);
	--e-mapcard: rgba(14, 14, 15, .95);

	/* Accent */
	--e-accent: #26A9E0;
	--e-accent-hover: #5FC2EA;
	--e-accent-deep: #1E88B4;
	--e-on-accent: #0E0E0F;

	/* Gradients */
	--e-hero-v: linear-gradient(180deg, rgba(14, 14, 15, .9) 0%, rgba(14, 14, 15, .5) 30%, rgba(14, 14, 15, .86) 74%, #0E0E0F 100%);
	--e-hero-h: linear-gradient(96deg, rgba(14, 14, 15, .94) 0%, rgba(14, 14, 15, .5) 54%, rgba(14, 14, 15, .12) 100%);
	--e-hero-dim: rgba(230, 231, 232, .4);
	--e-contact-fade: linear-gradient(180deg, #12171A 0%, rgba(18, 23, 26, .9) 40%, #12171A 100%);

	/* Type */
	--e-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--e-arabic: 'Cairo', 'Montserrat', system-ui, sans-serif;

	/* Typography controls. Untouched sites never emit these — the fallbacks are the design. */
	/* --e-heading-weight, --e-heading-scale, --e-body-size, --e-body-weight */

	/* Layout */
	--e-container: 1320px;
	--e-gutter: clamp(20px, 4vw, 48px);
	--e-section-y: clamp(72px, 9vw, 130px);
	--e-header-h: 84px;

	/* Radii */
	--e-r-sm: 8px;
	--e-r-md: 14px;
	--e-r-lg: 20px;
	--e-r-xl: 22px;
	--e-r-pill: 999px;
}

/* ============================================================== base */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--e-header-h) + 20px);
}

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

body.enigma {
	margin: 0;
	background: var(--e-bg);
	color: var(--e-text);
	font-family: var(--e-sans);
	font-size: var(--e-body-size, 16px);
	font-weight: var(--e-body-weight, 500);
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/*
 * Zero-specificity base rules. Do not remove :where() — see the header comment.
 */
:where(.enigma) h1,
:where(.enigma) h2,
:where(.enigma) h3,
:where(.enigma) h4,
:where(.enigma) h5,
:where(.enigma) h6 {
	margin: 0;
	color: var(--e-ink);
	font-weight: var(--e-heading-weight, 900);
	line-height: 1.05;
	letter-spacing: -.03em;
	text-wrap: balance;
}

:where(.enigma) h1 {
	font-size: calc(clamp(38px, 6.4vw, 92px) * var(--e-heading-scale, 1));
	line-height: .94;
	letter-spacing: -.032em;
}

:where(.enigma) h2 {
	font-size: calc(clamp(30px, 4.1vw, 60px) * var(--e-heading-scale, 1));
	line-height: 1;
}

:where(.enigma) h3 {
	font-size: calc(clamp(19px, 1.9vw, 26px) * var(--e-heading-scale, 1));
	line-height: 1.12;
	letter-spacing: -.015em;
}

:where(.enigma) h4 {
	font-size: calc(clamp(16px, 1.4vw, 20px) * var(--e-heading-scale, 1));
	line-height: 1.24;
}

:where(.enigma) p {
	margin: 0 0 1.15em;
	text-wrap: pretty;
}

:where(.enigma) p:last-child {
	margin-bottom: 0;
}

:where(.enigma) a {
	color: var(--e-accent);
	text-decoration: none;
	transition: color 200ms ease;
}

:where(.enigma) a:hover {
	color: var(--e-accent-hover);
}

:where(.enigma) img,
:where(.enigma) svg,
:where(.enigma) video {
	display: block;
	max-width: 100%;
}

:where(.enigma) ul,
:where(.enigma) ol {
	margin: 0 0 1.15em;
	padding-inline-start: 1.2em;
}

:where(.enigma) strong,
:where(.enigma) b {
	font-weight: 700;
}

:where(.enigma) hr {
	height: 0;
	margin: 2rem 0;
	border: 0;
	border-top: 1px solid var(--e-l2);
}

:where(.enigma) blockquote {
	margin: 1.5em 0;
	padding-inline-start: 20px;
	border-inline-start: 3px solid var(--e-accent);
	color: var(--e-m1);
	font-size: 1.05em;
	font-weight: 600;
}

:where(.enigma) code,
:where(.enigma) pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: .92em;
}

:where(.enigma) table {
	width: 100%;
	border-collapse: collapse;
}

:where(.enigma) th,
:where(.enigma) td {
	padding: 10px 12px;
	text-align: start;
	border-bottom: 1px solid var(--e-l2);
}

::selection {
	background: var(--e-accent);
	color: var(--e-on-accent);
}

:focus-visible {
	outline: 2px solid var(--e-accent);
	outline-offset: 3px;
}

input,
textarea,
select,
button {
	font-family: inherit;
}

/* ============================================================== layout */

.enigma-container {
	width: 100%;
	max-width: var(--e-container);
	margin-inline: auto;
	padding-inline: var(--e-gutter);
}

.enigma-section {
	position: relative;
	padding-block: var(--e-section-y);
}

.enigma-section--base { background: var(--e-bg); }
.enigma-section--raised { background: var(--e-bg2); }
.enigma-section--inverted { background: var(--e-invert); color: var(--e-text-solid); }
.enigma-section--accent { background: var(--e-accent); color: var(--e-on-accent); }

.enigma-section--line { border-top: 1px solid var(--e-l1); }

/* Section background pattern, masked from a corner as the design does. */
.enigma-pattern {
	position: absolute;
	inset-block: 0;
	z-index: 0;
	background-image: url('../img/pattern-blue.png');
	background-size: 240px;
	pointer-events: none;
}

.enigma-pattern--tr {
	inset-inline-end: 0;
	width: 54%;
	-webkit-mask-image: radial-gradient(115% 105% at 100% 0%, #000 0%, transparent 72%);
	mask-image: radial-gradient(115% 105% at 100% 0%, #000 0%, transparent 72%);
}

.enigma-pattern--tl {
	inset-inline-start: 0;
	width: 42%;
	-webkit-mask-image: radial-gradient(115% 105% at 0% 0%, #000 0%, transparent 72%);
	mask-image: radial-gradient(115% 105% at 0% 0%, #000 0%, transparent 72%);
}

.enigma-pattern--bl {
	inset-inline-start: 0;
	width: 44%;
	-webkit-mask-image: radial-gradient(115% 105% at 0% 100%, #000 0%, transparent 72%);
	mask-image: radial-gradient(115% 105% at 0% 100%, #000 0%, transparent 72%);
}

.enigma-pattern--br {
	inset-inline-end: 0;
	width: 44%;
	-webkit-mask-image: radial-gradient(115% 105% at 100% 100%, #000 0%, transparent 72%);
	mask-image: radial-gradient(115% 105% at 100% 100%, #000 0%, transparent 72%);
}

/* ============================================================== eyebrow */

.enigma-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
}

.enigma-eyebrow__rule {
	display: block;
	flex: 0 0 auto;
	width: 46px;
	height: 2px;
	background: var(--e-accent);
}

.enigma-eyebrow__text {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--e-accent);
}

/* ============================================================== buttons */

.enigma-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 17px 28px;
	border: 0;
	border-radius: var(--e-r-sm);
	cursor: pointer;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .15em;
	text-transform: uppercase;
	line-height: 1;
	transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.enigma-btn--primary {
	background: var(--e-accent);
	color: var(--e-on-accent);
}

.enigma-btn--primary:hover {
	background: var(--e-accent-hover);
	color: var(--e-on-accent);
}

.enigma-btn--ghost {
	background: var(--e-chip);
	color: var(--e-text);
	border: 1px solid var(--e-l3);
}

.enigma-btn--ghost:hover {
	color: var(--e-ink);
	border-color: var(--e-accent);
}

.enigma-btn--solid {
	background: var(--e-text-solid);
	color: var(--e-text);
}

.enigma-btn--solid:hover {
	background: var(--e-ink-solid);
	color: var(--e-ink);
}

.enigma-btn__icon {
	flex: 0 0 auto;
}

/* ============================================================== chips */

.enigma-chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 17px;
	background: var(--e-chip-solid);
	border: 1px solid var(--e-l3);
	border-radius: var(--e-r-pill);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e-m1);
}

.enigma-chip__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--e-accent);
}

/* ============================================================== header */

.enigma-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 60;
	border-bottom: 1px solid transparent;
	transition: background 400ms ease, backdrop-filter 400ms ease, border-color 400ms ease;
}

.enigma-header.is-scrolled {
	background: rgba(14, 14, 15, .86);
	backdrop-filter: saturate(150%) blur(14px);
	-webkit-backdrop-filter: saturate(150%) blur(14px);
	border-bottom-color: var(--e-l2);
}

.enigma-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--e-header-h);
	max-width: var(--e-container);
	margin-inline: auto;
	padding-inline: var(--e-gutter);
}

/* --- wordmark --- */

.enigma-logo {
	display: flex;
	align-items: flex-end;
	gap: 7px;
	flex: 0 0 auto;
	text-decoration: none;
}

.enigma-logo__word {
	position: relative;
	display: inline-block;
	font-size: 27px;
	font-weight: 800;
	font-style: italic;
	letter-spacing: -.035em;
	line-height: .9;
	color: var(--e-text);
}

.enigma-logo__dot {
	position: relative;
	display: inline-block;
}

/*
 * Two-class prefix (0-2-1) so this survives being rendered inside `.elementor`, whose injected
 * `.elementor img { height: auto }` (0-1-1) would otherwise collapse the mark.
 */
.enigma .enigma-logo__dot img {
	position: absolute;
	inset-inline-start: 50%;
	top: -.34em;
	width: .52em;
	height: auto;
	transform: translateX(-50%);
}

.enigma .enigma-logo__image img {
	width: auto;
	max-height: 46px;
}

.enigma-logo__desc {
	display: flex;
	flex-direction: column;
	line-height: 1.08;
	padding-bottom: 2px;
}

.enigma-logo__desc span {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--e-m1);
}

.enigma-logo__desc span + span {
	color: var(--e-m3);
}

/* --- nav --- */

.enigma-nav {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 34px);
}

.enigma-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.enigma-nav a {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--e-m2);
}

.enigma-nav a:hover,
.enigma-nav .current-menu-item > a {
	color: var(--e-ink);
}

.enigma-header__cta {
	padding: 12px 18px;
	font-size: 11px;
	gap: 9px;
}

/* --- burger --- */

.enigma-burger {
	display: none;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 46px;
	height: 46px;
	padding: 0;
	cursor: pointer;
	background: var(--e-chip);
	border: 1px solid var(--e-l3);
	border-radius: 12px;
	color: var(--e-text);
}

.enigma-burger span {
	display: block;
	width: 19px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: width 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.enigma-burger span:last-child {
	width: 13px;
	align-self: flex-start;
	margin-inline-start: 13.5px;
}

.enigma-burger[aria-expanded="true"] span:last-child {
	width: 19px;
	margin-inline-start: 0;
	align-self: center;
}

/* --- mobile panel --- */

.enigma-menu {
	display: none;
	flex-direction: column;
	padding: 10px var(--e-gutter) 22px;
	background: rgba(14, 14, 15, .97);
	backdrop-filter: saturate(160%) blur(16px);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	border-top: 1px solid var(--e-l2);
}

.enigma-menu.is-open {
	display: flex;
}

.enigma-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.enigma-menu a {
	display: block;
	padding: 16px 2px;
	border-bottom: 1px solid var(--e-l1);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--e-text);
}

.enigma-menu a:hover {
	color: var(--e-accent);
}

.enigma-menu li:last-child a {
	border-bottom: 0;
}

.enigma-menu__cta {
	margin-top: 14px;
	justify-content: center;
	padding: 16px 22px;
}

@media (max-width: 900px) {
	html.enigma-menu-open {
		overflow: hidden;
		overscroll-behavior: none;
	}

	body.enigma-menu-open {
		position: fixed;
		inset-inline: 0;
		width: 100%;
		overflow: hidden;
	}

	.enigma-header__nav {
		display: none;
	}

	.enigma-burger {
		display: flex;
	}

	.enigma-menu.is-open {
		max-height: calc(100vh - var(--e-header-h));
		max-height: calc(100dvh - var(--e-header-h));
		overflow-y: auto;
		overscroll-behavior-y: contain;
		-webkit-overflow-scrolling: touch;
	}
}

/* ============================================================== footer */

.enigma-footer {
	background: var(--e-bg);
	border-top: 1px solid var(--e-l1);
}

.enigma-footer__inner {
	max-width: var(--e-container);
	margin-inline: auto;
	padding: clamp(40px, 5vw, 64px) var(--e-gutter);
}

.enigma-footer__top {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
	justify-content: space-between;
}

.enigma-footer .enigma-logo__word {
	font-size: 24px;
}

.enigma-footer .enigma-logo__desc span {
	font-size: 8.5px;
	color: var(--e-m2);
}

.enigma-footer .enigma-logo__desc span + span {
	color: var(--e-m4);
}

.enigma-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(16px, 2.2vw, 30px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.enigma-footer__nav a {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--e-m3);
}

.enigma-footer__nav a:hover {
	color: var(--e-accent);
}

.enigma-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: space-between;
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--e-l1);
}

.enigma-footer__copy {
	font-size: 11px;
	font-weight: 500;
	color: var(--e-m5);
}

.enigma-footer__tagline {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--e-m5);
}

/* Accreditation marks — IATA, ISAGO and the like — sitting at the end of the footer bar. */
.enigma-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 20px;
}

.enigma-footer__badges {
	--e-badge-h: 26px;
	--e-badge-gap: 16px;
	--e-badge-op: .82;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
}

.enigma-footer__badges-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--e-m5);
}

.enigma-footer__badge-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.enigma-footer__badge {
	display: flex;
	align-items: center;
}

/* The hairline reads as "ISAGO | IATA" — one rule between marks, never before the first. */
.enigma-footer__badge + .enigma-footer__badge {
	margin-inline-start: var(--e-badge-gap);
	padding-inline-start: var(--e-badge-gap);
	border-inline-start: 1px solid var(--e-badge-rule, var(--e-l1));
}

.enigma-footer__badge img {
	display: block;
	width: auto;
	height: var(--e-badge-h);
	max-width: 170px;
	object-fit: contain;
	opacity: var(--e-badge-op);
	transition: opacity 220ms ease;
}

.enigma-footer__badge a {
	display: block;
	line-height: 0;
}

.enigma-footer__badge a:hover img,
.enigma-footer__badge a:focus-visible img {
	opacity: 1;
}

/*
 * Official marks are supplied in black on transparency, which vanishes on the dark footer.
 * brightness(0) flattens any source colour to black first, so invert() then lands on a true
 * white for every mark rather than an off-tint that varies file to file.
 */
.enigma-footer__badges.is-white img {
	filter: brightness(0) invert(1);
}

.enigma-footer__badges.is-mono img {
	filter: grayscale(1);
}

@media (max-width: 782px) {
	.enigma-footer__bottom {
		gap: 20px;
	}

	.enigma-footer__badges {
		width: 100%;
	}
}

/* ============================================================== reveal */

/*
 * Elements opt in with data-reveal. The script sets the start state, so nothing is hidden if
 * JavaScript never runs — a no-JS visitor sees fully rendered content.
 */
[data-reveal] {
	will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ============================================================== utilities */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 12px;
	inset-inline-start: 12px;
	width: auto;
	height: auto;
	padding: 14px 22px;
	clip-path: none;
	background: var(--e-accent);
	color: var(--e-on-accent);
	border-radius: var(--e-r-sm);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.enigma-main {
	/* The header is fixed; pages that do not open with a hero need the space back. */
	min-height: 40vh;
}

.enigma-main--offset {
	padding-top: var(--e-header-h);
}

/* ============================================================== Arabic */

/*
 * Arabic has no letter case, and positive letter-spacing SEVERS the cursive joining between
 * glyphs — it is not a stylistic preference, it breaks the script. Both are neutralised here
 * and the lost hierarchy is rebuilt with weight and size. Line-height lifts for Arabic's
 * taller ascenders and descenders.
 */
:lang(ar) {
	--e-sans: var(--e-arabic);
}

:where(.enigma) :lang(ar) h1,
:where(.enigma) :lang(ar) h2,
:where(.enigma) :lang(ar) h3,
:where(.enigma) :lang(ar) h4,
:where(.enigma) :lang(ar) h5,
:where(.enigma) :lang(ar) h6,
:lang(ar) .enigma-eyebrow__text,
:lang(ar) .enigma-btn,
:lang(ar) .enigma-chip,
:lang(ar) .enigma-nav a,
:lang(ar) .enigma-menu a,
:lang(ar) .enigma-footer__nav a,
:lang(ar) .enigma-footer__tagline {
	letter-spacing: 0;
	text-transform: none;
}

:where(.enigma) :lang(ar) h1,
:where(.enigma) :lang(ar) h2,
:where(.enigma) :lang(ar) h3 {
	line-height: 1.25;
}

:lang(ar) .enigma-eyebrow__text {
	font-size: 13px;
}

:lang(ar) .enigma-nav a {
	font-size: 13.5px;
}

:lang(ar) body.enigma,
:lang(ar) :where(.enigma) p {
	line-height: 1.9;
}

/* ============================================================== back to top */

.enigma-top {
	position: fixed;
	inset-inline-end: clamp(16px, 3vw, 30px);
	inset-block-end: clamp(16px, 3vw, 30px);
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--e-l3);
	border-radius: var(--e-r-pill);
	background: var(--e-chip-solid);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	color: var(--e-text);
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.enigma-top[hidden] {
	display: none;
}

.enigma-top:hover,
.enigma-top:focus-visible {
	background: var(--e-accent);
	border-color: var(--e-accent);
	color: var(--e-on-accent);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {

	.enigma-top {
		transition: none;
	}

	.enigma-top:hover,
	.enigma-top:focus-visible {
		transform: none;
	}
}

/* ========================================================== section button

   The optional link a section can end with, from Enigma_Widget_Base::render_cta().
   Lives in global.css because seven widgets share it. */

.enigma-section-cta {
	margin-top: clamp(28px, 3.4vw, 44px);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid transparent;
	transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.enigma-section-cta svg {
	display: block;
	flex: 0 0 auto;
	transition: transform 220ms ease;
}

.enigma-section-cta:hover svg {
	transform: translateX(3px);
}

.enigma-section-cta--ghost {
	border-color: var(--e-l3);
	color: var(--e-text);
}

.enigma-section-cta--ghost:hover {
	border-color: var(--e-accent);
	color: var(--e-accent);
}

.enigma-section-cta--primary {
	background: var(--e-accent);
	color: var(--e-on-accent);
	border-color: var(--e-accent);
}

.enigma-section-cta--primary:hover {
	background: var(--e-accent-hover, #4FBCE8);
	color: var(--e-on-accent);
}

/* On the light and accent surfaces the outline button needs its own ink. */
.enigma-section--inverted .enigma-section-cta--ghost {
	border-color: rgba(64, 64, 65, .24);
	color: var(--e-ink);
}

.enigma-section--accent .enigma-section-cta--ghost {
	border-color: rgba(14, 14, 15, .32);
	color: var(--e-on-accent);
}

.enigma-section--accent .enigma-section-cta--ghost:hover {
	background: var(--e-bg);
	border-color: var(--e-bg);
	color: var(--e-accent);
}

.enigma-section--accent .enigma-section-cta--primary {
	background: var(--e-bg);
	border-color: var(--e-bg);
	color: var(--e-accent);
}

@media (prefers-reduced-motion: reduce) {
	.enigma-section-cta,
	.enigma-section-cta svg {
		transition: none;
	}

	.enigma-section-cta:hover svg {
		transform: none;
	}
}

/* The button sits at container level in some sections. Those containers are grids, so
   without this it becomes a grid item and lands in whichever cell comes next — under the
   photo rather than under the copy. */
.enigma-container > .enigma-section-cta {
	grid-column: 1 / -1;
	justify-self: start;
}
