/* ============================================================
   SECTION: HERITAGE & INTRODUCTION (SPLIT LAYOUT)
   ============================================================ */
.section-heritage {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-3xl);
    background: var(--mist-white);
    position: relative;
    overflow: visible;
}

.heritage-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: start;
    position: relative;
    z-index: 2;
}

/* ---- Sticky Visual Column ---- */
.heritage-visual-column {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    height: fit-content;
}

/* Artifact Cards */
.artifact-card {
    background: white;
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(var(--rotation, 2deg));
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.artifact-card:hover {
    transform: rotate(0deg) scale(1.05) translateY(-10px);
    z-index: 10;
    box-shadow: var(--shadow-xl);
}

.artifact-media {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #0F2A1D, #2d5a3f);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.artifact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.artifact-card:hover .artifact-img {
    transform: scale(1.1);
}


.artifact-caption {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
}

.artifact-caption span:first-child {
    flex: 1;
    line-height: 1.4;
}


.artifact-label {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Topographic Background Decor */
.heritage-topo-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, var(--forest-dark) 1px, transparent 0);
    background-size: 32px 32px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* ---- Heritage Timeline Story ---- */
.heritage-timeline {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.heritage-stage {
    display: flex;
    gap: var(--space-lg);
    position: relative;
}

.heritage-stage-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 24px;
    padding-top: 6px;
}

.heritage-stage-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(45,106,53,0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all var(--duration-normal) var(--ease-out);
}

.heritage-stage:hover .heritage-stage-dot {
    border-color: var(--accent-gold);
    background: rgba(212,168,83,0.15);
}

.heritage-stage-dot-active {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(212,168,83,0.2);
}

.heritage-stage-line {
    width: 2px;
    flex-grow: 1;
    background: linear-gradient(to bottom, rgba(45,106,53,0.2), rgba(45,106,53,0.05));
    margin-top: 4px;
}

.heritage-stage-content {
    padding-bottom: var(--space-xl);
    flex: 1;
}

.heritage-stage-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.heritage-stage-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.heritage-stage-text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.85;
    color: var(--text-secondary);
    max-width: 640px;
}

/* CTA at the end of the timeline */
.heritage-stage-cta {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(45,106,53,0.1);
}

.heritage-cta-text {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--accent-gold);
    letter-spacing: 0.05em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--duration-fast) var(--ease-out);
}

.heritage-stage-present .heritage-stage-content {
    padding-bottom: 0;
}

/* ---- Responsive: Heritage ---- */
@media (max-width: 1024px) {
    .heritage-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .heritage-visual-column {
        position: relative;
        top: 0;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: var(--space-md);
        scroll-snap-type: x mandatory;
        gap: var(--space-md);
    }
    
    .artifact-card {
        min-width: 280px;
        scroll-snap-align: center;
        transform: none !important;
    }

    .heritage-topo-overlay {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .heritage-stage {
        gap: var(--space-md);
    }

    .heritage-stage-content {
        padding-bottom: var(--space-lg);
    }

    .heritage-stage-title {
        font-size: var(--text-xl);
    }

    .heritage-stage-text {
        font-size: var(--text-sm);
    }
}
