/* ═══════════════════════════════════════════════════════════
   LUMEN · A Stained Glass Typography Series
   디자인 토큰 + 공통 스타일 + 섹션 스타일
   ═══════════════════════════════════════════════════════════ */

/* ──── reset / tokens ──── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #111; overflow-x: hidden; }
body {
  background: #111; color: #fff;
  font-family: 'Pretendard', sans-serif;
  margin: 0;
  overflow-x: hidden;

  /* 컬러 토큰 — 시스템 토큰(type.css)과 동일 값은 참조로 단일 출처화 */
  --c-blue:  #3b98f6;            /* 페이지 고유 블루 (시스템과 다름) */
  --c-red:   var(--accent-futura);
  --c-redx:  #f63b3b;            /* 페이지 고유 레드 변주 */
  --c-orng:  var(--accent-warm);
  --c-meta:  var(--c-600);
  --c-sub:   var(--c-200);
  --c-body:  var(--c-300);
  --c-cap:   var(--c-400);
  --c-paper: var(--c-100);

  /* 레이아웃 토큰 */
  --pad-x: 200px;
  --gutter: 51px;
  --col-w: 473px;
  --col-w-4: 343px;

  /* ─────────────────────────────────────────────
     타이포 토큰은 /type.css 에서 정의된다.
     이 페이지는 블랙레터(Cabazon) 디스플레이에 맞춰
     TITLE의 weight·spacing만 override.
     ───────────────────────────────────────────── */
  --t-title-weight:     400;
  --t-title-spacing:    0.02em;
}

/* ──── TITLE (블랙레터, 100px) ──── */
.display {
  font-family: 'cabazon', 'Cabazon', 'Pirata One', 'UnifrakturMaguntia', serif;
  font-weight: var(--t-title-weight);
  letter-spacing: var(--t-title-spacing);
  color: var(--c-paper);
  white-space: nowrap;
}
.display-100 {
  font-size: var(--t-title-size);
  line-height: var(--t-title-lh);
  position: absolute; left: var(--pad-x); top: 276px;
}

.c-blue  { color: var(--c-blue);  }
.c-red   { color: var(--c-red);   }
.c-redx  { color: var(--c-redx);  }
.c-orng  { color: var(--c-orng);  }

/* ──── page wrapper fit.js applies body.zoom for fit-to-viewport ──── */
.page {
  width: 1920px;
  background: #111;
}

/* Topnav styles live in shared /nav.css (master = futura) */

/* ──── section base ──── */
.sec {
  position: relative;
  width: 1920px;
  background: #111;
  overflow: hidden;
}

/* 풀-블리드 이미지 (cover / quote bg) */
.sec .bleed {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}

/* ──── META · 상단 섹션 헤드 (좌·우 라벨) ──── */
.sec-head {
  position: absolute; top: 180px; left: 0;
  width: 1920px; padding: 0 var(--pad-x);
  display: flex; justify-content: space-between; align-items: baseline;
  pointer-events: none;
}
.meta-l, .meta-r {
  font-size: var(--t-meta-size);
  line-height: var(--t-meta-lh);
  letter-spacing: var(--t-meta-spacing);
  text-transform: uppercase;
}
.meta-l { font-weight: var(--t-meta-weight-l); color: var(--c-meta); }
.meta-r { font-weight: var(--t-meta-weight-r); color: var(--c-sub);  }

/* ──── LEAD · 제목 옆 리드 문장 (우측, 20/300) ──── */
.lead-r {
  position: absolute; left: 1080px; top: 304px;
  font-size: var(--t-lead-size);
  line-height: var(--t-lead-lh);
  font-weight: var(--t-lead-weight);
  color: var(--c-sub);
  white-space: nowrap;
}
.lead-r.lead-wrap {
  left: 1000px; width: 720px; white-space: normal;
}

/* ──── BODY · 본문 단락 (20/400) ──── */
.body-r {
  position: absolute;
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
  font-weight: var(--t-body-weight);
  color: var(--c-body);
}
.body-r.body-wide {
  left: var(--pad-x); width: 997px; color: #fff;
}
.body-text {
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
  font-weight: var(--t-body-weight);
  color: #fff;
}

/* ──── SUB-LABEL · 본문 위 작은 주황 라벨 ──── */
.sub-label,
.sub-label-inline {
  font-size: var(--t-sublabel-size);
  letter-spacing: var(--t-sublabel-spacing);
  font-weight: var(--t-sublabel-weight);
  text-transform: uppercase;
  color: var(--c-orng);
}
.sub-label {
  position: absolute; left: var(--pad-x);
}
.sub-label-inline {
  margin-bottom: 16px;
}
.cap-label {
  font-weight: 700; font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--c-orng);
  margin-top: 40px;
}
.cap-body {
  font-weight: 300; font-size: 15px; line-height: 25.5px;
  color: var(--c-cap);
  margin-top: 8px;
}
.credit {
  font-weight: 300; font-size: 10px; line-height: 25.5px;
  color: var(--c-cap);
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════
   섹션별 레이아웃
   ═══════════════════════════════════════════════════════════ */

/* ──── 0 · Cover ──── */
.sec-cover { height: 1080px; }

/* ──── 1 · Inspired By ──── */
.sec-inspired {
  height: 708px;
  background: #000;
}
.sec-inspired .display-100 { top: 276px; }

/* ──── 2 · Quote (full-bleed bg) ──── */
.sec-quote {
  height: 1376px;
  background: #000;
}
.sec-quote .grad {
  position: absolute; left: 0; bottom: 0;
  width: 1920px; height: 877.576px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 92%);
  pointer-events: none;
}
.sec-quote .q-en {
  position: absolute; left: 50%; bottom: 290px;
  transform: translateX(-50%);
  font-size: 100px; line-height: 1; color: #fff;
}
.sec-quote .q-ko {
  position: absolute; left: 50%; bottom: 218px;
  transform: translateX(-50%);
  font-weight: 700; font-size: 36px; line-height: 1; color: #fff;
  white-space: nowrap;
}

/* ──── 3 · Stained Glass ──── */
.sec-stained {
  padding: 180px var(--pad-x) 180px;
}
.sec-stained .row-3 {
  position: absolute; left: var(--pad-x);
  width: calc(1920px - var(--pad-x) * 2);
  display: grid; grid-template-columns: repeat(3, var(--col-w)); gap: var(--gutter);
}
.sec-stained .row-3 figure { width: var(--col-w); }
.sec-stained .row-3 img {
  width: 100%; height: 318.438px; object-fit: cover; display: block;
}

.row-2-text {
  position: absolute; left: var(--pad-x); width: calc(1920px - var(--pad-x) * 2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
}
.row-2-text .col .body-text { max-width: 735px; }

/* ──── 4 · Form of Glass ──── */
.sec-form {
  background: #000;
  padding: 180px var(--pad-x) 180px;
}
.sec-form .row-4 {
  position: absolute; left: var(--pad-x);
  display: grid; grid-template-columns: repeat(4, var(--col-w-4)); gap: 49px;
}
.sec-form .form-cell { width: var(--col-w-4); }
.sec-form .img-wrap {
  width: var(--col-w-4); height: var(--col-w-4); overflow: hidden; position: relative;
  background: #1a1a1a;
}
.sec-form .cap-label { margin-top: 44px; }
.sec-form .img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none; display: block;
}

.sec-form .form-cell[data-fade-glass] .img-wrap {
  background: #000;
}

.sec-form .form-cell.c1 .img-wrap img {
  transform: scale(1.0);
  transform-origin: center center;
}

/* form/stained 섹션 동적 높이 sentinel */
.sec-stained, .sec-form, .sec-black, .sec-pwc, .sec-pwl {
  /* min-height만 정해두고 absolute 자식들이 콘텐츠 정의 */
}
.sec-stained { min-height: 1740px; }
.sec-form    { min-height: 1340px; }

/* ──── 5 · Color of Glass ──── */
.sec-color {
  background: #000;
  padding: 180px var(--pad-x) 180px;
  min-height: 1320px;
}
.sec-color .color-row {
  position: absolute; left: var(--pad-x);
  width: calc(1920px - var(--pad-x) * 2);
  display: grid; grid-template-columns: repeat(3, var(--col-w)); gap: var(--gutter);
}
.sec-color .color-cell { width: var(--col-w); }
.sec-color .swatch {
  width: var(--col-w); height: 240px;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
}
/* 색 영문명 앞 3글자 — 블랙레터 대문자만, 각 색으로 크게 */
.sec-color .swatch .glyph {
  font-family: 'cabazon', 'Cabazon', 'Pirata One', 'UnifrakturMaguntia', serif;
  font-size: 168px; line-height: 1; letter-spacing: 0.01em;
  white-space: nowrap; pointer-events: none;
}
.sec-color .sw-blue .glyph { color: var(--c-blue); }
.sec-color .sw-orng .glyph { color: var(--c-orng); }
.sec-color .sw-redx .glyph { color: var(--c-redx); }
/* hex — 글자 바로 밑, 작게, 중앙정렬 */
.sec-color .swatch .swatch-hex {
  font-weight: 300; font-size: 14px; letter-spacing: 2px;
  color: var(--c-cap); text-align: center;
}
.sec-color .cap-label { margin-top: 44px; }
.sec-color .cap-body { margin-top: 12px; }

/* ──── 6 · Blackletter ──── */
.sec-black {
  background: #000;
  padding: 180px var(--pad-x) 180px;
  min-height: 1468px;
}
.sec-black .big-img {
  position: absolute; left: 50%; top: 508px;
  width: 1128.696px; height: 368.495px;
  transform: translateX(-50%);
}
.sec-black .big-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sec-black .caption-center {
  position: absolute; left: 50%; top: 898px;
  transform: translateX(-50%);
  width: 735px; text-align: center;
  font-weight: 400; font-size: 20px; line-height: 36px; color: #fff;
}

/* ──── 6 · Posters with Colors ──── */
.sec-pwc {
  padding: 180px var(--pad-x) 180px;
  min-height: 1356px;
}
.sec-pwc .poster-row {
  position: absolute; left: var(--pad-x);
  width: calc(1920px - var(--pad-x) * 2);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gutter);
}
.sec-pwc .poster {
  width: 472.667px; height: 668.554px; overflow: hidden;
}
.sec-pwc .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 배경음 토글 버튼 — 포스터 아래 가운데 고정 */
.sec-pwc .ambience-hint {
  position: absolute; left: 0; right: 0; top: 1244px;
  display: flex; justify-content: center;
}

/* ──── 7 · Full-bleed images ──── */
.sec-fullbleed {
  width: 1920px;
  padding: 0;
  background: #000;
  font-size: 0;
}
.sec-fullbleed .full-img {
  display: block;
  width: 1920px;
  height: auto;
}
.sec-fullbleed .full-img-wrap {
  position: relative;
  display: block;
  line-height: 0;
}
.sec-fullbleed .fade-bottom::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 240px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}
