body {
  scroll-behavior: smooth;
}

.nav {
  position: fixed;
  display: flex;
  justify-content: center;
  margin: auto;
  clear: both;
  height: 6.25vh;
  width: 50vw;
  margin: 0 25vw;
  padding-top: 6.25vh;
  z-index: 4;
}

.nav li {
  float: left;
  z-index: 2;
  overflow: hidden;
  text-align: center;
  font-size: 1.2vh;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: .125vw;
  color: #3a3a3a;
  position: relative;
  top: -12.5vh;
  margin: 0 2vw;
  animation: navDown .5s cubic-bezier(0.15, 0.35, 0.39, 0.97) 1.75s 1 forwards;
}

.nav li:nth-child(1) {
  animation-delay: 1.7s;
}

.nav li:nth-child(2) {
  animation-delay: 1.9s;
}

.nav li:nth-child(3) {
  animation-delay: 2.1s;
}

.nav li:after {
  position: absolute;
  display: block;
  width: 100%;
  height: 1vh;
  content: '';
  background: #fff;
  margin: auto;
  top: 6px;
  z-index: -1;
  margin: auto;
  transition: left .25s ease-in;
  left: -100%;
}

.nav li:hover:after {
  left: 0;
  background: #fff;
}

#animationWrap {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  height: 75vh;
  padding-top: 12.5vh;
}

#animationObject {
  position: absolute;
  top: -10em;
  height: 4vh;
  width: 4vh;
  border-radius: 50%;
  background-color: #fff;
  margin-top: 9vw;
}

#animationObject.animationSequence {
  animation: bounceBall 1.52s cubic-bezier(.69, .18, .22, .97) 0s 1 forwards, ballToSquare .25s cubic-bezier(.54, .71, .51, .95) 1.25s 1 forwards, squareSnapIntoRect .2s ease-in-out 1.25s 1 forwards, rectSnapIntoBar .25s ease-in-out 1.7s 1 forwards;
  /* barToBorder .25s ease-out 2.25s 1 forwards; */
  /* gradientSlide 1.7s ease-out 1.35s 1 forwards; */
}

#contactWrap {
  position: fixed;
  top: -100%;
  left: 0;
  height: 0;
  width: 100%;
  display: block;
  background-color: rgba(45, 45, 45, .75);
  z-index: 4;
  opacity: 0;
  transition: opacity .2s ease-out;
}

#contactWrap.clicked {
  opacity: 1;
  top: 0;
  height: 100%;
  box-shadow: 0px 4px 8px 5px #00000005;
}

#contact {
  position: fixed;
  left: 2.5%;
  z-index: 3;
  background-color: #fff;
  width: 95%;
  transition: height .35s ease-out, top .35s ease-out, opacity .2s ease-out, color .25s ease-out .35s;
  border-radius: 2vh;
  transform-origin: center;
  height: 0;
  top: 50%;
  opacity: 0;
  color: rgba(0, 0, 0, 0);
  overflow: hidden;
}

#contact.clicked {
  opacity: 1;
  top: 10%;
  height: 85%;
  color: #000;
}

.contactTitle {
  text-align: center;
  padding-top: 36vh;
  font-size: 2.2vh;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: .25vh;
}

#closeContact {
  position: absolute;
  top: 2.5%;
  right: 2.5%;
  transform-origin: center;
  height: 25px;
  width: 0px;
  padding: .25em 1em;
  margin: 0;
}

span#closeContact:before {
  content: '';
  position: absolute;
  display: block;
  height: 3vh;
  width: .125vw;
  background-color: #000;
  transform: rotate(45deg);
}

span#closeContact:after {
  content: '';
  position: absolute;
  display: block;
  height: 3vh;
  width: .125vw;
  background-color: #000;
  transform: rotate(-45deg);
}

#closeContact:hover:before, #closeContact:hover:after {
  transition: background-color .125s ease-in;
  background-color: red;
}

a.emailLink {
  display: block;
  text-align: center;
  padding-top: 4vh;
  font-size: 3.2vW;
  font-family: sans-serif;
  letter-spacing: .25vh;
  font-family: "acta-display";
  font-weight: 100;
  font-style: italic;
  margin: auto;
  width: 90%;
  text-decoration: underline;
}

a.emailLink:hover {
  transition: color .25s ease-in;
  color: #8169d4;
}

h1.heroName {
  opacity: 0;
  font-size: 15vw;
  line-height: 12vw;
  letter-spacing: -.5vw;
  text-align: center;
  color: #fff;
  font-family: "acta-display";
  font-weight: 600;
  font-style: italic;
  transition: color .5s ease-in;
  animation: fadeIn .15s ease-in 1.72s 1 forwards;
}

h1.heroName::after {
  display: block;
  content: "Interactive Designer";
  font-size: 2vw;
  line-height: 10vw;
  letter-spacing: 1vw;
  font-style: normal;
  font-family: sans-serif;
  font-weight: 100;
  text-transform: uppercase;
  animation: fadeIn .15s ease-in 2s 1 forwards;
}

h1.name {
  opacity: 0;
  font-size: 3vw;
  color: #c5c5c5;
  font-family: "acta-display";
  font-weight: 600;
  font-style: italic;
  line-height: 2.5vw;
  padding: 2vw;
  transition: all .5s ease-out;
}

h1.name.scrolled {
  opacity: 1;
  color: #000;
}

.header {
  position: fixed;
  top: -15vw;
  width: 100vw;
  height: 10vw;
  z-index: 3;
  transition: all .25s ease-out;
}

.header.scrolled {
  top: 0;
}

.hamburguesa {
  width: 0px;
  height: 3vw;
  position: absolute;
  right: 10vw;
  top: 2.5vh;
}

.hamburguesa:before {
  display: block;
  content: '^';
  font-size: 3vh;
  transform: scaleX(2.5);
  animation: pulse 1s cubic-bezier(0.15, 0.61, 0.57, 0.96) infinite alternate;
  position: absolute;
  top: 0;
}

.statementContainer {
  opacity: 0;
  overflow: hidden;
  margin: auto;
  text-align: center;
  transition: opacity .5s ease-out;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

.statementText {
  text-align: center;
  width: 80vw;
  align-items: center;
  justify-content: center;
}

.statementImage {
  width: 33vw;
  max-width: 400px;
  padding: 0 2vw;
}

.personalStatement {
  margin: auto;
  font-size: 7vw;
  line-height: 7.5vw;
  font-family: sans-serif;
  font-weight: 800;
  color: #fff;
}

.personalStatementSubtext {
  margin: auto;
  padding: 3em 0;
  font-size: 2.5vw;
  line-height: 5vw;
  font-family: sans-serif;
}

.statementImage img {
  width: 100%;
}

.workScroller {
  float: left;
  clear: both;
  background: linear-gradient(to bottom, pink, blue);
  height: 0;
  width: 10px;
}

ol.pagination {
  position: fixed;
  bottom: 5vh;
  opacity: 0;
  top: 30vh;
  right: 4vw;
  display: flex;
  flex-direction: column;
  flex-flow: column;
  z-index: 3;
}

li.dot {
  height: 2vw;
  width: 2vw;
  margin: 2em 0;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: all .2s ease-in;
  font-family: sans-serif;
  transform-origin: center;
}

li.dot.active {
  transform: scale(1.75);
  background-color: #fff;
}

.workWrap {
  z-index: -1;
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  background: linear-gradient(to top, #8f84ff, #fde2eb);
  background-size: contain;
  background-position: center 100vh;
  transition: filter 1s;
}

.workContainer {
  visibility: hidden;
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0);
}

.workContainer.scrolled {
  visibility: visible;
  z-index: 2;
}

.workContainer:after {
  height: 50vh;
  width: 80vw;
  background-color: #fff;
  display: block;
  content: '';
  position: absolute;
  top: 14vh;
  left: 10vw;
  z-index: -2;
  border-radius: 2vw;
  box-shadow: 0px 9px 16px 0px #0000003d;
  transition: opacity .2s ease-in;
  opacity: 0;
}

.workContainer.scrolled:after {
  opacity: 1;
}

.workTitle {
  align-self: center;
  width: 70vw;
  padding: 7vw;
  font-size: 10vw;
  font-family: "acta-display";
  font-weight: 600;
  font-style: italic;
  color: #403f3f;
  position: relative;
  text-align: center;
  transition: top .35s, opacity .35s;
  transition-delay: .35s;
  opacity: 0;
  top: -.5em;
}

.workTitle a:hover {
    text-decoration: underline;
}

.scrolled .workTitle {
  opacity: 1;
  top: 0;
}

.subTitle {
  text-align: center;
  font-size: 3.75vw;
  color: #898989;
  text-transform: uppercase;
  font-family: sans-serif;
  margin-top: -6vw;
  padding: 1vh;
  transition: opacity .35s;
  transition-delay: .5s;
  opacity: 0;
}

.scrolled .subTitle {
  opacity: 1;
}

.workImage {
  justify-content: center;
  display: flex;
  width: 45vw;
  height: 35vw;
  padding: 7vh 0 4vh 0;
  align-self: center;
}

.workImage img {
  position: absolute;
  width: auto;
  height: 35vw;
  margin: auto;
  transition: opacity, transform;
  transition-duration: .25s, .35s;
  transition-timing-function: cubic-bezier(0.46, 0.58, 0.66, 1.4);
  opacity: 0;
}

.workContainer:nth-child(even) .workImage img {
  transform: translateX(-8vw);
}

.workContainer:nth-child(odd) .workImage img {
  transform: translateX(8vw);
}

.workContainer:nth-child(even).scrolled .workImage img, .workContainer:nth-child(odd).scrolled .workImage img {
  opacity: 1;
  transform: translateX(0);
}

.workImage img:nth-child(2) {
  transition-delay: .25s;
}

.workImage img:nth-child(3) {
  transition-delay: .35s;
}

.workImage img:nth-child(4) {
  transition-delay: .45s;
}

.workDescription {
  align-self: center;
  width: 45vw;
  font-size: 3vw;
  line-height: 1.2;
  font-family: sans-serif;
  text-align: center;
  color: #fff;
  position: relative;
  opacity: 0;
  bottom: -.5em;
}

.scrolled .workDescription {
  opacity: 1;
  bottom: 0;
  transition: opacity .35s ease-in, bottom .35s ease-in;
  transition-delay: .35s;
}

.bubble {
  display: block;
  position: fixed;
  background: linear-gradient( -45deg, #6e459a, #8f84ff, #fcfcfc);
  border-radius: 50%;
  filter: blur(1.6em);
  transform-origin: center;
}

.bubble:nth-child(1) {
  height: 150vh;
  width: 150vh;
  top: -75vh;
  left: -50%;
  filter: blur(2em);
  animation: float 24s ease-in-out 0s infinite alternate;
}

.bubble:nth-child(2) {
  height: 95vh;
  width: 95vh;
  top: -37vh;
  left: 25%;
  filter: blur(1em);
  animation: float 16s ease-in-out 0s infinite alternate-reverse;
}

.bubble:nth-child(3) {
  height: 50vh;
  width: 50vh;
  top: 3vh;
  left: 10vw;
  filter: blur(.5em);
  animation: float 16s ease-in-out 0s infinite alternate;
}

.bubble:nth-child(4) {
  height: 15vh;
  width: 15vh;
  top: 3vh;
  left: 60vw;
  filter: blur(.2em);
  animation: float 12s ease-in-out 0s infinite alternate-reverse;
}

div#footer {
  position: relative;
  display: block;
  display: flex;
  justify-content: center;
  align-items: center;
  float: left;
  clear: both;
  height: 4vh;
  width: 100%;
  background: #ffffff69;
  z-index: 3;
}

#footer img {
  max-width: 1.5vh;
}

#footer p {
  padding: 0 2em;
  font-family: 'acta-display';
  font-weight: 600;
  font-style: italic;
}

#footer a {
  width: 1.5em;
  padding: .2em;
  display: block;
}

/*---------------------------------------------------*/

/*------------------- Interior pages ---------------------*/

/*---------------------------------------------------*/

.header.interior {
  top: 3vh;
  width: 100%;
}

.interior .name {
  text-align: right;
  color: #fff;
  opacity: 1;
  font-size: 5vw;
  line-height: 1;
}

a.workButton {
  position: fixed;
  top: 2vh;
  right: 2vw;
  color: #fff;
  font-size: 1.5vh;
  font-family: sans-serif;
  text-transform: capitalize;
}

#banner {
  display: block;
  width: 100%;
  min-height: 50vh;
  background-color: #adadad;
  padding-top: 2em;
}

#banner h2 {
  color: #fff;
  font-family: 'acta-display';
  font-size: 7vh;
  font-weight: 600;
  font-style: italic;
  padding-left: 2%;
  margin-top: 1.5em;
}

#banner img {
  width: auto;
  height: 50vw;
  display: block;
  margin: auto;
  padding-top: 2em;
}

#banner span {
  font-size: 1.5vh;
  color: white;
  padding: 2.5em 0;
  display: block;
  width: 80vw;
  margin: auto;
  max-width: 1200px;
  font-family: sans-serif;
}

#content {
  width: 80vw;
  margin: auto;
  max-width: 1200px;
}

#content li {
  margin: 1em;
  clear: both;
  display: block;
  float: left;
}

#content h4 {
  font-size: 4vh;
  color: #fff;
  font-family: 'acta-display';
  float: none;
  width: 100%;
  text-align: left;
  padding-right: 0;
  line-height: 1.1;
  padding-bottom: .75em;
}

#content p {
  font-size: 1.7vh;
  line-height: 1.6;
  color: #000;
  padding: 0 0 1em 0;
  font-family: sans-serif;
  float: none;
  width: 100%;
}

#content span {
  font-size: 1.75vh;
  text-align: center;
  padding: 1.5em 0;
  color: #fff;
  width: 100%;
  display: block;
  margin-bottom: 2em;
}

#content img {
  width: 100%;
  margin-bottom: 2em;
}

#nextProject {
  clear: both;
  border-radius: 15vh;
  height: 30vh;
  width: 30vh;
  margin: 2em auto;
  margin-bottom: 6em;
  position: relative;
}

#nextProject span {
  display: block;
  text-align: center;
  font-family: 'acta-display';
  color: #fff;
  font-style: italic;
  font-size: 4vh;
  padding: .2em;
}

#nextProject span:hover {
    text-decoration: underline;
}

#nextProject img {
  height: 80%;
  margin: auto;
  display: block;
}

#nextProject:before {
  content: 'Next Project';
  color: #fff;
  font-size: 1.5vh;
  position: relative;
  top: -10px;
  left: 0;
  display: block;
  height: 10px;
  width: 100%;
}
