/* Documentary project photography, October 2026. */
.video-cover {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #17130f;
}
.video-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.video-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,5,5,.6));
  pointer-events: none;
}
.video-cover:hover > img { transform: scale(1.025); }
.video-cover:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
.video-cover-play {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(14,12,9,.88);
  color: var(--accent);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.video-cover-play svg { width: 24px; height: 24px; }
.video-cover-label {
  position: absolute;
  inset-inline-end: 16px;
  inset-block-end: 16px;
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(14,12,9,.88);
  color: #f3efe6;
  font-size: .75rem;
  font-weight: 600;
}
[dir="rtl"] .video-cover-play { transform: translate(50%, -50%); }
@media (prefers-reduced-motion: reduce) {
  .video-cover > img { transition: none; }
}
.project-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #100e0c;
  color: var(--text);
  cursor: zoom-in;
  text-align: inherit;
}
.project-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center);
  transition: transform .45s ease;
}
.project-photo:hover img { transform: scale(1.025); }
.project-photo:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
.project-photo-zoom {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(10,9,8,.7);
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
}
.project-grid-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.project-grid-photos--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-photo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #1c1712, #100e0c);
}
.project-photo-card .project-photo { aspect-ratio: 4 / 3; }
.project-photo-copy { display: grid; gap: 10px; padding: 24px; }
.project-photo-copy > span, .project-feature-label {
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.project-photo-copy h3 { color: var(--text); font-size: 1.12rem; line-height: 1.4; }
.project-photo-copy p { color: var(--text-2); font-size: .88rem; line-height: 1.7; }
.project-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(231,185,109,.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #241c14, #100e0c 75%);
  box-shadow: var(--shadow-lg);
}
.project-feature-visual { position: relative; min-width: 0; }
.project-feature-visual .project-photo { height: 100%; min-height: 540px; }
.project-feature-visual img { position: absolute; inset: 0; }
.project-feature-caption {
  position: absolute;
  inset-inline: 24px;
  inset-block-end: 22px;
  padding: 10px 14px;
  width: fit-content;
  max-width: calc(100% - 48px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(10,9,8,.82);
  color: #eee6dc;
  font-size: .72rem;
  pointer-events: none;
}
.project-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: clamp(28px, 4vw, 52px);
  min-width: 0;
}
.project-feature-copy h1, .project-feature-copy h2 {
  color: var(--text);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 750;
}
.project-feature-copy > p { color: var(--text-2); font-size: .98rem; line-height: 1.75; }
.project-feature-details {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-block: 22px;
  border-block: 1px solid var(--border);
}
.project-feature-details strong { display: block; margin-bottom: 6px; color: var(--text); font-size: .88rem; }
.project-feature-details span { display: block; color: var(--text-2); font-size: .8rem; line-height: 1.6; }
.project-feature + .project-grid-photos { margin-top: 22px; }
.engineering-evidence-grid--featured { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
.engineering-evidence-grid--featured .project-photo-card:first-child .project-photo { aspect-ratio: 3 / 4; }
.engineering-evidence-grid--featured .project-photo-card:not(:first-child) { margin-top: 44px; }
.hero-panel-media .project-photo { height: 250px; }
.hero-panel-media::after, .hero-panel-badge { pointer-events: none; }
.project-sector-photo { object-position: 50% 56%; }
.project-dialog {
  inset: 0;
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 20px;
  border: 1px solid rgba(231,185,109,.3);
  border-radius: 20px;
  background: #100e0c;
  color: var(--text);
  box-shadow: var(--shadow);
}
.project-dialog::backdrop { background: rgba(5,5,5,.92); }
.project-dialog figure { display: grid; gap: 14px; }
.project-dialog img { display: block; width: 100%; height: min(74dvh, 850px); object-fit: contain; }
.project-dialog figcaption { padding-inline: 38px; color: var(--text-2); font-size: .9rem; text-align: center; }
.project-dialog-close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #211a13;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}
.project-dialog-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[dir="rtl"] .project-feature-copy h2,
[dir="rtl"] .project-feature-copy h1,
[dir="rtl"] .project-photo-copy > span,
[dir="rtl"] .project-feature-label { letter-spacing: 0; }
@media (max-width: 900px) {
  .project-feature { grid-template-columns: 1fr 1fr; }
  .project-feature-visual .project-photo { min-height: 480px; }
  .project-grid-photos { gap: 16px; }
  .project-photo-copy { padding: 20px; }
  .engineering-evidence-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engineering-evidence-grid--featured .project-photo-card:first-child { grid-row: span 2; }
  .engineering-evidence-grid--featured .project-photo-card:not(:first-child) { margin-top: 0; }
  .engineering-evidence-grid--featured .project-photo-card:first-child .project-photo { aspect-ratio: 3 / 5; }
}
@media (max-width: 640px) {
  .project-feature, .project-grid-photos, .engineering-evidence-grid--featured { grid-template-columns: 1fr; }
  .project-feature-visual .project-photo { min-height: 0; height: auto; aspect-ratio: 4 / 5; }
  .project-feature-copy { gap: 20px; padding: 28px 24px; }
  .project-feature-copy h2 { font-size: 1.9rem; }
  .uae-services-page .project-feature-copy { order: -1; }
  .project-feature-caption { inset-inline: 18px; max-width: calc(100% - 36px); font-size: .67rem; }
  .engineering-evidence-grid--featured .project-photo-card:first-child { grid-row: auto; }
  .engineering-evidence-grid--featured .project-photo-card:first-child .project-photo { aspect-ratio: 4 / 5; }
  .project-dialog { padding: 12px; }
  .project-dialog figcaption { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-photo img { transition: none; }
}
@media (max-width: 480px) {
  .topbar .brand { min-width: 0; flex-shrink: 1; }
  .topbar .brand-mark { flex-shrink: 0; }
  .topbar .brand > div:last-child { min-width: 0; }
  .topbar .brand-title { font-size: 11px; letter-spacing: .045em; }
  .topbar .topbar-right { justify-content: flex-start; }
  .topbar .btn-book, .topbar .btn-wa { padding-inline: 12px; font-size: 12px; }
}
