/* ==========================================================================
   PLUTO CHRONICLES — STRUCTURED GRID
   Full-width video → 2-up images → repeat
   ========================================================================== */

.stories-section {
    position: relative;
    padding: var(--section-padding) 0;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.stories-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(106, 42, 42, 0.12) 0%, transparent 55%);
    z-index: 0;
}

.stories-section .container {
    position: relative;
    z-index: 1;
}

.stories-section .section-intro {
    margin-bottom: var(--grid-gap);
}

.stories-section .lead {
    color: var(--text-secondary);
}

/* --- Grid --- */
.chronicles-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 3.5vw, 3.5rem);
}

/* --- Full-width video block --- */
.chronicles-video {
    width: 100%;
}

.chronicles-video__inner {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.chronicles-video__poster {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: pointer;
}

.chronicles-video__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.88) contrast(1.04) brightness(0.94);
    transition: filter 1.25s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.65s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1.03) translateZ(0);
    will-change: transform, filter;
}

@media (hover: hover) and (pointer: fine) {
    .chronicles-video__poster:hover img {
        filter: saturate(1) contrast(1.06) brightness(1);
        transform: scale(1.05);
    }

    .chronicles-video__poster:hover .chronicles-video__play {
        background: rgba(106, 42, 42, 0.85);
        border-color: var(--accent-gold);
        transform: translate(-50%, -50%) scale(1.08);
    }

    .chronicles-video__poster:hover .chronicles-video__icon {
        color: var(--accent-gold);
    }
}

/* --- Play button overlay --- */
.chronicles-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(64px, 8vw, 88px);
    height: clamp(64px, 8vw, 88px);
    border-radius: 50%;
    border: 2px solid rgba(250, 246, 239, 0.7);
    background: rgba(20, 15, 12, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.5s ease,
                border-color 0.5s ease;
}

.chronicles-video__icon {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: rgba(250, 246, 239, 0.85);
    transition: color 0.5s ease;
    line-height: 1;
    margin-left: 0.15em;
}

/* --- Two-up image pair --- */
.chronicles-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw, 1.75rem);
}

.chronicles-pair__item {
    overflow: hidden;
}

.chronicles-pair__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 5;
    filter: saturate(0.88) contrast(1.04) brightness(0.94);
    transition: filter 1.25s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.65s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1.03) translateZ(0);
    will-change: transform, filter;
}

@media (hover: hover) and (pointer: fine) {
    .chronicles-pair__item:hover img {
        filter: saturate(1) contrast(1.06) brightness(1);
        transform: scale(1.05);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 767px) {
    .stories-section {
        padding: var(--section-padding-sm) 0;
    }

    .chronicles-grid {
        gap: var(--space-lg);
    }

    .chronicles-pair {
        gap: var(--space-sm);
    }

    .chronicles-pair__item img {
        aspect-ratio: 3 / 4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chronicles-video__poster img,
    .chronicles-pair__item img,
    .chronicles-video__play {
        transition: none;
    }
}
