/* =========================================================
   EVERLASTING VESSELS
   Our Story Component
   ========================================================= */

.our-story {
    --story-background: #160d1f;
    --story-eyebrow: #c6f135;
    --story-heading: #ffffff;
    --story-text: #f2ecf5;
    --story-accent: #c6f135;
    --story-secondary: #6b179e;
    --story-border: #c6f135;
    --story-button-text: #ffffff;

    position: relative;
    overflow: hidden;
    padding:
    clamp(4rem, 7vw, 6.5rem)
    0
    clamp(6.5rem, 9vw, 8rem);
    background:
        radial-gradient(
            circle at 80% 25%,
            rgb(106 23 158 / 18%),
            transparent 35%
        ),
        var(--story-background);
    color: var(--story-text);
}

/* subtle texture */
.our-story::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 10% 90%,
            rgb(198 241 53 / 4%),
            transparent 28%
        );
    content: "";
    pointer-events: none;
}

.our-story__container {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 2.25fr);
    gap: clamp(2.5rem, 5vw, 5rem);
}

/* =========================================================
   Intro
   ========================================================= */

.our-story__intro {
    max-width: 24rem;
}

.our-story__eyebrow {
    margin-bottom: 0.65rem;
    color: var(--story-eyebrow);
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    font-weight: 500;
    line-height: 1;
    transform: rotate(-2deg);
}

.our-story__heading {
    margin-bottom: 1.25rem;
    color: var(--story-heading);
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 3.4vw, 3.75rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.our-story__text {
    margin-bottom: 1.5rem;
    color: var(--story-text);
    font-size: 0.98rem;
    line-height: 1.7;
}

.our-story__cta {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.2rem;
    border: 1.5px solid rgb(255 255 255 / 85%);
    border-radius: 0.45rem;
    color: var(--story-button-text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.our-story__cta:hover {
    border-color: var(--story-accent);
    background: var(--story-accent);
    color: var(--story-background);
    transform: translateY(-2px);
}


/* =========================================================
   Story Article Links
   ========================================================= */

.our-story__articles {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
}

.our-story__articles-label {
    margin: 0 0 0.15rem;

    color: var(--story-accent);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.our-story__articles .our-story__cta {
    width: 100%;
    max-width: 18rem;

    justify-content: space-between;

    text-align: left;
}

.our-story__cta-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.15rem;
}

.our-story__cta-label {
    color: inherit;

    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
}

.our-story__cta-publication {
    color: rgb(255 255 255 / 68%);

    font-size: 0.68rem;
    font-weight: 500;

    letter-spacing: 0;
    text-transform: none;
}

.our-story__cta i {
    flex: 0 0 auto;
}



/* =========================================================
   Timeline
   ========================================================= */

.our-story__timeline {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.story-timeline-item {
    position: relative;
    min-width: 0;
    text-align: center;
}

/* =========================================================
   Timeline image
   ========================================================= */

.story-timeline-item__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.story-timeline-item__image-wrapper {
    position: relative;
    z-index: 2;
    width: clamp(6rem, 8vw, 8.5rem);
    aspect-ratio: 1;
    flex: 0 0 auto;
    padding: 0.25rem;
    border: 2px solid var(--story-border);
    border-radius: 50%;
    background: var(--story-secondary);
    box-shadow:
        0 0 0 0.25rem rgb(255 255 255 / 5%),
        0 0.65rem 1.7rem rgb(0 0 0 / 22%);
}

.story-timeline-item__image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================================================
   Connector arrow
   ========================================================= */

.story-timeline-item__connector {
    position: absolute;
    top: 50%;
    right: -1.35rem;
    z-index: 4;
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    background: var(--story-secondary);
    color: #ffffff;
    font-size: 0.65rem;
    transform: translateY(-50%);
    box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 20%);
}

/* optional horizontal guide */
.story-timeline-item:not(:last-child)::after {
    position: absolute;
    top: clamp(3rem, 4vw, 4.25rem);
    left: 67%;
    z-index: 0;
    width: 68%;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            rgb(198 241 53 / 20%),
            rgb(198 241 53 / 60%),
            rgb(198 241 53 / 20%)
        );
    content: "";
}

/* =========================================================
   Timeline copy
   ========================================================= */

.story-timeline-item__year {
    margin-bottom: 0.55rem;
    color: var(--story-accent);
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 800;
    line-height: 1;
}

.story-timeline-item__text {
    max-width: 13rem;
    margin: 0 auto;
    color: var(--story-text);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 63.9375rem) {
    .our-story__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .our-story__intro {
        max-width: 42rem;
    }

    .our-story__heading {
        max-width: 12ch;
    }

    .our-story__text {
        max-width: 42rem;
    }

    .our-story__timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 2rem;
    }

    /*
       Two-column tablet means connector 2 should not point
       toward the next row.
    */
    .story-timeline-item:nth-child(2) .story-timeline-item__connector {
        display: none;
    }

    .story-timeline-item:nth-child(2)::after {
        display: none;
    }

    .story-timeline-item__image-wrapper {
        width: clamp(7rem, 18vw, 9rem);
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 35rem) {
    .our-story {
        padding-block: 3.75rem;
    }

    .our-story__container {
        width: 100%;
        padding-inline: 1rem;
        gap: 3rem;
    }

    .our-story__intro {
        max-width: none;
    }

    .our-story__eyebrow {
        font-size: 1.8rem;
    }

    .our-story__heading {
        max-width: 10ch;
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .our-story__text {
        font-size: 0.96rem;
    }

    .our-story__articles {
        width: 100%;
    }

    .our-story__articles .our-story__cta {
        width: 100%;
        max-width: none;
    }

    .our-story__timeline {
        position: relative;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .story-timeline-item {
        display: grid;
        min-height: 10.5rem;
        align-items: center;
        grid-template-columns: 6.5rem minmax(0, 1fr);
        grid-template-areas:
            "visual year"
            "visual text";
        column-gap: 1.25rem;
        padding-bottom: 3.25rem;
        text-align: left;
    }

    .story-timeline-item__visual {
        grid-area: visual;
        align-self: start;
        margin: 0;
    }

    .story-timeline-item__image-wrapper {
        width: 6.5rem;
    }

    .story-timeline-item__year {
        grid-area: year;
        align-self: end;
        margin-bottom: 0.5rem;
    }

    .story-timeline-item__text {
        grid-area: text;
        align-self: start;
        max-width: none;
        margin: 0;
    }

    /*
       Horizontal timeline guide is removed.
    */
    .story-timeline-item:not(:last-child)::after {
        top: 6.8rem;
        left: 3.2rem;
        width: 2px;
        height: calc(100% - 5rem);
        background:
            linear-gradient(
                180deg,
                var(--story-accent),
                rgb(198 241 53 / 22%)
            );
    }

    /*
       Arrow rotates and points down on mobile.
    */
    .story-timeline-item__connector,
    .story-timeline-item:nth-child(2) .story-timeline-item__connector {
        top: auto;
        right: auto;
        bottom: -2.1rem;
        left: 50%;
        display: grid;
        transform:
            translateX(-50%)
            rotate(90deg);
    }

    .story-timeline-item:nth-child(2)::after {
        display: block;
    }

    .story-timeline-item:last-child {
        padding-bottom: 0;
    }
}

/* =========================================================
   Small desktop safety
   ========================================================= */

@media (min-width: 64rem) and (max-width: 74.9375rem) {
    .our-story__container {
        grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 2.3fr);
        gap: 2rem;
    }

    .our-story__timeline {
        gap: 0.9rem;
    }

    .story-timeline-item__text {
        font-size: 0.8rem;
    }

    .story-timeline-item__connector {
        right: -1rem;
    }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .our-story__cta {
        transition: none;
    }
}