/* main.css */
html,
body {
  /* keep pinch-zoom disabled */
  touch-action: none;
  -ms-touch-action: none;

  /* keep scroll bounce disabled */
  overscroll-behavior: none;

  /* allow text selection & copy */
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Cardo", serif;
  background: rgb(2, 15, 41, 1);
  color: #dddddd;
  overflow-x: hidden;
}

.main-page {
  position: relative;
  width: 100%;
  height: 100%;
}

.white-mask {
  position: fixed;
  top: -25%;
  left: -25%;
  width: 200%;
  height: 200%;
  background: rgb(224, 255, 255);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

.aura-overlay {
  position: absolute;
  top: 0;
  inset: 0;
  width: 100%;
  height: calc(var(--safe-vh) * 100);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
}

body.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.hero {
  position: relative;
  height: calc(var(--safe-vh) * 100);
  text-align: center;
  overflow: hidden;
}

.hero-image-container,
.text-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hero-image-container {
  height: 100%;
  width: auto;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;

  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 2%,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 90%,
    rgba(0, 0, 0, 0.1) 98%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 2%,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 90%,
    rgba(0, 0, 0, 0.1) 98%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.hero-image-container::before {
  backface-visibility: hidden;
  transform: translateZ(0); /* triggers GPU smoothing */
}

.hero-image {
  height: 90%;
  width: auto;
  object-fit: contain;
}

.text-container {
  z-index: 3;
  width: calc(var(--safe-vh) * 70);
}

.p-container {
  margin: 0 calc(var(--safe-vh) * 1) 0 calc(var(--safe-vh) * 1);
}

.main-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: calc(var(--safe-vh) * 5) calc(var(--safe-vh) * 1)
    calc(var(--safe-vh) * 1.7) calc(var(--safe-vh) * 1);
  gap: calc(var(--safe-vh) * 0.8);
}

.main-title span {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: calc(var(--safe-vh) * 7);
  line-height: 0.9;
  letter-spacing: calc(var(--safe-vh) * (-0.1));
  word-spacing: calc(var(--safe-vh) * 0.3);
  margin: 0 calc(var(--safe-vh) * 0.8);
  display: inline;
  white-space: nowrap;
}

p {
  font-family: "Crimson Pro", serif;
  font-weight: 200;
  font-size: calc(var(--safe-vh) * 2.1);
  line-height: calc(var(--safe-vh) * 3.3);
  margin: 0 0 0 0;
  display: inline;
}

@media (max-aspect-ratio: 0.89) and (min-height: 600px) {
  .hero-image-container {
    width: 138vw;
  }
  .hero-image {
    height: auto;
    width: 100%;
  }
}

@media (max-aspect-ratio: 0.7) and (min-height: 600px) {
  .text-container {
    z-index: 3;
    width: 100vw;
  }
  .p-container {
    margin: calc(var(--safe-vh) * 3) calc(var(--safe-vh) * 1.5)
      calc(var(--safe-vh) * 3) calc(var(--safe-vh) * 1.5);
  }
  p {
    font-family: "Crimson Pro", serif;
    font-weight: 200;
    font-size: calc(var(--safe-vh) * 2.7);
    line-height: calc(var(--safe-vh) * 4);
    margin: 0 0 0 0;
    display: inline;
  }
}
