@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

/* =========================================================
   로저베베 (Roger Bébé) — 디자인 시스템
   파스텔 · 만화풍 · 귀엽고 심플 · 고급스러움
   ========================================================= */

:root {
  /* 베이스 — 깔끔한 화이트 (여백 중심) */
  --cream:        #FFFFFF;
  --cream-2:      #FBF6F4;
  --blush:        #F3E6E8;

  /* 포인트 — 뮤트 로즈 (절제해서 소량만) */
  --pink:         #EAD3D8;
  --pink-soft:    #F3E6E8;
  --rose:         #CE9AA6;
  --rose-deep:    #B06E7E;
  --peach:        #EBD3C2;

  /* 보조 파스텔 (일러스트/미세 악센트 전용, 채도 낮춤) */
  --mint:         #C7DDD4;
  --mint-soft:    #E7F0EB;
  --sky:          #D5E3EE;
  --lav:          #D9D2E4;
  --lav-soft:     #ECE8F1;
  --butter:       #F1E6C8;

  /* 텍스트 — 깊은 대비 (고급의 핵심) */
  --ink:          #35292F;
  --ink-soft:     #6E5F66;
  --ink-faint:    #A99CA2;

  /* 메탈릭 — 샴페인 골드 (헤어라인·라벨에만) */
  --gold:         #A98A50;
  --gold-soft:    #D8C29A;
  --line:         #EBE2D8;

  --white:        #ffffff;

  /* 형태 — 정제된 곡률 (뽀글거림 제거) */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* 그림자 — 은은한 중성 톤 (낮은 불투명도) */
  --shadow-sm: 0 1px 2px rgba(53,41,47,.04), 0 4px 14px rgba(53,41,47,.05);
  --shadow-md: 0 6px 16px rgba(53,41,47,.06), 0 14px 40px rgba(53,41,47,.07);
  --shadow-lg: 0 12px 30px rgba(53,41,47,.07), 0 30px 70px rgba(53,41,47,.09);

  --maxw: 1200px;

  --serif:   "Cormorant Garamond", "Gowun Batang", "Nanum Myeongjo", serif;
  --korserif:"Gowun Batang", "Nanum Myeongjo", serif;
  --script:  "Parisienne", "Gowun Batang", cursive;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* ------- reset ------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  letter-spacing: -0.006em;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ------- 레이아웃 ------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.pad { padding: clamp(64px, 9vw, 130px) 0; }
.pad-sm { padding: clamp(48px, 6vw, 84px) 0; }
.center { text-align: center; }

/* ------- 타이포 (에디토리얼 위계) ------- */
h1, h2, h3, .serif { font-family: var(--korserif); font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); line-height: 1.22; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.95rem); line-height: 1.28; letter-spacing: -0.022em; }
h3 { font-size: clamp(1.18rem, 2vw, 1.42rem); line-height: 1.4; letter-spacing: -0.015em; }
p  { color: var(--ink-soft); font-size: clamp(0.98rem, 1.25vw, 1.06rem); text-wrap: pretty; }
strong { color: var(--rose-deep); font-weight: 700; }

/* 라벨(eyebrow) — 절제된 소형 대문자 + 헤어라인 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before, .eyebrow.dual::after {
  content: ""; width: 30px; height: 1px;
  background: var(--gold-soft);
}
.eyebrow.dual::after { background: var(--gold-soft); }

.lead { font-size: clamp(1.04rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--ink-soft); }
/* 필기체 시그니처 악센트 */
.script, .script-line { font-family: var(--script); font-weight: 400; color: var(--rose-deep); letter-spacing: 0; text-transform: none; }

/* 섹션 헤더 */
.sec-head { max-width: 660px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head h2 { margin-bottom: 16px; }

/* ------- 버튼 ------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.005em;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: #E38FA4;
  color: #fff; box-shadow: 0 4px 14px rgba(227,143,164,.30);
}
.btn-primary:hover { transform: translateY(-2px); background: #DA7E96; box-shadow: 0 8px 22px rgba(227,143,164,.38); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--gold-soft);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--rose-deep); box-shadow: var(--shadow-sm); }
.btn-gold { letter-spacing: 0.005em; }
.btn-gold {
  background: linear-gradient(135deg, #E4D2A6, #C6A15B);
  color: #fff; box-shadow: 0 12px 26px rgba(198,161,91,.32);
}
.btn-gold:hover { transform: translateY(-3px); }

/* ------- 헤더 / 네비 ------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
/* 스크롤 시 프로스티드 아이보리 — 홈과 같은 밝은 톤으로 통일 */
.site-header.scrolled {
  background: rgba(255,251,247,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(196,150,130,.10);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 56px; width: auto; display: block; }
.brand .mark { width: 42px; height: 42px; }
.brand .txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .txt b { font-family: "Cormorant Garamond", "Nanum Myeongjo", serif; font-weight: 600; font-size: 1.72rem; letter-spacing: .01em; color: var(--ink); line-height: 1; }
.brand .txt span { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.34em; color: var(--gold); font-weight: 600; margin-top: 4px; padding-left: .1em; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  color: var(--ink-soft); transition: color .2s, background .2s;
}
.nav-menu a:hover { color: var(--rose-deep); }
.nav-menu a.active { color: var(--rose-deep); font-weight: 700; }

/* ---- 드롭다운 네비 ---- */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-item:hover > a { color: var(--rose-deep); }
.nav-item .caret { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.nav-item:hover .caret { transform: rotate(180deg); }
.nav-item.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav-sub {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 196px; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease; z-index: 200;
}
.nav-item:hover .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-sub a { padding: 9px 14px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; transition: background .2s, color .2s; }
.nav-sub a:hover { background: var(--pink-soft); color: var(--rose-deep); }
/* 현재 보고 있는 세부 페이지 = 선택 상태 표시 */
.nav-sub a.active { background: var(--pink-soft); color: var(--rose-deep); font-weight: 700; }
.nav-sub a.active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rose-deep); flex: 0 0 auto; margin-right: 2px; }
.nav-sub a { display: flex; align-items: center; gap: 8px; }

.nav-cta { margin-left: 10px; }
.nav-menu a.nav-cta, .nav-menu a.nav-cta:hover { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ------- 카드 공통 ------- */
.card {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blush); }

.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* 파스텔 블롭 배경 */
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; z-index: 0; pointer-events: none; }

/* 점선 구분선 (문서의 ──── 느낌) */
.dotline { height: 0; border: none; border-top: 2px dotted var(--gold-soft); max-width: 120px; margin: 0 auto; opacity: .8; }

/* 태그 pill */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
  font-size: 0.86rem; font-weight: 600; color: var(--ink-soft);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }

/* 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* 둥둥 떠다니는 데코 */
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes floaty2 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(-5deg); } }
@keyframes twinkle { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
.float { animation: floaty 6s ease-in-out infinite; }
.float-2 { animation: floaty2 7.5s ease-in-out infinite; }
.twinkle { animation: twinkle 3.2s ease-in-out infinite; }

/* =========================================================
   HERO
   ========================================================= */
/* 투명 헤더 뒤까지 배경/사진이 차도록 헤더 높이(78px)만큼 위로 + 뷰포트 높이로 웅장하게 */
.hero {
  position: relative; overflow: hidden; margin-top: -78px;
  min-height: 78vh; display: flex; align-items: center;
  padding: calc(78px + clamp(24px, 4vw, 48px)) 0 clamp(48px, 6vw, 84px);
}
.hero-bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 60% at 82% 12%, var(--pink-soft) 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { font-size: clamp(2rem, 4.3vw, 3.4rem); line-height: 1.18; margin-bottom: 20px; }
.hero-copy h1 .accent { color: var(--rose-deep); }
.hero-copy .lead { margin-bottom: 20px; max-width: 500px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; max-width: 480px; margin-left: auto; width: 100%; }
/* 히어로 사진 — 오른쪽 화면에 꽉 차게, 왼쪽 투명 → 오른쪽으로 은은하게 진해지는 페이드 */
.hero-photo {
  position: absolute; top: 0; right: 0; height: 100%; width: 60%;
  object-fit: cover; object-position: center;
  z-index: 0; opacity: .62; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 32%, #000 70%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 32%, #000 70%);
}

/* about 브랜드 스토리 — 왼쪽에서 진해지는 페이드 사진 */
.about-story { position: relative; overflow: hidden; }
.about-story .wrap { position: relative; z-index: 2; }
.about-photo {
  position: absolute; top: 0; left: 0; height: 100%; width: 56%;
  object-fit: cover; object-position: center;
  z-index: 0; opacity: .42; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, transparent 2%, rgba(0,0,0,.35) 36%, #000 78%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to left, transparent 2%, rgba(0,0,0,.35) 36%, #000 78%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.about-copy { max-width: 560px; margin-left: auto; }
@media (max-width: 860px) {
  .about-photo { width: 100%; opacity: .16; }
  .about-copy { max-width: none; margin-left: 0; }
}
.hero-art .stage {
  position: relative; background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: clamp(12px, 1.6vw, 18px);
}
.hero-art .deco { position: absolute; z-index: 3; }
/* 대표 이미지 — 흐림 없이 선명하게 focal point */
.hero-art .stage img { width: 100%; aspect-ratio: 11 / 9; object-fit: cover; object-position: center; border-radius: var(--r-lg); display: block; }
.hero-tag {
  position: absolute; left: 22px; bottom: 22px; z-index: 4;
  display: inline-flex; align-items: baseline; gap: 3px;
  background: rgba(45,34,40,.92); color: #fff;
  padding: 10px 16px; border-radius: 14px;
  box-shadow: 0 8px 22px rgba(45,34,40,.28);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero-tag b { font-family: var(--korserif); font-size: 1.75rem; line-height: 1; color: #fff; }
.hero-tag .u { font-size: .82rem; color: rgba(255,255,255,.9); }
.hero-tag small { font-family: var(--sans); font-size: .72rem; letter-spacing: .01em; color: rgba(255,255,255,.72); margin-left: 7px; align-self: center; }

/* 첫 화면 강조용 큰 CTA */
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }

/* =========================================================
   귀여운 만화풍 히어로 — 파스텔 일러스트
   ========================================================= */
.hero-cute .hero-bg {
  background:
    radial-gradient(60% 55% at 82% 20%, #F7E7EF 0%, transparent 58%),
    radial-gradient(50% 50% at 12% 78%, #ECE7F3 0%, transparent 60%),
    linear-gradient(180deg, #FFFDFB 0%, #FBF3F5 100%);
}
.hero-cute .hero-grid { grid-template-columns: 1.02fr .98fr; }
.hero-illust { position: relative; width: 100%; max-width: 560px; margin-left: auto; }
.cute-scene { width: 100%; height: auto; display: block; overflow: visible; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.cute-scene .tw  { animation: twinkle 3.4s ease-in-out infinite;      transform-box: fill-box; transform-origin: center; }
.cute-scene .tw2 { animation: twinkle 4.2s ease-in-out infinite .6s;  transform-box: fill-box; transform-origin: center; }

/* =========================================================
   제품 갤러리형 히어로 — 실제 작품을 focal point로
   ========================================================= */
.hero-gallery .hero-grid { grid-template-columns: .96fr 1.04fr; }
.hero-gallery-art { position: relative; padding: 0 24px 34px 0; }
.ga-main { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.ga-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ga-main figcaption {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(45,34,40,.86); color: #fff; padding: 8px 15px; border-radius: 11px;
  font-family: var(--serif); font-size: .84rem; letter-spacing: .05em;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ga-main figcaption span { background: var(--rose); color: #fff; font-family: var(--sans);
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; }
.ga-sub { position: absolute; right: 0; bottom: 0; width: 42%; margin: 0;
  border-radius: var(--r-lg); overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow-md); }
.ga-sub img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }

/* =========================================================
   히어로 (과감한 큐트·프리미엄) — 큰 타이포 + 작품 + 떠다니는 데코
   ========================================================= */
.hero-v1 { overflow: hidden; }
.hero-v1 .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero-v1 .wrap { position: relative; z-index: 2; }
.hero-v1 h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.24; letter-spacing: -0.025em; margin-bottom: 20px; }
.hero-v1 .hero-badges { margin-bottom: 28px; }
.hero-v1 .lead { max-width: 460px; margin-bottom: 24px; }
/* 마커 하이라이트 (재사용 가능) */
.mark { color: var(--rose-deep); background: linear-gradient(transparent 62%, #F4DBE3 62%); padding: 0 .06em; border-radius: 2px; }
/* 떠다니는 파스텔 데코 (콘텐츠 뒤에서 은은하게) */
.deco-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deco-layer > * { position: absolute; }
.deco-layer .d-moon { top: 9%; left: 46%; width: 62px; animation: floaty 8s ease-in-out infinite; }
.deco-layer .d-c1 { top: 19%; left: 7%; width: 86px; opacity: .9; animation: floaty2 9s ease-in-out infinite; }
.deco-layer .d-s1 { top: 12%; left: 30%; width: 30px; transform-box: fill-box; transform-origin: center; animation: twinkle 3.2s ease-in-out infinite; }
.deco-layer .d-s2 { top: 62%; left: 4%;  width: 24px; transform-box: fill-box; transform-origin: center; animation: twinkle 4s ease-in-out infinite .5s; }
.deco-layer .d-s3 { top: 76%; left: 52%; width: 22px; transform-box: fill-box; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite .8s; }
.deco-layer .d-h1 { top: 7%;  left: 20%; width: 30px; animation: floaty 7s ease-in-out infinite; }
.deco-layer .d-h2 { top: 68%; left: 90%; width: 26px; animation: floaty2 8s ease-in-out infinite .6s; }
/* 작품 사진 — 살짝 기울인 액자 + 뱃지 */
.art-v1 { position: relative; max-width: 500px; margin-left: auto; }
.art-v1 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; border: 7px solid #fff; box-shadow: var(--shadow-lg); transform: rotate(2deg); }
.art-v1 .badge { position: absolute; bottom: 6px; left: -14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); border-radius: 16px; padding: 12px 18px; transform: rotate(-3deg); display: flex; align-items: center; gap: 10px; }
.art-v1 .badge b { font-family: var(--korserif); font-size: 1.5rem; color: var(--rose-deep); line-height: 1; }
.art-v1 .badge span { font-size: .74rem; color: var(--ink-soft); line-height: 1.2; }
@media (max-width: 960px) {
  .hero-v1 .hero-grid { grid-template-columns: 1fr; }   /* 모바일·태블릿 1단 (우선순위 보정) */
  .art-v1 { margin: 0 auto; order: -1; transform: none; max-width: 460px; }
  .art-v1 img { transform: rotate(1.5deg); }
}
/* 모바일: 데코 정리 + 헤드라인 압축으로 한눈에 쏙 */
@media (max-width: 720px) {
  .hero-v1 .deco-layer { display: none; }
  .hero-v1 h1 { font-size: clamp(1.55rem, 6.4vw, 2.1rem); line-height: 1.34; margin-bottom: 16px; }
  .hero-v1 .lead { margin-bottom: 20px; font-size: 1rem; }
  .hero-v1 .hero-badges { margin-bottom: 22px; }
  .art-v1 { max-width: 320px; margin-bottom: 26px; }
  .art-v1 img { border-width: 5px; }
  .art-v1 .badge { left: -6px; padding: 9px 13px; }
  .art-v1 .badge b { font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .art-v1 { max-width: 280px; }
  .art-v1 .badge { left: 0; padding: 8px 12px; }
}

/* =========================================================
   대표 작품 갤러리
   ========================================================= */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.work:hover img { transform: scale(1.045); }
.work-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: baseline; gap: 9px;
  padding: 30px 18px 15px;
  background: linear-gradient(to top, rgba(45,34,40,.78), rgba(45,34,40,.32) 55%, transparent);
  color: #fff;
}
.work-cap b { font-family: var(--korserif); font-weight: 700; font-size: 1.08rem; }
.work-cap span { font-family: var(--serif); font-size: .74rem; letter-spacing: .06em; color: rgba(255,255,255,.82); }
@media (max-width: 860px) { .works-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .works-grid { grid-template-columns: 1fr; } }

/* =========================================================
   상세 페이지 갤러리 (프레임별)
   ========================================================= */
.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.detail-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #fff; transition: transform .4s ease, box-shadow .4s ease; }
.detail-gallery img:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
@media (max-width: 860px) { .detail-gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 520px) { .detail-gallery { grid-template-columns: 1fr; } }

/* =========================================================
   상품 상세 페이지 (쇼핑몰형)
   ========================================================= */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 54px); align-items: start; }
.pd-gallery { position: sticky; top: 96px; }
.pd-main { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: #fff; }
.pd-main img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: #fff; padding: 0; cursor: pointer; transition: border-color .2s, transform .2s; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.is-active { border-color: var(--rose); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-info .breadcrumb { margin-bottom: 14px; }
.pd-info .eyebrow { margin-bottom: 10px; }
.pd-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; margin-bottom: 14px; }
.pd-desc { margin-bottom: 22px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.pd-price-label { font-size: .9rem; color: var(--ink-faint); }
.pd-price-val { font-family: var(--korserif); font-weight: 700; font-size: 1.7rem; color: var(--rose-deep); }
.pd-price-note { font-size: .82rem; color: var(--ink-faint); }
.pd-opt { margin-bottom: 26px; }
.pd-opt-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 11px; color: var(--ink); }
.pd-swatches { display: flex; gap: 16px; }
.pd-swatch { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; background: none; padding: 0; font-size: .76rem; color: var(--ink-soft); }
.pd-swatch .sw { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); box-shadow: inset 0 0 0 3px #fff; transition: border-color .2s, transform .2s; }
.pd-swatch.is-active .sw { border-color: var(--rose); transform: scale(1.08); }
.pd-swatch.is-active { color: var(--rose-deep); font-weight: 600; }
.pd-actions { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.pd-order { flex: 1 1 200px; }
.pd-actions .btn-ghost { flex: 0 1 auto; }
.pd-meta { display: flex; flex-direction: column; gap: 11px; padding-top: 22px; border-top: 1px dashed var(--line); }
.pd-meta li { display: flex; align-items: center; gap: 11px; font-size: .95rem; color: var(--ink); }
.pd-meta li svg { width: 20px; height: 20px; color: var(--rose-deep); flex: 0 0 auto; }

/* 구매 안내 3열 */
.buy-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.buy-guide .card { padding: 28px 24px; text-align: center; }
.buy-guide .bg-ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 15px; background: var(--cream-2); color: var(--rose-deep); display: grid; place-items: center; }
.buy-guide .bg-ic svg { width: 26px; height: 26px; }
.buy-guide h3 { font-size: 1.05rem; margin-bottom: 6px; }
.buy-guide p { font-size: .9rem; }

@media (max-width: 860px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .buy-guide { grid-template-columns: 1fr; }
}

/* =========================================================
   장바구니 · 주문서 (쇼핑 플로우)
   ========================================================= */
/* 헤더 장바구니 아이콘 */
.nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: 6px; color: var(--ink-soft); font-size: 1.25rem; border-radius: 12px; transition: color .2s, background .2s; }
.nav-cart:hover { color: var(--rose-deep); background: var(--pink-soft); }
.nav-cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--rose-deep); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* 상품 상세: 1:1 문의 링크 */
.pd-inquiry { display: inline-block; margin-top: -6px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.pd-inquiry:hover { color: var(--rose-deep); }

/* 토스트 */
.rb-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .92rem; font-weight: 600; z-index: 300; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; max-width: 90vw; }
.rb-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.rb-toast a { color: #F6C9D2; text-decoration: underline; margin-left: 6px; }

/* 장바구니 */
.cart-empty { text-align: center; padding: 56px 0; color: var(--ink-soft); font-size: 1.05rem; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.cart-info { display: flex; flex-direction: column; gap: 3px; }
.cart-info b { font-size: 1.02rem; }
.cart-opt { font-size: .84rem; color: var(--ink-soft); }
.cart-price { font-size: .88rem; color: var(--rose-deep); font-weight: 600; }
.cart-qty { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.cart-qty button { width: 24px; height: 24px; border-radius: 50%; background: var(--cream-2); color: var(--ink); font-size: 1rem; line-height: 1; }
.cart-qty span { min-width: 20px; text-align: center; font-weight: 600; }
.cart-del { width: 32px; height: 32px; border-radius: 50%; color: var(--ink-faint); font-size: 1.35rem; line-height: 1; }
.cart-del:hover { color: var(--rose-deep); background: var(--pink-soft); }
.cart-summary { margin-top: 30px; text-align: center; }
.cart-note { font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
@media (max-width: 560px) {
  .cart-row { grid-template-columns: 64px 1fr auto; grid-template-areas: 'img info del' 'img qty qty'; row-gap: 10px; column-gap: 14px; }
  .cart-row img { width: 64px; height: 64px; grid-area: img; }
  .cart-info { grid-area: info; } .cart-qty { grid-area: qty; justify-self: start; } .cart-del { grid-area: del; justify-self: end; }
}

/* 주문서 */
.order-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: start; }
.os-row { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.os-row:last-child { border-bottom: none; }
.os-row img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); flex: 0 0 auto; }
.os-row > div { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.os-row b { color: var(--ink); }
.os-row span { font-size: .8rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .order-grid { grid-template-columns: 1fr; gap: 20px; }
  /* 모바일: 주문 상품 내역을 먼저(위) 보여주고, 그 아래에서 정보 입력 */
  .order-grid > #orderSummaryBox { order: -1; }
}

/* 폼 필드 (주문서 등) */
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea { font-family: inherit; font-size: 1rem; color: var(--ink); padding: 13px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--cream); width: 100%; transition: border .2s, box-shadow .2s; }
.form-field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px var(--pink-soft); background: #fff; }

/* =========================================================
   안전 소재 하이라이트
   ========================================================= */
.safe-band { background: linear-gradient(180deg, #fff, var(--pink-soft)); }
.safe-card {
  max-width: 880px; margin: 0 auto;
  display: flex; gap: 26px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); padding: clamp(26px, 4vw, 42px);
}
.safe-ic {
  flex: 0 0 auto; width: 66px; height: 66px; border-radius: 20px;
  background: var(--pink-soft); color: var(--rose-deep);
  display: grid; place-items: center;
}
.safe-ic .i { width: 32px; height: 32px; }
.safe-copy .eyebrow { margin-bottom: 10px; }
.safe-copy h3 { margin-bottom: 9px; }
@media (max-width: 620px) {
  .safe-card { flex-direction: column; text-align: center; gap: 18px; }
  .safe-copy .eyebrow { justify-content: center; }
}

/* =========================================================
   핵심 지표 스트립 — 큰 숫자로 강약·스캔성
   ========================================================= */
.stats-band {
  padding: clamp(30px, 4.5vw, 50px) 0;
  background: linear-gradient(180deg, var(--cream-2), #fff);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -12px; top: 14%; height: 72%; width: 1px; background: var(--line); }
.stat b { display: block; font-family: var(--korserif); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1; color: var(--rose-deep); letter-spacing: -0.02em; }
.stat b span { font-size: .46em; color: var(--rose); margin-left: 2px; }
.stat p { margin-top: 11px; font-size: clamp(.82rem, 1.1vw, .95rem); color: var(--ink-soft); }
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .stat::before { display: none; }
}

/* =========================================================
   특징(왜 로저베베) 카드
   ========================================================= */
.feature { padding: 34px 10px; text-align: center; position: relative; overflow: hidden; }
.feature .ic { width: 76px; height: 76px; margin: 0 auto 20px; }
.feature h3 { margin-bottom: 10px; min-height: 2.8em; display: flex; align-items: center; justify-content: center; }
.feature p { font-size: 0.96rem; }
.feature .no { position: absolute; top: 20px; right: 26px; font-family: var(--serif); font-size: 2.2rem; color: var(--line); }

/* 강점 체크리스트 */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.check { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ink); }
.check .tick {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--pink-soft); color: var(--rose-deep);
  display: grid; place-items: center;
}
.check .tick svg { width: 14px; height: 14px; }

/* =========================================================
   제품 카테고리 카드
   ========================================================= */
.cat-card { padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cat-card .emoji { font-size: 2.4rem; margin-bottom: 6px; }
.cat-card .art { width: 100%; max-width: none; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; margin: 6px 0 18px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.cat-card h3 { margin-bottom: 10px; }
.cat-card p { font-size: 0.94rem; margin-bottom: 18px; text-wrap: balance; max-width: 15em; }
.cat-card .tags { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 20px; }
.cat-card .tags span { flex: 0 0 calc(33.333% - 8px); min-width: 0; box-sizing: border-box; text-align: center; white-space: nowrap; font-size: 0.7rem; padding: 5px 4px; border-radius: 999px; background: var(--pink-soft); color: var(--rose-deep); font-weight: 600; letter-spacing: -0.02em; }
.cat-card .more { margin-top: auto; color: var(--rose-deep); font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.cat-card:hover .more svg { transform: translateX(4px); }
.cat-card .more svg { width: 16px; height: 16px; transition: transform .25s; }

/* 제품 상세 아이템 */
.product { padding: 30px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.product .frame { width: 100%; max-width: 280px; aspect-ratio: 4 / 3; object-fit: contain; object-position: center bottom; margin: 0 auto 16px; }
.product .en { font-family: var(--serif); color: var(--gold); font-size: 0.82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.product h3 { margin-bottom: 10px; text-wrap: balance; }
.product p { font-size: 0.92rem; text-wrap: balance; max-width: 22em; }

/* =========================================================
   제작 과정 타임라인
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; }
.step { text-align: center; position: relative; z-index: 2; }
.step .bubble {
  width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: grid; place-items: center; position: relative;
  transition: transform .35s, box-shadow .35s;
}
.step:hover .bubble { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step .bubble svg { width: 44px; height: 44px; }
.step .num {
  position: absolute; top: -4px; right: -2px; width: 25px; height: 25px; border-radius: 50%;
  background: var(--rose-deep); color: #fff;
  font-size: 0.76rem; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(176,110,126,.25); font-family: var(--sans);
}
.step h3 { font-size: 1.02rem; margin-bottom: 4px; }
.step p { font-size: 0.84rem; }
.steps .track { position: absolute; top: 46px; left: 8%; right: 8%; height: 2px;
  border-top: 2px dashed var(--gold-soft); z-index: 1; }

/* 세로형(모바일) 프로세스 대체 - 페이지용 */
.proc-list { max-width: 720px; margin: 0 auto; }
.proc-row { display: flex; gap: 22px; align-items: flex-start; padding: 22px 0; position: relative; }
.proc-row .icon {
  flex: 0 0 auto; width: 74px; height: 74px; border-radius: 22px;
  background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; border: 1px solid var(--line);
}
.proc-row .icon svg { width: 40px; height: 40px; }
.proc-row .body { flex: 1; padding-top: 4px; }
.proc-row .body .n { font-family: var(--serif); color: var(--gold); font-weight: 700; font-size: .82rem; letter-spacing: .1em; }
.proc-row .body h3 { margin: 2px 0 6px; }
.proc-row:not(:last-child)::after { content: ""; position: absolute; left: 37px; top: 96px; bottom: -22px; width: 2px; border-left: 2px dotted var(--gold-soft); }

/* =========================================================
   배너 / CTA
   ========================================================= */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  position: relative; z-index: 2; text-align: center;
  background: linear-gradient(135deg, #fff 0%, var(--cream-2) 100%);
  border-radius: var(--r-xl); padding: clamp(46px, 6vw, 78px) 24px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  max-width: 900px; margin: 0 auto;
}
.cta-inner .eyebrow { margin-bottom: 18px; }
.cta-inner h2 { margin-bottom: 14px; }
.cta-inner .lead { margin: 0 auto 30px; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 인용/마무리 문구 */
.quote-band { text-align: center; background:
  radial-gradient(60% 100% at 50% 100%, var(--pink-soft), transparent 68%), var(--cream); }
.quote-band .q { font-family: var(--korserif); font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.55; color: var(--ink); max-width: 720px; margin: 0 auto 24px; }
.quote-band .q em { color: var(--rose-deep); font-style: normal; }
.quote-band .sign { font-family: var(--script); text-transform: none; letter-spacing: 0; color: var(--rose-deep); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; }

/* 정보 배너 (방문지역/출장) — 차분한 아이보리 + 헤어라인 */
.info-band { background: rgba(255, 251, 247, .82); padding-top: clamp(68px, 8vw, 112px); padding-bottom: clamp(60px, 7vw, 96px); }
.info-card { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: center; text-align: center; }

/* 페이지 히어로(서브 페이지) */
.page-hero { position: relative; overflow: hidden; margin-top: -78px; padding: calc(clamp(60px,7vw,100px) + 78px) 0 clamp(40px,5vw,64px); text-align: center; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(60% 80% at 50% 0%, var(--pink-soft), transparent 60%),
  linear-gradient(180deg, #fff, var(--cream) 90%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero p { max-width: 620px; margin: 14px auto 0; }
.breadcrumb { font-size: .84rem; color: var(--ink-faint); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--rose-deep); }

/* =========================================================
   푸터
   ========================================================= */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { font-size: .92rem; max-width: 300px; }
.foot-col h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.foot-col a, .foot-col li { display: flex; align-items: center; gap: 8px; font-size: .94rem; color: var(--ink-soft); padding: 5px 0; }
.foot-col a:hover { color: var(--rose-deep); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.foot-bottom small { color: var(--ink-faint); font-size: .82rem; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-badges, .hero-actions { justify-content: center; }
  .hero-art { max-width: 460px; margin: 0 auto; order: -1; }
  .hero-gallery .hero-grid { grid-template-columns: 1fr; }
  .hero-gallery-art { max-width: 440px; margin: 0 auto; order: -1; padding-right: 18px; }
  .hero-cute .hero-grid { grid-template-columns: 1fr; }
  .hero-illust { max-width: 420px; margin: 0 auto; order: -1; }
  .hero-photo { width: 72%; opacity: .5; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px 14px; }
  .steps .track { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* 태블릿 이하 — 데스크톱 가로 네비 대신 햄버거 메뉴로 전환
   (호버 드롭다운은 터치 기기에서 불편하므로 일찍 접습니다) */
@media (max-width: 900px) {
  .nav-menu { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(255,251,247,.97); backdrop-filter: blur(14px); padding: 14px 20px 24px;
    gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-140%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: 13px 16px; }
  /* 모바일: 드롭다운을 들여쓰기로 펼쳐 표시 */
  .nav-item { flex-direction: column; align-items: stretch; }
  .nav-item .caret { display: none; }
  .nav-item.has-sub::after { display: none; }
  .nav-sub { position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; background: transparent; padding: 0 0 4px 14px; min-width: 0; }
  /* 모바일: 터치 시 sticky :hover 로 데스크톱 드롭다운 transform 이 되살아나 서브메뉴가
     옆으로 밀리던 버그 방지 (specificity 를 맞춰 무효화) */
  .nav-item:hover .nav-sub { transform: none; left: auto; }
  .nav-sub a { padding: 9px 16px; font-size: 0.88rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span { background: transparent; }
  .nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }
}
@media (max-width: 720px) {
  .hero-copy h1 { white-space: normal; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero { min-height: 66vh; }
  .hero-photo { width: 100%; opacity: .16; }
  .cat-card .tags span { flex-basis: calc(50% - 6px); }
  .btn { padding: 14px 22px; }
  .info-card { gap: 14px; }
  .brand-logo { height: 52px; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
}

/* =========================================================
   인라인 라인 아이콘 (Lucide 기반 · 브랜드 색 적용)
   ========================================================= */
.i {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: -0.14em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}
.eyebrow .i { vertical-align: -0.18em; }

/* 연락처 정보 리스트 (contact.html) */
.contact-info { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ci {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px;
  background: var(--cream-2); color: var(--rose-deep);
  display: grid; place-items: center; font-size: 1.15rem;
}
.contact-info li > div { display: flex; flex-direction: column; gap: 2px; }
.contact-info b { color: var(--ink); font-size: 0.96rem; }
.contact-info div > span { color: var(--ink-soft); font-size: 0.9rem; }

/* =========================================================
   감성 폴리시 — 파스텔 · 만화풍 귀여움 · 프리미엄 디테일
   (심플/고급을 해치지 않도록 절제해서 적용)
   ========================================================= */

/* 텍스트 선택 색 (파스텔) */
::selection { background: var(--pink-soft); color: var(--rose-deep); }

/* 파스텔 스크롤바 */
* { scrollbar-width: thin; scrollbar-color: var(--rose) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--rose), var(--rose-deep));
  border: 3px solid var(--cream); border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--rose-deep); }

/* 키보드 포커스 링 (또렷하고 귀엽게) */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 14px;
}

/* 스티키 헤더 대응 — 앵커 이동 시 여백 */
html { scroll-padding-top: 96px; }

/* 버튼 — 살짝 눌리는 반응 + 은은한 프리미엄 광택 sweep */
.btn { position: relative; overflow: hidden; }
.btn-primary::after, .btn-gold::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 42%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.btn-primary:hover::after, .btn-gold:hover::after { left: 130%; }
.btn:active { transform: translateY(-1px) scale(.985); }

/* 카드 hover 시 아이콘이 통통 튐 (만화 느낌) */
@keyframes boop {
  0%,100% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(-6px) rotate(-5deg); }
  70% { transform: translateY(-2px) rotate(3deg); }
}
.feature:hover .ic, .cat-card:hover .emoji { animation: boop .55s ease; }

/* 카테고리 태그 pill hover */
.cat-card .tags span { transition: transform .2s, background .2s, color .2s; }
.cat-card .tags span:hover { transform: translateY(-2px); background: var(--pink-soft); color: var(--rose-deep); }

/* 연락처 리스트 hover */
.contact-info li { transition: transform .2s; }
.contact-info li:hover { transform: translateX(3px); }
.contact-info li:hover .ci { background: var(--pink-soft); }

/* 제작단계 버블 — hover 시 아이콘 살짝 기울며 커짐 */
.step .bubble svg { transition: transform .4s ease; }
.step:hover .bubble svg { transform: rotate(-6deg) scale(1.06); }

/* 카테고리(링크) 카드 상승 */
.cat-card { transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blush); }

/* 헤더 로고 인터랙션 (은은한 확대) */
.brand .mark { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.brand:hover .mark { transform: scale(1.05); }

/* 모션 최소화 선호 사용자 배려 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   ★ 대공사 리디자인 레이어 v1 — 파스텔 · 만화(둥근) · 프리미엄 임팩트
   (기존 규칙 뒤에서 덮어씀. 이 블록을 통째로 지우면 즉시 원복.)
   ========================================================= */
:root {
  /* 더 둥근 형태 — 만화·말랑 */
  --r-sm: 10px; --r-md: 16px; --r-lg: 26px; --r-xl: 38px;
  /* 캔디 톤 틴티드 섀도우 — 플랫함 제거, 말랑한 입체 */
  --shadow-sm: 0 2px 6px rgba(206,120,150,.07), 0 10px 24px rgba(170,120,185,.10);
  --shadow-md: 0 10px 24px rgba(206,120,150,.12), 0 22px 50px rgba(160,120,190,.14);
  --shadow-lg: 0 18px 40px rgba(206,120,150,.14), 0 42px 86px rgba(150,120,195,.18);
  /* 둥근 만화체 헤드라인 */
  --round: "Jua", "Gowun Batang", "Nanum Myeongjo", sans-serif;
}

/* ---- 타이포: 크고 둥근 헤드라인으로 시선 확 잡기 ---- */
h1, h2, h3, .pd-title { font-family: var(--round); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.18; }
h2 { font-size: clamp(2.05rem, 4.4vw, 3.3rem); line-height: 1.24; }
h3 { font-size: clamp(1.22rem, 2.1vw, 1.5rem); }
.hero-copy h1, .hero-v1 h1 { font-size: clamp(2.15rem, 4.9vw, 3.75rem); line-height: 1.18; }
.pd-title { font-size: clamp(1.95rem, 3.6vw, 2.9rem); }
/* 마무리 인용구만 세리프 유지 — 프리미엄 대비 포인트 */
.quote-band .q { font-family: var(--korserif); }

/* ---- eyebrow / 라벨 더 또렷하게 ---- */
.eyebrow { color: var(--rose-deep); letter-spacing: 0.28em; }
.eyebrow::before, .eyebrow.dual::after {
  width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold-soft));
}

/* ---- 버튼: 통통·탱글·광택 ---- */
.btn { padding: 16px 32px; font-weight: 700; font-size: 1rem; }
.btn-lg { padding: 18px 38px; font-size: 1.08rem; }
.btn-primary { background: linear-gradient(135deg, #F6A9BE 0%, #E9829E 100%); box-shadow: 0 8px 22px rgba(233,130,158,.34); }
.btn-primary:hover { background: linear-gradient(135deg, #F19CB4 0%, #E1758F 100%); transform: translateY(-3px); box-shadow: 0 13px 30px rgba(233,130,158,.44); }
.btn-ghost { border-width: 1.5px; }
.btn-ghost:hover { transform: translateY(-3px); background: var(--pink-soft); }
.btn:active { transform: translateY(-1px) scale(.97); }

/* ---- 카드/작품: 더 둥글고 말랑하게 떠오름 ---- */
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.work { border-radius: var(--r-lg); }
.work:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

/* ---- 강조 숫자·가격도 둥근 톤으로 ---- */
.stat b, .pd-price-val, .hero-tag b, .work-cap b, .art-v1 .badge b { font-family: var(--round); font-weight: 400; }

/* ---- 파스텔 데코 더 선명 ---- */
.blob { opacity: .72; filter: blur(50px); }

/* ---- 히어로/서브히어로 배경 — 멀티 파스텔 워시로 화사하게 ---- */
.hero-bg {
  background:
    radial-gradient(55% 50% at 85% 8%, #FBE0EC 0%, transparent 55%),
    radial-gradient(46% 46% at 8% 82%, #E4EDFA 0%, transparent 60%),
    radial-gradient(42% 42% at 52% 104%, #EFE7F7 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}
.page-hero-bg {
  background:
    radial-gradient(56% 72% at 50% 0%, #FBE0EC, transparent 60%),
    radial-gradient(40% 52% at 88% 8%, #E4EDFA, transparent 60%),
    radial-gradient(38% 48% at 10% 14%, #EFE7F7, transparent 62%),
    linear-gradient(180deg, #fff, var(--cream) 92%);
}

/* ---- 카테고리 태그 pill: 파스텔 컬러 로테이션(만화 톤) ---- */
.cat-card .tags span:nth-child(3n+1) { background: var(--pink-soft); color: var(--rose-deep); }
.cat-card .tags span:nth-child(3n+2) { background: var(--mint-soft); color: #4f7d6c; }
.cat-card .tags span:nth-child(3n+3) { background: var(--lav-soft); color: #6a5f8a; }

/* =========================================================
   ★★ 리디자인 레이어 v2 — 더 과감하게 (파스텔·만화·프리미엄 증폭)
   ========================================================= */
/* 헤드라인 한 단계 더 크게 */
h1 { font-size: clamp(2.8rem, 6.6vw, 5.2rem); line-height: 1.14; }
h2 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); line-height: 1.2; }
.hero-copy h1, .hero-v1 h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.14; }

/* eyebrow → 파스텔 알약 라벨 (헤어라인 대신 또렷한 배경) */
.eyebrow { padding: 7px 16px; border-radius: 999px; background: var(--pink-soft); color: var(--rose-deep); font-size: .72rem; letter-spacing: .22em; }
.eyebrow::before, .eyebrow.dual::after { display: none; }

/* 마커 하이라이트 더 도톰하게 */
.mark, .hero-copy h1 .accent { background: linear-gradient(transparent 52%, #FBD3E0 52%); border-radius: 3px; }

/* 버튼 더 통통 + hover 살짝 커짐 */
.btn { padding: 17px 34px; }
.btn-lg { padding: 20px 42px; font-size: 1.12rem; }
.btn-primary:hover, .btn-gold:hover { transform: translateY(-3px) scale(1.03); }

/* 카드 — 은은한 파스텔 틴트 + 컬러 hover 링 */
.card, .cat-card, .product, .buy-guide .card { background: linear-gradient(180deg, #FFFFFF 0%, #FFF7FB 100%); }
.card:hover, .cat-card:hover { border-color: var(--pink); box-shadow: var(--shadow-lg); }

/* 태그·pill 더 도톰 */
.cat-card .tags span { font-size: .74rem; padding: 7px 6px; font-weight: 700; }
.pill { padding: 9px 17px; font-size: .9rem; }

/* 데코 블롭 더 진하게 */
.blob { opacity: .8; filter: blur(46px); }

/* 점선 구분선 → 로즈 톤 도톰 */
.dotline { border-top: 3px dotted var(--rose); opacity: .5; max-width: 100px; }

/* 네비 — 활성/hover 알약 배경 (CTA 버튼은 제외) */
.nav-menu a.active { background: var(--pink-soft); color: var(--rose-deep); }
.nav-menu a:not(.nav-cta):hover { background: var(--cream-2); }

/* 푸터 상단 파스텔 그라데이션 라인 */
.site-footer { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--rose), var(--sky), var(--lav), var(--butter)) 1; }

/* 히어로 뱃지·데코 살랑살랑 */
@keyframes wiggle { 0%,100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
.art-v1 .badge { animation: wiggle 4.5s ease-in-out infinite; }

/* =========================================================
   ★★★ 리디자인 레이어 v3 — 컨셉 변주: "웜 피치·크림 스토리북"
   (쿨 핑크 → 따뜻한 크림/피치/버터. 이 블록만 지우면 v2로 원복.)
   ========================================================= */
:root {
  /* 웜 톤 틴티드 섀도우 (앰버/피치 계열) */
  --shadow-sm: 0 2px 6px rgba(196,150,110,.08), 0 10px 24px rgba(190,140,110,.11);
  --shadow-md: 0 10px 24px rgba(196,150,110,.13), 0 22px 50px rgba(185,140,105,.15);
  --shadow-lg: 0 18px 40px rgba(196,150,110,.15), 0 42px 86px rgba(180,135,100,.19);
}
/* 따뜻한 크림 베이스 (스타크 화이트 → 아이보리) */
body { background: linear-gradient(180deg, #FFFDF8 0%, #FBF2E8 100%); }

/* 히어로/서브히어로 — 피치·버터·살구 워시 */
.hero-bg {
  background:
    radial-gradient(55% 50% at 85% 8%, #FCE3D3 0%, transparent 55%),
    radial-gradient(46% 46% at 8% 82%, #FBEFD3 0%, transparent 60%),
    radial-gradient(42% 42% at 52% 104%, #F8E0DA 0%, transparent 60%),
    linear-gradient(180deg, #FFFDF8 0%, #FBF2E8 100%);
}
.page-hero-bg {
  background:
    radial-gradient(56% 72% at 50% 0%, #FCE3D3, transparent 60%),
    radial-gradient(40% 52% at 88% 8%, #FBEFD3, transparent 60%),
    radial-gradient(38% 48% at 10% 14%, #F8E0DA, transparent 62%),
    linear-gradient(180deg, #FFFDF8, #FBF2E8 92%);
}

/* CTA — 코랄·피치 그라데이션 */
.btn-primary { background: linear-gradient(135deg, #F7B9A0 0%, #F0929E 100%); box-shadow: 0 8px 22px rgba(240,146,158,.32); }
.btn-primary:hover { background: linear-gradient(135deg, #F4AE96 0%, #EC8494 100%); box-shadow: 0 13px 30px rgba(240,146,158,.42); }

/* 알약 라벨 — 피치 톤 */
.eyebrow { background: #F7E5D5; color: #B37B5B; }
.mark, .hero-copy h1 .accent { background: linear-gradient(transparent 52%, #FBDCC4 52%); }

/* 카드 — 따뜻한 크림 틴트 */
.card, .cat-card, .product, .buy-guide .card { background: linear-gradient(180deg, #FFFFFF 0%, #FFF8EF 100%); }
.card:hover, .cat-card:hover { border-color: var(--peach); }

/* 태그 pill — 웜 파스텔 로테이션(피치·버터·살구) */
.cat-card .tags span:nth-child(3n+1) { background: #F7E1D0; color: #B37B5B; }
.cat-card .tags span:nth-child(3n+2) { background: #F6EBCB; color: #957B3F; }
.cat-card .tags span:nth-child(3n+3) { background: #F5DED9; color: #B06E7E; }

/* 점선 구분선 — 살구 톤 */
.dotline { border-top: 3px dotted var(--peach); opacity: .7; }

/* 푸터 상단 라인 — 웜 그라데이션 */
.site-footer { border-image: linear-gradient(90deg, #EEA98E, #F0CE86, #EEB7B0, #C7DDD4) 1; }

/* 네비 활성/hover — 웜 톤 */
.nav-menu a.active { background: #F7E5D5; color: #B37B5B; }

/* =========================================================
   ★★★★ 리디자인 레이어 v4 — 더 동화책스럽게 (스토리북 파스텔, 고급 유지)
   (이 블록만 지우면 v3로 원복.)
   ========================================================= */
/* 1) 섹션마다 파스텔 배경 교차 — 동화책 페이지 넘기는 리듬
      (인라인 style·특수 밴드 섹션은 제외하고, 순수 콘텐츠 섹션만 은은하게) */
section.pad:not([style]):not(.stats-band):not(.safe-band):not(.quote-band):not(.cta-band):not(.info-band):not(.works-band) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1ECF8 100%);
}
section.pad:not([style]):not(.stats-band):not(.safe-band):not(.quote-band):not(.cta-band):not(.info-band):not(.works-band):nth-of-type(even) {
  background: linear-gradient(180deg, #FFFFFF 0%, #E7F1EC 100%);
}
section.pad:not([style]):not(.stats-band):not(.safe-band):not(.quote-band):not(.cta-band):not(.info-band):not(.works-band):nth-of-type(3n) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBEEE1 100%);
}

/* 2) 카드 = 도톰한 흰 테두리의 '사진 스티커' + 더 둥글게 + 웜 그림자 */
.card, .cat-card, .product, .buy-guide .card {
  border: 3px solid #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.card:hover, .cat-card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-lg); }

/* 3) 몽글몽글 파스텔 구름 오브 — 배경에 둥둥 (몽환 동화 느낌) */
.blob { opacity: .85; filter: blur(42px); animation: floaty 12s ease-in-out infinite; }
.page-hero { }
.page-hero::before, .page-hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(6px); opacity: .55; z-index: 0; pointer-events: none;
}
.page-hero::before { width: 130px; height: 130px; background: #FBE0D2; top: 14%; left: 7%; animation: floaty 9s ease-in-out infinite; }
.page-hero::after  { width: 88px;  height: 88px;  background: #E7E0F3; top: 26%; right: 9%; animation: floaty2 11s ease-in-out infinite; }

/* 4) 구분선 — 동화 속 점선 길처럼 도톰하게 */
.dotline { border-top: 3px dotted var(--peach); opacity: .8; max-width: 130px; }

/* 5) 섹션 헤드 라벨 아래 여백 살짝 더 (여유로운 동화책 조판) */
.sec-head { margin-bottom: clamp(44px, 5.5vw, 70px); }

/* =========================================================
   ★★★★★ 리디자인 레이어 v5 — 톤온톤 (웜 피치·크림 한 계열로 통일)
   (색이 다채롭던 부분을 비슷한 웜 톤으로만. 이 블록만 지우면 v4로 원복.)
   ========================================================= */
/* 섹션 배경 교차 → 라벤더/민트 대신 전부 웜 크림 계열(명암만 미세 차이) */
section.pad:not([style]):not(.stats-band):not(.safe-band):not(.quote-band):not(.cta-band):not(.info-band):not(.works-band),
section.pad:not([style]):not(.stats-band):not(.safe-band):not(.quote-band):not(.cta-band):not(.info-band):not(.works-band):nth-of-type(even),
section.pad:not([style]):not(.stats-band):not(.safe-band):not(.quote-band):not(.cta-band):not(.info-band):not(.works-band):nth-of-type(3n) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF2E8 100%);
}
section.pad:not([style]):not(.stats-band):not(.safe-band):not(.quote-band):not(.cta-band):not(.info-band):not(.works-band):nth-of-type(even) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FCF5EE 100%);
}

/* 태그 pill → 웜 피치 한 톤으로 통일 */
.cat-card .tags span,
.cat-card .tags span:nth-child(3n+1),
.cat-card .tags span:nth-child(3n+2),
.cat-card .tags span:nth-child(3n+3) { background: #F6E3D3; color: #B0794F; }

/* 배경 구름 오브 → 라벤더 제거, 둘 다 웜 피치 */
.page-hero::before { background: #FBE2D2; }
.page-hero::after  { background: #FBE9D8; }

/* 푸터 상단 라인 → 무지개 대신 웜 피치 그라데이션 */
.site-footer { border-image: linear-gradient(90deg, #F0C9A6, #E7AE87, #F0C9A6) 1; }

/* =========================================================
   ★ 리디자인 레이어 v6 — 프레임 상세페이지 자연스럽게
   (문의 모드 + 동화 톤에 맞춰 '깨진 쇼핑몰' 느낌 제거)
   ========================================================= */
/* 가격표 실선 레일 → 부드러운 웜 알약 칩 (가격 없어도 안 어색) */
.pd-price {
  display: inline-flex; align-items: baseline; gap: 9px;
  padding: 11px 20px; border: none; border-radius: 999px;
  background: #F6E9DD; margin-bottom: 24px;
}
.pd-price-label { display: none; }
.pd-price-val { font-family: var(--sans); font-weight: 800; font-size: 1.02rem; color: #B0794F; }
.pd-price-note { color: #B0794F; opacity: .85; align-self: center; }

/* 문의하기 버튼 — 존재감 있게 (혼자 있어도 허전하지 않게) */
.pd-actions .btn { min-width: 240px; }

/* '상세 보기' 갤러리 이중 액자 제거 — 흰 카드 테두리 하나만 */
.detail-gallery figure.card { border: 3px solid #fff; box-shadow: var(--shadow-md); }
.detail-gallery img { border: none; box-shadow: none; border-radius: var(--r-md); }

/* 프레임 색상 스와치 — 선택지가 아니라 '안내'임을 은은히 (커서/호버 과장 제거) */
.pd-opt-label::after { content: " · 제작 시 선택"; font-weight: 400; color: var(--ink-faint); font-size: .82em; }

/* =========================================================
   ★★★★★★ 대공사 레이어 v7 — 홈 배치 리디자인 (에디토리얼 리듬)
   단조로운 센터 스택 → 좌우 교차 블록 + 대표작 벤토
   ========================================================= */
/* 1) 카테고리 — 큰 좌우 교차 블록 (3카드 → 임팩트 있는 스토리 블록) */
.cat-rows { display: flex; flex-direction: column; gap: clamp(26px, 3.5vw, 48px); }
.cat-row {
  display: flex; align-items: center; gap: clamp(22px, 4vw, 58px);
  background: linear-gradient(180deg, #fff, #FFF8EF);
  border: 3px solid #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); padding: clamp(16px, 2vw, 26px);
  transition: transform .4s ease, box-shadow .4s ease;
}
.cat-row:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-row:nth-child(even) { flex-direction: row-reverse; }
.cat-row-img { flex: 1 1 54%; border-radius: var(--r-lg); overflow: hidden; align-self: stretch; }
.cat-row-img img { width: 100%; height: 100%; min-height: clamp(220px, 26vw, 340px); object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.cat-row:hover .cat-row-img img { transform: scale(1.04); }
.cat-row-body { flex: 1 1 46%; padding: clamp(4px, 1.5vw, 22px); }
.cat-row-body .emoji { font-size: 2.2rem; margin-bottom: 12px; }
.cat-row-body .en { display: block; font-family: var(--serif); color: var(--gold); font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.cat-row-body h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.cat-row-body > p { font-size: clamp(1rem, 1.4vw, 1.12rem); margin-bottom: 18px; max-width: 30em; }
.cat-row-body .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.cat-row-body .tags span { font-size: .76rem; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: #F6E3D3; color: #B0794F; }
.cat-row-body .more { color: var(--rose-deep); font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 7px; }
.cat-row:hover .cat-row-body .more svg { transform: translateX(5px); }
.cat-row-body .more svg { width: 17px; height: 17px; transition: transform .25s; }
@media (max-width: 820px) {
  .cat-row, .cat-row:nth-child(even) { flex-direction: column; align-items: stretch; text-align: center; }
  .cat-row-body .tags, .cat-row-body .more { justify-content: center; }
  .cat-row-img img { min-height: 200px; }
}

/* 2) 대표 작품 — 대표작 중심 벤토 모자이크 (균일 3×2 → 리듬) */
.works-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 19vw, 224px); gap: 18px; }
.works-grid .work:first-child { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.works-grid .work { height: 100%; }
.works-grid .work img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.works-grid .work:first-child .work-cap b { font-size: 1.5rem; }
@media (max-width: 760px) {
  /* 모바일: 고정 픽셀 높이(겹침 원인) 버리고 비율로 자연스럽게 쌓기 */
  .works-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 12px; }
  .works-grid .work { height: auto; }
  .works-grid .work img { height: auto; aspect-ratio: 4 / 3; }
  .works-grid .work:first-child { grid-column: 1 / span 2; grid-row: auto; height: auto; }
  .works-grid .work:first-child img { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
  .works-grid { grid-template-columns: 1fr; }
  .works-grid .work:first-child { grid-column: auto; }
  .works-grid .work:first-child img { aspect-ratio: 4 / 3; }
}

/* =========================================================
   ★ 대공사 레이어 v8 — 모바일 정리 (맨 끝: 작은 화면 크기 재정의)
   리디자인으로 커진 헤드라인/버튼이 모바일에서 과하지 않게 축소.
   ========================================================= */
@media (max-width: 720px) {
  /* 헤드라인 — 작은 화면에 맞게 다시 축소 (v1·v2의 큰 min값 무력화) */
  h1 { font-size: clamp(1.9rem, 7.6vw, 2.6rem); line-height: 1.24; }
  h2 { font-size: clamp(1.65rem, 6.2vw, 2.15rem); line-height: 1.28; }
  h3 { font-size: clamp(1.15rem, 4.6vw, 1.4rem); }
  .hero-copy h1, .hero-v1 h1 { font-size: clamp(1.75rem, 7.6vw, 2.35rem); line-height: 1.24; }
  .pd-title { font-size: clamp(1.55rem, 6.4vw, 2rem); }

  /* 버튼 — 모바일에서 통통함 완화 + 문의 버튼 꽉 차게 */
  .btn { padding: 13px 22px; font-size: .95rem; }
  .btn-lg { padding: 15px 26px; font-size: 1rem; }
  .pd-actions .btn { min-width: 0; width: 100%; }

  /* 좌우 교차 블록 — 세로 스택 시 정돈 */
  .cat-row { padding: 12px; gap: 16px; }
  .cat-row-body { padding: 6px 8px 10px; }
  .cat-row-body h3 { font-size: clamp(1.5rem, 6.2vw, 2rem); }
  .cat-row-body > p { font-size: 1rem; }

  /* eyebrow 알약 — 자간 좁혀 줄바꿈 방지 */
  .eyebrow { letter-spacing: .16em; }
}

/* 좌우 교차 블록: 세로 스택 시 이미지 높이 확정(cover 정상 동작) */
@media (max-width: 820px) {
  .cat-row-img { width: 100%; }
  .cat-row-img img { height: clamp(200px, 52vw, 300px); min-height: 0; }
}

@media (max-width: 400px) {
  h1, .hero-copy h1, .hero-v1 h1 { font-size: clamp(1.65rem, 8.2vw, 2rem); }
  .wrap { padding: 0 16px; }
}

/* =========================================================
   ★ 대공사 레이어 v9 — 색 온도 통일 (쿨 로즈/핑크 → 웜 테라코타·피치)
   토큰만 웜으로 재정의 → var()로 참조되는 배경·태그·강조색 38곳이 한 번에 통일.
   ========================================================= */
:root {
  --pink:       #EFD8C6;   /* 쿨 #EAD3D8 → 웜 */
  --pink-soft:  #F7E8DA;   /* 쿨 #F3E6E8 → 웜 크림피치 (섹션/카드 배경 26곳) */
  --blush:      #F5E6D9;
  --rose:       #D2A088;   /* 쿨 모브 #CE9AA6 → 웜 더스티 로즈 */
  --rose-deep:  #BB7A61;   /* 쿨 #B06E7E → 웜 테라코타 로즈 (주요 강조·링크·strong) */
  --peach:      #EBD3C2;   /* 이미 웜 유지 */
}

/* 푸터 상단 베이지 그라데이션 라인 제거 → 원래의 은은한 얇은 구분선 */
.site-footer { border-top: 1px solid var(--line); border-image: none; }

/* 상세페이지: 사진 1장뿐(썸네일 없음)일 때 좌측이 허전하지 않게 세로 중앙 정렬 */
.pd-gallery:not(:has(.pd-thumbs)) { align-self: center; position: static; }

/* =========================================================
   ★ 대공사 레이어 v10 — 홈 "왜 로저베베" 에디토리얼 분할
   가운데 4카드 그리드 → 좌측 고정 인트로 + 우측 2×2 카드 (리듬)
   ========================================================= */
.why-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.why-intro { position: sticky; top: 100px; }
.why-intro h2 { text-align: left; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .why-intro { position: static; }
  .why-intro h2 { text-align: center; }
}
@media (max-width: 520px) { .why-cards { grid-template-columns: 1fr; } }

/* =========================================================
   ★ 대공사 레이어 v11 — 모바일 줄바꿈 정리
   데스크톱용으로 박아둔 강제 <br>를 모바일에서 숨겨 자연스럽게 흐르게.
   (시적 인용구 .quote-band .q 의 줄바꿈만 유지)
   ========================================================= */
@media (max-width: 700px) {
  h1 br, h2 br, h3 br, p br, .lead br, .pd-desc br { display: none; }
  .quote-band .q br { display: inline; }
}

/* =========================================================
   ★ 대공사 레이어 v12 — 상세 대표 이미지 잘림 방지
   4:3 cover로 와이드 사진(트리플 폴딩 파노라마 등)이 잘리던 것 →
   원본 비율 그대로 표시(잘림 없음).
   ========================================================= */
.pd-main { background: #fff; }
.pd-main img { aspect-ratio: auto; height: auto; object-fit: contain; }

/* =========================================================
   ★ 대공사 레이어 v13 — 대표 이미지 고정 정사각 영역
   높이가 제각각인 사진을 썸네일로 전환할 때 대표 이미지 높이가
   튀던 문제 → 영역을 정사각으로 고정하고, 이미지는 잘림 없이
   (contain) 가운데 정렬. 여백은 흰색 레터박스로 자연스럽게.
   ========================================================= */
.pd-main { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 14px; }
.pd-main img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
@media (max-width: 720px) { .pd-main { padding: 10px; } }
@media (max-width: 480px) { .pd-main { padding: 8px; } }

/* =========================================================
   ★ 대공사 레이어 v14 — 구성(가격 변동) 옵션 버튼
   더블 폴딩처럼 한 상품에 가격이 다른 구성(S/일반)이 있을 때 사용.
   선택 시 main.js가 표시 가격과 data-price를 갱신함.
   ========================================================= */
.pd-variants { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-variant { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; font-size: .9rem; color: var(--ink); line-height: 1.2;
  transition: border-color .2s, background .2s; }
.pd-variant b { font-family: var(--korserif); color: var(--rose-deep); font-size: 1rem; }
.pd-variant:hover { border-color: var(--rose); }
.pd-variant.is-active { border-color: var(--rose-deep); background: var(--pink-soft); }

/* =========================================================
   ★ 대공사 레이어 v15 — 모바일 서브메뉴 아코디언
   기존: 모바일에서 BABY/FAMILY/CORPORATE 하위메뉴가 전부 펼쳐져
   메뉴가 과도하게 길었음. → 기본 접힘 + 화살표 탭으로 펼치기.
   데스크톱은 종전대로 hover 드롭다운(토글 버튼 숨김).
   ========================================================= */
.nav-sub-toggle { display: none; background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 900px) {
  .nav-item.has-sub { position: relative; }
  .nav-sub-toggle { display: flex; position: absolute; top: 0; right: 0;
    width: 54px; height: 50px; align-items: center; justify-content: center; color: var(--ink-soft); }
  .nav-sub-toggle .caret { display: block; width: 18px; height: 18px;
    fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s; }
  .nav-item.open > .nav-sub-toggle .caret { transform: rotate(180deg); }
  .nav-sub { display: none; }
  .nav-item.open .nav-sub { display: flex; }
}

/* =========================================================
   ★ 대공사 레이어 v16 — 하위 페이지에서 부모 카테고리 하이라이트 분리
   스퀘어 등 하위 페이지에서 부모(BABY)와 하위(스퀘어)가 둘 다 배경
   하이라이트를 받아 겹쳐 보이던 문제 → 부모는 배경 없이 텍스트 강조만.
   ========================================================= */
.nav-menu a.parent-active { color: var(--rose-deep); font-weight: 700; background: transparent; }

/* =========================================================
   ★ 대공사 레이어 v17 — 장바구니 아이콘 확대
   카트 아이콘이 작아 눈에 잘 안 띄던 문제 → 헤더/상품버튼 모두 키움.
   선 굵기는 살짝 낮춰 커진 크기에서도 과하지 않게.
   ========================================================= */
.nav-cart { width: 54px; height: 54px; }
.nav-cart .i { width: 36px; height: 36px; stroke-width: 1.7; vertical-align: middle; }
.nav-cart-count { top: -1px; right: -3px; min-width: 21px; height: 21px; font-size: .72rem; }

.pd-cart svg { width: 28px; height: 28px; }

/* 모바일 */
@media (max-width: 768px) {
  .nav-cart { width: 48px; height: 48px; }
  .nav-cart .i { width: 32px; height: 32px; }
  .nav-cart-count { min-width: 19px; height: 19px; font-size: .68rem; }
  .pd-cart svg { width: 25px; height: 25px; }
}

/* =========================================================
   ★ 대공사 레이어 v18 — 히어로 배지 "Since 2004"
   기존 "23년 / 손발조형 전문" 2단 구성 → 한 줄 연혁 배지로 교체.
   ========================================================= */
.art-v1 .badge .since-label {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; line-height: 1;
}
.art-v1 .badge b { letter-spacing: .01em; }
@media (max-width: 768px) {
  .art-v1 .badge .since-label { font-size: .66rem; letter-spacing: .14em; }
}

/* =========================================================
   ★ 대공사 레이어 v19 — 홈 대표 작품: 카드 안 사진 가로 슬라이드
   격자 배치·카드 형태는 그대로. 각 프레임 안에서 사진이 옆으로
   밀려 들어오고 나가며, 6개 카드가 같은 박자로 동시에 움직인다.
   ========================================================= */
.work-slides {
  position: relative; display: block; overflow: hidden;
  width: 100%; height: 100%; aspect-ratio: 4 / 3;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
/* 사진은 모두 겹쳐 두고 가로 위치만 이동 */
.work-slides img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: translateX(100%);
  transition: transform .8s cubic-bezier(.22,.75,.2,1);
}
/* JS 실행 전에도 첫 장은 제자리에 보이도록 */
.work-slides img:first-child { transform: translateX(0); }

/* 호버 확대는 이미지 대신 래퍼에 적용 (img transform은 슬라이드가 사용) */
.work:hover .work-slides { transform: scale(1.045); }

@media (prefers-reduced-motion: reduce) {
  .work-slides, .work-slides img { transition: none; }
}

/* =========================================================
   ★ 대공사 레이어 v20 — 상세 안내 한 줄 (.pd-note)
   pd-meta 체크리스트를 걷어낸 자리에 들어가는 부드러운 안내문.
   웜 피치 톤온톤 · 둥근 말랑 박스 (v9 색 온도 규칙 준수)
   ========================================================= */
.pd-note {
  margin-top: 22px;
  padding: 15px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cream-2), #FDF3EC);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(190, 150, 125, .10);
  font-size: .96rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
/* 안내가 여러 줄일 때: 문단 간격만 벌리고 박스는 하나로 유지 */
.pd-note p { margin: 0; }
.pd-note p + p { margin-top: 8px; }

@media (max-width: 720px) {
  .pd-note { margin-top: 18px; padding: 13px 15px; font-size: .9rem; border-radius: 14px; }
}
@media (max-width: 480px) {
  .pd-note { padding: 12px 14px; font-size: .87rem; }
}

/* =========================================================
   ★ 대공사 레이어 v21 — 대표 작품 7카드 그리드 재배치
   포토 2 추가로 6→7개. 3열 격자가 깨지지 않도록
   4번째(포토 2)·6번째(트리플 폴딩) 카드를 가로 2칸으로 넓혀
   4행 × 3열을 빈칸 없이 꽉 채운다. 트리플은 3단 접이라
   원본이 가로로 긴 사진이어서 와이드 칸에 자연스럽다.
   (탯줄 보관은 정방형 사진이라 와이드로 늘리면 깨져서 1칸 유지)
   ========================================================= */
.works-grid .work:nth-child(4),
.works-grid .work:nth-child(6) { grid-column: span 2; }

@media (max-width: 860px) {
  /* 2열 격자: 넓힌 카드를 원래 크기로 되돌려 3행 × 2열 유지 */
  .works-grid .work:nth-child(4),
  .works-grid .work:nth-child(6) { grid-column: auto; }
}

/* =========================================================
   ★ 대공사 레이어 v22 — 푸터 사업자 정보 줄 (.foot-biz)
   사업자등록번호 · 주소 · 입금계좌를 저작권 줄 위에 배치.
   ========================================================= */
.foot-biz { display: flex; flex-direction: column; gap: 4px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-biz small { color: var(--ink-faint); font-size: .8rem; line-height: 1.6; }
.foot-biz + .foot-bottom { border-top: 0; padding-top: 12px; }

@media (max-width: 640px) {
  .foot-biz { text-align: center; }
}

/* =========================================================
   ★ 대공사 레이어 v23 — 홈: 프레임 사진 '잘림' 해결
   -------------------------------------------------------
   원인: 사진마다 원본 비율이 제각각(세로 3:4 ~ 정사각 1:1 ~ 가로 2.8:1)인데
   칸은 전부 가로로 넓게 고정 + object-fit:cover 라서
   액자 테두리·아기 손발·탯줄 하트가 잘려나갔다.
   해결: 칸을 사진에 맞추는 '갤러리 월(메이슨리)' 방식으로 전환.
        각 카드가 자기 사진의 원본 비율을 그대로 갖고,
        높이가 서로 다른 카드들이 벽돌처럼 맞물린다 → 잘림 0.
   ========================================================= */

/* ---------- 1) 히어로 작품 사진 : 원본 3:2 그대로 (4:3 강제 → 좌우 잘림) ----------
   흰 액자 테두리(border)가 사진 영역을 갉아먹어 3:2 가 어긋나므로
   content-box 기준으로 비율을 잡아 테두리 두께만큼 폭을 빼준다 → 잘림 0 */
.art-v1 img {
  --frame-w: 7px;
  box-sizing: content-box;
  width: calc(100% - var(--frame-w) * 2);
  aspect-ratio: 3 / 2;
}
@media (max-width: 720px) { .art-v1 img { --frame-w: 5px; } }

/* ---------- 2) 대표 작품 : 3열 갤러리 월 ---------- */
.works-grid {
  display: block;
  columns: 3;
  column-gap: 20px;
  grid-template-columns: none;
  grid-template-areas: none;
}
.works-grid .work {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 20px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  grid-area: auto;
  background: linear-gradient(180deg, #FFFDFA 0%, #FBF2E9 100%);
}

/* 카드마다 '자기 사진 비율' — 액자가 통째로 보인다 */
.works-grid .work-slides {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;          /* 기본값 (가로 액자) */
}
.works-grid .work:nth-child(1) .work-slides { aspect-ratio: 1 / 1; }    /* 스퀘어  — 정사각 */
.works-grid .work:nth-child(2) .work-slides { aspect-ratio: 3 / 2; }    /* 렉탱글 */
.works-grid .work:nth-child(3) .work-slides { aspect-ratio: 3 / 2; }    /* 포토 */
.works-grid .work:nth-child(4) .work-slides { aspect-ratio: 17 / 10; }  /* 포토 2 */
.works-grid .work:nth-child(5) .work-slides { aspect-ratio: 3 / 2; }    /* 더블 폴딩 */
.works-grid .work:nth-child(6) .work-slides { aspect-ratio: 5 / 3; }    /* 트리플 폴딩 — 가로로 긴 사진 */
.works-grid .work:nth-child(7) .work-slides { aspect-ratio: 3 / 4; }    /* 탯줄 보관 — 세로 사진 */

/* 슬라이드 3장의 비율이 조금씩 달라도 절대 잘리지 않도록 contain 고정 */
.works-grid .work-slides img {
  width: 100%; height: 100%;
  aspect-ratio: auto;
  object-fit: contain;          /* ← 잘림 해결의 핵심 (cover → contain) */
  object-position: center;
  padding: clamp(6px, .8vw, 12px);
  padding-bottom: clamp(30px, 3.4vw, 46px);   /* 캡션 글자에 사진이 가리지 않도록 */
}

/* 캡션 : 배경이 밝아졌으므로 어두운 그라데이션 → 크림 그라데이션 + 진한 글자 */
.works-grid .work-cap {
  padding: 26px 15px 13px;
  background: linear-gradient(to top,
              rgba(255, 250, 243, .97) 42%,
              rgba(255, 250, 243, .80) 74%,
              rgba(255, 250, 243, 0));
  color: var(--ink);
}
.works-grid .work-cap b { color: var(--ink); }
.works-grid .work-cap span { color: var(--rose-deep); }
.works-grid .work:nth-child(1) .work-cap b { font-size: 1.25rem; }

/* ---------- 3) 카테고리 좌우 교차 블록 (홈에만 적용) ---------- */
/* cat_baby / cat_family 는 원본이 정확히 3:2 → 칸도 3:2 로 두면 잘림 0.
   baby/family/corporate 페이지의 .cat-row 는 사진 구성이 달라 건드리지 않는다. */
[data-page="home"] .cat-row-img {
  align-self: center;
  aspect-ratio: 3 / 2;
  background: linear-gradient(180deg, #FFFDFA, #FAF1E7);
}
[data-page="home"] .cat-row-img img { height: 100%; min-height: 0; }

/* CORPORATE 사진만 원본이 정사각(1:1) → 가로 3:2 칸에 넣으면 조형물 위아래가 잘린다.
   이 줄만 사진 칸을 정사각으로 (폭은 살짝 줄여 균형 맞춤) → 잘림 0, 여백 0 */
[data-page="home"] .cat-row:nth-child(3) .cat-row-img {
  aspect-ratio: 1 / 1;
  flex: 0 1 40%;
}
[data-page="home"] .cat-row:nth-child(3) .cat-row-body { flex: 1 1 60%; }

/* =========================================================
   v23 모바일 — 갤러리 월 열 수만 줄인다 (비율은 그대로 유지)
   ========================================================= */
@media (max-width: 860px) {
  .works-grid { columns: 2; column-gap: 14px; }
  .works-grid .work { margin-bottom: 14px; }
  .works-grid .work-slides img { padding: 8px; padding-bottom: 30px; }
  .works-grid .work-cap { padding: 22px 12px 11px; }
  .works-grid .work:nth-child(1) .work-cap b { font-size: 1.08rem; }
}
@media (max-width: 820px) {
  /* 세로로 무너진 카테고리 블록 — 사진 칸은 3:2 유지 */
  [data-page="home"] .cat-row-img { aspect-ratio: 3 / 2; }
  [data-page="home"] .cat-row-img img { min-height: 0; }
}
@media (max-width: 480px) {
  .works-grid { columns: 1; }
  .works-grid .work { margin-bottom: 12px; }
}

/* =========================================================
   ★ 대공사 레이어 v24 — 대표 작품: 어떤 화면 폭에서도 프레임 잘림 0
   -------------------------------------------------------
   v23은 칸 비율을 손으로 지정했다(1/1, 17/10, 5/3 …).
   데스크톱에선 맞아떨어졌지만, 화면이 좁아지면 지정 비율과
   사진 원본 비율의 오차가 커져 액자가 잘리거나 붕 떠 보였다.

   해결 1) 칸 비율 지정을 전부 걷어낸다. 첫 사진을 '문서 흐름 안'에 두어
           카드 높이가 그 사진의 원본 비율을 그대로 따라가게 만든다.
           → 폭이 얼마든 액자가 통째로 들어간다 (모바일 포함 잘림 0).
   해결 2) 마우스 올릴 때 사진을 4.5% 확대하던 효과를 없앤다.
           카드가 overflow:hidden 이라 확대되는 순간 액자 테두리가
           잘려 나갔고, 터치 기기는 한 번 누르면 :hover 가 남아
           모바일에서 계속 잘린 채로 보였다.
           (카드가 살짝 떠오르는 효과는 그대로 유지)
   ========================================================= */

/* ---------- 1) 칸 비율 고정 해제 : 사진이 칸 높이를 정한다 ---------- */
.works-grid .work-slides,
.works-grid .work:nth-child(1) .work-slides,
.works-grid .work:nth-child(2) .work-slides,
.works-grid .work:nth-child(3) .work-slides,
.works-grid .work:nth-child(4) .work-slides,
.works-grid .work:nth-child(5) .work-slides,
.works-grid .work:nth-child(6) .work-slides,
.works-grid .work:nth-child(7) .work-slides {
  aspect-ratio: auto;
  height: auto;
}

/* 첫 장만 흐름 안에 두면 = 카드 높이가 원본 비율 그대로.
   (좌우 슬라이드는 transform 이라 높이에 영향을 주지 않는다) */
.works-grid .work-slides img:first-child {
  position: relative;
  height: auto;
}

/* 나머지 장은 겹쳐 대기 — 첫 장이 만든 칸 안에 contain 으로 들어간다 */
.works-grid .work-slides img {
  object-fit: contain;
}

/* ---------- 2) 확대 호버 제거 (잘림의 직접 원인) ---------- */
.work:hover .work-slides { transform: none; }
.works-grid .work:hover img { transform: none; }
.works-grid .work:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
/* 터치 기기 : 탭 후 :hover 가 남아도 아무 일도 일어나지 않게 */
@media (hover: none) {
  .works-grid .work:hover { transform: none; box-shadow: var(--shadow-sm); }
}

/* ---------- 3) 모바일 열 수 ---------- */
@media (max-width: 560px) {
  .works-grid { columns: 1; column-gap: 0; }
  .works-grid .work { margin-bottom: 12px; }
  /* 1열에서 사진이 과하게 커지지 않도록 */
  .works-grid .work-slides img { padding: 7px; padding-bottom: 34px; }
}

/* =========================================================
   ★ 대공사 레이어 v25 — 대표 작품: 반듯한 사각 격자로 정렬
   -------------------------------------------------------
   v24는 카드 높이를 '첫 사진의 원본 비율'에 맡겼다. 잘림은 0이
   됐지만 사진마다 비율이 달라(1:1, 3:2, 3:4 …) 카드 높이가
   제각각 → columns 기반 벽돌쌓기와 겹쳐 들쑥날쑥해 보였다.

   해결) 벽돌쌓기(columns)를 걷어내고 3열 그리드로 되돌린 뒤,
        모든 카드의 사진 칸을 같은 비율(4:3)로 고정한다.
        사진은 그대로 contain 이라 여전히 잘림 0 —
        남는 자리는 카드 배경(크림)이 자연스럽게 채운다.
        7번째(탯줄) 카드는 마지막 줄에 혼자 남으므로 가운데 정렬.
   ========================================================= */

/* ---------- 1) 벽돌쌓기 해제 → 3열 격자 ---------- */
.works-grid {
  display: grid;
  columns: auto;
  column-gap: normal;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.works-grid .work {
  margin: 0;
  height: 100%;
  grid-column: auto;              /* v21의 span 2 해제 */
  grid-row: auto;
}
.works-grid .work:nth-child(4),
.works-grid .work:nth-child(6) { grid-column: auto; }

/* ---------- 2) 모든 사진 칸을 같은 비율로 ---------- */
.works-grid .work:nth-child(n) .work-slides {
  aspect-ratio: 4 / 3;
  height: 100%;
}
/* v24가 흐름 안으로 꺼내 놨던 첫 장을 다시 겹쳐 배치
   (칸 비율이 고정됐으므로 높이를 사진에 맡길 필요가 없다) */
.works-grid .work-slides img:first-child {
  position: absolute;
  height: 100%;
}
.works-grid .work-slides img { object-fit: contain; }

/* 첫 카드만 크게 쓰던 규칙도 해제 — 모든 칸을 동일하게 */
.works-grid .work:first-child { grid-column: auto; grid-row: auto; }
.works-grid .work:first-child .work-cap b { font-size: 1.08rem; }

/* ---------- 3) 마지막 줄 홀로 남는 카드 가운데 정렬 ---------- */
.works-grid .work:nth-child(7) { grid-column: 2 / 3; }

/* ---------- 4) 모바일 ---------- */
@media (max-width: 860px) {
  .works-grid {
    columns: auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .works-grid .work { margin: 0; }
  .works-grid .work:nth-child(7) {
    grid-column: 1 / -1;
    width: calc(50% - 7px);       /* 다른 카드와 같은 폭 유지 */
    margin-inline: auto;
  }
}
@media (max-width: 480px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .works-grid .work:nth-child(7) { grid-column: auto; width: auto; margin-inline: 0; }
}

/* =========================================================
   ★ 대공사 레이어 v26 — 대표 작품: 줄이 꽉 차는 4 + 3 배열
   -------------------------------------------------------
   v25는 3열 격자였다. 카드가 7개라 마지막 줄에 한 장만 남고
   양옆이 비어 "2-3-2"처럼 어긋나 보였다.

   해결) 12칸 격자로 바꿔 윗줄 4장(각 3칸) · 아랫줄 3장(각 4칸).
        두 줄 모두 좌우 끝까지 꽉 차서 빈자리가 없다.
        칸 비율은 줄마다 다르게(윗줄 4:3 · 아랫줄 3:2) 잡는다 —
        같은 줄 안에서는 높이가 완전히 같으므로 정렬은 유지되고,
        사진은 그대로 contain 이라 잘림 0.
   ========================================================= */

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;           /* v23의 고정 행높이(clamp) 해제 */
  gap: 20px;
}

/* 윗줄 4장 · 아랫줄 3장 */
.works-grid .work:nth-child(-n+4) { grid-column: span 3; }
.works-grid .work:nth-child(n+5)  { grid-column: span 4; }

/* v25가 걸어둔 height:100% 는 비율보다 우선해서 칸 높이를 잡아먹는다.
   높이를 auto 로 돌려 aspect-ratio 가 칸 높이를 정하게 한다. */
.works-grid .work { height: auto; align-self: stretch; }

/* 줄마다 칸 비율 — 줄 안에서는 모두 같은 높이 */
.works-grid .work:nth-child(-n+4) .work-slides { aspect-ratio: 4 / 3; height: auto; }
.works-grid .work:nth-child(n+5)  .work-slides { aspect-ratio: 3 / 2; height: auto; }

/* ---------- 태블릿 : 2열 + 5번째 카드를 한 줄 전체로 ----------
   7은 홀수라 2열에서도 한 장이 남는다. 남는 한 장을 가운데
   띄우는 대신, 가로로 넓은 더블 폴딩을 한 줄 전체로 키워
   4줄(2·2·1와이드·2)이 모두 꽉 차게 만든다. */
@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .works-grid .work,
  .works-grid .work:nth-child(-n+4),
  .works-grid .work:nth-child(n+5) { grid-column: auto; width: auto; margin-inline: 0; }
  .works-grid .work:nth-child(5) { grid-column: 1 / -1; }

  .works-grid .work:nth-child(-n+4) .work-slides,
  .works-grid .work:nth-child(n+5)  .work-slides { aspect-ratio: 4 / 3; height: auto; }
  .works-grid .work:nth-child(5) .work-slides { aspect-ratio: 21 / 9; height: auto; }
}

/* ---------- 모바일 : 1열 ---------- */
@media (max-width: 560px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .works-grid .work,
  .works-grid .work:nth-child(5),
  .works-grid .work:nth-child(-n+4),
  .works-grid .work:nth-child(n+5) { grid-column: auto; width: auto; margin-inline: 0; }
  .works-grid .work:nth-child(n) .work-slides { aspect-ratio: 4 / 3; height: auto; }
}

/* =========================================================
   ★ 대공사 레이어 v27 — 대표 작품: 사진이 더 크게 보이도록 칸 높이 up
   -------------------------------------------------------
   v26의 칸(윗줄 4:3 · 아랫줄 3:2)은 가로에 비해 낮아서, 캡션 자리
   (아래 여백 46px)를 빼고 나면 사진이 들어갈 높이가 145px밖에
   남지 않았다. 정사각·세로 사진일수록 작아 보이던 이유.

   1) 칸 비율을 세로로 키운다 — 윗줄 1:1 · 아랫줄 4:3.
      두 줄 높이가 273px / 278px 로 거의 같아져 정렬도 더 반듯해진다.
   2) 캡션용 아래 여백을 46px → 40px 로 줄인다.
      (캡션 글자가 차지하는 높이는 35px 남짓이라 겹치지 않는다)
   → 사진 표시 높이 145px → 216px (약 1.5배)
   ========================================================= */

.works-grid .work-slides img {
  padding-bottom: clamp(28px, 2.9vw, 40px);
}

.works-grid .work:nth-child(-n+4) .work-slides { aspect-ratio: 1 / 1; }
.works-grid .work:nth-child(n+5)  .work-slides { aspect-ratio: 4 / 3; }

@media (max-width: 900px) {
  .works-grid .work:nth-child(-n+4) .work-slides,
  .works-grid .work:nth-child(n+5)  .work-slides { aspect-ratio: 1 / 1; }
  .works-grid .work:nth-child(5) .work-slides { aspect-ratio: 16 / 9; }
  .works-grid .work-slides img { padding-bottom: clamp(26px, 4vw, 34px); }
}

@media (max-width: 560px) {
  .works-grid .work:nth-child(n) .work-slides { aspect-ratio: 1 / 1; }
}

/* =========================================================
   ★ 대공사 레이어 v28 — 대표 작품: 사진 한 번 더 키우기
   -------------------------------------------------------
   v27에서 칸을 1:1 로 키웠지만, 정사각 사진은 여전히 '높이'에
   막혀 있었다(가로 248px 자리에 219px). 좌우 안쪽 여백까지
   줄여서 사진이 칸 가로폭을 꽉 채우게 만든다.

   1) 사진 안쪽 좌우 여백 12px → 6px
   2) 윗줄 1:1 → 8:9 (살짝 세로로 긴 칸) — 정사각 사진이
      높이가 아니라 '가로'에 맞춰지는 지점까지 올린다
   3) 아랫줄 4:3 → 5:4
   → 사진 표시 크기 219px → 259px (v26 대비 약 1.8배)
   ========================================================= */

.works-grid .work-slides img {
  padding-left: clamp(3px, .4vw, 6px);
  padding-right: clamp(3px, .4vw, 6px);
  padding-top: clamp(3px, .4vw, 6px);
}

.works-grid .work:nth-child(-n+4) .work-slides { aspect-ratio: 8 / 9; }
.works-grid .work:nth-child(n+5)  .work-slides { aspect-ratio: 5 / 4; }

@media (max-width: 900px) {
  .works-grid .work:nth-child(-n+4) .work-slides,
  .works-grid .work:nth-child(n+5)  .work-slides { aspect-ratio: 8 / 9; }
  .works-grid .work:nth-child(5) .work-slides { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .works-grid .work:nth-child(n) .work-slides { aspect-ratio: 8 / 9; }
}

/* =========================================================
   스페셜 기프트 — 아기도장 무료 증정 (메인, 대표작품 아래)
   ========================================================= */
.gift-band {
  background: linear-gradient(180deg, var(--cream), var(--cream-2));
}
.gift-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(28px, 4vw, 52px);
  background: linear-gradient(135deg, var(--butter) 0%, #fff 55%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
/* 우측 상단 은은한 금빛 번짐 */
.gift-card::after {
  content: "";
  position: absolute;
  top: -40%; right: -12%;
  width: 46%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(216, 194, 154, .35), transparent 70%);
  pointer-events: none;
}
.gift-media {
  display: grid;
  place-items: center;
}
.gift-media img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(53, 41, 47, .13));
}
.gift-body { position: relative; z-index: 1; }
.gift-body .eyebrow { margin-bottom: 16px; }
.gift-body h2 {
  margin-bottom: 14px;
  line-height: 1.34;
}
.gift-body p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.gift-body p b {
  color: var(--rose-deep);
  font-weight: 700;
}
.gift-actions { margin-top: 26px; }

@media (max-width: 860px) {
  .gift-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding: clamp(26px, 6vw, 38px) clamp(20px, 5vw, 32px);
  }
  .gift-body .eyebrow { justify-content: center; }
  .gift-media img { max-width: 200px; }
  .gift-body h2 { font-size: clamp(1.35rem, 5.6vw, 1.7rem); }
  .gift-body p { font-size: .95rem; }
  .gift-actions { margin-top: 22px; }
}

@media (max-width: 480px) {
  .gift-media img { max-width: 168px; }
  .gift-body p br { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   ★ 레이어 v15 — 약관 · 개인정보처리방침 · 환불정책
   푸터 정책 링크 줄(.foot-policy) + 정책 본문 페이지(.policy)
   ═══════════════════════════════════════════════════════════ */
.foot-policy {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.foot-policy a {
  font-size: .86rem; color: var(--ink-soft); position: relative;
  transition: color .16s;
}
.foot-policy a:hover { color: var(--rose-deep); }
/* 항목 사이 얇은 구분선 (첫 항목 제외) */
.foot-policy a + a::before {
  content: ''; position: absolute; left: -10px; top: 50%;
  width: 1px; height: 11px; margin-top: -5.5px; background: var(--line);
}
.foot-policy a.is-key { color: var(--ink); font-weight: 600; }
.foot-policy + .foot-biz { border-top: 0; padding-top: 14px; }

/* 정책 본문 */
.policy { max-width: 820px; margin: 0 auto; }
.policy h2 {
  font-size: 1.18rem; margin: 40px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.policy h2:first-child { margin-top: 0; }
.policy h3 { font-size: 1rem; margin: 22px 0 8px; color: var(--rose-deep); }
.policy p, .policy li { font-size: .93rem; line-height: 1.85; color: var(--ink-soft); }
.policy p { margin: 0 0 12px; }
.policy ul, .policy ol { margin: 0 0 14px; padding-left: 20px; }
.policy li { margin-bottom: 5px; }
.policy strong { color: var(--ink); }
.policy .p-note {
  padding: 16px 20px; border-radius: var(--r-md); margin: 0 0 22px;
  background: linear-gradient(135deg, var(--butter), #fff); border: 1px solid var(--line);
  font-size: .9rem; line-height: 1.75;
}
.policy .p-warn {
  padding: 16px 20px; border-radius: var(--r-md); margin: 18px 0;
  background: linear-gradient(135deg, var(--pink-soft), #fff);
  border: 1px solid var(--rose); font-size: .9rem; line-height: 1.75;
}
.policy .p-warn b { color: var(--rose-deep); }
.policy table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .89rem; }
.policy th, .policy td {
  border: 1px solid var(--line); padding: 10px 13px; text-align: left;
  line-height: 1.65; vertical-align: top;
}
.policy th { background: #FBF8F7; font-weight: 600; color: var(--ink); white-space: nowrap; }
.policy td { color: var(--ink-soft); }
.policy .p-updated {
  margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--ink-faint);
}
.policy .p-tbl-wrap { overflow-x: auto; }

@media (max-width: 720px) {
  .foot-policy { justify-content: center; text-align: center; gap: 7px 18px; }
  .policy h2 { font-size: 1.06rem; margin: 32px 0 12px; }
  .policy p, .policy li { font-size: .89rem; line-height: 1.8; }
  .policy th, .policy td { padding: 9px 11px; font-size: .85rem; }
  .policy .p-note, .policy .p-warn { padding: 14px 16px; font-size: .86rem; }
}
