/* Dandy Lock – pełnoekranowa strona „under lock and key” (1:1 z Framera) */

@font-face {
    font-family: "Orpheus Pro";
    src: url("https://framerusercontent.com/assets/Sxi1RVahauD3SiVERENfqMoGzBQ.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html.dandy-locked,
html.dandy-locked body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.dandy-lock {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: #000;
    color: #fff;
    overflow: hidden;
    font-family: "Orpheus Pro", "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    touch-action: none;
}

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

/* --- Środek: Ooops! + podtytuł --- */
.dandy-lock .dl-center {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    pointer-events: none;
}

.dandy-lock .dl-title,
.dandy-lock .dl-sub {
    margin: 0;
    padding: 0;
    width: 100%;
    color: #fff;
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.dandy-lock .dl-title {
    font-size: 60px;
    line-height: 1.2;
}

.dandy-lock .dl-sub {
    font-size: 26px;
    line-height: 1.2;
}

/* animacja tekstu: litery / słowa wjeżdżają z rozmycia */
.dandy-lock .dl-tok {
    display: inline-block;
    white-space: pre;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(10px);
    animation: dl-reveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* odstęp między słowami: zwykła spacja, ale nie może zniknąć */
.dandy-lock .dl-gap {
    display: inline;
    white-space: pre;
}

@keyframes dl-reveal {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* --- Kłódka 3D: cały ekran, nad tekstem (jak we Framerze) --- */
.dandy-lock .dl-3d {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.dandy-lock .dl-3d .dandy-key {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
}

/* --- Nawigacja: logo + imię u góry, instagram na dole po środku --- */
.dandy-lock .dl-nav {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 10px;
    pointer-events: none;
}

.dandy-lock .dl-row {
    display: flex;
    align-items: center;
    font-size: 20px;
    line-height: 1.2;
}

.dandy-lock .dl-up {
    justify-content: space-between;
    padding: 10px 10px 0;
}

.dandy-lock .dl-bottom {
    justify-content: center;
    padding: 0 10px 10px;
}

.dandy-lock .dl-row > * {
    pointer-events: auto;
}

.dandy-lock a,
.dandy-lock a:visited {
    color: #fff;
    text-decoration: none;
    font-family: inherit;
}

.dandy-lock a:hover {
    opacity: 0.7;
}

.dandy-lock .dl-name,
.dandy-lock .dl-insta {
    width: 97px;
    text-align: center;
    white-space: nowrap;
}

.dandy-lock .dl-logo {
    display: block;
    width: 47px;
    height: 26px;
    object-fit: contain;
}

/* wejście elementów nawigacji (opóźnienia jak we Framerze) */
.dandy-lock .dl-fade {
    opacity: 0;
    animation: dl-fade 0.4s ease forwards;
}

@keyframes dl-fade {
    to {
        opacity: 1;
    }
}

/* gwiezdny ślad (domyślnie wyłączony, włącz: trail="tak") */
.dandy-lock .dl-trail {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* --- Tablet (810–1199 px) --- */
@media (max-width: 1199.98px) {
    .dandy-lock .dl-title {
        font-size: 54px;
    }
}

/* --- Telefon (do 809 px): tytuł wyżej, podtytuł niżej, kłódka pomiędzy --- */
@media (max-width: 809.98px) {
    .dandy-lock .dl-center {
        justify-content: space-between;
        padding: 150px 20px;
    }

    .dandy-lock .dl-title {
        font-size: 44px;
    }

    /* bez text-wrap: balance – na Samsungu (Chrome) zjadało spacje między słowami */
    .dandy-lock .dl-sub {
        font-size: 20px;
        max-width: 230px;
        margin: 0 auto;
    }

    .dandy-lock .dl-row {
        font-size: 16px;
    }

    .dandy-lock .dl-trail {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dandy-lock .dl-tok,
    .dandy-lock .dl-fade {
        animation-duration: 0.01s;
    }
}
