.site-hero {
  --hero-background: #020409;
  --hero-title: #f5f8ff;
  --hero-body: #a7b6cf;
  /* Align the browser glyphs to the Figma baselines without moving adjacent groups. */
  --hero-heading-shift: -3px;
  --hero-invitation-shift: -1px;
  --hero-description-shift: -1px;
  --hero-language-shift: -2px;
  --atmosphere-top: 277px;
  --desktop-copy-height: 489px;
  --mobile-hero-height: 474px;
  --mobile-metal-top: 97px;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block-start: 28px;
  background: var(--hero-background);
  color: var(--hero-title);
  font-family: 'Noto Sans SC', 'PingFang SC', Arial, sans-serif;
}

.site-hero.hero-en {
  --atmosphere-top: 365px;
  --desktop-copy-height: 577px;
  --mobile-hero-height: 590px;
  --mobile-metal-top: 134px;
}

.site-hero.hero-ar {
  --hero-heading-shift: 0px;
  --hero-invitation-shift: 0px;
  --hero-description-shift: 0px;
  --atmosphere-top: 348px;
  --desktop-copy-height: 560px;
  --mobile-hero-height: 589px;
  --mobile-metal-top: 142px;
  font-family: Cairo, 'Noto Sans Arabic', Tahoma, sans-serif;
}

.hero-header {
  display: grid;
  grid-template-columns: minmax(148px, 1fr) minmax(240px, 520px) minmax(182px, 292px);
  gap: clamp(14px, 3.333vw, 48px);
  align-items: start;
}

.hero-brand,
.hero-gallery-logo {
  position: relative;
  overflow: hidden;
  inline-size: 148px;
  block-size: 53px;
  direction: ltr;
}

.hero-logo-detail,
.hero-logo-mark {
  display: block;
  position: absolute;
}

.hero-logo-detail {
  inset: 18.64% 92.83% 18.11% 0;
  display: grid;
  place-items: center;
  transform: scaleY(-1);
}

.hero-logo-mark {
  inset: .23% 0 -.3%;
  mask-image: var(--logo-mask);
  mask-mode: alpha;
  mask-repeat: no-repeat;
  mask-position: 0 -.12px;
}

.hero-logo-detail img,
.hero-logo-mark img {
  display: block;
  max-inline-size: none;
}

.hero-navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.389vw, 20px);
  margin-block-start: 6px;
  font-size: clamp(14px, 1.528vw, 22px);
  line-height: 1.545;
}

.hero-ar .hero-navigation { line-height: 1.682; }

.hero-navigation a {
  color: var(--hero-body);
  text-decoration: none;
}

.hero-navigation a:hover { color: var(--hero-title); }

.hero-brand:focus-visible,
.hero-navigation a:focus-visible,
.hero-languages a:focus-visible {
  border-radius: 5px;
  outline: 2px solid #9dc5ff;
  outline-offset: 3px;
}

.hero-languages {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 50px;
  border: 1px solid #263c5b;
  border-radius: 25px;
  background: linear-gradient(#152238, #0c1626 30%, #060c16);
  box-shadow: 0 18px 45px rgb(0 0 0 / .5);
  font: 400 clamp(14px, 1.389vw, 20px) / 1.6 'Noto Sans SC', 'PingFang SC', Arial, sans-serif;
  white-space: nowrap;
}

.hero-languages::before {
  position: absolute;
  inset: -1px auto auto 23px;
  inline-size: 98px;
  block-size: 1px;
  background: rgb(157 197 255 / .25);
  content: '';
}

.hero-ar .hero-languages::before { inset: -1px 23px auto auto; }

.hero-languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 40px;
  color: var(--hero-title);
  text-decoration: none;
}

.hero-languages a,
.hero-language-divider {
  position: relative;
  inset-block-start: var(--hero-language-shift);
}

.hero-language-divider { white-space: pre; }

.hero-languages a[lang='ar'] { font-family: Cairo, 'Noto Sans Arabic', Tahoma, sans-serif; }
.hero-languages a[aria-current='page'] { font-weight: 700; }
.hero-languages a:hover { text-decoration: underline; text-underline-offset: .18em; }

.hero-introduction {
  padding-block-start: clamp(76px, 6.875vw, 99px);
  padding-block-end: clamp(54px, 6.111vw, 88px);
}

.hero-copy {
  position: relative;
  text-align: center;
}

@media (min-width: 1440px) {
  .hero-copy { min-block-size: var(--desktop-copy-height); }
}

.hero-heading {
  position: relative;
  inset-block-start: var(--hero-heading-shift);
  margin: 0;
  font-size: clamp(48px, 5.833334vw, 84px);
  font-weight: 700;
  line-height: 1.33333;
  overflow-wrap: break-word;
}

.hero-heading > span { display: block; }
.hero-ar .hero-heading { line-height: 1.65476; }

.hero-invitation {
  position: relative;
  inset-block-start: var(--hero-invitation-shift);
  margin-block: 17px 0;
  color: #cee5ff;
  font-size: clamp(22px, 2.222223vw, 32px);
  line-height: 1.5;
}

.hero-ar .hero-invitation { line-height: 1.65625; }

.hero-description {
  position: relative;
  inset-block-start: var(--hero-description-shift);
  max-inline-size: 1120px;
  margin-block-start: 24px;
  margin-inline: auto;
  color: var(--hero-body);
  font-size: clamp(17px, 1.944445vw, 28px);
  line-height: 1.5714;
}

.hero-ar .hero-description { line-height: 1.6786; }
.hero-description p { margin: 0; }
.hero-description p + p { margin-block-start: 1lh; }

.hero-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.hero-atmosphere-image {
  position: absolute;
  isolation: isolate;
  inset: var(--atmosphere-top) 0 auto;
  block-size: clamp(420px, 48.611112vw, 700px);
  opacity: .7;
}

.hero-atmosphere-image picture,
.hero-atmosphere-image img,
.hero-material-image picture,
.hero-material-image img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.hero-atmosphere-image::after,
.hero-material-image::after {
  position: absolute;
  inset: 0;
  background: #227bff;
  mix-blend-mode: color;
  opacity: .8;
  content: '';
}

.hero-atmosphere::before,
.hero-atmosphere::after {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  content: '';
}

.hero-atmosphere::before {
  inset-block-start: 270px;
  block-size: 340px;
  background: linear-gradient(var(--hero-background), #02040900);
}

.hero-atmosphere::after {
  inset-block-start: 770px;
  block-size: 250px;
  background: linear-gradient(#02040900, var(--hero-background));
}

.hero-gallery {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1280 / 420;
  margin-block-start: clamp(48px, 5.556vw, 80px);
  direction: ltr;
}

.hero-material {
  box-sizing: border-box;
  position: absolute;
  inline-size: 18.28125%;
  aspect-ratio: 234 / 214;
  overflow: clip;
}

.hero-material::before,
.hero-material::after {
  position: absolute;
  content: '';
}

.hero-material::before {
  inset: 0;
  border: 1px solid #263c5b;
  border-radius: clamp(12px, 1.944445vw, 28px);
  background: linear-gradient(#152238, #0c1626 30%, #060c16);
  box-shadow: 0 18px 45px rgb(0 0 0 / .5);
}

.hero-material::after {
  inset: 0 10.25641% auto;
  block-size: 1px;
  background: rgb(157 197 255 / .25);
}

.hero-material-image {
  position: absolute;
  isolation: isolate;
  inset: clamp(4px, .555556vw, 8px);
  overflow: hidden;
  border-radius: clamp(9px, 1.528vw, 22px);
}

.hero-material-1 { left: -2.8436%; top: 39.8886%; rotate: 17deg; }
.hero-material-2 { left: 16.2358%; top: 16.425%; rotate: 9deg; }
.hero-material-3 { left: 37.8125%; top: 0; }
.hero-material-4 { left: 59.1639%; top: 7.708%; rotate: -9deg; }
.hero-material-5 { left: 77.6696%; top: 23.6%; rotate: -17deg; }
.hero-material-5 .hero-material-image::after { display: none; }

/* Correct the blue blend on wide-gamut displays to match the Figma sRGB render. */
@media (color-gamut: p3) {
  @supports (color: color(display-p3 0 0 1)) {
    .hero-atmosphere-image::after {
      background: color(display-p3 .0039 .3428 .9287);
      opacity: .682;
    }

    .hero-material {
      --hero-tint: color(display-p3 .143 .466 .957);
      --hero-tint-opacity: .7434;
      --hero-soft-light: color(display-p3 .588 .496 .498);
    }

    .hero-material-3 {
      --hero-tint: color(display-p3 .2121 .3989 .9730);
      --hero-tint-opacity: .7378;
      --hero-soft-light: color(display-p3 .4591 .5758 .5272);
    }

    .hero-material:not(.hero-material-5) .hero-material-image::before {
      position: absolute;
      inset: 0;
      z-index: 1;
      background: var(--hero-tint);
      mix-blend-mode: color;
      opacity: var(--hero-tint-opacity);
      content: '';
    }

    .hero-material:not(.hero-material-5) .hero-material-image::after {
      z-index: 2;
      background: var(--hero-soft-light);
      mix-blend-mode: soft-light;
      opacity: 1;
    }
  }
}

.hero-gallery-logo {
  position: absolute;
  top: 70%;
  left: 50%;
  inline-size: 352px;
  block-size: 126.05px;
  transform: translateX(-50%);
  transform-origin: left top;
}

.hero-gallery-logo .hero-logo-mark { mask-position: 0 -.29px; }
.hero-mobile-art { display: none; }

@media (701px <= width <= 1150px) {
  .hero-gallery-logo { transform: translateX(-50%) scale(.76); transform-origin: center top; }
}

@supports (scale: calc(1px / 1px)) {
  .hero-gallery-logo {
    transform: translateX(-50%) scale(clamp(.48, calc(100cqi / 1280px), 1));
    transform-origin: center top;
  }
}

@media (max-width: 700px) {
  .site-hero {
    --hero-heading-shift: -1px;
    --hero-invitation-shift: -1px;
    --hero-description-shift: 0px;
    --hero-language-shift: -1px;
    box-sizing: border-box;
    min-block-size: var(--mobile-hero-height);
    padding-block-start: 24px;
    background: #000;
  }

  .site-hero.hero-ar {
    --hero-heading-shift: 0px;
    --hero-invitation-shift: 0px;
  }

  .site-hero .shell { inline-size: calc(100% - 40px); }

  .hero-header {
    grid-template-columns: max-content minmax(0, 222px);
    justify-content: space-between;
    gap: clamp(6px, 4.103vw, 16px);
  }

  .hero-brand {
    --logo-mask: var(--logo-mask-mobile);
    inline-size: 112px;
    block-size: 40.107px;
  }

  .hero-brand .hero-logo-mark { mask-position: 0 -.094px; }

  .hero-languages {
    min-block-size: 38px;
    border-color: #2b4362;
    background: linear-gradient(#17263d, #0a1424 50%, #050b14);
    box-shadow: none;
    font-size: 14px;
    line-height: 1.714;
  }

  .hero-languages a { min-block-size: 36px; }
  .hero-languages::before,
  .hero-navigation,
  .hero-atmosphere,
  .hero-gallery { display: none; }

  .hero-introduction {
    padding-block-start: 51.893px;
    padding-block-end: 34px;
  }

  .hero-copy { text-align: start; }

  .hero-heading {
    max-inline-size: 282px;
    font-size: 29px;
    line-height: 40px;
  }

  .hero-zh .hero-heading {
    max-inline-size: 238px;
    font-size: 32px;
    line-height: 44px;
  }

  .hero-ar .hero-heading { line-height: 48px; }

  .hero-invitation {
    margin-block-start: 12px;
    color: var(--hero-title);
    font-size: 21px;
    line-height: 32px;
  }

  .hero-ar .hero-invitation { line-height: 35px; }

  .hero-description {
    color: #adbed5;
    font-size: 17px;
    line-height: 28px;
  }

  .hero-ar .hero-description { line-height: 32px; }

  .hero-mobile-art {
    position: absolute;
    inset-block-start: var(--mobile-metal-top);
    inset-inline-end: -3px;
    display: block;
    inline-size: 198px;
    block-size: 170px;
    pointer-events: none;
  }

  .hero-mobile-art picture,
  .hero-mobile-art img {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
  }

  .hero-mobile-art img { opacity: .5; }

  .hero-mobile-art::after {
    position: absolute;
    inset-block-start: calc(86px - var(--mobile-metal-top));
    inset-inline-end: 81px;
    inline-size: 170px;
    block-size: 252px;
    background: linear-gradient(to right, #000, rgb(0 0 0 / .73) 50%, #03060c00);
    content: '';
  }

  .hero-ar .hero-mobile-art { inset-inline-end: 0; }

  .hero-ar .hero-mobile-art::after {
    inset-block-start: -8px;
    inset-inline-end: 0;
    inline-size: 275px;
    block-size: 186px;
    background: linear-gradient(to left, #000, rgb(0 0 0 / .73) 50%, #03060c00);
  }
}

@media (max-width: 350px) {
  .hero-header { gap: 6px; }
  .hero-languages { font-size: 12px; }
}
