* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 700;
    src: url('../fonts/SpoqaHanSansNeo-Regular.woff2') format('woff2'),
        url('../fonts/SpoqaHanSansNeo-Regular.woff') format('woff'),
        url('../fonts/SpoqaHanSansNeo-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'FigTree Bold';
    font-weight: 900;
    src: url('../fonts/Figtree-Bold.ttf') format('truetype');
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.page {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.bg-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

.screen {
    position: absolute;
    inset: 0;
    z-index: 10;
    transition: opacity 0.8s ease;
}

.screen--hidden {
    opacity: 0;
    pointer-events: none;
}

#intro-screen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-container {
    display: flex;
    align-items: center;
}

#typing-text {
    font-family: 'FigTree Bold', sans-serif;
    font-size: 44.52px;
    letter-spacing: 4px;
    color: #ffffff;
    text-transform: uppercase;
}


.ir-link {
    position: absolute;
    top: 7.11vh;
    left: calc(50% - 43.75vw);
    color: #fff;
    font-family: 'Spoqa Han Sans Neo', sans-serif;
    font-size: 21.316px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    width: 169px;
    height: 27px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s;
}

.ir-link:hover {
    opacity: 0.75;
}

.main-content {
    position: absolute;
    top: 277px;
    left: calc(50% - 323.5px);
}

.logo-wordmark {
    display: block;
    width: 567px;
    height: 195px;
    object-fit: contain;
    object-position: left center;
}

.divisions-container {
    position: absolute;
    top: 513.88px;
    left: 50%;
    transform: translateX(-50%);
    width: 1440px;
    display: flex;
    justify-content: center;
}

.divisions-row {
    display: flex;
    align-items: center;
    gap: 57.16px;
}

.division-badge {
    display: block;
    flex-shrink: 0;
}

.division-badge:nth-child(1) {
    width: 144.55px;
    height: 62px;
}

.division-badge:nth-child(2) {
    width: 145.13px;
    height: 43.13px;
}

.division-badge:nth-child(3) {
    width: 150.47px;
    height: 45.84px;
}

.mobile-bottom-bar {
    display: none;
}

.mobile-ir-footer {
    display: none;
}

@media screen and (max-width: 768px) {

    .typing-container {
        position: absolute;
        top: 218px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    #typing-text {
        white-space: pre-line;
        text-align: center;
        font-size: 26.5px;
        letter-spacing: 4px;
        line-height: 37.75px;
    }

    .mobile-bottom-bar {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 46px;
        background: #000;
    }

    .ir-link {
        display: none;
    }

    .mobile-ir-footer {
        display: flex;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 46px;
        align-items: center;
        gap: 7px;
        padding: 0 14px;
        background: #000;
        text-decoration: none;
        color: #fff;
    }

    .mobile-ir-footer span {
        font-family: 'Spoqa Han Sans Neo', sans-serif;
        font-weight: 700;
        font-size: 12.202px;
        text-decoration: underline;
        text-underline-position: from-font;
    }

    .mobile-ir-footer img {
        width: 7.54px;
        height: 8.73px;
    }

    /* 로고 – 중앙 기준 5px 좌측 */
    .main-content {
        top: 166px;
        left: calc(50% - 142.5px);
    }

    .logo-wordmark {
        width: 275px;
        height: 94px;
    }

    .divisions-container {
        top: 281.25px;
        left: 0;
        transform: none;
        width: 100%;
    }

    .divisions-row {
        gap: 27.85px;
    }

    .division-badge:nth-child(1) {
        width: 70.43px;
        height: 30.4px;
    }

    .division-badge:nth-child(2) {
        width: 70.72px;
        height: 21.14px;
    }

    .division-badge:nth-child(3) {
        width: 73.32px;
        height: 22.47px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {

    #typing-text {
        font-size: 34.88px;
    }

    .ir-link {
        top: 104px;
        left: calc(50% - 333px);
    }

    .main-content {
        top: 499px;
        left: calc(50% - 333px);
    }

    .logo-wordmark {
        width: 616px;
        height: 212px;
    }

    .divisions-container {
        top: 756.47px;
        left: 0;
        transform: none;
        width: 100%;
    }

    .divisions-row {
        gap: 62.15px;
    }

    .division-badge:nth-child(1) {
        width: 157.18px;
        height: 67.83px;
    }

    .division-badge:nth-child(2) {
        width: 157.81px;
        height: 47.18px;
    }

    .division-badge:nth-child(3) {
        width: 163.61px;
        height: 50.14px;
    }
}