/* =========================================================
   시선과 공간 v7 "정갈" (2026-11-27)
   레퍼런스: oasispoint.kr, rimdesign.kr, owldesign.co.kr (+ 구조는 Telha Clarke)
   원칙: 글자는 작게, 여백은 넓게, 영어 라벨은 대문자·넓은 자간, 사진은 같은 크기 격자.
   색·글꼴·간격은 여기 :root 에서만 바꾼다.
   ========================================================= */
:root {
  --paper: #F6F5F2;   /* 따뜻한 흰 바탕 */
  --stone: #ECE9E3;   /* 사진 빈칸, 양식 칸 */
  --ink: #1E1E1C;     /* 글자 */
  --sub: #85817A;     /* 보조 글자 */
  --line: #E1DDD5;    /* 가는 선 */
  --night: #141413;   /* 영상 구간 바탕 */
  --night-ink: #E9E5DD;
  --night-sub: #8D887F;
  --oak: #9C7A52;     /* 키보드 초점 */

  --font: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;  /* 한글 본문·제목 */
  --serif: "Noto Serif KR", "AppleMyungjo", "Batang", serif;                         /* 로고·슬로건만 */
  --en: "Jost", "IBM Plex Sans KR", sans-serif;                                      /* 영어 라벨·숫자 */
  --gutter: clamp(20px, 3.2vw, 48px);
  --head-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.85; font-weight: 400;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; line-height: 1.4; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { padding-inline: var(--gutter); }
/* 작은 영어 라벨: 대문자 + 넓은 자간 */
.en, .sec__num, .label { font-family: var(--en); font-size: 11px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; line-height: 1.6; }
.label--sub { color: var(--sub); }
.display { font-size: clamp(26px, 2.6vw, 40px); font-weight: 300; }
.h2 { font-size: clamp(22px, 2vw, 30px); font-weight: 300; }
.lead { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.95; font-weight: 300; }
.serif { font-family: var(--serif); font-weight: 300; letter-spacing: 0; }
.sub { color: var(--sub); }
.link-line { display: inline-flex; gap: .5em; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-line:hover { color: var(--sub); }

/* ---------- 시작 화면: 로고만 잠깐 ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center; transition: opacity .8s var(--ease) .2s;
}
.loader .label { font-family: var(--serif); font-size: 18px; letter-spacing: .3em; text-transform: none; }
.loader__count { display: none; }
.loader.is-done { opacity: 0; pointer-events: none; }
.loader[hidden] { display: none; }

/* ---------- 머리 ---------- */
.head {
  position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--head-h) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0; color: var(--ink);
  background: rgba(246, 245, 242, .94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent;
  transition: background .4s, color .4s, border-color .4s;
}
.is-scrolled .head { border-bottom-color: var(--line); }
/* 첫 페이지 사진 위: 바탕 없이 흰 글자 */
.on-hero .head { background: transparent; backdrop-filter: none; color: #fff; }
.head__logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: .14em; white-space: nowrap; }
/* 회사 로고(붓 획 마크). 글자색을 그대로 따라감 — 사진 위에선 흰색 */
.logo-mark { display: inline-block; width: 38px; aspect-ratio: 306 / 161; background: currentColor; -webkit-mask: url(../images/brand/mark.png) center / contain no-repeat; mask: url(../images/brand/mark.png) center / contain no-repeat; flex: none; }
.head__nav { display: flex; gap: clamp(20px, 3.4vw, 52px); }
.head__nav a { font-family: var(--en); font-size: 11px; letter-spacing: .24em; padding: 8px 0; border-bottom: 1px solid transparent; }
.head__nav a:hover, .head__nav a[aria-current="page"] { border-bottom-color: currentColor; }
.head__menu { display: none; font-family: var(--en); font-size: 11px; letter-spacing: .24em; padding: 10px 0 10px 16px; }

/* 펼침 메뉴 (휴대폰) */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--paper); color: var(--ink);
  display: grid; grid-template-rows: var(--head-h) 1fr auto; padding: env(safe-area-inset-top, 0px) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__top .head__menu { display: block; }
.menu__links { align-self: center; display: flex; flex-direction: column; gap: 6px; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; font-size: 22px; font-weight: 300; padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu__links a small { font-family: var(--en); font-size: 10px; letter-spacing: .24em; color: var(--sub); }
.menu__links a[aria-current="page"] { color: var(--sub); }
.menu__foot { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--sub); }

/* ---------- 첫 화면: 사진 한 장으로 가득 ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; color: #fff; overflow: hidden; background: #2A2926; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__slides img.is-on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10,10,9,.45), rgba(10,10,9,0) 45%), linear-gradient(to bottom, rgba(10,10,9,.28), rgba(10,10,9,0) 22%); }
.hero__text { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(72px, 9vw, 110px); }
.hero__title { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 34px); font-weight: 300; letter-spacing: .02em; line-height: 1.6; }
.hero__sub { margin: 14px 0 0; opacity: .82; }
.hero__bar { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero__ctrl { display: flex; align-items: center; gap: 18px; }
.hero__ctrl button { font-family: var(--en); font-size: 11px; letter-spacing: .22em; opacity: .85; padding: 6px 0; }
.hero__ctrl button:hover { opacity: 1; }
.hero__count { font-family: var(--en); font-size: 11px; letter-spacing: .22em; font-variant-numeric: tabular-nums; }
.hero__count i { display: inline-block; width: 56px; height: 1px; background: rgba(255,255,255,.5); vertical-align: middle; margin: 0 12px; font-style: normal; }
.hero__cap { font-family: var(--en); font-size: 11px; letter-spacing: .22em; }
.hero__cap a:hover { opacity: .7; }

/* ---------- 섹션 공통 ---------- */
.sec { padding-block: clamp(96px, 12vw, 180px); }
.sec__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec__head > p { max-width: 30em; justify-self: end; color: var(--sub); margin: 0; }
.sec__num { display: flex; gap: 14px; margin-bottom: 18px; color: var(--sub); }
.sec__num span:first-child { color: var(--ink); }

/* ---------- 01 이야기 ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); }
.story__pin { position: sticky; top: calc(var(--head-h) + 40px); align-self: start; }
.story__pin .h2 { margin-bottom: 24px; }
.story__pin p { max-width: 28em; color: var(--sub); }
.chapters { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 128px); }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; }
.chapter figure { margin: 0; }
.chapter img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.chapter h3 { font-size: 18px; font-weight: 400; margin: 10px 0 14px; }
.chapter p { max-width: 26em; color: #4A4843; }
.chapter:nth-child(even) figure { order: 2; }

/* ---------- 작업 카드 (같은 크기 3열) ---------- */
.works, .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(14px, 1.4vw, 22px); }
.grid { padding-bottom: clamp(96px, 12vw, 180px); }
.work a { display: block; }
.work__img { aspect-ratio: 8 / 5; overflow: hidden; background: var(--stone); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work a:hover .work__img img { transform: scale(1.03); }
.work__cap { padding-top: 16px; }
.work__cap b { display: block; font-size: 14px; font-weight: 400; letter-spacing: -0.01em; }
.work__cap span { display: block; margin-top: 2px; font-family: var(--en); font-size: 10px; letter-spacing: .24em; color: var(--sub); }
.grid .work[hidden] { display: none; }
.works__more { margin-top: clamp(56px, 6vw, 88px); display: flex; justify-content: center; }
.works__more a { font-family: var(--en); font-size: 11px; letter-spacing: .24em; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.works__more a:hover { color: var(--sub); }

/* 첫 페이지 분류 입구: 주택 / 오피스 / 상공간 */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 22px); }
.door { display: block; position: relative; color: #fff; }
.door__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); }
.door__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.door__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,9,.42), rgba(10,10,9,0) 40%); }
.door:hover .door__img img { transform: scale(1.03); }
.door__cap { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; }
.door__cap b { font-size: 17px; font-weight: 400; }
.door__cap b small { display: block; font-family: var(--en); font-size: 10px; letter-spacing: .24em; opacity: .85; font-weight: 400; }
.door__cap span { font-family: var(--en); font-size: 11px; letter-spacing: .2em; }

/* 분류 페이지 */
.tabs { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-self: end; align-self: end; }
.tabs a { font-family: var(--en); font-size: 11px; letter-spacing: .22em; color: var(--sub); padding: 4px 0; border-bottom: 1px solid transparent; }
.tabs a span { margin-left: 4px; }
.tabs a[aria-current="page"], .tabs a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.cat-hero { margin: 0 var(--gutter) clamp(56px, 6vw, 96px); aspect-ratio: 21 / 9; overflow: hidden; background: var(--stone); }
.cat-hero img { width: 100%; height: 100%; object-fit: cover; }
.list-head { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin: 0 var(--gutter) 28px; color: var(--sub); }

/* 상세: 사진 격자 + 크게 보기 */
.pj-gal { padding: 0 var(--gutter) clamp(64px, 8vw, 120px); }
.pj-gal__head { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 24px; }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gal--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gal__item { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); cursor: zoom-in; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.gal__item:hover img { transform: scale(1.03); }
.pj-gal--before .gal__item img { filter: saturate(.75); }
.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100svh; max-width: none; max-height: none; background: transparent; color: #fff; }
.viewer::backdrop { background: #0E0E0D; }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.viewer__fig img { max-width: 86vw; max-height: 82svh; object-fit: contain; }
.viewer__fig figcaption { font-size: 13px; color: var(--night-sub); }
.viewer__close, .viewer__prev, .viewer__next, .viewer__count { position: fixed; font-family: var(--en); font-size: 11px; letter-spacing: .22em; color: #fff; padding: 12px 0; }
.viewer__close { top: calc(12px + env(safe-area-inset-top, 0px)); right: var(--gutter); }
.viewer__count { top: calc(12px + env(safe-area-inset-top, 0px)); left: var(--gutter); color: var(--night-sub); font-variant-numeric: tabular-nums; }
.viewer__prev { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.viewer__next { right: var(--gutter); top: 50%; transform: translateY(-50%); }
.viewer__prev:hover, .viewer__next:hover, .viewer__close:hover { color: var(--night-sub); }

/* ---------- 03 영상 (가운데 액자 고정 + 글이 넘어감) ---------- */
.films { background: var(--night); color: var(--night-ink); }
.films .sub, .films .sec__num, .films .sec__head > p { color: var(--night-sub); }
.films .sec__num span:first-child { color: var(--night-ink); }
.films__stage { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gutter); }
.films__pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; }
.frame { position: relative; height: min(76svh, 820px); aspect-ratio: 9 / 16; background: #000; overflow: hidden; }
.frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.frame video.is-on { opacity: 1; }
.frame__tag, .frame__count { position: absolute; top: 12px; z-index: 2; font-size: 12px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.frame__tag { left: 14px; } .frame__count { right: 14px; font-family: var(--en); letter-spacing: .2em; font-size: 11px; }
.steps { display: flex; flex-direction: column; }
.step { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 64px; opacity: .28; transition: opacity .6s var(--ease); }
.step.is-on { opacity: 1; }
.step .label { color: var(--night-sub); margin-bottom: 14px; }
.step h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 300; margin-bottom: 16px; }
.step p { max-width: 24em; color: var(--night-ink); opacity: .8; }
.step__links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 14px; font-size: 13px; }
.step__links button, .step__links a { color: var(--night-sub); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.step__links button[aria-pressed="true"], .step__links button:hover, .step__links a:hover { color: var(--night-ink); border-bottom-color: currentColor; }
.films__end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid #2B2A27; padding-top: 22px; margin-top: 24px; }
.films__end button { font-family: var(--en); font-size: 11px; letter-spacing: .24em; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.films__end button:hover { color: var(--night-sub); }

/* 포트폴리오 영상 창 */
.player { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100svh; margin: 0; }
.player::backdrop { background: rgba(10,10,9,.94); }
.player[open] { display: flex; align-items: center; justify-content: center; }
.player video { height: min(88svh, 1280px); width: auto; max-width: 92vw; aspect-ratio: 9 / 16; background: #000; }
.player__close { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: var(--gutter); color: #fff; font-family: var(--en); font-size: 11px; letter-spacing: .22em; padding: 10px 0; }

/* ---------- 04 일하는 방식 ---------- */
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.method li { list-style: none; padding: 24px 24px 8px 0; }
.method li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.method b { display: block; font-family: var(--en); font-size: 11px; font-weight: 400; letter-spacing: .22em; color: var(--sub); margin-bottom: 36px; }
.method h3 { font-size: 17px; margin-bottom: 10px; }
.method p { color: var(--sub); font-size: 14px; }
.method ol, ol.method { margin: 0; padding: 0; }

.cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-top: clamp(112px, 13vw, 200px); }
.cta .display { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); letter-spacing: .02em; line-height: 1.6; }
.cta__actions { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 36px;
  border: 1px solid var(--ink); color: var(--ink); font-size: 13px; letter-spacing: .04em; transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- 바닥: 밝고 작게 ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(48px, 5vw, 72px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--ink); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr); gap: 32px var(--gutter); font-size: 13px; line-height: 2.1; }
.foot__mark { margin: 0; font-family: var(--serif); font-size: 16px; letter-spacing: .24em; white-space: nowrap; line-height: 1.6; }
.foot__mark .logo-mark { display: block; width: 64px; margin-bottom: 14px; }
.foot__mark small { display: block; margin-top: 6px; font-family: var(--en); font-size: 10px; letter-spacing: .26em; color: var(--sub); }
.foot__nav a { display: block; font-family: var(--en); font-size: 11px; letter-spacing: .24em; }
.foot__grid a:hover { color: var(--sub); }
.foot__info { color: #55524C; }
.foot__bar { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--sub); }
.foot__bar a { font-family: var(--en); letter-spacing: .22em; }

/* 휴대폰 아래 버튼 */
.dock { display: none; }

/* ---------- 페이지 머리(작업·스튜디오·상담) ---------- */
.page-top { padding: calc(var(--head-h) + clamp(56px, 8vw, 120px)) var(--gutter) clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; }
.page-top .sec__num { grid-column: 1 / -1; margin: 0; }
.page-top .lead { color: var(--sub); }

/* 작업 상세 */
.pj-top { padding: calc(var(--head-h) + clamp(48px, 6vw, 96px)) var(--gutter) clamp(32px, 4vw, 56px); }
.pj-top__nav { display: flex; justify-content: space-between; font-family: var(--en); font-size: 11px; letter-spacing: .22em; margin-bottom: clamp(40px, 5vw, 72px); }
.pj-top__nav a:hover { color: var(--sub); }
.pj-meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px var(--gutter); margin: clamp(28px, 3vw, 44px) 0 0; border-top: 1px solid var(--line); padding-top: 16px; }
.pj-meta dt { font-family: var(--en); font-size: 10px; letter-spacing: .22em; color: var(--sub); }
.pj-meta dd { margin: 4px 0 0; font-size: 14px; }
.pj-meta a:hover { color: var(--sub); }
.pj-hero { margin: 0; padding-inline: var(--gutter); }
.pj-hero img { width: 100%; max-height: 88svh; object-fit: cover; background: var(--stone); }
.pj-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: var(--gutter); padding: clamp(64px, 8vw, 128px) var(--gutter); align-items: start; }
.pj-body__text .lead { margin-bottom: 28px; max-width: 32em; }
.pj-body__film { justify-self: end; width: min(100%, 280px); }
.pj-body__film video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.pj-next { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: clamp(48px, 6vw, 96px) var(--gutter) 0; border-top: 1px solid var(--line); padding: 22px 0 clamp(72px, 8vw, 120px); }
.pj-next span { font-family: var(--en); font-size: 11px; letter-spacing: .22em; color: var(--sub); }
.pj-next b { font-size: clamp(18px, 1.6vw, 24px); font-weight: 300; }
.pj-next:hover b { color: var(--sub); }

/* 스튜디오 */
.history { border-top: 1px solid var(--line); }
.history__year { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding: 18px 0 26px; border-bottom: 1px solid var(--line); }
.history__year h3 { font-family: var(--en); font-size: 15px; letter-spacing: .16em; font-weight: 400; }
.history__year ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: var(--gutter); font-size: 14px; }
.history__year li { padding: 3px 0; break-inside: avoid; }

/* 상담 */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding: 0 var(--gutter) clamp(96px, 12vw, 180px); }
.contact dl { display: grid; grid-template-columns: 72px 1fr; gap: 12px 16px; margin: 32px 0 0; font-size: 14px; }
.contact dt { color: var(--sub); }
.contact dd { margin: 0; }
.form { display: flex; flex-direction: column; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gutter); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--sub); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form .is-invalid { border-bottom-color: #A2452F; }
.form .agree { flex-direction: row; align-items: center; gap: 10px; }
.form .agree input { width: 18px; height: 18px; accent-color: var(--ink); }
.form .btn { align-self: flex-start; background: var(--ink); color: var(--paper); }
.form .btn:hover { background: #3A3935; }
.form__msg { min-height: 1.6em; font-size: 14px; margin: 0; }
.form__note { margin: -8px 0 0; font-size: 12px; color: var(--sub); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.kakao-out { border: 1px solid var(--line); background: var(--stone); padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; outline: none; }
.kakao-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 14px; }
.kakao-steps li { counter-increment: st; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; font-size: 14px; line-height: 1.7; }
.kakao-steps li::before { content: counter(st); grid-row: span 2; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-family: var(--en); font-size: 12px; }
.kakao-steps li[hidden] { display: none; }
.kakao-steps b { font-weight: 500; font-size: 16px; }
.kakao-steps span { color: #55524C; }
.kakao-out > .btn { justify-self: start; }
.kakao-out__text summary { cursor: pointer; font-size: 13px; color: var(--sub); }
.kakao-out pre { margin: 12px 0; font: inherit; font-size: 14px; white-space: pre-wrap; user-select: all; }
.form__msg.err { color: #A2452F; }

/* 스토리 페이지 (story.html) — 글이 중심, 한글·영어 나란히 (rimdesign overview 참고) */
.st-top { padding: calc(var(--head-h) + clamp(72px, 10vw, 160px)) var(--gutter) clamp(56px, 7vw, 104px); text-align: center; }
.st-top .sec__num { justify-content: center; }
.st-top__title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 38px); font-weight: 300; letter-spacing: .02em; line-height: 1.7; margin-bottom: 18px; }
.st-pair { margin: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.4vw, 22px); }
.st-pair img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--stone); }
.st-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); padding-block: clamp(96px, 11vw, 168px); max-width: 1240px; margin: 0 auto; }
.st-text__head { font-size: clamp(18px, 1.5vw, 21px); font-weight: 400; margin: 14px 0 28px; }
.st-text__col p:not(.label) { color: #4A4843; }
.st-text__col--en { font-family: var(--en); font-size: 15px; letter-spacing: .01em; }
.st-text__col--en .st-text__head { font-family: var(--en); letter-spacing: 0; }
.st-three { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 22px); }
.st-three img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); margin-bottom: 20px; }
.st-three h3 { font-size: 18px; margin: 2px 0 10px; }
.st-three p:not(.label) { color: var(--sub); max-width: 24em; }
.st-road { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.st-road li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding: 22px 0; border-bottom: 1px solid var(--line); }
.st-road b { font-family: var(--en); font-size: 15px; font-weight: 400; letter-spacing: .16em; }
.st-road p { margin: 0; max-width: 34em; }
.st-road__more { margin-top: 28px; }
.st-end { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: center; padding-bottom: clamp(112px, 13vw, 200px); }
.st-end img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--stone); }
.st-end__quote { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); font-weight: 300; letter-spacing: .02em; line-height: 1.7; margin: 16px 0 24px; }
.st-end .sub { max-width: 30em; }
@media (max-width: 760px) {
  .st-pair, .st-text, .st-three, .st-end, .st-road li { grid-template-columns: minmax(0, 1fr); }
  .st-pair img:last-child { display: none; }
  .st-three { gap: 48px; }
  .st-road li { gap: 6px; }
  .st-text { gap: 64px; }
}

/* 천천히 드러나기 */
.fade { opacity: 0; transition: opacity 1.1s var(--ease); }
.fade.is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transition: none; }
  .loader, .menu, .frame video, .step, .work__img img, .hero__slides img { transition: none; }
}

/* =================== 태블릿 =================== */
@media (max-width: 1024px) {
  .head__nav { display: none; }
  .head__menu { display: block; }
  .story, .sec__head, .contact, .pj-body, .page-top { grid-template-columns: minmax(0, 1fr); }
  .sec__head > p { justify-self: start; }
  .story__pin { position: static; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method li:nth-child(3) { padding-left: 0; border-left: 0; }
  .method li { padding-bottom: 28px; }
  .works, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { justify-self: start; }
  .pj-body__film { justify-self: start; }
  .pj-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =================== 휴대폰 =================== */
@media (max-width: 760px) {
  :root { --head-h: 58px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .head__logo { font-size: 16px; }

  .hero { height: calc(100svh - 56px - env(safe-area-inset-bottom, 0px)); min-height: 520px; }
  .hero__text { bottom: 76px; }
  .hero__title { font-size: 21px; }
  .hero__cap { display: none; }

  .chapter { grid-template-columns: minmax(0, 1fr); }
  .chapter:nth-child(even) figure { order: 0; }

  .works, .grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .doors { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .door__img { aspect-ratio: 4 / 3; }
  .cat-hero { aspect-ratio: 4 / 3; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .gal--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer__fig img { max-width: 100vw; max-height: 76svh; }
  .viewer__prev, .viewer__next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: none; }

  .films__stage { grid-template-columns: minmax(0, 1fr); }
  .films__pin { top: var(--head-h); height: auto; padding-block: 8px; z-index: 1; background: var(--night); }
  .frame { height: 50svh; }
  .step { min-height: 76svh; justify-content: flex-end; padding-block: 0 5svh; }
  .step h3 { margin-bottom: 10px; }

  .method { grid-template-columns: minmax(0, 1fr); }
  .method li, .method li + li { padding: 20px 0 22px; border-left: 0; border-bottom: 1px solid var(--line); }
  .method b { margin-bottom: 12px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .history__year { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .history__year ul { columns: 1; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .foot__bar { flex-direction: column; }

  .dock {
    display: grid; grid-template-columns: 1fr 2fr; position: fixed; inset: auto 0 0; z-index: 40;
    background: var(--ink); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .dock a { display: flex; align-items: center; justify-content: center; height: 56px; font-size: 14px; color: var(--paper); }
  .dock a + a { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
}
