/* M&G DESIGN — 모던 · 미니멀 / 사진 중심 */
:root {
  --ink: #141414;
  --ink-2: #3a3a3a;
  --stone: #8b857c;
  --line: #e4e0da;
  --paper: #faf9f7;
  --white: #fff;
  --wood: #a7825a;
  --en: 'Jost', 'Pretendard', sans-serif;
  --ko: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1280px;
  --pad: clamp(20px, 5vw, 56px);
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ko); font-size: 16px; line-height: 1.7; letter-spacing: -0.01em;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
main { outline: none; min-height: 60vh; transition: opacity .35s var(--ease); }
main.is-leaving { opacity: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(250, 249, 247, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
}
.site-header.is-top { background: transparent; border-color: transparent; color: var(--white); backdrop-filter: none; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 60; }
.brand img { width: 38px; height: 38px; }
.brand .mark-white { display: none; }
.is-top .brand .mark-white { display: block; }
.is-top .brand .mark-black { display: none; }
.brand-text { font-family: var(--en); line-height: 1.1; }
.brand-text b { display: block; font-weight: 500; font-size: 17px; letter-spacing: .14em; }
.brand-text small { display: block; font-size: 9.5px; letter-spacing: .32em; opacity: .7; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav a {
  font-family: var(--en); font-size: 13.5px; letter-spacing: .18em; position: relative; padding: 6px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta {
  font-family: var(--ko); letter-spacing: 0; font-size: 14px; font-weight: 500;
  padding: 9px 18px; border: 1px solid currentColor; border-radius: 999px; transition: background .3s, color .3s;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.is-top .nav .nav-cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 28px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Common type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 14px; font-family: var(--en); font-size: 12.5px;
  letter-spacing: .3em; color: var(--stone); text-transform: uppercase;
}
.label::before {
  content: ''; width: 44px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out) .1s;
}
.is-in .label::before, .label.is-in::before { transform: scaleX(1); }
.h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; margin: 18px 0 0; }
.lead { color: var(--ink-2); font-size: clamp(15px, 1.3vw, 17px); margin: 18px 0 0; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.more {
  font-family: var(--en); font-size: 13px; letter-spacing: .2em; display: inline-flex; align-items: center; gap: 12px;
}
.more i { display: block; width: 36px; height: 1px; background: currentColor; transition: width .5s var(--ease-out); }
.more:hover i { width: 60px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px;
  border-radius: 999px; font-weight: 500; font-size: 15px; transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--ink); color: var(--white); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--wood); }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.u-line {
  background-image: linear-gradient(var(--wood), var(--wood)); background-repeat: no-repeat;
  background-position: 0 92%; background-size: 0% 2px; transition: background-size 1.1s var(--ease-out) .5s;
}
.is-in .u-line, .u-line.is-in { background-size: 100% 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--en); font-size: 11.5px; letter-spacing: .08em; padding: 3px 10px;
  border: 1px solid currentColor; border-radius: 999px; opacity: .85;
}

/* ---------- Reveal (text & images) ---------- */
.lines .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.lines .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.lines.is-in .ln > span { transform: none; }
.lines.is-in .ln:nth-child(2) > span { transition-delay: .14s; }
.lines.is-in .ln:nth-child(3) > span { transition-delay: .28s; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
.mask { position: relative; overflow: hidden; background: #e9e6e1; }
.mask img { width: 100%; height: 100%; object-fit: cover; }
/* 사진 열림 효과: 배경색 커튼이 아래로 걷히며 사진이 드러남 (요소 자체는 보이는 상태라 스크롤 감지가 정확함) */
.mask[data-mask]::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--mask-bg, var(--paper));
  transform-origin: bottom; transform: scaleY(1); transition: transform 1.3s var(--ease-out);
}
.mask[data-mask] img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
.mask[data-mask].is-in::after { transform: scaleY(0); }
.mask[data-mask].is-in img { transform: scale(1); }
.zoom .mask[data-mask].is-in:hover img, .zoom:hover .mask[data-mask].is-in img { transform: scale(1.05); }
.bg-white { background: var(--white); --mask-bg: var(--white); }
.zoom img { transition: transform 1s var(--ease-out), filter .6s; }
.zoom:hover img { transform: scale(1.05); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; color: var(--white); overflow: hidden; background: #111; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide.is-active img { animation: heroZoom 5s linear forwards; }
.hero-slide.is-prev { opacity: 0; z-index: 1; }
.hero-slide.is-prev img { transform: scale(1.1); }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.08) 55%, rgba(0,0,0,.62) 100%);
}
.hero-copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(70px, 12vh, 130px); }
.hero-copy .label { color: rgba(255,255,255,.85); }
.hero h1 { font-size: clamp(34px, 5.4vw, 74px); line-height: 1.25; font-weight: 500; letter-spacing: -0.03em; margin: 20px 0 0; }
.hero-sub { margin: 22px 0 0; font-size: clamp(15px, 1.4vw, 18px); color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-ui {
  position: absolute; z-index: 3; right: var(--pad); bottom: clamp(70px, 12vh, 130px);
  display: flex; align-items: center; gap: 18px; font-family: var(--en); font-size: 13px; letter-spacing: .12em;
}
.hero-bar { width: 120px; height: 1px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero-bar i { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(0); }
.hero-bar i.run { animation: bar 4s linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.hero-arrow { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; transition: background .3s; }
.hero-arrow:hover { background: rgba(255,255,255,.15); }
.scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-family: var(--en); font-size: 10.5px; letter-spacing: .3em; color: rgba(255,255,255,.75);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint i { width: 1px; height: 34px; background: rgba(255,255,255,.6); animation: hint 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--white); padding: 26px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span {
  font-family: var(--en); font-weight: 300; font-size: clamp(26px, 3.6vw, 48px); letter-spacing: .08em;
  padding-right: 48px; white-space: nowrap; color: var(--ink);
}
.marquee span em { font-style: normal; color: var(--wood); padding-right: 48px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Strengths ---------- */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.strength { padding: 36px 32px 40px 0; border-right: 1px solid var(--line); }
.strength + .strength { padding-left: 32px; }
.strength:last-child { border-right: 0; }
.strength .no { font-family: var(--en); font-size: 13px; letter-spacing: .2em; color: var(--stone); }
.strength h3 { font-size: clamp(20px, 2vw, 24px); margin: 18px 0 10px; font-weight: 600; letter-spacing: -0.02em; }
.strength p { margin: 0; color: var(--ink-2); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(50px, 7vw, 90px); }
.stat b { display: block; font-family: var(--en); font-weight: 300; font-size: clamp(44px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.02em; }
.stat b small { font-size: .4em; margin-left: 4px; letter-spacing: 0; font-family: var(--ko); font-weight: 500; }
.stat > span { display: block; margin-top: 12px; color: var(--stone); font-size: 14px; }

/* ---------- Field cards ---------- */
.fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 18px); margin-inline: calc(50% - 50vw + clamp(16px, 2.4vw, 40px)); }
.field { position: relative; display: block; aspect-ratio: 3 / 4.3; color: var(--white); overflow: hidden; }
.field .mask { position: absolute; inset: 0; }
.field::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)); transition: background .6s; }
.field:hover::after { background: linear-gradient(180deg, rgba(0,0,0,.15) 20%, rgba(0,0,0,.72)); }
.field-txt { position: absolute; z-index: 2; left: clamp(20px, 2vw, 32px); right: clamp(20px, 2vw, 32px); bottom: clamp(18px, 1.8vw, 28px); transition: transform .7s var(--ease-out); }
.field:hover .field-txt { transform: translateY(-10px); }
.field-txt .en { font-family: var(--en); font-size: 12px; letter-spacing: .28em; opacity: .85; }
.field-txt h3 { margin: 8px 0 0; font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; }
.field-txt p { margin: 0; max-height: 0; overflow: hidden; font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease-out), max-height .6s var(--ease-out), margin .6s var(--ease-out); }
.field:hover .field-txt p { opacity: .9; transform: none; max-height: 4em; margin-top: 8px; }

/* ---------- Before / After ---------- */
.ba-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ba-tab { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: all .3s; background: var(--white); }
.ba-tab.is-active, .ba-tab:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.ba { position: relative; aspect-ratio: 3 / 2; overflow: hidden; user-select: none; background: #ddd; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba .ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--white); transform: translateX(-1px); pointer-events: none; }
.ba .ba-handle::after {
  content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%; background: var(--white); color: var(--ink);
  display: grid; place-items: center; font-size: 18px; letter-spacing: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.ba .ba-lab { position: absolute; top: 18px; font-family: var(--en); font-size: 12px; letter-spacing: .25em; color: var(--white); background: rgba(0,0,0,.45); padding: 6px 12px; pointer-events: none; }
.ba .ba-lab.b { left: 18px; }
.ba .ba-lab.a { right: 18px; }
.ba { cursor: ew-resize; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.ba:has(input:focus-visible) .ba-handle::after { outline: 2px solid var(--ink); outline-offset: 3px; }
.ba-caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; }
.ba-caption h3 { margin: 0; font-size: 20px; font-weight: 600; }
.ba-caption p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-top: 1px solid var(--ink); counter-reset: step; }
.step { padding: 28px 18px 10px 0; position: relative; }
.step .no { font-family: var(--en); font-size: 13px; letter-spacing: .2em; color: var(--wood); }
.step h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); }
.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.process-item { display: grid; grid-template-columns: auto minmax(200px, 1fr) 1.6fr; gap: clamp(20px, 4vw, 64px); align-items: center; padding: clamp(28px, 3.6vw, 48px) 0; border-bottom: 1px solid var(--line); }
.process-ico { width: clamp(64px, 6vw, 84px); height: clamp(64px, 6vw, 84px); display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--white); transition: background .5s, color .5s, border-color .5s; }
.process-ico svg { width: 44%; height: 44%; }
@media (hover: hover) { .process-item:hover .process-ico { background: var(--ink); color: var(--white); border-color: var(--ink); } }
.process-head .no { font-family: var(--en); font-size: 13px; letter-spacing: .25em; color: var(--wood); }
.process-head h3 { margin: 10px 0 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.03em; }
.process-item p { margin: 0; color: var(--ink-2); }

/* ---------- CTA band (parallax) ---------- */
.cta { position: relative; overflow: hidden; color: var(--white); padding: clamp(110px, 15vw, 200px) 0; text-align: center; background: #111; }
.cta-bg { position: absolute; inset: -18% 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.cta .wrap { position: relative; }
.cta .label { color: rgba(255,255,255,.75); }
.cta .h2 { margin-top: 20px; }
.cta p { color: rgba(255,255,255,.85); margin: 18px 0 34px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Page heads ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(60px, 9vw, 120px)); padding-bottom: clamp(40px, 5vw, 70px); }
.page-head h1 { font-size: clamp(34px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.2; margin: 20px 0 0; }
.page-banner { width: 100%; max-width: 1385px; margin-inline: auto; }

/* ---------- Portfolio list ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14.5px; transition: all .3s; }
.filter span { font-family: var(--en); font-size: 12px; color: var(--stone); margin-left: 6px; }
.filter.is-active, .filter:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter.is-active span, .filter:hover span { color: rgba(255,255,255,.7); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 3.5vw, 48px) clamp(16px, 2vw, 28px); }
.card { display: block; transition: opacity .45s var(--ease), transform .55s var(--ease-out); }
.card.is-hidden { display: none; }
.card.is-fading { opacity: 0; transform: translateY(16px); }
.card .mask { aspect-ratio: 4 / 3; }
.card-meta { margin-top: 16px; }
.card-meta .cat { font-family: var(--en); font-size: 11.5px; letter-spacing: .24em; color: var(--stone); text-transform: uppercase; }
.card-meta h3 { margin: 6px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.45; }
.card-meta .tags { color: var(--ink-2); }
.card .view { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .5s; background: rgba(20,20,20,.28); color: var(--white); font-family: var(--en); letter-spacing: .3em; font-size: 13px; }
@media (hover: hover) { .card:hover .view { opacity: 1; } }
/* 터치 화면: 마우스 올리기가 없으므로 사진 모서리에 작은 VIEW 표시를 항상 보여줍니다 */
@media (hover: none) {
  .card .view { inset: auto 12px 12px auto; opacity: 1; padding: 7px 10px 7px 13px; font-size: 11px; letter-spacing: .24em; background: rgba(17,17,17,.62); backdrop-filter: blur(4px); transition: none; }
}

/* ---------- Case detail ---------- */
.case-hero { padding-top: var(--header-h); }
.case-hero .full { height: clamp(320px, 70vh, 820px); }
.case-hero .split { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; height: clamp(420px, 82vh, 900px); }
.case-hero .split .mask { height: 100%; }
.case-body { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(30px, 6vw, 100px); padding-block: clamp(50px, 7vw, 100px); }
.case-aside { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.case-aside .back { font-family: var(--en); font-size: 12.5px; letter-spacing: .2em; color: var(--stone); display: inline-flex; gap: 10px; align-items: center; }
.case-aside .back:hover { color: var(--ink); }
.case-aside h1 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.35; font-weight: 600; letter-spacing: -0.03em; margin: 22px 0 18px; }
.case-info { margin: 26px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.case-info div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.case-info dt { color: var(--stone); font-family: var(--en); letter-spacing: .14em; font-size: 12.5px; text-transform: uppercase; }
.case-info dd { margin: 0; font-weight: 500; }
.case-lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.6; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.case-points { list-style: none; margin: 22px 0 0; padding: 0; }
.case-points li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.case-points li::before { content: ''; position: absolute; left: 0; top: 22px; width: 14px; height: 1px; background: var(--wood); }
.gallery { display: grid; gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(40px, 5vw, 70px); }
.g-row { display: grid; gap: clamp(10px, 1.2vw, 16px); }
.g-row.full .mask { aspect-ratio: 3 / 2; }
.g-row.pair { grid-template-columns: 1fr 1fr; }
.g-row.pair .mask { aspect-ratio: 3 / 4; }
.g-row.single .mask { aspect-ratio: 3 / 4; width: min(100%, 520px); margin: 0 auto; }
.gallery .mask { cursor: zoom-in; }
.case-section { margin-top: clamp(60px, 8vw, 110px); }
.case-section h2 { font-size: 22px; font-weight: 600; margin: 14px 0 22px; letter-spacing: -0.02em; }
.ptabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.ptab { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--white); transition: all .3s; }
.ptab.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.strip .mask { flex: 0 0 min(78%, 520px); aspect-ratio: 3 / 2; scroll-snap-align: start; cursor: zoom-in; }
.strip .mask.portrait { flex-basis: min(46%, 300px); aspect-ratio: 3 / 4; }
.next-case { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 60px); border-top: 1px solid var(--line); padding: clamp(50px, 6vw, 80px) 0; }
.next-case .mask { aspect-ratio: 3 / 2; }
.next-case .label { margin-bottom: 14px; }
.next-case h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 18px; font-weight: 600; letter-spacing: -0.03em; }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.about-intro p { margin: 0 0 18px; color: var(--ink-2); font-size: 16.5px; }
.collage { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, clamp(150px, 16vw, 240px)) clamp(130px, 13vw, 200px); grid-template-areas: "a a a b" "a a a b" "c d e f"; gap: clamp(8px, 1vw, 14px); }
.collage .mask { height: 100%; cursor: zoom-in; }
.collage .mask:nth-child(1) { grid-area: a; }
.collage .mask:nth-child(2) { grid-area: b; }
.collage .mask:nth-child(3) { grid-area: c; }
.collage .mask:nth-child(4) { grid-area: d; }
.collage .mask:nth-child(5) { grid-area: e; }
.collage .mask:nth-child(6) { grid-area: f; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--paper); padding: clamp(28px, 3vw, 44px); }
.value .en { font-family: var(--en); letter-spacing: .25em; font-size: 12px; color: var(--wood); }
.value h3 { margin: 14px 0 10px; font-size: 20px; font-weight: 600; }
.value p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 8px; }
.form label em { color: var(--wood); font-style: normal; margin-left: 2px; }
.form input[type=text], .form input[type=tel], .form select, .form textarea {
  width: 100%; border: 0; border-bottom: 1px solid #cfcac3; background: transparent; padding: 10px 2px; font: inherit; font-size: 15.5px;
  border-radius: 0; transition: border-color .3s; color: var(--ink);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 400; background: var(--white); cursor: pointer; transition: all .25s; }
.chips input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--wood); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.agree input { margin-top: 5px; accent-color: var(--ink); }
.agree small { display: block; color: var(--stone); font-size: 12.5px; margin-top: 2px; }
.form-msg { grid-column: 1 / -1; font-size: 14px; margin: 0; min-height: 1.5em; }
.form-msg.err { color: #b4472f; }
.form-msg.ok { color: #2f6b45; }
.channels { display: grid; gap: 12px; }
.channel { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease-out); text-align: left; width: 100%; }
.channel:hover { border-color: var(--ink); transform: translateY(-2px); }
.channel .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--paper); }
.channel.kakao .ic { background: #fee500; }
.channel b { display: block; font-size: 16px; }
.channel span { font-size: 14px; color: var(--stone); }
.map { margin-top: 26px; }
.map iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(.85) contrast(1.05); }
.map p { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: #121212; color: rgba(255,255,255,.72); padding: clamp(60px, 7vw, 90px) 0 30px; font-size: 14px; }
.foot-top { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-logo { width: 150px; opacity: .95; }
.foot-info p { margin: 0 0 6px; }
.foot-info b { color: rgba(255,255,255,.95); font-weight: 500; margin-right: 8px; }
.foot-links { display: grid; gap: 10px; align-content: start; justify-items: start; font-family: var(--en); letter-spacing: .14em; font-size: 13px; }
.foot-links a:hover { color: var(--white); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 12.5px; color: rgba(255,255,255,.45); }
.credit { font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,.32); transition: color .3s; }
.credit:hover { color: rgba(255,255,255,.6); }

/* ---------- Quick buttons ---------- */
.quick { position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 40; display: grid; gap: 10px; }
.quick a, .quick button {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 26px rgba(0,0,0,.18);
  background: var(--ink); color: var(--white); transition: transform .35s var(--ease-out), background .3s; position: relative;
}
.quick a:hover, .quick button:hover { transform: translateY(-3px); }
.quick .q-kakao { background: #fee500; color: #191600; }
.quick .q-form { background: var(--white); color: var(--ink); }
.quick .tip {
  position: absolute; right: 68px; top: 50%; transform: translate(8px, -50%); white-space: nowrap; background: var(--ink); color: var(--white);
  font-size: 13px; padding: 6px 12px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.quick a:hover .tip, .quick button:hover .tip { opacity: 1; transform: translate(0, -50%); }

/* ---------- Lightbox ---------- */
[hidden] { display: none !important; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,12,12,.95); display: grid; place-items: center; opacity: 0; transition: opacity .35s; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; transition: opacity .3s; }
.lightbox .lb-btn { position: absolute; color: var(--white); width: 56px; height: 56px; display: grid; place-items: center; font-size: 26px; opacity: .8; }
.lightbox .lb-btn:hover { opacity: 1; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-family: var(--en); letter-spacing: .2em; font-size: 13px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 120; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 6px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--ease-out); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.notfound { padding-top: calc(var(--header-h) + 120px); padding-bottom: 140px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .fields { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--white);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 0 var(--pad);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav a { font-size: 30px; letter-spacing: .1em; font-weight: 300; transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s; }
  .nav .nav-cta { margin-top: 26px; font-size: 16px; padding: 12px 26px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .nav a { transform: none; opacity: 1; }
  .menu-open .nav a:nth-child(2) { transition-delay: .05s; }
  .menu-open .nav a:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav a:nth-child(4) { transition-delay: .15s; }
  .menu-open .nav a:nth-child(5) { transition-delay: .2s; }
  .menu-open .site-header { color: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .hero-arrow { display: none; }
  .menu-open .brand .mark-white { display: block; }
  .menu-open .brand .mark-black { display: none; }
  .hero-ui { left: var(--pad); right: auto; bottom: 26px; }
  .hero-copy { bottom: 96px; }
  .scroll-hint { display: none; }
  .strengths { grid-template-columns: 1fr; }
  .strength, .strength + .strength { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-body { grid-template-columns: 1fr; }
  .case-aside { position: static; }
  .about-intro, .contact-grid, .next-case { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: auto 1fr; align-items: start; row-gap: 14px; }
  .process-item p { grid-column: 2; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fields { grid-template-columns: 1fr 1fr; gap: 8px; margin-inline: calc(50% - 50vw + 12px); }
  .field-txt { left: 14px; right: 14px; bottom: 14px; }
  .field-txt p { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: clamp(200px, 52vw, 320px) repeat(3, clamp(120px, 30vw, 200px)); grid-template-areas: "a a" "b c" "b d" "e f"; }
  .case-hero .split { height: 70vh; }
  .foot-top { grid-template-columns: 1fr; }
  /* 모바일: 하단 고정 상담 바 */
  body { padding-bottom: 58px; }
  .quick { left: 0; right: 0; bottom: 0; grid-template-columns: repeat(3, 1fr); gap: 0; box-shadow: 0 -4px 20px rgba(0,0,0,.12); }
  .quick a, .quick button { width: auto; height: 58px; border-radius: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 500; }
  .quick a:hover, .quick button:hover { transform: none; }
  .quick .tip { position: static; opacity: 1; transform: none; background: none; color: inherit; padding: 0; font-size: 14px; }
  .quick a:hover .tip { transform: none; }
  .quick .q-phone .tip { font-size: 0; }
  .quick .q-phone .tip::after { content: '전화 상담'; font-size: 14px; }
  .hero-copy { bottom: 150px; }
  .hero-ui { bottom: 84px; }
  .ba .ba-handle::after { width: 44px; height: 44px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-slide.is-active img { animation: none; }
  [data-reveal], .lines .ln > span { opacity: 1; transform: none; }
  .mask[data-mask]::after { display: none; }
}
