/* ==========================================================================
   다울 M&D — 브랜드 아이덴티티 케이스
   강디자인

   설계 근거
   - 이 케이스만 가진 것은 「채워진 회신」이다. 앞의 렌탈코리아·금누리·TRIP IN 은
     같은 양식이 백지로 남아 있어 "고객이 무엇을 골랐는지" 를 쓸 수 없었다.
     여기서는 손으로 적힌 답이 있고, 결과와 한 줄씩 맞대 볼 수 있다.
   - 지면 #4f4f59 는 승인 색상규정 Gray 2 (C38 M29 Y20 K58) 실측값이다.
     Gray 1 #bec2c5 · BLUE 1 #2f3157 은 앞 케이스의 지면과 너무 가까워 쓰지 않았다.
   - 물성은 유리면이다. 분양대행이 파는 것은 아직 없는 집이고, 그것을 보여 주는
     자리는 모델하우스와 상담실 파티션이다. 유리만 가진 성질은 두 면이 만드는
     이중 반사다 — 상이 유리 두께만큼 밀려 한 번 더 맺힌다.
   - 마크의 형태·비례·색은 건드리지 않았다. 승인 록업을 그대로 쓴다.
   ========================================================================== */

body[data-daul-project='true'] { background: #4f4f59; }

body[data-daul-project='true'] .case__study__slices {
  display: block; width: 100%; max-width: none; padding: 0; gap: 0;
}
body[data-daul-project='true'] .case__study__info { display: none; }

.daul-site-host { grid-column: 1 / -1; width: 100%; margin: 0; padding: 0; }

/* img 에 width/height 속성이 박혀 있어 폭만 줄면 세로로 늘어난다.
   컨테이너별 규칙(.sheet img 등)이 못 덮는 자리를 위한 바닥 규칙. 2026-08-09 */
.daul-case img { max-width: 100%; height: auto; }

.daul-case {
  /* 승인 색상규정 07면 — 여덟 색. 이름은 가이드북이 붙인 그대로다. */
  --blue1: #2f3157;   /* C100 M100 Y61 K5 · BLUE 1 · 워드마크 */
  --yellow: #f9a72a;  /* YELLOW */
  --gray1: #bec2c5;   /* Gray 1 */
  --gray2: #4f4f59;   /* C38 M29 Y20 K58 · Gray 2 · 이 케이스의 지면 */
  --blue2: #1ea0d2;   /* C90 M15 Y10 K0 · BLUE 2 · 심볼 */
  --green: #99d420;   /* GREEN */
  --white: #ffffff;
  --black: #231f20;   /* K100 */
  --plate: #ffffff;

  --on-g: rgba(255, 255, 255, 0.94);
  --on-g-dim: rgba(255, 255, 255, 0.68);
  --on-g-faint: rgba(255, 255, 255, 0.34);
  --ink-72: rgba(35, 31, 32, 0.72);
  --ink-62: rgba(35, 31, 32, 0.62);
  --ink-26: rgba(35, 31, 32, 0.26);
  --rule: rgba(35, 31, 32, 0.14);
  --rule-g: rgba(255, 255, 255, 0.2);

  --gutter: clamp(20px, 5.4vw, 112px);
  --stack: clamp(58px, 8.2vw, 148px);

  --sans: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont,
          'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --hand: 'Nanum Pen Script', 'Gaegu', var(--sans);

  font-family: var(--sans);
  display: block; width: 100%;
  background: var(--gray2); color: var(--black);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  word-break: keep-all;
}

.daul-case *, .daul-case *::before, .daul-case *::after { box-sizing: border-box; }
.daul-case img, .daul-case video { display: block; max-width: 100%; }
.daul-case .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 장면 ──────────────────────────────────────────────────── */
.daul-case .scene {
  position: relative; padding: var(--stack) var(--gutter);
  background: var(--plate); color: var(--black); overflow: hidden;
}
.daul-case .scene.on-glass { background: var(--gray2); color: var(--on-g); }
/* 유리의 두 면. 좁고 선명한 앞면 반사 뒤로 두께만큼 밀린 뒷면 반사가 한 번 더 온다. */
.daul-case .scene.on-glass::before {
  content: ''; position: absolute; inset: -20% -10%; pointer-events: none;
  background:
    linear-gradient(104deg, transparent 41.4%, rgba(255,255,255,.13) 42.4%, rgba(255,255,255,.13) 43.0%, transparent 44.0%),
    linear-gradient(104deg, transparent 46.6%, rgba(255,255,255,.055) 48.0%, rgba(255,255,255,.055) 49.1%, transparent 50.5%),
    linear-gradient(180deg, rgba(255,255,255,.028), transparent 42%);
}
.daul-case .scene-shell { position: relative; width: 100%; max-width: 1520px; margin: 0 auto; z-index: 1; }

.daul-case .scene-index {
  position: absolute; top: clamp(20px, 3vw, 46px); left: var(--gutter);
  font-family: var(--mono); font-size: clamp(10px, 0.86vw, 13px);
  letter-spacing: 0.2em; color: var(--ink-26); font-variant-numeric: tabular-nums; z-index: 2;
}
.daul-case .scene.on-glass .scene-index { color: var(--on-g-faint); }

.daul-case .section-head { max-width: 62ch; margin: 0 0 clamp(34px, 4.4vw, 76px); }
.daul-case .eyebrow {
  display: inline-block; font-family: var(--mono);
  font-size: clamp(11px, 0.82vw, 12px); letter-spacing: 0.24em; text-transform: uppercase;
  color: rgb(21, 125, 168); margin-bottom: clamp(14px, 1.5vw, 24px);
}
.daul-case .scene.on-glass .eyebrow { color: rgb(134, 210, 239); }
.daul-case h2 {
  margin: 0; font-size: clamp(28px, 3.7vw, 62px); line-height: 1.16;
  letter-spacing: -0.022em; font-weight: 700;
}
.daul-case .lead {
  margin: clamp(18px, 2vw, 32px) 0 0; font-size: clamp(15px, 1.16vw, 19px);
  line-height: 1.78; color: var(--ink-72); max-width: 58ch;
}
.daul-case .scene.on-glass .lead { color: var(--on-g-dim); }
.daul-case .lead b { font-weight: 650; color: var(--black); }
.daul-case .scene.on-glass .lead b { color: var(--on-g); }
.daul-case .lead q { font-style: normal; }

/* ── 히어로 ────────────────────────────────────────────────── */
.daul-case .scene-hero {
  min-height: clamp(560px, 82vh, 940px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: clamp(20px, 2.4vw, 40px);
}
.daul-case .hero-mark { width: min(46%, 560px); height: auto; position: relative; z-index: 1; }
.daul-case .hero-thesis {
  margin: 0; font-size: clamp(26px, 3.5vw, 58px); line-height: 1.22;
  letter-spacing: -0.024em; font-weight: 700; color: var(--on-g); position: relative; z-index: 1;
}
.daul-case .hero-thesis em { font-style: normal; color: rgb(134, 210, 239); }
.daul-case .hero-sub {
  margin: 0; font-size: clamp(14px, 1.1vw, 18px); line-height: 1.7;
  color: var(--on-g-faint); max-width: 50ch; position: relative; z-index: 1;
}
.daul-case .hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(8px, 1vw, 14px); margin-top: clamp(6px, 1vw, 16px); position: relative; z-index: 1;
}
.daul-case .hero-meta span {
  font-family: var(--mono); font-size: clamp(11px, 0.76vw, 12px); letter-spacing: 0.14em;
  color: var(--on-g-dim); border: 1px solid var(--rule-g);
  padding: 0.5em 0.9em; border-radius: 999px;
}

/* ── 회신 ↔ 결과 ───────────────────────────────────────────── */
/* 이 케이스의 뼈대다. 왼쪽은 고객이 양식에 적거나 체크한 것, 오른쪽은 승인된 결과. */
.daul-case .reply {
  margin-top: clamp(26px, 3vw, 48px);
  border-top: 1px solid var(--rule);
}
.daul-case .reply-row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) 2.4em minmax(0, 1.1fr);
  align-items: start; gap: clamp(6px, 1vw, 18px);
  padding: clamp(16px, 1.9vw, 30px) 0; border-bottom: 1px solid var(--rule);
}
.daul-case .reply-row .said {
  font-size: clamp(14px, 1.1vw, 18px); line-height: 1.62; color: var(--black);
  border-left: 3px solid var(--blue2); padding-left: clamp(10px, 1.1vw, 18px);
}
.daul-case .reply-row .said i {
  display: block; font-style: normal; font-family: var(--mono);
  font-size: clamp(11px, 0.74vw, 11px); letter-spacing: 0.14em;
  color: var(--ink-26); margin-bottom: 0.55em;
}
.daul-case .reply-row .arrow {
  align-self: center; text-align: center; font-family: var(--mono);
  font-size: clamp(13px, 1.1vw, 17px); color: var(--ink-26); line-height: 1;
}
.daul-case .reply-row .got {
  font-size: clamp(14px, 1.1vw, 18px); line-height: 1.62; color: var(--ink-72);
}
.daul-case .reply-row .got b { color: var(--black); font-weight: 650; }
.daul-case .reply-row.broke .said { border-left-color: var(--yellow); }
.daul-case .reply-row.broke .got { color: var(--black); }
.daul-case .reply-row .flag {
  display: inline-block; font-family: var(--mono); font-size: clamp(9px, 0.72vw, 11px);
  letter-spacing: 0.14em; background: var(--yellow); color: var(--black);
  padding: 0.2em 0.6em; margin-right: 0.6em; vertical-align: 0.14em;
}

/* ── 수치 ──────────────────────────────────────────────────── */
.daul-case .measure {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  margin-top: clamp(26px, 3vw, 48px);
}
.daul-case .measure > div { background: var(--plate); padding: clamp(20px, 2.2vw, 36px) clamp(16px, 1.8vw, 28px); }
.daul-case .measure b {
  display: block; font-size: clamp(26px, 2.8vw, 46px); line-height: 1;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.daul-case .measure span {
  display: block; margin-top: clamp(8px, 0.9vw, 14px);
  font-size: clamp(11px, 0.86vw, 13px); line-height: 1.55; color: var(--ink-62);
}

/* ── 여덟 색 ───────────────────────────────────────────────── */
.daul-case .eight {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  margin-top: clamp(26px, 3vw, 48px);
}
.daul-case .eight > div { position: relative; padding-top: clamp(78px, 8.4vw, 138px); }
.daul-case .eight span {
  position: absolute; left: 0.7em; bottom: 0.55em;
  font-family: var(--mono); font-size: clamp(11px, 0.74vw, 11px);
  letter-spacing: 0.05em; line-height: 1.35;
}
.daul-case .eight .used {
  position: absolute; right: 0.55em; top: 0.55em; left: auto; bottom: auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  background: var(--black); color: #fff; padding: 0.18em 0.5em;
}

/* ── 여덟 바탕의 반전 여부 ─────────────────────────────────── */
.daul-case .grounds { margin-top: clamp(26px, 3vw, 48px); border-top: 1px solid var(--rule); }
.daul-case .ground-row {
  display: grid; grid-template-columns: 7.2em 3.6em 1fr auto; align-items: center;
  gap: clamp(10px, 1.4vw, 24px); padding: clamp(11px, 1.3vw, 18px) 0;
  border-bottom: 1px solid var(--rule);
}
.daul-case .ground-row b { font-family: var(--mono); font-size: clamp(11px, 0.88vw, 14px); font-weight: 500; }
.daul-case .ground-row .chip { height: clamp(20px, 2vw, 30px); border: 1px solid var(--rule); }
.daul-case .ground-row span { font-size: clamp(11px, 0.86vw, 13px); color: var(--ink-62); line-height: 1.55; }
.daul-case .ground-row span b { font-family: var(--sans); font-weight: 650; color: var(--black); }
.daul-case .ground-row em {
  font-style: normal; font-family: var(--mono); font-size: clamp(11px, 0.8vw, 12px);
  letter-spacing: 0.1em; padding: 0.3em 0.72em; white-space: nowrap;
}
.daul-case .ground-row.rev em { background: var(--black); color: #fff; }
.daul-case .ground-row.keep em { background: transparent; color: var(--blue1); box-shadow: inset 0 0 0 1px var(--blue1); }

/* ── 화소 인구조사 ─────────────────────────────────────────── */
.daul-case .census { margin-top: clamp(26px, 3vw, 48px); border-top: 1px solid var(--rule); }
.daul-case .census-row {
  display: grid; grid-template-columns: 7.2em 1fr auto; align-items: center;
  gap: clamp(10px, 1.4vw, 24px); padding: clamp(11px, 1.3vw, 18px) 0;
  border-bottom: 1px solid var(--rule);
}
.daul-case .census-row b { font-family: var(--mono); font-size: clamp(11px, 0.88vw, 14px); font-weight: 500; }
.daul-case .census-bar { height: clamp(13px, 1.4vw, 20px); }
.daul-case .census-row em {
  font-style: normal; font-family: var(--mono); font-size: clamp(11px, 0.88vw, 14px);
  color: var(--ink-72); font-variant-numeric: tabular-nums;
}
.daul-case .census-row span {
  grid-column: 1 / -1; font-size: clamp(11px, 0.86vw, 13px); color: var(--ink-62); margin-top: -0.35em;
}
.daul-case .census-row.off b, .daul-case .census-row.off em { color: var(--ink-26); }

/* ── 사이 공백 ─────────────────────────────────────────────── */
/* 고객이 「심볼／로고Type이 구분된 스타일」을 골랐다. 그 선택이 화소로 남은 자리다. */
.daul-case .gapfig {
  margin-top: clamp(26px, 3vw, 48px);
  background: var(--plate); border: 1px solid var(--rule);
  padding: clamp(18px, 2.4vw, 44px) clamp(16px, 2vw, 40px) clamp(12px, 1.4vw, 22px);
}
.daul-case .gapfig img { width: 100%; height: auto; }
.daul-case .gapscale {
  position: relative; height: clamp(46px, 4.6vw, 74px); margin-top: clamp(8px, 1vw, 14px);
}
.daul-case .gapscale i {
  position: absolute; top: 0; height: clamp(15px, 1.5vw, 22px);
  border-left: 1px solid var(--ink-26); border-right: 1px solid var(--ink-26);
  border-bottom: 1px solid var(--ink-26);
}
.daul-case .gapscale u {
  position: absolute; top: clamp(19px, 1.9vw, 28px); text-decoration: none;
  font-family: var(--mono); font-size: clamp(11px, 0.76vw, 12px);
  color: var(--ink-62); transform: translateX(-50%); white-space: nowrap; text-align: center;
}
.daul-case .gapscale i.hot { border-color: var(--blue2); }
.daul-case .gapscale u.hot { color: rgb(21, 125, 168); }

/* ── 지면 ──────────────────────────────────────────────────── */
.daul-case .plates {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(16px, 2vw, 40px); margin-top: clamp(26px, 3vw, 48px);
}
.daul-case .plates.one { grid-template-columns: 1fr; max-width: 1080px; }
.daul-case figure { margin: 0; }
.daul-case .sheet {
  background: var(--plate); border: 1px solid var(--rule);
  padding: clamp(12px, 1.4vw, 24px); overflow: hidden;
}
.daul-case .scene.on-glass .sheet { border-color: var(--rule-g); }
.daul-case .sheet img { width: 100%; height: auto; object-fit: contain; }
.daul-case figcaption {
  margin-top: clamp(10px, 1.2vw, 18px);
  font-size: clamp(11px, 0.9vw, 14px); line-height: 1.6; color: var(--ink-62);
}
.daul-case .scene.on-glass figcaption { color: var(--on-g-dim); }
.daul-case figcaption .tag {
  display: inline-block; font-family: var(--mono); font-size: max(11px, 0.86em);
  letter-spacing: 0.12em; color: rgb(21, 125, 168); margin-right: 0.7em;
}
.daul-case .scene.on-glass figcaption .tag { color: rgb(134, 210, 239); }

/* ── 모션 ──────────────────────────────────────────────────── */
.daul-case .motion-stage {
  position: relative; width: 100%; max-width: 1520px; margin: 0 auto;
  aspect-ratio: 1440 / 900; background: var(--gray2); overflow: hidden; z-index: 1;
}
.daul-case .motion-stage video { width: 100%; height: 100%; object-fit: cover; }
.daul-case .motion-note {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: clamp(10px, 1.4vw, 26px);
  max-width: 1520px; margin: clamp(16px, 1.8vw, 28px) auto 0; position: relative; z-index: 1;
}
.daul-case .motion-note strong {
  font-size: clamp(15px, 1.24vw, 21px); font-weight: 650; letter-spacing: -0.012em; color: var(--on-g);
}
.daul-case .motion-note span {
  font-size: clamp(12px, 0.94vw, 15px); color: var(--on-g-dim); line-height: 1.62; max-width: 62ch;
}

/* ── 목록 ──────────────────────────────────────────────────── */
.daul-case .notes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.2vw, 44px); margin-top: clamp(26px, 3vw, 48px);
}
.daul-case .notes > div { border-top: 1px solid var(--rule); padding-top: clamp(16px, 1.8vw, 28px); }
.daul-case .notes h3 { margin: 0 0 clamp(10px, 1.2vw, 18px); font-size: clamp(13px, 1vw, 16px); font-weight: 650; }
.daul-case .notes ul { margin: 0; padding: 0; list-style: none; }
.daul-case .notes li {
  position: relative; padding-left: 1.2em; margin-bottom: 0.62em;
  font-size: clamp(12px, 0.92vw, 14px); line-height: 1.66; color: var(--ink-62);
}
.daul-case .notes li::before {
  content: ''; position: absolute; left: 0; top: 0.56em;
  width: 0.58em; height: 0.58em; border-radius: 999px; background: var(--blue2);
}

/* ── 마침 ──────────────────────────────────────────────────── */
.daul-case .scene-end {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: clamp(18px, 2.2vw, 38px);
  padding-block: clamp(80px, 11vw, 190px);
}
.daul-case .scene-end img { width: min(38%, 460px); position: relative; z-index: 1; }
.daul-case .scene-end p {
  margin: 0; font-size: clamp(15px, 1.2vw, 20px); line-height: 1.72;
  color: var(--on-g-dim); max-width: 52ch; position: relative; z-index: 1;
}
.daul-case .credit {
  font-family: var(--mono); font-size: clamp(11px, 0.82vw, 12px);
  letter-spacing: 0.2em; color: var(--on-g-faint); position: relative; z-index: 1;
}

/* ── 등장 ──────────────────────────────────────────────────── */
.daul-case [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.daul-case [data-reveal].is-in { opacity: 1; transform: none; }
.daul-case [data-reveal][data-delay='1'] { transition-delay: 0.09s; }
.daul-case [data-reveal][data-delay='2'] { transition-delay: 0.18s; }
.daul-case [data-reveal][data-delay='3'] { transition-delay: 0.27s; }

@media (prefers-reduced-motion: reduce) {
  .daul-case [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .daul-case .plates { grid-template-columns: 1fr; }
  .daul-case .eight { grid-template-columns: repeat(2, 1fr); }
  .daul-case .motion-stage { aspect-ratio: 1440 / 900; }  /* 모션은 1440×900 이다. 4/3 으로 덮으면 object-fit:cover 가 좌우를 각 120열(폭의 16.7%) 잘라낸다 */
  .daul-case .hero-mark { width: min(78%, 340px); }
  .daul-case .census-row { grid-template-columns: 1fr auto; }
  .daul-case .census-bar { grid-column: 1 / -1; }
  .daul-case .reply-row { grid-template-columns: 1fr; gap: 0.7em; }
  .daul-case .reply-row .arrow { text-align: left; }
}

/* === 그림 자리 예약 (CLS) — 자동 생성. 없으면 지연 로딩 때 아래가 밀린다 === */
img[src$="/daul-case-assets/bs-signature.jpg"],
img[src$="/daul-case-assets/bs-symbol-grid.jpg"],
img[src$="/daul-case-assets/bs-color-use.jpg"],
img[src$="/daul-case-assets/bs-symbol.jpg"],
img[src$="/daul-case-assets/bs-logotype-grid.jpg"],
img[src$="/daul-case-assets/bs-signature-block.jpg"],
img[src$="/daul-case-assets/bs-type.jpg"],
img[src$="/daul-case-assets/bs-forbidden.jpg"],
img[src$="/daul-case-assets/as-card.jpg"],
img[src$="/daul-case-assets/as-envelope.jpg"],
img[src$="/daul-case-assets/bs-contents.jpg"] { aspect-ratio: 1000/707; }
img[src$="/leaderin-case-assets-v2/symbol-final.svg"] { aspect-ratio: 37/24; }
img[src$="/daul-case-assets/reply-choices.jpg"] { aspect-ratio: 500/367; }
img[src$="/daul-case-assets/reply-meaning.jpg"] { aspect-ratio: 20/1; }
img[src$="/daul-case-assets/mark-lockup-r2.png"] { aspect-ratio: 547/169; }
