:root {
    color-scheme: dark;
    --gold: #d4af37;
    --gold-light: #fff0a8;
    --background: #040404;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
form {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--background);
}

.landing {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 48%, rgba(173, 126, 24, .15), transparent 30%),
        radial-gradient(circle at 50% 120%, rgba(212, 175, 55, .08), transparent 42%),
        linear-gradient(145deg, #020202 0%, #0a0906 55%, #020202 100%);
}

.landing::before {
    position: absolute;
    z-index: -2;
    width: min(70vw, 48rem);
    aspect-ratio: 1;
    border: 1px solid rgba(212, 175, 55, .08);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 6rem rgba(212, 175, 55, .05), inset 0 0 6rem rgba(212, 175, 55, .03);
    animation: breathe 5s ease-in-out infinite;
}

.landing__ambient {
    position: absolute;
    z-index: -1;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    box-shadow:
        -34vw -28vh 0 1px rgba(255, 228, 139, .22),
        29vw -32vh 0 1px rgba(212, 175, 55, .15),
        -39vw 24vh 0 rgba(255, 240, 168, .18),
        36vw 31vh 0 1px rgba(212, 175, 55, .12),
        12vw -42vh 0 rgba(255, 255, 255, .15),
        -18vw 39vh 0 rgba(255, 228, 139, .13);
    animation: stars 4s ease-in-out infinite alternate;
}

.brand {
    position: relative;
    display: grid;
    width: clamp(15rem, 38vw, 27rem);
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    outline: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.brand__logo {
    position: relative;
    z-index: 2;
    display: block;
    width: 82%;
    height: auto;
    filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, .6));
    transform: translateZ(0);
    transition: filter .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
    animation: reveal 1.25s cubic-bezier(.2, .8, .2, 1) both;
}

.brand__halo {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, .14), rgba(212, 175, 55, 0) 68%);
    filter: blur(1rem);
    opacity: .7;
    transition: opacity .55s ease, transform .55s ease;
    animation: halo 3.8s ease-in-out infinite;
}

.brand__orbit {
    position: absolute;
    inset: 3%;
    border: 1px solid rgba(212, 175, 55, .12);
    border-radius: 50%;
    opacity: .75;
    animation: rotate 14s linear infinite;
}

.brand__orbit::before {
    position: absolute;
    top: 8%;
    left: 19%;
    width: .42rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 .8rem .2rem rgba(212, 175, 55, .65);
    content: "";
}

.brand:hover .brand__logo,
.brand:focus-visible .brand__logo {
    filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, .6)) drop-shadow(0 0 1.25rem rgba(212, 175, 55, .35));
    transform: scale(1.045);
}

.brand:hover .brand__halo,
.brand:focus-visible .brand__halo {
    opacity: 1;
    transform: scale(1.12);
}

.brand:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 240, 168, .8);
}

@keyframes reveal {
    from { opacity: 0; transform: scale(.88) translateY(.8rem); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

@keyframes halo {
    0%, 100% { opacity: .52; transform: scale(.95); }
    50% { opacity: .85; transform: scale(1.08); }
}

@keyframes breathe {
    0%, 100% { opacity: .45; transform: scale(.96); }
    50% { opacity: .9; transform: scale(1.04); }
}

@keyframes stars {
    from { opacity: .45; }
    to { opacity: 1; }
}

@media (max-width: 37.5rem) {
    .brand { width: min(82vw, 22rem); }
    .landing::before { width: 94vw; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
