html{
    overflow-x: hidden;
    overflow-y: hidden;
}

body{
    position: relative;
    padding: 0;
    margin: 0;
    z-index: -2;
}

body::before, body::after{
    content: "";
    position: fixed;
    width: 100%;
    height: 50%;
    background-color: white;
    opacity: 1;
    z-index: 1000;
    transition: 1s cubic-bezier(.82,.06,.34,1) 1s;
}

body::before{
    top: 0;
    transform: scaleY(1);
    transform-origin: top;
}

body::after{
    bottom: 0;
    transform: scaleY(1);
    transform-origin: bottom;
}

body.loaded::before{
    transform: scaleY(0);
}

body.loaded::after{
    transform: scaleY(0);
}

.loader{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    opacity: 1;
    z-index: 1001;
    overflow: hidden;
    transition: opacity .5s ease 1s, z-index 0s 1.5s;
}

.loader.loaded{
    overflow: visible;
    opacity: 0;
    z-index: -1;
}

.loader h1{
    margin: 0 0 10px;
    font-family: 'Spectral SC', sans-serif;
    font-size: 27px;
}

.loader .loader-underline{
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, .3), rgba(0, 0, 0, 1), rgba(0, 0, 0, .3));
    animation: loop 1s ease infinite; 
}

.loader.loaded .loader-underline{
    animation: expand 1s ease forwards;
    background: black;
}

@keyframes expand{
    0%{
        transform: scaleX(0);
    }
    100%{
        transform: scaleX(20);
    }
}

@keyframes loop{
    0%{
        transform: translateX(-100%);
        opacity: 1;
    }
    100%{
        transform: translateX(100%);
        opacity: 0;
    }
}


/* header */

header .nav{
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    padding: 0;
    background-color: black;
    z-index: 100;
    transform: skewX(-30deg) translateX(100%);
    transform-origin: bottom;
    transition: 1s cubic-bezier(0,.9,.43,.99);
}

header .nav.is-opened{
    transform: skewX(0deg) translateX(0);
}

.nav ul{
    position: relative;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    padding: 0;
    margin: 0;
}

.nav ul li{
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    transform: translate(50px, 50px);
    opacity: 0;
    transition: .6s cubic-bezier(.08,.86,.36,.95);
}

.nav ul li.is-opened{
    transform: translate(0);
    opacity: 1;
}

.nav ul li.is-closed{
    transition: none;
}

.nav ul li:first-child{
    margin: 0;
}

.nav ul li a{
    text-decoration: none;
    color: white;
    font-size: 25px;
    font-family: "微軟正黑體";
    font-weight: bold;
    transition: .3s ease;
}

.nav ul li a:hover{
    color: #DC2726;
}

.nav ul .nav-line{
    position: relative;
    width: 100%;
    height: 3px;
    margin: 300px 0 0;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: .6s cubic-bezier(.08,.86,.36,.95) 1.2s;
    background-color: #DC2726;
}

.nav ul .nav-line.is-opened{
    transform: scaleX(1);
    opacity: 1;
}

.nav ul .nav-line.is-closed{
    transition: .2s;
}

.nav-toggle{
    position: fixed;
    top: 50px;
    right: 70px;
    width: 40px;
    height: 30px;
    z-index: 101;
    cursor: pointer;
}

.nav-toggle.is-hovered span::before{
    bottom: 14px;
}

.nav-toggle.is-hovered span::after{
    top: 14px;
}

.nav-toggle.is-opened span::before{
    transform: rotateZ(-45deg) scaleX(1);
}

.nav-toggle.is-opened span::after{
    transform: rotateZ(45deg) scaleX(1);
}

.nav-toggle span{
    position: absolute;
    top: calc(50% - 1px);
    width: 100%;
    height: 1px;
    background-color: transparent;
    border-radius: 1px;
}

.nav-toggle span::before, .nav-toggle span::after{
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: lightgray;
    border-radius: 1px;
    transform: scaleX(1);
    transition: .3s ease;
    transform-origin: right;
}

.nav-toggle span::before{
    bottom: 10px;
}

.nav-toggle span::after{
    top: 10px;
}

/* sections */

body > section{
    position: relative;
    padding: 0;
    margin: 0;
}

section.home{
    height: 100vh;
    box-shadow: inset 0 0 0 2000px rgba(22, 22, 34, 0.5);
    background: url('img/pexels-photo.jpeg');
    background-size: 130%;
    background-repeat: no-repeat;
    background-position: center 60%;
    background-attachment: fixed;
}


section.home::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(to bottom, rgba(75, 68, 119, 0.2) 100%, rgba(0, 0, 0, .1) 0%); */
}

section.home .slogan{
    position: relative;
    top: 25%;
    left: 270px;
    width: 700px;
    height: 500px;
    color: white;
    letter-spacing: 2px;
    padding: 0;
    background: transparent;
    z-index: 2;
}

.skew-box{
    position: absolute;
    left: 270px;
    top: 25%;
    width: 3px;
    height: 0px;
    transform: skewX(-25deg) translateX(150px);
    transform-origin: top;
    background: black;
    z-index: 3;
    transition: height .7s ease 0s, width .6s cubic-bezier(.78,.1,.34,1.04) .7s;
}

.skew-box.loaded{
    z-index: 1;
    width: 200px;
    height: 450px;
}

.slogan h1{
    font-family: 'Anton', sans-serif;
    font-size: 80px;
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: .6s cubic-bezier(.78,.1,.34,1.04) .7s;
}

.slogan.loaded h1, .slogan.loaded p{
    transform: scaleX(1);
    opacity: 1;
}

.slogan p{
    font-size: 17px;
    color: rgba(255, 255, 255, .7);
    line-height: 30px;
    font-family: 'Quattrocento', serif;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: .6s cubic-bezier(.78,.1,.34,1.04) .7s;
}


/*section 1*/

.about{
    background-color: white;
    z-index: 3;
    background: #F1EBE8;
}

.about .intro, .about .feature{
    display: flex;
    justify-content: space-between;
}

.about .intro{
    padding: 100px 100px 65px 200px;
}

.about .feature{
    padding: 65px 200px 100px 100px;
}

.title-wrapper{
    position: relative;
    overflow: hidden;
    height: auto;
    padding: 0 10px;
}

.title-wrapper::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 80%;
    background-color: #E96611;
    transform: translateY(-50%);
    transform-origin: top;
    transition: 1s;
}

.intro.is-showed .title-wrapper::after{
    width: 2px;
}

.text-wrapper{
    width: 38%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    line-height: 25px;
}

.content-title{
    position: relative;
    width: auto;
    font-family: 'Alegreya', serif;
    font-size: 45px;
    color: #3E4434;
    letter-spacing: 5px;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    transform: translateX(-100%);
    transform-origin: left;
    transition: 1s ease;
}

.intro.is-showed .content-title{
    transform: translateX(0);
    opacity: 1;
}

.content-wrapper{
    position: relative;
    left: 50px;
    overflow: hidden;
}

.text-wrapper p{
    position: relative;
    top: 0;
    font-family: 'Quattrocento', serif;
    line-height: 25px;
    font-weight: bold;
    font-size: 17px;
    color: gray;
    opacity: 0;
    transform: translateY(100%);
    transition: 1s ease .5s;
}

.intro.is-showed .text-wrapper p{
    transform: translateY(0);
    opacity: 1;
}

.img-wrapper{
    position: relative;
    width: 52%;
    overflow: hidden;
}

.img-wrapper .img{
    position: absolute;
    top: 95%;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-image: url('img/IMG_5043.jpg');
    background-position-x: 50%;
    background-size: auto 200%;
    background-repeat: no-repeat;
    transform-origin: bottom;
    transition: top .9s cubic-bezier(.22,.75,.23,.93) 1.2s, opacity 1s cubic-bezier(.22,.75,.23,.93) 1.2s, background-position-y 2s cubic-bezier(.06,1.05,.21,.94);
}

.feature .img-wrapper .img{
    background-image: url('img/S__10715369.jpg');
    background-position-x: 0%;
    background-size: auto 170%;
}

.intro.is-showed .img-wrapper .img{
    top: 0;
    opacity: 1;
}

.feature.is-showed .content-title{
    transform: translateX(0);
    opacity: 1;
}

.feature.is-showed .title-wrapper::after{
    width: 2px;
}

.feature.is-showed .text-wrapper p{
    transform: translateY(0);
    opacity: 1;
}

.feature.is-showed .img-wrapper .img{
    top: 0;
    opacity: 1;
}

/* contribution */

.about .contribution, .team{
    padding: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(78, 170, 177, 0.1);
}

.about .contribution .content-title, .team .content-title{
    text-align: center;
    padding: 0;
    transform: translateX(-100%);
}

.contribution.is-showed .content-title, .team.is-showed .content-title{
    transform: translateX(0);
    opacity: 1;
}

.contribution.is-showed .title-wrapper::after, .team.is-showed .title-wrapper::after{
    width: 2px;
    height: 70%;
}

.about .contribution .article-wrapper, .team .article-wrapper{
    display: flex;
    justify-content: center;
    margin: 20px 0 0;
}

.about .contribution .article-wrapper article{
    width: 30%;
    margin: 0 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: 1s ease;
}

.about .contribution article:nth-child(1){
    transform: translate(0, 50%);
    transition-delay: .8s;
}

.about .contribution.is-showed article{
    transform: translate(0, 0);
    opacity: 1;
}

.about .contribution .article-wrapper article h2, .team .article-wrapper article h2{
    text-align: center;
    padding: 15px 0;
    margin: 0;
}

.about .contribution .article-wrapper article p{
    line-height: 25px;
    padding: 15px 0;
    margin: 0;
    text-indent: 30px;
    font-family: 'Microsoft YaHei';
}

/*team*/

.team{
    background: white;
    padding: 100px 0;
    background: #F1EBE8;
}

.team .article-wrapper{
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 40px auto 0 auto;
}

.team .article-wrapper article{
    position: relative;
    display: flex;
    margin: 0 0 50px;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s ease;
}

.team .article-wrapper article.is-opened{
    max-height: 600px;
}

.team .article-wrapper article .article-left-up:hover .profile-container{
    transform: translateX(-50%);
}

.team .article-wrapper article:nth-child(2) .article-left-up:hover .profile-container, .team .article-wrapper article:nth-child(4) .article-left-up:hover .profile-container{
    transform: translateX(0);
}

.team .article-wrapper article .article-left-up:hover .profile-container img{
    transform: rotate3d(0 ,1 ,0, -90deg);
}

.team .article-wrapper article:nth-child(2) .article-left-up:hover .profile-container img, .team .article-wrapper article:nth-child(4) .article-left-up:hover .profile-container img{
    transform: rotate3d(0 ,1 ,0, 90deg);
}

.team .article-wrapper article h2{
    border: none;
    font-family: "Microsoft Yahei";
    font-weight: normal;
    font-size: 20px;
    margin: 10px 0 0;
}

.team .article-wrapper article .article-left{
    flex: 1;
    align-self: center;
    padding: 15px;
    background: white;
    box-shadow: 0 3px 5px 0 gray;
    cursor: pointer;
}

.team .article-wrapper article .article-right{
    flex: 4;
    display: flex;
    padding: 0 0 0 80px;
}


.team .article-wrapper article .article-right p{
    position: relative;
    padding: 40px;
    margin: 0;
    line-height: 25px;
    background: white;
    border: rgba(0, 0, 0, .5) solid 1px;
    border-radius: 5px;
    font-family: 'Microsoft YaHei';
}

.team .article-wrapper article:nth-child(1) .article-right p span{
    float: right;
}


/* .team .article-wrapper article .article-right p .fade-bottom{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    height: 20%;
    padding: 0;
    display: flex;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    border: none;
}

.team .article-wrapper article .article-right p .fade-bottom span{
    position: relative;
    left: calc(50% - 60px);
    top: 85%;
    width: 120px;
    height: 20px;
    text-align: center;
    padding: 6px 5px;
    background: white;
    border: rgba(0, 0, 0, .7) solid 1px;
    cursor: pointer;
} */

.team .article-wrapper article .article-right p::before{
    content: "";
    position: absolute;
    top: calc(50% - 25px);
    left: -25px;
    border-top: 25px solid transparent;
    border-right: 12.5px solid #FFFFFF;
    border-left: 12.5px solid transparent;
    border-bottom: 25px solid transparent;
    z-index: 2;
    transform-origin: right;
    transform: scaleX(1.3);
}

.team .article-wrapper article .article-right p::after{
    content: "";
    position: absolute;
    top: calc(50% - 27px);
    left: -27px;
    border-top: 27px solid transparent;
    border-right: 13.5px solid rgba(0, 0, 0, .5);
    border-left: 13.5px solid transparent;
    border-bottom: 27px solid transparent;
    z-index: 1;
    transform-origin: right;
    transform: scaleX(1.3);
}

.team .article-wrapper article:nth-child(2) .article-left, .team .article-wrapper article:nth-child(4) .article-left{
    order: 2;
}

.team .article-wrapper article:nth-child(2) .article-right, .team .article-wrapper article:nth-child(4) .article-right{
    padding: 0 80px 0 0;
}

.team .article-wrapper article:nth-child(2) .article-right p::before, .team .article-wrapper article:nth-child(4) .article-right p::before{
    left: auto;
    right: -25px;
    border-right: 12.5px solid transparent;
    border-left: 12.5px solid #FFFFFF;
    transform-origin: left;
}

.team .article-wrapper article:nth-child(2) .article-right p::after, .team .article-wrapper article:nth-child(4) .article-right p::after{
    left: auto;
    right: -27px;
    border-right: 13.5px solid transparent;
    border-left: 13.5px solid rgba(0, 0, 0, .5);
    transform-origin: left;
}

.team .article-wrapper article .article-left-up{
    position: relative;
    width: 100%;
    overflow: hidden;
}

.team .article-wrapper article .profile-container{
    width: 200%;
    display: flex;
    transform: translateX(0);
    transition: .6s ease;
}

.team .article-wrapper article:nth-child(2) .profile-container, .team .article-wrapper article:nth-child(4) .profile-container{
    transform: translateX(-50%);
}

.team .article-wrapper article .profile-container img{ 
    width: 100%;
    height: 220px;
    transform-origin: right;
    transition: .6s ease;
}

.team .article-wrapper article:nth-child(2) .profile-container img, .team .article-wrapper article:nth-child(4) .profile-container img{
    order: 2;
    transform-origin: left;
}

.team .article-wrapper article .profile-container p{
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.team .article-wrapper article .profile-container p span{
    margin: 5px 0;
    font-size: 17px;
}

.team.is-showed article{
    opacity: 1;
    transform: translateY(0)
}

.team article:nth-child(1){
    transition-delay: .5s;
}

.team article:nth-child(2){
    transition-delay: .7s;
}

.team article:nth-child(3){
    transition-delay: .9s;
}

.team article:nth-child(4){
    transition-delay: 1.1s;
}

/*footer*/

.footer{
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F8F8F8;
}