/* REWORK 리뉴얼 시안 — 미색·웜그레이 바탕, 검정 글자, 한글 중심 + 영문 포인트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --paper: #f5f2ec;   /* 미색 바탕 */
  --stone: #e8e3da;   /* 웜그레이 면 */
  --line: #d6d0c5;
  --ink: #171614;
  --ink-2: #5d5953;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 16px/1.75 var(--sans);
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; object-fit: cover; }
.color-img img { height: 100%; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.22; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 20px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2);
}

/* 헤더 */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--gut);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, transform .4s cubic-bezier(.2,.7,.2,1), background .3s, color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.top.on-hero { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; color: #fff; border-bottom-color: transparent; }
.top { position: fixed; left: 0; right: 0; }
.logo { font-weight: 700; font-size: 17px; letter-spacing: 0.18em; text-decoration: none; }
.menu { display: flex; gap: clamp(16px, 3vw, 40px); font-size: 14px; font-weight: 400; }
.menu a { text-decoration: none; padding: 8px 0; }
.menu a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* 도입 화면 */
.intro {
  position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; text-align: center;
  background: var(--paper); color: var(--ink);
  animation: introOut .9s cubic-bezier(.65,0,.35,1) 2.3s forwards;
}
.intro-mark { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .3em; animation: introText 1s ease .1s both; }
.intro-slogan { margin: 0; font-size: clamp(44px, 8vw, 120px); font-weight: 700; line-height: .95; letter-spacing: -0.05em; animation: introText 1.4s cubic-bezier(.2,.7,.2,1) .35s both; }
@keyframes introText { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.intro.is-skip { animation: introOut .4s ease forwards; }
.intro.is-skip * { animation: none; opacity: 1; }
.intro-seen .intro { display: none; }

/* 첫 화면: 화면 가득 가로 슬라이드 */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--stone); touch-action: pan-y; cursor: grab; user-select: none; }
.hero.is-dragging { cursor: grabbing; }
.hero-track { display: flex; height: 100%; transition: transform .5s ease; will-change: transform; }
.slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .45), rgb(0 0 0 / 0) 45%), linear-gradient(to bottom, rgb(0 0 0 / .25), rgb(0 0 0 / 0) 18%); }
.slide figcaption { position: absolute; right: var(--gut); bottom: 30px; z-index: 2; color: rgb(255 255 255 / .85); font-size: 12px; font-weight: 400; letter-spacing: .02em; }
/* 도입 화면이 걷힐 때 첫 사진이 살짝 당겨짐 */
.is-intro .slide:first-child img { animation: heroSettle 2.4s cubic-bezier(.2,.7,.2,1) 2.1s both; }
.intro-seen .is-intro .slide:first-child img { animation: none; }
@keyframes heroSettle { from { transform: scale(1.08); } to { transform: none; } }
.hero-copy { position: absolute; left: var(--gut); right: var(--gut); bottom: 72px; z-index: 2; color: #fff; pointer-events: none; }
.hero-copy .eyebrow { color: rgb(255 255 255 / .85); }
.hero-copy h1 { font-size: clamp(44px, 7.4vw, 120px); font-weight: 700; line-height: 1.02; letter-spacing: -0.05em; }
.hero-copy .lead { margin: 20px 0 0; font-size: clamp(15px, 1.3vw, 18px); font-weight: 400; color: rgb(255 255 255 / .9); }
.hero-copy > * { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.hero.is-ready .hero-copy > * { opacity: 1; transform: none; }
.hero.is-ready .hero-copy > :nth-child(2) { transition-delay: .12s; }
.hero.is-ready .hero-copy > :nth-child(3) { transition-delay: .26s; }
.dots { position: absolute; left: 50%; bottom: 30px; z-index: 3; transform: translateX(-50%); display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgb(255 255 255 / .55); cursor: pointer; transition: width .3s, background .2s; }
.dots button[aria-selected="true"] { width: 24px; background: #fff; }

/* 한 문장 */
.statement {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 9vw, 140px) var(--gut);
  border-top: 1px solid var(--line);
}
.statement .big { margin: 0; font-size: clamp(34px, 5.4vw, 80px); font-weight: 500; line-height: 1.25; letter-spacing: -0.045em; }

/* 구성 */
.sec-head { margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 48px); }
.note { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.series { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(64px, 9vw, 140px); }
.parts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.part { padding: 32px clamp(0px, 3vw, 48px) 8px 0; }
.part + .part { padding-left: clamp(20px, 3vw, 48px); border-left: 1px solid var(--line); }
.part-no { margin: 0 0 32px; font-size: 12px; letter-spacing: 0.16em; color: var(--ink-2); }
.part h3 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 16px; }
.part p { margin: 0; max-width: 30em; color: var(--ink-2); }
.part dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.part dt { color: var(--ink-2); }
.part dd { margin: 0; font-weight: 500; }

/* 색 */
.colors {
  display: grid; grid-template-columns: 7fr 5fr; gap: var(--gut); align-items: start;
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 120px) var(--gut);
  background: var(--stone);
}
@media (min-width: 1440px) { .colors { max-width: none; padding-left: calc((100vw - var(--max)) / 2 + var(--gut)); padding-right: calc((100vw - var(--max)) / 2 + var(--gut)); } }
.color-img { aspect-ratio: 4 / 3; overflow: hidden; position: sticky; top: 96px; }
.color-img img { transition: opacity .35s ease; }
.color-img img.fading { opacity: 0; }
.color-side h2 { font-size: clamp(28px, 3.4vw, 48px); }
.desc { margin: 20px 0 36px; color: var(--ink-2); max-width: 24em; }
.swatches { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.swatches li { border-bottom: 1px solid var(--line); }
.swatches button {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 14px 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--ink-2); text-align: left;
}
.swatches i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); transition: transform .25s; }
.swatches span { flex: 1; font-size: 16px; }
.swatches em { font-style: normal; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.swatches button[aria-checked="true"] { color: var(--ink); font-weight: 500; }
.swatches button[aria-checked="true"] i { transform: scale(1.25); box-shadow: 0 0 0 2px var(--stone), 0 0 0 3px var(--ink); }

/* 색 — 세 가지 원칙 */
.principles { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 22px; }
.principles li { display: grid; grid-template-columns: 120px 1fr; column-gap: 20px; }
.principles em { grid-row: span 2; font-style: normal; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); padding-top: 4px; }
.principles b { font-weight: 600; font-size: 16px; }
.principles span { font-size: 14px; color: var(--ink-2); }

/* 디테일 */
.details { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 140px) var(--gut); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.detail-grid img { aspect-ratio: 4 / 3; background: var(--stone); }
.detail-grid figcaption { margin-top: 18px; font-size: 14px; color: var(--ink-2); max-width: 26em; }
.detail-grid b { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 600; color: var(--ink); }

/* 직접 구성 */
.cta { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 180px) var(--gut); text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 56px); margin-bottom: 40px; }
.btn {
  display: inline-block; padding: 18px 44px;
  background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 500; text-decoration: none; letter-spacing: 0.02em;
  transition: background .2s;
}
.btn:hover { background: #3a3733; }

/* 푸터 — 큰 워드마크 */
.foot { padding: clamp(56px, 8vw, 120px) var(--gut) 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); overflow: hidden; }
.wordmark {
  margin: 0; color: var(--ink);
  font-weight: 700; font-size: clamp(64px, 22.6vw, 330px); line-height: .82; letter-spacing: -0.045em;
  white-space: nowrap;
}
.foot-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; margin-top: clamp(28px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); }
.foot-row p { margin: 0; }
.tagline { color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: 0.01em; }
.links { display: flex; gap: 20px; }
.links a { text-decoration: none; }
.links a:hover { color: var(--ink); }

/* 나타나기 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .slide img, .hero-copy > * { opacity: 1; transform: none; transition: none; animation: none; } .intro { display: none; } }

/* 모바일 */
@media (max-width: 860px) {
  .menu { gap: 14px; font-size: 13px; }
  .colors { grid-template-columns: 1fr; }
  .hero-copy { bottom: 64px; }
  .slide figcaption { display: none; }
  .color-img { position: static; }
  .parts { grid-template-columns: 1fr; }
  .part + .part { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .detail-grid { grid-template-columns: 1fr; }
  .principles li { grid-template-columns: 1fr; }
  .principles em { grid-row: auto; padding: 0 0 2px; }
}
