/* 두바늘 가죽공방 — 가죽 공방 디자인 샘플 (디코랩)
   구성: 재단 패턴지·바느질. 페이지 = 초록 커팅 매트, 섹션 = 매트 위 패턴 조각, 실 한 가닥이 조각을 꿰매 잇는다.
   색은 작업대 실물에서: 커팅 매트, 패턴지(오크택), 연필, 초콜릿 가죽, 오렌지 실, 은펜 */
:root {
  --c-mat: #34493D;        /* 페이지 바탕 */
  --c-mat-line: #43594C;   /* 모눈 */
  --c-mat-deep: #253529;   /* 뚫린 구멍(매트가 비침) */
  --c-card: #F3F1EA;       /* 패턴지 조각 면 */
  --c-card-edge: #B9B1A2;
  --c-graphite: #2A221D;   /* 본문 글자·연필 선 */
  --c-pencil: #6B6158;     /* 보조 글자 */
  --c-chocolate: #4A2C1D;  /* 가죽 조각 면 */
  --c-chocolate-deep: #2E1B12;
  --c-thread: #E8762B;     /* 실·주 버튼 */
  --c-thread-ink: #2A160B; /* 주 버튼 글자 */
  --c-silverpen: #E3DCCD;  /* 가죽 위 글자 */
  --c-silverpen-dim: #C6BBA8;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-title: "Nanum Myeongjo", "Noto Serif KR", serif;

  --fs-h1: clamp(2.05rem, 1.25rem + 3vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem);
  --fs-h3: 1.12rem;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --header-h: 64px;
  --gap: 88px;            /* 조각 사이 매트 */
  --pad: clamp(24px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--c-graphite);
  background-color: var(--c-mat);
  /* 커팅 매트 모눈: 1칸 24px, 5칸마다 굵은 선 */
  background-image:
    linear-gradient(var(--c-mat-line) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--c-mat-line) 1.5px, transparent 1.5px),
    linear-gradient(rgba(67, 89, 76, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 89, 76, .55) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-title); font-weight: 800; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.muted { color: var(--c-pencil); font-size: var(--fs-small); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--c-graphite); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--c-thread); outline-offset: 3px; }

/* 실제 정보 자리 */
.ph { display: inline-block; padding: 0 .4em; border: 1.5px dashed currentColor; border-radius: 6px; opacity: .85; font-size: .92em; line-height: 1.5; }

/* 샘플 안내 띠 */
.sample-banner { background: var(--c-graphite); color: #E6E0D4; font-size: var(--fs-small); line-height: 1.6; }
.sample-banner__inner { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; }
.sample-banner__tag { flex: none; padding: 1px 8px; border-radius: 99px; background: var(--c-thread); color: var(--c-thread-ink); font-weight: 700; font-size: .78rem; }
.sample-banner a { color: #F7A36A; font-weight: 600; }

/* ---------- 헤더 (backdrop-filter 쓰지 않음) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-card); border-bottom: 4px solid var(--c-chocolate); }
.site-header::after { /* 헤더 아래 바느질 줄 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2.5px;
  background: repeating-linear-gradient(90deg, var(--c-thread) 0 9px, transparent 9px 15px);
  pointer-events: none;
}
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo b { font-family: var(--font-title); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; white-space: nowrap; }
.logo b span { color: var(--c-pencil); font-weight: 700; }
.gnb { display: flex; align-items: center; gap: 2px; }
.gnb__head { display: none; }
.gnb a { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 9px; text-decoration: none; font-weight: 600; font-size: .93rem; border-radius: 8px; white-space: nowrap; }
.gnb a i { display: grid; place-items: center; width: 21px; height: 21px; border: 1.5px solid var(--c-graphite); border-radius: 6px 2px 6px 2px; font-style: normal; font-family: var(--font-title); font-weight: 800; font-size: .76rem; line-height: 1; }
.gnb a em { display: none; }
.gnb a:hover { background: #E7E3D8; }
.gnb a.is-active i { background: var(--c-chocolate); border-color: var(--c-chocolate); color: var(--c-silverpen); }
.gnb a.is-active::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 1px; height: 2.5px; background: repeating-linear-gradient(90deg, var(--c-chocolate) 0 6px, transparent 6px 9px); }
.header-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; background: var(--c-thread); color: var(--c-thread-ink); font-weight: 700; font-size: .93rem; text-decoration: none; white-space: nowrap; outline: 1.5px dashed rgba(42, 22, 11, .45); outline-offset: -5px; }
.header-cta:focus-visible { outline: 3px solid var(--c-graphite); outline-offset: 2px; }
.header-tel { display: grid; width: 42px; height: 42px; border: 2px solid var(--c-graphite); border-radius: 12px; place-items: center; color: var(--c-graphite); flex: none; }
.header-tel svg { width: 20px; height: 20px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; flex: none; }
.menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after { position: absolute; left: 11px; width: 22px; height: 2.5px; border-radius: 2px; background: var(--c-graphite); transition: transform .25s, opacity .2s; }
.menu-toggle__bar { top: 21px; }
.menu-toggle__bar::before, .menu-toggle__bar::after { content: ""; left: 0; }
.menu-toggle__bar::before { transform: translateY(-7px); }
.menu-toggle__bar::after { transform: translateY(7px); }
.site-header.is-open .menu-toggle__bar { background: transparent; }
.site-header.is-open .menu-toggle__bar::before { transform: rotate(45deg); }
.site-header.is-open .menu-toggle__bar::after { transform: rotate(-45deg); }

@media (max-width: 1239px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  /* 모바일 메뉴 = 패턴지 부품표 */
  .gnb {
    display: none; position: fixed; z-index: 60; top: var(--menu-top, 120px); left: 12px; right: 12px;
    max-height: calc(100dvh - var(--menu-top, 120px) - 16px); overflow: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 14px 18px 18px;
    background: var(--c-card); border: 2px solid var(--c-graphite); border-radius: 22px 6px 22px 6px;
    box-shadow: 0 4px 0 var(--c-mat-deep);
  }
  .site-header.is-open .gnb { display: flex; }
  .gnb__head { display: grid; grid-template-columns: 44px 1fr auto; padding: 0 6px 8px; font-size: .78rem; color: var(--c-pencil); border-bottom: 2px solid var(--c-graphite); }
  .gnb a { display: grid; grid-template-columns: 44px 1fr auto; padding: 12px 6px; font-size: 1.02rem; border-radius: 0; border-bottom: 1.5px dashed var(--c-card-edge); }
  .gnb a i { width: 28px; height: 28px; font-size: .9rem; }
  .gnb a em { display: block; font-style: normal; font-size: .82rem; color: var(--c-pencil); font-weight: 500; }
  .gnb a.is-active { background: #E7E3D8; }
  .gnb a.is-active::after { display: none; }
}

/* ---------- 매트 위 시트와 조각 ---------- */
.mat { display: block; }
.sheet { position: relative; width: min(1240px, 100% - 32px); margin-inline: auto; padding: 56px 0 104px; display: flex; flex-direction: column; gap: var(--gap); }

.piece {
  --w: 100%; --x: 0%;
  position: relative; z-index: 1;
  width: var(--w); margin-left: var(--x);
  padding: var(--pad);
  padding-top: calc(var(--pad) + 8px);
  background: var(--c-card);
  border-radius: 28px;
  scroll-margin-top: calc(var(--header-h) + 18px);
}
/* JS 없이도 보이는 스티치 구멍 줄 (JS 가 조각 모양을 그리면 숨김) */
.piece::after {
  content: ""; position: absolute; inset: 16px; z-index: 0; pointer-events: none;
  border: 3px dotted rgba(37, 53, 41, .55); border-radius: 16px;
}
/* JS 없이도 보이는 실 (왼쪽 스티치 줄을 따라 이전 조각에서 내려옴) */
.piece + .piece::before {
  content: ""; position: absolute; z-index: 3; left: 17px; top: calc(-1 * var(--gap) - 26px); bottom: 26px;
  border-left: 3px dashed var(--c-thread); pointer-events: none;
}
.piece.is-shaped { background: transparent; }
.piece.is-shaped::after { display: none; }
.thread-on .piece + .piece::before { display: none; }

.piece__shape { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.piece__in { position: relative; z-index: 1; }
.piece--leather { background: var(--c-chocolate); color: var(--c-silverpen); }
.piece--leather::after { border-color: rgba(20, 10, 5, .6); }

/* 조각 폭·위치 — 엇갈려 놓인다 */
@media (min-width: 900px) {
  .piece--b { --w: 76%; }
  .piece--d { --w: 68%; --x: 32%; }
  .piece--e { --w: 74%; --x: 6%; }
  .piece--f { --w: 82%; --x: 18%; }
  .piece--g { --w: 76%; }
  .piece--h { --w: 66%; --x: 30%; }
}

/* 실 */
.thread { position: absolute; left: 0; top: 0; z-index: 3; overflow: visible; pointer-events: none; }
.thread .t-shadow { fill: none; stroke: rgba(20, 28, 22, .45); stroke-width: 3; stroke-linecap: round; }
.thread .t-gap { fill: none; stroke: var(--c-thread); stroke-width: 2.6; stroke-linecap: round; }
.thread .t-stitch { fill: none; stroke: var(--c-thread); stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: 9 7; }
.thread .t-knot { fill: var(--c-thread); }
.thread .t-needle path { stroke: #C3C8CC; stroke-width: 3.2; stroke-linecap: round; }
.thread .t-needle ellipse { fill: var(--c-mat); }

/* 조각 귀퉁이 표기: 기호·부위·재단 수량·결 방향 */
.plabel { position: absolute; z-index: 2; top: 30px; right: 34px; display: grid; justify-items: end; gap: 1px; font-size: .75rem; line-height: 1.45; color: var(--c-pencil); text-align: right; pointer-events: none; }
.plabel b { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border: 2px solid currentColor; border-radius: 50%; font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; color: var(--c-graphite); }
.plabel__name { font-weight: 700; color: var(--c-graphite); }
.plabel .grain { width: 14px; height: 64px; margin-top: 8px; margin-right: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.plabel .grain--h { width: 64px; height: 14px; margin-right: 0; }
.plabel--leather { color: var(--c-silverpen-dim); }
.plabel--leather b, .plabel--leather .plabel__name { color: var(--c-silverpen); }

/* 섹션 머리 */
.head { max-width: 40em; padding-right: 150px; margin-bottom: 32px; }
.head__kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: .95rem; color: var(--c-chocolate); }
.head__kicker::before { content: ""; width: 26px; height: 2.5px; background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 9px); }
.head h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.head p { color: #4A4038; }
.head--leather .head__kicker { color: #F2A46E; }
.head--leather p { color: var(--c-silverpen-dim); }

/* 버튼 — 바느질 테두리 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 0; font-family: inherit; transition: background-color .2s, color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn--thread { background: var(--c-thread); color: var(--c-thread-ink); outline: 1.5px dashed rgba(42, 22, 11, .5); outline-offset: -6px; }
.btn--thread:hover { background: #F08A45; }
.btn--thread:focus-visible { outline: 3px solid var(--c-graphite); outline-offset: 2px; }
.btn--line { border: 2px solid var(--c-graphite); background: transparent; color: var(--c-graphite); }
.btn--line:hover { background: #E7E3D8; }
.btn--line-light { border: 2px solid var(--c-silverpen-dim); background: transparent; color: var(--c-silverpen); }
.btn--line-light:hover { background: rgba(255, 255, 255, .08); }
.btn--kakao { background: #FEE500; color: #191919; }

/* ---------- A. 히어로 ---------- */
.piece--hero { padding-top: calc(var(--pad) + 6px); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; }
.hero__kicker { font-weight: 700; color: var(--c-chocolate); margin-bottom: 14px; }
.hero__title { font-size: var(--fs-h1); line-height: 1.22; margin-bottom: 18px; }
.hero__lead { max-width: 30em; font-size: 1.08rem; color: #4A4038; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0; border-top: 1.5px dashed var(--c-card-edge); padding-top: 16px; }
.hero__facts div { padding-right: 22px; margin-right: 22px; border-right: 1.5px solid #D8D2C5; }
.hero__facts div:last-child { border-right: 0; }
.hero__facts dt { font-size: .8rem; color: var(--c-pencil); }
.hero__facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hero__art svg { width: 100%; height: auto; }
.art-pencil { font: 600 15px var(--font); fill: #6B6158; }
.art-engrave { font: 800 26px var(--font-title); fill: #2B170E; letter-spacing: .04em; }
.art-engrave-hi { font: 800 26px var(--font-title); fill: #6A4330; letter-spacing: .04em; }

/* ---------- B. 원데이 클래스 ---------- */
.class-list { border-top: 2px solid var(--c-graphite); }
.class-row { display: grid; grid-template-columns: 60px 1fr auto auto; gap: 8px 22px; align-items: center; padding: 16px 4px; border-bottom: 1.5px dashed var(--c-card-edge); }
.class-row__icon { width: 54px; height: 54px; }
.class-row__name h3 { font-size: var(--fs-h3); margin-bottom: 2px; }
.class-row__name p { font-size: .95rem; color: #4A4038; }
.class-row__time { font-size: .95rem; color: var(--c-pencil); white-space: nowrap; }
.class-row__price { font-family: var(--font-title); font-weight: 800; font-size: 1.35rem; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 6.5em; text-align: right; }
.class-row__price small { font-family: var(--font); font-weight: 600; font-size: .8rem; margin-left: 2px; }
.pick { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 6px; background: var(--c-chocolate); color: var(--c-silverpen); font-family: var(--font); font-size: .74rem; font-weight: 600; vertical-align: .15em; letter-spacing: 0; }
.class-row--pick { background: rgba(232, 118, 43, .07); }
.class-notes { display: grid; gap: 4px; margin-top: 20px; }
.class-notes b { margin-right: 6px; }

/* ---------- C. 미리 만들기 ---------- */
.maker { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; align-items: start; }
.maker__form { display: grid; gap: 20px; }
.opt { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opt legend, .opt__label { width: 100%; padding: 0; margin-bottom: 4px; font-weight: 700; font-size: .95rem; color: var(--c-silverpen); }
.opt legend output { margin-left: 6px; font-weight: 500; color: var(--c-silverpen-dim); }
.opt__label small { font-weight: 500; color: var(--c-silverpen-dim); margin-left: 4px; }
.opt--row { align-items: center; }
.chip { position: relative; }
.chip input, .sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(227, 220, 205, .45); border-radius: 10px; font-weight: 600; font-size: .97rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip span:hover { border-color: var(--c-silverpen); }
.chip input:checked + span { background: var(--c-silverpen); color: var(--c-chocolate-deep); border-color: var(--c-silverpen); }
.chip input:focus-visible + span, .sw input:focus-visible + span { outline: 3px solid var(--c-thread); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px 4px; width: 100%; }
.sw span { display: grid; justify-items: center; gap: 4px; width: 62px; padding: 4px 0; font-size: .78rem; color: var(--c-silverpen-dim); cursor: pointer; border-radius: 10px; }
.sw span::before { content: ""; width: 38px; height: 38px; border-radius: 10px 4px 10px 4px; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); transition: transform .2s; }
.swatches--thread .sw span::before { border-radius: 50%; width: 32px; height: 32px; margin: 3px 0; }
.sw input:checked + span { color: var(--c-silverpen); font-weight: 700; background: rgba(255, 255, 255, .08); }
.sw input:checked + span::before { box-shadow: 0 0 0 2.5px var(--c-chocolate), 0 0 0 4.5px var(--c-silverpen); }
.initial { width: 9em; min-height: 46px; padding: 0 14px; border: 1.5px solid rgba(227, 220, 205, .55); border-radius: 10px; background: rgba(0, 0, 0, .18); color: var(--c-silverpen); font: 800 1.1rem var(--font-title); letter-spacing: .08em; text-transform: uppercase; }
.initial::placeholder { color: rgba(227, 220, 205, .5); }
.initial:focus-visible { outline: 3px solid var(--c-thread); outline-offset: 2px; }

.maker__out { display: grid; gap: 18px; }
.bench { background: var(--c-card); border-radius: 18px; padding: 12px; color: var(--c-graphite); }
.bench__svg { width: 100%; height: auto; border-radius: 10px; }
.bench__tag { padding: 8px 6px 2px; font-size: .9rem; font-weight: 600; color: var(--c-pencil); }
.engrave { font: 800 26px var(--font-title); letter-spacing: .06em; }
.engrave-hi { font: 800 26px var(--font-title); letter-spacing: .06em; }
.receipt { margin: 0; border-top: 2px solid var(--c-silverpen-dim); }
.receipt div { display: grid; grid-template-columns: 7em 1fr; gap: 10px; padding: 10px 2px; border-bottom: 1.5px dashed rgba(227, 220, 205, .3); }
.receipt dt { color: var(--c-silverpen-dim); font-size: .92rem; }
.receipt dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
#r-price { font-family: var(--font-title); font-size: 1.5rem; line-height: 1.3; }
.receipt .receipt__sub { grid-template-columns: 1fr; border-bottom: 0; padding-top: 0; }
.receipt__sub dd { font-weight: 500; font-size: .88rem; color: var(--c-silverpen-dim); }
.say { padding: 18px; border: 1.5px dashed rgba(227, 220, 205, .55); border-radius: 14px; }
.say__label { font-size: .85rem; color: var(--c-silverpen-dim); margin-bottom: 6px; }
.say__text { font-weight: 600; line-height: 1.7; margin-bottom: 14px; }
.say__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.say__done { min-height: 1.4em; margin-top: 8px; font-size: .88rem; color: #F2A46E; }
.maker__note { margin-top: 22px; font-size: .85rem; color: var(--c-silverpen-dim); }
.needle { pointer-events: none; }

/* ---------- D. 주문 제작 ---------- */
.order-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; counter-reset: of; margin-bottom: 30px; }
.order-flow li { counter-increment: of; position: relative; padding: 14px 14px 14px 16px; border: 1.5px solid #D8D2C5; border-radius: 12px 4px 12px 4px; background: #FBFAF6; }
.order-flow li::before { content: counter(of); display: block; font-family: var(--font-title); font-weight: 800; font-size: 1.4rem; line-height: 1; color: var(--c-chocolate); margin-bottom: 8px; }
.order-flow b { display: block; font-size: 1rem; }
.order-flow span { display: block; font-size: .88rem; color: var(--c-pencil); line-height: 1.55; }
.order-price table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.order-price caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
.order-price th, .order-price td { padding: 11px 6px; text-align: left; border-bottom: 1.5px dashed var(--c-card-edge); }
.order-price thead th { font-size: .82rem; color: var(--c-pencil); font-weight: 600; border-bottom: 2px solid var(--c-graphite); }
.order-price tbody th { font-weight: 600; }
.order-price td:last-child { white-space: nowrap; }
.order-price .muted { margin-top: 10px; }

/* ---------- E. 가죽과 실 ---------- */
.swatch-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 30px; }
.swatch-board li { display: grid; gap: 4px; align-content: start; }
.swatch-board i { position: relative; display: block; height: 76px; margin-bottom: 6px; border-radius: 18px 6px 18px 6px; background: var(--sw); }
.swatch-board i::after { content: ""; position: absolute; inset: 7px; border: 2.5px dotted rgba(10, 6, 4, .55); border-radius: 12px 3px 12px 3px; }
.swatch-board b { font-size: 1.02rem; }
.swatch-board span { font-size: .9rem; color: #4A4038; line-height: 1.6; }
.leather-more { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; padding-top: 22px; border-top: 1.5px dashed var(--c-card-edge); }
.leather-more h3 { font-size: var(--fs-h3); margin-bottom: 4px; }
.leather-more p { font-size: .95rem; color: #4A4038; }
.spools ul { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.spools li { display: grid; justify-items: center; gap: 4px; font-size: .78rem; color: var(--c-pencil); }
.spools li::before { content: ""; width: 30px; height: 38px; border-radius: 3px; background: linear-gradient(#C9A77E 0 6px, var(--sp) 6px calc(100% - 6px), #C9A77E calc(100% - 6px)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.edge-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.edge-pair svg { width: 100%; max-width: 140px; height: auto; }
.edge-pair figcaption { font-size: .88rem; color: #4A4038; line-height: 1.6; }
.edge-pair b { display: block; color: var(--c-graphite); }

/* ---------- F. 만드는 순서 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; display: grid; align-content: start; gap: 6px; padding-top: 16px; border-top: 2px solid var(--c-graphite); }
.steps li::before { content: counter(st); position: absolute; top: -15px; left: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-card); border: 2px solid var(--c-graphite); font-family: var(--font-title); font-weight: 800; font-size: .9rem; }
.steps svg { width: 52px; height: 52px; color: var(--c-chocolate); margin-top: 8px; }
.steps h3 { font-size: 1.02rem; }
.steps p { font-size: .9rem; color: #4A4038; line-height: 1.6; }
.steps__time { justify-self: start; margin-top: 4px; padding: 0 8px; border-radius: 6px; background: #E7E3D8; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.steps__long .steps__time { background: var(--c-chocolate); color: var(--c-silverpen); }

/* ---------- G. 공방 ---------- */
.studio__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.studio__art svg { width: 100%; height: auto; }
.studio__art figcaption { margin-top: 8px; font-size: .85rem; color: var(--c-pencil); }
.maker-card { display: grid; grid-template-columns: 96px 1fr; gap: 18px; }
.maker-card__photo svg { width: 96px; height: 96px; }
.maker-card__role { font-size: .85rem; color: var(--c-pencil); }
.maker-card__name { font-weight: 700; margin-bottom: 6px; }
.maker-card__facts { margin-top: 14px; display: grid; gap: 6px; }
.maker-card__facts li { position: relative; padding-left: 18px; font-size: .93rem; line-height: 1.6; }
.maker-card__facts li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 2.5px; background: var(--c-thread); border-radius: 2px; }

/* ---------- H. 질문 ---------- */
.faq { border-top: 2px solid var(--c-graphite); }
.qa { border-bottom: 1.5px dashed var(--c-card-edge); }
.qa h3 { font-size: 1.05rem; }
.qa button { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; padding: 16px 2px; border: 0; background: none; font: inherit; font-weight: 700; text-align: left; color: inherit; cursor: pointer; }
.qa button::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s; }
.qa button[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-3px, -3px); }
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.qa__panel > div { overflow: hidden; min-height: 0; }
.qa.is-open .qa__panel { grid-template-rows: 1fr; }
.qa__panel p { padding: 0 2px 18px; color: #4A4038; }
html:not(.js) .qa__panel { grid-template-rows: 1fr; }

/* ---------- I. 예약·오시는 길 ---------- */
.visit { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
.book { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font-weight: 700; margin-bottom: 6px; }
.hours th, .hours td { padding: 10px 6px; text-align: left; border-bottom: 1.5px dashed rgba(227, 220, 205, .3); }
.hours th { width: 6em; font-weight: 600; color: var(--c-silverpen-dim); }
.hours td span { margin-left: 8px; font-size: .88rem; color: var(--c-silverpen-dim); }
.hours tr.is-today th, .hours tr.is-today td { color: #fff; }
.hours tr.is-today th::after { content: "오늘"; margin-left: 6px; padding: 0 6px; border-radius: 5px; background: var(--c-silverpen); color: var(--c-chocolate-deep); font-size: .72rem; font-weight: 700; }
.hours__off td { color: var(--c-silverpen-dim); }
.where { margin: 0; display: grid; gap: 8px; }
.where div { display: grid; grid-template-columns: 6em 1fr; gap: 8px; }
.where dt { color: var(--c-silverpen-dim); font-size: .95rem; }
.where dd { margin: 0; }
.map svg { width: 100%; height: auto; }
.map__link { margin-top: 12px; }
.map__label { font: 800 20px var(--font-title); fill: #E3DCCD; }
.map__sub, .map__mark { font: 700 15px var(--font); fill: #E3DCCD; }
.map__mark { fill: #2A221D; }
.map__p { font: 800 22px var(--font); fill: #fff; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--c-graphite); color: #CFC7B8; font-size: .88rem; line-height: 1.8; padding: 34px 0 40px; }
.site-footer__inner { display: grid; gap: 18px; }
.site-footer__logo { font-family: var(--font-title); font-weight: 800; font-size: 1.15rem; color: #F3F1EA; margin-bottom: 6px; }
.site-footer__links { margin-top: 8px; display: flex; gap: 16px; }
.site-footer__links .strong { font-weight: 700; color: #fff; }
.site-footer__credit a { color: #F7A36A; }

/* ---------- 하단 고정 바 (모바일) ---------- */
.quickbar { display: none; }
@media (max-width: 859px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .quickbar { display: grid; grid-template-columns: 1fr 1fr 1.25fr; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; background: var(--c-chocolate); border-top: 3px solid var(--c-chocolate-deep); }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 10px; color: var(--c-silverpen); text-decoration: none; font-weight: 700; font-size: .93rem; border: 1.5px solid rgba(227, 220, 205, .35); }
  .quickbar svg { width: 18px; height: 18px; }
  .quickbar .quickbar__cta { background: var(--c-thread); color: var(--c-thread-ink); border: 0; outline: 1.5px dashed rgba(42, 22, 11, .5); outline-offset: -5px; }
  body.nav-open .quickbar { display: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .maker { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
}
@media (max-width: 899px) {
  :root { --gap: 52px; --header-h: 58px; }
  .sheet { width: calc(100% - 20px); padding: 22px 0 64px; }
  .piece { padding: 22px 20px 30px 34px; border-radius: 22px; }
  .piece::after { inset: 12px; }
  .piece + .piece::before { left: 13px; }
  /* 귀퉁이 표기는 맨 위 한 줄로 */
  .hero__facts div { padding-right: 14px; margin-right: 14px; }
  .plabel { position: relative; top: auto; right: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px 10px; margin: 0 0 14px; font-size: .72rem; text-align: right; }
  .plabel b { width: 30px; height: 30px; margin: 0; font-size: 1rem; order: 9; }
  .plabel .grain { display: none; }
  .head { padding-right: 0; margin-bottom: 24px; }
  .hero { grid-template-columns: 1fr; }
  .hero__kicker { margin-bottom: 8px; }
  .hero__title { margin-bottom: 12px; }
  .hero__lead { font-size: 1rem; margin-bottom: 18px; }
  .hero__actions { margin-bottom: 20px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__art { margin: 0 -6px; }
  .visit, .studio__grid, .leather-more { grid-template-columns: 1fr; }
  .swatch-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .class-row { grid-template-columns: 50px 1fr auto; padding: 14px 0; }
  .class-row__icon { width: 46px; height: 46px; grid-row: span 2; align-self: start; }
  .class-row__name { grid-column: 2 / 4; }
  .class-row__time { grid-column: 2; }
  .class-row__price { grid-column: 3; min-width: 0; font-size: 1.2rem; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; row-gap: 30px; }
  .steps li { grid-template-columns: 52px 1fr; column-gap: 14px; }
  .steps svg { grid-row: span 3; margin-top: 4px; }
  .order-flow { grid-template-columns: 1fr; }
  .order-flow li { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; }
  .order-flow li::before { grid-row: span 2; margin: 0; }
  .maker-card { grid-template-columns: 76px 1fr; }
  .maker-card__photo svg { width: 76px; height: 76px; }
  .edge-pair { grid-template-columns: 1fr; }
  .sample-banner p { font-size: .8rem; }
  .logo b { font-size: 1.12rem; }
  .sw span { width: 48px; font-size: .74rem; }
  .sw span::before { width: 34px; height: 34px; }
  .swatches { gap: 6px 2px; }
  .say__actions .btn { flex: 1 1 auto; }
  .book .btn { flex: 1 1 100%; }
}

/* ---------- 등장 (보이는 상태가 기본, JS 가 has-motion 을 붙인 뒤에만 숨겼다 보여 줌) ---------- */
.has-motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.has-motion .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .qa__panel, .btn, .chip span, .sw span::before, a { transition-duration: .2s !important; }
}
