@font-face {
  font-family: "Itfrayat";
  src: url("itfrayat-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Itfrayat";
  src: url("itfrayat-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Itfrayat";
  src: url("itfrayat-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Itfrayat";
  src: url("itfrayat-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: #002f3b;
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #002f3b;
  color: #ffffff;
  font-family: "Itfrayat", sans-serif;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #002f3b;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
}

.page-bg.is-visible {
  opacity: 1;
}

.page-bg-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: min(13.5rem, 46vw);
  height: auto;
  transform: translate(-50%, -50%);
}

.tagline {
  position: absolute;
  left: 50%;
  bottom: calc(200px + env(safe-area-inset-bottom));
  width: 100%;
  padding-inline: 1.5rem;
  transform: translateX(-50%);
}

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.tagline p {
  margin-top: 0.35rem;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: #ffffff;
  opacity: 0.78;
}

@media (max-width: 768px) {
  .logo {
    width: min(10rem, 40vw);
  }
}

@media (min-width: 1024px) {
  .logo {
    width: min(14.5rem, 22vw);
  }
}

@media (max-height: 500px) {
  .tagline {
    bottom: calc(48px + env(safe-area-inset-bottom));
  }
}
