/* Pretendard 를 CDN 이 아니라 같이 배포한다 —
   사내망·CDN 장애에 시달리지 않고, 방문자 정보가 외부로 새지 않는다.
   가변축 하나로 이 사이트가 쓰는 500/600/700/800 을 전부 덮는다. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CHAEUM STUDIO — ivory silk + olive green
   ============================================================ */

:root {
  /* 히어로 배경 하단 접점(#EAD9CB)과 중앙(#EDDED0)에 맞춘 웜 베이지.
     배경 이미지를 바꾸면 tools/sample_bg.py 결과로 이 값을 갱신할 것. */
  --bg:            #F3E8DE;
  --bg-rgb:        243 232 222;
  --bg-alt:        #EDE0D4;
  /* 올리브 계열은 logo.png에서 추출한 실제 색(#68742A / #333F29) 기준 */
  --ink:           #2F3A1E;
  --olive:         #515E24;
  --olive-deep:    #333F29;
  --olive-soft:    #596322;   /* 헤드라인 2행 등 큰 글자용. 배경이 진한 베이지라 로고 색(#68742A)보다 한 톤 낮춤 */
  --olive-text:    #626D27;   /* 해시태그 등 작은 글자용 (4.5:1 기준) */
  --muted:         #6F675A;   /* 보조 텍스트. 웜 베이지 배경에서 4.5:1 확보 */
  --line:          rgba(81, 94, 36, 0.16);
  --line-strong:   rgba(81, 94, 36, 0.30);
  --card:          #FFFFFF;

  --wrap:          1280px;
  --pad:           20px;

  /* 히어로 텍스트 전체 배율. 이 값 하나로 로고·헤드라인·버튼·가격이 같이 커지고 줄어든다.
     1 = 현재 크기, 0.9 = 10% 축소 */
  --hero-scale:    1;

  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, li, figure, figcaption { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: 680px; }

/* 그라데이션 강조 텍스트 */
.grad {
  font-style: normal;
  background-image: linear-gradient(100deg,
      #2C3821 0%, #46531E 20%, #596322 42%, #6F6A2E 56%,
      #4F5B20 76%, #35431B 100%);
  background-size: 230% 100%;
  background-position: 12% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 11s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 8% 50%; }
  50%      { background-position: 92% 50%; }
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(48px, 7vh, 92px) var(--pad);
  isolation: isolate;
}

/* ------------------------------------------------------------
   실크 배경 — 가로형 / 세로형 두 장을 화면 비율로 전환한다.
   4:3보다 가로로 길면 데스크톱, 세로로 길면 모바일 이미지.
   베이스 컬러(#E9D4C6)는 원본 평균색이라 이미지가 늦게 떠도 이음매가 없다.
   ------------------------------------------------------------ */
.silkbg {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* 왼쪽 정렬: 오른쪽 붓질이 가운데 헤드라인 쪽으로 덜 들어온다
     (tools/try_bg_position.py 로 측정 — center 대비 미달 픽셀이 크게 줄어듦) */
  background: #E9D4C6 url("hero-desktop.webp") left center / cover no-repeat;
}
@media (max-aspect-ratio: 4 / 3) {
  .silkbg { background-image: url("hero-mobile.webp"); }
}

/* 아래 섹션과 맞닿는 경계를 없애는 페이드 밴드.
   ::after 는 .silkbg 뒤에 그려지므로 같은 z-index -1 로도 배경 위에 덮인다. */
.hero::after,
.gal-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  height: clamp(90px, 16vh, 200px);
  background: linear-gradient(to top,
      rgb(var(--bg-rgb) / 1)    0%,
      rgb(var(--bg-rgb) / 0.88) 24%,
      rgb(var(--bg-rgb) / 0.55) 55%,
      rgb(var(--bg-rgb) / 0.2)  78%,
      rgb(var(--bg-rgb) / 0)    100%);
}
.gal-head::after { height: clamp(60px, 9vh, 120px); }

.hero__inner {
  width: 100%;
  max-width: 1060px;
  text-align: center;
  animation: rise 1.1s var(--ease) both;
}

/* --- 로고 --- */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vh, 18px);
}
.logo--row { flex-direction: row; gap: 14px; }
.logo__mark {
  width: calc(clamp(44px, min(5vw, 8.2vh), 78px) * var(--hero-scale));
  height: auto;
  aspect-ratio: 1;
}
.logo--row .logo__mark { width: clamp(34px, 3.4vw, 46px); }
.logo__type {
  font-size: calc(clamp(16px, min(2.1vw, 3.6vh), 30px) * var(--hero-scale));
  font-weight: 500;
  letter-spacing: 0.085em;
  padding-left: 0.085em;
  color: var(--olive-deep);
  white-space: nowrap;
}
.logo--row .logo__type { font-size: clamp(15px, 1.6vw, 21px); }

/* --- eyebrow --- */
.hero__eyebrow {
  margin-top: clamp(18px, 3.4vh, 38px);
  font-size: calc(clamp(9.5px, min(1.02vw, 1.7vh), 14px) * var(--hero-scale));
  font-weight: 500;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  color: rgba(76, 90, 38, 0.68);
}

/* --- 타이틀 --- */
.hero__title {
  margin-top: clamp(10px, 1.8vh, 22px);
  font-weight: 800;
  font-size: calc(clamp(30px, min(6.1vw, 10.1vh), 88px) * var(--hero-scale));
  line-height: 1.2;
  letter-spacing: -0.038em;
  word-break: keep-all;
}
.hero__title .l1,
.hero__title .l2 { display: block; }
.hero__title .l1 { color: #333F29; }
.hero__title .l2 { color: var(--olive-soft); }

/* --- CTA --- */
.hero__cta {
  margin-top: clamp(22px, 3.8vh, 42px);
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 16px);
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: calc(clamp(138px, 14.5vw, 196px) * var(--hero-scale));
  padding: clamp(11px, 1.75vh, 18px) clamp(18px, 1.8vw, 28px);
  border-radius: 999px;
  font-size: calc(clamp(13px, min(1.15vw, 1.95vh), 17px) * var(--hero-scale));
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
              color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
.btn__arrow { font-weight: 500; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--olive);
  color: #F7F4EC;
  box-shadow: 0 10px 26px rgba(60, 72, 30, 0.22);
}
.btn--primary:hover { background: var(--olive-deep); box-shadow: 0 14px 32px rgba(60, 72, 30, 0.28); }

.btn--ghost {
  color: var(--olive-deep);
  border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(2px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.78); border-color: var(--olive-soft); }

/* --- 가격 카드 --- */
.hero__price {
  margin-top: clamp(18px, 3.4vh, 42px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 20px);
}
.price {
  /* 두 카드가 항상 같은 폭이 되도록 flex-basis 0 + 상한만 지정 */
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(clamp(160px, 19vw, 268px) * var(--hero-scale));
  padding: clamp(13px, 1.9vh, 22px) clamp(12px, 1.4vw, 22px);
  border-radius: clamp(15px, 1.5vw, 24px);
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(74, 66, 44, 0.10),
              inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px) saturate(112%);
  -webkit-backdrop-filter: blur(10px) saturate(112%);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              background-color 0.45s var(--ease);
}
.price:hover {
  transform: translateY(-3px);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: 0 18px 40px rgba(74, 66, 44, 0.14),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.price__label {
  font-size: calc(clamp(11.5px, min(1.05vw, 1.75vh), 15px) * var(--hero-scale));
  font-weight: 600;
  color: rgba(46, 58, 23, 0.8);
  letter-spacing: -0.01em;
}
.price__value {
  margin-top: 5px;
  font-size: calc(clamp(21px, min(2.6vw, 4.4vh), 38px) * var(--hero-scale));
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--olive-deep);
  white-space: nowrap;
}
.price__value span { font-size: 0.6em; font-weight: 600; margin-left: 1px; }
.price__meta {
  margin-top: 5px;
  font-size: calc(clamp(10.5px, min(0.92vw, 1.5vh), 13px) * var(--hero-scale));
  color: var(--muted);
}


/* ============================================================
   섹션 공통
   ============================================================ */

.sec__title {
  text-align: center;
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--olive-deep);
}
.sec__desc {
  margin-top: 10px;
  text-align: center;
  font-size: clamp(13px, 1.4vw, 20px);
  color: var(--muted);
  letter-spacing: -0.015em;
  word-break: keep-all;
}
.sec__more {
  margin: clamp(18px, 2vw, 26px) auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 600;
  color: var(--olive);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.sec__more span { transition: transform 0.3s var(--ease); }
.sec__more:hover { background: rgba(255, 255, 255, 0.7); border-color: var(--olive-soft); }
.sec__more:hover span { transform: translateX(3px); }

.reels { padding: clamp(56px, 7vw, 96px) 0 0; }
.reels:first-child { padding-top: clamp(70px, 9vw, 128px); }
.reels .wrap { display: flex; flex-direction: column; align-items: center; }
.reels .grid { width: 100%; }


/* ============================================================
   영상 카드
   ============================================================ */

.grid {
  --gap: clamp(9px, 1.4vw, 20px);
  margin-top: clamp(22px, 2.6vw, 36px);
  display: grid;
  gap: var(--gap);
}
.grid--vertical { grid-template-columns: repeat(5, 1fr); }
.grid--wide     { grid-template-columns: repeat(3, 1fr); }

.grid--few { display: flex; justify-content: center; flex-wrap: wrap; }
.grid--vertical.grid--few > .card {
  width: clamp(200px, calc((100% - 2 * var(--gap)) / 3), 330px);
}
.grid--wide.grid--few > .card {
  width: clamp(280px, calc((100% - var(--gap)) / 2), 620px);
}

.card { position: relative; cursor: pointer; outline: none; }

.card__media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: clamp(10px, 1.5vw, 20px);
  overflow: hidden;
  background: linear-gradient(160deg, #EBE4D6, #D6CEBB);
  box-shadow: 0 12px 34px rgba(62, 72, 40, 0.10);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card--wide .card__media { aspect-ratio: 16 / 9; }
.card:hover .card__media,
.card:focus-visible .card__media {
  transform: translateY(-6px);
  box-shadow: 0 20px 46px rgba(62, 72, 40, 0.18);
}
.card:focus-visible .card__media { outline: 2px solid var(--olive-soft); outline-offset: 3px; }

.card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #E5DECF;
}

.card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(34px, 3.4vw, 50px);
  height: clamp(34px, 3.4vw, 50px);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  opacity: 0.9;
  transform: scale(1);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.card__play::after {
  content: "";
  border-style: solid;
  border-width: 6px 0 6px 11px;
  border-color: transparent transparent transparent var(--olive);
  margin-left: 3px;
}
.card:hover .card__play { opacity: 0; transform: scale(0.8); }

.card__dur {
  position: absolute;
  right: clamp(8px, 0.8vw, 12px);
  bottom: clamp(8px, 0.8vw, 12px);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(32, 40, 18, 0.42);
  backdrop-filter: blur(4px);
  color: #F6F2EA;
  font-size: clamp(9px, 0.8vw, 11px);
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.card__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px clamp(10px, 1vw, 16px) clamp(10px, 1vw, 15px);
  background: linear-gradient(to top, rgba(28, 36, 16, 0.72), transparent);
  color: #F7F4EC;
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: keep-all;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.card:hover .card__overlay,
.card:focus-visible .card__overlay { opacity: 1; transform: none; }

.card__cap { padding: 12px 2px 0; }
.card__title {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--olive-deep);
  word-break: keep-all;
  line-height: 1.45;
}
.card__tags {
  margin-top: 5px;
  font-size: clamp(11px, 0.9vw, 12.5px);
  font-weight: 500;
  color: var(--olive-text);
  line-height: 1.6;
  word-break: keep-all;
}


/* ============================================================
   안내 사항
   ============================================================ */

.notice { padding: clamp(72px, 9vw, 132px) 0 0; }
.notice__title {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--olive-deep);
}
.notice__grid {
  margin-top: clamp(18px, 2vw, 26px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(8px, 1vw, 14px);
}
.notice__item {
  padding: clamp(18px, 2vw, 28px) clamp(8px, 1vw, 14px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.notice__item:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-3px); }

.notice__icon {
  display: block;
  width: clamp(34px, 3.4vw, 46px);
  margin: 0 auto clamp(12px, 1.4vw, 18px);
}
.notice__icon svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--olive-deep);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notice__icon svg text {
  fill: var(--olive-deep);
  stroke: none;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.notice__label {
  font-size: clamp(12px, 1.15vw, 16px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--olive-deep);
  word-break: keep-all;
}
.notice__sub {
  margin-top: 5px;
  font-size: clamp(10px, 0.95vw, 13px);
  color: var(--muted);
  letter-spacing: -0.02em;
  word-break: keep-all;
  line-height: 1.55;
}
.notice__item--split .notice__sub { display: flex; flex-direction: column; gap: 1px; }
.notice__item--split .notice__sub b { color: var(--olive-text); font-weight: 700; }

.notice__foot {
  margin-top: clamp(10px, 1.2vw, 16px);
  padding: clamp(14px, 1.6vw, 20px) clamp(16px, 2vw, 24px);
  border-radius: 14px;
  background: rgba(76, 90, 38, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(11.5px, 1.05vw, 14px);
  color: var(--muted);
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.notice__foot-icon { flex: none; width: 17px; }
.notice__foot-icon svg {
  width: 100%; height: auto; fill: none;
  stroke: var(--olive-soft); stroke-width: 1.8; stroke-linecap: round;
}


/* ============================================================
   포스터 밴드
   ============================================================ */

.band {
  padding: clamp(50px, 6vw, 84px) 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.band__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.band:hover .band__track { animation-play-state: paused; }
.band__tile {
  width: clamp(96px, 10vw, 148px);
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  flex: none;
  background: #E5DECF center / cover no-repeat;
  box-shadow: 0 10px 26px rgba(62, 72, 40, 0.09);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 7px)); }
}


/* ============================================================
   FAQ
   ============================================================ */

.faq { padding: clamp(60px, 8vw, 120px) 0 0; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__q {
  width: 100%;
  padding: clamp(22px, 2.6vw, 30px) 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--olive-deep);
  transition: color 0.3s var(--ease);
}
.faq__q:hover { color: var(--olive-text); }

.faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--olive);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.faq__icon::before { width: 16px; height: 1.6px; }
.faq__icon::after  { width: 1.6px; height: 16px; }
.faq__item.is-open .faq__icon::after { transform: rotate(90deg); opacity: 0; }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > p {
  overflow: hidden;
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.75;
  color: var(--muted);
  letter-spacing: -0.01em;
  word-break: keep-all;
  padding-inline: 4px;
}
.faq__item.is-open .faq__a > p { padding-bottom: clamp(24px, 2.6vw, 30px); }


/* ============================================================
   주요 고객사
   ============================================================ */

.clients { padding: clamp(70px, 9vw, 130px) 0 0; }

.clients__marquee {
  margin-top: clamp(28px, 3.6vw, 48px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex;
  width: max-content;
  animation: clients-slide 32s linear infinite;
}
.clients__marquee:hover .clients__track { animation-play-state: paused; }
.clients__set { display: flex; align-items: center; }

.clients__item {
  flex: none;
  display: grid;
  place-items: center;
  padding-inline: clamp(20px, 3vw, 52px);
  height: clamp(46px, 5vw, 68px);
  opacity: 0.55;
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease);
}
.clients__marquee:hover .clients__item { opacity: 0.35; }
.clients__marquee .clients__item:hover { opacity: 1; }

.clients__logo-img {
  height: clamp(24px, 2.6vw, 38px);
  width: auto;
  max-width: clamp(120px, 15vw, 210px);
  object-fit: contain;
  filter: grayscale(1);
}
.clients__marquee .clients__item:hover .clients__logo-img { filter: none; }

.clients__logo-text {
  font-size: clamp(16px, 1.9vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--olive-deep);
  white-space: nowrap;
}

@keyframes clients-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: clamp(70px, 9vw, 120px) var(--pad) clamp(210px, 20vw, 280px);
  text-align: center;
  font-size: clamp(12px, 1.05vw, 15px);
  color: var(--muted);
  line-height: 1.85;
}
.site-footer__biz { word-break: keep-all; }
.site-footer__biz b { font-weight: 700; color: var(--olive-deep); }
.site-footer__biz span { padding-inline: 6px; opacity: 0.5; }
.site-footer__biz a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(111, 103, 90, 0.4);
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}
.site-footer__biz a:hover { color: var(--olive-deep); text-decoration-color: currentColor; }
.site-footer__copy { margin-top: 14px; opacity: 0.75; }


/* ============================================================
   하단 고정 문의 바
   ============================================================ */

.inquiry {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: clamp(12px, 2vw, 28px) var(--pad);
  pointer-events: none;
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.inquiry.is-visible { opacity: 1; transform: none; }
.inquiry__card {
  pointer-events: auto;
  width: 100%;
  max-width: 480px;
  padding: 18px 20px 20px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px rgba(60, 70, 40, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.inquiry__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--olive-deep);
  margin-bottom: 12px;
}
.inquiry__row { display: flex; gap: 8px; }
.inquiry__input {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.inquiry__input::placeholder { color: #B4AE9F; }
.inquiry__input:focus { border-color: var(--olive-soft); box-shadow: 0 0 0 3px rgba(104, 116, 42, 0.18); }
.inquiry__submit {
  flex: none;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--olive);
  color: #F7F4EC;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.3s var(--ease);
}
.inquiry__submit:hover { background: var(--olive-deep); }
.inquiry__done {
  margin-top: 10px;
  font-size: 13px;
  color: var(--olive-text);
  font-weight: 600;
}


/* ============================================================
   라이트박스
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  background: rgba(32, 38, 22, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.26s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
}
.lightbox__video {
  max-width: min(94vw, 460px);
  max-height: 76vh;
  width: auto;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: scale(0.97);
  transition: transform 0.3s var(--ease);
}
.lightbox--wide .lightbox__video { max-width: min(94vw, 1080px); }
.lightbox.is-open .lightbox__video { transform: none; }

.lightbox__meta { text-align: center; max-width: min(94vw, 620px); }
.lightbox__title {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #F4F1E7;
  word-break: keep-all;
}
.lightbox__tags {
  margin-top: 6px;
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 500;
  color: rgba(216, 224, 175, 0.85);
  word-break: keep-all;
  line-height: 1.6;
}

.lightbox__close {
  position: absolute;
  top: clamp(10px, 2vw, 24px);
  right: clamp(10px, 2vw, 24px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #F4F1E7;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background-color 0.3s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }


/* ============================================================
   갤러리 페이지
   ============================================================ */

.gal-head {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5vw, 64px) 0 clamp(28px, 3.4vw, 44px);
  text-align: center;
  isolation: isolate;
}
.gal-head .logo { margin: 0 auto; }
.gal-head__eyebrow {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  color: rgba(76, 90, 38, 0.6);
}
.gal-head__title {
  margin-top: 10px;
  font-size: clamp(30px, 4.6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #333F29;
}
.gal-head__desc {
  margin-top: 12px;
  font-size: clamp(13px, 1.3vw, 17px);
  color: var(--muted);
}
.gal-head__desc strong { color: var(--olive); font-weight: 700; }

.gal-tabs {
  margin-top: clamp(22px, 2.6vw, 34px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.gal-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  font-size: clamp(12.5px, 1.1vw, 15px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--olive);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.gal-tab:hover { background: rgba(255, 255, 255, 0.85); }
.gal-tab.is-active {
  background: var(--olive);
  border-color: var(--olive);
  color: #F7F4EC;
}

.gal-main { padding-top: clamp(28px, 3.4vw, 48px); }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(14px, 1.8vw, 26px) clamp(10px, 1.4vw, 20px);
  align-items: start;
}
.gal-grid .card--wide { grid-column: span 2; }
/* 가로형이 시작되는 지점에서 줄을 바꿔, 세로형 카드 옆에 홀로 끼지 않게 한다 */
.gal-grid .card--rowstart { grid-column: 1 / span 2; }
.gal-grid.gal-grid--wide-only { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.gal-grid.gal-grid--wide-only .card--wide,
.gal-grid.gal-grid--wide-only .card--rowstart { grid-column: auto; }

.gal-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.gal-cta { margin-top: clamp(40px, 5vw, 70px); text-align: center; }


/* ============================================================
   배경 비교 스위처 (검토용 — ?compare=1)
   ============================================================ */

.bg-switch {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px rgba(60, 70, 40, 0.16);
  backdrop-filter: blur(10px);
  font-size: 12px;
}
.bg-switch__label {
  padding: 0 6px 0 4px;
  font-weight: 700;
  color: var(--olive-deep);
  white-space: nowrap;
}
.bg-switch a {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--olive);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.bg-switch a:hover { background: rgba(81, 94, 36, 0.1); }
.bg-switch a.is-on { background: var(--olive); color: #F7F4EC; }

@media (max-width: 720px) {
  .bg-switch { top: 8px; right: 8px; left: 8px; flex-wrap: wrap; justify-content: center; }
}


/* ============================================================
   스크롤 리빌
   ============================================================ */

.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}


/* ============================================================
   반응형
   ============================================================ */

@media (max-width: 1024px) {
  .notice__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  :root { --pad: 18px; }

  .hero { padding-top: 56px; }
  .hero__cta { gap: 8px; }
  .btn { min-width: calc(130px * var(--hero-scale)); }
  .hero__price { gap: 8px; }
  .price { flex: 1 1 0; min-width: 0; padding-inline: 8px; }
}

/* 380px 이하에서만 "1,200,000원"이 카드 폭에 걸려서 살짝 줄인다 */
@media (max-width: 380px) {
  .price { padding-inline: 5px; }
  .price__value { font-size: calc(20px * var(--hero-scale)); }

  .notice__grid { grid-template-columns: repeat(2, 1fr); }

  .clients__item { padding-inline: 18px; height: 44px; }

  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-grid .card--wide { grid-column: span 2; }
  .gal-grid.gal-grid--wide-only { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .band__track, .clients__track { animation: none; }
}


/* ============================================================
   하단 고정 문의 폼 — 광고 유입 리드 캡처 (차밍스 모바일 골조 이식)
   폼이 내용을 가리지 않도록 본문 하단에 폼 높이만큼 여백을 준다.
   ============================================================ */

:root { --barh: 152px; }
body { padding-bottom: var(--barh); }


/* 담당자 배정 연출 모달 */
.lead-modal {
  position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 22px;
  background: rgba(31, 26, 20, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lead-modal.show { display: grid; }
.lm-card {
  width: min(420px, 92vw); background: var(--card); color: var(--ink); border-radius: 24px;
  padding: 40px 32px; text-align: center; box-shadow: 0 30px 90px rgba(47, 58, 30, 0.35);
  animation: lmPop 0.42s var(--ease);
}
@keyframes lmPop { from { opacity: 0; transform: translateY(18px) scale(0.95); } to { opacity: 1; transform: none; } }
.lm-ptitle { font-size: 15px; font-weight: 600; color: var(--muted); }
.lm-pct { font-size: 23px; font-weight: 800; margin: 24px 0 14px; font-variant-numeric: tabular-nums; }
.lm-bar { height: 9px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.lm-bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--olive), var(--olive-deep)); }
.lm-avatar { width: 98px; height: 98px; border-radius: 50%; margin: 0 auto 18px; overflow: hidden; background: var(--bg-alt); display: grid; place-items: center; }
.lm-avatar img { width: 72%; height: 72%; object-fit: contain; }
.lm-name { font-size: 18px; font-weight: 800; }
.lm-msg { font-size: 14.5px; line-height: 1.75; color: var(--muted); margin: 14px 0 26px; }
.lm-confirm {
  border: none; border-radius: 999px; padding: 15px 0; width: 100%; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 15px; color: #fff; background: var(--olive);
  transition: filter 0.22s;
}
.lm-confirm:hover { filter: brightness(1.06); }

/* 모바일 안내 토스트 — 폼 바로 위 */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--barh) + 14px);
  transform: translateX(-50%) translateY(12px); z-index: 70;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 9px;
  opacity: 0; pointer-events: none; transition: 0.5s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   모바일 — 차밍스 라이브 골조: 릴은 가로 스크롤 레일, 폼은 전폭 하단 바
   ============================================================ */
@media (max-width: 767px) {
  :root { --barh: 188px; }
  body { padding-bottom: calc(var(--barh) + env(safe-area-inset-bottom)); }

  /* 릴 그리드 → 스냅 레일. 카드를 숨기는 대신 옆으로 넘겨 전부 보여준다 */
  .grid--vertical, .grid--wide {
    display: flex; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; gap: 9px;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    overscroll-behavior-inline: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 12px;
  }
  .grid--vertical::-webkit-scrollbar, .grid--wide::-webkit-scrollbar { display: none; }
  .grid--vertical > .card, .grid--vertical.grid--few > .card {
    flex: 0 0 clamp(142px, 40vw, 156px); width: auto; scroll-snap-align: start;
  }
  .grid--wide > .card, .grid--wide.grid--few > .card {
    flex: 0 0 min(78vw, 320px); width: auto; scroll-snap-align: start;
  }
  .card__media { border-radius: 10px; }

  .sec__title { font-size: 22px; line-height: 1.35; }
  .sec__desc { font-size: 14px; line-height: 1.55; }

  /* 안내·고객사 — 왼쪽 정렬 + 악센트 대시 */
  .notice__title, .clients .sec__title { text-align: left; }
  .notice__title::before, .clients .sec__title::before {
    content: ""; display: block; width: 28px; height: 2px;
    background: var(--olive); margin-bottom: 14px;
  }
  .clients .sec__desc { text-align: left; }
  .notice__grid { grid-template-columns: repeat(2, 1fr); }

  /* 문의 카드: 올리브 보더로 시선을 잡는다 (차밍스 .sf-in 골조) */
  .inquiry__card {
    border: 2px solid var(--olive); border-radius: 12px;
    box-shadow: 0 -6px 30px rgba(47, 58, 30, 0.14);
  }
}

/* 문의 바 제목 줄 — SLA 문구 (차밍스 골조) */
.inquiry__title { display: flex; align-items: center; gap: 6px; }
.inquiry__sla { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--olive-text); }

/* 문의 바 — 카카오톡 바로 문의 (차밍스 골조) */
.inquiry__or {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 10px;
  font-size: 12px; font-weight: 600; color: #B4AE9F;
}
.inquiry__or::before,
.inquiry__or::after {
  content: ""; flex: 1 1 0; height: 1px; background: var(--line);
}
.inquiry__kakao {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 14px;
  border-radius: 10px;
  background: #FEE500;
  color: #191919;
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.3s var(--ease);
}
.inquiry__kakao:hover { background: #F6D900; }
.inquiry__kakao-ic { width: 18px; height: 18px; fill: currentColor; flex: none; }
