/* ==========================================================================
   Hemmah Arabia — direction C "Cinematic"
   Logical properties throughout so Arabic (RTL) mirrors automatically.
   ========================================================================== */

:root {
	--h-ink: #0B0F1E;
	--h-ink-2: #0E1428;
	--h-navy: #111830;
	--h-navy-2: #141C36;
	--h-navy-3: #151B33;
	--h-navy-4: #1A2442;
	--h-gold: #C9A24A;
	--h-gold-dk: #B08A30;
	--h-gold-ink: #7A5C17;
	--h-cream: #F3EFE7;
	--h-sand: #E8DFD3;
	--h-sand-line: #CDC2B2;
	--h-grey-1: #DCDFE7;
	--h-grey-2: #C4C9D6;
	--h-grey-3: #AEB4C4;
	--h-grey-4: #8D93A6;
	--h-grey-5: #5B6274;
	--h-ink-text: #3E4763;
	--h-err: #F0A493;
	--h-err-dk: #A33A2B;
	--h-line: rgba(243, 239, 231, .14);

	--h-px: clamp(20px, 4vw, 56px);
	--h-py: clamp(90px, 14vh, 160px);
	--h-ease: cubic-bezier(.16, .84, .24, 1);
	--h-tight: -0.035em;
	--h-track: .18em;
	--h-font: 'Hanken Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

[dir="rtl"] {
	--h-tight: 0;
	--h-track: 0;
	--h-font: 'IBM Plex Sans Arabic', 'Hanken Grotesk', system-ui, sans-serif;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body.hemmah {
	margin: 0;
	background: var(--h-ink);
	color: var(--h-cream);
	font-family: var(--h-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

body.single-projects { background: var(--h-navy); }

.hemmah *, .hemmah *::before, .hemmah *::after { box-sizing: border-box; }
.hemmah img { max-width: 100%; height: auto; }
.hemmah a { color: var(--h-gold); text-decoration: none; transition: color .3s, background .3s, border-color .3s; }
.hemmah a:hover { color: var(--h-cream); }
.hemmah ::selection { background: var(--h-gold); color: var(--h-ink); }
.hemmah input, .hemmah select, .hemmah button, .hemmah textarea { font: inherit; }
.hemmah h1, .hemmah h2, .hemmah h3, .hemmah p { margin: 0; }

.h-skip {
	position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
	padding: 10px 16px; border-radius: 999px; background: var(--h-gold); color: var(--h-ink) !important;
}
.h-skip:focus { top: 16px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.h-cover { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.h-wrap { max-width: 1360px; margin: 0 auto; }

/* Elementor: Hemmah sections are full-bleed */
.e-con.h-flush { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; }
.e-con > .elementor-widget[class*="elementor-widget-hemmah-"] { width: 100%; max-width: 100%; }

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

.h-eyebrow {
	display: flex; align-items: center; gap: 16px;
	font-size: 12px; letter-spacing: var(--h-track); text-transform: uppercase; color: var(--h-gold);
	margin-bottom: 20px;
}
.h-rule { display: inline-block; width: 48px; height: 1px; background: var(--h-gold); }
.h-rule--grey { width: 56px; background: var(--h-grey-4); }

.h-display { font-size: clamp(44px, 6vw, 104px); font-weight: 200; line-height: .98; letter-spacing: var(--h-tight); }
.h-heading { font-size: clamp(36px, 4.4vw, 64px); font-weight: 300; line-height: 1.08; letter-spacing: var(--h-tight); }
.h-lede { font-size: 18px; line-height: 1.65; color: var(--h-grey-2); text-wrap: pretty; }

.h-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 14px; border-radius: 999px; font-size: 12px; border: 1px solid var(--h-gold);
	color: var(--h-gold); background: rgba(11, 15, 30, .5); white-space: nowrap;
}
.h-chip--available { background: var(--h-gold); color: var(--h-ink); }
.h-chip--sold { color: var(--h-grey-2); border-color: rgba(196, 201, 214, .5); }
.h-chip--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.h-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 14px;
	padding: 14px 22px; border-radius: 999px; font-size: 14px; border: 1px solid transparent; cursor: pointer;
}
.hemmah .h-btn--cream { background: var(--h-cream); color: var(--h-ink); font-weight: 500; }
.hemmah .h-btn--cream:hover { background: var(--h-gold); color: var(--h-ink); }
.hemmah .h-btn--gold { background: var(--h-gold); color: var(--h-navy); font-weight: 600; }
.hemmah .h-btn--gold:hover { background: var(--h-cream); color: var(--h-navy); }
.hemmah .h-btn--line { border-color: rgba(243, 239, 231, .3); color: var(--h-cream); }
.hemmah .h-btn--line:hover { border-color: var(--h-gold); color: var(--h-gold); }
.hemmah .h-btn--glass {
	padding: 16px 24px; font-size: 15px; color: var(--h-cream);
	background: rgba(243, 239, 231, .1); border-color: rgba(243, 239, 231, .25);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hemmah .h-btn--glass:hover { background: var(--h-gold); border-color: var(--h-gold); color: var(--h-ink); }
.h-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.hemmah .h-underline {
	display: inline-flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--h-gold);
	color: var(--h-gold); font-size: 15px;
}
.hemmah .h-underline:hover { color: var(--h-cream); }

.h-link {
	background: none; border: 0; padding: 0; cursor: pointer; color: var(--h-gold); font-size: 14px;
	text-decoration: underline; text-underline-offset: 4px;
}

.h-round {
	width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(243, 239, 231, .25);
	background: transparent; color: var(--h-cream); cursor: pointer; font-size: 18px; transition: all .3s;
}
.h-round:hover { border-color: var(--h-gold); color: var(--h-gold); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */

.h-js [data-reveal] {
	transition: opacity 1.1s var(--h-ease), transform 1.1s var(--h-ease), clip-path 1.5s var(--h-ease);
	transition-delay: var(--d, 0ms);
}
.h-js [data-reveal="up"]:not(.is-in) { opacity: 0; transform: translateY(48px); }
.h-js [data-reveal="fade"]:not(.is-in) { opacity: 0; }
.h-js [data-reveal="mask"]:not(.is-in) { clip-path: inset(0 0 100% 0); }
.h-js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
	.h-js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */

.h-header {
	position: fixed; inset-inline: 0; top: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 20px var(--h-px);
	transition: background .5s, padding .5s;
}
.admin-bar .h-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .h-header { top: 0; } }
.h-header.is-scrolled, .h-header.is-open {
	background: rgba(11, 15, 30, .85);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	padding-block: 10px;
}
.h-header__start { display: flex; align-items: center; gap: 28px; }
.h-header__logo { display: flex; }
.h-header__logo img { height: 56px; width: auto; transition: height .5s; }
.h-header.is-scrolled .h-header__logo img { height: 46px; }
.hemmah .h-header__crumb { display: flex; gap: 10px; font-size: 14px; color: var(--h-grey-2); }
.hemmah .h-header__crumb:hover { color: var(--h-gold); }

.h-header__nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); font-size: 14px; }
.h-menu { display: flex; gap: clamp(14px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.hemmah .h-menu a { color: var(--h-cream); }
.hemmah .h-menu a:hover, .hemmah .h-menu .current-menu-item > a { color: var(--h-gold); }
.hemmah .h-header__lang { color: var(--h-gold); padding: 8px 4px; }
.hemmah .h-header__lang:hover { color: var(--h-cream); }
.h-header__cta { padding: 12px 20px; }

.h-header__toggle {
	display: none; width: 44px; height: 44px; border: 1px solid rgba(243, 239, 231, .25); border-radius: 50%;
	background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.h-header__toggle span:not(.screen-reader-text) { display: block; width: 16px; height: 1.5px; background: var(--h-cream); transition: transform .3s; }
.h-header.is-open .h-header__toggle span:nth-of-type(2) { transform: translateY(3.25px) rotate(45deg); }
.h-header.is-open .h-header__toggle span:nth-of-type(3) { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 899px) {
	.h-header__crumb { display: none !important; }
	.h-header__logo img { height: 46px; }
	.h-header__toggle { display: flex; order: 3; }
	.h-header { flex-wrap: wrap; }
	.h-header__nav { order: 2; margin-inline-start: auto; gap: 12px; }
	.h-menu {
		display: none; position: absolute; top: 100%; inset-inline: 0;
		flex-direction: column; gap: 0; padding: 8px var(--h-px) 24px;
		background: rgba(11, 15, 30, .96);
	}
	.h-header.is-open .h-menu { display: flex; }
	.h-menu a { display: block; padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--h-line); }
	.h-header__cta { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 359px) {
	.h-header__cta { display: none; }
}
@media (max-width: 420px) {
	.h-header { gap: 10px; }
	.h-header__nav { gap: 10px; }
	.h-header__cta { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
}

/* #links land below the fixed header (pinned scroll sections keep their exact start). */
.hemmah [id]:not(.h-hero):not(.h-story):not(.h-track) { scroll-margin-top: 96px; }

/* ---------- Home hero ---------- */

.h-hero { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; background: var(--h-ink); }
.h-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.h-hero__slide img { transform: scale(1.12); transition: transform 7.5s cubic-bezier(.2, .6, .3, 1); }
.h-hero__slide.is-active { opacity: 1; }
.h-hero__slide.is-active img { transform: scale(1); }
.h-hero__shade {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(11, 15, 30, .7) 0%, rgba(11, 15, 30, .05) 35%, rgba(11, 15, 30, .2) 60%, rgba(11, 15, 30, .96) 100%);
}
.h-hero__tagline {
	position: absolute; inset-inline: 0; top: clamp(110px, 16vh, 150px); padding: 0 var(--h-px);
	font-size: clamp(22px, 2.2vw, 32px); font-weight: 300; line-height: 1.2;
}
.h-hero__tagline span { font-weight: 600; color: var(--h-gold); }
.h-hero__bottom { position: absolute; inset-inline: 0; bottom: 0; padding: 0 var(--h-px) clamp(36px, 6vh, 60px); }
.h-hero__stack { display: grid; }
.h-hero__info {
	grid-area: 1 / 1; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
	opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s;
}
.h-hero__info.is-active { opacity: 1; visibility: visible; transition: opacity .6s; }
.h-hero__text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.h-hero__meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--h-grey-1); flex-wrap: wrap; }
.h-hero__title { font-size: clamp(72px, 13vw, 220px); font-weight: 200; line-height: .85; letter-spacing: var(--h-tight); }
.h-hero__info.is-active .h-hero__title { animation: h-title-in 1.1s var(--h-ease) both; }
@keyframes h-title-in {
	from { opacity: 0; transform: translateY(40px); filter: blur(8px); }
	to { opacity: 1; transform: none; filter: blur(0); }
}
.h-hero__progress { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.h-hero__title { pointer-events: none; } /* big display type must never block the tabs below it */
.h-hero__tab {
	display: flex; flex-direction: column; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer;
	color: var(--h-grey-4); text-align: start; font-size: 13px; transition: color .4s;
}
.h-hero__tab.is-active { color: var(--h-cream); }
.h-hero__bar { display: block; width: 100%; height: 2px; background: rgba(243, 239, 231, .2); overflow: hidden; }
.h-hero__bar span { display: block; height: 100%; width: 0; background: var(--h-gold); }
.h-hero__tab.is-done .h-hero__bar span { width: 100%; }
.h-hero__tab.is-active .h-hero__bar span { animation: h-fill var(--dur, 6.5s) linear forwards; }
@keyframes h-fill { from { width: 0; } to { width: 100%; } }

/* ---------- Scroll-reveal statement ---------- */

.h-story { position: relative; height: 240vh; }
.h-story__sticky {
	position: sticky; top: 0; height: 100vh; display: flex; align-items: center;
	padding: 0 clamp(20px, 6vw, 96px); overflow: hidden;
}
.h-story__mark {
	position: absolute; inset-inline-end: -6vw; top: 50%; width: min(56vw, 720px);
	transform: translateY(-50%); opacity: .05; pointer-events: none;
}
.h-story__inner { position: relative; max-width: 1240px; display: flex; flex-direction: column; gap: 16px; }
.h-story__text { font-size: clamp(28px, 3.8vw, 60px); font-weight: 300; line-height: 1.22; letter-spacing: var(--h-tight); }
.h-word { opacity: .16; transition: opacity .25s, color .25s; }
.h-word.is-on { opacity: 1; }
.h-word.is-on.is-gold { color: var(--h-gold); }
.elementor-editor-active .h-word, .h-nojs .h-word { opacity: 1; }

/* ---------- Horizontal project panels ---------- */

.h-track { position: relative; height: 360vh; }
.h-track__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.h-track__rail { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--h-px); will-change: transform; }
.h-track__intro {
	flex: 0 0 34vw; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-inline-end: 4vw;
}
.h-track__intro .h-eyebrow { margin: 0; }
.h-track__sub { font-size: 17px; line-height: 1.6; color: var(--h-grey-3); max-width: 380px; }
.h-track__hint { display: flex; align-items: center; gap: 12px; color: var(--h-grey-4); font-size: 13px; }
.h-track__bar { position: absolute; inset-inline: var(--h-px); bottom: clamp(20px, 4vh, 40px); height: 1px; background: var(--h-line); }
.h-track__fill { height: 100%; width: 100%; background: var(--h-gold); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .h-track__fill { transform-origin: right; }

.hemmah .h-panel {
	flex: 0 0 min(62vw, 1000px); height: min(76vh, 760px); position: relative; border-radius: 24px; overflow: hidden;
	background: var(--h-navy-3); color: var(--h-cream); display: block;
}
.hemmah .h-panel:hover { color: var(--h-cream); }
.h-panel__img { transition: transform 1.2s var(--h-ease); }
.h-panel:hover .h-panel__img { transform: scale(1.05); }
.h-panel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 15, 30, 0) 40%, rgba(11, 15, 30, .92) 100%); }
.h-panel__top { position: absolute; inset-inline: 0; top: 0; padding: 28px; display: flex; justify-content: space-between; align-items: center; }
.h-panel__n { font-size: 13px; font-variant-numeric: tabular-nums; }
.h-panel__bottom {
	position: absolute; inset-inline: 0; bottom: 0; padding: clamp(24px, 3vw, 44px);
	display: flex; justify-content: space-between; align-items: end; gap: 24px;
}
.h-panel__text { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.h-panel__alt { font-size: 14px; color: var(--h-gold); }
.h-panel__name { font-size: clamp(40px, 4.6vw, 76px); font-weight: 300; line-height: 1; letter-spacing: var(--h-tight); }
.h-panel__line { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--h-grey-1); text-wrap: pretty; }
.h-panel__go {
	flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; background: var(--h-gold); color: var(--h-ink);
	display: flex; align-items: center; justify-content: center; font-size: 20px;
}

@media (max-width: 899px) {
	.h-track__intro { flex-basis: 82vw; }
	.hemmah .h-panel { flex-basis: 84vw; }
}

/* ---------- Values ---------- */

.h-values { padding: var(--h-py) var(--h-px); }
.h-values .h-eyebrow { margin-bottom: 24px; }
.h-value {
	display: grid; grid-template-columns: 80px minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center;
	padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--h-line); cursor: default;
}
.h-value__n { font-size: 14px; color: var(--h-grey-5); font-variant-numeric: tabular-nums; transition: color .4s; }
.h-value__title {
	font-size: clamp(32px, 4.4vw, 72px) !important; font-weight: 200 !important; line-height: 1.05; letter-spacing: var(--h-tight);
	color: var(--h-grey-5); transition: color .4s;
}
.h-value__text { font-size: 17px; line-height: 1.6; color: var(--h-grey-3); opacity: 0; transition: opacity .5s; text-wrap: pretty; }
.h-value.is-active .h-value__n { color: var(--h-gold); }
.h-value.is-active .h-value__title { color: var(--h-cream); font-weight: 400 !important; }
.h-value.is-active .h-value__text { opacity: 1; }
@media (max-width: 899px) {
	.h-value { grid-template-columns: 40px minmax(0, 1fr); row-gap: 12px; }
	.h-value__text { grid-column: 2; opacity: 1; }
	.h-value__title { color: var(--h-cream); }
}

/* ---------- Register interest ---------- */

.h-register { position: relative; overflow: hidden; padding: var(--h-py) var(--h-px); }
.h-rays { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.h-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.h-register--dark { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.h-register--dark .h-register__inner {
	position: relative; z-index: 2; width: 100%; max-width: 640px;
	display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.h-register--dark .h-register__head { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.h-register--dark .h-eyebrow { margin: 0; }
.h-register--dark .h-register__title { font-size: clamp(40px, 5vw, 80px); font-weight: 300; line-height: 1.02; text-wrap: balance; }
.h-register--dark .h-register__sub { font-size: 18px; line-height: 1.6; color: var(--h-grey-2); max-width: 520px; margin-bottom: 12px; }
.h-register--dark .h-register__body { width: 100%; }
.h-register--dark .h-form {
	display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 28px;
	background: rgba(11, 15, 30, .6); border: 1px solid var(--h-line);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.h-register--dark .h-field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.h-register--dark .h-field input, .h-register--dark .h-field textarea {
	width: 100%; min-width: 0; border: 1px solid rgba(243, 239, 231, .16); border-radius: 18px;
	background: rgba(243, 239, 231, .06); padding: 18px 20px; font-size: 16px; color: var(--h-cream); outline: none;
	text-align: start; resize: vertical;
}
.h-register--dark .h-field input:focus, .h-register--dark .h-field textarea:focus { border-color: var(--h-gold); }
.h-register--dark .h-field input::placeholder, .h-register--dark .h-field textarea::placeholder { color: var(--h-grey-4); }
.h-register--dark .h-field.has-error input { border-color: var(--h-err); }
.h-register--dark .h-form__submit {
	display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 24px; border: 0; border-radius: 18px;
	background: var(--h-gold); color: var(--h-ink); font-size: 16px; font-weight: 600; cursor: pointer; transition: background .3s;
}
.h-register--dark .h-form__submit:hover { background: var(--h-cream); }
.h-register--dark .h-form__error { color: var(--h-err); font-size: 13px; min-height: 4px; }
.h-register--dark .h-form__done {
	display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px; border-radius: 28px;
	background: rgba(11, 15, 30, .6); border: 1px solid rgba(201, 162, 74, .4);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.h-register--dark .h-form__done h3 { font-size: 36px; font-weight: 300; color: var(--h-gold); }
.h-register--dark .h-form__done p { font-size: 17px; color: var(--h-grey-1); }

.h-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h-field { position: relative; display: flex; flex-direction: column; min-width: 0; }
.h-field--wide { grid-column: 1 / -1; }
.h-form.is-sending .h-form__submit { opacity: .6; pointer-events: none; }
.h-form[hidden], .h-form__done[hidden] { display: none !important; }

.h-register--light { background: var(--h-sand); color: var(--h-navy-4); }
.h-register--light .h-register__inner {
	max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start;
}
.h-register--light .h-register__head { display: flex; flex-direction: column; gap: 24px; }
.h-register--light .h-eyebrow { color: var(--h-gold-ink); margin: 0; }
.h-register--light .h-register__title { font-size: clamp(40px, 4.6vw, 72px); font-weight: 300; line-height: 1.04; text-wrap: balance; }
.h-register--light .h-register__sub { font-size: 18px; line-height: 1.65; color: var(--h-ink-text); max-width: 480px; }
.h-register--light .h-form { display: flex; flex-direction: column; gap: 28px; }
.h-register--light .h-form__grid { gap: 28px; }
.h-register--light .h-field { gap: 10px; font-size: 13px; color: var(--h-ink-text); }
.h-register--light .h-field input, .h-register--light .h-field textarea {
	border: 0; border-bottom: 1px solid #9AA0B0; background: transparent; padding: 10px 0 14px;
	font-size: 22px; color: var(--h-navy-4); outline: none; text-align: start; border-radius: 0; resize: vertical;
}
.h-register--light .h-field textarea { font-size: 18px; }
.h-register--light .h-field input::placeholder, .h-register--light .h-field textarea::placeholder { color: transparent; }
.h-register--light .h-field input:focus, .h-register--light .h-field textarea:focus { border-bottom-color: var(--h-gold-dk); }
.h-register--light .h-field.has-error input { border-bottom-color: var(--h-err-dk); }
.h-register--light .h-form__submit {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 16px; padding: 18px 30px; border: 0; border-radius: 999px;
	background: var(--h-navy-4); color: var(--h-cream); font-size: 15px; font-weight: 500; cursor: pointer; transition: background .3s;
}
.h-register--light .h-form__submit:hover { background: var(--h-gold-dk); }
.h-register--light .h-form__error { color: var(--h-err-dk); font-size: 14px; }
.h-register--light .h-form__done { display: flex; flex-direction: column; gap: 18px; padding: 40px 0; border-top: 1px solid var(--h-gold-dk); }
.h-form__tick {
	width: 56px; height: 56px; border-radius: 50%; background: var(--h-navy-4); color: var(--h-gold);
	display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.h-register--light .h-form__done h3 { font-size: 40px; font-weight: 300; }
.h-register--light .h-form__done p { font-size: 18px; line-height: 1.6; color: var(--h-ink-text); }
.h-register--light .h-link { align-self: flex-start; color: var(--h-gold-ink); font-size: 15px; }

@media (max-width: 959px) {
	.h-register--light .h-register__inner { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
	.h-form__grid { grid-template-columns: 1fr; }
}

/* ---------- Project hero ---------- */

.h-phero { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; background: var(--h-navy-4); }
.h-js .h-phero__img { animation: h-hero-in 3.2s var(--h-ease) both; }
@keyframes h-hero-in {
	from { transform: scale(1.18); filter: brightness(.6); }
	to { transform: scale(1.04); filter: brightness(1); }
}
.h-phero__shade {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(17, 24, 48, .55) 0%, rgba(17, 24, 48, 0) 30%, rgba(17, 24, 48, .25) 55%, rgba(17, 24, 48, .95) 100%);
}
.h-phero__bottom {
	position: absolute; inset-inline: 0; bottom: 0; padding: 0 var(--h-px) clamp(36px, 6vh, 64px);
	display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
}
.h-phero__text { display: flex; flex-direction: column; gap: 18px; }
.h-phero__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; color: var(--h-grey-1); }
.h-phero__meta .h-chip { background: rgba(17, 24, 48, .4); }
.h-phero__title { font-size: clamp(88px, 16vw, 260px); font-weight: 200; line-height: .82; letter-spacing: var(--h-tight); }
.h-phero__lead { font-size: clamp(20px, 2vw, 28px); font-weight: 300; color: var(--h-sand); }
.hemmah .h-brochure {
	display: flex; align-items: center; gap: 18px; padding: 18px 22px; padding-inline-start: 18px; border-radius: 20px;
	background: rgba(17, 24, 48, .6); border: 1px solid rgba(243, 239, 231, .16); color: var(--h-cream);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hemmah .h-brochure:hover { border-color: var(--h-gold); color: var(--h-cream); }
.h-brochure__icon {
	width: 48px; height: 48px; border-radius: 14px; background: var(--h-gold); color: var(--h-navy);
	display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600;
}
.h-brochure__text { display: flex; flex-direction: column; gap: 4px; font-size: 16px; font-weight: 500; }
.h-brochure__text small { font-size: 12px; font-weight: 400; color: var(--h-grey-3); }

/* ---------- Facts ---------- */

.h-facts { padding: 0 var(--h-px); }
.h-facts__grid {
	max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
	border-bottom: 1px solid rgba(243, 239, 231, .12);
}
.h-fact { padding: 32px 0; display: flex; flex-direction: column; gap: 10px; }
.h-fact + .h-fact { border-inline-start: 1px solid rgba(243, 239, 231, .12); padding-inline-start: 28px; }
.h-fact__k { font-size: 12px; letter-spacing: var(--h-track); text-transform: uppercase; color: var(--h-grey-4); }
.h-fact__v { font-size: 20px; }
@media (max-width: 959px) {
	.h-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.h-fact:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
}

/* ---------- Intro ---------- */

.h-intro {
	padding: var(--h-py) var(--h-px); max-width: calc(1360px + 2 * 56px); margin: 0 auto;
	display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px);
}
.h-intro__heading { font-size: clamp(34px, 4vw, 60px); font-weight: 300; line-height: 1.1; letter-spacing: var(--h-tight); text-wrap: balance; }
.h-intro__side { display: flex; flex-direction: column; gap: 24px; justify-content: end; align-items: flex-start; }
.h-intro__text { font-size: 19px; line-height: 1.7; color: var(--h-grey-2); text-wrap: pretty; }
.h-intro__text p + p { margin-top: 1em; }
@media (max-width: 959px) { .h-intro { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */

.h-gallery { padding: 0 clamp(16px, 3vw, 40px) var(--h-py); }
.h-gallery__wrap { max-width: 1440px; margin: 0 auto; }
.h-gallery__head {
	display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
	margin-bottom: 32px; padding: 0 clamp(4px, 1vw, 16px);
}
.h-gallery__head .h-eyebrow { margin-bottom: 16px; }
.h-gallery__nav { display: flex; align-items: center; gap: 16px; }
.h-gallery__count { font-size: 14px; color: var(--h-grey-3); font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.h-gallery__stage { position: relative; aspect-ratio: 16 / 8; min-height: 300px; border-radius: 28px; overflow: hidden; background: var(--h-navy-4); }
.h-gallery__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.h-gallery__slide img { transform: scale(1.08); transition: transform 7s ease-out; }
.h-gallery__slide.is-active { opacity: 1; }
.h-gallery__slide.is-active img { transform: scale(1); }
.h-gallery__bars { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; gap: 6px; }
.h-gallery__bars button {
	flex: 1; height: 3px; border: 0; padding: 0; border-radius: 2px; cursor: pointer;
	background: rgba(243, 239, 231, .35); transition: background .4s;
}
.h-gallery__bars button.is-active { background: var(--h-gold); }
.h-gallery__thumbs { display: grid; grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.h-gallery__thumbs button {
	padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; cursor: pointer;
	background: var(--h-navy-4); opacity: .45; outline: 1px solid transparent; outline-offset: 2px; transition: opacity .3s;
}
.h-gallery__thumbs button.is-active { opacity: 1; outline-color: var(--h-gold); }
.h-gallery__thumbs img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
@media (max-width: 639px) {
	.h-gallery__thumbs { display: none; }
	/* No min-height here: with aspect-ratio it would force a 400px minimum width, wider than a phone. */
	.h-gallery__stage { aspect-ratio: 4 / 3; min-height: 0; width: 100%; }
}

/* ---------- Location ---------- */

.h-location {
	padding: var(--h-py) var(--h-px); max-width: calc(1360px + 2 * 56px); margin: 0 auto;
	display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 64px); align-items: center;
}
.h-location__text { display: flex; flex-direction: column; gap: 22px; }
.h-location__text .h-eyebrow { margin: 0; }
.h-location__map {
	position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--h-navy-4);
	box-shadow: 0 0 0 1px rgba(201, 162, 74, .45), 0 30px 60px -20px rgba(0, 0, 0, .6);
}
/* Google's own colours, so the red location pin stays visible. */
.h-location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.h-location--nomap { grid-template-columns: minmax(0, 720px); }
@media (max-width: 959px) { .h-location { grid-template-columns: 1fr; } }

/* ---------- Page header, statements, contact ---------- */

.h-pagehead { position: relative; overflow: hidden; padding: calc(var(--h-py) + 80px) var(--h-px) var(--h-py); }
.h-pagehead.has-image { min-height: 80vh; display: flex; align-items: flex-end; }
.h-pagehead__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 15, 30, .6), rgba(11, 15, 30, .2) 40%, rgba(11, 15, 30, .95)); }
.h-pagehead__inner { position: relative; max-width: 1360px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 24px; }
.h-pagehead__inner .h-eyebrow { margin: 0; }
.h-pagehead__inner .h-lede { max-width: 640px; }

.h-statements { padding: 0 var(--h-px) var(--h-py); }
.h-statement {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 32px; align-items: baseline;
	padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--h-line);
}
.h-statement .h-eyebrow { margin: 0; }
.h-statement__text { font-size: clamp(26px, 3vw, 44px); font-weight: 300; line-height: 1.25; letter-spacing: var(--h-tight); text-wrap: pretty; }
@media (max-width: 899px) { .h-statement { grid-template-columns: 1fr; gap: 16px; } }

.h-contact { padding: var(--h-py) var(--h-px); }
.h-contact__title { max-width: 900px; margin-bottom: 56px; font-size: clamp(40px, 5vw, 80px); }
.h-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; border-top: 1px solid var(--h-line); padding-top: 40px; }
.h-contact__item { display: flex; flex-direction: column; gap: 10px; }
.h-contact__item > span { font-size: 12px; color: var(--h-grey-4); }
.hemmah .h-contact__item a { color: var(--h-cream); font-size: 18px; text-align: start; }
.hemmah .h-contact__item a:hover { color: var(--h-gold); }
.hemmah .h-contact__item .h-contact__big { color: var(--h-gold); font-size: 24px; }
.h-contact__item p { font-size: 15px; line-height: 1.6; color: var(--h-grey-1); }

/* ---------- Plain pages ---------- */

.h-prose { max-width: 820px; margin: 0 auto; padding: calc(var(--h-py) + 80px) var(--h-px) var(--h-py); }
.h-prose .h-display { font-size: clamp(40px, 5vw, 72px); margin-bottom: 40px; }
.h-prose__image { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; margin-bottom: 40px; }
.h-prose__body { font-size: 18px; line-height: 1.75; color: var(--h-grey-2); }
.h-prose__body > * + * { margin-top: 1.2em; }

/* ---------- Footer ---------- */

.h-footer { border-top: 1px solid rgba(243, 239, 231, .1); padding: 64px var(--h-px) 64px; background: var(--h-ink); }
.single-projects .h-footer { background: #0B1022; }
.h-footer__grid {
	max-width: 1360px; margin: 0 auto; display: grid; gap: 32px; align-items: start;
	grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
}
.h-footer__logo img { height: 80px; width: auto; }
.h-footer__item { display: flex; flex-direction: column; gap: 10px; }
.h-footer__item > span { font-size: 12px; color: var(--h-grey-4); }
.hemmah .h-footer__item a { font-size: 17px; color: var(--h-cream); text-align: start; }
.hemmah .h-footer__item a:hover { color: var(--h-gold); }
.hemmah .h-footer__item .h-footer__phone { font-size: 22px; color: var(--h-gold); }
.h-footer__item p { font-size: 15px; line-height: 1.5; color: var(--h-grey-1); }
.h-footer__base {
	max-width: 1360px; margin: 56px auto 0; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	font-size: 13px; color: var(--h-grey-4);
}
@media (max-width: 899px) { .h-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h-footer__logo { grid-column: 1 / -1; } }
@media (max-width: 639px) { .h-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Arabic typography
   Arabic letterforms are taller (alef, lam) and deeper (meem, waw) than Latin
   and read smaller at the same pixel size, so: giant display type is scaled
   down and given room to breathe, and small labels are scaled up.
   ========================================================================== */

/* Display titles: smaller, slightly heavier, real line-height. */
[dir="rtl"] .h-hero__title { font-size: clamp(52px, 8vw, 132px); line-height: 1.2; font-weight: 300; }
[dir="rtl"] .h-phero__title { font-size: clamp(60px, 9.5vw, 156px); line-height: 1.2; font-weight: 300; }
[dir="rtl"] .h-display { font-size: clamp(38px, 4.8vw, 80px); line-height: 1.25; font-weight: 300; }
[dir="rtl"] .h-panel__name { font-size: clamp(34px, 3.6vw, 60px); line-height: 1.2; }
[dir="rtl"] .h-heading,
[dir="rtl"] .h-intro__heading,
[dir="rtl"] .h-register--dark .h-register__title,
[dir="rtl"] .h-register--light .h-register__title { line-height: 1.3; }
[dir="rtl"] .h-value__title { font-size: clamp(28px, 3.6vw, 58px) !important; line-height: 1.3; font-weight: 300 !important; }
[dir="rtl"] .h-story__text { line-height: 1.45; }
[dir="rtl"] .h-hero__info { gap: 20px; }
[dir="rtl"] .h-hero__text { gap: 10px; }

/* Small labels: readable sizes. */
[dir="rtl"] .h-eyebrow { font-size: 18px; }
[dir="rtl"] .h-chip { font-size: 15px; padding: 6px 14px; }
[dir="rtl"] .h-hero__meta, [dir="rtl"] .h-phero__meta { font-size: 16px; }
[dir="rtl"] .h-hero__tab { font-size: 16px; }
[dir="rtl"] .h-hero__tagline { font-size: clamp(24px, 2.4vw, 34px); }
[dir="rtl"] .h-track__hint, [dir="rtl"] .h-gallery__count { font-size: 15px; }
[dir="rtl"] .h-panel__alt { font-size: 16px; }
[dir="rtl"] .h-panel__line, [dir="rtl"] .h-track__sub { font-size: 18px; }
/* Grey labels: a step brighter too, since thin Arabic strokes lose contrast on navy. */
[dir="rtl"] .h-fact__k { font-size: 16px; color: var(--h-grey-3); }
[dir="rtl"] .h-fact__v { font-size: 21px; }
[dir="rtl"] .h-footer__item > span, [dir="rtl"] .h-contact__item > span { font-size: 16px; color: var(--h-grey-3); }
[dir="rtl"] .h-footer__base { font-size: 15px; }
[dir="rtl"] .h-register--light .h-field { font-size: 16px; }
[dir="rtl"] .h-brochure__text small { font-size: 14px; }
[dir="rtl"] .h-header__nav, [dir="rtl"] .h-header__crumb { font-size: 16px; }
[dir="rtl"] .h-btn { font-size: 15px; }
[dir="rtl"] .h-form__error { font-size: 15px !important; }

/* WPML's own floating switcher is replaced by the header link. */
.wpml-ls-statics-footer { display: none; }
