/*@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");*/

@font-face {
    font-family: "Funnel Display";
    src: url("./fonts/FunnelDisplay-VariableFont_wght.woff2") format("woff2");
    font-style: normal;
    font-weight: 300-800;
    font-display: swap;
}

@font-face {
    font-family: "Unbounded";
    src: url("./fonts/Unbounded-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700-800;
}

@font-face {
    font-family: "Instrument Serif";
    src: url("./fonts/InstrumentSerif-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
}

:root {
    --text: white;
    --doublerow-height: 500px;
}

body {
    background-color: #093824;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
}

.navbar {
    position: fixed;
    left: 15px;
    top: 15px;
    font-family: "Funnel Display";
    font-size: 20px;
    z-index: 30;
    transition: 0.75s;
    color: var(--text);
}
.navbar span {
    cursor: pointer;
}
.navbar-links {
    position: fixed;
    right: 15px;
    top: 15px;
    font-family: "Funnel Display";
    font-size: 20px;
    z-index: 30;
    transition: color 0.75s;
    color: var(--text);
}
.navbar-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.25s;
}

@media (hover: hover) {
    .navbar-links a:hover {
        opacity: 1;
        text-decoration: underline;
    }
}
.navbar-links-lang {
    margin-left: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.navbar-links-lang-fr {
    opacity: 0.5;
    transition: 0.2s;
}

.navbar-links-lang-en {
    opacity: 1;
    transition: 0.2s;
}

@media (hover: hover) {
    .navbar-links-lang-en:hover {
        opacity: 1;
    }
    .navbar-links-lang-en:hover ~ .navbar-links-lang-fr {
        opacity: 0.5;
    }
    .navbar-links-lang-fr:hover {
        opacity: 1;
    }
    .navbar-links-lang-en:has(~ .navbar-links-lang-fr:hover) {
        opacity: 0.5;
    }
}

.not-current {
    opacity: 0.5;
}
.not-current:hover {
    text-decoration: underline;
}
.nav2:hover {
    text-decoration: underline;
}
.title {
    font-family: "Unbounded", sans-serif;
    color: var(--text);
    font-size: 7vw;
    text-align: center;
    margin-top: 20vh;
    margin-bottom: 30px;
    position: relative;
    transition: 0.75s;
    width: 100vw;
    font-weight: 700;
}
@media screen and (max-width: 1000px) {
    .title {
        font-size: 12vw;
    }
}
@media screen and (max-width: 700px) {
    .title {
        font-size: 16vw;
    }
}
@media screen and (max-width: 600px) {
    .title {
        font-size: 18vw;
    }
}
@media screen and (max-width: 500px) {
    .title {
        font-size: 20vw;
    }
}

.email-cta {
    background-color: white;
    color: black;
    border-radius: 50px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-decoration: none;
    transition: 0.2s;
}
@media (hover: hover) and (pointer: fine) {
    .email-cta:hover {
        padding-left: 25px;
        padding-right: 25px;
    }
}

.my-desc {
    font-family: sans-serif;
    color: var(--text);
    font-size: 18px;
    text-align: center;
    width: 50vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
@media screen and (max-width: 850px) {
    .my-desc {
        width: 75vw;
    }
}
@media screen and (max-width: 650px) {
    .my-desc {
        width: 95vw;
    }
}

.projects-container {
    text-align: center;
}
.project {
    width: calc(100vw / 2.5);
    position: relative;
    display: inline-block;
    color: white;
    vertical-align: top;
    margin-top: 60px;
}
.projects-container a:nth-child(1) div,
.projects-container a:nth-child(2) div {
    margin-top: 20px;
}
.project:nth-of-type(odd) {
    margin-right: 60px;
}
.project h3 {
    font-family: "Funnel Display", sans-serif;
    font-size: 36px;
    margin: 0;
    width: fit-content;
    overflow: hidden;
    white-space: nowrap;
    transition: 0.2s;
}
.project h4 {
    font-family: sans-serif;
    font-weight: 400;
    margin-top: 15px;
    text-align: left;
    height: 36px;
}
.project img {
    width: calc(100vw / 2.5);
    border-radius: 16px;
    display: block !important;
    height: 380px;
    object-fit: cover;
    object-position: center center;
    transition: 0.2s;
}
.project:hover h3 {
    text-decoration: underline;
}

.projects-scrollbar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: black;
    right: 25px;
    width: 2px;
    height: 100px;
    z-index: 1;
    transition: 0.2s;
    opacity: 0;
}

.projects-scrollbar-touch {
    background-color: white;
    width: 4px;
    right: 1px;
    height: 20px;
    position: relative;
    border-radius: 8px;
}

.parent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 10px;
    width: 1210px;
    margin: 0;
    padding: 0;
    margin-bottom: 100px;
    margin-top: 40px;
    position: relative;
    left: 50%;
    transform: translate(-50%);
}

.parent a {
    border-radius: 20px;
    transition: 0.4s;
    cursor: pointer;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    position: relative;
    border: 0;
    outline: 0;
    padding: 0;
    margin: 0;
}
@media (hover: hover) {
    .parent a:hover {
        scale: 0.97;
    }
}

.project-wrapper {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0;
    margin: 0;
    border-radius: 20px;
    -webkit-backdrop-filter: brightness(1);
    backdrop-filter: brightness(1);
    transition: 0.4s;
    z-index: 3;
}

.project-wrapper:hover {
    backdrop-filter: brightness(0.25);
    -webkit-backdrop-filter: brightness(0.25);
}
.project-wrapper:hover div {
    opacity: 1;
}

.project-wrapper-hovered {
    backdrop-filter: brightness(0.25);
    -webkit-backdrop-filter: brightness(0.25);
}
.project-wrapper-hovered div {
    opacity: 1;
}

.info {
    position: absolute;
    bottom: 0px;
    z-index: 4;
    opacity: 0;
    transition: 0.4s;
    padding: 15px;
    margin: 0;
    color: white;
    width: calc(100% - 2 * 15px);
    text-align: left;
}
.info p {
    font-size: 18px;
    font-family: sans-serif;
    margin: 0;
}
.info h2 {
    margin: 0;
    padding: 0;
    font-size: 25px;
    font-family: "Funnel Display", sans-serif;
    text-align: left;
}
.left {
    width: 520px;
}
.right {
    width: 680px;
}
.doublerow {
    grid-row: span 2 / span 2;
    height: var(--doublerow-height);
}
.half {
    height: calc((var(--doublerow-height) - 10px) / 2);
}

.parent a img {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    border-radius: 20px;
    z-index: 2;
    object-fit: cover;
    object-position: center center;
}
.div3 {
    grid-column-start: 2;
}

.div4 {
    grid-row-start: 3;
}

.div5 {
    grid-row-start: 3;
}

.div6 {
    grid-row-start: 4;
}
.div8 {
    grid-column-start: 2;
}

.div12 {
    grid-column-start: 1;
}

.div13 {
    grid-column-start: 1;
}

.div14 {
    grid-column-start: 2;
    grid-row-start: 8;
}

@media screen and (max-width: 1260px) {
    .left {
        width: 41.27vw;
    }
    .right {
        width: 53.968vw;
    }
    .parent {
        width: calc(41.27vw + 53.968vw + 10px);
    }
}
@media screen and (max-width: 800px) {
    .parent {
        width: 94vw;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 250px);
    }
    .left {
        width: 94vw;
        height: 250px;
    }
    .right {
        width: 94vw;
        height: 250px;
    }
    .doublerow {
        grid-row: unset;
        height: 250px;
    }
    /*.parent a div {*/
    /*    opacity: 1;*/
    /*}*/
    .parent a div p {
        font-size: 15px;
    }
    .div3 {
        grid-column-start: unset;
    }
    .div4 {
        grid-row-start: unset;
    }
    .div5 {
        grid-row-start: unset;
    }
    .div6 {
        grid-row-start: unset;
    }
    .div8 {
        grid-column-start: unset;
    }
    .div12 {
        grid-column-start: unset;
    }
    .div13 {
        grid-column-start: unset;
    }
    .div14 {
        grid-column-start: unset;
        grid-row-start: unset;
    }
}
@media screen and (max-width: 600px) {
    .navbar-links {
        width: 100px;
        text-align: right;
    }
    .projects-page h2 {
        margin-top: 80px;
    }
}

@media screen and (max-width: 1150px) {
    .projects-page h1 {
        font-size: 5vw;
        margin-bottom: 1vw;
    }
}
@media screen and (max-width: 700px) {
    .projects-page h1 {
        font-size: 5.5vw;
        margin-bottom: 2vw;
    }
}
@media screen and (max-width: 580px) {
    .projects-page h1 {
        margin-bottom: 3vw;
        font-size: 6vw;
    }
}
@media screen and (max-width: 480px) {
    .projects-page h1 {
        margin-bottom: 4vw;
        font-size: 6.5vw;
    }
}
.lang-nav-btn {
    background-color: #000080;
    position: fixed;
    right: calc((100vw - 1210px) / 2);
    top: 40px;
    color: white;
    z-index: 4;
    width: fit-content;
    height: fit-content;
    display: block;
    font-family: "Funnel Display", sans-serif;
    border-radius: 50%;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 9px;
    padding-bottom: 9px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    font-size: 16px;
    appearance: none;
}
.lang-en {
    display: block;
}
.lang-en:active {
    color: transparent;
}
.lang-fr {
    display: none;
}
.lang-fr:active {
    color: transparent;
}
.lang-fr:focus {
    color: transparent;
}
.lang-nav-btn:hover > .lang-en {
    display: none;
}
.lang-nav-btn:hover > .lang-fr {
    display: block;
    opacity: 0.5;
}
.contact-nav-btn {
    background-color: #000080;
    position: fixed;
    right: calc((100vw - 1210px) / 2 + 50px);
    top: 40px;
    color: white;
    z-index: 4;
    width: fit-content;
    height: fit-content;
    display: block;
    font-family: "Funnel Display", sans-serif;
    border-radius: 22px;
    padding-left: 17px;
    padding-right: 17px;
    padding-top: 12px;
    padding-bottom: 12px;
    /*cursor: pointer;*/
    transition:
        filter 0.2s,
        height 1s;
    height: 20px;
    overflow: hidden;
}
.contact-nav-btn a:nth-of-type(1) {
    margin-right: 15px;
    display: inline-block;
}
.contact-nav-btn a:nth-of-type(1) svg {
    position: relative;
    top: -2px;
    color: white;
}
.contact-nav-btn a:nth-of-type(2) {
    margin-right: 15px;
    display: inline-block;
}
.contact-nav-btn a:nth-of-type(2) img {
    width: 20px;
    height: 20px;
    filter: brightness(10);
}
.contact-nav-btn a:nth-of-type(3) {
    display: inline-block;
    margin-top: 1px;
}
.contact-nav-btn a:nth-of-type(3) img {
    width: 20px;
    height: 20px;
}
/*.contact-nav-btn:hover {
    height: 100px;
}*/
.navtitle {
    position: fixed;
    left: calc((100vw - 1210px) / 2);
    top: 35px;
    color: white;
    z-index: 4;
    width: fit-content;
    height: fit-content;
    display: block;
    font-family: "Instrument Serif", serif;
    font-size: 40px;
    cursor: pointer;
}
@media screen and (max-width: 1282px) {
    .lang-nav-btn {
        top: calc((100vw - 1210px) / 2);
    }
    .contact-nav-btn {
        top: calc((100vw - 1210px) / 2);
    }
    .navtitle {
        top: calc((100vw - 1210px) / 2 - 8px);
    }
}
@media screen and (max-width: 1250px) {
    .lang-nav-btn {
        right: 20px;
        top: 20px;
    }
    .contact-nav-btn {
        right: calc(20px + 50px);
        top: 20px;
    }
    .navtitle {
        top: 18px;
        left: 28px;
    }
}
@media (hover: hover) {
    .lang-nav-btn:hover {
        filter: brightness(1.2);
    }
    .contact-nav-btn:hover {
        filter: brightness(1.2);
    }
}

.nav {
    z-index: 3;
    position: fixed;
    left: 0;
    top: 0px;
    width: 100vw;
    height: 110px;
    user-select: none;
    pointer-events: none;
}
.nav > .blur-step {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0;
    padding: 0;
}
.nav > .blur-end {
    background: linear-gradient(#093825 15%, transparent);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.nav > .blur-step:nth-child(1) {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    mask: linear-gradient(
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 1) 10%,
        rgba(0, 0, 0, 1) 30%,
        rgba(0, 0, 0, 0) 40%
    );
}
.nav > .blur-step:nth-child(2) {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask: linear-gradient(
        rgba(0, 0, 0, 0) 10%,
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 40%,
        rgba(0, 0, 0, 0) 50%
    );
}

.nav > .blur-step:nth-child(3) {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    mask: linear-gradient(
        rgba(0, 0, 0, 0) 15%,
        rgba(0, 0, 0, 1) 30%,
        rgba(0, 0, 0, 1) 50%,
        rgba(0, 0, 0, 0) 60%
    );
}

.nav > .blur-step:nth-child(4) {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    mask: linear-gradient(
        rgba(0, 0, 0, 0) 20%,
        rgba(0, 0, 0, 1) 40%,
        rgba(0, 0, 0, 1) 60%,
        rgba(0, 0, 0, 0) 70%
    );
}

.nav > .blur-step:nth-child(5) {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    mask: linear-gradient(
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 1) 60%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0) 90%
    );
}
.nav > .blur-step:nth-child(6) {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    mask: linear-gradient(
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 1) 60%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0) 90%
    );
}
.nav > .blur-step:nth-child(7) {
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    mask: linear-gradient(
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 1) 60%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0) 90%
    );
}
