:root {
    font-size: 18px;

    /* Responsive font size for different devices */

    --color-bg: #F4F4F4;
    --color-dark: #232020;
    --color-blue: #263787;
    --color-blue-accent: #5a61ea;
    --color-green: #33434a;
    --color-darkblue: #1b254b;
    --font-color-def: black;
    --font-color-light: #ffffff;
    --font-color-grey: #5b5b5b;
    --font-color-accent-1: #a1b9cd;
    --font-color-interactive: black;


    --font-family-main: 'neue-haas-grotesk-text',
        'Open Sans',
        Arial,
        Helvetica,
        sans-serif;
    --font-family-alt: 'neue-haas-grotesk-display',
        'Open Sans',
        Arial,
        Helvetica,
        sans-serif;



    --font-size-default: 1rem;
    --space-small: 1.5rem;
    --space-medium: 5.5rem;
    --space-large: 10rem;

    --site-max-width: 90vw;
    --article-max-width: 75vw;
    --default-padding: 0vw;


    --settle-duration: 0.25s;
    --settle-translate: 30px;
    --ease-OutQuint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-InOutSine: cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

@media (max-width: 768px) {
    :root {
        font-size: 16px;
        --font-size-small: 0.8rem;
        --font-size-medium: 1.5rem;
        --font-size-large: 2rem;
        --font-size-huge: 2.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    :root {
        font-size: 18px;
        --font-size-small: 0.8rem;
        --font-size-medium: 1.5rem;
        --font-size-large: 2rem;
        --font-size-huge: 2.5rem;
    }
}

@media (min-width: 1200px) {
    :root {
        font-size: 18px;
        --font-size-small: 0.8rem;
        --font-size-medium: 1.5rem;
        --font-size-large: 2rem;
        --font-size-huge: 3.5rem;
    }
}

@media (min-width: 1600px) {
    :root {
        font-size: 20spx;
        --font-size-small: 0.8rem;
        --font-size-medium: 1.5rem;
        --font-size-large: 2.5rem;
        --font-size-huge: 3.5rem;
    }

}

@media (min-width: 2400px) {
    :root {
        font-size: 22px;
        --font-size-small: 0.8rem;
        --font-size-medium: 1.5rem;
        --font-size-large: 2.5rem;
        --font-size-huge: 3.5rem;
    }

}


@media (min-width: 3000px) {
    :root {
        font-size: 22px;
        --font-size-small: 0.8rem;
        --font-size-medium: 1.5rem;
        --font-size-large: 3.5rem;
        --font-size-huge: 4.5rem;
    }

}

.invisible {
    opacity: 0;
}

.container {}

a {
    color: var(--font-color-interactive);
    text-decoration: underline;
    transition: all 0.3s var(--ease-OutQuint);
    font-weight: 600;
}


ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

p {
    font-weight: 400;
    font-size: var(--font-size-default);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0;
    margin: 0;
    margin-bottom: 1.0rem;
}

.small {
    font-size: var(--font-size-small);
    font-weight: 400;
    line-height: 1.4;

}

h1 {
    font-family: var(--font-family-alt);
    font-size: var(--font-size-large);
    font-weight: 600;
    vertical-align: top;
    padding: 0;
    margin: 0;
    margin-bottom: 1.0rem;
}

h2 {
    font-family: var(--font-family-alt);
    font-size: var(--font-size-medium);
    font-weight: 600;
    padding: 0;
    margin: 0;
    margin-bottom: 1.0rem;
}

h3 {
    font-family: var(--font-family-alt);
    font-size: var(--font-size-default);
    font-weight: 600;
    padding: 0;
    margin: 0;
    margin-bottom: 1.0rem;
}

.huge {
    font-size: var(--font-size-huge);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.0rem;
}




header {

    margin: 0;
    padding: 0;
    padding-top: 0 !important;
}


html,
body {

    font-family: var(--font-family-main);
    font-size: var(--font-size-default);
    background: var(--color-bg);
    color: var(--font-color);

    width: 100%;
    height: auto;

    padding: 0;
    margin: 0;
    text-align: left;
    vertical-align: top;

    /* Prevents scroll chaining and bounce */
    overscroll-behavior-y: none;
    /* Prevent horizontal scroll */
    overflow-x: hidden;
}

main#main-content {
    padding-top: 100px !important;
    display: flex;
    flex-direction: column;
    height: auto;
    /* justify-content: center; */
    /* Vertical centering */
    align-items: center;
    /* Horizontal centering */
    /* min-height: 30vh; */
    /* Adjust as needed for your header/footer */
}

@media (min-width: 768px) {
    main#main-content {
        padding-top: 200px !important;
    }
}




.wrapper {

    width: var(--site-max-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    /* margin-left: auto;
    margin-right: auto; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wrapper img {
    /* Your default styles here */

    max-width: 100%;
    height: auto;
    border-radius: 2px;
    /* etc. */
}


.spacer-small {
    display: block;
    width: 100%;
    min-width: 2rem;
    min-height: clamp(1rem, 3vw, 8rem);
    max-height: 8rem;

}



.spacer-medium {
    display: block;
    width: 100%;
    min-width: 2rem;
    min-height: clamp(2rem, 7vw, 15rem);
    max-height: 15rem;
}

.spacer-large {
    display: block;
    width: 100%;
    min-width: 2rem;
    min-height: clamp(2rem, 20vw, 20rem);
    max-height: 20rem;

}

.center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}







.cta {
    width: 100%;
    box-sizing: border-box;
    display: block;
    align-self: center;
    align-items: center;
}



.simple-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s var(--ease-OutQuint);
    position: relative;
}

.simple-link h2 {

    position: relative;
    margin: 0;
    padding: 0 0;
    text-align: left;
}

.simple-link a {
    color: var(--font-color-interactive);
    text-decoration: none;

}

.simple-link__arrow {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.25em;
    width: 1.2em;
    height: 1em;
    transition: transform 0.3s var(--ease-OutQuint);
}


.simple-link h2::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: grey;
    transition: all 0.3s var(--ease-OutQuint);
    position: absolute;
    left: 0;
    opacity: 0.2;
}

.simple-link:hover {
    transform: translateX(0.35em);
}

.simple-link:hover h2::after {
    background: var(--font-color-interactive);
    opacity: 1;
}


.simple-link:hover .simple-link__arrow {
    transform: translateX(0.25em);
}

.simple-link__arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.reveal {
    /* Tells the scroll script to apply in and out view classes */
    transition: all 0.6s var(--ease-OutQuint);
}

.out-view {
    opacity: 0.25;
    transform: translateY(2rem);

}

.in-view {
    opacity: 1;
    transform: translateY(0px);
    transform: translateX(0px);
}



.featured-work {
    padding-top: 1rem;
    ;
}






main#main-content {
    z-index: 1;
    padding-top: 2rem;

}




.thumbnail-mask {
    width: 100%;
    max-width: 100%;
    /* max-width: 1200px; */
    overflow-x: auto;
}

.thumbnails-scroll {
    display: flex;
    min-width: max-content;
    overflow-x: auto;

    gap: 0.0rem;
    /* height: 500px; */
    background-color: red;
    /* padding-bottom: 1rem; */
    scrollbar-width: none;

    /* min-width: 0; */


}

.thumbnail-mask.dragging {
    cursor: grabbing;
}

.thumbnail-mask {
    cursor: grab;
    user-select: none;
}

.thumbnail-mask::-webkit-scrollbar {
    display: none;
    /* display: block;
    height: 0px;
    background: #333; */
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--color-green);
    margin: 2rem 0;
    border: none;
}

.thumbnail {
    user-select: none;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    height: 250px !important;
    object-fit: cover;
    border-radius: 0px;
    /* overflow: hidden; */
    display: block;
    border-radius: 0px ! important;

    /* Optional: add border or box-shadow for style */
}

.key-fact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.key-fact ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}





.grid-4c {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    justify-items: stretch;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.grid-3c {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    justify-items: stretch;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1200px) {
    .grid-4c {

        /* 2 columns on desktop */
        grid-template-columns: repeat(4, 1fr);
        position: relative;
        justify-items: stretch;
        align-items: stretch;

    }

    .grid-3c {
        grid-template-columns: repeat(3, 1fr);
        position: relative;
        justify-items: stretch;
        align-items: stretch;
    }
}






.project-list__item {
    position: relative;
    /* aspect-ratio: 1 / 1; */
    transform: scale(0.35);
    opacity: 0.5;
    transition: transform 0.5s var(--ease-OutQuint), opacity 0.5s var(--ease-OutQuint), margin-top 0.5s var(--ease-OutQuint);
    margin-top: 0;
    width: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    /* Adjust color and thickness as needed */
    /* border: 1px solid #ccc; */
    /* Optional: rounded corners */
    border-radius: 0px;
    /* Ensure border is included in sizing */
    box-sizing: border-box;
}

.project-list__tags .project-tag {
    display: inline-block;
    background: #fff;
    color: #000;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.85em;
    margin: 2px 4px 2px 0;
    border: 1px solid #ddd;
}

.project-list__item.in-view {
    transform: scale(1);
    opacity: 0.95;
}

.project-list__item:hover {

    /* transform: scale(1.05); */
    /* Optional: add a slight shadow on hover */
    opacity: 1;

    /* border-color: red; */

}

.project-list__link {
    display: block;

    text-decoration: none;
    color: inherit;
}

.project-list__divider {
    border: none;
    border-top: 1px solid #ccc;
    /* margin: 1.5em 0 0 0; */
    width: 100%;
    align-self: center;
}

.project-list__item:hover .project-list__image {
    opacity: 1;
    transform: translateY(-10px);
    box-shadow: 0 10px 1px rgba(0, 0, 0, 0.05);

}

.project-list__item:hover .project-list__title {
    opacity: 1;
    transform: translateY(-10px);
    ;
}

.project-list__item:hover .project-list__divider {

    border-top: 2px solid black;
    ;
}

.project-list__image {

    display: block;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    transition: all 0.3s var(--ease-OutQuint);
    box-shadow: 0 10px 3px rgba(0, 0, 0, 0.0);


    /* max-height: 200px; */
    /* Optional: limit image height */
    object-fit: cover;
    display: block;
    /* flex: 1 1 auto; */
    /* Optional: crop images nicely */
    /* border-radius: 8px 8px 0 0; Optional: match item corners */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

.project-list__title {
    opacity: 0;
    position: flex;
    left: 0;
    bottom: 0;
    width: 100%;
    /* height: 25%; */
    color: #fff;
    /* background: white; */
    color: var(--font-color);
    /* Optional: dark overlay for readability */
    text-align: left;

    padding-top: 0.3rem;
    padding-left: 0.5rem;
    ;
    /* box-sizing: border-box; */
    z-index: 2;
    transition: all 0.6s var(--ease-OutQuint);
}

.project-list__item.in-view .project-list__title {
    opacity: 1;
    transform: translateY(0px);
    /* Optional: fade in effect */
}

.project-list__title h3 {
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    /* Or use margin: 0.2em 0; for both */
    font-size: 1.1em;
    /* Optional: adjust size */
    font-weight: 300;
    /* Optional: adjust weight */
}

.project-list__title .client {

    font-weight: 800;
}

.project-list__item.fade-in {
    animation: fade-in var(--settle-duration) ease-in-out both;

}

.project-list__item.settle {
    animation: settle var(--settle-duration) var(--ease-OutQuint) both;
}

@keyframes settle {
    0% {
        transform: translateY(var(--settle-translate));
        opacity: 0.0;

    }


    30% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
        opacity: 1.0;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.5;
    }
}