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

html, body {
    min-height: 100%;
}

@media (max-width: 625px), (max-height: 674px) {
    body {
        font-size: 0.75em;
    }
}

@media (max-width: 476px), (max-height: 509px) {
    body {
        font-size: 0.5em;
    }
}

ul, ol {
    list-style-type: none;
}

ul {
    display: block;
}

li {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

body {
    color: #333;
    background: linear-gradient(90deg, #70A79F 50%, #E49D61 50%);
    min-width: 333px;
}

h1 {
    position: absolute;
    right: 50%;
    text-align: right;
    width: 100%;
    font-family: 'Lato', sans-serif;
    font-size: 4.7em;
    transform: scaleX(0.75);
    transform-origin: right;
    line-height: 0.9;
    padding: 0.4em;
    font-weight: 300;
    color: inherit;
}

h2 {
    position: absolute;
    left: 0;
    top: 50%;
    /*margin-top: 2.4em;*/
    margin-top: 21.4%;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 4.3em;
    width: 100%;
    text-align: center;
    transform-origin: center;
    transform: scaleX(0.75);
    color: inherit;
}

.intro {
    display: flex;
    height: 90vh;
    min-height: 324px;
    position: relative;
}

@media (max-aspect-ratio: 6/10) {
    .intro {
        height: 60vh;
    }
}

.half {
    width: 50%;
    position: relative;
}

.video {
    background-color: #70A79F;
}

.animation {
    background-color: #E49D61;
}

.lottie {
    width: 100%;
}

.lottie.clapperboard {
    width: 55%;
    margin: auto;
}

.lottie.timer {
    width: 45%;
    margin: auto;
}

.ellipses {
    position: absolute;
    width: 12%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

@media (max-aspect-ratio: 1/1) {
    .ellipses {
        height: 31%;
    }
}

@media (max-aspect-ratio: 9/16) {
    .ellipses {
        height: 22%;
    }
}

.ellipses:before,
.ellipses:after {
    content: '';
    display: block;
    border-radius: 100%;
    width: 100%;
    height: 50%;
    background: red;
}

.ellipses:before {
    background-color: #E49D61;
}

.ellipses:after {
    background-color: #70A79F;
}

.top {
    position: absolute;
    z-index: 1;
    width: 100%;
}

nav {
    position: absolute;
    left: 50%;
}

nav {
    font-family: 'Lato', sans-serif;
    font-size: 2.4em;
    font-weight: 300;
    transform-origin: left;
    transform: scaleX(0.75);
    padding: 0.9em 0;
    line-height: 1.2;
}

nav a {
    padding: 0 1.15em;
}

.works {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.works .half {
    padding-top: 1px;
}

i {
    position: absolute;
    display: block;
    background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20448%20512%22%3E%3C!--!%20Font%20Awesome%20Free%206.1.1%20by%20%40fontawesome%20-%20https%3A%2F%2Ffontawesome.com%20License%20-%20https%3A%2F%2Ffontawesome.com%2Flicense%2Ffree%20(Icons%3A%20CC%20BY%204.0%2C%20Fonts%3A%20SIL%20OFL%201.1%2C%20Code%3A%20MIT%20License)%20Copyright%202022%20Fonticons%2C%20Inc.%20--%3E%3Cpath%20stroke-width%3D%2220%22%20fill%3D%22white%22%20d%3D%22M128%2032H32C14.31%2032%200%2046.31%200%2064v96c0%2017.69%2014.31%2032%2032%2032s32-14.31%2032-32V96h64c17.69%200%2032-14.31%2032-32S145.7%2032%20128%2032zM416%2032h-96c-17.69%200-32%2014.31-32%2032s14.31%2032%2032%2032h64v64c0%2017.69%2014.31%2032%2032%2032s32-14.31%2032-32V64C448%2046.31%20433.7%2032%20416%2032zM128%20416H64v-64c0-17.69-14.31-32-32-32s-32%2014.31-32%2032v96c0%2017.69%2014.31%2032%2032%2032h96c17.69%200%2032-14.31%2032-32S145.7%20416%20128%20416zM416%20320c-17.69%200-32%2014.31-32%2032v64h-64c-17.69%200-32%2014.31-32%2032s14.31%2032%2032%2032h96c17.69%200%2032-14.31%2032-32v-96C448%20334.3%20433.7%20320%20416%20320z%22%2F%3E%3C%2Fsvg%3E');
    font-size: 1em;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
    transition: transform 0.4s, opacity 0.4s;
    opacity: 0;
    background-color: rgba(0,0,0,0.7);
    background-size: 1em;
    background-position: center;
    pointer-events: none;
}

i.hovered {
    transform: scale(1.5);
    opacity: 1;
}

.work {
    position: relative;
    width: 100%;
    display: inline-block;
    overflow: hidden;
    margin-bottom: -1px;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), transparent), url('data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20id%3D%22loader-1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2240px%22%20height%3D%2240px%22%20viewBox%3D%220%200%2050%2050%22%20style%3D%22enable-background%3Anew%200%200%2050%2050%3B%22%20xml%3Aspace%3D%22preserve%22%3E%0A%20%20%3Cpath%20fill%3D%22%23000%22%20d%3D%22M43.935%2C25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318%2C0-18.683%2C8.365-18.683%2C18.683h4.068c0-8.071%2C6.543-14.615%2C14.615-14.615c8.072%2C0%2C14.615%2C6.543%2C14.615%2C14.615H43.935z%22%3E%0A%20%20%20%20%3CanimateTransform%20attributeType%3D%22xml%22%20attributeName%3D%22transform%22%20type%3D%22rotate%22%20from%3D%220%2025%2025%22%20to%3D%22360%2025%2025%22%20dur%3D%220.6s%22%20repeatCount%3D%22indefinite%22%3E%3C%2FanimateTransform%3E%0A%20%20%20%20%3C%2Fpath%3E%0A%20%20%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: center;
}

.iOS-pre-interaction .work {
    background: transparent;
}

.work.vertical {
    width: 50%;
}

.work iframe {
    width: 100%;
}

video {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.expandedVideo {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    display: flex;
    opacity: 1;
    transition: opacity 0.4s;
}

.expandedVideo.hidden {
    opacity: 0;
    pointer-events: none;
}

.expandedVideo video {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

.expandedVideo button {
    position: absolute;
    background: transparent;
    border: none;
    width: 10em;
    outline: none;
    cursor: pointer;
}

.expandedVideo button svg {
    height: 100%;
}

.expandedVideo .play {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* pass through to underlying video */
    opacity: 1;
    transition: transform 0.1s, opacity 0.1s;
}

.expandedVideo .play.hidden {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}

.expandedVideo .close {
    right: 1em;
    top: 1em;
    width: 5em;
    height: 5em;
}

.about {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.side.big {
    flex-grow: 1;
    background-color: #E49D61;
    padding: 4.3em 1em;
}

.photo {
    margin: auto;
    width: 100%;
    max-width: 17.5em;
    position: relative;
    box-shadow: 0px 0px 1em 4px rgb(0 0 0 / 22%);
    border-radius: 100%;
}

.photo:before {
    content: '';
    padding-top: 100%;
    display: block;
}

.avatar {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.photo.one .avatar.two {
    display: none;
}

.photo.two .avatar.one {
    display: none;
}

.bio {
    font-family: 'Lato', sans-serif;
    text-align: center;
    font-style: italic;
    font-size: 2.2em;
    font-weight: 400;
    transform-origin: center;
    margin: 0 -16.67%;
    margin-top: 0.6em;
    line-height: 1.25;
    transform: scaleX(0.75);
    letter-spacing: 1.7px;
}

.side.small {
    width: 50%;
    max-width: 26em;
    background-color: #70A79F;
    flex-shrink: 0;
}

@media (min-width: 961px) {
    .side.small {
        width: 33%;
    }

    .side.big {
        padding: 4.3em 5em;
    }
}

@media (min-width: 801px) {
    .side.small {
        width: 40%;
    }
}

.side.small ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.side.small ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.side .details {
    font-family: 'Lato', sans-serif;
    font-size: 2.4em;
    font-style: italic;
    transform: scaleX(0.75);
    transform-origin: center;
    letter-spacing: 1px;
}

.lottie.phone {
    max-width: 15em;
    padding-top: 2.6em;
}

.lottie.envelope {
    max-width: 13.8em;
    padding-top: 3.2em;
}

.side.small svg {
    height: auto !important;
}

.ios video[style*="touch-action: none"] {
    /* for some reason ios adds style touch-action: none; which makes it impossible to scroll the body */
    touch-action: auto !important;
}
