/* =========================================================
   PAGE 03 - KISAH KAMI & TENTANG KAMI
   PT. MUSTIKA BERKAH SENTOSA
   ========================================================= */

/* =========================================================
   STRUKTUR HALAMAN
   ========================================================= */

.company-story-page .story-section {
    position: relative;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: visible;
    isolation: isolate;
    background: var(--company-white);
}

.company-story-page .story-container,
.company-story-page .story-bottom-container {
    position: relative;
    width: min(
        calc(100% - 48px),
        var(--company-container)
    );
    margin-inline: auto;
}

.company-story-page .story-container {
    z-index: 3;
    padding-top:
        calc(var(--company-header-height) + 64px);
    padding-bottom: 0;
}

/* =========================================================
   ORNAMEN TITIK
   ========================================================= */

.company-story-page .story-dots {
    position: absolute;
    z-index: 1;

    width: 92px;
    height: 92px;

    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            rgba(10, 114, 152, 0.62) 1.35px,
            transparent 1.45px
        );

    background-size: 8px 8px;
    opacity: 0.4;
}

/* Titik kanan atas */

.company-story-page .story-dots-top {
    top: calc(var(--company-header-height) + 62px);

    right: max(
        4%,
        calc((100% - var(--company-container)) / 2)
    );
}

/* Titik kiri tengah */

.company-story-page .story-section::before {
    content: "";

    position: absolute;
    top: 50%;
    left: max(
        3%,
        calc((100% - var(--company-container)) / 2 - 74px)
    );
    z-index: 1;

    width: 78px;
    height: 78px;

    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            rgba(10, 114, 152, 0.5) 1.25px,
            transparent 1.35px
        );

    background-size: 8px 8px;
    opacity: 0.27;
}

/* Titik kanan area putih */

.company-story-page .story-section::after {
    content: "";

    position: absolute;
    top: 66%;
    right: max(
        4%,
        calc((100% - var(--company-container)) / 2 - 8px)
    );
    z-index: 1;

    width: 82px;
    height: 82px;

    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            rgba(10, 114, 152, 0.5) 1.25px,
            transparent 1.35px
        );

    background-size: 8px 8px;
    opacity: 0.28;
}

/* =========================================================
   KISAH KAMI
   ========================================================= */

.company-story-page .story-intro {
    width: 100%;
    max-width: 1110px;
    padding-right: 50px;
}

.company-story-page .story-intro h1,
.company-story-page .story-about-copy h2 {
    margin: 0;

    color: var(--company-navy);

    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
}

.company-story-page .story-intro h1 {
    font-size: clamp(46px, 4.2vw, 60px);
}

.company-story-page .story-intro h1 strong,
.company-story-page .story-about-copy h2 strong {
    font-weight: 800;
}

.company-story-page .story-intro > p {
    width: 100%;
    max-width: 1060px;

    margin: 22px 0 0;

    color: var(--company-navy);

    font-size: 15px;
    line-height: 1.72;

    text-align: justify;
}

.company-story-page .story-intro > p strong {
    font-weight: 700;
}

/* =========================================================
   DAFTAR CENTANG
   ========================================================= */

.company-story-page .story-check-list {
    margin-top: 18px;

    display: grid;
    gap: 10px;
}

.company-story-page .story-check-item,
.company-story-page .story-service-item,
.company-story-page .story-pillar-item {
    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--company-navy);

    font-size: 15px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
}

.company-story-page .story-check-icon {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--company-white);
    background: var(--company-blue);

    border-radius: 50%;
}

.company-story-page .story-check-icon svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   BAGIAN TENTANG KAMI
   ========================================================= */

.company-story-page .story-about {
    width: 100%;

    margin-top: 86px;

    display: grid;

    grid-template-columns:
        340px
        58px
        minmax(0, 1fr);

    align-items: center;

    /*
     * Jarak gambar - ikon - tulisan dibuat lebih lega.
     */
    column-gap: 34px;
}

/* =========================================================
   GAMBAR INDUSTRI
   ========================================================= */

.company-story-page .story-workshop-card {
    width: 100%;

    /*
     * Tidak terlalu tinggi agar komposisi gambar tetap utuh.
     */
    aspect-ratio: 1.03 / 1;

    margin: 0;

    overflow: hidden;

    background: var(--company-soft);

    border-radius: 24px;

    box-shadow:
        0 20px 46px rgba(4, 43, 60, 0.15);
}

.company-story-page .story-workshop-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
     * Kepala pekerja tidak terlalu terpotong.
     */
    object-position: center 38%;
}

/* =========================================================
   TIGA IKON VERTIKAL
   ========================================================= */

.company-story-page .story-icon-rail {
    display: grid;
    justify-items: center;

    gap: 13px;

    margin: 0;
}

.company-story-page .story-rail-icon {
    width: 54px;
    height: 54px;

    padding: 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--company-white);
    background: var(--company-navy);

    border-radius: 12px;

    box-shadow:
        0 12px 28px rgba(4, 43, 60, 0.13);
}

.company-story-page .story-rail-icon svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   COPY TENTANG KAMI
   ========================================================= */

.company-story-page .story-about-copy {
    width: 100%;
    max-width: 650px;

    /*
     * Hanya menggeser blok tulisan,
     * bukan memperbesar judul.
     */
    margin-left: 34px;
}

.company-story-page .story-about-copy h2 {
    font-size: clamp(46px, 4.2vw, 60px);
}

.company-story-page .story-about-copy > p {
    width: 100%;
    max-width: 590px;

    margin: 22px 0 0;

    color: var(--company-navy);

    font-size: 15px;
    line-height: 1.68;

    text-align: justify;
}

.company-story-page .story-about-copy > p strong {
    font-weight: 700;
}

.company-story-page .story-service-list {
    margin-top: 18px;

    display: grid;
    gap: 13px;
}

/* =========================================================
   PENDEKATAN PERUSAHAAN
   ========================================================= */

.company-story-page .story-impact {
    width: 100%;

    margin-top: 54px;
}

.company-story-page .story-impact > p {
    width: 100%;
    max-width: 1130px;

    margin: 0;

    color: var(--company-navy);

    font-size: 15px;
    line-height: 1.68;

    text-align: justify;
}

.company-story-page .story-pillar-list {
    margin-top: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 36px;
}

.company-story-page .story-pillar-item {
    font-size: 15px;
}

/* =========================================================
   BAND BIRU BAGIAN BAWAH
   ========================================================= */

.company-story-page .story-bottom-band {
    position: relative;
    z-index: 2;

    min-height: 360px;

    margin-top: 112px;

    /*
     * Ornamen boleh keluar ke area putih.
     */
    overflow: visible;

    color: var(--company-white);
    background: var(--company-navy);
}

.company-story-page .story-bottom-container {
    z-index: 4;

    min-height: 360px;

    /*
     * Memberi ruang aman bagi ornamen kanan.
     */
    padding-right: 255px;
}

/* Titik kiri pada area biru */

.company-story-page .story-bottom-band::before {
    content: "";

    position: absolute;
    top: 108px;
    left: max(
        3%,
        calc((100% - var(--company-container)) / 2 - 60px)
    );
    z-index: 2;

    width: 76px;
    height: 76px;

    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.72) 1.25px,
            transparent 1.35px
        );

    background-size: 8px 8px;
    opacity: 0.22;
}

/* =========================================================
   GAMBAR TIM BAGIAN BAWAH
   ========================================================= */

.company-story-page .story-team-card {
    position: relative;
    z-index: 6;

    width: 74%;
    max-width: 790px;

    /*
     * Lebih tinggi agar tubuh dan kepala tidak terlalu terpotong.
     */
    aspect-ratio: 2.35 / 1;

    margin: 0;

    overflow: hidden;

    background: var(--company-soft);

    border: 6px solid var(--company-white);
    border-radius: 24px;

    box-shadow:
        0 22px 48px rgba(4, 43, 60, 0.19);

    /*
     * Gambar berada tepat di perbatasan putih-biru.
     */
    transform: translateY(-58px);
}

.company-story-page .story-team-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
     * Fokus gambar sedikit dinaikkan.
     */
    object-position: center 55%;
}

/* =========================================================
   ORNAMEN KANAN BAWAH
   Tepat di tengah batas putih dan biru
   ========================================================= */

.company-story-page .story-bottom-shape {
    position: absolute;

    /*
     * top: 0 berarti titik acuan pada garis batas section.
     */
    top: 0;
    right: 72px;
    z-index: 7;

    width: 180px;
    height: 180px;

    background: var(--company-blue);

    border-radius: 36px;

    /*
     * translateY(-50%) membuat separuh ornamen
     * berada di putih dan separuh di biru.
     */
    transform:
        translateY(-50%)
        rotate(45deg);

    /*
     * Layer putih di belakang.
     */
    box-shadow:
        24px 24px 0 var(--company-white);
}

/* Layer biru tua di dalam */

.company-story-page .story-bottom-shape::before {
    content: "";

    position: absolute;
    inset: 18px;

    border-radius: 27px;

    background:
        rgba(7, 63, 86, 0.22);
}

/* Garis halus dekoratif */

.company-story-page .story-bottom-shape::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, 0.08);
}

/* =========================================================
   NAVIGASI BAWAH
   ========================================================= */

.company-story-page .story-page-navigation {
    position: relative;
    z-index: 8;

    margin-top: -26px;
    padding-bottom: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.company-story-page .story-page-link {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.04em;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.company-story-page .story-page-link:hover {
    color: var(--company-white);

    transform: translateX(-4px);
}

.company-story-page .story-page-link-next:hover {
    transform: translateX(4px);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.company-story-page .reveal-on-scroll {
    opacity: 0;

    transform: translateY(24px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.company-story-page .reveal-on-scroll.is-visible {
    opacity: 1;

    transform: translateY(0);
}

/*
 * Gambar bawah tetap overlap saat animasi.
 */

.company-story-page .story-team-card.reveal-on-scroll {
    transform: translateY(-34px);
}

.company-story-page .story-team-card.reveal-on-scroll.is-visible {
    transform: translateY(-58px);
}

/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1180px) {
    .company-story-page .story-container,
    .company-story-page .story-bottom-container {
        width: min(
            calc(100% - 42px),
            1120px
        );
    }

    .company-story-page .story-about {
        grid-template-columns:
            320px
            56px
            minmax(0, 1fr);

        column-gap: 28px;
    }

    .company-story-page .story-about-copy {
        margin-left: 26px;
    }

    .company-story-page .story-bottom-container {
        padding-right: 225px;
    }

    .company-story-page .story-team-card {
        width: 76%;
    }

    .company-story-page .story-bottom-shape {
        top: 0;
        right: 58px;

        width: 166px;
        height: 166px;

        border-radius: 33px;

        transform:
            translateY(-50%)
            rotate(45deg);

        box-shadow:
            21px 21px 0 var(--company-white);
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {
    .company-story-page .story-container,
    .company-story-page .story-bottom-container {
        width: min(
            calc(100% - 34px),
            860px
        );
    }

    .company-story-page .story-about {
        grid-template-columns:
            290px
            52px
            minmax(0, 1fr);

        column-gap: 20px;
    }

    .company-story-page .story-about-copy {
        margin-left: 18px;
    }

    .company-story-page .story-about-copy h2 {
        font-size: 46px;
    }

    .company-story-page .story-intro > p,
    .company-story-page .story-about-copy > p,
    .company-story-page .story-impact > p {
        font-size: 14px;
    }

    .company-story-page .story-check-item,
    .company-story-page .story-service-item,
    .company-story-page .story-pillar-item {
        font-size: 14px;
    }

    .company-story-page .story-bottom-container {
        padding-right: 190px;
    }

    .company-story-page .story-team-card {
        width: 82%;
    }

    .company-story-page .story-bottom-shape {
        top: 0;
        right: 42px;

        width: 146px;
        height: 146px;

        border-radius: 29px;

        transform:
            translateY(-50%)
            rotate(45deg);

        box-shadow:
            18px 18px 0 var(--company-white);
    }

    .company-story-page .story-bottom-shape::before {
        inset: 15px;

        border-radius: 22px;
    }
}

/* =========================================================
   TABLET KECIL
   ========================================================= */

@media (max-width: 760px) {
    .company-story-page .story-container,
    .company-story-page .story-bottom-container {
        width: min(
            calc(100% - 28px),
            680px
        );
    }

    .company-story-page .story-dots-top,
    .company-story-page .story-section::before,
    .company-story-page .story-section::after,
    .company-story-page .story-bottom-band::before {
        display: none;
    }

    .company-story-page .story-intro {
        padding-right: 0;
    }

    .company-story-page .story-about {
        grid-template-columns: 1fr;

        row-gap: 24px;
    }

    .company-story-page .story-workshop-card {
        width: min(100%, 460px);

        justify-self: center;

        aspect-ratio: 1.03 / 1;
    }

    .company-story-page .story-icon-rail {
        display: flex;
        justify-content: center;

        gap: 10px;
    }

    .company-story-page .story-about-copy {
        width: 100%;
        max-width: none;

        margin-left: 0;
    }

    .company-story-page .story-about-copy h2 {
        font-size: 44px;
    }

    .company-story-page .story-intro > p,
    .company-story-page .story-about-copy > p,
    .company-story-page .story-impact > p {
        text-align: left;
    }

    .company-story-page .story-bottom-container {
        padding-right: 0;
    }

    .company-story-page .story-team-card {
        width: calc(100% - 145px);

        aspect-ratio: 2.05 / 1;
    }

    .company-story-page .story-bottom-shape {
        top: 0;
        right: 25px;

        width: 112px;
        height: 112px;

        border-radius: 23px;

        transform:
            translateY(-50%)
            rotate(45deg);

        box-shadow:
            14px 14px 0 var(--company-white);
    }

    .company-story-page .story-bottom-shape::before {
        inset: 12px;

        border-radius: 18px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {
    .company-story-page .story-container,
    .company-story-page .story-bottom-container {
        width: min(
            calc(100% - 26px),
            520px
        );
    }

    .company-story-page .story-container {
        padding-top:
            calc(var(--company-header-height) + 34px);
    }

    .company-story-page .story-intro h1,
    .company-story-page .story-about-copy h2 {
        font-size: 41px;
    }

    .company-story-page .story-intro > p,
    .company-story-page .story-about-copy > p,
    .company-story-page .story-impact > p {
        font-size: 13.5px;
        line-height: 1.72;
    }

    .company-story-page .story-check-item,
    .company-story-page .story-service-item,
    .company-story-page .story-pillar-item {
        align-items: flex-start;

        font-size: 13.5px;
    }

    .company-story-page .story-check-icon {
        width: 25px;
        height: 25px;

        flex-basis: 25px;
    }

    .company-story-page .story-check-icon svg {
        width: 19px;
        height: 19px;
    }

    .company-story-page .story-about {
        margin-top: 54px;
    }

    .company-story-page .story-workshop-card {
        width: 100%;

        border-radius: 18px;
    }

    .company-story-page .story-rail-icon {
        width: 46px;
        height: 46px;
    }

    .company-story-page .story-impact {
        margin-top: 44px;
    }

    .company-story-page .story-pillar-list {
        align-items: flex-start;
        justify-content: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .company-story-page .story-bottom-band {
        min-height: 360px;

        margin-top: 100px;
    }

    .company-story-page .story-team-card {
        width: 100%;

        aspect-ratio: 1.95 / 1;

        border-width: 5px;
        border-radius: 18px;

        transform: translateY(-50px);
    }

    .company-story-page .story-team-card img {
        object-position: center 37%;
    }

    .company-story-page .story-team-card.reveal-on-scroll {
        transform: translateY(-30px);
    }

    .company-story-page .story-team-card.reveal-on-scroll.is-visible {
        transform: translateY(-50px);
    }

    .company-story-page .story-bottom-shape {
        top: 0;
        right: 18px;

        width: 96px;
        height: 96px;

        border-radius: 20px;

        transform:
            translateY(-50%)
            rotate(45deg);

        box-shadow:
            12px 12px 0 var(--company-white);
    }

    .company-story-page .story-bottom-shape::before {
        inset: 10px;

        border-radius: 15px;
    }

    .company-story-page .story-page-navigation {
        margin-top: 6px;
        padding-bottom: 28px;

        align-items: stretch;
        flex-direction: column;

        gap: 16px;
    }

    .company-story-page .story-page-link-next {
        align-self: flex-end;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .company-story-page .reveal-on-scroll,
    .company-story-page .reveal-on-scroll.is-visible {
        opacity: 1;

        transition: none;
    }

    .company-story-page .story-team-card.reveal-on-scroll,
    .company-story-page .story-team-card.reveal-on-scroll.is-visible {
        transform: translateY(-58px);
    }

    .company-story-page .story-page-link {
        transition: none;
    }
}