html,
body {
  width: 100%;
  font-family: "Akkurat Mono", sans-serif;
  background-color: var(--bg);
  overflow-x: hidden;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
}

.wrapper {
  width: 100%;
  height: 100%;
  padding: 2em 3em;
}

section {
  position: relative;
  width: 100vw;
  overflow-x: hidden;
}

.hero {
  width: 100vw;
  height: 100vh;
}

.portraits {
  width: 100vw;
  height: 100vh;
}

.services {
  width: 100vw;
  height: fit-content;
}

.carousel {
  width: 100vw;
  height: 100vh;
}

.archive {
  width: 100vw;
  height: 200vh;
  /* background-color: var(--bg); */
}

.footer {
  width: 100vw;
  height: 100vh;
  /* background-color: var(--bg); */
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  width: 35%;
  padding: 2em;
  z-index: 2;
}

.site-intro {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
}

.site-intro>div {
  flex: 1;
}

.site-intro p {
  transition: 0.3s all;
}

.site-intro.light p,
.site-intro.light a {
  color: var(--text-light);
}

.site-intro.dark p,
.site-intro.dark a {
  color: var(--text);
}

.site-intro.dark p.secondary {
  color: var(--text-secondary);
}

nav {
  position: fixed;
  top: 2em;
  left: 2em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  z-index: 100;
  transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
}

nav.hidden-nav {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
}

.nav-item {
  position: relative;
  padding: 0.25rem;
  border-radius: 0.15rem;
  overflow: hidden;
}

.nav-item .progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-darker);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.nav-item .link {
  position: relative;
  z-index: 100;
}

nav .link a {
  transition: color 0.3s;
}

nav.dark .link a {
  color: var(--text);
}

nav.light .link a {
  color: var(--text-light);
}

nav .link a span {
  position: relative;
  top: -0.15rem;
  padding-right: 0.4rem;
  padding-left: 0.2rem;
  font-size: 0.6rem;
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    width: 100%;
  }

  .site-intro {
    gap: 2em;
    flex-direction: column;
  }

  .site-intro>div {
    text-align: right;
  }

  .wrapper {
    width: 100%;
    height: 100%;
    padding: 2em 1em;
  }

  nav .link a span {

    display: inline-block;
  }

  nav {
    left: 1em;
  }

  #music-toggle.site-icon-container {
    width: 100%;
    align-items: flex-end;
  }
}

/* Music Icon Animation */
.music-icon .bar {
  transform-origin: bottom;
  transition: transform 0.2s ease;
}

.music-icon.playing .bar {
  animation: equalize 1s infinite alternate ease-in-out;
}

.music-icon.playing .bar:nth-child(1) {
  animation-delay: 0.1s;
  animation-duration: 0.7s;
}

.music-icon.playing .bar:nth-child(2) {
  animation-delay: 0.3s;
  animation-duration: 0.5s;
}

.music-icon.playing .bar:nth-child(3) {
  animation-delay: 0.5s;
  animation-duration: 0.9s;
}

@keyframes equalize {
  0% {
    transform: scaleY(0.3);
  }

  100% {
    transform: scaleY(1);
  }
}

#music-toggle.site-icon-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  cursor: pointer;
}

.music-toggle-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

@media (max-width: 900px) {

  .site-header,
  .nav {
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
  }

  .site-header.hidden-on-mobile,
  .nav.hidden-on-mobile {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    pointer-events: none;
  }

  #music-toggle.site-icon-container {
    width: 100%;
    align-items: flex-end;
  }
}