:root {
    --grid-rows: 8px;
    --grid-row-gutter: 8px;
    --grid-columns: 15;
    --grid-margin: 80px;
    --grid-col-gutter: 32px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #F9F9F9;
}

::selection {
    color: #F9F9F9;
    background: #676767;
}


/* =========================================================
   HOMEPAGE
========================================================= */


.image-container {
    height: 100vh;
    width: 100vw;  
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out; 
    z-index: 1; 
}

.video-link.previous {
    opacity: 1;
    visibility: visible;
    z-index: 2; 
    transition: none; 
}

.video-link.active {
    opacity: 1;
    visibility: visible;
    z-index: 3; 
}

.video-link video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-graphic {
    position: absolute;
    bottom: 10%;      
    right: 40px;      
    width: 600px;
    height: auto;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: difference;
}

.standalone-logo {
    position: fixed;
    top: calc(var(--grid-rows) * 7 + var(--grid-row-gutter)); 
    left: var(--grid-margin); 
    width: 60px; 
    height: 60px;
    object-fit: contain;
    z-index: 301;
}

/* --- DESKTOP & TABLET NAVIGATION --- */

.top-nav {
    position: fixed; 
    top: calc(var(--grid-rows) * 27 + var(--grid-row-gutter));    
    left: var(--grid-margin); 
    z-index: 300;    
    display: flex;
    flex-direction: column; 
    gap: calc(var(--grid-rows) * 2);
    mix-blend-mode: difference;
}

.top-nav a {
    text-decoration: none;
    color: white;    
    font-family: "Montserrat", sans-serif;
    font-weight: 100;
    font-size: 22pt; 
    transition: opacity 0.3s ease;
    width: max-content;
}

.top-nav a:hover {
    color: #676767;    
}

/* Desktop/Tablet Search Bar */

.search-container {
    display: flex;
    align-items: center;
    border: 1px solid white;
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: calc(var(--grid-rows));
    width: 140px; 
    justify-content: space-between;
}

.search-container input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 80%;
    font-size: 1rem;
}

.search-container .search-icon {
    width: 14px;
    height: 14px;
    stroke: white;
}

/* --- TABLET SPECIFIC (Below 1024px) --- */

@media (max-width: 1024px) {
    :root {
        --grid-columns: 10;
        --grid-margin: 32px;
        --grid-col-gutter: 16px;
    }
    
    .overlay-graphic {
        right: var(--grid-margin); 
    }
}

/* --- MOBILE SPECIFIC (Phone - Below 768px) --- */

.mobile-menu-icon {
    display: none; 
    position: fixed;
    top: calc(var(--grid-rows) * 7 + var(--grid-row-gutter) + 60px + var(--grid-rows) * 6); 
    left: var(--grid-margin);
    width: 60px; 
    height: 38px;
    z-index: 300;
    cursor: pointer;
    mix-blend-mode: difference;
}

/* Full Screen Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #373737;
    z-index: 1000;
    display: none; 
    padding: calc(var(--grid-rows) * 7 + var(--grid-row-gutter)) var(--grid-margin);
}

.mobile-nav-overlay.open {
    display: block; 
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    column-gap: var(--grid-col-gutter);
    row-gap: calc(var(--grid-rows) * 4); 
    align-content: start;
}

.mobile-logo-wrapper {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: calc(var(--grid-rows) * 2);
    display: flex;
    justify-content: flex-start;
}

.mobile-logo {
    width: 60px; 
    height: 60px;
    object-fit: contain;
}

.close-btn {
    grid-column: 1 / 2;
    grid-row: 2;
    width: 60px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-wrapper {
    grid-column: 2 / -1; 
    grid-row: 2;
    background-color: #F9F9F9; 
    border-radius: 20px;
    padding: 0 12px;
    height: 38px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.mobile-search-wrapper input {
    border: none;
    background: transparent;
    outline: none;
    width: 80%;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: #2A2A2A;
}

.mobile-links-container {
    grid-column: 2 / -1; 
    grid-row: 3;
    display: flex;
    flex-direction: column;
    gap: calc(var(--grid-rows) * 4);
    margin-top: calc(var(--grid-rows) * 3);
}

.mobile-links-container a {
    color: #F9F9F9;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 36pt !important; 
    text-decoration: none;
    letter-spacing: 1px;
    line-height: 1.1;
}

/* Triggers for Mobile Phone View */
@media (max-width: 767px) {
    :root {
        --grid-columns: 5;
        --grid-margin: 16px;
        --grid-col-gutter: 16px;
    }

    .desktop-nav {
        display: none !important;
    }
    
    .mobile-menu-icon {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .overlay-graphic {
        width: 70vw;    
        right: var(--grid-margin);    
        bottom: 5%;
    }
}

/* =========================================================
   ABOUT PAGE PAGE
========================================================= */

body.scrollable-page {
    overflow-y: auto;
    overflow-x: hidden;
    background: #F9F9F9;
    color: #040707;
    font-family: "Montserrat", sans-serif;
}

/* --- TYPOGRAPHY --- */

.title-text {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 900; 
    font-size: 144pt;
    line-height: 1;
    margin: 0; 
    text-transform: uppercase;
    color: #040707;
}

.section-title {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 300; 
    font-size: 72pt; 
    line-height: 1;
    margin: 0 0 calc(var(--grid-rows) * 4) 0;
    color: #040707; 
    text-transform: uppercase;
    text-align: right;
}

.body-text, .list-date, .list-desc {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 400; 
    font-size: 18pt;
    line-height: 1.5;
    color: #040707; 
    margin: 0;
}

.download-link {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600; 
    color: #040707; 
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

/* --- TWO-COLUMN PAGE GRID LAYOUT --- */

.page-grid-container {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    column-gap: var(--grid-col-gutter);
    padding: calc(var(--grid-rows) * 7 + var(--grid-row-gutter)) var(--grid-margin) calc(var(--grid-margin) * 4);
}

.about-header {
    grid-column: 4 / -1; 
    margin-top: 0;
}

.about-image-block {
    grid-column: 4 / 8;
    margin-top: calc(var(--grid-rows) * 8);
    margin-bottom: calc(var(--grid-rows) * 10);
    height: 640px;      
    overflow: hidden;   
}

.about-image {
    width: 100%;
    height: 100%;       
    display: block;
    object-fit: cover;  
    object-position: top; 
}

.about-content-block {
    grid-column: 8 / -1; 
    margin-top: calc(var(--grid-rows) * 8);
    display: flex;
    flex-direction: column;
    gap: calc(var(--grid-rows) * 10); 
}

.list-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: calc(var(--grid-rows) * 2);
    align-items: baseline; 
}

.list-date {
    width: 280px; 
    flex-shrink: 0;
    text-align: left; 
    font-weight: 600;
}

.list-desc {
    flex-grow: 1;
    text-align: right;
}

/* --- RESPONSIVE ADJUSTMENTS (TABLET) --- */
@media (max-width: 1024px) {

}

/* --- RESPONSIVE ADJUSTMENTS (PHONE) --- */
@media (max-width: 767px) {

}


/* =========================================================
   PROJECTS PAGE SPECIFICS
========================================================= */


.projects-container {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    column-gap: var(--grid-col-gutter);
    padding: calc(var(--grid-rows) * 7 + var(--grid-row-gutter)) var(--grid-margin) 56px;
}

.projects-header {
    grid-column: 4 / -1; 
    margin-bottom: 56px; 
}

.projects-grid-wrapper {
    grid-column: 4 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--grid-col-gutter);
    row-gap: 56px; 
}

.project-item {
    grid-column: span 6;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    text-decoration: none;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 7, 7, 0.66);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 24pt;
    color: #F9F9F9;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.project-overlay p {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 14pt;
    color: #F9F9F9;
    margin: 0;
}


/* =========================================================
   PROJECT DETAIL PAGE 
========================================================= */


.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover;
    z-index: 1; 
}

.hero-grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; 
    background: transparent;
    pointer-events: none; 
    mix-blend-mode: difference; 
}

.hero-grid-overlay .about-header {
    grid-column: 4 / -1; 
}

.hero-grid-overlay .title-text {
    color: #FFFFFF !important; 
    mix-blend-mode: normal;
}

.project-content-grid {
    padding-top: calc(var(--grid-rows) * 12);
    padding-bottom: 120px;
    row-gap: 56px;
    align-items: start;
}

.col-4-15 { grid-column: 4 / -1; } 
.col-4-10 { grid-column: 4 / 11; } 
.col-11-15 { grid-column: 11 / -1; } 
.col-4-9  { grid-column: 4 / 10; } 
.col-10-15 { grid-column: 10 / -1; } 
.col-7-12 { grid-column: 7 / 13; }
.col-4-7   { grid-column: 4 / 8; } 
.col-8-15  { grid-column: 8 / -1; } 
.col-4-11  { grid-column: 4 / 12; } 
.col-12-15 { grid-column: 12 / -1; } 

.proj-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 56px;
}

.proj-text-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 56px;
}

.proj-h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 24pt;
    margin: 0 0 16px 0;
    color: #040707;
    line-height: 1.2;
}

.proj-h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14pt;
    margin: 0 0 24px 0;
    color: #040707;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proj-p {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 14pt;
    margin: 0;
    color: #040707;
    line-height: 1.6;
}

.proj-headline {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 72pt;
    line-height: 1.1;
    color: #040707;
    margin: 0;
}

.proj-image-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 56px;
}

.proj-image-group .proj-img {
    margin-bottom: 16px;
}

.proj-caption {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 11pt;
    color: #676767;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: right;
}

.locked-ratio {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.locked-ratio-vert {
    width: 100%;
    height: auto;

    aspect-ratio: 3/ 4; 
    object-fit: cover;
}