/* ===== Tokens ===== */
:root {
  --pri: #7B5136;       /* 포인트 — 딥 브라운 */
  --pri-2: #C9A188;     /* 포인트 밝은 변주 — 탠 */
  --pri-lt: #E2C5B8;    /* 영문 표시용 — 연한 로즈골드 */
  --rose: #F7EAE4;      /* 장식용 — 아주 연한 로즈골드 */
  --dark: #241A13;      /* 다크 섹션 / 푸터 / 풀스크린 메뉴 */
  --soft: #F0E4DA;      /* 태그 · 플레이스홀더 */
  --bg: #FFFFFF;
  --alt: #F6F0EA;
  --text: #241C16;
  --muted: #7D6E63;
  --line: #E4DAD1;
  --r: 24px;            /* 카드 */
  --r-lg: 40px;       /* 히어로 프레임 */
  --r-pill: 999px;
  --gap: 24px;
  --max: 1160px;
  --serif: "Playfair Display", "Gowun Batang", "Noto Serif KR", serif;
  --serif-thin: "Cormorant Garamond", "Gowun Batang", "Noto Serif KR", serif; /* 소형 메타 · 캡션용 얇은 명조 */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
[id] { scroll-margin-top: 88px; }
body { font-family: "Pretendard Variable", Pretendard, "Inter", "Apple SD Gothic Neo", system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
body.is-big { font-size: 18px; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
address { font-style: normal; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }
.container--narrow { max-width: 860px; }
.section { padding: clamp(96px, 12vh, 140px) 0; }
.section--alt { background: var(--alt); }
.section--dark { background: var(--dark); color: #fff; }
.section__head { margin-bottom: clamp(40px, 5vh, 56px); }

/* ===== Type ===== */
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
h4 { font-size: 15px; font-weight: 700; }
.eyebrow { font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pri); font-weight: 700; margin-bottom: 14px; }
.eyebrow--light { color: rgba(255,255,255,.7); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: .2s; white-space: nowrap; }
.btn--dark { background: #111; color: #fff; }
.btn--dark:hover { background: var(--pri); }
.btn--white { background: #fff; color: #111; }
.btn--line { background: transparent; color: #111; border-color: #d8d8d8; }
.btn--line:hover { border-color: #111; }
.btn--light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn--light:hover { border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--icon > svg { width: 16px; height: 16px; flex: none; }
.ico-naver, .ico-kakao { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; flex: none; font-size: 11px; font-weight: 800; font-family: Inter, sans-serif; }
.ico-naver { background: #03C75A; color: #fff; }
.ico-kakao { background: #FEE500; color: #191919; }
.ico-kakao svg { width: 13px; height: 13px; }

/* ===== Header : 로고 + 토글 (전 해상도) ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding: 14px 0; color: var(--text); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header { transition: background .35s, box-shadow .35s; }
.header.is-scrolled { background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 1px 0 var(--line); }
.header.on-dark { color: #fff; }
.header.is-scrolled { color: var(--text); }
.logo { display: inline-flex; align-items: baseline; gap: 10px; font-family: "Inter", sans-serif; }
.logo b { font-family: "Playfair Display", serif; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: .12em; }
.logo span { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: clamp(10px, .85vw, 12px); font-weight: 500;
  letter-spacing: .01em; line-height: 1; color: #8F8379; white-space: nowrap; }
.logo--light b { color: #fff; }
.logo--light span { color: rgba(255,255,255,.3); }
.nav-toggle { display: flex; width: 44px; height: 44px; border: 0; background: transparent; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; cursor: pointer; padding: 0 4px; }
.nav-toggle span { height: 2px; background: currentColor; border-radius: 2px; transition: width .3s, transform .3s, opacity .2s; }
.nav-toggle span:nth-child(1) { width: 26px; } .nav-toggle span:nth-child(2) { width: 17px; } .nav-toggle span:nth-child(3) { width: 9px; }
.nav-toggle:hover span { width: 26px; }
.header.is-menu-open .nav-toggle span { width: 26px; }
.header.is-menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.is-menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero : 빅 타이포 + 인버트 라디우스 스테이지 ===== */
.hero { --nw: clamp(112px, 14.5vw, 200px); position: relative; display: flex; flex-direction: column; padding: clamp(118px, 14vh, 164px) 0 clamp(56px, 8vh, 110px); }
/* 장식 : 좌측 끝에서 뻗어 나와 우측만 둥근 바. 스테이지 뒤로 깔린다 */
.hero__deco { position: absolute; left: 0; bottom: clamp(-96px, -8vh, -40px); z-index: -1;
  width: clamp(200px, 24vw, 380px); height: clamp(160px, 22vh, 260px);
  background: var(--rose); border-radius: 0 clamp(40px, 5.4vw, 92px) clamp(40px, 5.4vw, 92px) 0; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; isolation: isolate; }
.hero__meta { font-family: var(--serif-thin); font-size: clamp(10px, .86vw, 12px); font-weight: 300;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; color: #C1B5AB;
  margin-bottom: clamp(4px, .7vh, 10px); }

.hero__copy { position: relative; z-index: 3; font-family: var(--serif); font-size: clamp(48px, 8.4vw, 128px); line-height: 1; letter-spacing: -.025em; font-weight: 500; white-space: nowrap; margin-bottom: clamp(26px, 4vh, 48px);
  color: var(--pri-lt); }

/* 인버트 라디우스 스테이지 : 흰 블록의 볼록 모서리를 역이용
   노치가 덮는 좌상 · 우하 모서리는 라디우스 0 — 둥글리면 흰 블록 뒤로 안티앨리어싱 선이 비친다 */
.hero__stage { position: relative; z-index: 1; height: clamp(400px, 62vh, 680px); border-radius: 0 clamp(40px, 5.4vw, 92px) 0 clamp(40px, 5.4vw, 92px); overflow: hidden; background: var(--soft); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 57% 34%; }
/* 노치 2개 : 좌상단(얇은 바) · 우하단 — 흰 블록의 볼록 모서리를 역이용 */
/* 제약 → 블록 높이 >= 2 × nr. 모자라면 필릿과 블록 곡선이 겹쳐 가시(틈)가 생긴다 → 높이를 2 × nr 이상으로 보장 */
.hero__cut, .hero__cut3 { --nr: clamp(26px, 3vw, 48px); position: absolute; z-index: 2; background: var(--bg); min-height: calc(var(--nr) * 2); }
/* 히어로는 한 단계 더 둥글게 */
.hero .hero__cut, .hero .hero__cut3 { --nr: clamp(32px, 4vw, 64px); }
.hero__cut  { --ch: clamp(64px, 8.4vh, 100px); left: 0; top: 0; width: var(--nw); height: max(var(--ch), calc(var(--nr) * 2)); border-bottom-right-radius: var(--nr); }
.hero__cut3 { right: 0; bottom: 0; width: max-content; max-width: 76%; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: clamp(22px, 3vh, 38px) clamp(30px, 3.4vw, 58px); border-top-left-radius: var(--nr); }
.hero__cut::before, .hero__cut::after,
.hero__cut3::before, .hero__cut3::after {
  content: ""; position: absolute; width: var(--nr); height: var(--nr); pointer-events: none; }
/* 좌상단 : 접합부가 블록의 우측·하단 → 디스크는 타일의 우하단 */
.hero__cut::before, .hero__cut::after {
  background: radial-gradient(circle at 100% 100%, transparent calc(var(--nr) - .5px), var(--bg) var(--nr)); }
.hero__cut::before { left: 100%; top: 0; }
.hero__cut::after  { left: 0; top: 100%; }
/* 우하단 : 접합부가 블록의 좌측·상단 → 디스크는 타일의 좌상단 */
.hero__cut3::before, .hero__cut3::after {
  background: radial-gradient(circle at 0% 0%, transparent calc(var(--nr) - .5px), var(--bg) var(--nr)); }
.hero__cut3::before { right: 100%; bottom: 0; }
.hero__cut3::after  { right: 0; bottom: 100%; }
.hero__lead { font-family: var(--serif); font-size: clamp(19px, 1.95vw, 28px); font-weight: 700; line-height: 1.4; letter-spacing: -.015em; white-space: nowrap; }
.hero__lead em { font-style: normal; color: var(--pri); }

/* ===== Strip : 인버티드 노치 안에 진료과목 리스트 ===== */
.strip { padding: clamp(72px, 10vh, 130px) 0 clamp(88px, 12vh, 150px); }
.strip__stage { --nr: clamp(36px, 4.6vw, 78px); position: relative; height: clamp(460px, 74vh, 780px);
  border-radius: clamp(40px, 5.4vw, 92px); overflow: hidden; background: var(--alt); }
/* 사진은 별도 박스(media)에 담는다 — 모바일에서 박스만 아래로 내려 노치 옆 베이지 띠를 짧게 만드는 트릭용 */
.strip__media { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: var(--alt); }
.strip__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }

/* 흰 블록의 볼록 모서리를 역이용 + 접합부 라운드 타일 (히어로와 동일 레시피) */
.strip__aside { position: absolute; left: 0; top: 0; z-index: 2; width: clamp(280px, 38%, 480px); height: 66%;
  display: flex; flex-direction: column; justify-content: center; background: var(--bg);
  border-bottom-right-radius: var(--nr); padding: 0 clamp(34px, 3.8vw, 64px) 0 0; }
.strip__aside::before, .strip__aside::after { content: ""; position: absolute; width: var(--nr); height: var(--nr); pointer-events: none;
  background: radial-gradient(circle at 100% 100%, transparent calc(var(--nr) - .5px), var(--bg) var(--nr)); }
.strip__aside::before { left: 100%; top: 0; }
.strip__aside::after  { left: 0; top: 100%; }

.strip__brand { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 44px); font-weight: 500; letter-spacing: -.02em; line-height: 1; color: var(--pri-lt); margin-bottom: clamp(20px, 2.8vh, 34px); }
.strip__menu { border-top: 1px solid var(--line); }
.strip__menu li { padding: clamp(13px, 1.8vh, 21px) 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(16px, 1.35vw, 21px); font-weight: 400; letter-spacing: .01em; color: var(--muted); }

/* ===== Page 2 : 진료시간 · 연락 ===== */
.info { padding: clamp(64px, 9vh, 104px) 0; }
.info__inner { width: 100%; display: grid; grid-template-columns: 1fr 1.25fr; column-gap: clamp(48px, 6vw, 104px); row-gap: clamp(36px, 5vh, 64px); align-items: start; }
/* 좌측은 비워 여백감, 우측 칼럼에 타이틀 → 전화번호 → 시간표 */
.info__head, .info__body { grid-column: 2; }
.info__head { margin-bottom: clamp(-40px, -3vh, -20px); }
.info__title { font-family: var(--serif); font-size: clamp(40px, 5vw, 72px); line-height: .95; letter-spacing: -.02em; font-weight: 500; color: var(--pri-lt); }
.info__note { margin-top: clamp(24px, 3.5vh, 36px); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.75; color: var(--muted); }
.info__tel { margin-bottom: clamp(24px, 3.4vh, 40px); }
.info__tel a { font-family: "Inter", sans-serif; font-size: clamp(32px, 3.4vw, 50px); font-weight: 600; letter-spacing: -.03em; color: var(--pri); }

.info__hours { border-top: 1px solid var(--line); }
.info__hours > div { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: clamp(60px, 8.5vh, 84px); padding: 8px 0; border-bottom: 1px solid var(--line); }
.info__hours dt { font-size: clamp(17px, 1.3vw, 20px); font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.info__hours dd { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; white-space: nowrap; font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.info__hours dd em { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--pri); }
.info__hours dd.is-off { color: var(--muted); font-weight: 600; }

/* ===== Doctor : 진료과목 스테이지를 좌우 반전해 재구성 — 좌 원장(단색 배경 사진) · 우상단 노치에 연혁 ===== */
.doc { padding: clamp(72px, 10vh, 130px) 0 clamp(88px, 12vh, 150px); }
.doc__stage { --nr: clamp(36px, 4.6vw, 78px); position: relative; height: clamp(460px, 74vh, 780px);
  border-radius: clamp(40px, 5.4vw, 92px); overflow: hidden; background: #D5D4D2; }
.doc__media { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #D5D4D2; }
/* 원장 사진은 배경이 단색이라 스테이지 색과 이어지도록 가장자리만 살짝 페이드 */
.doc__img { position: absolute; left: clamp(24px, 6%, 96px); bottom: 0; height: 100%; width: auto; aspect-ratio: 768 / 1024; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); }
.doc__aside { position: absolute; right: 0; top: 0; z-index: 2; width: clamp(300px, 40%, 500px); height: 70%;
  display: flex; flex-direction: column; justify-content: center; background: var(--bg);
  border-bottom-left-radius: var(--nr); padding: 0 0 0 clamp(34px, 3.8vw, 64px); }
.doc__aside::before, .doc__aside::after { content: ""; position: absolute; width: var(--nr); height: var(--nr); pointer-events: none;
  background: radial-gradient(circle at 0% 100%, transparent calc(var(--nr) - .5px), var(--bg) var(--nr)); }
.doc__aside::before { right: 100%; top: 0; }
.doc__aside::after  { right: 0; top: 100%; }

.doc__name { display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-size: clamp(28px, 2.8vw, 44px); font-weight: 500; letter-spacing: -.02em; line-height: 1; color: var(--text); margin-bottom: clamp(24px, 3.4vh, 40px); }
.doc__name span { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: clamp(13px, 1vw, 15px); font-weight: 600; letter-spacing: 0; color: var(--pri); }
/* 연혁 : 구분선 없이 최신 → 과거, 과거로 갈수록 톤만 옅게 */
.doc__history { display: grid; gap: clamp(12px, 1.8vh, 20px); }
.doc__history li { display: flex; align-items: baseline; gap: clamp(14px, 1.4vw, 22px); opacity: calc(1 - var(--i, 0) * .16); }
.doc__history b { flex: none; min-width: 2.3em; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.01em; line-height: 1; color: var(--pri-lt); }
.doc__history span { font-size: clamp(14px, 1.15vw, 17px); color: var(--muted); }

/* ===== Letter : 좌 로즈골드 듀오톤 이미지 · 우 흰 배경 ===== */
.letter { min-height: clamp(520px, 74svh, 760px); display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--bg); color: var(--text); }
.letter__fig { margin: 0; position: relative; overflow: hidden; background: var(--pri-lt); border-radius: 0 clamp(56px, 9vw, 150px) clamp(56px, 9vw, 150px) 0; }
.letter__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(1) brightness(1.12) contrast(.86); }
.letter__fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(165deg, #F3E1D8 0%, #E2C5B8 55%, #C9A188 100%); mix-blend-mode: multiply; } /* 로즈골드 듀오톤 */
.letter__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 6.5vw, 120px); }
.letter__big { font-family: var(--serif); font-size: clamp(42px, 5.2vw, 88px); font-weight: 500; line-height: 1.14; letter-spacing: 0; color: var(--pri-lt); }
.letter__big em { font-style: normal; color: var(--pri-2); }

/* ===== Space : 와이드 이미지(히어로 노치) + 아래 대형 세리프 헤드 ===== */
.space { padding: clamp(110px, 16vh, 190px) 0 clamp(110px, 16vh, 190px); }
.space__head { margin-top: clamp(28px, 4.4vh, 48px); }
.space__title { font-family: var(--serif); font-size: clamp(44px, 5vw, 80px); font-weight: 500; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; color: var(--pri-lt); }
/* 히어로와 같은 노치 2개 (좌상단 얇은 바 · 우하단 블록) — hero__cut 클래스를 그대로 재사용 */
.space__fig { --nw: clamp(112px, 14.5vw, 200px); position: relative; margin: 0; height: clamp(320px, 56vh, 540px); border-radius: 0 clamp(40px, 5.4vw, 92px) 0 clamp(40px, 5.4vw, 92px); overflow: hidden; background: var(--soft); }
.space__fig .hero__cut3 { --ch: clamp(64px, 9vh, 104px); width: clamp(200px, 24vw, 340px); height: max(var(--ch), calc(var(--nr) * 2)); padding: 0; }
.space__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

/* ===== Footer : 오시는 길 통합 — 좌 정보 · 우 지도 ===== */
.footer { background: var(--dark); color: rgba(255,255,255,.6); font-size: 14px; }
/* 좌 정보(컨테이너 좌측 라인에 맞춤) · 우 지도(화면 우측 절반을 꽉 채움) */
.footer__main { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(440px, 60vh, 600px); }
.footer__info { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 0;
  padding: clamp(64px, 9vh, 96px) clamp(32px, 4vw, 72px) clamp(64px, 9vh, 96px) max(var(--gap), calc((100vw - var(--max)) / 2 + var(--gap))); }
.footer__addr { margin-top: clamp(32px, 4.5vh, 48px); font-style: normal; font-size: 16px; font-weight: 500; color: rgba(255,255,255,.85); }
.footer__addr span { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: rgba(255,255,255,.45); }
.footer__tel { display: inline-block; margin-top: 20px; font-family: Inter, sans-serif; font-size: 24px; font-weight: 600; color: var(--pri-2); letter-spacing: -.02em; }
.footer__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; margin-bottom: clamp(48px, 7vh, 72px); }
.footer__actions .btn { height: 46px; padding: 0 18px; font-size: 14px; }
.footer__map { position: relative; background: #3a2d24; }
.footer__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.footer__bottom { margin-top: auto; display: grid; gap: 4px; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.4); }

/* ===== FAB : 개별 둥근 사각형 (로즈골드 · 브라운 · 그레이 · 연회색) ===== */
.fab { position: fixed; right: 28px; top: 50%; translate: 0 -50%; z-index: 12; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fab a:nth-child(even) { margin-right: 40px; }
.fab a { position: relative; width: 78px; height: 78px; display: grid; place-items: center; border-radius: var(--r);
  transition: transform .22s cubic-bezier(.22,.8,.3,1); }
.fab a:hover { transform: translateY(-3px); }
.fab svg { width: 27px; height: 27px; }
/* 아이콘은 전부 흰색, 커버만 로즈골드 · 브라운 · 그레이 · 연회색 */
.fab a { color: #fff; }
.fab a:nth-child(1) { background: #DCB9A8; }   /* 로즈골드 */
.fab a:nth-child(2) { background: var(--pri); } /* 브라운 */
.fab a:nth-child(3) { background: var(--muted); }/* 그레이 */
.fab a:nth-child(4) { background: #BCB2A9; }   /* 연회색 */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ===== Fullscreen nav (전 해상도) : 밝은 브라운 배경 + 어두운 텍스트, 하단에 푸터와 같은 정보 · 버튼 ===== */
.nav { position: fixed; inset: 0; z-index: 22; background: #EADFD4; color: var(--dark); display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 5vh, 56px); padding: clamp(96px, 13vh, 132px) max(var(--gap), calc((100vw - var(--max)) / 2 + var(--gap))) clamp(40px, 6vh, 64px); transform: translateY(-100%); transition: transform .5s cubic-bezier(.22,.8,.3,1); overflow-y: auto; overscroll-behavior: contain; }
.nav.is-open { transform: none; }
.nav__links { display: grid; gap: clamp(2px, .6vh, 8px); }
.nav__links a { font-size: clamp(24px, 3vw, 40px); font-weight: 600; padding: clamp(4px, .7vh, 8px) 0; letter-spacing: -.03em; opacity: .45; transition: opacity .25s; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; padding-top: clamp(24px, 3.4vh, 36px); border-top: 1px solid rgba(36,26,19,.12); }
.nav__addr { font-style: normal; font-size: 15px; font-weight: 500; color: var(--dark); }
.nav__addr span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: rgba(36,26,19,.55); }
.nav__tel { display: inline-block; margin-top: 14px; font-family: Inter, sans-serif; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; color: var(--pri); }
.nav__hours { margin-top: 8px; font-size: 13px; color: rgba(36,26,19,.55); }
.nav__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--nav { height: 46px; padding: 0 18px; font-size: 14px; color: #fff; background: var(--dark); border-color: var(--dark); }
.btn--nav:hover { background: var(--pri); border-color: var(--pri); }
.header { mix-blend-mode: normal; }
.header.is-menu-open { color: var(--dark); }
.header.is-menu-open .logo span { color: rgba(36,26,19,.55); }
.header.is-menu-open.is-scrolled { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tabbar { display: none; }

/* ===== Responsive ===== */
/* FAB 은 1400px 이상(컨테이너 바깥 여백 확보)에서만, 그 아래는 하단 탭바 */
@media (max-width: 1399px) {
  .fab { display: none; }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  /* 하단 탭바 : 아이콘만, 화면 위에 떠 있는 알약 */
  .tabbar { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; width: min(400px, calc(100% - 24px)); height: 70px;
    display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 0 8px; border-radius: var(--r-pill);
    background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(36,26,19,.08); box-shadow: 0 10px 30px rgba(36,26,19,.14), 0 2px 6px rgba(36,26,19,.06); }
  .tabbar a { position: relative; display: grid; place-items: center; height: 56px; color: var(--dark); }
  .tabbar svg { width: 27px; height: 27px; stroke-width: 2.1; }
  .tabbar__pri { color: var(--pri); }
}

@media (max-width: 1024px) {
  .hero__desc { max-width: 40ch; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }  h1 { font-size: clamp(34px, 10vw, 48px); }
  .hero { min-height: 0; padding: 124px 0 56px; }
  /* PC 와 같은 가로형 비율 유지 — 세로로 늘리지 않는다. 노치도 비율에 맞춰 얇게 */
  .hero__stage { height: auto; aspect-ratio: 4 / 3; border-radius: 0 22px 0 22px; }
  .hero { --nw: 72px; }
  .hero__deco { width: 42vw; height: 160px; bottom: -64px; border-radius: 0 28px 28px 0; }
  .hero__cut3, .hero .hero__cut3 { --nr: 18px; }
  .hero__cut, .hero .hero__cut { --ch: 36px; --nr: 18px; }
  .hero__cut3 { max-width: 92%; padding: 9px 14px 0 16px; }
  .hero__lead { font-size: 14px; }
  .hero__copy { font-size: clamp(54px, 16vw, 82px); letter-spacing: -.02em; white-space: normal; }
  .hero__desc { max-width: none; }
  .letter { grid-template-columns: 1fr; min-height: 0; }
  .letter__fig { height: 56vw; min-height: 260px; border-radius: 0 0 48px 48px; }
  .letter__body { padding: 52px 24px 64px; }
  .letter__big { font-size: 42px; line-height: 1.12; }
  .strip { padding: 56px 0 72px; }
  /* 트릭 : 베이지 박스를 --lift 만큼 아래에서 시작 → 메뉴 윗부분은 흰 바탕 위에 놓이고, 노치 옆 베이지 띠가 짧아진다 */
  .strip__stage { --lift: 33vw; height: 160vw; border-radius: 30px; overflow: visible; background: transparent; }
  /* 노치 옆 베이지 기둥(폭 = 스테이지의 16%) 머리를 반원으로 : 바깥 라운드 = 안쪽 필릿 = 기둥 폭의 절반 (5:5) */
  .strip__media { top: var(--lift); border-top-right-radius: calc((100vw - var(--gap) * 2) * .08); }
  .strip__aside::before { top: var(--lift); --nr: calc((100vw - var(--gap) * 2) * .08); }
  /* 모바일 : 노치가 위를 덮으므로 사진은 cover 대신 하단에 통째로 앉힌다 (배경색이 스테이지와 같아 경계 없음) */
  /* 크게 : 머리 윗부분은 노치(흰 메뉴) 밑으로 들어가 자연스럽게 가려진다 */
  .strip__img { inset: auto; right: -23%; bottom: 0; width: auto; aspect-ratio: 1024 / 704; height: 120vw; max-width: none; object-fit: contain; }
  .strip__aside { --nr: 40px; width: 84%; height: 72vw; padding: 0 24px 0 0; }
  .strip__brand { font-size: 30px; }
  .doc { padding: 56px 0 72px; }
  /* 진료과목과 같은 트릭 : 회색 박스를 --lift 만큼 아래에서 시작 */
  .doc__stage { --lift: 33vw; height: 166vw; border-radius: 30px; overflow: visible; background: transparent; }
  /* 회색 기둥(폭 = 스테이지의 12%) 머리를 반원으로 (5:5) */
  .doc__media { top: var(--lift); border-top-left-radius: calc((100vw - var(--gap) * 2) * .06); }
  .doc__aside::before { top: var(--lift); --nr: calc((100vw - var(--gap) * 2) * .06); }
  /* 마스크는 단일 레이어로 (mask-composite 는 사파리에서 해석이 달라 이미지가 통째로 사라질 수 있음) */
  .doc__img { left: 50%; transform: translateX(-50%); height: 96vw;
    -webkit-mask-image: radial-gradient(ellipse 58% 106% at 50% 100%, #000 72%, transparent 100%);
    mask-image: radial-gradient(ellipse 58% 106% at 50% 100%, #000 72%, transparent 100%); }
  .doc__aside { --nr: 40px; width: 88%; height: 64vw; padding: 0 0 0 22px; }
  .doc__name { font-size: 26px; margin-bottom: 18px; }
  .doc__history { gap: 10px; }
  .doc__history b { font-size: 20px; }
  .doc__history span { font-size: 14px; }
  .info { min-height: 0; padding: 88px 0; }
  .info__inner { grid-template-columns: 1fr; row-gap: 28px; }
  .info__head, .info__body { grid-column: auto; }
  .info__head { margin-bottom: 0; }
  .info__hours dt { font-size: 16px; }
  .info__hours dd { font-size: 17px; }
  .info__hours dd em { font-size: 12px; }
  .space { padding: 80px 0; }
  .space__title { font-size: 40px; }
  .space__fig { --nw: 72px; height: auto; aspect-ratio: 16 / 9; border-radius: 0 22px 0 22px; }
  .space__fig .hero__cut3 { --ch: 36px; --nr: 18px; width: 40%; }
  .footer__main { grid-template-columns: 1fr; }
  .footer__info { padding: 56px var(--gap) 44px; }
  .footer__map { min-height: 300px; }
}

/* ===== Reduced motion (중장년 접근성) ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
