body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    animation: fadeInVideo 1s ease-out 0.2s forwards;
}

@keyframes fadeInVideo {
    to {
        opacity: 1;
    }
}

#video-reel {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    box-sizing: border-box;
}

.top-left {
    align-self: flex-start;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 240px;
    height: auto;
}

.bottom-left {
    align-self: flex-start;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bottom-left a,
.contact-toggle {
    color: white;
    text-decoration: none;
    margin-right: 32px;
    display: inline-block;
    line-height: 18px;
}

.bottom-left .social-link {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    transform: scale(1);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 18px;
}

.bottom-left .social-link:hover {
    transform: scale(1.1);
}

.bottom-left .social-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.bottom-left .social-link:hover .social-icon,
.bottom-left .social-link:focus-visible .social-icon,
.bottom-left .social-link:active .social-icon {
    filter: brightness(0) invert(1);
}

.contact-toggle {
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.contact-toggle.active {
    transform: translateX(0);
}

.email-container {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    gap: 32px;
    margin-left: 0;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    isolation: isolate;
    padding-bottom: 4px;
    transition: max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                margin-left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-container.expanded {
    max-width: 1200px;
    opacity: 1;
    margin-left: 0;
}

.email-separator {
    width: 1px;
    align-self: stretch;
    background-color: white;
    flex-shrink: 0;
    min-height: 40px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s;
}

.email-container.expanded .email-separator {
    opacity: 1;
}

.email-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 18px;
    padding-bottom: 0px;
}

.email-container.expanded .contact-link {
    /* No text shadow */
}

.email-list .contact-link {
    font-size: 15px;
    line-height: 18px;
    font-weight: normal;
    margin-right: 0;
    opacity: 0;
    white-space: nowrap;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.2s ease;
}

.email-list .contact-link.visible {
    opacity: 1;
    transform: translateY(0);
}

.email-list > a.contact-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.address-line {
    font-size: 15px;
    line-height: 18px;
    font-weight: normal;
    color: white;
    opacity: 0;
    white-space: nowrap;
    transform: translateY(-8px);
    margin-top: 15px;
    transition: opacity 0.3s ease, 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.2s ease;
}

.email-list .address-line.visible {
    opacity: 1;
    transform: translateY(3px);
}

.legal-corner {
    position: fixed;
    right: 48px;
    left: auto;
    bottom: 48px;
    max-width: 45vw;
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 0.01em;
    color: white;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: right;
    pointer-events: none;
}

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

.legal-corner .meta-sep {
    opacity: 0.7;
    margin-right: 6px;
}

.legal-corner .legal-link {
    color: inherit;
    text-decoration: none;
    margin: 0;
}

.legal-corner .legal-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-corner br {
    display: none;
}

/* Mobile responsive */
@media (max-width: 1000px) {
    .overlay-content {
        padding: 28px;
    }

    .logo {
        width: 180px;
    }

    .bottom-left {
        flex-wrap: wrap;
        align-items: baseline;
    }

    .bottom-left a,
    .contact-toggle {
        margin-right: 17px;
    }

    .email-container {
        flex-basis: 100%;
        width: 100%;
        margin-top: 17px;
        flex-direction: column;
        align-items: flex-start;
        gap: 17px;
        transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 0;
    }

    .email-container.expanded {
        max-height: 200px;
        max-width: none;
        margin-left: 0;
    }

    .email-separator {
        width: 50%;
        height: 1px;
        min-height: 1px;
        background-color: white;
    }

    .email-container.expanded .email-list {
        margin-bottom: 36px;
    }

    .email-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .email-list .contact-link {
        font-size: 15px;
    }

    .legal-corner {
        left: 28px;
        right: auto;
        bottom: 28px;
        padding: 32px 0 0 0;
        margin: 0;
        max-width: calc(100% - 56px);
        text-align: left;
    }

    .legal-corner br {
        display: block;
    }

    .address-line {
        margin-top: 4px;
        margin-bottom: 16px;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .top-left,
    .bottom-left {
        opacity: 1;
        transform: none;
    }
}
