/* Phase 1 additions; original WOX styles and timing remain authoritative. */
/* Follow the original WOX logo color-switch system: default/dark mark on light
   surfaces, then white when ScrollMagic applies .logo-light over dark surfaces. */
.logo .fpa-mark {
    display: block;
    width: 64px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: filter 300ms cubic-bezier(0.77, 0, 0.175, 1);
    will-change: filter;
}
.logo.logo-light .fpa-mark { filter: brightness(0) invert(1); }
button.navigation-fire { padding: 0; border: 0; background: transparent; color: inherit; }
.logo:focus-visible, .navigation-fire:focus-visible,
.navigation-menu a:focus-visible, .social-icons a:focus-visible {
    outline: 2px solid currentColor; outline-offset: 6px;
}
#fpa-instagram[aria-disabled="true"] { color: #fff; opacity: .5; }
.vimeo-bg {
    display: block; position: absolute; inset: 0; height: 100%;
    background: #000;
    pointer-events: none; z-index: 1;
}
#vimeo-videoContainment { pointer-events: none; }
.fpa-video-playing .vimeo-bg { visibility: hidden; }
@media only screen and (max-width: 880px) {
    #vimeo-videoContainment { display: none; }
    .fpa-video-playing .vimeo-bg { visibility: visible; }
}
@media only screen and (max-width: 768px) {
    .logo .fpa-mark { width: 50px; }
    .bottom-credits { max-width: calc(100% - 52px); line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
    #vimeo-videoContainment { display: none; }
    .fpa-video-playing .vimeo-bg { visibility: visible; }
}

/* Phase 5.3: Fulgent mark contrast is driven by the actual surface beneath
   the fixed logo. This preserves WOX's white-panel behavior for the custom SVG. */
.logo.fpa-logo-white .fpa-mark {
    filter: brightness(0) invert(1) !important;
}
.logo.fpa-logo-dark .fpa-mark {
    filter: brightness(0) !important;
}

/* Temporary Fulgent homepage loading treatment.
   Replace the black fallback with the approved showreel poster later. */
.vimeo-bg {
    opacity: 1;
    transition: opacity 450ms ease;
}

.fpa-video-playing .vimeo-bg {
    opacity: 0;
    visibility: hidden;
}



/* Phase 5.23 poster fallback reinforcement */
#section0 .vimeo-bg {
    background: #142a2c url("../img/background/fpa-home-poster.jpg") center center / cover no-repeat !important;
    background-image: url("../img/background/fpa-home-poster.jpg") !important;
}
