/* ============================================================
   GROWING HOUSE — Design System
   공간 브랜딩 & 인테리어
   Palette: 606C38 / 283618 / FEFAE0 / DDA15E / BC6C25
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS — 색·타이포·간격을 여기서만 관리합니다.
   ------------------------------------------------------------ */
:root {
  /* 원본 팔레트 */
  --forest: #283618;   /* 딥 그린 — 텍스트, 푸터 */
  --olive: #606c38;    /* 포인트 그린 — 버튼, 강조 */
  --cream: #fefae0;    /* 원본 크림 */
  --sand: #dda15e;     /* 웜 액센트 — 라인, 아이콘 */
  --clay: #bc6c25;     /* 딥 웜 — 보조 강조 */

  /* 베이지 계열 (메인 베이스) — 원본 크림을 톤다운한 확장 */
  --beige-50:  #fdfaef;
  --beige-100: #f8f3e2;
  --beige-200: #f0e9d5;
  --beige-300: #e4dbc3;
  --beige-400: #d3c8ab;

  /* 텍스트 */
  --ink: #2b2a24;
  --ink-soft: #5c584c;
  --ink-muted: #8b8574;
  --on-dark: #f6f2e4;
  --on-dark-soft: rgba(246, 242, 228, 0.72);

  /* 라인 */
  --line: rgba(40, 54, 24, 0.14);
  --line-strong: rgba(40, 54, 24, 0.28);
  --line-on-dark: rgba(246, 242, 228, 0.28);

  /* 타이포 */
  --font-serif: "Cormorant Garamond", "Noto Serif KR", "Nanum Myeongjo",
                "Apple SD Gothic Neo", Georgia, serif;
  --font-sans: "Pretendard", "Pretendard Variable", -apple-system,
               BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
               "Malgun Gothic", sans-serif;

  /* 레이아웃 */
  --container: 1240px;
  --container-narrow: 880px;
  --header-h: 82px;
  --gutter: 40px;

  /* 모션 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.55s;
}

/* ------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--beige-100);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
p { margin: 0; }

::selection { background: var(--olive); color: var(--cream); }

/* ------------------------------------------------------------
   3. LAYOUT
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: 130px 0; }
.section--tight { padding: 90px 0; }
.section--cream { background: var(--beige-50); }
.section--beige { background: var(--beige-200); }
.section--dark { background: var(--forest); color: var(--on-dark); }

/* 섹션 헤더 (아이브로우 + 제목 + 리드문) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--sand);
}
.section--dark .eyebrow { color: var(--sand); }

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 20px;
}
.section-lead {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}
.section--dark .section-lead { color: var(--on-dark-soft); }

.section-head { margin-bottom: 62px; }
.section-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-head--center .section-lead { text-align: center; }

/* ------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover { background: var(--olive); border-color: var(--olive); color: var(--cream); }

.btn--solid { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.btn--solid:hover { background: var(--forest); border-color: var(--forest); }

.btn--ghost-light { border-color: var(--line-on-dark); color: var(--on-dark); }
.btn--ghost-light:hover { background: var(--cream); border-color: var(--cream); color: var(--forest); }

.btn--lg { padding: 17px 42px; font-size: 15px; }

/* 텍스트 링크 (화살표 동반) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--olive);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.link-arrow:hover { border-color: var(--olive); gap: 16px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------
   5. HEADER
   ------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* 히어로 위에 얹힌 상태: 투명 + 흰 글씨 */
.header--over { color: var(--on-dark); }
/* 스크롤 후 / 서브페이지: 베이지 배경 */
.header.is-solid {
  background: rgba(251, 247, 234, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.brand {
  grid-column: 2;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-left: 0.26em; /* letter-spacing 시각 보정 */
}

/* 햄버거 */
.nav-toggle {
  grid-column: 1;
  justify-self: start;
  width: 34px;
  height: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 26px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease), width 0.4s var(--ease);
}
.nav-toggle span:nth-child(2) { width: 18px; }
.nav-toggle:hover span:nth-child(2) { width: 26px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* 우측 유틸 */
.header__util {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.header__util a { transition: color var(--dur) var(--ease); }
.header__util a:hover { color: var(--sand); }
/* 견적문의 — 테두리 없는 텍스트 링크.
   한글은 영문 라벨만큼 자간을 벌릴 필요가 없어 좁게 두고,
   nowrap 으로 좁은 화면에서도 두 줄로 갈라지지 않게 고정합니다. */
.header__util .util-cta {
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   6. 풀스크린 메뉴 오버레이
   ------------------------------------------------------------ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--forest);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
body.menu-open .menu { opacity: 1; visibility: visible; }

.menu__grid {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.menu__list li {
  overflow: hidden;
  border-bottom: 1px solid var(--line-on-dark);
}
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 52px);
  transform: translateY(105%);
  transition: transform 0.7s var(--ease), color 0.4s var(--ease);
}
body.menu-open .menu__list a { transform: translateY(0); }
.menu__list li:nth-child(1) a { transition-delay: 0.08s; }
.menu__list li:nth-child(2) a { transition-delay: 0.14s; }
.menu__list li:nth-child(3) a { transition-delay: 0.20s; }
.menu__list li:nth-child(4) a { transition-delay: 0.26s; }
.menu__list li:nth-child(5) a { transition-delay: 0.32s; }
.menu__list a:hover { color: var(--sand); }
.menu__num {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--sand);
}
.menu__aside {
  font-size: 14px;
  line-height: 2;
  color: var(--on-dark-soft);
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.4s;
}
body.menu-open .menu__aside { opacity: 1; }
.menu__aside strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--on-dark);
  margin-bottom: 6px;
  font-weight: 500;
}
.menu__aside + .menu__aside { margin-top: 34px; }

/* ------------------------------------------------------------
   7. 사진 레이어 유틸
   ------------------------------------------------------------
   .media 요소에 인라인으로 --img / --img-alt 를 지정합니다.
   레이어 순서: 오버레이 → 내 사진 → 임시 샘플 사진 → 단색
   내 사진이 없으면 브라우저가 해당 레이어만 건너뜁니다.
   ------------------------------------------------------------ */
.media {
  --overlay: linear-gradient(rgba(40, 54, 24, 0.42), rgba(40, 54, 24, 0.42));
  --img: none;
  --img-alt: none;
  background-color: var(--beige-300);
  background-image: var(--overlay), var(--img), var(--img-alt);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* 오버레이 프리셋 */
.media--warm  { --overlay: linear-gradient(rgba(120, 78, 38, 0.30), rgba(60, 45, 25, 0.52)); }
/* 따뜻한 톤은 유지하면서 더 어둡게 — 배경이 복잡한 사진 위에 흰 글씨를 얹을 때 */
.media--warm-deep { --overlay: linear-gradient(rgba(88, 55, 25, 0.60), rgba(28, 21, 11, 0.83)); }
.media--deep  { --overlay: linear-gradient(rgba(40, 54, 24, 0.58), rgba(40, 54, 24, 0.68)); }
.media--light { --overlay: linear-gradient(rgba(254, 250, 224, 0.10), rgba(40, 54, 24, 0.22)); }
.media--plain { --overlay: linear-gradient(rgba(40, 54, 24, 0), rgba(40, 54, 24, 0)); }

/* ------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--on-dark);
  padding: var(--header-h) var(--gutter) 120px;
}
.hero__inner { max-width: 820px; }
.hero__label {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(246, 242, 228, 0.8);
  margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.16;
  text-shadow: 0 2px 30px rgba(20, 26, 12, 0.35);
  margin-bottom: 26px;
}
.hero__title em { font-style: italic; color: var(--sand); }

/* 긴 한글 문장형 헤드라인 — 어떤 화면에서도 2줄을 유지하는 크기
   - 한글은 글자당 폭이 거의 1em이라 고정 px로는 작은 기기에서 줄이 밀림
   - 화면 폭(vw)에 비례시키고, 큰 화면에서만 상한(46px)을 둠
   - word-break:keep-all — 한글이 단어 중간에서 잘리지 않게 (줄바꿈은 띄어쓰기에서만) */
.hero__title--statement {
  font-size: min(30px, 3.5vw);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(246, 242, 228, 0.92);
  word-break: keep-all;
  margin-bottom: 46px;
}
.hero__text {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(246, 242, 228, 0.88);
  margin-bottom: 44px;
}

/* 브랜드명 — 히어로의 주역. 라벨 바로 아래, 한글 문장 위에 놓임 */
.hero__signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 1.1;
  color: var(--sand);
  letter-spacing: 0.005em;
  margin: 0 0 18px;
  text-shadow: 0 3px 30px rgba(20, 26, 12, 0.4);
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(246, 242, 228, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 52px;
  background: linear-gradient(rgba(246, 242, 228, 0.7), transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 서브페이지 배너 */
.page-hero {
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  padding: calc(var(--header-h) + 60px) 0 64px;
}
.page-hero__title {
  font-size: clamp(34px, 5.2vw, 62px);
  margin-bottom: 16px;
}
.page-hero__text { color: rgba(246, 242, 228, 0.85); max-width: 560px; }
.breadcrumb {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 20px;
}

/* ------------------------------------------------------------
   9. 2컬럼 카드 (참고 레이아웃)
   ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 52px;
}
.card__media {
  aspect-ratio: 4 / 3;
  margin-bottom: 26px;
  transition: transform 0.9s var(--ease);
}
.card:hover .card__media { transform: translateY(-6px); }
.card__rule { height: 1px; background: var(--line-strong); margin-bottom: 22px; }
.card__title { font-size: 26px; margin-bottom: 12px; }
.card__text {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 24px;
  min-height: 56px;
}

/* ------------------------------------------------------------
   10. 아이콘 행 (Benefit 스타일)
   ------------------------------------------------------------ */
.band {
  color: var(--on-dark);
  text-align: center;
  padding: 130px 0;
}
.band__title { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 18px; }
.band__text { color: rgba(246, 242, 228, 0.85); max-width: 560px; margin: 0 auto 62px; }

.icon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 780px;
  margin: 0 auto;
}
.icon-item { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.icon-item svg {
  width: 34px;
  height: 34px;
  stroke: var(--sand);
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-item span { font-size: 13px; letter-spacing: 0.04em; color: rgba(246, 242, 228, 0.92); }

/* ------------------------------------------------------------
   11. 소개 / 스플릿 레이아웃
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split--wide-media { grid-template-columns: 1.15fr 1fr; }
.split__media { aspect-ratio: 4 / 5; }
.split__media--wide { aspect-ratio: 3 / 2; }
.split__body p + p { margin-top: 18px; }
.split__body p { color: var(--ink-soft); line-height: 1.95; }

.quote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.6;
  color: var(--forest);
  padding-left: 28px;
  border-left: 2px solid var(--sand);
}

/* 값(Value) 3분할 */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.value {
  background: var(--beige-50);
  padding: 46px 38px 52px;
  transition: background var(--dur) var(--ease);
}
.value:hover { background: #fff; }
.value__num {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--clay);
  margin-bottom: 20px;
}
.value__title { font-size: 22px; margin-bottom: 12px; }
.value__text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; }

/* 숫자 지표 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.4vw, 52px);
  color: var(--olive);
  line-height: 1;
  margin-bottom: 12px;
}
.section--dark .stat__num { color: var(--sand); }
.stat__label { font-size: 13px; letter-spacing: 0.06em; color: var(--ink-muted); }
.section--dark .stat__label { color: var(--on-dark-soft); }

/* ------------------------------------------------------------
   12. 레퍼런스 그리드
   ------------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.filter {
  padding: 9px 20px;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  transition: all var(--dur) var(--ease);
}
.filter:hover { border-color: var(--olive); color: var(--olive); }
.filter.is-active { background: var(--olive); border-color: var(--olive); color: var(--cream); }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }
.work { display: block; }
.work[hidden] { display: none; }
.work__media {
  aspect-ratio: 3 / 4;
  margin-bottom: 20px;
  overflow: hidden;
  transition: transform 0.9s var(--ease);
}
.work:hover .work__media { transform: scale(1.015); }
.work__cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 9px;
}
.work__title { font-size: 21px; margin-bottom: 6px; }
.work__meta { font-size: 13.5px; color: var(--ink-muted); }

/* 홈용 가로 스크롤 없는 3열 프리뷰 */
.works--preview { grid-template-columns: repeat(3, 1fr); }

/* ------------------------------------------------------------
   13. 프로세스 (타임라인)
   ------------------------------------------------------------ */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 120px 1fr 1.1fr;
  gap: 40px;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background var(--dur) var(--ease);
}
.step:hover { background: var(--beige-50); }
.step__num {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--beige-400);
  line-height: 1;
  transition: color var(--dur) var(--ease);
}
.step:hover .step__num { color: var(--sand); }
.step__title { font-size: 25px; margin-bottom: 8px; }
.step__dur {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--olive);
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid rgba(96, 108, 56, 0.35);
  border-radius: 100px;
}
.step__text { color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.step__list { margin-top: 16px; display: grid; gap: 8px; }
.step__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}
.step__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--sand);
}

/* ------------------------------------------------------------
   14. FAQ (아코디언)
   ------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.faq__q:hover { color: var(--olive); }
.faq__q::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.4s var(--ease);
}
.faq__item.is-open .faq__q::after { transform: rotate(-135deg) translateY(-3px); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease);
}
.faq__a p {
  padding: 0 0 26px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
  max-width: 760px;
}

/* ------------------------------------------------------------
   15. FORM
   ------------------------------------------------------------ */
.form-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 76px; align-items: start; }

.field { margin-bottom: 26px; }
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--forest);
}
.field__label .req { color: var(--clay); margin-left: 4px; }

.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--beige-50);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--olive);
  background: #fff;
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.8; }
.select { appearance: none; background-image: none; cursor: pointer; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* 칩 선택 (라디오) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 18px;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.chip:hover span { border-color: var(--olive); color: var(--olive); }
.chip input:checked + span {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
}

.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.agree input { margin-top: 5px; accent-color: var(--olive); width: 15px; height: 15px; }
.agree a { text-decoration: underline; text-underline-offset: 3px; }

.form-error {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  color: var(--clay);
}
.field.has-error .input,
.field.has-error .textarea { border-color: var(--clay); }
.field.has-error .form-error { display: block; }

.form-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.8;
}

/* 연락처 사이드 */
.contact-card {
  background: var(--forest);
  color: var(--on-dark);
  padding: 44px 38px;
}
.contact-card h3 { font-size: 22px; margin-bottom: 24px; }
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 5px;
}
.contact-card dd { margin: 0 0 22px; font-size: 15.5px; line-height: 1.7; color: var(--on-dark); }
.contact-card dd:last-child { margin-bottom: 0; }

.side-note {
  margin-top: 24px;
  padding: 32px 34px;
  background: var(--beige-200);
  border-left: 2px solid var(--sand);
}
.side-note h4 { font-size: 18px; margin-bottom: 12px; }
.side-note p, .side-note li { font-size: 14px; color: var(--ink-soft); line-height: 1.85; }
.side-note ol { counter-reset: n; display: grid; gap: 8px; }
.side-note ol li { counter-increment: n; padding-left: 24px; position: relative; }
.side-note ol li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-size: 11px;
  color: var(--clay);
  letter-spacing: 0.06em;
  top: 2px;
}

/* ------------------------------------------------------------
   16. CTA 밴드 & FOOTER
   ------------------------------------------------------------ */
.cta {
  text-align: center;
  padding: 110px 0;
  background: var(--beige-200);
}
.cta__title { font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 16px; }
.cta__text { color: var(--ink-soft); margin-bottom: 36px; }

.footer { background: var(--forest); color: var(--on-dark-soft); padding: 78px 0 34px; font-size: 14px; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer__brand {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 18px;
}
.footer__tag { line-height: 1.9; max-width: 320px; }
.footer h5 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 18px;
  font-weight: 600;
}
.footer li { margin-bottom: 10px; }
.footer a { transition: color var(--dur) var(--ease); }
.footer a:hover { color: var(--sand); }
.footer__bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(246, 242, 228, 0.5);
}

/* ------------------------------------------------------------
   17. 스크롤 등장 애니메이션
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
}

/* ------------------------------------------------------------
   18. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .section { padding: 96px 0; }
  .split, .form-layout { grid-template-columns: 1fr; gap: 44px; }
  .split__media { aspect-ratio: 3 / 2; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .menu__grid { grid-template-columns: 1fr; gap: 40px; }
  .step { grid-template-columns: 70px 1fr; }
  .step__text-col { grid-column: 2; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --header-h: 82px; }

  /* 모바일 헤더 — 화면 상단에 바짝 붙지 않도록 내용을 아래로 내림.
     세로 중앙정렬 대신 위 기준으로 두고 padding-top 으로 위치를 직접 지정합니다.
     (--header-h 도 함께 키워야 스크롤 시 나타나는 배경이 잘리지 않습니다) */
  .header { align-items: flex-start; padding-top: 30px; }
  body { font-size: 15.5px; }
  .section { padding: 74px 0; }
  .section-head { margin-bottom: 42px; }
  .header__util { gap: 14px; font-size: 11px; }
  .header__util .util-hide { display: none; }
  .brand { font-size: 16px; letter-spacing: 0.2em; }
  .cards { grid-template-columns: 1fr; gap: 48px; }
  .card__text { min-height: 0; }
  .works { grid-template-columns: 1fr; gap: 36px; }
  .icon-row { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero__title--statement { font-size: 4.1vw; line-height: 1.55; margin-bottom: 34px; }
  .hero__signature { margin: 0 0 14px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 34px 0; }
  .step__num { font-size: 28px; }
  .footer__top { grid-template-columns: 1fr; gap: 34px; }
  .contact-card, .side-note { padding: 32px 24px; }
  .band { padding: 78px 0; }
}

/* ============================================================
   19. 레퍼런스 상세 페이지
   ============================================================ */

/* 상세 배너 — 목록 배너보다 높고, 정보를 아래에 정렬 */
.detail-hero {
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  padding: calc(var(--header-h) + 80px) 0 70px;
}
.detail-hero__cat {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 18px;
}
.detail-hero__title {
  font-size: clamp(34px, 5.6vw, 66px);
  margin-bottom: 18px;
  max-width: 15em;
}
.detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: rgba(246, 242, 228, 0.85);
}
.detail-hero__meta span { display: inline-flex; align-items: center; gap: 22px; }
.detail-hero__meta span:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sand);
}

/* 개요 — 좌측 정보표 / 우측 설명 */
.overview { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }

.spec { border-top: 1px solid var(--line-strong); }
.spec__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.spec__key {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  padding-top: 3px;
}
.spec__val { color: var(--ink-soft); line-height: 1.7; }

.overview__body h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 22px; }
.overview__body p { color: var(--ink-soft); line-height: 1.95; }
.overview__body p + p { margin-top: 18px; }

/* 갤러리 — 큰 사진 1장 + 작은 사진 2장을 반복 */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery__item { aspect-ratio: 4 / 3; }
.gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery__item--tall { aspect-ratio: 3 / 4; }

/* 디자인 포인트 */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.point__num {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--clay);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.point__title { font-size: 21px; margin-bottom: 10px; }
.point__text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; }

/* 클라이언트 후기 */
.testimonial {
  background: var(--beige-200);
  padding: 62px 58px;
  border-left: 2px solid var(--sand);
}
.testimonial p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.65;
  color: var(--forest);
  margin-bottom: 22px;
}
.testimonial cite {
  font-style: normal;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* 이전 / 다음 프로젝트 */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.pager__link {
  padding: 42px 0;
  transition: background var(--dur) var(--ease);
}
.pager__link:hover { background: var(--beige-50); }
.pager__link--next { text-align: right; border-left: 1px solid var(--line); padding-left: 34px; }
.pager__link--prev { padding-right: 34px; }
.pager__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 10px;
}
.pager__title { font-family: var(--font-serif); font-size: clamp(19px, 2.2vw, 26px); }
.pager__all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 26px 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease);
}
.pager__all:hover { color: var(--olive); }

@media (max-width: 1024px) {
  .overview { grid-template-columns: 1fr; gap: 44px; }
  .points { grid-template-columns: 1fr; gap: 34px; }
  .testimonial { padding: 44px 34px; }
}
@media (max-width: 720px) {
  .detail-hero { min-height: 62vh; padding: calc(var(--header-h) + 56px) 0 48px; }
  .gallery { grid-template-columns: 1fr; gap: 16px; }
  .gallery__item, .gallery__item--wide, .gallery__item--tall { aspect-ratio: 4 / 3; }
  .pager { grid-template-columns: 1fr; }
  .pager__link { padding: 30px 0; }
  .pager__link--next { text-align: left; border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
  .pager__link--prev { padding-right: 0; }
  .spec__row { grid-template-columns: 84px 1fr; gap: 14px; }
}

/* ============================================================
   20. 약관 · 방침 등 긴 문서 페이지
   ============================================================ */
.legal { max-width: 820px; }
.legal__intro {
  padding: 26px 30px;
  background: var(--beige-200);
  border-left: 2px solid var(--sand);
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 56px;
}
.legal__date {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-top: 12px;
}

.legal__article { padding-top: 44px; border-top: 1px solid var(--line); margin-top: 44px; }
.legal__article:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal__article h2 {
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--forest);
}
.legal__article h3 {
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  margin: 26px 0 10px;
  color: var(--forest);
}
.legal__article p,
.legal__article li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.legal__article p + p { margin-top: 14px; }

.legal__list { margin-top: 12px; display: grid; gap: 9px; }
.legal__list li { position: relative; padding-left: 18px; }
.legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 1px;
  background: var(--sand);
}
.legal__list--num { counter-reset: legal; }
.legal__list--num li { padding-left: 26px; counter-increment: legal; }
.legal__list--num li::before {
  content: counter(legal) ".";
  width: auto;
  height: auto;
  background: none;
  top: 0;
  color: var(--olive);
  font-size: 13px;
}

/* 표 — 좁은 화면에서 가로 스크롤 */
.legal__table-wrap { overflow-x: auto; margin-top: 16px; }
.legal__table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}
.legal__table th,
.legal__table td {
  padding: 13px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.legal__table th {
  background: var(--beige-200);
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
}
.legal__table td { color: var(--ink-soft); }

.legal__note {
  margin-top: 18px;
  padding: 18px 22px;
  background: var(--beige-50);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.85;
}

@media (max-width: 720px) {
  .legal__intro { padding: 22px 20px; margin-bottom: 40px; }
  .legal__article { padding-top: 34px; margin-top: 34px; }
  .legal__article h2 { font-size: 19px; }
}

/* ============================================================
   21. 404
   ============================================================ */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gutter);
  background: var(--beige-100);
}
.notfound__code {
  font-family: var(--font-serif);
  font-size: clamp(70px, 14vw, 150px);
  line-height: 1;
  color: var(--beige-400);
  margin-bottom: 18px;
}
.notfound__title { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 14px; }
.notfound__text { color: var(--ink-soft); margin-bottom: 36px; max-width: 460px; }
