/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #111;
}

/* ========== HEADER ========== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
  color: #fff;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem; /* 요소 간 간격 */
}

.site-logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

/* 상단 네비 (데스크탑용) */
.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.site-nav--desktop {
  display: flex;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.site-nav a:hover {
  opacity: 1;
}

/* 햄버거 버튼 (모든 해상도에서 보이게) */
.site-menu-toggle {
  border: none;
  background: none;
  padding: 0.3rem;
  display: block;
  cursor: pointer;
  z-index: 11; /* 헤더 위에 */
}

.site-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 메뉴 열렸을 때 햄버거를 X로 변형 */
body.is-menu-open .site-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.is-menu-open .site-menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.is-menu-open .site-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

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

/* 배경 영상 */
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 1;

  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.hero__video.is-ready {
  opacity: 1;
}

/* 연한 dim overlay (상단 거의 투명, 아래가 살짝 어두움) */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.25));
  z-index: 2;
}

/* 필요하면 여기 ::before에 하프톤/그레인 패턴 추가 가능 */
/*
.hero__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.10) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: multiply;
}
*/

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 0.8rem;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  margin: 0 0 1rem;
}

.hero__subtitle {
  max-width: 28rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero__cta {
  margin-top: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  backdrop-filter: blur(14px);
}

.hero__cta:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero__scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 3;
  border: none;
  background: none;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  opacity: 0.7;
}

.hero__scroll-indicator:hover {
  opacity: 1;
}

/* ========== 모바일/사이드 메뉴 ========== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* 열렸을 때 활성화 */
.mobile-menu.is-open {
  pointer-events: auto;
  opacity: 1;
}

/* 어두운 배경 오버레이 */
.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* 실제 사이드 패널 (왼쪽에서 슬라이드 인) */
.mobile-menu__panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  max-width: 80%;
  background: #050505;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.25s ease-out;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mobile-menu__logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.mobile-menu__close {
  border: none;
  background: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* 사이드 메뉴 링크 */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav__link {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}

.mobile-nav__link:hover {
  opacity: 1;
}

/* 메뉴 열렸을 때 body 스크롤 잠금 */
body.is-menu-open {
  overflow: hidden;
}

/* ========== COMMON SECTIONS ========== */

.section {
  padding: 4rem 1.5rem;
  background: #fafafa;
}

.section--dark {
  background: #111;
  color: #fff;
}

.section__inner {
  max-width: 960px;
  margin: 0 auto;
}

/* 폼 스타일 */
.contact-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  border: 1px solid #444;
  font-size: 1rem;
  background: #222;
  color: #fff;
}

.contact-form button {
  padding: 0.9rem 1.3rem;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: #111;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

.contact-form button:hover {
  background: #ddd;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  /* 모바일에서 상단 네비는 숨기고, 햄버거 + 사이드만 사용 */
  .site-nav--desktop {
    display: none;
  }

  .site-header {
    background: rgba(0, 0, 0, 0.9);
  }

  .hero__subtitle {
    max-width: 100%;
  }
}
