/* ===== Global ===== */

:root {
    --body-colour: #4F4F4F;
    --primary-color: #664B8E;
    --light: #f8f8f8;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'Stay Outside';
    src: url('../fonts/StayOutside.woff2') format('woff2'), url('../fonts/StayOutside.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    color: var(--body-colour);
    padding-top: 7.4rem;
    font-weight: 300;
}

h2,
h3,
h4,
h5,
h6 {
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 1.2px;
}

h1 {
    font-family: 'Stay Outside';
    font-size: 2rem;
    font-weight: normal;
    line-height: 1;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

b,
strong {
    font-weight: 500;
}

li {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

li:last-child {
    margin-bottom: 0;
}

li::marker {
    color: var(--primary-color);
}

.lead {
    font-size: 1rem;
}

hr {
    width: 35%;
    margin: 2rem auto;
    border: 1px solid var(--primary-color);
}

.highlight {
    background-color: var(--light);
    padding: 2rem;
}

.grid {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 15px;
}

lottie-player {
    position: relative;
    z-index: -999;
}

.btn {
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    padding: 15px 35px;
    display: block;
    margin: 2rem 0;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.btn-sm {
    font-size: 0.55rem;
    padding: 7px 15px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary-outline {
    background: none;
    border: 1px solid var(--primary-color);
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    color: var(--body-colour);
    border: 1px solid #fff;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid #fff;
}

.btn-secondary-outline {
    background: none;
    border: 1px solid #fff;
    color: #fff;
}

.btn-secondary-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.btn.tooltip {
    display: inline-block;
    position: relative;
    text-align: left;
    margin: 0 0 1rem 0 !important;
}

.btn.tooltip .bottom {
    min-width: 260px;
    top: 40px;
    left: 100%;
    transform: translate(-37%, 0);
    padding: 20px;
    color: #4f4f4f;
    background-color: var(--primary-color);
    font-weight: 300;
    text-transform: none;
    border-radius: 8px;
    position: absolute;
    z-index: 99999999;
    box-sizing: border-box;
    box-shadow: 0 1px 8px rgb(0 0 0 / 20%);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.8s;
}

.btn.tooltip .bottom p {
    font-size: 0.75rem;
    color: #fff;
    margin-bottom: 0;
}

.btn.tooltip .bottom p:first-child {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.btn.tooltip:hover .bottom,
.btn.tooltip:focus .bottom {
    visibility: visible;
    opacity: 1;
}

.btn.tooltip .bottom i {
    position: absolute;
    bottom: 100%;
    /*left: 50%;*/
    left: 12%;
    margin-left: -12px;
    width: 24px;
    height: 12px;
    overflow: hidden;
}

.btn.tooltip .bottom i:after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: 50%;
    transform: translate(-50%, 50%) rotate(45deg);
    background-color: var(--primary-color);
    box-shadow: 0 1px 8px rgb(0 0 0 / 20%);
}

.bg-light {
    background-color: var(--light);
}

@media screen and (min-width:768px) {
    body {
        font-family: 'Rubik', sans-serif;
        font-size: 18px;
        padding-top: 8.4rem;
    }
    .lead {
        font-size: 1.2rem;
    }
    .btn.tooltip .bottom {
        min-width: 360px;
        transform: translate(-27%, 0);
    }
}

@media screen and (min-width:992px) {
    body {
        font-family: 'Rubik', sans-serif;
        font-size: 22px;
    }
    .btn {
        display: inline-block;
        margin: 2rem 0.5rem;
    }
}


/* ===== Header ====== */

#site-head {
    z-index: 1;
    /*padding: 30px 10px 35px 173px;*/
    padding: 30px 10px 22px 105px;
    position: relative;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
}

#site-head.sticky-header {
    box-shadow: 0 2px 4px #ccc;
}

#site-head .lottie__header lottie-player {
    width: 280px !important;
    height: 280px !important;
}

#site-head .lottie__header {
    position: absolute;
    top: -105px;
    left: -86px;
    z-index: 2;
}

#site-head .lottie__header-circle {
    position: absolute;
    top: -185px;
    left: -289px;
    z-index: 1;
}

#site-head h1 {
    font-size: 2rem;
    margin: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#site-head h1 span {
    display: block;
    text-transform: uppercase;
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
}

#site-head nav ul {
    list-style: none;
}

#site-head nav a {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-decoration: none;
    color: #fff;
}

#site-head span.menu-control-open,
#site-head span.menu-control-close,
#site-head nav a {
    text-transform: uppercase;
}

#site-head nav a {
    margin-bottom: 1.5rem;
}

#site-head span.menu-control-open,
#site-head span.menu-control-close {
    display: block;
    cursor: pointer;
}

header span.menu-control-open {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.2rem;
    line-height: 0;
    float: right;
    margin-top: 5px;
}

header span.menu-control-open svg {
    position: relative;
    top: -10px;
    right: -8px;
}

#site-head span.menu-control-open svg line,
#site-head span.menu-control-open svg circle {
    fill: none;
    stroke: #664B8E;
    stroke-width: 3;
}

#site-head span.menu-control-open:before {
    padding-top: 1px;
}

#site-head span.menu-control-close {
    font-size: 1.2rem;
    text-align: right;
    margin-bottom: 5rem;
}

#menuControlClose svg {
    position: absolute;
    top: 4%;
    /*right: 15%;*/
    /*right: 21%;*/
    right: 160px;
    height: 40px;
    width: 40px;
}

#nav-line-1,
#nav-lines.active #nav-line-3 {
    -moz-transform: scale(0.01);
    -ms-transform: scale(0.01);
    -webkit-transform: scale(0.01);
    transform: scale(0.01);
}

.cross-line {
    stroke: #ffffff;
    stroke-width: 0;
    transform-origin: 50% 50%;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.cross-line {
    stroke-width: 2;
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
}

header nav {
    display: flex;
    flex-direction: column;
}

.menu {
    position: absolute;
    /*right: 0;
    top: 0;*/
    right: -20px;
    top: -30px;
    background-color: var(--body-colour);
    color: #fff;
    height: 100vh;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 3;
}

.menu a {
    transform: translate3d(-150px, 0, 0);
    transition: transform 0.15s ease-in;
}

.menu .menu-inner {
    position: relative;
    height: 100%;
    width: 80vw;
    padding: 1.5rem;
}

.menu--active {
    height: 100vh;
    overflow: hidden;
}

.menu--active nav a {
    transform: translate3d(0, 0, 0);
    transition: transform 500ms ease-out;
    /* Handles items within the slide-out to give them the delayed slide-in */
}

.menu--active nav a:first-child {
    transition-delay: 0.2s;
}

.menu--active nav a:nth-child(2) {
    transition-delay: 0.3s;
}

.menu--active nav a:nth-child(3) {
    transition-delay: 0.4s;
}

.menu--active nav a:last-child {
    transition-delay: 0.5s;
}

@media screen and (max-width: 767px) {
    .menu--active .menu {
        width: 80%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .menu--active .menu {
        width: 40%;
    }
    .menu--active .menu .menu-inner {
        width: 40vw;
    }
}

@media screen and (min-width: 768px) {
    #site-head {
        padding: 30px 10px 35px 173px;
    }
    #site-head h1 {
        font-size: 3rem;
        margin: 0;
        padding: 0;
    }
    header span.menu-control-open svg {
        top: 0;
        right: 17px;
    }
    #site-head .lottie__header lottie-player {
        width: 300px !important;
        height: 300px !important;
    }
}

@media screen and (min-width: 1024px) {
    #site-head {
        padding: 30px 100px 36px 155px;
    }
    #site-head .grid,
    #site-head .home {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #site-head .lottie__header lottie-player {
        width: 400px !important;
        height: 400px !important;
    }
    #site-head .lottie__header {
        top: -175px;
        left: -146px;
    }
    #site-head nav {
        display: block;
    }
    #site-head nav a {
        color: var(--body-colour);
        font-size: 0.86364rem;
        padding-bottom: 5px;
    }
    #site-head nav a:hover {
        border-bottom: 3px solid var(--primary-color);
    }
    #site-head nav a:active,
    #site-head nav a.active {
        color: var(--body-colour);
        border-bottom: 3px solid var(--primary-color);
    }
    #site-head span.menu-control-close {
        margin-bottom: 0;
    }
    #site-head span.menu-control-open,
    #site-head span.menu-control-close {
        display: none;
    }
    #site-head .menu {
        position: static;
        overflow: visible;
        background-color: transparent;
        width: auto;
        height: auto;
    }
    #site-head .menu .menu-inner {
        padding: 0;
        width: 100%;
    }
    #site-head .menu a {
        transform: none;
        transition: none;
        letter-spacing: 1.2px;
    }
    #site-head .menu .version,
    #site-head .menu .madeIn {
        bottom: -90.85vh;
        letter-spacing: 1px;
        font-size: 1.3rem;
    }
    #site-head nav {
        flex-direction: row;
        justify-content: flex-end;
    }
    #site-head nav a {
        margin-left: 4rem;
    }
}

@media screen and (min-width: 1600px) {
    /*#site-head {
        z-index: 1;
        padding: 30px 20px 36px 20px;
    }*/
    /*#site-head .lottie__header {
        top: -175px;
        left: 15px;
    }*/
}

@media screen and (min-width: 1800px) {
    .grid,
    .home {
        max-width: 75%;
        margin: 0 auto;
    }
    #site-head .lottie__header {
        top: -175px;
        left: -146px;
    }
}


/* ===== Intro ===== */


/*#home {
    position: relative;
    top: -150px;
}*/

.home {
    position: relative;
}

#intro .intro__wrapper {
    background: var(--primary-color);
    padding: 5rem 1rem 2rem;
}

#intro * {
    text-align: center;
}

#intro .h2,
#intro p {
    color: #fff;
}

#intro .intro__wrapper .h2 {
    font-family: 'Stay Outside';
    font-size: 3rem;
    text-transform: none;
}

#intro svg {
    height: 100%;
    width: 100%;
}

#intro .intro__content {
    grid-column: 2/12;
}

@media screen and (min-width: 992px) {
    #intro .intro__content {
        grid-column: 4/10;
    }
    #intro .intro__wrapper {
        padding: 5rem 1rem 0;
    }
}


/* ===== About Me ===== */

#about {
    padding-top: 70px;
}

.about__content {
    grid-column: 2/12;
}

.about__graphic {
    grid-column: 2/12;
    grid-row: 10;
    margin-bottom: 12rem;
}


/* ---------- Orbit ---------- */

.orbit {
    position: relative;
}

.orbit-icon {
    width: 100px;
    height: 100px;
    line-height: 100px;
    font-size: 1.2em;
    border-radius: 50%;
    background: #fff;
    box-shadow: 4px 4px 12px #efefef;
    color: #fff;
    text-align: center;
    display: block;
}

.orbit-wrap {
    /* height: 40em;*/
    list-style: none;
    transform: scale(0.3);
}

.orbit-wrap>li {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.orbit-wrap>li:hover ul {
    border-width: 2px;
    border-color: #fff;
}

.orbit-wrap>li:hover~li ul {
    border-color: rgba(255, 255, 255, 0.2);
}

.orbit-wrap>li:hover~li ul li {
    opacity: 0.4;
}

ul[class^=ring] {
    transition: all 300ms ease-in-out;
}

ul[class^=ring] li {
    transition: all 300ms ease-in-out;
}

.ring-0 {
    width: 33.5em;
    height: 33.5em;
    -webkit-animation: clockwiseRotate 35s linear infinite;
    animation: clockwiseRotate 35s linear infinite;
    border: 1px solid #DCE4F1;
}

.ring-0 span {
    -webkit-animation: counterClockwiseRotate 35s linear infinite;
    animation: counterClockwiseRotate 35s linear infinite;
}

.ring-0>*:nth-of-type(1) {
    transform: rotate(70deg) translate(17em) rotate(-70deg);
}

.ring-0>*:nth-of-type(2) {
    transform: rotate(120deg) translate(17em) rotate(-120deg);
}

.ring-0>*:nth-of-type(3) {
    transform: rotate(165deg) translate(16em) rotate(-165deg);
}

.ring-0>*:nth-of-type(4) {
    transform: rotate(220deg) translate(16em) rotate(-220deg);
}

.ring-0>*:nth-of-type(5) {
    transform: rotate(275deg) translate(16em) rotate(-275deg);
}

.ring-0>*:nth-of-type(6) {
    transform: rotate(325deg) translate(16em) rotate(-325deg);
}

.ring-0>*:nth-of-type(7) {
    transform: rotate(375deg) translate(16.5em) rotate(-375deg);
}

.ring-3 {
    width: 17em;
    height: 17em;
    -webkit-animation: clockwiseRotate 20s linear infinite;
    animation: clockwiseRotate 20s linear infinite;
    border: 1px solid #DCE4F1;
}

.ring-3 span {
    -webkit-animation: counterClockwiseRotate 20s linear infinite;
    animation: counterClockwiseRotate 20s linear infinite;
}

.ring-3 img {
    max-width: 40px;
    height: auto;
    top: 35px;
    left: 35px;
    position: relative;
}

.ring-3>*:nth-of-type(1) {
    transform: rotate(126.6666666667deg) translate(8.5em) rotate(-126.6666666667deg);
}

.ring-3>*:nth-of-type(2) {
    transform: rotate(253.3333333333deg) translate(7.5em) rotate(-253.3333333333deg);
}

.ring-3>*:nth-of-type(3) {
    transform: rotate(380deg) translate(9em) rotate(-380deg);
}

ul[class^=ring] {
    /*border: solid 1px rgba(33, 150, 243, 0.8);*/
    position: relative;
    padding: 0;
    border-radius: 50%;
    list-style: none;
    box-sizing: content-box;
}

ul[class^=ring] li {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -3.8em;
}


/*  center; */

.orbit-center {
    z-index: 5;
    font-size: 2em;
    width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.1s ease-in;
}

.orbit-center:hover {
    width: 140px;
    height: 140px;
    line-height: 140px;
}

.orbit-center:hover .orbit-center__icon {
    transform: rotateZ(0deg);
    font-size: 5rem;
    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.orbit-center__icon {
    transform: rotateZ(-360deg);
    transition: all 300ms ease-in-out;
    font-family: 'Stay Outside';
    font-size: 3.5rem;
    color: #fff;
    transition: font-size 0.2s ease-in;
}

.orbit-wrap>li.orbit-center:hover~li>ul {
    width: 0;
    height: 0;
}

.orbit-wrap>li.orbit-center:hover~li>ul * {
    transform: translate(0, 0);
}


/* animations */

@-webkit-keyframes clockwiseRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes clockwiseRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes counterClockwiseRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes counterClockwiseRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

@media screen and (min-width: 768px) {
    .orbit-wrap {
        transform: scale(0.8);
    }
    .about__graphic {
        grid-row: 18;
        margin-bottom: 21rem;
    }
}

@media screen and (min-width: 992px) {
    #about {
        padding-top: 140px;
    }
    .about__content {
        grid-column: 2/6;
    }
    .about__graphic {
        grid-column: 7/12;
        grid-row: 2;
        top: -25rem;
        margin-bottom: 4rem;
    }
    .orbit-wrap {
        transform: scale(0.7);
    }
}

@media screen and (min-width: 1200px) {
    .about__content {
        grid-column: 2/7;
    }
    .about__graphic {
        grid-column: 8/12;
        grid-row: 2;
        top: -22rem;
        margin-bottom: 7rem;
    }
}

@media screen and (min-width: 1400px) {
    .about__content {
        grid-column: 2/6;
    }
    .about__graphic {
        top: -24rem;
    }
    .orbit-wrap {
        transform: scale(0.9);
    }
}


/* ===== Portfolio ===== */

section#portfolio {
    padding: 80px 0;
}

.portfolio__intro {
    grid-column: 2/12;
    grid-row: 1;
    text-align: center;
}

.portfolio__nav {
    grid-column: 2/12;
    grid-row: 2;
}

#portfolio-nav__filter-btns {
    list-style: none;
    padding-left: 0;
    text-align: center;
}

#portfolio-nav__filter-btns li {
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.6rem;
    width: auto;
    display: inline-block;
    font-size: 0.9rem;
    padding: 0 1rem;
}

#portfolio-nav__filter-btns li:hover {
    color: var(--primary-color);
}

#portfolio-nav__filter-btns li:after {
    content: "";
    display: block;
    width: 0;
    border-bottom: 3px solid var(--primary-color);
    transition: .5s;
}

#portfolio-nav__filter-btns li.active:after {
    width: 100%;
}

.portfolio__content {
    grid-column: 2/12;
    grid-row: 3;
}

.portfolio {
    display: grid;
    grid: auto / repeat(auto-fit, minmax(8em, 1fr));
    grid-gap: 1em;
}

.portfolio__item {
    position: relative;
    flex-basis: 30%;
    margin: 0;
    padding: 0;
    background: white;
}

.portfolio__image,
.portfolio-lightbox__image {
    width: 100%;
    display: block;
}

.portfolio-lightbox__image {
    box-shadow: 0 0 4px #dadada;
}

.portfolio-lightbox {
    display: none;
    transition: transform 150ms ease-in-out;
    padding-top: 250px;
    grid-column: 2/12;
    grid-row: 4;
}

.portfolio-lightbox:target {
    display: block;
}

.portfolio-lightbox__content {
    position: relative;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
}

.portfolio-lightbox__content__text {
    margin-bottom: 2rem;
}

.portfolio-lightbox__content__text p:last-child {
    margin-bottom: 0;
}

.portfolio__lightbox__image {
    margin-bottom: 1em;
}

.close {
    position: absolute;
    right: -1em;
    top: -1em;
    border: white 2px solid;
    display: flex;
    width: 2em;
    height: 2em;
    background: var(--primary-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
}

.close::after {
    content: '^';
    color: white;
    font-size: 4rem;
    top: 1.1rem;
    position: relative;
}

.portfolio-lightbox__content>p:last-of-type {
    text-align: center;
    margin: 0 auto;
}

.portfolio-lightbox__content .btn {
    margin-bottom: 0;
}

@media screen and (min-width: 768px) {
    .portfolio__intro {
        grid-column: 3/11;
        grid-row: 1;
    }
    .portfolio__nav {
        grid-column: 1/4;
        grid-row: 2;
    }
    .portfolio {
        grid: auto / repeat(auto-fit, minmax(10em, 1fr));
    }
    #portfolio-nav__filter-btns li {
        margin-bottom: 1.6rem;
        display: table;
        padding: 0;
    }
    #portfolio-nav__filter-btns {
        text-align: left;
    }
    .portfolio__content {
        grid-column: 4/13;
        grid-row: 2;
    }
    .portfolio-lightbox {
        grid-row: 3;
    }
    section#portfolio {
        padding: 140px 0;
    }
}

@media screen and (min-width: 1200px) {
    .portfolio-lightbox__content {
        width: 72%;
    }
    #portfolio-nav__filter-btns li {
        font-size: 1rem;
    }
    .portfolio__item {
        padding: 1rem;
        background: none;
    }
}