/* =========================================
   CINEMATIC HERO
========================================= */

.hero-cinematic {
  position: relative;
  min-height: 760px;
  height: min(850px, 90vh);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #14251f;
  isolation: isolate;
}

/* 슬라이더 배경 */
.hero-film-slider {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.film-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: cinematicFlow 48s linear infinite;
  will-change: transform;
}

.film-frame {
  flex: 0 0 40vw;
  width: 40vw;
  height: 100%;
  padding: 18px 6px;
  position: relative;
  overflow: hidden;
}

.film-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;

  /* 기존보다 밝고 자연스럽게 */
  filter: brightness(1.08) saturate(1.05) contrast(1.04);

  transition: transform 0.7s ease;
}

/* 영화 필름 구멍 */
.hero-film-slider::before,
.hero-film-slider::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 13px;
  z-index: 3;
  background: repeating-linear-gradient(
    90deg,
    #101714 0px,
    #101714 15px,
    transparent 15px,
    transparent 30px
  );
  pointer-events: none;
}

.hero-film-slider::before {
  top: 0;
}

.hero-film-slider::after {
  bottom: 0;
}

/* 무한 슬라이드 */
@keyframes cinematicFlow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* 배경 오버레이 */
.hero-cinematic .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      90deg,
      rgba(245, 249, 243, 0.72) 0%,
      rgba(245, 249, 243, 0.48) 20%,
      rgba(245, 249, 243, 0.16) 40%,
      rgba(245, 249, 243, 0.02) 65%,
      transparent 100%
    ),
    linear-gradient(0deg, rgba(245, 249, 243, 0.1), transparent 25%);
}

/* 메인 콘텐츠 */
.hero-cinematic .hero-grid {
  position: relative;
  z-index: 2;
  padding-top: 30px;
  padding-bottom: 65px;
}

/* 메인 콘텐츠 */
.hero-cinematic .hero-copy {
  max-width: 780px;
  color: #183629;
}

/* 상단 영문 라벨 */
.hero-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #365d43;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 36px;
}

.label-line {
  display: inline-block;
  width: 38px;
  height: 2px;
  background: #527c5b;
}

/* 한글 서브 타이틀 */
.hero-cinematic .hero-eyebrow {
  display: block;
  color: #365d43;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
}

/* 메인 타이틀 */
.hero-cinematic h1 {
  margin: 0;
  color: #183629;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.25);
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.28;
  font-weight: 850;
  letter-spacing: -3.5px;
  word-break: keep-all;
}

.hero-cinematic h1 em {
  font-style: normal;
  color: #376c46;
}

/* 설명 */
.hero-cinematic .hero-description {
  margin: 25px 0 0;
  color: #40594a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: -0.3px;
}

/* 버튼 */
.hero-cinematic .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.hero-cinematic .hero-actions .btn {
  min-height: 54px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
}

.hero-cinematic .btn-primary {
  color: #ffffff;
  background: #315e40;
  border: 1px solid #315e40;
}

.hero-cinematic .btn-primary:hover {
  color: #ffffff;
  background: #234a32;
  border-color: #234a32;
  transform: translateY(-3px);
}

.hero-cinematic .btn-outline-light {
  color: #294a35;
  background: rgba(245, 249, 243, 0.72);
  border: 1px solid rgba(49, 94, 64, 0.55);
}

.hero-cinematic .btn-outline-light:hover {
  background: #ffffff;
  border-color: #315e40;
}

/* 하단 감성 문구 */
.hero-cinematic .hero-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 48px;
}

.note-symbol {
  color: #477e51;
  font-size: 28px;
}

.hero-note strong {
  display: block;
  color: #294b34;
  font-size: 13px;
  font-weight: 800;
}

.hero-note small {
  display: block;
  margin-top: 3px;
  color: #536b59;
  font-size: 12px;
}

/* 하단 영역 */
.hero-cinematic .hero-bottom {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(48, 83, 57, 0.25);
}

.hero-cinematic .hero-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  color: #405b48;
  border-color: rgba(70, 105, 78, 0.2);
  font-size: 10px;
  font-weight: 600;
}

.bottom-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54865c;
}
.hero-bottom-left,
.hero-bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 2px;
}

.scroll-cue span {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: #7ba482;
}

/* 태블릿 */
@media (max-width: 1024px) {
  .hero-cinematic {
    min-height: 700px;
  }

  .hero-cinematic h1 {
    font-size: 54px;
  }

  .hero-cinematic .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(245, 249, 243, 0.72) 0%,
        rgba(245, 249, 243, 0.48) 20%,
        rgba(245, 249, 243, 0.16) 40%,
        rgba(245, 249, 243, 0.02) 65%,
        transparent 100%
      ),
      linear-gradient(0deg, rgba(245, 249, 243, 0.1), transparent 25%);
  }
}

/* 모바일 */
@media (max-width: 768px) {
  .hero-cinematic {
    min-height: 680px;
    height: 85vh;
    max-height: 800px;
  }

  .film-frame {
    flex-basis: 85vw;
    width: 85vw;

    padding: 15px 4px;
  }

  .film-track {
    animation-duration: 36s;
  }

  .hero-cinematic .hero-grid {
    padding: 0 22px 45px;
  }

  .hero-label {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 27px;
  }

  .hero-cinematic .hero-eyebrow {
    font-size: 14px;
  }

  .hero-cinematic h1 {
    font-size: clamp(35px, 9vw, 48px);
    letter-spacing: -2px;
  }

  .hero-cinematic .hero-description {
    font-size: 14px;
  }

  .hero-cinematic .hero-actions .btn {
    min-height: 48px;
    padding: 0 17px;
    font-size: 12px;
  }

  .hero-cinematic .hero-note {
    margin-top: 35px;
  }

  .hero-cinematic .hero-bottom-inner {
    min-height: 55px;
  }

  .scroll-cue {
    font-size: 9px;
  }
}

/* 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  .film-track {
    animation: none;
  }
}
