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

body.bm-loading .bm-panel,
body.bm-loading #bm-logo,
body.bm-loading #bm-tagline {
    opacity: 0 !important;
}

body.bm-ready .bm-panel,
body.bm-ready #bm-logo,
body.bm-ready #bm-tagline {
    transition: opacity 0.35s ease;
}

html {
    overflow-x: hidden;
}

body {
    background: #fff;
    overflow-x: hidden;
}

.container-fluid {
    padding: 0 4.2%;
}

.container-fluid .container-fluid {
    padding: 0 !important;
}

#bm-track {
    position: relative;
    width: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

.bm-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform, opacity, box-shadow;
}

#bm-s1 {
    background: #ffffff;
    z-index: 10;
}

#bm-s2 {
    z-index: 20;
    border-radius: 0;
}

#bm-s3 {
    z-index: 30;
    border-radius: 0;
}

#bm-s4 {
    background: #fff;
    z-index: 40;
    border-radius: 0;
}

#bm-s5 {
    background: #fff;
    z-index: 50;
    border-radius: 0;
}

#bm-s6 {
    background: #fff;
    z-index: 60;
    border-radius: 0;
}

#bm-s7 {
    background: #ffffff;
    z-index: 70;
    border-radius: 0;
}

#bm-logo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    transform-origin: top left;
    will-change: transform, width;
}

#bm-logo img {
    width: 100%;
    height: auto;
    display: block;
}

#bm-tagline {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    pointer-events: none;
    transform-origin: top left;
    will-change: transform, opacity;
    font-weight: 700;
    color: #111;
    padding: 0 0.15em;
    line-height: 1.1;
    font-family: var(--font-body, sans-serif) !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    opacity: 0;
}

/* ── Dots — JS-controlled sequential reveal, no bounce ── */
.bm-dots span {
    display: inline-block;
}

/* Only the tagline dots start hidden — JS animates them in */
#bm-tagline .bm-dots span {
    opacity: 0;
}

.bm-list-wrap {
    width: 100%;
    padding: 60px;
}

#bm-s3-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#bm-s3-list .list-line {
    font-size: clamp(28px, 5vw, 88px);
    font-weight: 700;
    color: #111;
    line-height: 1.1;
    padding: 0 0.15em;
    display: block;
    overflow: hidden;
    font-family: var(--font-body, sans-serif) !important;
    margin-bottom: 0.15em;
}

.tagline-anchor {
    visibility: hidden;
    pointer-events: none;
    font-size: clamp(28px, 5vw, 88px) !important;
    line-height: 1.1 !important;
    margin-bottom: 0.15em;
    overflow: visible !important;
}

/* ── S3 span mask — clip reveal ─────────────────────── */
#bm-s3-list .list-line .span-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1;
    padding-bottom: 0.1em;
}

#bm-s3-list .list-line .span-mask span {
    display: inline-block;
    line-height: 1;
    opacity: 0;
    transform: translateY(105%);
}

/* ── Last line highlight — left-to-right reveal ──────── */
#bm-s3-list .list-line.line-highlight {
    display: table;
    color: #fff;
    padding: 0 0.15em;
    border-radius: 4px;
    background: linear-gradient(#111, #111) no-repeat left center / 0% 100%;
    animation: bm-highlight-reveal 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* @keyframes bm-highlight-reveal {
    to {
        background-size: 100% 100%;
    }
} */

#bm-s3-list .list-line.line-highlight {
    display: table;
    color: #fff;
    padding: 0 0.15em;
    border-radius: 4px;
    background: #111;
}

.motion-work-list .work-img {
    transform: translateY(0);
}

.modal-content {
    border: 0 !important
}

.featured-wrapper .latest-work {
    padding: 0 !important;
}

body:has(.modal.fade.show) #bm-logo {
    opacity: 0;
}

.modal.fade.show {
    overflow: hidden;
}

body.modal-open .bm-panel {
    pointer-events: none;
}

body.modal-open .modal,
body.modal-open .modal-backdrop {
    pointer-events: all;
}

#bm-s7 {
    display: flex;
    align-items: center;
    justify-content: center;
}

#bm-contact-links {
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-link {
    display: block;
    font-size: clamp(18px, 3.5vw, 56px);
    font-weight: 700;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 6px;
    line-height: 1.5;
    font-family: var(--font-body, inherit);
    transition: opacity 0.2s;
}

.contact-link:hover {
    opacity: 0.5;
}

.about-heading-wrapper {
    margin-bottom: 1.25rem;
}

.about-heading-wrapper h5 {
    font-size: clamp(20px, 3.5vw, 56px);
    line-height: 1.2;
}

.about-section-content p {
    font-size: clamp(14px, 1.3vw, 24px);
    line-height: 1.3;
    padding: 0;
    margin-bottom: 12px;
}

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

.about-image-wrapper {
    align-items: stretch;
}

.side-images {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.side-images img {
    flex: 1;
    min-height: 0;
}

.side-images img:first-child {
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .about-content-image-wrapper .about-left-wrapper {
        width: 60.33333333%;
    }

    .about-content-image-wrapper .about-right-wrapper {
        width: 39.66666667%;
    }

    .motion-work-list .work-img {
        height: 9rem !important;
    }
}

@media (min-width: 1440px) {
    .about-content-image-wrapper .about-left-wrapper {
        width: 62.33333333%;
    }

    .about-content-image-wrapper .about-right-wrapper {
        width: 37.66666667%;
    }

    .about-heading-wrapper h5 {
        font-size: 46px !important;
    }

    .motion-work-list .work-img {
        height: 10rem !important;
    }
}

@media (min-width: 1600px) {
    .motion-work-list .work-img {
        height: 12rem !important;
    }
}

@media (min-width: 1800px) {
    .motion-work-list .work-img {
        height: 14rem !important;
    }
}

@media (min-width: 2000px) {
    .motion-work-list .work-img {
        height: 18rem !important;
    }
}

@media (max-width: 1800px) and (min-width: 1024px) {
    .modal .modal-body .video iframe {
        height: 80vh !important;
    }
}

@media (max-width: 1024px) {
    .bm-panel-scroll {
        overflow-y: auto !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        align-items: flex-start !important;
    }

    .bm-panel-scroll#bm-s3 {
        align-items: center !important;
    }

    .bm-panel-scroll::-webkit-scrollbar {
        display: none;
    }

    .bm-list-wrap {
        padding: 40px;
    }

    #bm-s3-list .list-line,
    .tagline-anchor {
        font-size: clamp(22px, 4.5vw, 60px) !important;
        margin-bottom: 0.12em;
    }

    .about-heading-wrapper h5 {
        font-size: clamp(18px, 3vw, 40px);
    }

    .about-section-content p {
        font-size: clamp(13px, 1.5vw, 18px);
        margin-bottom: 10px;
    }

    #bm-s6 .col-lg-7,
    #bm-s6 .col-lg-5 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    #bm-s6 .about-right-wrapper {
        display: block !important;
        margin-top: 1.5rem;
    }

    .motion-work-list .work-img {
        height: 10rem;
    }

    .container-fluid.featured-wrapper {
        padding-top: 5rem !important;
    }
}

@media (max-width: 768px) {
    .bm-list-wrap {
        padding: 24px 20px;
    }

    #bm-s3-list .list-line,
    .tagline-anchor {
        font-size: clamp(18px, 6vw, 40px) !important;
        margin-bottom: 0.1em;
    }

    .contact-link {
        font-size: clamp(18px, 5vw, 36px);
    }

    .about-heading-wrapper h5 {
        font-size: clamp(14px, 4vw, 24px);
        line-height: 1.2;
    }

    .about-section-content p {
        font-size: clamp(12px, 3.5vw, 16px);
        margin-bottom: 8px;
    }

    .about-heading-wrapper {
        margin-bottom: 0.75rem;
    }

    .side-images img:first-child {
        margin-bottom: 0.5rem;
    }

    .container-fluid.about-content-image-wrapper {
        padding-top: 150px;
        padding-bottom: 40px !important;
    }

    .container-fluid.featured-wrapper {
        padding: 0 4.2% !important;
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }

    .motion-work-list.list-unstyled {
        justify-content: space-between;
    }

    .side-images {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .bm-list-wrap {
        padding: 16px;
    }

    #bm-s3-list .list-line,
    .tagline-anchor {
        font-size: clamp(16px, 7vw, 32px) !important;
    }

    .contact-link {
        font-size: clamp(16px, 6vw, 28px);
    }

    .about-image-wrapper .col-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .container-fluid.about-content-image-wrapper {
        padding-top: 120px;
    }
}

@media (max-height: 500px) {
    .bm-list-wrap {
        padding: 12px 20px;
    }

    #bm-s3-list .list-line,
    .tagline-anchor {
        font-size: clamp(12px, 3vh, 28px) !important;
        margin-bottom: 0.05em;
    }

    .about-section-content p {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .about-heading-wrapper h5 {
        font-size: 14px;
    }
}