/* OGCF Home Animation – Scroll-driven pinning */

/* Tall wrapper – sits in normal page flow */
.ogcf-home {
    min-height: 250vh;
    background-color: #fff;
    position: relative;
}

.ogcf-home__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

/* Phase 1: White state */
.ogcf-home__phase1 {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ogcf-home__title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.ogcf-home__word {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: #000;
}

/* 3D Door */
.ogcf-home__door-perspective {
    z-index: 10;
    perspective: 150px;
    perspective-origin: center center;
}

.ogcf-home__door-frame {
    position: relative;
    width: 120px;
    height: 92px;
    transform-style: preserve-3d;
}

.ogcf-home__door-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #000;
    transform-origin: left center;
    transform: rotateY(44deg);
    backface-visibility: visible;
}

.ogcf-home__door-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #000;
    transform-origin: right center;
    transform: rotateY(-44deg);
    backface-visibility: visible;
}

/* Scroll indicator */
.ogcf-home__scroll-indicator {
    position: absolute;
    bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ogcf-home__scroll-circle {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ogcf-home__scroll-arrow {
    width: 12px;
    height: 12px;
    color: rgba(0, 0, 0, 0.5);
    animation: ogcf-bounce 1s infinite;
}

@keyframes ogcf-bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* Phase 2: Dark state */
.ogcf-home__phase2 {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
    padding-left: 16px;
    padding-right: 16px;
    opacity: 0;
    pointer-events: none;
}

.ogcf-home__reveal-text {
    position: relative;
    z-index: 10;
}

.ogcf-home__big-title {
    font-size: 14vw;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    line-height: 1;
    text-align: center;
}

.ogcf-home__subtitle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1024px;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
}

.ogcf-home__subtitle-word {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 0.1em;
}

.ogcf-home__divider {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 16px;
}

.ogcf-home__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    transition: background-color 0.2s;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
}

.ogcf-home__cta:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.ogcf-home__cta-arrow {
    width: 16px;
    height: 16px;
}

/* Video area */
.ogcf-home__video-area {
    position: relative;
    width: 100%;
    max-width: 1152px;
    flex: 1;
    margin-top: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.ogcf-home__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ogcf-home__video--iframe {
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

.ogcf-home__video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ogcf-home__video-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ogcf-home__play-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.ogcf-home__play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.ogcf-home__play-btn {
    width: 72px;
    height: 72px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s;
}

.ogcf-home__play-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.ogcf-home__play-icon {
    width: 28px;
    height: 28px;
    color: #fff;
    margin-left: 3px;
}

/* Sound toggle */
.ogcf-home__sound-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.2s;
}

.ogcf-home__sound-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.ogcf-home__sound-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.ogcf-home__sound-icon {
    width: 20px;
    height: 20px;
    color: #fff;
    display: none;
}

.ogcf-home__sound-icon--off {
    display: block;
}

.ogcf-home__sound-btn.is-unmuted .ogcf-home__sound-icon--off {
    display: none;
}

.ogcf-home__sound-btn.is-unmuted .ogcf-home__sound-icon--on {
    display: block;
}

/* Progress dots */
.ogcf-home__dots {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ogcf-home__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #000;
    transition: all 0.3s;
}

/* Admin bar offset */
.admin-bar .ogcf-home__sticky {
    top: 32px;
    height: calc(100vh - 32px);
}

@media (max-width: 782px) {
    .admin-bar .ogcf-home__sticky {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

/* Responsive */
@media (min-width: 768px) {
    .ogcf-home__word {
        font-size: 72px;
    }
    .ogcf-home__big-title {
        font-size: 12vw;
    }
    .ogcf-home__subtitle-word {
        font-size: 16px;
    }
    .ogcf-home__cta {
        padding: 12px 24px;
        font-size: 14px;
    }
    .ogcf-home__divider {
        margin: 0 32px;
    }
    .ogcf-home__subtitle-row {
        margin-top: 16px;
    }
    .ogcf-home__phase2 {
        padding-top: 40px;
        padding-left: 32px;
        padding-right: 32px;
    }
    .ogcf-home__video-area {
        margin-top: 24px;
    }
    .ogcf-home__play-btn {
        width: 80px;
        height: 80px;
    }
    .ogcf-home__play-icon {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 1024px) {
    .ogcf-home__word {
        font-size: 96px;
    }
    .ogcf-home__big-title {
        font-size: 10vw;
    }
    .ogcf-home__subtitle-word {
        font-size: 18px;
    }
    .ogcf-home__phase2 {
        padding-left: 48px;
        padding-right: 48px;
    }
    .ogcf-home__play-btn {
        width: 96px;
        height: 96px;
    }
    .ogcf-home__play-icon {
        width: 40px;
        height: 40px;
    }
}
