/* ==========================================================================
   Elixerra — layout, motion and micro-interactions
   --------------------------------------------------------------------------
   Written with logical properties (inline-start/end rather than left/right)
   so the Arabic version mirrors without a separate stylesheet.
   Modern features are wrapped in @supports and every animation is disabled
   under prefers-reduced-motion.
   ========================================================================== */

:root {
	--ex-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ex-ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
	--ex-spring: cubic-bezier(0.34, 1.32, 0.64, 1);
	--ex-header-h: 84px;
	--ex-rule: 1px solid rgba(42, 16, 48, 0.12);
	--ex-rule-light: 1px solid rgba(243, 236, 224, 0.18);
	--ex-shadow-lift: 0 10px 24px rgba(42, 16, 48, 0.1), 0 28px 60px rgba(42, 16, 48, 0.12);
}

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-block-start: calc(var(--ex-header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
}

body {
	overflow-x: clip;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--aubergine-deep);
}

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

/* Headings read better when the last line is not a single orphan word. */
h1, h2, h3,
.wp-block-heading {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

/* Long-form copy stays inside a comfortable measure. */
.ex-prose > p,
.ex-prose > ul,
.ex-prose > ol {
	max-width: 68ch;
}

/* Accessible focus everywhere, without the default browser ring on mouse. */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
	border-radius: 2px;
}

.skip-link {
	position: absolute;
	inset-inline-start: 1rem;
	inset-block-start: -100px;
	z-index: 999;
	padding: 0.85rem 1.4rem;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0 0 4px 4px;
	transition: inset-block-start 0.25s var(--ex-ease);
}

.skip-link:focus {
	inset-block-start: 0;
}

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

/* --------------------------------------------------------------------------
   2. Header
   -------------------------------------------------------------------------- */

.ex-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 100;
	transition: background-color 0.45s var(--ex-ease), box-shadow 0.45s var(--ex-ease),
		padding 0.35s var(--ex-ease), backdrop-filter 0.45s var(--ex-ease);
}

/* Over a dark hero the bar starts transparent and gains a surface on scroll. */
.ex-header.is-over-hero:not(.is-scrolled) {
	background-color: transparent !important;
	box-shadow: none;
}

.ex-header.is-scrolled {
	background-color: rgba(24, 8, 16, 0.86) !important;
	box-shadow: 0 8px 30px rgba(15, 5, 15, 0.28);
	padding-block: 0.55rem;
}

@supports (backdrop-filter: blur(1px)) {
	.ex-header.is-scrolled {
		background-color: rgba(24, 8, 16, 0.68) !important;
		backdrop-filter: blur(14px) saturate(140%);
	}
}

/* A hairline that draws itself as the visitor scrolls the page. */
.ex-header::after {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	height: 1px;
	width: 100%;
	background: linear-gradient(90deg, var(--wp--preset--color--gold), rgba(201, 162, 75, 0.05));
	transform: scaleX(var(--ex-progress, 0));
	transform-origin: inline-start;
	opacity: 0.9;
}

/* Navigation links: gold underline grows from the start edge. */
.ex-header .wp-block-navigation-item > a {
	position: relative;
	font-size: 0.78rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding-block: 0.4rem;
}

.ex-header .wp-block-navigation-item > a::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-end: 0;
	width: 100%;
	height: 1px;
	background: var(--wp--preset--color--gold);
	transform: scaleX(0);
	transform-origin: inline-start;
	transition: transform 0.4s var(--ex-ease);
}

.ex-header .wp-block-navigation-item:hover > a::after,
.ex-header .wp-block-navigation-item.current-menu-item > a::after,
.ex-header .wp-block-navigation-item.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

/* Submenus: a panel that lifts in rather than snapping. */
.ex-header .wp-block-navigation__submenu-container {
	min-width: 15rem;
	padding: 0.6rem 0;
	border: 1px solid rgba(201, 162, 75, 0.22) !important;
	border-radius: 4px;
	background: rgba(24, 8, 16, 0.96) !important;
	box-shadow: 0 24px 60px rgba(14, 6, 15, 0.44);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.32s var(--ex-ease), transform 0.32s var(--ex-ease);
}

@supports (backdrop-filter: blur(1px)) {
	.ex-header .wp-block-navigation__submenu-container {
		background: rgba(24, 8, 16, 0.82) !important;
		backdrop-filter: blur(18px);
	}
}

.ex-header .wp-block-navigation-item:hover > .wp-block-navigation__submenu-container,
.ex-header .wp-block-navigation-item:focus-within > .wp-block-navigation__submenu-container {
	opacity: 1;
	transform: translateY(0);
}

.ex-header .wp-block-navigation__submenu-container .wp-block-navigation-item > a {
	padding: 0.6rem 1.3rem;
	font-size: 0.76rem;
	letter-spacing: 0.1em;
	width: 100%;
}

.ex-header .wp-block-navigation__submenu-container .wp-block-navigation-item > a::after {
	display: none;
}

.ex-header .wp-block-navigation__submenu-container .wp-block-navigation-item > a:hover {
	color: var(--wp--preset--color--gold) !important;
	background: rgba(201, 162, 75, 0.08);
}

/* Mobile drawer */
.ex-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.6rem;
	background: var(--wp--preset--color--aubergine-deep) !important;
}

.ex-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a {
	font-size: 1rem;
	letter-spacing: 0.08em;
}

.ex-header .wp-block-navigation__responsive-container-open,
.ex-header .wp-block-navigation__responsive-container-close {
	transition: transform 0.3s var(--ex-spring), color 0.3s ease;
}

.ex-header .wp-block-navigation__responsive-container-open:hover,
.ex-header .wp-block-navigation__responsive-container-close:hover {
	color: var(--wp--preset--color--gold);
	transform: scale(1.12);
}

/* Header utility row: language switcher + CTA */
.ex-header-utils {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */

.wp-block-button__link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.38s var(--ex-ease), box-shadow 0.38s var(--ex-ease),
		color 0.38s var(--ex-ease), background-color 0.38s var(--ex-ease),
		border-color 0.38s var(--ex-ease);
}

/* A soft sheen sweeps across on hover. */
.wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
	transform: translateX(-120%);
	transition: transform 0.75s var(--ex-ease);
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(201, 162, 75, 0.32);
}

.wp-block-button__link:hover::before {
	transform: translateX(120%);
}

.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--gold) !important;
	color: var(--wp--preset--color--aubergine-deep) !important;
	border-color: var(--wp--preset--color--gold) !important;
}

/* --------------------------------------------------------------------------
   4. Reveal on scroll
   -------------------------------------------------------------------------- */

.ex-reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.95s var(--ex-ease), transform 0.95s var(--ex-ease);
	transition-delay: var(--ex-delay, 0s);
	will-change: opacity, transform;
}

.ex-reveal.is-visible {
	opacity: 1;
	transform: none;
}

.ex-reveal--start { transform: translateX(-34px) translateY(0); }
.ex-reveal--end   { transform: translateX(34px) translateY(0); }
.ex-reveal--scale { transform: scale(0.94); }
.ex-reveal--mask  { opacity: 1; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ex-ease); }
.ex-reveal--mask.is-visible { clip-path: inset(0 0 0 0); }

/* Children stagger in one after another. */
.ex-stagger > * {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.85s var(--ex-ease), transform 0.85s var(--ex-ease);
}

.ex-stagger.is-visible > * {
	opacity: 1;
	transform: none;
}

.ex-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.ex-stagger.is-visible > *:nth-child(2) { transition-delay: 0.16s; }
.ex-stagger.is-visible > *:nth-child(3) { transition-delay: 0.27s; }
.ex-stagger.is-visible > *:nth-child(4) { transition-delay: 0.38s; }
.ex-stagger.is-visible > *:nth-child(5) { transition-delay: 0.49s; }
.ex-stagger.is-visible > *:nth-child(6) { transition-delay: 0.6s; }

/* Word-by-word reveal for display headings; the JS wraps each word. */
.ex-split .ex-word {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
}

.ex-split .ex-word > span {
	display: inline-block;
	transform: translateY(105%);
	transition: transform 0.9s var(--ex-ease);
	transition-delay: calc(var(--ex-i, 0) * 0.055s);
}

.ex-split.is-visible .ex-word > span {
	transform: none;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.ex-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: min(92svh, 900px);
	overflow: clip;
	isolation: isolate;
	color: var(--wp--preset--color--ivory);
	background-color: var(--wp--preset--color--aubergine-deep);
}

/* The sticky header takes space in the flow, which would leave a band of page
   background above the photo. Pulling the first hero up by the header height
   lets the bar sit over the image instead — the intended full-bleed look.
   The hero's own top padding already clears the bar. */
/* post-content wraps page content in .entry-content, so the hero is not a
   direct child of <main>; match the first hero wherever it sits. */
main .ex-hero:first-child,
main .ex-page-hero:first-child {
	margin-block-start: calc(-1 * var(--ex-header-h, 84px));
}

/* Lift the content above the scrim — but never the photo layer itself, which
   must stay absolutely positioned behind everything. */
.ex-hero > *:not(.ex-hero-media) {
	position: relative;
	z-index: 2;
}

/* The background photo lives in its own layer so it can drift on scroll. */
.ex-hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
	overflow: hidden;
}

/* The image block adds its own figure wrappers; they all have to fill the
   layer, otherwise the photo sits at its intrinsic size and the section
   background shows through above and below it. */
.ex-hero-media,
.ex-hero-media > .wp-block-image,
.ex-hero-media figure {
	/* core styles the image figure as display:table, which shrink-wraps to the
	   intrinsic width and leaves the section background showing at the edges. */
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
}

.ex-hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transform: scale(1.08);
	transition: transform 2.4s var(--ex-ease);
	filter: saturate(0.92) contrast(1.05);
}

.ex-hero.is-visible .ex-hero-media img {
	transform: scale(1);
}

/* Two-stop scrim: readable text at the start edge, photo visible at the end.
   linear-gradient() takes no logical direction keyword, so the horizontal pass
   is written physically and mirrored for RTL further down. */
.ex-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(to top, rgba(14, 6, 15, 0.95) 0%, rgba(14, 6, 15, 0.62) 46%, rgba(14, 6, 15, 0.22) 82%),
		linear-gradient(to right, rgba(14, 6, 15, 0.9) 0%, rgba(14, 6, 15, 0.62) 48%, rgba(14, 6, 15, 0.22) 100%);
	pointer-events: none;
}

[dir="rtl"] .ex-hero::before {
	background:
		linear-gradient(to top, rgba(14, 6, 15, 0.95) 0%, rgba(14, 6, 15, 0.62) 46%, rgba(14, 6, 15, 0.22) 82%),
		linear-gradient(to left, rgba(14, 6, 15, 0.9) 0%, rgba(14, 6, 15, 0.62) 48%, rgba(14, 6, 15, 0.22) 100%);
}

/* A slow gold bloom that keeps the dark area from going flat. */
.ex-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(58% 58% at 78% 26%, rgba(201, 162, 75, 0.2), transparent 72%);
	pointer-events: none;
	animation: ex-bloom 14s var(--ex-ease-inout) infinite alternate;
}

@keyframes ex-bloom {
	from { opacity: 0.5; transform: translate3d(0, 0, 0) scale(1); }
	to   { opacity: 1;   transform: translate3d(-3%, 2%, 0) scale(1.12); }
}

.ex-hero-inner {
	padding-block: clamp(6rem, 12vh, 10rem) clamp(3.5rem, 8vh, 6rem);
}

.ex-hero h1 {
	margin-block: 0.35em 0.6em;
	font-size: var(--wp--preset--font-size--display);
	font-weight: 400;
	letter-spacing: -0.02em;
}

.ex-hero .ex-lead {
	max-width: 46ch;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 300;
	color: rgba(243, 236, 224, 0.86);
}

/* Scroll cue */
.ex-scroll-cue {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-block-start: clamp(2rem, 5vh, 3.5rem);
	font-size: 0.68rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgba(243, 236, 224, 0.6);
	text-decoration: none;
}

.ex-scroll-cue::after {
	content: "";
	width: 46px;
	height: 1px;
	background: linear-gradient(90deg, var(--wp--preset--color--gold), transparent);
	animation: ex-cue 2.4s var(--ex-ease-inout) infinite;
}

@keyframes ex-cue {
	0%, 100% { transform: scaleX(0.4); transform-origin: inline-start; opacity: 0.5; }
	50%      { transform: scaleX(1);   transform-origin: inline-start; opacity: 1; }
}

/* Inner-page header: shorter, same language as the hero. */
.ex-page-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: min(58svh, 560px);
	overflow: clip;
	isolation: isolate;
	color: var(--wp--preset--color--ivory);
	background-color: var(--wp--preset--color--aubergine);
}

.ex-page-hero > *:not(.ex-hero-media) { position: relative; z-index: 2; }

.ex-page-hero .ex-hero-media img {
	transform: scale(1.05);
	filter: saturate(0.85) contrast(1.04) brightness(0.95);
}

.ex-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(14, 6, 15, 0.92) 0%, rgba(14, 6, 15, 0.52) 55%, rgba(14, 6, 15, 0.2) 100%);
}

.ex-page-hero h1 {
	margin-block: 0.3em 0;
	font-weight: 400;
}

.ex-page-hero .elx-crumbs {
	margin-block-end: 1.4rem;
	color: rgba(243, 236, 224, 0.72);
}

/* --------------------------------------------------------------------------
   6. Eyebrow, divider, badge
   -------------------------------------------------------------------------- */

.ex-eyebrow,
.is-style-elixerra-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.85em;
	margin-block-end: 1.1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

.ex-eyebrow::before,
.is-style-elixerra-eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 36px;
	height: 1px;
	background: currentColor;
	opacity: 0.75;
}

.is-style-elixerra-lead {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 300;
	line-height: 1.55;
	max-width: 52ch;
	color: color-mix(in srgb, currentColor 88%, transparent);
}

.ex-badge,
.is-style-elixerra-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.5em 1.1em;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--gold) 45%, transparent);
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

.ex-divider,
.is-style-elixerra-sprig {
	position: relative;
	border: 0;
	height: 1px;
	background: none;
	margin-block: clamp(2.5rem, 6vw, 4.5rem);
	overflow: visible;
}

.ex-divider::before,
.is-style-elixerra-sprig::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--wp--preset--color--gold) 55%, transparent) 50%, transparent);
}

.ex-divider::after,
.is-style-elixerra-sprig::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	width: 9px;
	height: 9px;
	translate: -50% -50%;
	rotate: 45deg;
	background: var(--wp--preset--color--gold);
}

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */

.ex-section {
	position: relative;
	padding-block: var(--wp--preset--spacing--60);
}

.ex-section--tight { padding-block: var(--wp--preset--spacing--50); }
.ex-section--tall  { padding-block: var(--wp--preset--spacing--70); }

/* Dark sections invert heading and link colours automatically. */
.ex-invert h1, .ex-invert h2, .ex-invert h3, .ex-invert h4,
.ex-invert .wp-block-heading,
.has-aubergine-background-color h2,
.has-aubergine-deep-background-color h2,
.has-ink-background-color h2,
.has-aubergine-depth-gradient-background h2,
.has-aubergine-night-gradient-background h2 {
	color: var(--wp--preset--color--ivory);
}

.ex-invert p {
	color: rgba(243, 236, 224, 0.82);
}

/* A hairline that separates stacked light sections. */
.ex-ruled + .ex-ruled::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 8%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(201, 162, 75, 0.36), transparent);
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */

.ex-card,
.is-style-elixerra-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: clip;
	background: rgba(255, 255, 255, 0.66);
	border-radius: 3px;
	transition: transform 0.5s var(--ex-ease), box-shadow 0.5s var(--ex-ease),
		background-color 0.5s var(--ex-ease);
}

.ex-card:hover,
.is-style-elixerra-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ex-shadow-lift);
	background: #ffffff;
}

.is-style-elixerra-bordered {
	border-block-start: 2px solid var(--wp--preset--color--gold);
	padding-block-start: clamp(1.4rem, 3vw, 2.2rem);
}

.is-style-elixerra-glass {
	padding: clamp(1.6rem, 4vw, 3rem);
	border: 1px solid rgba(243, 236, 224, 0.2);
	border-radius: 4px;
	background: rgba(24, 8, 16, 0.26);
}

@supports (backdrop-filter: blur(1px)) {
	.is-style-elixerra-glass {
		backdrop-filter: blur(10px) saturate(130%);
	}
}

/* Image inside a card zooms slowly on hover. */
.ex-card figure,
.ex-card .wp-block-image,
.ex-media-zoom {
	overflow: clip;
	margin: 0;
}

.ex-card img,
.ex-media-zoom img {
	display: block;
	width: 100%;
	transition: transform 1s var(--ex-ease), filter 0.6s ease;
}

.ex-card:hover img,
.ex-media-zoom:hover img {
	transform: scale(1.055);
}

.ex-card-body {
	padding: clamp(1.5rem, 3vw, 2.4rem);
}

/* Product card: gold rule that draws in on hover. */
.ex-product {
	position: relative;
}

.ex-product::after {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 2px;
	background: var(--wp--preset--color--gold);
	transform: scaleX(0);
	transform-origin: inline-start;
	transition: transform 0.55s var(--ex-ease);
}

.ex-product:hover::after {
	transform: scaleX(1);
}

/* Columns with vertical hairlines between them. */
.is-style-elixerra-dividers > .wp-block-column + .wp-block-column {
	position: relative;
}

.is-style-elixerra-dividers > .wp-block-column + .wp-block-column::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: calc(var(--wp--style--block-gap, 1.5rem) / -2);
	width: 1px;
	background: linear-gradient(to bottom, transparent, rgba(201, 162, 75, 0.34) 20%, rgba(201, 162, 75, 0.34) 80%, transparent);
}

@media (max-width: 781px) {
	.is-style-elixerra-dividers > .wp-block-column + .wp-block-column::before {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   9. Images: frames and arches
   -------------------------------------------------------------------------- */

.is-style-elixerra-frame img {
	border-radius: 2px;
}

.is-style-elixerra-frame {
	position: relative;
}

.is-style-elixerra-frame::before {
	content: "";
	position: absolute;
	inset: 0;
	translate: 14px 14px;
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: 2px;
	pointer-events: none;
	transition: translate 0.6s var(--ex-ease);
	z-index: -1;
}

.is-style-elixerra-frame:hover::before {
	translate: 8px 8px;
}

/* An arch crop echoes Mediterranean architecture. */
.is-style-elixerra-arch img {
	border-start-start-radius: 50% 22%;
	border-start-end-radius: 50% 22%;
}

/* --------------------------------------------------------------------------
   10. Marquee (certifications, markets)
   -------------------------------------------------------------------------- */

.ex-marquee {
	position: relative;
	overflow: clip;
	padding-block: 1.2rem;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ex-marquee__track {
	display: flex;
	align-items: center;
	gap: clamp(2.5rem, 6vw, 5rem);
	width: max-content;
	animation: ex-marquee 34s linear infinite;
}

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

.ex-marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	white-space: nowrap;
	color: color-mix(in srgb, currentColor 72%, transparent);
}

.ex-marquee__item::before {
	content: "";
	width: 6px;
	height: 6px;
	rotate: 45deg;
	background: var(--wp--preset--color--gold);
}

@keyframes ex-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* In RTL the track must travel the other way. */
[dir="rtl"] .ex-marquee__track {
	animation-name: ex-marquee-rtl;
}

@keyframes ex-marquee-rtl {
	from { transform: translateX(0); }
	to   { transform: translateX(50%); }
}

/* --------------------------------------------------------------------------
   11. Process timeline
   -------------------------------------------------------------------------- */

.ex-timeline {
	position: relative;
	display: grid;
	gap: clamp(2.2rem, 5vw, 3.6rem);
	padding-inline-start: 2.6rem;
}

.ex-timeline::before {
	content: "";
	position: absolute;
	inset-block: 0.6rem 0;
	inset-inline-start: 0.44rem;
	width: 1px;
	background: linear-gradient(to bottom, var(--wp--preset--color--gold), rgba(201, 162, 75, 0.12));
}

.ex-step {
	position: relative;
}

.ex-step::before {
	content: "";
	position: absolute;
	inset-inline-start: -2.6rem;
	inset-block-start: 0.55rem;
	width: 0.95rem;
	height: 0.95rem;
	rotate: 45deg;
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--gold);
	transition: background-color 0.4s var(--ex-ease), scale 0.4s var(--ex-spring);
}

.ex-step.is-visible::before {
	background: var(--wp--preset--color--gold);
	scale: 1.15;
}

.ex-step__index {
	display: block;
	margin-block-end: 0.5rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	color: var(--wp--preset--color--gold);
}

.ex-step h3 {
	margin-block: 0 0.4em;
}

.ex-step p {
	margin: 0;
	max-width: 58ch;
}

.ex-invert .ex-step::before {
	background: var(--wp--preset--color--aubergine-deep);
}

.ex-invert .ex-step.is-visible::before {
	background: var(--wp--preset--color--gold);
}

/* --------------------------------------------------------------------------
   12. Split section (sticky media beside scrolling copy)
   -------------------------------------------------------------------------- */

.ex-split-section {
	display: grid;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

@media (min-width: 900px) {
	.ex-split-section {
		grid-template-columns: 1fr 1fr;
	}
	.ex-split-section__media {
		position: sticky;
		inset-block-start: calc(var(--ex-header-h) + 2rem);
	}
}

.ex-split-section__media img {
	width: 100%;
	border-radius: 2px;
}

/* --------------------------------------------------------------------------
   13. Stats
   -------------------------------------------------------------------------- */

.ex-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: clamp(1.8rem, 4vw, 3.2rem);
}

.ex-stat-number {
	display: inline-block;
	font-family: var(--wp--preset--font-family--heading);
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--gold);
	font-size: clamp(2.1rem, 1.5rem + 2vw, 3.4rem);
	line-height: 1;
}

/* --------------------------------------------------------------------------
   14. Accordion (core/details)
   -------------------------------------------------------------------------- */

.wp-block-details.is-style-elixerra-accordion {
	padding: 0;
	border: 0;
	border-block-end: var(--ex-rule);
}

.wp-block-details.is-style-elixerra-accordion > summary {
	position: relative;
	padding: 1.35rem 3rem 1.35rem 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.12rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--wp--preset--color--aubergine);
	cursor: pointer;
	list-style: none;
	transition: color 0.3s var(--ex-ease);
}

.wp-block-details.is-style-elixerra-accordion > summary::-webkit-details-marker,
.wp-block-details.is-style-elixerra-accordion > summary::marker {
	display: none;
	content: "";
}

.wp-block-details.is-style-elixerra-accordion > summary::after {
	content: "";
	position: absolute;
	inset-inline-end: 0.4rem;
	inset-block-start: 1.65rem;
	width: 0.62rem;
	height: 0.62rem;
	border-right: 1.5px solid var(--wp--preset--color--gold);
	border-bottom: 1.5px solid var(--wp--preset--color--gold);
	rotate: 45deg;
	transition: rotate 0.4s var(--ex-ease), translate 0.4s var(--ex-ease);
}

.wp-block-details.is-style-elixerra-accordion[open] > summary::after {
	rotate: 225deg;
	translate: 0 3px;
}

.wp-block-details.is-style-elixerra-accordion > summary:hover {
	color: var(--wp--preset--color--gold);
}

.wp-block-details.is-style-elixerra-accordion > *:not(summary) {
	padding-block-end: 1.5rem;
	max-width: 68ch;
	animation: ex-accordion 0.5s var(--ex-ease) both;
}

@keyframes ex-accordion {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: none; }
}

.ex-invert .wp-block-details.is-style-elixerra-accordion {
	border-block-end-color: rgba(243, 236, 224, 0.16);
}

.ex-invert .wp-block-details.is-style-elixerra-accordion > summary {
	color: var(--wp--preset--color--ivory);
}

/* --------------------------------------------------------------------------
   15. Lists and tables
   -------------------------------------------------------------------------- */

.is-style-elixerra-checks {
	list-style: none;
	padding-inline-start: 0;
	display: grid;
	gap: 0.85rem;
}

.is-style-elixerra-checks > li {
	position: relative;
	padding-inline-start: 2rem;
}

.is-style-elixerra-checks > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.5em;
	width: 0.62rem;
	height: 0.34rem;
	border-left: 1.5px solid var(--wp--preset--color--gold);
	border-bottom: 1.5px solid var(--wp--preset--color--gold);
	rotate: -45deg;
}

.is-style-elixerra-specs table,
.is-style-elixerra-specs {
	border-collapse: collapse;
	width: 100%;
}

.is-style-elixerra-specs th,
.is-style-elixerra-specs td {
	padding: 0.9rem 1.1rem;
	border: 0;
	border-block-end: var(--ex-rule);
	text-align: start;
	vertical-align: top;
}

.is-style-elixerra-specs th {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	width: 40%;
}

.is-style-elixerra-specs tr:hover td,
.is-style-elixerra-specs tr:hover th {
	background: rgba(201, 162, 75, 0.06);
}

.ex-invert .is-style-elixerra-specs th,
.ex-invert .is-style-elixerra-specs td {
	border-block-end-color: rgba(243, 236, 224, 0.16);
}

/* --------------------------------------------------------------------------
   16. Quotes
   -------------------------------------------------------------------------- */

.wp-block-quote {
	position: relative;
	margin-block: clamp(2rem, 5vw, 3.5rem);
	padding-inline-start: clamp(1.6rem, 4vw, 3rem);
	border-inline-start: 2px solid var(--wp--preset--color--gold);
}

.wp-block-quote cite {
	display: block;
	margin-block-start: 1.1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.78rem;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.ex-footer {
	position: relative;
	overflow: clip;
}

/* A very large, very faint wordmark behind the footer content. */
.ex-footer::before {
	content: "";
	position: absolute;
	inset-block-end: -12%;
	inset-inline-start: 50%;
	translate: -50% 0;
	width: 120%;
	height: 60%;
	background: radial-gradient(50% 60% at 50% 100%, rgba(201, 162, 75, 0.12), transparent 70%);
	pointer-events: none;
}

.ex-footer > * {
	position: relative;
	z-index: 1;
}

.ex-footer a {
	color: var(--wp--preset--color--ivory);
	transition: color 0.3s var(--ex-ease), opacity 0.3s var(--ex-ease);
}

.ex-footer a:hover {
	color: var(--wp--preset--color--gold);
}

.ex-footer h4,
.ex-footer .wp-block-heading {
	color: var(--wp--preset--color--gold);
}

.ex-footer .wp-block-navigation-item > a {
	font-size: 0.88rem;
	opacity: 0.82;
}

.ex-footer .wp-block-navigation-item > a:hover {
	opacity: 1;
}

.ex-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(243, 236, 224, 0.28);
	border-radius: 50%;
	transition: border-color 0.32s var(--ex-ease), transform 0.32s var(--ex-spring),
		background-color 0.32s var(--ex-ease);
}

.ex-social a:hover {
	border-color: var(--wp--preset--color--gold);
	background: rgba(201, 162, 75, 0.14);
	transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   18. Long-form page body
   -------------------------------------------------------------------------- */

.ex-page-content {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.ex-page-content > * + * {
	margin-block-start: 1.4em;
}

.ex-page-content h2 {
	margin-block-start: clamp(2.6rem, 6vw, 4rem);
}

.ex-page-content h3 {
	margin-block-start: clamp(1.8rem, 4vw, 2.6rem);
}

.ex-page-content figure {
	margin-block: clamp(2.4rem, 6vw, 4rem);
}

.ex-page-content figure img {
	width: 100%;
	border-radius: 2px;
}

.ex-page-content figcaption {
	margin-block-start: 0.85rem;
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted);
	text-align: start;
}

/* --------------------------------------------------------------------------
   19. Back-to-top
   -------------------------------------------------------------------------- */

.ex-to-top {
	position: fixed;
	inset-inline-end: clamp(1rem, 3vw, 2.2rem);
	inset-block-end: clamp(1rem, 3vw, 2.2rem);
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(201, 162, 75, 0.5);
	border-radius: 50%;
	background: rgba(24, 8, 16, 0.72);
	color: var(--wp--preset--color--gold);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	translate: 0 12px;
	transition: opacity 0.4s var(--ex-ease), translate 0.4s var(--ex-ease),
		visibility 0.4s, background-color 0.3s ease;
}

@supports (backdrop-filter: blur(1px)) {
	.ex-to-top { backdrop-filter: blur(10px); }
}

.ex-to-top.is-shown {
	opacity: 1;
	visibility: visible;
	translate: 0;
}

.ex-to-top:hover {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
}

.ex-to-top svg {
	width: 16px;
	height: 16px;
}

/* --------------------------------------------------------------------------
   20. Navigation (elixerra/nav block)
   -------------------------------------------------------------------------- */

.ex-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ex-nav--vertical .ex-nav__list {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.7rem;
}

.ex-nav__list li {
	position: relative;
	margin: 0;
}

.ex-nav__link {
	position: relative;
	display: inline-block;
	padding-block: 0.5rem;
	font-size: 0.78rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
	transition: color 0.3s var(--ex-ease);
}

.ex-nav__link::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-end: 0;
	width: 100%;
	height: 1px;
	background: var(--wp--preset--color--gold);
	transform: scaleX(0);
	transform-origin: inline-start;
	transition: transform 0.4s var(--ex-ease);
}

.ex-nav__list > li:hover > .ex-nav__link::after,
.ex-nav__list > li:focus-within > .ex-nav__link::after,
.ex-nav__list > li.current-menu-item > .ex-nav__link::after,
.ex-nav__list > li.current-menu-ancestor > .ex-nav__link::after,
.ex-nav__list > li.current-menu-parent > .ex-nav__link::after {
	transform: scaleX(1);
}

.ex-nav__link:hover {
	color: var(--wp--preset--color--gold);
}

/* Parent items get a small chevron. */
.ex-nav--horizontal .ex-nav__link--parent {
	padding-inline-end: 1.05rem;
}

.ex-nav--horizontal .ex-nav__link--parent::before {
	content: "";
	position: absolute;
	inset-inline-end: 0;
	inset-block-start: calc(50% - 3px);
	width: 5px;
	height: 5px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	rotate: 45deg;
	opacity: 0.6;
	transition: rotate 0.35s var(--ex-ease), opacity 0.3s ease;
}

[dir="rtl"] .ex-nav--horizontal .ex-nav__link--parent::before {
	border-right: 0;
	border-left: 1px solid currentColor;
	rotate: -45deg;
}

.ex-nav__list > li:hover > .ex-nav__link--parent::before,
.ex-nav__list > li:focus-within > .ex-nav__link--parent::before {
	rotate: 225deg;
	opacity: 1;
}

/* Dropdown panel */
.ex-nav__submenu {
	position: absolute;
	inset-block-start: calc(100% + 0.55rem);
	inset-inline-start: -1.1rem;
	z-index: 20;
	min-width: 15.5rem;
	margin: 0;
	padding: 0.55rem 0;
	list-style: none;
	border: 1px solid rgba(201, 162, 75, 0.24);
	border-radius: 4px;
	background: rgba(24, 8, 16, 0.97);
	box-shadow: 0 24px 60px rgba(14, 6, 15, 0.46);
	opacity: 0;
	visibility: hidden;
	translate: 0 10px;
	transition: opacity 0.32s var(--ex-ease), translate 0.32s var(--ex-ease), visibility 0.32s;
}

@supports (backdrop-filter: blur(1px)) {
	.ex-nav__submenu {
		background: rgba(24, 8, 16, 0.84);
		backdrop-filter: blur(18px) saturate(140%);
	}
}

.ex-nav__list > li:hover > .ex-nav__submenu,
.ex-nav__list > li:focus-within > .ex-nav__submenu,
.ex-nav__list > li.is-open > .ex-nav__submenu {
	opacity: 1;
	visibility: visible;
	translate: 0;
}

.ex-nav__submenu .ex-nav__link {
	display: block;
	width: 100%;
	padding: 0.62rem 1.35rem;
	font-size: 0.76rem;
	letter-spacing: 0.1em;
	white-space: normal;
	color: rgba(243, 236, 224, 0.86);
}

.ex-nav__submenu .ex-nav__link::after {
	display: none;
}

.ex-nav__submenu .ex-nav__link:hover,
.ex-nav__submenu li.current-menu-item > .ex-nav__link {
	color: var(--wp--preset--color--gold);
	background: rgba(201, 162, 75, 0.09);
}

/* Footer menus: quieter, stacked. */
.ex-nav--footer-explore .ex-nav__list,
.ex-nav--footer-info .ex-nav__list,
.ex-nav--legal .ex-nav__list {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.62rem;
}

.ex-nav--footer-explore .ex-nav__link,
.ex-nav--footer-info .ex-nav__link,
.ex-nav--legal .ex-nav__link {
	font-size: 0.84rem;
	letter-spacing: 0.03em;
	text-transform: none;
	opacity: 0.82;
	padding-block: 0.1rem;
}

.ex-nav--legal .ex-nav__list {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
}

.ex-nav--legal .ex-nav__link {
	font-size: 0.78rem;
	opacity: 0.66;
}

/* Mobile toggle */
.ex-nav__toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.ex-nav__bars {
	position: absolute;
	inset: 50% auto auto 50%;
	translate: -50% -50%;
	width: 24px;
	height: 12px;
}

.ex-nav__bars span {
	position: absolute;
	inset-inline: 0;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.4s var(--ex-ease), opacity 0.3s ease;
}

.ex-nav__bars span:first-child { inset-block-start: 0; }
.ex-nav__bars span:last-child  { inset-block-end: 0; }

.ex-nav__toggle[aria-expanded="true"] .ex-nav__bars span:first-child {
	transform: translateY(5px) rotate(45deg);
}

.ex-nav__toggle[aria-expanded="true"] .ex-nav__bars span:last-child {
	transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 1023px) {
	.ex-nav--primary .ex-nav__toggle {
		display: block;
	}

	.ex-nav--primary .ex-nav__panel {
		position: fixed;
		inset-block-start: var(--ex-header-h);
		inset-inline: 0;
		inset-block-end: 0;
		z-index: 99;
		padding: 2rem clamp(1.25rem, 5vw, 3rem) 3rem;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--wp--preset--color--aubergine-deep);
		opacity: 0;
		visibility: hidden;
		translate: 0 -1rem;
		transition: opacity 0.4s var(--ex-ease), translate 0.4s var(--ex-ease), visibility 0.4s;
	}

	.ex-nav--primary.is-open .ex-nav__panel {
		opacity: 1;
		visibility: visible;
		translate: 0;
	}

	.ex-nav--primary .ex-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ex-nav--primary .ex-nav__list > li {
		border-block-end: 1px solid rgba(243, 236, 224, 0.1);
	}

	.ex-nav--primary .ex-nav__list > li > .ex-nav__link {
		display: block;
		padding-block: 1.05rem;
		font-size: 0.95rem;
		letter-spacing: 0.08em;
	}

	.ex-nav--primary .ex-nav__link::after {
		display: none;
	}

	/* Submenus become inline disclosures on small screens. */
	.ex-nav--primary .ex-nav__submenu {
		position: static;
		min-width: 0;
		padding: 0 0 0.9rem;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		translate: 0;
		display: none;
	}

	@supports (backdrop-filter: blur(1px)) {
		.ex-nav--primary .ex-nav__submenu { backdrop-filter: none; }
	}

	.ex-nav--primary .ex-nav__list > li.is-open > .ex-nav__submenu {
		display: block;
		animation: ex-accordion 0.4s var(--ex-ease) both;
	}

	.ex-nav--primary .ex-nav__submenu .ex-nav__link {
		padding: 0.55rem 0 0.55rem 1.1rem;
		font-size: 0.86rem;
	}

	.ex-nav--horizontal .ex-nav__link--parent::before {
		inset-inline-end: 0.35rem;
		inset-block-start: 1.3rem;
		width: 7px;
		height: 7px;
	}
}

/* The header call-to-action is a one-item menu, so its label and its target
   are translated per language like any other menu. */
.ex-nav--header-cta .ex-nav__list {
	gap: 0;
}

.ex-nav--header-cta .ex-nav__link {
	padding: 0.95rem 1.9rem;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--wp--preset--color--aubergine-deep);
	background: var(--wp--preset--color--gold);
	border-radius: 999px;
	overflow: hidden;
	transition: transform 0.35s var(--ex-ease), box-shadow 0.35s var(--ex-ease),
		background-color 0.35s var(--ex-ease);
}

.ex-nav--header-cta .ex-nav__link::after {
	display: none;
}

.ex-nav--header-cta .ex-nav__link:hover {
	color: var(--wp--preset--color--aubergine-deep);
	background: var(--wp--preset--color--gold-light);
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(201, 162, 75, 0.34);
}

@media (max-width: 767px) {
	.ex-nav--header-cta {
		display: none;
	}
}

.ex-nav-empty {
	margin: 0;
	font-size: 0.8rem;
	opacity: 0.7;
}

/* Prevent the page behind the mobile drawer from scrolling. */
body.ex-nav-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   21. Reduced motion & print
   -------------------------------------------------------------------------- */

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

	.ex-reveal,
	.ex-stagger > *,
	.ex-split .ex-word > span {
		opacity: 1 !important;
		transform: none !important;
		clip-path: none !important;
		transition: none !important;
	}

	.ex-hero::after,
	.ex-scroll-cue::after,
	.ex-marquee__track {
		animation: none !important;
	}

	.ex-hero-media img { transform: none; }

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

@media print {
	.ex-header,
	.ex-footer,
	.ex-to-top,
	.elx-form-wrap,
	.ex-scroll-cue {
		display: none !important;
	}

	.ex-hero,
	.ex-page-hero {
		min-height: auto;
		color: #000;
		background: none;
	}

	.ex-hero::before,
	.ex-hero::after,
	.ex-page-hero::before {
		display: none;
	}

	.ex-reveal,
	.ex-stagger > * {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* --------------------------------------------------------------------------
   22. Late corrections
   -------------------------------------------------------------------------- */

/* Inner-page heroes are shorter than the home hero, so they need explicit
   clearance for the overlaying header bar. */
main .ex-page-hero:first-child {
	padding-block-start: calc(var(--ex-header-h, 84px) + var(--wp--preset--spacing--60));
}

/* The marquee sits on the darkest surface of the site; keep it legible. */
.ex-invert .ex-marquee__item,
.has-aubergine-deep-background-color .ex-marquee__item {
	color: rgba(243, 236, 224, 0.78);
}

/* The brand mark must stay readable while the header is transparent over a
   photograph. */
.ex-header .elx-brand__name {
	color: var(--wp--preset--color--ivory);
	text-shadow: 0 1px 12px rgba(14, 6, 15, 0.5);
}

.ex-header.is-scrolled .elx-brand__name {
	text-shadow: none;
}

/* Language codes need the same treatment. */
.ex-header .elx-lang:not(.is-current) {
	color: rgba(243, 236, 224, 0.72);
}
