:root {
  --joe-purple: #621772;
  --joe-purple-dark: #40205f;
  --joe-charcoal: #121014;
  --joe-midnight: #17131d;
  --joe-ivory: #f4edf5;
  --joe-pearl: #fffaf1;
  --joe-mist: #efebe3;
  --joe-gold: #b99557;
  --joe-burgundy: #7b2940;
  --joe-ink: #211d22;
  --joe-muted: #706874;
  --joe-line: rgba(33, 29, 34, .14);
  --joe-shadow: 0 24px 70px rgba(25, 15, 35, .12);
  --joe-serif: "Cormorant Garamond", Georgia, serif;
  --joe-sans: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
.page-preloader { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; background: var(--joe-purple-dark); color: #f8e6c3; transition: opacity .35s ease, visibility .35s ease; }
.page-preloader[hidden] { display: none; }
.page-preloader img { width: 120px; height: auto; animation: preloader-pulse 1.6s ease-in-out infinite; }
.page-preloader span { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.preloader-progress { display: flex; align-items: center; gap: 12px; width: min(260px, calc(100vw - 64px)); }
.preloader-progress-track { flex: 1; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(248, 230, 195, .18); }
.preloader-progress-fill { width: 0; height: 100%; border-radius: inherit; background: #f8e6c3; transition: width .18s ease; }
.page-preloader .preloader-progress-value { min-width: 4ch; font-size: .65rem; letter-spacing: .04em; text-align: end; font-variant-numeric: tabular-nums; }
.page-preloader.is-loaded { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloader-pulse { 0%, 100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .page-preloader, .preloader-progress-fill { transition: none; } .page-preloader img { animation: none; } }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--joe-sans);
  color: var(--joe-ink);
  background: var(--joe-pearl);
  text-rendering: optimizeLegibility;
}
body::selection { background: rgba(108, 59, 170, .18); }
img, video { max-width: 100%; display: block; }
a { color: var(--joe-purple); text-decoration-thickness: .08em; text-underline-offset: .18em; text-decoration:none; }
a:hover { color: var(--joe-purple-dark); }
:focus-visible { outline: 3px solid rgba(108, 59, 170, .45); outline-offset: 4px; }

.serif, h1, h2, .display-title {
  font-family: var(--joe-serif);
  font-weight: 600;
  line-height: .94;
  letter-spacing: 0;
}
h1, h2, h3, h4, h5, h6, p { overflow-wrap: anywhere; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--joe-purple);
}
.eyebrow-light {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--joe-gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--joe-gold); }
.eyebrow-light::before { content: ""; width: 28px; height: 1px; background: var(--joe-gold); }

.lead-copy { font-size: clamp(1.04rem, 2vw, 1.28rem); line-height: 1.75; color: var(--joe-muted); }
.text-muted-lux { color: var(--joe-muted); }
.section-pad { padding: clamp(72px, 9vw, 128px) 0; }
.section-pad-sm { padding: clamp(48px, 7vw, 86px) 0; }
.bg-ivory { background: var(--joe-ivory); }
.bg-midnight { background: var(--joe-midnight); color: rgba(255, 250, 241, .9); }
.bg-midnight .text-muted-lux, .bg-midnight .lead-copy { color: rgba(255, 250, 241, .68); }
.container-wide { justify-items: center; width: min(100% - 32px, 1440px); margin-inline: auto; }

.lux-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1030;
  transition: background .32s ease, border-color .32s ease, box-shadow .32s ease;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  background: rgba(18, 16, 20, .18);
  backdrop-filter: blur(18px);
}
.lux-header.is-solid, body:not(.has-hero-main) .lux-header {
  background: rgba(255, 250, 241, .96);
  border-color: rgba(33, 29, 34, .12);
  box-shadow: 0 10px 36px rgba(25, 15, 35, .08);
}



.lux-header .navbar { min-height: 78px; }
.lux-header .navbar-brand img { height: 54px; width: auto; object-fit: contain; }
.city-switcher-row {
  position: fixed;
  inset: auto 16px calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.city-switcher {
  position: relative;
  isolation: isolate;
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 280px);
  padding: 5px;
  border: 1px solid rgba(255, 250, 241, .28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(64, 32, 95, .78), rgba(23, 19, 29, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 28px rgba(18, 10, 24, .12);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
.city-switcher-glass {
  position: absolute;
  z-index: -1;
  inset: 5px auto 5px 5px;
  width: calc((100% - 10px) / 2);
  border: 1px solid rgba(255, 250, 241, .48);
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 250, 241, .36), rgba(185, 149, 87, .18));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), 0 3px 12px rgba(0, 0, 0, .12);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.city-switcher[data-city="abu-dhabi"] .city-switcher-glass { transform: translateX(0); }
.city-switcher-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 250, 241, .72);
  font: 600 .82rem var(--joe-sans);
  cursor: pointer;
  transition: color .25s ease;
}
.city-switcher-button:hover, .city-switcher-button[aria-current="true"] { color: var(--joe-pearl); }
.city-switcher-button:focus-visible { outline: 2px solid var(--joe-gold); outline-offset: -3px; }
.city-switcher-divider { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: rgba(185, 149, 87, .6); pointer-events: none; font-size: .75rem; }
@media (max-width: 991px) {
  body:has(.bottom-action-bar) .city-switcher-row { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .city-switcher-glass, .city-switcher-button { transition: none; }
}
.lux-header .nav-link {
  color: rgba(255, 250, 241, .88);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.lux-header.is-solid .nav-link, body:not(.has-hero-main) .lux-header .nav-link { color: var(--joe-ink); }
.lux-header .nav-link:hover, .lux-header .nav-link.active { color: var(--joe-gold); }
.navbar-toggler { border: 1px solid rgba(255, 255, 255, .35); width: 46px; height: 46px; border-radius: 50%; }
.navbar-toggler-icon { filter: invert(1); }
.lux-header.is-solid .navbar-toggler-icon, body:not(.has-hero-main) .navbar-toggler-icon { filter: none; }
.lux-header.is-solid .navbar-toggler, body:not(.has-hero-main) .navbar-toggler { border-color: var(--joe-line); }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: .45rem .72rem;
  font-size: .76rem;
  font-weight: 700;
  background: transparent;
}
.lux-header.is-solid .language-switch, body:not(.has-hero-main) .language-switch {
  border-color: var(--joe-line);
  color: var(--joe-ink);
}

.btn-lux, .btn-lux-outline, .btn-lux-light, .btn-lux-simple {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 999px;
  padding: .82rem 1.18rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.btn-lux { color: #fff; background: var(--joe-purple); border: 1px solid var(--joe-purple); box-shadow: 0 12px 30px rgba(108, 59, 170, .24); }
.btn-lux:hover { color: #fff; background: var(--joe-purple-dark); border-color: var(--joe-purple-dark); transform: translateY(-2px); }
.btn-lux-outline { color: var(--joe-ink); background: transparent; border: 1px solid rgba(33, 29, 34, .22); }
.btn-lux-outline:hover { color: var(--joe-ink); border-color: var(--joe-gold); background: rgba(185, 149, 87, .08); transform: translateY(-2px); }
.btn-lux-light { color: var(--joe-pearl); border: 1px solid rgba(255, 250, 241, .38); background: rgba(255, 255, 255, .08); }
.btn-lux-light:hover { color: var(--joe-charcoal); background: var(--joe-pearl); transform: translateY(-2px); }
.btn-lux-simple { color: var(--joe-ink); background: transparent; text-decoration: underline; border: 0; padding: 0; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.btn-lux-simple:hover { color: var(--joe-ink); transform: translateY(-2px); }

.lux-header.is-solid .btn-lux-light, body:not(.has-hero-main) .lux-header .btn-lux-light{
  color: var(--joe-ink); background: transparent; border: 1px solid rgba(33, 29, 34, .22);
}
.hero-main {
  position: relative;
  min-height: min(100vh);
  display: flex;
  overflow: hidden;
  background: var(--joe-midnight);
  color: #fff;
}
.hero-main-media { position: absolute; inset: 0; z-index: 0; }
.hero-main-media video, .hero-main-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-main-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 20, .84) 0%, rgba(18, 16, 20, .46) 44%, rgba(18, 16, 20, .16) 100%),
    linear-gradient(0deg, rgba(18, 16, 20, .92) 0%, rgba(18, 16, 20, .08) 38%);
}
.hero-main-inner { position: relative; z-index: 1; padding: 156px 0 42px; width: 100%; }
.hero-main h1 { max-width: 820px; font-size: clamp(3.45rem, 5vw, 5.2rem); }
.hero-main-kicker {
  margin-bottom: 1.3rem;
  color: rgba(255, 250, 241, .78);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
  /* font-weight: 800; */
}
.hero-main-details {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 1px;
  max-width: 520px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
}
.hero-main-detail { padding: 1rem; background: rgba(18, 16, 20, .38); backdrop-filter: blur(14px); }
.hero-main-detail span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 250, 241, .58); margin-bottom: .28rem; font-weight: 400; }
.hero-main-detail strong { font-size: .95rem; color: #fff; }
.hero-main-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-main-hint {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(42px, 6vw, 72px);
  color: rgba(255, 250, 241, .7);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.hero-main-hint::after { content: ""; flex: 1; height: 1px; background: rgba(255, 250, 241, .18); }
.video-wrapper {
      width: 100%;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      border-radius: 20px;
      pointer-events: none;
    }

    .video-wrapper iframe {
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
    }

.bottom-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(18, 16, 20, .96);
  border-top: 1px solid rgba(255, 250, 241, .16);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.bottom-action-bar a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: .38rem; color: #fff; text-decoration: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.bottom-action-bar a:first-child { background: var(--joe-purple); }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .eyebrow::before { order: 2; }
html[dir="rtl"] .icon-list li { flex-direction: row-reverse; }
html[dir="rtl"] .hero-main-media::after {
  background:
    linear-gradient(270deg, rgba(18, 16, 20, .84) 0%, rgba(18, 16, 20, .46) 44%, rgba(18, 16, 20, .16) 100%),
    linear-gradient(0deg, rgba(18, 16, 20, .92) 0%, rgba(18, 16, 20, .08) 38%);
}

.muted-image img {
  filter: grayscale(1); 
}
.muted-image img:hover {
  filter: grayscale(0); 
}

@media (max-width: 1199px) {
  .directory-tools { grid-template-columns: 1fr 1fr; }
  .directory-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  body { padding-bottom: 72px; }
  .lux-header { 
    /* background: rgba(255, 250, 241, .98);  */
    border-color: var(--joe-line); 
  }
  .lux-header .nav-link, .lux-header .language-switch { color: var(--joe-ink); }
  .navbar-toggler-icon { filter: none; }
  .navbar-collapse { padding: 1rem 0 1.4rem; }
  .hero-main { min-height: 100vh; }
  .hero-main-inner { padding-top: 132px; }
  .hero-main h1 { font-size: clamp(3.1rem, 10vw, 5.6rem); }
  .hero-main-details, .stats-grid, .experience-grid, .editorial-grid, .journey-grid, .page-grid, .footer-grid { grid-template-columns: 1fr; }
  .experience-tile { min-height: 420px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; }
  .bento-item.large, .bento-item.medium, .bento-item.small { grid-column: span 2; grid-row: span 1; }
  .directory-grid, .news-grid, .directory-tools { grid-template-columns: 1fr; }
  .bottom-action-bar { display: grid; }
}
@media (max-width: 575px) {
  .container-wide { width: min(100% - 22px, 1440px); }
  .why-exhibit-list { grid-template-columns: 1fr; }
  .why-exhibit-item:last-child { grid-column: auto; }
  .hero-main-details { grid-template-columns: 1fr 1fr; }
  .hero-main-actions .btn-lux, .hero-main-actions .btn-lux-outline, .hero-main-actions .btn-lux-light { width: 100%; }
  .section-pad { padding: 58px 0; }
  .media-frame, .media-frame.tall { min-height: 330px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Homepage edition selection: frosted glass over the background video */
.edition-page { background: var(--joe-midnight); padding-bottom: 0; }
.edition-page .hero-main { min-height: 100svh; align-items: center; }
.edition-page .hero-main-inner { padding: clamp(20px, 4svh, 44px) 0; }
.edition-page .container-wide { width: min(100% - 48px, 1000px); }
.edition-page .hero-main-logo { width: min(70%, 310px); height: auto; margin-inline: auto; }
.edition-page .hero-main-media { background: url('../images/hero-banner.jpg') center / cover; }
.edition-page .hero-main-media::after {
  background: linear-gradient(180deg, rgba(18, 16, 20, .48), rgba(31, 18, 40, .35) 45%, rgba(18, 16, 20, .72));
}
.edition-selector { width: 100%; margin-top: clamp(18px, 3svh, 30px); }
.edition-selector-heading { text-align: center; margin-bottom: clamp(16px, 2.5svh, 24px); }
.edition-selector-heading h1 { max-width: none; margin: 0; color: var(--joe-pearl); font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; }
.locations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.edition-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 3svh, 28px);
  border: 1px solid rgba(255, 250, 241, .34);
  border-radius: 20px;
  color: var(--joe-pearl);
  background: linear-gradient(135deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .04)), rgba(30, 20, 37, .3);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 16px 40px rgba(0, 0, 0, .15);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.edition-card-top { display: flex; align-items: center; }
.edition-date { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid rgba(255, 250, 241, .2); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #f3dfb9; font-size: .68rem; font-weight: 500; letter-spacing: .03em; }
.edition-card-copy { flex: 1; padding-block: clamp(16px, 2.5svh, 24px) 20px; }
.edition-label { color: #efd5a5; font-size: .59rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.edition-card h2 { margin: 8px 0 12px; color: var(--joe-pearl); font-size: clamp(2.4rem, 4.6vw, 3.5rem); line-height: 1; }
.edition-card p { max-width: 390px; margin: 0; color: rgba(255, 250, 241, .9); font-size: .8rem; line-height: 1.7; }
.edition-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 250, 241, .23); color: #f3dfb9; font-size: .67rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.edition-arrow { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid rgba(255, 250, 241, .4); border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 1.1rem; transition: background .25s ease, color .25s ease; }
.edition-card:hover, .edition-card:focus-visible { color: var(--joe-pearl); border-color: rgba(243, 223, 185, .8); background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .07)), rgba(30, 20, 37, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 20px 44px rgba(0, 0, 0, .2); transform: translateY(-3px); }
.edition-card:focus-visible { outline: 2px solid #f3dfb9; outline-offset: 4px; }
.edition-card:hover .edition-arrow, .edition-card:focus-visible .edition-arrow { background: #f3dfb9; color: var(--joe-midnight); }
.edition-page .hero-main-hint { justify-content: center; margin-top: clamp(18px, 3svh, 28px); color: rgba(255, 250, 241, .8); font-size: .6rem; text-align: center; line-height: 1.6; }
.edition-page .hero-main-hint::after { display: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .edition-card { background: rgba(39, 28, 47, .92); }
  .edition-card:hover, .edition-card:focus-visible { background: rgba(54, 40, 63, .96); }
}
@media (max-width: 640px) {
  .edition-page .container-wide { width: calc(100% - 32px); }
  .edition-page .hero-main-logo { width: min(65%, 240px); }
  .locations-grid { grid-template-columns: 1fr; gap: 12px; }
  .edition-card { padding: 16px 20px; border-radius: 16px; }
  .edition-card-copy { padding-block: 10px 12px; }
  .edition-card h2 { font-size: 2.25rem; margin: 5px 0 8px; }
  .edition-card p { max-width: none; font-size: .75rem; line-height: 1.5; }
  .edition-date { padding: 5px 9px; font-size: .62rem; }
  .edition-card-footer { padding-top: 10px; font-size: .6rem; }
  .edition-arrow { width: 28px; height: 28px; }
}
@media (max-height: 740px) {
  .edition-page .hero-main-inner { padding-block: 16px; }
  .edition-page .hero-main-logo { width: min(55%, 350px); }
  .edition-selector { margin-top: 14px; }
  .edition-selector-heading { margin-bottom: 14px; }
  .edition-selector-heading h1 { font-size: 1.85rem; }
  .edition-page .hero-main-hint { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .edition-card:hover, .edition-card:focus-visible { transform: none; }
}
