
/* =========================================================
   TANÉA — OUR STORY / ABOUT
   ========================================================= */

.discover-section {
    position: relative;
    overflow: visible;
    background: var(--bg-light);
    color: var(--text-dark);
    padding-top: 80px;
}

.story-editorial {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

/* =========================================================
   STORY ROW
   ========================================================= */

.story-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 80px;
    width: 100%;
    min-height: 430px;
    overflow: visible;
}

.story-row + .story-row {
    margin-top: 10px;
}

/* Zig-zag layout */

.story-row-01 {
    padding-top: 30px;
}

.story-row-02 {
    padding-left: 40px;
}

.story-row-03 {
    padding-right: 40px;
}

.story-row-04 {
    padding-left: 40px;
}

/* =========================================================
   STORY 01 — INTRO
   ========================================================= */

.story-intro {
    position: relative;
    padding-right: 90px;
}

.story-intro .eyebrow {
    margin: 0 0 20px;
    color: #766e60;
}

.story-intro h2 {
    margin-bottom: 35px;
    font-style: normal;
}

.story-intro h2 em,
.story-intro h2 i {
    font-style: inherit !important;
}

.story-intro-text {
    max-width: 390px;
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
    color: #686157;
}

/* =========================================================
   STORY DESCRIPTION
   ========================================================= */

.story-description {
    max-width: 390px;
    padding: 10px;
}

.story-index {
    display: block;
    margin-bottom: 22px;
    font-size: 10px;
    letter-spacing: .18em;
    color: #8b8376;
}

.story-description h3 {
    margin-bottom: 25px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;
}

.story-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #686157;
}

.location-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 35px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.location-label .dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #817461;
}

/* =========================================================
   VISUAL / IMAGE
   ========================================================= */

.story-visual {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    transform: translateY(40px);
}

.story-image {
    position: relative;
    z-index: 3;
    flex: 1 1 0;
    width: 100%;
    height: 480px;
    min-width: 0;
    overflow: hidden;
    background: #c9c0b0;
}

.story-image .image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #c9c0b0;
    transform: scale(1.04);
    transition: transform 1.6s cubic-bezier(.22, 1, .36, 1);
}

.story-row.is-visible .story-image .image-placeholder {
    transform: scale(1);
}

.story-row:not(.is-visible) .story-image .image-placeholder {
    transform: scale(1.04);
}

/* Story 01 — image movement */

.story-row-01 .story-image .image-placeholder {
    transition: transform 2.2s cubic-bezier(.22, 1, .36, 1);
}

/* Photo fit */

.story-row-01 .story-photo,
.story-row-02 .story-photo,
.story-row-03 .story-photo,
.story-row-04 .story-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-row-02 .story-photo,
.story-row-03 .story-photo,
.story-row-04 .story-photo {
    object-position: center center;
}

/* Story 04 — description position */

.story-row-04 .story-description {
    transform: translateY(50px);
}

/* =========================================================
   CINEMATIC CURTAIN REVEAL
   ========================================================= */

.story-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
    background: #9e9e9eb1;
    transform: translateX(0);
    transition: transform 2.2s cubic-bezier(.77, 0, .18, 1);
}

.story-row-01 .story-image::after,
.story-row-03 .story-image::after {
    transform: translateX(0);
}

.story-row-01.is-visible .story-image::after,
.story-row-03.is-visible .story-image::after {
    transform: translateX(101%);
}

.story-row-02 .story-image::after,
.story-row-04 .story-image::after {
    transform: translateX(0);
}

.story-row-02.is-visible .story-image::after,
.story-row-04.is-visible .story-image::after {
    transform: translateX(-101%);
}

/* =========================================================
   VERTICAL CAPTION
   ========================================================= */

.story-caption.vertical {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    writing-mode: vertical-rl;
    white-space: nowrap;
    opacity: 0;
    transform: rotate(180deg) translateY(35px);
    transition:
        opacity 1.4s ease,
        transform 1.4s cubic-bezier(.22, 1, .36, 1);
}

.story-row.is-visible .story-caption.vertical {
    opacity: 0.40;
    transform: rotate(180deg) translateY(0);
    transition-delay: .55s;
}

/* Alternating caption sides */

.story-row-01 .story-caption.vertical,
.story-row-03 .story-caption.vertical {
    order: -1;
}

.story-row-02 .story-caption.vertical,
.story-row-04 .story-caption.vertical {
    order: 1;
}

/* =========================================================
   TEXT REVEAL
   ========================================================= */

.story-intro h2,
.story-intro-text,
.story-description h3,
.story-description p,
.location-label {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(.22, 1, .36, 1);
}

.story-row.is-visible .story-intro h2,
.story-row.is-visible .story-intro-text,
.story-row.is-visible .story-description h3,
.story-row.is-visible .story-description p,
.story-row.is-visible .location-label {
    opacity: 1;
    transform: translateY(0);
}

.story-row.is-visible .story-intro h2,
.story-row.is-visible .story-description h3 {
    transition-delay: .55s;
}

.story-row.is-visible .story-intro-text,
.story-row.is-visible .story-description p {
    transition-delay: .95s;
}

.story-row.is-visible .location-label {
    transition-delay: 1.2s;
}

/* =========================================================
   STATIC EDITORIAL ORNAMENTS
   ========================================================= */

.story-row-04 .story-visual::before {
    content: "";
    position: absolute;
    left: -190px;
    bottom: 420px;
    width: 320px;
    height: 440px;
    background: url("../../assets/ornaments/ornament-2.png") center / contain no-repeat;
    opacity: .30;
    filter: grayscale(1);
    pointer-events: none;
    z-index: 0;
}

.story-row-01 .story-visual::after {
    content: "";
    position: absolute;
    right: -310px;
    top: 48%;
    width: 450px;
    height: 510px;
    background: url("../../assets/ornaments/ornament-1.png") center / contain no-repeat;
    opacity: .30;
    filter: grayscale(1);
    transform: translateY(-50%) rotate(20deg);
    pointer-events: none;
    z-index: 0;
}

/* Hide legacy botanical elements */

.story-visual .photo-botanical {
    display: none !important;
}

/* =========================================================
   STORY INTRO / DESCRIPTION POSITIONS
   Offset editorial hanya di desktop lebar (>= 1101px).
   Dulu pakai transform: translateX() di SEMUA ukuran layar, sehingga
   di HP teks terdorong keluar layar dan halaman jadi melebar.
   .story-intro pakai margin-left (bukan transform) supaya tidak
   jadi containing block yang menggeser label "philosophy".
   ========================================================= */

@media (min-width: 1101px) {

    .story-row-01 .story-intro {
        margin-left: 90px;
        padding-right: 0;
    }

    .story-row-02 .story-description {
        transform: translate(45px, 40px);
    }

    .story-row-03 .story-description {
        transform: translate(90px, 40px);
    }

    .story-row-04 .story-description {
        transform: translate(45px, 40px);
    }
}

@media (max-width: 1100px) {

    .story-row-01 .story-intro,
    .story-row-02 .story-description,
    .story-row-03 .story-description,
    .story-row-04 .story-description {
        transform: none;
        margin-left: 0;
    }

    .story-visual {
        transform: none;
    }
}

.story-row-02 .story-description p,
.story-row-03 .story-description p,
.story-row-04 .story-description p {
    text-align: justify;
}

/* =========================================================
   RESPONSIVE — STORY 03 TITLE
   ========================================================= */

@media (max-width: 600px) {
    .story-row-03 .story-description h3 {
        font-size: clamp(20px, 5vw, 30px);
        white-space: nowrap;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .story-row,
    .story-image .image-placeholder,
    .story-image::after,
    .story-caption.vertical,
    .story-intro h2,
    .story-intro-text,
    .story-description h3,
    .story-description p,
    .location-label,
    .story-row-01 .story-intro .eyebrow {
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   PHILOSOPHY — JUDUL BESAR DI ATAS SECTION
   Desktop (>= 1101px): menggantung 150px di atas h2, dipusatkan
   terhadap baris story (bukan lagi pakai 100vw + left:85% yang
   membuatnya meluber keluar layar).
   Tablet/HP: jadi heading biasa di dalam alur dokumen.
   ========================================================= */

.discover-section {
    position: relative;
}

.story-row-01 .story-intro .eyebrow {
    margin: 0;
    padding: 0;

    color: #80664E;
    font-family: "Quicksand", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.12;
    text-align: center;
    text-transform: none;

    opacity: 0.60;
    visibility: visible;
}

@media (min-width: 1101px) {

    .story-row-01 .story-intro .eyebrow {
        position: absolute;
        top: -150px;

        /* kolom kiri + setengah gap (80px / 2) = tengah baris */
        left: calc(100% + 40px);
        width: min(1100px, calc(100vw - 2 * var(--side-padding)));

        transform: translateX(-50%);

        font-size: clamp(38px, 4vw, 58px);
        letter-spacing: 0.30em;
        white-space: normal;
    }
}

@media (max-width: 1100px) {

    /* Judul membentang di atas kedua kolom: dipasang absolut terhadap
       .story-row-01, ruangnya disediakan lewat padding-top baris itu. */
    .story-row-01 .story-intro {
        position: static;
    }

    .discover-section .story-row-01 {
        padding-top: calc(clamp(26px, 6.2vw, 48px) * 1.12 + 26px) !important;
    }

    .story-row-01 .story-intro .eyebrow {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        transform: none;

        font-size: clamp(26px, 6.2vw, 48px);
        letter-spacing: 0.24em;
        text-indent: 0.24em;   /* kompensasi spasi huruf terakhir supaya benar-benar center */
        white-space: normal;
    }
}

@media (max-width: 600px) {

    .story-row-01 .story-intro .eyebrow {
        letter-spacing: 0.18em;
        text-indent: 0.18em;
    }
}
