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

html {
  font: 16px/1.2 Helvetica;
}

body {
  background: #AD9F78;
  color: #F8EFE8;
}

body.about {
  background: #25361D;
  color: #B0A17B;
}

.nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  align-items: center;
  z-index: 99;
}

.nav > * {
  flex: 0 0 33%;
}

.logo {
  --delay: 0.5s;

  display: grid;
  max-width: 50vw;
  pointer-events: none;
  height: 50px;
  transform-origin: center;

  animation: 1s ease-out mountain-down;
  animation-delay: var(--delay);
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

.logo img {
  display: block;
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  object-fit: contain;
  animation: 1s ease-out disappear;
  animation-delay: var(--delay);
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

.logo img.logo--before {
  display: none;
}

.logo img.logo--after {
  animation-direction: reverse;
}

.intro-logo {
  --delay: 0.5s;
  position: absolute;
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  pointer-events: none;

  animation: 1s ease-out mountain-up;
  animation-delay: var(--delay);
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

.intro-logo img {
  display: block;
  width: 80vw;
  height: 80vh;
  object-fit: contain;
}

@keyframes mountain-down {
  from {
    /* transform: translateY(calc(50vh - 50px)) scale(1000%); */
    transform: translateY(3rem) scale(120%);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes mountain-up {
  from {
    /* transform: translateY(calc(50vh - 50px)) scale(1000%); */
    transform: none;
    opacity: 1;
  }

  to {
    transform: translateY(-3rem) scale(80%);
    opacity: 0;
  }
}

@keyframes disappear {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  justify-content: flex-end;
}

.nav a {
  color: inherit;
  text-decoration: none;
}

.page {
  display: grid;
  width: 100vw;
  min-height: 100vh;
  place-content: center;
}

.tagline {
  width: 80vw;
  max-width: 600px;
  grid-column: 1;
  grid-row: 1;
}

.tagline {
  --delay: 3s;
  font-size: 3rem;
  text-align: center;
  display: grid;
  place-content: center;
}

.reveal {
  --delay: 0.5s;
  animation: 1s linear reveal;
  animation-delay: var(--delay);
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

.js .scroll-reveal {
  opacity: 0;
  transform: translate(0, 4rem) scale(110%);
  transition: .5s;
}

.js .scroll-reveal.revealed {
  opacity: 1;
  transform: none !important;
}

@keyframes reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes reveal-slide {
  from {
    opacity: 0;
    transform: translate(0, 30vh) scale(200%);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bounce {
  from {
    transform: rotate(45deg) translate(-1rem, -1rem);
  }

  to {
    transform: rotate(45deg) translate(1rem, 1rem);
  }
}

.intro:after {
  content: " ";
  border: 0 solid currentColor;
  border-width: 0 .2rem .2rem 0;
  width: 2rem;
  height: 2rem;
  position: absolute;
  left: calc(50% - 1rem);
  top: calc(100vh - 7rem);
  opacity: 1;
  transform: rotate(45deg);
  animation: 1s ease infinite alternate bounce;
  transition: .5s;
}

.page--title h2,
.page--slide h2 {
  max-width: 60vw;
  margin: 2rem;
  font-size: 3rem;
  line-height: 3.5rem;
}

.page--slide {
  text-align: center;
}

.email-link {
  font-size: 3rem;
  white-space: nowrap;
}

.email-link a {
  color: inherit;
  text-decoration: none;
}
