/* ==========================================================================
   1. Base Reset & Layout Framework
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 200;
    overflow-x: hidden;
}

.page-wrapper {
    position: relative;
    width: 100%;
}

/* ==========================================================================
   Minimalist Project Case Study Utility Navigation
   ========================================================================== */
.project-mini-banner {
    position: relative;
    width: 100%;
    padding: 40px 40px 0 40px; /* Aligns smoothly with your standard side margins */
    display: flex;
    justify-content: flex-start;
    z-index: 100;
}

.project-nav-container {
    display: flex;
    align-items: center;
}

.project-menu-trigger {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

/* Custom scaled down plus sign for case study context */
/* Custom scaled down plus sign for case study context */
.nav-plus-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ADDED: Subtle rotation preview on hover when the menu is still closed (Desktop only) */
@media (min-width: 577px) {
    .project-menu-trigger:not(.is-open):hover .nav-plus-icon {
        transform: rotate(45deg);
        opacity: 0.7; /* Softens the color slightly on hover for visual feedback */
    }
}

/* Rotates to a crisp 'X' only when the menu has the .is-open class */
.project-menu-trigger.is-open .nav-plus-icon {
    transform: rotate(45deg);
    opacity: 1;
}

/* Subtle link tray reveal matching site framework style */
.project-links-reveal {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-15px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
}

/* UPDATED: Reveals the links on desktop hover OR when clicked/active (.is-open) */
@media (min-width: 577px) {
    .project-menu-trigger:hover .project-links-reveal {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }
}

/* Keeps the links open when the menu has been locked via click */
.project-menu-trigger.is-open .project-links-reveal {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.project-reveal-link {
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    font-style: italic;
    color: #ffffff;
    opacity: 0.5;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.project-reveal-link:hover {
    opacity: 1;
}

.project-nav-separator {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    color: #444444;
    padding: 0 8px;
    user-select: none;
}



/* ==========================================================================
   3. Top Info Banner
   ========================================================================== */
.case-study-content {
    padding: 0 40px 20px 40px;
}

.project-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 60px;
    margin-top: 20px;
}

.project-name {
    font-family: 'Syne', sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 0.95;
    margin-bottom: 20px; 
    letter-spacing: -1px;
}

.meta-data {
    color: #666;
    font-size: 16px;
    font-family: 'EB Garamond', serif;
    font-style: italic;
}

.intro-right {
    font-size: 16px;
    line-height: 1.4;
    color: #e0e0e0;
    column-count: 2;
    column-gap: 40px; 
}

/* ==========================================================================
   4. Full-Width Gallery & Campaign Framework
   ========================================================================== */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.campaign-block {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    margin-bottom: 100px;
}

.campaign-block:last-child {
    margin-bottom: 40px;
}

.campaign-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    border-top: 1px solid #222222;
    padding-top: 24px;
}

@media (min-width: 768px) {
    .campaign-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.campaign-header p,
.campaign-header span,
.campaign-header h4,
.campaign-desc,
.descriptor-line {
    color: #888888 !important;   
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    margin-top: 6px !important;
}

.campaign-awards,
.awards-list,
.award-item {
    color: #666666;              
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.asset {
    width: 100%;
    display: block;
}

.asset img { 
    width: 100%; 
    display: block; 
}

.gallery > .asset.full {
    margin: 0;
}

.asset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; 
    width: 100%;
}

/* ==========================================================================
   5. Work Footer Layout
   ========================================================================== */
/* ==========================================================================
   4.8 Consolidated Minimalist Footer Zone
   ========================================================================== */
.footer-contact-zone {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 120px 60px 60px 60px;
    box-sizing: border-box;
    clear: both;
}

.footer-separator-line {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.12);
    margin-bottom: 30px;
}

.footer-flex-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Synchronized to case studies separator block layout gaps */
}

.footer-col.right-align {
    text-align: right;
    align-items: flex-end;
}

/* Micro-tag uniform matching with Case Studies formatting rules */
.footer-tag {
    font-family: 'Syne', sans-serif;
    font-size: 13px;                       
    font-weight: 600;                      
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);       
}

.footer-contact-link {
    font-family: 'EB Garamond', serif; 
    font-weight: 400;                 
    font-style: italic;               
    font-size: 24px;                  
    letter-spacing: -0.5px;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.1;
    transition: opacity 0.3s ease;
}

.footer-contact-link:hover {
    color: #ffffff !important;         
    opacity: 0.8;                     
}

.footer-credit {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

/* ==========================================================================
   6. Responsiveness Profiles
   ========================================================================== */

/* Tablets and small screens */
@media (max-width: 1024px) {
    .header-banner {
        height: auto;
        padding-top: 20px; 
    }
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 30px 0 30px; 
        text-align: right;
    }
    h1 {
        font-size: 50px;
    }
    h2 {
        font-size: 35px;
    }
    .project-intro {
        grid-template-columns: 1fr; 
        gap: 30px;
        padding-bottom: 40px;
    }
    .intro-right {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .project-name {
        font-size: 48px;
    }
    .case-study-content {
        padding: 20px 20px;
    }
    .project-nav {
        padding: 0 20px;
    }
    .gallery {
        gap: 10px; 
    }
    .asset-grid {
        gap: 10px;
    }
    .campaign-block {
        gap: 10px;
        margin-bottom: 60px;
    }
    .case-footer {
        padding: 30px 20px;
    }
}

/* Mobile Phones (Unified menu adjustments and track limits) */
@media (max-width: 576px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden; 
    }

    /* Clean Horizontal Slide-out Nav for Case Study Pages */
    .project-mini-banner {
        padding: 25px 20px 0 20px;
    }
    
    .project-links-reveal {
        background: transparent;
        padding: 0;
        border-radius: 0;
        position: static; /* Forces it to stay inline next to the plus sign */
        gap: 0;
        opacity: 0;
        transform: translateX(-15px);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        pointer-events: none;
    }
    
    /* FIXED: Tied presentation states strictly to the .is-open class toggle */
    .project-menu-trigger.is-open .project-links-reveal {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }
    
    .project-reveal-link {
        font-size: 18px; /* Tighter layout for mobile screen width constraints */
    }
    
    .project-nav-separator {
        font-size: 16px;
        padding: 0 6px;
    }

    /* Main Case Study Text & Image Grid Core Settings */
    .case-study-content {
        padding: 20px 20px 40px 20px;
    }

    .gallery {
        gap: 20px;
    }

    .asset-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .campaign-block {
        gap: 20px;
        margin-bottom: 40px;
    }

    .project-name {
        font-size: 32px !important;
        line-height: 0.95;
    }

    .intro-right {
        column-count: 1; 
        font-size: 14px;
        line-height: 1.2;
    }

    .case-footer {
        padding: 20px;
    }
    .footer-contact-zone {
        padding: 40px 20px;
    }

    .footer-flex-wrap { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 30px; 
    }
    
    .footer-col.right-align { 
        text-align: left; 
        align-items: flex-start; 
    }
    
    .footer-contact-link {
        font-size: 18px !important; 
    }
}