/* ==========================================================================
   BERN — design system
   1. tokens  2. base  3. layout  4. type  5. controls  6. header/footer
   7. product card  8. home  9. catalog  10. detail  11. curation/project
   12. search  13. motion
   ========================================================================== */

/* 1. tokens ---------------------------------------------------------------- */
/* 영문: Copperplate Gothic Bold (Monotype). 설치된 PC 에서는 local() 로 쓰이고,
   공개 배포 전에는 웹폰트 라이선스를 받아 static/fonts/ 에 woff2 를 두고 아래 url() 주석을 해제한다. */
@font-face {
  font-family: "BERN Display";
  font-weight: 400 700;
  font-display: swap;
  src: local("Copperplate Gothic Bold"), local("CopperplateGothic-Bold"), local("Copperplate-Bold"), local("Copperplate");
  /* src: url("../fonts/copperplate-gothic-bold.woff2") format("woff2"), local("Copperplate Gothic Bold"); */
}

:root {
  --bg: #F3F2EE;
  --bg-2: #ECEAE4;
  --surface: #FFFFFF;
  --tile: #E6E3DC;
  --ink: #191919;
  --ink-2: #686868;
  --ink-3: #9A9893;
  --line: #DDDBD5;
  --line-strong: #C9C6BF;
  --dark: #161817;
  --frame: #171918;          /* header · footer: 콘텐츠를 감싸는 진한 프레임 */
  --frame-line: rgba(237, 235, 230, .12);
  --dark-2: #222523;
  --on-dark: #EDEBE6;
  --on-dark-2: #9A9C97;
  --point: #68806A;

  --font-ko: "SUIT Variable", SUIT, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-en: "BERN Display", "Copperplate Gothic Bold", CopperplateGothic-Bold, Copperplate, var(--font-ko);

  --fs-display: clamp(2.75rem, 1.1rem + 5.4vw, 6rem);
  --fs-hero: clamp(2.375rem, 1rem + 4.2vw, 4.75rem);   /* 메인 Hero: display 보다 한 단계 절제 */
  --fs-h1: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(1.9rem, 1.2rem + 2.3vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
  --fs-body: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
  --fs-small: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  --gutter: clamp(16px, 3.4vw, 56px);
  --section: clamp(88px, 11vw, 188px);
  --section-home: clamp(104px, 12.5vw, 216px);   /* 메인: 섹션 하나가 한 장면으로 읽히는 간격 */
  --header-h: 72px;
  --max: 1760px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

.customer-form { display: grid; gap: 24px; margin-top: 32px; }
.customer-form__field { min-width: 0; display: grid; gap: 8px; }
.customer-form__field label { font-size: .875rem; font-weight: 600; }
.customer-form__field input:not([type=checkbox]), .customer-form__field select, .customer-form__field textarea {
  width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 0; font: inherit;
}
.customer-form__field textarea { min-height: 180px; resize: vertical; }
.customer-form__help { font-size: .8125rem; color: var(--ink-2); overflow-wrap: anywhere; }
.customer-form__check { grid-template-columns: 20px minmax(0, 1fr); align-items: start; }
.customer-form__check input { width: 18px; height: 18px; margin: 3px 0 0; }
.customer-form__check .errorlist { grid-column: 1 / -1; }
.customer-form .errorlist { color: #963c32; font-size: .875rem; }
.account-page__related { margin-top: 16px; padding: 14px 16px; background: var(--bg-2); font-size: .9375rem; }
.account-page__related a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.container.order-lookup { max-width: 720px; }
.order-lookup h1 { margin-top: 18px; font-size: clamp(2rem, 1.7rem + 1.4vw, 2.75rem); line-height: 1.25; }
.order-lookup h1 + p { margin-top: 18px; }
.order-lookup__help { margin-top: 32px; color: var(--ink-2); font-size: .875rem; }
.order-lookup__help a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.policy-body { margin-top: 32px; overflow-wrap: anywhere; }
.policy-body p + p { margin-top: 24px; }
/* Desktop: 우측 플로팅 도크(폭 56px)가 콘텐츠를 가리지 않도록 좌우 여백을 넉넉히 둔다 */
@media (min-width: 1024px) { :root { --gutter: clamp(72px, 5vw, 96px); } }
@media (max-width: 767px) { :root { --header-h: 60px; } }

/* 2. base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ko);
  font-size: var(--fs-body);
  line-height: 1.7;
  letter-spacing: -0.005em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.is-locked, html.is-locked body { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[x-cloak] { display: none !important; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.surface-dark :focus-visible { outline-color: var(--on-dark); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: var(--fs-small);
}
.skip-link:focus { top: 12px; }

/* 3. layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section.container + .section.container:not([style*="border-top"]) { padding-top: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.section-head__title { font-family: var(--font-en); font-size: clamp(1.6rem, 1rem + 2vw, 2.875rem); font-weight: 400; line-height: 1.1; letter-spacing: .04em; }
/* 영문 제목은 표식, 고객이 읽는 문장은 한글. 한글을 회색 본문이 아니라 부제 단계로 올린다. */
.section-head__title .ko { display: block; margin-top: 16px; font-family: var(--font-ko); font-size: clamp(1.0625rem, .98rem + .4vw, 1.3125rem); font-weight: 600; letter-spacing: -0.025em; color: var(--ink); line-height: 1.5; }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }

/* 4. type ------------------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow--line::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.en { font-family: var(--font-en); }
.muted { color: var(--ink-2); }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); line-height: 1.75; color: var(--ink); letter-spacing: -0.015em; }
.num { font-family: var(--font-en); font-feature-settings: "tnum"; }

/* 5. controls -------------------------------------------------------------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-line: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 28px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-line);
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { transition: transform .45s var(--ease); }
.btn--solid { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--light { --btn-fg: var(--on-dark); --btn-line: rgba(237, 235, 230, .5); }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); }
  .btn--solid:hover { --btn-bg: var(--dark-2); --btn-line: var(--dark-2); }
  .btn--light:hover { --btn-bg: var(--on-dark); --btn-fg: var(--dark); --btn-line: var(--on-dark); }
  .btn:hover svg { transform: translateX(4px); }
}
.btn[disabled] { opacity: .4; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; font-weight: 500; padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow::after { content: "→"; font-family: var(--font-en); transition: transform .45s var(--ease); }
@media (hover: hover) {
  .link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
  .link-arrow:hover::after { transform: translateX(4px); }
}

.underline {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}

/* 6. header / footer ------------------------------------------------------- */
/* 진한 프레임(header · footer) 사이에 밝은 본문. 헤더는 높이를 늘리지 않는다. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--frame); color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--frame-line); }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }
.site-header__inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
}
.wordmark { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; }
.wordmark img { height: 28px; width: auto; }
@media (max-width: 767px) { .wordmark img { height: 22px; } }
.site-nav { justify-self: center; }
.site-nav ul { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.site-nav a, .menu-toggle {
  position: relative; font-family: var(--font-en); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-dark-2);
  transition: color .3s var(--ease);
}
.site-nav a[aria-current="page"] { color: var(--on-dark); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) { .site-nav a:hover { color: var(--on-dark); } .site-nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: clamp(4px, 1vw, 12px); }

/* SPACE PLANNER: 일반 메뉴와 구분되는 얇은 테두리 버튼. 채운 색 버튼은 쓰지 않는다. */
.planner-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; margin-right: 6px;
  border: 1px solid rgba(237, 235, 230, .38); color: var(--on-dark);
  font-family: var(--font-en); font-size: .6875rem; font-weight: 500; letter-spacing: .14em; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.planner-cta svg { color: #A9B8A8; }
.planner-cta[aria-current="page"] { border-color: var(--on-dark); }
.planner-cta__short { display: none; }
@media (hover: hover) { .planner-cta:hover { background: var(--on-dark); color: var(--frame); border-color: var(--on-dark); } .planner-cta:hover svg { color: var(--point); } }

.header-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--on-dark); }
@media (max-width: 1199px) { .header-icon--account { display: none; } }
@media (hover: hover) { .header-icon:hover { color: #FFFFFF; } }
.count-badge {
  position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--point); color: #FFFFFF; font-size: .625rem; font-weight: 600; line-height: 16px; text-align: center;
  font-feature-settings: "tnum";
}
.menu-toggle { display: none; min-width: 44px; justify-content: flex-end; color: var(--on-dark); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 40; background: var(--bg); color: var(--ink);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
}
.mobile-menu__list li { border-top: 1px solid var(--line); }
.mobile-menu__list li:last-child { border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 16px; padding: 18px 0;
  font-family: var(--font-en); font-size: clamp(1.625rem, 7vw, 2.5rem); letter-spacing: .04em; line-height: 1.1;
}
.mobile-menu__list .index { font-size: 0.75rem; letter-spacing: .1em; color: var(--ink-2); width: 24px; }
.mobile-menu__planner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 18px 20px;
  background: var(--frame); color: var(--on-dark);
}
.mobile-menu__planner > span:first-child { display: grid; gap: 4px; }
.mobile-menu__planner .eyebrow { color: #A9B8A8; }
.mobile-menu__planner strong { font-weight: 600; letter-spacing: -0.02em; }
.mobile-menu__foot { font-size: var(--fs-small); color: var(--ink-2); display: grid; gap: 6px; }
.mobile-menu__foot a { color: var(--ink); }
.mobile-menu__tel { font-family: var(--font-en); font-size: 1.5rem; letter-spacing: .04em; }

@media (max-width: 1199px) {
  .site-header__inner { grid-template-columns: auto 1fr; gap: 12px; }
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 479px) {
  .planner-cta { padding: 0 10px; margin-right: 0; gap: 6px; min-height: 34px; }
  .planner-cta__full { display: none; }
  .planner-cta__short { display: inline; }
  .header-icon { width: 40px; }
  .menu-toggle { min-width: 40px; }
}
@media (max-width: 359px) { .planner-cta { display: none; } }

/* footer: 장식 워드마크 대신 브랜드 · 고객센터 · 패밀리 사이트 · 사업자 정보를 명확하게 */
.site-footer { background: var(--frame); color: var(--on-dark); padding-top: clamp(56px, 6vw, 96px); }
.site-footer .muted { color: var(--on-dark-2); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.site-footer__logo { height: 40px; width: auto; }
.site-footer__by { margin-top: 16px; font-family: var(--font-en); font-size: .75rem; letter-spacing: .1em; color: var(--on-dark-2); }
.site-footer__statement { margin-top: 20px; font-size: .9375rem; line-height: 1.75; color: var(--on-dark-2); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__heading { font-family: var(--font-en); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 16px; }
.site-footer__cols li { font-size: 0.9375rem; line-height: 2.05; overflow-wrap: anywhere; }
.site-footer__tel { font-family: var(--font-en); font-size: 1.375rem; letter-spacing: .04em; line-height: 1.6; }
@media (hover: hover) { .site-footer a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; } }
.site-footer__biz { margin-top: clamp(48px, 5vw, 80px); padding-top: 28px; border-top: 1px solid var(--frame-line); display: grid; grid-template-columns: 1fr auto; gap: 16px 48px; align-items: start; }
.biz-info { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .8125rem; color: var(--on-dark-2); line-height: 1.7; }
.biz-info div { display: flex; gap: 8px; }
.biz-info dt { color: #6F726D; }
.biz-info dd { color: var(--on-dark-2); overflow-wrap: anywhere; }
.policy-links { display: flex; gap: 20px; font-size: .8125rem; color: var(--on-dark-2); white-space: nowrap; }
.policy-links strong { color: var(--on-dark); font-weight: 600; }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 28px; padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--frame-line);
  font-size: var(--fs-small); color: var(--on-dark-2);
}
@media (max-width: 1023px) { .site-footer__biz { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__cols > div:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .biz-info { display: grid; gap: 4px; }
  /* 모바일 도크 · 구매 바가 푸터 마지막 줄을 가리지 않도록 */
  .site-footer__bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* 7. product card ---------------------------------------------------------- */
.product-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(40px, 4.4vw, 72px) clamp(12px, 1.6vw, 28px);
}
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1279px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .product-grid, .product-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 359px) { .product-grid, .product-grid--3 { grid-template-columns: 1fr; } }

.product-card__link { display: block; }
.product-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.product-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), opacity .7s var(--ease);
}
.product-card__media .is-secondary { opacity: 0; }
.product-card__tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.tag {
  font-family: var(--font-en); font-size: 0.6875rem; font-weight: 500; letter-spacing: .1em;
  padding: 3px 7px; background: var(--bg); color: var(--ink);
}
.tag--muted { font-family: var(--font-ko); letter-spacing: 0; color: var(--ink-2); }
.product-card__body { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding-top: 16px; }
.product-card__name { font-family: var(--font-en); font-size: clamp(0.875rem, .84rem + .18vw, 1rem); font-weight: 500; letter-spacing: .05em; line-height: 1.45; }
.product-card__type { grid-column: 1; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; }
.product-card__price { grid-column: 2; grid-row: 1; font-size: 0.875rem; font-feature-settings: "tnum"; line-height: 1.6; text-align: right; }
.product-card__swatches { grid-column: 2; grid-row: 2; display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.swatch { width: 9px; height: 9px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch--black { --c: #2A2B2B; } .swatch--white { --c: #F1EFEA; } .swatch--gray { --c: #9A9892; }
.swatch--beige { --c: #D6C8B2; } .swatch--wood { --c: #B8966D; } .swatch--green { --c: #6F7D68; }
.swatch--brown { --c: #7A5238; } .swatch--blue { --c: #5E6F80; }
@media (hover: hover) {
  .product-card__link:hover .product-card__media img { transform: scale(1.035); }
  .product-card__link:hover .product-card__media .is-secondary { opacity: 1; }
  .product-card__link:hover .product-card__name .underline { background-size: 100% 1px; }
}
@media (max-width: 767px) {
  .product-card__body { grid-template-columns: 1fr; padding-top: 12px; }
  .product-card__price, .product-card__swatches { grid-column: 1; grid-row: auto; text-align: left; justify-content: flex-start; }
  .product-card__swatches { margin-top: 6px; }
}

.media-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px; background: linear-gradient(180deg, #E9E6E0 0%, #DAD6CE 100%);
}
.media-fallback__name { font-family: var(--font-en); font-size: clamp(1.125rem, 1.6vw, 1.625rem); letter-spacing: .04em; line-height: 1.15; }
.media-fallback__mark { font-family: var(--font-en); font-size: .6875rem; letter-spacing: .3em; color: var(--ink-2); }

/* 8. home ------------------------------------------------------------------ */
.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  min-height: calc(88svh - var(--header-h)); max-width: var(--max); margin-inline: auto;
  padding-inline: var(--gutter); gap: clamp(32px, 4.4vw, 80px); padding-top: clamp(24px, 3vw, 48px); padding-bottom: clamp(40px, 4.4vw, 80px);
}
.hero__text { display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(32px, 4vw, 72px) 0; padding-right: clamp(0px, 2vw, 40px); }
/* 문장 전체가 아니라 핵심어(공간 · 가구)만 굵게 */
/* 줄바꿈은 <br> 기준 3줄로 고정한다. 좁은 칸에서 5줄로 꺾이면 버튼이 첫 화면 밖으로 밀린다. */
.hero__title { font-size: var(--fs-hero); font-weight: 400; line-height: 1.2; letter-spacing: -0.045em; margin-top: clamp(24px, 2.4vw, 36px); }
@media (min-width: 480px) { .hero__title { white-space: nowrap; } }
.hero__title strong { font-weight: 800; }
.hero__title .en { display: block; font-weight: 400; letter-spacing: -0.04em; }
.hero__sub { margin-top: 28px; max-width: 30em; color: var(--ink-2); }
.hero__spaces { margin-top: clamp(28px, 3vw, 44px); font-family: var(--font-en); font-size: 0.8125rem; letter-spacing: .08em; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 3vw, 48px); }
.hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: clamp(56px, 6vw, 96px); padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); }
.hero__media { position: relative; overflow: hidden; background: var(--tile); min-height: 420px; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }
.hero__caption {
  position: absolute; left: 20px; bottom: 18px; right: 20px; display: flex; justify-content: space-between;
  font-family: var(--font-en); font-size: .6875rem; letter-spacing: .14em; color: rgba(25, 25, 25, .72);
}
.hero__fallback {
  position: absolute; inset: 0; background: var(--dark); color: var(--on-dark);
  display: flex; align-items: flex-end; padding: 32px; font-family: var(--font-en); font-size: clamp(3.5rem, 11vw, 11rem); letter-spacing: .08em; line-height: .85;
}
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding-top: clamp(40px, 9vw, 72px); padding-right: 0; }
  .hero__media { aspect-ratio: 4 / 5; min-height: 0; }
  .hero__foot { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) { .hero__media { aspect-ratio: 5 / 4; } }

.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.intro__label { grid-column: 1 / span 3; align-self: start; margin-top: .6em; }
.intro__text { grid-column: 5 / span 7; display: grid; gap: clamp(28px, 3.6vw, 56px); }
.intro__lead { font-size: var(--fs-h3); line-height: 1.6; letter-spacing: -0.03em; }
.intro__lead strong { font-weight: 700; }
.intro__body { max-width: 34em; color: var(--ink-2); font-size: clamp(1rem, .95rem + .25vw, 1.1875rem); line-height: 1.8; }
@media (max-width: 1023px) { .intro__label, .intro__text { grid-column: 1 / -1; } }

/* space grid */
.space-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 28px); row-gap: clamp(48px, 5vw, 80px); }
.space-tile { grid-column: span 4; }
.space-tile:nth-child(6n + 1) { grid-column: span 7; }
.space-tile:nth-child(6n + 2) { grid-column: span 5; }
.space-tile:nth-child(6n + 6) { grid-column: 1 / -1; }
.space-tile__link { display: block; }
.space-tile__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--tile); }
.space-tile:nth-child(6n + 1) .space-tile__media,
.space-tile:nth-child(6n + 2) .space-tile__media { aspect-ratio: auto; height: clamp(320px, 38vw, 760px); }
.space-tile:nth-child(6n + 6) .space-tile__media { aspect-ratio: 21 / 8; }
.space-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; transition: transform 1.4s var(--ease); }
.space-tile__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 20px; align-items: baseline; padding-top: 18px; }
.space-tile__index { font-family: var(--font-en); font-size: .75rem; letter-spacing: .1em; color: var(--ink-2); }
.space-tile__name { font-family: var(--font-en); font-size: clamp(1.125rem, .95rem + .6vw, 1.5rem); font-weight: 400; letter-spacing: .06em; line-height: 1.25; }
.space-tile__count { font-size: var(--fs-small); color: var(--ink-2); }
.space-tile__headline { grid-column: 2 / -1; color: var(--ink-2); font-size: .9375rem; }
@media (hover: hover) {
  .space-tile__link:hover .space-tile__media img { transform: scale(1.03); }
  .space-tile__link:hover .underline { background-size: 100% 1px; }
}
@media (max-width: 767px) {
  .space-tile, .space-tile:nth-child(n) { grid-column: 1 / -1; }
  .space-tile:nth-child(n) .space-tile__media { aspect-ratio: 4 / 3; height: auto; }
  .space-tile__meta { grid-template-columns: auto 1fr; }
  .space-tile__count { grid-column: 2; }
}

/* collection index */
.collection-list { border-top: 1px solid var(--line); }
.collection-row { border-bottom: 1px solid var(--line); }
.collection-row__link {
  display: grid; grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr) 180px; gap: 24px; align-items: center;
  padding-block: clamp(20px, 2.6vw, 36px);
}
.collection-row__index { font-family: var(--font-en); font-size: .75rem; letter-spacing: .1em; color: var(--ink-2); }
/* 항목 이름은 섹션 제목(최대 2.875rem)보다 작아야 위계가 뒤집히지 않는다 */
.collection-row__name { font-family: var(--font-en); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.375rem); font-weight: 400; letter-spacing: .06em; line-height: 1.05; transition: transform .6s var(--ease); }
.collection-row__desc { display: grid; gap: 4px; }
.collection-row__ko { font-weight: 600; letter-spacing: -0.02em; }
.collection-row__text { color: var(--ink-2); font-size: .9375rem; }
.collection-row__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); clip-path: inset(0 0 0 100%); transition: clip-path .8s var(--ease); }
.collection-row__media img { width: 100%; height: 100%; object-fit: cover; }
.collection-row__media, .collection-row__count { grid-column: 4; grid-row: 1; }
.collection-row__count { justify-self: end; font-size: var(--fs-small); color: var(--ink-2); transition: opacity .4s var(--ease); }
@media (hover: hover) and (min-width: 1024px) {
  .collection-row__link { position: relative; }
  .collection-row__media { position: absolute; right: 0; top: 50%; width: 180px; transform: translateY(-50%); z-index: 2; pointer-events: none; }
}
@media (hover: hover) {
  .collection-row__link:hover .collection-row__media { clip-path: inset(0 0 0 0); }
  .collection-row__link:hover .collection-row__count { opacity: 0; }
  .collection-row__link:hover .collection-row__name { transform: translateX(12px); }
}
@media (hover: none), (max-width: 1023px) {
  .collection-row__media { clip-path: none; }
  .collection-row__count { display: none; }
}
@media (max-width: 1023px) {
  .collection-row__link { grid-template-columns: 40px minmax(0, 1fr) 96px; gap: 8px 16px; }
  .collection-row__desc { grid-column: 2; }
  .collection-row__media { grid-column: 3; grid-row: 1 / span 2; }
}

/* brand story */
.surface-dark { background: var(--dark); color: var(--on-dark); }
.surface-dark .eyebrow, .surface-dark .muted { color: var(--on-dark-2); }
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.story__title { grid-column: 1 / span 7; font-family: var(--font-en); font-weight: 400; font-size: clamp(2.25rem, 1rem + 4.4vw, 5.75rem); line-height: 1.02; letter-spacing: .04em; margin-top: 28px; }
.story__body { grid-column: 8 / span 5; align-self: end; display: grid; gap: 28px; }
.story__body .lead { color: var(--on-dark); }
.principles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 128px); border-top: 1px solid rgba(237, 235, 230, .18); }
.principle { padding: 28px 24px 0 0; display: grid; gap: 10px; }
.principle + .principle { padding-left: 24px; border-left: 1px solid rgba(237, 235, 230, .18); }
.principle__index { font-family: var(--font-en); font-size: .75rem; letter-spacing: .1em; color: var(--on-dark-2); }
.principle__title { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.03em; line-height: 1.35; }
.principle__text { color: var(--on-dark-2); font-size: .9375rem; }
@media (max-width: 1023px) {
  .story__title, .story__body { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 24px 0; border-left: 0; border-bottom: 1px solid rgba(237, 235, 230, .18); }
}

/* projects */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 28px); align-items: start; }
.project-grid > :nth-child(3n + 2) { margin-top: clamp(0px, 8vw, 128px); }
.project-card__link { display: block; }
.project-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.project-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; transition: transform 1.4s var(--ease); }
.project-card__meta { padding-top: 18px; display: grid; gap: 2px; }
.project-card__index { font-family: var(--font-en); font-size: .75rem; letter-spacing: .12em; color: var(--ink-2); }
.project-card__title { font-family: var(--font-en); font-size: clamp(1.125rem, .95rem + .6vw, 1.5rem); font-weight: 400; letter-spacing: .05em; line-height: 1.3; margin-top: 6px; }
.project-card__sub { color: var(--ink-2); font-size: .9375rem; }
@media (hover: hover) {
  .project-card__link:hover img { transform: scale(1.03); }
  .project-card__link:hover .underline { background-size: 100% 1px; }
}
@media (max-width: 767px) {
  .project-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .project-grid > :nth-child(n) { margin-top: 0; }
  .project-card__media { aspect-ratio: 4 / 3; }
}

.contact-band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.contact-band__title { grid-column: 1 / span 7; font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.045em; line-height: 1.2; margin-top: 24px; }
.contact-band__body { grid-column: 9 / span 4; display: grid; gap: 24px; }
@media (max-width: 1023px) { .contact-band__title, .contact-band__body { grid-column: 1 / -1; } }

/* 9. catalog --------------------------------------------------------------- */
.page-head { padding-top: clamp(48px, 7vw, 120px); padding-bottom: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 40px; }
.page-head > * { grid-column: 1; justify-self: start; }
.page-head__title { font-family: var(--font-en); font-size: clamp(2rem, 1.1rem + 3vw, 3.75rem); font-weight: 400; letter-spacing: .04em; line-height: 1.05; margin-top: 20px; }
.page-head__desc { grid-column: 1; color: var(--ink-2); max-width: 36em; margin-top: 12px; }
.page-head__aside { grid-column: 2; grid-row: 1 / span 3; align-self: end; font-size: var(--fs-small); color: var(--ink-2); text-align: right; }
@media (max-width: 767px) { .page-head { grid-template-columns: 1fr; } .page-head__aside { grid-column: 1; grid-row: auto; text-align: left; } }

.catalog-toolbar { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); border-block: 1px solid var(--line); }
.catalog-toolbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.category-tabs { display: flex; gap: clamp(18px, 2.4vw, 36px); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.category-tabs::-webkit-scrollbar { display: none; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tab {
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; cursor: pointer;
  font-family: var(--font-en); font-size: .75rem; font-weight: 500; letter-spacing: .12em; color: var(--ink-3);
  transition: color .3s var(--ease);
}
.choice input:checked + .tab { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.choice input:focus-visible + .tab { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .tab:hover { color: var(--ink); } }

.toolbar-actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); flex-shrink: 0; }
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-en); font-size: .75rem; font-weight: 500; letter-spacing: .12em; }
.filter-toggle__count { font-family: var(--font-ko); letter-spacing: 0; color: var(--point); }
.filter-toggle__icon { transition: transform .4s var(--ease); }
.filter-toggle[aria-expanded="true"] .filter-toggle__icon { transform: rotate(45deg); }
.sort-select { position: relative; display: inline-flex; }
.sort-select select {
  appearance: none; border: 0; background: transparent; min-height: 44px; padding: 0 20px 0 0;
  font-size: var(--fs-small); cursor: pointer;
}
.sort-select::after { content: ""; position: absolute; right: 2px; top: 50%; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.filter-panel { border-top: 1px solid var(--line); padding-block: 28px 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 28px 40px; }
.filter-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-group legend { padding: 0; margin-bottom: 14px; font-family: var(--font-en); font-size: .6875rem; font-weight: 500; letter-spacing: .14em; color: var(--ink-2); text-transform: uppercase; }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--line-strong); font-size: .8125rem; white-space: nowrap;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.chip .swatch { width: 10px; height: 10px; }
.choice input:checked + .chip { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.choice input:focus-visible + .chip { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .chip:hover { border-color: var(--ink); } }
.filter-panel__actions { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.text-button { font-size: var(--fs-small); color: var(--ink-2); min-height: 34px; display: inline-flex; align-items: center; background: linear-gradient(currentColor, currentColor) 0 80% / 100% 1px no-repeat; }
@media (max-width: 1023px) {
  .filter-panel { grid-template-columns: 1fr 1fr; max-height: 60svh; overflow-y: auto; }
  .filter-panel__actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
}
@media (max-width: 767px) {
  .catalog-toolbar__row { flex-wrap: wrap; gap: 0; }
  .category-tabs { width: calc(100% + var(--gutter) * 2); border-bottom: 1px solid var(--line); }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .filter-panel { grid-template-columns: 1fr; }
}

.catalog-results { padding-top: clamp(28px, 3vw, 48px); transition: opacity .3s var(--ease); }
.catalog-results.htmx-request { opacity: .35; }
.catalog-count { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: 20px; }
.load-more { display: flex; justify-content: center; margin-top: clamp(56px, 6vw, 96px); }
.load-more .btn.htmx-request { opacity: .5; }
.empty-state { padding-block: clamp(64px, 10vw, 160px); text-align: center; display: grid; justify-items: center; gap: 16px; }
.empty-state__title { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.03em; }

/* 10. detail --------------------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 20px; font-family: var(--font-en); font-size: .6875rem; letter-spacing: .12em; color: var(--ink-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--ink-3); }
.breadcrumb [aria-current] { color: var(--ink); }

.preview-banner { background: var(--point); color: #fff; text-align: center; font-size: var(--fs-small); padding: 8px 16px; }

.pdp { display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); gap: clamp(24px, 4vw, 88px); align-items: start; }
.gallery { position: relative; }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  aspect-ratio: 1 / 1; background: var(--tile);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; }
.gallery__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumb { position: relative; flex: 0 0 64px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); opacity: .5; transition: opacity .3s var(--ease); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--ink); }
@media (hover: hover) { .gallery__thumb:hover { opacity: 1; } }
.gallery__nav { display: flex; align-items: center; gap: 4px; font-family: var(--font-en); font-size: .75rem; letter-spacing: .08em; }
.gallery__nav button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.gallery__count { min-width: 56px; text-align: center; font-feature-settings: "tnum"; }

.pdp__info { position: sticky; top: calc(var(--header-h) + 24px); padding-top: clamp(0px, 2vw, 24px); }
.pdp__eyebrow { display: flex; gap: 12px; }
.pdp__name { font-family: var(--font-en); font-size: clamp(1.875rem, 1.2rem + 2vw, 3.125rem); font-weight: 400; letter-spacing: .04em; line-height: 1.08; margin-top: 18px; }
.pdp__type { margin-top: 12px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.02em; }
.pdp__short { margin-top: 20px; color: var(--ink-2); max-width: 32em; }
.pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.pdp__price-now { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; font-feature-settings: "tnum"; }
.pdp__price-was { color: var(--ink-3); text-decoration: line-through; font-size: .9375rem; }
.pdp__price-rate { color: var(--point); font-size: .9375rem; font-weight: 500; }
.pdp__price-note { width: 100%; font-size: var(--fs-small); color: var(--ink-2); }

.pdp-field { margin-top: 28px; border: 0; padding: 0; min-width: 0; }
.pdp-field legend, .pdp-field__label { display: flex; gap: 8px; padding: 0; margin-bottom: 12px; font-size: var(--fs-small); color: var(--ink-2); }
.pdp-field legend strong, .pdp-field__label strong { color: var(--ink); font-weight: 500; }
.color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.color-option { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s var(--ease); }
.color-option .swatch { width: 24px; height: 24px; }
.choice input:checked + .color-option { box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + .color-option { outline: 2px solid var(--ink); outline-offset: 2px; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented .chip { min-height: 44px; padding: 0 16px; }
.segmented .chip small { color: inherit; opacity: .7; font-size: .75rem; }

.pdp__dims { margin-top: 28px; display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-block: 1px solid var(--line); font-size: var(--fs-small); }
.pdp__dims span:last-child { font-family: var(--font-en); font-feature-settings: "tnum"; }
.pdp__cta { display: grid; gap: 8px; margin-top: 28px; }
.pdp__notice { font-size: var(--fs-small); color: var(--ink); background: var(--bg-2); padding: 14px 16px; line-height: 1.6; }
.accordion { margin-top: 32px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; list-style: none; font-size: .9375rem; font-weight: 500; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--font-en); font-weight: 300; font-size: 1.25rem; transition: transform .35s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding-bottom: 20px; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 1023px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__info { position: static; }
  .pdp__gallery { margin-inline: calc(var(--gutter) * -1); }
  .gallery__track { aspect-ratio: 4 / 5; }
  .gallery__controls { padding-inline: var(--gutter); }
}
@media (min-width: 640px) and (max-width: 1023px) { .gallery__track { aspect-ratio: 1 / 1; } }
@media (max-width: 767px) { .gallery__thumbs { display: none; } .gallery__controls { justify-content: flex-end; } }

/* content blocks */
.blocks { display: grid; gap: var(--section); }
.block-full__media { position: relative; overflow: hidden; background: var(--tile); aspect-ratio: 21 / 10; }
.block-full__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
.block-full__caption { display: flex; gap: 20px; align-items: baseline; margin-top: 18px; }
.block-full__caption h2 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.03em; }
.block-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.block-split__media { grid-column: 1 / span 6; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.block-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.block-split__text { grid-column: 8 / span 4; display: grid; gap: 20px; }
.block-split--reverse .block-split__media { grid-column: 7 / span 6; grid-row: 1; }
.block-split--reverse .block-split__text { grid-column: 2 / span 4; grid-row: 1; }
.block-title { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.045em; line-height: 1.2; }
.block-text { max-width: 44em; display: grid; gap: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin-top: clamp(32px, 4vw, 56px); }
.feature { padding: 28px 28px 0 0; display: grid; gap: 8px; align-content: start; }
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); }
.feature__index { font-family: var(--font-en); font-size: .75rem; letter-spacing: .1em; color: var(--ink-2); }
.feature__title { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.03em; line-height: 1.35; }
.feature__text { color: var(--ink-2); }
@media (max-width: 1023px) {
  .block-split__media, .block-split__text, .block-split--reverse .block-split__media, .block-split--reverse .block-split__text { grid-column: 1 / -1; grid-row: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .block-full__media { aspect-ratio: 4 / 3; }
}

.specs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.specs__head { grid-column: 1 / span 4; }
.specs__list { grid-column: 6 / span 7; border-top: 1px solid var(--ink); }
.specs__row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.specs__row dt { color: var(--ink-2); }
@media (max-width: 1023px) { .specs__head, .specs__list { grid-column: 1 / -1; } .specs__row { grid-template-columns: 112px 1fr; } }

/* 11. curation / project / about ------------------------------------------ */
.feature-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: stretch; padding-block: clamp(24px, 3vw, 48px) 0; }
.feature-head__text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: clamp(16px, 3vw, 48px); }
.feature-head__title { font-family: var(--font-en); font-size: clamp(2.25rem, 1.1rem + 3.6vw, 4.75rem); font-weight: 400; letter-spacing: .04em; line-height: 1.02; margin-top: 20px; }
.feature-head__headline { margin-top: 24px; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.03em; line-height: 1.4; }
.feature-head__desc { margin-top: 16px; color: var(--ink-2); max-width: 32em; }
.feature-head__media { position: relative; overflow: hidden; min-height: clamp(360px, 36vw, 720px); background: var(--tile); }
.feature-head__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
.meta-list { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 40px; border-top: 1px solid var(--line); padding-top: 20px; font-size: var(--fs-small); }
.meta-list dt { color: var(--ink-2); font-family: var(--font-en); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }
.meta-list div { display: grid; gap: 2px; }
@media (max-width: 1023px) { .feature-head { grid-template-columns: 1fr; } .feature-head__media { order: -1; margin-inline: calc(var(--gutter) * -1); aspect-ratio: 4 / 3; min-height: 0; } }

.sibling-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.sibling-nav a { font-family: var(--font-en); font-size: clamp(1.125rem, .9rem + .8vw, 1.625rem); letter-spacing: .05em; color: var(--ink-3); transition: color .3s var(--ease); }
@media (hover: hover) { .sibling-nav a:hover { color: var(--ink); } }

.project-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 28px); }
.project-gallery figure { grid-column: span 6; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile); }
.project-gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 10; }
.project-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
@media (max-width: 767px) { .project-gallery figure, .project-gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; } }

.about-hero { position: relative; aspect-ratio: 18 / 9; overflow: hidden; background: var(--tile); }
.about-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
@media (max-width: 767px) { .about-hero { aspect-ratio: 4 / 3; } }

.cart-empty { min-height: 50svh; display: grid; align-content: center; justify-items: start; gap: 20px; }

/* 12. search --------------------------------------------------------------- */
.search-overlay { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; }
.search-overlay__bar { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; }
.search-overlay__body { padding-top: clamp(40px, 10vh, 120px); padding-bottom: 80px; }
.search-form__field { display: flex; align-items: center; border-bottom: 1px solid var(--ink); margin-top: 16px; }
.search-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; border-radius: 0;
  font-size: clamp(1.75rem, 1rem + 3.4vw, 4rem); letter-spacing: -0.04em; font-weight: 400;
}
.search-form input:focus { outline: none; }
.search-form input::placeholder { color: var(--ink-3); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form__submit { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; }
.search-form__field:focus-within { box-shadow: 0 1px 0 var(--ink); }
.search-suggest { margin-top: clamp(32px, 5vw, 64px); }
.search-suggest__meta { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: 16px; }
.search-suggest__idle { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.keyword-list { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.keyword-list a { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); letter-spacing: -0.03em; }
.keyword-list--en a { font-family: var(--font-en); }
@media (hover: hover) { .keyword-list a:hover { color: var(--ink-2); } }
.search-suggest__list { border-top: 1px solid var(--line); margin-bottom: 28px; }
.suggest-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); }
.suggest-item__media { position: relative; width: 56px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.suggest-item__media img { width: 100%; height: 100%; object-fit: cover; }
.suggest-item__text { display: grid; }
.suggest-item__name { font-family: var(--font-en); font-weight: 500; }
.suggest-item__type, .suggest-item__price { font-size: var(--fs-small); color: var(--ink-2); }
@media (hover: hover) { .suggest-item:hover .suggest-item__name { text-decoration: underline; text-underline-offset: 4px; } }
@media (max-width: 767px) { .search-suggest__idle { grid-template-columns: 1fr; } .suggest-item__price { display: none; } .suggest-item { grid-template-columns: 56px 1fr; } }

.fade-enter, .fade-leave { transition: opacity .3s var(--ease); }
.fade-enter-start { opacity: 0; }
.fade-enter-end { opacity: 1; }

/* 14. space planner intro (home) ----------------------------------------- */
/* 메인의 소개 섹션과 정적 도면 미리보기. 실제 Planner UI 는 static/planner/css/planner.css */
.planner-intro { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.planner-intro__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 80px); align-items: center; }
.planner-intro__title { display: grid; gap: 28px; margin-top: 28px; font-weight: 400; }
.planner-intro__en { font-family: var(--font-en); font-size: clamp(2rem, 1rem + 3vw, 4rem); line-height: .98; letter-spacing: .04em; }
.planner-intro__ko { font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); font-weight: 600; line-height: 1.4; letter-spacing: -0.035em; }
.planner-intro__lead { margin-top: 20px; color: var(--ink-2); max-width: 30em; }
.planner-steps { margin-top: 36px; border-top: 1px solid var(--line-strong); }
.planner-steps li { display: flex; align-items: baseline; gap: 20px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.planner-steps .num { font-size: .6875rem; letter-spacing: .1em; color: var(--ink-3); width: 20px; }
.planner-intro__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.planner-intro__spaces { font-family: var(--font-en); font-size: .75rem; letter-spacing: .12em; color: var(--ink-2); }
@media (max-width: 1023px) { .planner-intro__grid { grid-template-columns: 1fr; } }

/* plan mockup frame */
.plan { background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 1px 0 rgba(0, 0, 0, .02); }
.plan__topbar, .plan__footer { display: flex; align-items: center; gap: 16px; padding: 0 16px; min-height: 44px; font-size: .75rem; }
.plan__topbar { border-bottom: 1px solid var(--line); }
.plan__file { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-en); letter-spacing: .06em; margin-right: auto; white-space: nowrap; }
.plan__dot { width: 6px; height: 6px; background: var(--point); }
.plan__toggle { display: inline-flex; border: 1px solid var(--line-strong); font-family: var(--font-en); letter-spacing: .08em; }
.plan__toggle span { padding: 3px 10px; color: var(--ink-3); }
.plan__toggle .is-active { background: var(--ink); color: var(--bg); }
.plan__zoom { color: var(--ink-2); }
.plan__body { display: grid; grid-template-columns: 184px minmax(0, 1fr); }
.plan__panel { border-right: 1px solid var(--line); padding: 16px; font-size: .75rem; display: flex; flex-direction: column; gap: 10px; }
.plan__panel-title { font-family: var(--font-en); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.plan__panel-title + .plan__list, .plan__panel-title + .plan__cats { margin-bottom: 12px; }
.plan__list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.plan__list li.is-active { color: var(--point); font-weight: 600; }
.plan__list span:first-child { font-family: var(--font-en); letter-spacing: .04em; }
.plan__cats { display: flex; flex-wrap: wrap; gap: 4px; }
.plan__cats li { font-family: var(--font-en); font-size: .625rem; letter-spacing: .1em; padding: 3px 6px; border: 1px solid var(--line); color: var(--ink-2); }
.plan__canvas { position: relative; background: #FBFAF7; }
.plan__canvas svg { display: block; width: 100%; height: auto; }
.plan__card {
  display: grid; gap: 2px; margin-top: auto; padding: 12px 12px 12px 14px;
  background: var(--surface); border: 1px solid var(--line-strong); border-left: 2px solid var(--point); font-size: .75rem;
  transition: transform .9s var(--ease) 1.1s, opacity .9s var(--ease) 1.1s;
}
.plan__card-label { font-family: var(--font-en); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--point); }
.plan__card-name { font-family: var(--font-en); font-size: .9375rem; letter-spacing: .05em; font-weight: 400; }
.plan__card-type, .plan__card-dim { color: var(--ink-2); }
.plan__card-dim { font-size: .625rem; letter-spacing: .02em; white-space: nowrap; }
.plan__footer { border-top: 1px solid var(--line); gap: 28px; flex-wrap: wrap; padding-block: 8px; }
.plan__stat { display: inline-flex; align-items: baseline; gap: 8px; }
.plan__stat-label { font-family: var(--font-en); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.plan__stat--total span:last-child { font-weight: 600; font-feature-settings: "tnum"; }
.plan__quote { margin-left: auto; font-weight: 500; }

/* plan drawing (단위 mm, 선 굵기도 mm)
   <use> 복제본에는 조상 선택자가 닿지 않으므로 .plan-pf 는 단일 클래스로 두고, 색은 --plan-* 상속으로 바꾼다. */
.plan-pf { fill: var(--plan-fill, #FFFFFF); stroke: var(--plan-stroke, #77746E); stroke-width: 16; transition: fill .35s var(--ease), stroke .35s var(--ease); }
.plan-pf--strong { fill: var(--plan-fill-2, #E9E6DF); }
.plan-pf--line { fill: none; }
.plan-grid__minor { stroke: #ECE9E3; stroke-width: 6; }
.plan-grid__major { stroke: #DDD9D1; stroke-width: 10; }
.plan-wall { fill: var(--ink); }
.plan-opening { fill: #FBFAF7; }
.plan-window { stroke: var(--ink-2); stroke-width: 10; }
.plan-door { fill: none; stroke: var(--ink-2); stroke-width: 12; }
.plan-door--swing { stroke-dasharray: 50 40; stroke-width: 8; }
.plan-dim line { stroke: var(--ink-3); stroke-width: 10; }
.plan-dim text { fill: var(--ink-2); font-family: var(--font-en); font-size: 150px; letter-spacing: 8px; }
.plan-dim .plan-dim__sub { font-size: 130px; }
.plan-dim--select text { fill: var(--point); font-size: 110px; }
.plan-select { fill: none; stroke: var(--point); stroke-width: 14; stroke-dasharray: 60 40; }
.plan-plant .plan-pf { stroke: #9AA695; }
.plan-item { --plan-stroke: #77746E; }
.plan-item.is-selected { --plan-stroke: var(--point); --plan-fill: #F1F4EF; --plan-fill-2: #DCE3DA; }
@media (hover: hover) {
  .plan-item:hover { --plan-stroke: var(--ink); --plan-fill: #F4F2ED; --plan-fill-2: #DEDAD2; }
}

/* 등장: 그리드가 옅게 깔리고, 선택된 의자가 제자리로 들어온다 (1회) */
.js .plan .plan-grid { opacity: 0; transition: opacity 1.4s var(--ease) .2s; }
.js .plan.is-inview .plan-grid { opacity: 1; }
.js .plan .plan-moving { transform: translate(-900px, 420px); opacity: 0; transition: transform 1.3s var(--ease-io) .7s, opacity .6s var(--ease) .7s; }
.js .plan.is-inview .plan-moving { transform: none; opacity: 1; }
.js .plan .plan__card { opacity: 0; transform: translateY(8px); }
.js .plan.is-inview .plan__card { opacity: 1; transform: none; }
.js .plan[data-reveal] { transform: none; }

@media (max-width: 767px) {
  .plan__body { grid-template-columns: 1fr; }
  .plan__panel, .plan__zoom, .plan__quote { display: none; }
  .plan-dim text { font-size: 220px; }
  .plan-dim--select, .plan-dim .plan-dim__sub { display: none; }
}

/* 15. imported cutout images · source detail -------------------------------- */
/* 흰 배경 누끼 사진: 자르지 않고(contain) 타일 색에 곱하기로 합성한다 */
.is-cutout { background: #EEECE7; }
.is-cutout img { object-fit: contain !important; padding: 7%; mix-blend-mode: multiply; }
.gallery__track.is-cutout .gallery__slide img { padding: 5%; }
.suggest-item__media.is-cutout img, .gallery__thumb.is-cutout img, .planner-product__media.is-cutout img { padding: 4%; }

.source-detail { display: grid; gap: clamp(24px, 3vw, 40px); justify-items: center; }
.source-detail__head { justify-self: stretch; display: grid; gap: 20px; }
.source-detail__frame { position: relative; width: 100%; max-width: 860px; background: #FFFFFF; }
.source-detail__frame img { width: 100%; height: auto; }
.js .source-detail__frame { max-height: 1400px; overflow: hidden; }
.js .source-detail__frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(rgba(243, 242, 238, 0), var(--bg)); }
.js .source-detail__frame.is-open { max-height: none; }
.js .source-detail__frame.is-open::after { display: none; }
.source-detail__toggle { display: none; }
.js .source-detail__toggle { display: flex; justify-content: center; }

/* 13. motion --------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0ms); }
.js [data-reveal].is-inview { opacity: 1; transform: none; }
.product-grid > li:nth-child(4n + 2) [data-reveal], .space-grid > :nth-child(3n + 2), .project-grid > :nth-child(3n + 2) { --delay: 90ms; }
.product-grid > li:nth-child(4n + 3) [data-reveal], .space-grid > :nth-child(3n + 3), .project-grid > :nth-child(3n + 3) { --delay: 180ms; }
.product-grid > li:nth-child(4n + 4) [data-reveal] { --delay: 270ms; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-io); }
.js [data-reveal="clip"].is-inview { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: none; }
}

/* 16. phase 2 — home spacing · dock · drawer · chat · purchase · forms ------ */
.search-overlay .header-action { font-family: var(--font-en); font-size: .75rem; font-weight: 500; letter-spacing: .12em; min-height: 44px; display: inline-flex; align-items: center; }

/* 메인: 섹션이 서로 붙지 않게. 이어지는 섹션의 padding-top 을 없애던 규칙을 메인에서는 쓰지 않는다. */
.page-home .section { padding-block: var(--section-home); }
.page-home .section.container + .section.container:not([style*="border-top"]) { padding-top: var(--section-home); }
.page-home .section.container + .section.container { border-top: 1px solid var(--line); }
.page-home .hero + .section { border-top: 0; }
.page-home .section-head { margin-bottom: clamp(48px, 6vw, 96px); }
.page-home .planner-intro .planner-steps li { padding-block: 14px; }
.planner-steps__link { margin-left: auto; font-size: var(--fs-small); color: var(--ink-2); }
@media (hover: hover) { .planner-steps__link:hover { color: var(--ink); } }
@media (max-width: 767px) { .page-home .section-head { margin-bottom: 40px; } }

.contact-band__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--quiet { --btn-line: var(--line-strong); }
.tel-cta { gap: 10px; font-feature-settings: "tnum"; }
.tel-cta span { font-family: var(--font-en); letter-spacing: .04em; }

/* floating dock ─────────────────────────────────────────────────────────── */
/* Desktop: 우측 세로 툴바. gutter(72px+) 안에 들어가 콘텐츠를 가리지 않는다. */
.dock {
  position: fixed; z-index: 45; right: 10px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; background: var(--frame); color: var(--on-dark);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14); transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.dock__item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 52px; min-height: 60px; padding: 8px 0; color: var(--on-dark-2); transition: color .25s var(--ease), background-color .25s var(--ease);
}
.dock__item + .dock__item { border-top: 1px solid var(--frame-line); }
.dock__item .count-badge { top: 4px; right: 4px; }
.dock__label { font-size: .625rem; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; }
.dock__item[aria-expanded="true"], .dock__item:focus-visible { color: var(--on-dark); background: var(--dark-2); }
@media (hover: hover) { .dock__item:hover { color: var(--on-dark); background: var(--dark-2); } }
.page-planner .dock { display: none; }

/* Mobile · Tablet: 하단 우측 가로 알약. 아래로 스크롤하는 동안 숨는다. 구매 바가 있으면 그 위에 뜬다. */
@media (max-width: 1023px) {
  .dock {
    top: auto; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transform: none;
    flex-direction: row; border-radius: 26px; overflow: hidden;
  }
  .dock__item { width: 48px; min-height: 48px; padding: 0; }
  .dock__item + .dock__item { border-top: 0; border-left: 1px solid var(--frame-line); }
  .dock__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dock.is-hidden { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; pointer-events: none; }
  .has-buybar .dock { bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* 상품상세는 구매 바와 도크가 겹치므로 빠른 메뉴를 구매 패널 안에 둔다. */
  .page-product .dock { display: none; }
}

/* drawer (최근 본 상품) ────────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 85; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(23, 25, 24, .45); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg);
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0, 0, 0, .12);
}
.drawer-enter { transition: transform .35s var(--ease); }
.drawer-enter-start { transform: translateX(100%); }
.drawer-enter-end { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px 0 24px; min-height: 64px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.drawer__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; overscroll-behavior: contain; }
.drawer__empty { padding-top: 24px; }
.drawer__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: var(--fs-small); }
.recent-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.recent-item__link { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding-block: 14px; }
.recent-item__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.recent-item__media img { width: 100%; height: 100%; object-fit: cover; }
.recent-item__media.is-cutout img { padding: 6%; }
.recent-item__text { display: grid; gap: 2px; min-width: 0; }
.recent-item__name { font-family: var(--font-en); font-weight: 500; font-size: .9375rem; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item__type, .recent-item__price { font-size: var(--fs-small); color: var(--ink-2); }
.recent-item__price { color: var(--ink); font-feature-settings: "tnum"; }
.recent-item__remove { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); }
@media (hover: hover) { .recent-item__link:hover .recent-item__name { text-decoration: underline; text-underline-offset: 3px; } .recent-item__remove:hover { color: var(--ink); } }

/* chat ─────────────────────────────────────────────────────────────────── */
.chat {
  position: fixed; z-index: 70; right: 74px; bottom: 24px; width: min(380px, calc(100vw - 96px)); height: min(600px, calc(100svh - var(--header-h) - 48px));
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line-strong); box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}
.chat__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 8px 14px 20px; background: var(--frame); color: var(--on-dark); }
.chat__head .eyebrow { color: #A9B8A8; }
.chat__head .drawer__close { color: var(--on-dark); }
.chat__title { margin-top: 4px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: grid; align-content: start; gap: 14px; overscroll-behavior: contain; }
.chat__msg { display: grid; gap: 8px; justify-items: start; }
.chat__msg--user { justify-items: end; }
.chat__bubble { max-width: 88%; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); font-size: .9375rem; line-height: 1.6; white-space: pre-line; }
.chat__msg--user .chat__bubble { background: var(--frame); color: var(--on-dark); border-color: var(--frame); }
.chat__buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.chat__chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-strong); background: var(--bg); font-size: .8125rem; line-height: 1.35; text-align: left; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.chat__chip:disabled { opacity: .5; }
@media (hover: hover) { .chat__chip:hover { border-color: var(--ink); background: var(--surface); } }
.chat__rate { font-size: .75rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.chat__rate .text-button { min-height: 28px; font-size: .75rem; margin-left: 6px; }
.chat__typing { font-size: var(--fs-small); }
.chat__form { display: flex; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; border: 0; background: var(--surface); padding: 0 16px; min-height: 52px; font-size: 1rem; }
.chat__form input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--ink); }
.chat__send { width: 52px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); }
.chat__send:disabled { color: var(--ink-3); }
.chat__note { padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); font-size: .75rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.chat__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) {
  .chat { inset: auto 0 0 0; width: 100%; height: min(78svh, 640px); border-width: 1px 0 0; }
}

/* toast ────────────────────────────────────────────────────────────────── */
.toasts { position: fixed; z-index: 90; left: 50%; top: calc(var(--header-h) + 12px); transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; background: var(--frame); color: var(--on-dark); font-size: .875rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.toast--error { background: #6E2B22; }
.toast__link { margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }

/* product detail: 구매 패널 ─────────────────────────────────────────────── */
/* Desktop: 패널은 이미지 옆에서 sticky. 넘치지 않도록 화면 높이 안에서만 붙어 있다. */
@media (min-width: 1024px) {
  .pdp__info { top: calc(var(--header-h) + 32px); }
}
.pdp__qty { margin-top: 28px; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); background: var(--surface); }
.qty__btn { width: 44px; min-height: 44px; font-size: 1.125rem; display: inline-flex; align-items: center; justify-content: center; }
.qty__btn:disabled { color: var(--ink-3); cursor: default; }
.qty__input { width: 64px; border: 0; border-inline: 1px solid var(--line); background: transparent; text-align: center; font-size: 1rem; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm .qty__input { width: 64px; min-height: 40px; border: 0; }
.pdp__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); }
.pdp__total strong { font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.pdp__cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pdp__cta-row .btn { min-width: 0; padding-inline: 12px; }
.pdp__cta-row--sub .btn { min-height: 46px; font-size: .875rem; white-space: normal; text-align: center; line-height: 1.35; }
.pdp__utility { display: none; }
@media (max-width: 1023px) {
  .pdp__utility { display: flex; flex-wrap: wrap; gap: 12px 24px; }
  .pdp__utility .text-button { min-height: 44px; }
}
.pdp { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); }
@media (max-width: 1023px) { .pdp { grid-template-columns: minmax(0, 1fr); } }
.pdp__error { color: #A2463A; font-size: var(--fs-small); }

/* 구매 바 */
.buybar { position: fixed; z-index: 44; left: 0; right: 0; background: rgba(243, 242, 238, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.buybar .btn { min-height: 44px; padding: 0 18px; font-size: .875rem; }
.buybar--desktop { top: var(--header-h); border-bottom: 1px solid var(--line-strong); box-shadow: 0 6px 20px rgba(0, 0, 0, .05); }
.buybar__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.buybar__product { display: grid; min-width: 0; margin-right: auto; }
.buybar__name { font-family: var(--font-en); font-weight: 500; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__opts { font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__qty { font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; }
.buybar__total { font-size: 1.125rem; font-weight: 600; white-space: nowrap; }
.buybar__actions { display: flex; gap: 8px; }
.buybar--mobile {
  bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-strong);
}
.buybar__price { display: grid; line-height: 1.3; min-width: 0; }
.buybar__label { font-size: .6875rem; color: var(--ink-2); }
.buybar__price strong { font-size: 1.0625rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 1023px) { .buybar--desktop { display: none !important; } }
@media (min-width: 1024px) { .buybar--mobile { display: none !important; } }
@media (max-width: 359px) { .buybar--mobile .btn { padding: 0 12px; } }
@media (min-width: 1024px) and (max-width: 1279px) { .buybar__qty { display: none; } }

/* commerce · quote forms ──────────────────────────────────────────────── */
.commerce, .quote { padding-bottom: var(--section); }
.commerce__head, .quote__head { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(28px, 3vw, 48px); display: grid; gap: 12px; }
.commerce__head .page-head__title, .quote__head .page-head__title { margin-top: 8px; }
.commerce__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 4vw, 72px); align-items: start; }
.quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(32px, 5vw, 96px); align-items: start; }
@media (max-width: 1023px) { .commerce__grid, .quote__grid { grid-template-columns: minmax(0, 1fr); } }

.form-stack { display: grid; gap: 32px; min-width: 0; }
.form-section { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.form-section__title { padding: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--fs-small); color: var(--ink-2); }
.field__req { color: var(--point); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface);
  font-size: 1rem; line-height: 1.5; transition: border-color .25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A2463A; }
.field__help { font-size: .75rem; color: var(--ink-3); }
.form-error { color: #A2463A; font-size: var(--fs-small); }
@media (max-width: 599px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.check--required span { font-weight: 500; }
.consent { display: grid; gap: 10px; padding: 16px; background: var(--bg-2); }
.consent__detail summary { font-size: var(--fs-small); color: var(--ink-2); cursor: pointer; }
.consent__detail p { margin-top: 8px; font-size: .8125rem; color: var(--ink-2); line-height: 1.7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote__submit { justify-self: start; min-width: 220px; }
@media (max-width: 599px) { .quote__submit { width: 100%; } }
.quote__aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 12px; padding: 28px; background: var(--frame); color: var(--on-dark); }
.quote__aside .eyebrow, .quote__aside .muted { color: var(--on-dark-2); }
.quote__aside .btn { --btn-fg: var(--on-dark); --btn-line: rgba(237, 235, 230, .5); }
.quote__tel { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-en); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); letter-spacing: .03em; line-height: 1.2; }
.quote__tip { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--frame-line); font-size: .8125rem; color: var(--on-dark-2); }
@media (max-width: 1023px) { .quote__aside { position: static; order: -1; } }
.quote__products ul { display: grid; gap: 8px; margin-top: 12px; }
.quote__products li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.quote__products small { display: block; color: var(--ink-2); font-size: var(--fs-small); }
.quote__product-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.quote__product-media img { width: 100%; height: 100%; object-fit: cover; }
.quote__product-media.is-cutout img { padding: 6%; }

.cart-lines { border-top: 1px solid var(--ink); }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "media info total" "media controls controls"; gap: 12px 20px; align-items: start; padding-block: 24px; border-bottom: 1px solid var(--line); }
.cart-line__media { grid-area: media; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__media.is-cutout img { padding: 6%; }
.cart-line__info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.cart-line__name { font-family: var(--font-en); font-weight: 500; letter-spacing: .04em; }
.cart-line__type, .cart-line__opts { font-size: var(--fs-small); color: var(--ink-2); }
.cart-line__controls { grid-area: controls; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.cart-line__qty { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cart-line__qty label { font-size: var(--fs-small); color: var(--ink-2); }
.cart-line__apply, .cart-line__remove { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--ink); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.cart-line__apply { background: var(--ink); color: var(--bg); }
.cart-line__remove { border-color: var(--line-strong); color: var(--ink-2); }
.cart-line__apply:hover, .cart-line__apply:focus-visible { background: var(--ink-2); }
.cart-line__remove:hover, .cart-line__remove:focus-visible { border-color: var(--ink); color: var(--ink); }
.cart-line__total { grid-area: total; font-weight: 600; white-space: nowrap; text-align: right; }
@media (max-width: 767px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "media info" "media total" "controls controls"; gap: 12px 16px; }
  .cart-line__total { text-align: left; }
}
.summary { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 1023px) { .summary { position: static; } }
.summary__title { font-size: 1rem; font-weight: 600; }
.summary__rows { display: grid; gap: 8px; font-size: .9375rem; }
.summary__rows div { display: flex; justify-content: space-between; gap: 16px; }
.summary__rows dt { color: var(--ink-2); }
.summary__total { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: 1.125rem; }
.summary__total dt { color: var(--ink); }
.summary__note { font-size: .8125rem; color: var(--ink-2); }
.review-section { border-top: 1px solid var(--line); }
.review-list { display: grid; max-width: 880px; }
.review-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.review-card h3 { margin: 10px 0 6px; font-size: 1rem; font-weight: 600; }
.review-card__meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--ink-2); font-size: var(--fs-small); }
.review-card__meta strong { color: var(--ink); }
.review-card__body { line-height: 1.8; white-space: normal; }
.review-form { max-width: 640px; }
.review-form form { margin-top: 28px; }
.summary__lines { display: grid; border-top: 1px solid var(--line); }
.summary__lines li { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: .875rem; }
.summary__lines small { display: block; color: var(--ink-2); font-size: .75rem; }
.summary__lines--wide { border-top-color: var(--ink); }
.pay-method { font-size: 1rem; }
.notice { padding: 18px 20px; background: var(--bg-2); border-left: 2px solid var(--point); display: grid; gap: 6px; }
.status-tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--line-strong); font-size: .75rem; }

.account-page { max-width: 704px; }
.account-page__brand { display: flex; align-items: center; gap: 24px; min-height: 100px; padding: 24px 28px; margin-bottom: 30px; border-left: 3px solid var(--point); background: var(--frame); color: var(--on-dark); }
.account-page__brand a { flex: none; display: block; }
.account-page__brand img { width: 216px; height: auto; }
.account-page__brand > span { padding-left: 24px; border-left: 1px solid var(--frame-line); color: var(--on-dark-2); font-size: .875rem; }
.account-page h1 { font-size: clamp(2rem, 1.7rem + 1.4vw, 2.75rem); line-height: 1.25; }
.social-auth { margin-top: 30px; }
.social-auth__intro { margin-bottom: 14px; font-size: 1rem; font-weight: 700; }
.social-auth__options { display: grid; gap: 10px; }
.social-auth__option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 11px 16px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; }
.social-auth__provider { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.social-auth__icon { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; font-size: .875rem; font-weight: 800; line-height: 1; }
.social-auth__option--kakao { border-color: var(--ink); }
.social-auth__option--kakao:hover, .social-auth__option--kakao:focus-visible { background: var(--ink); color: var(--bg); }
.social-auth__option.is-unavailable { color: var(--ink-2); background: var(--bg-2); }
.social-auth__option small { flex: none; font-size: .75rem; font-weight: 400; color: var(--ink-2); }
.social-auth__note { margin-top: 10px; color: var(--ink-2); font-size: .8125rem; }
.social-auth__divider { display: flex; align-items: center; gap: 14px; margin: 30px 0 22px; color: var(--ink-2); font-size: .8125rem; }
.social-auth__divider::before, .social-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 430px) {
  .account-page__brand { display: grid; gap: 10px; padding: 20px 22px; margin-bottom: 26px; }
  .account-page__brand img { width: min(216px, 100%); }
  .account-page__brand > span { padding-left: 0; border: 0; }
}

.quote__layout { display: grid; gap: 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--point); }
.quote__layout-meta { font-size: .9375rem; }
.quote__layout-lines { display: grid; font-size: var(--fs-small); color: var(--ink-2); }
.quote__layout-lines li { display: flex; justify-content: space-between; gap: 16px; padding-block: 4px; border-bottom: 1px solid var(--line); }
.quote__layout .text-button { justify-self: start; }
