﻿@charset "utf-8";

/* One city image and live text, shared by all three scroll states. */
.main-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background: #fff;
    box-sizing: border-box;
}

.main-banner__stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

.main-banner__intro {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: 2;
    pointer-events: none;
}

.main-banner__intro-line {
    position: absolute;
    white-space: nowrap;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(38px, 10.15625vw, 240px);
    font-weight: 400;
    line-height: 1.21;
    letter-spacing: -0.01em;
    color: #222;
    transform-origin: left top;
}

.main-banner__intro-line strong {
    font-family: var(--main-font, 'Pretendard', sans-serif);
    font-weight: 700;
    font-style: normal;
}

.main-banner__intro-line.line-left {
    left: max(clamp(24px, 3.125vw, 60px), calc((100% - 1800px) / 2));
    top: 11.15%;
}

.main-banner__intro-line.line-right {
    right: max(clamp(24px, 3.125vw, 60px), calc((100% - 1800px) / 2));
    top: 31.91%;
    letter-spacing: 0;
}

/* The one-time JS entrance owns the inner text; scroll motion owns the outer lines. */
.main-banner__intro-text {
    display: block;
}

@media (prefers-reduced-motion: no-preference) {
    .main-banner[data-intro-pending] .main-banner__intro-text {
        opacity: 0;
    }
}

.main-banner__media {
    position: absolute;
    /* Equal side margins keep every scroll state centered without GSAP transforms. */
    left: 0;
    right: 0;
    margin-inline: auto;
    top: 61.4%;
    width: 57.5%;
    aspect-ratio: 1104 / 593;
    overflow: hidden;
    z-index: 1;
}

.main-banner__photo,
.main-banner__photo img {
    width: 100%;
    height: 100%;
}

.main-banner__photo img {
    display: block;
    object-fit: cover;
    object-position: center;
}

.main-banner__message {
    position: absolute;
    inset: 0;
    z-index: 2;
    color: #fff;
    pointer-events: none;
}

.main-banner__brand,
.main-banner__rule,
.main-banner__description,
.main-banner__hint {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.main-banner__brand {
    left: 11.5%;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    font-family: var(--main-font, 'Pretendard', sans-serif);
    font-size: clamp(40px, 5.21vw, 125px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.025em;
}

.main-banner__rule {
    left: 36.7%;
    top: 50%;
    width: 16%;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
    transform-origin: left center;
}

.main-banner__description {
    left: 79%;
    top: 51.9%;
    margin: 0;
    font-size: clamp(12px, 0.94vw, 22px);
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.main-banner__hint {
    --hint-bottom: max(8.3svh, 72px);
    left: 50%;
    bottom: var(--hint-bottom);
    transform: translateX(-50%);
    z-index: 2;
    font: 400 16px/1.3 'Cormorant Garamond', Georgia, serif;
    color: #fff;
    pointer-events: none;
}

.main-banner__hint::before,
.main-banner__hint::after {
    content: '';
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    margin-left: -1px;
    width: 2px;
    height: calc(var(--hint-bottom) - 12px);
}

.main-banner__hint::before {
    background: rgba(255, 255, 255, 0.25);
}

.main-banner__hint::after {
    background: #fff;
    transform: scaleY(0);
    transform-origin: center top;
}

.is-banner-animated .main-banner__hint::after {
    animation: main-banner-scroll-fill 1.5s linear infinite;
}

@keyframes main-banner-scroll-fill {
    0% {
        transform: scaleY(0);
    }
    100% {
        transform: scaleY(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-banner .main-banner__hint::after {
        animation: none;
        transform: scaleY(1);
    }
}

.is-banner-animated .main-banner__intro-line {
    will-change: transform, opacity;
}

@media (max-width: 768px) {
    .main-banner__intro-line {
        font-size: clamp(30px, 9.6vw, 74px);
    }
    .main-banner__intro-line.line-left {
        left: clamp(24px, 3.125vw, 60px);
        top: 18%;
    }
    .main-banner__intro-line.line-right {
        right: clamp(24px, 3.125vw, 60px);
        top: 29%;
    }
    .main-banner__media {
        top: 46%;
        width: 90%;
        aspect-ratio: auto;
        height: 48%;
    }
    .main-banner__brand {
        left: 7%;
        top: 32%;
        font-size: clamp(36px, 10vw, 72px);
    }
    .main-banner__rule {
        left: 7%;
        top: 39%;
        width: 86%;
    }
    .main-banner__description {
        left: 7%;
        top: 63%;
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (min-width: 769px) and (max-aspect-ratio: 6/5) {
    .main-banner__intro-line.line-left { top: 18%; }
    .main-banner__intro-line.line-right { top: 34%; }
}

@media (min-width: 769px) and (min-aspect-ratio: 5/2) {
    .main-banner__intro-line { font-size: 18vh; }
}
