
/* =========================================================
   F1RMA CAPABILITIES, SECTORS AND CLIENTS
   Compact clickable hexagons + institutional popup
   ========================================================= */

#sectors {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: #f6f3ed !important;
    color: #151515 !important;
}

.f1rma-clients-section {
    position: relative;
    overflow: hidden;

    padding: 58px 34px 48px;

    background:
        radial-gradient(
            circle at 50% 64%,
            rgba(111, 84, 255, 0.08),
            transparent 32%
        ),
        #f6f3ed;
}

.f1rma-clients-shell {
    width: min(1580px, 100%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.f1rma-clients-head {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(390px, 0.95fr);

    gap: 65px;

    align-items: start;

    margin-bottom: 40px;
}

.f1rma-clients-kicker {
    margin-bottom: 13px;

    color: #6b56ee;

    font-size: 13px;
    font-weight: 900;

    letter-spacing: 0.20em;
}

.f1rma-clients-title {
    margin: 0;

    max-width: 850px;

    color: #111111;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(46px, 4.2vw, 70px);

    font-weight: 400;

    line-height: 0.98;

    letter-spacing: -0.04em;
}

.f1rma-clients-intro {
    margin: 0;

    padding-top: 30px;

    max-width: 650px;

    color: #716c64;

    font-size: 18px;
    line-height: 1.75;
}


/* =========================================================
   HEXAGON CLUSTER
   ========================================================= */

.f1rma-clients-visual {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        250px
        minmax(0, 1fr);

    gap: 18px;

    align-items: center;

    width: 100%;
}

.f1rma-client-side {
    display: grid;

    grid-template-columns:
        repeat(3, 140px);

    grid-template-rows:
        repeat(2, 158px);

    gap: 2px 8px;

    justify-content: center;
    align-items: center;
}


/* =========================================================
   CLIENT / CAPABILITY HEX
   ========================================================= */

.f1rma-client-hex {
    position: relative;

    width: 140px;
    height: 158px;

    padding: 21px 12px 22px;

    border: 0;

    cursor: pointer;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    color: #171717;

    background:
        linear-gradient(
            155deg,
            #ffffff,
            #f8f5ef
        );

    clip-path:
        polygon(
            50% 0%,
            94% 24%,
            94% 76%,
            50% 100%,
            6% 76%,
            6% 24%
        );

    filter:
        drop-shadow(
            0 8px 12px rgba(40, 30, 20, 0.05)
        );

    transition:
        transform 170ms ease,
        filter 170ms ease;
}

.f1rma-client-hex::before {
    content: "";

    position: absolute;

    inset: 1px;

    z-index: -1;

    clip-path:
        polygon(
            50% 0%,
            94% 24%,
            94% 76%,
            50% 100%,
            6% 76%,
            6% 24%
        );

    background:
        linear-gradient(
            145deg,
            #d9d2ca,
            #ffffff,
            #cbc3ba
        );
}

.f1rma-client-hex::after {
    content: "";

    position: absolute;

    inset: 2px;

    z-index: -1;

    clip-path:
        polygon(
            50% 0%,
            94% 24%,
            94% 76%,
            50% 100%,
            6% 76%,
            6% 24%
        );

    background:
        linear-gradient(
            155deg,
            #ffffff,
            #faf7f2
        );
}

.f1rma-client-hex:hover,
.f1rma-client-hex:focus-visible {
    transform:
        translateY(-4px)
        scale(1.035);

    filter:
        drop-shadow(
            0 12px 18px rgba(102, 78, 220, 0.17)
        );
}

.f1rma-client-hex.is-active {
    transform:
        translateY(-4px);

    filter:
        drop-shadow(
            0 13px 21px rgba(102, 78, 220, 0.23)
        );
}


/* =========================================================
   ICONS
   ========================================================= */

.f1rma-client-icon {
    width: 29px;
    height: 29px;

    margin-bottom: 9px;

    color: #6c57ef;
}

.f1rma-client-icon svg {
    display: block;

    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   HEX LABEL
   ========================================================= */

.f1rma-client-label {
    width: 108px;

    color: #171615;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;

    line-height: 1.08;
}

.f1rma-client-plus {
    position: absolute;

    left: 50%;
    bottom: 16px;

    transform:
        translateX(-50%);

    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    border:
        1px solid #ded7ce;

    background:
        rgba(255,255,255,0.92);

    color: #6954ee;

    font-family: Arial, sans-serif;

    font-size: 18px;

    line-height: 1;
}


/* =========================================================
   CENTRAL F1RMA HEX
   ========================================================= */

.f1rma-client-center {
    position: relative;

    width: 250px;
    height: 282px;

    margin: 0 auto;

    display: grid;
    place-items: center;

    clip-path:
        polygon(
            50% 0%,
            94% 24%,
            94% 76%,
            50% 100%,
            6% 76%,
            6% 24%
        );

    background:
        radial-gradient(
            circle at 32% 26%,
            rgba(140, 92, 255, 0.40),
            transparent 38%
        ),
        radial-gradient(
            circle at 72% 78%,
            rgba(182, 72, 150, 0.16),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #2b2045,
            #171326 50%,
            #11101b
        );

    filter:
        drop-shadow(
            0 0 20px rgba(111, 83, 245, 0.22)
        );
}

.f1rma-client-center::before {
    content: "";

    position: absolute;

    width: 145%;
    height: 46%;

    left: -24%;
    top: 22%;

    border-radius: 50%;

    transform:
        rotate(12deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(142,100,255,0.19),
            transparent
        );
}

.f1rma-client-center-inner {
    position: relative;

    z-index: 2;

    text-align: center;
}

.f1rma-client-center-brand {
    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 39px;

    letter-spacing: 0.13em;
}

.f1rma-client-center-tagline {
    margin-top: 10px;

    max-width: 180px;

    color: rgba(255,255,255,0.62);

    font-family: Arial, sans-serif;

    font-size: 9px;
    font-weight: 700;

    line-height: 1.5;

    letter-spacing: 0.10em;
}

.f1rma-client-center-line {
    width: 48px;
    height: 5px;

    margin:
        13px auto 0;

    border-radius: 8px;

    background:
        #8064ff;

    box-shadow:
        0 0 15px rgba(121,92,255,0.38);
}


/* =========================================================
   HELPER
   ========================================================= */

.f1rma-clients-helper {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 17px;

    margin-top: 27px;
}

.f1rma-clients-helper-line {
    width: 72px;
    height: 1px;

    background:
        rgba(108,87,239,0.38);
}

.f1rma-clients-helper-text {
    color: #716a94;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.22em;
}

.f1rma-clients-helper-subtext {
    margin-top: 8px;

    text-align: center;

    color: #878078;

    font-size: 13px;
}


/* =========================================================
   MODAL BACKDROP
   ========================================================= */

.f1rma-client-modal {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 34px;

    background:
        rgba(8, 9, 13, 0.68);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}

.f1rma-client-modal.is-open {
    display: flex;
}


/* =========================================================
   RECTANGULAR POPUP
   ========================================================= */

.f1rma-client-popup {
    position: relative;

    width:
        min(1180px, 94vw);

    max-height:
        88vh;

    overflow-y: auto;

    padding:
        34px 36px 30px;

    border-radius:
        22px;

    background:
        #fbfaf7;

    border:
        1px solid #ddd7cf;

    box-shadow:
        0 35px 100px rgba(0,0,0,0.28);
}


/* =========================================================
   POPUP HEADER
   ========================================================= */

.f1rma-client-popup-top {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 30px;

    align-items: start;

    padding-bottom: 22px;

    border-bottom:
        1px solid #e6e0d8;
}

.f1rma-client-popup-eyebrow {
    margin-bottom:
        8px;

    color:
        #6b56ee;

    font-size:
        11px;

    font-weight:
        900;

    letter-spacing:
        0.18em;
}

.f1rma-client-popup-title {
    margin:
        0 0 9px;

    color:
        #151412;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        38px;

    font-weight:
        400;

    line-height:
        1.05;
}

.f1rma-client-popup-summary {
    margin:
        0;

    max-width:
        820px;

    color:
        #625e57;

    font-size:
        16px;

    line-height:
        1.68;
}

.f1rma-client-close {
    min-width:
        85px;

    padding:
        11px 17px;

    border:
        1px solid #d8d1c8;

    border-radius:
        30px;

    background:
        #ffffff;

    color:
        #25211d;

    cursor:
        pointer;

    font-size:
        12px;

    font-weight:
        800;
}


/* =========================================================
   INSTITUTIONAL IMPACT STRIP
   ========================================================= */

.f1rma-client-impact {
    margin-top:
        22px;

    padding:
        16px 19px;

    border-left:
        4px solid #6e58ef;

    background:
        #f2eefc;

    color:
        #3d3754;

    font-size:
        15px;

    line-height:
        1.65;
}


/* =========================================================
   POPUP GRID
   ========================================================= */

.f1rma-client-popup-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        30px;

    margin-top:
        26px;
}

.f1rma-client-popup-block {
    min-width: 0;
}

.f1rma-client-popup-label {
    margin-bottom:
        12px;

    color:
        #6753e3;

    font-size:
        11px;

    font-weight:
        900;

    letter-spacing:
        0.16em;
}

.f1rma-client-popup-list {
    margin:
        0;

    padding-left:
        19px;

    color:
        #514d47;

    font-size:
        14px;

    line-height:
        1.72;
}


/* =========================================================
   CLIENT TYPES
   ========================================================= */

.f1rma-client-types {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        8px;
}

.f1rma-client-type {
    padding:
        8px 11px;

    border-radius:
        30px;

    border:
        1px solid #ded7ce;

    background:
        #ffffff;

    color:
        #4e4942;

    font-size:
        12px;
}


/* =========================================================
   SEO PANEL
   ========================================================= */

.f1rma-seo-panel {
    margin-top:
        28px;

    padding:
        24px;

    border-radius:
        17px;

    background:
        #11151a;

    color:
        #ffffff;
}

.f1rma-seo-title {
    margin-bottom:
        8px;

    color:
        #9a86ff;

    font-size:
        11px;

    font-weight:
        900;

    letter-spacing:
        0.16em;
}

.f1rma-seo-intro {
    margin:
        0 0 17px;

    color:
        rgba(255,255,255,0.70);

    font-size:
        13px;

    line-height:
        1.65;
}

.f1rma-seo-keywords {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        8px;
}

.f1rma-seo-keyword {
    padding:
        8px 11px;

    border:
        1px solid rgba(255,255,255,0.13);

    border-radius:
        30px;

    background:
        rgba(255,255,255,0.05);

    color:
        rgba(255,255,255,0.88);

    font-size:
        11px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {

    .f1rma-clients-visual {
        grid-template-columns:
            1fr 215px 1fr;
    }

    .f1rma-client-side {
        grid-template-columns:
            repeat(3, 122px);

        grid-template-rows:
            repeat(2, 140px);

        gap:
            1px 4px;
    }

    .f1rma-client-hex {
        width:
            122px;

        height:
            140px;
    }

    .f1rma-client-center {
        width:
            215px;

        height:
            245px;
    }

    .f1rma-client-label {
        width:
            94px;

        font-size:
            11px;
    }

}

@media (max-width: 900px) {

    .f1rma-clients-head {
        grid-template-columns:
            1fr;

        gap:
            20px;
    }

    .f1rma-clients-intro {
        padding-top:
            0;
    }

    .f1rma-clients-visual {
        display:
            flex;

        flex-direction:
            column;

        gap:
            25px;
    }

    .f1rma-client-center {
        order:
            -1;
    }

    .f1rma-client-side {
        grid-template-columns:
            repeat(3, 132px);

        grid-template-rows:
            repeat(2, 150px);
    }

    .f1rma-client-hex {
        width:
            132px;

        height:
            150px;
    }

    .f1rma-client-popup-grid {
        grid-template-columns:
            1fr;
    }

}

@media (max-width: 520px) {

    .f1rma-clients-section {
        padding:
            45px 14px 38px;
    }

    .f1rma-clients-title {
        font-size:
            39px;
    }

    .f1rma-client-side {
        grid-template-columns:
            repeat(2, 132px);

        grid-template-rows:
            auto;
    }

    .f1rma-client-modal {
        padding:
            12px;
    }

    .f1rma-client-popup {
        padding:
            24px 19px;
    }

    .f1rma-client-popup-top {
        grid-template-columns:
            1fr;
    }

    .f1rma-client-popup-title {
        font-size:
            30px;
    }

}


/* =========================================================
   F1RMA HEXAGON MICRO-UPDATE
   Scope:
   1. Horizontal readable labels
   2. Heartbeat + button
   3. Centre hex = F1RMA only
   NOTHING ELSE
   ========================================================= */


/* ---------------------------------------------------------
   1. LONG HEXAGON TITLES MOVE HORIZONTALLY
   --------------------------------------------------------- */

.f1rma-client-label {
    display: block !important;

    width: 106px !important;
    max-width: 106px !important;

    overflow: visible !important;

    white-space: nowrap !important;

    text-align: center !important;

    position: relative !important;

    z-index: 4 !important;

    animation:
        f1rmaHexLabelMove
        7s
        ease-in-out
        infinite
        alternate !important;

    will-change: transform !important;
}


/*
   The movement is intentionally modest:
   enough to expose both ends of a long title
   without throwing the text outside the hexagon.
*/
@keyframes f1rmaHexLabelMove {

    0% {
        transform: translateX(22px);
    }

    45% {
        transform: translateX(0);
    }

    55% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-22px);
    }

}


/* Keep the text visually contained by the hex */
.f1rma-client-hex {
    overflow: hidden !important;
}


/* ---------------------------------------------------------
   2. PLUS BUTTON = GLOW + HEARTBEAT
   --------------------------------------------------------- */

.f1rma-client-plus {
    z-index: 8 !important;

    color: #6b56ee !important;

    background:
        rgba(255,255,255,0.96) !important;

    border:
        1px solid rgba(107,86,238,0.35) !important;

    box-shadow:
        0 0 8px rgba(107,86,238,0.35),
        0 0 18px rgba(107,86,238,0.18) !important;

    animation:
        f1rmaPlusHeartbeat 1.55s ease-in-out infinite,
        f1rmaPlusGlow 2.1s ease-in-out infinite alternate !important;

    transform-origin: center center !important;
}


/* Two quick beats, then rest */
@keyframes f1rmaPlusHeartbeat {

    0%,
    34%,
    58%,
    100% {
        transform:
            translateX(-50%)
            scale(1);
    }

    12% {
        transform:
            translateX(-50%)
            scale(1.14);
    }

    22% {
        transform:
            translateX(-50%)
            scale(1);
    }

    42% {
        transform:
            translateX(-50%)
            scale(1.10);
    }

}


/* Soft active glow */
@keyframes f1rmaPlusGlow {

    0% {
        box-shadow:
            0 0 6px rgba(107,86,238,0.28),
            0 0 12px rgba(107,86,238,0.14);
    }

    100% {
        box-shadow:
            0 0 12px rgba(107,86,238,0.58),
            0 0 27px rgba(107,86,238,0.32),
            0 0 42px rgba(107,86,238,0.15);
    }

}


/* Hover makes the active state even clearer */
.f1rma-client-hex:hover .f1rma-client-plus {
    box-shadow:
        0 0 15px rgba(107,86,238,0.75),
        0 0 32px rgba(107,86,238,0.38) !important;
}


/* ---------------------------------------------------------
   3. CENTRAL HEXAGON = F1RMA ONLY
   --------------------------------------------------------- */

/* Remove secondary centre text */
.f1rma-client-center-tagline {
    display: none !important;
}


/* Remove decorative line below F1RMA */
.f1rma-client-center-line {
    display: none !important;
}


/* Centre F1RMA properly */
.f1rma-client-center-inner {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    position: relative !important;

    z-index: 4 !important;
}


.f1rma-client-center-brand {
    margin: 0 !important;

    color: #ffffff !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size:
        clamp(42px, 4vw, 62px) !important;

    font-weight: 400 !important;

    letter-spacing:
        0.14em !important;

    line-height: 1 !important;

    text-align: center !important;
}


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

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

    .f1rma-client-label,
    .f1rma-client-plus {
        animation: none !important;
    }

    .f1rma-client-label {
        white-space: normal !important;

        transform: none !important;
    }

}

