@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/pretendard-subset.woff2') format('woff2-variations');
}

:root {
  --paper: #FFF9F5;  --surface: #FDEBEE;  --card: #FFFFFF;
  --ink: #3A2A2E;      --muted: #85727A;      --rule: #F3DDE2;
  --brand: #D9667A;  --accent: #5DB597;    --ok: #3E9C78;

  --radius: 26px;  --radius-sm: 18px;  --bd: 1px;
  --pad: 22px;        --gap: 14px;              --sec: clamp(46px, 7vw, 78px);
  --shadow: none;
  --btn-radius: 999px;  --btn-pad: 13px 24px;

  --ui: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont,
        'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --edge: clamp(20px, 5vw, 32px);
  --wrap: 1180px;
  --topH: 62px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topH) + 10px); }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ui);
  font-size: 16px; line-height: 1.75; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; word-break: keep-all;
}
/* height 를 auto 로 두지 않으면 <img height="1000"> 속성이 CSS 로 먹혀서
   aspect-ratio 를 눌러 버립니다. 사진이 제 비율대로 안 나옵니다. */
img { max-width: 100%; height: auto; }
svg { max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.032em; text-wrap: balance; }
h1 { font-size: clamp(30px, 7vw, 50px); line-height: 1.24; }
h2 { font-size: clamp(22px, 4.2vw, 30px); line-height: 1.3; }
h3 { font-size: clamp(17px, 2.4vw, 20px); line-height: 1.45; letter-spacing: -.02em; }
h4 { font-size: 15.5px; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--edge); }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.lede { font-size: clamp(15.5px, 2vw, 17.5px); color: var(--muted); max-width: 44em; }
.lede b { color: var(--ink); font-weight: 700; }
.small { font-size: 13px; color: var(--muted); line-height: 1.6; }

.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .2em;
  color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 10px; }

header.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px); border-bottom: var(--bd) solid var(--rule);
}
header.top > .wrap { display: flex; align-items: center; gap: 14px; min-height: 62px; padding-block: 8px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.logo .mk {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: var(--radius-sm); background: var(--brand); color: var(--paper);
  font-weight: 800; font-size: 14px; letter-spacing: -.02em;
}
.logo > span { display: grid; line-height: 1.2; }
.logo b { font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.logo i { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 600; }
nav.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: nowrap; }
nav.menu > a {
  text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--muted);
  padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap;
}
nav.menu > a:hover { background: var(--surface); color: var(--ink); }
nav.menu > a[aria-current="page"] { color: var(--brand); background: var(--surface); }
.top-cta { flex: none; margin-left: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--ui); font-size: 15px; font-weight: 700; line-height: 1.3;
  padding: var(--btn-pad); border-radius: var(--btn-radius); text-decoration: none;
  border: var(--bd) solid var(--rule); background: var(--card); color: var(--ink);
  white-space: nowrap; cursor: pointer;
}
.btn:hover { border-color: var(--brand); }
.btn.fill { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.btn.fill:hover { opacity: .92; }
.btn.small { font-size: 13.5px; padding: 8px 14px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }

main section { padding-block: var(--sec); }
main section + section { border-top: var(--bd) solid var(--rule); }
section.tint { background: var(--surface); }
main section > .wrap > * + * { margin-top: clamp(24px, 3.6vw, 38px); }
.sec-head { max-width: 44em; }
.sec-head .lede { margin-top: 12px; }
/* 글 묶음 다음에 오는 것(버튼 줄 · 숫자 칸 · 카드)은 늘 띄웁니다.
   덩어리마다 따로 걸면 어디는 붙고 어디는 벌어집니다. */
.sec-head + * { margin-top: clamp(22px, 3.2vw, 32px); }
.center { text-align: center; }
.center .sec-head, .center .lede { margin-inline: auto; }

.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
.card {
  background: var(--card); border: var(--bd) solid var(--rule); border-radius: var(--radius);
  padding: var(--pad); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
}
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.card p b { color: var(--ink); }
.card .k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.card .v { font-size: clamp(21px, 3.4vw, 28px); font-weight: 800; letter-spacing: -.035em; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--gap); }
.stats > div { background: var(--card); border: var(--bd) solid var(--rule);
               border-radius: var(--radius); padding: 17px 19px; box-shadow: var(--shadow); }
.stats .v { display: block; font-size: clamp(22px, 3.6vw, 30px); font-weight: 800; letter-spacing: -.04em; }
.stats .k { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; letter-spacing: 0; }

.rows { display: grid; gap: 0; }
.rows > div {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 15px 2px; border-bottom: var(--bd) solid var(--rule);
}
.rows > div:first-child { border-top: var(--bd) solid var(--rule); }
.rows .n { font-weight: 700; font-size: 15.5px; flex: 1 1 220px; }
.rows .d { color: var(--muted); font-size: 14px; flex: 2 1 280px; }
.rows .p { font-weight: 800; letter-spacing: -.03em; font-size: 16px; margin-left: auto; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 440px; }
th, td { padding: 12px 14px; border-bottom: var(--bd) solid var(--rule); text-align: left; vertical-align: top; }
thead th { font-size: 12.5px; letter-spacing: .04em; color: var(--muted); background: var(--surface); font-weight: 700; }
td.r, th.r { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
caption { text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 9px; }

ul.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
ul.check li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.65; }
ul.check li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 5.5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
ul.check.two { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 9px 22px; }

ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 18px 20px 19px 58px;
  background: var(--card); border: var(--bd) solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
ol.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--paper);
  font-size: 13px; font-weight: 800; display: grid; place-items: center; }
ol.steps p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

details.qa { border: var(--bd) solid var(--rule); border-radius: var(--radius);
  background: var(--card); padding: 0 18px; margin-bottom: 8px; }
details.qa > summary { cursor: pointer; list-style: none; padding: 15px 26px 15px 0;
  position: relative; font-weight: 700; font-size: 15.5px; }
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after { content: "+"; position: absolute; right: 2px; top: 12px;
  font-size: 19px; font-weight: 400; color: var(--muted); }
details.qa[open] > summary::after { content: "–"; }
details.qa .body { padding: 0 0 17px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

.note { border: var(--bd) solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface);
  padding: 15px 18px; font-size: 14.5px; line-height: 1.7; }
.note b { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: var(--bd) solid var(--rule); color: var(--muted); }
.chip.on { background: var(--brand); color: var(--paper); border-color: var(--brand); }

.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(238px, 1fr);
  gap: var(--gap); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; }

.gal { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gal figure { margin: 0; }
.gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
  border: var(--bd) solid var(--rule); }
.gal figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }

.alt { display: grid; gap: clamp(20px, 3.4vw, 40px); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.alt:nth-of-type(even) > *:first-child { order: 2; }
.alt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 780px) { .alt { grid-template-columns: minmax(0, 1fr); }
  .alt:nth-of-type(even) > *:first-child { order: 0; } }

label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 13px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  display: block; width: 100%; margin-top: 6px; font-family: var(--ui); font-size: 15.5px;
  color: var(--ink); background: var(--card); border: var(--bd) solid var(--rule);
  border-radius: var(--radius-sm); padding: 11px 13px;
}
textarea { resize: vertical; }
/* 고르는 칸의 화살표 — 브라우저 기본 화살표는 오른쪽 끝에 딱 붙습니다. 직접 그려 안쪽 여백만큼 띄웁니다. */
select { appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%236E6C66' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px; }
select::-ms-expand { display: none; }
form.ask button { margin-top: 18px; }

/* PC 에서만 줄을 나눕니다. 휴대폰에서는 좁아서 한 번 더 접히면 토막이 납니다.
   앞에 띄어쓰기를 하나 두고 쓰십시오 — PC 에서는 줄 끝 공백이라 안 보이고,
   휴대폰에서는 그 공백이 낱말 사이를 벌려 줍니다. */
@media (max-width: 760px) { br.pc { display: none; } }

/* ── 견본 고지 띠 ───────────────────────────────────────── */
.demo { background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.6; }
.demo > .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 10px; }
.demo b { font-weight: 700; }
.demo a { margin-left: auto; color: var(--paper); font-weight: 700; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent);
  border-radius: 999px; padding: 5px 13px; white-space: nowrap; }

/* ── 꼬리말 ─────────────────────────────────────────────── */
footer.bot { border-top: var(--bd) solid var(--rule); background: var(--surface); font-size: 14px; }
footer.bot > .wrap { padding-block: clamp(32px, 5vw, 48px) 28px;
  display: grid; gap: 26px; grid-template-columns: 1.2fr 1fr; }
@media (max-width: 720px) { footer.bot > .wrap { grid-template-columns: 1fr; } }
footer.bot dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 14px 0 0; font-size: 13px; }
footer.bot dt { color: var(--muted); }
footer.bot dd { margin: 0; }
footer.bot .made { font-size: 13px; color: var(--muted); line-height: 1.7; }
footer.bot .made a { color: var(--brand); }

/* ── 휴대폰 ─────────────────────────────────────────────── */
.navtoggle, .navveil, .navmore, .navlogo { display: none; }
@media (max-width: 900px) {
  header.top { backdrop-filter: none !important; }
  header.top > .wrap { flex-wrap: nowrap; }
  .top-cta { display: none; }
  .navtoggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; margin-left: auto; flex: none; cursor: pointer;
    background: transparent; border: var(--bd) solid var(--rule); border-radius: var(--radius-sm);
    position: relative; z-index: 3; }
  .navtoggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }
  body.navopen .navtoggle { visibility: hidden; }
  body.photohero:not(.scrolled) .navtoggle { border-color: rgba(255,255,255,.55); }
  body.photohero:not(.scrolled) .navtoggle span { background: #FFF; }
  body.navopen.photohero .navtoggle span { background: var(--ink); }

  nav.menu { position: fixed; inset: 0 0 0 auto; z-index: 2; width: min(82vw, 330px);
    display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px;
    margin: 0; padding: env(safe-area-inset-top) 14px calc(20px + env(safe-area-inset-bottom));
    background: var(--paper); border-left: var(--bd) solid var(--rule);
    transform: translateX(100%); transition: transform .28s ease;
    overflow-y: auto; overscroll-behavior: contain; }
  /* 그림자는 열렸을 때만 — 닫혀 밖에 숨어 있어도 그림자가 화면 안으로 번져 휴대폰 오른쪽 끝이 회색으로 보였습니다 (대표 지적, 2026-09-24) */
  body.navopen nav.menu { transform: translateX(0); box-shadow: -24px 0 60px -30px rgba(16,16,14,.55); }
  body.navopen { overflow: hidden; }
  body.navopen header.top { z-index: 80; }
  nav.menu > a { font-size: 16px; padding: 13px 12px; white-space: normal; color: var(--muted) !important;
    background: transparent !important; }
  nav.menu > a[aria-current="page"] { color: var(--brand) !important; background: var(--surface) !important; }
  .navlogo { display: flex; align-items: center; position: sticky; top: 0; z-index: 1;
    background: var(--paper); min-height: var(--topH, 62px); margin: 0 -14px 10px;
    padding: 0 26px; border-bottom: var(--bd) solid var(--rule); }
  .navlogo, .navlogo b { color: var(--ink) !important; }
  .navlogo i { color: var(--muted) !important; }
  .navmore { display: flex; flex-direction: column; flex: 1 1 auto;
    margin-top: 14px; padding-top: 14px; border-top: var(--bd) solid var(--rule); }
  .navmore .btn { display: flex; width: 100%; margin: 0 0 8px; }
  .navfacts { margin-top: auto; padding: 13px 14px; border-radius: var(--radius-sm);
    background: var(--card); border: var(--bd) solid var(--rule); font-size: 13px; line-height: 1.55; }
  .navfacts dt { font-size: 11.5px; font-weight: 700; color: var(--muted); }
  .navfacts dd { margin: 2px 0 10px; font-weight: 600; }
  .navfacts dd:last-child { margin-bottom: 0; }
  .navveil { display: block; position: fixed; inset: 0; z-index: 1;
    background: rgba(16,16,14,.5); opacity: 0; pointer-events: none; transition: opacity .28s ease; }
  body.navopen .navveil { opacity: 1; pointer-events: auto; }
}

/* ── 바닥에 붙는 문의 띠 ────────────────────────────────── */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; inset: auto 0 0 0; z-index: 40;
    padding: 9px var(--edge) calc(9px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 93%, transparent);
    backdrop-filter: blur(10px); border-top: var(--bd) solid var(--rule); }
  .callbar .btn { padding: 12px 10px; font-size: 15px; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } nav.menu, .navveil { transition: none; } }


/* ══ 사진 중심 구역 ═══════════════════════════════════════════
   제작사 포트폴리오 52건을 뜯어보고 반복되는 것만 가져왔습니다.
   **우리 견본에 이게 하나도 없어서 글만 많고 밋밋했습니다.**
     .quickbar     첫 화면 바로 아래 가로 바로가기
     .en           영문 소제목 (레퍼런스가 전부 이 꼴입니다)
     .pgrid        사진 격자
     .people-round 동그란 인물 사진
     .photoband    색면 위에 사진을 겹쳐 깐 구역
     .sidedock     오른쪽 세로 바로가기
   ══════════════════════════════════════════════════════════ */

/* ── 첫 화면 바로 아래 바로가기 ─────────────────────────────── */
.qb-sec { padding-block: 0; border-top: 0; }
.qb-sec > .wrap { padding-block: 0; }
.quickbar {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--card, #fff); border: 1px solid var(--rule, #e5e5e5);
  border-radius: var(--radius, 14px); overflow: hidden;
  margin-top: clamp(-46px, -4vw, -28px); position: relative; z-index: 3;
  box-shadow: 0 22px 48px -30px rgba(20,18,16,.45);
}
/* **퀵바는 첫 화면 위로 겹쳐 올라옵니다.** 사진은 겹쳐도 되지만 글과 버튼이
   깔리면 안 됩니다. 겹치는 금액(-28~-46px)에 여유를 더해 첫 화면 아래를 비웁니다.
   `도구/간격확인.py` 가 이 틈을 매번 잽니다 — 눈으로 놓칩니다. */
.hero.has-qb > .wrap:last-of-type { padding-bottom: clamp(78px, 8.5vw, 102px); }
@media (max-width: 760px) {
  .hero.has-qb > .wrap:last-of-type { padding-bottom: clamp(56px, 10vw, 74px); }
}

.quickbar > a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 20px 8px 18px; text-decoration: none;
  color: var(--ink, #1a1a18); font-size: 13.5px; font-weight: 700;
  text-align: center; word-break: keep-all; line-height: 1.4;
  transition: background .15s ease;
}
.quickbar > a + a { border-left: 1px solid var(--rule, #e5e5e5); }
.quickbar > a:hover { background: var(--surface, #f3f1ec); }
.quickbar .qi { display: block; color: var(--brand, #2a2a2a); }
.quickbar .qi svg { width: 27px; height: 27px; display: block; }
@media (max-width: 760px) {
  /* **여섯 칸을 한 줄에 밀어 넣으면 글자가 세로로 쪼개집니다.**
     두 줄로 접습니다. */
  .quickbar { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr);
              margin-top: clamp(-30px, -5vw, -18px); }
  .quickbar > a { padding: 15px 6px 13px; font-size: 12.5px; gap: 7px; }
  .quickbar > a + a { border-left: 0; }
  .quickbar > a:nth-child(n+4) { border-top: 1px solid var(--rule, #e5e5e5); }
  .quickbar > a:not(:nth-child(3n+1)) { border-left: 1px solid var(--rule, #e5e5e5); }
  .quickbar .qi svg { width: 23px; height: 23px; }
}

/* ── 영문 소제목 ───────────────────────────────────────────── */
.en {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent, #8a6a4a);
}
.photoband .en { color: rgba(255,255,255,.78); }

/* ── 사진 격자 ─────────────────────────────────────────────── */
.pgrid { display: grid; gap: clamp(10px, 1.4vw, 16px); }
.pgrid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pgrid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pgrid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgrid figure { margin: 0; }
.pgrid img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: var(--radius-sm, 10px);
}
.pgrid figcaption {
  margin-top: 9px; font-size: 13px; font-weight: 600;
  color: var(--muted, #6e6c66); word-break: keep-all;
}
@media (max-width: 860px) { .pgrid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pgrid.g3, .pgrid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid figcaption { font-size: 12.5px; }
}

/* ── 동그란 인물 사진 ──────────────────────────────────────── */
.people-round {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}
.people-round figure { margin: 0; text-align: center; }
.people-round .ph {
  display: block; width: min(100%, 190px); margin: 0 auto;
  aspect-ratio: 1; border-radius: 999px; overflow: hidden;
  background: var(--surface, #f3f1ec);
}
.people-round .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.people-round figcaption { margin-top: 14px; }
.people-round figcaption b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.people-round figcaption i {
  display: block; margin-top: 3px; font-style: normal;
  font-size: 13px; color: var(--muted, #6e6c66);
}

/* ── 색면 + 사진 겹침 ──────────────────────────────────────── */
.photoband { position: relative; overflow: hidden; background: var(--brand, #2a2a2a); border-top: 0; }
.photoband .bandshot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .34; z-index: 0;
}
/* 사진만 깔면 글이 밝은 데서 날아갑니다. 색을 한 겹 더 덮습니다. */
.photoband::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg,
    color-mix(in srgb, var(--brand, #2a2a2a) 88%, transparent) 0%,
    color-mix(in srgb, var(--brand, #2a2a2a) 62%, transparent) 58%,
    color-mix(in srgb, var(--brand, #2a2a2a) 40%, transparent) 100%);
}
.photoband > .wrap { position: relative; z-index: 2; color: #fff; }
.photoband h2 { color: #fff; }
.photoband .lede { color: rgba(255,255,255,.86); max-width: 40em; }
.photoband .bandstat {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(12px, 1.8vw, 22px); margin-top: clamp(24px, 3.4vw, 36px);
}
.photoband .bandstat > div {
  padding: 16px 18px; border-radius: var(--radius-sm, 10px);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
}
.photoband .bandstat .v {
  display: block; font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800; letter-spacing: -.035em; color: #fff;
}
.photoband .bandstat .k { display: block; margin-top: 2px; font-size: 13px; color: rgba(255,255,255,.78); }

/* ── 오른쪽 세로 바로가기 ──────────────────────────────────── */
.sidedock {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: grid; gap: 8px;
}
.sidedock a {
  display: grid; justify-items: center; gap: 4px; width: 56px; padding: 11px 4px;
  background: var(--card, #fff); border: 1px solid var(--rule, #e5e5e5);
  border-radius: 14px; text-decoration: none;
  color: var(--ink, #1a1a18); font-size: 11px; font-weight: 700;
  box-shadow: 0 14px 30px -20px rgba(20,18,16,.5);
  transition: background .15s ease, border-color .15s ease;
}
.sidedock a:hover { background: var(--surface, #f3f1ec); border-color: var(--brand, #2a2a2a); }
.sidedock svg { width: 21px; height: 21px; color: var(--brand, #2a2a2a); }
/* **휴대폰에서는 띄우지 않습니다.** 화면 아래 고정 띠가 같은 일을 하고,
   둘 다 띄우면 엄지로 닿는 자리를 둘이 다툽니다. */
@media (max-width: 900px) { .sidedock { display: none; } }
/* ══ 사진 중심 구역 · 끝 ══════════════════════════════════════ */

/* ══ 두 번째 레퍼런스에서 배운 것 ══════════════════════════════
   템플릿 여덟 벌은 문법이 또 달랐습니다. 정보를 빽빽이 채우는 대신
   **큰 글씨 하나와 흐르는 줄**로 분위기를 만듭니다.
   ══════════════════════════════════════════════════════════ */

/* ── 맨 위 공지 띠 ─────────────────────────────────────────── */
.topnote {
  background: var(--brand, #2a2a2a); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: -.01em;
}
.topnote > .wrap {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 38px; padding-block: 8px; text-align: center; word-break: keep-all;
}
.topnote a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 560px) { .topnote { font-size: 12px; } .topnote > .wrap { gap: 8px; } }

/* ── 옆으로 흐르는 글줄 ────────────────────────────────────── */
.marquee {
  overflow: hidden; border-block: 1px solid var(--rule, #e5e5e5);
  background: var(--surface, #f3f1ec); padding-block: 13px;
}
.mq-track {
  display: flex; gap: 0; width: max-content;
  animation: mq 34s linear infinite;
}
.mq-track span {
  padding: 0 26px; font-size: clamp(15px, 2.2vw, 19px); font-weight: 800;
  letter-spacing: -.03em; color: var(--ink, #1a1a18); white-space: nowrap;
}
.mq-track span + span::before {
  content: "·"; margin-right: 26px; margin-left: -26px; color: var(--accent, #8a6a4a);
}
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 움직임을 줄여 달라고 설정한 분에게는 멈춰 보여드립니다. */
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* ── 옆으로 미는 사진 줄 ───────────────────────────────────── */
.hstrip { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.hstrip::-webkit-scrollbar { height: 6px; }
.hstrip::-webkit-scrollbar-thumb { background: var(--rule, #e5e5e5); border-radius: 99px; }
.hs-track { display: flex; gap: clamp(10px, 1.4vw, 16px); width: max-content; }
.hs-track figure { margin: 0; width: clamp(210px, 26vw, 310px); scroll-snap-align: start; }
.hs-track img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: var(--radius-sm, 10px);
}
.hs-track figcaption { margin-top: 9px; font-size: 13px; font-weight: 600;
  color: var(--muted, #6e6c66); word-break: keep-all; }
/* ══ 두 번째 레퍼런스에서 배운 것 · 끝 ═════════════════════════ */


/* ══ 첫 화면 · 네 원형 ═══════════════════════════════════════
   레퍼런스에서 넷을 옮기고(center · left · title · gallery), 전 판이 더 나았던
   둘(dim · overlap)을 남겼습니다. class 는 `hero2` 로 새로 잡아 옛 `.hero` 규칙과
   섞이지 않게 했습니다. (표식 이름은 처음 이름 그대로 "네 원형" 입니다 — 바꾸면
   견본첫화면넣기.py 가 예전 블록을 못 찾습니다.)
   ══════════════════════════════════════════════════════════ */
/* 색 이름이 견본마다 다릅니다 (--brand 가 없고 --navy 만 있는 곳도 있습니다).
   여기서 한 번 받아 두고 아래서는 --h2b(바탕색) · --h2a(강조색)만 씁니다. */
:root { --h2b: var(--brand, var(--navy, var(--ink, #222)));
        --h2a: var(--accent, var(--brand, var(--navy, var(--ink, #222)))); }
.hero2 { position: relative; overflow: hidden; padding: 0; border-top: 0; margin: 0; }
.hero2 > .wrap { position: relative; z-index: 2; padding-block: 0; }
.hero2 h1 { margin: 0; color: inherit; }
.hero2 h1 em { font-style: normal; }
.hero2 .h2-sub { margin: 0; word-break: keep-all; }
.h2-shot { position: absolute; inset: 0; z-index: 0; }
.h2-shot img, .h2-shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.h2-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.h2-btns.center { justify-content: center; }
.hero2 .btn { font-size: 15px; }

/* 캐러셀 화살표와 점 — 레퍼런스가 전부 갖고 있습니다. 장식이라 눌러도 아무 일 없습니다. */
.h2-nav { position: absolute; inset: 50% 0 auto 0; z-index: 3; display: flex;
  justify-content: space-between; padding: 0 clamp(14px, 2vw, 30px); transform: translateY(-50%);
  pointer-events: none; }
.h2-arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; line-height: 1; color: #fff; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.42); backdrop-filter: blur(4px); }
.h2-dots { position: absolute; left: 0; right: 0; bottom: clamp(70px, 8vw, 100px); z-index: 3;
  display: flex; justify-content: center; gap: 8px; }
.h2-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.42); }
.h2-dots i.on { width: 26px; border-radius: 99px; background: #fff; }
.h2-dots.inline { position: static; justify-content: flex-start; margin-top: clamp(22px, 3vw, 34px); }

/* 머리말을 사진 위에 띄웁니다 (center · left · gallery) */
body.photohero .hero2 { margin-top: calc(-1 * var(--topH, 62px)); }

/* ── center : 서울티스치과 ─────────────────────────────────── */
.h-center { min-height: min(100svh, 820px); display: grid; align-items: center; color: #fff;
  text-align: center; padding-block: calc(var(--topH, 62px) + clamp(40px, 6vw, 72px)) clamp(120px, 14vw, 170px); }
.h-center .h2-shot::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12,16,20,.62) 0%, rgba(12,16,20,.44) 45%, rgba(12,16,20,.66) 100%); }
.h-center .h2-eyebrow { margin: 0 0 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .26em;
  color: rgba(255,255,255,.86); }
.h-center h1 { font-size: clamp(30px, 5.4vw, 58px); font-weight: 800; line-height: 1.22;
  letter-spacing: -.035em; text-shadow: 0 2px 22px rgba(0,0,0,.35); word-break: keep-all; }
.h-center h1 em { color: #fff; border-bottom: 3px solid rgba(255,255,255,.55); }
.h-center .h2-sub { max-width: 42em; margin: 18px auto 0; font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.7; color: rgba(255,255,255,.9); text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.h-center .h2-note { margin: 12px 0 0; font-size: 13px; color: rgba(255,255,255,.72); word-break: keep-all; }
.h-center .h2-btns { margin-top: 26px; }
.h-center .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(4px); }
.h-center .btn.fill { background: #fff; border-color: #fff; color: var(--ink); }
.h-center .h2-pills { display: inline-flex; margin: 34px auto 0; padding: 6px;
  border-radius: 999px; background: rgba(8,12,16,.46); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); }
.h-center .h2-pills span { display: grid; gap: 1px; padding: 10px 26px; text-align: center; }
.h-center .h2-pills span + span { border-left: 1px solid rgba(255,255,255,.22); }
.h-center .h2-pills b { font-size: clamp(18px, 2vw, 22px); font-weight: 800; letter-spacing: -.03em; }
.h-center .h2-pills i { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.72); }

/* ── left : 미래로마디재활 ─────────────────────────────────── */
.h-left { min-height: min(96svh, 780px); display: grid; align-items: center; color: #fff;
  padding-block: calc(var(--topH, 62px) + clamp(36px, 5vw, 60px)) clamp(110px, 12vw, 150px); }
.h-left .h2-shot::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--h2b) 84%, transparent) 0%,
    color-mix(in srgb, var(--h2b) 62%, transparent) 42%,
    color-mix(in srgb, var(--h2b) 22%, transparent) 78%,
    color-mix(in srgb, var(--h2b) 10%, transparent) 100%); }
.h-left > .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end;
  gap: clamp(24px, 4vw, 48px); }
.h-left .h2-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em; color: rgba(255,255,255,.84); }
.h-left .h2-eyebrow::before { content: ""; width: 34px; height: 1px; background: rgba(255,255,255,.7); }
.h-left h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; word-break: keep-all; }
.h-left h1 em { color: #fff; }
.h-left .h2-sub { max-width: 34em; margin-top: 18px; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7; color: rgba(255,255,255,.88); }
.h-left .h2-btns { margin-top: 26px; }
.h-left .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
.h-left .btn.fill { background: #fff; border-color: #fff; color: var(--h2b); }
.h-left .btn.tel { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-color: #fff;
  color: var(--h2b); border-radius: 999px; padding-inline: 20px; }
.h-left .btn.tel svg { width: 17px; height: 17px; }
.h2-card { justify-self: end; min-width: 220px; padding: 18px 22px; border-radius: 16px;
  background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 24px 48px -24px rgba(0,0,0,.45); }
.h2-card .k { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.h2-card b { display: block; margin-top: 4px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.035em; color: var(--h2b); }
.h2-card .n { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); word-break: keep-all; }

/* ── title : 밀담 · 구운담 ─────────────────────────────────── */
.h-title { background: var(--paper); color: var(--ink); text-align: center;
  padding-block: clamp(44px, 6.5vw, 84px) 0; }
.h-title h1 { font-size: clamp(38px, 6.2vw, 74px); font-weight: 900; line-height: 1.08;
  letter-spacing: -.045em; word-break: keep-all; }
.h-title .h2-accent { margin: clamp(10px, 1.6vw, 18px) 0 0; font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 700; font-style: italic; letter-spacing: -.02em; color: var(--h2a);
  font-family: "Nanum Pen Script", "Gaegu", "KoPub Batang", "Apple SD Gothic Neo", cursive, var(--ui); }
.h-title .h2-sub { max-width: 40em; margin: 16px auto 0; font-size: clamp(14.5px, 1.4vw, 16.5px); color: var(--muted); line-height: 1.7; }
.h-title .h2-btns { margin-top: 22px; }
.h-title .h2-photo { position: relative; margin-top: clamp(30px, 4.4vw, 56px); border-radius: var(--radius, 14px) var(--radius, 14px) 0 0; overflow: hidden; }
.h-title .h2-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7.2; object-fit: cover; }
.h2-chip { position: absolute; left: clamp(14px, 2vw, 26px); top: clamp(14px, 2vw, 26px);
  padding: 8px 14px; border-radius: 999px; background: var(--h2b); color: var(--paper);
  font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.h2-badge { position: absolute; right: clamp(14px, 2vw, 26px); top: clamp(14px, 2vw, 26px);
  display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--ink);
  text-align: left; box-shadow: 0 16px 34px -18px rgba(0,0,0,.5); transform: rotate(3deg); }
.h2-badge b { font-size: 15px; font-weight: 900; color: var(--h2a); }
.h2-badge i { font-style: normal; font-size: 12px; color: var(--muted); }
.h2-hours { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; text-align: center;
  background: rgba(10,10,10,.56); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  backdrop-filter: blur(6px); }

/* ── gallery : 베리트디자인 · 글로이 ──────────────────────── */
.h-gallery { min-height: min(92svh, 760px); display: grid; align-items: end; color: #fff;
  padding-block: calc(var(--topH, 62px) + 40px) clamp(110px, 12vw, 150px); }
.h-gallery .h2-shot::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.62) 0%, rgba(10,10,10,.18) 46%, rgba(10,10,10,.22) 100%); }
.h-gallery:not(.quiet) { align-items: center; text-align: center; }
.h-gallery .h2-en { margin: 0 0 14px; font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  font-size: clamp(38px, 6.4vw, 78px); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
.h-gallery h1 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.h-gallery.quiet h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.h-gallery .h2-sub { margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,.82); max-width: 36em; }
.h-gallery:not(.quiet) .h2-sub { margin-inline: auto; }
.h-gallery .h2-btns { margin-top: 20px; }
.h-gallery .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color: #fff; border-radius: 999px; }
.h-gallery .btn.fill { background: #fff; border-color: #fff; color: var(--ink); }
.h-gallery .h2-dots { bottom: clamp(72px, 7.5vw, 96px); }
.h-gallery.quiet .h2-dots { justify-content: flex-start; padding-left: var(--edge, 24px); }

/* ── dim : 목요일의 부엌 — 전 판(photo-dim) 그대로 ─────────────────
   사진을 화면 전체에 깔고 어둡게 덮은 뒤 왼쪽에 흰 글을 얹습니다. */
.h-dim { min-height: min(80vh, 660px); display: flex; align-items: center; color: #FFF;
  padding-top: calc(var(--topH, 62px) + clamp(28px, 5vw, 56px)); padding-bottom: clamp(28px, 5vw, 56px); }
.h-dim .shot { position: absolute; inset: 0; z-index: 0; }
.h-dim .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-dim .shot::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,14,12,.82) 0%, rgba(14,14,12,.70) 32%,
    rgba(14,14,12,.44) 58%, rgba(14,14,12,.26) 100%),
    linear-gradient(to top, rgba(14,14,12,.34) 0%, transparent 46%); }
.h-dim > .wrap { width: 100%; }
.h-dim h1, .h-dim .lede, .h-dim .lede b, .h-dim .eyebrow { color: #FFF; }
.h-dim .lede { color: rgba(255,255,255,.86); }
.h-dim .eyebrow { border-left-color: rgba(255,255,255,.6); color: #FFF; }
.h-dim .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.44); color: #FFF;
  backdrop-filter: blur(6px); }
.h-dim .btn.fill { background: #FFF; border-color: #FFF; color: var(--ink); }
.h-dim .stats > div { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.28);
  color: #FFF; backdrop-filter: blur(6px); box-shadow: none; }
.h-dim .stats .k { color: rgba(255,255,255,.75); }
.h-dim.has-qb > .wrap { padding-bottom: clamp(78px, 8.5vw, 102px); }

/* ── overlap : 라온헤어 — 전 판(overlap) 그대로 ───────────────────
   글이 위, 사진이 아래. 사진 위로 현황 카드가 걸쳐 올라옵니다. */
.h-overlap { background: var(--paper); color: var(--ink); padding-block: clamp(30px, 4.6vw, 54px) 0; }
.h-overlap > .wrap + .wrap { margin-top: clamp(26px, 3.8vw, 44px); }
.h-overlap .shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius, 14px); display: block; }
.h-overlap .over { position: relative; margin: clamp(-80px, -7vw, -46px) auto 0;
  width: min(100%, 860px); background: var(--card, #fff); border: var(--bd, 1px) solid var(--rule, #e5e5e5);
  border-radius: var(--radius, 14px); padding: clamp(22px, 3.2vw, 34px); box-shadow: var(--shadow, none); }
.h-overlap.has-qb > .wrap:last-of-type { padding-bottom: clamp(78px, 8.5vw, 102px); }

/* 퀵바가 첫 화면 위로 겹쳐 올라옵니다 (PC 최대 46px · 폰 최대 30px).
   사진 위에 글을 얹는 세 원형은 padding-bottom 을 위에서 넉넉히 잡았고,
   title 은 사진이 맨 밑이라 여기서 비웁니다 — 안 비우면 영업시간 띠가 퀵바에 깔립니다.
   `도구/간격확인.py` 가 맨 아랫줄 ↔ 퀵바 틈을 잽니다. */
.h-title.has-qb { padding-bottom: clamp(64px, 7vw, 92px); }
.h-title.has-qb .h2-photo { border-radius: var(--radius, 14px); }

/* 사진 위에 뜬 머리말 — 열두 곳 공통. 손수 만든 견본은 저마다 비슷한 규칙을
   갖고 있지만 생성 견본은 photo-dim 첫 화면에만 있었습니다. 여기 한 벌로 둡니다.
   스크롤하면(.scrolled) 규칙이 풀려 원래 머리말로 돌아갑니다. */
body.photohero:not(.scrolled) .top { background: transparent; border-bottom-color: transparent;
  box-shadow: none; backdrop-filter: none; }
body.photohero:not(.scrolled) .top > .wrap > .logo,
body.photohero:not(.scrolled) .top > .wrap > .logo b { color: #fff; }
body.photohero:not(.scrolled) .top > .wrap > .logo i,
body.photohero:not(.scrolled) .top > .wrap > .logo span:not(.mk) { color: rgba(255,255,255,.78); }
body.photohero:not(.scrolled) .top > .wrap > .logo .mk { background: #fff; color: var(--h2b); }
body.photohero:not(.scrolled) .top > .wrap > .logo svg { filter: drop-shadow(0 1px 7px rgba(0,0,0,.5)); }
@media (min-width: 901px) {
  body.photohero:not(.scrolled) .top .menu > a { color: rgba(255,255,255,.86); }
  body.photohero:not(.scrolled) .top .menu > a:hover,
  body.photohero:not(.scrolled) .top .menu > a[aria-current] { background: rgba(255,255,255,.18); color: #fff; }
  body.photohero:not(.scrolled) .top .top-cta,
  body.photohero:not(.scrolled) .top .me { background: #fff; border-color: #fff; color: var(--h2b); }
  body.photohero:not(.scrolled) .top .me em { color: var(--muted); }
}
@media (max-width: 900px) {
  body.photohero:not(.scrolled):not(.navopen) .navtoggle { border-color: rgba(255,255,255,.55); }
  body.photohero:not(.scrolled):not(.navopen) .navtoggle span { background: #fff; }
}

/* 세로 바로가기는 오른쪽 아래로. 가운데 두면 첫 화면 오른쪽 화살표와 자리를 다툽니다.
   레퍼런스도 전화·카톡·TOP 를 오른쪽 아래에 둡니다. */
.sidedock { top: auto; bottom: 28px; transform: none; }

@media (max-width: 900px) {
  .h-dim .shot::after { background: linear-gradient(to bottom, rgba(14,14,12,.50) 0%, rgba(14,14,12,.66) 100%); }
}
@media (max-width: 760px) {
  .h2-nav { display: none; }
  .h-dim.has-qb > .wrap, .h-overlap.has-qb > .wrap:last-of-type { padding-bottom: clamp(56px, 10vw, 74px); }
  .h-overlap .over { margin-top: -28px; }
  .h-center { min-height: min(88svh, 680px); padding-bottom: 96px; }
  .h-center .h2-pills { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 16px; }
  .h-center .h2-pills span { padding: 10px 6px; }
  .h-center .h2-pills span + span { border-left: 1px solid rgba(255,255,255,.22); }
  .h-left { min-height: min(88svh, 680px); padding-bottom: 92px; }
  .h-left > .wrap { grid-template-columns: minmax(0, 1fr); }
  .h2-card { justify-self: start; width: 100%; }
  .h-title h1 { font-size: clamp(32px, 9.6vw, 44px); }
  .h-title.has-qb { padding-bottom: clamp(48px, 12vw, 64px); }
  .h-title .h2-photo img { aspect-ratio: 4 / 3; }
  .h2-badge { transform: none; padding: 9px 12px; }
  .h2-hours { font-size: 12.5px; }
  .h-gallery { min-height: min(84svh, 620px); padding-bottom: 88px; }
  .h2-dots { bottom: 52px; }
}
/* ══ 첫 화면 · 네 원형 · 끝 ═══════════════════════════════════ */


/* ══ 움직임 ═══════════════════════════════════════════════════
   도구/견본/움직임.py 가 넣습니다. 숨기는 규칙은 html.mv(스크립트가 붙임)가 있어야만 삽니다.
   ══════════════════════════════════════════════════════════ */
html.mv [data-mv] { opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--mv-d, 0ms); }
html.mv [data-mv].in { opacity: 1; transform: none; }
/* 사진 가림막 — 아래에서 위로 걷힙니다. 사진 제 틀 안에서만 움직여 옆으로 넘치지 않습니다 */
html.mv [data-mvi] { clip-path: inset(100% 0 0 0);
  transition: clip-path 1.05s cubic-bezier(.7,0,.2,1); transition-delay: var(--mv-d, 0ms); }
html.mv [data-mvi].in { clip-path: inset(0 0 0 0); }
/* 첫 화면 사진을 위로 120px 늘려 두고 스크롤 따라 내립니다 — 늘려 두지 않으면 위가 빕니다 */
html.mv.mv-px .h2-shot img, html.mv.mv-px .h-dim .shot img { height: calc(100% + 120px); margin-top: -120px; will-change: transform; }
body.is-scrolled .top { box-shadow: 0 10px 28px -22px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) {
  html.mv [data-mv] { opacity: 1; transform: none; transition: none; }
  html.mv [data-mvi] { clip-path: none; transition: none; }
}
/* ══ 움직임 · 끝 ═══════════════════════════════════════════ */

/* ══ 고유 ═══════════════════════════════════════════════════
   도구/견본/고유.py 가 넣습니다. 손대지 마세요.
   ══════════════════════════════════════════════════════════ */
/* ── 보송 애견미용 — 분홍 · 민트 · 비눗방울 · 둥글게 ─────────── */
:root { --paper: #FFF9F5; --card: #FFFFFF; --ink: #3A2A2E; --muted: #85727A; --rule: #F3DDE2;
  --brand: #D9667A; --accent: #5DB597; --pink: #FBD9DE; --mint: #D5F0E5; --butter: #FFF1C9; }
body { background: var(--paper); color: var(--ink); }
header.top { background: rgba(255,249,245,.94); border-bottom: 0; box-shadow: 0 1px 0 var(--rule); }
.logo .mk { background: var(--brand); color: #fff; border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%; }
.btn { border-radius: 999px; font-weight: 800; }
.btn.fill { background: var(--brand); border-color: var(--brand); color: #fff; }
main h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -.05em; line-height: 1.16; margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.gr-eb { display: inline-block; font-size: 13.5px; font-weight: 800; color: var(--brand); background: #fff; border-radius: 99px; padding: 6px 14px; margin: 0 0 18px; box-shadow: 0 6px 16px -10px rgba(217,102,122,.6); }
.gr-lede { color: var(--muted); font-size: 16.5px; margin: 14px 0 22px; }

/* 첫 화면 — 분홍 바탕 · 비눗방울 · 사진 위에 몸무게 고르는 카드. 공통 규칙의 위아래 여백을 걷습니다 */
.gr-hero { padding: 0 !important; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--pink) 0%, #FFE9EC 55%, var(--mint) 100%); isolation: isolate; }
.gr-hero-in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  min-height: clamp(620px, 86vh, 840px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.gr-hero h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 800; letter-spacing: -.06em; line-height: 1.1; margin: 0; }
.gr-hero h1 em { font-style: normal; color: var(--brand); }
.gr-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.gr-ghost { background: #fff; color: var(--ink); border-color: #fff; }
.gr-pick { position: relative; padding-bottom: 170px; }
.gr-photo { margin: 0 !important; } .gr-photo img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 30% 50%; display: block;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.gr-card { position: absolute; right: 0; bottom: 0; width: min(340px, 80%); background: #fff; border-radius: 26px; padding: 20px 22px; box-shadow: 0 30px 50px -30px rgba(120,40,60,.45); }
.gr-card-h { margin: 0 0 12px; font-weight: 800; font-size: 15px; }
.gr-w { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; }
.gr-w button { font: inherit; font-weight: 800; font-size: 15px; border: 2px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 14px; padding: 8px 0 6px; cursor: pointer; line-height: 1.1; }
.gr-w button small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.gr-w button.on { background: var(--brand); border-color: var(--brand); color: #fff; } .gr-w button.on small { color: rgba(255,255,255,.85); }
.gr-out { list-style: none; margin: 0; padding: 0; }
.gr-out li { display: flex; align-items: baseline; gap: 4px; padding: 8px 0; border-top: 1px dashed var(--rule); }
.gr-out span { flex: 1; font-size: 14px; font-weight: 600; } .gr-out b { font-size: 19px; font-weight: 800; } .gr-out em { font-style: normal; font-size: 13px; }
.gr-fine { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.gr-bub { position: absolute; border-radius: 50%; z-index: -1; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.2) 60%, rgba(255,255,255,0) 70%);
  border: 1.5px solid rgba(255,255,255,.8); }
.gr-bub.b1 { width: 120px; height: 120px; left: 4%; bottom: 8%; } .gr-bub.b2 { width: 56px; height: 56px; left: 40%; top: 12%; } .gr-bub.b3 { width: 84px; height: 84px; right: 6%; top: 8%; }

.gr-slots-sec, .gr-price, .gr-day, .gr-faq { padding: clamp(68px, 9.4vw, 120px) 0; }
.gr-slots-sec { background: #fff; }
.gr-slots-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.gr-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gr-slots li { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(18px, 2.2vw, 26px); font-weight: 800; background: var(--paper); border: 2px dashed var(--rule); color: var(--muted); font-variant-numeric: tabular-nums; position: relative; }
.gr-slots li[data-s="free"] { background: var(--mint); border: 2px solid var(--accent); color: var(--ink); }
.gr-slots li[data-s="free"]::after { content: '남음'; position: absolute; bottom: 18%; font-size: 12px; color: #2F7F63; }
.gr-slots li[data-s="taken"] { background: var(--pink); border: 2px solid var(--pink); color: #B77C87; }
.gr-slots li[data-s="taken"]::after { content: '찼어요'; position: absolute; bottom: 18%; font-size: 12px; }
.gr-slots li[data-s="past"] { opacity: .45; }

.gr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.gr-head .gr-lede { margin: 0; }
.gr-table-wrap { overflow-x: auto; border-radius: 22px; background: #fff; box-shadow: 0 1px 0 var(--rule), 0 20px 40px -34px rgba(120,40,60,.4); }
.gr-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.gr-table th, .gr-table td { padding: 16px 14px; text-align: right; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.gr-table thead th { font-size: 13.5px; color: var(--muted); font-weight: 800; }
.gr-table th[scope="row"], .gr-table thead th:first-child { text-align: left; font-weight: 800; color: var(--ink); }
.gr-table tbody tr:last-child > * { border-bottom: 0; }
.gr-table .on { background: var(--mint); color: var(--ink); font-weight: 800; }
.gr-table thead .on { background: var(--accent); color: #fff; }
.gr-extra { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gr-extra li { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 14px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.gr-extra b { font-size: 15.5px; } .gr-extra span { grid-column: 1; color: var(--muted); font-size: 13.5px; } .gr-extra em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-weight: 800; }
.gr-reg { margin: 20px 0 0; display: inline-block; background: var(--butter); border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 700; }

.gr-day { background: var(--mint); }
.gr-day-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.gr-circles { position: relative; aspect-ratio: 1; }
.gr-circles img { position: absolute; border-radius: 50%; object-fit: cover; height: auto; border: 6px solid #fff; box-shadow: 0 20px 40px -30px rgba(40,90,70,.6); }
.gr-circles img:nth-child(1) { width: 58%; aspect-ratio: 1; left: 0; top: 4%; }
.gr-circles img:nth-child(2) { width: 42%; aspect-ratio: 1; right: 2%; top: 0; }
.gr-circles img:nth-child(3) { width: 48%; aspect-ratio: 1; right: 10%; bottom: 0; }
.gr-steps { list-style: none; counter-reset: g; margin: 0; padding: 0; display: grid; gap: 10px; }
.gr-steps li { counter-increment: g; background: #fff; border-radius: 20px; padding: 16px 18px 16px 62px; position: relative; }
.gr-steps li::before { content: counter(g); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.gr-steps b { display: block; font-size: 16.5px; } .gr-steps span { color: var(--muted); font-size: 14.5px; }

.gr-faq-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.gr-facts { margin: 22px 0 0; display: grid; gap: 8px; }
.gr-facts div { background: #fff; border-radius: 16px; padding: 12px 16px; display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 10px; }
.gr-facts dt { font-weight: 800; color: var(--brand); font-size: 14px; } .gr-facts dd { margin: 0; font-size: 14.5px; }
.gr-qa { display: grid; gap: 10px; }
.gr-qa details { background: #fff; border-radius: 20px; padding: 0 20px; border: 1px solid var(--rule); }
.gr-qa summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 800; font-size: 16.5px; position: relative; }
.gr-qa summary::-webkit-details-marker { display: none; }
.gr-qa summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--brand); font-weight: 800; }
.gr-qa details[open] summary::after { content: '−'; }
.gr-qa details p { margin: 0 0 18px; color: var(--muted); }

@media (max-width: 900px) {
  .gr-hero-in, .gr-slots-in, .gr-day-in, .gr-faq-in { grid-template-columns: minmax(0, 1fr); }
  .gr-hero-in { min-height: 0; }
  .gr-pick { padding-bottom: 0; }
  .gr-card { position: relative; width: auto; margin: -48px 12px 0; }
  .gr-circles { max-width: 420px; }
}
@media (max-width: 520px) {
  .gr-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; }
  .gr-extra { grid-template-columns: minmax(0, 1fr); }
}


/* ── 동네 카페 하위 화면 (모퉁이 · 보늬 · 아침베이글 같이) ── */
.ks-head { position: relative; min-height: clamp(280px, 34vw, 420px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.ks-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ks-head::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.62)); }
.ks-head .wrap { width: 100%; box-sizing: border-box; padding-bottom: clamp(30px, 5vw, 54px); }
.ks-eb { display: inline-block; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 4px 12px; margin: 0 0 14px; }
.ks-head h1 { font-family: var(--hfont, inherit); font-size: clamp(32px, 4.8vw, 60px); font-weight: 800; line-height: 1.12; letter-spacing: -.05em; margin: 0 0 10px; color: #fff; }
.ks-head p:not(.ks-eb) { margin: 0; max-width: 40em; color: rgba(255,255,255,.88); }
.ks-sub { padding: clamp(56px, 8vw, 104px) 0; }
.ks-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px); }
.ks-board h2, .ks-h2 { font-family: var(--hfont, inherit); font-size: 22px !important; margin: 0 0 12px !important; }
.ks-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ks-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ks-list .k { font-weight: 700; font-size: 16.5px; } .ks-list b { font-weight: 700; }
.ks-list small { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.ks-note { margin: clamp(28px, 4vw, 44px) 0 0; padding: 16px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--rule); font-size: 15px; }
.ks-fine { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.ks-cake { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ks-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ks-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 16px 18px; }
.ks-steps span { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.ks-steps h3 { margin: 0; font-size: 16px; } .ks-steps p { margin: 0; color: var(--muted); font-size: 14px; }
.ks-visit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.ks-visit figure { margin: 0 !important; } .ks-visit img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 24px; }
.ks-open { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 22px; font-size: 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 99px; padding: 10px 18px; }
.ks-open i { width: 9px; height: 9px; border-radius: 50%; background: #BDB3A5; }
.ks-open[data-state="open"] i { background: #3FAE66; box-shadow: 0 0 0 4px rgba(63,174,102,.2); }
.ks-open[data-state="soon"] i, .ks-open[data-state="last"] i { background: #E0A94A; }
.ks-open small { color: var(--muted); font-size: 14px; }
.ks-facts { margin: 0; border-top: 2px solid var(--ink); }
.ks-facts div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ks-facts dt { font-weight: 800; color: var(--brand); font-size: 14px; } .ks-facts dd { margin: 0; }
.own-sub #ask { background: var(--card); border-top: 1px solid var(--rule); }
.own-sub form.ask input, .own-sub form.ask textarea { border-radius: 14px; border: 1px solid var(--rule); background: var(--paper); }
@media (max-width: 900px) {
  .ks-boards, .ks-cake, .ks-visit { grid-template-columns: minmax(0, 1fr); }
  .ks-visit img { aspect-ratio: 4 / 3; }
}

.lv-calc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(28px, 4vw, 44px); }
.lv-calc-row .ks-note { margin: 0; }
.lv-one { grid-template-columns: minmax(0, 1fr); }
.lv-w { max-width: 420px; margin: 0 0 18px; }
.own-sub .gr-table-wrap + .lv-one { margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) { .lv-calc-row { grid-template-columns: minmax(0, 1fr); } }
/* ══ 고유 · 끝 ═══════════════════════════════════════════════ */
