/* ============================================================
   인라인 — Hero + Intro + Director 섹션 스타일
   (renew-main.css 가 없는 경우에도 독립 작동)
   ============================================================ */

/* ---- Hero ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 780px;
  overflow: hidden;
}

.hero .swiper,
.hero .swiper-wrapper,
.hero .swiper-slide {
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* 영상 슬라이드 */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 카피 */
.hero__copy {
  position: absolute;
  bottom: 15%;
  left: 0;
  right: 0;
  z-index: 2;
  padding-inline: var(--space-lg);
  max-width: var(--container-wide);
  margin-inline: auto;
}

/* Hero 페이지네이션 커스텀 위치 */
.hero .swiper-pagination {
  bottom: 40px;
  left: var(--space-lg);
  width: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero 스크롤 인디케이터 */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* 오버레이 제거 후 밝은 영상 위에서도 가독성 확보(다중 그림자) */
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 0 10px rgba(0,0,0,0.35);
}

.hero__scroll-line {
  width: 2px;
  height: 64px;
  /* 밝은 프레임 가독성 위해 약한 반투명 dark 그라데이션 배경 한정 적용 */
  background: linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(255,255,255,0.55));
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent); /* 장식 라인, 대비 무관 */
  /* transform(translateY) 로 애니메이트 → GPU 합성 레이어. top 애니메이션은 매 프레임
     레이아웃을 유발(non-composited) → Lighthouse 'avoid non-composited animations' 경고. */
  animation: scrollLine 1.6s ease-in-out infinite;
  will-change: transform;
}

@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ---- Hero 가시 카피 + CTA (정적 비디오 히어로 전용) ----
   swiper-slide-active 등장 모션에 묶인 .hero__headline 과 달리 즉시 노출.
   다크 오버레이 재도입 금지 결정 유지 — 가독성은 .hero__scroll 의 다중 text-shadow 패턴. */
.hero__copy--static {
  z-index: 3;
}

.hero__title {
  margin: 0 0 20px;
  max-width: 24em;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--color-white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 0 12px rgba(0,0,0,0.35);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.hero__cta-btn--fill {
  /* 흰 13px 라벨 — #0abab5 면(2.4:1) → 딥틸(5.2:1) 가독 확보 */
  background-color: var(--color-accent-2);
  border: 1px solid var(--color-accent-2);
  color: var(--color-white);
}

.hero__cta-btn--fill:hover {
  background-color: #0e4c4b;
  border-color: #0e4c4b;
}

.hero__cta-btn--ghost {
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.85);
  color: var(--color-white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}

.hero__cta-btn--ghost:hover {
  background-color: rgba(255,255,255,0.14);
  border-color: var(--color-white);
}

/* ---- 히어로 신뢰 마크 (성형외과 전문의 인증) ----
   카피 상단 리드. 투명 실루엣이라 밝은 영상 위 분리는 drop-shadow 로 확보. */
.hero__badge {
  display: block;
  width: clamp(66px, 6.4vw, 94px);
  height: auto;
  margin: 0 0 22px;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.42));
}

/* ---- Intro 섹션 ---- */
.intro {
  padding: var(--space-xl) 0 var(--space-xl);
  overflow: hidden;
  position: relative;
}

.intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.intro__text-col {
  padding-right: var(--space-md);
}

.intro__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--overline-ls);
  text-transform: uppercase;
  color: var(--color-accent-text); /* 아이보리 위 대비 확보 */
  border-bottom: 1px solid var(--color-accent); /* 미세 그린 디바이더 통일 */
  padding-bottom: 6px;
  margin-bottom: 28px;
}

.intro__headline {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: var(--display-weight);
  line-height: var(--display-lh);
  color: var(--color-text);
  letter-spacing: var(--display-ls);
  margin-bottom: var(--space-sm);
}

.intro__headline em {
  font-style: italic;
  color: var(--color-accent-text); /* 아이보리 위 대비 확보 */
}

.intro__body {
  font-size: 18px;
  font-weight: 500;
  line-height: var(--body-lh);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  max-width: 30em;
}

.intro__image-col {
  position: relative;
}

.intro__image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
}

.intro__img-main {
  position: relative;
  grid-column: 1 / 3;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.intro__img-sub {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

/* 이미지 번호 워터마크 (01 / 02 / 03) */
.intro__img-num {
  position: absolute;
  right: 16px;
  bottom: 6px;
  z-index: 2;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1;
  font-size: 58px;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  letter-spacing: 0.02em;
  pointer-events: none;
}

.intro__img-sub .intro__img-num {
  font-size: 42px;
  right: 12px;
  bottom: 4px;
}

.intro__img-main img,
.intro__img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.intro__img-main:hover img,
.intro__img-sub:hover img {
  transform: scale(1.04);
}

/* ---- 네이버 블로그 최신글 카드 ---- */
.blog-sec {
  padding: 0 0 var(--space-xl);
  background-color: var(--color-bg);
}

.blog-sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.blog-sec__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--overline-ls);
  text-transform: uppercase;
  color: var(--color-accent-text); /* 아이보리 위 대비 확보 */
  border-bottom: 1px solid var(--color-accent); /* 미세 그린 디바이더 통일 */
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.blog-sec__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: var(--display-weight);
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: var(--display-ls);
}

.blog-sec__title em {
  font-style: italic;
  /* 26~42px 디스플레이 강조 — #0abab5(2.25:1)는 대형 텍스트 기준(3:1) 미달 → 딥틸 */
  color: var(--color-accent-2);
}

.blog-sec__more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color var(--transition), gap var(--transition);
}

.blog-sec__more:hover {
  color: var(--color-accent);
  gap: 12px;
}

.blog-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.blog-card {
  min-width: 0;
}

.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.blog-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-border);
}

.blog-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s var(--ease);
}

.blog-card__link:hover .blog-card__thumb-img {
  transform: scale(1.05);
}

.blog-card__thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  letter-spacing: 0.12em;
  color: var(--color-text-light);
  background: linear-gradient(135deg, #f7f7f5, #e5e5e5);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 20px;
  flex: 1;
}

.blog-card__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  letter-spacing: -0.01em;
  /* 2줄 말줄임 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 12px;
  color: var(--color-text-light);
}

.blog-card__source {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #00713e; /* 네이버 그린 표기 유지하되 흰 카드 위 AA(약 6:1) 통과 */
}

.blog-card__date {
  position: relative;
  padding-left: 11px;
}

.blog-card__date::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 10px;
  transform: translateY(-50%);
  background: var(--color-border);
}

.blog-sec__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: var(--space-lg) 0;
  text-align: center;
  color: var(--color-text-muted);
}

.blog-sec__empty a {
  font-weight: 600;
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .blog-sec__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  .blog-grid {
    gap: var(--space-sm);
  }
  .blog-card__title {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.intro__badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 116px;
  height: 128px;
  z-index: 2;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(155deg, #3DB1A4 0%, #298076 100%);
  box-shadow: 0 14px 30px -14px rgba(36, 126, 118, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 14px 0;
}

.trust-badge__plus {
  font-size: 13px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3px;
}

.trust-badge__num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  display: inline-flex;
  color: #ffffff;
}

.trust-badge__rule {
  display: block;
  width: 18px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.92);
  margin: 9px 0 8px;
  opacity: 0;
}

.trust-badge__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.trust-badge__line {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  display: inline-flex;
  padding-left: 0.16em;
  color: #ffffff;
}

.trust-badge__char {
  display: inline-block;
  white-space: pre;
}

/* 한 글자씩 써지는 애니메이션 — 뷰포트 진입(.is-writing) 시 순차 재생 */
.trust-badge.is-writing .trust-badge__char {
  opacity: 0;
  animation: trustCharIn 0.34s ease forwards;
}

.trust-badge.is-writing .trust-badge__rule {
  animation: trustRuleIn 0.3s ease forwards;
  animation-delay: 0.34s;
}

@keyframes trustCharIn {
  from {
    opacity: 0;
    transform: translateY(4px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes trustRuleIn {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-badge.is-writing .trust-badge__char,
  .trust-badge.is-writing .trust-badge__rule {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---- Director 섹션 ---- */
.director {
  padding: var(--space-xl) 0;
  background-color: var(--color-white);
}

.director__inner {
  display: grid;
  /* 세로 인물 사진 비율에 맞춰 왼쪽 사진 컬럼을 좁힘(얼굴만 확대되던 문제 해소) */
  grid-template-columns: minmax(360px, 0.55fr) 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 680px;
}

.director__image-col {
  position: relative;
  overflow: hidden;
}

.director__image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.8s var(--ease);
}

.director__image-col:hover img {
  transform: scale(1.02); /* hover 모션 절제 */
}

.director__image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.director__text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--color-white);
}

.director__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--overline-ls);
  text-transform: uppercase;
  color: var(--color-accent-text); /* 아이보리 위 대비 확보 */
  border-bottom: 1px solid var(--color-accent); /* 미세 그린 디바이더 통일 */
  padding-bottom: 6px;
  margin-bottom: 28px;
}

.director__headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: var(--display-weight);
  line-height: var(--display-lh);
  color: var(--color-text);
  letter-spacing: var(--display-ls);
  margin-bottom: var(--space-sm);
}

.director__name {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.director__body {
  font-size: 15px;
  font-weight: 400;
  line-height: var(--body-lh);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.director__credentials {
  margin-bottom: var(--space-md);
}

.director__credentials li {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 0;
  padding-left: 16px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.director__credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* 원장 이력 — 그룹(자격·연수·경력) */
.director__cv {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: var(--space-md);
}

.director__cv-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* 13px 소형 라벨 — 흰 배경 위 #0abab5 는 2.4:1 → 딥틸(5.2:1) */
  color: var(--color-accent-2);
  margin-bottom: 10px;
}

.director__cv .director__credentials {
  margin-bottom: 0;
}

.director__cv .director__credentials li {
  font-size: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.director__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-hair);
  padding-bottom: 4px;
  transition: color var(--transition);
  align-self: flex-start;
  margin-top: var(--space-sm);
}

/* 그린 언더라인 좌→우 reveal (.gnb__link::after / .blog-sec__more 패턴 정렬) */
.director__cta::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-lux);
}

.director__cta::after {
  content: '→';
  transition: transform var(--transition);
}

.director__cta:hover {
  color: var(--color-accent-text);
}

.director__cta:hover::before {
  width: 100%;
}

.director__cta:hover::after {
  transform: translateX(4px);
}

/* ---- 모바일 반응형 ---- */
@media (max-width: 1024px) {
  .hero__copy {
    padding-inline: var(--space-md);
  }

  .hero .swiper-pagination {
    left: var(--space-md);
  }

  .hero__scroll {
    right: var(--space-md);
  }
}

@media (max-width: 768px) {
  

  

  .hero__badge {
    margin-bottom: 14px;
  }

  .hero__title {
    font-size: clamp(17px, 4.6vw, 22px);
    margin-bottom: 16px;
  }

  .hero__cta-btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 13px;
  }

  .intro__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .intro__text-col {
    padding-right: 0;
    order: 2;
  }

  .intro__image-col {
    order: 1;
  }

  .intro__badge {
    left: 0;
    bottom: 0;
    width: 88px;
    height: 97px;
    padding: 10px 0;
  }

  .trust-badge__num {
    font-size: 30px;
  }

  

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

  .director__image-col {
    height: 380px;
  }

  .director__text-col {
    padding: var(--space-lg) var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero__copy {
    padding-inline: var(--space-sm);
    bottom: 12%;
  }

  /* 모바일 하단 퀵바와 겹치지 않게 여유 + CTA 두 줄 스택 */
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-width: 320px;
  }

  .hero .swiper-pagination {
    left: var(--space-sm);
    bottom: 24px;
  }

  .hero__scroll {
    display: none;
  }

  .intro__image-grid {
    grid-template-columns: 1fr;
  }

  .intro__img-main {
    grid-column: 1;
  }

  .intro__img-sub:last-child {
    display: none;
  }

  
}

/* ============================================================
   뉴스 슬라이더 자동재생 정지/재생 토글 (LowerSections .news-controls)
   — 틸 그라데이션 .news 배경 위 화이트 불릿과 동일 톤의 절제된 소형 컨트롤.
   상태 전환(is-paused)은 LegacyScripts 가 토글.
   ============================================================ */
/* renew-main.css 의 .news .swiper-pagination margin-top 중복 상쇄 (controls 행이 간격 담당) */
.news-controls .swiper-pagination {
  margin-top: 0;
}

.news-autoplay-toggle {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.news-autoplay-toggle:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: var(--color-white);
}

.news-autoplay-toggle svg {
  width: 14px;
  height: 14px;
  display: block;
}

.news-autoplay-toggle .news-autoplay-toggle__play { display: none; }
.news-autoplay-toggle.is-paused .news-autoplay-toggle__play { display: block; }
.news-autoplay-toggle.is-paused .news-autoplay-toggle__pause { display: none; }

/* ============================================================
   우측 플로팅 빠른 상담 바 — 일치성형외과 풍 미니멀 프리미엄
   ============================================================ */
.quick-bar {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  width: 94px;
}

.quick-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 8px;
  text-decoration: none;
  /* 다크 글래스 위 0.82 백색은 약 4:1 — 13px AA(4.5:1) 충족하도록 상향 */
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
  position: relative;
}

/* 항목 사이 얇은 구분선 */
.quick-bar__item + .quick-bar__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.quick-bar__item:hover {
  /* 다크 글래스 위 hover — accent-text(#0e4c4b)는 다크 위 비가시 → 시안 포인트 */
  color: #49fffc;
  background-color: rgba(255, 255, 255, 0.04);
}

.quick-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: inherit;
}
.quick-bar__icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
.quick-bar__icon--lg { width: 44px; height: 44px; }
.quick-bar__icon--lg svg { width: 37px; height: 37px; }

/* 위챗 ID 안내 팝오버 — 데스크톱: 바 왼쪽에 표시 */
.quick-bar__wechat-pop {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 9px 13px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 768px) {
  /* 모바일: 우측 세로 바 → 하단 가로 고정 바 (전화·예약·카톡·위챗·길찾·인스타 6칸, 블로그 숨김) */
  .quick-bar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    flex-direction: row;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: rgba(15, 17, 18, 0.94);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  }
  .quick-bar__item {
    flex: 1 1 0;
    min-width: 0;
    gap: 5px;
    padding: 9px 2px 8px;
    font-size: clamp(9px, 2.7vw, 11px);
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  /* 항목 구분선: 가로선 → 세로선 */
  .quick-bar__item + .quick-bar__item::before {
    top: 11px;
    bottom: 11px;
    left: 0;
    right: auto;
    height: auto;
    width: 1px;
  }
  .quick-bar__icon { width: 26px; height: 26px; }
  .quick-bar__icon svg { width: 22px; height: 22px; }
  .quick-bar__icon--lg { width: 28px; height: 28px; }
  .quick-bar__icon--lg svg { width: 24px; height: 24px; }
  /* 긴 외국어 라벨이 칸을 넘어 겹치지 않도록 칸 폭에 맞춰 말줄임 (아이콘으로 의미 전달) */
  .quick-bar__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
  /* 위챗 ID 안내 팝오버 — 모바일: 하단 바 위쪽 중앙에 표시 */
  .quick-bar__wechat-pop {
    right: auto;
    top: auto;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%);
  }
}

/* ============================================================
   메인 이미지 라운드 — 직각/거의 직각(4px) 이미지들을
   고급스러운 라운드 코너로 통일 (renew-main.css 이후 로드되어 오버라이드)
   ============================================================ */
:root {
  /* radius 처리 완료(불변) — renew.css 메인 토큰과 분리된 home-inline 전용 토큰. 값 변경 금지. */
  --img-radius: 18px;      /* 카드·갤러리 등 일반 이미지 */
  --img-radius-lg: 26px;   /* 인트로 메인·원장 등 대형 피처 이미지 */
}

/* 카드형 — 카드가 overflow:hidden 이라 이미지 상단 코너까지 함께 클립 */
.sig-card,
.subject-card,
.blog-card__link {
  border-radius: var(--img-radius);
}

/* 단독 이미지 컨테이너 (overflow:hidden 으로 내부 img 클립) */
.endoscope-row__media,
.interior-cell,
.intro__img-sub {
  border-radius: var(--img-radius);
}

/* 대형 피처 이미지 */
.intro__img-main,
.director__image-col {
  border-radius: var(--img-radius-lg);
}

@media (max-width: 768px) {
  :root {
    --img-radius: 14px;
    --img-radius-lg: 18px;
  }
}

/* ============================================================
   섹션 진입 reveal 훅 — JS IntersectionObserver 가 .is-inview 부여 전제.
   구조/DOM 불변, 훅 클래스만. reduced-motion 은 renew.css 포괄 규칙으로 무력화.
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--reveal-dur) var(--ease-lux), transform var(--reveal-dur) var(--ease-lux);
}

[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

/* ============================================================
   이미지 스크롤 등장 — 인트로 이하 메인페이지 이미지에 "서로 다른" 등장 모션.
   JS([data-anim])가 뷰포트 진입 시 .is-inview 부여. 변형별로 모션을 분리해
   같은 효과 반복(지루함)을 피하되, 0.9~1.1s·ease-lux 로 절제(과하지 않게).
   래퍼(고정 크기 + overflow:hidden)에 적용 → 내부 fill 이미지·hover 영향 없음.
   ============================================================ */
[data-anim] {
  opacity: 0;
}

[data-anim].is-inview {
  opacity: 1;
  animation-duration: 0.95s;
  animation-timing-function: var(--ease-lux);
  animation-fill-mode: both;
}

[data-anim="rise"].is-inview  { animation-name: animRise; }
[data-anim="zoom"].is-inview  { animation-name: animZoom; animation-duration: 1s; }
[data-anim="left"].is-inview  { animation-name: animLeft; }
[data-anim="right"].is-inview { animation-name: animRight; }
[data-anim="clip"].is-inview  { animation-name: animClip; animation-duration: 1.1s; }
[data-anim="tilt"].is-inview  { animation-name: animTilt; }

@keyframes animRise {
  from { opacity: 0; transform: translateY(46px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes animZoom {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes animLeft {
  from { opacity: 0; transform: translateX(-52px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes animRight {
  from { opacity: 0; transform: translateX(52px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes animClip {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: scale(1.04); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); transform: scale(1); }
}
@keyframes animTilt {
  from { opacity: 0; transform: perspective(820px) rotateX(7deg) translateY(34px); }
  to   { opacity: 1; transform: perspective(820px) rotateX(0) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1 !important; }
  [data-anim].is-inview { animation: none !important; }
}

/* ============================================================
   메인 헤드라인 폰트 — 2026-06-15 사이트 전역 본문·제목 단일 폰트 통일.
   GmarketSansBold/Gowun Batang 제거 → 본문과 동일한
   Freesentation(next/font self-host, --font-free) 으로 일원화.
   ============================================================ */
:root {
  --font-display: var(--font-free), 'Freesentation', 'Pretendard', 'Noto Sans KR', sans-serif;
  /* 메인페이지 헤드라인 투톤 강조 민트 — 레퍼런스 이미지(#93d1cf) 계열.
     #34b0a6 은 실측 2.5:1(흰/크림 배경)로 대형 텍스트 AA(3:1) 미달이라
     민트 휴를 유지한 채 3.4:1 까지 깊게 보정. */
  --color-accent-mint: #21948d;
}

/* 헤드라인 키워드 투톤 강조 — 디스플레이 폰트 weight 유지(faux-bold 방지) */
.kw-mint {
  color: var(--color-accent-mint);
  font-weight: inherit;
  font-family: inherit;
}

.hero__headline,
.intro__headline,
.director__headline,
.sec-head__title,
.endoscope-row__title,
.strength-item__title {
  font-family: var(--font-display);
  font-weight: 700; /* Freesentation 볼드(700) — 헤드라인 무게감 유지 */
  letter-spacing: -0.015em;
}

/* 인트로 강조어: Freesentation 은 이탤릭이 없으므로 직립 + 그린 포인트 유지 */
.intro__headline em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  color: var(--color-accent-text);
}

/* ============================================================
   Intro 섹션 — 소프트 틸 그라데이션 배경 (레퍼런스 매칭)
   틸 위 가독성을 위해 텍스트는 화이트 계열로 전환
   ============================================================ */
.intro {
  background: linear-gradient(120deg, #6fbeb6 0%, #93d2cb 46%, #cfeae6 100%);
}

.intro__kicker {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.intro__headline {
  color: #ffffff;
}

.intro__headline em {
  color: #eafffb; /* 틸 위에서 살짝 밝은 강조 */
}

.intro__body {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 10px rgba(18, 66, 60, 0.18);
}

/* ── 틸 그라데이션 섹션(인트로·뉴스) 투톤 강조 ──
   레퍼런스 이미지의 시안-틸 강조 글씨를, 어두운 그라데이션 위에서도 또렷하도록
   더 진한 딥 시안-틸로 떨어뜨려 흰 텍스트와 강한 투톤 대비를 만든다. */
:root {
  --color-tone-emph: #073f44;
}

.intro-emph,
.news .kw-deep {
  color: var(--color-tone-emph);
}

/* 헤드라인 강조어는 디스플레이 폰트 weight 유지(faux-bold 방지) */
.intro__headline .intro-emph,
.news .sec-head__title .kw-deep {
  font-weight: 400;
  text-shadow: none;
}

/* ============================================================
   시그니처 카드 — 아래에서 위로 하나씩 올라오는 등장
   (스태거 110ms 는 LegacyScripts 의 IntersectionObserver 가 제어,
    여기선 카드 1개의 "떠오르는" 모션을 keyframe 으로 정의 →
    transition 속성은 건드리지 않아 hover 반응은 그대로 유지)
   ============================================================ */
.sig-card[data-reveal] {
  opacity: 0;
}

/* 시그니처 카드는 더 극적으로 — 큰 이동거리 + 스케일 팝 + 블러 해제 */
.sig-card[data-reveal].is-inview {
  opacity: 1;
  animation: sigCardRiseUpDramatic 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sigCardRiseUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sigCardRiseUpDramatic {
  0% {
    opacity: 0;
    transform: translateY(110px) scale(0.9);
    filter: blur(7px);
  }
  55% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sig-card[data-reveal].is-inview {
    animation: none;
  }
}

/* ============================================================
   강점 카드 · 인트로 — 시그니처 카드와 동일한 rise-up 등장
   (효과·속도 1:1: sigCardRiseUp 0.95s, 스태거 150ms 는 LegacyScripts 가 제어)
   ============================================================ */
.strength-item[data-reveal],
.intro__text-col[data-reveal],
.intro__image-col[data-reveal] {
  opacity: 0;
}

.strength-item[data-reveal].is-inview,
.intro__text-col[data-reveal].is-inview,
.intro__image-col[data-reveal].is-inview {
  opacity: 1;
  animation: sigCardRiseUp 0.95s var(--ease-lux);
}

@media (prefers-reduced-motion: reduce) {
  .strength-item[data-reveal].is-inview,
  .intro__text-col[data-reveal].is-inview,
  .intro__image-col[data-reveal].is-inview {
    animation: none;
  }
}
