/* ============================================================
   CFM hero.css — fullscreen video hero (Hanwha-style)
============================================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    color: #fff;
    background: #000;
}

/* slides */
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 1.2s var(--ease);
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}
.hero__video-mask {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.65) 100%),
        linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 55%);
}

/* content */
.hero__content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    pointer-events: none;
}
.hero__text { max-width: 860px; pointer-events: auto; }

.hero__kicker {
    display: inline-block;
    font-size: .85rem; font-weight: 600;
    letter-spacing: .3em;
    color: var(--cfm-orange-light);
    margin-bottom: 24px;
    opacity: 0; transform: translateY(20px);
    transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s;
}
.hero__kicker::before {
    content: ''; display: inline-block; width: 46px; height: 2px;
    background: var(--cfm-orange); vertical-align: middle; margin-right: 16px;
}

.hero__title {
    font-size: clamp(2.2rem, 5.6vw, 5rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -.02em;
    color: #fff;
    white-space: pre-line;
    word-break: keep-all;       /* 한글 어절 단위 줄바꿈 (단어 중간 깨짐 방지) */
    overflow-wrap: break-word;
    margin-bottom: 28px;
    opacity: 0; transform: translateY(30px);
    transition: opacity 1s var(--ease) .25s, transform 1s var(--ease) .25s;
}

.hero__desc {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: rgba(255,255,255,.85);
    max-width: 640px;
    margin-bottom: 40px;
    opacity: 0; transform: translateY(20px);
    transition: opacity .9s var(--ease) .45s, transform .9s var(--ease) .45s;
}

.hero__cta {
    opacity: 0; transform: translateY(20px);
    transition: opacity .9s var(--ease) .6s, transform .9s var(--ease) .6s;
}

.hero__slide.is-active .hero__kicker,
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__desc,
.hero__slide.is-active .hero__cta {
    opacity: 1; transform: translateY(0);
}

/* --- Side controls (pagination + scroll) ------------------ */
.hero__controls {
    position: absolute;
    right: clamp(18px, 3vw, 48px); top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.hero__dots { display: flex; flex-direction: column; gap: 16px; }
.hero__dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.4);
    transition: background .3s var(--ease), transform .3s var(--ease);
    cursor: pointer;
}
.hero__dot.is-active {
    background: var(--cfm-orange);
    transform: scale(1.25);
}
.hero__counter {
    margin-top: 12px;
    font-size: .78rem; letter-spacing: .18em;
    color: rgba(255,255,255,.75);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.hero__counter .current { color: var(--cfm-orange); font-weight: 700; }

/* --- Bottom: play/pause + scroll indicator ---------------- */
.hero__bottom {
    position: absolute; left: 0; right: 0; bottom: 32px;
    display: flex; justify-content: space-between; align-items: flex-end;
    padding: 0 clamp(20px, 4vw, 48px);
    max-width: var(--container); margin: 0 auto;
    z-index: 5;
}
.hero__playpause {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.6);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    transition: background .25s var(--ease), border-color .25s var(--ease);
}
.hero__playpause:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero__playpause .icon-pause { display: block; }
.hero__playpause .icon-play  { display: none; }
.hero__playpause.is-paused .icon-pause { display: none; }
.hero__playpause.is-paused .icon-play  { display: block; }

.hero__scroll {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: .72rem; letter-spacing: .32em; color: rgba(255,255,255,.8);
}
.hero__scroll .line {
    width: 1px; height: 54px; background: rgba(255,255,255,.7);
    position: relative; overflow: hidden;
}
.hero__scroll .line::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 40%;
    background: var(--cfm-orange);
    animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
    0%   { transform: translateY(-100%); }
    60%  { transform: translateY(260%); }
    100% { transform: translateY(260%); }
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 768px) {
    .hero { min-height: 560px; }
    .hero__controls { display: none; }
    .hero__bottom { padding: 0 20px; bottom: 20px; }
    .hero__title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero__scroll { font-size: .65rem; letter-spacing: .25em; }
    .hero__scroll .line { height: 40px; }
}
