/* WHITOLOGY 홈페이지 — Bojagi Grid 방향 (정적 스테이징, PROVISIONAL)
   보자기 격자: 코발트 이음새(seam)로 분할된 패널 · 국문 명조 주도 · 계보 구조화.
   토큰 정본: tokens.css (직접 재정의 금지). */
@import url("./tokens.css");

/* 보조/캡션 텍스트 — Clay Trace 대비 미달이라 Ink 저투명(WCAG AA ~5:1) */
:root {
  --muted-ink: rgba(30, 36, 36, 0.66);
  --seam: var(--wt-brand-cheonghwa-cobalt);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--wt-bg-ramie-veil);            /* 보자기 천 바탕 */
  color: var(--wt-neutral-ink-black);
  font-family: var(--wt-font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--seam); outline-offset: 3px; border-radius: 3px; }

.f-kr    { font-family: var(--wt-font-serif-kr); font-weight: 700; }
.f-latin { font-family: var(--wt-font-serif-latin); }
.muted   { color: var(--muted-ink); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.kicker {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--seam); font-weight: 700; margin-bottom: 20px;
}


/* ── 헤더 (코발트 이음새 하단선) ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--wt-bg-hanji-white) 96%, transparent);
  border-bottom: 1.5px solid var(--seam);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brandmark { display: inline-block; padding: 8px 0; font-family: var(--wt-font-serif-latin); font-size: 19px; letter-spacing: .2em; color: var(--seam); }
.nav { display: flex; gap: 26px; font-size: 13px; font-weight: 600; }
.nav a { display: inline-block; padding: 12px 2px; }
.nav a:hover { color: var(--seam); }
@media (max-width: 767px) { .nav { gap: 15px; font-size: 12px; } }

/* ── 보자기 그리드 공통: 코발트 바탕이 seam으로 비쳐 보이게 ── */
.bojagi {
  display: grid; gap: 1.5px;
  background: var(--seam);
  border: 1.5px solid var(--seam);
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 26px 70px -38px rgba(30, 36, 36, .28);
}
.panel { background: var(--wt-bg-hanji-white); }
.panel--porcelain { background: var(--wt-bg-moon-porcelain); }
.panel--pad { padding: clamp(30px, 4vw, 56px); }

/* 섹션 리듬 */
section.band { padding: clamp(52px, 8vw, 92px) 0; }
.section-head { margin-bottom: 30px; }
.lead-kr { font-family: var(--wt-font-serif-kr); font-weight: 700; font-size: clamp(28px, 4.2vw, 50px); line-height: 1.3; letter-spacing: .01em; }
.lead-en { font-family: var(--wt-font-serif-latin); font-style: italic; font-weight: 400; font-size: clamp(18px, 2vw, 27px); color: var(--muted-ink); margin-top: 14px; }
.body-copy { font-size: clamp(16px, 1.5vw, 17px); color: var(--wt-neutral-ink-black); opacity: .9; max-width: 36em; margin-top: 18px; }

/* ── HERO (전면 사진) ── */
.phero { position: relative; height: min(92vh, 780px); min-height: 460px; overflow: hidden; }
.phero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero__t { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding-left: clamp(24px, 7vw, 110px); max-width: min(58%, 680px); }
.phero__t .k-lead { font-family: var(--wt-font-serif-kr); font-weight: 700; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.24; }
.phero__t .l-lead { font-family: var(--wt-font-serif-latin); font-style: italic; font-weight: 400; font-size: clamp(19px, 2.2vw, 30px); color: var(--muted-ink); margin-top: 16px; }

/* ── 사진 2단 (사진 + 글) ── */
.duo { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.duo--flip .duo__media { order: 2; }
.duo__media { overflow: hidden; min-height: 62vh; background: var(--wt-bg-moon-porcelain); }
.duo__media img { width: 100%; height: 100%; object-fit: cover; }
.duo__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 96px); background: var(--wt-bg-moon-porcelain); }
.duo__text > * { max-width: 34em; }

/* ── 전면 사진 밴드 ── */
.pband { position: relative; height: min(66vh, 560px); min-height: 300px; overflow: hidden; }
.pband > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pband__line { position: relative; height: 100%; display: flex; align-items: flex-end; padding: clamp(24px, 5vw, 64px); }
.pband__line span { font-style: italic; font-size: clamp(17px, 2.1vw, 28px);
  background: rgba(251, 250, 246, .84); padding: 10px 20px; }

@media (max-width: 860px) {
  .phero { height: 86vh; }
  .phero__t { max-width: 100%; justify-content: flex-end; padding-bottom: clamp(40px, 9vw, 72px); }
  .duo, .duo--flip .duo__media { grid-template-columns: 1fr; order: 0; }
  .duo__media { min-height: 56vh; }
}

/* ── ESSENCE (패널: 텍스트 | 백자 이미지) + triad ── */
.essence .bojagi { grid-template-columns: 1.05fr 1fr; }
.essence__media { background: var(--wt-neutral-ink-black); overflow: hidden; min-height: 320px; }
.essence__media img { width: 100%; height: 100%; object-fit: cover; }
.essence__text { display: flex; flex-direction: column; justify-content: center; }
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--seam); border: 1.5px solid var(--seam); border-radius: 4px; overflow: hidden; margin-top: 30px; }
.triad .cell { background: var(--wt-bg-hanji-white); padding: 20px 22px; }
.triad h3 { font-family: var(--wt-font-serif-kr); font-weight: 700; font-size: 16px; margin-bottom: 7px; }
.triad p { font-size: 13.5px; color: var(--muted-ink); line-height: 1.55; }
@media (max-width: 860px) { .essence .bojagi { grid-template-columns: 1fr; } .triad { grid-template-columns: 1fr; } }

/* ── DOMAINS (보자기 격자 3패널, 라운드 카드 아님) ── */
.domains .bojagi { grid-template-columns: repeat(3, 1fr); }
.dcell { background: var(--wt-bg-hanji-white); display: flex; flex-direction: column; }
.dcell__media { position: relative; }
.dcell__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.dcell__tint { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .26; }
.dcell__concept { position: absolute; left: 12px; bottom: 12px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; background: rgba(30,36,36,.72); color: #fff; padding: 3px 9px; border-radius: 999px; }
.dcell__body { padding: 22px 22px 26px; }
.dcell__chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; margin-bottom: 10px; }
.dcell__chip .dot { width: 12px; height: 12px; border-radius: 3px; }
.dcell h3 { font-family: var(--wt-font-serif-latin); font-size: 25px; margin-bottom: 8px; }
.dcell p { font-size: 14px; color: var(--wt-neutral-ink-black); opacity: .82; }
@media (max-width: 860px) { .domains .bojagi { grid-template-columns: 1fr; } }

/* ── OBJECTS (2패널 seam) ── */
.objects .bojagi { grid-template-columns: repeat(3, 1fr); }
.ocell { background: var(--wt-bg-hanji-white); }
.ocell img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.ocell figcaption { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-ink); padding: 14px 18px; }
@media (max-width: 900px) { .objects .bojagi { grid-template-columns: 1fr; } }

/* ── RITUAL (다크 풀블리드 스플릿) ── */
.ritual { background: var(--wt-neutral-ink-black); color: #fff; overflow: hidden; }
.ritual .fb { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.ritual .fb__media { min-height: 540px; }
.ritual .fb__media img { width: 100%; height: 100%; object-fit: cover; }
.ritual .fb__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 7vw, 112px); }
.ritual .fb__text > * { max-width: 30em; }
.ritual .kicker { color: var(--wt-brand-cobalt-mist); }
.ritual .lead-kr, .ritual .body-copy { color: #fff; }
.ritual .body-copy { opacity: .82; }
@media (max-width: 860px) { .ritual .fb { grid-template-columns: 1fr; } .ritual .fb__media { min-height: 360px; } }

/* ── Footer ── */
.site-footer { border-top: 1.5px solid var(--seam); padding: clamp(44px, 7vw, 76px) 0 40px; }
.site-footer .brandmark { font-size: 30px; color: var(--wt-neutral-ink-black); margin-bottom: 8px; padding: 0; }
.site-footer .fcorp { margin-top: 22px; font-size: 13px; line-height: 1.9; }
.site-footer .fcorp__name { font-weight: 700; letter-spacing: .02em; }
.site-footer .fcorp__row { color: var(--muted-ink); display: flex; flex-wrap: wrap; gap: 4px 14px; }
/* 항목 구분자 — 모바일에서 줄바꿈되면 사라지도록 가운뎃점을 CSS로 */
.site-footer .fcorp__row span + span::before { content: '·'; margin-right: 14px; color: var(--wt-neutral-clay-trace); }
.site-footer .fcorp__row a { color: var(--wt-brand-cheonghwa-cobalt); text-decoration: none; border-bottom: 1px solid var(--wt-neutral-glaze-mist); }
.site-footer .fcorp__row a:hover { border-bottom-color: var(--wt-brand-cheonghwa-cobalt); }
.site-footer .fnote { font-size: 12px; color: var(--muted-ink); margin-top: 18px; line-height: 1.7; max-width: 62ch; }

/* 모바일 여백 */
@media (max-width: 767px) { .wrap { padding: 0 20px; } }

/* ── Reveal 모션 (150-500ms, bounce 금지) · JS 있을 때만 숨김 ── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--wt-easing-reveal, cubic-bezier(.16,1,.3,1)), transform 500ms var(--wt-easing-reveal, cubic-bezier(.16,1,.3,1)); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }
