/* casestudies2-results.css - READABLE VERSION */

.csb-results {
    
    background-color: #070707;
}

/* --- 1. REUSED GALLERY ATOMS --- */

.res-img-wide, 
.res-img-half {
    border-radius: 60px;
    overflow: hidden;
    background-color: #1A1A1A;
    border: 1px solid #242424;
    display: block;
}

.res-img-wide {
    width: 100%;
    aspect-ratio: 1200 / 554;
}

.res-img-split {
    display: flex;
    gap: 32px;
}

.res-img-half {
    flex: 1;
    aspect-ratio: 585 / 450;
}

.res-img-wide img, 
.res-img-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 2. REUSED BENTO & METRIC STACK --- */

.cs-results-bento {
    display: grid;
    grid-template-columns: 320px 320px 1fr; 
    gap: 20px;
    align-items: start;
}

.res-bento-card {
    width: 320px; 
    height: 254px;
    padding: 32px;
    background-color: #070707;
    border: 1px solid #1A1A1A;
    border-radius: 40px;
}

.res-bento-text {
    font-family: 'Albert Sans', sans-serif;
    font-size: 18px;
    line-height: 32px;
    color: #FFFFFF;
}

.res-figma-cta {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 464px;
    height: 60px;
    background-color: #070707;
    /* Default: Muted Border */
    border: 1px solid #1A1A1A; 
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Padding: Left 32px for text, Right 8px for the icon circle */
    padding: 0 8px 0 24px; 
    text-decoration: none;
    margin-top: 24px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* --- HOVER STATE: TRIGGER YELLOW BORDER --- */
.res-figma-cta:hover {
    border: 1px solid #1A1A1A; 
    background-color: #0c0c0c;
}

/* --- 3. CTA INTERNAL STYLING --- */

.cta-content {
    display: flex;
    align-items: center;
    gap: 16px; /* Increased gap between icon and text */
}

/* --- BIGGER ICON --- */
.cta-figma-icon {
    width: 24px; /* Increased from 16px to 24px */
    height: auto;
    opacity: 0.9;
}

.cta-text {
    font-family: 'Albert Sans', sans-serif;
    font-size: 18px;
    color: #FFFFFF;
    margin: 0;
}

/* --- ARROW CIRCLE TRANSITION --- */
.cta-arrow-circle {
    width: 48px;
    height: 48px;
    background-color: #141414;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Default: Grey Arrow */
    color: #636363; 
    transition: all 0.3s ease;
}

/* --- HOVER STATE: ARROW TURNS YELLOW --- */
.res-figma-cta:hover .cta-arrow-circle {
    color: #FFC534; /* Arrow turns yellow when parent button is hovered */
    background-color: #1a1a1a;
}

.cta-arrow-icon {
    width: 20px;
    height: 20px;
}

.metric-stack-wrapper {
    grid-column: 3;         /* Locks metrics to the third column */
    grid-row: 1 / span 2;    /* Allows metrics to span the height of cards + button */
    position: relative;
    height: 400px;
}

.metric-card {
    position: absolute;
    width: 428px; 
    height: 254px;
    background-color: #070707;
    border: 1px solid #1A1A1A;
    border-radius: 40px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-number {
    font-family: 'Albert Sans', sans-serif;
    font-size: 68px;
    font-weight: 700;
    line-height: 1;
    color: #FFFFFF;
}

.metric-description {
    font-family: 'Albert Sans', sans-serif;
    font-size: 24px;
    font-weight: 250;
    line-height: 36px;
    color: #FFFFFF;
    margin-top: 12px;
}

/* Positioning the artistic overlap exactly like Template A */
.card-35 {
    top: -40px; 
    left: 140px; 
    z-index: 2;
}

.card-40 {
    top: 130px; 
    left: -80px; 
    z-index: 1;
    box-shadow: -30px 30px 60px rgba(0, 0, 0, 0.9);
}

/* --- 3. REUSED CHECKLIST ATOMS --- */

.res-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.res-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Albert Sans', sans-serif;
    font-size: 18px;
    line-height: 32px;
    color: #FFFFFF;
}

.res-list img {
    width: 24px;
    height: 24px;
    margin-top: 4px;
}

/* --- Text Animation Essentials --- */
.line-mask {
    overflow: hidden;
    display: block;
}