* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    background: #2d2b27;
}

body {
    min-height: 100svh;
    overflow-x: hidden;
    background: transparent;
    font-family: Helvetica, Arial, sans-serif;
}

img {
    user-select: none;
    -webkit-user-drag: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tree-background,
.tree-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.tree-background {
    z-index: 0;
    background-image: url("/images/lar-bg.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.95;
    transition: opacity 800ms ease;
}

body.is-ready .tree-background {
    opacity: 1;
}

.tree-grain {
    inset: -12px;
    z-index: 1;
    background-repeat: repeat;
    background-size: 96px 96px;
    opacity: 0.065;
}

.tree-navigation {
    position: fixed;
    left: clamp(24px, 2.4vw, 44px);
    top: clamp(24px, 2.4vw, 44px);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(10px, 1.15vw, 16px);
    width: max-content;
}

.tree-home-logo {
    display: block;
    line-height: 0;
    opacity: 0;
    transform: translate3d(-14px, 0, 0);
    transition:
        opacity 700ms ease 120ms,
        transform 850ms cubic-bezier(0.22, 1, 0.36, 1) 120ms,
        filter 180ms ease;
}

body.is-ready .tree-home-logo {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.tree-home-logo:hover,
.tree-home-logo:focus-visible {
    filter: brightness(0.76);
}

.tree-home-logo:focus-visible,
.music-link:focus-visible,
.tree-card:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.82);
    outline-offset: 6px;
}

.tree-home-logo img {
    display: block;
    width: clamp(118px, 9.6vw, 154px);
    height: auto;
}

.route-back {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: -5px;
    line-height: 0;
    opacity: 0;
    transform: translate3d(-8px, 0, 0);
    transition:
        opacity 650ms ease 250ms,
        transform 820ms cubic-bezier(0.22, 1, 0.36, 1) 250ms,
        filter 180ms ease;
}

body.is-ready .route-back {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.route-back:hover,
.route-back:focus-visible {
    filter: brightness(1.12);
}

.route-back:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.82);
    outline-offset: 4px;
}

.route-back__triangle {
    display: block;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 11px solid rgba(255, 255, 255, 0.94);
    filter: none;
    transform-origin: 58% 50%;
    animation: routeBackPulse 13.5s cubic-bezier(0.42, 0, 0.28, 1) 3.2s infinite;
}

@keyframes routeBackPulse {
    0%, 72% {
        transform: rotate(0deg) scale(1);
        filter: none;
    }
    78% {
        transform: rotate(48deg) scale(1.002);
        filter:
            drop-shadow(0 0 1px rgba(255, 255, 255, 0.25))
            drop-shadow(0 0 3px rgba(228, 166, 96, 0.14));
    }
    88% {
        transform: rotate(228deg) scale(1.008);
        filter:
            drop-shadow(0 0 2px rgba(255, 255, 255, 0.48))
            drop-shadow(0 0 6px rgba(228, 166, 96, 0.32));
    }
    97% {
        transform: rotate(360deg) scale(1.012);
        filter:
            drop-shadow(0 0 2px rgba(255, 255, 255, 0.62))
            drop-shadow(0 0 7px rgba(228, 166, 96, 0.42));
    }
    100% {
        transform: rotate(360deg) scale(1);
        filter: none;
    }
}

.tree-shell {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100svh;
    padding:
        max(32px, env(safe-area-inset-top, 0px))
        max(24px, env(safe-area-inset-right, 0px))
        max(32px, env(safe-area-inset-bottom, 0px))
        max(24px, env(safe-area-inset-left, 0px));
}

.tree-shell--hub {
    gap: clamp(38px, 6vh, 64px);
}

.tree-shell--single {
    gap: clamp(22px, 3.8vh, 39px);
}

.tree-menu {
    display: grid;
    gap: clamp(12px, 1.5vh, 17px);
    width: max-content;
    max-width: min(88vw, 620px);
}

.tree-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.95);
    color: #2d2b27;
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(18px, 1.55vw, 23px);
    font-weight: 400;
    line-height: 1.16;
    text-align: center;
    text-decoration: none;
    text-wrap: balance;
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    transition:
        opacity 580ms ease,
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color 180ms ease,
        color 180ms ease,
        filter 180ms ease;
}

body.is-ready .tree-card {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

body.is-ready .tree-card:nth-child(1) {
    transition-delay: 150ms;
}

body.is-ready .tree-card:nth-child(2) {
    transition-delay: 215ms;
}

.tree-card:hover,
.tree-card:focus-visible {
    filter: brightness(0.88);
    transform: translate3d(0, -2px, 0);
}

.release-artwork {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(47.6vw, 392px);
}

.cover-frame {
    display: block;
    line-height: 0;
    opacity: 0;
    transform: translate3d(0, 7px, 0) scale(0.997);
    transition:
        opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready .cover-frame {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.svet-cover {
    display: block;
    width: 100%;
    height: auto;
}

.svet-title-text {
    width: 108%;
    margin-top: clamp(11px, 1.8vh, 18px);
    color: #fff;
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(13px, 1.15vw, 17px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0;
    text-align: center;
    text-wrap: balance;
    opacity: 0;
    transform: translate3d(0, 5px, 0);
    transition:
        opacity 700ms ease 120ms,
        transform 820ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
}

body.is-ready .svet-title-text {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.music-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(57.4vw, 455px);
}

.music-link {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    opacity: 0;
    transform: translate3d(0, 7px, 0);
    transition:
        opacity 500ms ease,
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 160ms ease;
}

body.is-ready .music-link {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

body.is-ready .music-link:nth-child(1) { transition-delay: 270ms; }
body.is-ready .music-link:nth-child(2) { transition-delay: 315ms; }
body.is-ready .music-link:nth-child(3) { transition-delay: 360ms; }
body.is-ready .music-link:nth-child(4) { transition-delay: 405ms; }
body.is-ready .music-link:nth-child(5) { transition-delay: 450ms; }
body.is-ready .music-link:nth-child(6) { transition-delay: 495ms; }

.music-link:hover,
.music-link:focus-visible {
    filter: brightness(0.72);
    transform: translate3d(0, -2px, 0);
}

.music-link img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
}

.music-link--tidal img { width: clamp(28px, 4.05vw, 38px); }
.music-link--bandcamp img { width: clamp(27px, 3.92vw, 36px); }
.music-link--spotify img { width: clamp(29px, 4.2vw, 40px); }
.music-link--youtube img { width: clamp(36px, 5.1vw, 48px); }
.music-link--apple img { width: clamp(28px, 4vw, 38px); }
.music-link--amazon img { width: clamp(38px, 5.4vw, 50px); }

@media (max-width: 700px) {
    .tree-grain {
        opacity: 0.065;
        background-size: 96px 96px;
    }

    .tree-navigation {
        position: absolute;
        left: 0;
        top: max(22px, env(safe-area-inset-top, 0px));
        align-items: center;
        width: 100%;
        gap: 0;
        transform: none;
    }

    .tree-home-logo {
        transform: translate3d(-14px, -10px, 0);
    }

    body.is-ready .tree-home-logo {
        transform: translate3d(0, 0, 0);
    }

    .tree-home-logo img {
        width: clamp(112px, 34vw, 148px);
    }

    .route-back {
        position: fixed;
        left: max(18px, env(safe-area-inset-left, 0px));
        bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 16px));
        width: 30px;
        height: 30px;
        margin-left: 0;
    }

    .route-back__triangle {
        border-top-width: 6px;
        border-bottom-width: 6px;
        border-right-width: 10px;
    }

    .tree-shell {
        padding-top: max(116px, calc(env(safe-area-inset-top, 0px) + 106px));
        padding-left: max(18px, env(safe-area-inset-left, 0px));
        padding-right: max(18px, env(safe-area-inset-right, 0px));
    }

    .tree-shell--hub {
        gap: clamp(32px, 5vh, 46px);
    }

    .tree-shell--single {
        gap: clamp(28px, 5vh, 44px);
    }

    .tree-menu {
        gap: 12px;
        width: max-content;
        max-width: min(90vw, 520px);
    }

    .tree-card {
        min-height: 0;
        padding: 10px 16px;
        font-size: clamp(17px, 5vw, 21px);
    }

    .release-artwork {
        width: min(82vw, 460px);
    }

    .svet-title-text {
        width: 107%;
        margin-top: clamp(14px, 2.2vh, 22px);
        font-size: clamp(15px, 4.5vw, 19px);
    }

    .music-links {
        width: min(86vw, 480px);
    }

    .music-link--tidal img { width: clamp(30px, 8.7vw, 42px); }
    .music-link--bandcamp img { width: clamp(29px, 8.4vw, 40px); }
    .music-link--spotify img { width: clamp(31px, 9vw, 43px); }
    .music-link--youtube img { width: clamp(39px, 11.2vw, 53px); }
    .music-link--apple img { width: clamp(30px, 8.7vw, 42px); }
    .music-link--amazon img { width: clamp(40px, 11.6vw, 55px); }
}

@media (max-height: 620px) and (min-width: 701px) {
    .tree-shell {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .tree-shell--single {
        gap: 20px;
    }

    .release-artwork {
        width: min(36.4vh, 273px);
    }

    .svet-title-text {
        margin-top: 8px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cover-frame,
    .tree-card,
    .tree-home-logo,
    .route-back,
    .svet-title-text,
    .music-link,
    .tree-background {
        transition-duration: 1ms;
    }

    .route-back__triangle {
        animation: none;
    }
}
