body.theme-v1 {
  --page: #edf8fe; --panel: #fff; --soft: #dceffb;
  --text: #092d50; --muted: #344e67; --accent: #006798;
  --dark: #092d50; --on-dark: #93eaff; --button: #005986;
  --button-text: #fff; --border: #bdd9ec;
}
body.theme-v2 {
  --page: #fff9f0; --panel: #fff; --soft: #fff0df;
  --text: #092d50; --muted: #3b5063; --accent: #a43815;
  --dark: #123758; --on-dark: #ffca98; --button: #ad3e15;
  --button-text: #fff; --border: #ead6c5;
}
body.theme-v3 {
  --page: #081e36; --panel: #102c48; --soft: #113855;
  --text: #f3faff; --muted: #c7dcee; --accent: #7de4ff;
  --dark: #06172a; --on-dark: #ffb56f; --button: #ffa958;
  --button-text: #172d43; --border: #395d78;
}
body.theme .header { border-top: 4px solid #0088c4; }
body.theme-v2 .header { border-top-color: #f38126; }
body.theme-v3 .header { border-top-color: #ef4d41; }
body.theme .header .brand > img {
  width: clamp(73px, 7vw, 104px);
  height: clamp(73px, 7vw, 104px);
  flex-shrink: 0;
  background: #fff;
  object-fit: contain;
}
body.theme .footer .brand > img { width: 75px; height: 75px; }
body.theme .header-in { min-height: 95px; }
body.theme .hero-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--soft);
}
body.theme .hero-art {
  width: 100%;
  border-radius: 0;
  background: var(--dark);
}
body.theme .hero-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
body.theme .hero-layout .hero-copy {
  width: 100%;
  max-width: none;
  padding: clamp(26px, 4vw, 54px) max(20px, calc((100% - 1240px)/2));
  border-bottom: 3px solid #13a8db;
}
body.theme .hero-layout h1 { font-size: clamp(35px, 5vw, 69px); }
body.theme-v1 .hero-layout .hero-copy { order: -1; }
body.theme-v2 .hero-layout .hero-copy { border-bottom-color: #f38126; }
body.theme-v3 .hero-layout .hero-copy {
  border-bottom-color: #ef4d41;
  text-align: left;
}
body.theme .about-band { align-items: center; }
body.theme .about-image { min-height: 0; }
body.theme .about-image > img {
  position: static;
  width: 100%;
  height: auto;
  animation: none;
}
body.theme .about-copy {
  background:
    linear-gradient(100deg, var(--soft) 24%, color-mix(in srgb, var(--soft) 82%, transparent)),
    url('../images/royal-dubai-port-1100.webp') center / cover;
}
body.theme .network-aside {
  background:
    linear-gradient(90deg, var(--panel) 28%, color-mix(in srgb, var(--panel) 85%, transparent)),
    url('../images/royal-office-640.webp') center / cover;
}
body.theme-v3 .division-card {
  display: flex;
  flex-direction: column;
}
body.theme-v3 .division-card > img,
body.theme-v3 .inner-photo img,
body.theme-v3 .cta-photo img,
body.theme-v3 .mission-sky img,
body.theme-v3 .inner-img img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  position: static;
  transform: none;
}
body.theme-v3 .inner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
body.theme-v3 .inner-img { position: static; }
body.theme-v3 .inner-shade { display: none; }
body.theme-v3 .inner-copy { padding-block: 28px; }
body.theme-v3 .mission-sky { min-height: 0; }
@media (max-width: 760px) {
  body.theme .header-in { min-height: 78px; }
  body.theme .header .brand { gap: 6px; }
  body.theme .header .brand-name { font-size: 13px; }
  body.theme .header .brand-name small { display: none; }
  body.theme-v3 .inner-hero { grid-template-columns: 1fr; }
  body.theme-v3 .cta-photo { height: auto; }
}

/* Keep the home banners independent of the source photos' intrinsic height. */
body:is(.theme-v1, .theme-v2) .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(390px, 39vw, 655px);
}
body:is(.theme-v1, .theme-v2) .hero-layout > :is(.hero-copy, .hero-art) {
  grid-area: 1 / 1;
}
body:is(.theme-v1, .theme-v2) .hero-art {
  position: relative;
  align-self: stretch;
  margin: 0;
}
body:is(.theme-v1, .theme-v2) .hero-art img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 60% 34%;
}
body:is(.theme-v1, .theme-v2) .hero-layout .hero-copy {
  position: relative;
  z-index: 1;
  align-content: start;
  padding: clamp(40px, 7vw, 105px) max(20px, calc((100% - 1240px)/2)) 38px;
  background: linear-gradient(90deg, #061c35f5 0%, #061c35b3 38%, #061c351a 77%);
  color: #fff;
  border: 0;
}
body:is(.theme-v1, .theme-v2) .hero-layout :is(h1, p) { color: #fff; }
body:is(.theme-v1, .theme-v2) .hero-layout .kicker { color: #b8edff; }
body:is(.theme-v1, .theme-v2) .hero-layout .outline-btn {
  color: #fff;
  border-color: #fff;
  background: #092d5099;
}
body.theme-v1 .hero-layout h1 {
  max-width: 690px;
  font-size: clamp(35px, 4.25vw, 64px);
}
body.theme-v2 .hero-layout .hero-copy {
  align-content: center;
  text-align: center;
  background: linear-gradient(180deg, #10263a70, #10263ac9);
}
body.theme-v2 .hero-art img { object-position: center 47%; }
body.theme-v3 .hero-art img {
  max-height: clamp(260px, 39vw, 570px);
  object-fit: contain;
}
body.theme :is(.inner-photo, .about-image, .map-image) img {
  max-height: 390px;
  object-fit: contain;
}
body.theme .carousel-slide img {
  max-height: clamp(220px, 44vw, 465px);
}
body.theme .about-image { background: var(--soft); }
body.theme-v3 .inner-img img { max-height: 370px; }
body.theme-v3 .cta-photo img { max-height: 235px; }
@media (max-width: 600px) {
  body:is(.theme-v1, .theme-v2) .hero-layout { min-height: 370px; }
  body:is(.theme-v1, .theme-v2) .hero-layout .hero-copy { padding: 42px 20px 30px; }
  body.theme-v1 .hero-layout .hero-copy {
    background: linear-gradient(90deg, #061c35ed, #061c3566);
  }
}

/* Shared cinematic homepage, with the original layout alignment per version. */
body.theme .header {
  background: #fff;
  color: #092d50;
  --text: #092d50;
  --accent: #006798;
  border-top: 0;
}
body.theme .header .dropdown,
body.theme .header .mobile-nav:not([hidden]) { background: #fff; }
body.theme .header .dropdown a:hover,
body.theme .header .mobile-nav a:hover { background: #edf8fe; }
body.theme .header .brand > img {
  width: clamp(81px, 8vw, 116px);
  height: clamp(81px, 8vw, 116px);
}
body.theme .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(396px, 43vw, 680px);
  isolation: isolate;
}
body.theme .hero-layout > :is(.hero-art, .hero-copy) { grid-area: 1 / 1; }
body.theme .hero-art {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  background: #0b2840;
}
body.theme .hero-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
body.theme .hero-layout .hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: 100%;
  padding: clamp(30px, 5vw, 72px) max(22px, calc((100% - 1240px)/2));
  color: #fff;
  background: linear-gradient(90deg, #071d34f5, #071d3485 42%, #071d3408 76%);
  border: 0;
}
body.theme .hero-layout :is(h1, p) { color: #fff; max-width: 670px; }
body.theme .hero-layout .kicker { color: #b8edff; }
body.theme .hero-layout .outline-btn { background: #092d50a3; border-color: #fff; color: #fff; }
body.theme-v2 .hero-layout .hero-copy {
  align-content: end;
  justify-items: center;
  background: linear-gradient(180deg, transparent 24%, #081d348a 56%, #081d34f5);
}
body.theme-v3 .hero-layout .hero-copy {
  background: linear-gradient(90deg, #081b30f5, #11263c8c 44%, transparent 79%);
}
body.theme .carousel-stage {
  max-width: 700px;
  margin-inline: auto;
}
body.theme .carousel-slide img { max-height: none; }
body.theme .carousel-controls { justify-content: center; }

.site-spotlight {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle, #fff 0 11%, #d7edf9 12%, #0a2947 55%, #071a2d 100%);
  animation: spot-fade 820ms both;
}
.site-spotlight img { width: 108px; border-radius: 16px; animation: spot-logo 680ms ease-out both; }
@keyframes spot-fade { 0%, 58% { opacity: 1; } 100% { opacity: 0; } }
@keyframes spot-logo { from { opacity: 0; transform: scale(.78); } to { opacity: 1; transform: scale(1); } }
@keyframes section-arrival { from { opacity: .25; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: section-arrival .65s .18s both; }
  .hero-copy > .hero-actions { animation-delay: .36s; }
  .section-arrived { animation: section-arrival .6s ease-out both; }
  .hero-actions a, .division-card, .detail-grid article { transition: transform .24s, box-shadow .24s; }
  .hero-actions a:hover, .division-card:hover, .detail-grid article:hover { transform: translateY(-4px); box-shadow: 0 9px 23px #071c342b; }
}
@media (max-width: 760px) {
  body.theme .hero-layout { min-height: 0; }
  body.theme .hero-art img {
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: contain;
  }
  body.theme .hero-layout .hero-copy {
    align-content: end;
    padding: clamp(132px, 38vw, 280px) 20px 26px;
    background: linear-gradient(180deg, transparent 0%, #081d3466 26%, #081d34 58%);
  }
  body.theme .hero-layout h1 { font-size: clamp(28px, 7vw, 44px); }
}
@media (min-width: 2100px) {
  body.theme .hero-layout { min-height: 32vw; }
}

/* Animate light across the still without scaling or shifting the landmarks. */
@media (prefers-reduced-motion: no-preference) {
  body.theme .hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(112deg, transparent 25%, #a9dfff24 53%, transparent 79%);
    pointer-events: none;
    animation: hero-light-drift 10s ease-in-out infinite alternate;
  }
}
@keyframes hero-light-drift {
  from { opacity: .08; }
  to { opacity: .62; }
}
