/* typefaces */
@font-face {
    font-family: "AkkuratLLEdu-Regular";
    src: url("/fonts/AkkuratLLEduWeb-Regular.woff2") format("woff2"),
         url("/fonts/AkkuratLLEduWeb-Regular.woff") format("woff"),
         url("/fonts/AkkuratLLEdu-Regular.otf") format("opentype");
}

@font-face {
    font-family: "SF-Mono-Light";
    src: url("/fonts/SF-Mono-Light.otf") format("opentype");
}  

@font-face {
    font-family: "routed-gothic-narrow";
    src: url("/fonts/routed-gothic-narrow.ttf") format("truetype");
} 

@font-face {
    font-family: "HelveticaNowText-Bold";
    src: url("/fonts/HelveticaNowText-Bold.otf") format("opentype");
} 

@font-face {
    font-family: "HelveticaNowText-Medium";
    src: url("/fonts/HelveticaNowText-Medium.otf") format("opentype");
} 

/* variables */
:root {
    --text-light: #0b0b0b;
    --bg-light: #efefef;
    --text-dark: #efefef;
    --bg-dark: #0b0b0b;
    --green: #bbff00;
    --gradient-bg-light: #efefef00;
    --gradient-bg-dark: #0b0b0b00;
    --gradient-green: #bbff00c9;
}

.light-mode {
    --text: var(--text-light);
    --bg: var(--bg-light);
    --gradient-bg: var(--gradient-bg-light);
}

.dark-mode {
    --text: var(--text-dark);
    --bg: var(--bg-dark);
    --gradient-bg: var(--gradient-bg-dark);
}

/* global */
body {
    /* min-height: 2500px; */
    font-family: "AkkuratLLEdu-Regular", "AkkuratLLEduWeb-Regular";
    color: var(--text);
    background-color: var(--bg);
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Dark mode toggle button styling */
#dark-mode-toggle {
    position: fixed;
    right: 0.5rem;
    top: 0.5rem;
    z-index: 1000;
    border: 0;
}

.dark-mode circle {
    stroke: #E0DEDE;
}

.light-mode circle {
    stroke: #E0DEDE;
}

.light-mode circle {
    stroke: var(--text);
}

.light-mode .li-primary a.active svg {
    fill: #0b0b0b;
}

.dark-mode .li-primary a.active svg {
    fill: #E0DEDE;
}

/* Default layout: vertical list with horizontal projects */
#projects-container {
    display: flex;
    flex-direction: column;
  }
  
  /* ---------------- GRID VIEW ---------------- */
  
  #projects-container.grid-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  /* Each featured project stacks image and text */
  #projects-container.grid-view .featured-project {
    display: block !important;
    border-bottom: 1px solid var(--text);
    border-right: 1px solid var(--text);
  }
  
  /* Remove right border on every second item in each row */
  #projects-container.grid-view .featured-project:nth-child(2n) {
    border-right: none;
  }
  
  /* Remove <hr> from grid layout */
  #projects-container.grid-view hr {
    display: none !important;
  }
  
  /* Grid view: simplify and shrink project text */
  #projects-container.grid-view .project-text {
    display: none;
    /* flex-direction: column;
    padding-top: 0;
    padding-bottom: 1.25rem;
    gap: 0.5rem;
  
    h1 {
      font-size: 1.25rem;
      line-height: 1rem;
    }
  
    p {
      display: none;
    }
  
    ul {
      padding: 0;
  
      li {
        font-size: 0.5rem;
      }
    } */
  }
  
  /* Grid view: remove image borders */
  #projects-container.grid-view .project-image video,
  #projects-container.grid-view .project-image img {
    border: 0 !important;
  }
  
  /* ---------------- MEDIA ---------------- */
  
  .project-image video,
  .project-image img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* ---------------- TOGGLE BUTTON STYLES ---------------- */
  
  .portfolio-landing-ul {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
  
    button {
      border: 0;
      line-height: 1.2rem;
      font-family: "SF-Mono-Light";
      padding: 0 1rem 0 0;
      color: var(--text);
      background: none;
      cursor: pointer;
    }
  }

  .layout-button button.active {
    background-color: var(--green);
  }
  
  
  /* Special rule just for portfolio landing */
  .portfolio-landing .ul-primary {
    border: none !important;
  }
  

/* modal-styles */
.modal:target {
    display: flex;
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000000000000000000000000;
}

.modal img {
    max-width: 90vw;
    max-height: 90vh;
}

.modal video {
    max-width: 90vw;
    max-height: 90vh;
}

/* .close {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
} */

@media (max-width: 768px) {
    .layout-button {
        display: none; /* Hides the toggle button on mobile */
    }

    #projects-container {
        display: flex; /* Ensure list view is the default on mobile */
        flex-direction: column;
    }

    /* Ensure the active button for .list on mobile is highlighted */
    #list-toggle {
        background-color: var(--green);
    }

    .portfolio-landing-ul {
        display: flex;
        justify-content: space-around;

        .ul-primary {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            width: 100vw;
        }

        svg {
            display: none;
        }
    }
}

/* For larger screens, show layout button (grid or list) */
@media (min-width: 769px) {
    .layout-button {
        display: block; /* Show toggle button on desktop */
    }
}

/* ---------header---------- */

/* header-primary */
header {
    position: sticky;
    top: 0;
    z-index: 100000000000000000000000;
    background-color: var(--bg);
}

header a {
    text-decoration: none;
}

.h1-logo {
    text-transform: uppercase;
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: -0.1rem;
    padding: 0 0.5rem;
    text-align: left;
    
    @media screen and (min-width: 310px) and (max-width: 400px) {
        text-align: center;
        font-size: 2.3rem;
    }

    @media screen and (min-width: 450px) {
        text-align: left;
    }
}

.ul-primary .li-primary-link.active {
    background-color: var(--green);
    color: var(--text-light);

    svg {
        fill: var(--text-light) !important;
    }

    circle {
        stroke: var(--text-light) !important;
    }
}

.ul-primary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--text);
    border-bottom: 1px solid var(--text);

    @media screen and (min-width: 1007px) {
        grid-template-columns: 21rem 21rem 21rem;
        justify-items: start;
    }

    @media screen and (min-width: 310px) and (max-width: 400px) {
        gap: 0;
    }

    a {
        text-decoration: none;
        display: flex;
        align-items: center;
        width: 100%;
        padding-left: 1rem;

        @media screen and (min-width: 310px) and (max-width: 400px) {
            justify-content: center;
        }

        @media screen and (min-width: 310px) and (max-width: 400px) {
            padding-left: 0;
        }
    }

    a:hover {
        background-color: var(--green);
        color: var(--text-light);

        svg {
            fill: var(--text-light) !important;
        }

        circle {
            stroke: var(--text-light) !important;
        }
    }

    li {
        text-transform: uppercase;
        display: flex;
        align-items: center;
        border-right: 1px solid var(--text);
        max-width: 100%;
        width: 100%;
        font-family: "SF-Mono-Light", monospace;
    
        @media screen and (min-width: 1007) {
            width: 20rem;
        }

        @media screen and (min-width: 310px) and (max-width: 400px) {
            margin-left: 0;
        }
    
        svg {
            margin-right: 0.5rem;

            @media screen and (min-width: 400px) {
                margin-right: 1rem;
            }

            @media screen and (min-width: 310px) and (max-width: 400px) {
                display: none;
            }
    
        }
    
        h1 {
            font-size: 0.75rem;
            padding-top: 0.1rem;
            padding-bottom: 0.1rem;

            @media screen and (min-width: 400px) {
                font-size: 0.9rem;
            }

            @media screen and (min-width: 310px) and (max-width: 400px) {
                display: block;
                align-content: center;
            }
        }
    }
}

li:last-child {
    @media screen and (max-width: 1007px) {
        border-right: 0;
    }
}

.li-primary-link {
    width: 100%;
}


/* header-secondary */
/* .ul-portfolio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--text);
    gap: 1rem;

    @media screen and (min-width: 675px) {
        grid-template-columns: 20rem 20rem;
        justify-items: start;
    }

    li {
        text-transform: uppercase;
        display: flex;
        align-items: center;
        border-right: 1px solid var(--text);
        max-width: 100%;
        margin-left: 1rem;
        width: 100%;
    
        @media screen and (min-width: 675px) {
            width: 20rem;
        }
        
    
        a {
            text-decoration: none;
            display: flex;
            align-items: center;
        }
    
        svg {
            margin-right: 1rem;
    
        }
    
        h1 {
            font-size: 0.9rem;
            padding-top: 0.1rem;
            padding-bottom: 0.1rem;
        }
    }
}

li:last-child {
    @media screen and (max-width: 675px) {
        border-right: 0;
    }
} */

/* -------portfolio-landing---------- */

.featured-project {
    display: grid;
    grid-template-columns: 1fr;

    @media screen and (min-width: 675px) {
        grid-template-columns: 20.95rem 1fr;
        align-items: start;
    }
}

.project-image {
    position: relative;
    display: inline-block;

    img {
        display: block;
        width: 100%;
        height: auto;
        padding: 1rem;
        object-fit: cover; 
    
        @media screen and (min-width: 675px) {
            order: 1;
            border-left: 1px solid var(--text);
        }
    }

    video {
        display: block;
        width: 100%;
        height: auto;
        padding: 1rem;
        object-fit: cover; 
    
        @media screen and (min-width: 675px) {
            order: 1;
            border-left: 1px solid var(--text);
        
        }
    }

    a:hover {
        cursor: pointer;
    }

    > :first-child {
        cursor: not-allowed;
    }

    .view-button {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 10000;
        transform: translate(-50%, -50%);
        border: 0.75px solid var(--text);
        border-radius: 2rem;
        font-size: 0.9rem;
        padding: 0.25rem 0.75rem;
        margin: 0;
        letter-spacing: -0.01rem;
        margin-top: -1px !important;
        text-transform: uppercase;
        font-family: "SF-Mono-Light", monospace;
        background-color: var(--bg);
        color: var(--text);
        transition: 0.15s cubic-bezier(0.215, 0.61, 0.355,1);
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    .view-button:hover {
        color: var(--bg);
        background-color: var(--text);
    }

    .view-button::before {
        content: "";
        position: absolute;
        top: -50px; bottom: -50px;
        left: -50px; right: -50px;
        z-index: -1;
    }
}


.project-text {
    padding: 0 1rem 1rem;
    display: block;
    grid-template-columns: 45% 55%;

    @media screen and (min-width: 675px) {
        order: -1;
        padding-top: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
        letter-spacing: -0.03rem;
        line-height: 1.6rem;
        margin-right: 0.2rem;
    }

    a {
        text-decoration: underline;
        text-decoration-color: var(--green) !important;
        cursor: pointer !important;
    }

    a:hover {
        text-decoration: none;
        background-color: var(--green);
    }

    ul {
        display: flex;
        flex-wrap: wrap;
        text-align: left;
        padding-top: 0.75rem;
    }

    li {
        border: 0.75px solid var(--text);
        border-radius: 2rem;
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
        margin: 0;
        letter-spacing: -0.01rem;
        margin-top: -1px !important;
        text-transform: uppercase;
        font-family: "SF-Mono-Light", monospace;
    }
    
    p {
        grid-column: 1/3;
        font-size: 0.85rem;
        margin-top: 0.5rem;
        line-height: 1rem;

        @media screen and (min-width: 675px) {
            margin-top: 0.75rem;
        }
    }
}

.p-indent {
    text-indent: 25px;
    margin-top: 0.5rem !important;
    margin-bottom: auto;
}

hr {
    margin: 0 1rem;
    display: block;
    border: none;
    height: 1px;
    background-color: var(--text);

    @media screen and (min-width: 675px) {
        margin: 0;
    }
}

.project-meta-data {
    z-index: 10000;
    position: fixed;
    background-color: var(--green);
    bottom: 0;
    right: 0;
    display: flex;
    justify-items: center;
    border-top: 1px solid #0b0b0b;
    width: 100vw;
    gap: 1rem;
    justify-content: space-around;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;

    .meta-item {
        display: flex;
        gap: 0.5rem;
        
        h1 {
            font-family: "SF-Mono-Light", monospace;
            text-transform: uppercase;
            font-size: 0.6rem;
            color: #0b0b0b !important;
            padding: 0;
            margin: 0;
        }
        
        p {
            font-size: 0.8rem;
            color: #0b0b0b !important;
        }
    }

    @media (max-width: 970px) and (min-width: 840px) {
        .project-meta-data {
            gap: 0.25rem;
            padding: 0.5rem;
        }
    
        .meta-item {
            gap: 0.2rem;
    
            h1 {
                font-size: 0.6rem;
            }
            
            p {
                font-size: 0.7rem;
            }
        }
    }
}

@media screen and (max-width: 675px) {
    .project-meta-data {
        display: none !important;
    }
}

.project-meta-data-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.5rem;
    border-top: 1px solid var(--text);

    .meta-item-mobile {
        h1 {
            font-family: "SF-Mono-Light", monospace;
            text-transform: uppercase;
            font-size: 0.6rem;
            color: var(--text);
            padding: 0.25rem 0.25rem 0 0.25rem;
            margin: 0;
        }
        
        p {
            font-size: 0.8rem;
            color: var(--text);
            padding: 0.25rem;
        }
    }

    @media (max-width: 675px) {
        display: grid;
    }

    @media (min-width: 675px) {
        display: none;
    }
}

.project-1-meta {
    display: flex;
}

.project-2-meta {
    display: none;
}

@media screen and (max-width: 675px) {
    .project-1-meta, .project-2-meta {
        display: none !important;
    }
}

/* --------apple-carousel--------- */
.apple-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    padding: 0;
    display: flex;
}

.apple-carousel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.apple-carousel-image {
    width: 100%;
    display: none;
}

.apple-carousel-image.active {
    display: block;
}
  
.apple-carousel-image::before,
.apple-carousel-image::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 50%;
}

.apple-carousel-image::before {
left: 0;
cursor: w-resize;
z-index: 10000000;
}

.apple-carousel-image::after {
right: 0;
cursor: e-resize;
z-index: 10000000;
}


/* -----------portfolio-archive----------- */

.grid-container {
    column-count: 5;
    column-gap: 0.75rem;
    padding: 1rem;
    

    @media screen and (max-width: 1200px) {
        column-count: 4;
    }

    @media screen and (max-width: 900px) {
        column-count: 3;
    }

    @media screen and (max-width: 600px) {
        column-count: 2;
    }
}

.grid-item {
    margin-bottom: 0.5rem;
    display: inline-block;
    width: 100%;
    position: relative;
    cursor: pointer;

    img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    video {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }
}

.text-hover {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    border: 0.5px solid var(--text);
    background-color: var(--bg);
    font-size: 0.575rem;
    padding: 0.10rem 0.25rem;
    pointer-events: none;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.grid-item:hover .text-hover {
    visibility: visible;
}

/* -----------info----------- */

.info-section {
    display: flex;
    flex-direction: column; /* Stack items vertically */

    h1 {
        text-transform: uppercase;
        font-size: 0.9rem;
        padding: 0.1rem 0 0.1rem 1rem;
        border-bottom: 1px solid var(--text);
        border-top: 1px solid var(--text);
        font-family: "SF-Mono-Light", monospace;
    }

    p {
        padding: 1rem 1rem 0 1rem;
        font-size: 0.9rem;
    }

    .p-web-credit {
        padding: 0 0 0 1rem;
        font-size: 0.7rem;
        margin-top: 2rem;
        font-family: "SF-Mono-Light", monospace;
    }

    .p-last-update {
        padding: 0 0 0 1rem;
        font-size: 0.7rem;
        margin-bottom: 1rem;
        font-family: "SF-Mono-Light", monospace;
        letter-spacing: -0.04rem;
    }
}

.info-section-about {
    border-top: 0 !important;
}

.contact-tags {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
    a {
        font-size: 1rem;
        display: inline-block;
        text-decoration-color: var(--green);
    }

    a:hover {
        background-color: var(--green);
    }
}

.info-top-tier {
    display: grid;
    grid-template-columns: 1fr 1fr;

    .info-section:nth-child(1) {
        grid-column: 1/-1;
    }

    .info-section:nth-child(3) h1 {
        border-left: 1px solid var(--text);
    }

    @media (min-width: 675px) {
        grid-template-columns: 41.95rem 1fr 1fr;

        .info-section:nth-child(1) {
            grid-column: 1/2;
        }

        .info-section:nth-child(2) h1 {
            border-top: 0;
            border-left: 1px solid var(--text);
        }

        .info-section:nth-child(3) h1 {
            border-top: 0;
        }
    }
}

.info-bottom-tier {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 0.5px solid var(--text);

    @media screen and (min-width: 675px) {
        grid-template-columns: 1fr 1fr;

        .info-section:first-child {
            border-right: 1px solid var(--text);
        }

        .info-section:last-child {
            border-right: 1px solid var(--text);
        }
    }

    @media screen and (min-width: 900px) {
        grid-template-columns: 1fr 1fr 1fr;
    
        .info-section:nth-child(2) {
            border-right: 1px solid var(--text);
        }

        .info-section:last-child {
            border-right: 0;
        }
    }
}

.experience-item {
    display: block;
    grid-template-columns: 1fr 1fr;
    padding: 0.5rem 1rem;

    a {
        font-size: 1rem;
        text-decoration-color: var(--green);
    }

    p {
        padding: 0;
        grid-column: 1/-1;
        max-width: 28ch;
        line-height: 1rem;
        font-size: 0.8rem;
    }

    .experience-title {
        display: flex;
        align-items: flex-end;
        margin-bottom: 0.2rem;
    }

    h2 {
        font-size: 0.6rem;
        margin-left: 0.2rem;
        font-family: "SF-Mono-Light", monospace;
        letter-spacing: -0.04rem;
    }

    .experience-year {
        font-size: 0.7rem;
        font-family: "SF-Mono-Light", monospace;
        letter-spacing: -0.04rem;
    }

    .experience-year-calarts {
        font-size: 0.7rem;
        margin-bottom: 1rem;
        font-family: "SF-Mono-Light", monospace;
        letter-spacing: -0.04rem;
    }

    a:hover {
        background-color: var(--green);
      }
}

.experience-item:first-of-type {
    padding-top: 1rem;
}

.experience-item:last-of-type {
    padding-bottom: 1rem;
}

.recognition-item {
    padding: 0.5rem 1rem;

    a {
        font-size: 1rem;
        text-decoration-color: var(--green);
    }

    p {
        padding: 0;
        max-width: 28ch;
        line-height: 1rem;
        font-size: 0.8rem;
    }

    .recognition-title {
        margin-bottom: 0.2rem;
    }

    .recognition-year {
        font-size: 0.7rem;
        font-family: "SF-Mono-Light", monospace;
        letter-spacing: -0.04rem;
    }

    .recognition-year-ca {
        font-size: 0.7rem;
        font-family: "SF-Mono-Light", monospace;
        letter-spacing: -0.04rem;
    }

    h2 {
        font-size: 0.6rem;
        margin-left: 0.2rem;
        font-family: "SF-Mono-Light", monospace;
        letter-spacing: -0.04rem;
    }

    .recognition-title {
        display: flex;
        align-items: flex-end;
        margin-bottom: 0.2rem;
    }

    a:hover {
        background-color: var(--green);
      }
}

.recognition-item:first-of-type {
    padding-top: 1rem;
}

.recognition-item:last-of-type {
    padding-bottom: 1.5rem;
}

/* image-carousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 400px; 
    aspect-ratio: 1/1;
    margin: 0;
    overflow: hidden;
    padding: 1rem;
    box-sizing: border-box;
}

.carousel-image {
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.carousel-image.active {
    display: block;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-image::before,
.carousel-image::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 50%;
}

.carousel-image::before {
left: 0;
cursor: w-resize;
z-index: 10000000;
}

.carousel-image::after {
right: 0;
cursor: e-resize;
z-index: 10000000;
}

.cursor-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 10000000000000;
}

.cursor-zone.left {
    left: 0;
    cursor: w-resize;
}

.cursor-zone.right {
    right: 0;
    cursor: e-resize;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-image: linear-gradient(0deg, var(--gradient-green), var(--gradient-bg));
    z-index: -9999;
    padding: 10rem;
    box-sizing: border-box;

    @media screen and (max-width: 675px) {
        padding: 10rem;
    }
}

/* -------case-studies---------- */

.thesis-tag {

    li {
        background-color: var(--green);
        color: var(--bg-dark);
    }
}

.project-unav {
        filter: blur(2px);
        cursor: not-allowed; 

        img {
            border: none !important;
        }
}

.cs-project-text.project-unav-text {
    box-shadow: 1px 0 0 0 var(--text); /* 1px to the right, zero blur/spread */
}

.meta-data-gif {
    @media screen and (min-width: 676px) {
        max-width: 50% !important;
    }

    @media screen and (max-width: 675px) {
        max-width: 10% !important;
    }
}

.featured-project-row {
    @media screen and (min-width: 675px) {
        display: grid;
        grid-template-columns: 20.95rem 1fr;
        align-items: start;
    }
}

.cs-project-image {
    position: relative;
    
    img {
        display: block;
        width: 100%;
        height: auto;
        padding: 1rem 1rem 0 1rem;
        object-fit: cover;
        
        @media screen and (min-width: 675px) {
            border-left: 1px solid var(--text);
        }
    }

    a {
        cursor: pointer !important;
    }

    video {
        display: block;
        width: 100%;
        height: auto;
        padding: 1rem 1rem 0 1rem;
        object-fit: cover;

        @media screen and (min-width: 675px) {
            border-left: 1px solid var(--text);
        }
    }

        @media screen and (max-width: 675px) {
            padding-bottom: 0;
        }


    .view-button {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 10000;
        transform: translate(-50%, -50%);
        border: 0.75px solid var(--text);
        border-radius: 2rem;
        font-size: 0.9rem;
        padding: 0.25rem 0.75rem;
        margin: 0;
        letter-spacing: -0.01rem;
        margin-top: -1px !important;
        text-transform: uppercase;
        font-family: "SF-Mono-Light", monospace;
        background-color: var(--bg);
        color: var(--text);
        transition: 0.15s cubic-bezier(0.215, 0.61, 0.355,1);
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    .view-button:hover {
        color: var(--bg);
        background-color: var(--text);
    }

    .view-button::before {
        content: "";
        position: absolute;
        top: -50px; bottom: -50px;
        left: -50px; right: -50px;
        z-index: -1;
    }
}

/* .featured-project-row:last-child {
    padding-bottom: 2rem !important;
} */

.featured-project-row.last-item {
    padding-bottom: 2rem !important;
}


.cs-project-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    height: 100%;

    @media screen and (min-width: 675px) {
        order: -1;
        padding: 1rem 1rem 0 1rem;
    }

    h1 {
        font-size: 1.5rem;
        letter-spacing: -0.03rem;
        line-height: 1.6rem;
        margin: 0;
        grid-column: 1/-1;
    }

    ul {
        display: flex;
        flex-wrap: wrap;
        text-align: left;
        padding-top: 0.75rem;
        grid-column: 1/-1;
    }

    li {
        border: 0.75px solid var(--text);
        border-radius: 2rem;
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
        margin: 0;
        letter-spacing: -0.01rem;
        margin-top: -1px !important;
        text-transform: uppercase;
        font-family: "SF-Mono-Light", monospace;
    }

    p {
        grid-column: 1/3;
        font-size: 0.85rem;
        margin-top: 0.5rem;
        line-height: 1rem;

        @media screen and (min-width: 675px) {
            margin-top: 0.75rem;
        }
    }

    /* .cs-credit-block {
        margin-top: 1rem;
        grid-column: 1/-1;
        margin-bottom: 2rem;

        hr {
            margin: 1rem 0;
            border: 0.5px solid var(--text);
        }

        .cs-credit-block-title {
            font-family: "SF-Mono-Light", monospace;
            font-size: 0.65rem;
            letter-spacing: -0.04rem;
            margin-top: 0.5rem;
        }

        .cs-credit-block-list {
            text-indent: 25px;
            font-family: "SF-Mono-Light", monospace;
            font-size: 0.65rem;
            letter-spacing: -0.05rem;
            margin: 0;
            line-height: 0.9rem;
        }
    } */
}

.cs-project-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    img {
        display: block;
        width: 100%;
        height: auto;
        padding: 1rem 1rem 0 1rem;
        object-fit: cover;

        @media screen and (min-width: 675px) {
            border-left: 1px solid var(--text);

            img {
                padding: 0;
            }
        }
    }

    video {
        display: block;
        width: 100%;
        height: auto;
        padding: 1rem;
        object-fit: cover;

        @media screen and (min-width: 675px) {
            border-left: 1px solid var(--text);
        }
    }

    > :last-child {
        border: 0;
        padding-left: 0.5rem;
        padding-top: 1rem;
    }

    > :first-child {
        padding-right: 0.5rem;
        padding-top: 1rem;
    }
}

/* exeption */

.fc-exeption video {
    padding-bottom: 1rem !important;
}

.fc-exeption img {
    padding-bottom: 1rem !important;
}

/* .fit-to-mota-exception video {
    padding-bottom: 0;
}

.fit-to-mota-2-exception img {
    padding-top: 0 !important;
}

.ee-exception video {
    padding-top: 0;
    padding-bottom: 1rem;
} */
.cs-routed-header {
    font-family: "routed-gothic-narrow";
    font-size: 1rem;
    text-decoration: underline;
    text-transform: uppercase;
    padding-top: 2rem;
    padding-left: 2.5rem;
    padding-bottom: 2rem;
}

.cs-big-heading {
    border-left: 1px solid var(--text);
    border-bottom: 1px solid var(--text);

    @media screen and (max-width: 675px) {
        border: none;
    }
}

.cs-helvetica-header-big {
    font-family: "HelveticaNowText-Medium", sans-serif;
    font-size: 2rem;
    line-height: 2.2rem; /* 100% */
    letter-spacing: -0.05625rem;
    padding: 0 2.5rem 2.5rem;

    @media screen and (max-width: 400px) {
        font-size: 1.5rem;
        line-height: 1.75rem; /* 100% */
    }
}

.cs-helvetica-hr {
    padding: 0 !important;
    margin: 0.25rem 0 !important;
}

.cs-helvetica-header-small {
    font-family: "HelveticaNowText-Medium", sans-serif;
    font-size: 1.4rem;
    line-height: 1.7rem; /* 95% */
    letter-spacing: -0.075rem;
    padding: 0 2.5rem 2.5rem;

    @media screen and (max-width: 400px) {
        font-size: 1.2rem;
        line-height: 1.5rem; /* 100% */
    }

    @media screen and (min-width: 2000px) {
        padding: 0 1.5rem 0;

        &:last-child {
            padding-bottom: 2.5rem;
          }
    }
}

/* -------main-landing--------- */

.featured-project.project-wip {
    a {
        cursor: not-allowed !important;
    }
}

.landing-page {
    overflow-y: hidden;
    overflow-x: hidden;
    height: 100vh;
}

.landing-carousel {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    height: 90.75%;
    background-color: #000;
}

.landing-carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    object-fit: cover;
}

.landing-carousel-image.active {
    display: block;
}

.landing-carousel video.landing-horizontal,
.landing-carousel img.landing-horizontal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.landing-carousel video.landing-vertical,
.landing-carousel img.landing-vertical {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    object-fit: cover;

    @media (max-aspect-ratio: 3/4) {
        width: 100%;
        height: auto;
    }
}

/* .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.1);
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.carousel-button.prev {
    left: 2rem;
}

.carousel-button.next {
    right: 2rem;
} */

.landing-carousel::before,
.landing-carousel::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 50%;
}

.landing-carousel-image::before {
left: 0;
cursor: w-resize;
z-index: 10000000;
}

.landing-carousel-image::after {
right: 0;
cursor: e-resize;
z-index: 10000000;
}