
/* Safe layout */
body {
    overflow-x: hidden;
}

#clean-home-wrapper {
    position: relative;
    width: 100%;
}

/* Video fixed in background */
#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1;
    background: #000;
}

#sh-canvas-sequence {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.8) 100%);
}

/* Scroll Content */
#scroll-content {
    position: relative;
    z-index: 2;
}

.scroll-scene {
    position: relative;
    height: 150vh; 
    width: 100%;
}

.scene-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    transform: scale(var(--scene-scale, 1));
    filter: blur(var(--scene-blur, 0px));
    will-change: transform, filter, opacity;
}


.logo-container {
    margin: 0 auto 10px auto;
    width: clamp(180px, 55vw, 300px);
    max-width: 90%;
    /* No translateY here — controlled by scene-content centering */
    overflow: visible;
}
.balbona-iso-svg {
    width: 100%;
    height: auto;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    /* Opacity + transform controlled by JS — no CSS animation here */
    opacity: 1;
    transition: transform 0.05s linear, opacity 0.05s linear;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}
.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}
.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite;
}

/* Floating Plate */
#floating-plate-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: transparent;
}
#floating-plate-btn:hover {
    transform: scale(1.05) rotate(5deg);
}
.plate-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}
.plate-text {
    position: relative;
    z-index: 2;
    color: #444;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    #floating-plate-btn {
        width: 90px;
        height: 90px;
        bottom: 20px;
        right: 20px;
    }
    .plate-text {
        font-size: 0.9rem;
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Cinematic Hexagon Glow — slow, classy, 8s cycle */
@keyframes pulseGlowHex {
    0%   { filter: drop-shadow(0 0 5px rgba(232,192,125,0.2)); }
    50%  { filter: drop-shadow(0 0 18px rgba(232,192,125,0.65)); }
    100% { filter: drop-shadow(0 0 5px rgba(232,192,125,0.2)); }
}
/* NOTE: #svg-base animation set in template <style> block — do NOT duplicate here */

/* Orbital cutlery: horizontal (rotated 90°) */
.orb-cutlery-icon {
    transform: rotate(90deg) !important;
}
body.orb-open .orb-cutlery-icon {
    transform: rotate(90deg) scale(0.8) !important;
    color: #d32f2f !important;
}

/* Smoke out effect for designer credits */
.designer-credits {
    transition: filter 1s ease-out, opacity 1s ease-out, transform 1s ease-out, letter-spacing 1s ease-out;
}
.designer-credits.smoke-out {
    filter: blur(10px);
    opacity: 0 !important;
    transform: translateY(-20px) scale(1.1);
    letter-spacing: 10px !important;
}

/* Legal Links */
.legal-links {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}
.legal-links.show-links {
    opacity: 1;
    visibility: visible;
}
.legal-links a:hover {
    color: #fff !important;
}
