/* --- RESET & CORE --- */
:root {
    --bg-body: #FFFFFF;
    --text-main: #111111;
    --text-muted: #666666;
    --accent: #FF5200; /* International Orange */
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --border-light: #E5E5E5;
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1 {
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0em;
    margin-bottom: 16px;
}

p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.text-orange { color: var(--accent); }

/* UTILITIES */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.btn {
    display: inline-block;
    background-color: var(--text-main);
    color: white;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.btn:hover { background-color: var(--accent); }

/* SCROLL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(60px); 
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* HEADER */
header {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100; 
}

.logo img {
    width: 80px;
    height: auto;
    display: block; 
}

/* Desktop Nav */
.desktop-nav ul { display: flex; gap: 40px; list-style: none; }
.desktop-nav a { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.desktop-nav a:hover { color: var(--accent); }

/* DROPDOWN MENU STYLES */
.nav-item-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px; 
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: -30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 100;
    pointer-events: none;
}

.dropdown-inner {
    background: #FFFFFF;
    min-width: 260px;
    padding: 15px 0;
    border-top: 4px solid var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-radius: 0 0 4px 4px;
    display: flex;
    flex-direction: column;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-link {
    display: block;
    padding: 10px 30px; 
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-transform: none;
    text-decoration: none;
    
    /* LIQUID SLIDE FIX: Use transform instead of padding */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                background-color 0.3s ease, 
                color 0.3s ease;
    will-change: transform;
}

.dropdown-link:hover {
    color: var(--accent);
    background-color: #FAFAFA; 
    transform: translateX(12px); /* Smooth slide to the right */
}

        /* 2. DROPDOWN ARROW */
        /* Adds a small chevron next to "Capabilities" */
        .nav-item-dropdown > a::after {
            content: " \25BE"; /* Unicode for small down arrow */
            font-size: 10px;
            margin-left: 6px;
            position: relative;
            opacity: 0.7;
        }

.dropdown-divider {
    height: 1px;
    background-color: #EEE;
    margin: 8px 0;
}

.dropdown-label {
    padding: 10px 30px 5px 30px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 700;
}

/* --- MOBILE HAMBURGER MENU --- */
.mobile-toggle {
    display: none;
    cursor: pointer;
    z-index: 200;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #111;
    position: absolute;
    transition: 0.3s;
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-line:nth-child(3) { bottom: 0; }

.mobile-toggle.active .hamburger-line:nth-child(1) { top: 50%; transform: rotate(45deg); }
.mobile-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-toggle.active .hamburger-line:nth-child(3) { top: 50%; transform: rotate(-45deg); bottom: auto; }

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-nav-list { list-style: none; text-align: left; }
.mobile-nav-link { font-size: 32px; font-weight: 800; color: #111; display: block; margin-bottom: 20px; line-height: 1.1; }

.mobile-subnav { display: none; padding-left: 20px; margin-bottom: 20px; border-left: 2px solid var(--accent); }
.mobile-subnav.open { display: block; }
.mobile-sub-link { font-size: 18px; font-weight: 600; color: #666; display: block; margin-bottom: 12px; }
.mobile-sub-label { font-size: 12px; text-transform: uppercase; color: #999; margin: 15px 0 10px 0; font-weight: 700; letter-spacing: 1px; }

/* HERO */

/* =========================================
   Hero Suitcase Animation
   ========================================= */

/* Use the EXISTING class name so layout stays fixed */
.hero-image-container {
    position: relative; /* Essential for layering */
    overflow: hidden;   /* Cuts off the suitcase when it flies right */
    /* Your existing layout styles (width/flex) will still apply here automatically */
}

/* The Base Image */
.hero-base-img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* The Suitcase Layer */
.hero-suitcase-img {
    position: absolute; /* Stack on top */
    top: 0;
    left: 0;
    width: 100%; /* Match base image size exactly */
    height: auto;
    z-index: 2;
    will-change: transform; /* Performance optimization */
}

.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding-top: 40px; 
    overflow: hidden;
}

.hero-text-content {
    max-width: 800px; 
    position: relative;
    z-index: 2;
}

.hero-image-container {
    position: absolute;
    right: 0;
    width: 40vw;
    height: auto;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    overflow: visible;
}

/* =========================================
   Homepage Specific Constraint
   ========================================= */

/* Only affects the text on the homepage to prevent hitting the suitcase image */
.hp-text-limit {
    max-width: 55%; /* Leaves 45% of the screen for the image */
    position: relative;
    z-index: 2; /* Ensures text stays on top if edges touch */
}

/* Tablet: Adjust slightly if needed */
@media (max-width: 1024px) {
    .hp-text-limit {
        max-width: 50%;
    }
}

/* Mobile: Remove the limit so text spans full width */
@media (max-width: 768px) {
    .hp-text-limit {
        max-width: 100%;
    }
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; 
}

/* LOGO MARQUEE */
.logo-ticker-section {
    padding: 60px 0;
    background: #FFFFFF; 
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
}

.marquee-track {
    display: inline-flex;
    gap: 90px; 
    align-items: center;
    animation: scrollLogos 40s linear infinite;
}

.marquee-track img {
    height: 70px; 
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.marquee-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* SPLIT LAYOUT FOR LISTS */
.services-wrapper-split {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 50px;
    margin-top: 60px;
}

.service-group h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* --- NEW STATIC LIST STYLES (Bullets) --- */
.expert-list {
    list-style: none; /* We will add custom bullets */
    padding: 0;
    margin-bottom: 20px; /* Minimum gap */
}

.expert-list li {
    position: relative;
    padding-left: 20px; /* Space for bullet */
    margin-bottom: 12px;
    font-size: 18px;
    color: #111;
    font-weight: 500;
    line-height: 1.4;
}

/* Custom Bullet Styling (Orange Square or Dot) */
.expert-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px; /* Align with text */
    width: 6px;
    height: 6px;
    background-color: var(--accent); /* Orange */
    border-radius: 50%; /* Make it a circle */
}

/* --- NEW CTA LINK BELOW LIST --- */
.expert-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto; /* The Magic: Pushes element to the bottom */
    display: inline-block;
    width: fit-content; /* Ensures hover effect stays tight to text */
}

.expert-link:hover {
    color: var(--accent);
    /* border-bottom-color: var(--accent); */ /* Optional underline */
    transform: translateX(5px);
}

/* BRIDGE ACTIONS */
.bridge-actions {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.bridge-direct-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.bridge-or {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 700;
}

.bridge-email {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.bridge-email:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* HERO EMAIL LINK */
.hero-direct-wrapper {
    margin-top: 25px; /* Space between buttons and email */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left Align */
    gap: 5px;
}

.hero-or {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 700;
}

.hero-email {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.hero-email:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- HERO ANIMATED UNDERLINE (Size Method) --- */
.delayed-highlight {
    /* 1. Ensure styling applies to wrapped lines correctly */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    color: inherit;
    text-decoration: none;
    
    /* 2. The Line Setup: A solid orange gradient */
    background-image: linear-gradient(var(--accent), var(--accent));
    
    /* 3. Start State: 0% width (Invisible), 3px height */
    background-size: 0% 1px;
    background-repeat: no-repeat;
    
    /* 4. Position: 0% (Left Aligned), 90% (Slightly up from bottom) */
    /* Adjust the 90% to move the line up/down */
    background-position: 0 100%;
    
    /* 5. Animation Config */
    animation: underlineGrow 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    
    /* Wait 3 seconds before starting */
    animation-delay: 1.5s;
}

@keyframes underlineGrow {
    to {
        /* Animate width to 100% */
        background-size: 100% 1px;
    }
}
/* BRIDGE SECTION STYLES */
.bridge-section {
    padding: 140px 0 120px 0;
    background-color: #FAFAFA; /* Subtle contrast to separate Expertise from Work */
}

.bridge-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 25px;
}

.bridge-headline {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    color: #111;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.bridge-lead {
    font-size: 20px;
    line-height: 1.6;
    color: #666;
    max-width: 750px;
    margin: 0 auto;
}

/* Mobile Adjust */
@media (max-width: 768px) {
    .bridge-section { padding: 80px 0; }
}

/* RESPONSIVE */
@media (min-width: 768px) {
    /* On Desktop, put them side-by-side if you prefer, 
       but for a "Bridge" section, stacking often looks cleaner. 
       If you want them side-by-side, uncomment below: */
    
    /*
    .bridge-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }
    .bridge-direct-wrapper {
        align-items: flex-start;
    }
    */
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .home-services-split {
        margin-left: 0;
        width: 100%;
    }
    
    .h-services-grid {
        grid-template-columns: 1fr;
    }

    .h-services-img-col {
        height: 400px; 
        order: 1;
    }

    .h-services-content-col {
        padding: 60px 30px;
        order: 2;
    }
}

@media (max-width: 600px) {
    .services-wrapper-split {
        grid-template-columns: 1fr; 
        gap: 40px;
    }
}


/* --- THE NEW CONTENT STYLING (Structured & clean) --- */

/* Wrapper for the two service columns */
.services-wrapper-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: -40px;
}

/* Group Container (Flex ensures buttons align to bottom) */
.service-group {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Headers: Bold, Title Case, Top Line */
.service-group h4 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    padding-top: 25px;
    border-top: 2px solid #c6c6c6; /* The architectural line */
    text-transform: none; /* Removed Caps */
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Lists: Clean Rows with Separators */
.expert-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1; /* Pushes button to bottom */
}

.expert-list li {
    font-size: 17px;
    color: #555;
    font-weight: 500;
    padding: 2px 0;
    transition: all 0.2s ease;
    cursor: default;
}

.expert-list li::before {
    content: none; /* Remove old dots */
}

/* Hover Effect: Slide right + Orange */
.expert-list li:hover {
    padding-left: 10px;
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Buttons: Simple Text Link */
.expert-link {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    text-transform: none; /* Removed Caps */
    margin-top: auto; /* Aligns to bottom */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.expert-link:hover {
    color: var(--accent);
    gap: 15px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .h-services-content-col { padding: 80px 40px; }
}

@media (max-width: 1024px) {
    .h-services-grid { grid-template-columns: 1fr; }
    .h-services-img-col { height: 400px; order: 1; }
    .h-services-content-col { padding: 60px 30px; order: 2; }
    .h-services-img { object-position: center; }
}

@media (max-width: 600px) {
    .services-wrapper-split { grid-template-columns: 1fr; gap: 40px; }
}

/* PORTFOLIO */
.portfolio-section { padding: 100px 0 160px 0; }

.portfolio-header {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.accordion-gallery {
    display: flex;
    height: 600px; 
    gap: 15px;
    width: 100%;
}

.acc-card {
    position: relative;
    flex: 1; 
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: skewX(-5deg); 
    margin: 0 5px; 
}

.acc-card:first-child { margin-left: 0; }
.acc-card:last-child { margin-right: 0; }

.acc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2) skewX(5deg); 
    transition: all 0.6s ease;
}

.acc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(20px) skewX(5deg);
    transition: all 0.4s ease 0.1s;
}

.acc-content h3 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.acc-content .acc-cat {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.acc-btn {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 2px;
}

/* Hover States */
.acc-card:hover {
    flex: 4; 
    transform: skewX(0); 
    margin: 0; 
    z-index: 5;
}

.acc-card:hover img {
    transform: scale(1) skewX(0);
    filter: grayscale(0%);
}

.acc-card:hover .acc-content {
    opacity: 1;
    transform: translateY(0) skewX(0);
}

/* LEGACY & SERVICES SECTIONS */
.legacy-collage-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: start;
}

.insight-wrapper { margin-top: 120px; }

.insight-card {
    background: #fff;
    padding: 50px;
    box-shadow: -30px 30px 60px rgba(0,0,0,0.05);
    position: relative;
    border-left: 4px solid var(--accent);
}

.insight-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 15px;
}

.legacy-visuals {
    position: relative;
    height: 600px;
    width: 100%;
}

.visual-back {
    position: absolute;
    top: 0; right: 0;
    width: 85%; height: 85%;
    background-image: url(./images/fm_halftone.jpg);
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

.visual-front {
    position: absolute;
    bottom: 0; left: 0;
    width: 55%; height: 60%;
    background-image: url('./images/fm_team_sm.jpg');
    background-size: cover;
    background-position: center;
    z-index: 2;
    border: 10px solid #fff;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
    will-change: transform;
}

/* H3 SPECIFIC OVERRIDE */
.legacy-subhead {
    color: #111;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 30px;
    max-width: 95%;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* INSIGHT CARD STYLING */
.insight-mini-card {
    background: #fff;
    padding: 40px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    max-width: 90%;
}
.insight-title { font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.insight-title a { text-decoration: none; color: #111; transition: 0.3s; }
.insight-title a:hover { color: var(--accent); }
.insight-excerpt { font-size: 15px; color: #666; line-height: 1.5; margin-bottom: 20px; }
.insight-link { font-size: 14px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }

/* Services Asymmetrical Grid */
.services-asym-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.services-head-col {
    flex: 0 0 35%; /* Fixed width for headline */
    position: sticky; /* Keeps it in view if content gets long */
    top: 40px;
}

.services-head-col h2 {
    font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -0.02em;
}

.services-body-col {
    flex: 0 0 55%; /* Wider content area */
}

.lead-text {
    font-size: 28px; line-height: 1.4; font-weight: 400; color: #111; margin-bottom: 60px;
}

.capabilities-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 80px;
}

.cap-item h4 {
    font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 15px; border-top: 1px solid #eee; padding-top: 15px;
}

.cta-block {
    background: #FAFAFA; padding: 50px; 
}

.cta-block h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 15px; }
.big-email { font-size: 28px; font-weight: 700; color: #111; text-decoration: none; display: block; margin-bottom: 5px; transition: 0.3s; }
.big-email:hover { color: var(--accent); }
.phone-num { font-size: 18px; color: #666; }

/* FEATURE SECTION (BLEED) */
.feature-split {
    position: relative;
    padding: 160px 0;
    background: #FAFAFA;
    overflow: hidden;
}

.bleed-image-wrapper {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 50%;
    z-index: 1;
}

.main-image {
    width: 100%;
    height: 100%; 
    background-color: #DDD;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
}

.overlap-image {
    position: absolute;
    bottom: -50px; 
    left: -40px; 
    width: 320px; 
    height: 380px;
    background-color: var(--accent);
    background-image: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&q=80&w=800');
    background-size: cover;
    background-position: center;
    border: 10px solid #FAFAFA;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    z-index: 4; 
}

.feature-text-wrapper {
    position: relative;
    z-index: 3;
    width: 85%; 
}

/* NO FLUFF */
.no-fluff {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-light);
    background: white;
    position: relative;
    z-index: 2; 
}

.fluff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.big-statement {
    font-size: 56px;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

/* FOOTER */
footer {
    background: #111;
    color: white;
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.footer-cta a.email-link {
    color: white;
    font-size: 42px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #333;
    transition: 0.3s;
}

.footer-cta a.email-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* LAPTOP BREAKPOINT (1366x768 Optimized) */
@media (max-width: 1440px) {
    .container { padding: 0 30px; }
    .hero { padding-top: 20px; min-height: 600px; }
    .services-section, .portfolio-section, .feature-split, .no-fluff { padding: 90px 0; }
    h1 { font-size: 56px; }
    h2 { font-size: 36px; }
    .services-head-col h2, .legacy-content h2, .big-statement { font-size: 42px; }
    .lead-text, .legacy-subhead { font-size: 22px; }
    .hero-text-content p { font-size: 18px; }
    .hero-image-container { top: 60px; width: 48vw; }
    .accordion-gallery { height: 450px; }
    .acc-content { padding: 25px; }
    .acc-content h3 { font-size: 24px; }
    .legacy-collage-grid { gap: 60px; }
    .legacy-visuals { height: 480px; }
    .insight-mini-card { padding: 30px; }
    .insight-title { font-size: 18px; }
}

/* MOBILE BREAKPOINT */
@media (max-width: 1024px) {
    .mobile-toggle { display: block; }
    .desktop-nav { display: none; }
    .hero { display: block; padding-top: 100px; padding-bottom: 60px; min-height: auto; }
    .hero-text-content { max-width: 100%; }
    .hero-image-container { position: relative; width: 100%; right: auto; top: auto; transform: none; margin-top: 40px; }
    .services-wrapper, .fluff-grid, .legacy-collage-grid { grid-template-columns: 1fr; gap: 40px; }
    .accordion-gallery { flex-direction: column; height: auto; }
    .acc-card { height: 250px; transform: skewX(0); margin-bottom: 20px; width: 100%; }
    .acc-card img { transform: scale(1) skewX(0); filter: grayscale(0%); }
    .acc-content { opacity: 1; transform: none; }
    .acc-card:hover { flex: auto; height: 250px; }
    .legacy-visuals { height: 400px; margin-top: 40px; }
    .visual-back { width: 90%; right: 0; }
    .visual-front { width: 60%; left: 0; }
    .insight-mini-card { max-width: 100%; }
    .services-asym-grid { flex-direction: column; }
    .services-head-col { margin-bottom: 40px; position: static; }
    .capabilities-split { grid-template-columns: 1fr; gap: 40px; }
    .big-email { font-size: 22px; }
    .bleed-image-wrapper { position: relative; width: 100%; height: 400px; right: auto; top: auto; margin-top: 60px; }
    .feature-text-wrapper { width: 100%; }
    .overlap-image { display: none; }
    .footer-cta a.email-link { font-size: 28px; }
}

/* --- ABOUT PAGE SPECIFIC STYLES (v2) --- */

/* 1. TOP HERO IMAGE */
.about-top-visual {
    width: 100%;
    height: 70vh; /* Cinematic height */
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Sits under the fixed/absolute header if needed, or flows naturally */
}

.about-top-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* Focus on the interesting part */
}

/* 2. CONTENT FLOW CONTAINER */
.about-flow-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 40px; /* Big top spacing as requested */
    position: relative;
    background: #fff;
    margin-top: -100px; /* Overlap the hero image slightly */
    z-index: 10;
}

/* 3. TYPOGRAPHY BLOCKS */
.chapter-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.chapter-headline {
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    color: #111;
}

.chapter-lead {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 400;
    color: #111;
    margin-bottom: 40px;
}

.chapter-body {
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

/* 4. SPLIT LAYOUT (Text + Image) */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin: 120px 0;
    align-items: center;
}

.about-visual-small img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 20px 20px 0px #F0F0F0; /* Subtle graphic shadow */
}

/* 5. INDUSTRIES BLOCK (Gray Box) */
.industries-block {
    background: #FAFAFA;
    padding: 80px;
    margin: 120px 0;
    border-left: 4px solid var(--accent);
}

.industries-block h3 {
    font-size: 32px;
    margin-bottom: 30px;
}

/* 6. "NO LAYERS" SECTION */
.no-layers-section {
    text-align: center;
    max-width: 800px;
    margin: 140px auto;
}

.highlight-text {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    margin-bottom: 30px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .about-top-visual { height: 50vh; }
    .about-flow-container { padding: 60px 30px; margin-top: -50px; }
    .about-split { grid-template-columns: 1fr; gap: 40px; margin: 80px 0; }
    .industries-block { padding: 40px; margin: 80px 0; }
    .highlight-text { font-size: 28px; }
}
/* --- ABOUT PAGE UPDATES --- */

/* 1. TESTIMONIAL SECTION (Parallax + Dark Overlay) */
.testimonial-section {
    padding: 140px 0;
    position: relative;
    /* Dark architectural background */
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=2000'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates the Parallax effect */
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.testimonial-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 17, 17, 0.85); /* Dark overlay for text readability */
    z-index: 1;
}

.testimonial-content-wrapper {
    position: relative;
    z-index: 2; /* Ensures text sits on top of overlay */
}

.quote-mark {
    font-size: 120px;
    line-height: 1;
    color: var(--accent);
    font-family: serif; /* Classic quote mark style */
    display: block;
    margin-bottom: 20px;
}

.testimonial-text {
    /* Reduced size for elegance */
    font-size: clamp(20px, 3vw, 32px); 
    font-weight: 600; 
    line-height: 1.5;
    max-width: 900px; 
    margin: 0 auto 40px auto;
    letter-spacing: -0.01em;
}

.testimonial-author {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
}

/* 2. TECH STACK SECTION */
.tech-section {
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid #eee;
    text-align: center;
}

.tech-header {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    margin-bottom: 30px;
    display: block;
    position: relative;
}

/* Little decorative line under the header */
.tech-header::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 15px auto 0 auto;
}

/* New Contextual Text */
.tech-intro-text {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.tech-image-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.tech-image-wrapper img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: 0.3s;
}

.tech-image-wrapper img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* 3. INDUSTRY SECTION EXTRAS */
.industry-cta-block {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.industry-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.text-link-bold {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.text-link-bold:hover {
    border-bottom-color: var(--accent);
}
/* --- SCROLL SCRUB TESTIMONIAL STYLES --- */

/* The Scroll Track (Tall container for scrolling space) */
.scroll-track {
    height: 350vh; 
    position: relative;
    background: #fff; /* Match site background */
}

/* The Sticky Container (The viewport) */
.sticky-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
}

/* Typography Styling */
.testimonial-wrapper {
    max-width: 900px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.quote-mark-anim {
    font-size: 140px;
    font-family: serif;
    color: var(--accent); /* International Orange */
    opacity: 0; 
    line-height: 0;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translate(-50%, -50px);
}

.text-line {
    display: block;
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.3;
    color: #111; /* Dark text on white */
    margin-bottom: 0.5rem;
    will-change: transform, opacity, filter;
    opacity: 0; /* Hidden initially */
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--accent); /* Orange highlight */
}

.author-anim {
    margin-top: 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    opacity: 0;
    transform: translateY(20px);
}
/* --- METRIC/PROOF POINTS SECTION --- */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    height: 100%;
    align-content: center;
}

.metric-card {
    border-left: 2px solid #E5E5E5;
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-card:hover {
    border-left-color: var(--accent); /* Orange highlight on hover */
    transition: 0.3s ease;
}

.metric-value {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    line-height: 1.1;
    margin-bottom: 10px;
    display: block;
}

.metric-label {
    font-size: 16px;
    color: #666;
    line-height: 1.4;
    font-weight: 500;
}

/* Mobile adjust for metrics */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
}
/* --- BENTO GRID & NEW CONTENT STYLES --- */

/* 1. The Narrative Side (Left) */
.content-block {
    margin-bottom: 40px;
}

.content-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.content-p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Custom "Checkmark" List */
.feature-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.feature-list li {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: '→'; /* Or a custom SVG if preferred */
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

/* 2. The Bento Grid (Right) */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin-top: 100px;
}

/* UPDATED BENTO CARD STYLES */
.bento-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Removed transition: transform to allow JS scrubbing */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform, opacity; /* Optimization for scrubbing */
}

.bento-card:hover {
    /* transform: translateY(-5px);  <-- REMOVED to prevent conflict with scroll script */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

/* Special Card Styles */
.card-large {
    grid-column: span 2; /* Takes full width */
    background: #111;
    color: #fff;
    border: none;
}

.card-tall {
    grid-row: span 2; /* Takes two rows height */
    background: var(--accent);
    color: #fff;
    border: none;
}

/* Card Typography */
.b-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.card-large .b-value { color: var(--accent); }
.card-tall .b-value { color: #fff; }

.b-label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0.9;
}

.card-large .b-label { color: #ccc; }

/* Responsive Bento */
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .card-large, .card-tall { grid-column: span 1; grid-row: span 1; }
}

/* --- WORK (PORTFOLIO) PAGE STYLES --- */

body.work-page {
    overflow: hidden;
}

/* 1. SCROLL CONTAINER */
.gallery-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100vh;
    width: 100%;
    /* SNAP ON, SMOOTH OFF (Fixes mousewheel jitter) */
    scroll-snap-type: x mandatory; 
    scroll-behavior: auto; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
    cursor: grab;
}
.gallery-wrapper::-webkit-scrollbar { display: none; }
.gallery-wrapper.active { cursor: grabbing; scroll-snap-type: none; }

/* 2. SLIDES */
.work-slide {
    min-width: 100vw;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
    padding-top: 80px; 
}

/* 3. INDEX SLIDE */
.index-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.index-title h1 {
    font-size: clamp(50px, 6vw, 100px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
    color: #111;
}

.index-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px 40px;
}

.index-link {
    display: flex;
    align-items: flex-start; /* Aligns number to top */
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: 0.3s;
}

/* Wrapper for Title + Category */
.index-text-col {
    display: flex;
    flex-direction: column;
}

.i-name {
    font-size: 25px;
    font-weight: 600;
    color: #999;
    line-height: 1.2;
    transition: 0.3s;
}

.i-cat {
    font-size: 12px;
    text-transform: uppercase;
    color: #69645e;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 5px;
    transition: 0.3s;
}

.index-num {
    font-size: 12px;
    font-weight: 700;
    margin-right: 15px;
    color: var(--accent);
    opacity: 0.5;
    margin-top: 6px; /* Visual alignment with the name */
}

/* Hover Effects */
.index-link:hover {
    padding-left: 10px;
    border-color: var(--accent);
}

.index-link:hover .i-name {
    color: #111;
}

.index-link:hover .i-cat {
    color: var(--accent);
}

/* 4. PROJECT GRID */
.project-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    pointer-events: none;
}

/* 5. IMAGE */
.work-img-container {
    width: 100%;
    height: 90vh;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    cursor: zoom-in;
    pointer-events: auto;
    margin-bottom: 90px;
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1), filter 0.5s ease;
    transform: scale(1.1); 
    filter: grayscale(100%); 
}

.work-img-container:hover .work-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.in-view .work-img { transform: scale(1); }

/* 6. TEXT CONTENT */
.work-text-container {
    opacity: 0.5;
    transform: translateX(40px);
    transition: all 0.8s ease;
    pointer-events: auto;
}

.in-view .work-text-container { opacity: 1; transform: translateX(0); }

.work-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.work-title {
    font-size: clamp(40px, 5vw, 80px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
    color: #111;
}

.work-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
    max-width: 450px;
}

.work-tags {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    padding-top: 20px;
    border-top: 2px solid var(--accent);
    display: inline-block;
    letter-spacing: 1px;
}

/* 7. LIGHTBOX (FIXED: Massive Image) */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-close {
    position: absolute;
    top: 30px; right: 30px;
    color: #111;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
    z-index: 220;
}
.lightbox-close:hover { color: var(--accent); transform: rotate(90deg); }

/* WIDE CONTAINER */
.lb-container {
    display: flex;
    flex-direction: row;
    width: 98vw; /* Almost full width */
    max-width: none; /* Uncap the width */
    height: 90vh;
    gap: 30px;
}

/* MAIN STAGE (75%) */
.lb-main-stage {
    flex: 4; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Pushes image to left edge */
}

.lightbox-img {
    max-height: 100%;
    width: 100%; 
    object-fit: contain;
    object-position: left center; /* Anchors image to left */
    box-shadow: none; /* Cleaner look for big images */
    transform: scale(1); /* Full size */
    transition: opacity 0.2s ease;
}

/* SIDEBAR (25%) */
.lb-bento-sidebar {
    flex: 1;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    grid-auto-rows: 120px;
    gap: 10px;
    grid-auto-flow: dense; 
    align-content: start; 
    overflow-y: auto;
}
.lb-bento-sidebar::-webkit-scrollbar { display: none; }

.lb-thumb {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 2px; cursor: pointer;
    opacity: 0.5; filter: grayscale(100%); transition: all 0.3s ease;
}
.lb-thumb:hover { opacity: 1; filter: grayscale(0%); }
.lb-thumb.active { opacity: 1; filter: grayscale(0%); box-shadow: 0 0 0 3px var(--accent); z-index: 2; }

/* Bento Spans */
.lb-thumb:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.lb-thumb:nth-child(3n) { grid-row: span 2; }

/* 8. UI ELEMENTS */
.progress-bar-container {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 6px; background: #f0f0f0; z-index: 50;
}
.progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.3s ease; }

/* Scroll Indicator (Right) */
.scroll-indicator-large {
    position: fixed; bottom: 50px; right: 50px; width: 80px; height: 80px;
    border: 2px solid #ddd; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 60; pointer-events: auto; cursor: pointer;
    animation: pulseRing 2s infinite; transition: 0.3s;
}
.scroll-indicator-large:hover { transform: scale(1.1); border-color: var(--accent); }
.scroll-indicator-large::after { content: '→'; font-size: 40px; color: var(--accent); font-weight: 300; padding-bottom: 4px; }

/* Back Button (Left) - VISIBLE */
.back-to-index {
    position: fixed; bottom: 80px; left: 50px;
    z-index: 90; /* High Z-Index to ensure clickability */
    font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: #111; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateX(-20px);
    transition: all 0.4s ease;
    display: flex; align-items: center; gap: 10px;
}
.back-to-index.visible { opacity: 1; visibility: visible; transform: translateX(0); }
.back-to-index:hover { color: var(--accent); }
.back-to-index::before { content: '←'; font-size: 18px; transition: transform 0.3s; }
.back-to-index:hover::before { transform: translateX(-5px); }

@keyframes pulseRing {
    0% { transform: scale(1); border-color: #ddd; }
    50% { transform: scale(1.05); border-color: var(--accent); }
    100% { transform: scale(1); border-color: #ddd; }
}

/* MOBILE OVERRIDE */
@media (max-width: 1024px) {
    body.work-page { overflow: auto; }
    .gallery-wrapper { flex-direction: column; overflow-y: auto; scroll-snap-type: y mandatory; height: auto; }
    .work-slide { min-width: 100%; min-height: 100vh; padding: 100px 20px 40px 20px; flex-direction: column; }
    .project-grid, .index-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .index-list { text-align: left; }
    .work-img-container { height: 50vh; }
    .work-text-container { transform: none; opacity: 1; }
    
    /* Hide desktop controls */
    .scroll-indicator-large, .back-to-index { display: none; }
    
    /* Lightbox Mobile */
    .lightbox { padding: 0; }
    .lb-container { flex-direction: column; width: 100%; height: 100%; padding: 60px 20px 20px 20px; gap: 20px; }
    .lb-main-stage { flex: 2; width: 100%; }
    .lb-bento-sidebar { flex: 1; width: 100%; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 80px; align-content: start; }
}
/* --- CONTACT PAGE STYLES --- */

/* Split Layout Container */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh; /* Takes up most of the screen */
    align-items: center; /* Center vertically */
    padding-top: 100px; /* Space for fixed header */
    padding-bottom: 100px;
}

/* LEFT: Text & Direct Contact */
.contact-info-col {
    padding-right: 80px;
}

.contact-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 30px;
    display: block;
}

.contact-headline {
    font-size: clamp(50px, 5vw, 80px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #111;
    margin-bottom: 40px;
}

.contact-body {
    font-size: 20px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 60px;
    max-width: 500px;
}

.direct-contact-block {
    border-top: 2px solid #eee;
    padding-top: 40px;
}

.direct-link {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.direct-link:hover { color: var(--accent); }

.direct-sub {
    font-size: 16px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RIGHT: Architectural Form */
.contact-form-col {
    background: #FAFAFA;
    padding: 60px;
    border-radius: 4px;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.03);
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin-bottom: 10px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    background: #fff;
    border: 1px solid #E5E5E5;
    padding: 15px 20px;
    font-size: 16px;
    font-family: var(--font-main);
    color: #111;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 82, 0, 0.1);
}

/* Custom Select styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23111%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px top 50%;
    background-size: 12px auto;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .contact-split {
        grid-template-columns: 1fr;
        padding-top: 120px;
        gap: 60px;
    }
    .contact-info-col { padding-right: 0; }
    .contact-form-col { padding: 40px; }
}
/* --- CAPABILITIES: GRAPHIC & PRINT (CINEMATIC BLEED - FIXED v2) --- */

/* 1. HERO (Left Aligned) */
.cap-hero {
    padding: 160px 0 120px 0;
    max-width: 1100px;
    margin: 0; /* REMOVED 'auto' to force left alignment */
    margin-right: auto; /* Keeps max-width constraint but anchors left */
}

.cap-eyebrow {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); margin-bottom: 30px; display: block; position: relative; padding-left: 40px; 
}
.cap-eyebrow::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 30px; height: 1px; background: var(--accent);
}

.cap-headline {
    font-size: clamp(52px, 7vw, 90px); font-weight: 800; line-height: 0.95;
    color: #111; margin-bottom: 40px; letter-spacing: -0.03em;
}

.cap-lead {
    font-size: 26px; line-height: 1.4; color: #666; max-width: 850px; font-weight: 400; margin-bottom: 40px;
}

.cap-lead a {
    color: #111; text-decoration: none; border-bottom: 1px solid var(--accent); transition: 0.2s;
}
.cap-lead a:hover { background: var(--accent); color: #fff; }

.hero-actions { display: flex; align-items: center; gap: 30px; }

.hero-email-link {
    font-size: 16px; font-weight: 700; color: #111; text-decoration: none; border-bottom: 2px solid #eee; transition: 0.3s;
}
.hero-email-link:hover { border-bottom-color: var(--accent); }

/* 2. THE CINEMATIC SPLIT WRAPPER */
.cinematic-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw); /* Full bleed break-out */
    margin-top: 80px;
    border-top: 1px solid #E5E5E5;
    /* IMPORTANT: 'overflow: hidden' REMOVED to allow sticky to work */
}

.cinematic-container {
    display: grid;
    /* REBALANCED: Text 55% (Wider), Image 45% (Narrower) */
    grid-template-columns: 55% 45%; 
    width: 100%;
    position: relative;
    min-height: 100vh;
}
/* LEFT: Narrative Scroll */
.cine-text-col {
    padding-left: max(40px, calc((100vw - 1300px) / 2 + 40px)); 
    padding-right: 60px;
    padding-bottom: 20vh;
    padding-top: 15vh; /* Start lower to align with sticky image */
    background: #fff; 
    z-index: 2; 
}

.cine-block {
    min-height: 90vh; /* Give plenty of scroll space per item */
    display: flex; flex-direction: column; justify-content: center;
    padding-left: 40px; border-left: 2px solid transparent; 
    opacity: 0.1; transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.6s ease;
}

.cine-block.active {
    opacity: 1; transform: translateX(0); border-left-color: var(--accent);
}

.cine-num {
    font-size: 14px; font-weight: 700; color: #999; margin-bottom: 20px; display: block; letter-spacing: 1px;
}
.cine-block.active .cine-num { color: var(--accent); }

.cine-title {
    font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 30px; color: #111; letter-spacing: -0.02em;
}

.cine-desc {
    font-size: 18px; line-height: 1.7; color: #666; max-width: 450px;
}

.cine-desc a {
    color: #111; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); transition: 0.2s;
}
.cine-desc a:hover { background: var(--accent); color: #fff; }

/* RIGHT: Image Stage (Sticky) */
.cine-image-col {
    height: 100vh;
    position: sticky; 
    top: 0; 
    right: 0;
    overflow: hidden; 
    background: #111;
    z-index: 1;
}

.cine-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    
    /* DEFAULT STATE: Hidden, zoomed in, and Black & White */
    opacity: 0; 
    transform: scale(1.1); 
    filter: grayscale(100%); 

    /* THE FIX: Added 'filter' to the transition list */
    /* Opacity is fast (0.6s), Color is slow (1.5s) = "Developing" effect */
    transition: opacity 0.6s ease-out, 
                transform 1.5s ease-out, 
                filter 1.5s ease-in-out; 
}

.cine-img.active {
    opacity: 1; 
    transform: scale(1); 
    z-index: 2;
    
    /* THE FIX: Actually turn the color on */
    filter: grayscale(0%);
}


/* 3. STICKY FLOAT BUTTON */
.sticky-float-btn {
    position: absolute; bottom: 50px; right: 50px; 
    z-index: 20; background: #fff; color: #111;
    padding: 15px 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12px;
    border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0; transform: translateY(20px); transition: all 0.5s ease;
    cursor: pointer; text-decoration: none;
}
.sticky-float-btn:hover { background: var(--accent); color: #fff; transform: translateY(0) scale(1.05); }

@media (min-width: 1025px) {
    .sticky-float-btn { opacity: 1; transform: translateY(0); }
}

/* 4. MID-STREAM CTA */
.cine-cta-block {
    margin: 60px 0 60px 40px; padding: 30px; background: #FAFAFA; border-left: 2px solid #111;
}
.cine-cta-text {
    font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; color: #999;
}
.arrow-link {
    font-size: 24px; font-weight: 700; color: #111; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.arrow-link:hover { gap: 15px; color: var(--accent); }

/* 5. BOTTOM CTA */
.mini-cta-section {
    padding: 120px 0;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 5;
    position: relative;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cinematic-container { display: flex; flex-direction: column-reverse; }
    .cine-image-col { width: 100%; height: 60vh; position: relative; top: 0; }
    .cine-text-col { width: 100%; padding: 60px 30px; }
    .cine-block { min-height: auto; margin-bottom: 80px; opacity: 1; transform: none; padding-left: 0; border: none; }
    .cine-block.active { border: none; padding-left: 0; }
    .cine-img { opacity: 0; position: absolute; }
    #c-img-0 { opacity: 1; position: relative; } 
    .sticky-float-btn { display: none; }
    .cinematic-wrapper { margin-left: 0; width: 100%; }
}
/* FIX: Ensure Bottom CTA sits on top of the sticky black column */
.mini-cta-section {
    padding: 120px 0;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
    /* HIGH Z-INDEX TO COVER STICKY CONTENT */
    position: relative;
    z-index: 100; 
    width: 100%;
}

/* New Cross-Link Styles */
.cross-link-row {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cross-link-label {
    font-size: 14px;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
}

.alt-service-link {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent); /* Orange */
    text-decoration: none;
    border-bottom: 2px solid var(--accent); /* Underline */
    transition: all 0.3s;
}

.alt-service-link:hover {
    color: #111;
    border-bottom-color: #111;
}
/* --- CAPABILITIES: WEB DESIGN (FINAL v2) --- */

/* 1. HERO & SPLIT FEATURE */

/* Hero Styles */
.cap-hero {
    padding: 160px 0 120px 0;
    margin-right: auto;
}
.cap-eyebrow {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); margin-bottom: 30px; display: block; position: relative; padding-left: 40px; 
}
.cap-eyebrow::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 30px; height: 1px; background: var(--accent);
}
.cap-headline {
    font-size: clamp(52px, 7vw, 90px); font-weight: 800; line-height: 0.95;
    color: #111; margin-bottom: 40px; letter-spacing: -0.03em;
}
.cap-lead {
    font-size: 26px; line-height: 1.4; color: #666; max-width: 850px; font-weight: 400; margin-bottom: 40px;
}
.hero-actions {
    display: flex; align-items: center; gap: 30px; margin-top: 50px;
}
.hero-email-link {
    font-size: 16px; font-weight: 700; color: #111; text-decoration: none; border-bottom: 2px solid #eee; transition: 0.3s;
}
.hero-email-link:hover { border-bottom-color: var(--accent); }

/* SPLIT FEATURE (Full Bleed Parallax Left) */
.web-split-wrapper {
    background-color: #f9f9f9;
    border-bottom: 1px solid #E5E5E5;
    position: relative;
    overflow: hidden; /* Clips the parallax image */
    padding: 0;
}

.web-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split screen equally */
    align-items: stretch;
    min-height: 750px; /* Defined height for the row */
}

/* Left Column: Image Container */
.web-split-img-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* The Parallax Image */
.web-split-img {
    width: 100%;
    height: 140%; /* Taller for heavy parallax range */
    object-fit: cover;
    position: absolute;
    top: -20%; /* Center vertically initially */
    left: 0;
    will-change: transform;
}

/* Right Column: Content Wrapper */
.web-split-content-col {
    display: flex;
    align-items: center;
}

/* Inner Content for Alignment */
.web-split-content-inner {
    /* Padding to align visually with the standard container on the right side */
    padding: 100px 40px 100px 80px;
    max-width: 700px;
}

.web-method-label {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); margin-bottom: 30px; display: block;
}
.web-intro-lead {
    font-size: 28px; line-height: 1.4; font-weight: 400; color: #111; margin-bottom: 30px;
}

/* Inline Links */
.inline-link {
    color: #111; text-decoration: none; font-weight: 600; border-bottom: 2px solid rgba(255, 82, 0, 0.3); transition: all 0.2s ease;
}
.inline-link:hover { background: var(--accent); color: #fff; border-bottom-color: var(--accent); }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .web-split-grid { grid-template-columns: 1fr; min-height: auto; }
    .web-split-img-container { height: 500px; order: 2; }
    .web-split-img { height: 120%; top: -10%; }
    .web-split-content-col { order: 1; }
    .web-split-content-inner { padding: 80px 40px; }
}


/* 2. PROCESS TIMELINE (Scroll Scrub) */
.web-main-content {
    padding: 120px 0 180px 0; /* Extra bottom padding for scrub completion */
    background: #fff;
}

/* Process Context Text */
.process-intro {
    max-width: 700px; margin-bottom: 80px;
}
.process-intro h3 { font-size: 42px; font-weight: 800; margin-bottom: 20px; line-height: 1; color: #111; }
.process-intro p { font-size: 20px; line-height: 1.6; color: #666; }

.web-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    margin-top: 60px;
}

/* Base Gray Line */
.web-process-grid::before {
    content: '';
    position: absolute; top: 24px; left: 0; width: 100%; height: 1px;
    background: #E5E5E5; z-index: 0;
}

/* Active Orange Fill Line */
.process-fill-line {
    position: absolute; top: 24px; left: 0; height: 1px;
    background: var(--accent); z-index: 1; width: 0%; /* JS controls this */
}

.process-step {
    position: relative; z-index: 2;
}

.process-num {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px;
    background: #fff; border: 1px solid #E5E5E5; border-radius: 50%;
    font-size: 14px; font-weight: 700; color: #ccc;
    margin-bottom: 25px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Active State */
.process-step.active .process-num {
    border-color: var(--accent); background: var(--accent); color: #fff;
    transform: scale(1.2); box-shadow: 0 10px 20px rgba(255, 82, 0, 0.3);
}

.process-step h4 { 
    font-size: 20px; margin-bottom: 15px; font-weight: 700; color: #111; transition: color 0.3s; 
}
.process-step.active h4 { color: var(--accent); }
.process-step p { font-size: 16px; line-height: 1.6; color: #666; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .web-split-grid { grid-template-columns: 1fr; gap: 60px; }
    .web-split-img { order: 2; box-shadow: none; } /* Image below on mobile */
    .web-split-content { order: 1; padding-left: 0; }
    
    .web-process-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .web-process-grid::before { display: none; }
    .process-fill-line { display: none; }
}
@media (max-width: 768px) {
    .web-process-grid { grid-template-columns: 1fr; }
}


/* 3. INTERACTIVE PORTFOLIO LIST */
.web-portfolio-interactive {
    position: relative; padding: 100px 40px; background: #fff; border-top: 1px solid #E5E5E5;
}

.project-list {
    list-style: none; max-width: 1200px; margin: 0 auto;
}

/* =========================================
   Project Detail Navigation
   ========================================= */
.project-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px; /* Space between nav and project meta */
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

.proj-nav-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.proj-nav-link:hover {
    color: #ff5a00;
}

/* Specific alignment for the "Next" link */
.proj-nav-link.next {
    text-align: right;
    color: #333; /* Make "Next" slightly darker to encourage clicking */
}

.project-item {
    position: relative; padding: 40px 0; border-bottom: 1px solid #E5E5E5;
    display: flex; justify-content: space-between; align-items: center;
    text-decoration: none; z-index: 2;
}
.project-item:first-child { border-top: 1px solid #E5E5E5; }

.p-name {
    font-size: 42px; font-weight: 800; color: #111; letter-spacing: -0.02em; transition: color 0.3s;
}
.p-meta { text-align: right; }
.p-cat { font-size: 14px; font-weight: 700; text-transform: uppercase; color: #999; display: block; margin-bottom: 5px; }
.p-tech { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 1px; }

.project-item:hover .p-name { color: #ccc; }

/* Hover Reveal Image */
.hover-image-reveal {
    position: fixed; top: 0; left: 0; width: 400px; height: 280px;
    pointer-events: none; z-index: 10; opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.3s ease;
    overflow: hidden; border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}
.hover-image-reveal.active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hover-image-reveal img { width: 100%; height: 100%; object-fit: cover; }


/* 4. SCROLL SCRUB TESTIMONIAL */
.scroll-track-light {
    height: 350vh; position: relative; background: #fff; border-top: 1px solid #E5E5E5;
}

.sticky-stage {
    position: sticky; top: 0; height: 100vh; width: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden;
}

.testimonial-wrapper {
    max-width: 900px; padding: 2rem; text-align: center;
}

.quote-mark-anim {
    font-size: 140px; font-family: serif; color: var(--accent); opacity: 0; line-height: 0;
    position: absolute; top: -40px; left: 50%; transform: translate(-50%, -50px);
}

.text-line {
    display: block; font-size: clamp(24px, 4vw, 48px); font-weight: 700; line-height: 1.3; color: #111;
    margin-bottom: 0.5rem; opacity: 0; letter-spacing: -0.02em;
}

.highlight { color: var(--accent); }

.author-anim {
    margin-top: 3rem; font-size: 1.2rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #999; opacity: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .web-split-grid { grid-template-columns: 1fr; gap: 60px; }
    .web-split-content { order: 1; padding-right: 0; }
    .web-split-img { order: 2; max-height: 400px; }
    
    .web-process-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .web-process-grid::before { display: none; }
    .process-fill-line { display: none; }
    
    .hover-image-reveal { display: none; }
    .p-name { font-size: 24px; color: #111 !important; }
}
@media (max-width: 768px) {
    .web-process-grid { grid-template-columns: 1fr; }
}
/* --- PROJECT DETAIL PAGE (STICKY LAYOUT) --- */

/* Dark Background for the page content */
body.project-page {
    background-color: #111;
}

/* FIX: Force Header Background to Full Width (Break Container) */
body.project-page header {
    position: relative;
    background: transparent; /* Remove container-bound bg */
    border: none; /* Remove container-bound border */
}

body.project-page header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Centers relative to viewport */
    width: 100vw; /* Spans full screen width */
    height: 100%;
    background-color: #fff;
    border-bottom: 1px solid #E5E5E5;
    z-index: -1; /* Sits behind the logo/nav */
}

/* 1. STICKY SPLIT LAYOUT */
.proj-sticky-wrapper {
    display: grid;
    /* 60% Images | 40% Text */
    grid-template-columns: 1.5fr 1fr; 
    align-items: start; /* Important for sticky */
    position: relative;
    border-top: 1px solid #333;
}

/* LEFT: Scrolling Image Column */
.proj-images-col {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
}

.proj-img {
    width: 100%;
    height: auto;
    display: block;
    /* No margins - continuous feed */
    border-bottom: 1px solid #333; 
    transition: filter 0.3s;
}

.proj-img:hover { filter: brightness(1); }

/* RIGHT: Sticky Text Column */
.proj-content-col {
    position: sticky;
    top: 85px; /* Stick below the header */
    height: calc(100vh - 85px); /* Fill remaining viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: #fff;
}

.proj-meta {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    font-family: monospace;
    font-size: 13px;
    color: #888;
}

.proj-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #555;
    font-weight: 700;
}

.proj-title {
    font-size: clamp(40px, 4vw, 72px);
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 40px;
    color: #606060;
    letter-spacing: -0.03em;
}

.proj-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #232323;
    margin-bottom: 50px;
    max-width: 550px;
}

/* Back Link Styling */
.proj-back-link {
    display: inline-block;
    /* Spacing */
    margin-bottom: 30px; /* Space between this link and the metadata below */
    margin-top: -20px;   /* PULL UP: Adjust this number to lift it higher or lower */
    
    /* Typography */
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    
    /* Color & Transition */
    color: #000;
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.proj-back-link:hover {
    opacity: 1;
    color: #ff5a00; /* Brand Orange */
}
/* 2. NEXT PROJECT FOOTER */
.next-project-bar {
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid #333;
    background: #111;
    position: relative;
    z-index: 10;
}

.next-label { 
    font-size: 14px; 
    color: #666; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    display: block; 
    margin-bottom: 20px; 
}

.next-link { 
    font-size: clamp(40px, 5vw, 80px); 
    font-weight: 800; 
    color: #fff; 
    text-decoration: none; 
    transition: color 0.3s; 
}

.next-link:hover { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    /* Stack vertically on mobile */
    .proj-sticky-wrapper { grid-template-columns: 1fr; display: flex; flex-direction: column-reverse; }
    
    .proj-content-col { 
        position: relative; 
        top: 0; 
        height: auto; 
        padding: 80px 30px; 
        border-bottom: 1px solid #333;
    }
    
    .proj-images-col { border-right: none; }
}
/* --- CAPABILITIES: SOCIAL MEDIA (OVERLAP & AIRY - FIXED) --- */

/* 1. RIGHT BLEED FEATURE (Overlapping Hero) */
.social-split-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #fff;
    padding-bottom: 80px; 
    /* FIX: Removed overflow-x: hidden so image isn't clipped at the top */
    z-index: 2; 
}

.social-split-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    align-items: flex-start; 
    width: 100%;
}

/* LEFT: Text Column */
.social-text-col {
    padding-left: max(40px, calc((100vw - 1300px) / 2 + 40px));
    padding-right: 0px;
    padding-top: 60px; /* Push text down to balance the raised image */
    z-index: 4;
}

/* RIGHT: Image Column */
.social-img-col {
    width: 100%;
    position: relative;
    /* Pull the image UP into the Hero section */
    margin-top: -170px; 
    z-index: 1; 
}

.social-bleed-img {
    width: 100%;
    height: auto;
    display: block;
    
    /* CLEAN STYLE: No Shadow, No Radius */
    box-shadow: none;
    border-radius: 0; 
    
    /* Slide-In Animation */
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.social-bleed-img.active {
    opacity: 1;
    transform: translateX(0);
}

/* 2. SERVICES PILLARS (Tighter Spacing) */
.social-services-section {
    padding: 80px 0 100px 0;
    background: #fff;
    /* FIX: Pull section up to fill white space left by the layout */
    margin-top: -100px; 
    position: relative;
    z-index: 3; /* Ensure it sits above the split wrapper if they touch */
}

.services-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.service-col {
    position: relative;
    padding-top: 30px;
}

/* Big Number Anchor */
.service-big-num {
    font-size: 100px;
    font-weight: 800;
    color: #f4f4f4;
    line-height: 0.8;
    position: absolute;
    top: -40px;
    left: -10px;
    z-index: 0;
    user-select: none;
}

.service-content-wrap { position: relative; z-index: 1; }

.service-icon-img {
    width: 50px; height: 50px; object-fit: contain;
    margin-bottom: 25px; display: block;
}

.service-title-air {
    font-size: 24px; font-weight: 700; color: #111;
    margin-bottom: 15px; letter-spacing: -0.02em;
}

.service-desc-air {
    font-size: 16px; line-height: 1.6; color: #666;
}

/* 3. PARALLAX SOCIAL FEED (Clean) */
.social-feed-section {
    padding: 120px 0;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.feed-header-wrap {
    text-align: center; margin-bottom: 80px;
}
.feed-header-wrap h2 {
    font-size: 42px; font-weight: 800; color: #111;
}

.feed-container {
    max-width: 1400px; margin: 0 auto; padding: 0 40px;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 40px; align-items: start;
}

.feed-col {
    display: flex; flex-direction: column; gap: 40px; will-change: transform;
}

/* Staggered Offsets */
.feed-col:nth-child(2) { margin-top: 150px; } 
.feed-col:nth-child(3) { margin-top: -50px; }

.feed-item {
    width: 100%;
    /* Soft shadow to separate from white bg */
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    background: #f9f9f9;
}

.feed-item img { width: 100%; display: block; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    /* Reset overlap on mobile */
    .social-img-col { margin-top: 0; }
    .social-split-grid { grid-template-columns: 1fr; gap: 40px; }
    .social-text-col { padding: 40px 30px; }
    .social-bleed-img { width: 100%; transform: none; opacity: 1; }
    
    .services-editorial-grid { grid-template-columns: 1fr; gap: 60px; }
    .feed-container { grid-template-columns: 1fr; gap: 40px; }
    .feed-col { margin-top: 0 !important; }
}
/* --- SOCIAL FEED LIGHTBOX (SOPHISTICATED) --- */

/* The Backdrop (Blur + Dark) */
.social-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.95); /* Deep dark background */
    backdrop-filter: blur(10px); /* Glass effect */
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: zoom-out;
}

.social-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* The Image Container */
.social-lb-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5); /* Heavy shadow for depth */
}

.social-lightbox.active .social-lb-container {
    transform: scale(1);
}

.social-lb-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 4px; /* Subtle radius */
}

/* Close Button (Minimal) */
.social-lb-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 210;
    transition: transform 0.3s ease;
}

.social-lb-close::before, .social-lb-close::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: background 0.3s;
}

.social-lb-close::before { transform: rotate(45deg); }
.social-lb-close::after { transform: rotate(-45deg); }

.social-lb-close:hover { transform: rotate(90deg); }
.social-lb-close:hover::before, .social-lb-close:hover::after { background: var(--accent); }

/* Cursor for feed items */
.feed-item { cursor: zoom-in; }

/* --- CAPABILITIES: E-COMMERCE (FINAL HORIZONTAL) --- */

/* 1. CINEMATIC HERO VISUAL */
.ecomm-hero-visual-wrapper {
    width: 100%; height: 55vh; min-height: 450px;
    margin-top: 0px; position: relative; overflow: hidden;
}
.ecomm-hero-img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    will-change: transform; transform-origin: center center;
    /* Base scale slightly above 1 to prevent edge gaps during parallax */
    transform: scale(1.04); 
}
/* Custom Checkmark List */
.ecomm-feature-list {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 0 0 40px 0;
}

.ecomm-feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

/* The Orange Checkmark */
.check-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 90, 0, 0.1); /* Subtle orange background */
    color: #ff5a00; /* Brand orange check */
    border-radius: 50%;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0; /* Prevents icon from squishing */
    font-weight: bold;
}

/* 2. PLATFORM LOGOS */
.ecomm-platform-section {
    padding-top: 80px; padding-bottom: 0px; background: #fff;
}
.platform-grid {
    display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 50px 80px;
}
.platform-logo {
    height: 50px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.5; transition: all 0.3s ease;
}
.platform-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* 3. APPROACH */
.ecomm-approach-section {
    padding: 100px 0;
    background-color: #fff; /* Ensure clean background */
}
.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Right side slightly wider */
    gap: 80px;
    align-items: start;
}

/* Typography */
.approach-lead {
    font-size: 42px; /* Large, bold headline */
    font-weight: 700;
    line-height: 1.1;
    margin-top: 20px;
    max-width: 400px;
}
.approach-body {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}
/* 4. REALITY CHECK */
.reality-section { padding: 100px 0 100px 0; background: #fff; }
.reality-intro-centered { text-align: center; max-width: 900px; margin: 0 auto 120px auto; }
.reality-intro-centered h2 { font-size: 52px; font-weight: 800; line-height: 1; margin-bottom: 30px; color: #111; }
.reality-intro-centered p { font-size: 22px; line-height: 1.6; color: #666; }
.reality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; align-items: flex-start; text-align: center; margin-bottom: 60px; }
.stat-huge-num { font-size: clamp(80px, 8vw, 140px); font-weight: 800; color: #111; line-height: 1; display: block; margin-bottom: 20px; letter-spacing: -0.03em; }
.stat-huge-num .symbol { font-size: 0.5em; color: var(--accent); vertical-align: top; margin-left: 5px; }
.stat-content h4 { font-size: 18px; font-weight: 700; margin-bottom: 15px; color: #111; text-transform: uppercase; letter-spacing: 1px; }
.stat-content p { font-size: 16px; line-height: 1.5; color: #666; }
.reality-sources-inline { text-align: center; max-width: 900px; margin: 0 auto; font-size: 12px; line-height: 1.6; color: #bbb; }
.reality-sources-inline a { color: #bbb; text-decoration: none; margin: 0 5px; }

/* 5. SERVICES GRID (Larger Text List) */
.web-main-content { padding: 100px 0; background: #f9f9f9; }
.process-intro-center { text-align: center; max-width: 800px; margin: 0 auto; }
.ecomm-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 120px; }
.ecomm-service-card {
    padding: 80px 40px 50px 40px; background: #fff; border: 1px solid #E5E5E5; border-radius: 4px;
    transition: all 0.3s ease; display: flex; flex-direction: column; position: relative;
}
.ecomm-service-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); }
.service-card-logo {
    position: absolute; top: -40px; left: 50%; transform: translateX(-50%); height: 80px; width: auto; background: #fff; padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-radius: 4px;
}
.ecomm-service-card h4 { font-size: 24px; font-weight: 800; margin-bottom: 20px; color: #111; text-align: center; }
.ecomm-service-card p { font-size: 16px; color: #666; margin-bottom: 30px; line-height: 1.6; flex-grow: 1; text-align: center; }

/* UPDATED LIST STYLES (Larger, No Bullets) */
.ecomm-check-list { list-style: none; padding: 0; margin: 0 auto 30px auto; max-width: 100%; }
.ecomm-check-list li {
    font-size: 18px; /* Bigger text */
    font-weight: 700; /* Bolder */
    color: #111;
    margin-bottom: 15px;
    padding-left: 30px; /* More space for checkmark */
    position: relative;
    line-height: 1.4;
}
.ecomm-check-list li::before {
    content: '✓';
    position: absolute; left: 0; top: 0px;
    color: var(--accent);
    font-size: 20px; /* Bigger Checkmark */
    font-weight: 800;
}

.service-cta-btn {
    display: inline-block; margin-top: 30px; padding: 12px 20px; border: 1px solid #111; color: #111; text-decoration: none; font-weight: 700; text-align: center; transition: all 0.3s ease; align-self: center; font-size: 14px;
}
.service-cta-btn:hover { background: #111; color: #fff; }

/* 6. HORIZONTAL SCROLL PORTFOLIO */
.horizontal-scroll-section {
    position: relative;
    height: 400vh; /* Determines scroll length */
    background: #fff;
    border-top: 1px solid #E5E5E5;
}

.horizontal-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horizontal-header {
    position: absolute;
    top: 60px;
    left: 40px;
    z-index: 10;
}
.horizontal-header h3 {
    font-size: 14px; color: #999; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}

.horizontal-track {
    display: flex;
    gap: 80px;
    padding-left: 40px; /* Start padding */
    width: fit-content;
    will-change: transform;
}

.hz-item {
    width: 60vw; /* Huge Images */
    max-width: 900px;
    flex-shrink: 0;
    text-decoration: none;
    group: relative;
}

.hz-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 20px;
}

.hz-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.hz-item:hover .hz-img { transform: scale(1.03); }

.hz-content h4 { font-size: 36px; font-weight: 800; color: #111; margin-bottom: 5px; }
.hz-content span { font-size: 16px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }

/* Responsive */
@media (max-width: 1024px) {
    .ecomm-hero-visual-wrapper { height: 50vh; }
    .reality-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
    .ecomm-services-grid { grid-template-columns: 1fr; gap: 100px; }
    
    /* Disable horizontal scroll on mobile for better UX */
    .horizontal-scroll-section { height: auto; }
    .horizontal-sticky-wrapper { position: relative; height: auto; display: block; padding: 80px 0; }
    .horizontal-track { flex-direction: column; width: 100%; padding: 0 20px; gap: 60px; transform: none !important; }
    .horizontal-header { position: relative; top: 0; left: 0; padding: 0 20px 40px 20px; }
    .hz-item { width: 100%; max-width: 100%; }
}
@media (max-width: 768px) {
    .reality-grid { grid-template-columns: 1fr; }
}
/* --- SPECIALIZED: LIFE SCIENCES (FINAL UNBOXED) --- */

/* 1. HERO: RIGHT BLEED */
.ls-hero-wrapper {
    position: relative;
    overflow-x: hidden;
    background: #fff;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.ls-hero-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
    width: 100%;
}

/* Text Side (Padding Fixed) */
.ls-hero-content {
    padding-left: max(40px, calc((100vw - 1300px) / 2 + 40px));
    /* REMOVED extra right padding */
    padding-right: 0px; 
    z-index: 2;
}

/* Image Side */
.ls-hero-img-col {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-end;
}

.ls-hero-bleed-img {
    width: 90%;
    height: auto;
    display: block;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    box-shadow: none; 
}

/* 2. PLATFORM GATEWAYS (Clean / Unboxed) */
.ls-gateway-section {
    /* Reduced Top Padding by 50% */
    padding-top: 1px;
    padding-bottom: 120px;
    background: #fff;
}

.gateway-intro { text-align: center; max-width: 800px; margin: 0 auto 80px auto; }

.gateway-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; /* Wider gap for clean separation */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Vertical Divider Line between columns */
.gateway-grid::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1px; background: #E5E5E5;
    transform: translateX(-50%);
}

/* THE CARD (Stripped of Box Styling) */
.gateway-card {
    background: transparent;
    border: none;
    padding: 0 40px; /* Internal spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    /* No hover transform/shadow */
}

/* Main Logos */
.gateway-main-logo {
    height: 60px; /* Slightly larger */
    width: auto; object-fit: contain; margin-bottom: 30px;
    /* Clean color immediately, no grayscale transition needed for this style */
    filter: none; opacity: 1; 
}

.gateway-card h3 { font-size: 28px; font-weight: 800; color: #111; margin-bottom: 20px; }
.gateway-card p { font-size: 18px; line-height: 1.6; color: #666; margin-bottom: 30px; }

/* Clean List */
.gateway-list {
    list-style: none; padding: 0; margin: 0 0 40px 0; text-align: left; width: 100%; max-width: 400px;
}
.gateway-list li {
    padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 16px; color: #333; font-weight: 600;
    display: flex; justify-content: space-between;
}
.gateway-list li:last-child { border-bottom: none; }
.gateway-list span:last-child { color: var(--accent); } /* Checkmark color */

/* CTA Button */
.gateway-btn {
    padding: 15px 40px; background: #fff; color: #111; 
    border: 1px solid #111; /* Outline style */
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; font-size: 14px; border-radius: 4px; text-decoration: none; transition: all 0.3s;
}
.gateway-btn:hover { background: #111; color: #fff; }

/* Cert Images Footer */
.card-cert-footer {
    margin-top: 50px; padding-top: 0; width: 100%;
    display: flex; justify-content: center; gap: 30px; opacity: 1;
}
.iqvia-badge { height: 45px; width: auto; }
.veeva-badge-large { width: 160px; height: auto; }

/* 3. TEXTURE BACKGROUND */
.ls-texture-section {
    padding: 180px 0;
    background-image: url('./images/lifescience_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    position: relative;
    color: #fff;
}
.ls-texture-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75); z-index: 1;
}
.ls-texture-content {
    position: relative; z-index: 2; max-width: 800px; margin: 0 auto; text-align: center;
}
.ls-texture-content h2 { font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 30px; color: #fff; }
.ls-texture-content p { font-size: 22px; line-height: 1.6; color: #ddd; margin-bottom: 50px; }
.texture-btn {
    display: inline-block; padding: 18px 40px; background: #fff; color: #111;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; border-radius: 4px;
    transition: all 0.3s;
}
.texture-btn:hover { background: var(--accent); color: #fff; }

/* 4. WHO WE WORK WITH */
.ls-clients-section { padding: 120px 0; background: #f9f9f9; }
.clients-intro { text-align: center; margin-bottom: 60px; }
.clients-intro h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; color: #111; }
.clients-intro p { color: #999; font-size: 18px; }
.ls-client-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
    max-width: 1400px; margin: 0 auto; padding: 0 40px;
}
.ls-client-card {
    background: #fff; padding: 40px 20px; text-align: center;
    border: 1px solid #E5E5E5; border-radius: 4px; transition: transform 0.3s ease;
}
.ls-client-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.ls-client-card h4 { font-size: 18px; font-weight: 700; color: #333; margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
    .ls-hero-grid { grid-template-columns: 1fr; display: flex; flex-direction: column-reverse; }
    .ls-hero-content { padding: 40px 30px; text-align: center; }
    .ls-hero-img-col { justify-content: center; margin-bottom: 30px; }
    .ls-hero-bleed-img { width: 100%; border-radius: 0; }
    
    .gateway-grid { grid-template-columns: 1fr; gap: 80px; }
    .gateway-grid::after { display: none; /* Hide divider on mobile */ }
    .ls-gateway-section { padding-top: 60px; }
    
    .ls-client-grid { grid-template-columns: 1fr 1fr; }
    .ls-texture-section { background-attachment: scroll; }
}
@media (max-width: 600px) {
    .ls-client-grid { grid-template-columns: 1fr; }

}

/* --- GLOBAL SETTINGS --- */
:root {
    --accent: #FF5A00;
    --dark: #111;
    --container-width: 1360px; /* The Anchor */
}
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; font-family: 'Helvetica Now', sans-serif; overflow-x: hidden; color: var(--dark); }
* { box-shadow: none !important;}

/* REUSABLE CONTAINER (Crucial for tightening content) */
.iq-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* 1. HERO (UPDATED WITH BADGES) */
.ls-hero-wrapper {
    position: relative;
    padding: 140px 0 100px 0;
    overflow-x: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.ls-hero-grid {
    display: grid;
    grid-template-columns: 60% 40%; /* Preserved Wide Text */
    align-items: center;
    width: 100%;
}

.ls-hero-content {
    padding-left: max(40px, calc((100vw - var(--container-width)) / 2 + 40px));
    padding-right: 20px; 
    z-index: 2;
}

.ls-hero-img-col {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-start; /* Preserved Left Align */
    align-items: center;
}

.ls-hero-bleed-img {
    width: 110%; 
    max-width: 900px;
    height: auto;
    object-fit: contain;
    transform: none; 
    margin-left: -5%; 
}

/* Typography */
.ls-headline {
    font-size: clamp(48px, 5vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    color: #111;
    margin-bottom: 30px;
    text-transform: none;
    max-width: 100%; 
}

.ls-lead { font-size: 20px; line-height: 1.6; color: #666; margin-bottom: 40px; }

/* ACTIONS & BADGES */
.hero-actions {
    margin-bottom: 40px; /* Adds space between "Book Consult" and Badges */
}

/* New Wrapper for the badges */
.hero-badges-wrapper {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Sizing for the SVG badges */
.hero-badge {
    height: 60px; /* Adjust size as needed */
    width: auto;
}

/* Tablet/Mobile */
@media (max-width: 1024px) {
    .ls-hero-grid { grid-template-columns: 1fr; display: flex; flex-direction: column-reverse; }
    .ls-hero-content { padding: 40px 20px; text-align: center; }
    .ls-hero-bleed-img { width: 80%; margin: 0 auto 40px auto; transform: none; margin-left: auto; }
    
    .hero-badges-wrapper { justify-content: center; } /* Center badges on mobile */
}
/* 2. LOGO MARQUEE (Fixed Loop & Bigger) */
.iq-logo-section {
    padding: 80px 0; /* Increased vertical breathing room */
    background: #fff;
    width: 100vw;
    overflow: hidden;
    border-bottom: 1px solid #f5f5f5;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    align-items: center;
    /* Increased gap for larger logos */
    gap: 80px; 
    /* CRITICAL: Forces the track to be as wide as the logos, ignoring screen width */
    width: max-content; 
    /* Slower speed (50s) because the track is now much longer */
    animation: marqueeScroll 50s linear infinite;
    will-change: transform; 
}

.marquee-logo {
    /* CHANGED: Much larger (was 60px) */
    height: 90px; 
    width: auto;
    opacity: 0.6; 
    transition: opacity 0.3s;
}

.marquee-logo:hover { opacity: 1; }

/* Moves exactly half the total length, then snaps back */
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* 3. AWARD SECTION (Editorial Grid) */
.fluid-award-section {
    padding: 160px 0;
    position: relative;
    background: #fff;
}

/* TOP ROW: Headline vs Intro */
.award-header-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Headline gets more space */
    gap: 80px;
    align-items: flex-end; /* Aligns text to bottom of headline */
    margin-bottom: 80px;
}

.huge-text {
    font-size: clamp(50px, 6vw, 90px); /* Massive */
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--dark);
}

.award-lead-col {
    padding-bottom: 10px; /* Aligns visually with headline text baseline */
}

/* DIVIDER LINE */
.award-divider {
    width: 100%;
    height: 1px;
    background: #E5E5E5;
    margin-bottom: 80px;
    transform-origin: left;
    transform: scaleX(1);
    /* Optional: Animate this line width on scroll if you want */
}

/* BOTTOM ROW: The Details (Side by Side) */
.award-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.detail-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.award-subhead {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--dark);
}

.award-p {
    font-size: 19px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .award-header-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .award-details-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .huge-text {
        margin-bottom: 20px;
    }
}

/* --- 2b. WINNER CALLOUT (Clean & Bold) --- */
.winner-callout-wrapper {
    padding: 60px 0 80px 0; /* Breathing room */
    text-align: center;
    background: #fff;
}
.winner-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}
.winner-text .accent { color: var(--accent); }
/* Optional: Small underline accent */
.winner-text::after {
    content: ''; display: block; width: 60px; height: 3px; 
    background: var(--accent); margin: 15px auto 0 auto;
}

/* 3. AIRY BLEED SECTION (Zoom Configuration Fixed) */
.airy-bleed-section {
    position: relative;
    padding: 120px 0;
    /* Keeps the zoom from spilling into the next website section */
    overflow: hidden; 
    background: #fff;
}

.airy-bleed-wrapper {
    display: flex;
    align-items: center;
    min-height: 700px;
    position: relative;
}

.airy-text-col {
    width: 55%;
    padding-left: max(40px, calc((100vw - var(--container-width)) / 2 + 40px));
    padding-right: 40px;
    z-index: 2;
}

.airy-img-col {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 45%; /* Slightly wider to let the tablet breathe */
    height: 100%; /* Use full height of the section for centering */
    
    /* CRITICAL FIXES: */
    overflow: visible; /* Allow zoom to expand outside the box */
    display: flex;     /* Use flexbox to perfectly center the image */
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Ensures image doesn't block clicks if it overlaps text */
}

.airy-bleed-img {
    width: 100%;
    height: auto;      /* Let aspect ratio define the height */
    max-height: 80vh;  /* Prevent it from getting too tall on giant screens */
    
    /* CRITICAL FIX: Shows the whole image (tablet + shadow) without cropping */
    object-fit: contain; 
    
    object-position: center center;
    will-change: transform;
    transition: transform 0.1s linear; 
}

/* Content Typography */
.airy-headline {
    font-size: clamp(40px, 4vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 60px;
    color: var(--dark);
    text-transform: none;
}
.airy-block { margin-bottom: 50px; }
.airy-subhead {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 15px;
    text-transform: none;
    color: var(--dark);
}
.airy-icon { height: 40px; width: auto; }
.airy-p {
    font-size: 19px;
    line-height: 1.6;
    color: #666;
    max-width: 550px;
}


/* 4. NURSE SECTION (Centered Parallax) */
.parallax-center-section {
    position: relative;
    width: 100vw;
    height: 85vh; /* Tall height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 50px;
}

/* Background Image moves slowly behind text */
.parallax-bg-img {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%; /* Extra height for scrubbing */
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.7); /* Darken slightly so white text pops */
    will-change: transform;
}

/* Centered Text */
.parallax-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.parallax-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.parallax-headline {
    font-size: clamp(40px, 5vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
}

.parallax-p {
    font-size: 22px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0 auto;
}

/* IMAGE COLUMN (Left Bleed) */
.human-img-col {
    position: absolute;
    top: 50%;
    left: 0; /* Anchors to left edge */
    transform: translateY(-50%);
    width: 45%; /* Slightly wider image for impact */
    height: 90%; /* Floating vertically */
    overflow: hidden; /* For zoom/parallax effects */
    z-index: 1;
}

.human-img {
    width: 100%;
    height: 120%; /* Taller for parallax */
    object-fit: cover;
    object-position: center right; /* Focus on the nurse */
    will-change: transform;
}

/* TEXT COLUMN (Right Contained) */
.human-text-col {
    width: 50%; /* Right half of screen */
    /* Align text block with the global container logic */
    padding-right: max(40px, calc((100vw - var(--container-width)) / 2 + 40px));
    padding-left: 60px; /* Gap between image and text */
    position: relative;
    z-index: 2;
}

/* Typography */
.human-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0; /* Removed spacing */
    text-transform: none; /* Removed caps */
}

.human-headline {
    font-size: clamp(40px, 4vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 30px;
    color: var(--dark);
}

.human-p {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    max-width: 500px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .human-wrapper { flex-direction: column-reverse; } /* Image on bottom for mobile */
    
    .human-text-col {
        width: 100%;
        padding: 60px 20px;
    }
    
    .human-img-col {
        position: relative;
        top: auto; left: auto; transform: none;
        width: 100%;
        height: 50vh;
    }
}

/* 5. FOUR COLUMN FEATURES (Lines Fixed) */
.fluid-features-section {
    padding: 140px 0;
    background: #fff;
    /* Force top border to show */
    border-top: 1px solid #f5f5f5 !important; 
}

/* INTRO TEXT */
.features-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px auto;
}
.features-head {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
}
.features-lead {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
}

/* GRID SETUP */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0; 
}

/* INDIVIDUAL ITEM */
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0 40px;
    
    /* FIX: Added !important to override the global reset */
    border-right: 1px solid #ccc !important; 
}

/* Remove borders/padding from outer edges */
.feature-item:first-child {
    padding-left: 0;
}
.feature-item:last-child {
    padding-right: 0;
    /* FIX: Added !important to ensure the last line disappears */
    border-right: none !important; 
}

/* ICON & TEXT STYLES */
.feature-icon {
    height: 55px;
    width: auto;
    object-fit: contain;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px);
}

.feature-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--dark);
    min-height: 54px; 
}

.feature-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: 1fr 1fr; /* 2 Columns */
    }
    .feature-item {
        border-right: none !important; /* Remove vertical lines */
        border-bottom: 1px solid #ccc !important; /* Switch to horizontal lines */
        padding: 50px 30px;
    }
    
    /* Remove bottom borders from the last row */
    .feature-item:nth-last-child(-n+2) {
        border-bottom: none !important;
    }
    
    /* Reset edge padding for tablet layout */
    .feature-item:nth-child(odd) { 
        padding-left: 0; 
        border-right: 1px solid #ccc !important; /* Add middle line back */
    } 
    .feature-item:nth-child(even) { 
        padding-right: 0; 
        border-right: none !important; 
    }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .features-intro { margin-bottom: 60px; }
    
    .feature-item { 
        padding: 40px 0 !important; 
        border-right: none !important;
        border-bottom: 1px solid #ccc !important;
    }
    .feature-item:last-child { border-bottom: none !important; }
}

/* BUTTONS */
.iq-btn-black {
    display: inline-block; padding: 20px 45px; background: #111; color: #fff;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px;
    text-decoration: none; transition: background 0.3s;
}
.iq-btn-black:hover { background: var(--accent); }
.iq-btn-link {
    font-size: 18px; font-weight: 700; color: #111; text-decoration: none;
    border-bottom: 2px solid var(--accent) !important; padding-bottom: 5px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .ls-hero-grid { grid-template-columns: 1fr; display: flex; flex-direction: column-reverse; }
    .ls-hero-content { padding: 40px 20px; text-align: center; }
    .ls-hero-bleed-img { transform: none; width: 90%; margin: 0 auto 40px auto; display: block; }

    .award-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .fluid-badges { justify-content: center; }
    
    .fluid-bleed-section { height: 70vh; }
    .fluid-overlay-container { justify-content: center; }
    .fluid-overlay-text { text-align: center; padding: 0 20px; }
    
    .flow-item { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .flow-item.reverse .flow-text { order: 0; }
    .flow-item.reverse .flow-icon-wrapper { order: 0; justify-content: center; }
    .flow-icon-wrapper { justify-content: center; }
    .flow-desc { margin: 0 auto; }
    
    .half-bleed-grid { display: flex; flex-direction: column-reverse; }
    .half-bleed-text-col { padding: 60px 20px; text-align: center; }
    .half-bleed-img { width: 100%; margin: 0 auto; }
}

/* 6. VEEVA SPLIT STICKY SECTION */
.veeva-split-section {
    display: flex;
    width: 100%;
    position: relative;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
}

/* LEFT COLUMN: Sticky Image (Bleeds Left) */
.veeva-split-img-col {
    width: 45%; /* Slightly less than half */
    height: 100vh; /* Full viewport height creates the sticky window */
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns image to the left edge */
    overflow: hidden;
}

.veeva-split-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Optional shadow to separate image from background */
    box-shadow: 10px 0 30px rgba(0,0,0,0.05); 
}

/* RIGHT COLUMN: Scrolling Content */
.veeva-split-content-col {
    width: 55%;
    /* Large vertical padding to ensure comfortable scrolling */
    padding: 140px 80px 140px 60px; 
    box-sizing: border-box;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Content Width Limiter (Keeps text readable on huge screens) */
.veeva-content-wrapper {
    max-width: 650px; 
}

/* CONTENT BLOCKS (Timeline Layout) */
.veeva-detail-block {
    position: relative;
    padding-left: 60px;
    padding-bottom: 60px;
    
    /* THE GRAY TRACK (Static) */
    border-left: 2px solid #e5e5e5 !important;
}

/* Remove tail from last item */
.veeva-detail-block:last-child {
    padding-bottom: 0;
    border-left-color: transparent !important; 
}

/* THE ORANGE FILLER LINE (Controlled by JS) */
.veeva-line-fill {
    position: absolute;
    left: -2px; /* Pull it back to cover the border exactly */
    top: 0;
    width: 2px;
    background-color: var(--accent);
    height: 0%; /* JS will change this from 0% to 100% */
    z-index: 1; /* Sit on top of the gray border */
    max-height: 100%;
}

/* HEADLINE & ICON */
.veeva-block-head {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
    display: block; 
    position: relative;
}

/* THE ICON */
.veeva-block-head .airy-icon {
    position: absolute;
    /* Adjusted for alignment */
    left: -82px; 
    top: -5px;   
    
    background: #fff;
    padding: 10px 0;  
    box-sizing: content-box; 
    height: 40px; 
    width: auto;
    z-index: 5; /* Must sit on top of the colored line */
}

/* Highlight icon when the line reaches it (Optional) */
.veeva-detail-block.filled .airy-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.veeva-block-p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

/* MOBILE */
@media (max-width: 768px) {
    .veeva-detail-block {
        padding-left: 0;
        border-left: none !important;
        padding-bottom: 50px;
    }
    .veeva-line-fill { display: none; } /* Hide on mobile */
    .veeva-block-head .airy-icon {
        position: relative;
        left: auto; top: auto;
        display: block;
        margin-bottom: 15px;
        padding: 0;
    }
}
.parallax-content-veeva {
    position: relative;
    z-index: 10;
    max-width: 1000px; 
    padding: 0 20px;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0,0,0,0.5);
    
    /* This now works perfectly to move the static text down */
    margin-top: 80px; 
}

.parallax-center-section-veeva {
    position: relative;
    width: 100vw;
    height: 75vh; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px;
}
.veeva-hero-img-col {
    position: relative;
    width: 60%;
    display: flex;
    justify-content: flex-start; /* Preserved Left Align */
    align-items: center;
}
.veeva-hero-content {
    padding-left: max(40px, calc((100vw - var(--container-width)) / 2 + 40px));
    padding-right: 120px; 
    z-index: 2;
}

/* --- HOMEPAGE SERVICES SPLIT (FINAL: Overlap + Left Bleed + Clean Lists) --- */

.home-services-split {
    width: 100%;
    background: #fff;
    position: relative;
    
    /* CRITICAL: Allows the image to hang out of the box */
    overflow: visible; 
    z-index: 10; 
}

.h-services-grid {
    display: grid;
    /* 55% Image | 45% Text */
    grid-template-columns: 55% 45%;
    min-height: 800px;
    align-items: stretch; /* Stretches height so we can push image down */
}

/* LEFT COLUMN: Image Bleed & Overlap */
.h-services-img-col {
    position: relative;
    padding: 0;
    
    /* 1. MAKE IT WIDER (To compensate for moving left) */
    width: 105%; 
    
    /* 2. MOVE IT LEFT (Negative margin pulls it off screen) */
    margin-left: -9%; 
    
    /* 3. MAKE IT TALLER & PUSH DOWN (Overlap) */
    height: 115%; 
    margin-bottom: -100px; /* This creates the overlap on the gray section */
    
    /* 4. Shadow to separate from gray background */
    box-shadow: 20px 20px 60px rgba(0,0,0,0.15);
}

.h-services-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center right; 
}

/* RIGHT COLUMN: Content */
.h-services-content-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Adjusted padding to fit the new grid size */
    padding: 100px 80px 100px 60px;
}

.h-services-inner {
    max-width: 650px;
}

/* --- LIST & TYPOGRAPHY STYLES (Clean Version) --- */
.services-wrapper-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 20px;
}

.service-group {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-group h4 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    padding-top: 25px;
    text-transform: none;
    line-height: 1.2;
}

.expert-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.expert-list li {
    font-size: 17px;
    color: #555;
    font-weight: 500;
    padding: 0px 0;
    transition: all 0.2s ease;
    cursor: default;
}

.expert-list li:hover {
    padding-left: 10px;
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.expert-list li::before {
    content: none;
}

.expert-link {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    text-transform: none;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.expert-link:hover {
    color: var(--accent);
    gap: 15px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .h-services-grid { grid-template-columns: 1fr; display: block; }
    
    .h-services-img-col { 
        width: 100%; 
        height: 500px; 
        margin-left: 0; /* Reset left move */
        margin-bottom: 0; /* Reset overlap */
        box-shadow: none;
    }
    
    .h-services-content-col { padding: 60px 30px; }
    
    .services-wrapper-split { gap: 40px; }
}

@media (max-width: 600px) {
    .services-wrapper-split { grid-template-columns: 1fr; }
}
/* --- FINAL CTA SECTION (Dark & Bold) --- */
.final-cta-section {
    padding: 140px 0;
    background-color: #151515; /* Dark background for contrast */
    color: #FFFFFF;
    text-align: center; /* Centered layout */
}

.final-cta-centered {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* BIG TYPOGRAPHY */
.cta-headline {
    font-size: clamp(48px, 6vw, 80px); /* Massive, responsive text */
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: 30px;
    letter-spacing: -2px; /* Tight, editorial tracking */
}

/* BODY COPY */
.cta-subtext {
    font-size: 20px;
    line-height: 1.6;
    color: #999; /* Muted gray for hierarchy */
    margin-bottom: 50px;
    max-width: 600px;
}

/* ACTIONS ROW */
.final-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* SPECIAL WHITE BUTTON FOR DARK BG */
.btn-white {
    background-color: #FFF;
    color: #111;
    border: 2px solid #FFF;
}
.btn-white:hover {
    background-color: transparent;
    color: #FFF;
}

/* EMAIL LINK STYLING (Dark Mode version) */
.final-direct-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.final-or {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
}

.final-direct-link a {
    font-size: 18px;
    font-weight: 700;
    color: #FFF; /* White text */
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3); /* Subtle underline */
    transition: all 0.3s ease;
}

.final-direct-link a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- CINE BLOCK CROSS-LINKS --- */

.cine-cross-link {
    margin-top: 30px;
    padding-top: 20px;
    
    /* FIX: Use the Hex code directly instead of the variable */
    border-top: 1px solid #F05A28; /* <--- Change this code to your exact orange */
    
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* The Question Text */
.c-link-text {
    font-size: 14px;
    font-weight: 500;
    color: #888;          /* Muted color to keep it secondary */
    line-height: 1.4;
}

/* The Link with Arrow */
.c-link-arrow {
    font-size: 14px;
    font-weight: 700;     /* Bold to make it clickable */
    color: #111;
    text-decoration: none;
    text-transform: uppercase; /* Optional: adds a bit of "button" feel */
    letter-spacing: 0.5px;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.c-link-arrow:hover {
    color: var(--accent);
    gap: 10px; /* Slide arrow on hover */
}
/* --- SCROLL ASSEMBLY STYLES (Updated) --- */

.parallax-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

/* 1. BASE: NOW AT THE VERY BACK */
.imac-base {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1; /* Lowest number = Furthest back */
}

/* 2. FLOATING SCREENS: FRONT & HIDDEN INITIALLY */
.screen-top, .screen-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: transform, opacity; 
    
    /* START INVISIBLE */
    opacity: 0; 
    transition: opacity 0.1s linear; /* Smooth fade */
}

.screen-top {
    z-index: 2; /* In front of base */
}

.screen-bottom {
    z-index: 3; /* In front of top screen */
}
/* =========================================
   Social Media Page Animations
   ========================================= */

/* The Wrapper */
.scroll-sync-wrapper {
    overflow: hidden; /* Ensures no horizontal scrollbar appears during movement */
}

/* The Image */
.scroll-sync-wrapper img {
    will-change: transform; 
    transform: translateX(80px); /* Match the 'startOffset' in JS */
    transition: transform 0.1s linear; 
}
/* =========================================
   Blog Post Styling
   ========================================= */

.blog-post-wrapper {
    padding-top: 140px; /* Clear fixed header */
    padding-bottom: 100px;
}

/* --- 1. Header Section --- */
.blog-header {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.blog-meta {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 20px;
}

.blog-category {
    color: #ff5a00; /* Brand Orange */
    margin-right: 15px;
}

.blog-title {
    font-size: 78px;
    line-height: 1.1;
    font-weight: 800;
    max-width: 900px;
    margin-bottom: 15px;
    color: #111;
}

.blog-subtitle {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 400;
    color: #666;
    max-width: 800px;
}

/* --- 2. Content Layout --- */
.content-narrow {
    max-width: 740px; 
    width: 100%;     
    margin-left: 0; 
    padding-left: 0;
}



/* Typography */
.blog-content p {
    font-size: 19px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 25px;
}

.blog-lead {
    font-size: 22px;
    font-weight: 500;
    color: #111;
    margin-bottom: 40px;
}

.blog-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #000;
}

.blog-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 50px 0;
    width: 100px; /* Short decorative line */
}

/* Lists */
.blog-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.blog-content li {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 10px;
    list-style-type: disc; /* Standard bullets for clarity */
    color: #444;
}

.blog-content li::marker {
    color: #ff5a00; /* Orange bullets */
}

/* Callout Box (Final Thought) */
.blog-callout {
    background: #f9f9f9;
    border-left: 4px solid #ff5a00;
    padding: 30px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.blog-callout h4 {
    margin-top: 0;
    font-size: 16px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.05em;
}

/* Sources Section */
.article-sources {
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #888;
}

.article-sources h5 {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #aaa;
}

.article-sources ul {
    list-style: none;
    padding: 0;
}

.article-sources li {
    font-size: 13px;
    margin-bottom: 5px;
    list-style-type: none;
}

.article-sources a {
    color: #888;
    text-decoration: underline;
}

.article-sources a:hover {
    color: #ff5a00;
}

/* Navigation Footer */
.blog-footer-nav {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.back-link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #ff5a00;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .blog-title {
        font-size: 32px;
    }
    .blog-subtitle {
        font-size: 18px;
    }
    .blog-content p {
        font-size: 17px;
    }
}
/* =========================================
   Blog Visual Enhancements
   ========================================= */

.blog-pullquote {
    font-size: 32px;        /* Large, impact text */
    line-height: 1.3;
    font-weight: 800;       /* Extra Bold */
    color: #111;            /* Dark text */
    
    /* The Visual Container */
    margin: 60px 0;         /* Big spacing above/below */
    padding: 40px 0;        /* Internal breathing room */
    border-top: 4px solid #ff5a00;    /* Brand Orange Line Top */
    border-bottom: 1px solid #eee;    /* Subtle Line Bottom */
    
    /* Alignment */
    text-align: left;       /* Keeps editorial feel */
    max-width: 100%;        /* Stays within content-narrow */
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .blog-pullquote {
        font-size: 24px;
        margin: 40px 0;
    }
}
/* =========================================
   Visual Interest & Breakouts
   ========================================= */

/* 1. BACKGROUND TEXTURE 
   Adds a subtle dot pattern to the empty space on the right 
   so it doesn't feel "empty", just "spacious". */
.blog-content {
    position: relative;
    /* CSS Radial Gradient to mimic halftone dots */
    background-image: radial-gradient(#e5e5e5 1px, transparent 1px);
    background-size: 20px 20px; /* Space between dots */
    background-position: center right; /* Focus dots on the right */
    background-repeat: repeat-y; /* Repeat down the page */
}

/* Ensure text stays readable by giving it a solid background (optional) 
   OR just let the dots sit behind. Since dots are light grey, 
   text is readable on top. */


/* 2. THE HANGING STAT (The "Breakout") */
.stat-breakout-right {
    background: #111; /* Dark Contrast Box */
    color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid #ff5a00;
}

.stat-big {
    display: block;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: #ff5a00;
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 16px;
    line-height: 1.4;
    display: block;
    opacity: 0.9;
}

/* --- THE MAGIC: DESKTOP ONLY --- */
@media (min-width: 1200px) {
    .stat-breakout-right {
        float: right;       /* Allows text to wrap around it if needed */
        width: 320px;       /* Fixed width for the sidebar */
        
        /* Pushes it into the empty right margin */
        margin-right: -380px; 
        
        /* Pulls it up slightly to align with the header */
        margin-top: 10px;   
        
        /* Adds a shadow to make it pop */
        box-shadow: -20px 20px 0px rgba(255, 90, 0, 0.1); 
    }
}

/* TABLET/MOBILE: Keep it inside the flow */
@media (max-width: 1199px) {
    .stat-breakout-right {
        margin-right: 0;
        float: none;
        width: 100%;
        margin-top: 40px;
    }
}
/* =========================================
   Insights Page Typography
   ========================================= */
.sh-title {
    font-size: 80px; /* Bigger impact */
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.sh-subtitle {
    font-size: 28px;
    color: #666;
    max-width: 700px;
    margin-top: 0;
    font-weight: 300;
}

/* =========================================
   The "Hero" Featured Post
   ========================================= */
.featured-insight {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Image wider than text */
    gap: 60px;
    margin-bottom: 120px; /* Big space before the rest of the grid */
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 80px;
}

.featured-image-wrapper {
    aspect-ratio: 4/3; /* Slightly more squat ratio for hero */
    overflow: hidden;
    background: #111;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smooth agency ease */
    opacity: 0.9; /* Slight tint makes white text pop if needed, or just adds mood */
}

.featured-content {
    padding-right: 40px;
}

.featured-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

.featured-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 35px;
    max-width: 500px;
}

/* Hover Effects for Featured */
.featured-insight:hover .featured-img {
    transform: scale(1.03);
    opacity: 1;
}

.featured-insight:hover .featured-title {
    color: #ff5a00;
}

/* =========================================
   Standard Insights Grid
   ========================================= */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    row-gap: 80px;
}

.insight-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 3/2; /* Standard photographic ratio */
    overflow: hidden;
    background: #f4f4f4;
    margin-bottom: 30px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(100%); /* Start black and white for sophistication */
}

/* Card Typography */
.card-date {
    font-size: 13px;
    text-transform: uppercase;
    color: #ff5a00; /* Accent color for meta */
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
}

.card-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
    margin-bottom: 25px;
    margin-top: 0;
    transition: color 0.3s ease;
}

/* Common Link Wrapper */
.card-link-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
}

/* Shared Arrow Style */
.card-arrow {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Hover Effects for Standard Cards */
.insight-card:hover .card-img {
    transform: scale(1.03);
    filter: grayscale(0%); /* Bring back color on hover */
}

.insight-card:hover .card-title {
    color: #ff5a00;
}

.insight-card:hover .card-arrow {
    transform: translateX(10px); /* Move arrow right */
    color: #ff5a00;
}


/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .sh-title { font-size: 60px; }
    
    /* Stack the hero post */
    .featured-insight {
        grid-template-columns: 1fr;
        gap: 30px;
        border: none;
    }
    .featured-image-wrapper { aspect-ratio: 16/9; }
    .featured-content { padding-right: 0; }
    .featured-title { font-size: 32px; }
    
    /* Switch grid to 2 columns */
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        row-gap: 60px;
    }
}

@media (max-width: 768px) {
    .sh-title { font-size: 48px; }
    .sh-subtitle { font-size: 20px; }
    
    /* Stack everything */
    .insights-grid { grid-template-columns: 1fr; }
    .card-title { font-size: 22px; }
}
/* =========================================
   Typography
   ========================================= */
.sh-title {
    font-size: 90px;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 20px;
    color: #111;
}

.sh-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #666;
    max-width: 600px;
    margin-top: 0;
}

/* =========================================
   Featured Hero (Top)
   ========================================= */
.featured-insight {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Image is dominant */
    gap: 80px;
    margin-bottom: 140px; /* Huge space to separate from list */
    align-items: center;
}

.featured-image-wrapper {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.6s ease;
}

.featured-insight:hover .featured-img {
    transform: scale(1.02);
    opacity: 1;
}

.featured-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    margin-top: 20px;
}

.featured-excerpt {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* =========================================
   The Text-Only Grid (Editorial Style)
   ========================================= */
.insights-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns */
    gap: 60px;
    row-gap: 80px; /* More vertical space */
    border-top: 2px solid #111; /* One heavy master line at the top */
    padding-top: 80px;
}

.text-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 200px; /* Ensures visual balance */
    border-top: 1px solid #ddd; /* Individual delicate lines */
    padding-top: 20px;
    transition: border-color 0.3s ease;
}

/* Hover: Line turns orange */
.text-card:hover {
    border-color: #ff5a00;
}

.text-card-date {
    font-size: 14px;
    font-family: monospace; /* Technical feel */
    color: #999;
    margin-bottom: 15px;
    display: block;
}

.text-card-title {
    font-size: 32px; /* Large and bold */
    font-weight: 700;
    line-height: 1.2;
    color: #111;
    margin-top: 0;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.text-card:hover .text-card-title {
    color: #ff5a00;
}

.text-card-arrow {
    margin-top: auto; /* Pushes to bottom */
    font-size: 24px;
    color: #111;
    transition: transform 0.3s ease;
}

.text-card:hover .text-card-arrow {
    transform: translateX(15px);
    color: #ff5a00;
}

/* Full clickable area */
.card-link-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .featured-insight {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sh-title { font-size: 60px; }
    
    .insights-list-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cols on tablet */
    }
}

@media (max-width: 768px) {
    .insights-list-grid {
        grid-template-columns: 1fr; /* 1 col on mobile */
        gap: 40px;
    }
    .text-card-title { font-size: 26px; }
}
/* =========================================
   Post Navigation (Top & Bottom)
   ========================================= */

/* 1. Top "Escape Hatch" Link */
.nav-back-top {
    display: inline-block;
    margin-bottom: 30px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-back-top:hover {
    color: #ff5a00;
    transform: translateX(-5px); /* Subtle slide left */
}

/* 2. Bottom Navigation Area */
.blog-footer-nav {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.nav-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* The Large Links */
.back-link-large, .next-link-large {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: opacity 0.3s ease;
}

.back-link-large:hover, .next-link-large:hover {
    opacity: 0.6; /* Simple fade effect */
}

/* Labels (Tiny text) */
.nav-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 600;
}

/* Titles (Big text) */
.nav-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

/* Right align the "Next" button */
.next-link-large {
    text-align: right;
}

/* Mobile: Stack them */
@media (max-width: 768px) {
    .nav-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    .next-link-large {
        text-align: left; /* Align left on mobile for consistency */
    }
}
/* =========================================
   Full Screen Lightbox (White/Blur Theme)
   ========================================= */

.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* 1. White Background with slight transparency */
    background: rgba(255, 255, 255, 0.92); 
    
    /* 2. The Blur Effect (Frosted Glass) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari Support */
    
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    
    /* 3. Layout: Align Left */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Push content to left */
    padding-left: 8vw; /* Variable spacing from left edge */
    
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    /* Limit width so it doesn't hit the right side close button */
    max-width: 80vw; 
    max-height: 85vh;
    object-fit: contain;
    
    /* Softer shadow for light background */
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); 
    border-radius: 2px;
    
    transform: scale(0.98) translateX(-20px); /* Start slightly left */
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.lightbox-overlay.active img {
    transform: scale(1) translateX(0);
}

/* Close Button (Dark color for white bg) */
.lb-close-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #111; /* Dark text */
    font-size: 50px;
    font-weight: 300;
    line-height: 0.5;
    cursor: pointer;
    opacity: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lb-close-btn:hover {
    color: #ff5a00;
    transform: rotate(90deg);
}

/* Mobile: Center it again because left-align looks broken on phones */
@media (max-width: 768px) {
    .lightbox-overlay {
        justify-content: center;
        padding-left: 0;
        padding: 20px;
    }
    .lightbox-overlay img {
        max-width: 100%;
    }
}
/* Thumbnail Grid Container */
.project-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 30px; /* Space from tags */
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Individual Thumbnail */
.p-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5; /* Tastefully dimmed */
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.p-thumb:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.p-thumb.active {
    opacity: 1;
    border-color: #ff5a00; /* Brand accent color */
    transform: translateY(0);
}

/* Ensure Main Image transitions smoothly */
.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* FIX: Combine both transitions so neither one breaks */
    /* 1. Transform (for the smooth hover scale) */
    /* 2. Opacity (for the thumbnail swap fade) */
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
}
/* Social Icons Container */
.footer-socials {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 15px;
    padding-bottom: 5px; /* Aligns visually with the last line of text */
}

/* Icons */
.social-link {
    display: block;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-icon {
    width: 100%;
    height: 100%;
    fill: #fff; /* White */
    transition: fill 0.3s ease;
}

.social-link:hover .social-icon {
    fill: #ff5a00; /* Orange Hover */
}

.social-link:hover {
    transform: translateY(-2px);
}

/* Mobile: Stack them below the text instead of floating right */
@media (max-width: 768px) {
    .footer-socials {
        position: relative;
        justify-content: center;
        margin-top: 30px;
        right: auto;
        bottom: auto;
    }
}