/* ==========================================================================
   THE PATHFINDERS - REFINED FIXED BACKDROP PRODUCTION STYLE SHEET
   ========================================================================== */

/* --- GLOBAL SYSTEM RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Document boundary protection */
html, body {
    overscroll-behavior: none; 
    height: 100%; /* Required to anchor the layout container engine */
    
    /* Applied space layout image directly onto the root canvas layer */
    background-image: url('../unexplored-planets-faraway-space.jpg');
    background-color: #050505; 
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed; /* Locks the wallpaper dynamically behind the content layers */
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: #ffffff;
    overflow: hidden; /* Suppresses global double scrollbars */
}

/* --- THREE-COLUMN NAVBAR SYSTEM --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 4vw; /* Dynamic layout padding based on viewport size */
    z-index: 9999; /* Guarantees position on top of the scrolling plane */
    
    background: rgba(5, 5, 5, 0.15); /* Soft baseline tone */
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    height: 120px;
}

/* Structural wrapper for the logo */
.nav-logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Elegant logo responsive image styling */
.nav-logo {
    height: 80px; 
    width: auto;
    display: block;
    border-radius: 4px;
    object-fit: contain;
}

/* Forces the brand container element to lock exactly to the center pixel coordinates */
.nav-center-branding {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Shifts it perfectly back onto its exact center axis */
    z-index: 10000;
}

/* Strips formatting out of both brand link anchors safely */
.logo-link-only,
.brand-link-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Symmetrical horizontal layout profile engine */
.brand-typography-row {
    display: inline-flex;  
    flex-direction: row;
    align-items: center;   
    justify-content: center;
    white-space: nowrap;
    line-height: 1;        
}

/* Typography styles */
.nav-brand-main {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: #ffffff;
    display: inline-block;
    vertical-align: middle;
}

.nav-brand-separator {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0.85rem;
    line-height: 1;
    position: relative;
    top: -1px; /* Micro-offset to balance font baseline tracking differences */
    display: inline-block;
    vertical-align: middle;
}

.nav-brand-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.50rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
    display: inline-block;
    vertical-align: middle;
}

/* The Navigation links container layout */
.nav-links {
    display: flex;
    list-style: none;
    gap: calc(1rem + 1vw); /* Dynamically shrinks links as browser scales down */
    z-index: 3001;
    white-space: nowrap;
}

.nav-links a {
    font-family: 'Cormorant Garamond', serif;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    padding: 0.35rem 0.50rem;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover, 
.nav-links a.active {
    background-color: #ffffff;
    color: #0b071e;             /* Swaps text cleanly to the exclusive rich navy shade */
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

/* --- INTEGRATED: MAIN SCROLL VIEWPORT WRAPPER --- */
.main-viewport {
    width: 100%;
    height: 100vh; 
    margin-top: 0; 
    overflow-y: auto;  
    overflow-x: hidden;
    background: transparent; 
    position: relative;
}

/* --- HERO CANVAS CONTAINER --- */
.hero-canvas {
    position: relative;
    width: 100%;
    height: 100vh; 
    background: transparent; 
}

/* --- CENTRAL BRAND CONTAINER --- */
.brand-container {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(calc(1.0 - (0.72 * var(--scroll-progress, 0))));
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    width: 100%; 
    max-width: max-content;
    z-index: 9998; 
    transform-origin: center center;
    background: transparent; 
    transition: transform 0.1s linear;
}

/* --- BRAND TYPOGRAPHY --- */
.brand-title {
    font-family: 'Cinzel', serif;
    font-size: 5rem; 
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    line-height: 1.0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.brand-subtitle-wrapper {
    margin-top: 0.75rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.sub-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.75rem; 
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.brand-pipeline {
    display: none;
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 1.5rem;
    line-height: 1;
    opacity: 0;
}

/* --- VERTICALLY ALIGNED HEADER DOCKING STATE --- */
.brand-container.inline-header-mode {
    position: fixed;
    top: 75px; 
    left: 50%;
    transform: translate(-50%, -50%) scale(1) !important; 
    flex-direction: row;
    z-index: 10000; 
}

.brand-container.inline-header-mode .brand-title {
    font-size: 3rem;   
    letter-spacing: 0.1em;
    text-shadow: none;
}

.brand-container.inline-header-mode .brand-pipeline {
    display: inline-block;
    opacity: 2;
    font-size: 2rem;
    margin: 0 0.75rem;    
}

.brand-container.inline-header-mode .brand-subtitle-wrapper {
    margin-top: 0;
}

.brand-container.inline-header-mode .sub-text {
    font-family: 'Cinzel', serif; 
    font-style: italic;          
    font-size: 2.5rem;          
    font-weight: 800;            
    letter-spacing: 0.1em;      
    color: rgba(255, 255, 255, 0.65);
    text-shadow: none;
}

/* --- SCROLL CONTENT COVER TRACK --- */
.content-spacer {
    position: relative;
    z-index: 10;
    padding: 0; 
    background: transparent; 
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: flex-start;
    width: 100%; 
}

/* --- FULL PAGE EDITORIAL GLASSMORPHISM PLATE CONTAINER --- */
.editorial-container {
    width: 100%; 
    min-height: 100vh; 
    margin: 0; 
    text-align: center; 
    background: rgba(11, 7, 30, 0.25); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12rem 4rem; 
    border-left: 1px solid rgba(255, 255, 255, 0.05);  
    border-right: 1px solid rgba(255, 255, 255, 0.05); 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.6);
}

.intro-block,
.mission-block {
    max-width: 1200px; 
    margin-left: auto;  
    margin-right: auto; 
    margin-bottom: 6rem;
    text-align: center; 
}

/* --- LUXURY DROP-SHADOW TYPOGRAPHY ENGINE --- */
.main-headline.uppercase-headline {
    font-family: 'Cinzel', serif;
    font-size: 3.25rem; 
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.sub-header-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.85rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.body-paragraph {
    font-family: 'Cormorant Garamond', serif;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85); 
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.body-paragraph strong {
    color: #ffffff;
    font-weight: 600;
}

/* --- EXCLUSIVE EINSTEIN QUOTE SECTION --- */
.quote-block {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5rem 0; 
    margin-bottom: 1rem;
    text-align: center;
}

.quote-block.image-quote-variant {
    background: transparent; 
    border-radius: 0;
    overflow: visible;
    padding: 0;
}

.quote-graphic-asset {
    width: 100%;
    max-width: 1200px; 
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    opacity: 0.95; 
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-graphic-asset:hover {
    opacity: 1;
}

/* --- HORIZONTAL PORTRAIT FUNCTIONS STRIP STYLES --- */
.horizontal-functions-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem; 
    width: 100%; 
    max-width: 1400px; 
    margin: 0 auto;
    justify-content: space-between;
}

.portrait-function-card {
    flex: 1;
    position: relative;
    height: 420px; 
    background: rgba(11, 7, 30, 0.45); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-inner-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 5;
}

.function-title {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgb(0, 0, 0);
}

.function-hover-details {
    opacity: 0;
    transform: translateY(15px);
    margin-top: auto; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.function-description {
    font-family: 'American Typewriter', 'Courier New', courier, serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.portrait-function-card:hover {
    flex: 1.4; 
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.portrait-function-card:hover .function-hover-details {
    opacity: 1;
    transform: translateY(0);
}

/* --- MEDIA QUERY BREAKPOINTS --- */
@media (max-width: 900px) {
    .horizontal-functions-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    .portrait-function-card {
        height: auto;
        min-height: 180px;
    }
    .function-hover-details {
        opacity: 1;
        transform: translateY(0);
        margin-top: 1rem;
    }
}

/* --- SPECIFIC CARD PSEUDO IMAGES (FIXED OPACITIES & TEXT PROTECTION) --- */

/* 01. Creatives */
.creatives-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background-image: linear-gradient(to bottom, rgba(11, 7, 30, 0.85) 0%, rgba(11, 7, 30, 0.4) 100%), url('graphic_design.png');
    background-size: cover; background-position: center bottom; background-repeat: no-repeat;
    opacity: 0.4; mix-blend-mode: normal;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.creatives-card:hover::before { opacity: 0.85; transform: scale(1.05); }

/* 02. Social Media */
.social-media-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background-image: linear-gradient(to bottom, rgba(11, 7, 30, 0.85) 0%, rgba(11, 7, 30, 0.4) 100%), url('social-media-management.jpg');
    background-size: cover; background-position: center bottom; background-repeat: no-repeat;
    opacity: 0.4; mix-blend-mode: normal;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-media-card:hover::before { opacity: 0.85; transform: scale(1.05); }

/* 03. Inorganic Campaigns */
.multi-platform-inorganic-campaign-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background-image: linear-gradient(to bottom, rgba(11, 7, 30, 0.85) 0%, rgba(11, 7, 30, 0.4) 100%), url('multi-platform-inorganic-campaign.png');
    background-size: cover; background-position: center bottom; background-repeat: no-repeat;
    opacity: 0.4; mix-blend-mode: normal;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.multi-platform-inorganic-campaign-card:hover::before { opacity: 0.85; transform: scale(1.05); }

/* 04. Video Production */
.video-production-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background-image: linear-gradient(to bottom, rgba(11, 7, 30, 0.85) 0%, rgba(11, 7, 30, 0.4) 100%), url('video-production.jpg');
    background-size: cover; background-position: center bottom; background-repeat: no-repeat;
    opacity: 0.4; mix-blend-mode: normal;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-production-card:hover::before { opacity: 0.85; transform: scale(1.05); }

/* 05. Web Development */
.web-development-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background-image: linear-gradient(to bottom, rgba(11, 7, 30, 0.85) 0%, rgba(11, 7, 30, 0.4) 100%), url('web-development.png');
    background-size: cover; background-position: center bottom; background-repeat: no-repeat;
    opacity: 0.4; mix-blend-mode: normal;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.web-development-card:hover::before { opacity: 0.85; transform: scale(1.05); }

/* --- GLOBAL SITE FOOTER --- */
.site-footer {
    width: 100%;
    padding: 2.5rem 0;
    margin-top: auto; 
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    text-align: center;
    position: relative;
    z-index: 100;
}

.footer-copyright {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; 
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.45); 
    margin: 0;
}

/* ==========================================================================
   CALL TO ACTION BUTTON INTERACTION 
   ========================================================================== */
.cta-wrapper {
    margin-top: 4rem;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 100;
}

.explore-btn {
    font-family: 'Cinzel', serif;
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1.2rem 2.8rem;
    background-color: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-btn:hover {
    background-color: #ffffff !important;
    color: #0b071e !important; 
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px); 
}

.explore-btn:active {
    transform: translateY(0); 
}

/* ==========================================================================
   CONTACT PAGE EXCLUSIVE INTEL & PREMIUM FORM SYSTEM
   ========================================================================== */

/* Split Grid Layout for Studio Info vs Interactive Form */
.contact-grid-wrapper {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    max-width: 1200px;
    margin: 4rem auto 6rem auto;
    text-align: left;
}

/* Studio Details Left Column Panel */
.contact-details-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 2rem;
}

.intel-block h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Right Column Contact Form Formats */
.contact-form-panel {
    flex: 2;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Symmetrical Input Flex Alignment Row */
.form-group-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
}

.input-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

/* Form Input Element Component Engine Styles */
.input-field-wrapper label {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.premium-form input[type="text"],
.premium-form input[type="email"],
.premium-form textarea {
    font-family: 'Times New Roman', Times, serif; /* Synchronized perfectly */
    font-size: 1.1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ffffff;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle, crisp highlight borders when clicking inputs */
.premium-form input:focus,
.premium-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.form-action-wrapper {
    text-align: left;
    margin-top: 1rem;
}

/* Button overrides to ensure proper form submittal layout sizing mapping */
.premium-form .explore-btn {
    border-radius: 4px;
    background: transparent;
}

/* ==========================================================================
   MOBILE & TABLET HUD RESPONSIVE OVERRIDES (ADD AT THE BOTTOM OF FILE)
   ========================================================================== */

/* Hide the tracking checkbox input globally */
.menu-toggle-checkbox {
    display: none !important;
}

/* Default desktop look for the hidden kebab trigger button */
.kebab-menu-button {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.kebab-menu-button .dot {
    width: 5px;
    height: 5px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

@media (max-width: 1250px) {
    .navbar {
        height: 45px; /* Restricts vertical bloat on mobile screens */
        padding: 0 2rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    /* FORCE LOGO TO FIT WITHIN FIXED MOBILE NAVIGATION BOUNDARIES */
    .nav-logo {
        height: 90px !important; /* Forces the image to scale down perfectly */
        width: auto !important;   /* Protects your logo's original aspect ratio */
        display: block;
    }

    /* 1. HIDE LARGE BRAND TEXT PLATES */
    .nav-center-branding {
        display: none !important;
    }

    /* 2. FORCE PERFECT HORIZONTAL CENTERING ON LOGO */
    .nav-logo-container {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    /* 3. SHOW THE THREE-DOT OVERFLOW BUTTON ON THE FAR RIGHT */
    .kebab-menu-button {
        display: flex;
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* 4. CONVERT NAV LINKS INTO A PREMIUM FULL SCREEN DROP GLASS-TRAY */
    .nav-links {
        position: fixed;
        top: 90px; /* Sits perfectly flush right underneath the fixed navbar boundary */
        left: 0;
        width: 100%;
        height: 0; /* Hidden initially by default */
        overflow: hidden;
        background: rgba(11, 7, 30, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .nav-links li a {
        font-size: 1.5rem;
        letter-spacing: 0.2em;
    }

    /* THE TRICK: OPEN THE GLASS-TRAY PANEL WHEN KEBAB IS CLICKED */
    .menu-toggle-checkbox:checked ~ .nav-links {
        height: calc(100vh - 90px); /* Slides down into view to fill the rest of the window screen */
    }

    /* Subtle visual feedback turning the dots slightly transparent on click */
    .menu-toggle-checkbox:checked ~ .kebab-menu-button .dot {
        background-color: rgba(255, 255, 255, 0.5);
    }
}

/* ==========================================================================
   GLOBAL RESPONSIVE TYPOGRAPHY & BOX COMPRESSION RE-ALIGNMENT
   ========================================================================== */

@media (max-width: 1024px) {
    /* Compress major headlines on tablets */
    .main-headline {
        font-size: 3rem !important;
        letter-spacing: 0.1em;
        line-height: 1.2;
    }
    
    /* Bring down editorial plate side boundaries to save room */
    .editorial-container {
        padding: 16rem 2rem 8rem 2rem !important; /* Reduces large top/side padding gaps */
    }
}

@media (max-width: 500px) {
    /* Micro-mobile corrections for small smartphones */
    .main-headline {
        font-size: 2.1rem !important; /* Safely locks text inside standard 320px screens */
        letter-spacing: 0.08em;
        line-height: 1.3;
    }
    
    .body-paragraph {
        font-size: 1.05rem !important; /* Optimizes readability for Times New Roman blocks */
        line-height: 1.6;
    }
    
    .editorial-container {
        padding: 12rem 1.25rem 6rem 1.25rem !important; /* Gives content maximum horizontal breathing room */
    }
    
    /* Shrink section subtitles if they exist */
    .intro-block h2 {
        font-size: 1.4rem !important;
    }
}

/* ==========================================================================
   CONTACT FORM MOBILE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 900px) {
    /* Break down the 2-column side-by-side grid into a single vertical stream */
    .contact-grid-wrapper {
        flex-direction: column !important;
        gap: 2.5rem !important;
        margin: 2rem auto 4rem auto !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Remove the desktop side border line separating the studio info */
    .contact-details-panel {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-right: 0 !important;
        padding-bottom: 2rem !important;
    }

    /* Force the name and email input fields to stack vertically instead of side-by-side */
    .form-group-row {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    /* Ensure form and input controls match 100% of the screen width */
    .contact-form-panel,
    .premium-form,
    .input-field-wrapper {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Slightly scale down form padding so fields don't look overly bloated on mobile */
    .premium-form input[type="text"],
    .premium-form input[type="email"],
    .premium-form textarea {
        font-size: 1rem !important;
        padding: 0.85rem 1rem !important;
    }
}



/* ==========================================================================
   GLOBAL VIEWPORT PADDING BUFFER CORRECTIONS FOR MOBILE
   ========================================================================== */

@media (max-width: 1024px) {
    /* Home Page: Adjust the content spacer or hero grid mapping */
    .content-spacer {
        margin-top: 2rem !important;
    }

    /* Services & Contact: Push the main layout plates down safely below the new mobile header */
    .editorial-container {
        padding-top: 10rem !important; /* Forces content to start exactly below the mobile bar */
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

@media (max-width: 500px) {
    /* Ultra-Mobile: Refined spacing tweak for narrow smartphone viewports */
    .editorial-container {
        padding-top: 8.5rem !important; /* Snug, elegant frame for small screens */
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .main-headline {
        margin-top: 1rem !important;
    }
}

@keyframes cinematicFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-headline {
    will-change: transform, opacity; /* Preps the GPU ahead of time */
    animation: cinematicFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.body-paragraph {
    opacity: 0; /* Starts hidden */
    animation: cinematicFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s; /* Subtle delay for an editorial sequence */
}

.premium-btn {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.4s ease, transform 0.2s ease;
    z-index: 1;
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.premium-btn:hover {
    color: #0b071e; /* Inverts text color to match background dark theme */
    border-color: #ffffff;
    transform: translateY(-2px); /* Subtle physical lift */
}

.premium-btn:hover::before {
    transform: translateX(100%);
}

/* Smooth floating label physics */
.input-field-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
}

.input-field-wrapper label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* When the input is focused or holds text, slide the label up and out of the way */
.premium-input:focus ~ label,
.premium-input:not(:placeholder-shown) ~ label {
    top: -1.5rem;
    left: 0;
    font-size: 0.8rem;
    color: #ffffff;
    letter-spacing: 0.1em;
}

/* Forces mobile phone links to match your text color */
a[href^="tel:"] {
  color: #ffffff !important;
  text-decoration: none !important;
}