/* =========================================================
 * Home page styles
 *
 *  1. Typography（Montserrat 字體與英文標題）
 *  2. Shared controls（共用區塊按鈕）
 *  3. Capsule buttons（Hero / Start With You 膠囊按鈕）
 *  4. Hero
 *  5. The Deep Scan
 *  6. Customer Stories
 *  7. How It Works
 *  8. Why SPICA
 *  9. Start With You
 * 10. Shared reveal animation
 * 11. Customer Stories：992px ~ 1399px
 * 12. Desktop（min-width: 992px）
 * 13. Mobile（max-width: 991.98px）
 * 14. Small mobile（max-width: 575.98px）
 *
 * 規則依「共用 → 桌機 → 手機」排列；
 * ========================================================= */

/* =========================================================
 * 1. Typography
 * ========================================================= */
@font-face {
    font-family: 'Montserrat';
    src: url('../../../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* 首頁所有區塊英文標題 */
.spica-home .home-section .section-kicker,
.spica-home .home-why .why-item-default p,
.spica-home .home-why .why-item-hover p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
}

/* =========================================================
 * 2. Shared controls
 * 共用區塊按鈕：由 home_section.button_position 控制左 / 中 / 右。
 * ========================================================= */
.section-bottom {
    width: 100%;
    margin-top: 42px;
}

.section-bottom-left {
    text-align: left;
}

.section-bottom-center {
    text-align: center;
}

.section-bottom-right {
    text-align: right;
}

@media (max-width: 575.98px) {
    .section-bottom-left,
    .section-bottom-right {
        text-align: center;
    }

    .spica-home .spica-btn {
        width: 224px;
        max-width: 100%;
    }
}

/* =========================================================
 * 3. Capsule buttons
 * ========================================================= */
.spica-home .home-hero .spica-btn-light,
.spica-home .home-start .spica-btn-dark {
    position: relative;
    width: 280px;
    min-width: 230px;
    aspect-ratio: 7 / 2;
    padding: 0 46px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform .25s ease, color .25s ease;
}

.spica-home .home-hero .spica-btn-light {
    color: #FBFCFE;
}

.spica-home .home-start .spica-btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1C283A;
    text-decoration: none;
}

.spica-home .home-hero .spica-btn-light::after,
.spica-home .home-start .spica-btn-dark::after {
    content: "";
    position: absolute;
    inset: 6px 8px;
    border-radius: 999px;
    border: 1px solid #FBFCFE;
    background: rgba(140, 140, 140, .25);
    box-shadow: 0 6px 16px rgba(23, 23, 23, .2),
        inset 0 1px 0 rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 1;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 0;
}

.spica-home .home-hero .spica-btn-light::before,
.spica-home .home-start .spica-btn-dark::before {
    content: "";
    position: absolute;
    inset: 6px 8px;
    border-radius: 999px;
    /* 依 Figma hover：
       Fill  Linear 1C283A 60%（3%）→ 4D6EA0 30%（100%），圖層 20% → 實際 alpha .12 / .06
       Stroke E6E6E6 50%、整體 Opacity 90%（見下方 hover 規則）、文字 FBFCFE 100% */
    border: 1px solid rgba(230, 230, 230, .5);
    background:
        linear-gradient(180deg,
            rgba(28, 40, 58, .12) 3%,
            rgba(77, 110, 160, .06) 100%);
    box-shadow: 0 6px 16px rgba(23, 23, 23, .2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 0;
}

.spica-home .home-hero .spica-btn-light > span {
    position: relative;
    z-index: 1;
}

.spica-home .home-hero .spica-btn-light:hover,
.spica-home .home-hero .spica-btn-light:focus,
.spica-home .home-hero .spica-btn-light:active,
.spica-home .home-start .spica-btn-dark:hover,
.spica-home .home-start .spica-btn-dark:focus,
.spica-home .home-start .spica-btn-dark:active {
    color: #FBFCFE;
    transform: translateY(-2px);
}

.spica-home .home-hero .spica-btn-light:hover::after,
.spica-home .home-hero .spica-btn-light:focus::after,
.spica-home .home-hero .spica-btn-light:active::after,
.spica-home .home-start .spica-btn-dark:hover::after,
.spica-home .home-start .spica-btn-dark:focus::after,
.spica-home .home-start .spica-btn-dark:active::after {
    opacity: 0;
}

.spica-home .home-hero .spica-btn-light:hover::before,
.spica-home .home-hero .spica-btn-light:focus::before,
.spica-home .home-hero .spica-btn-light:active::before,
.spica-home .home-start .spica-btn-dark:hover::before,
.spica-home .home-start .spica-btn-dark:focus::before,
.spica-home .home-start .spica-btn-dark:active::before {
    opacity: .9;   /* Figma hover Opacity 90% */
}

/* =========================================================
 * 4. Hero
 * ========================================================= */
.home-hero {
    position: relative;
    padding-top: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #d7dde3;
    background-image: url("../../images/home/banner/home-01.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.home-hero .spica-btn-light > span {
    font-size: 24px;
    white-space: nowrap;
}

.home-hero-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.home-hero-swiper .swiper-wrapper,
.home-hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.home-hero-swiper .swiper-slide {
    background-color: #d7dde3;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.home-hero-swiper .swiper-slide:not(.swiper-slide-active) {
    pointer-events: none;
}

.home-hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: var(--spica-header-height);
    background-image: var(--section-bg-pc, var(--section-bg));
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #d7dde3;
    background-size: cover;
}

.home-hero-slide > .container {
    position: relative;
}

.home-hero-inner {
    position: absolute;
    top: 50%;
    left: 8.333333%;
    width: 83.333333%;
    height: auto;
    min-height: 0;
    transform: translateY(calc(-50% - 12vw + 60px));
}

.home-hero-inner::before {
    content: "";
    display: block;
    height: calc(clamp(65px, 9.9vw, 162px) + 28px);
}

/* 按鈕隱藏時，整張 Banner 可點擊 */
.home-hero .home-hero-clickable {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.home-hero .home-hero-clickable:hover,
.home-hero .home-hero-clickable:focus {
    color: inherit;
    text-decoration: none;
}

.hero-subtitle {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 1);
    font-size: 1.6rem;
}

.hero-btn-row {
    width: 100%;
}

.hero-btn-row-left {
    text-align: left;
}

.hero-btn-row-center {
    text-align: center;
}

.hero-btn-row-right {
    text-align: right;
}

/* =========================================================
 * 5. The Deep Scan
 * ========================================================= */
.home-scan {
    background-image: var(--section-bg-pc, var(--section-bg));
    aspect-ratio: 16 / 9;
}

.scan-topic-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    gap: 18px;
    max-width: 520px;
    margin-top: 80px;
}

.scan-topic-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #536272;
    font-size: .8125rem;
    text-align: center;
}

.scan-topic-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.scan-topic-item span {
    font-size: 1rem;
    letter-spacing: 2px;
}

/* =========================================================
 * 6. Customer Stories
 * ========================================================= */
.home-stories {
    background-image: var(--section-bg-pc, var(--section-bg));
    aspect-ratio: 16 / 9;
}

.home-stories .row {
    min-height: 520px;
}

.home-stories-copy {
    padding-left: 70px;
}

.home-stories .section-kicker {
    max-width: 360px;
    font-size: clamp(3rem, 4.4vw, 4rem);
    line-height: 1.08;
}

.home-stories .section-title {
    margin-bottom: 0;
    font-size: 2rem;
    line-height: 1.35;
}

.home-stories .title-line {
    height: 130px;
    margin: 42px 0;
}

.home-stories .section-desc {
    max-width: 390px;
}

.spica-story-swiper {
    padding: 48px 34px 74px;
}

.spica-story-swiper .swiper-wrapper {
    align-items: flex-end;
    isolation: isolate;
}

.spica-story-swiper .swiper-slide {
    position: relative;
    width: 254px;
    z-index: var(--story-z-index, 1) !important;
    transition: transform .28s ease;
}

.spica-story-swiper .swiper-slide-active {
    z-index: 22 !important;
}

.spica-story-swiper .swiper-slide:hover {
    z-index: 30 !important;
}

.story-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 358px;
    color: #3a4654;
    background: #dce0e5;
    border: 1px solid #dbe4eb;
    border-radius: 10px;
    box-shadow: 4px 3px 6px 1px rgba(62, 62, 62, 0.3);
    overflow: hidden;
    transform: scale(.9);
    transform-origin: left bottom;
    transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.story-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    box-shadow: inset 0.5px 0px 0px rgba(255, 255, 255, 0.75);
}

.story-card-active,
.spica-story-swiper .swiper-slide-active .story-card {
    transform: scale(1.05) translateY(8%);
}

.spica-story-swiper:has(.swiper-slide:hover) .story-card.story-card-active {
    transform: scale(0.9);
}

.spica-story-swiper .swiper-slide .story-card:hover {
    transform: scale(1.05) translateY(8%) !important;
}

.story-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    background-color: #dce0e5;
    background-image: var(--bg-image-pc);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 10px 10px 0 0;
}

.story-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 16px;
}

.story-card h3 {
    margin-bottom: 10px;
    color: #2d3947;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.45;
}

.story-card ul {
    margin: 0 0 30px;
    padding-left: 30px;
    color: #3f4b59;
    line-height: 1.5;
}

.story-card ul li {
    font-size: 1.1rem;
}

.story-card p {
    display: -webkit-box;
    margin-bottom: 0;
    color: #53606e;
    font-size: .95rem;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 1px;
}

.story-card a {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    margin-top: auto;
    color: #2f3b49;
    font-size: .66rem;
    font-weight: 500;
}

.story-control-row {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
}

.story-arrow {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    margin: 0;
    color: #667482;
    pointer-events: auto;
    transform: translateY(-50%);
}

.story-arrow.swiper-button-prev {
    left: -12px;
}

.story-arrow.swiper-button-next {
    right: -12px;
}

.story-arrow::after {
    font-size: 2rem;
    font-weight: 300;
}

.story-pagination {
    position: absolute;
    right: 0;
    bottom: -5px !important;
    left: 0;
    width: auto !important;
    text-align: center;
    pointer-events: auto;
}

.story-pagination .swiper-pagination-bullet {
    background: #7a8793;
}

.story-pagination .swiper-pagination-bullet-active {
    background: #2e3945;
}

.story-pagination .swiper-pagination-bullet-active-prev-prev,
.story-pagination .swiper-pagination-bullet-active-next-next {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

/* =========================================================
 * 7. How It Works
 * ========================================================= */
.home-works {
    position: relative;
    min-height: 720px;
    background-image: var(--section-bg-pc, var(--section-bg));
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    aspect-ratio: 16 / 9;
}

.works-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: clamp(4.5rem, 7vw, 8.5rem) 0 clamp(3.5rem, 5.2vw, 6.25rem);
}

.works-heading {
    width: min(100%, 540px);
}

.works-heading .section-kicker {
    margin-bottom: .25rem;
    color: #263545;
    font-size: clamp(2.6rem, 4.5vw, 4.8rem);
    line-height: 1.02;
}

.works-heading .section-title {
    color: #263545;
    font-size: clamp(1.6rem, 2vw, 2.05rem);
    line-height: 1.35;
}

.works-desc {
    max-width: 720px;
    margin-bottom: 30px;
    color: #4a5867;
}

.works-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #aeb8c2;
}

.works-item {
    display: grid;
    grid-template-columns: minmax(5.2rem, 8%) minmax(280px, 42%) minmax(320px, 50%);
    align-items: stretch;
    width: 100%;
    min-height: 5.7rem;
    padding: 0;
    color: #293847;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #aeb8c2;
    overflow: hidden;
    transition: background .25s ease, min-height .32s ease;
}

.works-item.active {
    min-height: 220px;
}

.works-item-num {
    display: flex;
    align-items: flex-start;
    padding: 1.45rem 0 1.4rem 30px;
    color: #607080;
    font-size: 1.42rem;
    font-weight: 300;
    line-height: 1.4;
}

.works-item-num img {
    display: block;
    width: 3.4rem;
    max-width: 100%;
    height: auto;
}

.works-item-content {
    display: block;
    min-width: 0;
    padding: 1.45rem 1.5rem 1.4rem 0;
}

.works-item strong {
    display: block;
    color: #465563;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.55;
}

.works-item hr {
    width: 24px;
    height: 0;
    margin: 0;
    border: unset;
}

.works-item.active hr {
    height: 1px;
    margin: 20px 0 25px;
    background-color: #293847;
    transition: height .32s ease, margin-top .32s ease, margin-bottom .32s ease;
}

.works-item small {
    display: block;
    max-width: 420px;
    height: 0;
    margin-top: 0;
    color: #485869;
    font-size: 1.1rem;
    line-height: 1.4;
    overflow: hidden;
    transition: height .32s ease, margin-top .32s ease;
}

.works-item.active small {
    max-height: unset;
    height: 160px;
    margin-top: 20px;
    letter-spacing: 1px;
}

.works-item-media {
    position: relative;
    display: block;
    min-height: 5.7rem;
    overflow: hidden;
    transition: min-height .32s ease;
}

.works-item.active .works-item-media {
    min-height: 220px;
}

.works-item-media::before,
.works-item-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.works-item-media::before {
    z-index: 2;
    background: rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.works-item-media::after {
    z-index: 3;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .18), rgba(255, 255, 255, .34));
}

.works-item.active .works-item-media::before,
.works-item.active .works-item-media::after {
    opacity: 0;
}

.works-item-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: blur(6px);
    transform: scale(1.04);
    transition: filter .3s ease, transform .45s ease;
}

.works-item.active .works-item-media img {
    filter: blur(0);
    transform: scale(1);
}

.home-works-sticky {
    position: relative;
    height: 100%;
}

.home-works-sticky > .container {
    height: 100%;
}

/* =========================================================
 * 8. Why SPICA
 * ========================================================= */
.home-why {
    position: relative;
    padding: 0;
    color: #fff;
    background-image: var(--section-bg-pc, var(--section-bg));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.home-why .container-fluid {
    position: absolute;
    inset: 0;
    max-width: none;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.why-panel {
    position: absolute;
    top: calc(53.5% + 0.08vw);
    right: calc(4.8% + 1px);
    left: 0;
    height: 93%;
    overflow: hidden;
    border: 0;
    border-radius: 0 5vw 5vw 0;
    background: transparent;
    transform: translateY(-50%);
}

.why-panel .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 100%;
    margin: 0;
    gap: 0.09vw;
}

.why-panel .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
}

.why-side-title-div {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: 4.8vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2.5vw, 3rem);
    pointer-events: none;
}

.why-side-title-div::after {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 1px;
    height: clamp(7rem, 22vw, 18rem);
    background: #c7ccd2;
}

.why-side-title {
    position: static;
    flex: 0 0 auto;
    color: #c7ccd2;
    font-size: clamp(1.4rem, 2.5vw, 3rem);
    font-weight: 300;
    line-height: 1;
    writing-mode: vertical-rl;
    transform: none;
    pointer-events: none;
    white-space: nowrap;
    word-break: keep-all;
}

.why-item {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    padding: clamp(1.5rem, 4vw, 5.25rem) clamp(1.25rem, 4vw, 4rem);
    color: #fff;
    text-align: center;
    background: transparent;
    border: 0;
    overflow: visible;
    transition: background .4s ease, box-shadow .4s ease, backdrop-filter .4s ease, -webkit-backdrop-filter .4s ease;
}

.why-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(230, 239, 246, .14), rgba(230, 239, 246, .14)),
        var(--why-item-bg, url("../../images/home/why-spica-01.png"));
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    pointer-events: none;
}

.why-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(150, 150, 150, 0.1);
    -webkit-backdrop-filter: blur(3px) saturate(115%);
    backdrop-filter: blur(3px) saturate(115%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    pointer-events: none;
}

.why-item > * {
    position: relative;
    z-index: 2;
}

.why-item:hover::before,
.why-item:hover::after {
    opacity: 1;
    visibility: visible;
}

.why-item-default {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.why-item-hover {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
    z-index: 2;
}

.why-item:hover .why-item-default {
    display: none;
}

.why-item:hover .why-item-hover {
    display: flex;
}

.why-item p {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.2;
}

.why-item h3 {
    margin-bottom: 0;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.2;
}

.why-item-hover p {
    margin-bottom: 10px;
}

.why-item-hover hr {
    width: 30px;
    margin: 30px 0;
    border-top: 1px solid #fff;
    opacity: 1;
}

.why-item small {
    display: block;
    max-width: 20rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 2px;
}

/* =========================================================
 * 9. Start With You
 * ========================================================= */
.home-start {
    background-image: var(--section-bg-pc, var(--section-bg));
    aspect-ratio: 16 / 9;
}

/* 以 !important 還原 .visually-hidden，讓文字顯示在膠囊內 */
.spica-home .home-start .spica-btn-dark > span {
    position: relative !important;
    z-index: 1;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    border: 0 !important;
    color: inherit;               /* 預設 #1C283A、hover #FBFCFE */
    font-size: 24px;
    line-height: 1;
    letter-spacing: .04em;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
}

/* =========================================================
 * 10. Shared reveal animation
 * ========================================================= */
.js-blur-rise .blur-rise-item,
.js-blur-rise .scan-topic-item {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(34px);
    transition: opacity .9s cubic-bezier(.22, 1, .36, 1),
        filter .9s cubic-bezier(.22, 1, .36, 1),
        transform .9s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--blur-rise-delay, 0s);
    will-change: opacity, filter, transform;
}

.js-blur-rise.is-blur-rise-visible .blur-rise-item,
.js-blur-rise.is-blur-rise-visible .scan-topic-item {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.js-blur-rise .section-kicker {
    --blur-rise-delay: .02s;
}

.js-blur-rise .section-title {
    --blur-rise-delay: .12s;
}

.js-blur-rise .title-line {
    --blur-rise-delay: .22s;
}

.js-blur-rise .works-desc {
    --blur-rise-delay: .22s;
}

.js-blur-rise .section-desc {
    --blur-rise-delay: .32s;
}

.js-blur-rise .section-bottom,
.js-blur-rise .scan-topic-list {
    --blur-rise-delay: .44s;
}

.js-blur-rise .scan-topic-item:nth-child(1) {
    --blur-rise-delay: .52s;
}

.js-blur-rise .scan-topic-item:nth-child(2) {
    --blur-rise-delay: .60s;
}

.js-blur-rise .scan-topic-item:nth-child(3) {
    --blur-rise-delay: .68s;
}

.js-blur-rise .scan-topic-item:nth-child(4) {
    --blur-rise-delay: .76s;
}

.js-blur-rise .scan-topic-item:nth-child(5) {
    --blur-rise-delay: .84s;
}

@media (prefers-reduced-motion: reduce) {
    .js-blur-rise .blur-rise-item,
    .js-blur-rise .scan-topic-item {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }
}

/* =========================================================
 * 11. Customer Stories：992px ~ 1399px 中間尺寸
 * ========================================================= */
@media (min-width: 992px) and (max-width: 1399.98px) {
    /* 輪播欄 75% / 文案欄 25% */
    .home-stories .row > .col-lg-8 {
        flex: 0 0 auto;
        width: 75%;
    }

    .home-stories .row > .home-stories-copy {
        flex: 0 0 auto;
        width: 25%;
        padding-left: 0;
    }

    .home-stories .section-kicker {
        font-size: clamp(2.2rem, 3.4vw, 3rem);
    }

    .home-stories .section-title {
        font-size: 1.5rem;
    }

    .home-stories .title-line {
        height: 90px;
        margin: 28px 0;
    }

    .home-stories .section-desc {
        font-size: .9rem;
        line-height: 1.7;
    }

    /* 卡片內部縮小 */
    .story-card {
        min-height: 0;
    }

    .story-card-body {
        padding: 12px 12px 10px;
    }

    .story-card h3 {
        margin-bottom: 6px;
        font-size: 1rem;
    }

    .story-card ul {
        margin-bottom: 14px;
        padding-left: 18px;
    }

    .story-card ul li {
        font-size: .875rem;
        line-height: 1.45;
    }

    .story-card p {
        font-size: .78rem;
        line-height: 1.4;
        letter-spacing: 0;
    }

    .story-card a {
        font-size: .6rem;
    }
}

/* =========================================================
 * 12. Desktop layout / interactions
 * ========================================================= */
@media (min-width: 992px) {
    /* ---------- Customer Stories ---------- */
    .spica-story-swiper {
        --story-arrow-size: 24px;
        --story-arrow-gap: 32px;   /* 箭頭與卡片的距離 */
        --story-side-space: calc(var(--story-arrow-size) + var(--story-arrow-gap));

        padding: 48px var(--story-side-space) 74px;
    }

    .spica-story-swiper.is-story-default .swiper-slide {
        transition: transform .28s ease, opacity .28s ease;
    }

    .spica-story-swiper.is-story-default .swiper-slide.story-slide-hidden {
        opacity: 0;
        pointer-events: none;
    }

    .story-control-row {
        left: calc(var(--bs-gutter-x, 3rem) * .5);
        right: calc(var(--bs-gutter-x, 3rem) * .5);
    }

    .story-arrow {
        width: 24px;
        height: 24px;
        color: #667482;
    }

    .story-arrow.swiper-button-prev {
        left: 0;
    }

    .story-arrow.swiper-button-next {
        right: 0;
    }

    .story-arrow::after {
        font-size: 1rem;
        font-weight: 300;
    }

    .story-pagination-mobile {
        display: none;
    }

    /* ---------- How It Works：sticky 捲動切換 ---------- */
    .home-works[data-works-scroll] {
        --works-visual-height: max(720px, 56.25vw);
        --works-sticky-height: max(var(--works-visual-height), calc(100vh + 120px));
        --works-scroll-extra: 240vh;

        min-height: calc(var(--works-sticky-height) + var(--works-scroll-extra));
        aspect-ratio: auto;
        background: none;
        overflow: visible;
    }

    .home-works[data-works-scroll] .home-works-sticky {
        position: sticky;
        top: -120px;
        height: var(--works-sticky-height);
        background-image: var(--section-bg-pc, var(--section-bg));
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        overflow: hidden;
    }

    .home-works[data-works-scroll] .home-works-sticky > .container {
        display: flex;
        align-items: center;
    }

    .home-works[data-works-scroll] .works-panel {
        width: 100%;
        min-height: auto;
    }

    .home-works[data-works-scroll] .works-item {
        will-change: min-height, background;
    }

    /* ---------- Why SPICA：底圖只放照片，白邊與格線交給 CSS ---------- */
    .home-why {
        --why-bg-left: #ebeff5;   /* 左側 */
        --why-bg-right: #f9fbfc;  /* 右側 */

        background-color: var(--why-bg-left);
        background-image: linear-gradient(
            to right,
            var(--why-bg-left) 0%,
            var(--why-bg-right) 100%
        );
    }

    .why-panel {
        top: 7%;
        right: 4.8%;
        left: 0;
        height: 93%;
        transform: none;
        background-image: var(--section-bg-pc, var(--section-bg));
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* 六格精準 3 等分，且不留縫 */
    .why-panel .row {
        gap: 0;
    }

    /* 格線：畫在每格的右邊與下邊 */
    .why-panel .row > .swiper-slide {
        position: relative;
        isolation: isolate;
    }

    .why-panel .row > .swiper-slide::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 3;
        pointer-events: none;
        border-right: 1px solid rgba(255, 255, 255, .55);
        border-bottom: 1px solid rgba(255, 255, 255, .55);
    }

    .why-panel .row > .swiper-slide:nth-child(3n)::after {
        border-right: 0;
    }

    .why-panel .row > .swiper-slide:nth-child(n+4)::after {
        border-bottom: 0;
    }
}

/* =========================================================
 * 13. Mobile layout / controls
 * ========================================================= */
@media (max-width: 991.98px) {
    :root {
        /* Hero */
        --spica-m-hero-subtitle-font-size: clamp(0.95rem, 3.45vw, 1.12rem);

        /* Shared typography */
        --spica-m-section-en-font-size: clamp(2.12rem, 7.5vw, 3.35rem);
        --spica-m-section-zh-font-size: clamp(1.12rem, 5.6vw, 2rem);
        --spica-m-section-desc-font-size: clamp(0.96rem, 4vw, 1.2rem);
        --spica-m-section-desc-line-height: 1.4;
        --spica-m-section-letter-spacing: 0.04em;

        /* Customer Stories */
        --spica-m-story-title-font-size: clamp(0.96rem, 4vw, 1.2rem);
        --spica-m-story-text-font-size: clamp(0.82rem, 3.6vw, 1rem);
        --spica-m-stories-copy-top: 4%;
        --spica-m-stories-copy-left: 8%;
        --spica-m-stories-card-top: 42%;
        --spica-m-stories-card-width: min(300px, 64vw);   /* 依 Figma：240 / 375 */
        --spica-m-stories-card-body-padding: 18px 18px 16px;
        --spica-m-story-active-scale: 1;
        --spica-m-story-active-y: 0%;
        --spica-m-story-side-scale: .82;
        --spica-m-story-side-y: 3%;
        --spica-m-story-prev-x: 16%;
        --spica-m-story-next-x: -16%;
        --spica-m-story-side-opacity: .55;
        --spica-m-story-far-scale: .72;
        --spica-m-story-far-y: 5%;
        --spica-m-story-far-opacity: .28;
        --spica-m-story-slide-transition: transform .45s ease, opacity .45s ease;

        /* How It Works */
        --spica-m-works-step-title-font-size: clamp(1rem, 4.6vw, 1.8rem);
        --spica-m-works-step-desc-font-size: clamp(0.84rem, 3.1vw, 0.98rem);
        --spica-m-works-side-space: 4.6%;
        --spica-m-works-panel-top: 16%;
        --spica-m-works-desc-margin-bottom: clamp(18px, 8vw, 60px);
        --spica-m-works-title-line-width: min(28vw, 108px);
        --spica-m-works-title-line-margin: clamp(12px, 3.4vw, 18px) 0;
        --spica-m-works-item-num-width: clamp(2.8rem, 11vw, 3.6rem);
        --spica-m-works-row-y: clamp(13px, 3.8vw, 20px);
        --spica-m-works-image-margin-top: 0;
        --spica-m-works-active-desc-margin-top: clamp(16px, 4.4vw, 24px);
        --spica-m-works-active-desc-padding-bottom: clamp(24px, 6.4vw, 36px);
        --spica-m-works-expand-duration: .78s;
        --spica-m-works-expand-ease: cubic-bezier(.22, 1, .36, 1);
        --spica-m-works-active-image-height: min(440px, 64.86vw);
        --spica-m-works-active-desc-max-height: 150px;

        /* Why SPICA */
        --spica-m-why-title-font-size: clamp(1.5rem, 9vw, 5.6rem);
        --spica-m-why-card-title-font-size: clamp(1.15rem, 4.6vw, 1.6rem);
        --spica-m-why-card-title-2-font-size: clamp(0.9rem, 3.6vw, 1.2rem);
        --spica-m-why-card-desc-font-size: clamp(0.86rem, 3.05vw, 1rem);
        --spica-m-why-card-width: 100%;
        --spica-m-why-card-min-height: clamp(230px, 58vw, 320px);
        --spica-m-why-slide-width: 78%;
        --spica-m-why-card-radius: 18px;
        --spica-m-why-card-padding-y: clamp(1.8rem, 5.8vw, 2.55rem);
        --spica-m-why-card-padding-x: clamp(1.2rem, 8.5vw, 2.6rem);
        --spica-m-why-side-scale: .9;
        --spica-m-why-side-opacity: 1;

        /* Floating survey button（依 Figma：377 × 78、圓角 20） */
        --spica-m-survey-btn-width: min(377px, calc(100% - 16px));
        --spica-m-survey-btn-height: clamp(64px, 20.7vw, 78px);
        --spica-m-survey-btn-bottom: max(8px, env(safe-area-inset-bottom));
        --spica-m-survey-btn-radius: 20px;
        --spica-m-survey-btn-color: #FFFFFF;
        --spica-m-survey-btn-font-size: clamp(1.1rem, 4.4vw, 1.375rem);
        --spica-m-survey-btn-bg: rgba(35, 51, 72, .66);   /* 與 Why SPICA 手機版卡片相同 */
    }

    /* ---------------------------------------------------------
     * Shared Mobile Layout：各區塊底圖、比例與內容框架
     * --------------------------------------------------------- */
    .home-hero,
    .home-hero-slide,
    .home-scan,
    .home-stories,
    .home-why,
    .home-start {
        min-height: 0;
        background-image: var(--section-bg-mobile, var(--section-bg-pc, var(--section-bg)));
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
    }

    .home-hero,
    .home-scan,
    .home-stories,
    .home-why,
    .home-start {
        width: 100%;
    }

    .home-hero    { aspect-ratio: 1000 / 1957; }
    .home-scan    { aspect-ratio: 1000 / 1568; }
    .home-stories { aspect-ratio: 1000 / 1685; }
    .home-why     { aspect-ratio: 1000 / 1070; }
    .home-start   { aspect-ratio: 1000 / 2037; }

    .home-scan,
    .home-stories,
    .home-start {
        padding: 0;
    }

    .home-scan > .container,
    .home-stories > .container,
    .home-start > .container {
        position: relative;
        height: 100%;
    }

    .home-scan .row,
    .home-stories .row,
    .home-start .row {
        display: block;
        height: 100%;
        min-height: 0;
        margin-right: 0;
        margin-left: 0;
    }

    .home-scan .row,
    .home-start .row {
        align-items: flex-start !important;
    }

    .home-scan .row > *,
    .home-stories .row > *,
    .home-start .row > * {
        padding-right: 0;
        padding-left: 0;
    }

    /* ---------------------------------------------------------
     * Shared Mobile Typography：Scan / Stories / Works / Start 共用字級
     * --------------------------------------------------------- */
    .home-scan .section-kicker,
    .home-stories .section-kicker,
    .works-heading .section-kicker,
    .home-start .section-kicker {
        font-size: var(--spica-m-section-en-font-size);
        line-height: 1.05;
    }

    .home-scan .section-kicker {
        margin-bottom: .3rem;
    }

    .home-stories .section-kicker,
    .home-start .section-kicker {
        margin-bottom: .2rem;
    }

    .works-heading .section-kicker {
        margin-bottom: .22rem;
    }

    .home-scan .section-title,
    .home-stories .section-title,
    .works-heading .section-title,
    .home-start .section-title {
        margin-bottom: 0;
        font-size: var(--spica-m-section-zh-font-size);
        line-height: 1.35;
    }

    .home-scan .title-line,
    .home-stories .title-line,
    .home-start .title-line {
        width: min(26vw, 200px);
        height: 1px;
        margin: clamp(10px, 4.2vw, 30px) 0;
    }

    .home-scan .section-desc,
    .home-stories .section-desc,
    .works-desc,
    .home-start .section-desc {
        font-size: var(--spica-m-section-desc-font-size);
        line-height: var(--spica-m-section-desc-line-height);
        letter-spacing: var(--spica-m-section-letter-spacing);
    }

    .home-scan .section-desc,
    .home-start .section-desc {
        max-width: 100%;
    }

    /* ---------------------------------------------------------
     * Hero
     * --------------------------------------------------------- */
    .home-hero-inner {
        top: 26%;
        right: 0;
        left: 0;
        width: auto;
        transform: none;
        text-align: center;
    }

    .home-hero-inner::before {
        display: none;
        height: 0;
    }

    .hero-subtitle {
        max-width: min(86%, 460px);
        margin: 0 auto 6%;
        font-size: var(--spica-m-hero-subtitle-font-size);
        line-height: 1.45;
        letter-spacing: .08em;
        text-align: center;
    }

    .hero-btn-row-left,
    .hero-btn-row-center,
    .hero-btn-row-right {
        text-align: center;
    }

    .spica-home .home-hero .spica-btn-light {
        width: 220px;
    }

    .spica-home .home-hero .spica-btn-light > span {
        font-size: 20px;
    }

    /* ---------------------------------------------------------
     * The Deep Scan
     * --------------------------------------------------------- */
    .home-scan-copy {
        position: absolute;
        top: 8%;
        left: 0;
        width: 80%;
        padding: 0;
    }

    .scan-topic-list {
        display: none;
    }

    /* ---------------------------------------------------------
     * Customer Stories
     * --------------------------------------------------------- */
    .home-stories-copy {
        position: absolute;
        top: var(--spica-m-stories-copy-top);
        right: 7.2%;
        left: var(--spica-m-stories-copy-left);
        z-index: 2;
        width: auto;
        padding: 0;
    }

    .home-stories .section-kicker {
        max-width: none;
    }

    .home-stories .section-desc {
        max-width: 90%;
    }

    /* ---------------------------------------------------------
     * Customer Stories
     * --------------------------------------------------------- */
    .home-stories .row > .col-lg-8 {
        position: absolute;
        top: var(--spica-m-stories-card-top);
        right: 0;
        bottom: auto;
        left: 0;
        z-index: 3;
        width: 100%;
        margin: 0;
    }

    .spica-story-swiper {
        padding: 0;
        overflow: visible;
    }

    .spica-story-swiper .swiper-wrapper {
        align-items: flex-start;
    }

    .spica-story-swiper .swiper-slide {
        width: auto;
    }

    .story-card,
    .story-card:hover,
    .story-card-active,
    .spica-story-swiper .swiper-slide-active .story-card,
    .spica-story-swiper .swiper-slide .story-card:hover {
        width: var(--spica-m-stories-card-width);
        min-height: 0;
        margin: 0 auto;
        transform: none !important;
        aspect-ratio: 241 / 336;
        border-radius: 20px;
    }

    .story-avatar {
        height: 100%;
    }

    .story-card-body {
        position: absolute;
        bottom: 0;
        z-index: 2;
        width: 100%;
        height: 35%;
        padding: var(--spica-m-stories-card-body-padding);
        background: rgba(255, 255, 255, .62);
        -webkit-backdrop-filter: blur(3px) saturate(115%);
        backdrop-filter: blur(3px) saturate(115%);
        border-radius: 20px 20px 0 0;
    }

    .story-card h3 {
        margin-bottom: .55rem;
        font-size: var(--spica-m-story-title-font-size);
    }

    .story-card ul {
        margin-bottom: .4rem;
        padding-left: 2rem;
        line-height: 1.6;
    }

    .story-card ul li {
        font-size: var(--spica-m-story-text-font-size);
    }

    .story-card p {
        display: none;
    }

    .story-control-row {
        display: none;
    }

    /* Customer Stories：手機版 pagination */
    .story-pagination-mobile {
        position: absolute;
        top: 100%;
        right: 0;
        bottom: auto !important;
        left: 0;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100% !important;
        margin-top: 18px;
        pointer-events: auto;
    }

    .story-pagination-mobile .story-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #9aa4ae;
    }

    .story-pagination-mobile .story-dot.is-active {
        background: #2e3945;
    }

    /* ---------------------------------------------------------
     * Customer Stories：Coverflow 狀態
     * --------------------------------------------------------- */
    .spica-story-swiper.is-story-coverflow .swiper-slide {
        width: var(--spica-m-stories-card-width);
        opacity: var(--spica-m-story-far-opacity);
        transform: translateY(var(--spica-m-story-far-y)) scale(var(--spica-m-story-far-scale)) !important;
        transition: var(--spica-m-story-slide-transition);
        z-index: 1;
    }

    .spica-story-swiper.is-story-coverflow .swiper-slide-prev {
        opacity: var(--spica-m-story-side-opacity);
        transform: translateX(var(--spica-m-story-prev-x)) translateY(var(--spica-m-story-side-y)) scale(var(--spica-m-story-side-scale)) !important;
        z-index: 2;
    }

    .spica-story-swiper.is-story-coverflow .swiper-slide-next {
        opacity: var(--spica-m-story-side-opacity);
        transform: translateX(var(--spica-m-story-next-x)) translateY(var(--spica-m-story-side-y)) scale(var(--spica-m-story-side-scale)) !important;
        z-index: 2;
    }

    .spica-story-swiper.is-story-coverflow .swiper-slide-active {
        opacity: 1;
        transform: translateY(var(--spica-m-story-active-y)) scale(var(--spica-m-story-active-scale)) !important;
        z-index: 4;
    }

    /* 卡片疊層修正：
       1. coverflow 會開啟 preserve-3d，iOS / Chrome 會忽略 z-index 改依 DOM 順序疊放，
          loop 重排 slide 後就會出現左右卡片蓋住中間卡片 → 改回平面疊層。
       2. 桌機的 --story-z-index 與 :hover（手機點擊會觸發）都帶 !important，
          這裡用更高權重固定：中間 > 左右 > 其他。 */
    .home-stories .spica-story-swiper.is-story-coverflow,
    .home-stories .spica-story-swiper.is-story-coverflow .swiper-wrapper,
    .home-stories .spica-story-swiper.is-story-coverflow .swiper-slide {
        transform-style: flat !important;
    }

    .home-stories .spica-story-swiper.is-story-coverflow .swiper-slide {
        z-index: 1 !important;
    }

    .home-stories .spica-story-swiper.is-story-coverflow .swiper-slide-prev,
    .home-stories .spica-story-swiper.is-story-coverflow .swiper-slide-next {
        z-index: 2 !important;
    }

    .home-stories .spica-story-swiper.is-story-coverflow .swiper-slide-active {
        z-index: 10 !important;
    }

    .spica-story-swiper.is-story-coverflow .story-card,
    .spica-story-swiper.is-story-coverflow .story-card:hover,
    .spica-story-swiper.is-story-coverflow .story-card-active,
    .spica-story-swiper.is-story-coverflow .swiper-slide-active .story-card,
    .spica-story-swiper.is-story-coverflow .swiper-slide .story-card:hover {
        width: var(--spica-m-stories-card-width);
    }

    /* ---------------------------------------------------------
     * How It Works：sticky 容器
     * --------------------------------------------------------- */
    .home-works[data-works-scroll] {
        --works-mobile-visual-height: calc(100vw * 2288 / 1000);
        --works-scroll-extra: 180vh;

        min-height: calc(var(--works-mobile-visual-height) + var(--works-scroll-extra));
        aspect-ratio: auto;
        background: none;
        overflow: visible;
    }

    .home-works[data-works-scroll] .home-works-sticky {
        position: sticky;
        top: -15px;
        height: var(--works-mobile-visual-height);
        min-height: 0;
        background-image: var(--section-bg-mobile, var(--section-bg-pc, var(--section-bg)));
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
        overflow: hidden;
    }

    .home-works[data-works-scroll] .home-works-sticky > .container {
        display: flex;
        align-items: flex-start;
        height: 100%;
    }

    .home-works[data-works-scroll] .works-panel {
        justify-content: flex-start;
        width: 100%;
        min-height: 0;
        padding: var(--spica-m-works-panel-top) 0 0;
    }

    /* ---------------------------------------------------------
     * How It Works：標題區
     * --------------------------------------------------------- */
    .works-heading {
        width: 100%;
        padding: 0 var(--spica-m-works-side-space);
    }

    .works-heading .section-title::after {
        content: "";
        display: block;
        width: var(--spica-m-works-title-line-width);
        height: 1px;
        margin: var(--spica-m-works-title-line-margin);
        background: currentColor;
        opacity: .72;
    }

    .works-desc {
        max-width: min(88%, 460px);
        margin-bottom: var(--spica-m-works-desc-margin-bottom);
    }

    .works-main {
        width: 100%;
    }

    .works-list {
        margin: 0 var(--spica-m-works-side-space);
    }

    /* ---------------------------------------------------------
     * How It Works：步驟列
     * --------------------------------------------------------- */
    .works-item {
        grid-template-columns: var(--spica-m-works-item-num-width) minmax(0, 1fr);
        min-height: 0;
        overflow: hidden;
        transition: background .25s ease, border-color .25s ease;
    }

    .works-item-num {
        grid-column: 1;
        grid-row: 1;
        align-items: center;
        padding: var(--spica-m-works-row-y) 0;
    }

    .works-item-num img {
        width: clamp(2rem, 7.6vw, 2.8rem);
    }

    .works-item-content,
    .works-item.active .works-item-content {
        display: contents;
        padding: 0;
    }

    .works-item strong {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        padding-top: var(--spica-m-works-row-y);
        padding-bottom: var(--spica-m-works-row-y);
        font-size: var(--spica-m-works-step-title-font-size);
    }

    .works-item hr {
        display: none;
    }

    .works-item-media,
    .works-item:not(.active) .works-item-media,
    .works-item.active .works-item-media {
        position: relative;
        display: block;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-height: 0;
        max-height: none;
        overflow: hidden;
        aspect-ratio: auto;
        transition: height var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease),
            margin-top var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease),
            opacity .42s ease,
            transform var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease);
    }

    .works-item-media,
    .works-item:not(.active) .works-item-media {
        height: 0;
        margin-top: 0;
        opacity: 0;
        visibility: visible;
        transform: translateY(-8px);
    }

    .works-item.active .works-item-media {
        height: var(--spica-m-works-active-image-height);
        margin-top: var(--spica-m-works-image-margin-top);
        opacity: 1;
        transform: translateY(0);
    }

    .works-item small,
    .works-item.active small {
        grid-column: 1 / -1;
        grid-row: 3;
        height: auto;
        max-width: none;
        overflow: hidden;
        transition: max-height var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease),
            margin-top var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease),
            padding-bottom var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease),
            opacity .42s ease,
            transform var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease);
    }

    .works-item small {
        max-height: 0;
        margin-top: 0;
        padding-right: calc(var(--spica-m-works-side-space) * .9);
        padding-bottom: 0;
        padding-left: calc(var(--spica-m-works-side-space) * .9);
        font-size: var(--spica-m-works-step-desc-font-size);
        line-height: 1.6;
        opacity: 0;
        transform: translateY(-8px);
    }

    .works-item.active small {
        max-height: var(--spica-m-works-active-desc-max-height);
        margin-top: var(--spica-m-works-active-desc-margin-top);
        padding-bottom: var(--spica-m-works-active-desc-padding-bottom);
        letter-spacing: var(--spica-m-section-letter-spacing);
        opacity: 1;
        transform: translateY(0);
    }

    /* ---------------------------------------------------------
     * Why SPICA：標題區＋毛玻璃輪播區
     * --------------------------------------------------------- */
    .home-why {
        overflow: visible;
    }

    .home-why .container-fluid {
        width: 100%;
        height: 100%;
        padding: 0 !important;
    }

    .why-mobile-title {
        position: absolute;
        top: -80px;
        right: 0;
        left: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 70px;
        margin: 0;
        color: #aeb8c4;
        font-family: 'Montserrat', sans-serif;
        font-size: var(--spica-m-why-title-font-size);
        font-weight: 200;
        line-height: 1.2;
        text-align: center;
        transform: none;
        pointer-events: none;
    }

    .why-side-title-div {
        display: none;
    }

    .why-panel {
        position: relative;
        inset: auto;
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 0;
        transform: none;
    }

    .why-panel .row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        height: 100%;
        margin: 0;
        gap: 0;
    }

    .why-panel .swiper-slide {
        flex: 0 0 var(--spica-m-why-slide-width);
        width: var(--spica-m-why-slide-width) !important;
        height: 100%;
        padding: 0;
        opacity: var(--spica-m-why-side-opacity);
        transform: scale(var(--spica-m-why-side-scale));
        transition: opacity .42s ease, transform .42s ease;
    }

    .why-panel .swiper-slide-active {
        opacity: 1;
        transform: scale(1);
    }

    .why-item {
        padding: 0;
        border: 0 !important;
    }

    /* 手機版不使用桌機 hover 底圖與毛玻璃遮罩 */
    .why-item::before,
    .why-item::after,
    .why-item:hover::before,
    .why-item:hover::after {
        opacity: 0;
        visibility: hidden;
    }

    .why-item-default,
    .why-item:hover .why-item-default {
        display: none;
    }

    .why-item-hover,
    .why-item:hover .why-item-hover {
        display: flex;
        align-items: center;
        justify-content: center;
        width: var(--spica-m-why-card-width);
        min-height: var(--spica-m-why-card-min-height);
        margin: 0 auto;
        padding: var(--spica-m-why-card-padding-y) var(--spica-m-why-card-padding-x);
        text-align: center;
        background: rgba(35, 51, 72, .66);
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: var(--spica-m-why-card-radius);
        box-shadow: 0 24px 54px rgba(18, 29, 42, .35);
        transform: none;
        -webkit-backdrop-filter: blur(5px) saturate(60%);
        backdrop-filter: blur(5px) saturate(60%);
        aspect-ratio: 56 / 51;
    }

    .why-item-hover h3 {
        order: 1;
        margin-bottom: .45rem;
        font-size: var(--spica-m-why-card-title-font-size);
    }

    .why-item-hover p {
        order: 2;
        margin: 0;
    }

    .why-item p {
        font-size: var(--spica-m-why-card-title-2-font-size);
    }

    .why-item-hover hr {
        order: 3;
        width: 38px;
        margin: 1.3rem auto;
    }

    .why-item-hover small {
        order: 4;
    }

    .why-item small {
        max-width: none;
        font-size: var(--spica-m-why-card-desc-font-size);
        line-height: 1.3;
        letter-spacing: 0;
    }

    /* Why SPICA：手機版 Pagination */
    .home-why .why-pagination {
        position: absolute;
        top: auto;
        right: 0;
        bottom: 3%;
        left: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 12px;
        margin: 0;
        padding: 0;
        transform: none;
        pointer-events: auto;
    }

    .home-why .why-pagination .why-pagination-bullet {
        display: block;
        flex: 0 0 7px;
        width: 7px;
        height: 7px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background-color: #aeb8c4;
        opacity: 0.85;
        appearance: none;
        cursor: pointer;
    }

    .home-why .why-pagination .why-pagination-bullet-active {
        background-color: #fff;
        opacity: 1;
    }

    /* ---------------------------------------------------------
     * Start With You: 隱藏區塊內按鈕，改由固定「立即檢測」按鈕
     * --------------------------------------------------------- */
    .home-start-copy {
        position: absolute;
        top: 6.25%;
        left: 7.2%;
        width: min(62%, 340px);
        padding: 0;
    }

    .home-start .section-bottom {
        display: none;
    }

    /* ---------------------------------------------------------
     * Floating Survey Button：手機版固定「立即檢測」按鈕
     * --------------------------------------------------------- */
    .spica-home .spica-mobile-survey-btn {
        position: fixed;
        bottom: var(--spica-m-survey-btn-bottom);
        left: 50%;
        right: auto;
        z-index: 900;
        width: var(--spica-m-survey-btn-width);
        min-width: 0;
        max-width: calc(100% - 16px);
        height: var(--spica-m-survey-btn-height);
        min-height: 0;
        margin: 0;
        padding: 0 24px;
        font-size: var(--spica-m-survey-btn-font-size);
        font-weight: 500;
        line-height: 1;
        letter-spacing: .04em;
        aspect-ratio: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(-50%, 22px, 0);
        transition: opacity .28s ease, transform .28s ease;
        will-change: transform, opacity;
    }

    .spica-home .spica-mobile-survey-btn.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .spica-home .spica-mobile-survey-btn.is-visible,
    .spica-home .spica-mobile-survey-btn:hover,
    .spica-home .spica-mobile-survey-btn:focus {
        transform: translate3d(-50%, 0, 0);
    }

    .spica-home .spica-mobile-survey-btn,
    .spica-home .spica-mobile-survey-btn:hover,
    .spica-home .spica-mobile-survey-btn:focus {
        color: var(--spica-m-survey-btn-color);
        background: var(--spica-m-survey-btn-bg) !important;
        border: 1px solid rgba(255, 255, 255, .18) !important;
        border-radius: var(--spica-m-survey-btn-radius);
        box-shadow: 0 24px 54px rgba(18, 29, 42, .35);
        -webkit-backdrop-filter: blur(5px) saturate(60%);
        backdrop-filter: blur(5px) saturate(60%);
        text-shadow: none;
    }

    /* 還原 .visually-hidden，讓按鈕文字顯示 */
    .spica-home .spica-mobile-survey-btn .visually-hidden {
        position: static !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    /* ---------------------------------------------------------
     * Footer：預留懸浮按鈕安全空間
     * --------------------------------------------------------- */
    .spica-home .site-footer__inner {
        padding-bottom: calc(
            var(--spica-m-footer-padding-bottom)
            + var(--spica-m-survey-btn-height)
            + var(--spica-m-survey-btn-bottom)
            + var(--spica-m-survey-footer-gap)
        );
    }
}

/* =========================================================
 * 13-1. Customer Stories：469px ~ 991.98px（大手機 / 平板）
 * 卡片寬度在 469px 起固定 300px，若區塊仍依 1000:1685 比例長高，
 * 圓點與下一區會留下大片空白 → 此區間改為依內容撐開高度。
 * ========================================================= */
@media (min-width: 469px) and (max-width: 991.98px) {
    .spica-home .home-stories {
        aspect-ratio: auto;
        padding: clamp(32px, 5vw, 48px) 0 clamp(16px, 3vw, 28px);
    }

    .home-stories .row {
        display: flex;
        flex-direction: column;
        margin-top: 0;
    }

    .home-stories .home-stories-copy {
        position: static;
        width: auto;
        margin: 0 7.2% 0 8%;
    }

    .home-stories .row > .col-lg-8 {
        position: relative;
        top: auto;
        margin: clamp(40px, 7vw, 64px) 0 0;
    }

    .home-stories .story-pagination-mobile {
        position: relative;
        top: auto;
        margin-top: 18px;
    }
}

/* =========================================================
 * 13-2. Customer Stories：468.98px 以下（一般手機）
 * 原本卡片固定在區塊 42% 高度，窄螢幕說明文字換行變多時會被卡片蓋住。
 * 改為：文案在上、卡片在下的排列；文案區保留最小高度，
 * 讓卡片一般情況仍落在 42%（Figma 位置），文字較長時卡片自動往下推、區塊跟著長高。
 * ========================================================= */
@media (max-width: 468.98px) {
    .home-stories {
        --stories-m-height: calc(100vw * 1685 / 1000);   /* 原本 1000:1685 的區塊高度 */
        --stories-m-card-gap: 24px;                       /* 說明文字與卡片的最小距離 */
    }

    .spica-home .home-stories {
        aspect-ratio: auto;
        min-height: var(--stories-m-height);
        padding-bottom: 16px;
    }

    /* 取消 h-100，讓內容可以把區塊撐高 */
    .home-stories > .container,
    .home-stories .row {
        height: auto !important;
    }

    .home-stories .row {
        display: flex;
        flex-direction: column;
        margin-top: 0;
    }

    .home-stories .home-stories-copy {
        position: static;
        width: auto;
        min-height: calc(var(--stories-m-height) * .42 - var(--stories-m-card-gap));
        margin: 0 7.2% 0 8%;
        padding-top: calc(var(--stories-m-height) * .04);
    }

    .home-stories .row > .col-lg-8 {
        position: relative;
        top: auto;
        margin: var(--stories-m-card-gap) 0 0;
    }

    .home-stories .story-pagination-mobile {
        position: relative;
        top: auto;
        margin-top: 18px;
    }
}

/* =========================================================
 * 14. Small mobile
 * ========================================================= */
@media (max-width: 575.98px) {
    :root {
        --spica-m-footer-padding-bottom: 34px;
    }

    .home-scan-copy,
    .home-start-copy {
        left: 8%;
        width: 85%;
    }
}