/* 올인방수 v3 — "한 겹씩" 디자인 시스템. ART-DIRECTION.md / MOTION-SPEC.md 참조 */
@font-face {
  font-family: "SUIT";
  src: url("fonts/SUIT-Variable.woff2") format("woff2-variations"), url("fonts/SUIT-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --slab: #eeede8;
  --slab-2: #e4e3dc;
  --ink: #0f1416;
  --ink-2: #3a4245;
  --ink-3: #5d6669;
  --coat: #c6cdcb;
  --urethane: #1e7a5c;
  --urethane-deep: #155a44;
  --primer: #c9a46a;
  --sheen: #ffffff;
  --line: rgba(15, 20, 22, .14);
  --line-strong: rgba(15, 20, 22, .32);

  --ease-coat: cubic-bezier(.2, .75, .1, 1);
  --ease-lift: cubic-bezier(.5, 0, .75, 0);
  --ease-press: cubic-bezier(.3, 1.4, .5, 1);
  --t-micro: 160ms;
  --t-react: 320ms;
  --t-element: 520ms;
  --t-scene: 900ms;
  --t-route: 480ms;

  --gutter: clamp(16px, 4vw, 72px);
  --max: 1520px;
  --hd: 72px;
  --radius: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); }
body {
  margin: 0;
  background: var(--slab);
  color: var(--ink);
  font-family: "SUIT", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--urethane); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--sheen); text-decoration: none; transition: top var(--t-react) var(--ease-coat); }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-feature-settings: "tnum" 1; }

/* ---------- 타이포 역할 ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 650; letter-spacing: .02em; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--urethane); border-radius: 2px; flex: none; }
.on-ink .eyebrow { color: rgba(255,255,255,.78); }
.display { font-weight: 800; letter-spacing: -.045em; line-height: 1.04; }
.h2 { font-size: clamp(34px, 4.6vw, 68px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.7; color: var(--ink-2); max-width: 38em; }
.meta { font-size: 14px; font-weight: 600; color: var(--ink-3); font-feature-settings: "tnum" 1; }
.note { font-size: 14px; line-height: 1.65; color: var(--ink-3); }

/* ---------- 링크·버튼: 덧칠 규칙 ---------- */
.link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none; padding-block: 4px;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px;
  background: currentColor; opacity: .22;
}
.link::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; z-index: 1;
  background: var(--urethane); transform: scaleX(0); transform-origin: right center;
  transition: transform var(--t-react) var(--ease-coat);
}
.on-ink .link::before { background: var(--sheen); }
.link:focus-visible::before, .link:active::before { transform: scaleX(1); transform-origin: left center; }
@media (hover: hover) { .link:hover::before { transform: scaleX(1); transform-origin: left center; } }
.arrow { display: inline-block; transition: transform var(--t-react) var(--ease-coat); }
.link:focus-visible .arrow { transform: translateX(4px); }
@media (hover: hover) { .link:hover .arrow { transform: translateX(4px); } }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px; border-radius: var(--radius);
  font-size: 17px; font-weight: 750; text-decoration: none; letter-spacing: -.01em;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  transition: color var(--t-react) var(--ease-coat), border-color var(--t-react) var(--ease-coat), transform var(--t-micro) var(--ease-press);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--urethane);
  transform: scaleY(0); transform-origin: center bottom;
  transition: transform var(--t-react) var(--ease-coat);
}
.btn-primary { background: var(--ink); color: var(--sheen); }
.btn-primary::before { background: var(--urethane); }
.btn:focus-visible::before, .btn:active::before { transform: scaleY(1); }
.btn:focus-visible, .btn:active { color: var(--sheen); border-color: var(--urethane); }
.btn:active { transform: scale(.98); }
.btn:focus-visible .arrow, .btn:active .arrow { transform: translateX(4px); }
@media (hover: hover) {
  .btn:hover::before { transform: scaleY(1); }
  .btn:hover { color: var(--sheen); border-color: var(--urethane); }
  .btn:hover .arrow { transform: translateX(4px); }
}
.on-ink .btn { border-color: rgba(255,255,255,.6); color: var(--sheen); }
.on-ink .btn-primary { background: var(--sheen); color: var(--ink); border-color: var(--sheen); }

/* ---------- 헤더 ---------- */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hd);
  display: flex; align-items: center;
  view-transition-name: site-hd; /* 페이지 전환 중 헤더는 제자리에 둔다 */
}
.hd::before { /* 히어로를 지나면 위→아래로 깔리는 겹 */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--slab) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--t-element) var(--ease-coat);
}
.hd.is-solid::before, .hd.is-open::before, .page-contact .hd::before { clip-path: inset(0 0 0 0); }
.hd-inner { display: flex; align-items: center; gap: 28px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark rect { transition: transform var(--t-react) var(--ease-coat); transform-box: fill-box; transform-origin: left center; }
@media (hover: hover) { .brand:hover .brand-mark rect:nth-child(2) { transform: scaleX(1.12); } .brand:hover .brand-mark rect:nth-child(3) { transform: scaleX(1.24); } }
.brand-name { font-size: 22px; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.brand-sub { font-size: 13px; font-weight: 600; color: var(--ink-3); line-height: 1; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.draft-chip { font-size: 12px; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line-strong); padding: 3px 8px; border-radius: 99px; }
.nav { display: flex; gap: 26px; }
.nav a { font-size: 16px; font-weight: 650; }
.nav a[aria-current="page"]::after { opacity: .9; background: var(--urethane); }
.hd-call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  font-weight: 750; font-size: 15px; text-decoration: none; border-radius: 99px;
  background: var(--ink); color: var(--sheen); position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--t-micro) var(--ease-press);
}
.hd-call::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--urethane); transform: scaleY(0); transform-origin: bottom; transition: transform var(--t-react) var(--ease-coat); }
.hd-call:focus-visible::before, .hd-call:active::before { transform: scaleY(1); }
.hd-call:active { transform: scale(.97); }
@media (hover: hover) { .hd-call:hover::before { transform: scaleY(1); } }
.hd-call svg { width: 16px; height: 16px; }
.menu-btn {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; position: relative; margin-right: -10px;
}
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform var(--t-react) var(--ease-coat), opacity var(--t-micro); }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 23px; right: 19px; } .menu-btn span:nth-child(3) { top: 29px; right: 16px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); right: 13px; }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); right: 13px; }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--sheen);
  padding: calc(var(--hd) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 28px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path var(--t-element) var(--ease-lift), visibility 0s linear var(--t-element);
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--t-element) var(--ease-coat), visibility 0s; }
.menu.no-anim, .menu.no-anim .menu-links a { transition: none !important; }
.menu::after { /* 젖은 가장자리 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--urethane);
}
.menu-links a {
  display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0;
  font-size: 34px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.14);
  opacity: 0; transform: translateY(-14px);
  transition: opacity var(--t-react) var(--ease-coat), transform var(--t-react) var(--ease-coat), color var(--t-micro);
}
.menu-links a small { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: 0; }
.menu.is-open .menu-links a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 120ms); }
.menu-links a:active, .menu-links a:focus-visible { color: #9fd9c4; }
.menu-links a[aria-current="page"] { color: #9fd9c4; }
.menu-foot { margin-top: auto; display: grid; gap: 10px; font-size: 15px; color: rgba(255,255,255,.72); }
.menu-foot a { font-size: 24px; font-weight: 800; color: var(--sheen); text-decoration: none; }
body.menu-locked { overflow: hidden; }

/* 뒤로/앞으로 복원: 등장 상태를 전환 없이 즉시 적용 */
.is-restoring [data-coat], .is-restoring [data-rise], .is-restoring [data-reveal], .is-restoring [data-band],
.is-restoring [data-coat]::after, .is-restoring .svc::after, .is-restoring .ph > img { transition: none !important; animation: none !important; }

/* ---------- 사진 프레임 + 롤러 마스크 ---------- */
.ph { position: relative; overflow: hidden; background: var(--c, var(--coat)); margin: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph > img { transition: opacity var(--t-element) var(--ease-coat), transform var(--t-scene) var(--ease-coat); }
.js .ph > img:not(.is-loaded) { opacity: 0; }
.js [data-coat] { clip-path: inset(0 0 100% 0); }
.js [data-coat]::after { /* 젖은 가장자리 선 */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--sheen) 20%, var(--sheen) 80%, transparent);
  opacity: 0; pointer-events: none;
}
.js [data-coat].is-in { clip-path: inset(0 0 0 0); transition: clip-path var(--t-scene) var(--ease-coat); }
.js [data-coat].is-in::after { animation: wetedge var(--t-scene) var(--ease-coat) both; }
@keyframes wetedge {
  0% { top: 0; opacity: .95; }
  85% { opacity: .7; }
  100% { top: calc(100% - 3px); opacity: 0; }
}
.js [data-rise] { opacity: .01; transform: translateY(12px); }
.js [data-rise].is-in { opacity: 1; transform: none; transition: opacity var(--t-element) var(--ease-coat), transform var(--t-element) var(--ease-coat); transition-delay: var(--d, 0ms); }
.cap { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); display: flex; gap: 10px; }
.cap b { color: var(--ink); font-weight: 750; }

/* 스크롤 시차 (지원 브라우저만) */
@supports (animation-timeline: view()) {
  .parallax > img { animation: parallax linear both; animation-timeline: view(); animation-range: cover; scale: 1.1; }
  @keyframes parallax { from { translate: 0 -4%; } to { translate: 0 4%; } }
  /* 히어로 사진은 스크롤을 내리면 아래 겹으로 눌려 들어간다(가역) */
  .hero-media { animation: heroPress linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; transform-origin: 50% 0; }
  @keyframes heroPress { to { scale: .94; filter: brightness(.82); } }
}

/* ---------- 홈: 히어로 ---------- */
.hero { position: relative; padding-top: var(--hd); min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: stretch; padding-block: clamp(24px, 4vh, 56px) 0;
}
.hero-copy { grid-column: 1 / 8; grid-row: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; position: relative; z-index: 2; padding-bottom: 40px; }
.hero-title { font-size: clamp(56px, 8.6vw, 148px); }
.hero-title span { display: block; }
.js .hero-title span {
  background: linear-gradient(100deg, var(--ink) 0 42%, #6f8b84 48%, var(--ink) 54% 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 1100ms var(--ease-coat) 600ms both;
}
.js .hero-title span:nth-child(2) { animation-delay: 760ms; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero-lead { max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { grid-column: 7 / 13; grid-row: 1; margin-right: calc(var(--gutter) * -1); min-height: 540px; position: relative; }
.hero-media .ph { position: absolute; inset: 0; }
.hero-media .ph img { object-position: 50% 42%; }
.hero-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 3;
  background: rgba(15,20,22,.72); color: var(--sheen); font-size: 13px; font-weight: 650; padding: 6px 10px; border-radius: 2px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-band { background: var(--ink); color: var(--sheen); position: relative; z-index: 3; }
.hero-band ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-band li { padding: 22px 0 24px; display: flex; gap: 12px; align-items: baseline; font-weight: 700; font-size: 17px; border-left: 1px solid rgba(255,255,255,.14); padding-left: 20px; }
.hero-band li:first-child { border-left: 0; padding-left: 0; }
.hero-band li span { font-size: 13px; color: rgba(255,255,255,.55); font-feature-settings: "tnum" 1; }
.js .hero-band { clip-path: inset(100% 0 0 0); }
.js .hero-band.is-in { clip-path: inset(0); transition: clip-path var(--t-element) var(--ease-coat) 1100ms; }
.band-note { font-size: 12px; color: rgba(255,255,255,.5); padding-bottom: 14px; }

/* ---------- 섹션 공통 ---------- */
.sec { padding-block: clamp(80px, 11vw, 160px); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 20px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head h2 { grid-column: 1 / 8; }
.sec-head .sec-aside { grid-column: 9 / 13; display: grid; gap: 16px; justify-items: start; }

/* ---------- 홈: 겹 쌓기 ----------
   데스크톱(≥1101px)만 sticky로 덮는다. 각 겹은 다 붙은 뒤 --dwell 동안 혼자 머물고, 덮인 겹은 위쪽 탭(번호·제목)만 남긴다.
   그보다 좁은 화면은 카드가 화면 높이를 넘기 쉬워 일반 흐름으로 쌓는다(앞 겹 글자가 가려지지 않게). */
.layer-stack { --tab: 56px; --dwell: 30svh; display: grid; }
.layer { position: relative; padding-bottom: 28px; }
.layer-card {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: var(--tab) minmax(0, 1fr);
  background: var(--sheen); color: var(--ink); text-decoration: none; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 -1px 0 var(--line), 0 30px 60px -40px rgba(15,20,22,.45);
  transform-origin: center top;
  transform: scale(calc(1 - var(--cover, 0) * .03));
  filter: brightness(calc(1 - var(--cover, 0) * .12));
}
.layer-card.tone-2 { background: #f7f6f2; }
.layer-card.tone-ink { background: var(--ink); color: var(--sheen); }
.layer-tab {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 clamp(20px, 2.4vw, 32px);
  border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden;
}
.layer-tab b { color: var(--urethane); font-feature-settings: "tnum" 1; }
.layer-tab em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 650; color: var(--ink-3); }
.tone-ink .layer-tab { border-color: rgba(255,255,255,.14); }
.tone-ink .layer-tab b { color: #8fd3b9; }
.tone-ink .layer-tab em { color: rgba(255,255,255,.6); }
.layer .ph { height: 100%; min-height: 360px; }
.layer .ph img { position: absolute; inset: 0; transition: transform var(--t-scene) var(--ease-coat); }
@media (min-width: 1101px) {
  .layer { position: sticky; top: calc(var(--hd) + 16px + var(--i) * var(--tab)); padding-bottom: var(--dwell); }
  .layer:last-child { padding-bottom: 12svh; }
  .layer-card { height: clamp(480px, calc(100svh - var(--hd) - 48px - 2 * var(--tab)), 700px); }
}
.layer-text { padding: clamp(28px, 3.4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.layer-no { font-size: 15px; font-weight: 800; color: var(--urethane); font-feature-settings: "tnum" 1; }
.tone-ink .layer-no { color: #8fd3b9; }
.layer-text h3 { font-size: clamp(32px, 3.6vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.layer-text p { color: inherit; opacity: .82; }
.layer-text .meta { color: inherit; opacity: .7; }
.layer-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 12px; font-weight: 750; position: relative; padding: 14px 0 10px; align-self: flex-start; }
.layer-cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--urethane); transform: scaleX(.18); transform-origin: left; transition: transform var(--t-react) var(--ease-coat); }
.layer-card:focus-visible { outline-offset: 6px; }
.layer-card:focus-visible .layer-cta::after, .layer-card:active .layer-cta::after { transform: scaleX(1); }
.layer-card:focus-visible .ph img, .layer-card:active .ph img { transform: scale(1.04); }
@media (hover: hover) {
  .layer-card:hover .layer-cta::after { transform: scaleX(1); }
  .layer-card:hover .ph img { transform: scale(1.04); }
  .layer-card:hover .arrow { transform: translateX(4px); }
}

/* ---------- 홈: 하는 일 ---------- */
.services { background: var(--slab-2); }
.svc-list { border-top: 1px solid var(--line-strong); }
.svc { display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; position: relative; }
.svc-no { font-weight: 800; color: var(--urethane); font-feature-settings: "tnum" 1; }
.svc h3 { font-size: clamp(26px, 2.8vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.svc-rel { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
.svc-rel .note { width: 100%; }
.js .svc { --draw: 0; }
.js .svc::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.js .svc.is-in::after { transform: scaleX(1); transition: transform 1100ms var(--ease-coat) var(--d, 0ms); }

/* ---------- 홈: 후기 ---------- */
.voices-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; }
.voice { grid-column: span 6; background: var(--sheen); padding: clamp(28px, 3vw, 48px); display: grid; gap: 18px; align-content: start; border-top: 3px solid var(--urethane); }
.voice:nth-child(2) { margin-top: clamp(0px, 6vw, 96px); }
.voice h3 { font-size: clamp(24px, 2.3vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
.voices-foot { margin-top: 28px; }

/* ---------- 연락 겹 ---------- */
.contact { background: var(--ink); color: var(--sheen); position: relative; }
.contact::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--urethane); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; align-items: end; }
.contact h2 { grid-column: 1 / 8; }
.contact-call { grid-column: 1 / 8; display: grid; gap: 12px; justify-items: start; }
.contact-phone { font-size: clamp(40px, 6vw, 88px); font-weight: 800; letter-spacing: -.035em; line-height: 1; text-decoration: none; font-feature-settings: "tnum" 1; position: relative; }
.contact-phone::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 4px; background: var(--urethane); transform: scaleX(.12); transform-origin: left; transition: transform var(--t-react) var(--ease-coat); }
.contact-phone:focus-visible::after, .contact-phone:active::after { transform: scaleX(1); }
@media (hover: hover) { .contact-phone:hover::after { transform: scaleX(1); } }
.contact dl { grid-column: 9 / 13; grid-row: 1 / 3; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.2); }
.contact dl > div { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.2); display: grid; gap: 4px; }
.contact dt { font-size: 13px; font-weight: 650; color: rgba(255,255,255,.6); }
.contact dd { font-size: 16px; font-weight: 650; }
.contact dd small { display: block; font-size: 13px; color: rgba(255,255,255,.55); font-weight: 500; }
.contact .links, .contact-hero .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.contact-note { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.7); margin-top: 18px; max-width: 34em; }
.ft .link { color: var(--sheen); font-weight: 650; padding-block: 0; }

.ft { background: var(--ink); color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.7; padding: 28px 0 40px; border-top: 1px solid rgba(255,255,255,.12); }
.ft-inner { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.ft strong { color: var(--sheen); }

/* ---------- 시공 기록 목록 ---------- */
.page-head { padding-top: calc(var(--hd) + clamp(48px, 8vw, 120px)); padding-bottom: clamp(32px, 4vw, 56px); }
.page-head h1 { font-size: clamp(56px, 9vw, 150px); }
.page-head .lead { margin-top: 24px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding-block: 20px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); position: sticky; top: var(--hd); z-index: 20; background: var(--slab); box-shadow: 0 0 0 100vmax var(--slab); clip-path: inset(0 -100vmax); }
.filter { position: relative; display: flex; gap: 4px; padding: 4px; background: var(--slab-2); border-radius: 99px; isolation: isolate; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.filter::-webkit-scrollbar { display: none; }
.filter button {
  border: 0; background: transparent; cursor: pointer; min-height: 44px; padding: 0 18px; border-radius: 99px;
  font-size: 15px; font-weight: 700; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center;
  transition: color var(--t-react) var(--ease-coat), background-color var(--t-micro);
}
.filter button span { font-size: 13px; opacity: .6; font-feature-settings: "tnum" 1; }
.filter button[aria-pressed="true"] { color: var(--sheen); }
.filter button:active { background: rgba(15,20,22,.06); }
@media (hover: hover) { .filter button:not([aria-pressed="true"]):hover { background: rgba(15,20,22,.06); } }
.filter-pill { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 99px; background: var(--urethane); transition: transform var(--t-element) var(--ease-coat), width var(--t-element) var(--ease-coat); }
.no-js .filter-pill { display: none; }
.no-js .filter button[aria-pressed="true"] { background: var(--urethane); }
.count { font-size: 15px; font-weight: 700; display: inline-flex; gap: 6px; align-items: baseline; }
.count-num { display: inline-block; min-width: 1ch; font-feature-settings: "tnum" 1; overflow: hidden; height: 1.2em; line-height: 1.2em; vertical-align: bottom; }
.count-num i { display: block; font-style: normal; transition: transform var(--t-element) var(--ease-coat); }

.bands { border-bottom: 1px solid var(--line-strong); }
.band { border-top: 1px solid var(--line-strong); position: relative; isolation: isolate; scroll-margin-top: calc(var(--hd) + 100px); }
.band::before { /* 덧칠 배경: 행 hover/focus, 펼침 상태에서 띠 전체에 깔린다 */
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--sheen);
  transform: scaleY(0); transform-origin: bottom; transition: transform var(--t-react) var(--ease-coat);
}
.band.is-open::before, .band:has(.band-row:focus-visible)::before, .band:has(.band-row:active)::before { transform: scaleY(1); }
@media (hover: hover) { .band:has(.band-row:hover)::before { transform: scaleY(1); } }
.band:first-child { border-top: 0; }
.band.is-leaving { transition: opacity var(--t-react) var(--ease-lift); opacity: 0; }
.band[hidden] { display: none; }
/* 목록 필터(?f=)는 첫 레이아웃 전에 머리 스크립트가 html[data-f]로 적용한다.
   뒤로/앞으로 재로드 때 브라우저 스크롤 복원이 필터 적용 후의 높이를 기준으로 하도록(R2 결함 수정). */
html[data-f="waterproof"] .band:not([data-cat="waterproof"]),
html[data-f="paint"] .band:not([data-cat="paint"]),
html[data-f="profile"] .band:not([data-cat="profile"]) { display: none; }
.band-row {
  position: relative; isolation: isolate; display: grid; align-items: center; column-gap: 24px;
  grid-template-columns: 56px minmax(0, 4fr) minmax(0, 2.4fr) minmax(0, 3.6fr) 56px;
  padding: 26px 0; text-decoration: none; color: inherit; width: 100%; text-align: left;
}
.band-no { font-weight: 800; color: var(--urethane); font-feature-settings: "tnum" 1; }
.band-title { font-size: clamp(28px, 3.2vw, 50px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; transition: transform var(--t-react) var(--ease-coat); }
.band-meta { display: grid; gap: 2px; font-size: 14px; font-weight: 600; color: var(--ink-3); font-feature-settings: "tnum" 1; }
.band-meta b { color: var(--ink); font-weight: 750; }
.band-photo { display: block; height: 128px; transition: height var(--t-element) var(--ease-coat); border-radius: var(--radius); }
.band-photo img { transition: transform var(--t-scene) var(--ease-coat); }
.band-go { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; justify-self: end; transition: background-color var(--t-react) var(--ease-coat), color var(--t-react), transform var(--t-react) var(--ease-coat), border-color var(--t-react); }
.band-go svg { width: 18px; height: 18px; transition: transform var(--t-react) var(--ease-coat); }
.band.is-open .band-go svg { transform: rotate(180deg); }
.band-row:focus-visible { outline-offset: -3px; }
.band-row:focus-visible .band-photo, .band-row:active .band-photo { height: 200px; }
.band-row:focus-visible .band-title { transform: translateX(8px); }
.band-row:focus-visible .band-go, .band-row:active .band-go { background: var(--urethane); border-color: var(--urethane); color: var(--sheen); }
@media (hover: hover) {
  .band-row:hover .band-photo { height: 200px; }
  .band-row:hover .band-photo img { transform: scale(1.05); }
  .band-row:hover .band-title { transform: translateX(8px); }
  .band-row:hover .band-go { background: var(--urethane); border-color: var(--urethane); color: var(--sheen); }
}
button.band-row { border: 0; background: transparent; cursor: pointer; font: inherit; }
.band-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-element) var(--ease-coat); }
.band.is-open .band-panel, .no-js .band-panel { grid-template-rows: 1fr; }
.band-panel > div { overflow: hidden; min-height: 0; }
.band-body { display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 6fr); column-gap: 24px; padding: 4px 0 40px; }
.band-body .txt { grid-column: 2; display: grid; gap: 14px; align-content: start; }
.band-body ol.steps-mini { counter-reset: s; display: grid; gap: 8px; }
.band-body ol.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; font-size: 16px; line-height: 1.6; }
.band-body ol.steps-mini li::before { content: counter(s, decimal-leading-zero); font-weight: 800; color: var(--urethane); font-size: 14px; padding-top: 2px; }
.thumbs { grid-column: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-content: start; }
.thumb { border: 0; padding: 0; cursor: zoom-in; aspect-ratio: 3 / 4; background: var(--c, var(--coat)); position: relative; overflow: hidden; border-radius: var(--radius); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-react) var(--ease-coat), opacity var(--t-element); }
.thumb::after { content: attr(data-n); position: absolute; left: 6px; bottom: 6px; font-size: 12px; font-weight: 750; color: var(--sheen); background: rgba(15,20,22,.6); padding: 1px 6px; border-radius: 2px; font-feature-settings: "tnum" 1; }
.thumb::before { content: ""; position: absolute; inset: 0; z-index: 1; border: 3px solid var(--urethane); opacity: 0; transition: opacity var(--t-micro); pointer-events: none; }
.thumb:focus-visible::before, .thumb:active::before { opacity: 1; }
.thumb:focus-visible img, .thumb:active img { transform: scale(1.06); }
@media (hover: hover) { .thumb:hover img { transform: scale(1.06); } .thumb:hover::before { opacity: 1; } }
.js .band.is-open .thumb { animation: thumbIn var(--t-element) var(--ease-coat) both; animation-delay: calc(var(--k, 0) * 40ms + 120ms); }
@keyframes thumbIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.works-foot { padding-block: 48px 96px; display: grid; gap: 10px; }

/* ---------- 상세 ---------- */
.case-head { padding-top: calc(var(--hd) + 28px); }
.back { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; position: relative; }
.back .arrow { transform: none; }
.back:focus-visible .arrow, .back:active .arrow { transform: translateX(-4px); }
@media (hover: hover) { .back:hover .arrow { transform: translateX(-4px); } }
.case-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 32px; padding-block: clamp(28px, 4vw, 56px) 0; }
.case-title-wrap { grid-column: 1 / 7; display: grid; gap: 24px; align-content: end; padding-bottom: 8px; }
.case-title { font-size: clamp(44px, 6.4vw, 100px); width: fit-content; }
@media (min-width: 1101px) { .case-title { white-space: nowrap; } }
.case-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line-strong); }
.case-facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.case-facts > div:nth-child(odd) { padding-right: 16px; }
.case-facts dt { font-size: 13px; font-weight: 650; color: var(--ink-3); }
.case-facts dd { font-size: 17px; font-weight: 750; font-feature-settings: "tnum" 1; }
.case-facts .wide { grid-column: 1 / -1; }
.case-facts .wide dd { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.case-hero { grid-column: 7 / 13; margin-right: calc(var(--gutter) * -1); height: min(82svh, 860px); min-height: 480px; }
.case-hero .ph { height: 100%; }
.case-hero .ph img { object-position: 50% 60%; }

.space-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; align-items: start; }
.space-grid figure:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 3; }
.space-grid figure:nth-child(1) .ph { aspect-ratio: 3 / 4; }
.space-grid figure:nth-child(2) { grid-column: 7 / 13; }
.space-grid figure:nth-child(2) .ph { aspect-ratio: 16 / 10; }
.space-grid figure:nth-child(2) .ph img { object-position: 50% 55%; }
.space-grid figure:nth-child(3) { grid-column: 8 / 12; }
.space-grid figure:nth-child(3) .ph { aspect-ratio: 4 / 3; }
.space-grid figure:nth-child(3) .ph img { object-position: 50% 45%; }

.process { background: var(--sheen); }
.process-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; }
.section-diagram { grid-column: 1 / 6; position: sticky; top: calc(var(--hd) + 32px); align-self: start; height: fit-content; }
.diagram { width: 100%; height: auto; display: block; }
.diagram .lyr { transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0); opacity: 0; transition: transform var(--t-element) var(--ease-coat), opacity var(--t-react); }
.diagram .lyr.is-on { transform: scaleY(1); opacity: 1; }
.diagram text { font-family: "SUIT", sans-serif; }
.diagram .axis { font-size: 11px; font-weight: 600; fill: var(--ink-3); }
.diagram .lbl { color: var(--ink-3); opacity: .28; transition: opacity var(--t-react), color var(--t-react); }
.diagram .lbl text { font-size: 15px; font-weight: 650; fill: currentColor; }
.diagram .lbl .lbl-no { font-weight: 800; }
.diagram .lbl path { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset var(--t-element) var(--ease-coat); }
.diagram .lbl.is-on { opacity: 1; color: var(--ink-2); }
.diagram .lbl.is-on path { stroke-dashoffset: 0; }
.diagram .lbl.is-now { color: var(--urethane); }
.diagram .lbl.is-now text { font-weight: 800; }
.diagram .roller { transition: transform var(--t-element) var(--ease-coat); }
.diagram[data-axis="y"] .roller { transform: translateY(var(--roll, 280px)); }
.diagram[data-axis="x"] .roller { transform: translateX(var(--roll, 152px)); }
.diagram[data-axis="x"] .lyr { transform-origin: left center; transform: scaleX(0); }
.diagram[data-axis="x"] .lyr.is-on { transform: scaleX(1); }
.diagram .lyr.fade, .diagram .lyr.fade.is-on { transform: none; }
.diagram-legend { margin-top: 14px; }
.step-now { display: flex; gap: 12px; align-items: baseline; margin-top: 18px; font-weight: 750; min-height: 1.7em; }
.step-now span { color: var(--urethane); font-feature-settings: "tnum" 1; }
.steps { grid-column: 7 / 13; display: grid; }
.step { padding: clamp(36px, 7vh, 72px) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; transition: opacity var(--t-react); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-no { font-weight: 800; color: var(--urethane); font-feature-settings: "tnum" 1; padding-top: 6px; }
.step h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; margin-bottom: 10px; }
.js .step { opacity: .4; }
.js .step.is-now, .js .step.is-past { opacity: 1; }
.work-pair { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; margin-top: clamp(56px, 8vw, 112px); }
.work-pair figure:nth-child(1) { grid-column: 1 / 5; }
.work-pair figure:nth-child(2) { grid-column: 5 / 9; margin-top: 64px; }
.work-pair figure:nth-child(3) { grid-column: 9 / 13; margin-top: 128px; }
.work-pair .ph { aspect-ratio: 3 / 4; }

.gallery { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.gallery .thumb { aspect-ratio: 3 / 4; }
.next-cases { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; }
.next-cases .eyebrow { grid-column: 1 / -1; }
.next-card { grid-column: span 6; display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; text-decoration: none; padding: 16px; position: relative; isolation: isolate; border: 1px solid var(--line-strong); }
.next-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sheen); transform: scaleY(0); transform-origin: bottom; transition: transform var(--t-react) var(--ease-coat); }
.next-card .ph { aspect-ratio: 4 / 3; }
.next-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.next-card [data-vt="title"] { display: inline-block; }
.next-card:focus-visible::before, .next-card:active::before { transform: scaleY(1); }
@media (hover: hover) { .next-card:hover::before { transform: scaleY(1); } .next-card:hover .arrow { transform: translateX(4px); } }
.source-box { grid-column: 1 / -1; margin-top: 24px; border-top: 1px solid var(--line-strong); padding-top: 20px; display: grid; gap: 8px; max-width: 64em; }
.source-links { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }

/* ---------- 확대 갤러리 ---------- */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; color: var(--sheen); overflow: hidden; }
.lb::backdrop { background: rgba(10, 13, 14, 0); transition: background-color var(--t-route) var(--ease-coat); }
.lb.is-shown::backdrop { background: rgba(10, 13, 14, .94); }
.lb-stage { position: absolute; inset: 64px 72px 96px; display: grid; place-items: center; touch-action: pan-y; }
.lb-img { max-width: calc(100vw - 144px); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; transform-origin: center; will-change: transform; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; justify-content: space-between; opacity: 0; transition: opacity var(--t-react); }
.lb.is-shown .lb-bar, .lb.is-shown .lb-close { opacity: 1; }
.lb-cap { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); }
.lb-count { font-weight: 800; font-feature-settings: "tnum" 1; color: var(--sheen); margin-right: 10px; }
.lb-nav { display: flex; gap: 8px; }
.lb button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: transparent; color: var(--sheen); cursor: pointer; display: grid; place-items: center; transition: background-color var(--t-react) var(--ease-coat), border-color var(--t-react), transform var(--t-micro) var(--ease-press); }
.lb button svg { width: 20px; height: 20px; }
.lb button:focus-visible, .lb button:active { background: var(--urethane); border-color: var(--urethane); }
.lb button:active { transform: scale(.94); }
@media (hover: hover) { .lb button:hover { background: var(--urethane); border-color: var(--urethane); } }
.lb-close { position: absolute; top: 12px; right: var(--gutter); opacity: 0; transition: opacity var(--t-react); }

/* ---------- 페이지 전환 ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-lift var(--t-route) var(--ease-lift) both; }
::view-transition-new(root) { animation: vt-coat var(--t-route) var(--ease-coat) both; }
@keyframes vt-lift { to { opacity: 0; transform: translateY(-24px); } }
@keyframes vt-coat { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
::view-transition-group(case-photo), ::view-transition-group(case-title) { animation-duration: 560ms; animation-timing-function: var(--ease-coat); }
::view-transition-old(case-photo), ::view-transition-new(case-photo) { height: 100%; object-fit: cover; overflow: hidden; }
/* 헤더는 고정. 내용(현재 메뉴 표시)만 짧게 교차 */
::view-transition-group(site-hd) { animation-duration: 200ms; }
::view-transition-old(site-hd), ::view-transition-new(site-hd) { animation-duration: 200ms; }
/* 안전장치: 한쪽 문서에만 있는 공유 스냅샷은 새 화면 위에 남지 않게 빨리 지운다 */
::view-transition-old(case-photo):only-child, ::view-transition-old(case-title):only-child { animation: vt-gone 120ms linear both; }
::view-transition-new(case-photo):only-child, ::view-transition-new(case-title):only-child { animation: vt-in 200ms var(--ease-coat) both; }
@keyframes vt-gone { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
/* 뒤로가기: 지금 화면이 아래→위로 걷히고, 이전 화면이 위쪽에서 내려앉는다 */
html:active-view-transition-type(back)::view-transition-old(root) { z-index: 1; animation: vt-peel var(--t-route) var(--ease-lift) both; }
html:active-view-transition-type(back)::view-transition-new(root) { animation: vt-settle var(--t-route) var(--ease-coat) both; }
@keyframes vt-peel { from { clip-path: inset(0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes vt-settle { from { opacity: .35; transform: translateY(-24px); } }


/* ================= R2: 추가 페이지 ================= */
.page-guide .page-head h1, .page-sources .page-head h1 { font-size: clamp(48px, 7vw, 116px); }
.page-head .display { margin-top: 20px; }
.h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; margin-bottom: 18px; }
.draft-note { display: inline-flex; font-size: 13px; font-weight: 700; color: var(--ink-2); border: 1.5px dashed var(--line-strong); padding: 6px 10px; border-radius: 2px; }

/* 상담 안내: 준비 카드(겹) */
.prep-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: p; }
.prep-item { position: relative; background: var(--sheen); padding: 28px 24px 30px; display: grid; gap: 12px; align-content: start; border-top: 3px solid var(--urethane); }
.prep-item:nth-child(2) { margin-top: 28px; } .prep-item:nth-child(3) { margin-top: 56px; } .prep-item:nth-child(4) { margin-top: 84px; }
.prep-no { font-weight: 800; color: var(--urethane); font-feature-settings: "tnum" 1; }
.prep-item h3 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.prep-item p { font-size: 16px; color: var(--ink-2); }
.prep-cta { margin-top: 48px; }

/* 상담 흐름: 스크롤로 칠해지는 연결선 */
.flow { background: var(--slab-2); }
.flow-list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 36px; }
.flow-list::before, .flow-list::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; }
.flow-list::before { background: var(--line-strong); }
.flow-list::after { background: var(--urethane); transform-origin: left; transform: scaleX(1); }
@supports (animation-timeline: view()) {
  .flow-list::after { animation: flowFill linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
  @keyframes flowFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.flow-step { display: grid; gap: 10px; align-content: start; position: relative; }
.flow-step::before { content: ""; position: absolute; top: -43px; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--slab-2); border: 3px solid var(--urethane); }
.flow-no { font-weight: 800; color: var(--urethane); font-feature-settings: "tnum" 1; }
.flow-step h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.flow-step p { color: var(--ink-2); max-width: 22em; }
.js .flow-step { opacity: .01; transform: translateY(12px); }
.js .flow-step.is-in { opacity: 1; transform: none; transition: opacity var(--t-element) var(--ease-coat) var(--d, 0ms), transform var(--t-element) var(--ease-coat) var(--d, 0ms); }

/* 자주 묻는 질문: 펼침 높이 모핑 */
:root { interpolate-size: allow-keywords; }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.faq-grid .sec-head { grid-column: 1 / 5; display: block; align-self: start; position: sticky; top: calc(var(--hd) + 32px); }
.faq-grid .sec-head .h2 { margin-top: 20px; }
.faq { grid-column: 6 / 13; border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); position: relative; isolation: isolate; }
.qa::before { content: ""; position: absolute; inset: 0 -16px; z-index: -1; background: var(--sheen); transform: scaleY(0); transform-origin: bottom; transition: transform var(--t-react) var(--ease-coat); }
.qa[open]::before, .qa:has(summary:focus-visible)::before { transform: scaleY(1); }
@media (hover: hover) { .qa:has(summary:hover)::before { transform: scaleY(1); } }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 18px 0; font-size: clamp(19px, 1.6vw, 24px); font-weight: 750; letter-spacing: -.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: -2px; }
.qa summary i { flex: none; width: 28px; height: 28px; position: relative; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform var(--t-react) var(--ease-coat); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size var(--t-element) var(--ease-coat), content-visibility var(--t-element) allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa-a { padding: 0 0 22px; display: grid; gap: 10px; color: var(--ink-2); max-width: 40em; }
.qa-a .link { color: var(--ink); }

/* 연락 페이지 */
.contact-hero { background: var(--ink); color: var(--sheen); padding: calc(var(--hd) + clamp(48px, 7vw, 104px)) 0 clamp(64px, 8vw, 112px); position: relative; }
.contact-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--urethane); }
.contact-hero .contact-grid { align-items: end; }
.contact-hero .contact-call { grid-column: 1 / 8; display: grid; gap: 14px; justify-items: start; }
.contact-hero h1 { margin-block: 6px 18px; }
.contact-hero dl { grid-column: 9 / 13; display: grid; border-top: 1px solid rgba(255,255,255,.2); }
.contact-hero dl > div { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.2); display: grid; gap: 4px; }
.contact-hero dt { font-size: 13px; font-weight: 650; color: rgba(255,255,255,.6); }
.contact-hero dd { font-size: 16px; font-weight: 650; }
.memo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.memo-form { display: grid; gap: 28px; }
.memo fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.memo legend, .field > span { font-size: 15px; font-weight: 750; margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line-strong);
  font-size: 15px; font-weight: 700; position: relative; overflow: hidden; isolation: isolate; transition: color var(--t-react) var(--ease-coat), border-color var(--t-react);
}
.chip span::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--urethane); transform: scaleY(0); transform-origin: bottom; transition: transform var(--t-react) var(--ease-coat); }
.chip input:checked + span { color: var(--sheen); border-color: var(--urethane); }
.chip input:checked + span::before { transform: scaleY(1); }
.chip input:focus-visible + span { outline: 2px solid var(--urethane); outline-offset: 3px; }
@media (hover: hover) { .chip input:not(:checked):hover + span { border-color: var(--ink); } }
.field { display: grid; }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--sheen); border: 1.5px solid var(--line-strong); border-radius: 2px; padding: 12px 14px; min-height: 48px; transition: border-color var(--t-react); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--urethane); }
.memo-out { position: sticky; top: calc(var(--hd) + 24px); background: var(--sheen); padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 16px; border-top: 3px solid var(--urethane); }
.memo-layers { display: grid; gap: 0; }
.memo-layers li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; clip-path: inset(0 0 100% 0); transition: clip-path var(--t-element) var(--ease-coat); }
.memo-layers li.is-in { clip-path: inset(0 0 -2px 0); }
.memo-layers li b { font-size: 13px; font-weight: 750; color: var(--urethane); padding-top: 2px; }
.memo-layers li span { white-space: pre-wrap; overflow-wrap: anywhere; }
.memo-empty { color: var(--ink-3); font-size: 15px; padding: 20px 0; border-bottom: 1px dashed var(--line-strong); }
.memo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]::before { display: none; }

/* 내부 상세: 사진 순서 */
.seq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px) 24px; }
.seq-item:nth-child(1) { grid-column: 1 / 8; }
.seq-item:nth-child(1) .ph { aspect-ratio: 4 / 3; }
.seq-item:nth-child(2) { grid-column: 9 / 13; margin-top: 96px; }
.seq-item:nth-child(3) { grid-column: 2 / 6; }
.seq-item:nth-child(4) { grid-column: 7 / 11; margin-top: 64px; }
.seq-item:nth-child(5) { grid-column: 1 / 5; margin-top: -24px; }
.seq-item:nth-child(6) { grid-column: 6 / 12; margin-top: 48px; }
.seq-item:nth-child(6) .ph { aspect-ratio: 4 / 3; }
.seq-item .ph { aspect-ratio: 3 / 4; }

/* 출처 */
.src-body > section { min-width: 0; }
.src-body { display: grid; gap: clamp(48px, 6vw, 80px); padding-block: 24px clamp(80px, 10vw, 140px); }
.tbl-wrap { overflow-x: auto; border-top: 1.5px solid var(--ink); }
.tbl-wrap:focus-visible { outline-offset: 2px; }
.tbl-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; min-width: 640px; }
.tbl-wrap th { text-align: left; font-size: 13px; font-weight: 750; color: var(--ink-3); padding: 12px 12px 10px 0; border-bottom: 1px solid var(--line-strong); }
.tbl-wrap td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl-wrap code, .src-body code { font-size: 12.5px; background: var(--slab-2); padding: 1px 4px; border-radius: 2px; word-break: break-all; }
.src-list { display: grid; gap: 8px; padding-left: 1.1em; list-style: disc; }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .brand-sub, .draft-chip { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-copy { grid-column: 1; grid-row: 1; padding-bottom: 28px; gap: 22px; }
  .hero-media { grid-column: 1; grid-row: 2; margin-inline: calc(var(--gutter) * -1); min-height: 0; aspect-ratio: 4 / 4.2; }
  .hero-band ul { grid-template-columns: repeat(2, 1fr); }
  .hero-band li { padding: 16px 0 16px 16px; font-size: 16px; }
  .hero-band li:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-band li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .sec-head h2, .sec-head .sec-aside { grid-column: 1 / -1; }
  .layer-card { grid-template-columns: 1fr; grid-template-rows: var(--tab) auto auto; min-height: 0; }
  .layer .ph { min-height: 0; aspect-ratio: 4 / 3; }
  .voice { grid-column: 1 / -1; }
  .voice:nth-child(2) { margin-top: 0; }
  .contact h2, .contact-call, .contact dl { grid-column: 1 / -1; grid-row: auto; }
  .contact dl { margin-top: 24px; }
  .band-row { grid-template-columns: 40px minmax(0, 1fr) 48px; row-gap: 14px; padding: 22px 0; }
  .band-no { grid-row: 1; align-self: start; padding-top: 6px; }
  .band-title { grid-column: 2; grid-row: 1; }
  .band-go { grid-column: 3; grid-row: 1; align-self: start; }
  .band-meta { grid-column: 2 / 4; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .band-photo { grid-column: 1 / -1; grid-row: 3; height: auto; aspect-ratio: 16 / 9; }
  .band-row:focus-visible .band-photo, .band-row:active .band-photo { height: auto; }
  .band-body { grid-template-columns: 1fr; row-gap: 20px; }
  .band-body .txt, .thumbs { grid-column: 1; }
  .thumbs { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .case-title-wrap, .case-hero { grid-column: 1 / -1; }
  .case-hero { margin-inline: calc(var(--gutter) * -1); height: auto; min-height: 0; aspect-ratio: 4 / 3.6; order: -1; }
  .case-grid { padding-top: 16px; }
  .process-grid { grid-template-columns: 1fr; }
  .section-diagram { grid-column: 1; top: var(--hd); z-index: 5; background: var(--sheen); padding: 10px 0 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
  .steps { grid-column: 1; }
  .step { padding: 40px 0; }
  .gallery { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .next-card { grid-column: 1 / -1; }
  .prep-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prep-item:nth-child(n) { margin-top: 0; }
  .prep-item:nth-child(even) { margin-top: 28px; }
  .faq-grid .sec-head, .faq { grid-column: 1 / -1; position: static; }
  .faq-grid .sec-head { margin-bottom: 32px; }
  .contact-hero .contact-call, .contact-hero dl { grid-column: 1 / -1; }
  .contact-hero dl { margin-top: 24px; }
  .memo { grid-template-columns: 1fr; }
  .memo-out { position: static; }
  .seq-item:nth-child(odd) { grid-column: 1 / 8; }
  .seq-item:nth-child(even) { grid-column: 6 / 13; margin-top: 0; }
  .seq-item:nth-child(n) { margin-top: 0; }
}
@media (max-width: 1100px) and (min-width: 700px) {
  .section-diagram .diagram { max-height: 220px; width: auto; margin-inline: auto; }
}
@media (max-width: 699px) {
  :root { --hd: 64px; }
  body { font-size: 16.5px; }
  .hd-call .hd-call-num { display: none; }
  .hd-call { width: 44px; padding: 0; justify-content: center; }
  .hero-title { font-size: clamp(48px, 15vw, 72px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-media .ph img { object-position: 55% 58%; }
  .sec { padding-block: 72px; }
  .layer-stack { --tab: 48px; }
  .layer-tab { font-size: 15px; }
  .layer-text { padding: 22px 20px 26px; gap: 12px; }
  .layer-text p:not(.meta) { font-size: 16px; }
  .svc { grid-template-columns: 40px 1fr; gap: 6px 12px; padding: 24px 0; }
  .svc-rel { grid-column: 2; margin-top: 8px; }
  .page-head h1 { font-size: clamp(52px, 16vw, 80px); }
  .filter-bar { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); gap: 12px; }
  .filter button { padding: 0 14px; font-size: 14.5px; }
  .thumbs { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .section-diagram .diagram-wide { display: block; }
  .section-diagram .diagram-tall { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .space-grid { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
  .space-grid figure:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .space-grid figure:nth-child(1) .ph { aspect-ratio: 4 / 4.4; }
  .space-grid figure:nth-child(2) { grid-column: 1 / -1; }
  .space-grid figure:nth-child(3) { grid-column: 2 / -1; }
  .work-pair { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .work-pair figure:nth-child(n) { grid-column: auto; margin-top: 0; }
  .work-pair figure:nth-child(3) { grid-column: 1 / -1; }
  .work-pair figure:nth-child(3) .ph { aspect-ratio: 16 / 10; }
  .next-card { grid-template-columns: 96px 1fr; }
  .lb-stage { inset: 56px 0 120px; }
  .lb-img { max-width: 100vw; max-height: calc(100dvh - 176px); }
  .lb-bar { height: 120px; flex-wrap: wrap; align-content: center; }
  .contact-phone { font-size: clamp(34px, 11vw, 48px); }
  .prep-list { grid-template-columns: 1fr; gap: 12px; }
  .prep-item:nth-child(even) { margin-top: 0; }
  .prep-item { padding: 22px 20px 24px; }
  .flow-list { grid-template-columns: 1fr; padding-top: 0; padding-left: 32px; gap: 36px; }
  .flow-list::before, .flow-list::after { top: 0; bottom: 0; left: 7px; right: auto; width: 3px; height: auto; }
  .flow-list::after { transform-origin: top; }
  @supports (animation-timeline: view()) { @keyframes flowFill { from { transform: scaleY(0); } to { transform: scaleY(1); } } }
  .flow-step::before { top: 4px; left: -32px; }
  .seq { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 12px; }
  .seq-item:nth-child(odd) { grid-column: 1 / -1; }
  .seq-item:nth-child(even) { grid-column: 2 / -1; }
  .memo-layers li { grid-template-columns: 64px 1fr; }
}
.diagram-wide { display: none; }

/* ---------- 모션 축소 ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-coat], .js .hero-band { clip-path: none !important; }
  .js [data-coat]::after { display: none; }
  .js [data-rise] { opacity: 1; transform: none; }
  .js .hero-title span { animation: none; background: none; color: var(--ink); -webkit-background-clip: border-box; background-clip: border-box; }
  .layer-card { transform: none !important; filter: none !important; }
  .parallax > img { animation: none !important; scale: 1 !important; translate: none !important; }
  .js .ph > img:not(.is-loaded) { opacity: 1; }
  .diagram .lyr, .diagram[data-axis="x"] .lyr { transform: none; opacity: 1; }
  .hero-media { animation: none !important; scale: 1 !important; filter: none !important; }
  .flow-list::after { animation: none !important; transform: none !important; }
  .js .flow-step { opacity: 1; transform: none; }
  .memo-layers li { clip-path: none; }
}

a[href^="tel:"] { white-space: nowrap; }
