/* ==========================================================================
   SOCIAL IMPACT PAGE MASTER
   ========================================================================== */

.social-impact-page-master {
    width: 100%;
    max-width: 100%;;
    margin: 0 auto;
    background-color: #FDFFF6;
    box-sizing: border-box;
    overflow: hidden;
}

.ow-social-top-wrapper {
    width: 100%;
    background-color: #FDFFF6;
    display: flex;
    flex-direction: column;
}

/* Force header to be transparent inside this wrapper */
.ow-social-top-wrapper header,
.ow-social-top-wrapper .header,
.ow-social-top-wrapper .site-header {
    background-color: transparent !important; 
}

/* ==========================================================================
   SOCIAL HERO SECTION
   ========================================================================== */

.ow-social-hero-section {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 5%;
    box-sizing: border-box;
}

.ow-social-hero-container {
    width: 100%;
    /* max-width: 1248px; Slightly wider to accommodate the large image */
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 164px;
}

/* ==========================================================================
   Left Side (Text & Button)
   ========================================================================== */

.ow-social-hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    max-width: 580px;
}

.ow-social-hero-text-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.ow-social-title {
    font-family: 'Aspekta-400', 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 110%; /* 61.6px */
    letter-spacing: -1.12px;
    color: #111111;
    margin: 0;
}

.ow-social-prose-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ow-social-subtitle {
    font-family: 'Inter-Regular', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #878883; /* Muted gray matching design */
    margin: 0;
}

.ow-social-desc {
    font-family: 'Inter-Regular', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%; /* 24px */
    color: rgba(17, 17, 17, 0.75);
    margin: 0;
}

/* Dual-Tone CTA Group */
.ow-social-cta-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.ow-social-cta-group:hover {
    filter: brightness(0.95);
}

.ow-social-cta-group:focus-visible {
    outline: 2px solid #CAED57;
    outline-offset: 4px;
    border-radius: 4px;
}

.ow-social-cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    background-color: #F3F5EC; /* Light gray box */
    border-radius: 4px;
    font-family: 'DM Mono-Medium', monospace;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #111111;
    text-transform: uppercase;
}

.ow-social-cta-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #CAED57; /* Lime green circle */
    border-radius: 50%; /* Full circle */
}

/* ==========================================================================
   Right Side (Large Image)
   ========================================================================== */

.ow-social-hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ow-social-hero-media {
    width: 100%;
    max-width: 600px;
    height: 700px; /* Tall portrait image matching the visual weight */
    background-size: cover;
    background-position: center;
    background-color: #E2E2E2;
    border-radius: 4px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
    .ow-social-hero-section {
        padding: 48px 32px;
    }
    
    .ow-social-hero-container {
        flex-direction: column;
        gap: 64px;
    }

    .ow-social-hero-left {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .ow-social-hero-media {
        height: 500px; /* Reduce height on tablets */
    }
}

@media (max-width: 640px) {
    .ow-social-hero-section {
        padding: 48px 16px;
    }

    .ow-social-title {
        font-size: 42px;
        line-height: 46px;
    }
    
    .ow-social-hero-media {
        height: 380px; /* Reduce height further on mobile */
    }
}

/* ==========================================================================
   SOCIAL IMPACT - SPLIT CONTENT SECTION
   ========================================================================== */

.ow-social-split-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 96px 48px;
    background-color: #FDFFF6;
    box-sizing: border-box;
}

.ow-social-split-container {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
    max-width: 1344px;
    position: relative;
}

/* ==========================================================================
   Left Side (Text Content)
   ========================================================================== */

.ow-social-split-content {
    display: flex;
    align-items: start; /* Vertically centers the text block relative to the tall image */
    justify-content: flex-start;
    padding: 32px 0;
    min-height: 672px; /* Matches image height for balanced flex */
    flex: 1 1 0;
    box-sizing: border-box;
}

.ow-social-split-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 564px;
    gap: 24px;
    width: 100%;
}

.ow-social-split-title {
    font-family: 'Aspekta-400', 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 52.8px;
    letter-spacing: -0.96px;
    color: #111111;
    margin: 0;
    width: 100%;
}

.ow-social-split-desc {
    font-family: 'Inter-Regular', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: rgba(17, 17, 17, 0.75); /* #111111bf */
    margin: 0;
    width: 100%;
}

/* ==========================================================================
   Right Side (Image Content)
   ========================================================================== */

.ow-social-split-media {
    display: flex;
    flex: 1 1 0;
    border-radius: 4px;
    overflow: hidden;
    min-height: 672px;
    background-color: #E2E2E2;
}

.ow-social-split-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 672px;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 900px) {
    .ow-social-split-section {
        padding: 64px 32px;
    }
    
    .ow-social-split-container {
        flex-direction: column;
        gap: 48px;
    }
    
    .ow-social-split-content,
    .ow-social-split-media {
        width: 100%;
        min-height: auto;
    }

    .ow-social-split-content {
        padding: 0;
    }
    
    .ow-social-split-img {
        min-height: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 640px) {
    .ow-social-split-section {
        padding: 48px 20px;
    }
    
    .ow-social-split-title {
        font-size: 36px;
        line-height: 40px;
        letter-spacing: -0.72px;
    }
    
    .ow-social-split-desc {
        font-size: 15px;
        line-height: 22px;
    }
}

/* ==========================================================================
   IMPACT - STATISTICS & GLOBE SECTION (DARK THEME)
   ========================================================================== */

.ow-impact-stats-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: 100%;
    margin-top: 48px;
}

/* --------------------------------------------------
   Chamfer Transitions
   -------------------------------------------------- */
.ow-impact-top-transition,
.ow-impact-bottom-transition {
    display: flex;
    align-items: flex-start;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    background-color: #FDFFF6; /* Ivory base behind the black chamfer */
}

.ow-impact-bottom-transition {
    transform: rotate(180deg);
}

.ow-impact-chamfer,
.ow-impact-chamfer-btm {
    position: relative;
    width: 20px;
    height: 20px;
    aspect-ratio: 1;
    display: block;
}

.ow-impact-chamfer-btm {
    transform: rotate(-180deg);
}

.ow-impact-filler {
    position: relative;
    flex: 1;
    flex-grow: 1;
    height: 20px;
    background-color: #111111;
}

/* --------------------------------------------------
   Main Container
   -------------------------------------------------- */
.ow-impact-stats-container {
    display: flex;
    min-height: 864px;
    align-items: center;
    gap: 48px;
    padding: 48px;
    position: relative;
    align-self: stretch;
    width: 100%;
    background-color: #111111;
    box-sizing: border-box;
}

/* --------------------------------------------------
   Left Side (Text & Stats)
   -------------------------------------------------- */
.ow-impact-stats-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 32px;
    position: relative;
    flex: 1;
    align-self: stretch;
    border-radius: 16px;
    box-sizing: border-box;
}

.ow-impact-heading-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 564px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.ow-impact-heading {
    font-family: "Aspekta-400", Helvetica, sans-serif;
    font-weight: 400;
    color: #fdfff6;
    font-size: 48px;
    letter-spacing: -0.96px;
    line-height: 52.8px;
    margin: 0;
}

.ow-impact-metrics-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.ow-impact-metric-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.ow-impact-metric-number {
    font-family: "Aspekta-400", Helvetica, sans-serif;
    font-weight: 400;
    color: #fdfff6;
    font-size: 48px;
    letter-spacing: -0.96px;
    line-height: 52.8px;
    margin: 0;
}

.ow-impact-metric-desc {
    width: 100%;
    max-width: 340px;
    font-family: "Aspekta-500", Helvetica, sans-serif;
    font-weight: 400;
    color: rgba(253, 255, 246, 0.75); /* #fdfff6bf */
    font-size: 14px;
    letter-spacing: 0.14px;
    line-height: 19.6px;
    margin: 0;
}

/* --------------------------------------------------
   Right Side (Animated Globe)
   -------------------------------------------------- */
.ow-impact-globe-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0px 32px;
    position: relative;
    flex: 1;
    align-self: stretch;
    box-sizing: border-box;
}

.ow-impact-wireframe-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.ow-impact-dot {
    width: 8px;
    height: 8px;
    aspect-ratio: 1;
}

.ow-impact-line {
    flex: 1;
    height: 1px;
    background-color: rgba(202, 237, 87, 0.12); /* #caed571f */
}

/* Video scales natively but is capped at 648px */
.ow-impact-globe-media {
    width: 100%;
    max-width: 648px;
    aspect-ratio: 1;
    margin: 24px 0;
    object-fit: contain;
    
    /* 1. Blend mode to drop blacks */
    mix-blend-mode: screen; 
    
    /* 2. Crush the blacks to remove video compression artifacts (the grey box) */
    filter: contrast(1.3) brightness(0.8); 
    
    /* 3. Feather the edges so the square boundary smoothly fades into nothing */
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 72%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 72%);
}


/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .ow-impact-stats-container {
        flex-direction: column;
        padding: 64px 32px;
        gap: 64px;
        min-height: auto;
    }
    
    .ow-impact-stats-col, 
    .ow-impact-globe-col {
        width: 100%;
        flex: none;
        padding: 0;
    }
    
    .ow-impact-heading-wrapper {
        margin-bottom: 32px;
    }
}

@media (max-width: 640px) {
    .ow-impact-stats-container {
        padding: 48px 16px;
    }
    
    .ow-impact-heading,
    .ow-impact-metric-number {
        font-size: 38px;
        line-height: 42px;
    }
    
    .ow-impact-globe-media {
        margin: 16px 0;
    }
}


/* ==========================================================================
   CHECKERBOARD SECTION
   ========================================================================== */

.ow-checkerboard-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    background-color: #DBD5FF; /* Light Purple */
    padding: 96px 48px;
    box-sizing: border-box;
}

.ow-checkerboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 68px; /* Gap between the two rows */
    width: 100%;
    max-width: 1344px; /* Matching standard container width */
}

/* --------------------------------------------------
   Individual Rows
   -------------------------------------------------- */
.ow-checkerboard-row {
    display: flex;
    align-items: start; /* Center the text vertically with the image */
    gap: 48px;
    position: relative;
    width: 100%;
}

/* --------------------------------------------------
   Text Column
   -------------------------------------------------- */
.ow-checkerboard-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    flex: 1;
    border-radius: 16px;
    box-sizing: border-box;
}

.ow-checkerboard-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 564px;
    gap: 24px; /* Space between Title and Desc */
    width: 100%;
}

.ow-checkerboard-title {
    font-family: "Aspekta-400", Helvetica, sans-serif;
    font-weight: 400;
    color: #111111;
    font-size: 48px;
    letter-spacing: -0.96px;
    line-height: 52.8px;
    margin: 0;
    width: 100%;
}

.ow-checkerboard-desc {
    font-family: "Inter-Regular", Helvetica, sans-serif;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.75); /* #111111bf */
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    width: 100%;
}

/* --------------------------------------------------
   Image Column
   -------------------------------------------------- */
.ow-checkerboard-img-col {
    position: relative;
    flex: 1;
    height: 500px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-color: #E2E2E2;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
    .ow-checkerboard-section {
        padding: 64px 32px;
    }
    
    .ow-checkerboard-row {
        flex-direction: column;
        gap: 32px;
    }
    
    /* Image on top, text below, in both rows (row 1 has the text first in the markup, row 2 has the image first) */
    .ow-checkerboard-row:nth-child(2) {
        flex-direction: column;
    }

    .ow-checkerboard-img-col {
        order: 1;
    }

    .ow-checkerboard-text-col {
        order: 2;
    }

    .ow-checkerboard-text-col,
    .ow-checkerboard-img-col {
        width: 100%;
        flex: none;
    }
    
    .ow-checkerboard-text-col {
        padding: 0;
        align-items: center;
        text-align: center;
    }
    
    .ow-checkerboard-img-col {
        height: 400px; /* Reduce image height slightly on tablets */
    }
}

@media (max-width: 640px) {
    .ow-checkerboard-section {
        padding: 48px 16px;
    }
    
    .ow-checkerboard-title {
        font-size: 36px;
        line-height: 40px;
        letter-spacing: -0.72px;
    }
    
    .ow-checkerboard-img-col {
        height: 300px;
    }
}
/* ==========================================================================
   Social Impact hero: tablet (design 768px) and mobile (design 390px).
   The older 1024px rule centers the text; the design keeps it left aligned.
   ========================================================================== */
@media (max-width: 1023px) {
    .ow-social-hero-section {
        padding: 12px;
    }

    .ow-social-hero-container {
        gap: 12px;
        align-items: stretch;
    }

    .ow-social-hero-left {
        max-width: none;
        width: 100%;
        align-items: flex-start;
        text-align: left;
        gap: 36px;
        padding: 32px;
        border-radius: 16px;
        box-sizing: border-box;
    }

    .ow-social-hero-text-stack {
        gap: 24px;
    }

    .ow-social-title {
        font-size: 48px;
        line-height: 52.8px;
        letter-spacing: -0.96px;
    }

    .ow-social-title br {
        display: none;
    }

    .ow-social-prose-group {
        gap: 24px;
    }

    .ow-social-subtitle {
        font-size: 17.7px;
        line-height: 19.5px;
        color: rgba(37, 39, 38, 0.45);
    }

    .ow-social-desc {
        max-width: 524px;
    }

    .ow-social-hero-right {
        width: 100%;
    }

    .ow-social-hero-media {
        max-width: none;
        height: 576px;
        border-radius: 16px;
    }
}

@media (max-width: 767px) {
    .ow-social-hero-left {
        padding: 12px 8px;
    }

    .ow-social-title {
        font-size: 36px;
        line-height: 39.6px;
        letter-spacing: -0.72px;
    }

    .ow-social-hero-media {
        height: 400px;
    }
}

/* ==========================================================================
   Social Impact "AI can create positive changes": tablet (design 768px) and mobile (design 390px).
   Image on top, text card below (the markup has the text first, so `order` swaps them).
   ========================================================================== */
@media (max-width: 1023px) {
    .ow-social-split-section {
        padding: 36px;
    }

    .ow-social-split-container {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
    }

    .ow-social-split-media {
        order: 1;
        flex: 0 0 auto; /* the desktop flex: 1 1 0 collapses the height once the columns are stacked */
        width: 100%;
        min-height: 0;
        height: 480px;
    }

    .ow-social-split-img {
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }

    .ow-social-split-content {
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        min-height: 0;
        padding: 36px;
        border-radius: 16px;
        align-items: flex-start;
    }

    .ow-social-split-title br {
        display: none;
    }
}

@media (max-width: 767px) {
    .ow-social-split-section {
        padding: 30px 20px 24px;
    }

    .ow-social-split-container {
        gap: 40px;
    }

    .ow-social-split-media {
        height: auto;
        aspect-ratio: 358 / 320;
        border-radius: 2.21px;
    }

    .ow-social-split-content {
        padding: 8px;
    }

    .ow-social-split-title {
        font-size: clamp(36px, 9.43vw, 46px);
        line-height: 1.08;
        letter-spacing: -0.92px;
    }

    .ow-social-split-desc {
        font-size: 16px;
        line-height: 24px;
    }
}
