/* ── Loading Screen ── */

.loader-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
}

/* Black vignette overlay */
.loader-screen::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 10%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

/* Outer wrapper — responsive scaling */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    transform: scale(1);
}

@media (min-width: 640px) {
    .logo-container { transform: scale(1.5); }
}

@media (min-width: 1024px) {
    .logo-container { transform: scale(2); }
}

/* Top row: cross + text column */
.logo-main {
    display: flex;
    align-items: center;
    position: relative;
}

/* Step 1: Cross fades in centered, then Step 2: slides left */
.logo-cross {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(87px);
    animation:
        sfFadeInCross 0.6s ease-out 0.3s forwards,
        sfMoveCrossLeft 0.6s ease-in-out 1.0s forwards;
}

/* Text column: title + subtitle */
.logo-text {
    display: flex;
    flex-direction: column;
    margin-left: 14px;
    clip-path: inset(0 100% 0 0);
    transform: translateY(11px);
    animation:
        sfRevealText 0.35s ease-in-out 1.7s forwards,
        sfMoveTextUp 0.3s ease-in-out 2.15s forwards;
}

.logo-text svg {
    display: block;
}

/* Subtitle block */
.logo-subtitle {
    display: flex;
    flex-direction: column;
    margin-top: 2px;
    opacity: 0;
    transform: translateY(-8px);
    animation: sfFadeInSubtitle 0.3s ease-out 2.55s forwards;
}

.logo-subtitle span {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 8.5px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: var(--sf-color-text, #1a1a1a);
    text-transform: uppercase;
}

.logo-subtitle span:last-child {
    text-align: right;
}

/* ===== KEYFRAMES ===== */

/* Step 1: Cross fades in */
@keyframes sfFadeInCross {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Step 2: Cross slides left to final position */
@keyframes sfMoveCrossLeft {
    from { transform: translateX(87px); }
    to   { transform: translateX(0); }
}

/* Step 3: Title text reveals left to right */
@keyframes sfRevealText {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

/* Step 4: Text moves up to final position */
@keyframes sfMoveTextUp {
    from { transform: translateY(11px); }
    to   { transform: translateY(0); }
}

/* Step 5: Subtitle fades in and slides into place */
@keyframes sfFadeInSubtitle {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Keep cookie banner behind loader */
.cc-window { z-index: 99998 !important; }

/* Fade out the whole loader */
.loader-screen.done {
    animation: sfFadeOut 0.5s ease-in 3.15s forwards;
}

@keyframes sfFadeOut {
    to { opacity: 0; visibility: hidden; }
}
