/* =====================================================================
   TIP CLINIC — 티아이피 재활의학과
   Design system (THE WELLS 스타일 재현)
   팔레트: warm beige / sand / deep brown / brass
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:        #F2EDE3;
  --surface:   #F5F2ED;
  --warm:      #EEE9E1;
  --sage:      #DAD9CD;
  --dark:      #2A2016;
  --ink:       #2D2519;
  --text:      #403830;
  --muted:     #4D4338;
  --quiet:     #7A6F63;
  --gold:      #A68B6B;
  --gold-soft: #C6AE92;
  --border:    #E1DCD4;
  --olive:     #5C5C46;
  --on-dark:   #EDE6D9;

  --header-h: 80px;
  --wrap: 1280px;
  --pad: 24px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

/* ---------- 1b. Web font (self-hosted · offline safe) ---------- */
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #fff; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap--narrow { max-width: 860px; }
.wrap--tight { max-width: 720px; }
.section { padding: 88px 0; }
.section--lg { padding: 116px 0; }
.section--sm { padding: 56px 0; }
.section--surface { background: var(--surface); }
.section--warm { background: var(--warm); }
.section--sage { background: var(--sage); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--olive { background: var(--olive); color: var(--on-dark); }
.section--hairline { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- 4. Typography ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--light { color: var(--gold-soft); }
.h-display {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.h3 {
  font-size: 1.13rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h4 {
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lead { font-size: .95rem; line-height: 1.95; color: var(--muted); }
.body { font-size: .95rem; line-height: 1.95; color: var(--muted); }
.small { font-size: .82rem; line-height: 1.85; color: var(--quiet); }
.micro { font-size: .72rem; letter-spacing: .06em; color: var(--quiet); }
.on-dark .h2, .section--dark .h2, .section--olive .h2, .section--dark .h3, .section--olive .h3 { color: var(--on-dark); }
.section--dark .body, .section--olive .body, .section--dark .lead, .section--olive .lead { color: rgba(237, 230, 217, .82); }
.rule { width: 40px; height: 1px; background: var(--gold); border: 0; margin: 18px 0 0; }
.rule--center { margin: 18px auto 0; }
.rule--light { background: rgba(198, 174, 146, .6); }
.text-center { text-align: center; }

/* ---------- 5. Section head ---------- */
.sec-head { margin-bottom: 46px; }
.sec-head--center { text-align: center; }
.sec-head .eyebrow + .h2 { margin-top: 12px; }
.sec-head__desc { margin-top: 16px; max-width: 620px; }
.sec-head--center .sec-head__desc { margin-left: auto; margin-right: auto; }
.sec-head__link { margin-top: 22px; }

.section-tag {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
}
.section-tag__line { flex: 0 0 40px; height: 1px; background: var(--border); }
.section-tag__no { font-size: .72rem; letter-spacing: .1em; color: var(--gold); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn--dark { background: var(--dark); color: #F6F0E5; }
.btn--dark:hover { background: #3B2E20; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #96795B; }
.btn--outline { border: 1px solid rgba(64, 56, 48, .28); color: var(--text); }
.btn--outline:hover { background: rgba(64, 56, 48, .06); border-color: rgba(64, 56, 48, .5); }
.btn--light { border: 1px solid rgba(237, 230, 217, .38); color: var(--on-dark); }
.btn--light:hover { background: rgba(237, 230, 217, .12); border-color: rgba(237, 230, 217, .7); }
.btn--sm { padding: 11px 20px; font-size: .78rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--muted);
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow::after { content: "→"; font-size: .9em; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--light { color: rgba(237, 230, 217, .82); }
.link-arrow--light:hover { color: #fff; }

/* ---------- 7. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  background: rgba(242, 237, 227, .96);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-solid {
  background: rgba(247, 244, 238, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 44px);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; flex-direction: column; line-height: 1; flex: 0 0 auto; }
.brand__top {
  font-size: .52rem;
  letter-spacing: .5em;
  color: var(--text);
  margin-bottom: 5px;
  padding-left: 2px;
}
.brand__main {
  font-size: 1.32rem;
  font-weight: 300;
  letter-spacing: .32em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand__kr {
  font-size: .5rem;
  letter-spacing: .22em;
  color: var(--quiet);
  margin-top: 5px;
  padding-left: 2px;
}
.header-meta { display: flex; align-items: center; gap: 10px; }
.branch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--quiet);
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--border);
  font-size: .72rem;
  letter-spacing: .01em;
  color: var(--muted);
  transition: border-color .3s var(--ease);
}
.status-pill:hover { border-color: var(--gold); }
.status-pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(166, 139, 107, .18);
}
.status-pill[data-open="false"] .status-pill__dot { background: #AAA296; box-shadow: 0 0 0 3px rgba(120, 112, 100, .12); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 11px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav-link:hover, .nav-item.is-current > .nav-link { color: var(--gold); }
.nav-link__caret {
  width: 0; height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .55;
  margin-top: 2px;
}
.nav-link--accent { color: var(--gold); }
.nav-link--accent::after { content: "→"; font-size: .9em; }

.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: -6px;
  min-width: 210px;
  padding: 12px;
  background: #F7F4EE;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(42, 32, 22, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-menu a {
  display: block;
  padding: 9px 12px;
  font-size: .8rem;
  color: var(--muted);
  border-radius: 3px;
  transition: background .2s, color .2s;
}
.nav-menu a:hover { background: rgba(166, 139, 107, .1); color: var(--ink); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; width: 22px; height: 1px;
  background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 85;
  background: var(--bg);
  padding: 26px var(--pad) 60px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
body.nav-open .drawer { transform: translateX(0); }
.drawer__group { border-bottom: 1px solid var(--border); }
.drawer__group > a, .drawer__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 17px 2px;
  font-size: .95rem;
  color: var(--ink);
}
.drawer__toggle span:last-child { color: var(--gold); transition: transform .3s var(--ease); }
.drawer__group.is-open .drawer__toggle span:last-child { transform: rotate(45deg); }
.drawer__sub { display: none; padding: 0 2px 16px 14px; }
.drawer__group.is-open .drawer__sub { display: block; }
.drawer__sub a {
  display: block;
  padding: 9px 0;
  font-size: .86rem;
  color: var(--muted);
}
.drawer__foot { margin-top: 30px; display: grid; gap: 10px; }
.drawer__hours { font-size: .78rem; line-height: 1.9; color: var(--quiet); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 52%, rgba(30, 24, 18, .34), rgba(30, 24, 18, 0) 70%),
    linear-gradient(180deg, rgba(42, 32, 22, .46) 0%, rgba(42, 32, 22, .34) 45%, rgba(42, 32, 22, .66) 100%);
}
.hero--spa .hero__media::after {
  background:
    radial-gradient(ellipse 80% 60% at 50% 52%, rgba(24, 19, 14, .30), rgba(24, 19, 14, 0) 70%),
    linear-gradient(180deg, rgba(24, 19, 14, .56) 0%, rgba(24, 19, 14, .46) 45%, rgba(24, 19, 14, .68) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 var(--pad);
}
.hero__label {
  text-shadow: 0 1px 14px rgba(20, 16, 12, .5);
  font-size: .72rem;
  font-weight: 300;
  letter-spacing: .62em;
  color: rgba(255, 255, 255, .94);
  margin-bottom: 26px;
  padding-left: .62em;
}
.hero__title {
  text-shadow: 0 2px 26px rgba(20, 16, 12, .45);
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-weight: 200;
  letter-spacing: .26em;
  line-height: 1.15;
  padding-left: .26em;
  text-transform: uppercase;
}
.hero__sub {
  text-shadow: 0 1px 14px rgba(20, 16, 12, .5);
  margin-top: 22px;
  font-size: clamp(.78rem, 1.3vw, .95rem);
  font-weight: 300;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .9);
}
.hero__rule { width: 44px; height: 1px; background: rgba(255, 255, 255, .55); margin: 30px auto 0; }
.hero__caption {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: 42px;
  z-index: 2;
  font-size: .68rem;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .78);
  text-align: right;
  line-height: 2;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  transform: translateX(-50%);
  font-size: .58rem;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px; height: 34px;
  margin: 12px auto 0;
  background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
}

/* ---------- 9. Figures / images ---------- */
.figure {
  position: relative;
  overflow: hidden;
  background: var(--warm);
}
.figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.figure--warm img { filter: saturate(.7) sepia(.2) contrast(.98) brightness(1.02); }
.figure--warm::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(242, 237, 227, .22), rgba(166, 139, 107, .18));
  mix-blend-mode: multiply;
  pointer-events: none;
}
a:hover > .figure img, .card:hover .figure img { transform: scale(1.045); }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--3x2 { aspect-ratio: 3 / 2; }
.figure--1x1 { aspect-ratio: 1 / 1; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure__tag {
  position: absolute;
  left: 16px; bottom: 16px;
  padding: 7px 13px;
  font-size: .66rem;
  letter-spacing: .12em;
  color: #fff;
  background: rgba(42, 32, 22, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ---------- 10. Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2-1 { grid-template-columns: 1.15fr .85fr; align-items: center; }

.spec-card { display: block; }
.spec-card__body { padding-top: 26px; }
.spec-card .eyebrow { display: block; margin-bottom: 10px; }
.spec-card .h3 { margin-bottom: 18px; }

.rows { border-top: 1px solid var(--border); }
.rows a, .rows li > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--muted);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.rows a::after { content: "→"; font-size: .85em; color: var(--gold); opacity: .7; }
.rows a:hover { color: var(--ink); padding-left: 4px; }

.wellness-card { display: block; }
.wellness-card__body { padding-top: 22px; }
.wellness-card .eyebrow { display: block; margin-bottom: 8px; }
.wellness-card__desc { font-size: .86rem; line-height: 1.8; color: var(--muted); margin-bottom: 14px; }
.wellness-card .rows a { font-size: .84rem; padding: 10px 0; }

/* numbered feature (01 …) */
.num-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.num-row:last-child { border-bottom: 1px solid var(--border); }
.num-row__no {
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: .01em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-soft);
}
.num-row__tag {
  margin-top: 10px;
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--gold);
}
.num-row__code { margin-top: 4px; font-size: .64rem; letter-spacing: .16em; color: var(--quiet); }

/* process steps (dark) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 54px; }
.step { position: relative; padding: 0 22px; text-align: center; }
.step::before {
  content: "";
  position: absolute;
  top: 21px; left: 50%; width: 100%;
  border-top: 1px dashed rgba(237, 230, 217, .28);
}
.step:last-child::before { display: none; }
.step__no {
  position: relative;
  width: 42px; height: 42px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border: 1px solid rgba(198, 174, 146, .5);
  border-radius: 50%;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--gold-soft);
  background: var(--olive);
}
.section--dark .step__no { background: var(--dark); }
.step .h4 { color: var(--on-dark); margin-bottom: 8px; }
.step p { font-size: .82rem; line-height: 1.8; color: rgba(237, 230, 217, .72); }

/* ---------- 11. Signature (home) ---------- */
.signature { text-align: center; }
.signature__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
  padding-top: 46px;
}
.signature__track::before {
  content: "";
  position: absolute;
  top: 18px; left: 16%; right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 12%, var(--gold-soft) 88%, transparent);
}
.sig-item { position: relative; text-align: left; }
.sig-item::before {
  content: "";
  position: absolute;
  top: -34px; left: 50%;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
}
.sig-item__no { font-size: .68rem; letter-spacing: .16em; color: var(--gold); }
.sig-item .h4 { margin: 8px 0 10px; font-size: 1.02rem; }
.sig-item p { font-size: .84rem; line-height: 1.85; color: var(--muted); }

/* ---------- 12. Split banner ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 460px; }
.split__media { position: relative; overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 64px clamp(28px, 5vw, 76px);
  background: var(--dark);
  color: var(--on-dark);
}
.split__panel .h2 { color: var(--on-dark); }
.split__panel .lead { color: rgba(237, 230, 217, .8); }

/* ---------- 13. Columns / posts ---------- */
.post-card { display: block; }
.post-card .figure { margin-bottom: 20px; }
.post-card__meta { font-size: .7rem; letter-spacing: .1em; color: var(--gold); }
.post-card .h4 { margin: 10px 0 8px; font-size: .98rem; line-height: 1.6; }
.post-card p { font-size: .84rem; line-height: 1.85; color: var(--muted); }

/* ---------- 14. Visit / map ---------- */
.visit { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.visit__info { display: grid; gap: 26px; }
.transit { display: flex; gap: 26px; flex-wrap: wrap; }
.transit__item { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); }
.transit__line {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .62rem; font-weight: 700; color: #fff;
}
.transit__line--4 { background: #33A7D5; }
.transit__line--gj { background: #77C4A3; }

.hours { width: 100%; border-collapse: collapse; font-size: .84rem; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--border); text-align: left; font-weight: 400; }
.hours th { color: var(--quiet); width: 42%; letter-spacing: .02em; }
.hours td { color: var(--muted); }
.hours tr.is-off td { color: var(--quiet); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); font-weight: 500; }

.visit__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 15. Page header (sub pages) ---------- */
.page-head {
  padding: calc(var(--header-h) + 74px) 0 54px;
  background: #F7F5F0;
  border-bottom: 1px solid var(--border);
}
.page-head .h-display { margin-top: 0; }
.page-head__sub { margin-top: 20px; font-size: .9rem; color: var(--muted); max-width: 620px; }
.page-head__crumb { font-size: .7rem; letter-spacing: .12em; color: var(--quiet); margin-bottom: 18px; }
.page-head__crumb span { color: var(--gold); }

/* ---------- 16. Tabs (anchor nav) ---------- */
.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(245, 242, 237, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.anchor-nav__inner { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.anchor-nav__inner::-webkit-scrollbar { display: none; }
.anchor-nav a {
  padding: 17px 0;
  font-size: .82rem;
  color: var(--quiet);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.anchor-nav a:hover { color: var(--ink); }
.anchor-nav a.is-active { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- 17. Accordion ---------- */
.acc { border-top: 1px solid var(--border); }
.acc__item { border-bottom: 1px solid var(--border); }
.acc__btn {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-size: .92rem;
  color: var(--ink);
  transition: color .25s;
}
.acc__btn:hover { color: var(--gold); }
.acc__q { font-size: .7rem; color: var(--gold); margin-right: 10px; letter-spacing: .06em; }
.acc__icon { position: relative; flex: 0 0 14px; height: 14px; margin-top: 6px; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; background: var(--gold); transition: transform .3s var(--ease), opacity .3s;
}
.acc__icon::before { top: 6px; left: 0; width: 14px; height: 1px; }
.acc__icon::after { top: 0; left: 6px; width: 1px; height: 14px; }
.acc__item.is-open .acc__icon::after { transform: scaleY(0); }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 4px 24px 30px; font-size: .88rem; line-height: 1.95; color: var(--muted); }

/* ---------- 18. List page (programs) ---------- */
.prog-group { padding-top: 8px; }
.prog-group + .prog-group { margin-top: 58px; border-top: 1px solid var(--border); padding-top: 44px; }
.prog-group__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.prog-group__head .h3 { font-size: 1.28rem; }
.prog-group__count { font-size: .72rem; color: var(--gold); letter-spacing: .1em; }
.prog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 22px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--border);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.prog-card:hover { background: #fff; border-color: rgba(166, 139, 107, .5); transform: translateY(-2px); }
.prog-card__title { font-size: .96rem; font-weight: 500; color: var(--ink); }
.prog-card__desc { font-size: .84rem; line-height: 1.85; color: var(--muted); }
.prog-card__actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }

/* ---------- 19. Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__item { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--warm); }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 34px 18px 14px;
  font-size: .72rem;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(transparent, rgba(42, 32, 22, .62));
}

/* ---------- 20. Doctor ---------- */
.doctor { display: grid; grid-template-columns: .78fr 1.22fr; gap: 60px; align-items: start; }
.doctor__photo { position: relative; }
.doctor__photo img { width: 100%; }
.doctor__name { font-size: 1.9rem; font-weight: 300; letter-spacing: .04em; color: var(--ink); }
.doctor__role { margin-top: 8px; font-size: .82rem; letter-spacing: .14em; color: var(--gold); }
.cv { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--border); }
.cv__row { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.cv__key { font-size: .74rem; letter-spacing: .08em; color: var(--gold); padding-top: 3px; }
.cv__val { font-size: .86rem; line-height: 1.85; color: var(--muted); }

/* ---------- 21. Quote ---------- */
.quote {
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.quote__by { margin-top: 20px; font-size: .76rem; letter-spacing: .12em; color: var(--quiet); }

/* ---------- 22. CTA ---------- */
.cta { text-align: center; }
.cta .h2 { color: var(--on-dark); }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.cta__note { margin-top: 22px; font-size: .76rem; color: rgba(237, 230, 217, .6); }

/* ---------- 23. Footer ---------- */
.site-footer { background: var(--olive); color: rgba(255, 255, 255, .8); padding: 72px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 48px; padding-bottom: 46px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.footer-brand__top { font-size: .55rem; letter-spacing: .48em; color: rgba(255, 255, 255, .75); }
.footer-brand__main { font-size: 1.5rem; font-weight: 200; letter-spacing: .3em; color: #fff; margin-top: 6px; }
.footer-brand__desc { margin-top: 18px; font-size: .8rem; line-height: 1.9; color: rgba(255, 255, 255, .68); max-width: 320px; }
.footer-title { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 18px; }
.footer-hours { font-size: .8rem; }
.footer-hours div { display: flex; justify-content: space-between; gap: 18px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-hours dt { color: rgba(255, 255, 255, .6); }
.footer-hours dd { margin: 0; color: #fff; }
.footer-sns { display: flex; gap: 10px; margin-top: 18px; }
.footer-sns a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  font-size: .52rem;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .85);
  transition: background .25s, border-color .25s;
}
.footer-sns a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.footer-info { margin-top: 26px; font-size: .76rem; line-height: 2.1; color: rgba(255, 255, 255, .62); }
.footer-info strong { color: rgba(255, 255, 255, .85); font-weight: 400; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: .72rem;
  color: rgba(255, 255, 255, .52);
}
.footer-bottom__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom__links a:hover { color: #fff; }
.footer-disclaimer { margin-top: 18px; font-size: .68rem; line-height: 1.9; color: rgba(255, 255, 255, .4); max-width: 900px; }

/* ---------- 24. Quick rail ---------- */
.quick-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: var(--dark);
  border-radius: 6px 0 0 6px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(42, 32, 22, .18);
}
.quick-rail a {
  width: 62px;
  padding: 13px 0 11px;
  display: grid;
  place-items: center;
  gap: 5px;
  color: rgba(237, 230, 217, .82);
  border-bottom: 1px solid rgba(237, 230, 217, .12);
  transition: background .25s, color .25s;
}
.quick-rail a:last-child { border-bottom: 0; }
.quick-rail a:hover { background: rgba(237, 230, 217, .1); color: #fff; }
.quick-rail svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.quick-rail span { font-size: .58rem; letter-spacing: .02em; }

/* ---------- 25. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 26. Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mt-72 { margin-top: 72px; }
.center { text-align: center; }
.maxw-620 { max-width: 620px; }
.maxw-720 { max-width: 720px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* note box (draft notice) */
.notice {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .55);
  padding: 18px 20px;
  font-size: .8rem;
  line-height: 1.9;
  color: var(--quiet);
}

/* stat row: 모바일에서도 3열 유지 */
@media (max-width: 720px) {
  .stat-row { grid-template-columns: repeat(3, 1fr) !important; gap: 12px; }
  .stat-row > div > p:first-child { font-size: 1.28rem !important; }
  .stat-row .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .stat-row .small { font-size: .68rem; }
}

/* ---------- 27. Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 0; }
  .nav-link { padding: 10px 8px; font-size: .78rem; }
  .branch { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; --pad: 22px; }
  .main-nav, .header-meta { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 68px 0; }
  .section--lg { padding: 84px 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 4 / 3; }
  .visit { grid-template-columns: 1fr; gap: 36px; }
  .doctor { grid-template-columns: .9fr 1.1fr; gap: 36px; }
  .quick-rail { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step:nth-child(2)::before { display: none; }
  .signature__track { grid-template-columns: 1fr; gap: 44px; padding-left: 18px; }
  .signature__track::before { top: 8px; bottom: 8px; left: 4px; right: auto; width: 1px; height: auto; }
  .sig-item::before { top: 8px; left: -18px; margin-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .section { padding: 58px 0; }
  .section--lg { padding: 68px 0; }
  .grid, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; gap: 30px; }
  .grid--2-1 { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; }
  .doctor__photo { max-width: 340px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
  .num-row { grid-template-columns: 62px 1fr; gap: 16px; padding: 24px 0; }
  .num-row__no { font-size: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .step { text-align: left; padding-left: 58px; }
  .step__no { position: absolute; left: 0; top: 0; margin: 0; }
  .step::before { display: none; }
  .hero__caption { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-head { padding: calc(var(--header-h) + 52px) 0 40px; }
  .acc__panel p { padding-left: 0; }
  .quote { line-height: 1.8; }
}
