/* DXB concatenated theme CSS — auto-built */

/* --- tokens.css --- */
/* DXB design tokens — colors, type, spacing */
:root {
  --c-slate: #1B2A3A;
  --c-steel: #3A4A5C;
  --c-mid: #5A6878;
  --c-bronze: #B08A52;
  --c-bronze-lt: #D4B17A;
  --c-clay: #8C7A66;
  --c-cream: #F0EDE6;
  --c-cream-2: #F7F5F0;
  --c-cream-3: #E8E4DC;
  --c-charcoal: #2C2A26;
  --c-stone: #9A9088;
  --c-stone-2: #6A6058;
  --c-bone: #DDD8CC;
  --c-paper: #FFFFFF;
  --c-ink: #0C1520;
  --c-gold-accent: #C8A02E;

  --bg: var(--c-cream);
  --bg-raised: var(--c-cream-2);
  --bg-sunken: var(--c-cream-3);
  --bg-inverse: var(--c-slate);
  --bg-dark: var(--c-ink);

  --fg-1: var(--c-slate);
  --fg-2: var(--c-charcoal);
  --fg-3: var(--c-stone-2);
  --fg-4: var(--c-stone);
  --fg-on-dark: var(--c-cream);
  --fg-on-dark-2: #B8B3A8;
  --fg-muted-dark: #9FB0C0;

  --accent: var(--c-bronze);
  --accent-hover: var(--c-bronze-lt);
  --border: rgba(27, 42, 58, 0.14);
  --border-strong: rgba(27, 42, 58, 0.28);
  --border-on-dark: rgba(240, 237, 230, 0.18);

  --font-mark: "Kenao", "Bodoni Moda", "Didot", serif;
  --font-wordmark: "Montserrat", "Helvetica Neue", Arial, "Cairo", sans-serif;
  --font-display: "Special Gothic Condensed One", "Oswald", "Bebas Neue", "Cairo", sans-serif;
  --font-body: "Sansation", "Inter", -apple-system, "Tajawal", sans-serif;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
  --fs-3xl: 48px;
  --fs-4xl: 64px;
  --fs-5xl: 84px;
  --fs-6xl: 108px;

  --section-pad-y: 120px;
  --section-pad-x: 56px;
  --nav-pad-y: 20px;
  --nav-pad-x: 56px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-base: 0.22s;
  --r-sm: 4px;
  --r-md: 8px;
}


/* --- base.css --- */
/* DXB — Base resets & global rules */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] { text-align: right; }

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

a {
  color: var(--c-steel);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur-base) var(--ease-out);
}

a:hover { color: var(--accent); }

::selection {
  background: rgba(181, 146, 58, 0.32);
  color: var(--c-slate);
}

.dxb-hidden { display: none !important; }

/* Cover images */
.dxb-img-cover,
.dxb-hero img,
.dxb-kenburns img,
.dxb-carousel img,
.dxb-hero-media img,
.dxb-project-card img {
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dxb-img-cover {
  position: absolute;
  inset: 0;
}

/* Imagify wraps media in <picture>; stretch wrapper so cover fills the frame. */
.dxb-photo-tile picture,
.dxb-img-frame picture,
.dxb-project-card__media picture,
.dxb-project-detail__hero-media picture,
.dxb-hero-media picture,
.dxb-gallery-strip picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.dxb-photo-tile .dxb-img-cover,
.dxb-photo-tile picture .dxb-img-cover,
.dxb-img-frame .dxb-img-cover,
.dxb-img-frame picture .dxb-img-cover,
.dxb-project-card__media .dxb-img-cover,
.dxb-project-card__media picture .dxb-img-cover {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
}

.dxb-img-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-inverse);
}

/* Motion */
@keyframes dxbKenburns {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}

@keyframes dxbFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dxb-kenburns {
  animation: dxbKenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}

.dxb-reveal { opacity: 0; }
.dxb-reveal.is-in {
  animation: dxbFadeUp 0.9s var(--ease-out) forwards;
}

.dxb-lift {
  transition: transform 0.5s var(--ease-out), border-color 0.5s, box-shadow 0.5s;
}

.dxb-lift:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 160, 46, 0.55) !important;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .dxb-kenburns { animation: none; }
  .dxb-reveal { opacity: 1 !important; animation: none !important; }
  .dxb-lift { transition: none; }
}


/* --- components.css --- */
/* DXB — UI components (see layout.css for sections/grids) */

/* Typography */
.dxb-eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 16px;
}
.dxb-eyebrow--dark { color: var(--fg-on-dark-2); }
.dxb-eyebrow--gold { color: var(--c-gold-accent); }

.dxb-display-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-6xl);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0;
}
.dxb-display-title--light { color: var(--fg-on-dark); }

.dxb-section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0;
  max-width: 900px;
}
.dxb-section-title--light { color: var(--fg-on-dark); }
.dxb-section-title--center { margin-inline: auto; text-align: center; }

.dxb-card-title {
  font-family: var(--font-wordmark);
  font-size: 19px;
  font-weight: 600;
  color: var(--fg-1);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dxb-lead {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  color: var(--fg-2);
  line-height: 1.6;
  margin-top: 24px;
  max-width: 640px;
}
.dxb-lead--light { color: var(--fg-on-dark); }
.dxb-lead--center { margin-inline: auto; text-align: center; }

.dxb-body-text { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.7; margin: 0; }
.dxb-caption { font-family: var(--font-body); font-size: 13px; color: var(--fg-4); margin: 0; }

.dxb-slogan {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 28px;
}
.dxb-slogan--footer { font-size: var(--fs-xs); letter-spacing: 0.18em; margin-top: 20px; }

[dir="rtl"] .dxb-eyebrow,
[dir="rtl"] .dxb-display-title,
[dir="rtl"] .dxb-section-title,
[dir="rtl"] .dxb-card-title,
[dir="rtl"] .dxb-slogan { text-transform: none; letter-spacing: normal; }

/* Buttons */
.dxb-btn {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  text-decoration: none;
  border-bottom: none;
  transition: all var(--dur-base) var(--ease-out);
}
.dxb-btn__arrow { margin-left: 8px; font-size: 14px; }
[dir="rtl"] .dxb-btn__arrow { margin-left: 0; margin-right: 8px; }
.dxb-btn--primary { background: var(--bg-inverse); color: var(--fg-on-dark); }
.dxb-btn--primary:hover { background: var(--c-steel); border-color: var(--accent); color: var(--fg-on-dark); }
.dxb-btn--gold { background: var(--accent); color: var(--c-slate); border: 1px solid transparent; }
.dxb-btn--gold:hover { background: var(--accent-hover); }
a.dxb-btn.dxb-btn--ondark,
.dxb-btn--ondark { background: transparent; color: var(--fg-on-dark); border: 1px solid #F0EDE6; }
a.dxb-btn.dxb-btn--ondark:hover,
.dxb-btn--ondark:hover { color: var(--accent); border-color: var(--accent); }
.dxb-btn--ghost:not(.dxb-btn--primary) { background: transparent; color: var(--fg-1); padding: 14px 4px; }
.dxb-btn--ghost:not(.dxb-btn--primary):hover { color: var(--accent); }
.dxb-btn--outline { background: transparent; color: var(--fg-1); border: 1px solid var(--border-strong); padding: 12px 16px; letter-spacing: 0.18em; }
.dxb-btn--outline:hover { color: var(--accent); border-color: var(--accent); }
.dxb-btn--console {
  padding: 13px 20px;
  letter-spacing: 0.24em;
  gap: 9px;
  border-color: rgba(27, 42, 58, 0.32);
  display: inline-flex;
  align-items: center;
}

.dxb-btn--lang {
  letter-spacing: 0.08em;
  text-transform: none;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.dxb-btn--lang span {
  line-height: 1;
}

/* Hide TranslatePress floating switcher — custom header button is used instead */
nav.trp-language-switcher.trp-floating-switcher.trp-ls-dropdown.trp-switcher-position-bottom,
#trp-floater-ls,
.trp-language-switcher-container {
  display: none !important;
}

[dir="rtl"] .dxb-btn--lang {
  letter-spacing: normal;
}

/* Logo */
.dxb-logo { display: flex; align-items: center; gap: 12px; }
.dxb-logo__mark { font-family: var(--font-mark); font-weight: 400; font-size: 32px; color: var(--accent); line-height: 0.9; display: inline-flex; }
.dxb-logo__mark-x { display: inline-block; margin: 0 -0.16em; position: relative; z-index: 1; }
.dxb-logo__mark-b { position: relative; z-index: 2; }
.dxb-logo__divider { width: 1px; height: 22px; background: rgba(27, 42, 58, 0.18); flex-shrink: 0; }
.dxb-logo__text { display: flex; flex-direction: column; line-height: 1; }
.dxb-logo__name { font-family: var(--font-wordmark); font-weight: 700; font-size: 12.4px; letter-spacing: 0.18em; color: var(--fg-1); text-transform: uppercase; }
.dxb-logo__tagline { font-family: var(--font-display); font-size: 8px; letter-spacing: 0.32em; color: var(--fg-3); margin-top: 4px; text-transform: uppercase; }
.dxb-footer .dxb-logo__mark { font-size: 44.8px; }
.dxb-footer .dxb-logo__divider { height: 30.8px; background: var(--border-on-dark); }
.dxb-footer .dxb-logo__name { font-size: 17.36px; color: var(--fg-on-dark); }
.dxb-footer .dxb-logo__tagline { font-size: 11.2px; color: var(--fg-on-dark-2); }
a.dxb-nav-logo { border-bottom: none; display: block; cursor: pointer; }

/* Nav */
#dxb-header, .dxb-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.dxb-nav {
  position: relative;
  z-index: 100;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--nav-pad-y) var(--nav-pad-x);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all var(--dur-base);
}
.dxb-nav-panel { display: flex; align-items: center; gap: 36px; }
.dxb-nav-links { display: flex; gap: 36px; }
.dxb-nav-link {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  border-bottom-style: solid;
}
.dxb-nav-link.is-active,
.dxb-nav-links a.is-active { color: var(--accent) !important; border-bottom-color: var(--accent) !important; }
.dxb-nav-link:hover { color: var(--accent); }
.dxb-nav-actions { display: flex; gap: 12px; align-items: center; }
.dxb-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}
.dxb-nav-toggle span { display: block; height: 2px; width: 100%; background: var(--c-slate); transition: transform 0.22s, opacity 0.22s; }
.dxb-nav--open .dxb-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dxb-nav--open .dxb-nav-toggle span:nth-child(2) { opacity: 0; }
.dxb-nav--open .dxb-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.dxb-nav--scrolled { background: rgba(240, 237, 230, 0.92) !important; backdrop-filter: blur(12px) !important; border-bottom: 1px solid var(--border) !important; }

/* Footer */
#dxb-footer, .dxb-footer { background: var(--bg-inverse); color: var(--fg-on-dark); padding: 64px var(--section-pad-x) 32px; }
.dxb-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--border-on-dark); }
.dxb-footer__about { font-family: var(--font-body); font-size: 13px; color: var(--fg-on-dark-2); margin-top: 24px; max-width: 280px; line-height: 1.7; }
.dxb-footer__col-title { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-on-dark-2); margin-bottom: 16px; }
.dxb-footer__link { display: block; font-family: var(--font-body); font-size: 13px; color: var(--fg-on-dark); margin-bottom: 8px; border-bottom: none; }
.dxb-footer__link:hover { color: var(--accent); }
.dxb-footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; font-family: var(--font-body); font-size: 11px; color: #8A857C; }
.dxb-footer__legal-link { color: inherit; border-bottom: none; transition: color var(--dur-base); }
.dxb-footer__legal-link:hover { color: var(--accent); }

/* Cards */
.dxb-pillar-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 1px 2px rgba(27, 42, 58, 0.06);
}
.dxb-pillar-card__body { padding: 28px; }
.dxb-pillar-card__actions { margin-top: 24px; }
.dxb-pillar-card .dxb-img-frame { aspect-ratio: 16 / 10; }

.dxb-project-card {
  display: block;
  background: var(--bg-raised);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.22s, transform 0.22s;
  border-bottom: none;
  color: inherit;
  text-decoration: none;
}
.dxb-project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(27, 42, 58, 0.08); }
.dxb-project-card.is-hidden { display: none !important; }
.dxb-project-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-sunken); overflow: hidden; }
.dxb-project-card__media > .dxb-img-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.dxb-project-card__body { padding: 24px 28px; }

.dxb-section.dxb-filters {
  padding: 0 var(--section-pad-x) 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.dxb-filter-btn {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--fg-4);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.dxb-filter-btn.is-active { color: var(--fg-1) !important; border-bottom-color: var(--accent) !important; }

/* Carousel */
.dxb-carousel { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--r-md); background: var(--bg-inverse); }
.dxb-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.dxb-carousel-slide[data-active="true"] { opacity: 1; pointer-events: auto; }
.dxb-carousel-kenburns { position: absolute; inset: 0; }
.dxb-carousel-slide[data-active="true"] .dxb-carousel-kenburns { animation: dxbKenburns 7s ease-out forwards; }
.dxb-carousel__caption { position: absolute; left: 32px; bottom: 28px; right: 32px; font-family: var(--font-wordmark); font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-on-dark); }
.dxb-carousel__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,42,58,0) 52%, rgba(27,42,58,0.78) 100%); }
.dxb-carousel-prev, .dxb-carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(240,237,230,0.5); background: rgba(27,42,58,0.4);
  color: var(--fg-on-dark); font-size: 22px; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(4px);
}
.dxb-carousel-prev { left: 16px; }
.dxb-carousel-next { right: 16px; }
.dxb-carousel-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dxb-carousel-dot { width: 9px; height: 9px; border-radius: 6px; border: none; cursor: pointer; background: rgba(240,237,230,0.55); transition: width 0.35s, background 0.35s; padding: 0; }

/* Video */
.dxb-video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--bg-dark);
	overflow: hidden;
}

.dxb-video-wrap .dxb-video-embed {
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.dxb-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Drive: crop chrome off-screen — no overlay blocks */
.dxb-video-embed--drive iframe {
	top: 50%;
	left: 50%;
	width: 118%;
	height: 118%;
	max-width: none;
	transform: translate(-50%, -54%);
}

.dxb-video-facade {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: var(--bg-dark);
	overflow: hidden;
}

.dxb-video-facade .dxb-img-cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dxb-video-facade::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.45) 100%);
	pointer-events: none;
}

.dxb-video-facade__play {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 22px;
	line-height: 1;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.dxb-video-embed.is-playing .dxb-video-facade {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.dxb-video-poster {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid rgba(176,138,82,0.35);
	box-shadow: 0 30px 80px rgba(0,0,0,0.45);
	background: var(--bg-dark);
	text-decoration: none;
	color: #fff;
}
.dxb-video-poster .dxb-img-cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.dxb-video-poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.dxb-video-poster__play {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -55%);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255,255,255,0.92);
	color: #111;
	box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.dxb-video-poster__label {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	font-family: var(--font-display);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.dxb-video-poster:hover .dxb-img-cover { transform: scale(1.04); }
.dxb-video-poster:hover .dxb-video-poster__play { transform: translate(-50%, -55%) scale(1.06); }

/* Forms */
.dxb-contact-form, .dxb-contact-thanks { background: var(--bg-raised); border-radius: 12px; border: 1px solid var(--border); }
.dxb-contact-form { padding: 32px; display: grid; gap: 18px; }
.dxb-contact-thanks { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.dxb-contact-thanks:not(.dxb-hidden) { display: flex !important; }
.dxb-contact-form.dxb-hidden { display: none !important; }
.dxb-form-field { display: flex; flex-direction: column; gap: 6px; }
.dxb-form-label { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-3); }
.dxb-form-input, .dxb-form-select, .dxb-form-textarea {
  font-family: var(--font-body); font-size: var(--fs-sm); color: var(--fg-1);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 2px; padding: 12px 14px; outline: none;
}
.dxb-form-textarea { resize: vertical; min-height: 80px; }

.dxb-meta-grid { font-family: var(--font-body); font-size: 13px; color: var(--fg-3); display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 32px; }
.dxb-meta-grid--stack { grid-template-columns: max-content 1fr; gap: 14px 24px; font-size: var(--fs-sm); }
.dxb-meta-grid strong { color: var(--fg-1); font-weight: 700; }

.dxb-founder-card { height: 100%; background: rgba(240,237,230,0.04); border: 1px solid rgba(200,160,46,0.22); border-radius: 12px; padding: 40px 34px; display: flex; flex-direction: column; }
.dxb-founder-card__quote-mark { font-family: var(--font-display); font-size: 52px; line-height: 0.7; color: var(--c-gold-accent); margin-bottom: 18px; }
.dxb-founder-card__text { font-family: var(--font-body); font-size: 17.5px; font-style: italic; color: rgba(240,237,230,0.92); line-height: 1.65; margin: 0; }
.dxb-founder-card__rule { margin-top: 28px; height: 2px; width: 48px; background: var(--c-gold-accent); opacity: 0.7; }

.dxb-stat-value { font-family: var(--font-wordmark); font-size: 84px; font-weight: 700; color: var(--fg-1); line-height: 1; }
.dxb-stat-value--sm { font-size: 48px; }
.dxb-stat-label { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-4); margin-top: 12px; }

.dxb-back-link { display: inline-block; font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-4); border-bottom: none; }
.dxb-back-link:hover { color: var(--accent); }

.dxb-gallery-strip { position: relative; height: 380px; overflow: hidden; }
.dxb-gallery-strip .dxb-kenburns { position: absolute; inset: 0; }
.dxb-gallery-strip .dxb-kenburns > div { position: absolute; inset: 0; overflow: hidden; background: var(--bg-inverse); }
.dxb-gallery-strip .dxb-img-cover { position: absolute; inset: 0; }
.dxb-gallery-strip__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,42,58,0.35), rgba(27,42,58,0.78)); }


/* --- layout.css --- */
/* DXB — Page layout, sections, grids */

#dxb-site { min-height: 100vh; }

.dxb-section {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--bg);
}

.dxb-section--dark {
  padding: 112px var(--section-pad-x);
  background: var(--bg-inverse);
  color: var(--fg-on-dark);
}

.dxb-section--video {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--bg-dark);
}

.dxb-section--video .dxb-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.dxb-section--video .dxb-section__intro { text-align: center; }
.dxb-section--video .dxb-section-title { margin-inline: auto; max-width: 820px; }
.dxb-section--video .dxb-lead { margin: 20px auto 0; color: var(--fg-muted-dark); }

.dxb-section--cta {
  padding: 120px var(--section-pad-x);
  background: var(--bg-inverse);
  color: var(--fg-on-dark);
  text-align: center;
}

.dxb-section--cta .dxb-eyebrow { margin-bottom: 0; color: var(--fg-on-dark-2); }
.dxb-section--cta .dxb-section-title {
  color: var(--fg-on-dark-2);
  font-size: 72px;
  line-height: 1.05;
  margin: 20px auto;
  max-width: none;
  text-align: center;
}
.dxb-section--cta .dxb-lead {
  color: var(--fg-on-dark-2);
  margin: 0 auto 36px;
  max-width: 560px;
  text-align: center;
}
.dxb-section--cta .dxb-btn { margin-inline: auto; }

/* Hero */
.dxb-hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--section-pad-x) 96px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-inverse);
}

.dxb-hero > .dxb-kenburns,
.dxb-hero > .dxb-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: var(--bg-inverse);
}

.dxb-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(27, 42, 58, 0.45) 0%,
    rgba(27, 42, 58, 0.15) 38%,
    rgba(27, 42, 58, 0.92) 100%
  );
}

.dxb-hero__content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  width: 100%;
}

.dxb-hero .dxb-eyebrow { color: var(--fg-on-dark-2); margin-bottom: 24px; }
.dxb-hero .dxb-display-title {
  color: var(--fg-on-dark);
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.95;
  text-wrap: pretty;
}
.dxb-hero .dxb-lead { color: var(--fg-on-dark); margin-top: 32px; max-width: 600px; }
.dxb-hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}

.dxb-hero__actions .dxb-btn {
  padding: 14px 24px;
  border: 1px solid transparent;
  box-sizing: border-box;
  line-height: 1.2;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
}

.dxb-hero__actions .dxb-btn__arrow {
  margin-left: 8px;
  line-height: 1;
}

/* Page header (projects, about, contact) */
.dxb-page-header {
  padding: 96px var(--section-pad-x) 56px;
  background: var(--bg);
}

.dxb-page-header .dxb-display-title { font-size: var(--fs-6xl); line-height: 0.98; }
.dxb-page-header .dxb-lead { margin-top: 24px; }

.dxb-page-wrap { background: var(--bg); padding-bottom: 0; }

/* Grids */
.dxb-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

.dxb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.dxb-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px var(--section-pad-x);
}

.dxb-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: start;
}

.dxb-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.dxb-contact-page {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--bg);
}

/* Section typography context */
.dxb-section--dark .dxb-section-title { color: var(--fg-on-dark); margin-bottom: 48px; }
.dxb-section .dxb-section-title + .dxb-grid-3 { margin-top: 0; }

.dxb-pillar-card h3 {
  font-family: var(--font-wordmark);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 10px 0;
}

.dxb-pillar-card .dxb-eyebrow { margin-bottom: 0; }

/* Project detail */
.dxb-project-detail__hero { position: relative; min-height: 60vh; }
.dxb-project-detail__meta { padding: var(--section-pad-y) var(--section-pad-x); }

/* Carousel slide internals */
.dxb-carousel-slide .dxb-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 42, 58, 0) 52%, rgba(27, 42, 58, 0.78) 100%);
}

.dxb-carousel-kenburns {
  position: absolute;
  inset: 0;
}

.dxb-carousel-dot.is-active {
  width: 26px;
  background: var(--accent);
}

/* Video wrapper on dark section */
.dxb-video-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(176, 138, 82, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* Featured / split sections */
.dxb-featured-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dxb-featured-split__media { position: relative; min-height: 480px; }
.dxb-featured-split__body {
  padding: 80px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-raised);
}

/* About founder grid */
.dxb-founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

/* Legacy: project card inner wrappers without BEM classes */
.dxb-project-card > div:first-child { position: relative; }
.dxb-project-card > div:first-child > .dxb-img-frame,
.dxb-project-card > div:first-child > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


/* --- pages.css --- */
/* DXB — Page-specific layouts (class-based, mirrors backup inline styles) */

/* Featured project block (index) */
.dxb-section--featured {
  padding: 120px 56px;
  background: var(--c-cream-3, #e8e4dc);
}

.dxb-section--featured .dxb-grid-2 {
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.dxb-featured-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-inverse);
  border-radius: var(--r-md);
}

.dxb-featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dxb-section--featured .dxb-section-title { font-size: 64px; }
.dxb-section--featured .dxb-body-text { font-size: 20px; margin-top: 24px; line-height: 1.6; }

/* Console / cloud section */
.dxb-section--console {
  padding: 96px 56px;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.dxb-console-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--bg-inverse);
  border-radius: var(--r-md);
}

.dxb-console-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.dxb-console-media__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 42, 58, 0) 55%, rgba(27, 42, 58, 0.35) 100%);
}

.dxb-section--console .dxb-body-text { font-size: 18px; max-width: 460px; margin-top: 24px; line-height: 1.7; }
.dxb-section--console .dxb-section-title { font-size: 56px; }

/* About — photo strip grid + aligned stats */
.dxb-section--photos {
  padding: 24px 56px 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dxb-section--photo-stats {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.dxb-photo-stat {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.dxb-photo-stat__meta {
  padding-top: 4px;
}

.dxb-photo-tile { overflow: hidden; border-radius: var(--r-md); }

.dxb-photo-tile .dxb-kenburns {
  position: relative;
  aspect-ratio: 3 / 4;
}

.dxb-photo-tile .dxb-img-frame {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg-inverse);
}

/* Stats row */
.dxb-stats-grid {
  padding: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
}

.dxb-stats-grid .dxb-countup,
.dxb-photo-stat .dxb-countup {
  font-family: var(--font-wordmark);
  font-weight: 700;
  color: var(--fg-1);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 2.2vw, 36px);
  word-break: break-word;
}

.dxb-stats-grid .dxb-countup[data-value="70+"],
.dxb-stats-grid .dxb-countup[data-value="BIM"] { font-size: 84px; }

.dxb-photo-stat .dxb-countup[data-value="EGY·MENA"],
.dxb-photo-stat .dxb-countup[data-value="2026"],
.dxb-stats-grid .dxb-countup[data-value="EGY·MENA"],
.dxb-stats-grid .dxb-countup[data-value="EGY·KSA"],
.dxb-stats-grid .dxb-countup[data-value="2019"],
.dxb-stats-grid .dxb-countup[data-value="2026"] { font-size: clamp(28px, 3vw, 48px); }

.dxb-photo-stat .dxb-countup[data-value="Studio·BIM·Construction"] {
  font-size: clamp(18px, 1.7vw, 28px);
  letter-spacing: 0;
}

.dxb-photo-stat .dxb-stat-label {
  max-width: 100%;
  letter-spacing: 0.18em;
  line-height: 1.45;
}

/* Founders dark section */
.dxb-section--founders {
  background: var(--bg-inverse);
  color: var(--fg-on-dark);
  padding: 96px 56px;
  overflow: hidden;
}

.dxb-section--founders .dxb-eyebrow { color: var(--c-gold-accent); margin-bottom: 20px; }
.dxb-section--founders .dxb-section-title { font-size: 64px; color: var(--fg-on-dark); line-height: 1.02; }
.dxb-section--founders .dxb-body-text { font-size: 21px; color: rgba(240, 237, 230, 0.82); max-width: 880px; margin-top: 32px; line-height: 1.7; }
.dxb-section--founders .dxb-grid-3 { gap: 28px; margin-top: 72px; }

.dxb-founder-card {
  height: 100%;
  box-sizing: border-box;
  background: rgba(240, 237, 230, 0.04);
  border: 1px solid rgba(200, 160, 46, 0.22);
  border-radius: 12px;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
}

.dxb-founder-card__quote-mark {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 0.7;
  color: var(--c-gold-accent);
  margin-bottom: 18px;
}

.dxb-founder-card__text {
  font-family: var(--font-body);
  font-size: 17.5px;
  font-style: italic;
  color: rgba(240, 237, 230, 0.92);
  line-height: 1.65;
  margin: 0;
}

.dxb-founder-card__rule {
  margin-top: 28px;
  height: 2px;
  width: 48px;
  background: var(--c-gold-accent);
  opacity: 0.7;
}

/* Page header */
.dxb-page-header { padding: 96px 56px 56px; background: var(--bg); }
.dxb-page-header .dxb-display-title { font-size: 108px; line-height: 0.98; max-width: 1200px; }
.dxb-page-header .dxb-lead { font-size: 22px; margin-top: 32px; max-width: 760px; }
.dxb-page-header .dxb-slogan { font-size: 14px; letter-spacing: 0.3em; margin-top: 24px; }

/* Video section intro */
.dxb-section--video .dxb-section__intro .dxb-eyebrow { margin-bottom: 16px; }
.dxb-section--video .dxb-section__intro p { font-size: 18px; color: var(--fg-muted-dark); max-width: 560px; margin: 20px auto 0; line-height: 1.6; }

/* Contact page */
.dxb-contact-page {
  padding: 96px 56px;
  background: var(--bg);
  min-height: 80vh;
  display: flex;
  justify-content: center;
}

.dxb-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

.dxb-contact-page .dxb-display-title {
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin-top: 0;
}

.dxb-contact-page .dxb-body-text {
  font-size: 20px;
  margin-top: 24px;
  line-height: 1.6;
  color: var(--fg-2);
}

.dxb-contact-info {
  margin-top: 48px;
  display: grid;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-3);
}

.dxb-contact-info strong { color: var(--fg-1); }

.dxb-contact-info > div,
.dxb-contact-info__item {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-3);
  border-bottom: none;
}

.dxb-contact-info__actions {
  margin-top: 12px;
}

.dxb-contact-info__actions .dxb-btn--console {
  display: inline-flex;
}

.dxb-contact-form > div:last-child {
  margin-top: 8px;
}

.dxb-contact-thanks__title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0;
}

.dxb-contact-thanks .dxb-body-text {
  font-size: 18px;
  margin-top: 16px;
}

/* Project detail */
.dxb-project-detail__header {
  padding: 56px 56px 32px;
  background: var(--bg);
}

.dxb-project-detail__header .dxb-display-title {
  font-size: 108px;
  line-height: 0.98;
  max-width: 1200px;
}

.dxb-project-detail__header .dxb-eyebrow { margin-top: 16px; }

.dxb-project-detail__hero {
  padding: 24px 56px;
  background: var(--bg);
}

.dxb-project-detail__hero-media {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--bg-inverse);
  border-radius: var(--r-md);
}

.dxb-project-detail__hero-media .dxb-img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dxb-project-detail__content.dxb-grid-2 {
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  padding: 56px;
  align-items: start;
}

.dxb-section--photos.dxb-project-detail__content {
  padding: 32px 56px 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dxb-section--photos.dxb-project-detail__content > .dxb-photo-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-inverse);
  border-radius: var(--r-md);
}

.dxb-section--photos.dxb-project-detail__content > .dxb-photo-tile .dxb-img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dxb-project-hero { position: relative; min-height: 70vh; display: flex; align-items: flex-end; padding: 0 56px 64px; overflow: hidden; }
.dxb-project-hero .dxb-display-title { color: var(--fg-on-dark); font-size: clamp(48px, 8vw, 96px); }

.dxb-carousel-dot.is-active { width: 26px; background: var(--accent); }

.dxb-pillar-card h3 {
  font-family: var(--font-wordmark);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 10px 0;
}

.dxb-pillar-card .dxb-eyebrow { margin-bottom: 0; }
.dxb-pillar-card .dxb-body-text { font-size: var(--fs-sm); line-height: 1.7; }

.dxb-section--dark .dxb-section-title { margin-bottom: 48px; }

.dxb-page-wrap { background: var(--bg); padding-bottom: 0; }

.dxb-section--founders .dxb-inner { max-width: 1100px; }

.dxb-section--featured .dxb-eyebrow { margin-bottom: 12px; }

.dxb-contact-info__item:hover { color: var(--accent); }

.dxb-project-detail { background: var(--bg); }
.dxb-project-detail__content .dxb-body-text { font-size: var(--fs-md); line-height: 1.7; max-width: 720px; }

.dxb-project-hero .dxb-hero__overlay {
  background: linear-gradient(180deg, rgba(27, 42, 58, 0.35) 0%, rgba(27, 42, 58, 0.85) 100%);
}

.dxb-back-bar { padding: 24px 56px; background: var(--bg); }

.dxb-section--featured .dxb-pillar-card__actions { margin-top: 32px; }

.dxb-section--featured .dxb-pillar-card__actions .dxb-btn--primary {
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  background: var(--bg-inverse);
  color: var(--fg-on-dark);
  border: 1px solid transparent;
}

.dxb-section--console .dxb-pillar-card__actions { margin-top: 32px; }

.dxb-meta-grid strong { color: var(--fg-1); font-weight: 700; }

.dxb-stat-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-top: 12px;
}

.dxb-countup.dxb-stat-value--sm { font-size: 48px; }

.dxb-video-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(176, 138, 82, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.dxb-video-outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  background: linear-gradient(180deg, #142033 0%, #1b2a3a 100%);
  border-top: 1px solid rgba(176, 138, 82, 0.35);
  text-align: center;
}

.dxb-video-outro__mark {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--fg-on-dark);
}

.dxb-video-outro__name {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.dxb-video-outro__tag {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--fg-on-dark-2);
}

/* Hero video must not inherit Ken Burns zoom/pan (causes shake/jitter). */
.dxb-hero--has-video .dxb-hero-media {
  animation: none !important;
  transform: none !important;
  will-change: auto;
}

.dxb-hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-inverse);
}

.dxb-hero-video-wrap--mobile {
  display: none;
}

.dxb-hero-video,
.dxb-hero-video-embed,
.dxb-hero-video-poster {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  border: 0;
  pointer-events: none;
}

.dxb-hero-video-poster-picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.dxb-hero-video-poster-picture .dxb-hero-video-poster {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
}

.dxb-hero-video,
.dxb-hero-video-poster {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/* RTL: keep physical centering (img-cover sets right:0 which breaks left:50% centering). */
[dir="rtl"] .dxb-hero-video,
[dir="rtl"] .dxb-hero-video-poster,
[dir="rtl"] .dxb-hero-video-embed {
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

[dir="rtl"] .dxb-hero-video-embed {
  transform: translate(-50%, -50%) scale(1.2);
}

/* HTML5 hero: keep poster visible until playback starts */
.dxb-hero-video-wrap[data-dxb-hero-html5] .dxb-hero-video {
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.dxb-hero-video-wrap[data-dxb-hero-html5].is-playing .dxb-hero-video {
  opacity: 1;
  z-index: 1;
}

.dxb-hero-video-wrap[data-dxb-hero-html5] .dxb-hero-video-poster,
.dxb-hero-video-wrap[data-dxb-hero-html5] .dxb-hero-video-poster-picture {
  z-index: 2;
  opacity: 1;
  transition: opacity 0.45s var(--ease-out);
}

.dxb-hero-video-wrap[data-dxb-hero-html5].is-playing .dxb-hero-video-poster,
.dxb-hero-video-wrap[data-dxb-hero-html5].is-playing .dxb-hero-video-poster-picture {
  opacity: 0;
  pointer-events: none;
}

/* Never show native HTML5 player chrome on the hero */
.dxb-hero-video::-webkit-media-controls,
.dxb-hero-video::-webkit-media-controls-enclosure,
.dxb-hero-video::-webkit-media-controls-panel,
.dxb-hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}

.dxb-hero-video-poster {
  z-index: 1;
  background: var(--bg-inverse);
}

/* Cover-crop 16:9 embeds (YouTube) — scaled up to hide player chrome */
.dxb-hero-video-embed {
  aspect-ratio: 16 / 9;
  width: auto;
  height: auto;
  min-width: 115%;
  min-height: 115%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%) scale(1.2);
  transform-origin: center center;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}

.dxb-hero-video-wrap.is-playing .dxb-hero-video-embed {
  opacity: 1;
  z-index: 1;
}

.dxb-hero-video-wrap.is-playing .dxb-hero-video-poster {
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.dxb-hero-video-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  background: transparent;
}

@media (max-width: 900px) {
  .dxb-hero-video-wrap--desktop {
    display: none;
  }

  .dxb-hero-video-wrap--mobile {
    display: block;
  }
}

.dxb-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.dxb-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--fg-on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.dxb-footer__social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.dxb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 16, 24, 0.92);
  padding: 24px;
}

.dxb-lightbox[hidden] { display: none !important; }

.dxb-lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
}

.dxb-lightbox__close,
.dxb-lightbox__prev,
.dxb-lightbox__next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.dxb-lightbox__close { top: 20px; inset-inline-end: 20px; }
.dxb-lightbox__prev { inset-inline-start: 20px; top: 50%; transform: translateY(-50%); }
.dxb-lightbox__next { inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }

body.dxb-lightbox-open { overflow: hidden; }

.dxb-photo-tile.dxb-lightbox-trigger {
  display: block;
  cursor: zoom-in;
  border-bottom: none;
}

.dxb-careers-list {
  margin: 24px 0 0;
  padding-inline-start: 18px;
  color: var(--fg-2);
  line-height: 1.8;
}

.dxb-careers-openings__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.dxb-jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .dxb-jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dxb-job-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.dxb-job-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  border-bottom: none;
}

.dxb-job-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  flex: 1;
}

.dxb-job-card__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  margin: 0;
}

.dxb-job-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.dxb-job-card__cta {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.dxb-job-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(176, 138, 82, 0.12);
  color: var(--accent);
  border: 1px solid rgba(176, 138, 82, 0.28);
}

.dxb-job-badge--closed {
  background: rgba(27, 42, 58, 0.08);
  color: var(--fg-3);
  border-color: var(--border);
}

.dxb-job-detail__apply .dxb-contact-form,
.dxb-job-detail__apply .dxb-contact-thanks {
  margin-top: 24px;
}

.dxb-job-detail__description {
  margin-top: 32px;
}

.dxb-job-closed-note,
.dxb-job-deadline {
  margin-top: 16px;
  color: var(--fg-on-dark-2);
}

.dxb-jobs-archive__actions {
  margin-top: 40px;
}

.dxb-journal-card__link {
  display: block;
  border-bottom: none;
  color: inherit;
}

.dxb-journal-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 8px 0 12px;
}

.dxb-section--video .dxb-section__intro p.dxb-body-text {
  font-size: 18px;
  color: var(--fg-muted-dark);
  max-width: 560px;
  margin: 20px auto 0;
  line-height: 1.6;
  text-align: center;
}

/* Legal page */
.dxb-legal-page {
  padding: 0 56px 96px;
  background: var(--bg);
  max-width: 820px;
}

.dxb-legal-section {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.dxb-legal-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.dxb-legal-section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0 0 24px;
}

.dxb-legal-section .dxb-body-text + .dxb-body-text {
  margin-top: 16px;
}

.dxb-legal-link {
  color: var(--accent);
  border-bottom: none;
}

.dxb-legal-link:hover {
  color: var(--fg-1);
}

@media (max-width: 900px) {
  .dxb-legal-page { padding-left: 24px; padding-right: 24px; }
  .dxb-legal-section__title { font-size: 24px; }
}

@media (max-width: 900px) {
  .dxb-project-detail__header,
  .dxb-project-detail__hero,
  .dxb-project-detail__content,
  .dxb-back-bar { padding-left: 24px; padding-right: 24px; }
  .dxb-project-detail__hero {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 24px;
  }
  .dxb-project-detail__hero-media { aspect-ratio: 4 / 3; }
  .dxb-project-detail__content.dxb-grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .dxb-section--photos.dxb-project-detail__content { grid-template-columns: 1fr; }
  .dxb-contact-page .dxb-display-title { font-size: clamp(40px, 10vw, 72px); }
  .dxb-project-detail__header .dxb-display-title { font-size: clamp(40px, 12vw, 108px); }
}


@media (max-width: 900px) {
  .dxb-section--featured .dxb-grid-2,
  .dxb-section--console,
  .dxb-section--photos,
  .dxb-contact-grid { grid-template-columns: 1fr; }
  .dxb-section--featured,
  .dxb-section--console,
  .dxb-section--founders,
  .dxb-page-header,
  .dxb-contact-page { padding-left: 24px; padding-right: 24px; }
  .dxb-section--photos { padding-left: 24px; padding-right: 24px; }
  .dxb-stats-grid { padding: 40px 24px; grid-template-columns: 1fr 2fr; }
  .dxb-jobs-grid { grid-template-columns: 1fr; }
  .dxb-careers-openings__head { align-items: flex-start; }
}


/* --- responsive.css --- */
/* DXB — Responsive breakpoints */

.dxb-section h1,
.dxb-section h2.dxb-section-title { font-size: clamp(32px, 6vw, 56px); }

.dxb-hero .dxb-display-title { font-size: clamp(40px, 10vw, 132px); line-height: 1; }
.dxb-section--cta .dxb-section-title { font-size: clamp(36px, 8vw, 72px); }
.dxb-hero .dxb-lead { font-size: clamp(16px, 4vw, 22px); line-height: 1.55; }
.dxb-hero .dxb-eyebrow { font-size: 11px; letter-spacing: 0.2em; line-height: 1.5; }
.dxb-hero .dxb-slogan { font-size: 11px; letter-spacing: 0.18em; }
.dxb-hero .dxb-btn { padding: 14px 24px; font-size: var(--fs-xs); }

@media (max-width: 1200px) {
  .dxb-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .dxb-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dxb-footer-grid { grid-template-columns: 1fr 1fr; }
  .dxb-projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .dxb-nav {
    padding: 12px 16px;
    flex-wrap: nowrap;
    background: rgba(240, 237, 230, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 42, 58, 0.12);
  }

  .dxb-logo { gap: 8px; align-items: center; }
  .dxb-nav .dxb-logo__divider,
  .dxb-nav .dxb-logo__tagline { display: none; }

  .dxb-nav-toggle { display: flex; flex-shrink: 0; }
  .dxb-nav-logo { flex: 1; min-width: 0; }
  .dxb-nav-logo .dxb-logo { max-width: 100%; }

  [dir="rtl"] .dxb-nav-logo {
    flex: 0 1 auto;
    margin-inline-start: auto;
    margin-inline-end: 0;
    justify-content: flex-end;
  }

  [dir="rtl"] .dxb-nav-toggle {
    margin-inline-end: auto;
    margin-inline-start: 0;
  }
  .dxb-nav .dxb-logo__mark { font-size: 22px; }
  .dxb-nav .dxb-logo__name { font-size: 10px; }

  .dxb-nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(240, 237, 230, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 12px 32px rgba(27, 42, 58, 0.12);
    margin-inline-start: 0;
  }

  .dxb-nav--open .dxb-nav-panel { display: flex; }
  .dxb-nav-links { flex-direction: column; gap: 16px; }
  .dxb-nav-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .dxb-nav-actions .dxb-btn { justify-content: center; text-align: center; }

  .dxb-hero .dxb-kenburns,
  .dxb-hero .dxb-hero-media {
    animation: none;
    transform: none;
  }

  .dxb-section { padding: 64px 24px; }
  .dxb-page-header { padding: 64px 24px 40px; }
  .dxb-hero {
    padding: 32px 20px 56px;
    min-height: 78svh;
    align-items: flex-end;
  }

  .dxb-grid-2,
  .dxb-grid-3,
  .dxb-projects-grid,
  .dxb-contact-grid,
  .dxb-stats-grid,
  .dxb-founder-grid,
  .dxb-featured-split { grid-template-columns: 1fr; }

  .dxb-footer-grid { grid-template-columns: 1fr; }
  .dxb-footer { padding: 48px 24px 24px; }
  .dxb-contact-page { padding: 64px 24px; }
  .dxb-projects-grid { padding: 40px 24px; }
  .dxb-filters { padding: 0 24px 32px; }

  .dxb-carousel { aspect-ratio: 16 / 10; }
  .dxb-section--video { padding: 64px 20px; }
  .dxb-section--video .dxb-section-title { font-size: clamp(28px, 8vw, 56px); }
  .dxb-featured-split__body { padding: 48px 24px; }
}

@media (max-width: 600px) {
  .dxb-hero .dxb-display-title { font-size: clamp(34px, 11vw, 56px); }
  .dxb-page-header .dxb-display-title { font-size: clamp(36px, 12vw, 64px); }
  .dxb-carousel__caption { left: 16px; right: 16px; font-size: 12px; }
  .dxb-hero { min-height: 70svh; padding-bottom: 48px; }
  .dxb-section,
  .dxb-page-header,
  .dxb-contact-page,
  .dxb-projects-grid,
  .dxb-footer,
  .dxb-legal-page,
  .dxb-project-detail__content {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .dxb-nav { padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
}

#dxb-site,
#dxb-main,
.dxb-footer,
.dxb-hero,
.dxb-section {
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 900px) {
  .dxb-nav {
    background: rgba(240, 237, 230, 0.97);
  }
  .dxb-nav-panel {
    background: rgba(240, 237, 230, 0.98);
  }
}

[dir="rtl"] .dxb-nav-links { text-align: right; }
[dir="rtl"] .dxb-carousel-prev { left: auto; right: auto; inset-inline-start: 16px; inset-inline-end: auto; }
[dir="rtl"] .dxb-carousel-next { left: auto; right: auto; inset-inline-end: 16px; inset-inline-start: auto; }

@media (prefers-reduced-motion: reduce) {
  .dxb-hero .dxb-kenburns,
  .dxb-hero .dxb-hero-media { animation: none !important; transform: none !important; }
}

/* Skip rendering work for below-fold sections on mobile (helps SI / TBT). */
@media (max-width: 900px) {
  .dxb-section--video,
  .dxb-section--console,
  .dxb-section--cta,
  .dxb-footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }
}

