/* --- 1. BRAND COLORS CONFIGURATION --- */
:root {
    --c-black: #000000;
    --c-white: #FFFFFF;
    --c-hot-pink: #FF007A;
    --c-yellow: #FFFF00;
    --c-dark-yellow: #FFC400;
    --c-lime: #83FF07;
    --c-orange: #FF8500;
    --c-blue: #006AFF;
    --c-red: #FF0000;
    --c-bring-orange: #FF4229;
    --font-display: 'Anton', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-quote: 'Antonio', sans-serif;
    --text-base-color: #000000;
    --fs-10: clamp(24px, 2vw, 36px);
    --fs-9: clamp(45px, 8vw, 210px);
    --fs-8: clamp(90px, 29.68vw, 570px);
    --fs-7: clamp(48px, 7.08vw, 136px);
    --fs-6: clamp(40px, 6vw, 120px);
    --fs-5: clamp(28px, 2.81vw, 54px);
    --fs-4: clamp(24px, 2.5vw, 48px);
    --fs-3: clamp(18px, 1.66vw, 32px);
    --fs-2: clamp(16px, 1.04vw, 20px);
    --fs-1: clamp(14px, 0.93vw, 18px);
}

/* --- NEW LOADER CSS --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-black);
    z-index: 99999;
    /* Highest priority */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* Prevent clicking while loading */
}

/* Optional Spinner for Loader */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--c-white);
    border-top: 5px solid var(--c-hot-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

p {
    font-size: var(--fs-2);
    line-height: 1.2;
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 1.15;
}

.font-quote {
    font-family: var(--font-quote);
}

.font-anton {
    font-family: var(--font-display);
}

/* Utility Font Sizes */
.font-size-massive {
    font-size: var(--fs-8) !important;
}

.font-size-xxxl {
    font-size: var(--fs-9) !important;
}

.font-size-xxl {
    font-size: var(--fs-7) !important;
}

.font-size-xl {
    font-size: var(--fs-6) !important;
}

.font-size-lg {
    font-size: var(--fs-5) !important;
}

.font-size-md {
    font-size: var(--fs-4) !important;
}

.font-size-sml {
    font-size: var(--fs-10) !important;
}

.font-size-sm {
    font-size: var(--fs-3) !important;
}

.font-size-body {
    font-size: var(--fs-2) !important;
}

.font-size-xs {
    font-size: var(--fs-1) !important;
}

html {
    scroll-padding-top: 65px;
    scroll-behavior: auto !important;
}
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--c-white);
    font-family: var(--font-body);
    font-size: var(--fs-2) !important;
}
.citation {
    vertical-align: super;
    font-size: 0.6em;
    line-height: 0;
}
.citation a {
    color: inherit;
    text-decoration: none;
}

.header-window {
    position: absolute;
    height: auto;
    width: 60vw;
    right: 10%;
    top: 20%;
}

/* --- 3. UI ELEMENTS --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: background-color 0.35s ease;
}

.top-nav.nav-scrolled {
    background-color: rgba(0, 0, 0, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 4%;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.25rem;
    align-items: center;
}

.nav-links .nav-link {
    font-family: var(--font-quote);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: var(--c-yellow);
}
.nav-links .nav-link.active {
    border-bottom: 1px solid var(--c-yellow);
}

.nav-links .nav-link.nav-cta {
    border: 1.5px solid var(--c-yellow);
    border-radius: 50px;
    padding: 0.35rem 1.1rem;
    color: var(--c-white);
    transition: background-color 0.25s ease;
}

.nav-links .nav-link.nav-cta:hover {
    background-color: var(--c-yellow);
    color: var(--c-white);
}

/* --- Burger Button --- */
.nav-burger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    outline: none;
}

.nav-burger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--c-white);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.nav-mobile-menu {
    background-color: var(--c-black);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile-menu.is-open {
    max-height: 500px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile-menu ul {
    list-style: none;
    padding: 0.5rem 5% 1.5rem;
    margin: 0;
}

.nav-mobile-link {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: var(--c-yellow);
    padding-left: 8px;
}


.logo {
    max-width: 7vw;
    min-width: 80px;
}

.agency-tagline {
    text-transform: uppercase;
    font-family: var(--font-display);
}

.btn-contact {
    display: inline-block;
    border: 2px solid var(--c-hot-pink);
    border-radius: 50px;
    padding: 0.5rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    background: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: var(--c-black);
}

.btn-contact:hover {
    background: var(--c-hot-pink);
    color: var(--c-white);
}



/* --- 5. SECTION COLORS & TEXT HANDLING --- */
.section-black {
    background-color: var(--c-black);
    color: var(--c-white);
    --text-base-color: #FFFFFF;
}

.bg-white {
    background-color: var(--c-white);
    color: var(--c-black);
    --text-base-color: #000000;
}

.bg-orange {
    background-color: var(--c-orange);
    color: var(--c-white);
    --text-base-color: #fff;
}

.bg-blue {
    background-color: var(--c-blue);
    color: var(--c-white);
    --text-base-color: #fff;
}

.bg-white {
    background-color: var(--c-white);
    color: var(--c-black);
    --text-base-color: #000;
}

.bg-dark-yellow {
    background-color: var(--c-dark-yellow);
}

.bg-bright-orange {
    background-color: var(--c-bring-orange);
}

.white-box-title {
    padding: 30px 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.text-white {
    color: #fff !important;
    --text-base-color: #FFFFFF;
}

.text-black {
    color: #000 !important;
    --text-base-color: #000000;
}


/* --- 6. TEXT ANIMATION CSS --- */
.gsplit-line {
    overflow: hidden;
    display: block;
    margin-bottom: -0.1em;
}

[class^="text-moi-"],
[class*=" text-moi-"] {
    --fill-percent: 0%;
    --moi-color: var(--c-hot-pink);
    background-image: linear-gradient(90deg, var(--moi-color) var(--fill-percent), var(--text-base-color) var(--fill-percent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* CHANGE THIS FROM inline-block TO inline */
    display: inline;
}

.m-bg-wrapper {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 150%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.m-bg-wrapper img {
    width: 100%;
    height: 130%;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.text-moi-lime {
    --moi-color: var(--c-lime);
}

.text-moi-pink {
    --moi-color: var(--c-hot-pink);
}

.text-moi-blue {
    --moi-color: #006AFF;
}

.text-moi-yellow {
    --moi-color: var(--c-yellow);
}

.text-moi-dark-yellow {
    --moi-color: var(--c-dark-yellow);
}


.text-moi-orange {
    --moi-color: var(--c-orange);
}

.text-moi-black {
    --moi-color: var(--c-black);
}

.text-moi-white {
    --moi-color: var(--c-white);
}

.text-static-white {
    color: #fff;
}

.text-static-yellow {
    color: #FFFF00;
}

.text-static-blue {
    color: #006AFF;
}

.text-static-red {
    color: #FF0000;
}

.text-static-purple {
    color: #6F00FF;
}

.mb--1 {
    margin-bottom: -15px;
}

/* 1. Helper to allow text to hang outside the panel */
.overflow-visible {
    overflow: visible !important;
}

.bg-grey-squares {
    background-color: #000 !important;
    background-image:
        linear-gradient(to right, #242323 2px, transparent 2px),
        linear-gradient(to bottom, #242323 2px, transparent 2px) !important;
    background-size: 80px 80px !important;
    background-attachment: fixed;
    --bx: 0px;
    --by: 0px;
    background-position: var(--bx) var(--by);
}

.bg-purple {
    background-color: #6F00FF;
}

.bg-purple-black {
    background-color: #6F00FF;
    background-image: linear-gradient(#6F00FF 50%, #000 50%);
}


.header {
    min-height: 120vh;
    min-height: 120svh;
    min-height: 120lvh;
    background-image:
        linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 50%),
        url("../img/reimagining-abm-header.jpg");
    background-position: right top;
    background-size: cover;
    background-repeat: no-repeat;
}

.header-inner {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100lvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-start-abm {
    min-height: 70vh;
    min-height: 70svh;
    min-height: 70lvh;
    background-image: url("../img/getting-started-abm.jpg");
    background-position: right top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.force-inline {
    display: inline !important;
    white-space: nowrap;
}
.overlapping-heading {
    margin-bottom: -20px;
}

.animated-heading {
    width: 100%;
    display: block;
    word-wrap: normal;
    white-space: normal;
}

.section {
    padding: 7% 0%;
}

.percentage {
    vertical-align: top;
    line-height: 2;
}

.white-box-full {
    background-color: #fff;
    border-radius: 40px;
    padding: 40px 100px;
}

.quote-wrapper {
    max-width: 250px;
}
.img-networking {
    max-width: 1200px;
}

.yellow-box-list li {
    margin-bottom: 15px;
    padding: 25px;
    background-color: #FFD856;
    display: flex;
    /* Bullet in Col 1, Span in Col 2 */
    align-items: flex-start;
}

.yellow-box-list li span {
    display: block;
    /* Force the text to stay together as one block */
    flex: 1;
    /* Take up all remaining width */
    line-height: 1.4;
}

.yellow-box-list li::before {
    content: "•";
    margin-right: 15px;
    /* Consistent gap after bullet */
    font-weight: bold;
    flex-shrink: 0;
}

.yellow-box-list li::before {
    content: "•";
    margin-right: 10px;
    font-weight: bold;
}

/* 1. Force all number containers to be the exact same height */
.stat-top {
    height: 150px;
    /* Adjust this value if your '6-12 months' needs more room */
    display: flex;
    flex-direction: column;
    justify-content: start;
    /* This aligns '88%' and 'months' to the same baseline */
    margin-top: 45px;
    /* Consistent gap before the paragraph starts */
}

/* 2. Remove default margins that might add extra 'invisible' height */
.stat-top p {
    margin-bottom: 0 !important;
    line-height: 0.9;
}

/* 3. Ensure columns are aligned to the top of the row */
.white-box-full .row {
    align-items: flex-start !important;
}


/* Stat pills */
/* --- PILL/ARCH CHART STYLES --- */
.pill-wrapper {
    position: relative;
    width: 100%;
    max-width: 180px;
    /* Controls the overall width of the pill */
    height: 350px;
    /* Controls how tall the chart is */
    background-color: rgba(255, 255, 255, 0.2);
    /* The semi-transparent track */
    border-radius: 200px 200px 0 0;
    /* Gives it the arch shape */
    overflow: hidden;
    /* Keeps the white fill perfectly inside the rounded edges */
    display: flex;
    align-items: flex-end;
    /* Pushes the numbers to the bottom */
    justify-content: center;
    padding-bottom: 20px;
    /* Breathing room below the numbers */
}

.pill-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    /* The solid white fill */
    height: 0%;
    /* We start this at 0, GSAP will animate it! */
    z-index: 1;
    /* Sits behind the text */
}

.pill-number {
    position: absolute;
    /* Takes it out of the flex flow */
    bottom: 0px;
    /* Forces it to the absolute bottom */
    left: 50%;
    transform: translateX(-50%);
    /* Centers it perfectly */
    width: 100%;
    /* Gives it a 5% safety margin on the sides */

    display: flex;
    align-items: end;
    justify-content: center;
    z-index: 2;
    color: #6F00FF;

    /* This aggressively cuts out the invisible space below the font */
    line-height: 0.75;
    padding-bottom: 0px;
    /* Tiny optical adjustment so it doesn't clip the bottom */
}

/* Establish proportions: The number is 100%, the % sign is 40% of that size */
.pill-number .counter-val {
    font-size: 1em;
}

.pill-number .percentage {
    font-size: 0.4em;
    margin-left: 2px;
}

/* Force the blue text on the pill to stand out against the white */
.text-moi-blue {
    color: var(--c-blue) !important;
}

/* --- HUMAN ELEMENTS GRID --- */
.human-elements-grid {
    display: grid;
    /* This creates 3 equal columns on desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    /* Spacing between the columns */
}

/* Force the SVG wrappers to be perfectly square and equally sized */
.human-elements-grid .svg-wrapper {
    width: 100%;
    max-width: 140px;
    /* Prevents them from getting too massive on huge screens */
    aspect-ratio: 1 / 1;
    /* Locks it to a perfect square */
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Ensure the SVG fills the wrapper proportionally */
.human-elements-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    padding-bottom: 0px;
}

.human-elements-grid .grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-items: center;
}
@media (min-width: 1400px) {
    .container {
        max-width: 82vw !important;
        width: 82vw !important;
    }
    .stat-top {
        height: 190px;
    }
}


@media screen and (max-width: 992px) {


    .container {
        max-width: 90vw !important;
        width: 90vw !important;
    }

    .header-window {
        position: absolute;
        height: auto;
        width: 80vw;
        right: 3%;
        bottom: -34%;
        top: unset;
    }
    .nav-inner {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0.6rem 4%;
    }
    .top-nav {
        background: #000;
    }

}

@media screen and (max-width: 768px) {
    .header {
        min-height: 50vh;
        min-height: 50svh;
        min-height: 50lvh;
        background-image:
            linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 50%),
            url("../img/reimagining-abm-header_mb.jpg");
        background-position: right top;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .header-inner {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100lvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .overlap-wrapper {
        margin-top: -50px;
        padding-bottom: 50px;
    }
    .counter-val, .text-stat {
        font-size: 70px!important;
    }
    .stat-block {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .container {
        max-width: 95vw !important;
        width: 95vw !important;
    }
    .human-elements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    /* Force all svg-wrappers to the same explicit size on mobile */
    .human-elements-grid .svg-wrapper {
        width: 70px;
        height: 70px;
        max-width: unset;
        aspect-ratio: 1 / 1;
    }
    .white-box-full {
        background-color: #fff;
        border-radius: 40px;
        padding: 20px 20px;
    }

    .stat-top{
        height: unset;
        margin-bottom: 10px;
        margin-top: 15px;
    }
    .quote-wrapper{
        max-width: 120px;
    }
    .bg-start-abm {
        background-position: 47% 50%;
    }
    .overlapping-heading {
        margin-bottom: -10px;
    }
    .white-box-title {
        padding: 20px 10px;
    }
    .pill-number .percentage {
        font-size: 30px;
    }
}

/* --- SITE FOOTER --- */
.site-footer {
    background-color: var(--c-black);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    font-family: var(--font-body);
    font-size: var(--fs-1);
}

.site-footer .footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--c-yellow);
}

.site-footer .footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
