body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: fit-content;
  background-color: var(--bg);
  justify-content: center;
}


main {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin-top: 6rem;
  height: fit-content;
}

@media sreen and (orientation: portrait) {
  main {
    margin-top: 5rem;
  }
}

section {
  width: 100%;
}

.hero-title {
  font-size: calc(8cqi);
  font-weight: 400;
  margin-bottom: 0;
  text-transform: uppercase;
}

@media screen and (orientation: portrait) {
  .hero-title {
    font-size: 9 cqi;
  }
}

.hero-subtitle {
  color: var(--complement);
  font-size: 3cqi;
  margin-top: 0;
  font-weight: 400;
}


/* Overlay */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg, #111);
  /* define a fallback */
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Start off-screen for initial paint */
  transform: translateY(-100%);
  will-change: transform;
  /* smoother on low-end devices */
}

#page-transition img {
  width: clamp(80px, 12vw, 300px);
  height: auto;
  opacity: 0;
  /* we'll fade it in/out during the wipe */
}

/* Reduced motion: disable */
@media (prefers-reduced-motion: reduce) {
  #page-transition {
    display: none;
  }
}

/* ---------- Keyframes ---------- */

/* First visit: wipe down (and briefly show logo) */
@keyframes wipeDown {
  0% {
    transform: translateY(-100%);
  }

  20% {
    transform: translateY(0%);
  }

  80% {
    transform: translateY(0%);
  }

  100% {
    transform: translateY(100%);
  }
}

/* Between pages: enter from right → exit to left */
@keyframes wipeInH {
  0% {
    transform: translateX(100%);
  }

  50% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes wipeOutH {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Subtle logo fade while overlay is covering */
@keyframes logoFade {

  0%,
  100% {
    opacity: 0;
  }

  20%,
  80% {
    opacity: 1;
  }
}

/* Helper classes (applied by JS) */
.pt-enter-vertical {
  animation: wipeDown 1900ms cubic-bezier(.22, .61, .36, 1) forwards;
}

.pt-enter-vertical>img {
  animation: logoFade 1900ms ease forwards;
}

.pt-enter-horizontal {
  animation: wipeInH 1600ms cubic-bezier(.22, .61, .36, 1) forwards;
}

.pt-exit-horizontal {
  animation: wipeOutH 1500ms cubic-bezier(.55, .06, .68, .19) forwards;
}

/* Theme color */
:root {
  --transition-color: #111;
}




@media screen and (orientation: portrait) {
  main {
    margin: 5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    height: fit-content;
  }
}