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

body {
    overflow-x: hidden;
    background: #000;
    font-family: "Sofia Sans Condensed", sans-serif;
    font-optical-sizing: auto;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: block;
}

#signs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.sign {
    position: absolute;
    max-width: 460px;
    width: 90%;
    color: #fff;
    text-shadow:
        -3px -3px 0 #000,
         3px -3px 0 #000,
        -3px  3px 0 #000,
         3px  3px 0 #000,
         0   -3px 0 #000,
         0    3px 0 #000,
        -3px  0   0 #000,
         3px  0   0 #000,
        -1px -3px 0 #000,
         1px -3px 0 #000,
        -1px  3px 0 #000,
         1px  3px 0 #000,
        -3px -1px 0 #000,
         3px -1px 0 #000,
        -3px  1px 0 #000,
         3px  1px 0 #000;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-align: center;
    opacity: 0;
    transition: none;
}

.sign.visible {
    opacity: 1;
}

#logo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    gap: 3.5rem;
    padding: 2rem;
}

#logo-overlay img {
    max-width: 240px;
    width: 64%;
    opacity: 0;
}

#cta-tagline-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

#cta-tagline {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    opacity: 0;
    margin: 0;
}

#cta-subline {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    opacity: 0;
    margin: 0;
    max-width: 480px;
}

#cta-row {
    display: flex;
    justify-content: center;
    text-align: center;
}

.cta-item {
    flex: 1;
    max-width: 280px;
    padding: 0 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Middle first, then left, then right */
.cta-item:nth-child(2) { transition-delay: 0s; }
.cta-item:nth-child(1) { transition-delay: 0.15s; }
.cta-item:nth-child(3) { transition-delay: 0.3s; }

#cta-row.visible .cta-item {
    opacity: 1;
    transform: translateY(0);
}

.cta-item h2 {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.cta-item p {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.4rem;
}

.contact-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
    pointer-events: none;
}

.contact-link.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-link:hover {
    opacity: 0.7;
}

/* ── Floating bottom bar ──────────────────────────────────────────── */

#floating-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0.5rem 0.6rem 0.5rem 1.2rem;
    transition: opacity 0.4s ease;
}

.floating-bar-logo {
    height: 40px;
    width: auto;
    opacity: 0.9;
}

#floating-bar-enter {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 0.45rem 1.4rem;
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

#floating-bar-enter:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.04);
}

#floating-bar-controls {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

#floating-bar-controls.active {
    display: flex;
}

#floating-bar-enter.hidden {
    display: none;
}

.bar-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.bar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.bar-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.bar-icon.hidden {
    display: none;
}

#scroll-spacer {
    position: relative;
    height: 800vh;
    pointer-events: none;
}

/* ── Responsive ──────────────────────────────────────────────────── */

/* Tablets and smaller desktops */
@media (max-width: 768px) {
    .sign {
        font-size: 2.2rem;
        max-width: 90%;
        line-height: 1.2;
    }

    #logo-overlay {
        gap: 2rem;
        padding: 1.5rem;
    }

    #logo-overlay img {
        max-width: 220px;
    }

    #cta-tagline {
        font-size: 1.4rem;
        letter-spacing: 0.1em;
    }

    #cta-subline {
        font-size: 1rem;
    }

    #cta-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .cta-item {
        max-width: 420px;
        padding: 0;
    }

    .cta-item h2 {
        font-size: 1.75rem;
    }

    .cta-item p {
        font-size: 1.3rem;
    }

    .contact-link {
        font-size: 1.2rem;
    }
}

/* Phones */
@media (max-width: 480px) {
    .sign {
        font-size: 2rem;
        line-height: 1.2;
        text-shadow:
            -2px -2px 0 #000,
             2px -2px 0 #000,
            -2px  2px 0 #000,
             2px  2px 0 #000,
             0   -2px 0 #000,
             0    2px 0 #000,
            -2px  0   0 #000,
             2px  0   0 #000;
    }

    #logo-overlay {
        gap: 1.5rem;
        padding: 1rem;
    }

    #logo-overlay img {
        max-width: 180px;
    }

    #cta-tagline {
        font-size: 1.2rem;
        letter-spacing: 0.08em;
    }

    #cta-subline {
        font-size: 0.95rem;
    }

    .cta-item h2 {
        font-size: 1.5rem;
    }

    .cta-item p {
        font-size: 1rem;
    }

    .contact-link {
        font-size: 1rem;
    }
}
