/* ==========================================================================
   Beranda Le Parc
   Hero penuh layar + section bertumpuk (sudut atas membulat menutupi section
   sebelumnya), cerita sticky, galeri geser horizontal, kartu langkah bertumpuk.
   ========================================================================== */

/* ---------- Hero ---------- */
.b-hero { position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; min-height: 640px; }
.b-hero-kartu {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: var(--hr, 0px);
    background: #141b16;
    color: #fff;
    transform: scale(var(--hs, 1));
    transform-origin: 50% 0;
    filter: brightness(var(--hb, 1));
    will-change: transform, filter;
}
.b-hero-media { position: absolute; inset: 0; }
/* Pergantian blur in / blur out: slide baru muncul dari kabur ke tajam,
   slide lama memudar sambil kabur. Gerak kamera pelan tetap jalan selama tampil. */
.b-slide {
    position: absolute;
    inset: -2%;
    width: 104%;
    height: 104%;
    object-fit: cover;
    opacity: 0;
    filter: blur(28px);
    transform: scale(1.08);
    transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1), filter 1.8s cubic-bezier(.4, 0, .2, 1);
}
.b-slide.aktif { z-index: 1; opacity: 1; filter: blur(0); animation: kamera var(--durasi, 8s) linear forwards; }
.b-slide.keluar { z-index: 0; opacity: 0; filter: blur(28px); }

/* Arah gerak kamera per slide (diatur lewat data-gerak), dibuat halus */
.b-slide[data-gerak="0"] { --dari: scale(1.1) translate(-1%, .6%);  --ke: scale(1.03) translate(.6%, -.3%); }
.b-slide[data-gerak="1"] { --dari: scale(1.03) translate(1%, 0);    --ke: scale(1.1) translate(-1%, -.6%); }
.b-slide[data-gerak="2"] { --dari: scale(1.09) translate(0, -1%);   --ke: scale(1.03) translate(0, .8%); }
.b-slide[data-gerak="3"] { --dari: scale(1.03) translate(-.6%, -.6%); --ke: scale(1.09) translate(1%, .6%); }
@keyframes kamera { from { transform: var(--dari); } to { transform: var(--ke); } }

.b-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;  /* di atas gambar aktif */
    background:
        linear-gradient(90deg, rgba(12, 17, 14, .72) 0%, rgba(12, 17, 14, .35) 45%, rgba(12, 17, 14, 0) 75%),
        linear-gradient(180deg, rgba(12, 17, 14, .35) 0%, rgba(12, 17, 14, 0) 25%, rgba(12, 17, 14, 0) 60%, rgba(12, 17, 14, .55) 100%);
}

.b-hero-isi { position: absolute; left: 0; right: 0; bottom: 90px; z-index: 3; }
.b-hero-teks { display: grid; max-width: 760px; }
.b-slide-teks { grid-area: 1 / 1; align-self: end; opacity: 0; visibility: hidden; transform: translateY(-14px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease), visibility 0s .8s; }
.b-slide-teks.aktif { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity .8s var(--ease) .9s, transform .8s var(--ease) .9s, filter .8s var(--ease) .9s; }
.b-slide-teks > * { transform: translateY(26px); opacity: 0; }
.b-slide-teks.aktif > * { transform: none; opacity: 1; transition: transform 1.2s var(--ease) .9s, opacity 1.2s var(--ease) .9s; }
.b-slide-teks.aktif > :nth-child(2) { transition-delay: 1.02s; }
.b-slide-teks.aktif > :nth-child(3) { transition-delay: 1.14s; }
.b-slide-teks .kicker { color: rgba(255, 255, 255, .7); }
.b-hero-judul { margin: 0; font-size: clamp(52px, 6.8vw, 100px); font-weight: 700; line-height: .98; letter-spacing: -.05em; }
.b-hero-judul .aksen { background: linear-gradient(100deg, #d9bd8c, #f4e4c4 55%, #d0ae76); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-hero-sub { max-width: 500px; margin: 22px 0 0; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .8); }

.b-hero-cek { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85); }
.b-hero-cek li { display: inline-flex; align-items: center; gap: 6px; }
.b-hero-cek i { color: #d6b98a; font-size: 15px; }

.b-hero-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.b-link-putih { position: relative; font-size: 16px; font-weight: 600; color: #fff; }
.b-link-putih::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform-origin: left; transition: transform .4s var(--ease); }
@media (hover: hover) { .b-link-putih:hover::after { transform: scaleX(.4); } }

/* Bubble kecil + garis tipis melengkung */
.b-bubble-wrap { position: absolute; right: 4%; top: 22%; z-index: 2; width: 46%; height: 52%; pointer-events: none; }
.b-garis { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.b-garis path { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; stroke-dasharray: 900; stroke-dashoffset: 900; animation: garis 2.4s var(--ease) .6s forwards; }
@keyframes garis { to { stroke-dashoffset: 0; } }
.b-bubble {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #1c2620;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
    opacity: 0;
    animation: bubble-masuk .8s var(--spring) forwards, apung 6s ease-in-out infinite;
}
.b-bubble i { color: #2f9e5b; font-size: 18px; }
.b-bubble-1 { right: 22%; top: 18%; animation-delay: 1.2s, 2s; }
.b-bubble-2 { right: 4%; top: 58%; background: #d6b98a; animation-delay: 1.9s, 2.7s; }
.b-bubble-2 i { color: #1c2620; }
@keyframes bubble-masuk { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- Section bertumpuk ---------- */
.b-lembar {
    position: relative;
    z-index: 2;
    margin-top: -48px;
    padding: 130px 0 150px;
    border-radius: 48px 48px 0 0;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, .1);
}
.b-terang { background: var(--bg); }
.b-alt { background: var(--bg-alt); }
.b-gelap {
    background: var(--gelap);
    color: #f3efe7;
    --muted: rgba(243, 239, 231, .62);
    --line: rgba(243, 239, 231, .12);
    --accent: #d6b98a;
    --emas-teks: linear-gradient(100deg, #cfae78 0%, #f1dfba 55%, #c9a46a 100%);
}

.b-kepala { max-width: 880px; margin: 0 auto 70px; text-align: center; }
.b-kepala .judul { font-size: clamp(44px, 6vw, 84px); }
.b-kepala .sec-sub { margin-inline: auto; }

/* ---------- Panel terbelah ---------- */
.b-belah { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; overflow: hidden; border-radius: 36px; }
.b-belah > div { position: relative; padding: 36px 40px; }
.b-belah-kiri { background: #141b16; color: #f3efe7; }
.b-belah-kanan { background: linear-gradient(135deg, #dcc293, #c9a46a); color: #1c2620; }
.b-belah-label { margin: 0 0 28px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.b-belah ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.b-belah li {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding: 14px 20px 14px 16px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(14px) scale(.96);
    transition: opacity .6s var(--ease), transform .7s var(--spring);
    transition-delay: calc(var(--n) * .18s + .35s);
}
.b-belah-kiri li { background: rgba(243, 239, 231, .08); }
.b-belah-kanan li { background: rgba(255, 255, 255, .7); box-shadow: 0 6px 18px rgba(28, 38, 32, .08); }
.b-belah-kanan li { transition-delay: calc(var(--n) * .18s + .9s); }
.b-belah li i { font-size: 20px; }
.b-belah-kiri li i { color: #d6b98a; }
.b-belah-kanan li i { color: #2f5240; }
.b-belah.tampil li { opacity: 1; transform: none; }

/* Gelombang bar di panel kiri */
.b-belah-bar { position: absolute; left: 40px; right: 40px; bottom: 34px; display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.b-belah-bar span { flex: 1; height: var(--h); border-radius: 4px; background: rgba(243, 239, 231, .16); transform-origin: bottom; animation: gelombang 1.6s ease-in-out infinite alternate; }
.b-belah-bar span:nth-child(3n) { animation-delay: -.4s; }
.b-belah-bar span:nth-child(3n + 1) { animation-delay: -.9s; }
.b-belah-bar span:nth-child(4n) { background: rgba(214, 185, 138, .45); }
@keyframes gelombang { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

.b-angka { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 90px; text-align: center; }
.b-angka b { display: block; font-size: clamp(48px, 5.6vw, 80px); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; background: var(--emas-teks); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-angka div > span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }

/* ---------- Cerita sticky (lapangan) ---------- */
.b-cerita { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.b-cerita-kepala { padding-bottom: 10vh; }
.b-langkah-cerita { display: flex; flex-direction: column; justify-content: center; min-height: 62vh; max-width: 440px; opacity: .28; transition: opacity .6s var(--ease); }
.b-langkah-cerita.aktif { opacity: 1; }
.b-cerita-ikon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 16px; background: rgba(214, 185, 138, .14); color: #d6b98a; font-size: 26px; }
.b-langkah-cerita h3 { margin: 0; font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.b-langkah-cerita p { margin: 14px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.b-cerita-foto-m { display: none; }
.b-cerita-aksi { padding: 6vh 0 0; }

.b-cerita-panggung { position: sticky; top: 110px; height: calc(100vh - 150px); }
.b-cerita-bingkai { position: relative; height: 100%; overflow: hidden; border-radius: 36px; background: #0f1411; }
.b-cerita-bingkai img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.b-cerita-bingkai img.aktif { opacity: 1; transform: none; }
.b-cerita-status { position: absolute; left: 22px; bottom: 22px; z-index: 2; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .95); color: #1c2620; }

/* ---------- Galeri geser horizontal (cafe) ---------- */
.b-geser-sec { padding: 0; height: var(--tinggi, auto); }
.b-geser-lekat { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; gap: 48px; min-height: 100vh; padding: 120px 0 80px; overflow: hidden; }
.b-geser-kepala { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.b-geser-kepala .sec-sub { max-width: 380px; margin: 0; }
.b-geser-jalur {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 0 max(24px, calc((100vw - var(--wadah)) / 2));
    transform: translate3d(var(--x, 0px), 0, 0);
    will-change: transform;
}
.b-suasana { position: relative; flex: none; width: 340px; height: 440px; margin: 0; overflow: hidden; border-radius: 30px; background: var(--surface-2); }
.b-suasana:nth-child(even) { margin-top: 48px; }
.b-suasana img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.b-suasana::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(12, 17, 14, .75)); }
.b-suasana-label { position: absolute; left: 16px; top: 16px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #1c2620; font-size: 13px; font-weight: 700; }
.b-suasana figcaption { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; font-size: 17px; font-weight: 600; line-height: 1.35; color: #fff; }
@media (hover: hover) { .b-suasana:hover img { transform: scale(1.05); } }

/* ---------- Shop ---------- */
.b-shop-aksi { display: flex; align-items: center; gap: 22px; }

/* ---------- Kartu langkah bertumpuk ---------- */
.b-tumpuk { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.b-tumpuk-kepala { position: sticky; top: 140px; }
.b-tumpuk-list { display: grid; gap: 24px; padding-bottom: 40px; }
.b-kartu-langkah {
    position: sticky;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 34px;
    align-items: center;
    min-height: 300px;
    padding: 40px 44px;
    border-radius: 34px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .08);
}
.b-kartu-langkah:nth-child(1) { top: 120px; }
.b-kartu-langkah:nth-child(2) { top: 150px; }
.b-kartu-langkah:nth-child(3) { top: 180px; }
.b-nomor { font-size: clamp(110px, 11vw, 160px); font-weight: 700; line-height: .8; letter-spacing: -.06em; }
.b-kartu-langkah h3 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.b-kartu-langkah p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; opacity: .72; }
.b-kartu-chip { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.b-kartu-emas { background: linear-gradient(135deg, #dcc293, #c9a46a); color: #1c2620; }
.b-kartu-emas .b-kartu-chip { background: rgba(255, 255, 255, .7); }
.b-kartu-gelap { background: #141b16; color: #f3efe7; }
.b-kartu-gelap .b-kartu-chip { background: rgba(243, 239, 231, .1); }
.b-kartu-gelap .b-kartu-chip i { color: #6fd39a; }
.b-kartu-putih { background: var(--surface); color: var(--text); }
.b-kartu-putih .b-kartu-chip { background: var(--surface-2); }

/* ---------- Testimoni ---------- */
.b-testi { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.b-testi-besar { margin: 0; }
.b-testi-besar blockquote { margin: 0 0 30px; font-size: clamp(28px, 3vw, 42px); font-weight: 500; line-height: 1.25; letter-spacing: -.03em; }
.b-testi-besar figcaption, .testi-card figcaption { display: flex; align-items: center; gap: 12px; }
.b-testi-besar b, .testi-card figcaption b { display: block; font-size: 15px; }
.b-testi-besar small, .testi-card figcaption small { font-size: 13px; color: var(--muted); }
.b-testi-kecil { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.testi-card { display: flex; flex-direction: column; margin: 0; padding: 26px; border-radius: 26px; background: var(--surface); }
.testi-card:first-child { grid-column: span 2; }
.testi-card blockquote { flex: 1; margin: 14px 0 22px; font-size: 16px; font-weight: 500; line-height: 1.55; }

/* ---------- Kontak ---------- */
.b-kontak { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.b-kontak-foto { margin: 36px 0 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 30px; }
.b-kontak-foto img { width: 100%; height: 100%; object-fit: cover; }
.b-kontak-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.b-kontak-info > * { display: block; padding-bottom: 12px; border-bottom: 1.5px solid var(--line); }
.b-kontak-info b { line-height: 1.4; }
.b-kontak-alamat { grid-column: 1 / -1; }
.b-kontak-alamat b { font-size: 16px !important; font-weight: 500 !important; }
@media (hover: hover) { .b-kontak-info a:hover b { color: var(--accent); } }
.b-kontak-info small { display: block; font-size: 12px; color: var(--muted); }
.b-kontak-info b { font-size: 17px; font-weight: 600; }


/* ---------- CTA ---------- */
.b-cta { padding-bottom: 180px; }
.b-cta-isi { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.b-cta-emblem { width: 58px; margin-bottom: 24px; }
.b-cta .judul { font-size: clamp(48px, 6.4vw, 92px); }
.b-cta-foto { margin: 0; aspect-ratio: 4 / 4.4; overflow: hidden; border-radius: 34px; }
.b-cta-foto img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1100px) {
    .b-cerita { gap: 40px; }
    .b-tumpuk { grid-template-columns: 1fr; gap: 30px; }
    .b-tumpuk-kepala { position: static; }
    .b-testi { grid-template-columns: 1fr; }
    .b-bubble-wrap { display: none; }
}

/* ==========================================================================
   Mobile: tetap seperti versi sebelumnya (kartu hero membulat, bagian rapi)
   ========================================================================== */
@media (max-width: 820px) {
    .b-hero { position: relative; height: auto; min-height: 0; padding: 64px 10px 0; }
    .b-hero-kartu { height: 74svh; min-height: 540px; border-radius: 28px; transform: none !important; filter: none !important; }
    .b-hero-isi { bottom: 34px; width: calc(100% - 44px); }
    .b-hero-judul { font-size: clamp(38px, 11vw, 54px); }
    .b-hero-sub { margin-top: 12px; font-size: 15px; }
    .b-hero-cek { gap: 6px 14px; margin-top: 16px; font-size: 12.5px; }
    .b-hero-aksi { margin-top: 20px; gap: 18px; }
    .b-hero-aksi .btn { min-height: 48px; }
    .b-bubble-wrap { display: none; }

    .b-lembar { margin-top: -24px; padding: 64px 0 76px; border-radius: 28px 28px 0 0; box-shadow: none; }
    .b-hero + .b-lembar { margin-top: 0; border-radius: 0; }
    .b-kepala { margin-bottom: 36px; text-align: left; }
    .b-kepala .judul { font-size: clamp(34px, 10vw, 48px); }
    .b-kepala .sec-sub { margin-inline: 0; }

    .b-belah { grid-template-columns: 1fr; min-height: 0; border-radius: 26px; }
    .b-belah > div { padding: 24px 22px; }
    .b-belah-kiri { padding-bottom: 110px !important; }
    .b-belah-bar { left: 22px; right: 22px; bottom: 22px; height: 64px; }
    .b-belah li { font-size: 15px; padding: 12px 16px 12px 14px; }
    .b-angka { grid-template-columns: 1fr 1fr; gap: 28px 12px; margin-top: 56px; }
    .b-angka b { font-size: 46px; }

    .b-cerita { grid-template-columns: 1fr; gap: 0; }
    .b-cerita-kepala { padding-bottom: 28px; }
    .b-cerita-panggung { display: none; }
    .b-langkah-cerita { min-height: 0; max-width: none; margin-bottom: 36px; opacity: 1; }
    .b-langkah-cerita h3 { font-size: 26px; }
    .b-langkah-cerita p { font-size: 15px; }
    .b-cerita-ikon { width: 46px; height: 46px; margin-bottom: 14px; font-size: 22px; }
    .b-cerita-foto-m { display: block; margin: 18px 0 0; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 22px; }
    .b-cerita-foto-m img { width: 100%; height: 100%; object-fit: cover; }
    .b-cerita-aksi { padding: 0; }
    .b-cerita-aksi .btn { width: 100%; justify-content: space-between; }

    .b-geser-sec { height: auto !important; padding: 64px 0 76px; }
    .b-geser-lekat { position: static; min-height: 0; gap: 28px; padding: 0; }
    .b-geser-kepala { flex-direction: column; align-items: flex-start; gap: 14px; }
    .b-geser-jalur {
        width: auto;
        gap: 12px;
        padding: 0 20px 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 20px;
        scrollbar-width: none;
        transform: none !important;
    }
    .b-geser-jalur::-webkit-scrollbar { display: none; }
    .b-suasana { width: 72%; height: 360px; border-radius: 24px; scroll-snap-align: start; }
    .b-suasana:nth-child(even) { margin-top: 0; }

    .b-shop-aksi .geser-kontrol { display: none; }

    .b-kartu-langkah { grid-template-columns: 1fr; gap: 6px; min-height: 0; padding: 26px 24px; border-radius: 26px; }
    .b-kartu-langkah:nth-child(1) { top: 76px; }
    .b-kartu-langkah:nth-child(2) { top: 92px; }
    .b-kartu-langkah:nth-child(3) { top: 108px; }
    .b-nomor { font-size: 72px; }
    .b-kartu-langkah h3 { font-size: 21px; }
    .b-kartu-chip { grid-column: 1; }

    .b-testi-besar blockquote { font-size: 24px; }
    .b-testi-kecil { grid-template-columns: 1fr; }
    .testi-card:first-child { grid-column: auto; }

    .b-kontak { grid-template-columns: 1fr; gap: 30px; }
    .b-kontak-info { grid-template-columns: 1fr; gap: 14px; }

    .b-cta { padding-bottom: 110px; }
    .b-cta-isi { grid-template-columns: 1fr; gap: 30px; }
    .b-cta .judul { font-size: clamp(40px, 12vw, 58px); }
}

@media (prefers-reduced-motion: reduce) {
    .b-slide-teks > *, .b-belah li, .b-bubble { opacity: 1 !important; transform: none !important; }
    .b-garis path { stroke-dashoffset: 0 !important; }
}
