/* First-paint reveal: this rule exists only after the hero stylesheet has loaded. */
html.bymr-css-loading .bymr-section.mr-engineering-hero { visibility: visible !important; }

/* Scoped reset: safe inside an Elementor HTML widget */
.mr-engineering-hero,
.mr-engineering-hero * {
    box-sizing: border-box;
}

.mr-engineering-hero h2,
.mr-engineering-hero p {
    margin-block-start: 0;
    margin-block-end: 0;
}

.mr-engineering-hero a {
    -webkit-tap-highlight-color: transparent;
}

.mr-engineering-hero img,
.mr-engineering-hero video,
.mr-engineering-hero svg {
    max-width: 100%;
}



/* =========================================================
   COMPLETE SECTION
========================================================= */

.mr-engineering-hero {
    position: relative;
    width: 100%;
    height: clamp(720px, 43.25vw, 875px);
    min-height: 720px;
    overflow: hidden;
    isolation: isolate;

    background-color: #020403;
    background-image: none;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;

    font-family: "Inter", sans-serif;
}

.mr-engineering-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.06) 39%,
            rgba(0, 0, 0, 0) 62%
        );
}


/* =========================================================
   CONTENT CONTAINER
========================================================= */

.mr-engineering-inner {
    position: relative;
    width: min(1282px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    z-index: 10;
}


/* =========================================================
   LEFT COPY
========================================================= */

.mr-engineering-copy {
    position: absolute;
    left: 0;
    top: 18.5%;
    width: 780px;
}


/* =========================================================
   EXPERIENCE BADGE
========================================================= */

.mr-experience-badge {
    margin-bottom: 20px;
    width: max-content;
    min-height: 34px;
    padding: 0 15px;

    display: inline-flex;
    align-items: center;
    gap: 11px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;

    background: rgba(29, 29, 28, 0.72);

    color: rgba(240, 240, 240, 0.86);

    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 0.18em;

    white-space: nowrap;
}

.mr-badge-dot {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;

    background: #11aeb9;

    box-shadow:
        0 0 7px rgba(17, 174, 185, 0.48);
}


/* =========================================================
   HEADING
========================================================= */

.mr-engineering-title {
    margin: 19px 0 0;
    padding: 0;

    color: #f8f8f8;

    font-family: "Inter", sans-serif;
    font-size: clamp(52px, 3.67vw, 64px);
    font-weight: 400;
    line-height: 1.245;
    letter-spacing: -0.035em;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.mr-description-wrap {
    position: relative;
    margin-top: 23px;
}

.mr-engineering-description {
    width: 665px;
    margin: 0;
    padding: 0;

    color: rgba(224, 224, 224, 0.78);

    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 31px;
    letter-spacing: 0.025em;
}


/* =========================================================
   SMALL AVATAR AT LEFT
========================================================= */

.mr-avatar {
    position: absolute;

    width: 48px;
    height: 48px;

    left: -53px;
    top: 31px;

    box-sizing: border-box;
    overflow: hidden;

    border: 3px solid #ffffff;
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(78, 188, 210, 0.45),
            rgba(221, 101, 183, 0.5)
        );

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.12);
}

.mr-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mr-avatar img[src="YOUR-AVATAR-URL"] {
    opacity: 0;
}


/* =========================================================
   BUTTONS
========================================================= */

.mr-engineering-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 42px;
}

.mr-btn {
    height: 51px;

    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    text-decoration: none;

    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.045em;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.mr-btn-outline {
    width: 245px;

    color: rgba(239, 239, 239, 0.86);

    background: rgba(0, 0, 0, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 3px;
}

.mr-btn-white {
    width: 207px;

    color: #151515;
    background: #f8f8f8;

    border: 1px solid #f8f8f8;
    border-radius: 3px;
}

.mr-btn-arrow {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    transform: translateY(-1px);
}

.mr-btn-arrow img {
    display: block;
    width: auto;
    height: auto;
}

.mr-btn-outline:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.mr-btn-white:hover {
    background: #ffffff;
}


/* =========================================================
   RIGHT NETWORK CANVAS
========================================================= */

.mr-network-visual {
    position: absolute;

    width: 760px;
    height: 756px;

    top: 50%;
    right: 0;

    transform: translateY(-50%);
    transform-origin: right center;

    z-index: 4;

    pointer-events: none;
}


/* =========================================================
   MASKED CIRCUIT VIDEO
========================================================= */

.mr-network-video-mask {
    position: absolute;

    width: 735px;
    height: 704px;

    right: 0;
    top: 12px;

    z-index: 1;

    -webkit-mask-image:
        url("https://bymr.yashomparkash.com/wp-content/uploads/2026/10/Mask-group-1.png");

    mask-image:
        url("https://bymr.yashomparkash.com/wp-content/uploads/2026/10/Mask-group-1.png");

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center center;
    mask-position: center center;

    -webkit-mask-size: contain;
    mask-size: contain;
}

.mr-network-video {
    position: absolute;

    width: 100%;
    height: 100%;

    left: 0;
    top: 0;

    display: block;

    object-fit: cover;
    object-position: center center;

    opacity: 0.58;

    filter:
        brightness(1.14)
        contrast(1.02)
        saturate(0.8);

    pointer-events: none;
}


/* =========================================================
   CONNECTION LINE
========================================================= */

.mr-network-lines {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 3;

    overflow: visible;

    pointer-events: none;

    filter:
        drop-shadow(0 0 2px rgba(211, 86, 174, 0.2));
}


/* =========================================================
   GLOWING PINK NETWORK NODES
========================================================= */

.mr-network-node {
    position: absolute;

    width: 38px;
    height: 38px;

    transform: translate(-50%, -50%);

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

    z-index: 5;

    pointer-events: none;
}

/* same original positions */
.mr-node-1 {
    left: 236px;
    top: 207px;
}

.mr-node-2 {
    left: 125px;
    top: 369px;
}

.mr-node-3 {
    left: 264px;
    top: 502px;
}


/* Soft glow behind each node */
.mr-node-outer-glow {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 58px;
    height: 58px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(239, 127, 201, 0.28) 0%,
            rgba(229, 95, 184, 0.14) 32%,
            rgba(218, 77, 171, 0.06) 55%,
            transparent 74%
        );

    filter: blur(3px);

    animation: mrNodeOuterGlow 2.6s ease-in-out infinite;

    z-index: 0;
}


/* Animated expanding ring */
.mr-node-pulse-ring {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 34px;
    height: 34px;

    transform: translate(-50%, -50%) scale(1);

    box-sizing: border-box;

    border: 1px solid rgba(236, 119, 198, 0.52);
    border-radius: 50%;

    box-shadow:
        0 0 8px rgba(232, 100, 189, 0.2);

    animation: mrNodePulseRing 2.6s ease-out infinite;

    z-index: 1;
}


/* Fixed outer ring around center */
.mr-node-ring {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 32px;
    height: 32px;

    transform: translate(-50%, -50%);

    box-sizing: border-box;

    border: 1px solid rgba(241, 135, 207, 0.54);
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(234, 111, 194, 0.18) 0%,
            rgba(234, 111, 194, 0.075) 55%,
            transparent 74%
        );

    box-shadow:
        0 0 9px rgba(230, 88, 181, 0.22),
        inset 0 0 8px rgba(240, 137, 208, 0.09);

    z-index: 2;
}


/* Bright central pink orb */
.mr-node-center {
    position: relative;

    width: 20px;
    height: 20px;

    flex: 0 0 20px;

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

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 45% 40%,
            #f4a3d8 0%,
            #e986c9 38%,
            #df6eba 100%
        );

    box-shadow:
        0 0 5px rgba(255, 181, 226, 0.95),
        0 0 10px rgba(238, 120, 201, 0.85),
        0 0 18px rgba(222, 83, 176, 0.62),
        0 0 30px rgba(222, 83, 176, 0.28);

    animation: mrNodeCenterGlow 2.1s ease-in-out infinite;

    z-index: 3;
}


/* Small white/pink center dot */
.mr-node-center-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #ffd8ef;

    box-shadow:
        0 0 3px #ffffff,
        0 0 7px rgba(255, 216, 239, 0.95);
}


/* offset animations so all three don't pulse together */
.mr-node-2 .mr-node-outer-glow,
.mr-node-2 .mr-node-pulse-ring,
.mr-node-2 .mr-node-center {
    animation-delay: -0.75s;
}

.mr-node-3 .mr-node-outer-glow,
.mr-node-3 .mr-node-pulse-ring,
.mr-node-3 .mr-node-center {
    animation-delay: -1.4s;
}


@keyframes mrNodeOuterGlow {

    0%,
    100% {
        opacity: 0.58;

        transform:
            translate(-50%, -50%)
            scale(0.92);
    }

    50% {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1.14);
    }

}


@keyframes mrNodePulseRing {

    0% {
        opacity: 0.68;

        transform:
            translate(-50%, -50%)
            scale(0.92);
    }

    65% {
        opacity: 0.18;

        transform:
            translate(-50%, -50%)
            scale(1.45);
    }

    100% {
        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(1.55);
    }

}


@keyframes mrNodeCenterGlow {

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

        box-shadow:
            0 0 5px rgba(255, 181, 226, 0.9),
            0 0 10px rgba(238, 120, 201, 0.76),
            0 0 18px rgba(222, 83, 176, 0.5),
            0 0 28px rgba(222, 83, 176, 0.23);
    }

    50% {
        transform: scale(1.08);

        box-shadow:
            0 0 7px rgba(255, 207, 238, 1),
            0 0 13px rgba(244, 137, 210, 1),
            0 0 23px rgba(229, 91, 184, 0.8),
            0 0 38px rgba(222, 83, 176, 0.42);
    }

}


/* =========================================================
   FEATURE CARDS
========================================================= */

.mr-feature-card {
    position: absolute;

    min-height: 40px;

    display: inline-flex;
    align-items: center;

    gap: 12px;

    padding: 5px 11px;

    box-sizing: border-box;

    border: 1px solid #c6539e;
    border-radius: 4px;

    background:
        linear-gradient(
            180deg,
            rgba(31, 35, 45, 0.96),
            rgba(25, 28, 38, 0.96)
        );

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.18);

    z-index: 6;

    white-space: nowrap;
}

.mr-feature-text {
    display: block;

    font-family: "Inter", sans-serif;

    font-weight: 400;
    font-style: normal;

    font-size: 16px;
    line-height: 27px;
    letter-spacing: 0.04em;

    text-transform: capitalize;
    vertical-align: middle;

    color: rgba(232, 233, 237, 0.9);
}

.mr-feature-icon {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    display: block;

    object-fit: contain;
}


/* exact card positions from previous version */
.mr-feature-1 {
    left: 270px;
    top: 187px;
    min-width: 243px;
}

.mr-feature-2 {
    left: 159px;
    top: 348px;
    min-width: 245px;
}

.mr-feature-3 {
    left: 298px;
    top: 481px;
    min-width: 196px;
}


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

@media (max-width: 1500px) {

    .mr-engineering-inner {
        width: min(1180px, calc(100% - 80px));
    }

    .mr-network-visual {
        right: -50px;
    }

}


@media (max-width: 1300px) {

    .mr-engineering-copy {
        width: 650px;
    }

    .mr-engineering-title {
        font-size: 52px;
    }

    .mr-engineering-description {
        width: 580px;
        font-size: 18px;
        line-height: 29px;
    }

    .mr-desktop-br {
        display: none;
    }

    .mr-network-visual {
        right: -125px;

        transform:
            translateY(-50%)
            scale(0.88);
    }

}


@media (max-width: 1024px) {

    .mr-engineering-hero {
        height: auto;
        min-height: 950px;
        background-position: 58% center;
    }

    .mr-engineering-inner {
        width: calc(100% - 48px);
    }

    .mr-engineering-copy {
        top: 80px;
        width: 100%;
    }

    .mr-engineering-title {
        font-size: clamp(42px, 6vw, 54px);
    }

    .mr-engineering-description {
        width: min(650px, 88%);
        font-size: 18px;
    }

    .mr-network-visual {
        top: auto;
        bottom: -45px;
        right: -20px;

        transform: scale(0.8);

        transform-origin: right bottom;
    }

}


@media (max-width: 767px) {

    .mr-engineering-hero {
        min-height: 850px;
        background-position: 65% center;
    }

    .mr-engineering-inner {
        width: calc(100% - 36px);
    }

    .mr-engineering-copy {
        top: 48px;
    }

    .mr-experience-badge {
        min-height: 30px;
        padding: 0 12px;
        font-size: 10px;
        line-height: 28px;
        letter-spacing: 0.12em;
    }

    .mr-engineering-title {
        margin-top: 17px;
        font-size: 39px;
        line-height: 1.15;
    }

    .mr-engineering-description {
        width: 100%;
        font-size: 16px;
        line-height: 26px;
    }

    .mr-avatar {
        display: none;
    }

    .mr-engineering-buttons {
        margin-top: 28px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .mr-btn {
        height: 48px;
        font-size: 13px;
    }

    .mr-btn-outline {
        width: 190px;
    }

    .mr-btn-white {
        width: 160px;
    }

    .mr-network-visual {
        width: 760px;
        height: 756px;

        right: -155px;
        bottom: -90px;

        transform: scale(0.61);

        transform-origin: right bottom;
    }

}


@media (max-width: 480px) {

    .mr-engineering-hero {
        min-height: 800px;
    }

    .mr-engineering-title {
        font-size: 34px;
    }

    .mr-engineering-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .mr-btn-outline,
    .mr-btn-white {
        width: 190px;
    }

    .mr-network-visual {
        right: -205px;
        bottom: -105px;

        transform: scale(0.52);
    }

}


/* If the user prefers reduced motion, keep a visible glow without pulsing */
@media (prefers-reduced-motion: reduce) {

    .mr-node-outer-glow,
    .mr-node-pulse-ring,
    .mr-node-center {
        animation: none;
    }

    .mr-node-pulse-ring {
        opacity: 0.35;
        transform: translate(-50%, -50%) scale(1.18);
    }

}


/* =========================================================
   MOBILE SCREENSHOT MATCH
   Target reference: 565px CSS viewport / 884px tall capture.
   The network/video is fully disabled below 768px.
========================================================= */
.mr-title-mobile,
.mr-description-mobile {
    display: none;
}

.mr-title-desktop,
.mr-description-desktop {
    display: inline;
}

@media (max-width: 767px) {

    .mr-engineering-hero {
        width: 100%;
        height: auto;
        min-height: 884px;
        overflow: hidden;

        background-color: #141414;
        background-image:
            radial-gradient(
                ellipse 86% 48% at 84% -7%,
                rgba(63, 119, 120, 0.62) 0%,
                rgba(29, 82, 84, 0.52) 34%,
                rgba(12, 45, 44, 0.31) 58%,
                rgba(10, 25, 24, 0.08) 76%,
                rgba(20, 20, 20, 0) 88%
            ),
            linear-gradient(
                180deg,
                #0c0d0b 0%,
                #101110 30%,
                #121212 49%,
                #141414 72%,
                #141414 100%
            );
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-position: center top;
    }

    .mr-engineering-hero::before {
        display: none;
    }

    .mr-engineering-inner {
        width: 100%;
        height: auto;
        min-height: 884px;
        margin: 0;
        padding: 82px 0 77px;
    }

    .mr-engineering-copy {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mr-experience-badge {
        width: min(444px, calc(100% - 50px));
        height: 41px;
        min-height: 41px;
        margin: 0 auto;
        padding: 0 13px;
        justify-content: flex-start;
        gap: 14px;

        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        background: rgba(64, 68, 67, 0.28);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);

        color: rgba(241, 241, 241, 0.86);
        font-size: clamp(11.5px, 3.19vw, 18px);
        font-weight: 400;
        line-height: 39px;
        letter-spacing: 0.22em;
        white-space: nowrap;
    }

    .mr-badge-dot {
        width: 7px;
        height: 7px;
        flex: 0 0 7px;
        background: #14a8b7;
        box-shadow: 0 0 7px rgba(20, 168, 183, 0.36);
    }

    .mr-title-desktop,
    .mr-description-desktop {
        display: none;
    }

    .mr-title-mobile,
    .mr-description-mobile {
        display: inline;
    }

    .mr-engineering-title {
        width: 100%;
        margin: 27px 0 0;
        padding: 0 12px;
        color: #ffffff;
        font-size: clamp(40px, 9.91vw, 56px);
        font-weight: 400;
        line-height: 1.285714;
        letter-spacing: -0.027em;
        text-align: center;
    }

    .mr-description-wrap {
        width: 100%;
        margin-top: 29px;
    }

    .mr-engineering-description {
        width: 100%;
        margin: 0;
        padding: 0 10px;
        color: rgba(228, 228, 228, 0.84);
        font-size: clamp(18px, 4.78vw, 27px);
        font-weight: 400;
        line-height: 1.666667;
        letter-spacing: 0.018em;
        text-align: center;
    }

    .mr-avatar {
        display: none !important;
    }

    .mr-engineering-buttons {
        width: min(515px, calc(100% - 50px));
        margin: 27px auto 0;
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 15px;
    }

    .mr-btn,
    .mr-btn-outline,
    .mr-btn-white {
        width: 100%;
        height: 72px;
        min-height: 72px;
        margin: 0;
        border-radius: 4px;
        font-size: clamp(17px, 4.25vw, 24px);
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.075em;
        gap: 10px;
    }

    .mr-btn-white {
        color: #111111;
        background: #ffffff;
        border: 1px solid #ffffff;
    }

    .mr-btn-outline {
        color: rgba(239, 239, 239, 0.84);
        background: rgba(20, 20, 20, 0.28);
        border: 1px solid rgba(255, 255, 255, 0.27);
    }

    .mr-btn-arrow {
        transform: translateY(-1px);
    }

    .mr-btn-arrow img {
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

    /* Mobile reference contains no network/video artwork. */
    .mr-network-visual {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .mr-engineering-hero,
    .mr-engineering-inner {
        min-height: 800px;
    }

    .mr-engineering-inner {
        padding-top: 62px;
        padding-bottom: 55px;
    }

    .mr-engineering-title {
        margin-top: 24px;
        font-size: 40px;
        line-height: 1.22;
    }

    .mr-description-wrap {
        margin-top: 24px;
    }

    .mr-engineering-description {
        font-size: 18px;
        line-height: 1.55;
    }

    .mr-engineering-buttons {
        margin-top: 24px;
    }

    .mr-btn,
    .mr-btn-outline,
    .mr-btn-white {
        height: 62px;
        min-height: 62px;
        font-size: 17px;
    }
}
