/* BOAS CONSTRUCTION 홈페이지 스타일
   - 글자 크기·여백·격자는 기존 사이트를 화면 크기별로 실측해 같은 값이 나오도록 맞췄다.
   - 768px 미만: 모바일 배치 / 800px 미만: 모바일 헤더(햄버거 메뉴) */
:root {
  --gutter: 4vw;
  --maxw: 1800px;
  --accent: rgb(175, 184, 168);
  --nav: #bfbfbf;
  --u: calc(.012 * min(100vh, 900px));
  /* 작은 글자: 원본 실측 규칙. 데스크톱에서는 0.9rem을 넘지 않고, 넓은 화면에서는 더 작아진다 */
  --small: calc(1rem - .1 * var(--u));
  --hdr-h: 72px;
}
@media (min-width: 768px) { :root { --u: min(1.2vw, 21.6px); --small: min(.9rem, calc(1rem - .12vw)); } }
@media (min-width: 800px) { :root { --hdr-h: 92px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #000; color: #fff; font-family: Almarai, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.menu-open, html.lb-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: Alice, Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.02em; margin: 2rem 0; }
h1 { font-size: calc(1rem + 3 * var(--u)); line-height: 1.056; }
h2 { font-size: calc(1rem + 1.8 * var(--u)); line-height: 1.1136; }
h3 { font-size: calc(1rem + 1.2 * var(--u)); line-height: 1.1424; }
h4 { font-size: calc(1rem + .6 * var(--u)); line-height: 1.1712; }
p { margin: 1rem 0; }
.t-large { font-size: calc(1rem + .4 * var(--u)); }
.t-small { font-size: var(--small); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: -9999px; top: 12px; z-index: 200; background: #bfbfbf; color: #000; padding: 12px 18px; text-decoration: none; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 헤더 ---------- */
/* 11/21: 로고가 화면 위쪽을 너무 많이 차지해(데스크톱 약 330px) 한 줄 가로 헤더로 줄임. 스크롤하면 조금 더 얇아진다. */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--hdr-h); background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 6vw; transition: height .2s ease, background-color .2s ease; }
.hdr-logo { display: block; flex: none; }
.hdr-logo img { height: 52px; width: auto; transition: height .2s ease; }
.hdr-nav { display: none; }
.burger { position: relative; width: 47px; height: 37px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; flex: none; }
.burger span { position: absolute; left: 6px; right: 6px; height: 1px; background: currentColor; transition: transform .25s ease, top .25s ease; }
.burger span:first-child { top: 12.5px; }
.burger span:last-child { top: 23.5px; }
.burger[aria-expanded="true"] span { top: 18px; left: 9px; right: 9px; }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 40; background: #000; display: flex; align-items: center; justify-content: center; padding-top: var(--hdr-h); }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; align-items: center; gap: 6.1vw; }
.menu a { color: #fff; text-decoration: none; font-size: 8.5vw; line-height: 1; }
@media (max-width: 799px) {
  .hdr.shrunk { height: 60px; }
  .hdr.shrunk .hdr-logo img { height: 42px; }
}
@media (min-width: 800px) {
  .hdr { padding: 0 var(--gutter); }
  .hdr-logo img { height: 64px; }
  .hdr.shrunk { height: 68px; }
  .hdr.shrunk .hdr-logo img { height: 48px; }
  .hdr-nav { display: flex; gap: max(20px, 2vw); }
  .hdr-nav a { display: block; color: var(--nav); text-decoration: none; font-size: 16px; line-height: 24px; padding: 1.5px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; }
  .hdr-nav a.on, .hdr-nav a:hover { background-size: 100% 1px; }
  .burger, .menu { display: none !important; }
}

/* ---------- 섹션 ---------- */
.sec { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: var(--minh, 0px); background: var(--bg, #000); }
.sec.va-top { justify-content: flex-start; }
.sec.va-bottom { justify-content: flex-end; }
.sec-in { position: relative; z-index: 1; width: 100%; padding-top: var(--pt, 0px); padding-bottom: var(--pb, 0px); }
#page > :first-child { padding-top: var(--hdr-h); }
.sec-bg { position: absolute; inset: 0; overflow: hidden; }
.sec-bg > img, .sec-bg > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sec-bg .ov { position: absolute; inset: 0; }
/* 11/21: 배경 사진·영상 위 글이 잘 안 읽혀 어둡게 덮고(원래 덮개가 없는 구역만) 글에 그림자를 준다 */
.sec-bg:not(:has(.ov))::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .38), rgba(0, 0, 0, .55)); pointer-events: none; }
.sec-bg ~ .sec-in .rt { text-shadow: 0 1px 14px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .35); }
/* 11/21: 글 블록이 사진 블록과 겹치는 곳은 글 뒤에 어두운 판을 깐다 (빌드에서 겹침을 계산해 ovm/ovd를 붙임) */
@media (max-width: 767px) { .blk.ovm > .rt { background: rgba(0, 0, 0, .8); padding: .9rem 1rem; margin: -.9rem 0; } }
@media (min-width: 768px) { .blk.ovd > .rt { background: rgba(0, 0, 0, .8); padding: 1.4rem 1.6rem; margin: -1.4rem 0; } }

/* ---------- 자유 배치 격자 ---------- */
.fe { display: grid; position: relative; --g: calc(6vw - var(--gapx)); --cell: calc((var(--maxw) - var(--gapx) * 7) / 8); grid-template-rows: repeat(var(--rm), minmax(24px, auto)); grid-template-columns: minmax(var(--g), 1fr) repeat(8, minmax(0, var(--cell))) minmax(var(--g), 1fr); row-gap: var(--gapy); column-gap: var(--gapx); overflow-x: clip; }
.blk { grid-area: var(--am); z-index: var(--zm); min-width: 0; position: relative; display: flex; flex-direction: column; justify-content: var(--jm, flex-start); }
@media (min-width: 768px) {
  .fe { --g: calc(var(--gutter) - var(--gapx)); --cell: calc((var(--maxw) - var(--gapx) * 23) / 24); --cw: min(var(--maxw), calc(100vw - var(--gutter) * 2)); grid-template-rows: repeat(var(--rd), minmax(calc(var(--cw) * .0215), auto)); grid-template-columns: minmax(var(--g), 1fr) repeat(24, minmax(0, var(--cell))) minmax(var(--g), 1fr); }
  .blk { grid-area: var(--ad); z-index: var(--zd); justify-content: var(--jd, flex-start); }
}

/* 글 */
.rt { white-space: pre-wrap; overflow-wrap: break-word; }
.rt > :first-child { margin-top: 0; }
.rt > :last-child { margin-bottom: 0; }
.rt a { text-decoration: underline; text-underline-offset: .15em; }

/* 사진 */
.im { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; }
.im-fill img, .im-fit img { position: absolute; inset: 0; width: 100%; height: 100%; }
.im-fill img { object-fit: cover; }
.im-fit img { object-fit: contain; }
.im > a { position: absolute; inset: 0; display: block; }
.fit-m-top img { object-position: 50% 0; }
.fit-m-bottom img { object-position: 50% 100%; }
@media (min-width: 768px) {
  .fit-d-top img { object-position: 50% 0; }
  .fit-d-center img { object-position: 50% 50%; }
  .fit-d-bottom img { object-position: 50% 100%; }
}
.im-shape { container-type: size; display: grid; place-items: center; }
.im-shape .shape { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); clip-path: circle(50%); overflow: hidden; }
.im-shape img { width: 100%; height: 100%; object-fit: cover; }

/* 구분선 */
.hr hr { border: 0; height: 1px; width: 100%; margin: 8px 0; }

/* SNS 아이콘 */
.soc-list { display: flex; flex-wrap: wrap; justify-content: var(--sj, flex-start); gap: var(--sgap, 12px); }
.soc a { display: block; width: var(--sz, 20px); height: var(--sz, 20px); transition: opacity .2s; }
.soc a:hover { opacity: .7; }
.soc svg { display: block; width: 100%; height: 100%; fill: currentColor; }

/* 인스타그램 */
/* 원본과 같은 계산: 칸 사이 간격 고정(px), 마지막 줄 아래에도 같은 간격 */
.ig-grid { display: grid; grid-template-columns: repeat(var(--igc, 4), minmax(0, 1fr)); gap: var(--igg, 0px); padding-bottom: var(--igg, 0px); width: var(--igw, 100%); margin: 0 auto; }
@media (max-width: 767px) { .ig-m2 .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ig-i { position: relative; display: block; aspect-ratio: var(--igar, 1); overflow: hidden; }
.ig-i img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.ig-i:hover img { opacity: .85; }
.ig-v::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14%; aspect-ratio: 1; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translate(-40%, -50%); filter: drop-shadow(0 0 6px rgba(0, 0, 0, .35)); }

/* 지도 */
/* 지도는 원본처럼 격자가 정한 영역을 그대로 채운다 (자체 높이를 갖지 않음) */
.map { flex: 1 1 auto; position: relative; min-height: 0; }
.map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.83); }

/* 문의 폼 */
/* 치수는 원본 실측값: 제목 줄 24px + 4px, 입력칸 36px, 항목 사이 20px, 버튼 50px 가운데 정렬 */
.frm { display: block; color: var(--accent); font-size: 16px; line-height: 24px; position: relative; }
.frm fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.frm legend { box-sizing: border-box; height: 28px; padding: 0 0 4px; margin: 0; line-height: 24px; }
.frm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.frm-sub { display: block; font-size: var(--small); line-height: 1.5; }
.frm-f { display: block; margin-bottom: 20px; }
.frm-l { display: block; box-sizing: border-box; height: 28px; line-height: 24px; padding-bottom: 4px; white-space: nowrap; }
.frm .frm-f input[type="text"], .frm .frm-f input[type="email"], .frm .frm-f textarea { margin-top: 0; }
.frm .req { opacity: .7; font-size: var(--small); margin-left: 5px; }
.frm input[type="text"], .frm input[type="email"], .frm textarea { display: block; width: 100%; margin-top: 6px; height: 36px; padding: 5px 10px; border: 1px solid var(--accent); border-radius: 6.4px; background: transparent; color: inherit; font: inherit; font-size: 16px; }
.frm textarea { height: 100px; min-height: 100px; resize: vertical; }
.frm input:focus, .frm textarea:focus { outline: 1px solid var(--accent); outline-offset: 1px; }
.frm-hp { position: absolute; left: -9999px; opacity: 0; }
.btn { display: block; margin: 0 auto; background: #bfbfbf; color: #000; border: 0; border-radius: 0; padding: 16px 20.8px; font: inherit; font-size: 16px; line-height: 18px; cursor: pointer; transition: opacity .2s; }
.btn:hover { opacity: .8; }
.btn[disabled] { opacity: .5; cursor: default; }
.frm-msg { margin: 12px 0 0; text-align: center; }
.frm-msg:empty { display: none; }

/* ---------- 갤러리 ---------- */
.sec-gal, .sec-pf { display: block; }
.gal-grid { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: var(--gap, 0px); padding: 0 var(--gap, 0px); }
.gal-grid.gal-inset { padding: var(--gutter); }
.gi { margin: 0; min-width: 0; }
/* 원본과 같은 계산: 비율 높이(padding) + 1px. 그래야 사진이 많은 페이지에서도 전체 길이가 원본과 같다. */
.gi .ph { position: relative; box-sizing: content-box; height: var(--arx, 1px); padding-bottom: calc(100% / (var(--ar, 1.777778))); overflow: hidden; }
.gi .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gi a { display: block; color: inherit; text-decoration: none; }
.gi a[data-lb] { cursor: zoom-in; }
.gi figcaption { padding: 15px 0; font-size: 14px; line-height: 21px; }
/* 원본 실측: 메이슨리 갤러리 여백은 화면이 좁아질수록 단계적으로 줄어든다 (992px 이하 75%, 768px 이하 50%, 576px 이하 25%) */
.gal-masonry { --g: var(--gap, 0px); columns: var(--cols, 1); column-gap: var(--g); padding: 0 var(--g); }
@media (max-width: 992px) { .gal-masonry { --g: calc(var(--gap, 0px) * .75); } }
@media (max-width: 768px) { .gal-masonry { --g: calc(var(--gap, 0px) * .5); } }
@media (max-width: 576px) { .gal-masonry { --g: calc(var(--gap, 0px) * .25); } }
.gal-masonry .gi { break-inside: avoid; margin-bottom: var(--g); }
.gal-masonry .gi:last-child { margin-bottom: 0; }
.gal-masonry img { width: 100%; height: auto; }

/* 가로로 넘기는 사진 띠 */
.reel { position: relative; height: calc(var(--rvh, 50) * 1vh); overflow: hidden; color: var(--accent); }
.reel-view { position: relative; height: 60%; overflow: hidden; }
.reel-track { position: absolute; inset: 0; }
.reel-i { position: absolute; top: 0; left: 0; height: 100%; margin: 0; will-change: transform; }
.reel-i.anim { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.reel-i img { width: 100%; height: 100%; object-fit: cover; }
.reel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 8px; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .88); color: #000; cursor: pointer; z-index: 2; }
.reel-btn svg { display: block; width: 100%; height: 100%; }
.reel-prev { left: 15px; }
.reel-next { right: 15px; }
.reel-cap { margin: 25px 0 0; padding: 0 6vw; text-align: center; font-size: 14px; line-height: 1.5; min-height: 21px; }
@media (min-width: 768px) { .reel-view { height: calc(100% - var(--gutter) - 125px); min-height: 120px; } }

/* 프로젝트 목록 */
.pf { display: grid; grid-template-columns: minmax(0, 1fr); padding: 3.3vw 6vw; }
@media (min-width: 768px) { .pf { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3.3vw var(--gutter); } }
.pf-i { display: block; color: inherit; text-decoration: none; min-width: 0; }
.pf .ph { aspect-ratio: 2 / 3; overflow: hidden; }
.pf .ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.pf-i:hover img { opacity: .85; }
.pf-t { font-size: calc(1rem + .6 * var(--u)); line-height: 1.2; margin: 1px 0 .5em; }

/* 이전·다음 프로젝트 */
.pag { display: flex; padding: 3vw 6vw; background: #000; color: var(--accent); }
@media (min-width: 768px) { .pag { padding: 3vw var(--gutter); } }
.pag-l { display: flex; align-items: center; max-width: 50%; min-width: 0; color: inherit; text-decoration: none; }
.pag-l > span { min-width: 0; }
.pag-next { margin-left: auto; text-align: right; }
.pag-t { display: block; font-family: Alice, Georgia, serif; font-size: calc(1rem + 1.2 * var(--u)); line-height: 1; letter-spacing: -.02em; overflow-wrap: break-word; }
/* 긴 제목(예: 가게이름_도시)은 모바일에서만 밑줄 뒤에서 줄을 바꾼다. 데스크톱 줄바꿈은 원본 그대로. */
.pag-t wbr { display: none; }
@media (max-width: 767px) { .pag-t wbr { display: inline; } }
.pag-ic { flex: none; box-sizing: content-box; width: 18px; height: 32px; stroke-width: 1; }
.pag-prev .pag-ic { padding-right: 25px; }
.pag-next .pag-ic { padding-left: 25px; }
@media (max-width: 767px) { .pag-prev .pag-ic { padding-right: 12px; } .pag-next .pag-ic { padding-left: 12px; } }

/* 옛 편집기 섹션 */
.cl { padding: 0 6vw; }
@media (min-width: 768px) { .cl { padding: 0 var(--gutter); } }
.cl-row { display: flex; flex-wrap: wrap; }
.cl-col { flex: 0 0 100%; min-width: 0; }
@media (min-width: 768px) { .cl-col { flex-basis: calc(var(--span, 12) / 12 * 100%); } }

/* 사진 크게 보기 */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .96); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.lb button { position: absolute; width: 56px; height: 56px; padding: 14px; border: 0; background: none; color: #fff; cursor: pointer; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb svg { display: block; width: 100%; height: 100%; }
.lb-x { top: 8px; right: 8px; }
.lb-p { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-n { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-c { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--accent); }

/* ---------- 등장 효과 ----------
   원본 사이트와 같은 느낌: 화면에 들어올 때 0.65초 동안 살짝 커지며(제목·사진) 또는 서서히(본문) 나타난다.
   html에 .js가 붙어 있을 때만 숨긴 상태로 시작한다 (스크립트가 4초 안에 준비되지 않으면 .js가 빠져 그냥 보인다).
   기기 설정이 "움직임 줄이기"면 효과 없이 바로 보인다. */
@media (prefers-reduced-motion: no-preference) {
  .js :is(.hdr-logo, .hdr-nav a, .burger, .rt h1, .rt h2, .rt h3, .rt h4, .rt p, .im, .gal-grid:not(.gal-fu) .ph, .gal-masonry .gi, .gi figcaption, .pf, .pf-t, .pag-t, .soc-list, .ig-grid, .ftr .rt) { transition: opacity .65s ease var(--rd, 0s), transform .65s ease var(--rd, 0s); }
  .js :is(.hdr-logo, .burger, .rt h1, .rt h2, .rt h3, .im, .gal-grid:not(.gal-fu) .ph, .gal-masonry .gi, .pf, .pf-t, .pag-t, .soc-list, .ig-grid, .ftr .rt):not(.in) { opacity: 0; transform: scale(.9); }
  .js :is(.hdr-nav a, .rt h4, .rt p, .gi figcaption):not(.in) { opacity: 0; }
  .js .gal-fu .ph:not(.in) { opacity: 0; }
  .js .gal-fu .ph.in { animation: fade-up .8s ease both; }
  @keyframes fade-up { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }
}
@media print { .js * { opacity: 1 !important; transform: none !important; animation: none !important; } }

/* ---------- 검색·AI 최적화로 추가한 글 구역 ----------
   대제목(H1)을 페이지당 하나로 맞추면서 눈에 보이는 크기는 그대로 두기 위한 규칙과,
   프로젝트 소개·제목 구역·새 글 페이지·아래쪽 회사 정보의 모양. */
h1.as-h2 { font-size: calc(1rem + 1.8 * var(--u)); line-height: 1.1136; }
h2.as-h1 { font-size: calc(1rem + 3 * var(--u)); line-height: 1.056; }
.h1-multi > span { display: block; }
.h1-multi > span + span { margin-top: 2rem; }
a.plain { text-decoration: none !important; }
.sec-head, .sec-info, .sec-art, .art-pf { display: block; }
.head, .info, .art, .art-cta, .art-pf-h { width: min(100% - 12vw, 860px); margin-left: auto; margin-right: auto; }
.head a, .info a, .art a, .art-cta a, .nap a { text-underline-offset: .15em; }
.head { padding: 3.3vw 0 1.2vw; text-align: center; }
.head h1 { font-size: calc(1rem + 1.8 * var(--u)); line-height: 1.1136; margin: 0 0 1rem; }
.head-intro { color: var(--accent); margin: 0 auto 1rem; max-width: 68ch; }
.head-links { color: var(--accent); font-size: var(--small); margin: 0 0 1rem; }
.sec-info { padding: 2.2vw 0 3.3vw; }
.sec-head .info { padding-bottom: 2.2vw; }
.info { text-align: center; color: var(--accent); }
.info-k { font-size: var(--small); letter-spacing: .08em; text-transform: uppercase; color: #bfbfbf; margin: 0 0 1rem; }
.info-a { max-width: 68ch; margin: 0 auto 1rem; line-height: 1.65; }
.info-f { list-style: none; padding: 0; margin: 0 auto 1rem; max-width: 76ch; font-size: var(--small); line-height: 1.7; }
.info-f li { display: inline; }
.info-f li + li::before { content: " · "; white-space: pre; }
.info-more { font-size: var(--small); margin: 0; }
.art { padding: 3.3vw 0 1vw; color: #d9d9d9; }
.art h1 { font-size: calc(1rem + 2.2 * var(--u)); line-height: 1.1; margin: 0 0 1rem; color: #fff; }
.art-intro { font-size: calc(1rem + .4 * var(--u)); color: var(--accent); margin: 0 0 2rem; }
.art h2 { font-size: calc(1rem + 1.2 * var(--u)); line-height: 1.15; margin: 2.4rem 0 .8rem; color: #fff; }
.art h3 { font-size: calc(1rem + .5 * var(--u)); line-height: 1.25; margin: 1.4rem 0 .4rem; color: #fff; }
.art p, .art li { line-height: 1.65; }
.art ul { padding-left: 1.2em; }
.qa { border-top: 1px solid rgba(255, 255, 255, .18); padding: .1rem 0 .5rem; }
.art-cta { color: var(--accent); padding: 1rem 0 3.3vw; }
.art-pf-h { font-size: calc(1rem + 1.2 * var(--u)); margin-top: 1rem; margin-bottom: 0; }
.nap { padding: 0 6vw 5vw; text-align: center; color: var(--accent); font-size: var(--small); background: #000; }
.nap p { margin: .3rem 0; }
.nap-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 1.4em; margin-top: 1rem; }
/* 한국어 글: 본문 글 구역에만 한글 글꼴을 쓴다 (위쪽 메뉴·아래쪽 정보는 사이트 글꼴 그대로) */
html:lang(ko) :is(.art, .art-cta, .art-pf-h), [lang="ko"] { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Almarai, sans-serif; }
html:lang(ko) :is(.art, .art-pf) :is(h1, h2, h3, h4) { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; font-weight: 700; letter-spacing: -.01em; word-break: keep-all; }
html:lang(ko) .art p, html:lang(ko) .art li { word-break: keep-all; }

/* =====================================================================
   11/21 디자인 다듬기: 새 홈(.home), 헤더 버튼, 공통 아래쪽(.f2)
   - 색: 따뜻한 검정 + 상아색 글자 + 로고의 금색 한 가지
   - 글꼴: 제목 Cormorant Garamond, 본문·메뉴 Manrope
   ===================================================================== */
:root {
  --ink: #0d0c0b; --ink2: #151412; --ink3: #1d1b18;
  --ivory: #eee8de; --mute: #a39d92; --line: rgba(238, 232, 222, .14);
  --gold: #c6a56a; --gold2: #d9bd88;
  --serif: "Cormorant Garamond", Alice, Georgia, serif;
  --sans: Manrope, Almarai, "Helvetica Neue", Arial, sans-serif;
  --wrap: min(1320px, 100% - 12vw);
}
/* 헤더: 대문자 작은 메뉴 + 견적 버튼 (모든 페이지) */
.hdr { font-family: var(--sans); }
@media (min-width: 800px) {
  .hdr-nav { align-items: center; gap: max(22px, 2.2vw); }
  .hdr-nav a { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #cfc9bf; font-weight: 500; }
  .hdr-nav a.hdr-cta { margin-left: 8px; padding: 10px 20px; border: 1px solid var(--gold); color: var(--gold2); background: none; transition: background-color .25s, color .25s; }
  .hdr-nav a.hdr-cta:hover { background: var(--gold); color: #111; }
}
.menu a.menu-cta { margin-top: 2vw; font-size: 5vw; padding: .7em 1.4em; border: 1px solid var(--gold); color: var(--gold2); }
/* 홈: 첫 화면 위에서는 헤더가 투명했다가 스크롤하면 진해진다 */
body.home .hdr { background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
body.home .hdr.shrunk { background: rgba(13, 12, 11, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
body.home #page > :first-child { padding-top: 0; }

/* 홈 공통 */
body.home { background: var(--ink); color: var(--ivory); font-family: var(--sans); }
body.home main h2, body.home main h3 { font-family: var(--serif); letter-spacing: 0; }
.home .wrap { width: var(--wrap); margin: 0 auto; }
.home em { font-style: italic; color: var(--gold2); }
.kick { font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.kick::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.arw { width: 18px; height: 18px; flex: none; transition: transform .25s; }
.b-solid, .b-line { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; font-weight: 600; transition: background-color .25s, color .25s, border-color .25s; }
.b-solid { background: var(--gold); color: #12100d; border: 1px solid var(--gold); }
.b-solid:hover { background: var(--gold2); border-color: var(--gold2); }
.b-line { border: 1px solid rgba(238, 232, 222, .45); color: var(--ivory); }
.b-line:hover { border-color: var(--ivory); background: rgba(238, 232, 222, .06); }
.b-solid:hover .arw, .b-line:hover .arw, .sector-list a:hover .arw { transform: translateX(4px); }
.h-sec { padding: clamp(80px, 10vw, 150px) 0; }
.h-head { margin-bottom: clamp(40px, 5vw, 72px); }
.h-head h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; font-weight: 500; margin: 0; max-width: 16ch; }
.h-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* 첫 화면 */
.h-hero { min-height: 100svh; justify-content: flex-end; overflow: hidden; }
.h-hero .sec-bg::after { background: linear-gradient(90deg, rgba(8, 7, 6, .82) 0%, rgba(8, 7, 6, .55) 45%, rgba(8, 7, 6, .15) 100%), linear-gradient(0deg, rgba(8, 7, 6, .7) 0%, rgba(8, 7, 6, 0) 45%); }
.h-hero-in { position: relative; z-index: 1; width: var(--wrap); margin: 0 auto; padding: 140px 0 clamp(80px, 11vh, 130px); }
.h-eye { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #d8d1c4; margin: 0 0 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; }
.h-eye .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.h-h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 7vw, 108px); line-height: .98; letter-spacing: -.01em; margin: 0; max-width: 15ch; color: #fff; }
.h-h1 em { display: block; }
.h-lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: #d6d0c5; max-width: 44ch; margin: 30px 0 40px; }
.h-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.h-scroll { position: absolute; z-index: 1; right: 6vw; bottom: 48px; width: 1px; height: 72px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.h-scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold2); animation: scrl 2.2s ease-in-out infinite; }
@keyframes scrl { to { top: 100%; } }

/* 숫자 띠 */
.h-facts { border-bottom: 1px solid var(--line); background: var(--ink); }
.h-facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.h-fact { padding: 44px 28px 44px 0; border-right: 1px solid var(--line); }
.h-fact + .h-fact { padding-left: 32px; }
.h-fact:last-child { border-right: 0; }
.h-fact b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; color: var(--ivory); margin-bottom: 12px; }
.h-fact span { font-size: 13.5px; line-height: 1.5; color: var(--mute); }

/* 서비스 */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.svc-ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink2); }
.svc-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .6, .2, 1); }
.svc:hover .svc-ph img { transform: scale(1.04); }
.svc-n { font-size: 12px; letter-spacing: .2em; color: var(--gold); margin: 26px 0 10px; }
.svc h3 { font-size: clamp(26px, 2.1vw, 32px); line-height: 1.12; font-weight: 500; margin: 0 0 14px; }
.svc p:last-child { font-size: 15px; line-height: 1.75; color: var(--mute); margin: 0; }

/* 작업 */
.h-work { background: var(--ink2); }
.cat-links { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.cat-links a { font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--line); transition: border-color .25s, color .25s; }
.cat-links a:hover { color: var(--gold2); border-color: var(--gold); }
@media (max-width: 640px) { .cat-links { gap: 10px 24px; } .cat-links a { font-size: 15px; } }
.wk-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.wk { grid-column: span 4; color: inherit; text-decoration: none; display: block; }
.wk-1 { grid-column: span 7; } .wk-2 { grid-column: span 5; }
.wk-ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink3); }
.wk-1 .wk-ph, .wk-2 .wk-ph { aspect-ratio: auto; height: clamp(320px, 38vw, 560px); }
.wk-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .6, .2, 1), opacity .4s; }
.wk:hover .wk-ph img { transform: scale(1.04); }
.wk-2 .wk-ph img { object-position: 30% 50%; }
.wk-t { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.wk-t h3 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 500; margin: 0; line-height: 1.15; }
.wk-t p { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }

/* 업종 목록 */
.h-sectors { padding: clamp(70px, 8vw, 120px) 0; }
.sector-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 4vw, 72px); }
.sector-list li { border-bottom: 1px solid var(--line); }
.sector-list a { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; color: var(--ivory); text-decoration: none; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); transition: color .25s; }
.sector-list a:hover { color: var(--gold2); }
.sector-list .arw { width: 24px; height: 24px; color: var(--gold); }

/* 후기 */
.h-why { background: var(--ink2); }
.q-feat { margin: 0 0 clamp(28px, 3vw, 44px); display: grid; grid-template-columns: 5fr 7fr; background: var(--ink3); }
.q-feat-ph { min-height: 380px; position: relative; overflow: hidden; }
.q-feat-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-feat-t { padding: clamp(36px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.q-feat blockquote { margin: 0 0 32px; font-family: var(--serif); font-size: clamp(24px, 2.1vw, 32px); line-height: 1.25; font-weight: 500; position: relative; }
.q-feat blockquote::before, .q blockquote::before { content: "“"; display: block; font-family: var(--serif); color: var(--gold); font-size: 2.2em; line-height: .6; height: .45em; }
.q-feat figcaption b, .q figcaption b { display: block; font-weight: 600; font-size: 14px; color: var(--ivory); letter-spacing: .02em; }
.q-feat figcaption span { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.q-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.q { margin: 0; padding: clamp(28px, 3vw, 44px); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.q blockquote { margin: 0; font-size: 16px; line-height: 1.75; color: #d8d2c7; }
.q blockquote::before { font-size: 54px; margin-bottom: 8px; }
.q figcaption { display: flex; align-items: center; gap: 14px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.q figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.q figcaption b { text-transform: none; letter-spacing: .02em; margin-bottom: 2px; }

/* 팀 */
.team-in { max-width: 980px; text-align: center; }
.team-in .kick { justify-content: center; }
.team-in .kick::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.team-in h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.18; font-weight: 500; margin: 0 auto 30px; max-width: 26ch; }
.team-p p { font-size: 16px; line-height: 1.8; color: var(--mute); margin: 0 auto 6px; max-width: 60ch; }
.team-in .b-line { margin-top: 36px; }

/* 인스타 */
.h-ig { padding: 0 0 clamp(80px, 10vw, 140px); }
.h-ig .h-head h2 { font-size: clamp(30px, 3vw, 44px); }
.ig6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig6 .ig-i { aspect-ratio: 3 / 4; }

/* 마지막 문의 띠 */
.h-cta { position: relative; padding: clamp(100px, 12vw, 180px) 0; overflow: hidden; }
.h-cta-bg { position: absolute; inset: 0; }
.h-cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.h-cta .h-cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 9, 8, .92), rgba(10, 9, 8, .7)); }
.h-cta-in { position: relative; }
.h-cta h2 { font-size: clamp(38px, 5vw, 76px); line-height: 1.04; font-weight: 500; margin: 0 0 22px; max-width: 14ch; }
.h-cta h2 em { display: block; }
.h-cta-p { color: #d0c9bd; font-size: 17px; line-height: 1.7; max-width: 46ch; margin: 0 0 38px; }

/* 등장 효과 (새 요소) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { transition: opacity .9s cubic-bezier(.2, .6, .2, 1) var(--rd, 0s), transform .9s cubic-bezier(.2, .6, .2, 1) var(--rd, 0s); }
  .js .rv:not(.in) { opacity: 0; transform: translateY(28px); }
}

/* 공통 아래쪽 */
.nap.f2 { text-align: left; color: var(--mute); font-family: var(--sans); font-size: 14px; background: #090807; border-top: 1px solid var(--line); padding: clamp(60px, 7vw, 100px) 6vw 36px; }
.f2-in { width: min(1320px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.f2-brand img { width: 76px; height: auto; margin-bottom: 20px; }
.f2-brand p { max-width: 30ch; line-height: 1.7; margin: 0 0 22px; }
.f2-soc { display: flex; gap: 16px; }
.f2-soc a { display: block; width: 20px; height: 20px; color: var(--ivory); opacity: .75; transition: opacity .2s, color .2s; }
.f2-soc a:hover { opacity: 1; color: var(--gold2); }
.f2-soc svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.f2-col h3 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 20px; }
.f2-col a { color: #d6d0c5; text-decoration: none; transition: color .2s; }
.f2-col a:hover { color: var(--gold2); }
.f2-col:not(.f2-contact) a { display: block; margin: 0 0 11px; }
.f2-contact p { margin: 0 0 16px; line-height: 1.75; }
.f2-contact strong { color: var(--ivory); font-weight: 600; }
.f2-bot { width: min(1320px, 100%); margin: clamp(48px, 5vw, 72px) auto 0 !important; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; }

/* 화면 크기별 */
@media (max-width: 1023px) {
  .h-facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .h-fact:nth-child(2) { border-right: 0; }
  .h-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .h-fact:nth-child(3) { padding-left: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc:last-child { grid-column: span 2; }
  .svc:last-child .svc-ph { aspect-ratio: 16 / 9; }
  .wk-1, .wk-2 { grid-column: span 12; }
  .wk { grid-column: span 6; }
  .wk-5 { grid-column: span 12; }
  .q-feat { grid-template-columns: 1fr; }
  .q-feat-ph { min-height: 300px; }
  .ig6 { grid-template-columns: repeat(3, 1fr); }
  .f2-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --wrap: calc(100% - 12vw); }
  .h-hero-in { padding: 120px 0 90px; }
  .h-eye { font-size: 10.5px; letter-spacing: .18em; gap: 0 10px; margin-bottom: 20px; }
  .h-ctas { flex-direction: column; align-items: stretch; }
  .h-ctas a { justify-content: center; }
  .h-scroll { display: none; }
  .h-fact { padding: 28px 12px 28px 0 !important; }
  .h-fact:nth-child(even) { padding-left: 16px !important; }
  .h-fact span { font-size: 12.5px; }
  .svc-grid { grid-template-columns: 1fr; gap: 56px; }
  .svc:last-child { grid-column: auto; }
  .svc:last-child .svc-ph, .svc-ph { aspect-ratio: 4 / 3.4; }
  .wk, .wk-1, .wk-2, .wk-5 { grid-column: span 12; }
  .wk-1 .wk-ph, .wk-2 .wk-ph { height: auto; aspect-ratio: 4 / 3; }
  .wk-t { flex-direction: column; gap: 6px; }
  .sector-list { grid-template-columns: 1fr; }
  .sector-list a { padding: 20px 0; }
  .q-grid { grid-template-columns: 1fr; }
  .q-feat-ph { min-height: 240px; }
  .ig6 { grid-template-columns: repeat(2, 1fr); }
  .ig6 .ig-i:nth-child(n+5) { display: none; }
  .f2-in { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .f2-brand, .f2-contact { grid-column: span 2; }
  .q-feat blockquote { font-size: 21px; }
  .q blockquote { font-size: 15px; }
}

/* =====================================================================
   11/23 전체 페이지 디자인 통일: 홈의 색·글꼴을 나머지 78쪽에도 적용
   (원본 글에 박힌 흰색·회색·세이지 색은 build.mjs 의 RECOLOR 가 따뜻한 상아·회갈색으로 바꾼다)
   ===================================================================== */
body { background: var(--ink); color: var(--ivory); font-family: var(--sans); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
h1 { font-size: calc(1.15rem + 3.3 * var(--u)); line-height: 1.02; }
h2 { font-size: calc(1.1rem + 2 * var(--u)); line-height: 1.08; }
h3 { font-size: calc(1.08rem + 1.3 * var(--u)); line-height: 1.14; }
h4 { font-size: calc(1.05rem + .7 * var(--u)); line-height: 1.2; }
h1.as-h2 { font-size: calc(1.1rem + 2 * var(--u)); line-height: 1.08; }
h2.as-h1 { font-size: calc(1.15rem + 3.3 * var(--u)); line-height: 1.02; }
.rt strong { font-weight: 600; }
.rt p { line-height: 1.7; }
.hdr, .menu, .pag, .nap { background: var(--ink); }
.hdr { box-shadow: 0 1px 0 var(--line); }
.sec { background: var(--bg, var(--ink)); }
.menu a { font-family: var(--serif); color: var(--ivory); }
.burger { color: var(--ivory); }
/* 제목 구역·소개 */
.head h1 { font-size: calc(1.1rem + 2.2 * var(--u)); }
.head-intro, .head-links, .info { color: #cdc6ba; }
.info-k { color: var(--gold); letter-spacing: .2em; font-size: 12px; }
.info-more a, .head-links a { color: var(--ivory); }
/* 프로젝트 목록 카드: 이름(세리프) + 작은 정보줄 (홈 카드와 같은 모양) */
.pf { gap: clamp(28px, 2.6vw, 44px) clamp(18px, 2vw, 32px); padding: clamp(32px, 4vw, 64px) 6vw; }
@media (min-width: 768px) { .pf { padding: clamp(32px, 4vw, 64px) var(--gutter); } }
.pf .ph { aspect-ratio: 4 / 5; background: var(--ink2); }
.pf .ph img { transition: transform 1.2s cubic-bezier(.2, .6, .2, 1), opacity .4s; }
.pf-i:hover .ph img { transform: scale(1.04); opacity: 1; }
.pf-t { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; color: var(--ivory); margin: 18px 0 6px; }
.pf-m { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pf-i:hover .pf-t { color: var(--gold2); }
/* 이전·다음 */
.pag { border-top: 1px solid var(--line); color: var(--ivory); padding-top: clamp(28px, 3vw, 48px); padding-bottom: clamp(28px, 3vw, 48px); }
.pag-t { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.15; letter-spacing: 0; }
.pag-ic { color: var(--gold); }
.pag-l:hover .pag-t { color: var(--gold2); }
/* 갤러리 글·지도·폼 */
.gi figcaption, .reel-cap, .lb-c { color: #cdc6ba; }
.frm { color: #cdc6ba; font-family: var(--sans); }
.frm input[type="text"], .frm input[type="email"], .frm textarea { border: 1px solid rgba(238, 232, 222, .28); border-radius: 0; background: rgba(238, 232, 222, .03); }
.frm input:focus, .frm textarea:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.btn { background: var(--gold); color: #12100d; padding: 16px 32px; font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.btn:hover { background: var(--gold2); opacity: 1; }
/* 새 글 페이지 */
.art { color: #d6d0c5; }
.art h1, .art h2, .art h3 { color: var(--ivory); }
.art-intro, .art-cta, .art-pf-h { color: #cdc6ba; }
.art a, .art-cta a { color: var(--gold2); }
.qa { border-top-color: var(--line); }
.art-pf-h { font-family: var(--serif); font-weight: 500; }
/* 사진 크게 보기 배경 */
.lb { background: rgba(13, 12, 11, .97); }

/* 11/23 모바일 버그 1: 홈 숫자 띠 "EN · 한국어"가 단어 중간에서 줄바꿈되던 문제 */
.h-fact b { white-space: nowrap; }
@media (max-width: 767px) { .h-fact b { font-size: clamp(22px, 6.4vw, 30px); } }
/* 11/23 모바일 버그 2: 2열 갤러리 사진 수가 홀수면 마지막 한 장 옆이 비었다 (/millwork "Commercial") → 마지막 장은 가로 전체 폭 */
.gal-grid[style*="--cols:2"] .gi:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gal-grid[style*="--cols:2"] .gi:last-child:nth-child(odd) .ph { padding-bottom: calc(50% / var(--ar, 1)); }

/* 11/23 인스타그램 링크: 헤더 아이콘 + 홈 마지막 문의 띠 */
.hdr-nav a.hdr-ig { display: inline-flex; align-items: center; padding: 0; background: none; }
.hdr-ig svg { width: 20px; height: 20px; fill: currentColor; transition: color .2s; }
.hdr-nav a.hdr-ig:hover { color: var(--gold2); background: none; }
.h-cta-ig { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--ivory); text-decoration: none; font-size: 15px; letter-spacing: .04em; border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: color .25s, border-color .25s; }
.h-cta-ig svg { width: 22px; height: 22px; fill: var(--gold); flex: none; }
.h-cta-ig b { color: var(--gold2); font-weight: 500; }
.h-cta-ig:hover { color: var(--gold2); border-color: var(--gold); }
