/* Archive Section Styles */
.archive-section {
    background-color: #000000;
    min-height: 100vh;
    padding: 120px var(--space-4) var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--color-white);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    z-index: 5;
}

.archive-header {
    margin-bottom: var(--space-6);
    text-align: left;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.archive-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 64px);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: var(--space-2);
}

.archive-subtitle {
    font-family: var(--font-mono);
    color: var(--color-text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Archive List Table */
.archive-list {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border-dim);
}

.archive-row {
    display: grid;
    grid-template-columns: 0.5fr 2fr 1fr 1fr;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-sans);
}

.archive-row:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: var(--space-2);
    /* Slight shift */
    padding-right: var(--space-2);
    border-color: var(--color-accent);
}

.archive-row:hover .row-title {
    color: var(--color-accent);
    transform: translateX(10px);
}

.archive-row:hover .row-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Header Row */
.archive-row.header-row {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-white);
}

.archive-row.header-row:hover {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
    cursor: default;
}

/* Columns */
.row-year {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.row-title {
    font-weight: 500;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.row-role,
.row-client {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.row-link {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.row-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--color-accent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .archive-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
        padding: var(--space-2) 0;
    }

    .archive-row.header-row {
        display: none; /* Hide header labels on mobile as layout changes behavior */
    }

    .row-role {
        display: block;
        font-size: 12px;
        color: var(--color-text-secondary);
        margin-bottom: 4px;
    }

    .row-client {
        display: block;
    }

    .row-year {
        font-size: 12px;
        opacity: 0.7;
    }

    .row-title {
        font-size: 16px;
        margin: 4px 0;
    }

    .row-link {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }
    
    .row-arrow {
        opacity: 1; /* Always visible on mobile to indicate action */
        transform: translateX(0);
    }
}
/* Frame Reveal Animation Support for Archive */
.frame-reveal {
    overflow: hidden;
    position: relative;
    display: block;
}

.frame-reveal > * {
    transform: translateY(120%);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    opacity: 0;
}

.archive-section.slide-active .frame-reveal > * {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger Delays */
.archive-section.slide-active .archive-header .frame-reveal:nth-child(1) > * { transition-delay: 0.1s; }
.archive-section.slide-active .archive-header .frame-reveal:nth-child(2) > * { transition-delay: 0.25s; }

/* List Item Stagger Logic (manual nth-child for first few) */
.archive-section .archive-row {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.archive-section.slide-active .archive-row {
    opacity: 1;
    transform: translateY(0);
}

.archive-section.slide-active .archive-row:nth-child(1) { transition-delay: 0.3s; }
.archive-section.slide-active .archive-row:nth-child(2) { transition-delay: 0.35s; }
.archive-section.slide-active .archive-row:nth-child(3) { transition-delay: 0.4s; }
.archive-section.slide-active .archive-row:nth-child(4) { transition-delay: 0.45s; }
.archive-section.slide-active .archive-row:nth-child(5) { transition-delay: 0.5s; }
.archive-section.slide-active .archive-row:nth-child(6) { transition-delay: 0.55s; }
.archive-section.slide-active .archive-row:nth-child(7) { transition-delay: 0.6s; }
.archive-section.slide-active .archive-row:nth-child(8) { transition-delay: 0.65s; }
.archive-section.slide-active .archive-row:nth-child(9) { transition-delay: 0.7s; }
.archive-section.slide-active .archive-row:nth-child(10) { transition-delay: 0.75s; }
.archive-section.slide-active .archive-row:nth-child(11) { transition-delay: 0.8s; }
.archive-section.slide-active .archive-row:nth-child(12) { transition-delay: 0.85s; }

