:root {
  --paper: #ffffff;
  --tint: #d5dce0;
  --loader-bg: #ff4a36;
  --ink: #1b1e24;
  --gray: #8a8f97;
  --line: #d9dde1;
  --box: #e8ecef;
  --accent: #ff4a36;
  --o-cut: var(--paper);
  --side: 33.75vw;
  --band: 84px;
  --pad: 28px;
  --serif: 'Noto Serif KR', 'Times New Roman', serif;
  --sans: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
}
body.tinted { --paper: var(--tint); --box: #c7d0d5; --line: #bcc5ca; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  transition: background-color .7s ease;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.viewer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); transition: border-color .7s; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.14;
  word-break: keep-all;
}
.meta, .label, .chip, .rows, .tabs, .index, .contact-foot, .info-meta, .draft, .form span, .form legend {
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ---------- 선 그림 ---------- */
.iso { display: block; width: 100%; height: 100%; overflow: visible; }
.iso polygon, .iso polyline {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill .7s ease;
}
.iso .l { fill: none; }
.iso .thin { stroke-opacity: .45; }
.iso.draw polygon, .iso.draw polyline,
.info-art .iso :is(polygon, polyline),
.iso-box .iso :is(polygon, polyline),
.side-foot .iso :is(polygon, polyline) {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s var(--ease), fill .7s ease;
}
.loaded .iso.draw :is(polygon, polyline),
.in .iso :is(polygon, polyline),
.at-contact .side-foot .iso :is(polygon, polyline) { stroke-dashoffset: 0; }
.no-intro .iso :is(polygon, polyline) { transition: none; stroke-dashoffset: 0; }

/* ---------- 로딩 → 위 빨간 띠 ---------- */
.loader {
  position: fixed; left: 0; right: 0; top: 0; z-index: 15;
  height: 100vh; height: 100dvh;
  background: var(--loader-bg);
  transition: height 1.1s var(--ease);
}
.is-loading .loader { z-index: 100; }
.loader.rise { height: 0; }
.loader.done { display: none; }
/* 위 흰 바: 로고 · 메뉴 뒤로 본문이 비치지 않게 */
.topbar { position: fixed; left: 0; right: 0; top: 0; height: var(--band); z-index: 14; background: var(--paper); transition: background-color .7s ease; }
.loader.instant, .loader.instant * { transition: none !important; }
.loader-logo {
  position: fixed; inset: 0; z-index: 101;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #111; --o-cut: var(--loader-bg);
  pointer-events: none;
}
.loader-logo .wm { font-size: 10.6vw; transform-origin: 0 0; transition: transform 1.1s var(--ease); }
.loader-logo p { margin-top: 1.6vw; font-size: 13px; font-weight: 700; letter-spacing: .06em; transition: opacity .3s; }
.loader.rise .loader-logo p, .loader.rise .loader-count { opacity: 0; }
.logo { opacity: 0; }
.loader.done ~ .logo { opacity: 1; }
.loader-count {
  transition: opacity .3s;
  position: absolute; left: var(--pad); bottom: var(--pad);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-variant-numeric: tabular-nums;
}

.bracket { position: relative; display: inline-block; width: 22px; height: 28px; flex: none; }
.bracket::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px solid currentColor; }
.bracket::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid currentColor; }
.index .bracket { width: 9px; height: 11px; margin-right: 27px; }

.corner { position: absolute; right: 12px; top: 12px; width: 20px; height: 24px; }
.corner::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; border-right: 1px solid currentColor; }
.corner::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid currentColor; }

/* ---------- 왼쪽 ---------- */
.side {
  position: fixed; left: 0; top: var(--band); bottom: 0; z-index: 10;
  width: var(--side);
  padding: 0 var(--pad) var(--pad);
  border-right: 1px solid var(--line);
  background: var(--paper);
  display: flex; flex-direction: column;
  transition: background-color .7s ease, border-color .7s;
}
.wm { display: inline-flex; align-items: center; font-weight: 900; letter-spacing: -.055em; line-height: .8; white-space: nowrap; }
.wm .o { width: .79em; height: .79em; margin-left: .03em; flex: none; }
.logo { position: fixed; left: var(--pad); top: 26px; z-index: 25; color: #111; --o-cut: var(--paper); line-height: 0; }
.logo .wm { font-size: 34px; }

.side-art {
  --k: 0;
  height: calc((1 - var(--k)) * (100vh - 360px));
  min-height: 0;
  opacity: calc(1 - var(--k) * 1.15);
  display: grid; place-items: center;
  overflow: hidden;
}
.side-art .iso { width: calc(58% + (1 - var(--k)) * 10%); height: auto; max-height: 92%; }
.hero-art { display: none; }

.index { margin-top: 30px; display: flex; flex-direction: column; transition: opacity .5s; }
.index a {
  position: relative; display: flex; align-items: center;
  height: 32px; border-top: 1px solid var(--line);
  color: var(--gray);
  transition: color .3s, border-color .7s;
}
.index a:last-child { border-bottom: 1px solid var(--line); }
.index a span { width: 36px; }
.index .index-head { color: var(--ink); }
.index a.on, .index a:hover { color: var(--ink); }
.index .bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--ink); }
.index a:not(.on) .bar { opacity: 0; }

.side-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); height: 42vh; opacity: 0; transition: opacity .6s; pointer-events: none; }
.side-foot .iso { height: 100%; }
.at-contact .side-foot { opacity: 1; }
.at-contact .index, .at-contact .draft { opacity: 0; pointer-events: none; }


/* ---------- 위 탭 ---------- */
.tabs {
  position: fixed; top: 27px; right: var(--pad); z-index: 20;
  display: flex; border: 1px solid #111; border-top: 0; border-right: 0;
  background: transparent;
}
.tabs a { padding: 6px 10px; border-left: 1px solid #111; border-top: 1px solid #111; border-right: 0; transition: background .2s, color .2s; }
.tabs a:last-child { border-right: 1px solid #111; }
.tabs a:hover { background: rgba(0, 0, 0, .06); }
.tabs a.on { background: #111; color: #fff; }

/* ---------- 오른쪽 아래 버튼 ---------- */
.cta, .cta-block {
  position: fixed; right: 12px; bottom: 12px; z-index: 20;
  width: 280px; height: 99px;
  background: var(--accent); color: #111;
  display: flex; align-items: flex-end;
  padding: 0 18px 17px;
  font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  transition: transform .6s var(--ease), background-color .3s;
}
.cta:hover, .cta-block:hover { background: #111; color: #fff; }
.cta .corner, .cta-block .corner { transition: transform .4s var(--ease); }
.cta:hover .corner, .cta-block:hover .corner { transform: translate(3px, -3px); }
.is-loading .cta, .at-contact .cta { transform: translateY(130%); }

/* ---------- 본문 ---------- */
.main { margin-left: var(--side); padding: 0 var(--pad); }

.chips { display: flex; align-items: center; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 25px; padding: 0 10px;
  border: 1px solid #111; border-radius: 999px;
  white-space: nowrap; transition: background .2s, color .2s;
}
.chip.sq { border-radius: 0; }
a.chip:hover { background: #111; color: #fff; }
.chip .ico { width: 15px; height: 15px; }
.ico-chip { width: 25px; padding: 0; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.link { width: 20px; border-top: 1px solid #111; }

/* 첫 화면 */
.hero { position: relative; min-height: 100vh; padding-top: calc(var(--band) + 30px); }
[id] { scroll-margin-top: var(--band); }
.label { display: flex; align-items: center; gap: 10px; height: 24px; }
.label .ico { width: 24px; height: 24px; stroke-width: 1; }
.hero-title { margin-top: 26px; font-size: clamp(34px, 3.85vw, 64px); }
.main .display { max-width: min(15em, 100% - 240px); }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: inline-block; transform: translateY(108%); }
.ln.dim { color: #9aa0a8; }
.loaded .ln > span { transform: none; transition: transform 1s var(--ease); }
.loaded .ln:nth-child(1) > span { transition-delay: .45s; }
.loaded .ln:nth-child(2) > span { transition-delay: .53s; }
.loaded .ln:nth-child(3) > span { transition-delay: .61s; }
.loaded .ln:nth-child(4) > span { transition-delay: .69s; }
.loaded .ln:nth-child(5) > span { transition-delay: .77s; }
.no-intro .ln > span { transition: none !important; }
.hero-chips { position: absolute; left: 0; bottom: 30px; }

/* 나타나기 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* 작업 */
.case { padding-top: 30px; padding-bottom: 180px; }
.case > hr { margin-top: 28px; }
.case .meta { margin-top: 34px; color: var(--gray); line-height: 1.3; }
.case-title { font-size: clamp(48px, 5.2vw, 84px); margin: 92px 0 52px; line-height: 1.05; }

.info {
  display: grid;
  grid-template-columns: minmax(0, .95fr) 116px minmax(0, 2.6fr);
  column-gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  transition: border-color .7s;
}
.info .case-icons { display: flex; gap: 8px; align-self: start; }
.info-art {
  width: 116px; height: 116px; padding: 16px;
  background: var(--box); transition: background-color .7s;
}
.info-art .iso { width: 100%; height: 100%; }
.info-art .iso polygon { fill: var(--box); }
.info .desc { font-size: 14px; line-height: 1.6; color: #6d727a; max-width: 30em; word-break: keep-all; }
.info .rows { grid-column: 2 / -1; margin-top: 40px; }
.info-meta { line-height: 1.3; }
.info-meta span { color: var(--gray); }
.info-meta b { font-weight: 400; }

.rows > div {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px;
  height: 32px; align-items: center;
  border-top: 1px solid var(--line); color: var(--gray);
  transition: border-color .7s;
}
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dd { color: #5d636b; }

/* 사진 배치 */
.collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; row-gap: 110px; margin-top: 150px; align-items: start; }
.shot { position: relative; cursor: pointer; clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
.shot.in { clip-path: inset(0 0 0 0); }
.shot.bleed { margin-right: calc(var(--pad) * -1); }
.shot .ph { width: 100%; height: 100%; overflow: hidden; background: var(--box); }
.shot .ph > svg, .shot .ph > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover .ph > svg, .shot:hover .ph > img { transform: scale(1.035); }
.shot figcaption {
  position: absolute; left: 0; top: 0;
  display: flex; gap: 10px; padding: 6px 10px;
  background: var(--paper); font-size: 12px;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s;
}
.shot figcaption span { color: var(--gray); }
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: none; }
.iso-box { border: 1px solid var(--line); padding: 7%; cursor: default; display: grid; place-items: center; }

/* 서비스 · 소개 · 문의 공통 */
.services, .about, .contact { padding-top: 30px; }
.services > hr, .about > hr, .contact > hr { margin-top: 28px; }
.services > .display, .about > .display, .contact > .display { font-size: clamp(34px, 3.85vw, 64px); margin: 34px 0 120px; }
.services { padding-bottom: 60px; }
.svc { margin-bottom: 110px; }
.svc .info-meta b { color: var(--ink); }

.about { padding-bottom: 160px; }
.process-wrap { margin-top: 110px; }
.process { grid-column: 2 / -1; list-style: none; }
.process li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.5fr); column-gap: 28px;
  align-items: baseline; padding: 16px 0 18px;
  border-bottom: 1px solid var(--line); transition: border-color .7s;
}
.process li:first-child { border-top: 1px solid var(--line); }
.process span { font-size: 12px; color: var(--gray); }
.process b { font-family: var(--serif); font-weight: 300; font-size: 24px; letter-spacing: -.03em; }
.process p { font-size: 14px; color: #6d727a; }

.contact { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 12px; }
.contact > .display { margin-bottom: 60px; }
.contact-grid { margin-top: auto; display: grid; grid-template-columns: 1fr minmax(0, 520px); column-gap: 28px; align-items: end; margin-right: calc(var(--pad) * -1 + 12px); }
.contact-foot { display: flex; flex-direction: column; gap: 3px; padding-bottom: 6px; }
.contact-foot a:hover { color: var(--accent); }

.form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 26px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form .wide, .form .pick, .form .form-status, .form .cta-block { grid-column: 1 / -1; }
.form input:not([type=checkbox]), .form textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 4px 0 12px; resize: none; outline: none; border-radius: 0;
  transition: border-color .2s;
}
.form input::placeholder, .form textarea::placeholder { color: #a5aab1; }
.form input:focus, .form textarea:focus { border-bottom-color: var(--ink); }
.form .invalid input { border-bottom-color: var(--accent); }
.form .invalid span { color: var(--accent); }
.pick { border: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pick legend { margin-bottom: 10px; float: left; width: 100%; }
.pick label { flex-direction: row; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label span { display: inline-flex; align-items: center; height: 25px; padding: 0 10px; border: 1px solid #111; border-radius: 999px; text-transform: none; cursor: pointer; transition: background .2s, color .2s; }
.pick input:checked + span { background: #111; color: #fff; }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-status { font-size: 13px; color: var(--accent); min-height: 1em; margin-bottom: -10px; }
.cta-block { position: relative; right: auto; bottom: auto; width: 100%; z-index: 0; text-align: left; }

/* 소개 하위 블록 */
.sub-block { margin-top: 110px; }
.studio-cards { grid-column: 2 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.studio { display: grid; grid-template-columns: 116px 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.studio h4 { font-size: 30px; margin-bottom: 10px; }
.studio .what { font-size: 14px; }
.studio .detail, .studio .addr { font-size: 13px; color: #6d727a; margin-top: 4px; word-break: keep-all; }
.foot-copy { margin-top: 10px; color: var(--gray); }

/* ---------- 크게 보기 ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 28px;
  padding: 90px var(--pad) var(--pad);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  overflow: auto;
}
.viewer.open { opacity: 1; visibility: visible; }
.viewer-bar { position: fixed; top: 27px; right: var(--pad); display: flex; border: 1px solid #111; }
.viewer-bar button { padding: 6px 12px; font-size: 12px; border-left: 1px solid #111; }
.viewer-bar button:first-child { border-left: 0; }
.viewer-bar button:hover { background: #111; color: #fff; }
.viewer-media .big svg, .viewer-media img { display: block; width: 100%; height: auto; }
.viewer-media .strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.viewer-media .strip svg { display: block; width: 100%; height: auto; }
.viewer-info .meta { color: var(--gray); line-height: 1.3; }
.viewer-info .display { font-size: clamp(30px, 3vw, 48px); margin: 40px 0 30px; }
.viewer-info .desc { font-size: 14px; line-height: 1.6; color: #6d727a; margin-bottom: 40px; word-break: keep-all; }

.toast {
  position: fixed; right: 12px; bottom: 124px; z-index: 70;
  background: #111; color: #fff; font-size: 13px; padding: 10px 14px;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.toast.on { opacity: 1; transform: none; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1100px) {
  .info { grid-template-columns: 116px minmax(0, 1fr); }
  .info .case-icons, .info-meta { grid-column: 1 / -1; margin-bottom: 20px; }
  .info .rows, .process { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --pad: 16px; }
  :root { --band: 60px; }
  .side { display: none; }
  .logo { top: 19px; }
  .logo .wm { font-size: 22px; }
  .side-art, .index, .side-foot, .draft { display: none; }
  .tabs { top: 15px; right: var(--pad); }
  .tabs a { padding: 5px 7px; font-size: 11px; }
  .main { margin-left: 0; }
  .hero { min-height: auto; padding-bottom: 90px; padding-top: calc(var(--band) + 24px); }
  .hero-art { display: block; margin: 40px auto 0; width: 82%; }
  .hero-chips { bottom: 30px; }
  .case-title { margin: 60px 0 36px; }
  .collage { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 12px; margin-top: 60px; }
  .collage .shot { grid-column: auto !important; grid-row: auto !important; margin-top: 0 !important; margin-right: 0; aspect-ratio: 1 / 1 !important; }
  .collage .shot:first-child { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3 !important; }
  .case { padding-bottom: 100px; }
  .services > .display, .about > .display, .contact > .display { margin-bottom: 60px; }
  .process li { grid-template-columns: 36px 1fr; }
  .process p { grid-column: 2; margin-top: 4px; }
  .studio-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; margin-right: 0; row-gap: 40px; }
  .contact-foot { order: 2; padding-bottom: 90px; }
  .form { grid-template-columns: 1fr; }
  .cta { left: 12px; right: 12px; width: auto; height: 64px; padding-bottom: 14px; font-size: 16px; }
  .viewer { grid-template-columns: 1fr; padding-top: 70px; row-gap: 20px; }
  .viewer-bar { top: 15px; }
  .loader-logo .wm { font-size: 12.5vw; }
  .loader-logo p { font-size: 10px; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* 원칙 · 연혁 · 보내기 버튼 보정 */
#principles li { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.6fr); }
#principles b { font-size: 22px; }
#history li { grid-template-columns: 80px minmax(0, 1fr); padding: 13px 0 14px; }
#history span { font-size: 14px; color: var(--ink); }
#history b { font-family: var(--sans); font-weight: 400; font-size: 15px; letter-spacing: 0; }
#history p { display: none; }
.form .cta-block span { font-size: inherit; text-transform: none; letter-spacing: -.01em; }
@media (max-width: 860px) {
  #principles li { grid-template-columns: 70px 1fr; }
  #principles p { grid-column: 2; }
}
#principles li { grid-template-columns: 80px minmax(0, 1.25fr) minmax(0, 1.4fr); }
#principles b { font-size: 20px; }
@media (max-width: 860px) {
  .main .display { max-width: none; }
  .hero-title { font-size: 34px; }
}

/* ---------- 제품 하나로 전부 ---------- */
.allround { padding-top: 30px; padding-bottom: 160px; }
.allround > hr { margin-top: 28px; }
.allround > .meta { margin-top: 34px; color: var(--gray); line-height: 1.3; }
.allround-title { font-size: clamp(40px, 4.6vw, 76px); margin: 80px 0 60px; line-height: 1.1; }
.allround-media { position: relative; margin: 0 calc(var(--pad) * -1) 90px 0; aspect-ratio: 16 / 9; background: var(--box); overflow: hidden; }
.allround-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.allround-media figcaption, .compose-tag, .compose-hint {
  position: absolute; left: 12px; top: 12px; padding: 5px 9px;
  background: var(--paper); font-size: 12px; transition: opacity .35s;
}
.size-rows { grid-column: 2 / -1; }
.size-rows dt { color: var(--ink); }

/* ---------- 베리에이션 데모 ---------- */
.vary { margin-top: 150px; }
.vary-head { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 2.6fr); column-gap: 28px; align-items: end; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 22px; }
.vary-head .meta { color: var(--gray); align-self: start; }
.vary-head .display { font-size: clamp(26px, 2.4vw, 38px); }
.vary-tabs { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.vary-tabs .chip { font-size: 12px; cursor: pointer; }
.vary-tabs .chip:hover { background: rgba(0, 0, 0, .06); }
.vary-tabs .chip.on { background: #111; color: #fff; }
.vary-stage, .compose { position: relative; aspect-ratio: 16 / 9; margin-right: calc(var(--pad) * -1); background: var(--box); overflow: hidden; }
.vary-stage :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.vary-stage :is(img, video).on { opacity: 1; }

/* 3D 배경 → 마우스를 올리면 제품 합성 */
.compose { cursor: crosshair; --cx: 50%; --cy: 50%; }
.compose-pair { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.compose-pair.on { opacity: 1; }
.compose-pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compose-pair .full { clip-path: circle(0% at var(--cx) var(--cy)); transition: clip-path .9s var(--ease); }
.compose.reveal-on .full { clip-path: circle(150% at var(--cx) var(--cy)); }
.compose-tag.after { opacity: 0; background: var(--accent); }
.compose.reveal-on .compose-tag.after { opacity: 1; }
.compose.reveal-on .compose-tag.before { opacity: 0; }
.compose-hint { left: 50%; top: auto; bottom: 16px; transform: translateX(-50%); background: #111; color: #fff; }
.compose.reveal-on .compose-hint { opacity: 0; }

@media (max-width: 860px) {
  .allround-media, .vary-stage, .compose { margin-right: 0; }
  .vary { margin-top: 90px; }
  .vary-head { grid-template-columns: 1fr; }
  .vary-tabs { grid-column: 1; }
  .size-rows { grid-column: 1 / -1; }
  .size-rows > div { height: auto; padding: 8px 0; grid-template-columns: 1fr; gap: 2px; }
}

#detail .shot .ph { background: #fff; }
#detail .shot .ph > img { object-fit: contain; }

/* 3D 영상 3개 나란히 */
.vid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vid-grid figure:first-child { grid-column: 1 / -1; }
.vid-grid figure { margin: 0; }
.vid-grid video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--box); }
.vid-grid figcaption { margin-top: 8px; font-size: 12px; color: var(--gray); }
@media (max-width: 860px) { .vid-grid { grid-template-columns: 1fr; } }

/* 남는 작업: 3열 그리드 */
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 12px; margin-top: 110px; align-items: start; }
.more-grid .shot.nat .ph { height: auto; }
.more-grid .shot.nat .ph > img { height: auto; }
@media (max-width: 860px) { .more-grid { grid-template-columns: 1fr 1fr; margin-top: 12px; gap: 12px; } }

/* 룩북 보드 2열 */
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.boards figure { margin: 0; }
.boards img { display: block; width: 100%; height: auto; background: var(--box); }
@media (max-width: 860px) { .boards { grid-template-columns: 1fr; } }

/* 가전 누끼 카탈로그 */
.catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 12px; margin-top: 110px; }
.catalog .shot { clip-path: none; opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s var(--ease); }
.catalog .shot.in { opacity: 1; transform: none; }
.catalog .ph { aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); }
.catalog .ph > img { object-fit: contain; padding: 6%; }
.catalog figcaption { position: static; opacity: 1; transform: none; background: none; padding: 8px 0 0; display: flex; gap: 8px; font-size: 12px; color: var(--gray); }
.catalog figcaption b { font-weight: 400; color: var(--ink); }
@media (max-width: 1100px) { .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .catalog { grid-template-columns: 1fr 1fr; margin-top: 50px; } }
.catalog .ph.fill > img, .catalog .ph > video { object-fit: cover; padding: 0; width: 100%; height: 100%; display: block; }
.catalog .ph { border-color: transparent; }
.catalog .ph[style*="#fff"] { border-color: var(--line); }
.catalog .cat-item.span { grid-column: 1 / -1; }
.catalog .cat-item.span .ph { aspect-ratio: 1800 / 740; }
.catalog .cat-item.span .ph > img { padding: 0; }

/* AI 생성 섹션 */
.catalog.tall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.catalog.tall .ph { aspect-ratio: 2 / 3; border-color: transparent; }
.catalog.tall .ph > img { padding: 0; }
.boards.one { grid-template-columns: 1fr; }
.turn-sets { position: relative; }
.turn { display: none; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.turn.on { display: grid; animation: fadein .5s ease; }
.turn figure { margin: 0; }
.turn img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--box); }
.turn figcaption { margin-top: 8px; font-size: 12px; color: var(--gray); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.dp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; align-items: start; }
.dp-long { height: min(80vh, 820px); overflow-y: auto; border: 1px solid var(--line); background: #fff; overscroll-behavior: contain; }
.dp-long img { display: block; width: 100%; height: auto; }
.dp-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dp-side figure { margin: 0; }
.dp-side img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #fff; }
.dp-side figure:last-child img { object-fit: contain; border: 1px solid var(--line); }
.dp-side figcaption { margin-top: 8px; font-size: 12px; color: var(--gray); }
@media (max-width: 1100px) { .catalog.tall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .catalog.tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .turn { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dp { grid-template-columns: 1fr; }
}
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
.vgrid figure { margin: 0; }
.vgrid video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--box); }
.vgrid figcaption { margin-top: 8px; font-size: 12px; color: var(--gray); }
@media (max-width: 860px) { .vgrid { grid-template-columns: 1fr 1fr; } }

/* 긴 상세페이지: 휴대폰 화면처럼 작게 + 안내 */
.dp { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; }
.dp-frame { position: relative; }
.dp-long { height: 620px; border: 1px solid #111; border-radius: 22px; padding: 0; scrollbar-width: none; }
.dp-long::-webkit-scrollbar { display: none; }
.dp-frame::after { content: ''; position: absolute; left: 1px; right: 1px; bottom: 58px; height: 80px; border-radius: 0 0 21px 21px; background: linear-gradient(transparent, rgba(255,255,255,.9)); pointer-events: none; transition: opacity .4s; }
.dp-frame.touched::after { opacity: 0; }
.dp-bar { height: 2px; background: var(--line); margin: 12px 16px 0; }
.dp-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.dp-hint { margin-top: 10px; font-size: 12px; color: var(--gray); text-align: center; }
.dp-hint span { display: inline-block; color: var(--accent); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
@media (max-width: 860px) { .dp { grid-template-columns: 1fr; } .dp-frame { max-width: 320px; margin: 0 auto; } }
.appduo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; align-items: start; }
.appduo figure { margin: 0; }
.appduo .compose { margin-right: 0; }
.appduo > figure > img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.appduo figcaption { margin-top: 8px; font-size: 12px; color: var(--gray); }
.appduo .compose-hint { font-size: 11px; white-space: nowrap; }
@media (max-width: 860px) { .appduo { grid-template-columns: 1fr; } }
/* 크게 보기 없는 목록 (AI 생성) */
.catalog.no-view .shot { cursor: default; }
.catalog.no-view .shot:hover .ph > img { transform: none; }

/* ---------- 패션 분류 ---------- */
.shoots { margin-top: 110px; }
.shoot-name { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 14px; font-size: 13px; color: var(--gray); }
.shoot-name b { font-weight: 400; color: var(--ink); }
.shoot-archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shoot-archive .shot { clip-path: none; opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s var(--ease); }
.shoot-archive .shot.in { opacity: 1; transform: none; }
.shoot-archive .ph { aspect-ratio: 4 / 3; background: var(--box); overflow: hidden; }
.shoot-archive .ph > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .shoots { margin-top: 50px; }
  .shoot-archive { grid-template-columns: 1fr; }
}

/* ---------- 패션 AI 줄 · 앨범 ---------- */
.album-grid { columns: 4; column-gap: 12px; margin-top: 110px; }
.album-grid .shot { break-inside: avoid; margin: 0 0 12px; clip-path: none; opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s var(--ease); }
.album-grid .shot.in { opacity: 1; transform: none; }
.album-grid .ph { background: var(--box); overflow: hidden; }
.album-grid .ph > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) { .album-grid { columns: 3; } }
@media (max-width: 860px) { .album-grid { columns: 2; margin-top: 50px; } }

/* ---------- 기하학 배치: 사진을 줄이고 여백과 엇갈림으로 구성 ---------- */
.collage { row-gap: 90px; }
.iso-box { padding: 0; position: relative; overflow: hidden; }
.iso-box > svg { position: absolute; inset: 8%; width: 84%; height: 84%; }
.catalog:empty { display: none; }
.catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; align-items: start; }
.catalog.tall { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 20px; }
.catalog.tall > .cat-item:nth-child(n) { grid-column: span 2; margin-top: 0; }
.catalog.tall > .cat-item:nth-child(even) { margin-top: 2.6vw; }
.catalog.tall > .cat-item:nth-child(3n) { margin-top: 1.2vw; }
.more-grid { gap: 56px 28px; }
.more-grid .shot:nth-child(3n+2) { margin-top: 5vw; }
.more-grid .shot:nth-child(3n) { margin-top: 2vw; }
.boards { gap: 28px; align-items: start; }
.boards figure:nth-child(odd) { width: 88%; }
.boards figure:nth-child(even) { margin-top: 5vw; }
.boards.one figure { width: 72%; margin-top: 0; }
.vary { margin-top: 120px; }
.vary-stage, .compose { width: 72%; margin-right: 0; }
.vary:nth-of-type(even) > :is(.vary-stage, .compose) { margin-left: auto; }
.appduo .compose { width: 100%; }
.turn { gap: 20px; }
.turn figure:nth-child(even) { margin-top: 2vw; }
.vid-grid { gap: 28px; }
.vgrid { gap: 40px 28px; align-items: start; }
.vgrid figure:nth-child(3n+2) { margin-top: 3vw; }
.stills { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 44px 20px; align-items: start; }
.stills .shot { grid-column: span 3; clip-path: none; opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s var(--ease); }
.stills .shot.in { opacity: 1; transform: none; }
.stills .shot.tall { grid-column: span 2; }
.stills .shot:nth-child(even) { margin-top: 3vw; }
.stills .shot:nth-child(3n) { margin-top: 1.2vw; }
.stills .ph { height: auto; }
.stills .ph > img { height: auto; }
.shoot-archive { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 20px; align-items: start; }
.shoot-archive .shot:nth-child(6n+1) { grid-column: 1 / 5; }
.shoot-archive .shot:nth-child(6n+2) { grid-column: 6 / 10; margin-top: 5vw; }
.shoot-archive .shot:nth-child(6n+3) { grid-column: 10 / 13; margin-top: 1vw; }
.shoot-archive .shot:nth-child(6n+4) { grid-column: 2 / 5; margin-top: 2vw; }
.shoot-archive .shot:nth-child(6n+5) { grid-column: 5 / 9; }
.shoot-archive .shot:nth-child(6n+6) { grid-column: 9 / 13; margin-top: 4vw; }
.album-grid { column-gap: 28px; }
.album-grid .shot { margin-bottom: 44px; }
.album-grid .shot:nth-child(3n+1) { width: 74%; }
.album-grid .shot:nth-child(3n+2) { width: 88%; margin-left: auto; }
@media (max-width: 860px) {
  .hero-chips { flex-wrap: wrap; }
  .catalog, .catalog.tall, .stills, .shoot-archive { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .catalog > .cat-item:nth-child(n), .catalog.tall > .cat-item:nth-child(n), .stills .shot:nth-child(n), .stills .shot.tall:nth-child(n), .shoot-archive .shot:nth-child(n) { grid-column: auto; margin-top: 0; }
  .catalog.tall > .cat-item:nth-child(even), .stills .shot:nth-child(even), .shoot-archive .shot:nth-child(even) { margin-top: 28px; }
  .boards figure:nth-child(n), .boards.one figure { width: 100%; margin-top: 0; }
  .vary-stage, .compose { width: 100%; }
  .more-grid .shot:nth-child(n) { margin-top: 0; }
  .turn figure:nth-child(n), .vgrid figure:nth-child(n) { margin-top: 0; }
  .album-grid .shot:nth-child(n) { width: 100%; margin-left: 0; margin-bottom: 16px; }
}
@media (max-width: 860px) {
  .studio-cards { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .studio { grid-template-columns: 72px minmax(0, 1fr); }
}

/* 위아래 빈 공간 축소 (엇갈림은 유지) */
.case { padding-bottom: 110px; }
.collage { margin-top: 80px; row-gap: 40px; }
.catalog, .album-grid, .shoots { margin-top: 70px; }
.catalog.tall { row-gap: 28px; }
.more-grid { margin-top: 40px; row-gap: 32px; }
.more-grid .shot:nth-child(3n+2) { margin-top: 2.5vw; }
.more-grid .shot:nth-child(3n) { margin-top: 1vw; }
.boards { row-gap: 20px; }
.boards figure:nth-child(even) { margin-top: 2.5vw; }
.vary { margin-top: 90px; }
.stills { row-gap: 24px; }
.stills .shot:nth-child(even) { margin-top: 2vw; }
.stills .shot:nth-child(3n) { margin-top: 1vw; }
.shoot-archive { row-gap: 28px; }
.shoot-archive .shot:nth-child(6n+2) { margin-top: 3vw; }
.shoot-archive .shot:nth-child(6n+4) { margin-top: 1vw; }
.shoot-archive .shot:nth-child(6n+6) { margin-top: 2.5vw; }
.album-grid .shot { margin-bottom: 28px; }
@media (max-width: 860px) {
  .case { padding-bottom: 70px; }
  .collage, .catalog, .album-grid, .shoots { margin-top: 40px; }
  .collage { row-gap: 12px; }
  .catalog > .cat-item:nth-child(n), .shoot-archive .shot:nth-child(n), .stills .shot:nth-child(n), .boards figure:nth-child(n), .more-grid .shot:nth-child(n) { margin-top: 0; }
  .shoot-archive .shot:nth-child(even), .stills .shot:nth-child(even) { margin-top: 20px; }
  .album-grid .shot:nth-child(n) { margin-bottom: 16px; }
}

/* 콜라주: 세로로 띄우지 않고 칸 위치만 어긋나게 */
.collage { row-gap: 28px; align-items: center; }

/* 스틸 4열 정렬 (제품 숏폼 · 브랜드 필름) */
.stills.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stills.four .shot:nth-child(n), .stills.four .shot.tall:nth-child(n) { grid-column: auto; margin-top: 0; }
.stills.four .tall .ph { aspect-ratio: 9 / 16; }
.stills.four .tall .ph > img { height: 100%; object-fit: cover; }
@media (max-width: 860px) { .stills.four { grid-template-columns: 1fr 1fr; gap: 12px; } }
