.gate {
    --ink: #f7f1e8;
    --muted: rgba(247, 241, 232, 0.68);
    --deep: #070809;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--deep);
    color: var(--ink);
}

.gate__whisper {
    position: absolute;
    top: clamp(1.2rem, 3vw, 2rem);
    left: 50%;
    z-index: 4;
    margin: 0;
    font-family: "minion-3", "Cormorant Garamond", Georgia, serif;
    font-size: 0.68rem;
    letter-spacing: 0.46em;
    text-transform: uppercase;
    color: rgba(247, 241, 232, 0.55);
    transform: translateX(-50%);
    pointer-events: none;
    animation: gate-in 1.2s ease both;
}

.gate__spine {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 1px;
    height: min(42vh, 22rem);
    background: linear-gradient(180deg, transparent, rgba(247, 241, 232, 0.35), transparent);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.gate__spine span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(7, 8, 9, 0.72);
    font-family: "minion-3", "Cormorant Garamond", Georgia, serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    transform: translate(-50%, -50%);
}

.gate__doors {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.gate__door {
    position: relative;
    flex: 1 1 50%;
    display: block;
    min-height: 100vh;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    isolation: isolate;
    transition: flex 0.85s cubic-bezier(0.2, 0.9, 0.2, 1), filter 0.7s ease;
}

.gate__media {
    position: absolute;
    inset: -2%;
    background-color: #15171a;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.05);
    filter: brightness(0.72) saturate(0.85);
    transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.2, 1), filter 0.7s ease;
}

.gate__media--empty {
    background:
        radial-gradient(circle at 30% 20%, rgba(120, 140, 150, 0.22), transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(140, 120, 100, 0.18), transparent 40%),
        #15171a;
}

.gate__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 8, 9, 0.55), transparent 28%, transparent 72%, rgba(7, 8, 9, 0.55)),
        linear-gradient(180deg, rgba(7, 8, 9, 0.35) 0%, transparent 30%, rgba(7, 8, 9, 0.78) 100%);
    transition: opacity 0.6s ease;
}

.gate__door--sokcho .gate__shade {
    background:
        linear-gradient(90deg, rgba(6, 12, 16, 0.6), transparent 34%),
        linear-gradient(180deg, rgba(6, 12, 16, 0.4) 0%, transparent 32%, rgba(6, 12, 16, 0.82) 100%);
}

.gate__door--yangyang .gate__shade {
    background:
        linear-gradient(270deg, rgba(16, 10, 8, 0.6), transparent 34%),
        linear-gradient(180deg, rgba(16, 10, 8, 0.4) 0%, transparent 32%, rgba(16, 10, 8, 0.82) 100%);
}

.gate__place {
    position: absolute;
    top: 50%;
    z-index: 2;
    font-family: "NanumMyeongjo", "Nanum Myeongjo", serif;
    font-size: clamp(3.2rem, 8vw, 7.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.18em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: rgba(247, 241, 232, 0.14);
    transform: translateY(-50%);
    pointer-events: none;
    transition: color 0.55s ease, letter-spacing 0.7s ease;
}

.gate__door--left .gate__place {
    left: clamp(0.8rem, 2.2vw, 2rem);
}

.gate__door--right .gate__place {
    right: clamp(0.8rem, 2.2vw, 2rem);
}

.gate__copy {
    position: absolute;
    left: 50%;
    bottom: clamp(2.8rem, 8vh, 5.5rem);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(86%, 20rem);
    text-align: center;
    transform: translateX(-50%) translateY(0.8rem);
    opacity: 0;
    animation: gate-in 0.95s ease both;
    animation-delay: calc(0.12s + 0.16s * var(--i, 1));
}

.gate__brand {
    font-family: "NanumMyeongjo", "Nanum Myeongjo", serif;
    font-size: clamp(1.45rem, 2.5vw, 2.15rem);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.08em;
    word-break: keep-all;
    overflow-wrap: normal;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.gate__line {
    margin-top: 0.95rem;
    max-width: 17rem;
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--muted);
    word-break: keep-all;
}

.gate__go {
    margin-top: 1.45rem;
    font-family: "minion-3", "Cormorant Garamond", Georgia, serif;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--ink);
    opacity: 0.85;
    transition: opacity 0.35s ease, letter-spacing 0.45s ease, transform 0.45s ease;
}

.gate__doors:hover .gate__door:not(:hover),
.gate__doors:focus-within .gate__door:not(:focus-visible) {
    flex: 0.78 1 38%;
    filter: brightness(0.55) saturate(0.7);
}

.gate__doors:hover .gate__door:hover,
.gate__doors:focus-within .gate__door:focus-visible {
    flex: 1.22 1 62%;
}

.gate__door:hover .gate__media,
.gate__door:focus-visible .gate__media {
    transform: scale(1.12);
    filter: brightness(0.88) saturate(1);
}

.gate__door:hover .gate__shade,
.gate__door:focus-visible .gate__shade {
    opacity: 0.72;
}

.gate__door:hover .gate__place,
.gate__door:focus-visible .gate__place {
    color: rgba(247, 241, 232, 0.28);
    letter-spacing: 0.28em;
}

.gate__door:hover .gate__go,
.gate__door:focus-visible .gate__go {
    opacity: 1;
    letter-spacing: 0.5em;
    transform: translateY(-2px);
}

.gate__door:focus-visible {
    outline: none;
}

.gate__door:focus-visible .gate__brand {
    text-decoration: underline;
    text-underline-offset: 0.35em;
    text-decoration-thickness: 1px;
}

@keyframes gate-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(1.2rem);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gate__whisper,
    .gate__copy,
    .gate__door,
    .gate__media,
    .gate__place,
    .gate__go {
        animation: none !important;
        transition: none !important;
        opacity: 1;
        transform: none;
    }

    .gate__copy {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    .gate__whisper {
        top: 0.75rem;
        z-index: 6;
        width: max-content;
        max-width: calc(100% - 2rem);
        letter-spacing: 0.22em;
        font-size: 0.62rem;
        white-space: nowrap;
    }

    .gate__spine {
        display: none;
    }

    .gate__doors {
        flex-direction: column;
        padding-top: 2.6rem;
        box-sizing: border-box;
    }

    .gate__door {
        min-height: calc(50vh - 1.3rem);
    }

    .gate__doors:hover .gate__door:not(:hover),
    .gate__doors:focus-within .gate__door:not(:focus-visible),
    .gate__doors:hover .gate__door:hover,
    .gate__doors:focus-within .gate__door:focus-visible {
        flex: 1 1 50%;
        filter: none;
    }

    .gate__place {
        top: 50%;
        font-size: clamp(2.2rem, 11vw, 3.4rem);
        letter-spacing: 0.16em;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: translateY(-50%);
        color: rgba(247, 241, 232, 0.18);
    }

    .gate__door--left .gate__place {
        left: 0.7rem;
        right: auto;
        transform: translateY(-50%);
    }

    .gate__door--right .gate__place {
        right: 0.7rem;
        left: auto;
        transform: translateY(-50%);
    }

    .gate__copy {
        bottom: 2rem;
        padding-top: 2.5rem;
    }

    .gate__brand {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    }
}
