/*
 * Hero beranda (banner swiper). Markup: derie26/resources/views/page/beranda/hero-banner.blade.php,
 * perilaku: js/heavypack-hero.js. Desain FigCraft "heavypack-landing-hero-swiper" (1 Des 2026).
 *
 * Ukuran di dalam slide memakai satuan cqw dari .hp-hs__bingkai (1200 px = 100cqw), jadi seluruh
 * susunan ikut mengecil di layar yang lebih sempit. Huruf memakai huruf sistem (tanpa unduhan font).
 */

.hp-hs {
    --hs-lebar: min(1200px, 100cqw - 240px);
    --hs-jarak: 24px;
    --hs-tinggi-min: 520px;
    --hs-radius: 28px;
    position: relative;
    container-type: inline-size;
    padding: 24px 0 32px;
    background: #f3f1ee;
    color: #1c1d20;
}

.hp-hs__h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hp-hs__viewport { position: relative; }

.hp-hs__track {
    position: relative;
    display: flex;
    gap: var(--hs-jarak);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.hp-hs__track::-webkit-scrollbar { display: none; }

/* Pengganjal kiri/kanan supaya slide pertama dan terakhir bisa berada di tengah. */
.hp-hs__track::before,
.hp-hs__track::after {
    content: "";
    flex: 0 0 max(0px, (100cqw - var(--hs-lebar)) / 2 - var(--hs-jarak));
}

.hp-hs__slide {
    position: relative;
    flex: 0 0 var(--hs-lebar);
    min-height: var(--hs-tinggi-min);
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: var(--hs-radius);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transition: opacity .5s ease;
}

.hp-hs--kartu .hp-hs__slide:not(.is-aktif) { opacity: .5; cursor: pointer; }

/* ---------- Banner landscape (gambar jadi) ---------- */

.hp-hs__slide--landscape { background: #1c1d20; }

.hp-hs__foto,
.hp-hs__foto picture { display: block; width: 100%; height: 100%; }

.hp-hs__foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center; /* tulisan ada di kiri (area aman) */
}

/* ---------- Slide desain ---------- */

.hp-hs__slide--slide {
    --hs-bg: #1c1d20;
    --hs-slab: #ff6600;
    --hs-judul: #fff;
    --hs-kata: #ff6600;
    --hs-teks: #c4c8cd;
    --hs-label: #ff7a1f;
    --hs-btn-bg: #ff6600;
    --hs-btn-hover: #e65c00;
    --hs-btn-teks: #fff;
    --hs-garis: rgba(255, 255, 255, .3);
    --hs-chip-bg: rgba(255, 255, 255, .05);
    --hs-chip-garis: rgba(255, 255, 255, .14);
    --hs-chip-teks: #e6e8ea;
    --hs-halo: rgba(255, 255, 255, .4);
    --hs-watermark: rgba(255, 255, 255, .03);
    background: radial-gradient(55% 75% at 72% 35%, rgba(255, 102, 0, .2), transparent 70%), var(--hs-bg);
    color: var(--hs-judul);
}

.hp-hs__slide--terang {
    --hs-bg: #fff;
    --hs-slab: #1c1d20;
    --hs-judul: #1c1d20;
    --hs-kata: #f55f00;
    --hs-teks: #4a5057;
    --hs-label: #d45500;
    --hs-garis: rgba(28, 29, 32, .22);
    --hs-chip-bg: rgba(28, 29, 32, .04);
    --hs-chip-garis: rgba(28, 29, 32, .14);
    --hs-chip-teks: #2b2e33;
    --hs-watermark: rgba(28, 29, 32, .03);
    background: radial-gradient(45% 60% at 0% 100%, rgba(255, 102, 0, .08), transparent 70%), var(--hs-bg);
}

.hp-hs__slide--oranye {
    --hs-bg: #f26100;
    --hs-slab: #1c1d20;
    --hs-judul: #1c1d20;
    --hs-kata: #fff;
    --hs-teks: #1c1d20;
    --hs-label: #1c1d20;
    --hs-btn-bg: #1c1d20;
    --hs-btn-hover: #000;
    --hs-garis: rgba(28, 29, 32, .4);
    --hs-chip-bg: rgba(255, 255, 255, .14);
    --hs-chip-garis: rgba(28, 29, 32, .14);
    --hs-chip-teks: #1c1d20;
    --hs-watermark: rgba(28, 29, 32, .04);
    background: linear-gradient(135deg, #f47b2a 0%, #f26100 45%, #ef5d00 100%);
}

.hp-hs__bingkai {
    position: relative;
    container-type: inline-size;
    height: 100%;
}

.hp-hs__visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 41.667%;
}

.hp-hs__slab {
    position: absolute;
    inset: 0;
    background: var(--hs-slab);
    clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 100%);
}

.hp-hs__halo {
    position: absolute;
    top: 50%;
    left: 45.4%;
    width: 36.667cqw;
    aspect-ratio: 1;
    border: 1.5px dashed var(--hs-halo);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hp-hs__mesin {
    position: absolute;
    top: 50%;
    left: -1.2%;
    width: 93.2%;
    height: 93.333%;
    object-fit: contain;
    transform: translateY(-50%);
    filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .28));
}

.hp-hs__isi {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 52cqw;
    height: 100%;
    padding: 4.5cqw 0 4.5cqw 5.333cqw;
}

.hp-hs__label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 clamp(14px, 1.833cqw, 22px);
    color: var(--hs-label);
    font-size: clamp(10px, 1cqw, 12px);
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hp-hs__label::before {
    content: "";
    flex: 0 0 34px;
    height: 2px;
    background: currentColor;
}

.hp-hs__judul {
    max-width: 46cqw;
    margin: 0;
    color: var(--hs-judul);
    font-family: inherit;
    font-size: clamp(28px, 4.667cqw, 56px);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: .98;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.hp-hs__judul span { color: var(--hs-kata); }

.hp-hs__teks {
    max-width: 41.667cqw;
    margin: clamp(14px, 2cqw, 24px) 0 0;
    color: var(--hs-teks);
    font-size: clamp(14px, 1.417cqw, 17px);
    line-height: 1.6;
}

.hp-hs__aksi {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(18px, 2.667cqw, 32px);
}

.hp-hs__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: clamp(44px, 4.333cqw, 52px);
    padding: 0 clamp(18px, 2.167cqw, 26px);
    border: 1px solid transparent;
    border-radius: 4px;
    background: var(--hs-btn-bg);
    color: var(--hs-btn-teks);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.hp-hs__btn:hover,
.hp-hs__btn:focus-visible { background: var(--hs-btn-hover); color: var(--hs-btn-teks); transform: translateY(-1px); }

.hp-hs__btn i { font-size: 12px; }

.hp-hs__btn--garis {
    border-color: var(--hs-garis);
    background: transparent;
    color: var(--hs-judul);
}

.hp-hs__btn--garis i { display: none; }

.hp-hs__btn--garis:hover,
.hp-hs__btn--garis:focus-visible { border-color: currentColor; background: transparent; color: var(--hs-judul); }

.hp-hs__chip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: clamp(16px, 2.333cqw, 28px) 0 0;
    padding: 0;
    list-style: none;
}

.hp-hs__chip li {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border: 1px solid var(--hs-chip-garis);
    border-radius: 999px;
    background: var(--hs-chip-bg);
    color: var(--hs-chip-teks);
    font-size: 12px;
    font-weight: 500;
}

.hp-hs__kartu {
    position: absolute;
    z-index: 2;
    right: 2.667cqw;
    bottom: 3.333cqw;
    display: flex;
    gap: 12px;
    width: 22.333cqw;
    min-width: 220px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
    color: #687078;
}

.hp-hs__kartu > span {
    color: #ff6600;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.hp-hs__kartu p { margin: 0; font-size: 12px; line-height: 1.45; }
.hp-hs__kartu strong { color: #1c1d20; font-size: 14px; font-weight: 700; }

.hp-hs__watermark {
    position: absolute;
    left: 4cqw;
    bottom: -3.6cqw;
    color: var(--hs-watermark);
    font-size: 14cqw;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

/* ---------- Panah ---------- */

.hp-hs__panah {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e2dfda;
    border-radius: 50%;
    background: #fff;
    color: #1c1d20;
    font-size: 15px;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.hp-hs__panah--kiri { left: max(8px, (100cqw - var(--hs-lebar)) / 4 - 22px); }
.hp-hs__panah--kanan {
    right: max(8px, (100cqw - var(--hs-lebar)) / 4 - 22px);
    border-color: #1c1d20;
    background: #1c1d20;
    color: #fff;
}

.hp-hs__panah:hover { background: #ff6600; border-color: #ff6600; color: #fff; }
.hp-hs__panah:disabled { opacity: 0; pointer-events: none; }

/* ---------- Tab, hitungan, jeda ---------- */

.hp-hs__kontrol {
    display: flex;
    align-items: center;
    gap: 24px;
    width: var(--hs-lebar);
    margin: 22px auto 0;
}

.hp-hs__tabs { display: flex; flex: 1; gap: 32px; min-width: 0; }

.hp-hs__tab {
    position: relative;
    flex: 0 1 240px;
    min-width: 0;
    padding: 16px 0 4px;
    border: 0;
    background: none;
    color: #6b7178;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.hp-hs__tab::before,
.hp-hs__waktu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px;
}

.hp-hs__tab::before { content: ""; background: #dcd8d2; }

.hp-hs__waktu {
    background: #ff6600;
    transform: scaleX(0);
    transform-origin: left center;
}

.hp-hs__tab.is-aktif .hp-hs__waktu { transform: scaleX(1); }
.hp-hs.is-jalan .hp-hs__tab.is-aktif .hp-hs__waktu { animation: hp-hs-waktu var(--hs-durasi) linear forwards; }
.hp-hs.is-jeda .hp-hs__tab.is-aktif .hp-hs__waktu { animation-play-state: paused; }

@keyframes hp-hs-waktu {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.hp-hs__tab-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-hs__tab-label b { margin-right: 6px; color: inherit; font-weight: 700; }
.hp-hs__tab.is-aktif { color: #1c1d20; font-weight: 600; }
.hp-hs__tab.is-aktif .hp-hs__tab-label b { color: #ff6600; }
.hp-hs__tab:hover { color: #1c1d20; }

.hp-hs__status { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; }
.hp-hs__info { margin: 0; color: #8a8f95; font-size: 12px; }
.hp-hs__hitung { margin: 0; color: #8a8f95; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hp-hs__hitung b { color: #1c1d20; font-size: 17px; }

.hp-hs__petunjuk { display: none; }

/* Tab tanpa label (diatur di admin, atau gaya landscape): garis pendek saja. */
.hp-hs--tanpa-label .hp-hs__tabs { gap: 8px; }
.hp-hs--tanpa-label .hp-hs__tab { flex: 0 0 72px; padding: 0; height: 20px; }
.hp-hs--tanpa-label .hp-hs__tab::before,
.hp-hs--tanpa-label .hp-hs__waktu { top: 50%; margin-top: -1.5px; }
.hp-hs--tanpa-label .hp-hs__tab-label { display: none; }

.hp-hs__tab:focus-visible,
.hp-hs__panah:focus-visible,
.hp-hs__foto:focus-visible,
.hp-hs__btn:focus-visible { outline: 3px solid #ff6600; outline-offset: 3px; }

/* ---------- Gaya landscape: selebar layar, kontrol di atas gambar ---------- */

.hp-hs--landscape {
    --hs-lebar: 100cqw;
    --hs-jarak: 0px;
    --hs-radius: 0;
    padding: 0;
    background: #1c1d20;
}

.hp-hs--landscape .hp-hs__slide { aspect-ratio: 12 / 5; min-height: 0; max-height: 680px; }
.hp-hs--landscape.hp-hs--ada-desain .hp-hs__slide { min-height: 560px; }

/* Slide desain di gaya landscape: isinya tetap 1200 px di tengah, latar & slab sampai tepi layar. */
/* Lebar isi menjauh dari panah (32 px + 44 px) di layar yang lebih sempit dari 1376 px. */
.hp-hs--landscape .hp-hs__slide--slide .hp-hs__bingkai { width: min(1200px, 100% - 176px); margin-inline: auto; }
.hp-hs--landscape .hp-hs__slide--slide::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc((100% - min(1200px, 100% - 176px)) / 2 + 1px);
    background: var(--hs-slab);
}

.hp-hs--landscape .hp-hs__panah {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(28, 29, 32, .45);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.hp-hs--landscape .hp-hs__panah--kiri { left: 32px; }
.hp-hs--landscape .hp-hs__panah--kanan { right: 32px; }
.hp-hs--landscape .hp-hs__panah:hover { background: #ff6600; border-color: #ff6600; }

.hp-hs--landscape .hp-hs__kontrol {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: clamp(20px, 3.6cqw, 52px);
    width: min(1200px, 100cqw - 240px);
    margin: 0 auto;
    pointer-events: none;
}

.hp-hs--landscape .hp-hs__tabs,
.hp-hs--landscape .hp-hs__status { pointer-events: auto; }
.hp-hs--landscape .hp-hs__tab::before { background: rgba(255, 255, 255, .35); }
.hp-hs--landscape .hp-hs__info { display: none; }
.hp-hs--landscape .hp-hs__hitung,
.hp-hs--landscape .hp-hs__hitung b { color: #fff; }

/* Ada slide desain: kontrol di strip gelap di bawah banner, supaya tidak menimpa kartu dan tetap
   terlihat di tema terang. Bila semuanya gambar landscape, kontrol tetap menempel di atas gambar. */
.hp-hs--landscape.hp-hs--ada-desain .hp-hs__kontrol {
    position: static;
    width: min(1200px, 100cqw - 176px);
    margin: 0 auto;
    padding: 14px 0;
}

/* ---------- Animasi isi saat slide menjadi aktif ----------
 * Kelas is-masuk dipasang js/heavypack-hero.js saat pindah slide (tidak saat halaman pertama dibuka,
 * supaya gambar utama langsung tampil). Memakai properti translate/scale terpisah supaya tidak
 * menimpa transform posisi yang sudah ada. */

@keyframes hp-hs-naik { from { opacity: 0; translate: 0 24px; } }
@keyframes hp-hs-mesin { from { opacity: 0; translate: 56px 0; scale: .94; } }
@keyframes hp-hs-slab { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } }
@keyframes hp-hs-halo { from { opacity: 0; scale: .7; } }
@keyframes hp-hs-foto { from { scale: 1.08; } }

.hp-hs__slide.is-masuk .hp-hs__isi > * { animation: hp-hs-naik .7s cubic-bezier(.16, 1, .3, 1) both; }
.hp-hs__slide.is-masuk .hp-hs__isi > :nth-child(2) { animation-delay: .08s; }
.hp-hs__slide.is-masuk .hp-hs__isi > :nth-child(3) { animation-delay: .16s; }
.hp-hs__slide.is-masuk .hp-hs__isi > :nth-child(4) { animation-delay: .24s; }
.hp-hs__slide.is-masuk .hp-hs__isi > :nth-child(5) { animation-delay: .32s; }
.hp-hs__slide.is-masuk .hp-hs__slab { animation: hp-hs-slab .8s cubic-bezier(.65, 0, .35, 1) both; }
.hp-hs__slide.is-masuk .hp-hs__halo { animation: hp-hs-halo 1s cubic-bezier(.16, 1, .3, 1) .2s both; }
.hp-hs__slide.is-masuk .hp-hs__mesin { animation: hp-hs-mesin .9s cubic-bezier(.16, 1, .3, 1) .15s both; }
.hp-hs__slide.is-masuk .hp-hs__kartu { animation: hp-hs-naik .7s cubic-bezier(.16, 1, .3, 1) .4s both; }
.hp-hs__slide--landscape.is-masuk .hp-hs__foto img { animation: hp-hs-foto 1.6s cubic-bezier(.16, 1, .3, 1) both; }

/* ---------- Layar menengah ---------- */

@media (max-width: 1023px) {
    .hp-hs { --hs-lebar: calc(100cqw - 160px); --hs-jarak: 16px; }
    .hp-hs__kartu { display: none; }
    .hp-hs__info { display: none; }
    .hp-hs__tabs { gap: 16px; }
}

/* ---------- HP: slide bertumpuk (gambar di atas, teks di bawah), titik di bawah ---------- */

@media (max-width: 760px) {
    .hp-hs { --hs-lebar: calc(100cqw - 48px); --hs-jarak: 12px; --hs-radius: 20px; padding: 16px 0 20px; }

    /* .hp-hs di depan: harus mengalahkan aturan gaya landscape desktop (.hp-hs--landscape .hp-hs__slide). */
    .hp-hs .hp-hs__slide { aspect-ratio: auto; min-height: 0; max-height: none; }
    /* Tidak ditarik setinggi slide desain bila jenisnya dicampur: gambar tidak terpotong. */
    .hp-hs .hp-hs__slide--landscape { aspect-ratio: 1 / 1; align-self: flex-start; }
    .hp-hs .hp-hs__slide--tanpa-hp { aspect-ratio: 12 / 5; }
    .hp-hs__slide--landscape .hp-hs__foto img { object-position: center; }
    .hp-hs__slide--tanpa-hp .hp-hs__foto img { object-position: left center; }
    .hp-hs--kartu .hp-hs__slide:not(.is-aktif) { opacity: 1; }

    .hp-hs__bingkai { display: flex; flex-direction: column; container-type: normal; }

    /* Semua slide setinggi slide tertinggi (biasanya lini Industries yang teksnya panjang). Gambar mengisi
       sisa tinggi itu, jadi judul + tombol slide yang teksnya pendek tetap di bawah (4 Des 2026). */
    .hp-hs__visual {
        position: relative;
        flex: 1 0 auto;
        width: 100%;
        min-height: 262px;
    }

    .hp-hs__slab { clip-path: polygon(52% 0, 100% 0, 100% 100%, 22% 100%); }
    .hp-hs__halo { left: 60%; width: 230px; }
    .hp-hs__mesin { left: 50%; width: 82%; height: 92%; transform: translate(-50%, -50%); }

    .hp-hs__isi { width: 100%; height: auto; padding: 18px 20px 22px; justify-content: flex-start; }
    .hp-hs__label { margin-bottom: 10px; font-size: 10px; }
    .hp-hs__label::before { flex-basis: 22px; }
    .hp-hs__judul { max-width: none; font-size: clamp(24px, 7.4vw, 30px); line-height: 1; }
    .hp-hs__teks { max-width: none; margin-top: 12px; font-size: 14px; line-height: 1.55; }
    .hp-hs__aksi { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 16px; }
    .hp-hs__btn { justify-content: center; min-height: 48px; }
    .hp-hs__btn--garis {
        align-self: flex-start;
        justify-content: flex-start;
        min-height: 0;
        padding: 0;
        border: 0;
        font-size: 13px;
        letter-spacing: 0;
        text-transform: none;
    }

    .hp-hs__btn--garis i { display: inline; }
    .hp-hs__chip,
    .hp-hs__kartu,
    .hp-hs__watermark,
    .hp-hs__panah { display: none; }

    .hp-hs__kontrol {
        position: relative;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        width: var(--hs-lebar);
        margin-top: 14px;
    }

    .hp-hs__tabs { flex: 0 0 auto; gap: 4px; }
    .hp-hs__tab,
    .hp-hs--tanpa-label .hp-hs__tab { flex: 0 0 auto; width: 14px; height: 20px; padding: 0; transition: width .3s ease; }
    .hp-hs__tab.is-aktif { width: 36px; }
    .hp-hs__tab::before,
    .hp-hs__waktu,
    .hp-hs--tanpa-label .hp-hs__tab::before,
    .hp-hs--tanpa-label .hp-hs__waktu { top: 7px; left: 4px; width: calc(100% - 8px); height: 6px; margin: 0; border-radius: 3px; }
    .hp-hs__waktu,
    .hp-hs.is-jalan .hp-hs__tab.is-aktif .hp-hs__waktu { animation: none; transform: scaleX(1); }
    .hp-hs__waktu { opacity: 0; }
    .hp-hs__tab.is-aktif .hp-hs__waktu { opacity: 1; }
    .hp-hs__tab-label { display: none; }

    /* Di HP hanya titik dan petunjuk geser; hitungan "01 / 03" disembunyikan. */
    .hp-hs__status { display: none; }
    .hp-hs__petunjuk { display: block; flex: 0 0 100%; margin: 0; color: #8a8f95; font-size: 12px; text-align: center; }

    /* Gaya landscape di HP: gambar selebar layar, titik di bawah gambar. */
    .hp-hs--landscape { --hs-lebar: 100cqw; --hs-jarak: 0px; --hs-radius: 0; padding-bottom: 16px; background: #f3f1ee; }
    .hp-hs--landscape.hp-hs--ada-desain .hp-hs__slide { min-height: 0; }
    .hp-hs--landscape .hp-hs__slide--slide .hp-hs__bingkai { width: 100%; }
    .hp-hs--landscape .hp-hs__slide--slide::after { display: none; }
    .hp-hs--landscape .hp-hs__kontrol,
    .hp-hs--landscape.hp-hs--ada-desain .hp-hs__kontrol { position: relative; bottom: auto; width: calc(100cqw - 48px); margin: 14px auto 0; padding: 0; pointer-events: auto; }
    .hp-hs--landscape .hp-hs__tab::before { background: #dcd8d2; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-hs__slide,
    .hp-hs__btn,
    .hp-hs__tab { transition: none; }
    .hp-hs.is-jalan .hp-hs__tab.is-aktif .hp-hs__waktu { animation: none; }
    .hp-hs__slide.is-masuk * { animation: none !important; }
}

/* ---------- Lini Heavypack Industries (jenis banner "industri", 3 Des 2026) ----------
 * Markup: derie26/resources/views/page/beranda/hero-lini.blade.php. Kiri: teks (sama dengan slide
 * desain). Kanan: panel foto mesin + conveyor. Gerak dari js/heavypack-hero.js (bagian akhir):
 *   data-hs-lini="jalan" / "jeda"  lini sedang/terhenti berjalan (kosong = diam, tanpa JS)
 *   --p  posisi barang di conveyor (0 kiri – 1 kanan); --o  kelihatan barang (masuk/keluar)
 *   .is-diam  barang sedang di dalam mesin (conveyor berhenti)
 *   li.is-proses / .is-selesai / .is-aktif  stasiun yang bekerja / sudah dilewati / fotonya di panel
 * Foto mesin berlatar putih: panel terang + mix-blend-mode multiply supaya putihnya menyatu. */

.hp-hs__slide--industri {
    --hs-slab: transparent; /* gaya landscape: sisi kanan di luar bingkai ikut latar, bukan slab oranye */
    background: radial-gradient(40% 60% at 74% 40%, rgba(255, 102, 0, .2), transparent 70%), #17181b;
}

/* Lantai pabrik: kisi tipis yang memudar ke arah teks. */
.hp-hs__slide--industri::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 40px 40px;
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 65%);
    mask-image: linear-gradient(90deg, transparent 20%, #000 65%);
    pointer-events: none;
}

.hp-hs__slide--industri .hp-hs__watermark { font-size: 11cqw; }
.hp-hs__slide--industri .hp-hs__isi { width: 46cqw; }
.hp-hs__slide--industri .hp-hs__judul { max-width: 39cqw; font-size: clamp(28px, 4.333cqw, 52px); }
.hp-hs__slide--industri .hp-hs__teks { max-width: 38cqw; }

.hp-hs-lini {
    position: absolute;
    z-index: 1;
    top: 3.667cqw;
    right: 3.333cqw;
    bottom: 3.333cqw;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.667cqw, 20px);
    width: 49cqw;
}

/* Panel foto mesin yang sedang bekerja. */
.hp-hs-lini__panel {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-radius: clamp(14px, 1.667cqw, 20px);
    background: radial-gradient(75% 80% at 62% 58%, #fff 30%, #e9e6e1);
    box-shadow: 0 28px 56px rgba(0, 0, 0, .4);
}

.hp-hs-lini__panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: #ff6600;
}

.hp-hs-lini__mesin {
    position: absolute;
    inset: 0;
    margin: 0;
    mix-blend-mode: multiply;
    opacity: 0;
    translate: 10% 0;
    transition: opacity .45s ease, translate .7s cubic-bezier(.16, 1, .3, 1);
}

.hp-hs-lini__mesin.is-aktif { opacity: 1; translate: 0 0; }
.hp-hs-lini__mesin.is-lewat { translate: -10% 0; }

.hp-hs-lini__mesin img {
    position: absolute;
    top: 16%;
    left: 14%;
    width: 82%;
    height: 80%;
    object-fit: contain;
    object-position: center bottom;
}

.hp-hs-lini__mesin figcaption {
    position: absolute;
    top: clamp(14px, 1.833cqw, 22px);
    left: clamp(16px, 2cqw, 24px);
    display: grid;
    gap: 3px;
    max-width: 52%;
    color: #1c1d20;
}

.hp-hs-lini__no {
    margin-bottom: 4px;
    color: #ff6600;
    font-size: clamp(22px, 2.5cqw, 30px);
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hp-hs-lini__no small { margin-left: 6px; color: #8a8f95; font-size: 13px; font-weight: 700; }
.hp-hs-lini__mesin strong { font-size: clamp(15px, 1.5cqw, 18px); font-weight: 800; line-height: 1.2; }
.hp-hs-lini__mesin figcaption > small { color: #5f656c; font-size: 13px; }

/* Conveyor: sabuk bergaris, stasiun (kotak mesin) di atasnya, barang yang berjalan. */
.hp-hs-lini__jalur { position: relative; flex: 0 0 auto; }

.hp-hs-lini__sabuk {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 10px;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 12px) 0 0 / 12px 100%, #2a2c31;
}

[data-hs-lini="jalan"] .hp-hs-lini__sabuk { animation: hp-hs-sabuk .45s linear infinite; }
[data-hs-lini="jalan"].is-diam .hp-hs-lini__sabuk,
[data-hs-lini="jeda"] .hp-hs-lini__sabuk { animation-play-state: paused; }

@keyframes hp-hs-sabuk { to { background-position: 12px 0, 0 0; } }

.hp-hs-lini__terisi {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: calc(var(--p, 0) * 100%);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 102, 0, 0), rgba(255, 102, 0, .85));
}

.hp-hs-lini__barang {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: calc(var(--p, 0) * 100%);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #fff;
    color: #ff6600;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
    opacity: 0;
    translate: -50% -50%;
}

[data-hs-lini="jalan"] .hp-hs-lini__barang,
[data-hs-lini="jeda"] .hp-hs-lini__barang { opacity: var(--o, 1); }
.is-diam .hp-hs-lini__barang { animation: hp-hs-tekan .55s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes hp-hs-tekan { 35% { scale: .78; } }

.hp-hs-lini__barang svg {
    grid-area: 1 / 1;
    width: 18px;
    height: 18px;
    opacity: 0;
    scale: .5;
    transition: opacity .2s ease, scale .35s cubic-bezier(.34, 1.56, .64, 1);
}

.hp-hs-lini__barang svg.is-aktif { opacity: 1; scale: 1; }

.hp-hs-lini__stasiun {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-hs-lini__stasiun a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
    color: #9aa0a6;
    text-align: center;
    text-decoration: none;
}

.hp-hs-lini__titik {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid #3a3d43;
    border-radius: 12px;
    background: #1f2024;
    color: #8a8f95;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: border-color .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}

.hp-hs-lini__stasiun li.is-selesai .hp-hs-lini__titik { border-color: rgba(255, 102, 0, .55); color: #ff8a3d; }
.hp-hs-lini__stasiun li.is-proses .hp-hs-lini__titik {
    border-color: #ff6600;
    background: #2b1a0e;
    box-shadow: 0 0 0 6px rgba(255, 102, 0, .16), 0 0 28px rgba(255, 102, 0, .5);
}

.hp-hs-lini__nama {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(10px, 1cqw, 12px);
    font-weight: 600;
    line-height: 1.3;
    transition: color .3s ease;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hp-hs-lini__stasiun li.is-aktif .hp-hs-lini__nama,
.hp-hs-lini__stasiun a:hover .hp-hs-lini__nama { color: #fff; }
.hp-hs-lini__stasiun a:hover .hp-hs-lini__titik { border-color: #ff6600; color: #fff; }
.hp-hs-lini__stasiun a:focus-visible { outline: 3px solid #ff6600; outline-offset: 3px; border-radius: 8px; }

.hp-hs-lini__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Masuk saat slide menjadi aktif (sama dengan slide desain). */
.hp-hs__slide.is-masuk .hp-hs-lini__panel { animation: hp-hs-mesin .9s cubic-bezier(.16, 1, .3, 1) .1s both; }
.hp-hs__slide.is-masuk .hp-hs-lini__jalur { animation: hp-hs-naik .7s cubic-bezier(.16, 1, .3, 1) .3s both; }

@media (max-width: 1023px) {
    /* Nama stasiun tetap untuk pembaca layar; di layar sempit cukup nomornya (nama ada di panel). */
    .hp-hs-lini__nama {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .hp-hs-lini__titik { width: 34px; height: 34px; border-radius: 10px; }
    .hp-hs-lini__sabuk { top: 12px; }
}

@media (max-width: 760px) {
    .hp-hs-lini {
        position: relative;
        inset: auto;
        flex: 1 0 auto;
        width: auto;
        min-height: 292px;
        margin: 16px 16px 0;
        gap: 14px;
    }

    .hp-hs-lini__mesin img { top: 30%; left: 10%; width: 86%; height: 68%; }
    .hp-hs-lini__mesin figcaption { max-width: 70%; }
    .hp-hs-lini__no { font-size: 22px; }
    .hp-hs__slide--industri .hp-hs__isi { width: 100%; }
    .hp-hs__slide--industri .hp-hs__judul,
    .hp-hs__slide--industri .hp-hs__teks { max-width: none; }
    .hp-hs__slide--industri .hp-hs__judul { font-size: clamp(24px, 7.4vw, 30px); }
}

@media (prefers-reduced-motion: reduce) {
    .hp-hs-lini__mesin,
    .hp-hs-lini__titik,
    .hp-hs-lini__barang svg { transition: none; }
}
