.hero-video-blend {
    overflow: hidden;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0,
            rgba(0, 0, 0, 0.4) 12px,
            #000 32px,
            #000 calc(100% - 32px),
            rgba(0, 0, 0, 0.4) calc(100% - 12px),
            transparent 100%
        ),
        linear-gradient(
            to bottom,
            transparent 0,
            rgba(0, 0, 0, 0.4) 12px,
            #000 32px,
            #000 calc(100% - 48px),
            rgba(0, 0, 0, 0.4) calc(100% - 18px),
            transparent 100%
        );

    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.hero-video-blend video {
    display: block;
    width: 100%;
    height: auto;
}

.gs-card {
    border-radius: 12px;
    overflow: hidden;
    background-clip: padding-box;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.gs-card:hover {
    transform: translateY(-7px);
    border-color: #62D8F5;
    box-shadow: 0 16px 34px rgba(7, 27, 51, 0.13);
}

@media (prefers-reduced-motion: reduce) {
    .gs-card,
    .gs-card:hover {
        transition: none;
        transform: none;
    }
}

@media (min-width: 1025px) {
    .main-navigation .primary-menu-container > ul > li > a {
        position: relative;
    }

    .main-navigation .primary-menu-container > ul > li > a::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 10px;
        left: 0;
        height: 2px;
        background: #0B63CE;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.3s ease;
    }

    .main-navigation .primary-menu-container > ul > li > a:hover::after,
    .main-navigation .primary-menu-container > ul > li.current-menu-item > a::after {
        transform: scaleX(1);
    }
}

/* Navigation pictogram display */
#nav-pictogram-display {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  pointer-events: none;
  transform: translateY(-18px);
}
#nav-pictogram-display .nav-pictogram {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.82);
    filter: blur(4px);
    transition:
        opacity 0.3s ease,
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.3s ease,
        visibility 0s linear 0.35s;
}

#nav-pictogram-display .nav-pictogram img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Home */
body:has(.primary-menu-container > ul > li:nth-child(1):hover)
#nav-pictogram-display .nav-pictogram-home,
body:has(.primary-menu-container > ul > li:nth-child(1):focus-within)
#nav-pictogram-display .nav-pictogram-home,

/* Solutions */
body:has(.primary-menu-container > ul > li:nth-child(2):hover)
#nav-pictogram-display .nav-pictogram-solutions,
body:has(.primary-menu-container > ul > li:nth-child(2):focus-within)
#nav-pictogram-display .nav-pictogram-solutions,

/* About */
body:has(.primary-menu-container > ul > li:nth-child(3):hover)
#nav-pictogram-display .nav-pictogram-about,
body:has(.primary-menu-container > ul > li:nth-child(3):focus-within)
#nav-pictogram-display .nav-pictogram-about,

/* Contact */
body:has(.primary-menu-container > ul > li:nth-child(4):hover)
#nav-pictogram-display .nav-pictogram-contact,
body:has(.primary-menu-container > ul > li:nth-child(4):focus-within)
#nav-pictogram-display .nav-pictogram-contact {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter:
        blur(0)
        drop-shadow(0 0 7px rgba(98, 216, 245, 0.48));
    transition-delay: 0s;
}

@media (max-width: 1024px) {
    #nav-pictogram-display {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #nav-pictogram-display .nav-pictogram {
        transition: none;
        transform: none;
        filter: none;
    }
}

/* Navigation pictogram — subtle futuristic halo */
#nav-pictogram-display {
    position: relative;
    isolation: isolate;
}

/* Soft glass halo */
#nav-pictogram-display::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: calc(50% + 18px);
    left: 50%;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(98, 216, 245, 0.55);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.78) 0%,
            rgba(98, 216, 245, 0.16) 46%,
            rgba(11, 102, 117, 0.05) 68%,
            transparent 74%
        );
    box-shadow:
        0 0 10px rgba(98, 216, 245, 0.20),
        0 0 22px rgba(11, 99, 206, 0.10);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.76);
    transition:
        opacity 0.28s ease,
        transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

/* Keep pictograms above the halo */
#nav-pictogram-display .nav-pictogram {
    z-index: 1;
}

/* Reveal halo when any navigation item is hovered or focused */
body:has(.primary-menu-container > ul > li:hover)
#nav-pictogram-display::before,
body:has(.primary-menu-container > ul > li:focus-within)
#nav-pictogram-display::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: nav-halo-breathe 2.6s ease-in-out infinite;
}

@keyframes nav-halo-breathe {
    0%,
    100% {
        box-shadow:
            0 0 10px rgba(98, 216, 245, 0.20),
            0 0 22px rgba(11, 99, 206, 0.10);
    }

    50% {
        box-shadow:
            0 0 14px rgba(98, 216, 245, 0.30),
            0 0 28px rgba(11, 99, 206, 0.15);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #nav-pictogram-display::before {
        animation: none !important;
        transition: none;
    }
}

/* Refined header background */
#masthead .site-header-row-container-inner {
    background: linear-gradient(
        110deg,
        #FFFFFF 0%,
        #F4FBFD 52%,
        #EAF7FA 100%
    );
    border-bottom: 1px solid rgba(98, 216, 245, 0.45);
    box-shadow: 0 5px 18px rgba(7, 27, 51, 0.06);
}

/* Hero eyebrow: fly in once, then jitter every 6 seconds */
.eyebrow-signal {
    display: inline-block;
    position: relative;
    will-change: transform, filter, opacity;

    animation:
    lightSpeedInLeft 1.6s ease-out 0s 1 both,
    eyebrow-signal-jitter 6s ease-in-out 2.5s infinite !important;
}

@keyframes eyebrow-signal-jitter {
    0%,
    16%,
    100% {
        transform: translate(0, 0);
        filter: blur(0);
    }

    3% {
        transform: translate(3px, 0);
        filter: blur(0.6px);
    }

    6% {
        transform: translate(-3px, 1px);
        filter: blur(1px);
    }

    9% {
        transform: translate(2px, -1px);
        filter: blur(0.8px);
    }

    12% {
        transform: translate(-1px, 0.5px);
        filter: blur(0.4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .eyebrow-signal {
        animation: none !important;
        filter: none;
        transform: none;
    }
}

/* Hero eyebrow font size */
.eyebrow-signal,
.eyebrow-signal * {
    font-size: 16px !important;
}

@media (max-width: 1024px) {
    .eyebrow-signal,
    .eyebrow-signal * {
        font-size: 15px !important;
    }
}

@media (max-width: 767px) {
    .eyebrow-signal,
    .eyebrow-signal * {
        font-size: 13px !important;
    }
}

/* Align navigation pictogram with the lowered halo */
#nav-pictogram-display .nav-pictogram {
    top: 18px !important;
    bottom: -18px !important;
}

/* Site-wide section reveal */
.gs-reveal-ready .gs-section-reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(2px);
    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.75s ease;
}

.gs-reveal-ready .gs-section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .gs-reveal-ready .gs-section-reveal,
    .gs-reveal-ready .gs-section-reveal.is-visible {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

.solutions-hero-jitter {
    transform-origin: center;
    animation: solutions-image-jitter 4s ease-in-out infinite;
}

@keyframes solutions-image-jitter {
    0%, 78%, 100% {
        transform: translate(0, 0);
        box-shadow: 0 0 0 rgba(7, 27, 51, 0);
    }

    84% {
        transform: translate(0, 0);
        box-shadow:
            0 0 28px rgba(11, 99, 206, 0.45),
            0 0 55px rgba(7, 27, 51, 0.35);
    }

    90% {
        transform: translate(2px, 0);
        box-shadow:
            0 0 42px rgba(11, 99, 206, 0.80),
            0 0 85px rgba(7, 27, 51, 0.60);
    }

    92% {
        transform: translate(-2px, 1px);
    }

    94% {
        transform: translate(1px, -1px);
        box-shadow:
            0 0 34px rgba(11, 99, 206, 0.65),
            0 0 70px rgba(7, 27, 51, 0.45);
    }

    96% {
        transform: translate(-1px, 0);
        box-shadow:
            0 0 18px rgba(11, 99, 206, 0.30),
            0 0 40px rgba(7, 27, 51, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .solutions-hero-jitter {
        animation: none;
        transform: none;
        box-shadow: none;
    }
}

.solutions-eyebrow-signal {
    display: inline-block;
    position: relative;
    transform-origin: center;
    will-change: transform, filter, opacity;
    animation:
        solutions-eyebrow-fly-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0s 1 both,
        solutions-eyebrow-jitter 2s ease-in-out 1.3s infinite !important;
}

@keyframes solutions-eyebrow-fly-up {
    0% {
        opacity: 0;
        transform: translateY(28px);
        filter: blur(9px);
    }

    65% {
        opacity: 1;
        transform: translateY(-2px);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes solutions-eyebrow-jitter {
    0%, 65%, 100% {
        transform: translate(0, 0);
        filter: blur(0);
    }

    72% {
        transform: translate(4px, -1px);
        filter: blur(1px);
    }

    78% {
        transform: translate(-4px, 1px);
        filter: blur(1.8px);
    }

    84% {
        transform: translate(3px, -1px);
        filter: blur(1.2px);
    }

    90% {
        transform: translate(-1px, 0);
        filter: blur(0.5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .solutions-eyebrow-signal {
        animation: none !important;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.about-hero-jitter {
    transform-origin: center;
    animation: solutions-image-jitter 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .about-hero-jitter {
        animation: none;
        transform: none;
        box-shadow: none;
    }
}

.about-eyebrow-signal {
    display: inline-block;
    position: relative;
    transform-origin: center;
    will-change: transform, filter, opacity;
    animation:
        solutions-eyebrow-fly-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0s 1 both,
        solutions-eyebrow-jitter 2s ease-in-out 1.3s infinite !important;
}

@media (prefers-reduced-motion: reduce) {
    .about-eyebrow-signal {
        animation: none !important;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (max-width: 767px) {
  .wp-block-jetpack-whatsapp-button .whatsapp-block__button {
    display: inline-block !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 6px 10px 6px 38px !important;
    font-size: 13px !important;
    line-height: 20px !important;
    white-space: nowrap !important;
    background-position: 10px center !important;
    background-size: 20px 20px !important;
  }
}