/* ==============================================================
   KIMI PILLAR SECTION v5 — GSAP ScrollTrigger horizontal pin/scrub
   Pattern (client-provided, adapted):
     .main { overflow-x:hidden }                 -> .kps-main (GSAP pin target)
     .horizontal-sliders { display:flex; width:N00% } -> .kps-track
     .slide { width:100% }                        -> .kps-slide (1/N of track)

   IMPORTANT: the JS animates `x` in pixels, NOT `xPercent`.
   xPercent is relative to the TRACK's own (already N*100vw-wide)
   bounding box, so mixing it with a track that's pre-scaled by N
   causes a double-scaling bug — slides land mid-transition with a
   visible blank gap. Pixel-based `x` sidesteps that entirely.
   ============================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800;900&display=swap");

/* ── Reset cascade inside our scope ──────────────────────────── */
.kps-main,
.kps-main * ,
.kps-main *::before,
.kps-main *::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.kps-main {
    all: initial;
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;          /* clip the wide track, matches client's .main */
    background-color: #0A0A0B;
    font-family: 'Inter', Arial, sans-serif;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    text-align: left;
    direction: ltr;
}

/* GSAP's pin wraps .kps-main in an auto-generated .pin-spacer div
   that does NOT inherit overflow:hidden from .kps-main above.
   Without this, the next slide's edge can peek through on the
   right while the section is pinned. This forces the clip on
   whatever wraps it. */
.pin-spacer:has(> .kps-main) {
    overflow: hidden !important;
}
/* fallback for browsers without :has() support */
.pin-spacer {
    overflow: hidden;
}

.kps-main * { box-sizing: border-box; }

/* ── Track: GSAP sets transform (xPercent) on this element ───── */
.kps-main .kps-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    /* width is set inline per-instance: N * 100% (N = slide count) */
    margin: 0;
    padding: 0;
    list-style: none;
    will-change: transform;
    /* NO transition here — GSAP scrub drives transform every frame */
}

/* ── Each slide: equal share of the track's total width ──────── */
.kps-main .kps-slide {
    flex: 0 0 auto !important;
    /* width is set in % relative to the *track*, so each slide
       occupies exactly 1/N of the track (= 100% of the viewport) */
    width: calc(100% / var(--kps-total, 1));
    margin: 0;
    padding: 0;
}

/* ── Card: image + content side by side ──────────────────────── */
.kps-main .kps-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100%;
    height: 600px;                /* ~square: image is 42% wide, 520px tall ≈ square on 1280px screens */
    max-height: 85vh;             /* never exceed the viewport on short screens */
    background-color: #0A0A0B;
    margin: 0;
    padding: 0;
}

/* ── LEFT image panel ─────────────────────────────────────────── */
.kps-main .kps-imgwrap {
    position: relative;
    display: block;
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50%;
    height: 100%;                /* match card height, not the viewport */
    overflow: hidden;
    background-color: #141415;
    margin: 0;
    padding: 0;
	border-radius:20px !important;
}

.kps-main .kps-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    transition: opacity 0.35s ease, transform 0.4s ease;
    border: 0;
    margin: 0;
    padding: 0;
    max-width: none;
	border-radius:20px !important;
}
 
.kps-main .kps-img.kps-fade {
    opacity: 0;
    transform: scale(1.02);
}

/* sun / daylight button */
.kps-main .kps-sunbtn {
    all: unset;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background-color: rgba(14,14,15,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #A1A1A6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.kps-main .kps-sunbtn svg { width: 18px; height: 18px; display: block; }
.kps-main .kps-sunbtn:hover {
    background-color: rgba(212,168,67,0.22);
    border-color: #D4A843;
    color: #D4A843;
    box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}
.kps-main .kps-sunbtn.kps-day {
    background-color: rgba(212,168,67,0.28);
    border-color: #D4A843;
    color: #D4A843;
    box-shadow: 0 0 18px rgba(212,168,67,0.4);
}

/* glass overlay row on image bottom */
.kps-main .kps-glassrow {
    position: absolute;
    bottom: 18px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 20;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kps-main .kps-gbtn {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.22);
    background-color: rgba(14,14,15,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #A1A1A6;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1.2;
    white-space: nowrap;
}
.kps-main .kps-gbtn:hover {
    background-color: rgba(255,255,255,0.14);
    color: #ffffff;
    border-color: rgba(255,255,255,0.38);
}
.kps-main .kps-gbtn.kps-gbtn-on {
    background-color: #D4A843;
    border-color: #D4A843;
    color: #0A0A0B;
    font-weight: 600;
}

/* ── RIGHT content panel ──────────────────────────────────────── */
.kps-main .kps-content {
    flex: 1 1 58% !important;
    width: 58%;
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    padding: 2rem 3rem;
    background-color: #0A0A0B;
    overflow-y: auto;          /* safety fallback only — should rarely trigger now */
    max-height: 100%;
}

/* Thin, subtle scrollbar for the rare case content still overflows
   (keeps it from looking like a broken browser-default scrollbar) */
.kps-main .kps-content::-webkit-scrollbar {
    width: 4px;
}
.kps-main .kps-content::-webkit-scrollbar-track {
    background: transparent;
}
.kps-main .kps-content::-webkit-scrollbar-thumb {
    background-color: rgba(212,168,67,0.35);
    border-radius: 9999px;
}
.kps-main .kps-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(212,168,67,0.35) transparent;
}

.kps-main .kps-title {
    display: block;
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: clamp(36px, 4.2vw, 60px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    margin: 0 0 0.4rem 0 !important;
    padding: 0 !important;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-align: left;
}

.kps-main .kps-subtitle {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 20px !important;
    font-style: italic !important;
    font-weight: 400 !important;
    color: #D4A843 !important;
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    line-height: 1.3;
    text-align: left;
}

.kps-main .kps-desc {
    display: block;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    color: #A1A1A6 !important;
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
    max-width: 480px;
    text-align: left;
}

/* ── Specs ─────────────────────────────────────────────────────── */
.kps-main .kps-specs {
    display: block;
    width: 100%;
    border-top: 1px solid #2A2A2C;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

.kps-main .kps-srow {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #2A2A2C;
    margin: 0;
}

.kps-main .kps-slbl {
    display: inline-block;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #A1A1A6;
    margin: 0;
    padding: 0;
}

.kps-main .kps-sval {
    display: inline-block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #D4A843;
    letter-spacing: 0.04em;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.kps-main .kps-schk {
    display: inline-block;
    font-size: 15px;
    color: #D4A843;
    font-weight: 400;
}

/* ── Finish / pill groups ─────────────────────────────────────────── */
.kps-main .kps-finwrap {
    display: block;
    width: 100%;
    margin: 0 0 0.5rem 0;
}

.kps-main .kps-grplbl {
    display: block;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #A1A1A6 !important;
    letter-spacing: 0.06em;
    margin: 0 0 0.55rem 0 !important;
    padding: 0 !important;
}

.kps-main .kps-pillrow {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.kps-main .kps-pillrow-wrap { flex-wrap: wrap !important; }

.kps-main .kps-pill {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    font-family: 'Inter', Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.18s ease;
    line-height: 1.2;
}

.kps-main .kps-pill-sec {
    padding: 7px 15px;
    border-radius: 9999px;
    border: 1px solid #2A2A2C;
    background-color: transparent;
    color: #A1A1A6;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.kps-main .kps-pill-sec:hover {
    border-color: #3A3A3C;
    color: #ffffff;
    background-color: rgba(255,255,255,0.04);
}
.kps-main .kps-pill-sec.kps-pill-on {
    border-color: #D4A843;
    color: #ffffff;
    background-color: rgba(212,168,67,0.10);
}

.kps-main .kps-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.22);
    flex-shrink: 0;
}

.kps-main .kps-pill-pri {
    padding: 9px 22px;
    border-radius: 9999px;
    background-color: #D4A843;
    color: #0A0A0B;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1.5px solid #D4A843;
}
.kps-main .kps-pill-pri:hover {
    background-color: #C49A3B;
    border-color: #C49A3B;
    box-shadow: 0 6px 20px rgba(212,168,67,0.32);
    transform: translateY(-1px);
}
.kps-main .kps-pill-pri.kps-pill-on {
    box-shadow: 0 6px 20px rgba(212,168,67,0.28);
}

.kps-main .kps-pill-gl {
    padding: 7px 15px;
    border-radius: 9999px;
    background-color: rgba(255,255,255,0.06);
    color: #A1A1A6;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255,255,255,0.12);
}
.kps-main .kps-pill-gl:hover {
    background-color: rgba(255,255,255,0.12);
    color: #ffffff;
    border-color: rgba(255,255,255,0.28);
}
.kps-main .kps-pill-gl.kps-pill-on {
    background-color: #D4A843;
    color: #0A0A0B;
    border-color: #D4A843;
    font-weight: 700;
}

/* ── Progress indicator (replaces dot-nav; pure CSS, no click) ── */
.kps-main .kps-progress {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex !important;
    flex-direction: column !important;
    gap: 9px;
    z-index: 100;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;       /* purely visual, GSAP scroll drives position */
}

.kps-main .kps-pdot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: rgba(161,161,166,0.45);
    transition: background-color 0.2s, transform 0.2s;
}
.kps-main .kps-pdot.kps-pdot-on {
    background-color: #D4A843;
    transform: scale(1.35);
}
kps-main .kps-img img { border-radius:20px !important;}
kps-main .kps-img:hover { border-radius:20px !important ;}
.elementor-element-4bb164b .elementor-kit-15 img:hover {border-radius:20px}

/* ── Mobile fallback: GSAP pin is disabled under 960px (see JS),
       so the track stacks normally — undo all horizontal-scroll
       specific sizing here ─────────────────────────────────────── */
@media (max-width: 960px) {
    .kps-main { overflow: visible; }

    .kps-main .kps-track {
        flex-direction: column !important;
        width: 100% !important;
        transform: none !important;
    }
    .kps-main .kps-slide {
        width: 100% !important;
    }
    .kps-main .kps-card {
        flex-direction: column !important;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    .kps-main .kps-imgwrap {
        flex: none !important;
        width: 100% !important;
        max-width: 100%;
        height: 60vw;
        min-height: 280px;
        max-height: 480px;
    }
    .kps-main .kps-img { min-height: 0; }
    .kps-main .kps-content {
        width: 100%;
        flex: none !important;
        padding: 2.5rem 1.5rem;
    }
    .kps-main .kps-progress { display: none !important; }
    .kps-main .kps-title { font-size: clamp(28px, 7vw, 44px) !important; }
    .kps-main .kps-desc { max-width: 100%; }
}

@media (max-width: 500px) {
    .kps-main .kps-content { padding: 2rem 1rem; }
    .kps-main .kps-title { font-size: 27px !important; }
    .kps-main .kps-pill-sec,
    .kps-main .kps-pill-gl { font-size: 11px; padding: 6px 11px; }
}
