/* 🚀 MASTER VARIABLES SETTINGS */
:root {
    --side-margin: 5vw;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0D0D12;
    z-index: 9998;
    opacity: 1;
    transition: opacity 0.1s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    width: 100%;
    z-index: 2; /* Sits above video */
}

/* ===== 1. Global Reset ===== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; 
}

body {
    background-color: #0D0D12;
    color: #ffffff;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

html {
    background-color: #0D0D12; 
    overflow-y: scroll !important; /* Force scrollbar channel open */
    overflow-x: hidden;
    scrollbar-gutter: stable;
    scroll-behavior: auto; /* CRITICAL: Must be 'auto' to work with GSAP */
    height: 100%;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: opacity 0.3s ease; 
}

/* ===== 2. Header ===== */
.site-header {
    position: fixed; 
    top: 0; 
    width: 100%; 
    height: 100px; 
    padding: 0 var(--side-margin); 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    z-index: 1000;
    background-color: transparent;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    animation: fadeInHeader 0.8s ease-out forwards;
}

@keyframes fadeInHeader {
    to { opacity: 1; }
}

.logo {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    text-decoration: none;
    gap: 5px; 
    font-family: 'Playfair Display', serif;
    font-weight: 500; 
    font-style: normal;
    font-size: 1.8rem; 
    letter-spacing: 0.5px;
    text-transform: none; 
    -webkit-font-smoothing: antialiased;
    width: fit-content;
}

.tagline-desktop {
    display: block;            /* Visible on Desktop */
    font-family: 'Playfair Display', serif; /* Same font as name */
    font-weight: 500;          /* Medium */
    font-style: italic;        /* Italic */
    color: #cccccc;            /* Light Grey */
    font-size: 1.1rem;         /* Slightly smaller to center nicely against the "v" */
    line-height: 1;            /* Tight line-height helps centering */
    padding-top: 7px;          /* Visual Tweak: Pushes text down slightly to align with x-height */
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.tagline-mobile {
    display: none;             /* HIDDEN on Desktop */
}

.header-left { flex: 1; }

.header-right { 
    display: flex;
    align-items: center;
}

/* --- OPTIMIZED NAVIGATION LINKS (Fixes Underline Issue) --- */
.header-right nav ul { 
    display: flex; 
    gap: 40px; 
    list-style: none; 
}

/* Base State */
.header-right nav ul li a { 
    font-size: 1.3rem; 
    letter-spacing: 0.5px; 
    font-weight: 300;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent; /* Prepare the border */
    transition: border-color 0.35s ease, opacity 0.3s ease;
}

/* Active State (Logic added in JS) */
.header-right nav ul li a.active {
    opacity: 1;
    border-bottom-color: #ffffff !important;
}

/* --- Social Icons --- */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 20px; 
    transition: opacity 0.3s ease;
}

/* ===== 3. Hero & Video ===== */
.hero { 
    position: relative; 
    height: 100vh; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
    background: transparent;
    z-index: 1;
    isolation: isolate;
}

.intro-section {
    position: relative; 
    z-index: 1; /* Sits above hero */
    padding: 40px var(--side-margin) 90px var(--side-margin);
    background-color: #0D0D12; 
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.grey-transition-section {
    display: block; /* FIXED: Changed from 'true' to 'block' */
    width: 100%;
    height: 100px;
    background-color: #0D0D12;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Video: Standard Flow (Absolute) */
.video-container { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 0; 
    pointer-events: none; 
    overflow: hidden;
}

.video-container.hero-offscreen {
    visibility: hidden;
}

.video-container iframe { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 100vw; 
    height: 100vh; 
    
    /* Standard Centering - No 3D hacks here to avoid conflicts */
    transform: translate(-50%, -50%); 
    
    min-width: 177.77vh; 
    min-height: 56.25vw; 
}

.intro-text p {
    font-family: "Inter", Arial, sans-serif;
    font-style: normal;
    text-align: left;
    font-size: 2.0rem;
    line-height: 2.5rem;
    letter-spacing: 0.5px;
    font-weight: 300;
    max-width: 55%;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    cursor: pointer;
    width: 30px;
    height: 30px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease !important;
}

.scroll-indicator svg {
    display: block;
    position: absolute;
    top: 0;
    transition: none;
}

@keyframes chevronLoop {
    0% { top: 0; opacity: 1; }
    40% { top: 45px; opacity: 0; }
    41% { top: -45px; opacity: 0; }
    80% { top: 0; opacity: 1; }
    90% { top: 0px; }
    100% { top: 0; opacity: 1; }
}

/* ===== 4. Work Grid ===== */
.work-section { 
    position: relative; 
    z-index: 1;        
    width: 100%; 
    margin: 0 auto; 
    padding: 0 var(--side-margin);
    background-color: #0D0D12;
}

.grid { 
    display: flex; 
    flex-wrap: wrap; 
    margin-left: -5px; 
    margin-right: -5px;
    width: calc(100% + 10px);
}

.project-card { 
    position: relative; 
    cursor: pointer; 
    width: 33.33333%; 
    padding: 5px;
    flex-shrink: 0; 
}

.image-wrapper { 
    position: relative; 
    width: 100%; 
    padding-bottom: 56.25%; 
    overflow: hidden; 
    background: #0d0d12;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; 
}

.image-wrapper img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: opacity 0.6s ease, transform 2.4s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: scale(1.0) rotate(0.01deg);
    color: transparent;
}

/* Hover Info */
.hover-info {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: flex-start; 
    padding: 20px 30px 22px 22px; 
    text-align: left;
    opacity: 1;
    z-index: 10;
}

.project-title {
    display: block;
    font-family: "Inter", Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.0;
    margin: 0 0 5px 0;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.project-subtitle {
    display: block;
    font-family: "Inter", Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

/* ===== NEW: EXTENDED Scroll to Top Button Container ===== */
.scroll-top-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0 40px 0; /* Reduced bottom padding since footer is shorter */
    background-color: #0D0D12;
    min-height: 80px; /* Adjusted for shorter footer */
}

.scroll-top-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 100;
}

.scroll-top-button svg {
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 0;
}

@keyframes chevronLoopUp {
    0% { top: 0; opacity: 1; }
    40% { top: -45px; opacity: 0; }
    41% { top: 45px; opacity: 0; }
    80% { top: 0; opacity: 1; }
    90% { top: 0px; }
    100% { top: 0; opacity: 1; }
}

/* ===== 5. Footer - CUT FROM TOP EDGE ===== */
footer {
    position: relative;
    z-index: 1; 
    /* CUT FROM TOP: Reduced height from 35vh to 25vh (10vh shorter) */
    height: 22vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: flex-start; 
    padding: 0 var(--side-margin) 60px var(--side-margin);
    background: #0D0D12;
}

.footer-right-group {
    position: absolute;
    bottom: 60px;   
    right: var(--side-margin);     
    display: flex;
    flex-direction: column; 
    align-items: flex-end;  
    gap: 20px;      
    z-index: 10;
}

.footer-social {
    display: flex;
    gap: 18px;
    position: static; 
    margin-right: -3px;
}

.footer-left-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-copyright {
    font-size: 12px;
    color: #ffffffe0;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.05px;
    font-weight: 300;
    white-space: nowrap;
}

.footer-credit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Inter", sans-serif;
    letter-spacing: 0.05px;
    font-weight: 300;
    white-space: nowrap;
    line-height: 1.0;
}

.footer-social .social-icon {
    font-size: 18px; /* Everything else is naturally inherited! */
}

.email-link { 
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px; 
    border-bottom: 1px solid #fff; 
    padding-bottom: 5px; 
    font-weight: 300;
    display: inline-block;
    line-height: 1.0;
    letter-spacing: 0.5px;
}

/* ===== 6. Reel Page Specifics ===== */
.reel-container {
    padding: 130px var(--side-margin) 90px var(--side-margin); 
    background-color: #0D0D12;
}

.featured-reel { 
    width: 100%; 
    margin-bottom: 80px; 
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    background: #0D0D12;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #0D0D12;
}

.reels-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -5px; 
    margin-right: -5px;
    width: calc(100% + 10px);
}

.reel-card {
    width: 50%; 
    padding: 5px;
    margin-bottom: 30px;
}

/* ===== 7. NEW: Reel & Info Page Static Backplate ===== */
.reel-backplate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #0D0D12;
    z-index: 999; /* Just below header (1000) but above everything else */
    pointer-events: none; /* Allow clicks to pass through to header */
}

/* ===== 8. NEW: INFO PAGE STYLES ===== */
.info-section {
    padding-top: 130px; /* Header spacing */
    background-color: #0D0D12;
    width: 100%;
}

@keyframes infoImageFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.info-cover-image {
    width: calc(100% - (var(--side-margin) * 2));
    margin: 0 auto 80px auto;
    height: auto;
    display: block;
}

.info-content-container {
    padding-left: var(--side-margin); /* STRICT ALIGNMENT WITH LOGO */
    padding-right: var(--side-margin);
    padding-bottom: 40px;
    max-width: 1200px; /* Prevents lines becoming unreadable on massive screens */
}

.info-block {
    margin-bottom: 80px;
}

.info-heading {
    font-family: "Inter", Arial, sans-serif;
    font-size: 2rem;
    font-weight: 300;
    line-height: 2.4rem;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    display: block;
}

.info-text-body {
    font-family: "Inter", sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.5;
    color: #cccccc;
    max-width: 900px;
}

.info-text-body p {
    margin-bottom: 25px;
}

.awards-list {
    list-style: none;
}

.awards-list li {
    font-family: "Inter", sans-serif;
    font-size: 1.3rem;       /* UPDATED */
    font-weight: 300;        /* UPDATED */
    letter-spacing: 0.5px;   /* UPDATED */
    line-height: 1.5;        /* UPDATED */
    color: #cccccc;
    font-variant-numeric: tabular-nums;
    padding-left: 3.85em;
    text-indent: -3.85em;
}

.clients-list {
    font-family: "Inter", sans-serif;
    font-size: 1.3rem;       /* UPDATED */
    font-weight: 300;        /* UPDATED */
    letter-spacing: 0.5px;   /* UPDATED */
    line-height: 1.5;        /* Loose spacing for list of names */
    color: #cccccc;
    max-width: 1000px;
}

/* ========================================= */
/* ===== PROJECT DETAIL VIEW (Dynamic) ===== */
/* ========================================= */

.project-detail-section {
    width: 100%;
    /* 1. GLOBAL ALIGNMENT: 3.6vw padding on parent only. 
       This ensures everything inside aligns perfectly with the Logo/Nav. */
    padding: 130px var(--side-margin) 120px var(--side-margin); 
    background-color: #0D0D12;
}

/* --- Block: Video (Full Width) --- */
.detail-video-block {
    width: 100%;
    /* Matches grid gap spacing */
    margin-bottom: 10px; 
}

.detail-video-block .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: transparent;
}

/* --- Block: Text --- */
.detail-text-block {
    /* ALIGNMENT FIX: Removed side padding (was 3.6vw) to prevent indentation */
    padding: 60px 0 0; 
    max-width: 1000px; /* Keeps text readable while left-aligned */
}

.detail-text-block-2 {
    /* You can adjust this padding to control gap before "More Work" */
    padding: 80px 0 25px; 
    max-width: 1000px;
}

/* TYPOGRAPHY: Main Title matches Main Page "Intro Text" */
.detail-text-block h1,
.detail-text-block-2 h1 {
    font-family: "Inter", Arial, sans-serif;
    font-size: 2.0rem;      /* Matches Intro */
    line-height: 2.5rem;    /* Matches Intro */
    letter-spacing: 0.5px;  /* Matches Intro */
    font-weight: 300;       /* Matches Intro */
    margin-bottom: 3px;
}

/* TYPOGRAPHY: Subtitle matches Main Page "Intro Text" */
.detail-text-block h2,
.detail-text-block-2 h2 {
    font-family: "Inter", Arial, sans-serif;
    font-size: 2.0rem;      /* Matches Intro */
    line-height: 2.5rem;    /* Matches Intro */
    letter-spacing: 0.5px;  /* Matches Intro */
    font-weight: 300;       /* Matches Intro */
}

/* TYPOGRAPHY: Paragraph matches Info Page "About" Text */
.detail-text-block p,
.detail-text-block-2 p {
    font-family: "Inter", sans-serif;
    font-size: 1.3rem;      /* Matches Info Page */
    font-weight: 300;       /* Matches Info Page */
    letter-spacing: 0.5px;  /* Matches Info Page */
    line-height: 1.5;       /* Matches Info Page */
    color: #cccccc;         /* Matches Info Page */
    max-width: 900px;       /* Matches Info Page */
    white-space: pre-line;
    margin-top: 40px;
    padding-bottom: 60px;
}

.detail-text-block h3 {
    font-family: "Inter", Arial, sans-serif;
    font-size: 2.0rem;
    line-height: 2.5rem;    
    letter-spacing: 0.5px;  
    font-weight: 300;
    padding-bottom: 28px;
}

/* ==========================================
   🚀 MASTER IMAGE REVEAL WRAPPER
   ========================================== */
.image-reveal-wrapper {
    width: 100%;
    height: 100%;
    background-color: #0D0D12;
    overflow: hidden;
}

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

/* --- Block: Image --- */
.detail-image-block {
    width: 100%;
    margin-bottom: 10px;
}

/* --- Block: Image Row (Auto-Grid) --- */
.detail-image-row {
    display: grid;
    /* DYNAMIC COLUMN COUNT via CSS Variable */
    grid-template-columns: repeat(var(--row-cols, 2), 1fr);
    gap: 10px; /* Standard internal gap */
    width: 100%;
    margin-bottom: 10px; /* Spacing between rows */
}

/* --- Block: Credits --- */
.detail-credits-block {
    /* Aligns perfectly with the text block above it */
    padding: 30px 0 0 0; 
    max-width: 1000px;
}

.detail-credits-block p {
    font-family: "Inter", Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
    letter-spacing: 0.5px;
    font-weight: 300;
    color: #cccccc;
    white-space: pre-line;   /* Respects line breaks from CMS */
}

/* --- Section: More Work --- */
.more-work-container {
    /* ALIGNMENT FIX: Removed side padding (was 3.6vw) */
    padding: 135px 0 0 0;
    width: 100%;
}

/* TYPOGRAPHY: Label matches Main Page "Intro Text" */
.more-work-title {
    font-family: "Inter", Arial, sans-serif;
    font-size: 1.3rem;      /* Matches Intro */
    line-height: 2.4rem;    /* Matches Intro */
    letter-spacing: 0.5px;  /* Matches Intro */
    font-weight: 300;       /* Matches Intro */
    margin-bottom: 25px;
}

/* ========================================= */
/* ===== MASTER HOVER STATES (DESKTOP) ===== */
/* ========================================= */
@media (hover: hover) {
    /* Global & Header Links */
    a:hover { opacity: 0.6; }
    .logo:hover { opacity: 0.7; }
    .header-right nav ul li a:hover { opacity: 1; border-bottom-color: #ffffff; }
    
    /* Social Icons */
    .social-icon:hover { opacity: 0.7; }
    
    /* Scroll Buttons */
    .scroll-indicator:hover svg { animation: chevronLoop 1s ease; }
    .scroll-top-button:hover svg { animation: chevronLoopUp 1s ease; }
    
    /* Project Cards (Image Zoom & Title Reveal) */
    .project-card:hover .image-wrapper img { 
        opacity: 0.5;  
        transform: scale(1.12) rotate(0.01deg);
        transition: opacity 0.4s ease, transform 2.4s cubic-bezier(0.19, 1, 0.22, 1);
    }
    .project-card:hover .project-title,
    .project-card:hover .project-subtitle {
        opacity: 1; 
        transform: translateY(0); 
    }
    
    .more-work-container .project-card:hover .image-wrapper img {
        opacity: 0.5;
        transform: scale(1.12) rotate(0.01deg);
        transition: opacity 0.4s ease, transform 2.4s cubic-bezier(0.19, 1, 0.22, 1);
    }
    .more-work-container .project-card:hover .project-title,
    .more-work-container .project-card:hover .project-subtitle {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🚀 NEW: Ultra-Wide Monitor Safety Net */
@media (min-width: 2560px) {
    .content-wrapper {
        max-width: 2560px;
        margin: 0 auto; 
    }
    .site-header {
        max-width: 2560px;
        left: 50%;
        transform: translateX(-50%); 
    }
}

@media (min-width: 901px) and (max-width: 1300px) {
    
    .intro-text p {
        max-width: 80%;
        font-size: 2rem;
        line-height: 1.25;
    }

    .project-card {
        width: 50%;
    }

    .hover-info {
        padding: 20px;
    }

    .project-title,
    .project-subtitle {
        font-size: 20px;
    }
    
    .more-work-container .project-card {
        width: 33.33333%;
    }

    .more-work-container .project-title,
    .more-work-container .project-subtitle {
        font-size: 16px;
    }
}

/* ========================================= */
/* ===== MASTER MOBILE RESPONSIVE (ALL) ==== */
/* ========================================= */
@media (max-width: 900px) {
    
    /* --- 1. HEADER & LOGO --- */
    .site-header { padding: 0 20px; }
    
    .logo { 
        flex-direction: column; 
        align-items: flex-start; 
        max-width: 100%;
    }
    
    .logo .logo-name {
        white-space: nowrap;
        font-size: 1.2rem;
        line-height: 1.1;
        letter-spacing: 1.3px;
    }

    .tagline-mobile {
        display: block;
        font-family: 'Playfair Display', serif;
        font-weight: 500;
        font-style: italic;
        color: #cccccc;
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .tagline-desktop {
        display: none;
    }

    /* --- 2. NAVIGATION --- */
    .header-right { 
        width: auto;  
        justify-content: flex-end; 
    }

    .header-right nav ul { 
        gap: 20px; 
    }

    .header-right nav ul li a { 
        font-size: 1rem; 
    }
    
    /* --- 3. HOMEPAGE & WORK --- */
    .intro-section { 
        padding: 25px 20px 65px; 
    }
    
    .intro-text p {
        font-size: 1.43rem;
        line-height: 1.3;       
        max-width: 100%;
    }

    .work-section { 
        padding: 0 20px; 
    }

    .grid { flex-direction: column; }
    .project-card { width: 100%; }    

    .hover-info { 
        padding: 15px 20px 22px 22px; 
        background: linear-gradient(to top right, rgba(13, 13, 18, 0.4) 0%, rgba(13, 13, 18, 0.2) 10%, transparent 30%);
    }
    
    .project-title,
    .project-subtitle {
        font-size: 20px;
        opacity: 1;
        transform: none;
    }
    
    .scroll-top-container {
        padding: 30px 0 30px 0;
        min-height: 60px;
    }
    
    /* --- 4. FOOTER --- */
    footer {
        height: auto;
        min-height: 150px;
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }

    .footer-right-group {
        bottom: calc(40px + env(safe-area-inset-bottom));
        right: 20px;
        gap: 15px;              
        z-index: 20;
    }

    .footer-social {
        align-items: center;
        justify-content: flex-end;
        gap: 19px;           
        flex-shrink: 0;      
        margin-right: -2px;    
    }

    .email-link { 
        font-size: 0.7rem;
        letter-spacing: 0.7px; 
        flex-shrink: 0;
        display: block;
    }

    .footer-social .social-icon { 
        width: 14px; 
        height: 22px; 
        font-size: 16px; 
    }

    .footer-left-group {
        gap: 8px;
    }

    .footer-copyright {
        font-size: 10px;
    }

    .footer-credit {
        font-size: 10px;
    }

    .reel-card { width: 100%; }
    
    .reel-container { 
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 30px;
    }

    .featured-reel { 
        width: 100%; 
        margin-bottom: 30px;
    }

    /* --- 6. INFO PAGE --- */
    .info-section {
        padding-top: 100px;
    }

    .info-block {
        margin-bottom: 55px;
    }

    .info-text-body p:last-child {
        margin-bottom: 0;
    }
    
    .info-content-container {
        padding-bottom: 7px; 
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .info-cover-image {
        width: calc(100% - 40px);
        margin-bottom: 50px;
    }
    
    .info-heading {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 22px;
    }
    
    .info-text-body p,
    .awards-list li,
    .clients-list {
        font-size: 1rem;
    }

    .project-detail-section {
        padding-top: 100px;
        padding-bottom: 60px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .detail-text-block {
        padding: 50px 0 0;
    }

    .detail-text-block-2 {
        padding: 65px 0 20px;
    }
    
    .detail-text-block h1,
    .detail-text-block-2 h1 { 
        font-size: 1.5rem;
        margin-bottom: 3px;
        line-height: 1.2;
    }

    .detail-text-block h2,
    .detail-text-block-2 h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .detail-text-block p,
    .detail-text-block-2 p {
        font-size: 1rem; 
        margin-top: 30px;
        padding-bottom: 50px;
    }

    .detail-text-block h3 {
        font-size: 1.5rem;
        padding-bottom: 23px;
        line-height: 1.2;
    }
    
    .detail-image-row {
        grid-template-columns: 1fr; 
    }
    
    .detail-credits-block {
        padding: 20px 0 0;
    }

    .detail-credits-block p {
        font-size: 0.82rem;
    }

    .more-work-container {
        padding: 90px 0 0 0;
    }

    .more-work-title {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .project-card:hover .image-wrapper img {
        opacity: 1;
        transform: scale(1.0) rotate(0.01deg);
    }
    
    .project-card:hover .project-title,
    .project-card:hover .project-subtitle {
        transform: none;
    }

    .more-work-container .project-card:hover .image-wrapper img {
        opacity: 1;
        transform: scale(1.0) rotate(0.01deg);
    }

    .more-work-container .project-card:hover .project-title,
    .more-work-container .project-card:hover .project-subtitle {
        transform: none;
    }

    .v-spacer {
        height: 30px !important;
        max-height: 30px !important;
    }
}

/* ========================================================= */
/* ===== TOUCH DEVICES (iPads, Tablets, Phones) ============ */
/* ========================================================= */
@media (hover: none) {
    /* 1. Add the gradient scrim permanently */
    .hover-info {
        background: linear-gradient(to top right, rgba(13, 13, 18, 0.4) 0%, rgba(13, 13, 18, 0.2) 10%, transparent 30%);
    }

    /* 2. Lock the titles to be permanently visible */
    .project-title,
    .project-subtitle {
        opacity: 1 !important;
        transform: none !important;
    }

    /* 3. Kill any accidental hover jitters if tapped */
    .project-card:hover .image-wrapper img {
        opacity: 1 !important;
        transform: scale(1.0) rotate(0.01deg) !important;
    }
}

/* Vertical Spacer Utility */
.v-spacer {
    display: block;
    width: 100%;
    clear: both;
    pointer-events: none;
}

/* ========================================= */
/* ===== LIGHTBOX ========================== */
/* ========================================= */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 99vw;
    max-height: 99vh;
    object-fit: contain;
    cursor: default;
    user-select: none;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    color: rgba(255,255,255,0.7);
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: white;
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 48px;
    cursor: pointer;
    z-index: 10000;
    padding: 20px;
    transition: color 0.2s;
    user-select: none;
}

.lightbox-arrow:hover { color: white; }
.lightbox-arrow.prev { left: 10px; }
.lightbox-arrow.next { right: 10px; }

.image-reveal-wrapper {
    cursor: zoom-in;
}

/* ========================================= */
/* ===== DJ LOADER – 10% transparency baseline ===== */
/* ========================================= */

.dj-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    display: flex;
    gap: 0.03em;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.5px;
    font-size: 2.8rem;        /* matches logo name on desktop */
    line-height: 1;
    pointer-events: none;
    background: transparent;
}

.dj-letter {
    display: inline-block;
    color: rgb(205, 205, 205);
    opacity: 0.2;      /* 10% transparency */
}

.dj-loader .d {
    animation: djD 2s infinite ease-in-out backwards;
}

.dj-loader .j {
    animation: djJ 2s infinite ease-in-out backwards;
}

@keyframes djD {
    0%   { opacity: 0.2; }
    25%  { opacity: 1; }
    100% { opacity: 0.2; }
}

@keyframes djJ {
    0%   { opacity: 0.2; }
    70%  { opacity: 1; }
    100% { opacity: 0.2; }
}

/* Mobile: match logo name size */
@media (max-width: 900px) {
    .dj-loader {
        font-size: 2.0rem;
    }
}