/* =========================================================
   style.css - 지니헤어 홈페이지 전체 디자인
   ---------------------------------------------------------
   0) 색/글꼴 기본값(변수)과 기본 설정
   1) 공통 요소  : 컨테이너, 제목, 버튼, 카드, 나타나는 효과, 커서 빛
   2) 머리말(메뉴)
   3) 첫 화면(hero), 흐르는 단어 띠
   4) 메인 구역들 : 살롱 소개, 대표 시술, 메인의 Before & After / 제품 목록
   5) 서브 페이지 : 제목 영역, 원장소개, 카드 목록(Before & After, 제품), 문의하기, 찾아오시는길
   6) 꼬리말 (왼쪽 로고 / 오른쪽 소개 문구 / 선 / 왼쪽 저작권 / 오른쪽 관리자)
   7) Before & After 팝업(전/후 비교), 제품 팝업, 사진 크게 보기
   8) 모바일 / 움직임 줄이기
   ★ 관리자 페이지 전용 스타일은 admin.css 에 있습니다.
   ★ 색을 바꾸고 싶으면 아래 :root 의 값만 고치면 사이트 전체에 반영됩니다.
   ========================================================= */


/* ---------------------------------------------------------
   0) 변수 / 기본 설정
   --------------------------------------------------------- */
:root {
    --ink: #0d0a0b;                  /* 가장 어두운 배경 (블랙) */
    --ink-2: #151012;
    --ink-3: #1f181b;

    --ivory: #f7f2ea;                /* 내용 영역 배경 (아이보리) */
    --ivory-2: #efe7da;
    --paper: #fffdf9;                /* 카드 배경 */

    --gold: #c9a45c;                 /* 포인트 색: 샴페인 골드 */
    --gold-2: #e6c987;
    --gold-3: #9a7433;
    --rose: #d9a79b;                 /* 보조 포인트: 로즈 */

    --text-dark: #2a2326;            /* 밝은 배경 위의 글자색 */
    --muted-dark: #7a6c68;
    --text-light: #efe6dc;           /* 어두운 배경 위의 글자색 */
    --muted-light: #b3a597;
    --line-light: rgba(201, 164, 92, .3);
    --line-dark: rgba(201, 164, 92, .24);

    --radius: 20px;
    --maxw: 1240px;
    --header-h: 80px;

    --serif: "Noto Serif KR", "Nanum Myeongjo", "Batang", "Times New Roman", Georgia, serif;
    --sans: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--ivory);
    overflow-x: hidden;
    word-break: keep-all;            /* 한글 단어 중간에서 줄이 바뀌지 않게 */
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

::selection { background: var(--gold); color: #1a1200; }


/* ---------------------------------------------------------
   1) 공통 요소
   --------------------------------------------------------- */
.container { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }

.section { position: relative; padding: clamp(36px, 4.2vw, 64px) 0; }
.section.dark { color: var(--text-light); background: radial-gradient(900px 500px at 85% 0%, rgba(201, 164, 92, .13), transparent 60%), linear-gradient(180deg, var(--ink-2), var(--ink)); }
.section.paper { background: var(--paper); }

/* 구역 제목 (작은 영문 + 큰 제목 + 설명) */
.section-head { margin-bottom: clamp(20px, 2.6vw, 30px); }   /* 최대 폭 제한(720px)을 없애 소제목이 일찍 줄바꿈되지 않게 */
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .concept-text h2 {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.32;
    letter-spacing: -.02em;
    font-weight: 700;
}
.section.dark .section-head h2 { color: #fbf4e8; }
.section-head h2 em, .concept-text h2 em, .hero h1 em, .page-hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--gold-3), var(--gold-2) 45%, var(--gold) 75%, #b98a43);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-head p { margin-top: 10px; color: var(--muted-dark); font-size: 1.02rem; }
.section.dark .section-head p { color: var(--muted-light); }

/* 제목 위의 작은 영문 글자 (아이브로우) */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--gold-3);
}
.section.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-2); }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.center .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s, background .3s, border-color .3s, color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold { color: #1d1400; background: linear-gradient(120deg, #f2dba5, var(--gold) 55%, #b98a43); box-shadow: 0 10px 30px rgba(201, 164, 92, .38); }
.btn-gold:hover { box-shadow: 0 16px 44px rgba(201, 164, 92, .6); }
.btn-ghost { color: var(--gold-2); background: rgba(255, 255, 255, .04); border-color: rgba(230, 201, 135, .5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(230, 201, 135, .14); border-color: var(--gold-2); }
.btn-outline { color: var(--text-dark); background: transparent; border-color: rgba(42, 35, 38, .35); }
.btn-outline:hover { color: #fff; background: var(--text-dark); border-color: var(--text-dark); }
.btn-sm { padding: 11px 20px; font-size: .9rem; }
.btn .icon { width: 1.15em; height: 1.15em; }

/* 카드 (밝은 배경 위의 흰 카드) */
.card { position: relative; background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); box-shadow: 0 12px 36px rgba(60, 40, 20, .07); }
.section.dark .card, .card.dark { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* 스크롤하면 스르륵 나타나는 효과 (자바스크립트가 켜져 있을 때만) */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; animation: revealUp .9s ease backwards; animation-delay: var(--d, 0s); }
@keyframes revealUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* 마우스를 올리면 살짝 기울어지는 카드 (기울기는 main.js 가 --rx, --ry 로 전달) */
.tilt { transition: transform .25s ease-out, box-shadow .35s, border-color .35s; will-change: transform; }

/* 마우스를 따라다니는 은은한 금빛 (main.js 가 만드는 요소) */
#cursorGlow { position: fixed; left: 0; top: 0; z-index: 60; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle, rgba(214, 176, 106, .2), transparent 62%); }
#cursorGlow.on { opacity: 1; }


/* ---------------------------------------------------------
   2) 머리말 (로고 + 메뉴)
   --------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background .35s, box-shadow .35s; }
.site-header.scrolled,
body:not(.page-home) .site-header { background: rgba(13, 10, 11, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.header-inner { width: min(1400px, 100% - 40px); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { display: block; height: 50px; width: auto; }

.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.3vw, 38px); }
.main-nav a { position: relative; padding: 8px 2px; font-weight: 600; font-size: .98rem; color: var(--text-light); white-space: nowrap; transition: color .25s; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--gold-2); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }


.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--gold-2); transition: transform .3s, opacity .3s, top .3s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }


/* ---------------------------------------------------------
   3) 첫 화면 (hero) + 흐르는 단어 띠
   --------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 85vh;
    min-height: 85svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 24px) 0 48px;
    overflow: hidden;
    color: var(--text-light);
    background:
        radial-gradient(1100px 700px at 82% 18%, rgba(201, 164, 92, .22), transparent 62%),
        radial-gradient(900px 600px at 4% 96%, rgba(217, 167, 155, .2), transparent 62%),
        linear-gradient(180deg, #120d0f 0%, #1a1114 55%, #0d0a0b 100%);
}

/* 천천히 움직이는 금빛/로즈빛 덩어리 */
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .42; animation: drift 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 520px; height: 520px; left: -150px; top: 6%;  background: #8b5a3c; }
.aurora span:nth-child(2) { width: 470px; height: 470px; right: 2%;   top: -100px; background: #c9a45c; animation-duration: 28s; animation-delay: -7s; }
.aurora span:nth-child(3) { width: 400px; height: 400px; right: 26%;  bottom: -60px; background: #a8556b; opacity: .3; animation-duration: 25s; animation-delay: -13s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(60px, 40px, 0) scale(1.18); } }

/* 금빛 반짝임이 떠다니는 캔버스 (main.js 가 그립니다) */
.sparkle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; }

.hero .eyebrow { margin-bottom: 16px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.6rem, 6.4vw, 5.3rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 700; color: #fbf4e8; }
.hero-lead { margin-top: 16px; max-width: 580px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; color: var(--text-light); }
.hero-points .icon { color: var(--gold-2); width: 1.1em; height: 1.1em; }

/* 오른쪽 장식: 글자가 빙글 도는 금빛 원 */
.hero-emblem { position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 1; display: grid; place-items: center; animation: floaty 8s ease-in-out infinite; }
.hero-emblem::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 32% 24%, rgba(230, 201, 135, .24), rgba(30, 20, 24, .7) 66%); border: 1px solid var(--line-dark); box-shadow: inset 0 0 60px rgba(201, 164, 92, .14), 0 0 90px rgba(201, 164, 92, .2); }
.hero-emblem .ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 36s linear infinite; }
.hero-emblem .ring text { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: 7px; fill: var(--gold-2); }
.hero-emblem .mark { position: relative; width: 38%; height: auto; color: var(--gold-2); filter: drop-shadow(0 0 22px rgba(230, 201, 135, .5)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 50% { transform: translateY(-14px); } }

.scroll-hint { position: absolute; left: 50%; bottom: 8px; z-index: 3; width: 22px; height: 34px; margin-left: -11px; border: 2px solid rgba(230, 201, 135, .55); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-2); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* 첫 화면 아래에서 흐르는 단어 띠 */
.marquee { overflow: hidden; padding: 10px 0; background: #0d0a0b; border-block: 1px solid var(--line-dark); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--serif); font-size: clamp(1.1rem, 2.1vw, 1.55rem); font-weight: 700; letter-spacing: .22em; color: transparent; -webkit-text-stroke: 1px rgba(230, 201, 135, .7); }
.marquee-track span::after { content: "\2726"; font-size: .6em; color: var(--gold); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }


/* ---------------------------------------------------------
   4) 메인 구역들
   --------------------------------------------------------- */

/* 살롱 소개 */
.concept-center { max-width: 980px; text-align: center; }
.concept-text p { margin: 12px auto 0; max-width: 760px; color: var(--muted-dark); font-size: 1.04rem; }
.concept-text .eyebrow { justify-content: center; }
.concept-text .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.concept-text h2 { margin-top: 2px; color: var(--text-dark); }
.concept-text h2.one-line, .section-head h2.one-line { white-space: nowrap; font-size: clamp(1.2rem, 4.2vw, 3rem); }   /* 제목을 한 줄로 (화면 너비에 맞춰 글자 크기가 줄어듦. 480px 이하 휴대폰만 아래에서 줄바꿈 허용) */
.concept-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.concept-points li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-light); background: var(--paper); font-weight: 700; color: var(--text-dark); }
.concept-points .icon { color: var(--gold-3); width: 1.05em; height: 1.05em; }

/* 대표 시술 4가지 */
.sig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sig-card { padding: 26px 24px 24px; overflow: hidden; }
.sig-card:hover { border-color: var(--gold); box-shadow: 0 26px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(201, 164, 92, .25); }
.sig-en { display: block; margin-bottom: 12px; font-size: .74rem; font-weight: 800; letter-spacing: .3em; color: var(--gold-2); }
.sig-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; color: #1d1400; background: linear-gradient(135deg, #f2dba5, var(--gold)); box-shadow: 0 10px 26px rgba(201, 164, 92, .35); transition: transform .4s; }
.sig-icon .icon { width: 24px; height: 24px; }
.sig-card:hover .sig-icon { transform: rotate(-10deg) scale(1.08); }
.sig-card h3 { font-family: var(--serif); font-size: 1.5rem; color: #fbf4e8; }
.sig-card p { margin-top: 8px; color: var(--muted-light); font-size: .96rem; }
.sig-no { position: absolute; right: 20px; top: 6px; font-family: var(--serif); font-size: 4.2rem; font-weight: 700; line-height: 1; color: rgba(230, 201, 135, .07); }

/* Before & After 카드 (메인, Before & After 페이지 공통) */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ba-card { overflow: hidden; cursor: pointer; }
.ba-card:hover, .ba-card:focus-visible { box-shadow: 0 28px 64px rgba(60, 40, 20, .2); border-color: var(--gold); outline: none; }
.ba-card.is-hidden { display: none; }
.ba-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--gold); }
.ba-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(160deg, #ece1d0, #d9ccb6); }
.ba-photo img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ivory-2); transition: transform .8s ease; }   /* 사진 전체가 보이게, 남는 공간은 여백 색 */
.ba-card:hover .ba-photo img { transform: scale(1.07); }
.ba-photo.empty { display: grid; place-items: center; color: rgba(42, 35, 38, .35); }
.ba-photo.empty .icon { width: 34px; height: 34px; }
.ba-tag { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 3px 11px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .14em; color: #fff; background: rgba(13, 10, 11, .62); backdrop-filter: blur(6px); }
.ba-tag.after { color: #1d1400; background: linear-gradient(120deg, #f2dba5, var(--gold)); }
.ba-more { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #fff; background: rgba(13, 10, 11, .62); }
.ba-body { padding: 16px 18px 18px; }
.ba-cat { display: inline-block; padding: 3px 12px; margin-bottom: 8px; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .04em; color: var(--gold-3); background: rgba(201, 164, 92, .14); border: 1px solid var(--line-light); }
.ba-body h3 { font-family: var(--serif); font-size: 1.22rem; line-height: 1.4; color: var(--text-dark); }
.ba-body p { margin-top: 6px; color: var(--muted-dark); font-size: .94rem; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 제품 카드 (메인, 제품소개 페이지 공통) */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { overflow: hidden; cursor: pointer; }
.product-card:hover, .product-card:focus-visible { box-shadow: 0 28px 64px rgba(60, 40, 20, .2); border-color: var(--gold); outline: none; }
.product-card.is-hidden { display: none; }
.product-thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff, #efe5d4); }
.product-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ivory-2); transition: transform .8s ease; }
.product-card:hover .product-thumb img { transform: scale(1.08); }
.product-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; color: rgba(154, 116, 51, .5); font-size: .75rem; font-weight: 800; letter-spacing: .22em; }
.product-ph .icon { width: 44px; height: 44px; }
.product-body { padding: 14px 16px 16px; }
.product-cat { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .18em; color: var(--gold-3); }
.product-body h3 { font-family: var(--serif); font-size: 1.12rem; line-height: 1.4; color: var(--text-dark); }
.product-body p { margin-top: 4px; color: var(--muted-dark); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .18em; color: var(--gold-3); }
.product-more .icon { width: 1em; height: 1em; transition: transform .3s; }
.product-card:hover .product-more .icon { transform: translateX(5px); }

.empty-state { padding: 36px 20px; text-align: center; color: var(--muted-dark); border: 1px dashed var(--line-light); border-radius: var(--radius); background: rgba(255, 255, 255, .5); }
.empty-state .icon { width: 44px; height: 44px; margin-bottom: 14px; color: var(--gold); }
.more-link { display: flex; justify-content: center; margin-top: 24px; }

/* ---------------------------------------------------------
   5) 서브 페이지
   --------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 34px) 0 30px; color: var(--text-light); background: radial-gradient(900px 400px at 85% 0%, rgba(201, 164, 92, .24), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(217, 167, 155, .16), transparent 60%), linear-gradient(180deg, #170f12, #0f0b0c); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; color: #fbf4e8; }
.page-hero p { margin-top: 8px; color: var(--muted-light); font-size: 1.05rem; }
.page-body { padding: 30px 0 clamp(36px, 4.2vw, 56px); }

/* 필터 버튼 (카테고리) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-light); background: var(--paper); font-weight: 700; font-size: .92rem; color: var(--text-dark); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.chip.is-active { color: #1d1400; background: linear-gradient(120deg, #f2dba5, var(--gold)); border-color: transparent; }

/* 원장소개 */
.director-grid { display: grid; grid-template-columns: 420px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.portrait { position: sticky; top: calc(var(--header-h) + 20px); }
.portrait-frame { position: relative; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, #2a1d21, #120d0f); box-shadow: 0 36px 80px rgba(40, 25, 15, .35); }
.portrait-frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(230, 201, 135, .55); border-radius: 18px; pointer-events: none; }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ivory-2); }
.portrait-frame .portrait-ph { font-size: 6rem; }
.portrait-name { margin-top: 14px; text-align: center; }
.portrait-name strong { font-family: var(--serif); font-size: 1.8rem; color: var(--text-dark); }
.portrait-name span { display: block; margin-top: 4px; font-size: .78rem; font-weight: 800; letter-spacing: .3em; color: var(--gold-3); }

.director-intro { font-family: var(--serif); font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.8; color: var(--text-dark); white-space: pre-line; }
.director-intro::first-letter { color: var(--gold-3); }
.block-title { display: flex; align-items: center; gap: 16px; margin: 32px 0 16px; font-size: .8rem; font-weight: 800; letter-spacing: .3em; color: var(--gold-3); }
.block-title::after { content: ""; flex: 1; height: 1px; background: var(--line-light); }

/* 경력: 세로 타임라인 */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--gold), rgba(201, 164, 92, .1)); }
.timeline li { position: relative; padding: 2px 0 12px; font-size: 1.08rem; font-weight: 600; color: var(--text-dark); }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 8px; width: 17px; height: 17px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--gold); box-shadow: 0 0 0 5px var(--ivory); }
.timeline li:first-child { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.timeline li:first-child::before { background: var(--gold); }

/* 교육 이수 */
.edu-list { display: grid; gap: 8px; }
.edu-list li { display: flex; gap: 14px; align-items: flex-start; padding: 11px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line-light); font-weight: 600; transition: transform .3s, border-color .3s, box-shadow .3s; }
.edu-list li:hover { transform: translateX(6px); border-color: var(--gold); box-shadow: 0 10px 28px rgba(60, 40, 20, .08); }
.edu-list .icon { margin-top: 3px; width: 1.1em; height: 1.1em; color: var(--gold-3); }

/* 문의하기 */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.form-card, .info-card { padding: clamp(18px, 2.6vw, 30px); }
.form-card h2, .info-card h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-size: .9rem; font-weight: 700; color: var(--text-dark); }
.field label span { color: #b3563f; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(42, 35, 38, .18); background: #fff; color: var(--text-dark); font: inherit; transition: border-color .25s, box-shadow .25s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 92, .2); }
.field input::placeholder, .field textarea::placeholder { color: #aa9f98; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* 자동 가입 프로그램을 걸러내는 숨김 칸 */

/* 개인정보 동의 */
.consent { margin: 2px 0 16px; padding: 12px 16px; border-radius: 14px; background: rgba(201, 164, 92, .1); border: 1px solid var(--line-light); }
.consent-note { font-size: .92rem; color: var(--muted-dark); }
.consent-check { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-weight: 700; cursor: pointer; }
.consent-check input { width: 22px; height: 22px; accent-color: var(--gold-3); flex: none; cursor: pointer; }
.consent-check em { font-style: normal; color: #b3563f; }
.consent details { margin-top: 8px; font-size: .88rem; color: var(--muted-dark); }
.consent summary { cursor: pointer; font-weight: 700; color: var(--gold-3); }
.consent details ul { margin-top: 6px; padding-left: 18px; list-style: disc; }

.form-msg { padding: 16px 20px; margin-bottom: 14px; border-radius: 12px; font-weight: 600; }
.form-msg.ok { color: #1e5a3a; background: #e3f4ea; border: 1px solid #a8d9bc; }
.form-msg.err { color: #8d2f25; background: #fbe8e4; border: 1px solid #efb7ad; }

.info-list li { display: flex; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-light); }
.info-list li:first-child { border-top: 0; padding-top: 0; }
.info-list .icon { margin-top: 3px; width: 22px; height: 22px; color: var(--gold-3); }
.info-list strong { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .22em; color: var(--gold-3); }
.info-list span, .info-list a { font-size: 1.04rem; color: var(--text-dark); }
.info-list a:hover { color: var(--gold-3); }
.info-list small { display: block; color: var(--muted-dark); font-size: .88rem; }

/* 찾아오시는길 */
.location-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; align-items: stretch; }
.map-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; min-height: 380px; }
.map-card iframe { flex: 1; width: 100%; min-height: 340px; border: 0; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }


/* ---------------------------------------------------------
   6) 꼬리말 / 휴대폰 전화 버튼
   --------------------------------------------------------- */
.site-footer { color: var(--text-light); background: linear-gradient(180deg, #0f0b0c, #070506); border-top: 1px solid var(--line-dark); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 14px 0 10px; }
.footer-logo img { display: block; height: 46px; width: auto; }
.footer-tagline { text-align: right; color: var(--muted-light); font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px 0 10px; border-top: 1px solid var(--line-dark); font-size: .85rem; color: var(--muted-light); }
.footer-bottom a:hover { color: var(--gold-2); }



/* ---------------------------------------------------------
   7) 팝업: Before & After(전/후 비교), 제품 상세, 사진 크게 보기
   --------------------------------------------------------- */
.lb { position: fixed; inset: 0; z-index: 1000; display: none; grid-template-columns: minmax(0, 1fr) 390px; color: var(--text-light); background: rgba(8, 5, 6, .96); backdrop-filter: blur(8px); }
.lb.open { display: grid; }
body.lb-open, body.pm-open { overflow: hidden; }

.lb-close { position: absolute; top: 16px; right: 18px; z-index: 6; width: 48px; height: 48px; border: 0; border-radius: 50%; font-size: 30px; line-height: 1; color: #fbf4e8; background: rgba(255, 255, 255, .1); cursor: pointer; transition: background .25s, transform .25s; }
.lb-close:hover { background: rgba(201, 164, 92, .5); transform: rotate(90deg); }

.lb-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 22px 22px 14px; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-stage > img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 70px rgba(0, 0, 0, .6); user-select: none; -webkit-user-drag: none; }
.lb-empty { color: var(--muted-light); }
.lb-count { padding-top: 12px; text-align: center; font-size: .85rem; font-weight: 800; letter-spacing: .2em; color: var(--gold-2); min-height: 1.9em; }

/* 전/후 비교 슬라이더 */
.cmp { --pos: 50%; position: relative; height: 100%; max-width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 20px 70px rgba(0, 0, 0, .6); touch-action: pan-y; user-select: none; cursor: ew-resize; }
.cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }          /* 손잡이 왼쪽만 BEFORE 사진이 보임 */
.cmp-tag { position: absolute; top: 14px; z-index: 3; padding: 4px 13px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .16em; pointer-events: none; }
.cmp-tag-before { left: 14px; color: #fff; background: rgba(13, 10, 11, .65); }
.cmp-tag-after { right: 14px; color: #1d1400; background: linear-gradient(120deg, #f2dba5, var(--gold)); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4; width: 44px; margin-left: -22px; padding: 0; border: 0; background: transparent; cursor: ew-resize; }
.cmp-handle::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, #fff3cf, var(--gold)); box-shadow: 0 0 14px rgba(0, 0, 0, .6); }
.cmp-handle span { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: linear-gradient(135deg, #f6e3b0, var(--gold)); box-shadow: 0 6px 22px rgba(0, 0, 0, .55); }
.cmp-handle span::before, .cmp-handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid #1d1400; border-left: 2px solid #1d1400; }
.cmp-handle span::before { left: 11px; transform: rotate(-45deg); }
.cmp-handle span::after { right: 11px; transform: rotate(135deg); }
.cmp-handle:focus-visible span { outline: 3px solid #fff; }

.lb-side { display: flex; flex-direction: column; min-height: 0; padding: 74px 28px 26px; overflow-y: auto; border-left: 1px solid var(--line-dark); background: rgba(24, 17, 20, .7); }
.lb-kind { align-self: flex-start; padding: 5px 15px; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .06em; color: #1d1400; background: linear-gradient(120deg, #f2dba5, var(--gold)); }
.lb-kind:empty { display: none; }
.lb-side h3 { margin-top: 16px; font-family: var(--serif); font-size: 1.55rem; line-height: 1.4; color: #fbf4e8; }
.lb-desc { margin-top: 16px; color: var(--muted-light); font-size: .96rem; white-space: pre-line; }
.lb-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; }
.lb-thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #2a2023; cursor: pointer; opacity: .65; aspect-ratio: 3 / 4; transition: opacity .25s, border-color .25s, transform .25s; }
.lb-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb-thumb i { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; font-style: normal; font-size: .58rem; font-weight: 800; letter-spacing: .08em; color: #fff; background: rgba(13, 10, 11, .7); }
.lb-thumb:hover { opacity: 1; transform: translateY(-2px); }
.lb-thumb.is-active { opacity: 1; border-color: var(--gold-2); }

/* 제품 상세 팝업 (왼쪽 사진 : 오른쪽 글 = 50 : 50) */
.pm { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 25px; background: rgba(8, 5, 6, .8); backdrop-filter: blur(6px); }
.pm.open { display: flex; }
.pm-box { position: relative; width: min(1000px, 100%); max-height: 90vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; background: var(--ivory); border-radius: 22px; box-shadow: 0 40px 100px rgba(0, 0, 0, .55); }
.pm-close { position: absolute; top: 14px; right: 16px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--text-dark); background: rgba(255, 255, 255, .85); cursor: pointer; transition: transform .25s, background .25s; }
.pm-close:hover { transform: rotate(90deg); background: #fff; }
.pm-image { position: relative; min-height: 520px; background: radial-gradient(circle at 50% 40%, #fff, #e9dcc6); }
.pm-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--ivory-2); cursor: zoom-in; }
.pm-noimg { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: rgba(154, 116, 51, .5); font-size: .78rem; font-weight: 800; letter-spacing: .24em; }
.pm-noimg .icon { width: 54px; height: 54px; }
.pm-content { padding: 56px 46px 46px; }
.pm-cat { display: inline-block; padding: 4px 14px; margin-bottom: 16px; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .06em; color: var(--gold-3); background: rgba(201, 164, 92, .14); border: 1px solid var(--line-light); }
.pm-cat:empty { display: none; }
.pm-content h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.3; letter-spacing: -.02em; color: var(--text-dark); }
.pm-oneliner { margin-top: 12px; font-family: var(--serif); font-size: 1.08rem; font-style: italic; color: var(--gold-3); }
.pm-oneliner:empty { display: none; }
.pm-intro { margin-top: 18px; color: var(--muted-dark); font-size: .98rem; line-height: 1.9; white-space: pre-line; }
.pm-row { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-light); }
.pm-row strong { display: block; margin-bottom: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .22em; color: var(--gold-3); }
.pm-row span { color: var(--text-dark); white-space: pre-line; }



/* ---------------------------------------------------------
   8) 모바일 / 태블릿, 움직임 줄이기
   --------------------------------------------------------- */
@media (max-width: 1000px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-emblem { display: none; }                       /* 좁은 화면에서는 큰 장식을 숨김 */
    .contact-grid, .location-grid, .director-grid { grid-template-columns: 1fr; }
    .portrait { position: static; max-width: 380px; margin-inline: auto; }
    .sig-grid { grid-template-columns: repeat(2, 1fr); }
    .ba-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    /* 휴대폰: 메뉴가 위에서 내려오는 방식 */
    .nav-toggle { display: block; }
    .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 26px; background: rgba(13, 10, 11, .98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); transform: translateY(-120%); visibility: hidden; transition: transform .35s ease, visibility .35s; }
    body.nav-open .main-nav { transform: none; visibility: visible; }
    .main-nav a { padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line-dark); }
    .main-nav a::after { display: none; }
    body.nav-open .site-header { background: rgba(13, 10, 11, .98); }

    /* Before & After 팝업: 사진이 위, 정보가 아래 */
    .lb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
    .lb-main { padding: 70px 10px 6px; }
    .lb-side { padding: 18px 20px 22px; max-height: 42vh; border-left: 0; border-top: 1px solid var(--line-dark); }
    .lb-side h3 { margin-top: 10px; font-size: 1.25rem; }
    .lb-thumbs { grid-template-columns: repeat(6, 1fr); margin-top: 16px; }

    /* 제품 팝업: 위아래로 쌓고 화면을 꽉 채우지 않게 */
    .pm { padding: 46px 14px; }
    .pm-box { display: block; max-height: 80vh; max-height: 80dvh; }
    .pm-image { min-height: 240px; height: 240px; }
    .pm-content { padding: 26px 24px 30px; }
}

@media (max-width: 640px) {
    .container { width: min(var(--maxw), 100% - 36px); }
    .sig-grid, .ba-grid, .product-grid, .form-row { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1 1 100%; }
    .footer-top { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer-tagline { text-align: left; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
    .scroll-hint { display: none; }
    #cursorGlow { display: none; }
}

@media (max-width: 480px) {
    .concept-text h2.one-line, .section-head h2.one-line { white-space: normal; font-size: 1.5rem; }   /* 아주 좁은 휴대폰에서는 두 줄로 내려가게 */
}

/* 어지러움을 느끼는 분을 위해, 기기에서 "움직임 줄이기"를 켜 두었다면 움직임을 끕니다 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; }
}


/* 공통 사진 뷰어(/common/photo-viewer.js) 색: 사이트 블랙·골드에 맞춤 */
:root { --pv-bg: rgba(8, 5, 6, .95); --pv-fg: var(--text-light); --pv-btn-bg: rgba(201, 164, 92, .18); --pv-btn-color: #fbf4e8; --pv-accent: var(--gold); }
