/* =========================================================
   ARS GLOBAL RETURN SYSTEM
   UNIVERSAL NAVIGATION
   FINAL LOCKED DESIGN
   ========================================================= */

.ars-return-system {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 620px;

    padding: 105px 32px 82px;

    overflow: hidden;

    color: #f5f1e8;

    background:
        radial-gradient(
            ellipse at 18% 50%,
            rgba(57,191,255,.11),
            transparent 34%
        ),
        radial-gradient(
            ellipse at 82% 50%,
            rgba(137,94,50,.15),
            transparent 36%
        ),
        radial-gradient(
            ellipse at 50% 50%,
            rgba(208,170,99,.055),
            transparent 52%
        ),
        linear-gradient(
            135deg,
            #020304 0%,
            #07111a 30%,
            #0a0b0c 52%,
            #100c08 74%,
            #020304 100%
        );

    perspective: 1600px;
}


/* =========================================================
   BACKGROUND ATMOSPHERE
   ========================================================= */

.ars-return-bg {
    position: absolute;
    inset: -25%;

    background:
        radial-gradient(
            circle at 25% 50%,
            rgba(57,191,255,.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 75% 50%,
            rgba(137,94,50,.14),
            transparent 32%
        );

    filter: blur(45px);

    pointer-events: none;
    z-index: -3;

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


/* subtle horizontal architecture */

.ars-return-system::before {
    content: "";

    position: absolute;

    left: 8%;
    right: 8%;
    top: 50%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(57,191,255,.18),
            rgba(208,170,99,.40),
            rgba(255,242,194,.22),
            rgba(137,94,50,.36),
            rgba(57,191,255,.15),
            transparent
        );

    opacity: .65;

    pointer-events: none;
    z-index: -1;
}


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

.ars-return-header {
    position: relative;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 30px;

    max-width: 1250px;

    margin: 0 auto 62px;

    text-align: center;

    z-index: 5;
}

.ars-return-header span,
.ars-return-header small {
    color: rgba(121,221,255,.60);

    font-size: 9px;

    letter-spacing: .28em;

    text-transform: uppercase;
}

.ars-return-header span {
    text-align: left;
}

.ars-return-header small {
    text-align: right;
}

.ars-return-header strong {
    color: #fff2c2;

    font-size: 12px;

    font-weight: 500;

    letter-spacing: .30em;

    white-space: nowrap;

    text-shadow:
        0 0 12px rgba(255,242,194,.12),
        0 0 28px rgba(57,191,255,.06);
}


/* =========================================================
   GATEWAY STAGE
   ========================================================= */

.ars-return-stage {
    position: relative;

    display: grid;

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

    gap: 38px;

    max-width: 1050px;

    margin: 0 auto;

    perspective: 1800px;

    z-index: 5;
}


/* =========================================================
   GATEWAY
   ========================================================= */

.ars-return-gateway {
    position: relative;

    display: block;

    min-height: 285px;

    text-decoration: none;

    color: inherit;

    transform-style: preserve-3d;

    transform:
        perspective(1200px)
        translateZ(0);

    transition:
        transform .7s cubic-bezier(.2,.8,.2,1),
        filter .7s ease;
}


/* =========================================================
   GATEWAY GLOW
   ========================================================= */

.ars-return-gateway-glow {
    position: absolute;

    left: 12%;
    right: 12%;

    top: 16%;
    bottom: 10%;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(57,191,255,.20),
            rgba(57,191,255,.08) 35%,
            transparent 72%
        );

    filter: blur(25px);

    opacity: .65;

    pointer-events: none;

    transition:
        opacity .7s ease,
        transform .8s ease;
}


/* =========================================================
   GATEWAY FRAME
   ========================================================= */

.ars-return-gateway-frame {
    position: relative;

    height: 100%;

    min-height: 285px;

    padding: 1px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(121,221,255,.55),
            rgba(57,191,255,.16) 28%,
            rgba(137,94,50,.55) 68%,
            rgba(208,170,99,.42)
        );

    box-shadow:
        0 28px 65px rgba(0,0,0,.70),
        0 0 35px rgba(57,191,255,.08),
        0 0 45px rgba(137,94,50,.09);

    transform:
        translateZ(12px);
}


/* =========================================================
   INNER PANEL
   ========================================================= */

.ars-return-gateway-core {
    position: relative;

    height: 100%;
    min-height: 283px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;

    border-radius: 27px;

    background:
        linear-gradient(
            145deg,
            rgba(57,191,255,.10),
            rgba(8,17,24,.94) 38%,
            rgba(13,12,10,.96) 63%,
            rgba(67,43,24,.48)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,242,194,.25),
        inset 0 0 45px rgba(57,191,255,.035),
        inset -20px 0 50px rgba(137,94,50,.055);

    backdrop-filter:
        blur(20px)
        saturate(145%);

    -webkit-backdrop-filter:
        blur(20px)
        saturate(145%);

    transform-style: preserve-3d;
}


/* =========================================================
   TOP LIGHT
   ========================================================= */

.ars-return-gateway-core::before {
    content: "";

    position: absolute;

    left: 8%;
    right: 8%;

    top: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(57,191,255,.65),
            #79ddff,
            #fff2c2,
            #d0aa63,
            rgba(137,94,50,.55),
            transparent
        );

    box-shadow:
        0 0 8px rgba(57,191,255,.50),
        0 0 20px rgba(208,170,99,.20);

    opacity: .75;

    animation:
        arsReturnEdgePulse 6s ease-in-out infinite;
}


/* =========================================================
   INDEX
   ========================================================= */

.ars-return-index {
    position: absolute;

    top: 22px;
    left: 25px;

    color: rgba(121,221,255,.55);

    font-size: 9px;

    letter-spacing: .20em;

    transform:
        translateZ(30px);
}


/* =========================================================
   ICON SYSTEM
   ========================================================= */

.ars-return-icon {
    position: relative;

    width: 58px;
    height: 58px;

    margin-bottom: 22px;

    border-radius: 18px;

    border:
        1px solid rgba(121,221,255,.35);

    background:
        linear-gradient(
            145deg,
            rgba(57,191,255,.14),
            rgba(10,20,28,.85),
            rgba(137,94,50,.20)
        );

    box-shadow:
        0 12px 25px rgba(0,0,0,.45),
        0 0 18px rgba(57,191,255,.12),
        inset 0 1px 0 rgba(255,242,194,.22);

    transform:
        translateZ(38px);

    transition:
        transform .6s ease,
        box-shadow .6s ease;
}


/* HOME ICON */

.ars-home-icon::before {
    content: "";

    position: absolute;

    width: 22px;
    height: 17px;

    left: 17px;
    top: 22px;

    border:
        2px solid #79ddff;

    border-top: 0;

    box-shadow:
        0 0 9px rgba(57,191,255,.45);
}

.ars-home-icon span {
    position: absolute;

    width: 18px;
    height: 18px;

    left: 18px;
    top: 14px;

    border-left: 2px solid #d0aa63;
    border-top: 2px solid #d0aa63;

    transform: rotate(45deg);

    filter:
        drop-shadow(0 0 5px rgba(208,170,99,.45));
}


/* HERITAGE ICON */

.ars-heritage-icon::before {
    content: "ARS";

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%,-50%)
        translateZ(5px);

    color: #fff2c2;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: .10em;

    text-shadow:
        0 0 9px rgba(255,242,194,.35);
}

.ars-heritage-icon span {
    position: absolute;

    inset: 10px;

    border:
        1px solid rgba(208,170,99,.45);

    border-radius: 50%;

    box-shadow:
        0 0 12px rgba(137,94,50,.15);
}


/* =========================================================
   TEXT
   ========================================================= */

.ars-return-gateway-core > small {
    color: rgba(121,221,255,.68);

    font-size: 9px;

    letter-spacing: .30em;

    margin-bottom: 9px;

    transform:
        translateZ(28px);
}

.ars-return-gateway-core > strong {
    color: #fff2c2;

    font-size: clamp(20px, 2.2vw, 28px);

    font-weight: 500;

    letter-spacing: .055em;

    transform:
        translateZ(34px);

    text-shadow:
        0 0 12px rgba(255,242,194,.12);
}

.ars-return-gateway-core > em {
    margin-top: 9px;

    color: rgba(217,210,198,.58);

    font-size: 9px;

    font-style: normal;

    letter-spacing: .22em;

    transform:
        translateZ(25px);
}


/* =========================================================
   ENERGY EDGE
   ========================================================= */

.ars-return-energy {
    position: absolute;

    left: 18%;
    right: 18%;

    bottom: -5px;

    height: 20px;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(57,191,255,.22),
            rgba(137,94,50,.10),
            transparent 72%
        );

    filter: blur(8px);

    opacity: .55;

    pointer-events: none;

    animation:
        arsReturnEnergy 5s ease-in-out infinite;
}


/* =========================================================
   HOVER
   ========================================================= */

.ars-return-gateway:hover {
    transform:
        perspective(1200px)
        translateY(-12px)
        translateZ(30px)
        rotateX(1deg)
        rotateY(-1deg);
}

.ars-return-gateway:hover .ars-return-gateway-glow {
    opacity: 1;

    transform:
        scale(1.12);
}

.ars-return-gateway:hover .ars-return-gateway-frame {
    box-shadow:
        0 40px 85px rgba(0,0,0,.78),
        0 0 42px rgba(57,191,255,.18),
        0 0 62px rgba(137,94,50,.13),
        inset 0 1px 0 rgba(255,242,194,.35);
}

.ars-return-gateway:hover .ars-return-icon {
    transform:
        translateZ(55px)
        rotateZ(-3deg);

    box-shadow:
        0 16px 32px rgba(0,0,0,.48),
        0 0 25px rgba(57,191,255,.25),
        0 0 35px rgba(208,170,99,.12);
}


/* =========================================================
   CENTRAL CONNECTION
   ========================================================= */

.ars-return-link {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    width: min(680px, 70%);

    margin: -1px auto 0;

    z-index: 8;
}

.ars-return-link-line {
    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(57,191,255,.50),
            rgba(208,170,99,.65)
        );

    box-shadow:
        0 0 8px rgba(57,191,255,.18);
}

.ars-return-link-line:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(208,170,99,.65),
            rgba(57,191,255,.50),
            transparent
        );
}

.ars-return-link-core {
    width: 8px;
    height: 8px;

    flex: 0 0 auto;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #fff2c2 0%,
            #d0aa63 40%,
            #79ddff 72%,
            transparent 100%
        );

    box-shadow:
        0 0 8px rgba(255,242,194,.85),
        0 0 18px rgba(208,170,99,.55),
        0 0 28px rgba(57,191,255,.35);

    animation:
        arsReturnCorePulse 4s ease-in-out infinite;
}


/* =========================================================
   BOTTOM SIGNATURE
   ========================================================= */

.ars-return-footer-label {
    display: flex;

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

    gap: 14px;

    margin-top: 45px;

    color: rgba(217,210,198,.48);

    font-size: 8px;

    letter-spacing: .27em;

    text-transform: uppercase;
}

.ars-return-footer-label span:first-child {
    color: #d0aa63;

    text-shadow:
        0 0 8px rgba(208,170,99,.30);
}

.ars-return-footer-label i {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #79ddff;

    box-shadow:
        0 0 8px rgba(57,191,255,.55);
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes arsReturnAtmosphere {

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

        opacity: .60;
    }

    50% {
        transform:
            scale(1.08)
            translate3d(1%,-.5%,0);

        opacity: .95;
    }
}


@keyframes arsReturnEdgePulse {

    0%,100% {
        opacity: .42;
        transform: scaleX(.76);
    }

    50% {
        opacity: .95;
        transform: scaleX(1);
    }
}


@keyframes arsReturnEnergy {

    0%,100% {
        opacity: .32;
        transform: scaleX(.82);
    }

    50% {
        opacity: .75;
        transform: scaleX(1);
    }
}


@keyframes arsReturnCorePulse {

    0%,100% {
        transform: scale(.82);
        opacity: .65;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .ars-return-header {
        grid-template-columns: 1fr;

        gap: 9px;
    }

    .ars-return-header span,
    .ars-return-header small {
        text-align: center;
    }

    .ars-return-header strong {
        white-space: normal;
    }

    .ars-return-stage {
        gap: 20px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ars-return-system {
        min-height: auto;

        padding:
            78px
            18px
            62px;
    }

    .ars-return-header {
        margin-bottom: 38px;
    }

    .ars-return-header strong {
        font-size: 10px;
        letter-spacing: .20em;
    }

    .ars-return-stage {
        grid-template-columns: 1fr;

        gap: 22px;

        max-width: 430px;
    }

    .ars-return-gateway,
    .ars-return-gateway-frame,
    .ars-return-gateway-core {
        min-height: 245px;
    }

    .ars-return-gateway-core {
        min-height: 243px;
    }

    .ars-return-link {
        width: 70%;

        margin-top: 20px;
    }

    .ars-return-footer-label {
        flex-wrap: wrap;

        gap: 9px;

        line-height: 2;
    }

}


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

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

    .ars-return-bg,
    .ars-return-gateway-core::before,
    .ars-return-energy,
    .ars-return-link-core {
        animation: none !important;
    }

}











/* =========================================================
   ARS RETURN SYSTEM — METALLIC LIGHT PASS
   + HOME ICON ROOF REFINEMENT
   ========================================================= */

/* --- Elegant bronze / gold reflection passing over cards --- */

.ars-return-gateway {
    overflow: hidden;
}

.ars-return-gateway::after {
    content: "";
    position: absolute;

    top: -25%;
    left: -45%;

    width: 28%;
    height: 150%;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(137,94,50,.08) 25%,
            rgba(208,170,99,.38) 45%,
            rgba(255,242,194,.72) 50%,
            rgba(208,170,99,.34) 56%,
            rgba(137,94,50,.08) 75%,
            transparent 100%
        );

    filter: blur(7px);

    transform: rotate(12deg);
    opacity: 0;

    pointer-events: none;
    z-index: 20;

    animation:
        arsReturnMetallicSweep 8.5s
        cubic-bezier(.45,0,.25,1)
        infinite;
}

@keyframes arsReturnMetallicSweep {

    0%, 72% {
        left: -45%;
        opacity: 0;
    }

    77% {
        opacity: .18;
    }

    84% {
        opacity: .72;
    }

    91% {
        left: 125%;
        opacity: .22;
    }

    96%, 100% {
        left: 145%;
        opacity: 0;
    }
}


/* --- Home icon: perfectly balanced roof --- */

.ars-return-home .ars-home-icon span {
    width: 21px !important;
    height: 21px !important;

    left: 18px !important;
    top: 12px !important;

    border-left: 2px solid #d0aa63 !important;
    border-top: 2px solid #d0aa63 !important;

    transform:
        rotate(45deg)
        scale(.92) !important;

    transform-origin: center center !important;

    filter:
        drop-shadow(0 0 4px rgba(208,170,99,.55))
        drop-shadow(0 0 9px rgba(255,242,194,.16)) !important;
}


/* Keep the house body optically centered beneath the roof */

.ars-return-home .ars-home-icon::before {
    width: 22px !important;
    height: 17px !important;

    left: 17px !important;
    top: 22px !important;

    border: 2px solid #79ddff !important;
    border-top: 0 !important;

    box-shadow:
        0 0 9px rgba(57,191,255,.45) !important;
}


/* Slightly stronger reflection on hover */

.ars-return-gateway:hover::after {
    animation-duration: 5.5s;
}
