/* Standalone hero styles intentionally load after the main bundle. */
.hero-section {
    position: relative;
    overflow: hidden;
    background: #f4f8ff;
}

.hero-layout {
    position: relative;
    z-index: 10;
    display: grid;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
    min-height: 700px;
    padding-top: clamp(4rem, 7vw, 6rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.hero-layout-with-photo {
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
}

.hero-layout-without-photo {
    grid-template-columns: minmax(0, 820px);
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-photo-stage {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    min-height: 580px;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.hero-photo-stage::before {
    content: '';
    position: absolute;
    z-index: -2;
    top: auto;
    right: 2%;
    bottom: 2%;
    left: 2%;
    height: 22%;
    transform: none;
    border: 0;
    border-radius: 50%;
    background: rgb(8 102 255 / .18);
    box-shadow: none;
    filter: blur(42px);
    animation: hero-halo-breathe 18s ease-in-out infinite;
}

.hero-photo-stage::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: auto;
    right: auto;
    bottom: 2.5%;
    left: 50%;
    width: 74%;
    height: 24px;
    transform: translateX(-50%);
    border: 0;
    border-radius: 50%;
    background: rgb(15 23 42 / .14);
    box-shadow: none;
    filter: blur(15px);
}

.hero-ring-system {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 49%;
    width: min(92%, 550px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 7deg, rgb(8 102 255 / .94) 0 5deg, transparent 5deg 12deg),
        radial-gradient(circle, transparent 0 47%, rgb(8 102 255 / .24) 47.4% 48.2%, transparent 48.7% 55%, rgb(14 165 233 / .28) 55.4% 56.4%, transparent 57%);
    -webkit-mask: radial-gradient(circle, transparent 0 40%, #000 40.5% 66%, transparent 66.5%);
    mask: radial-gradient(circle, transparent 0 40%, #000 40.5% 66%, transparent 66.5%);
    opacity: .9;
    animation: hero-ring-breathe 20s ease-in-out infinite;
}

.hero-ring-system::before,
.hero-ring-system::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgb(8 102 255 / .36);
}

.hero-ring-system::before {
    inset: 12%;
    transform: rotate(18deg);
}

.hero-ring-system::after {
    inset: 2%;
    border-width: 1px;
    border-color: rgb(14 165 233 / .24);
    transform: rotate(-11deg);
}

.hero-photo-picture {
    --hero-photo-rest-y: .5rem;
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    justify-content: center;
    transform: translate3d(0, var(--hero-photo-rest-y), 0);
    animation: hero-photo-reveal 1.8s cubic-bezier(.2,.72,.25,1) both;
}

.hero-photo-picture::after {
    content: '';
    position: absolute;
    z-index: 3;
    right: 3%;
    bottom: 0;
    left: 3%;
    height: 9%;
    pointer-events: none;
    background: linear-gradient(to top, #f4f8ff 4%, rgb(244 248 255 / .72) 38%, transparent 100%);
}

.hero-photo {
    display: block;
    width: 100%;
    max-width: 590px;
    max-height: 610px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 24px 24px rgb(15 23 42 / .18));
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
    transform-origin: center bottom;
    will-change: transform;
    animation: hero-photo-float 16s ease-in-out 1.8s infinite;
}

@keyframes hero-photo-reveal {
    from { opacity: 0; transform: translate3d(0, 3rem, 0) scale(.975); }
    to { opacity: 1; transform: translate3d(0, var(--hero-photo-rest-y), 0) scale(1); }
}

@keyframes hero-photo-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -.3rem, 0); }
}

@keyframes hero-ring-breathe {
    0%, 100% { opacity: .72; transform: translate(-50%, -50%) scale(.985); }
    50% { opacity: .94; transform: translate(-50%, -50%) scale(1.018); }
}

@keyframes hero-halo-breathe {
    0%, 100% { opacity: .7; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 1023px) {
    .hero-layout-with-photo {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-layout {
        min-height: auto;
    }

    .hero-photo-stage {
        min-height: 490px;
        margin-top: 1rem;
    }

    .hero-photo-picture {
        --hero-photo-rest-y: .25rem;
    }

    .hero-photo {
        max-height: 500px;
    }
}

@media (max-width: 560px) {
    .hero-layout {
        gap: 2rem;
        padding-top: 3.25rem;
        padding-bottom: 2.5rem;
    }

    .hero-photo-stage {
        min-height: 370px;
        margin-inline: -.5rem;
    }

    .hero-photo-picture {
        --hero-photo-rest-y: 0rem;
    }

    .hero-ring-system {
        top: 52%;
        width: min(105%, 390px);
    }

    .hero-photo {
        max-height: 390px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-photo-stage::before,
    .hero-ring-system,
    .hero-photo-picture,
    .hero-photo { animation: none !important; }
    .hero-ring-system { opacity: .9; transform: translate(-50%, -50%); }
    .hero-photo-picture { opacity: 1; transform: translate3d(0, var(--hero-photo-rest-y), 0); }
    .hero-photo { transform: none; }
}
