/* --- HERO SECTION --- */
.articles-hero {
    max-width: 1600px;
    margin: 0 auto;
    padding: 160px 5% 1rem;
}

.articles-hero-title {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600;
    font-size: clamp(3rem, 7vw, 6rem); 
    line-height: 1;
    color: var(--dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Replace the .hero-line and .word-inner block with this: */
.word-map {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-right: 0.2em; 
    padding-left: 0.05em;
    margin-right: -0.12em; 
}

.word-inner { 
    display: inline-block; 
    transform: translateY(105%); 
}

/* Update your subtext rule to remove opacity/transform modifications: */
.hero-subtext {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: #555;
    /* Removed opacity: 0 and transform: translateY to leave position completely fixed */
}


.dot-inner {
    color: maroon;
}


.hero-divider {
    border: none;
    border-top: 1px solid #dbd8d8;
    margin-top: 2rem;
    opacity: 0;
}

/* --- COMPACT BENTO GRID CONTAINER --- */
.articles-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 5% 100px;
}

.bento-article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 320px; /* Base height for 1x1 block */
    gap: 1.25rem; /* Tightened gap for compact look */
    grid-auto-flow: dense; /* MAGICAL PROPERTY: Fills empty gaps automatically */
}

/* --- BENTO CARD BASE --- */
.bento-card {
    position: relative;
    background: var(--glass); ;
    border: 1px solid #dbd8d8;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--dark);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.bento-card:hover {
    background-color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    border-color: #aaa;
}

/* --- SIZING MODIFIERS --- */
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide  { grid-column: span 2; grid-row: span 1; }
.bento-tall  { grid-column: span 1; grid-row: span 2; }
.bento-standard { grid-column: span 1; grid-row: span 1; }

/* --- CARD CONTENT STYLING --- */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag {
    background: var(--bg-soft);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
}

.bento-card h2 { font-size: clamp(1.8rem, 2.5vw, 2.5rem); line-height: 1.1; margin-bottom: 1rem; }
.bento-card h3 { font-size: clamp(1.2rem, 1.5vw, 1.5rem); line-height: 1.2; margin-bottom: 0.5rem; }
.bento-card p { color: #666; font-size: 0.95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.read-more { margin-top: auto; font-weight: 600; font-size: 0.85rem; padding-top: 1rem;}

/* --- SPECIFIC CARD TYPES --- */

/* Featured Background Image (2x2) */
.card-img-bg { position: absolute; inset: 0; z-index: 1; }
.card-img-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.bento-card:hover .card-img-bg img { transform: scale(1.04); }
.img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); }

.light-text { justify-content: flex-end; color: #fff; }
.light-text p { color: #ddd; -webkit-line-clamp: 2; }
.light-text .tag.solid { background: var(--maroon); color: #fff; }
.light-text .date { color: #ccc; }

/* Wide Card (2x1) */
.bento-wide { flex-direction: row; }
.card-img-left { width: 45%; flex-shrink: 0; overflow: hidden; }
.card-img-left img { width: 100%; height: 100%; object-fit: cover; }
.bento-wide .card-content { justify-content: center; }

/* Standard Top Image (1x1) */
.card-img-top { height: 50%; overflow: hidden; }
.card-img-top img { width: 100%; height: 100%; object-fit: cover; }

/* Dark Card (Text Only) */
.dark-card { background: var(--dark); color: #fff; }
.dark-card:hover { background-color: var(--dark);}
.dark-card p { color: #aaa; }
.dark-card .tag.outline { background: transparent; border: 1px solid #555; color: #fff; }

/* Tall Sidebar List (1x2) */
.list-card { background: transparent; border: 1px solid transparent; padding: 0.5rem; }
.list-card:hover { background-color: var(--bg-soft); transform: none; box-shadow: none; border-color: transparent; }
.list-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: #888; border-bottom: 1px solid #dbd8d8; padding-bottom: 1rem; margin-bottom: 1rem; }
.list-items { display: flex; flex-direction: column; gap: 1.25rem; }
.list-item { display: flex; gap: 1rem; text-decoration: none; color: var(--dark); transition: opacity 0.3s; }
.list-item:hover { opacity: 0.6; }
.list-item .num { font-family: "neue-haas-grotesk-display"; font-size: 1.5rem; color: #ccc; line-height: 1; }
.list-item h4 { font-size: 1.05rem; line-height: 1.3; margin-bottom: 0.2rem; }
.list-item .date { font-size: 0.75rem; color: #888; text-transform: uppercase; }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1200px) {
    .bento-article-grid { grid-template-columns: repeat(3, 1fr); }
    .bento-tall { grid-row: span 1; } /* Make lists shorter on smaller screens */
}

@media (max-width: 900px) {
    .bento-article-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-wide { flex-direction: column; }
    .card-img-left { width: 100%; height: 200px; }
}

@media (max-width: 600px) {
    .bento-article-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-large, .bento-wide, .bento-tall { grid-column: span 1; grid-row: auto; }
    .bento-card { min-height: 300px; }
}