@font-face {
  font-family: Alexandria;
  src: url("assets/fonts/alexandria.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Alexandria, sans-serif;
  color: #fff;
  background: #000;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(5 10 17 / 61%), rgb(5 10 17 / 54%) 55%, rgb(5 10 17 / 73%)), url("assets/desert.webp") center / cover no-repeat;
  opacity: 1;
  transition: opacity 1200ms ease;
}

/* The temporary logo shares the exact artwork and final proportions. */
.intro { display: none; }
.intro-active { overflow: hidden; }
.intro-active .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 5;
  background: #000;
}
.intro__logo {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(220px, 26vw, 380px);
  aspect-ratio: 433.3065 / 160.7127;
  transform-origin: top left;
  /* A centered fallback is visible even before the animation starts. */
  margin-left: 50vw;
  margin-top: 50svh;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.intro__logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__ghost { opacity: .25; }
.intro__fill {
  opacity: 0;
  mask-image: linear-gradient(to right, transparent 44%, #000 56%);
  mask-size: 240% 100%;
  mask-position: 0% 50%;
  mask-repeat: no-repeat;
}
.intro__hint {
  position: absolute;
  top: calc(100% + 48px);
  inset-inline: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #d2a94a;
  font: 400 12px/1.5 Alexandria, sans-serif;
  white-space: nowrap;
  transition: opacity 420ms ease-out, transform 420ms ease-out, visibility 0s linear 420ms;
}
.intro__hint span + span { border-right: 1px solid #766f63; padding-right: 10px; }
.intro-playing .intro__logo { pointer-events: none; outline: none; }
.intro-playing .intro__hint {
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
}
.intro-active .brand { visibility: hidden; }
.intro-active body::before,
.intro-active .introduction,
.intro-active .contact { opacity: 0; pointer-events: none; }
.intro-reveal .copy > *, .intro-reveal .contact {
  animation: content-fade 950ms ease both;
}
.intro-reveal .copy > :nth-child(2) { animation-delay: 100ms; }
.intro-reveal .copy > :nth-child(3) { animation-delay: 180ms; }
.intro-reveal .copy--en > :nth-child(1) { animation-delay: 160ms; }
.intro-reveal .copy--en > :nth-child(2) { animation-delay: 240ms; }
.intro-reveal .copy--en > :nth-child(3) { animation-delay: 320ms; }
.intro-reveal .contact { animation-delay: 380ms; }
@keyframes content-fade { from { opacity: 0; } to { opacity: 1; } }

.landing {
  width: 65.6%;
  max-width: 1440px;
  margin-inline: auto;
  position: relative;
  left: -1.885vw;
  min-height: 100svh;
  padding-block: 19.46vh 12.5vh;
  display: grid;
  grid-template-columns: minmax(0, 728fr) minmax(0, 433fr);
  column-gap: 7.45%;
  align-content: start;
  align-items: start;
  direction: ltr;
  font-size: clamp(13px, .9131vw, 19px);
  line-height: 1.767;
}

.brand { grid-column: 2; grid-row: 1; }
.brand__sound {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.brand img { display: block; width: 100%; height: auto; }
.introduction { grid-column: 1; grid-row: 1; min-width: 0; }
.copy h1, .copy h2 {
  font-size: inherit;
  font-weight: 600;
  line-height: 1.767;
  margin: 0 0 1.8em;
}
.copy p { margin: 0; font-weight: 300; }
.copy--ar { text-align: right; }
.copy--en { margin-top: 7.2em; text-align: left; }
.copy .coming-soon { margin-top: 1.8em; }

.contact {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  direction: rtl;
  gap: clamp(24px, 3.3vw, 70px);
  margin-top: 6.4em;
  font-size: 1.148em;
  font-weight: 600;
  line-height: 1.6;
}
.contact__label { white-space: nowrap; }
.contact__line { height: 1px; flex: 1; background: rgb(255 255 255 / 80%); }
.contact a { color: inherit; text-decoration: none; white-space: nowrap; }
.contact a:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, .brand__sound:focus-visible, .intro__logo:not([aria-disabled]):focus-visible { outline: 2px solid white; outline-offset: 6px; }

@media (min-width: 769px) and (max-width: 1200px) {
  .landing { width: 78%; left: 0; padding-top: 16vh; }
  .contact { gap: 26px; font-size: 14px; }
}

@media (max-width: 768px) {
  body::before { background-position: left center; }
  .landing {
    width: 70.4%;
    margin-inline: auto;
    left: 0;
    padding-block: clamp(76px, 22.67vw, 245px) 100px;
    display: flex;
    flex-direction: column;
    font-size: clamp(13px, 1.95vw, 17.53px);
    line-height: 1.8;
  }
  .brand { width: 59.4%; align-self: flex-end; margin-bottom: 5.65em; }
  .copy h1, .copy h2 { line-height: 1.8; margin-bottom: 1.8em; }
  .copy--en { margin-top: 6.9em; }
  .contact { width: 100%; margin-top: 9em; gap: 20px; font-size: .8em; }
}

@media (max-width: 540px) {
  .landing { width: 84%; padding-top: 20vw; }
  .brand { width: 64%; margin-bottom: 64px; }
  .copy--en { margin-top: 64px; }
  .contact { margin-top: 65px; gap: 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
