html {
    min-height: 100%;
    background: #05050a;
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background: transparent !important;
}

#eclipsar-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #010811;
}

#eclipsar-background svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: eclipsar-effects-glow 5s ease-in-out infinite;
}

#eclipsar-background .eclipsar-bg__stop--edge {
    animation: eclipsar-effects-edge 5s ease-in-out infinite;
}

#eclipsar-background .eclipsar-bg__stop--center {
    animation: eclipsar-effects-center 5s ease-in-out infinite;
}

#eclipsar-background .eclipsar-bg__vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 8, 17, .16), rgba(1, 8, 17, .48));
}

@keyframes eclipsar-effects-center {
    0%, 100% { stop-color: #00eeff; }
    50% { stop-color: #2fb6ff; }
}

@keyframes eclipsar-effects-edge {
    0%, 100% { stop-color: #0a9cff; }
    50% { stop-color: #00e6ff; }
}

@keyframes eclipsar-effects-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: .86; }
}

body > header,
body > .site-header {
    background: rgba(5, 5, 10, .72) !important;
    border-bottom: 1px solid rgba(0, 229, 255, .2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

body > main {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(0, 229, 255, .18);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(9, 16, 26, .74), rgba(5, 8, 15, .62));
    box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 24px 70px rgba(0, 0, 0, .24);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

body > main section + section {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

body > .page {
    position: relative;
    z-index: 1;
}

body > .page > .card {
    background: rgba(7, 12, 21, .72) !important;
    border: 1px solid rgba(0, 229, 255, .2) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 24px 70px rgba(0, 0, 0, .3) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

body > .page .section {
    background: transparent;
}

body > .page .note,
body > main .note {
    background: rgba(0, 229, 255, .07);
    border-color: rgba(0, 229, 255, .24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body > .page .hero {
    transition: filter 2s ease, transform 2s cubic-bezier(.16,.84,.44,1);
    filter: grayscale(1);
    transform: scale(1);
}

body > .page .hero:hover {
    filter: grayscale(0);
    transform: scale(1.04);
}

body img:not(:where(#lightbox-img)) {
    opacity: .82;
}

body img:not(#lightbox-img) {
    filter: grayscale(1);
    transition-property: opacity, filter, transform;
    transition-duration: 2s;
    transition-timing-function: ease;
}

body .hero img,
body .gallery-item img.loaded {
    opacity: .82;
}

body .hero::before,
body .hero::after {
    pointer-events: none;
}

body .hero img.loaded {
    opacity: .82;
}

body img:not(#lightbox-img):hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.04);
}

body .hero img:hover {
    transform: scale(1.06);
}

body > main .gallery-item {
    background: rgba(5, 10, 18, .58);
    border-color: rgba(0, 229, 255, .16);
    box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

body > main .gallery-item:hover {
    border-color: rgba(0, 229, 255, .48);
    box-shadow: 0 0 24px rgba(0, 229, 255, .12);
}

body > main .btn,
body > .page .button {
    border: 1px solid rgba(0, 229, 255, .35);
    background: rgba(0, 229, 255, .08);
    color: #00e5ff;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body > main .btn-primary,
body > .page .button-primary {
    background: rgba(0, 229, 255, .88);
    color: #001014;
}

body > main .btn,
body > .page .button,
body > .site-footer a {
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

body > main .btn:hover,
body > .page .button:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, .7);
    box-shadow: 0 0 24px rgba(0, 229, 255, .16);
}

body > .site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(0, 229, 255, .16);
    background: linear-gradient(180deg, rgba(5, 8, 15, 0), rgba(5, 8, 15, .72) 35%);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

@media (max-width: 640px) {
    body > main {
        margin: 1rem;
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #eclipsar-background svg {
        animation: none;
    }

    body img:not(#lightbox-img) {
        transition-duration: .01ms;
    }

    body > .page .hero {
        transition-duration: .01ms;
    }
}
