:root {
  --cream: #F2EDE4;
  --cream-dark: #E8E0D4;
  --brown-deep: #2C2418;
  --brown-mid: #5C4A30;
  --gold: #8B6F47;
  --gold-light: #B89A6A;
  --green: #6B8C6B;
  --white: #FDFAF6;
  --text-sub: #9A8B78;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--brown-deep);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
}

/* 스크롤 전 투명 상태일 때 텍스트 색상 (영상 위 가독성) */
nav:not(.scrolled) .nav-links a {
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

nav:not(.scrolled) .btn-reserve {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

nav:not(.scrolled) .btn-menu span {
  background: var(--white);
}

/* 전체 화면 영상인 index2.html 전용: 로고까지 흰색으로 변경 */
nav.nav-immersive:not(.scrolled) .logo {
  color: var(--white);
}

nav.scrolled {
  background: rgba(242,237,228,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139,111,71,0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brown-deep);
}

.logo img {
  height: 38px; /* 로고 사이즈를 조절하는 부분입니다 */
  width: auto;
  display: block;
}

.logo-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin-left: auto; /* 로고로부터 메뉴를 오른쪽으로 밀어냄 */
  margin-right: 40px; /* 예약 버튼과의 간격 확보 */
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: inherit; /* 부모 상태에 따라 색상 상속 */
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* Submenu */
.nav-links li {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  min-width: 170px;
  list-style: none;
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-top: 2px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 110;
}

.nav-links li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Submenu link styles - Overriding top-level color if necessary */
nav .nav-links li .submenu li a {
  display: block;
  padding: 10px 24px;
  font-size: 13px;
  color: var(--brown-deep) !important;
  text-shadow: none !important;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.nav-links .submenu a:hover {
  background: rgba(139, 111, 71, 0.05);
  color: var(--gold) !important;
}

.nav-right { display: flex; align-items: center; gap: 16px; }

.btn-reserve {
  padding: 9px 22px;
  border: 1.5px solid var(--gold);
  border-radius: 40px;
  background: transparent;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--brown-deep);
  cursor: pointer;
  transition: all 0.25s;
}
.btn-reserve:hover { background: var(--gold); color: var(--white); }

.btn-menu {
  width: 36px; height: 36px;
  border: 1px solid rgba(139,111,71,0.35);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: none; align-items: center; justify-content: center; /* PC 버전에서는 숨김 */
  gap: 0;
  flex-direction: column;
}
.btn-menu span {
  display: block;
  width: 14px; height: 1px;
  background: var(--brown-deep);
  margin: 2px 0;
  transition: all 0.2s;
}

.btn-menu.active span:nth-child(1) {
  transform: translateY(2.5px) rotate(45deg);
}
.btn-menu.active span:nth-child(2) {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 82vh;
  min-height: 700px; /* 최소 높이를 확보하여 레이아웃 무너짐 방지 */
  display: grid;
  grid-template-columns: 38% 62%;
}

/* Left sidebar */
.hero-sidebar {
  position: relative;
  z-index: 30; /* .cards-overlap(z-index: 20)보다 높게 설정하여 인디케이터가 가려지지 않게 함 */
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center; /* 콘텐츠를 중앙으로 배치하여 여백을 채움 */
  padding: 100px 52px 240px 52px; /* 하단 여백을 늘려 스크롤 인디케이터와의 겹침 방지 */
  overflow: hidden; /* 워터마크가 영역 밖으로 나가는 것을 방지 */
}

@keyframes rotateWatermark {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; /* 로고 사이즈를 130%에서 100%로 축소 조절 */
  opacity: 0.18; /* 아주 연하게 설정하여 그림자 같은 느낌 부여 */
  pointer-events: none; /* 텍스트 선택이나 클릭 방해 금지 */
  z-index: -1; /* 텍스트보다 뒤에 위치 */
  filter: blur(2px); /* 약간의 블러를 주어 더 은은하게 표현 */
  animation: rotateWatermark 20s linear infinite; /* 페이지 로드 시점부터 제자리에서 은은하게 20초 주기로 무한 회전 */
}

.scroll-indicator {
  position: absolute;
  bottom: 80px; left: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.scroll-indicator .scroll-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-sub);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.scroll-line {
  width: 2px; height: 110px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

.hero-title-block {
  width: max-content; /* 자식 요소 중 가장 긴 요소(영문 타이틀)에 너비를 맞춤 */
  max-width: 100%;    /* 모바일에서 화면 밖으로 나가는 것 방지 */
  margin-bottom: 28px;
}

.hero-title-ko {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--brown-deep);
  margin-bottom: 8px;
}

.hero-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.hero-divider {
  width: 100%; /* 부모(hero-title-block)의 전체 너비를 차지하게 함 */
  height: 1px;
  background: var(--gold);
  margin: 20px 0 0 0; /* 영문 타이틀과의 간격 조정 */
}

.hero-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.9;
  color: var(--text-sub);
  letter-spacing: 0.03em;
  margin-bottom: 36px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1; /* 글자의 높이 기준선을 잡기 위해 추가 */
  letter-spacing: 0.15em;
  color: var(--brown-mid);
  text-decoration: none;
  transition: gap 0.2s;
}
.btn-link:hover { gap: 16px; color: var(--gold); }
.btn-link .icon-plus {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(139, 111, 71, 0.4);
  border-radius: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-top: 1px; /* 한글 폰트 베이스라인에 맞추어 아래로 1px 미세조정 */
}
.btn-link .icon-plus::before,
.btn-link .icon-plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold);
  transition: all 0.3s ease;
}
.btn-link .icon-plus::before { width: 8px; height: 1.5px; }
.btn-link .icon-plus::after { width: 1.5px; height: 8px; }

.btn-link:hover .icon-plus {
  border-color: var(--gold);
  background: var(--gold);
  transform: rotate(90deg);
}
.btn-link:hover .icon-plus::before,
.btn-link:hover .icon-plus::after {
  background: var(--white);
}

/* Right video area */
.hero-video-wrap {
  position: relative;
  overflow: hidden;
}

.hero-video-wrap video,
.hero-video-wrap .video-placeholder,
.hero-video-wrap iframe {
  border: none;
}

.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 ratio */
  min-height: 100%;
  min-width: 177.77vh; /* 16:9 ratio */
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.video-placeholder {
  background: linear-gradient(135deg, #3d3228 0%, #2a2018 40%, #1e1a14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Atmospheric overlay on video */
.hero-video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(242,237,228,0.15) 0%,
    transparent 30%
  ),
  linear-gradient(
    to bottom,
    transparent 50%,
    rgba(30,22,14,0.45) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Headline over video */
.hero-video-text {
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-55%);
  z-index: 2;
  text-align: right;
}

.hero-video-text h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  line-height: 1.55;
  letter-spacing: 0.05em;
}

/* ── HERO IMMERSIVE (Concept 2) ── */
.hero-immersive {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  grid-template-columns: 1fr; /* Override split layout */
  background: var(--brown-deep);
  height: 100vh; /* 화면 전체를 꽉 채우는 몰입형 높이 */
}

.hero-immersive.sub-hero {
  height: 60vh;
  min-height: 450px;
}

.hero-immersive .hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* 어두운 오버레이로 텍스트 가독성 확보 */
  z-index: 1;
}

.hero-content-centered {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
}

.hero-content-centered .hero-title-ko,
.hero-content-centered .hero-sub {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content-centered .hero-title-en {
  color: var(--gold-light); /* 기존 gold보다 밝은 gold-light 사용 */
  font-weight: 500; /* 300에서 500(Medium)으로 두께 상향 */
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-content-centered .btn-link {
  color: rgba(255, 255, 255, 0.9); /* 버튼 텍스트를 흰색 계열로 변경 */
}

.hero-content-centered .hero-divider {
  margin: 20px auto 0; /* 중앙 정렬 */
  background: var(--white);
}

/* ── TREATMENT CARDS OVERLAPPING HERO ── */
.cards-overlap {
  position: relative;
  margin-top: -260px; /* 히어로 섹션과의 겹침 정도를 조절 */
  z-index: 40; /* 사이드바(z-index: 30)보다 높게 설정하여 위로 띄움 */
  display: grid;
  grid-template-columns: 25% repeat(3, 1fr) 0.8fr; /* 38%에서 25%로 줄여 카드를 왼쪽으로 이동 */
  perspective: 1200px; /* 3D 효과를 위한 원근감 추가 */
  gap: 0;
  padding-left: 0;
}

/* Concept 2용 중앙 정렬 카드 그리드 */
.cards-centered {
  grid-template-columns: repeat(4, 1fr);
  padding: 100px 48px; /* 겹침을 제거했으므로 상하 여백을 충분히 확보 */
  margin-top: 0;      /* 히어로 섹션과 겹치지 않도록 설정 */
  padding: 0 48px 100px; /* 상단 패딩을 제거하고 하단 여백만 유지 */
  margin-top: -200px;   /* 다시 히어로 섹션 영상 하단에 겹치도록 설정 */
}

.cards-spacer { 
  background: transparent; /* 배경을 투명하게 하여 아래 hero-sidebar가 보이도록 수정 */
  pointer-events: none;    /* 스페이서 영역 아래의 링크나 버튼 클릭이 가능하도록 설정 */
}

.treatment-card {
  background: var(--white);
  border: 1px solid rgba(139,111,71,0.1);
  padding: 0 0 28px 0;
  border-radius: 12px; /* 카드 모서리를 부드럽게 라운딩 처리 */
  cursor: pointer;
  /* 더 부드러운 유기적 움직임을 위한 타이밍 함수 적용 */
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  /* 공중에 떠 있는 느낌을 주는 부드러운 기본 그림자 */
  box-shadow: 0 20px 40px rgba(44, 36, 24, 0.08);
  position: relative;
  transform-style: preserve-3d; /* 자식 요소들의 3D 효과 유지 */
  overflow: hidden;
}

/* 호버 시 더 높게 떠오르고 그림자가 넓게 퍼지는 효과 */
.treatment-card:hover { transform: translateY(-15px); box-shadow: 0 40px 80px rgba(44, 36, 24, 0.15); }

.treatment-card:nth-child(2) { margin-top: 0; }
.treatment-card:nth-child(3) { margin-top: 30px; }
.treatment-card:nth-child(4) { margin-top: 30px; }
.treatment-card:nth-child(5) { margin-top: 60px; background: var(--cream-dark); }

.card-img {
  width: 100%;
  height: 170px; /* 이미지 높이를 줄여 카드 전체 길이를 축소 */
  object-fit: cover; /* 이미지가 비율을 유지하며 영역을 꽉 채우도록 설정 */
  display: block;
  background: #eee; /* 이미지 로딩 전 배경색 */
  transition: transform 0.5s ease;
}

.card-body { padding: 22px 22px 0; }

.card-icon {
  width: 32px; height: 32px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px; /* 폰트 사이즈 소폭 조정 */
  font-weight: 500;
  color: var(--brown-deep);
  margin-bottom: 8px; /* 일관된 간격 적용 */
  letter-spacing: 0.03em;
}

.card-desc {
  font-size: 14px; /* 설명 텍스트 사이즈 소폭 조정 */
  line-height: 1.85;
  color: var(--text-sub);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border: 1.5px solid var(--gold);
  border-radius: 40px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
}
.card-more:hover { /* Add hover effect for gap */
  background: var(--gold);
  color: var(--white);
  gap: 14px;
}

/* Last card — CTA */
.card-cta { padding: 36px 24px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-height: 300px; }

.cta-icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.cta-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--brown-deep);
  letter-spacing: 0.03em;
  margin-bottom: auto;
  padding-bottom: 28px;
}

/* ── ABOUT SECTION ── */
.about {
  padding: 160px 52px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}
.section-eyebrow.eyebrow-light {
  color: rgba(184, 154, 106, 0.9);
}
.section-eyebrow.eyebrow-light::before {
  background: rgba(184, 154, 106, 0.9);
}

.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.section-body {
  font-size: 16px;
  line-height: 2.1;
  color: var(--text-sub);
  letter-spacing: 0.03em;
  max-width: 480px;
}

.about-visual {
  position: relative;
  height: 520px;
}

.about-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee;
  opacity: 1;
  position: absolute;
  left: 0; top: 0;
  border-radius: 2px;
}

.about-img-accent {
  width: 46%;
  height: 260px;
  object-fit: cover;
  background: #ddd;
  opacity: 1;
  position: absolute;
  left: 0; bottom: 0;
  border-radius: 2px;
  border: 6px solid var(--cream);
}

.about-stat {
  position: absolute;
  right: 12%;
  bottom: 30px;
  background: var(--white);
  padding: 20px 28px;
  border-left: 2px solid var(--gold);
  box-shadow: 0 8px 32px rgba(44,36,24,0.08);
}
.about-stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.about-stat .label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ── VIDEO SECTION ── */
.video-section {
  position: relative;
  height: 800px; /* 영상이 더 많이 보이도록 높이 상향 */
  overflow: hidden;
}

.video-bg {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
}

.video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
}

.video-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30,20,10,0.7) 0%, rgba(30,20,10,0.3) 50%, transparent 100%);
}

.video-overlay-content {
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 440px;
}

.video-overlay-content .section-eyebrow { color: rgba(184,154,106,0.9); }
.video-overlay-content .section-eyebrow::before { background: rgba(184,154,106,0.9); }

.video-overlay-content .section-title {
  color: rgba(255,255,255,0.92);
  font-size: clamp(24px, 2.8vw, 36px);
}

.video-overlay-content .section-body {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.video-float-card {
  position: absolute;
  right: 80px;
  bottom: 60px; /* 섹션 높이 증가에 맞춰 카드가 잘리지 않도록 안쪽으로 위치 조정 */
  z-index: 10;
  
  /* [가독성 & 투명도 최적 배합] */
  background: rgba(253, 250, 246, 0.42); /* 투명도를 42%로 설정하여 텍스트 하단에 안정적인 밝은 면 확보 */
  backdrop-filter: blur(24px) saturate(110%); /* 블러를 24px로 높여 뒷 배경 영상의 노이즈를 몽환적으로 뭉개줌 */
  -webkit-backdrop-filter: blur(24px) saturate(110%);
  border: 1px solid rgba(253, 250, 246, 0.45); /* 은은하게 빛나는 외곽선 */
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(44, 36, 24, 0.08), 
              inset 0 1px 0 rgba(255, 255, 255, 0.5); /* 상단 유리 반사 광택 */
  
  width: 340px;
  padding: 36px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.float-card-label {
  font-size: 13.5px;
  letter-spacing: 0.25em;
  color: var(--brown-mid); /* 투명 유리 위에서 대비가 약했던 금색 대신 짙은 미드 브라운 적용 */
  margin-bottom: 16px;
  font-weight: 600;
}

.float-card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--brown-deep); /* 대비감이 확실한 딥 브라운 지정 */
}

.float-card-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-card-items li {
  font-size: 15px;
  color: var(--brown-deep); /* 투명 유리 대비 가독성을 보장하는 딥 브라운 */
  letter-spacing: 0.05em;
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
  font-weight: 500;
}
.float-card-items li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 4px; height: 1.5px;
  background: var(--gold); /* 브랜드 시그니처 골드로 포인트 마커 지정 */
}

/* ── Profile Section (from about.html) ── */
.profile-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  background: url('../img/profileSection.jpg') no-repeat center right / cover;
}

/* index2.html 전용: 인물이 왼쪽에 있는 배경 대응 */
.profile-section.alt-layout {
  background: url('../img/gradient_profile(r).jpg') no-repeat center left / cover;
  grid-template-columns: 1.2fr 0.8fr; /* 왼쪽(사진) 비율을 높여 텍스트 영역을 오른쪽으로 더 밀어냅니다 */
}

.profile-images {
  position: relative;
  background: transparent;
  overflow: hidden;
}

.profile-img-main {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info {
  padding: 80px 72px;
  display: flex; flex-direction: column;
  justify-content: center;
  /* 애니메이션 초기 상태: 오른쪽에서 들어옴 */
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.profile-logo-area {
  display: flex; align-items: center;
  gap: 16px; margin-bottom: 48px;
}

.profile-logo-area img { width: 52px; height: 52px; object-fit: contain; }
.profile-logo-area .logo-ko {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  color: var(--brown-deep);
}
.profile-logo-area .logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--text-sub);
  text-transform: uppercase;
}

.profile-desc {
  font-size: 16px; line-height: 2;
  color: var(--brown-mid); font-weight: 300;
  margin-bottom: 48px; max-width: 380px;
}
.profile-desc.desc-deep {
  color: var(--brown-deep);
}

/* ── Career List (Profile Timeline) ── */
.career-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  margin-top: 10px;
}

.career-list li {
  position: relative;
  padding: 0 0 14px 18px; /* 왼쪽에 포인트 마커가 들어갈 공간 확보 */
  border-bottom: 1px solid rgba(139, 111, 71, 0.12);
  transition: border-color 0.3s ease;
}

/* 세련된 골드 라인 마커 */
.career-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%; /* 부모 li 높이의 정확히 절반 지점 */
  transform: translateY(-50%); /* 세로 정중앙 정렬 */
  width: 6px;
  height: 2px; /* 1.5px 소수점 대신 2px 정수값을 사용해 흐려짐(뭉개짐) 방지 */
  background: var(--gold);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.career-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.career-list li:hover {
  border-bottom-color: var(--gold-light);
}

.career-list li:hover::before {
  width: 10px; /* 마우스 오버 시 가로선이 살짝 늘어나는 세련된 효과 */
  background: var(--gold-light);
  transform: translateY(-50%); /* 수직 중앙 정렬 상태 유지 */
}

.career-list li span {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--brown-mid);
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.career-list li:hover span {
  color: var(--brown-deep);
}

/* ── Philosophy Section (from about.html) ── */
.philosophy-section {
  background: var(--brown-deep);
  padding: 120px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.philosophy-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: italic;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin-bottom: 40px;
}

.philosophy-body {
  font-size: 17px; line-height: 2.2;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

.philosophy-cards { display: flex; flex-direction: column; gap: 2px; }

.philo-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 28px 32px;
  display: flex; gap: 20px;
  transition: background 0.3s;
  /* 애니메이션 초기 상태 */
  opacity: 0;
  transform: translateX(50px);
}
.philo-card:hover { background: rgba(139,111,71,0.1); }

.philo-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; color: rgba(139,111,71,0.4);
  line-height: 1;
}

.philo-card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px; color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}

.philo-card-desc {
  font-size: 15px; color: rgba(255,255,255,0.35);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .profile-section, .philosophy-section { grid-template-columns: 1fr; }
  .profile-images { height: 60vw; min-height: 300px; }
  .profile-info, .philosophy-section { padding: 48px 24px; }
}

/* ── PROGRAMS ── */
.programs {
  position: relative;
  padding: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--brown-deep); /* 영상 로드 전 배경색 */
}

.programs-video-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.programs-video-bg iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.77vh;
  transform: translate(-50%, -50%);
}

.programs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 18, 0.2); /* 0.6에서 0.4로 낮추면 영상이 더 밝게 보입니다 */
  z-index: 1;
}

.programs-header {
  position: absolute;
  top: 60px;
  left: 52px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: calc(100% - 104px);
  max-width: 1400px;
  margin: 0;
}

.programs-header .section-title {
  color: var(--white);
}

.programs-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 380px); /* 카드 너비를 줄여서 고정 */
  justify-content: space-between; /* 양옆으로 밀착시켜 가운데 여백 확보 */
  row-gap: 30px;
  grid-template-columns: repeat(4, 1fr); /* 4열 1행 나란히 배치 */
  gap: 20px; /* 카드 사이 간격 조정 */
  justify-content: normal;
  background: none; /* 그리드 선 제거 */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 52px;
  top: 350px; /* 영상 중심을 덜 가리도록 10px 하단으로 이동 */
}

.program-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 32px 28px; /* 내부 여백 축소 */
  padding: 24px 20px; /* 4열 배치를 위해 내부 여백 추가 축소 */
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1); /* 개별 카드 테두리 */
  border-radius: 4px;

  /* 애니메이션 초기 상태: 아래 숨겨짐 */
  opacity: 0;
  transform: translateY(40px);
}

/* 지그재그(Staggered) 효과: 오른쪽 카드들을 아래로 배치 */
@media (min-width: 1025px) {
  .program-item:nth-child(even) {
    margin-top: 80px;
  }
  .programs {
    padding-bottom: 220px; /* 지그재그로 인한 하단 여백 보정 */
  }
}

.program-item:hover { 
  background: rgba(255, 255, 255, 0.08); 
  border-color: rgba(184, 154, 106, 0.3); /* 호버 시 옅은 골드 테두리 */
  box-shadow: inset 0 0 0 1px var(--gold-light); /* 안쪽으로 강조되는 테두리 */
}

.program-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s;
}
.program-item:hover::before { width: 100%; }

.program-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; /* 폰트 사이즈 축소 */
  font-size: 20px; /* 4열 배열에 맞춰 크기 최적화 */
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.program-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px; /* 폰트 사이즈 축소 */
  font-size: 18px; /* 4열 배열에 맞춰 크기 최적화 */
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  color: var(--white);
}

.program-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; /* 폰트 사이즈 축소 */
  font-size: 14px; /* 4열 배열에 맞춰 크기 최적화 */
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.program-desc {
  font-size: 14px; /* 폰트 사이즈 축소 */
  font-size: 13px; /* 4열 배열에 맞춰 크기 최적화 */
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.program-item:hover .program-desc {
  color: rgba(255, 255, 255, 0.9); /* 호버 시 텍스트 밝기 증가로 가독성 향상 */
}

/* ── FACILITIES ── */
.facilities {
  padding: 120px 52px;
  max-width: 1400px;
  margin: 0 auto;
}

.facilities-header {
  margin-bottom: 60px;
}

.facilities-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* 오른쪽 2x2 배열의 비중을 높여 가로 길이를 확대 */
  gap: 12px; /* 간격을 20px에서 12px로 축소 */
  height: 600px; /* 고정 높이를 주어 정렬 유지 */
}

.facility-main, .facility-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* 모서리를 12px로 라운딩 처리 */
  opacity: 0; /* JS 애니메이션용 */
  transform: translateY(30px);
  background: #eee;
}

.facility-main img, .facility-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.facility-main:hover img, .facility-item:hover img {
  transform: scale(1.05);
}

.facility-info {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: var(--white);
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.facility-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px; /* 서브 그리드 간격도 12px로 축소 */
}

@media (max-width: 1024px) {
  .facilities {
    padding: 80px 24px;
  }
  .facilities-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 10px; /* 모바일 간격 추가 축소 */
  }
  .facility-main { height: 350px; }
  .facility-sub-grid { height: 400px; gap: 10px; }
}

/* ── GALLERY MODAL ── */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.gallery-modal.active {
  display: flex;
}

.gallery-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.gallery-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.gallery-indicators {
  margin-top: 30px;
  display: flex;
  gap: 12px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-dot.active {
  background: var(--gold-light);
  transform: scale(1.3);
}

/* ── TESTIMONIALS ── */
.testimonials {
  background: var(--brown-deep);
  padding: 120px 52px;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '정본';
  position: absolute;
  top: -40px; right: 40px;
  font-family: 'Noto Serif KR', serif;
  font-size: 220px;
  font-weight: 600;
  color: rgba(255,255,255,0.02);
  letter-spacing: -0.05em;
  pointer-events: none;
}

.testimonials .section-eyebrow { color: rgba(184,154,106,0.8); }
.testimonials .section-eyebrow::before { background: rgba(184,154,106,0.8); }
.testimonials .section-title { color: rgba(255,255,255,0.9); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 36px;
  transition: background 0.3s;
}
.testimonial-card:hover { background: rgba(255,255,255,0.07); }

.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--gold);
  line-height: 0.8;
  margin-bottom: 20px;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 13.5px;
  line-height: 2;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(139,111,71,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--gold-light);
}
.author-name { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; }
.author-condition { font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; margin-top: 2px; }

/* ── LOCATION & CTA ── */
.location-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.location-map {
  background: #D8CFC0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}
.location-map iframe {
  border: 0;
}

.map-visual {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.15) 0px, rgba(255,255,255,0.15) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.15) 0px, rgba(255,255,255,0.15) 1px, transparent 1px, transparent 40px),
    linear-gradient(135deg, #C8BBA8, #B8A890);
}
.map-pin {
  position: relative;
  z-index: 1;
  text-align: center;
}
.map-pin-dot {
  width: 16px; height: 16px;
  background: var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin: 0 auto 8px;
  box-shadow: 0 0 0 4px rgba(139,111,71,0.25);
}
.map-pin-label {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  background: white;
  padding: 4px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.location-info {
  background: var(--white);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-info .section-title {
  font-size: 30px;
}
.location-actions {
  margin-top: 48px;
  display: flex;
  gap: 16px;
}
.location-actions .btn-reserve {
  padding: 13px 36px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  margin-top: 40px;
}

.info-item .info-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.info-item .info-val {
  font-size: 13px;
  line-height: 1.7;
  color: var(--brown-mid);
  letter-spacing: 0.03em;
}

/* ── FOOTER ── */
footer {
  background: var(--brown-deep);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo .ko { font-family: 'Noto Serif KR', serif; font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.7); }
.footer-logo .en { font-family: 'Cormorant Garamond', serif; font-size: 11px; letter-spacing: 0.2em; color: var(--gold-light); margin-top: 4px; }

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.footer-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
}

/* ── Video overlay popup ── */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.video-modal.active { display: flex; }
.video-modal-inner {
  position: relative;
  width: 80vw;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #111;
}
.video-modal-inner video,
.video-modal-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  letter-spacing: 0.1em;
  background: #1a1208;
}
.video-modal-placeholder .placeholder-inner {
  text-align: center;
}
.video-modal-placeholder .placeholder-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.3;
}
.video-modal-placeholder .placeholder-text {
  font-size: 11px;
  letter-spacing: 0.3em;
  opacity: 0.3;
}
.video-close {
  position: absolute;
  top: -40px; right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.video-close:hover { opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; } /* 모바일에서는 메뉴 버튼을 통한 진입으로 대체 */

  .btn-menu { display: flex; } /* 모바일 버전에서만 다시 노출 */

  .nav-links.mobile-active {
    display: flex;
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(242, 237, 228, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 90;
    margin: 0; /* 모바일 풀스크린 메뉴에서는 여백 초기화 */
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .hero-sidebar {
    padding: 60px 24px 40px; /* 패딩을 줄여 텍스트 영역 압축 */
    order: 2;
    align-items: center;    /* 모바일에서는 중앙 정렬 */
    text-align: center;
  }

  .hero-title-block {
    margin: 0 auto 28px;    /* 모바일 중앙 정렬 */
  }

  .hero-video-wrap {
    height: 35vh; /* 비디오 높이를 50vh에서 35vh로 줄여 아래 콘텐츠 노출 유도 */
    order: 1;
  }

  .hero-video-text {
    right: 24px;
    text-align: left;
  }

  .play-btn-wrap {
    right: 24px;
    bottom: 40px;
  }

  .cards-overlap {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding: 0 24px 60px;
    gap: 20px;
  }

  .cards-spacer { display: none; }
  .treatment-card { margin-top: 0 !important; }

  .card-img {
    height: 150px; /* 모바일에서 카드 높이를 더 콤팩트하게 조정 */
  }

  .about {
    grid-template-columns: 1fr;
    padding: 80px 24px;
    gap: 60px;
  }

  .about-visual { height: 420px; }

  .video-section { height: auto; padding-bottom: 120px; }
  .video-overlay-content {
    position: static;
    transform: none;
    padding: 60px 24px 40px;
    max-width: none;
  }
  .video-float-card {
    position: static;
    width: calc(100% - 48px);
    margin: 0 auto;
  }

  .programs { padding: 80px 24px; aspect-ratio: auto; }
  .programs-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .programs-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }

  .location-cta { grid-template-columns: 1fr; }
  .location-map { height: 300px; }
  .location-info { padding: 60px 24px; }
  .info-grid { grid-template-columns: 1fr; }

  footer {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    padding: 60px 24px;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px 24px; }
}