/* Page */
:root {
    --page-x: 250px;
    --timeline-x: 43.75px;
    --nav-top: 35px;
    --timeline-top: 70px;
    --carousel-height: 260px;
    --client-lift: -24px;
    --focus-point: 95vw;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background-color: #ffffff;
}

.page-scale {
    transform: scale(0.8);
    transform-origin: top left;
    width: 125vw;
    height: 125vh;
    overflow: hidden;
}

/* Type */
@font-face {
    font-family: 'Outfit Variable';
    src: url('Assets/Fonts/Outfit/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('Assets/Fonts/Outfit/Outfit-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('Assets/Fonts/Outfit/Outfit-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('Assets/Fonts/Outfit/Outfit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('Assets/Fonts/Outfit/Outfit-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('Assets/Fonts/Outfit/Outfit-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('Assets/Fonts/Jost/Jost-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

h4 {
    font-family: Outfit;
    font-size: 25px;
    font-weight: 400;
    text-transform: lowercase;
}

h5 {
    font-family: Outfit;
    font-size: 17px;
    font-weight: 600;
}

h6 {
    font-family: Outfit;
    font-size: 20px;
    font-weight: 200;
}

p {
    font-family: Outfit;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 28px;
}

a {
    font-family: Outfit;
    font-size: 22px;
    font-weight: 600;
    text-transform: lowercase;
    color: #ec4325;
    text-decoration: none;
}

.mention {
    text-transform: initial;
    font-size: 22px;
}

.client {
    text-transform: initial;
    line-height: 40px;
    font-weight: 400;
}

/* Navbar */
header {
    position: relative;
    z-index: 50;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 65px 250px 0 250px;
    background-color: #ffffff;
}

.logo-link,
.logo-link img {
    cursor: pointer;
}

.logo-link img {
    transition: opacity 0.2s ease;
}

.logo-link:hover img {
    opacity: 0.72;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    font-family: 'Outfit Variable';
    font-size: 26px;
    font-variation-settings: "wght" 400;
    line-height: 1;
    color: #2B2926;
    transition:
        color 0.25s ease,
        font-size 0.25s ease,
        font-variation-settings 0.35s ease;
}

.nav-links a.active {
    font-size: 28px;
    font-variation-settings: "wght" 600;
}

.nav-links a.ventures-active {
    color: #EC4325;
}

.nav-links a.self-active {
    color: #5fa6ee;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Timeline */
.timeline-info {
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    padding-bottom: 30px;
    padding-left: var(--page-x);
}

.year,
.title,
.status {
    display: block;
}

.year {
    font-family: Jost;
    font-size: 75px;
    font-weight: 200;
    line-height: 1;
    min-height: 90px;
}

.title {
    font-family: Outfit;
    font-size: 25px;
    font-weight: 400;
    line-height: 31px;
    min-height: 31px;
}

.status {
    font-family: Outfit;
    font-size: 19px;
    font-weight: 200;
    letter-spacing: 0.5px;
    line-height: 28px;
    min-height: 28px;
}

.status:empty {
    visibility: hidden;
}

.title,
.status {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.title.fade,
.status.fade {
    opacity: 0;
    transform: translateY(8px);
}

/* Carousel */
.work {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    height: var(--carousel-height);
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInWork 2s ease-out forwards;
}

.work::-webkit-scrollbar {
    display: none;
}

.work::before {
    content: "";
    flex: 0 0 300px;
}

.work::after {
    content: "";
    flex: 0 0 var(--focus-point);
}

.work.free-scroll {
    scroll-snap-type: none;
}

.work-link {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.work-link img,
.work img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    cursor: pointer;
    scroll-snap-align: start;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

@keyframes fadeInWork {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Client dropdown */
.client-rep {
    margin-left: var(--page-x);
    margin-top: 25px;
    margin-bottom: 12px;
    padding-top: 20px;
    transform: translateY(var(--client-lift));
    font-size: 14px;
    line-height: 22px;
    scrollbar-width: none;
}

.client-rep::-webkit-scrollbar {
    display: none;
}

.client {
    display: block;
    font-size: 15px;
    line-height: 25px;
}

.dropdown-font {
    font-family: Outfit;
    font-size: 15px;
    font-weight: 500;
    color:#2B2926
}

.client-dropdown {
    margin-bottom: 8px;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    margin: 0;
}

.dropdown-arrow {
    transform: rotate(0deg);
    transition: transform 0.25s ease;
}

.client-dropdown.open .dropdown-arrow {
    transform: rotate(90deg);
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

.client-dropdown.open .dropdown-links {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
}

/* Self */
.self-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 130px;
    bottom: 0;
    z-index: 40;

    display: grid;
    grid-template-columns: minmax(580px, 740px) 450px;
    justify-content: space-between;
    align-items: center;
    gap: 26px;

    padding: 48px 250px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}

.self-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.self-media {
    justify-self: end;
}

.self-media img {
    width: 500px;
}

.self-copy {
    max-width: 800px;
}

.self-copy p {
    font-size: 24px;
    line-height: 33px;
    font-weight: 300;
    letter-spacing: 0;
    margin: 0 0 14px 0;
}

.hello {
    margin: 0 0 34px 0;
    font-family: Outfit;
    font-size: 85px;
    font-weight: 200;
    line-height: 0.95;
    letter-spacing: -3px;
    color: #5fa6ee;
    text-transform: lowercase;
}

.hello strong {
    font-weight: 700;
}

.platform-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 44px;
}

.platform-links a,
.platforms {
    text-transform: lowercase;
    font-size: 24px;
    line-height: 36px;
    font-weight: 700;
    color: #5fa6ee;
}

.ventures-section {
    transition: opacity 0.35s ease;
}

body.self-open .ventures-section {
    opacity: 0.75;
}

/* Project pages */
body.project-open .ventures-section {
    filter: blur(11px);
    opacity: 0.58;
    transition:
        filter 0.25s ease,
        opacity 0.25s ease;
}
.project-page {
    position: fixed;
    left: 0;
    right: 0;
    top: 130px;
    bottom: 0;
    z-index: 25;

    display: grid;
    grid-template-columns: 620px 620px;
    justify-content: space-between;
    align-items: start;
    column-gap: 80px;

    padding: 48px 250px;
    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}

.project-page.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.project-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 620px;
}

.project-back {
    position: static;
    margin-bottom: 42px;
    font-size: 25px;
}

.project-copy .project-logo {
    width: auto;
    height: 250px;
    margin-bottom: 15px;
}

.project-logo {
    height: 270px;
}

.project-title {
    margin: 0 0 6px 0;
    font-size: 35px;
    font-weight: 400;
}

.specification {
    margin: 0 0 6px 0;
    text-transform: lowercase;
    font-size: 27px;
    font-weight: 200;
}

.project-date {
    margin: 0 0 36px 0;
    font-size: 22px;
    font-weight: 400;
}

.project-copy p {
    max-width: 620px;
    margin: 0 0 20px 0;
}

.project-media {
    width: 100%;
    max-width: 620px;
    justify-self: end;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 0;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
}
.project-copy {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 270px auto auto auto auto;
    align-items: start;
    max-width: 620px;
}

.project-back {
    margin-bottom: 42px;
}

.project-copy .project-logo {
    grid-row: 2;
    align-self: start;
    justify-self: start;

    width: auto;
    height: 250px;
    margin-bottom: 0;

    object-fit: contain;
    object-position: left top;
}

.project-title {
    margin-top: 15px;
}

/* Project-specific desktop positioning */
#CONTRA .project-media,
#Derbyshire .project-media,
#LINO .project-media,
#EdibleCampus .project-media,
#HANDS .project-media,
#AllenSans .project-media,
#MountShilohChurch .project-media,
#MountShilohCHWH .project-media {
    transform: translateY(200px);
}

#CONTRA .project-media {
    transform: translateY(200px);
}

#RestoreEden .project-media {
    transform: translateY(100px);
    margin-right: -80px;
}

#RestoreEden .project-image {
    width: 520px;
    max-width: none;
    height: auto;
}

#TimeCapsule .project-media {
    width: auto;
    max-width: none;
    justify-self: end;
    align-items: flex-end;
    transform: translateY(200px);
}

#TimeCapsule .project-image {
    width: 700px;
    max-width: none;
    height: auto;
}

#WrinkleInTime .project-media {
    transform: translateY(100px);
    margin-right: -80px;
}

#StoryofYourLife .project-media
{
    transform: translateY(100px);
    margin-right: -140px;
}

#StoryofYourLife .project-image {
    width: 500px;
    max-width: none;
    height: auto;
}

#WrinkleInTime .project-image {
    width: 550px;
    max-width: none;
    height: auto;
}

#Innovatoire .project-media {
    transform: translateY(50px);
}

#Human .project-media {
    transform: translateY(300px);
}

#CGSM .project-media {
    transform: translateY(230px);
    margin-right: -180px;
}

#CGSM .project-image {
    width: 420px;
    max-width: none;
    height: auto;
}

#MountShilohChurch .project-logo {
    height: 190px;
    padding-bottom: 0;
}

#MountShilohCHWH .project-logo {
    height: 150px;
    padding-bottom: 0;
}

#RavensRescue .project-media {
    transform: translateY(230px);
    margin-right: -180px;
}

#RavensRescue .project-image {
    width: 420px;
    max-width: none;
    height: auto;
}


/* Desktop */
@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --focus-point: 40vw;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        min-height: 100%;
        height: auto;
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        overscroll-behavior-x: none;
    }

    .page-scale {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        height: auto;
        transform: none;
        overflow-x: hidden;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        z-index: 50;
        background: rgba(255, 255, 255, 0.28);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        overflow: hidden;
    }

    .navbar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 48px 42px 24px 42px;
        gap: 28px;
        background: transparent;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .logo img {
        width: 88px;
    }

    .nav-links {
        gap: 28px;
        flex-shrink: 0;
        margin-left: auto;
    }

    .nav-links a {
        font-size: 24px;
    }

    .nav-links a.active {
        font-size: 25px;
    }

    main {
        padding-top: 112px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .ventures-section {
        min-height: 0;
        height: auto;
        max-width: 100vw;
        padding-bottom: 24px;
        overflow-x: hidden;
    }

    .timeline-info,
    .client-rep {
        padding-left: 0;
        margin-left: 56.25px;
    }

    .timeline-info {
        padding-top: 28px;
        padding-bottom: 18px;
    }

    .year {
        font-size: 68px;
        min-height: 72px;
    }

    .title {
        min-height: 28px;
        line-height: 28px;
    }

    .status {
        min-height: 24px;
        line-height: 24px;
    }

    .work {
        height: 220px;
        max-width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .work::before {
        flex-basis: 40px;
    }

    .client-rep {
        margin-top: 12px;
        margin-bottom: 28px;
        padding-top: 0;
    }

    .self-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        z-index: 40;

        min-height: 0;
        height: auto;
        max-width: 100vw;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        padding: 150px 56.25px calc(24px + env(safe-area-inset-bottom)) 56.25px;
        gap: 34px;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .self-media {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0;
    }

    .self-media img {
        width: 300px;
        max-width: 100%;
        display: block;
    }

    .self-copy {
        order: 2;
        width: 100%;
        max-width: 430px;
    }

    .hello {
        font-size: 50px;
        letter-spacing: -1px;
        line-height: 0.95;
        margin: 0 0 22px 0;
    }

    .self-copy p {
        font-size: 17px;
        line-height: 23px;
        margin: 0 0 18px 0;
    }

    .platform-links {
        margin-top: 24px;
    }

    .platform-links a {
        font-size: 18px;
        line-height: 27px;
    }

    .project-page {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;

        min-height: 0;
        height: auto;
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        padding: 132px 56.25px calc(24px + env(safe-area-inset-bottom)) 56.25px;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .project-copy {
        width: 100%;
        max-width: 430px;
        align-items: flex-start;
        overflow-x: hidden;
    }

    .project-back {
        font-size: 18px;
        margin-bottom: 34px;
    }

    .project-copy .project-logo,
    .project-logo {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 150px;
        margin-bottom: 30px;
        padding-bottom: 0;
    }

    .project-copy .project-title {
        font-size: 20px;
        line-height: 26px;
        margin: 0 0 6px 0;
    }

    .specification,
    .project-date {
        font-size: 18px;
        line-height: 22px;
        margin: 0 0 6px 0;
    }

    .project-date {
        margin-bottom: 24px;
    }

    .project-copy p {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        line-height: 22px;
        letter-spacing: 0;
        margin: 0 0 18px 0;
    }

    .project-copy a {
        font-size: 16px;
    }

    .project-media {
        width: 100%;
        max-width: 430px;
        margin: 28px 0 0 0;
        padding-bottom: 0;
        align-self: flex-start;
        display: flex;
        flex-direction: column;
        gap: 22px;
        overflow-x: hidden;
    }

    .project-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        margin-bottom: 0;
    }
    a { font-size: 16px;
    }

    #CONTRA .project-media,
    #RestoreEden .project-media,
    #TimeCapsule .project-media,
    #StoryofYourLife .project-media,
    #WrinkleInTime .project-media,
    #Derbyshire .project-media,
    #LINO .project-media,
    #Innovatoire .project-media,
    #EdibleCampus .project-media,
    #HANDS .project-media,
    #AllenSans .project-media,
    #Human .project-media,
    #CGSM .project-media,
    #MountShilohChurch .project-media,
    #MountShilohCHWH .project-media,
    #RavensRescue .project-media {
        transform: none;
        margin-right: 0;
        margin-left: 0;
        width: 100%;
        max-width: 430px;
        align-items: flex-start;
    }

    #RestoreEden .project-image,
    #TimeCapsule .project-image,
    #StoryofYourLife .project-image,
    #WrinkleInTime .project-image,
    #CGSM .project-image,
    #RavensRescue .project-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    #RavensRescue .project-copy,
    #RavensRescue .project-media {
        transform: none;
        margin-left: 0;
        margin-right: 0;
    }

    #RavensRescue .project-logo {
        max-width: 300px;
        max-height: 150px;
        height: auto;
        margin-bottom: 34px;
        padding-bottom: 0;
    }
}
@media (max-width: 768px) {
    .project-page {
        padding-top: 118px;
    }

    .project-back {
        margin-bottom: 12px;
    }

    .project-copy .project-logo,
    .project-logo {
        margin-bottom: 12px;
    }

    .project-copy .project-title {
        margin-bottom: 4px;
    }

    .specification,
    .project-date {
        margin-bottom: 4px;
    }

    .project-date {
        margin-bottom: 18px;
    }

    .project-copy p {
        margin-bottom: 14px;
    }
}
.project-copy {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 150px auto auto auto auto;
}

.project-copy .project-logo,
.project-logo {
    grid-row: 2;
    align-self: start;
    justify-self: start;

    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 150px;
    margin-bottom: 0;
    padding-bottom: 0;

    object-fit: contain;
    object-position: left top;
}

.project-copy .project-title {
    margin-top: 12px;
}


/* Small mobile */
@media (max-width: 390px) {
    .navbar {
        padding: 46px 34px 22px 34px;
        gap: 22px;
    }

    .nav-links {
        gap: 22px;
    }

    .nav-links a {
        font-size: 21px;
    }

    .nav-links a.active {
        font-size: 22px;
    }

    .logo img {
        width: 76px;
    }

    .timeline-info,
    .client-rep,
    .project-page,
    .self-overlay {
        padding-left: 42px;
        padding-right: 42px;
    }

    .timeline-info,
    .client-rep {
        margin-left: 0;
    }
}



/* Mobile ventures dropdown scroll */
@media (max-width: 768px) {
    body:not(.self-open):not(.project-open) {
        height: 100dvh;
        overflow: hidden;
    }

    body:not(.self-open):not(.project-open) main {
        position: fixed;
        top: 112px;
        left: 0;
        right: 0;
        bottom: 0;

        padding-top: 0;
        overflow: hidden;
    }

    body:not(.self-open):not(.project-open) .ventures-section {
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        padding-bottom: 0;
    }

    body.dropdown-open:not(.self-open):not(.project-open) main {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.dropdown-open:not(.self-open):not(.project-open) .ventures-section {
        height: auto;
        min-height: 100%;
        max-height: none;
        overflow: visible;
        padding-bottom: 24px;
    }
}
/* Project swiping */
.project-page.is-visible {
    touch-action: pan-y;
    overscroll-behavior-x: contain;
}
/* Give ventures more breathing room from header */
@media (min-width: 769px) {
    .timeline-info {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    .timeline-info {
        padding-top: 42px;
    }
}