/* ==========================================================
   CGiS EXPERIENCE V4
   Motion · Depth · Interaction · Premium UI
   ========================================================== */


/* ----------------------------------------------------------
   ROOT
---------------------------------------------------------- */

:root {
    --v4-pink: #d64a72;
    --v4-pink-dark: #a82c55;
    --v4-pink-soft: #fce8ef;

    --v4-green: #08703f;
    --v4-yellow: #f6b800;

    --v4-ink: #171217;

    --v4-ease:
        cubic-bezier(.16, .84, .32, 1);

    --v4-ease-out:
        cubic-bezier(.22, 1, .36, 1);
}


/* ----------------------------------------------------------
   SCROLL PROGRESS
---------------------------------------------------------- */

.cgis-scroll-progress {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 99999;

    width: 100%;
    height: 3px;

    pointer-events: none;

    background:
        rgba(255,255,255,.05);
}

.cgis-scroll-progress-bar {
    width: 0%;
    height: 100%;

    transform-origin: left center;

    background:
        linear-gradient(
            90deg,
            var(--v4-pink),
            var(--v4-yellow),
            var(--v4-green)
        );

    box-shadow:
        0 0 15px
        rgba(214,74,114,.4);

    transition:
        width .08s linear;
}


/* ----------------------------------------------------------
   POINTER LIGHT
---------------------------------------------------------- */

.cgis-pointer-light {
    position: fixed;

    z-index: 9998;

    width: 380px;
    height: 380px;

    left: 0;
    top: 0;

    border-radius: 50%;

    pointer-events: none;

    opacity: 0;

    transform:
        translate3d(-50%, -50%, 0);

    background:
        radial-gradient(
            circle,
            rgba(214,74,114,.08) 0%,
            rgba(214,74,114,.04) 32%,
            transparent 70%
        );

    filter: blur(8px);

    transition:
        opacity .35s ease;
}

body.cgis-pointer-active
.cgis-pointer-light {
    opacity: 1;
}


/* ----------------------------------------------------------
   HEADER
---------------------------------------------------------- */

.header {
    position: sticky;

    transition:
        background .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.header::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -1px;

    width: 0;
    height: 1px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(214,74,114,.55),
            rgba(246,184,0,.55),
            transparent
        );

    transition:
        width .55s
        var(--v4-ease);
}

.header.header-scrolled::after {
    width: 92%;
}


/* ----------------------------------------------------------
   HERO DEPTH
---------------------------------------------------------- */

.hero {
    --hero-x: 50%;
    --hero-y: 50%;
}

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    pointer-events: none;

    opacity: .75;

    background:
        radial-gradient(
            circle at var(--hero-x) var(--hero-y),
            rgba(214,74,114,.10),
            transparent 27%
        );
}


/* ----------------------------------------------------------
   HERO DECORATIVE SHAPES
---------------------------------------------------------- */

.cgis-hero-shapes {
    position: absolute;

    inset: 0;

    z-index: -1;

    overflow: hidden;

    pointer-events: none;
}

.cgis-hero-shape {
    position: absolute;

    display: block;

    border-radius: 50%;

    opacity: .4;

    animation:
        cgisShapeFloat
        var(--shape-duration, 11s)
        ease-in-out
        infinite;

    animation-delay:
        var(--shape-delay, 0s);
}

.cgis-hero-shape:nth-child(1) {
    width: 14px;
    height: 14px;

    left: 7%;
    top: 24%;

    background:
        var(--v4-pink);
}

.cgis-hero-shape:nth-child(2) {
    width: 8px;
    height: 8px;

    left: 18%;
    top: 75%;

    background:
        var(--v4-yellow);

    --shape-duration: 8s;
    --shape-delay: -3s;
}

.cgis-hero-shape:nth-child(3) {
    width: 12px;
    height: 12px;

    left: 47%;
    top: 13%;

    background:
        var(--v4-green);

    --shape-duration: 12s;
    --shape-delay: -4s;
}

.cgis-hero-shape:nth-child(4) {
    width: 19px;
    height: 19px;

    right: 12%;
    top: 14%;

    border:
        2px solid
        rgba(214,74,114,.4);

    background: transparent;

    --shape-duration: 14s;
}

.cgis-hero-shape:nth-child(5) {
    width: 9px;
    height: 9px;

    right: 6%;
    top: 68%;

    background:
        var(--v4-yellow);

    --shape-duration: 9s;
    --shape-delay: -2s;
}

.cgis-hero-shape:nth-child(6) {
    width: 28px;
    height: 28px;

    right: 42%;
    bottom: 10%;

    border:
        1px solid
        rgba(8,112,63,.30);

    background: transparent;

    --shape-duration: 16s;
    --shape-delay: -6s;
}


/* ----------------------------------------------------------
   HERO HEADLINE
---------------------------------------------------------- */

.hero h1 span {
    background:
        linear-gradient(
            100deg,
            #d64a72 0%,
            #bd375f 35%,
            #e46b8c 52%,
            #b8325c 72%,
            #d64a72 100%
        );

    background-size:
        220% auto;

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color: transparent !important;

    animation:
        cgisHeadlineGradient
        7s linear infinite;
}


/* ----------------------------------------------------------
   HERO CARD
---------------------------------------------------------- */

.hero-card {
    position: relative;

    overflow: hidden;

    transform-style:
        preserve-3d;
}

.hero-card::before {
    content: "";

    position: absolute;

    inset: -100%;

    pointer-events: none;

    opacity: .7;

    background:
        linear-gradient(
            110deg,
            transparent 36%,
            rgba(255,255,255,.16) 46%,
            rgba(255,255,255,.26) 50%,
            rgba(255,255,255,.16) 54%,
            transparent 64%
        );

    transform:
        translateX(-45%);

    animation:
        cgisHeroShine
        8s ease-in-out
        infinite;
}

.hero-card-logo,
.hero-card > div {
    position: relative;

    z-index: 2;
}


/* ----------------------------------------------------------
   UNIVERSAL SPOTLIGHT CARDS
---------------------------------------------------------- */

.cgis-interactive-card {
    position: relative;

    transform-style:
        preserve-3d;

    will-change:
        transform;
}

.cgis-card-light {
    position: absolute;

    inset: 0;

    z-index: 1;

    border-radius: inherit;

    opacity: 0;

    pointer-events: none;

    background:
        radial-gradient(
            420px circle
            at var(--spot-x, 50%)
            var(--spot-y, 50%),
            rgba(255,255,255,.22),
            rgba(214,74,114,.05) 28%,
            transparent 64%
        );

    transition:
        opacity .3s ease;
}

.cgis-interactive-card:hover
.cgis-card-light {
    opacity: 1;
}

.cgis-interactive-card > *:not(.cgis-card-light) {
    position: relative;

    z-index: 2;
}


/* ----------------------------------------------------------
   MISSION CARDS
---------------------------------------------------------- */

.mission-visual-card {
    transform-origin: center;

    transition:
        transform .32s var(--v4-ease),
        box-shadow .32s ease,
        border-color .32s ease;
}

.mission-visual-card:hover {
    border-color:
        rgba(214,74,114,.24);

    box-shadow:
        0 34px 75px
        rgba(102,42,64,.14);
}

.mission-media {
    overflow: hidden;
}

.mission-media img {
    transition:
        transform .75s
        var(--v4-ease-out),
        filter .5s ease;
}

.mission-visual-card:hover
.mission-media img {
    transform:
        scale(1.065);

    filter:
        saturate(1.06)
        contrast(1.025);
}


/* ----------------------------------------------------------
   PROGRAM CARDS
---------------------------------------------------------- */

.program {
    transition:
        transform .35s var(--v4-ease),
        border-color .35s ease,
        box-shadow .35s ease;
}

.program:hover {
    border-color:
        rgba(214,74,114,.22);

    box-shadow:
        0 35px 75px
        rgba(82,35,53,.12);
}

.program.featured {
    isolation: isolate;
}

.program.featured::before {
    content: "";

    position: absolute;

    inset: 1px;

    z-index: 0;

    border-radius: inherit;

    pointer-events: none;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,.10),
            transparent
        );

    transform:
        translateX(-110%);

    animation:
        cgisFeaturedSweep
        7s ease-in-out infinite;
}


/* ----------------------------------------------------------
   JOURNEY
---------------------------------------------------------- */

.journey > div {
    position: relative;

    overflow: hidden;
}

.journey > div::after {
    content: "";

    width: 75px;
    height: 75px;

    position: absolute;

    right: -32px;
    bottom: -34px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,.10);

    transition:
        transform .4s var(--v4-ease),
        opacity .4s ease;
}

.journey > div:hover::after {
    transform:
        scale(1.7);

    opacity: .65;
}

.journey > div:hover strong {
    color:
        #ffd3df;
}


/* ----------------------------------------------------------
   MISS CAMEROUN
---------------------------------------------------------- */

.mandate-photo-card {
    isolation: isolate;
}

.mandate-photo-card::before {
    content: "";

    position: absolute;

    z-index: 4;

    inset: 0;

    pointer-events: none;

    opacity: 0;

    background:
        linear-gradient(
            120deg,
            transparent 38%,
            rgba(255,255,255,.22) 48%,
            transparent 59%
        );

    transform:
        translateX(-80%);

    transition:
        opacity .3s ease;
}

.mandate-photo-card:hover::before {
    opacity: .65;

    animation:
        cgisMissShine
        1.5s ease forwards;
}

.mandate-photo-badge {
    transition:
        transform .3s var(--v4-ease),
        background .3s ease;
}

.mandate-photo-card:hover
.mandate-photo-badge {
    transform:
        translateY(-3px);

    background:
        rgba(184,50,92,.72);
}

.mandate-photo-caption strong {
    transition:
        transform .4s var(--v4-ease);
}

.mandate-photo-card:hover
.mandate-photo-caption strong {
    transform:
        translateX(5px);
}


/* ----------------------------------------------------------
   OPPORTUNITIES
---------------------------------------------------------- */

.opportunities article {
    position: relative;

    overflow: hidden;
}

.opportunities article::before {
    content: "";

    position: absolute;

    left: 0;
    top: 15%;
    bottom: 15%;

    width: 3px;

    border-radius:
        0 999px 999px 0;

    transform:
        scaleY(0);

    transform-origin:
        center;

    background:
        var(--v4-pink);

    transition:
        transform .3s
        var(--v4-ease);
}

.opportunities article:nth-child(2)::before {
    background:
        var(--v4-green);
}

.opportunities article:nth-child(3)::before {
    background:
        var(--v4-yellow);
}

.opportunities article:hover::before {
    transform:
        scaleY(1);
}


/* ----------------------------------------------------------
   IMPACT
---------------------------------------------------------- */

.metrics > div {
    position: relative;

    overflow: hidden;
}

.metrics > div::after {
    content: "";

    position: absolute;

    width: 140px;
    height: 140px;

    right: -80px;
    bottom: -80px;

    border-radius: 50%;

    background:
        rgba(214,74,114,.05);

    transition:
        transform .45s
        var(--v4-ease);
}

.metrics > div:hover::after {
    transform:
        scale(1.9);
}

.metrics strong {
    transition:
        transform .35s
        var(--v4-ease);
}

.metrics > div:hover strong {
    transform:
        translateY(-5px);
}


/* ----------------------------------------------------------
   JOIN CTA
---------------------------------------------------------- */

.join-card {
    position: relative;

    isolation: isolate;
}

.join-card::before {
    content: "";

    width: 520px;
    height: 520px;

    position: absolute;

    z-index: -1;

    right: -260px;
    top: -280px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(246,184,0,.20),
            transparent 66%
        );

    animation:
        cgisJoinGlow
        7s ease-in-out infinite;
}

.join-links a strong {
    transition:
        transform .25s
        var(--v4-ease);
}

.join-links a:hover strong {
    transform:
        translateX(7px);
}


/* ----------------------------------------------------------
   MAGNETIC BUTTON FEEDBACK
---------------------------------------------------------- */

.cgis-magnetic {
    will-change:
        transform;

    transition:
        transform .18s
        var(--v4-ease),
        box-shadow .25s ease;
}


/* ----------------------------------------------------------
   ADVANCED REVEALS
---------------------------------------------------------- */

.cgis-v4-reveal {
    opacity: 0;

    filter:
        blur(5px);

    transform:
        translate3d(
            0,
            42px,
            0
        );

    transition:
        opacity .8s
        var(--v4-ease-out),
        transform .8s
        var(--v4-ease-out),
        filter .8s ease;

    transition-delay:
        var(--v4-delay, 0ms);
}

.cgis-v4-reveal.cgis-v4-visible {
    opacity: 1;

    filter:
        blur(0);

    transform:
        translate3d(
            0,
            0,
            0
        );
}

.cgis-v4-reveal-left {
    transform:
        translate3d(
            -45px,
            0,
            0
        );
}

.cgis-v4-reveal-right {
    transform:
        translate3d(
            45px,
            0,
            0
        );
}

.cgis-v4-reveal-left.cgis-v4-visible,
.cgis-v4-reveal-right.cgis-v4-visible {
    transform:
        translate3d(
            0,
            0,
            0
        );
}


/* ----------------------------------------------------------
   SCROLL HINT
---------------------------------------------------------- */

.cgis-scroll-hint {
    position: absolute;

    left: 50%;
    bottom: 28px;

    z-index: 5;

    width: 25px;
    height: 42px;

    display: flex;
    justify-content: center;

    border:
        1px solid
        rgba(214,74,114,.28);

    border-radius: 999px;

    transform:
        translateX(-50%);

    opacity: .7;
}

.cgis-scroll-hint::before {
    content: "";

    width: 4px;
    height: 7px;

    margin-top: 8px;

    border-radius: 999px;

    background:
        var(--v4-pink);

    animation:
        cgisScrollHint
        1.8s ease-in-out infinite;
}


/* ----------------------------------------------------------
   KEYFRAMES
---------------------------------------------------------- */

@keyframes cgisHeadlineGradient {

    to {
        background-position:
            220% center;
    }

}

@keyframes cgisShapeFloat {

    0%,
    100% {
        transform:
            translate3d(
                0,
                0,
                0
            )
            rotate(0deg);
    }

    50% {
        transform:
            translate3d(
                0,
                -18px,
                0
            )
            rotate(12deg);
    }

}

@keyframes cgisHeroShine {

    0%,
    72% {
        transform:
            translateX(-55%)
            rotate(0deg);
    }

    88%,
    100% {
        transform:
            translateX(55%)
            rotate(0deg);
    }

}

@keyframes cgisFeaturedSweep {

    0%,
    65% {
        transform:
            translateX(-110%);
    }

    85%,
    100% {
        transform:
            translateX(110%);
    }

}

@keyframes cgisMissShine {

    from {
        transform:
            translateX(-75%);
    }

    to {
        transform:
            translateX(75%);
    }

}

@keyframes cgisJoinGlow {

    0%,
    100% {
        transform:
            scale(1);

        opacity: .75;
    }

    50% {
        transform:
            scale(1.16);

        opacity: 1;
    }

}

@keyframes cgisScrollHint {

    0% {
        transform:
            translateY(0);

        opacity: 0;
    }

    35% {
        opacity: 1;
    }

    100% {
        transform:
            translateY(16px);

        opacity: 0;
    }

}


/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */

@media (max-width: 900px) {

    .cgis-pointer-light {
        display: none;
    }

    .cgis-scroll-hint {
        display: none;
    }

    .cgis-interactive-card {
        transform:
            none !important;
    }

}


/* ----------------------------------------------------------
   ACCESSIBILITY
---------------------------------------------------------- */

@media (
    prefers-reduced-motion:
    reduce
) {

    .cgis-hero-shape,
    .hero-card,
    .floating-card,
    .join-card::before,
    .program.featured::before,
    .hero-card::before {
        animation:
            none !important;
    }

    .cgis-v4-reveal,
    .cgis-v4-reveal-left,
    .cgis-v4-reveal-right {
        opacity: 1 !important;

        filter: none !important;

        transform:
            none !important;
    }

    .cgis-scroll-hint {
        display: none;
    }

}