/* 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; }
}
