/* 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 */
.dxb-section--photos {
  padding: 24px 56px 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.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 { font-family: var(--font-wordmark); font-weight: 700; color: var(--fg-1); line-height: 1; letter-spacing: -0.01em; }
.dxb-stats-grid .dxb-countup[data-value="70+"],
.dxb-stats-grid .dxb-countup[data-value="BIM"] { font-size: 84px; }
.dxb-stats-grid .dxb-countup[data-value="EGY·KSA"],
.dxb-stats-grid .dxb-countup[data-value="2019"] { font-size: 48px; }

/* 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%;
  border: 0;
  pointer-events: none;
}

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

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

/* Cover-crop 16:9 embeds (YouTube / Drive) to fill any hero aspect ratio */
.dxb-hero-video-embed {
  aspect-ratio: 16 / 9;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.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-stats-grid { padding: 40px 24px; grid-template-columns: 1fr 1fr; }
  .dxb-jobs-grid { grid-template-columns: 1fr; }
  .dxb-careers-openings__head { align-items: flex-start; }
}
