.story-section {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    padding: clamp(5rem, 10vw, 8rem) 1.25rem;
    overflow: hidden;
    color: var(--color-text);
    background: linear-gradient(
        180deg,
        var(--ivory-200),
        var(--ivory-50) 42%,
        var(--ivory-200)
    );
}

.story-section__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 68rem);
    margin-inline: auto;
}

.story-section__glow {
    position: absolute;
    width: 28rem;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0.38;
    filter: blur(1rem);
    background: radial-gradient(
        circle,
        rgba(200, 162, 71, 0.18),
        transparent 68%
    );
}

.story-section__glow--left {
    top: 18%;
    left: -15rem;
}

.story-section__glow--right {
    right: -14rem;
    bottom: 12%;
}

.story-section__header {
    width: min(100%, 39rem);
    margin: 0 auto clamp(4rem, 8vw, 6.5rem);
    text-align: center;
}

.story-section__eyebrow,
.story-moment__chapter {
    color: var(--olive-600);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.story-section__ornament {
    display: block;
    margin: 1rem auto 0.25rem;
    color: var(--gold-500);
    font-size: 0.8rem;
}

.story-section__title {
    margin: 0;
    color: var(--olive-800);
    font-family: var(--font-script);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
}

.story-section__intro {
    margin: 1.5rem auto 0;
    color: var(--neutral-700);
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    font-style: italic;
    line-height: 1.55;
    text-wrap: balance;
}

.story-timeline {
    position: relative;
    display: grid;
    gap: clamp(4.5rem, 10vw, 8rem);
}

.story-timeline__line {
    position: absolute;
    width: 1px;
    top: 1rem;
    bottom: 1rem;
    left: 50%;
    opacity: 0.75;
    background: linear-gradient(
        transparent,
        var(--gold-300) 8%,
        var(--gold-300) 92%,
        transparent
    );
    transform: translateX(-50%);
}

.story-moment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
}

.story-moment--reverse .story-moment__photo-wrap {
    order: 2;
}

.story-moment__photo-wrap {
    position: relative;
    margin: 0;
}

.story-moment__photo-wrap::before {
    content: "";
    position: absolute;
    inset: 0.9rem -0.9rem -0.9rem 0.9rem;
    z-index: -1;
    border: 1px solid rgba(200, 162, 71, 0.42);
    border-radius: 12rem 12rem 1rem 1rem;
}

.story-moment__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12rem 12rem 1rem 1rem;
    object-fit: cover;
    box-shadow: var(--shadow-floating);
}

.story-moment__number {
    position: absolute;
    z-index: 2;
    top: -1.75rem;
    left: -0.75rem;
    color: rgba(200, 162, 71, 0.72);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-style: italic;
    line-height: 1;
}

.story-moment__copy {
    position: relative;
    padding-inline: clamp(0rem, 2vw, 1.5rem);
}

.story-moment__dot {
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    top: 0.25rem;
    left: calc(-1 * clamp(2rem, 4vw, 3.5rem) - 0.375rem);
    border: 0.2rem solid var(--ivory-50);
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 0 0 1px var(--gold-300);
}

.story-moment--reverse .story-moment__dot {
    right: calc(-1 * clamp(2rem, 4vw, 3.5rem) - 0.375rem);
    left: auto;
}

.story-moment__heading {
    margin: 0.8rem 0 0;
    color: var(--olive-800);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 500;
    line-height: 1;
}

.story-moment__text {
    margin: 1.25rem 0 0;
    color: var(--neutral-700);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.85;
}

.story-section__closing {
    display: flex;
    margin: clamp(5rem, 11vw, 8rem) auto 0;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--gold-500);
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
}

.story-section__closing p {
    margin: 0;
    color: var(--olive-700);
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 6vw, 4rem);
}

@media (max-width: 47.99rem) {
    .story-timeline {
        gap: 5.5rem;
    }

    .story-timeline__line {
        left: 0.35rem;
    }

    .story-moment,
    .story-moment--reverse {
        grid-template-columns: 1fr;
        padding-left: 2rem;
        gap: 2.5rem;
    }

    .story-moment--reverse .story-moment__photo-wrap {
        order: 0;
    }

    .story-moment__photo-wrap {
        width: min(100%, 24rem);
        margin-inline: auto;
    }

    .story-moment__dot,
    .story-moment--reverse .story-moment__dot {
        top: -1.25rem;
        right: auto;
        left: -2.025rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    [data-story-reveal] {
        opacity: 0;
        transform: translateY(2rem);
    }
}
