/* hbpnm.kr v3 — 디자인 규정 v1.2: 연두 #91C23A(면) · Green 900 #3E5E22(글자) · 먹 #231815 · 따뜻한 회색 · Pretendard + Archivo */
:root {
  --ink: #231815;
  --g500: #91C23A;
  --g900: #3E5E22;
  --g50: #F0F6E7;
  --w600: #5E5C57;
  --w400: #94928F;
  --w200: #E2E0DB;
  --w100: #F4F3F0;
  --studio: #EEEDE9;
  --paper: #FFFFFF;
  --max: 1200px;
  --gut: 32px;
  --hd: 64px;
  --kr: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --lat: "Archivo", "Pretendard Variable", Pretendard, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hd); }
body { margin: 0; font-family: var(--kr); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--g900); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.num, .mini b, .spec td { font-variant-numeric: tabular-nums; }

/* ---------- 로고 ---------- */
.logo { display: inline-block; color: var(--ink); line-height: 0; }
.logo svg { width: 100%; height: auto; }
.hd__logo .logo { width: 76px; }
.logo--ft { width: 70px; color: #fff; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 700 15px/1 var(--kr); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #3b2d28; }
.btn--g { background: var(--g500); color: var(--ink); }
.btn--g:hover { background: #a3d153; }
.btn--line { border-color: var(--ink); color: var(--ink); background: rgba(255,255,255,.55); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--line-ink { border-color: var(--ink); color: var(--ink); margin-top: 28px; }
.btn--line-ink:hover { background: var(--ink); color: #fff; }

/* ---------- 헤더 ---------- */
.hd { position: sticky; top: 0; z-index: 30; height: var(--hd); background: rgba(238,237,233,.82); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid rgba(35,24,21,.08); }
.hd__in { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 40px; }
.gnb { display: flex; gap: 30px; margin-right: auto; }
.gnb a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.gnb a:hover { border-bottom-color: var(--ink); }
.hd__call { display: flex; align-items: center; gap: 18px; }
.hd__tel { font: 700 16px var(--lat); text-decoration: none; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.hd__menu { display: none; }

/* ---------- 스크롤 3D 이야기 ---------- */
.story { position: relative; background: var(--studio); }
.story__pin { position: relative; overflow: hidden; }
.story__poster img { width: 100%; height: auto; }
.story__canvas { display: none; }
/* 3D가 없을 때(기본): 포스터 + 문단이 차례로 쌓인다 */
.story__intro, .story__panel, .story__outro { padding: 40px var(--gut); max-width: var(--max); margin: 0 auto; }
.story__nav, .story__bar, .story__cue { display: none; }

/* 3D가 켜지면: 긴 스크롤 구간 안에서 화면이 고정되고 장면이 바뀐다 */
.has3d .story { height: 600vh; height: 600svh; }
.has3d .story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.has3d .story__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
/* 배경 무대: 따뜻한 스튜디오 빛 + 팔레트 격자(규격) + 흐르는 속도선(신속 공급) + 옅은 물류창고 */
.has3d .story__pin { background:
    radial-gradient(ellipse 60% 70% at 64% 42%, #FDFCFA 0%, rgba(253,252,250,0) 70%),
    linear-gradient(180deg, #F3F2EE 0%, #E9E7E1 62%, #DEDBD3 100%); }
.stage-bg { display: none; }
.has3d .stage-bg { display: block; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stage-bg__photo { position: absolute; inset: -4% -4% 0; background: url('../img/gen/bg-warehouse.jpg') center 60% / cover no-repeat;
  opacity: .13; filter: grayscale(.55) sepia(.18) blur(1.5px); mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%), linear-gradient(0deg, #000 60%, transparent);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 60%);
  transform: translate3d(calc(var(--p, 0) * -6%), 0, 0) scale(1.08); }
.stage-bg__grid { position: absolute; left: -10%; right: -10%; bottom: -12%; height: 70%; opacity: .5;
  background-image: linear-gradient(rgba(35,24,21,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(35,24,21,.07) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(700px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 85%); mask-image: linear-gradient(0deg, #000 10%, transparent 85%); }
.stage-bg__lines { position: absolute; inset: 0; opacity: .55;
  background: repeating-linear-gradient(100deg, transparent 0 46px, rgba(145,194,58,.0) 46px, rgba(145,194,58,.13) 47px, transparent 48px 180px),
              repeating-linear-gradient(100deg, transparent 0 90px, rgba(35,24,21,.05) 90px 91px, transparent 91px 260px);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000, transparent 75%);
  background-position: calc(var(--p, 0) * -900px) 0, calc(var(--p, 0) * -500px) 0; }
.stage-bg__mark { position: absolute; right: -2vw; bottom: 4vh; font: 900 26vw/0.8 var(--lat); letter-spacing: -.06em; color: rgba(35,24,21,.035); white-space: nowrap;
  transform: translate3d(calc(var(--p, 0) * -18vw), 0, 0); }
.story__intro, .story__panel, .story__outro, .story__nav, .story__bar { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .stage-bg__photo, .stage-bg__mark { transform: none; } }
.has3d .story__poster { position: absolute; inset: 0; z-index: 1; transition: opacity .6s; }
.has3d .story__poster img { width: 100%; height: 100%; object-fit: cover; }
.has3d .story.is-live .story__poster { opacity: 0; pointer-events: none; }
.has3d .story__intro, .has3d .story__panel, .has3d .story__outro {
  position: absolute; left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); top: calc(50% + var(--hd) / 2); width: min(520px, 42vw);
  margin: 0; padding: 0; translate: 0 -50%; will-change: opacity, transform; }
.has3d .story__panel, .has3d .story__outro { opacity: 0; visibility: hidden; }
.has3d .story__nav { display: flex; flex-direction: column; gap: 14px; position: absolute; right: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); top: 50%; translate: 0 -50%; }
.story__nav a { font-size: 13px; font-weight: 600; color: var(--w400); text-decoration: none; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.story__nav a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--w400); transition: all .2s; }
.story__nav a[aria-current] { color: var(--ink); }
.story__nav a[aria-current]::after { background: var(--g500); border-color: var(--g500); transform: scale(1.35); }
.has3d .story__bar { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(35,24,21,.08); }
.story__bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--ink); }
.has3d .story__cue { display: block; margin-top: 48px; font-size: 13px; font-weight: 600; color: var(--w600); letter-spacing: .02em; }
.story__cue::after { content: ""; display: block; width: 1.5px; height: 40px; margin-top: 10px; background: linear-gradient(var(--w600), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.eyebrow { font: 600 13px var(--lat); font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase; color: var(--w600); margin-bottom: 18px; }
.eyebrow--g { color: var(--g900); }
.story__h1 { font-weight: 900; font-size: clamp(64px, 9.4vw, 150px); line-height: .9; letter-spacing: -.055em; }
.story__lead { margin-top: 28px; font-size: clamp(16px, 1.45vw, 19px); color: var(--w600); font-weight: 500; }
.story__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.verb { display: flex; align-items: baseline; gap: 10px; font-weight: 800; font-size: 22px; margin-bottom: 22px; }
.verb__n { font: 800 14px var(--lat); color: var(--g900); background: var(--g500); border-radius: 999px; padding: 3px 9px; align-self: center; }
.verb__en { font: 600 12px var(--lat); font-stretch: 118%; letter-spacing: .18em; color: var(--w400); }
.story__q { font-size: 17px; color: var(--w600); font-weight: 500; }
.story__h2 { font-weight: 800; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.04em; margin: 6px 0 16px; }
.story__h2--xl { font-size: clamp(48px, 6.6vw, 96px); line-height: .98; font-weight: 900; }
.story__txt { font-size: 17px; line-height: 1.65; color: #3f3633; }
.mini { margin-top: 22px; border-top: 1px solid rgba(35,24,21,.14); }
.mini div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(35,24,21,.14); font-size: 15px; }
.mini dt { color: var(--w600); font-weight: 600; }
.mini b { font: 700 16px var(--lat); }
.more { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 15px; color: var(--g900); text-underline-offset: 4px; }
.more::after { content: " →"; }

/* ---------- 신뢰 띠 ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.facts li { padding: 28px 24px 28px 0; display: grid; gap: 4px; align-content: start; border-bottom: 1px solid var(--w200); }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--w200); }
.facts span { font-size: 13px; color: var(--w400); font-weight: 600; }
.facts b { font-size: 17px; font-weight: 700; }
.facts em { font: 500 13px var(--lat); font-style: normal; color: var(--w400); }

/* ---------- 공통 제목 ---------- */
.sec-hd { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.18; letter-spacing: -.035em; }
.sec-hd__sub { color: var(--w600); font-size: 15.5px; max-width: 440px; }

/* ---------- 품목 찾기 ---------- */
.finder { padding: 110px 0 100px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 26px 26px 24px; background: var(--w100); border-radius: 18px; overflow: hidden; transition: background-color .2s; }
.card:hover { background: #ECEAE5; }
.card__ico { position: absolute; right: -6px; top: -6px; width: 150px; height: 150px; object-fit: contain; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.card:hover .card__ico { transform: rotate(-6deg) scale(1.05); }
.card h3 { margin-top: auto; font-size: 24px; font-weight: 800; letter-spacing: -.02em; position: relative; }
.card h3 span { font: 600 13px var(--lat); color: var(--w400); margin-left: 6px; }
.card__spec { margin-top: 6px; color: var(--w600); font-size: 14.5px; position: relative; }
.card > a { margin-top: 14px; font-weight: 700; font-size: 14.5px; color: var(--g900); text-underline-offset: 4px; position: relative; }
.card > a::after { content: " →"; }
.card--list { background: var(--ink); color: #fff; }
.card--list:hover { background: #2f221e; }
.card--list h3 { margin-top: 0; }
.card--list > a { color: var(--g500); margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); font-size: 14px; text-decoration: none; }
.tags a:hover { border-color: var(--g500); color: var(--g500); }

/* ---------- 대표 제품 ---------- */
.film { padding: 100px 0; background: var(--studio); }
.film__in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.layers { width: 100%; height: auto; overflow: visible; }
.layers__stack path { transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.film__cap { margin-top: 8px; font-size: 13px; color: var(--w400); text-align: center; }
.film__txt { margin-top: 20px; color: #3f3633; font-size: 16.5px; max-width: 520px; }
.spec { width: 100%; margin-top: 28px; border-collapse: collapse; font-size: 14.5px; background: var(--paper); border-radius: 12px; overflow: hidden; }
.spec th, .spec td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--w200); }
.spec thead th { font-size: 13px; color: var(--w600); font-weight: 600; background: var(--g50); }
.spec tbody th { font-weight: 700; }
.spec tbody tr:last-child > * { border-bottom: 0; }

/* ---------- 거래 흐름 ---------- */
.flow { padding: 100px 0; }
.flow__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.flow__steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 10px; border-radius: 5px; background: var(--g500); }
.flow__steps li { position: relative; counter-increment: s; padding-top: 72px; }
.flow__steps li::before { content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font: 800 16px var(--lat); box-shadow: 0 0 0 6px var(--paper); }
.flow__steps b { display: block; font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.flow__steps span { font-size: 15px; color: var(--w600); }

/* ---------- 자료실 ---------- */
.library { padding: 100px 0; background: var(--w100); }
.lib { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lib__cat { display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; padding: 26px; border-radius: 18px; background: var(--paper); text-decoration: none; border: 1px solid var(--w200); transition: border-color .2s; }
.lib__cat:hover { border-color: var(--ink); }
.lib__cat b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.lib__cat span { font: 500 14px var(--lat); color: var(--w600); }
.lib__cat span::before { content: "PDF"; display: inline-block; margin-right: 10px; padding: 2px 8px; border-radius: 4px; background: var(--ink); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .06em; }
.lib__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; margin-top: 8px; }
.lib__list a { display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--w200); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.lib__list a::after { content: "규격표 PDF ↓"; font-size: 12.5px; font-weight: 600; color: var(--g900); }
.lib__list a:hover { color: var(--g900); }

/* ---------- 견적 문의 ---------- */
.quote { padding: 100px 0; background: var(--ink); color: #fff; }
.quote__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.quote__lead { margin-top: 16px; color: #CFCAC2; font-size: 16.5px; }
.contact { margin-top: 36px; }
.contact div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact dt { color: #9d978f; font-size: 14px; padding-top: 2px; }
.contact a { color: #fff; }
.contact__tel { font: 800 26px var(--lat); text-decoration: none; color: var(--g500) !important; letter-spacing: .01em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; background: var(--paper); color: var(--ink); border-radius: 20px; padding: 32px; }
.field { margin-bottom: 14px; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form em { color: var(--g900); font-style: normal; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 13px; border: 1px solid #CFCCC6; border-radius: 10px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--g500); outline-offset: 0; border-color: var(--g500); }
.hp { display: none; }
.privacy { font-size: 13.5px; color: var(--w600); margin: 2px 0 12px; }
.privacy summary { cursor: pointer; font-weight: 600; }
.privacy p { margin-top: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin-bottom: 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--g900); }
.status { margin-top: 12px; font-size: 14px; min-height: 1.4em; color: var(--g900); }

/* ---------- 푸터·하단 고정 ---------- */
.ft { padding: 40px 0 48px; background: #1A1210; color: #BDB9B2; font-size: 14px; }
.ft__in { display: grid; gap: 12px; }
.ft a { color: #fff; }
.ft__c { color: #85817A; font-size: 13px; }
.dock { display: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .film__in, .quote__in { grid-template-columns: 1fr; gap: 44px; }
  .lib__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px), (max-aspect-ratio: 20/21) {
  :root { --gut: 18px; --hd: 58px; }
  .gnb { display: none; position: absolute; left: 0; right: 0; top: var(--hd); flex-direction: column; gap: 0; background: var(--studio); border-bottom: 1px solid var(--w200); padding: 4px var(--gut) 12px; }
  .gnb.is-open { display: flex; }
  .gnb a { padding: 14px 0; border-bottom: 1px solid var(--w200); font-size: 16px; }
  .hd__in { gap: 12px; }
  .hd__logo { margin-right: auto; }
  .hd__call .btn, .hd__tel { display: none; }
  .hd__menu { display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
  .hd__menu i { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
  .hd__menu[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .hd__menu[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

  .has3d .story__intro, .has3d .story__panel, .has3d .story__outro { left: var(--gut); right: var(--gut); width: auto; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); translate: none; }
  .has3d .story__pin::after { z-index: 1; content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(rgba(238,237,233,0), rgba(238,237,233,.92) 38%); pointer-events: none; }
  .has3d .story__intro, .has3d .story__panel, .has3d .story__outro { z-index: 2; }
  .has3d .story__nav { display: none; }
  .has3d .story__cue { display: none; }
  .story__h1 { font-size: clamp(56px, 17vw, 88px); }
  .story__lead { margin-top: 16px; }
  .story__lead .br-w { display: none; }
  .story__cta { margin-top: 20px; }
  .story__cta .btn--lg { min-height: 48px; padding: 0 20px; font-size: 15px; }
  .verb { margin-bottom: 10px; font-size: 19px; }
  .story__q { font-size: 15px; }
  .story__h2 { font-size: 34px; margin: 2px 0 8px; }
  .story__h2--xl { font-size: 46px; }
  .story__txt { font-size: 15px; }
  .mini { margin-top: 12px; }
  .mini div { grid-template-columns: 64px 1fr; padding: 8px 0; font-size: 14px; }
  .more { margin-top: 10px; font-size: 14px; }

  .facts { grid-template-columns: 1fr 1fr; }
  .facts li, .facts li + li { padding: 18px 12px 18px 0; border-left: 0; }
  .facts li:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--w200); }
  .facts b { font-size: 15.5px; }
  .finder, .film, .flow, .library, .quote { padding: 72px 0; }
  .sec-hd { margin-bottom: 26px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 190px; }
  .card__ico { width: 124px; height: 124px; }
  .flow__steps { grid-template-columns: 1fr; gap: 26px; }
  .flow__steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 10px; height: auto; }
  .flow__steps li { padding: 6px 0 0 78px; min-height: 56px; }
  .lib { grid-template-columns: 1fr; }
  .lib__list { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .dock { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--w200); }
  .dock a { display: grid; place-items: center; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); }
  .dock .dock__q { background: var(--ink); color: #fff; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.layers__n { font: 700 13px var(--lat); font-stretch: 118%; letter-spacing: .16em; fill: var(--g900); }

/* 품목 찾기: 주력 2종은 넓게 */
.cards { grid-template-columns: repeat(4, 1fr); }
.card--main { grid-column: span 2; min-height: 330px; background: var(--studio); }
.card--main .card__ico { width: 250px; height: 250px; right: 6px; top: 10px; }
.card--main h3 { font-size: 30px; }
.card__tag { position: relative; align-self: flex-start; font: 700 12px var(--kr); padding: 3px 10px; border-radius: 999px; background: var(--g500); color: var(--ink); }
.card--list { grid-column: span 1; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } .card--main { grid-column: span 2; } }
@media (max-width: 860px), (max-aspect-ratio: 20/21) {
  .cards { grid-template-columns: 1fr; } .card--main { grid-column: auto; min-height: 280px; }
  .card--main .card__ico { width: 190px; height: 190px; }
  .card--main h3 { font-size: 25px; }
}
.card--main { background: var(--w100); }
.card--main:hover { background: var(--w100); box-shadow: inset 0 0 0 1px var(--w200); }
.spec th { white-space: nowrap; }
@media (max-width: 860px), (max-aspect-ratio: 20/21) {
  .spec { font-size: 13px; }
  .spec th, .spec td { padding: 10px 8px; }
}

/* ===== 메뉴 7개: 간격 줄이고 좁은 화면에선 전화번호를 숨긴다 ===== */
.gnb { gap: 22px; }
.gnb a { font-size: 14.5px; white-space: nowrap; }
.gnb a[aria-current] { border-bottom-color: var(--g500); }
.hd__in { gap: 28px; }
@media (max-width: 1320px) { .hd__tel { display: none; } }
@media (max-width: 1120px) and (min-width: 861px) { .gnb { gap: 16px; } .gnb a { font-size: 13.5px; } }

/* ===== 품목·배송 페이지 ===== */
.has3d .story--pg { height: calc(var(--len, 600) * 1vh); height: calc(var(--len, 600) * 1svh); }
.story__h1--pg { font-size: clamp(52px, 7vw, 112px); }
.has3d .story__intro--pg { position: absolute; }
.pg-sec { padding: 110px 0 90px; background: var(--paper); }
.pg-sec .spec { margin-top: 8px; }
.pg-links { display: flex; gap: 22px; flex-wrap: wrap; margin: 18px 0 8px; }
.pg-types { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pg-type { background: var(--w100); border-radius: 18px; padding: 22px 22px 24px; }
.pg-type__sw { display: block; width: 100%; height: 76px; border-radius: 10px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(35,24,21,.08), inset 0 -18px 30px -18px rgba(0,0,0,.18); margin-bottom: 18px; }
.pg-type h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.pg-type p { font-size: 14.5px; color: var(--w600); margin-top: 4px; }
.pg-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
.pg-shot { margin: 0; position: relative; border-radius: 20px; overflow: hidden; background: var(--w100); }
.pg-shot img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pg-shot--wide { grid-column: span 2; }
.pg-shot--wide img { aspect-ratio: 21 / 9; }
.pg-shot:hover img { transform: scale(1.03); }
.pg-shot figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.pg-list { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pg-list a { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; align-items: start; padding: 14px; border-radius: 16px; background: var(--w100); text-decoration: none; transition: background-color .15s; }
.pg-list a:hover { background: var(--w200); }
.pg-list img { grid-row: span 2; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #fff; }
.pg-list b { font-size: 17px; margin-top: 6px; }
.pg-list span { font-size: 14px; color: var(--w600); }
.pg-cta { background: var(--ink); color: #fff; padding: 90px 0; }
.pg-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.pg-cta .h2 { color: #fff; }
.pg-cta .btn--line { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.pg-cta .btn--line:hover { background: #fff; color: var(--ink); }
.pg .flow__steps { margin-top: 8px; }
@media (max-width: 1080px) { .pg-types { grid-template-columns: repeat(2, 1fr); } .pg-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px), (max-aspect-ratio: 20/21) {
  .pg-sec { padding: 72px 0 60px; }
  .pg-gallery, .pg-list { grid-template-columns: 1fr; }
  .pg-shot--wide { grid-column: auto; }
  .pg-shot--wide img, .pg-shot img { aspect-ratio: 4 / 3; }
  .pg-types { grid-template-columns: 1fr 1fr; gap: 10px; }
  .story__h1--pg { font-size: clamp(44px, 12vw, 72px); }
}

/* 제목은 단어 중간에서 끊지 않는다(body의 overflow-wrap:anywhere 무효화) — 폭이 모자라면 글자 크기를 줄인다 */
h1, h2, h3, .story__h1, .story__h2, .h2 { overflow-wrap: normal; word-break: keep-all; }
.story__h1--pg { font-size: clamp(44px, 5.6vw, 96px); }
.has3d .story__intro--pg { width: min(600px, 46vw); }
@media (max-width: 860px), (max-aspect-ratio: 20/21) { .story__h1--pg { font-size: clamp(40px, 11.5vw, 68px); } .has3d .story__intro--pg { width: auto; } }
/* 글 뒤 옅은 막: 3D 물건이 글 아래로 지나가도 읽히게(데스크톱=왼쪽, 모바일=아래쪽) */
.has3d .story__pin::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(243,242,238,.9) 0%, rgba(243,242,238,.78) 26%, rgba(243,242,238,0) 46%); }
.has3d .story__intro, .has3d .story__panel, .has3d .story__outro, .has3d .story__nav, .has3d .story__bar { z-index: 3; }
@media (max-width: 860px), (max-aspect-ratio: 20/21) {
  .has3d .story__pin::before { background: linear-gradient(0deg, rgba(243,242,238,.94) 0%, rgba(243,242,238,.8) 34%, rgba(243,242,238,0) 52%); }
}

/* ===== 글 간격 정비(9/24 의장: 위아래·좌우가 좁다) — 제목 자간·행간을 풀고 요소 사이 여백을 넓힌다 ===== */
body { line-height: 1.7; letter-spacing: -.005em; }
.story__h1 { line-height: 1.04; letter-spacing: -.035em; }
.story__h1--pg { margin: 16px 0 26px; }
.story__h2 { line-height: 1.2; letter-spacing: -.028em; margin: 12px 0 22px; }
.story__q { font-size: 17.5px; line-height: 1.5; letter-spacing: 0; }
.story__txt { font-size: 17.5px; line-height: 1.85; letter-spacing: 0; max-width: 34em; }
.story__lead { line-height: 1.8; }
.verb { margin-bottom: 26px; gap: 12px; }
.mini { margin-top: 28px; }
.mini div { padding: 13px 0; grid-template-columns: 84px 1fr; gap: 16px; }
.more { margin-top: 24px; }
.has3d .story__cue { margin-top: 56px; }
.has3d .story__intro, .has3d .story__panel, .has3d .story__outro { width: min(560px, 44vw); }
.has3d .story__intro--pg { width: min(640px, 48vw); }
.h2 { line-height: 1.28; letter-spacing: -.025em; }
.sec-hd { margin-bottom: 52px; gap: 32px; }
.sec-hd__sub { line-height: 1.75; }
.pg-type { padding: 26px 26px 30px; }
.pg-type h3 { margin-bottom: 6px; }
.pg-type p { line-height: 1.7; }
.pg-list a { padding: 18px; column-gap: 20px; }
.pg-list span { line-height: 1.65; margin-top: 4px; }
.flow__steps { gap: 36px; }
.flow__steps b { margin-bottom: 10px; }
.flow__steps span { line-height: 1.75; }
.card { padding: 30px 30px 28px; }
.card__spec { line-height: 1.65; margin-top: 10px; }
.pg-cta .h2 { line-height: 1.32; }
.ft { line-height: 1.8; }
@media (max-width: 860px), (max-aspect-ratio: 20/21) {
  .story__h1--pg { margin: 10px 0 16px; }
  .story__h2 { margin: 8px 0 14px; line-height: 1.22; }
  .story__txt, .story__q { font-size: 15.5px; }
  .story__txt { line-height: 1.75; }
  .verb { margin-bottom: 14px; }
  .mini { margin-top: 16px; }
  .has3d .story__intro, .has3d .story__panel, .has3d .story__outro, .has3d .story__intro--pg { width: auto; }
  .sec-hd { margin-bottom: 32px; }
}

/* ===== 회사소개 ===== */
.ab-sec + .ab-values, .ab-values + .ab-sec, .ab-sec + .ab-letter { border-top: 1px solid var(--w200); }
.ab-facts { border-top: 2px solid var(--ink); }
.ab-facts div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--w200); }
.ab-facts dt { font-weight: 700; color: var(--w600); }
.ab-facts dd { font-size: 17px; font-weight: 600; line-height: 1.7; }
.ab-facts dd span { display: inline-block; margin-left: 10px; font: 500 14px var(--lat); color: var(--w400); }
.ab-values { background: var(--studio); }
.ab-vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ab-vals > li { position: relative; background: var(--paper); border-radius: 20px; padding: 34px 28px 32px; border-top: 6px solid var(--g500); }
.ab-vals__n { display: block; font: 800 44px/1 var(--lat); color: var(--w200); margin-bottom: 22px; }
.ab-vals b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.ab-vals b em { font: 600 12px var(--lat); font-style: normal; letter-spacing: .16em; color: var(--g900); margin-left: 8px; vertical-align: middle; }
.ab-vals p { color: #3f3633; line-height: 1.75; margin-bottom: 20px; }
.ab-vals ul { border-top: 1px solid var(--w200); padding-top: 14px; display: grid; gap: 8px; }
.ab-vals ul li { font-size: 14.5px; color: var(--w600); padding-left: 18px; position: relative; }
.ab-vals ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--g500); }
.ab-biz { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ab-biz a { display: flex; flex-direction: column; gap: 10px; min-height: 180px; padding: 28px; border-radius: 18px; background: var(--w100); text-decoration: none; transition: background-color .15s; }
.ab-biz a:hover { background: var(--w200); }
.ab-biz b { font-size: 20px; font-weight: 800; }
.ab-biz b::after { content: " →"; color: var(--g900); }
.ab-biz span { font-size: 14.5px; color: var(--w600); line-height: 1.7; }
.ab-letter { background: var(--w100); }
.ab-letter__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.ab-letter .h2 { font: 800 clamp(40px, 5vw, 72px)/1.02 var(--lat); letter-spacing: -.03em; }
.ab-letter__txt { display: grid; gap: 20px; font-size: 16.5px; line-height: 1.9; color: #3f3633; }
@media (max-width: 1080px) { .ab-vals, .ab-biz { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px), (max-aspect-ratio: 20/21) {
  .ab-facts div { grid-template-columns: 1fr; gap: 4px; padding: 16px 2px; }
  .ab-facts dd span { display: block; margin: 2px 0 0; }
  .ab-vals, .ab-biz { grid-template-columns: 1fr; }
  .ab-letter__in { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== 장면 이름표(3D 위치에 붙는 HTML 글씨) ===== */
.scene-tags { display: none; }
.has3d .scene-tags { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.scene-tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; will-change: transform;
  padding: 6px 13px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink);
  font: 700 14px/1.2 var(--kr); letter-spacing: -.01em; box-shadow: 0 4px 14px rgba(35,24,21,.2), 0 0 0 1px rgba(35,24,21,.08); }
.scene-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--g500); box-shadow: 0 0 0 3px rgba(145,194,58,.25); }
.scene-tag::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); box-shadow: 2px 2px 3px rgba(35,24,21,.08); }
.scene-tag--sm { font-size: 12.5px; padding: 5px 11px 5px 9px; }
.scene-tag--sm span { color: var(--w600); font-weight: 600; }
@media (max-width: 860px), (max-aspect-ratio: 20/21) { .scene-tag { font-size: 12px; padding: 4px 10px 4px 8px; } .scene-tag--sm { display: none; } }
