@font-face {
  font-family: "PP Neue Montreal";
  src:
    url("fonts/PPNeueMontreal-Regular.woff2") format("woff2"),
    url("fonts/PPNeueMontreal-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100dvh;
  overflow: hidden;
  background: #ffffff;
  font-family: "PP Neue Montreal", sans-serif;
  color: #000000;
}

.content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.content a {
  pointer-events: auto;
}

.logo-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.logo {
  width: 136px;
  height: auto;
  display: block;
  opacity: 0;
  animation: logo-show 1100ms forwards;
}

.reveal-bar {
  position: absolute;
  inset: 0;
  background: #000;
  transform: scaleX(0);
  transform-origin: 0% 50%;
  animation: bar-sweep 1100ms forwards;
  pointer-events: none;
}

@keyframes bar-sweep {
  0% {
    transform: scaleX(0);
    transform-origin: 0% 50%;
    animation-timing-function: cubic-bezier(0.85, 0, 0.15, 1);
  }
  36% {
    transform: scaleX(1);
    transform-origin: 0% 50%;
  }
  36.01% {
    transform: scaleX(1);
    transform-origin: 100% 50%;
  }
  64% {
    transform: scaleX(1);
    transform-origin: 100% 50%;
    animation-timing-function: cubic-bezier(0.85, 0, 0.15, 1);
  }
  100% {
    transform: scaleX(0);
    transform-origin: 100% 50%;
  }
}

@keyframes logo-show {
  0%,
  35.9% {
    opacity: 0;
  }
  36%,
  100% {
    opacity: 1;
  }
}

p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: #000000;
  opacity: 0;
  animation: fade-in 700ms ease-out 700ms forwards;
}

nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  gap: 18px;
  z-index: 1;
  opacity: 0;
  animation: fade-in 700ms ease-out 850ms forwards;
}

nav a {
  color: #000000;
  text-decoration: none;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav iconify-icon {
  display: block;
  font-size: 22px;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

#sketch {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
