.mask-wrapper {
    width: 100%;
    /* height: 100vh; ← 移除這個固定高度 */
    min-height: 100svh;
    /* 保證至少滿版，不影響 ScrollTrigger 計算 */
    position: relative;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;

    --maskSize: 1000000px;

    -webkit-mask-image: url('/wp-content/uploads/2025/07/CHI-SIAMO.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: var(--maskSize);

    mask-image: url('/wp-content/uploads/2025/07/CHI-SIAMO.svg');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: var(--maskSize);
}

@media (max-width: 1024px) {

    /*   .masked-content::before {
    position: absolute;
    inset: 0;
    background: url('/wp-content/uploads/2025/09/home-page-hero-min.jpg') center/cover no-repeat;
    content: '';
    z-index: 0;
  } */

    .masked-content>.container {
        position: relative;
        z-index: 1;
        /* 文字要在背景上 */
    }
}

.hero-text-col {
    transition: all .25s ease;
}

.hero-text-col.hidden {
    opacity: 0;
}

@media (min-width: 1025px) {
    .hero-text-col {
        max-width: 400px;
    }
}

.scroll-down {
    display: none;
}

.masked-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.masked-content h1 {
    margin-bottom: .5rem;
    font-size: 64px;
}

.white-background {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: white;
    visibility: hidden;
    opacity: 0;
}

.masked-content .custom-title-1+p {
    /*     color: var(--e-global-color-f8bd203); */
    padding-top: 0;
    margin-top: 0;
    font-size: 36px;
    font-family: var(--font-stack-heading-secondary);
    line-height: 1;
    color: #FFF;
}

.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* .masked-content::before {
    content: '';
    width: 100%;
    height: 100%;
    background: url('/wp-content/uploads/2025/09/home-page-hero-min.jpg') center/cover no-repeat;
    position: absolute;
    left: 0;
    top: 0;
    animation: kenburns 30s infinite
} */

@keyframes kenburns {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.masked-content>.container {
    position: absolute;
    padding-left: 8%;
    padding-right: 8%;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 25%;
}

.masked-content>.container .custom-title-1 {
    color: var(--e-global-color-f8bd203);
}

.masked-content p {
    color: #FFF;
}

.masked2 {
    background: black;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
}

.masked2-content {
    height: 45vh;
}

.mask-section {
    background: #0A3A6E;
}

.about-us-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(55vh + 50px);
}

.gamma-title {
    color: white;
}

@media (max-width: 767px) {
    .gamma-desc .elementor-heading-title {
        font-size: 16px !important;
        line-height: 1.5em !important;
    }

    .gamma-title .elementor-heading-title {
        font-size: var(--custom-title-2-767-max) !important;
    }
}

@media (max-width: 1024px) {
    .about-us-section {
        padding-top: 0 !important;
        margin-top: 0 !important;
        overflow: hidden;
        /* 阻斷外距折疊，避免看起來「頂部多一塊空白」 */
    }
}

@media (min-width: 1025px) {

    .chisamo-mobile-show,
    .PC-hide {
        display: none;
    }
}

@media (max-width: 1024px) {
    .about-us-section {
        padding-top: 20px;
    }

    .hero-video {
        position: relative;
        height: calc(100svh - 11.5rem);
    }

    .mask-wrapper {
        min-height: auto;
    }

}

/* now after we are changing font size of the title
we need to set fixed height so that the divs below still align with its scroll triggers */
@media screen and (min-width: 1600px) {
    .chisamo-col {
        height: 25vh;
    }
}

@media screen and (min-width: 1025px) {
    .chisamo-col {
        height: 40vh;
    }
}

@media screen and (max-width: 1599px) {
    .chisamo-col .title {
        margin-top: 30px !important;
    }
}





/*
.chisamo-col .title {
    height: 4rem;
}
*/

.about-us-section .title {
    color: #FFF;
    text-align: center;
    margin: auto;
}

.about-us-section p {
    color: #FFF;
    text-align: center;
    max-width: 1460px;
    font-size: 2.8rem;
    line-height: 1.8;
    transform-origin: top;
    transform: scale(1);
    padding-top: 50px;
    margin: 0;
}


@media screen and (max-width: 768px) {
    .chisamo-col .title {
        margin-top: 0px !important;
        font-family: var(--font-stack-heading-secondary);
        font-size: 23px;
        margin-bottom: 20px;
        line-height: 1.8rem !important;
    }

    .about-us-section p {
        padding-top: 25px;
    }
}

@media (min-width: 1025px) {
    .about-us-section {
        padding-top: 55vh;
    }
}


.chisamo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 50px;
}


@media (max-width: 1599px) {
    .about-us-section p {
        font-size: 2rem;
        line-height: 1.5;
    }
}

@media (max-width: 1024px) {
    .about-us-section .chisamo-col {
        margin: 60px 0;
        padding: 0 20px;
    }

    .about-us-section p {
        font-size: 1rem;
    }

    .about-us-section {
        height: auto;
        padding-top: 0vh;
    }

    .showcase-slider-container {
        width: 100%;
        aspect-ratio: 1920 / 1080;
        height: auto;
    }
}


[data-slide="1"] {
    position: relative;
    z-index: 20;
}

/*
.about-showcase .showcase-slide {
    opacity: 0;
    transition: all 0.5s ease 0.5s;
}

.about-showcase .showcase-slide.current {
    opacity: 1;
    transition: all 0.7s ease;
}
*/

#showcase-swiper {
    aspect-ratio: 1920 / 1080;
    position: relative;
    width: 50vw;
    margin: 0 auto;
    display: block;
    max-width: none !important;
}

@media (max-width: 1024px) {
    #showcase-swiper {
        width: 100%;
    }

    .showcase-slider-container {
        width: 100%;
        margin: 25px 0 0;
    }
}

.about-showcase .showcase-slide img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.about-showcase .img-track {
    position: absolute;
    width: 486px;
    height: auto;
    max-width: none !important;
    margin: 0 auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.about-showcase .img-track img.current {
    outline: 1px solid #FFF;
}

.about-showcase .img-track {
    opacity: 0;
}

.about-showcase .img-track img {
    object-fit: cover;
}

.about-showcase .showcase-slider {
    display: flex;
    flex-direction: column-reverse;
}

.about-showcase .showcase-sidebar {
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background-color: #1F1F1F;
    background-image: url(/wp-content/uploads/2025/07/lomacasa-shape-custom-systems.svg);
    background-size: 75%;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    color: white;
}

/* @media (min-width: 768px) {
	.about-showcase .showcase-slider {
		height:100svh;
	}
} */
.showcase-paragraph .char,
.showcase-paragraph .word {
    color: rgb(125 125 125 / 50%);
    transition: color .25s ease-in-out;
}

.showcase-paragraph .char.current,
.showcase-paragraph .word.current {
    color: white;
}

.showcase-separator {
    margin: 25px auto;
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.solutions-section .solutions-inner .solutions-left,
.solutions-section .solutions-inner .solutions-right {
    flex: 0 0 50%;
    position: relative;
}

.solutions-right {
    max-width: 600px;
}

.solutions-section .solutions-inner .solutions-left #pic-prev,
.solutions-section .solutions-inner .solutions-left #pic-next {
    width: 300px;
    max-width: 50%;
    position: absolute;
    opacity: 0.5;
    z-index: -1;
}

.solutions-section .solutions-inner .solutions-left #pic-prev {
    right: 10px;
    top: -150px;
    transform: rotate(20deg);
}

.solutions-section .solutions-inner .solutions-left #pic-next {
    right: 10px;
    bottom: -180px;
    transform: rotate(-20deg);
}

.solutions-section.active {
    visibility: visible;
}

.solutions-section p {
    color: black;
    text-align: left;
    font-size: 16px;
    line-height: 1.7;
    max-width: 100%;
}

.solutions-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
}

.solutions-right .big-heading {
    display: flex;
    line-height: 1;
    align-items: center;
}

.solutions-right .big-heading svg {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
}

#product-range-btn {
    width: 100px;
    height: 100px;
    border: 1px black solid;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 30px;
    top: 40%;
    border-radius: 50%;
    padding: 30px;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    transition: all .25s ease;
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

#product-range-btn:hover {
    color: transparent;
    background-color: black;
    background-image: url(../images/arrow-right.svg);
}

#product-range-btn.clicked {
    background-image: none;
}

#product-range-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: black;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 1s ease, height 1s ease;
    z-index: 1000;
}

#helper-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    visibility: hidden;
    z-index: 10000;
}

#helper-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: all .25s ease;
}

#product-range-btn.clicked::after {
    width: 300vw;
    height: 300vw;
}

#drawing-slider {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
}

#drawing-slider img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.container #drawing {
    clip-path: inset(0 50% 0 0);
}

#slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    cursor: ew-resize;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

#slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 198px;
    background-image: url('../images/slider.svg');
    background-repeat: no-repeat;
    background-size: cover;
    transform: translate(-50%, -50%);
}


@media (min-width: 1025px) {
    .desktop-hidden {
        display: none !important;
    }
}


@media (max-width: 1024px) {
    .masked-content>.container {
        top: 50%;
        padding: 30px 20px;
        /* 		background: linear-gradient(90deg, rgb(255, 255, 255) 30%, rgba(255, 255, 255, 0.3) 100%); */
        transform: translateY(-50%);
    }

    .masked-content h1 {
        font-size: 50px;
    }

    .masked-content .custom-title-1+p {
        font-size: 23px;
    }

    .mobile-hidden {
        display: none !important;
    }

    .solutions-section {
        position: relative;
    }

    .solutions-section .solutions-inner {
        display: block;
    }

    .about-showcase .showcase-sidebar {
        padding: 40px 20px 150px;
    }

    #product-range-btn {
        display: none;
    }

    #slider::before {
        background-size: contain;
        width: 12px;
        height: 50%;
    }

    .solutions-right .big-heading {
        margin-top: 20px;
        font-size: 72px;
    }

    .solutions-section p {
        font-size: 16px;
    }
}

@media (min-width: 1025px) {
    .about-showcase {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: start;
        z-index: 100;
        width: 100%;
        height: 100vh;
        will-change: transform;
        /* this prevents shakiness when pinned */
    }

    .solutions-section {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1000;
        height: 100vh !important;
        width: 100% !important;
        visibility: hidden;

        --progress-transform: 100vw;
    }

    .solutions-section .solutions-inner {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .solutions-section .solutions-inner {
        transform: translateX(100%);
    }

    .solutions-section.active .solutions-inner {
        transform: translateX(var(--progress-transform));
    }

    .about-showcase .showcase-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 500px;
        max-width: 30%;
        z-index: 1000;
        padding: 80px 50px;
    }

    .about-showcase .showcase-slider {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
}


/*olton*/
.showcase-slider .custom-title-7 span {
    color: #C5A76D;
}

.btn-col {
    padding-top: 60px;
}


.systems-col {
    gap: 0px;
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
}

@media (min-width: 1025px) and (max-width: 1599px) {
    .showcase-sidebar .showcase-paragraph {
        opacity: 0;
        transform: translateY(30px);
        transition: transform 0.8s ease;
        position: absolute;
        width: calc(100% - 100px);
    }

    .showcase-sidebar .showcase-paragraph.current {
        opacity: 1;
        transform: translateY(0);
        position: absolute;
        /* 保證顯示正常 */
        width: calc(100% - 100px);
    }

    .showcase-col {
        overflow: hidden;
        min-height: 200px;
    }

    .showcase-separator {
        display: none;
    }

    .btn-col {
        padding-top: 0px;
    }

}

@media (max-width: 1024px) {
    .showcase-sidebar .showcase-paragraph.current {
        position: inherit;
    }

    .about-showcase .showcase-sidebar {
        position: relative;
        width: 100%;
        padding: 60px 20px 90px 20px;
    }


    .solutions-section .solutions-inner {
        padding: 0px;
    }

    .solutions-section .solutions-inner .solutions-right {
        padding: 20px 20px 20px 20px;
        display: flex;
        flex-direction: column;
    }


    .showcase-col {
        overflow: visible;
        /* 不要裁切 */
        min-height: auto;
    }

    .showcase-sidebar .showcase-paragraph {
        position: static;
        /* 不再絕對定位 */
        opacity: 1 !important;
        /* 保證可見 */
        transform: none !important;
        width: 100% !important;
        margin-bottom: 20px;
        /* 給一點間距 */
    }

    .showcase-separator {
        display: block;
        /* 手機版可以恢復分隔點 */
        margin: 15px auto;
    }

    .btn-col {
        padding-top: 30px;
        justify-items: center;
    }

    .big-heading {
        order: 1;
        justify-content: flex-end;
    }

    .big-heading svg path {
        fill: #AB9C8F;
    }

    .solutions-right .big-heading svg {
        width: 100px;
    }

    .masked-content>.container {
        padding: 0;
        top: inherit;
        transform: none;
        position: relative;
        /* 		height: 100svh; */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .hero-text-col {
        background: #1F1F1F;
        padding: 50px 0px 50px 0px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text-col .texter {
        padding: 0px 40px;
    }

    .hero-text-col .custom-title-1 .text-reveal .word {
        color: #C5A76D;
        font-size: 3.5rem;
    }

    .masked-content .text-reveal .line,
    .masked-content .hero-text-col p {
        text-align: center !important;
        display: flex;
        flex-flow: wrap;
        justify-content: center;
    }

    .mask-overlay {
        display: none;
    }

    /* 	.masked-content::before{
		top: -25%;
	} */
    .scroll-down {
        display: block;
    }

}

@media (max-width: 768px) {
    .showcase-separator {
        display: none;
    }
}


/*hover mouse efrfdect on hero*/
/* === Spotlight Hero Styles === */

/* The hero container */
.masked-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Dark overlay with a transparent circular spotlight */
.mask-overlay {
    /* Adjustable spotlight radius */
    --spot-size: 500px;
    /* change to any px value for a bigger/smaller circle */

    position: absolute;
    inset: 0;
    z-index: 0;
    /* keep the overlay behind the hero text */
    pointer-events: none;
    /* let all clicks pass through */

    /* Radial gradient: clear center, darker edges */
    background: radial-gradient(circle var(--spot-size) at 50% 50%,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.5) 80%);

    /* Fade-in when JS runs */
    opacity: 0;
    /* JS will animate to 1 */
    transition: opacity 0.3s ease;
    /* small fallback if JS is disabled */
}

/* Ensure the overlay sits behind hero text */
/*.masked-content .container {*/
/*  position: relative;*/
/*  z-index: 1;                         */
/*}*/

/* Make sure the hero section fills the viewport and can be pinned */
/*.mask-section,*/
/*.mask-wrapper {*/
/*  width: 100%;*/
/*  height: 100vh;                      */
/*  position: relative;*/
/*  overflow: hidden;                    */
/*}*/



.chisimo svg {
    width: 100%;
    height: 2rem;
}

.chisimo svg path {
    fill: #FFF;
}

.chisimo {
    width: 100%;
    height: 100px;
    display: none;
}

@media (max-width: 768px) {
    .pin-spacer {
        padding: 0 !important;
        min-height: 0 !important;
    }
}

@media (max-width: 1024px) {
    .chisimo {
        display: contents;
    }

    .chisimo svg {
        margin-bottom: 20px;
        height: 40px;
    }
}


/* 手機/平板（≤1024）：完全關掉 showcase 的動畫效果與動態尺寸 */
@media (max-width: 1024px) {
    .about-showcase {
        position: relative !important;
        height: auto !important;
        max-width: 100%;
        width: 100%;
    }

    .about-showcase .showcase-slider {
        flex-direction: column-reverse !important;
    }

    .about-showcase .showcase-slider-container {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        transition: none !important;
    }

    .about-showcase .showcase-sidebar {
        transform: none !important;
        opacity: 1 !important;
    }

    /* 如果你不想手機顯示右下角縮圖，直接隱藏 */
    .about-showcase .img-track {
        display: none !important;

        .chisimo svg {
            margin-bottom: 20px;
        }
    }
}

.header.scrolled+#smooth-wrapper .hero-text-col {
    opacity: 0;
}

/* problem with parallax on mobile, hide non visible slides for now (all of them are the same) */
@media (max-width: 767px) {
    .showcase-slide:not(.current) {
        display: none !important;
    }
}