html, body {
    height: 100%;
    overflow: hidden;
}

/* Fullscreen Overlay */
/* Fullscreen Loader Overlay */
#page-loader {
    position: fixed;
    inset: 0;
    background: #000; /* change for light/dark theme */
    z-index: 999999;
    opacity: 1;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}

/* Fade-out when JS applies .fade-out */
#page-loader.fade-out {
    opacity: 0;
}

/* LOGO with GLOW PULSE */
#page-loader img{
    width: 150px;     /* adjust size */
    height: auto;
    animation: glowPulse 1.8s infinite ease-in-out;
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(0, 140, 255, 0)); /* no glow */
        opacity: 1;
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 18px rgba(0, 140, 255, 0.55)); /* glowing */
        opacity: 0.75;
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(0, 140, 255, 0));
        opacity: 1;
    }
}



#smooth-wrapper {
    height: 100%;
    overflow: hidden;
    z-index: 2
}

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999; /* higher than smooth-content */
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow:0 4px 14px rgba(0,0,0,0.12);
}




#smooth-content {
    position: relative;
    will-change: transform;
    z-index: 2;
}

/* Fixed background SVG */
#bg-svg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* allows clicks to pass through */
    z-index: 0;            /* above backgrounds, below UI elements */
}


/* Optional: ensure SVG always renders crisp lines */
#bg-svg line,
#bg-svg circle {
    shape-rendering: geometricPrecision;
}

/* Internal sliding content */
.scrollable-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical center */
    height: 100%;
    overflow: hidden;
    will-change: transform;
}

/* Ensure pinned sections always fill the viewport */
.cxc-pinned {
    min-height: 100vh; /* default full height */
}
.cxc-pinned.no-pinning{min-height:0;}

/* Custom pinned heights */
.cxc-pinned.pin-1-by-4 {
    min-height: 25vh !important;
}
.cxc-pinned.pin-1-by-2 {
    min-height: 50vh !important;
}
.cxc-pinned.pin-3-by-4 {
    min-height: 75vh !important;
}

.cxc-pinned.pin-150 {
    min-height:150vh !important;
}

.cxc-pinned.pin-auto {
    min-height: 0 !important;
}



.sticky-content {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

/*.col-main-content > div{background:#000;}*/
.col-main-content > div .gb-layout-column-wrap{height:100%;}

/* style 1 */
.split-text {
    display: inline-block;
    overflow: hidden;             /* enables mask-style reveal */
    position: relative;
}

.split-word {
    display: inline-block;
    margin-right: 0.25em;
    transform: translateY(110%);
    filter: blur(0px);            /* blur animated later */
    will-change: transform, opacity, filter;
}

/* style 2 */
.pop-char {
    display: inline-block;
    will-change: transform, opacity;
}


/* marquee */
/* -------------------------------------------------------------
   BASE TRACK CONTAINER
-------------------------------------------------------------- */
.statistics {
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* -------------------------------------------------------------
   TRACKS
-------------------------------------------------------------- */
.statistics-track {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    display: block !important;
    will-change: transform;
    pointer-events: none; /* Prevent mouse blocking */
}

/* -------------------------------------------------------------
   ITEM FIXES — CRITICAL for correct widths
-------------------------------------------------------------- */
.statistics-track .statistics-item {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap;
    vertical-align: top;

    transform: none !important;
    scale: 1 !important;

    margin-right: 0px !important;  /* MATCHES TRACK_GAP IN JS */
}

.statistics-track .statistics-item > div{
    padding:0 80px;
}

/* Prevent Gutenberg column inner stretching */
.statistics-track .statistics-item .gb-block-layout-column-inner {
    width: auto !important;
}

/* -------------------------------------------------------------
   HIDE ORIGINAL (but keep height)
-------------------------------------------------------------- */
.statistics .gb-layout-column-wrap {
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
    position:absolute;
}


/*
.articles-carousel > .article-item{height:0;visibility:hidden;opacity:0;display:none!important;}

.articles-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.articles-track-wrap {
    position: relative;     !* Important: NOT absolute *!
    width: 100%;
    height: auto;           !* Expands based on tallest .article-item *!
    overflow: visible !important;
}

!* horizontal track *!
.articles-track {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
}

!* normalize item behavior *!
.article-item {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column;
    white-space: normal;
    background: #1e1e1e;
    color: white;
    border-radius: 10px;
    padding: 40px;
}

!* Desktop: 3 slides + peek *!
@media (min-width:1025px){
    .article-item{
        width: calc(33.333vw - 40px)!important;
        margin-right: 40px;
    }
}

!* Tablet: 2 slides *!
@media (min-width:700px) and (max-width:1024px){
    .article-item{
        width: calc(50vw - 40px)!important;
        margin-right: 40px;
    }
}

!* Mobile: 1 slide *!
@media (max-width:699px){
    .article-item{
        width: calc(100vw - 40px)!important;
        margin-right: 40px;
    }
}
*/
/*
.articles-carousel > .article-item{height:0;visibility:hidden;opacity:0;display:none!important;}*/

.articles-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    user-select: none;
    cursor:pointer;
}

.articles-track-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.articles-track {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    will-change: transform;
}

.articles-carousel.dragging {
    cursor: grabbing;
}

.articles-carousel *,
.articles-carousel *::before,
.articles-carousel *::after {
    user-select: none !important;
    -webkit-user-select: none !important;
}


@media (min-width:1025px){
    .articles-carousel .article-item{
        width: calc(33.333vw - 40px)!important;
        margin-right: 40px;
    }
}

@media (min-width:700px) and (max-width:1024px){
    .articles-carousel .article-item{
        width: calc(50vw - 40px)!important;
        margin-right: 40px;
    }
}

@media (max-width:699px){
    .articles-carousel .article-item{
        width: calc(100vw - 40px)!important;
        margin-right: 40px;
    }
}

.why-section-title{
    opacity: 0; /* hidden until SplitText animation */
}
.why-word{margin-right: 0.25rem;}

/*
.h3word,
.pword{margin-right: 0.25rem;}
*/

/*!* Hide h3, p before animation *!
.section-why-cgcn h3,
.section-why-cgcn p {
    opacity: 0;
}

!* prepare pseudo number for animation *!
!*.section-why-cgcn p::before {
    content: attr(data-num);   !* number already visible in your CSS? keep content: "1"/"2"/"3" *!
    display: inline-block;
    transform: translateY(var(--num-y, 20px));
    opacity: var(--num-opacity, 0);
    transition: none; !* GSAP will drive this *!
    margin-right: 8px;
}*!*/

.why-cgcn h3,
.why-cgcn .why-content {
    opacity: 0;
}
.why-content {
    display: inline-block;
}
/* for animation offset */
/*.why-number {
    !*display: inline-block;
    transform: translateY(20px);*!
    overflow: hidden;
}*/

.why-number {
    display: inline-block;
    overflow: hidden; /* important */
}

.why-number-inner {
    display: inline-block;
    will-change: transform;
}




/*.section-home-hero{height:100vh;}*/

.expertise-tab-headings li.active {}
.expertise-tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.section-home-expertise {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/*.content-motion-1 h1,
.content-motion-1 h2,
.content-motion-1 h3,
.content-motion-1 h4,
.content-motion-1 h5,
.content-motion-1 h6,
.content-motion-1 p,
.content-motion-1 li{opacity:0;}*/
.content-motion-style-3{overflow:hidden;}

.scale-to-screen {
    overflow: hidden;          /* prevents scaled overflow */
    position: relative;        /* ensures correct clipping */
}

.scale-to-screen > .gb-block-layout-column-inner {
    transform-origin: top center;  /* required for consistent scaling */
    will-change: transform;
}

.member-card {
    opacity: 0;
    transform: translateY(-40px);
}

/* Ensure images give height immediately */
.member-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Underline (vertical bar) */
.member-card.underline-ready ._content {
    position: relative;
}

.member-card.underline-ready ._content::after {
    content: "";
    position: absolute;
    left: 0%;
    bottom: 0;

    width: 100%;  /* animated by GSAP */
    height: 5px;                         /* underline thickness */
    background: #fff;
    opacity: var(--underline-opacity, 0);
    /* center it */
    transition: width 0.35s ease-out, opacity 0.35s ease-out;
}

/* Hide article cards at page load */
.container-latest-issues .article-item,
.container-weekly-updates .article-item {
    opacity: 0;
    will-change: opacity;
}

/* press */
.container-articles-post .article-item-post {
    opacity: 0;
}

/* Inner elements (for GSAP fade sequence) */
.container-latest-issues .article-item .article-img,
.container-weekly-updates .article-item .article-img,
.container-latest-issues .article-item .article-meta,
.container-weekly-updates .article-item .article-meta,
.container-latest-issues .article-item h3,
.container-weekly-updates .article-item h3,
.container-latest-issues .article-item .article-excerpt,
.container-weekly-updates .article-item .article-excerpt {
    opacity: 0;
    will-change: opacity, filter;
}

/* Prevent flash before GSAP animates */
.gform_wrapper .gfield,
.gform_wrapper {
    opacity: 0;
}

