.hero {
    padding-top: 170px;
    overflow: hidden;
    max-width: 100%;
}

.hero .container-flexible {
    --container-flexible-a: 0.55;
    --container-flexible-b: 0.45;
}

.hero .signature {
    padding-bottom: 40px;
}

.hero .signature img {
    width: 170px;
}

.hero .signature a.alt {
    font-size: 13px;
    text-decoration: none;
}

section.hero p {
    padding-top: 10px;
    font-size: 19px;
}

.hero .images {
    position: relative;
    margin-top: 120px;
}


.hero .images .suitcase {
    position: absolute;
    width: 600px;
    height: auto;
    top: 0;
    right: 20px
}


@media (max-width: 1299px) {
    .hero .container-flexible>div:first-child {
        order: 3
    }

    section.hero {
        padding-top: 0;
    }

    .hero .images {
        margin-top: 0px;
    }

}

section.logos {
    padding: 0px
}

.design-services .container-flexible {
    --container-flexible-a: 0.5;
    --container-flexible-b: 0.5;
}

.seo-services .container-flexible {
    --container-flexible-a: 0.45;
    --container-flexible-b: 0.55;
}

.seo-services .property-list {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
}


.feature-split .container-flexible {
    --container-flexible-a: 0.5;
    --container-flexible-b: 0.5;
}

.feature-split .title-h3 {
    margin-bottom: 30px;
}

.feature-split .bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-image: url('../../images/agency_baggage.jpg');
    background-size: cover;
    background-position: center left;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.feature-split .c2 {
    position: relative;
    z-index: 2;
}

section.design-and-built {
    padding-bottom: 0;
}

.design-and-built .title-small {
    color: var(--color-ink)
}

.design-and-built .title-smaller {
    margin-top: 25px;
    margin-bottom: 10px;
}

.design-and-built .btn {
    margin-top: 40px
}

.final-cta {

    background-color: var(--color-bg3);
    color: #fff;
}

.final-cta .btn.white {
    margin: 40px 0 20px 0
}


.design-services .parallax-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.design-services .imac-base {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

.design-services .screen-top,
.design-services .screen-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: transform, opacity;

    opacity: 0;
    transition: opacity 0.1s linear;
}

.design-services .screen-top {
    z-index: 2;
}

.design-services .screen-bottom {
    z-index: 3;
}

.design-services .services .title-h6 {
    margin: 20px 0px;
    padding: 20px 0px;
    border-top: 2px solid var(--color-ink-soft);
    border-bottom: 1px solid var(--color-ink-soft);
}

.design-services .services ul {
    padding: 0;
    list-style: none;
}

.design-services .services ul li {
    font-size: 17px;
    padding-bottom: 8px;
}

/* OTHER PAGE */

#portfolio .weight-400 {
    font-size: 16px
}

/* PORTFOLIO */
#portfolio {
    overflow: hidden;
    max-width: 100%;

}

.portfolio-section {
    padding: 100px 0 80px 0;
}

.portfolio-header {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

@media (max-width: 1299px) {
    .portfolio-section {
        padding-top: 70px;
    }

    .portfolio-header {
        display: block;
        margin-bottom: 38px;
    }

    .portfolio-header h2 {
        max-width: 100%;
        margin-bottom: 24px;
        font-size: 40px;
        line-height: 1.12;
        letter-spacing: -0.015em;
    }

    .portfolio-header a {
        display: inline-block;
        max-width: 270px;
        font-size: 19px;
        line-height: 1.28;
    }
}

.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;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.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 */
.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;
}


/* =========================================
   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: 1299px) {
    .lightbox-overlay {
        justify-content: center;
        padding-left: 0;
        padding: 20px;
    }

    .lightbox-overlay img {
        max-width: 100%;
    }

    .acc-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1) skewX(0deg);
        transition: all 0.6s ease;
    }
}


/* =========================================
   Homepage Lightbox - Centered / White / Blur
   ========================================= */

/* 1. The Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    cursor: default;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    /* This centers the container frame */
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 2. The Container Frame */
.lightbox-container {
    width: 100%;
    height: 100%;
    position: relative;
    /* Remove padding to let flexbox handle spacing */
    padding: 0;
    box-sizing: border-box;
}

/* 3. Close Button (Top Right) */
.lb-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 60px;
    line-height: 0.5;
    color: #000;
    cursor: pointer;
    z-index: 200;
    transition: transform 0.2s;
}

.lb-close-btn:hover {
    transform: rotate(90deg);
}

/* 4. Internal Layout - The Centering Engine */
.lb-content-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;

    /* This creates the "Dead Center" effect */
    justify-content: center;
    align-items: center;
}

/* 5. Header (Title) */
.lb-main-view {
    /* flex-grow: 0 ensures it doesn't stretch, it just sits in the middle */
    flex-grow: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    /* Space between Image and Thumbs */
}

.lb-text-header {
    text-align: center;
    margin-bottom: 20px;
}

.lb-cat {
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 8px;
}

.lb-title {
    margin: 0;
    font-size: 36px;
    /* Bigger title */
    color: #000;
    font-weight: 800;
}

/* 6. Main Image */
.lb-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Limit height so it doesn't push thumbs off screen */
    max-height: 65vh;
}

#lb-main-image {
    max-width: 90%;
    /* Keep some breathing room on sides */
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    /* Nice floating shadow */
    border-radius: 4px;
}

/* 7. Thumbnails (Gallery) */
.lb-sidebar {
    flex-grow: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.lb-side-label {
    display: none;
}

.lb-thumb-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.lb-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.4;
    filter: grayscale(100%);
    /* Elegant touch: BW thumbs until hover */
    transition: all 0.3s ease;
}

.lb-thumb:hover,
.lb-thumb.active-thumb {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Mobile Tweak */
@media (max-width: 1299px) {
    .lb-title {
        font-size: 24px;
    }

    .lb-close-btn {
        top: 15px;
        right: 15px;
        font-size: 40px;
    }

    #lb-main-image {
        max-width: 95%;
        max-height: 50vh;
    }

    .lb-thumb {
        width: 50px;
        height: 50px;
    }
}




/* MOBILE BREAKPOINT */
@media (max-width: 1299px) {

    .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 {
        margin: 0;
    }

    .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: 22px;
    }
}

@media (max-width: 1299px) {
    .marquee-track {
        gap: 50px;
    }

    .marquee-track img {
        height: 100px;
        width: auto;
    }

    .logo-ticker-section {
        padding: 0px 0px 40px 0px;
    }
}