/* ========================================
   ARCHIMAERA NEWS - 4-CELL CROSS LAYOUT
======================================== */

.press-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.main-content--news {
    padding-top: 150px; /* site-wide top-heading standard */
}

.press-narrative-section {
    padding: 0 0 80px 0;
    margin-top: 0;
}

/* Matches the site's small-caps heading format (About Us, Selected Work, etc.) */
.section-title-press {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-main);
    line-height: 1.1;
    margin: 0;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border-light);
}

/* 1. Grid Architecture - 4-Cell Cross */
.press-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: minmax(400px, 48vh);
    gap: 40px;
    margin-top: 0;
    padding: 0;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

/* Card positioning to create the offset effect */
.press-card:nth-child(4n+1) {
    align-self: end;
    height: 80%;
    min-height: 280px;
}

.press-card:nth-child(4n+2) {
    justify-self: start;
    width: 75%;
    min-height: 280px;
}

.press-card:nth-child(4n+3) {
    justify-self: end;
    width: 75%;
    min-height: 280px;
}

.press-card:nth-child(4n+4),
.press-card:nth-child(4n) {
    align-self: start;
    height: 80%;
    min-height: 280px;
}

/* Card Base Styles */
.press-card {
    display: flex;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: none;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
    background: var(--bg-card, transparent);
    contain: layout paint;
    will-change: transform, opacity;
}

.press-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.press-image {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    transition: transform 0.8s ease;
}

.press-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) brightness(0.9);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.press-info {
    position: relative;
    z-index: 2;
    padding: 20px;
    transition: transform 0.4s ease;
}

/* Hover Effects */
.press-card:hover .press-image img {
    filter: grayscale(0%) brightness(1);
}

.press-card:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* ========================================
   4-CELL PATTERN (Repeats every 4 items)
======================================== */

/* Cell 1 (Top-Left): Text Left + Image Right (Horizontal) */
.press-card:nth-child(4n+1) {
    flex-direction: row;
}

.press-card:nth-child(4n+1) .press-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    order: 1;
}

.press-card:nth-child(4n+1) .press-image {
    width: 50%;
    height: 100%;
    order: 2;
}

/* Cell 2 (Top-Right): Image Top + Text Bottom (Vertical) */
.press-card:nth-child(4n+2) {
    flex-direction: column;
}

.press-card:nth-child(4n+2) .press-image {
    width: 100%;
    height: 60%;
    order: 1;
}

.press-card:nth-child(4n+2) .press-info {
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    order: 2;
}

/* Cell 3 (Bottom-Left): Image Top + Text Bottom (Vertical) */
.press-card:nth-child(4n+3) {
    flex-direction: column;
}

.press-card:nth-child(4n+3) .press-image {
    width: 100%;
    height: 60%;
    order: 1;
}

.press-card:nth-child(4n+3) .press-info {
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    order: 2;
}

/* Cell 4 (Bottom-Right): Text Top + Image Bottom (Vertical) */
.press-card:nth-child(4n+4),
.press-card:nth-child(4n) {
    flex-direction: column;
}

.press-card:nth-child(4n+4) .press-info,
.press-card:nth-child(4n) .press-info {
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    order: 1;
}

.press-card:nth-child(4n+4) .press-image,
.press-card:nth-child(4n) .press-image {
    width: 100%;
    height: 60%;
    order: 2;
}

/* Typography & Details */
.press-info h3 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.press-meta {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted, #666);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    gap: 12px;
    align-items: center;
}

.press-meta span {
    position: relative;
}

.press-meta span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 2px;
    background: currentColor;
    border-radius: 50%;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: difference;
}

.custom-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.custom-cursor span {
    font-size: 0.65rem;
    color: #fff;
    letter-spacing: 0.15em;
    font-weight: 300;
}

/* Loading State */
.press-grid .loading-text {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    padding: 40px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (min-width: 1600px) {
    .press-grid {
        grid-auto-rows: minmax(420px, 46vh);
    }
}

@media (max-width: 1366px) and (min-width: 769px) {
    .press-grid {
        grid-auto-rows: minmax(360px, 46vh);
        gap: 28px;
        padding: 0;
    }
}

@media (max-width: 1024px) {
    .press-grid {
        gap: 20px;
        padding: 0;
    }

    .press-card {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .main-content--news {
        padding-top: 120px;
    }

    .press-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Reset all cards to full width stack */
    .press-card:nth-child(n) {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    /* Reset internal layouts for mobile consistency */
    .press-card:nth-child(n) .press-image {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        order: 1;
    }

    .press-card:nth-child(n) .press-info {
        position: relative;
        width: 100%;
        height: auto;
        top: auto;
        left: auto;
        transform: none;
        text-align: left;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 20px 0;
        order: 2;
    }

    /* Reset Typography */
    .press-card:nth-child(n) h3 {
        font-size: 1.4rem;
        color: var(--text-main);
        text-shadow: none;
        margin-bottom: 8px;
    }

    .press-card:nth-child(n) .press-meta {
        justify-content: flex-start;
        color: var(--text-muted);
    }

    /* Disable custom cursor on mobile */
    .custom-cursor {
        display: none;
    }

    .press-card {
        cursor: pointer;
    }
}
