/* ───────── MEA — meaoffice.com ─────────
   흑과 백, 그리고 여백. 먹의 농담(濃淡)처럼.
*/

:root {
  --white: #ffffff;
  --ink: #111111;      /* 먹 이미지 바닥색과 맞춤 */
  --ink-80: #3a3a3a;
  --ink-60: #6b6b6b;
  --ink-40: #9c9c9c;
  --ink-20: #cfcfcf;
  --ink-10: #ececec;

  --latin: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ko: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --ko-serif: "Noto Serif KR", "AppleMyungjo", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --slow: 1.6s cubic-bezier(.2, .6, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--ko);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* 작은 라틴 라벨 공통 */
.nav a, .label, .tagline .t, .work em, .enter, .site-footer .copy, .eyebrow {
  font-family: var(--latin);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* ───────── Header — 아이콘 로고, 항상 작게 ───────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;   /* 흰 바탕에선 검게, 먹 위에선 희게 */
}
.mark img { height: 13px; width: auto; filter: invert(1); }
.nav { display: flex; gap: 28px; }
.nav a { color: #fff; opacity: .9; transition: opacity .4s; }
.nav a:hover { opacity: .5; }

/* ───────── 1. Hero — 여백 ───────── */
.hero {
  height: 100svh;
  min-height: 560px;
  position: relative;
}
.hero-sign {
  position: absolute;
  left: 50%;
  top: 66%;              /* 배경화면과 같은 하단 1/3 지점 */
  transform: translateX(-50%);
  width: min(560px, 84vw);
  text-align: center;
}
.hero-sign .word { width: 64px; margin: 0 auto 20px; }
.tagline {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-80);
}
.tagline .rule { flex: 1; height: 1px; background: var(--ink-80); }
.tagline .t { white-space: nowrap; font-size: 10px; letter-spacing: 0.42em; }

/* ───────── 2. Pause — 한 줄 ───────── */
.pause {
  padding: 22vh var(--gutter) 26vh;
  text-align: center;
}
.pause p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-60);
  letter-spacing: 0.08em;
}

/* ───────── 3. Works ───────── */
.works {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) 28vh;
}
.label { color: var(--ink-40); margin-bottom: 48px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 96px 64px;
}
.work:nth-child(even) { margin-top: 120px; }   /* 엇갈린 리듬, 여백 */

.work figure {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-10);
}
.work img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter var(--slow), transform var(--slow);
}
.work:hover img { filter: grayscale(0); transform: scale(1.02); }

/* 사진 전 자리 — 먹의 농도 단계 */
.ph { width: 100%; height: 100%; background: rgba(17,17,17,var(--tone, .06)); }

.work p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-80);
}
.work em { font-style: normal; color: var(--ink-40); font-size: 10px; }

/* ───────── 4. Ink — 먹이 차오르는 문 ───────── */
.ink {
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
}
.ink-door {
  position: relative;
  width: min(620px, 100%);
  display: block;
}
.ink-door img { width: 100%; height: auto; }
.enter {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  color: #fff;
  opacity: .35;
  transition: opacity 1s, letter-spacing 1s;
}
.ink-door:hover .enter { opacity: .9; letter-spacing: 0.5em; }

/* ───────── Footer — 흑 ───────── */
.site-footer {
  background: var(--ink);
  color: var(--ink-40);
  text-align: center;
  padding: 18vh var(--gutter) 64px;
  font-size: 12px;
  line-height: 2;
}
.site-footer .word { width: 44px; margin: 0 auto 32px; filter: invert(1); opacity: .9; }
.site-footer .copy { margin-top: 28px; font-size: 10px; color: var(--ink-60); }

/* ───────── 천천히 드러나기 ───────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--slow), transform var(--slow); }
.reveal.is-in { opacity: 1; transform: none; }
.hero-sign.reveal { transform: translate(-50%, 14px); }
.hero-sign.reveal.is-in { transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-sign.reveal { opacity: 1; transition: none; }
  .reveal { transform: none; }
  .hero-sign.reveal { transform: translateX(-50%); }
}

/* ───────── Mobile ───────── */
@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; gap: 72px; }
  .work:nth-child(even) { margin-top: 0; }
  .work:nth-child(odd)  { margin-right: 18%; }
  .work:nth-child(even) { margin-left: 18%; }
  .enter { opacity: .7; }
  .tagline { gap: 12px; }
  .tagline .t { letter-spacing: 0.3em; }
}

/* ═════════ About 페이지 ═════════ */
body.about { background: var(--white); }

/* 랜딩의 검은 바닥에서 이어지는 먹 — 위가 검고 아래로 풀린다 */
.about-top { background: var(--ink); height: 22vh; }
.ink-fall {
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
}
.ink-fall img { width: min(620px, 100%); height: auto; }

.about-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 18vh var(--gutter) 22vh;
}
.eyebrow { color: var(--ink-40); margin-bottom: 40px; display: block; }

.about-body h1 {
  font-family: var(--latin);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.2em;
  margin-bottom: 72px;
}
.prose p {
  font-family: var(--ko-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 2.2;
  color: var(--ink-80);
  margin-bottom: 2.2em;
}
.prose .closing { color: var(--ink); margin-top: 3em; }

.about-section { margin-top: 20vh; }
.about-section h2 {
  font-family: var(--ko);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
/* 소개글 아래, 회사와 건축가가 바라는 바 — 소제목 없이 이어서 */
.vow { margin-top: 16vh; padding-top: 48px; border-top: 1px solid var(--ink-10); }

/* 건축가 정보 — 이름표처럼 두 칸 */
.info {
  display: grid;
  grid-template-columns: 5em 1fr;
  row-gap: 14px;
  border-top: 1px solid var(--ink-10);
  padding-top: 24px;
  font-size: 14px;
}
.info dt { color: var(--ink-40); }
.info dd { color: var(--ink-80); }
.info .cred { font-family: var(--latin); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-60); margin-left: .4em; }

/* ═════════ Contact 페이지 ═════════ */
.contact-body { max-width: 960px; margin: 0 auto; padding: 24vh var(--gutter) 20vh; }

/* 지도 — 흑백, 가까이 가면 색이 스민다 (Works 사진과 같은 결) */
.map { aspect-ratio: 16 / 9; background: var(--ink-10); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1); transition: filter var(--slow); }
.map:hover iframe { filter: none; }

/* 주소 · 메일 · 전화 · 인스타그램 */
.reach {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding: 40px 0;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
}
.reach div { display: grid; gap: 6px; align-content: start; }
.reach svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.2; margin-bottom: 10px; }
.reach h3 {
  font-family: var(--latin);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.reach p, .reach a { font-size: 14px; color: var(--ink-80); line-height: 1.7; }
.reach a { border-bottom: 1px solid var(--ink-20); transition: border-color .4s; }
.reach a:hover { border-color: var(--ink); }

/* 문의 양식 — 칸마다 위에 이름, 아래로 길게 */
.ask-wrap { margin-top: 16vh; }
.ask-wrap h2 {
  font-family: var(--latin);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 40px;
}
.ask { display: flex; flex-direction: column; gap: 28px; }
.ask .field { display: flex; flex-direction: column; gap: 10px; }
.ask label { font-size: 13px; color: var(--ink-60); }
.ask label small { color: var(--ink-40); font-size: 11px; margin-left: .3em; }
.ask input, .ask textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #f5f5f5;
  border: 1px solid var(--ink-10);
  border-radius: 0;
  padding: 14px 16px;
  transition: border-color .4s, background .4s;
  -webkit-appearance: none;
  appearance: none;
}
.ask textarea { min-height: 220px; resize: vertical; line-height: 1.7; }
.ask input:focus, .ask textarea:focus { outline: none; background: #fff; border-color: var(--ink-60); }
.ask ::placeholder { color: var(--ink-40); }
.ask button {
  align-self: flex-start;
  margin-top: 8px;
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.32em;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 18px 44px;
  cursor: pointer;
  transition: opacity .4s;
}
.ask button:hover { opacity: .7; }

@media (max-width: 720px) {
  .map { aspect-ratio: 4 / 5; }
  .reach { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
