/* =========================================================
   SUCCESS JAYA GROUP
   GLOBAL APPLICATION CSS
   Version: Optimized
========================================================= */


/* =========================================================
   DESIGN TOKENS
========================================================= */

:root {
    --sjg-primary: #2563eb;
    --sjg-primary-dark: #1d4ed8;
    --sjg-cyan: #06b6d4;

    --sjg-ink: #0f172a;
    --sjg-text: #334155;
    --sjg-muted: #64748b;

    --sjg-border: #e2e8f0;
    --sjg-surface: #ffffff;
    --sjg-surface-soft: #f8fafc;

    --sjg-radius-sm: 0.75rem;
    --sjg-radius-md: 1rem;
    --sjg-radius-lg: 1.5rem;
    --sjg-radius-xl: 2rem;

    --sjg-ease:
        cubic-bezier(.22, 1, .36, 1);

    --sjg-transition-fast:
        180ms var(--sjg-ease);

    --sjg-transition:
        280ms var(--sjg-ease);

    --sjg-transition-slow:
        700ms var(--sjg-ease);
}


/* =========================================================
   RESET / BASE
========================================================= */

[x-cloak] {
    display: none !important;
}


html {
    min-height: 100%;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}


body {
    min-height: 100vh;
    margin: 0;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--sjg-ink);

    background:
        #ffffff;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/*
 * Prevent accidental horizontal overflow from
 * decorative elements / long content.
 */

main,
section,
header,
footer {
    max-width: 100%;
}


/* =========================================================
   MEDIA
========================================================= */

img,
svg,
video,
canvas {
    max-width: 100%;
}


img {
    height: auto;

    vertical-align: middle;

    font-style: italic;

    background-repeat: no-repeat;
    background-size: cover;

    shape-margin: 0.75rem;
}


iframe {
    max-width: 100%;
}


a,
button,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}


button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus {
    outline: none;
}


:focus-visible {
    outline:
        3px solid
        rgba(37, 99, 235, 0.45);

    outline-offset: 3px;
}


::selection {
    background: rgba(37, 99, 235, 0.18);
    color: #395daf;
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav-link {
    position: relative;

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

    font-size: 0.875rem;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color var(--sjg-transition-fast),
        opacity var(--sjg-transition-fast);
}


.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -7px;

    height: 2px;

    border-radius: 9999px;

    background: currentColor;

    transform:
        scaleX(0);

    transform-origin:
        center;

    transition:
        transform var(--sjg-transition);
}


.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-link.active::after {
    transform:
        scaleX(1);
}


.mobile-nav-link {
    display: block;

    border-radius:
        var(--sjg-radius-sm);

    padding:
        0.75rem
        0.875rem;

    color:
        #334155;

    font-size:
        0.95rem;

    font-weight:
        700;

    transition:
        background-color var(--sjg-transition-fast),
        color var(--sjg-transition-fast),
        transform var(--sjg-transition-fast);
}


.mobile-nav-link:hover {
    background:
        #eff6ff;

    color:
        var(--sjg-primary);
}


.mobile-nav-link:active {
    transform:
        scale(.985);
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

.section-eyebrow {
    display: inline-block;

    color:
        var(--sjg-primary);

    font-size:
        0.72rem;

    font-weight:
        800;

    line-height:
        1;

    letter-spacing:
        0.18em;

    text-transform:
        uppercase;
}


.section-title {
    margin: 0;

    color:
        var(--sjg-ink);

    font-size:
        clamp(
            2.15rem,
            4vw,
            3.75rem
        );

    font-weight:
        900;

    line-height:
        1.05;

    letter-spacing:
        -0.04em;

    text-wrap:
        balance;
}


/* =========================================================
   HERO
========================================================= */

.hero-gradient-text {
    color:
        transparent;

    background:
        linear-gradient(
            90deg,
            #60a5fa 0%,
            #67e8f9 50%,
            #93c5fd 100%
        );

    background-clip:
        text;

    -webkit-background-clip:
        text;
}


.hero-grid {
    background-image:
        linear-gradient(
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        );

    background-size:
        64px 64px;

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            rgba(0, 0, 0, .75) 50%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            rgba(0, 0, 0, .75) 50%,
            transparent 100%
        );

    pointer-events:
        none;
}


.hero-orb {
    position:
        absolute;

    border-radius:
        9999px;

    pointer-events:
        none;

    filter:
        blur(80px);

    transform:
        translate3d(0, 0, 0);

    will-change:
        transform;
}


.hero-orb-one {
    top:
        10%;

    right:
        5%;

    width:
        420px;

    height:
        420px;

    background:
        rgba(37, 99, 235, .20);

    animation:
        heroOrbOne
        10s
        ease-in-out
        infinite;
}


.hero-orb-two {
    bottom:
        5%;

    left:
        5%;

    width:
        360px;

    height:
        360px;

    background:
        rgba(6, 182, 212, .10);

    animation:
        heroOrbTwo
        12s
        ease-in-out
        infinite;
}


@keyframes heroOrbOne {

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

    50% {
        transform:
            translate3d(
                -30px,
                30px,
                0
            )
            scale(1.08);
    }
}


@keyframes heroOrbTwo {

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

    50% {
        transform:
            translate3d(
                35px,
                -25px,
                0
            )
            scale(1.10);
    }
}


/* =========================================================
   ABOUT / DECORATIVE GRID
========================================================= */

.about-grid {
    background-image:
        linear-gradient(
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        );

    background-size:
        48px 48px;
}


/* =========================================================
   FLOATING ELEMENTS
========================================================= */

.animate-float,
.animate-float-slow {
    transform:
        translate3d(
            0,
            0,
            0
        );

    will-change:
        transform;
}


.animate-float {
    animation:
        float
        5s
        ease-in-out
        infinite;
}


.animate-float-slow {
    animation:
        float
        7s
        ease-in-out
        infinite
        reverse;
}


@keyframes float {

    0%,
    100% {
        transform:
            translate3d(
                0,
                0,
                0
            );
    }

    50% {
        transform:
            translate3d(
                0,
                -10px,
                0
            );
    }
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

[data-reveal] {
    opacity:
        0;

    transform:
        translate3d(
            0,
            24px,
            0
        );

    transition:
        opacity
            700ms
            var(--sjg-ease),

        transform
            700ms
            var(--sjg-ease);

    will-change:
        opacity,
        transform;
}


[data-reveal].is-visible {
    opacity:
        1;

    transform:
        translate3d(
            0,
            0,
            0
        );

    will-change:
        auto;
}


/*
 * Optional reveal directions.
 */

[data-reveal="fade"] {
    transform:
        none;
}


[data-reveal="fade"].is-visible {
    transform:
        none;
}


[data-reveal="left"] {
    transform:
        translate3d(
            -28px,
            0,
            0
        );
}


[data-reveal="right"] {
    transform:
        translate3d(
            28px,
            0,
            0
        );
}


[data-reveal="scale"] {
    transform:
        scale(.96);
}


[data-reveal="scale"].is-visible {
    transform:
        scale(1);
}


/* =========================================================
   COMMON INTERACTION HELPERS
========================================================= */

.sjg-hover-lift {
    transition:
        transform var(--sjg-transition),
        box-shadow var(--sjg-transition),
        border-color var(--sjg-transition);
}


.sjg-hover-lift:hover {
    transform:
        translate3d(
            0,
            -4px,
            0
        );
}


.sjg-hover-scale {
    transition:
        transform var(--sjg-transition);
}


.sjg-hover-scale:hover {
    transform:
        scale(1.02);
}


/* =========================================================
   BACK TO TOP
========================================================= */

#back-to-top {
    visibility:
        hidden;

    opacity:
        0;

    transform:
        translate3d(
            0,
            16px,
            0
        );

    pointer-events:
        none;

    transition:
        opacity var(--sjg-transition),
        transform var(--sjg-transition),
        visibility var(--sjg-transition);
}


#back-to-top.is-visible {
    visibility:
        visible;

    opacity:
        1;

    transform:
        translate3d(
            0,
            0,
            0
        );

    pointer-events:
        auto;
}


/* =========================================================
   MOBILE MENU BODY LOCK
========================================================= */

body.sjg-menu-open {
    overflow:
        hidden;
}


/* =========================================================
   CONTENT SAFETY
========================================================= */

.prose img,
.rich-content img {
    height:
        auto;

    max-width:
        100%;
}


.prose iframe,
.rich-content iframe {
    max-width:
        100%;
}


.prose table,
.rich-content table {
    display:
        block;

    max-width:
        100%;

    overflow-x:
        auto;
}


/* =========================================================
   LAZY MEDIA
========================================================= */

img[data-src] {
    opacity:
        .01;

    transition:
        opacity
        350ms
        ease;
}


img[data-src].sjg-loaded {
    opacity:
        1;
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.sjg-image-placeholder {
    position:
        relative;

    overflow:
        hidden;

    background:
        linear-gradient(
            110deg,
            #f8fafc 8%,
            #eef2f7 18%,
            #f8fafc 33%
        );

    background-size:
        200% 100%;

    animation:
        sjgShimmer
        1.5s
        linear
        infinite;
}


@keyframes sjgShimmer {
    to {
        background-position:
            -200% 0;
    }
}


/* =========================================================
   PRINT
========================================================= */

@media print {

    *,
    *::before,
    *::after {
        box-shadow:
            none !important;

        text-shadow:
            none !important;
    }


    body {
        color:
            #000;

        background:
            #fff;
    }


    header,
    footer,
    #back-to-top,
    .no-print {
        display:
            none !important;
    }


    a {
        color:
            inherit;

        text-decoration:
            none;
    }
}


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

@media (max-width: 1024px) {

    .hero-orb-one {
        width:
            340px;

        height:
            340px;
    }


    .hero-orb-two {
        width:
            300px;

        height:
            300px;
    }
}


@media (max-width: 640px) {

    .hero-grid {
        background-size:
            48px 48px;
    }


    .hero-orb-one {
        width:
            280px;

        height:
            280px;

        filter:
            blur(65px);
    }


    .hero-orb-two {
        width:
            240px;

        height:
            240px;

        filter:
            blur(60px);
    }


    .section-title {
        letter-spacing:
            -0.035em;
    }


    #back-to-top {
        right:
            1rem;

        bottom:
            1rem;

        width:
            2.75rem;

        height:
            2.75rem;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

    html {
        scroll-behavior:
            auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;
    }


    [data-reveal] {
        opacity:
            1 !important;

        transform:
            none !important;
    }


    .hero-orb,
    .animate-float,
    .animate-float-slow {
        animation:
            none !important;
    }
}
/* =========================================================
   BUSINESS PILLAR IMAGE PAGES
   Bright-blue visual refinement — scoped only to pages that
   opt into the page marker. Existing component structure is
   intentionally preserved.
========================================================= */

.sjg-page-foundation,
.sjg-page-retail-digital,
.sjg-page-logistics-distribution,
.sjg-page-csr {
    --sjg-page-blue: #0ea5e9;
    --sjg-page-blue-dark: #0369a1;
    --sjg-page-blue-soft: #e0f2fe;
    --sjg-page-blue-glow: rgba(14, 165, 233, 0.18);
}

body:has(.sjg-page-foundation),
body:has(.sjg-page-retail-digital),
body:has(.sjg-page-logistics-distribution),
body:has(.sjg-page-csr) {
    background: #f8fbff;
}

body:has(.sjg-page-foundation) .section-eyebrow,
body:has(.sjg-page-retail-digital) .section-eyebrow,
body:has(.sjg-page-logistics-distribution) .section-eyebrow,
body:has(.sjg-page-csr) .section-eyebrow {
    color: #0284c7;
}

body:has(.sjg-page-foundation) .text-sjg-300,
body:has(.sjg-page-retail-digital) .text-sjg-300,
body:has(.sjg-page-logistics-distribution) .text-sjg-300,
body:has(.sjg-page-csr) .text-sjg-300 {
    color: #38bdf8;
}

body:has(.sjg-page-foundation) .text-sjg-400,
body:has(.sjg-page-retail-digital) .text-sjg-400,
body:has(.sjg-page-logistics-distribution) .text-sjg-400,
body:has(.sjg-page-csr) .text-sjg-400 {
    color: #0ea5e9;
}

body:has(.sjg-page-foundation) .bg-sjg-700,
body:has(.sjg-page-retail-digital) .bg-sjg-700,
body:has(.sjg-page-logistics-distribution) .bg-sjg-700,
body:has(.sjg-page-csr) .bg-sjg-700 {
    background-color: #0369a1;
}

body:has(.sjg-page-foundation) .bg-sjg-600\/30,
body:has(.sjg-page-retail-digital) .bg-sjg-600\/30,
body:has(.sjg-page-logistics-distribution) .bg-sjg-600\/30,
body:has(.sjg-page-csr) .bg-sjg-600\/30 {
    background-color: rgba(14, 165, 233, 0.30);
}

body:has(.sjg-page-foundation) .bg-sjg-600\/20,
body:has(.sjg-page-retail-digital) .bg-sjg-600\/20,
body:has(.sjg-page-logistics-distribution) .bg-sjg-600\/20,
body:has(.sjg-page-csr) .bg-sjg-600\/20 {
    background-color: rgba(14, 165, 233, 0.20);
}

body:has(.sjg-page-foundation) a:hover,
body:has(.sjg-page-retail-digital) a:hover,
body:has(.sjg-page-logistics-distribution) a:hover,
body:has(.sjg-page-csr) a:hover {
    color: #0284c7;
}

/* Soft blue atmosphere without changing existing layouts. */
body:has(.sjg-page-foundation) main,
body:has(.sjg-page-retail-digital) main,
body:has(.sjg-page-logistics-distribution) main,
body:has(.sjg-page-csr) main {
    background:
        radial-gradient(circle at 85% 0%, rgba(14, 165, 233, 0.08), transparent 28rem),
        #f8fbff;
}

/* Keep image cards premium: blue glow is subtle and never washes out imagery. */
body:has(.sjg-page-foundation) img,
body:has(.sjg-page-retail-digital) img,
body:has(.sjg-page-logistics-distribution) img,
body:has(.sjg-page-csr) img {
    image-rendering: auto;
}

@media (prefers-reduced-motion: reduce) {
    body:has(.sjg-page-foundation) *,
    body:has(.sjg-page-retail-digital) *,
    body:has(.sjg-page-logistics-distribution) *,
    body:has(.sjg-page-csr) * {
        scroll-behavior: auto !important;
    }
}

/* Stronger blue refinement for the image-led business pages. */
body:has(.sjg-page-foundation) .border-slate-200,
body:has(.sjg-page-retail-digital) .border-slate-200,
body:has(.sjg-page-logistics-distribution) .border-slate-200,
body:has(.sjg-page-csr) .border-slate-200 {
    border-color: #bae6fd;
}

body:has(.sjg-page-foundation) .bg-slate-50,
body:has(.sjg-page-retail-digital) .bg-slate-50,
body:has(.sjg-page-logistics-distribution) .bg-slate-50,
body:has(.sjg-page-csr) .bg-slate-50 {
    background-color: #f0f9ff;
}

body:has(.sjg-page-foundation) .text-slate-400,
body:has(.sjg-page-retail-digital) .text-slate-400,
body:has(.sjg-page-logistics-distribution) .text-slate-400,
body:has(.sjg-page-csr) .text-slate-400 {
    color: #64748b;
}

body:has(.sjg-page-foundation) .text-slate-500,
body:has(.sjg-page-retail-digital) .text-slate-500,
body:has(.sjg-page-logistics-distribution) .text-slate-500,
body:has(.sjg-page-csr) .text-slate-500 {
    color: #475569;
}

/* Blue glass accents remain subtle so photography stays dominant. */
body:has(.sjg-page-foundation) .ring-1,
body:has(.sjg-page-retail-digital) .ring-1,
body:has(.sjg-page-logistics-distribution) .ring-1,
body:has(.sjg-page-csr) .ring-1 {
    --tw-ring-color: rgba(14, 165, 233, 0.18);
}

/* =========================================================
   SWIPER INTEGRATION
   No visual impact unless a template contains a Swiper.
========================================================= */

.swiper {
    width: 100%;
    overflow: hidden;
}

.swiper-wrapper {
    box-sizing: border-box;
}

.swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.swiper-button-next,
.swiper-button-prev {
    -webkit-tap-highlight-color: transparent;
}

.swiper-pagination-bullet {
    transition:
        transform var(--sjg-transition-fast),
        opacity var(--sjg-transition-fast);
}

.swiper-pagination-bullet:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .swiper-wrapper {
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   GLOBAL FRONTEND REFINEMENT
   Shared polish for public pages without requiring template
   changes. Utility classes remain compatible with Tailwind.
========================================================= */

:root {
    --sjg-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --sjg-shadow-md: 0 18px 48px rgba(15, 23, 42, 0.10);
    --sjg-shadow-blue: 0 18px 42px rgba(37, 99, 235, 0.18);
}

html {
    scrollbar-color: #94a3b8 #f1f5f9;
    scrollbar-width: thin;
}

body {
    background:
        radial-gradient(circle at 100% 0, rgba(219, 234, 254, 0.42), transparent 28rem),
        #ffffff;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
    opacity: .32;
}

::selection {
    background: rgba(37, 99, 235, .22);
    color: #0f172a;
}

header {
    transition: background-color var(--sjg-transition), box-shadow var(--sjg-transition),
        backdrop-filter var(--sjg-transition);
}

header .nav-link {
    letter-spacing: .01em;
}

.mobile-nav-link[aria-current="page"] {
    background: #eff6ff;
    color: var(--sjg-primary);
}

main > section:not(.relative):not([class*="bg-"]) {
    position: relative;
}

main > section:not(.relative):not([class*="bg-"])::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(239, 246, 255, .52), transparent 35%);
    opacity: .7;
}

button,
a[class*="rounded-full"],
a[class*="rounded-xl"] {
    transition: transform var(--sjg-transition-fast), box-shadow var(--sjg-transition),
        background-color var(--sjg-transition-fast), border-color var(--sjg-transition-fast),
        color var(--sjg-transition-fast);
}

button:active,
a[class*="rounded-full"]:active,
a[class*="rounded-xl"]:active {
    transform: translateY(1px) scale(.99);
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
    width: 100%;
    border: 1px solid var(--sjg-border);
    border-radius: var(--sjg-radius-sm);
    background: rgba(255, 255, 255, .92);
    color: var(--sjg-ink);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .03);
    transition: border-color var(--sjg-transition-fast), box-shadow var(--sjg-transition-fast),
        background-color var(--sjg-transition-fast);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
    border-color: #60a5fa;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .11), var(--sjg-shadow-sm);
    outline: 0;
}

textarea {
    min-height: 9rem;
    resize: vertical;
}

.sjg-glass {
    border: 1px solid rgba(255, 255, 255, .48);
    background: rgba(255, 255, 255, .68);
    box-shadow: var(--sjg-shadow-sm);
    backdrop-filter: blur(18px);
}

.sjg-card {
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: var(--sjg-radius-lg);
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--sjg-shadow-sm);
    transition: transform var(--sjg-transition), box-shadow var(--sjg-transition),
        border-color var(--sjg-transition);
}

.sjg-card:hover {
    border-color: rgba(147, 197, 253, .9);
    box-shadow: var(--sjg-shadow-blue);
    transform: translateY(-5px);
}

.sjg-image-zoom {
    overflow: hidden;
}

.sjg-image-zoom img {
    transition: transform 800ms var(--sjg-ease), filter 800ms var(--sjg-ease);
}

.sjg-image-zoom:hover img {
    filter: saturate(1.08);
    transform: scale(1.045);
}

.sjg-scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: 3px;
    width: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 0 14px rgba(37, 99, 235, .55);
    transition: width 120ms linear;
}

@media (max-width: 640px) {
    body {
        background: #fff;
    }

    .sjg-card {
        border-radius: var(--sjg-radius-md);
    }

    main > section:not(.relative):not([class*="bg-"])::before {
        opacity: .38;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sjg-card:hover,
    .sjg-image-zoom:hover img {
        transform: none;
    }
}

/* =========================================================
   PAGE MOTION SYSTEM
   Shared editorial motion for About, Business, Brands, Network,
   CSR, Career and Contact pages.
========================================================= */

.sjg-motion-section {
    --sjg-section-index: 0;
    isolation: isolate;
}

.sjg-motion-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, .08), transparent 24rem);
    opacity: 0;
    transform: scale(.94);
    transition: opacity 1.2s var(--sjg-ease), transform 1.2s var(--sjg-ease);
}

.sjg-motion-section.sjg-motion-visible::after {
    opacity: 1;
    transform: scale(1);
}

.sjg-motion-section > div:not(.absolute) {
    position: relative;
    z-index: 1;
}

.sjg-motion-item {
    --sjg-tilt-x: 0deg;
    --sjg-tilt-y: 0deg;
    opacity: 0;
    transform: translate3d(0, 28px, 0) rotateX(var(--sjg-tilt-x)) rotateY(var(--sjg-tilt-y));
    transition:
        opacity 750ms var(--sjg-ease),
        transform 750ms var(--sjg-ease),
        box-shadow 350ms var(--sjg-ease),
        border-color 350ms var(--sjg-ease);
    transition-delay: var(--sjg-item-delay, 0ms);
    will-change: opacity, transform;
}

.sjg-motion-visible .sjg-motion-item {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(var(--sjg-tilt-x)) rotateY(var(--sjg-tilt-y));
}

.sjg-motion-hero > div {
    animation: sjgHeroContent 900ms var(--sjg-ease) both;
}

.sjg-motion-hero [class*="blur-3xl"],
.sjg-motion-hero .hero-orb,
.sjg-motion-hero img {
    transform: translate3d(0, var(--sjg-parallax-y, 0), 0);
    transition: transform 150ms linear;
}

.sjg-page-about .sjg-motion-hero,
.sjg-page-business .sjg-motion-hero,
.sjg-page-brands .sjg-motion-hero,
.sjg-page-network .sjg-motion-hero,
.sjg-page-csr .sjg-motion-hero,
.sjg-page-career .sjg-motion-hero,
.sjg-page-contact .sjg-motion-hero {
    background-image:
        linear-gradient(135deg, rgba(37, 99, 235, .10), transparent 42%),
        radial-gradient(circle at 80% 10%, rgba(6, 182, 212, .12), transparent 24rem);
}

.sjg-page-about .sjg-motion-hero h1,
.sjg-page-business .sjg-motion-hero h1,
.sjg-page-brands .sjg-motion-hero h1,
.sjg-page-network .sjg-motion-hero h1,
.sjg-page-csr .sjg-motion-hero h1,
.sjg-page-career .sjg-motion-hero h1,
.sjg-page-contact .sjg-motion-hero h1 {
    text-wrap: balance;
}

.sjg-page-about .sjg-motion-item:hover,
.sjg-page-business .sjg-motion-item:hover,
.sjg-page-brands .sjg-motion-item:hover,
.sjg-page-network .sjg-motion-item:hover,
.sjg-page-csr .sjg-motion-item:hover,
.sjg-page-career .sjg-motion-item:hover,
.sjg-page-contact .sjg-motion-item:hover {
    border-color: rgba(96, 165, 250, .55);
    box-shadow: 0 20px 55px rgba(30, 64, 175, .13);
}

.sjg-page-about .sjg-motion-item img,
.sjg-page-business .sjg-motion-item img,
.sjg-page-brands .sjg-motion-item img,
.sjg-page-network .sjg-motion-item img,
.sjg-page-csr .sjg-motion-item img,
.sjg-page-career .sjg-motion-item img,
.sjg-page-contact .sjg-motion-item img {
    transition: transform 900ms var(--sjg-ease), filter 500ms var(--sjg-ease);
}

.sjg-page-about .sjg-motion-item:hover img,
.sjg-page-business .sjg-motion-item:hover img,
.sjg-page-brands .sjg-motion-item:hover img,
.sjg-page-network .sjg-motion-item:hover img,
.sjg-page-csr .sjg-motion-item:hover img,
.sjg-page-career .sjg-motion-item:hover img,
.sjg-page-contact .sjg-motion-item:hover img {
    filter: saturate(1.08);
    transform: scale(1.04);
}

.sjg-home-about-visual {
    height: 470px;
}

.sjg-short-hero {
    display: flex;
    flex-direction: column;
}

.sjg-short-hero > div.absolute {
    position: absolute;
}

.sjg-short-hero > .relative.mx-auto {
    flex: 0 0 auto;
    margin-top: 0;
}

.sjg-home-about-visual > img {
    width: 100%;
    height: 100%;
    transition: transform 900ms var(--sjg-ease), filter 700ms var(--sjg-ease);
}

.sjg-home-about-visual:hover > img {
    filter: saturate(1.08);
    transform: scale(1.035);
}

.sjg-home-about .section-title {
    max-width: 34rem;
}

@keyframes sjgHeroContent {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 640px) {
    .sjg-motion-item {
        transform: translate3d(0, 18px, 0);
    }

    .sjg-motion-visible .sjg-motion-item {
        transform: translate3d(0, 0, 0);
    }

    .sjg-home-about-visual {
        height: 390px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sjg-motion-item,
    .sjg-motion-visible .sjg-motion-item,
    .sjg-motion-hero > div,
    .sjg-motion-hero [class*="blur-3xl"],
    .sjg-motion-hero .hero-orb,
    .sjg-motion-hero img {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =========================================================
   HOMEPAGE BRAND MARQUEE
========================================================= */

.sjg-brand-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.sjg-brand-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    min-width: max-content;
    animation: sjgBrandMarquee 34s linear infinite;
    will-change: transform;
}

.sjg-brand-group {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    padding-right: 1rem;
}

.sjg-brand-logo {
    display: grid;
    flex: 0 0 auto;
    width: clamp(9.5rem, 18vw, 13.875rem);
    height: 7.25rem;
    place-items: center;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    transition: transform var(--sjg-transition), border-color var(--sjg-transition),
        box-shadow var(--sjg-transition), background-color var(--sjg-transition);
}

.sjg-brand-logo:hover {
    border-color: rgba(96, 165, 250, .75);
    background: #fff;
    box-shadow: 0 16px 36px rgba(37, 99, 235, .14);
    transform: translateY(-6px);
}

.sjg-brand-logo img {
    width: 82%;
    height: auto;
    max-height: 4.25rem;
    object-fit: contain;
    filter: grayscale(1) contrast(.9);
    opacity: .72;
    transition: filter var(--sjg-transition), opacity var(--sjg-transition), transform var(--sjg-transition);
}

.sjg-brand-logo:hover img {
    filter: grayscale(0) contrast(1);
    opacity: 1;
    transform: scale(1.04);
}

.sjg-brand-marquee:hover .sjg-brand-track,
.sjg-brand-marquee:focus-within .sjg-brand-track {
    animation-play-state: paused;
}

@keyframes sjgBrandMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - .5rem));
    }
}

@media (max-width: 640px) {
    .sjg-brand-marquee {
        mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    }

    .sjg-brand-group {
        gap: .75rem;
        padding-right: .75rem;
    }

    .sjg-brand-logo {
        width: 9.5rem;
        height: 6.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sjg-brand-track {
        animation: none;
    }
}

/* =========================================================
   GLOBAL ADAPTIVE SMOKE GLASS HEADER
   Automatically adapts to the section currently behind it.
========================================================= */

:root {
    --sjg-header-rgb: 15 23 42;
    --sjg-header-alpha: .68;
    --sjg-header-border: 255 255 255;
    --sjg-header-text: 255 255 255;
    --sjg-header-muted: 226 232 240;
    --sjg-header-shadow: 15 23 42;
    --sjg-header-accent: 96 165 250;
}

header.sjg-adaptive-header {
    --sjg-header-text-color: rgb(var(--sjg-header-text));
    --sjg-header-muted-color: rgb(var(--sjg-header-muted));
    position: fixed;
    isolation: isolate;
    background: rgb(var(--sjg-header-rgb) / var(--sjg-header-alpha)) !important;
    border-bottom: 1px solid rgb(var(--sjg-header-border) / .18);
    box-shadow:
        0 12px 40px rgb(var(--sjg-header-shadow) / .16),
        inset 0 1px 0 rgb(255 255 255 / .12) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
    color: var(--sjg-header-text-color);
    transition:
        background-color 500ms var(--sjg-ease),
        border-color 500ms var(--sjg-ease),
        box-shadow 500ms var(--sjg-ease),
        color 350ms var(--sjg-ease),
        backdrop-filter 500ms var(--sjg-ease);
}

header.sjg-adaptive-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 18% 50%,
            rgb(var(--sjg-header-accent) / .16),
            transparent 32%
        ),
        linear-gradient(
            90deg,
            rgb(255 255 255 / .06),
            transparent 42%,
            rgb(255 255 255 / .035)
        );
    opacity: .95;
    transition: background 500ms var(--sjg-ease);
}

header.sjg-adaptive-header::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: -1px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgb(var(--sjg-header-accent) / .42),
        transparent
    );
    opacity: .75;
}

header.sjg-adaptive-header .nav-link {
    color: var(--sjg-header-text-color) !important;
    text-shadow: 0 1px 12px rgb(0 0 0 / .10);
}

header.sjg-adaptive-header .nav-link:hover,
header.sjg-adaptive-header .nav-link.active,
header.sjg-adaptive-header .nav-link[aria-current="page"] {
    color: var(--sjg-header-text-color) !important;
}

header.sjg-adaptive-header > div {
    position: relative;
}

header.sjg-adaptive-header nav:not(#mobile-navigation) {
    padding: .28rem;
    border: 1px solid rgb(var(--sjg-header-border) / .16);
    border-radius: 9999px;
    background: rgb(var(--sjg-header-rgb) / .20);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / .09),
        0 8px 30px rgb(0 0 0 / .08);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

header.sjg-adaptive-header nav:not(#mobile-navigation) .nav-link {
    padding: .78rem 1rem;
    border-radius: 9999px;
    transition:
        background-color 300ms var(--sjg-ease),
        color 300ms var(--sjg-ease),
        transform 300ms var(--sjg-ease);
}

header.sjg-adaptive-header nav:not(#mobile-navigation) .nav-link:hover,
header.sjg-adaptive-header nav:not(#mobile-navigation) .nav-link.active,
header.sjg-adaptive-header nav:not(#mobile-navigation) .nav-link[aria-current="page"] {
    background: rgb(var(--sjg-header-border) / .14);
    transform: translateY(-1px);
}

header.sjg-adaptive-header .sjg-header-contact,
header.sjg-adaptive-header a[class*="bg-blue-600"] {
    background: rgb(var(--sjg-header-accent) / .88) !important;
    color: #fff !important;
    border-color: rgb(255 255 255 / .18) !important;
    box-shadow:
        0 10px 28px rgb(var(--sjg-header-accent) / .28),
        inset 0 1px 0 rgb(255 255 255 / .18);
}

header.sjg-adaptive-header .sjg-header-contact:hover,
header.sjg-adaptive-header a[class*="bg-blue-600"]:hover {
    background: rgb(var(--sjg-header-accent) / 1) !important;
}

header.sjg-adaptive-header img[alt*="Success Jaya" i] {
    transition: filter 450ms var(--sjg-ease), opacity 350ms ease;
}

header.sjg-adaptive-header.sjg-header-light img[alt*="Success Jaya" i] {
    filter: none;
}

header.sjg-adaptive-header.sjg-header-dark img[alt*="Success Jaya" i] {
    filter: brightness(0) invert(1);
}

header.sjg-adaptive-header.sjg-header-light {
    --sjg-header-alpha: .72;
    --sjg-header-border: 255 255 255;
    --sjg-header-text: 15 23 42;
    --sjg-header-muted: 51 65 85;
    --sjg-header-shadow: 15 23 42;
}

header.sjg-adaptive-header.sjg-header-dark {
    --sjg-header-alpha: .62;
    --sjg-header-border: 255 255 255;
    --sjg-header-text: 255 255 255;
    --sjg-header-muted: 226 232 240;
    --sjg-header-shadow: 0 0 0;
}

header.sjg-adaptive-header.sjg-header-colored {
    --sjg-header-alpha: .66;
    --sjg-header-border: 255 255 255;
}

@media (max-width: 1023px) {
    header.sjg-adaptive-header nav:not(#mobile-navigation) {
        border: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    header.sjg-adaptive-header #mobile-navigation {
        margin-top: .5rem;
        border: 1px solid rgb(var(--sjg-header-border) / .18);
        border-radius: 1rem;
        background: rgb(var(--sjg-header-rgb) / .84);
        box-shadow: 0 18px 48px rgb(0 0 0 / .18);
        -webkit-backdrop-filter: blur(22px) saturate(145%);
        backdrop-filter: blur(22px) saturate(145%);
    }

    header.sjg-adaptive-header .mobile-nav-link {
        color: var(--sjg-header-text-color) !important;
        background: transparent;
    }

    header.sjg-adaptive-header .mobile-nav-link:hover,
    header.sjg-adaptive-header .mobile-nav-link[aria-current="page"] {
        color: var(--sjg-header-text-color) !important;
        background: rgb(var(--sjg-header-border) / .12);
    }
}

@media (prefers-reduced-motion: reduce) {
    header.sjg-adaptive-header,
    header.sjg-adaptive-header::before,
    header.sjg-adaptive-header::after,
    header.sjg-adaptive-header img {
        transition: none !important;
    }
}


/* =========================================================
   FINAL STABILITY OVERRIDES
   Preserve the existing visual system while preventing
   content from becoming permanently invisible.
========================================================= */

/* Critical content must remain visible even if an observer
   is interrupted by BFCache, slow loading, or browser quirks. */
.sjg-motion-hero [data-reveal] {
    opacity: 1;
    transform: none;
}

/* Keep the header as a transparent smoke glass layer at all
   scroll positions. The adaptive JS supplies the RGB values. */
header.sjg-adaptive-header {
    background: rgb(var(--sjg-header-rgb, 15 23 42) / var(--sjg-header-alpha, .62)) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
}

/* Mobile menu trigger follows the same adaptive smoke tone. */
header.sjg-adaptive-header > div > button[aria-controls="mobile-navigation"] {
    color: var(--sjg-header-text-color, #fff) !important;
    background: rgb(var(--sjg-header-rgb, 15 23 42) / .56) !important;
    border-color: rgb(var(--sjg-header-border, 255 255 255) / .18) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
}

/* About page: in-page history waterfall. */
.sjg-history-detail {
    margin-top: 3rem;
    border-top: 1px solid rgb(148 163 184 / .22);
    padding-top: 2rem;
}

.sjg-history-detail > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    list-style: none;
    border-radius: 9999px;
    background: #0f172a;
    color: #fff;
    padding: .85rem 1.25rem;
    font-size: .875rem;
    font-weight: 800;
    transition: transform .25s ease, background-color .25s ease;
}

.sjg-history-detail > summary::-webkit-details-marker {
    display: none;
}

.sjg-history-detail > summary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.sjg-history-waterfall {
    position: relative;
    margin: 3rem auto 0;
    max-width: 64rem;
    padding: .5rem 0 1rem;
}

.sjg-history-waterfall::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgb(37 99 235 / .15), rgb(37 99 235 / .7), rgb(37 99 235 / .15));
}

.sjg-history-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 3rem 1fr;
    align-items: center;
    min-height: 9rem;
}

.sjg-history-item:nth-child(odd) .sjg-history-card {
    grid-column: 1;
    margin-right: 2rem;
}

.sjg-history-item:nth-child(even) .sjg-history-card {
    grid-column: 3;
    margin-left: 2rem;
}

.sjg-history-dot {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    z-index: 2;
    width: .9rem;
    height: .9rem;
    border-radius: 9999px;
    background: #2563eb;
    border: 4px solid #eff6ff;
    box-shadow: 0 0 0 1px rgb(37 99 235 / .25);
}

.sjg-history-card {
    border: 1px solid rgb(226 232 240);
    border-radius: 1.5rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgb(15 23 42 / .06);
}

.sjg-history-year {
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .16em;
    color: #2563eb;
}

@media (max-width: 767px) {
    .sjg-history-waterfall {
        padding-left: 1rem;
    }
    .sjg-history-waterfall::before {
        left: .65rem;
        transform: none;
    }
    .sjg-history-item {
        display: block;
        min-height: 0;
        padding: 0 0 1.25rem 1.5rem;
    }
    .sjg-history-item:nth-child(odd) .sjg-history-card,
    .sjg-history-item:nth-child(even) .sjg-history-card {
        margin: 0;
    }
    .sjg-history-dot {
        position: absolute;
        left: .65rem;
        top: 1.65rem;
        transform: translateX(-50%);
    }
}

/* =========================================================
   RESPONSIVE NAVIGATION REFINEMENT
   Success Jaya master navigation
========================================================= */

.sjg-mobile-menu {
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.sjg-mobile-menu::-webkit-scrollbar {
    width: 5px;
}

.sjg-mobile-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, .35);
}

.sjg-mobile-toggle {
    -webkit-tap-highlight-color: transparent;
}

.sjg-mobile-toggle:active {
    transform: scale(.94);
}

.sjg-mobile-contact {
    margin-top: .65rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid rgba(37, 99, 235, .12);
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(37, 99, 235, .20);
}

.sjg-mobile-contact:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

@media (max-width: 639px) {
    .sjg-mobile-menu {
        max-height: calc(100dvh - 4.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sjg-mobile-toggle,
    .sjg-mobile-contact {
        transition: none !important;
    }
}

/* Contact action inside mobile navigation (all static page variants) */
.sjg-mobile-menu a.mobile-nav-link[href*="contact"] {
    margin-top: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid rgba(37, 99, 235, .12);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, .20);
}

.sjg-mobile-menu a.mobile-nav-link[href*="contact"]:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .sjg-mobile-menu nav {
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }

    .sjg-mobile-menu .mobile-nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}
