/* =========================================================
   HOME HERO SECTION STYLES
   (Sticky Video, Cover Letter, Scroll Guide, Buttons)
   ========================================================= */

/* ---------- Cover Pin Container ---------- */
.cover-pin-container {
    pointer-events: none !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.cover-layer {
    position: absolute;
    top: 0;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background: #9C0002 !important;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100vw);
    z-index: 2;
    transition: none;
    will-change: transform;
    contain: layout paint;
    overflow-x: hidden;
}




/* ---------- Cover Letter Wrapper ---------- */
.hero-sticky-wrapper {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

/* ---------- Scroll Guide ---------- */
.hero-sticky-wrapper .scroll-guide {
    z-index: 15 !important;
}

/* Hide old Elementor widgets with this class by default */
.Cover-Letter {
    display: none !important;
    z-index: 5 !important;
}

/* Scope Cover Letter to our shortcode wrapper only */
.hero-sticky-wrapper .Cover-Letter {
    display: block !important;
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    width: 45%;
    left: 2%;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5 !important;
}

/* Typography Base Styles */
.hero-sticky-wrapper .Cover-Letter .T1,
.hero-sticky-wrapper .Cover-Letter .T2,
.hero-sticky-wrapper .Cover-Letter .T3,
.hero-sticky-wrapper .Cover-Letter .T4 {
    flex-wrap: nowrap;
    hyphens: auto !important;
    display: -webkit-box !important;
    overflow: hidden !important;
    transition: font-size 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-sticky-wrapper .Cover-Letter .T1,
.hero-sticky-wrapper .Cover-Letter .T2 {
    line-height: 1.2;
    font-weight: 600;
    font-family: "Noto Serif", serif;
    font-style: italic;
    line-clamp: 1;
    -webkit-line-clamp: 1;
}

.hero-sticky-wrapper .Cover-Letter .T3 {
    line-height: 1.2;
    letter-spacing: 1px !important;
    font-weight: 600;
    font-style: italic;
    font-family: "Besley", serif;
    line-clamp: 1;
    padding: 10px;
}

.hero-sticky-wrapper .Cover-Letter .T1 {
    margin: -10px 0 -15px 0;
    position: absolute;
    top: clamp(65px, 6vw, 75px);
    left: clamp(-30px, -3vw, -40px);
    opacity: 0.8;
}

.hero-sticky-wrapper .hero-title-group {
    position: relative;
    margin-left: clamp(30px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 40px;
    box-sizing: border-box;
}

.hero-sticky-wrapper .t1t3-text {
    margin-bottom: clamp(-10px, -1.5vw, -20px);
}

.hero-sticky-wrapper .Cover-Letter .T4 {
    font-family: "Besley", serif;
    font-weight: 400;
    line-height: 1.7;
    margin: 5px 0;
}

/* ---------- Buttons Container ---------- */
.But-Con {
    width: clamp(470px, 35vw, 800px);
}

.cb .uc_button_wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0px;
}

/* ============================= */
/* 📌 Desktop (≥1025px)          */
/* ============================= */
@media (min-width: 1025px) {
    .hero-sticky-wrapper .Cover-Letter .T1 {
        font-size: clamp(35px, 2.5vw, 60px);
    }

    .hero-sticky-wrapper .Cover-Letter .T2 {
        font-size: clamp(30px, 3.5vw, 70px);
    }

    .hero-sticky-wrapper .Cover-Letter .T3 {
        font-size: clamp(65px, 7vw, 150px);
    }

    .hero-sticky-wrapper .Cover-Letter .T4 {
        font-size: clamp(12px, 1.1vw, 20px);
    }

    .t2-text,
    .t1-text,
    .t1t3-text {
        max-width: 100%;
    }

    .t4-text {
        width: clamp(470px, 35vw, 800px);
        max-width: 100%;
    }
}

/* ============================= */
/* 📌 Tablet (768px - 1024px)    */
/* ============================= */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-sticky-wrapper .Cover-Letter {
        z-index: 0 !important;
        width: clamp(450px, 65%, 650px);
        left: 5%;
        transform: translateY(-50%);
    }

    .But-Con,
    .t4-text {
        width: 100% !important;
        /* Make buttons and text take full width of Cover-Letter */
        max-width: 100%;
    }

    /* Bring scroll layer above the text */
    .hero-sticky-wrapper .cover-pin-container {
        z-index: 10 !important;
    }

    /* Center the spiral grid like mobile */
    .hero-sticky-wrapper .spiral-grid {
        width: 90vw !important;
        max-width: 100% !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    /* Keep font sizes appropriate for tablet */
    .hero-sticky-wrapper .Cover-Letter .T1 {
        font-size: clamp(30px, 4vw, 50px);
    }

    .hero-sticky-wrapper .Cover-Letter .T2 {
        font-size: clamp(40px, 5vw, 60px);
    }

    .hero-sticky-wrapper .Cover-Letter .T3 {
        font-size: clamp(80px, 10vw, 120px);
    }

    .hero-sticky-wrapper .Cover-Letter .T4 {
        font-size: clamp(14px, 2vw, 20px);
    }

    /* Ensure text container doesn't overflow */
    .t4-text,
    .t2-text,
    .t1-text,
    .t1t3-text {
        max-width: 100%;
    }
}

/* ============================= */
/* 📌 Mobile (≤767px)            */
/* ============================= */
@media (max-width: 767px) {
    .hero-sticky-wrapper .Cover-Letter {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 5vw !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        z-index: 5 !important;
        top: 46%;
        left: 0;
        transform: translateY(-50%);
        box-sizing: border-box !important;
    }

    .hero-sticky-wrapper .cover-pin-container {
        z-index: 10 !important;
    }

    .hero-sticky-wrapper .spiral-grid {
        width: 90vw !important;
        max-width: 100% !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .hero-sticky-wrapper .Cover-Letter .T1 {
        font-size: 25px;
        top: 45px;
        left: -16px;
    }

    .hero-sticky-wrapper .Cover-Letter .T2 {
        font-size: 32px;
    }

    .hero-sticky-wrapper .Cover-Letter .T3 {
        font-size: 60px;
    }

    .hero-sticky-wrapper .t4-text {
        display: none !important;
    }

    .hero-sticky-wrapper .Cover-Letter * {
        pointer-events: auto !important;
    }

    .hero-sticky-wrapper .But-Con {
        flex-direction: column !important;
        width: 100% !important;
        gap: 5px !important;
        height: 40px !important;
    }

    .hero-sticky-wrapper .cb {
        width: 100% !important;
        flex: none !important;
    }
}