
/* OUR STORY SECTION */

.our-story {
    --story-navy: #071b3a;
    --story-blue: #1677f9;
    --story-text: #192943;
    --story-muted: #6b778b;
    --story-light: #f2f7ff;

    position: relative;
    padding: 95px 0;
    background: #f5f8fc;
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
}

.our-story *,
.our-story *::before,
.our-story *::after {
    box-sizing: border-box;
}

.our-story-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.our-story-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 85px;
}

/* IMAGE */

.our-story-visual {
    position: relative;
    min-width: 0;
    padding: 0 22px 25px 0;
}

.story-image-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 490px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #dceaff, #f1f6ff);
}

.story-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.our-story-visual:hover .story-image-frame img {
    transform: scale(1.04);
}

.story-fallback-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--story-navy);
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, #dceaff, #f1f6ff);
}

.story-image-frame:not(.story-image-fallback) .story-fallback-content {
    display: none;
}

.story-fallback-logo {
    color: var(--story-blue);
    font-size: 62px;
    font-weight: 800;
    letter-spacing: 5px;
}

/* IMAGE DECORATION */

.story-image-decoration {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    width: 67%;
    height: 62%;
    border: 7px solid var(--story-blue);
    border-radius: 14px;
}

.story-image-dots {
    position: absolute;
    top: -22px;
    left: -25px;
    width: 105px;
    height: 105px;
    background-image: radial-gradient(
        var(--story-blue) 1.5px,
        transparent 1.5px
    );
    background-size: 13px 13px;
    opacity: 0.4;
}

/* FLOATING LABEL */

.story-image-label {
    position: absolute;
    z-index: 2;
    left: -28px;
    bottom: 55px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: 1px solid #edf1f7;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(7, 27, 58, 0.12);
}

.story-label-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: var(--story-blue);
    color: #ffffff;
    font-size: 21px;
}

.story-image-label strong,
.story-image-label small {
    display: block;
}

.story-image-label strong {
    color: var(--story-navy);
    font-size: 12px;
    font-weight: 800;
}

.story-image-label small {
    margin-top: 3px;
    color: var(--story-muted);
    font-size: 10px;
}

/* CONTENT */

.our-story-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--story-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.our-story-tag span {
    width: 25px;
    height: 2px;
    background: var(--story-blue);
}

.our-story-content h2 {
    margin: 0 0 20px;
    color: var(--story-navy);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.4px;
}

.our-story-content h2 span {
    display: block;
    color: var(--story-blue);
}

.our-story-intro,
.our-story-description {
    margin: 0 0 13px;
    color: var(--story-muted);
    font-size: 13px;
    line-height: 1.9;
}

/* JOURNEY */

.story-journey {
    position: relative;
    display: grid;
    gap: 0;
    margin: 27px 0 23px;
}

.story-journey::before {
    position: absolute;
    content: "";
    top: 23px;
    bottom: 35px;
    left: 21px;
    width: 1px;
    background: #c7dcfa;
}

.story-journey-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
}

.story-journey-item:last-child {
    padding-bottom: 0;
}

.journey-marker {
    position: relative;
    z-index: 1;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe1ff;
    border-radius: 50%;
    background: #eaf3ff;
    color: var(--story-blue);
    font-size: 11px;
    font-weight: 800;
    transition: 0.3s ease;
}

.story-journey-item:hover .journey-marker {
    background: var(--story-blue);
    border-color: var(--story-blue);
    color: #ffffff;
    transform: scale(1.06);
}

.journey-details {
    padding-top: 2px;
}

.journey-details h3 {
    margin: 0 0 5px;
    color: var(--story-navy);
    font-size: 13px;
    font-weight: 800;
}

.journey-details p {
    margin: 0;
    color: var(--story-muted);
    font-size: 11px;
    line-height: 1.8;
}

/* LINK */

.our-story-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #c9d8eb;
    color: var(--story-navy);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s ease;
}

.our-story-link span {
    color: var(--story-blue);
    font-size: 16px;
    transition: transform 0.3s ease;
}

.our-story-link:hover {
    color: var(--story-blue);
    border-color: var(--story-blue);
}

.our-story-link:hover span {
    transform: translate(3px, -3px);
}

/* SCROLL ANIMATION */

.our-story .story-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.our-story .story-reveal.story-visible {
    opacity: 1;
    transform: translateY(0);
}

/* TABLET */

@media (max-width: 1024px) {
    .our-story {
        padding: 75px 0;
    }

    .our-story-grid {
        gap: 48px;
    }

    .story-image-frame {
        height: 430px;
    }

    .our-story-content h2 {
        font-size: 37px;
    }
}

/* MOBILE */

@media (max-width: 768px) {
    .our-story {
        padding: 65px 0;
    }

    .our-story-container {
        width: calc(100% - 36px);
    }

    .our-story-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .our-story-content h2 {
        font-size: clamp(31px, 8vw, 40px);
    }

    .our-story-intro,
    .our-story-description {
        font-size: 12px;
    }

    .our-story-visual {
        margin-left: 14px;
        padding-right: 12px;
    }

    .story-image-frame {
        height: 350px;
    }

    .story-image-decoration {
        border-width: 5px;
    }

    .story-image-label {
        left: -14px;
        bottom: 28px;
        padding: 12px 14px;
    }

    .story-journey {
        margin-top: 24px;
    }
}

/* SMALL MOBILE */

@media (max-width: 480px) {
    .our-story {
        padding: 52px 0;
    }

    .our-story-container {
        width: calc(100% - 32px);
    }

    .our-story-content h2 {
        font-size: 31px;
        letter-spacing: -0.8px;
    }

    .our-story-tag {
        font-size: 10px;
    }

    .story-image-frame {
        height: 290px;
    }

    .story-image-dots {
        width: 75px;
        height: 75px;
        left: -16px;
    }

    .story-image-label {
        left: -10px;
        bottom: 20px;
        gap: 9px;
        padding: 10px 12px;
    }

    .story-label-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .story-image-label strong {
        font-size: 11px;
    }

    .story-image-label small {
        font-size: 9px;
    }

    .story-journey-item {
        gap: 12px;
        padding-bottom: 17px;
    }

    .journey-marker {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
    }

    .story-journey::before {
        left: 19px;
    }

    .journey-details h3 {
        font-size: 12px;
    }

    .journey-details p {
        font-size: 10px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .our-story *,
    .our-story *::before,
    .our-story *::after {
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .our-story .story-reveal {
        opacity: 1;
        transform: none;
    }
}