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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #eee;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Sans-serif;
    overflow-x: hidden;
    color: #111827;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.viewport-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    perspective: 1200px;
    z-index: 10;
}

.card-item {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 80dvw;
    max-height: 74dvh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgb(0 0 0 / .12), 0 4px 12px rgb(0 0 0 / .05);
    background: #fff;
    padding: 10px;
    will-change: transform, opacity;
    pointer-events: auto;
    border: 1px solid rgb(255 255 255 / .9);
    opacity: 0;
    visibility: hidden;
}

@media (min-width:640px) {
    .card-item {
        padding: 12px;
        border-radius: 20px;
    }
}

.card-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(80dvw - 24px);
    max-height: calc(74dvh - 24px);
    object-fit: contain;
    border-radius: 12px;
    user-select: none;
    -webkit-user-drag: none;
}

#scroll-track {
    width: 100%;
    height: 1800vh;
}

.btn-top-wrapper {
    position: fixed;
    bottom: 56px;
    right: 24px;
    z-index: 50;
}

#btn-top {
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    color: #1f2937;
    padding: 14px;
    border-radius: 9999px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgb(255 255 255 / .7);
}

    #btn-top:hover {
        color: #000;
        transform: scale(1.1);
    }

    #btn-top:active {
        transform: scale(.95);
    }

    #btn-top:focus {
        outline: none;
    }

    #btn-top.visible {
        opacity: 1;
        pointer-events: auto;
    }

    #btn-top svg {
        width: 20px;
        height: 20px;
    }

.unsplash-cta-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.92);
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .unsplash-cta-wrapper.visible {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
        width: 80vw;
        text-align: center;
    }

.unsplash-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: #111827;
    box-shadow: 0 20px 40px -10px rgb(0 0 0 / .35), 0 8px 16px -8px rgb(0 0 0 / .25);
    border: 1px solid rgb(255 255 255 / .15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

    .unsplash-cta:hover {
        transform: translateY(-2px);
        background: #000;
        box-shadow: 0 25px 50px -10px rgb(0 0 0 / .45), 0 10px 20px -8px rgb(0 0 0 / .3);
    }

    .unsplash-cta:active {
        transform: translateY(0);
    }

@media (min-width:640px) {
    .unsplash-cta {
        padding: 22px 40px;
        font-size: 1.1rem;
    }
}

.scroll-hint {
    position: fixed;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 9999px;
    background: rgb(17 24 39 / .86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgb(255 255 255 / .22);
    box-shadow: 0 14px 32px rgb(0 0 0 / .32);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

    .scroll-hint span:last-child {
        font-size: 1.4rem;
        line-height: 1;
        animation: scroll-bounce 1.6s ease-in-out infinite;
    }

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: .6;
    }

    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

.brand-logo {
    position: fixed;
    top: 16px;
    left: 16px;
    transform: rotate(-8deg);
    z-index: 45;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgb(255 255 255 / .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgb(255 255 255 / .75);
    box-shadow: 0 8px 20px -4px rgb(0 0 0 / .14);
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

    .brand-logo.hidden {
        opacity: 0;
        pointer-events: none;
        transform: rotate(-8deg) scale(0.92);
    }

    .brand-logo:hover {
        transform: rotate(-8deg) scale(1.04);
        box-shadow: 0 12px 26px -4px rgb(0 0 0 / .2);
    }

    .brand-logo img {
        display: block;
        width: clamp(262px, 34vw, 412px);
        height: auto;
    }

.hero-title {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80dvw;
    max-width: 80dvw;
    max-height: 80dvh;
    z-index: 30;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

    .hero-title.hidden {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

.hero-logo-img {
    width: 100%;
    max-width: min(80dvw, 680px);
    max-height: 70dvh;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 60;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: 1.6rem;
    font-weight: 500;
    color: #374151;
    background: rgb(255 255 255 / .84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgb(0 0 0 / .08);
}

    .site-footer a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #D65F00;
        font-weight: 600;
        text-decoration: none;
    }

        .site-footer a:hover {
            text-decoration: underline;
        }

