/* Story layout — 원래 WADE 상세페이지(2026.09) 레이아웃을 모든 상세페이지 공통으로 뽑은 것.
   블랙 패널 → 화이트(이미지·텍스트 교차) → 블랙 패널 → 풀블리드 마무리. 생성기: _tools/gen_story.py */

/* =================================================================
   WADE — v6 header (threespin-parity: BACK pill + big title + hero image + meta)
   NOTE: .work-head--compact modifier (added on the <header> below)
   handles the compact title sizing globally in css/work.css now — no
   local override needed here.
   ================================================================= */

/* Meta strip values — Pretendard, medium weight for KR readability */
.meta__item .v {
  font-size: clamp(15px, 1.2vw, 18px);
  font-family: var(--f-kr);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --- 01 · BACK pill band ------------------------------------------ */
/* Neutralize main's own top padding (set by css/work.css line 3 as
   nav-h + clamp(40,6vw,80)). We manage the nav gap ourselves so the
   BACK pill sits close under the fixed nav — matching the reference. */
body[data-page="work-detail"] main:has(.v2-hero--backonly:first-child) {
  padding-top: 0 !important;
}
.v2-hero.v2-hero--backonly {
  height: auto !important;
  min-height: 0 !important;
  background: transparent;
  color: inherit;
  /* nav is fixed → we need room for it + a small breathing gap */
  padding-top: calc(var(--nav-h, 64px) + 28px);
  padding-bottom: 0;
  overflow: visible;
}
.v2-hero.v2-hero--backonly + .work-head {
  padding-top: clamp(36px, 5vw, 56px) !important;
  margin-bottom: clamp(20px, 3vw, 40px);
}
@media (max-width: 720px) {
  .v2-hero.v2-hero--backonly { padding-top: calc(var(--nav-h, 64px) + 20px); }
  .v2-hero.v2-hero--backonly + .work-head { padding-top: 40px !important; }
}
.v2-hero--backonly .v2-back { padding-top: 0; }
.v2-hero--backonly .v2-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--mute);
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 1;
  border: 0;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.v2-hero--backonly .v2-back a::before { display: none; content: none; }
.v2-hero--backonly .v2-back a:hover {
  background: var(--ink);
  color: var(--bg);
  gap: 8px;
}
.v2-hero--backonly .v2-back a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (max-width: 560px) {
  .v2-hero--backonly .v2-back a {
    padding: 9px 18px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}

/* --- 03 · Hero image sitting AFTER the work-head ------------------ */
.v2-hero.v2-hero--after-head {
  margin-top: clamp(8px, 1.25vw, 18px);
  margin-bottom: 0;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  color: inherit;
}
.v2-hero.v2-hero--after-head + .meta {
  margin-top: 0;
  border-top: 0;
}
.v2-hero.v2-hero--after-head .v2-hero__media.reveal,
.v2-hero.v2-hero--after-head .v2-hero__media.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}
@media (max-width: 560px) {
  .v2-hero.v2-hero--after-head {
    padding-top: 0;
    margin-top: clamp(20px, 5vw, 32px);
    aspect-ratio: auto;
  }
}

/* =================================================================
   WADE — v5 body layout (unchanged)
   ================================================================= */

:root {
  --wd-cream: #f6f5f2;
  --wd-grey: #d9d9d9;
  --wd-grey-mid: #b8b8b8;
  --wd-dark-grey: #6a6a6a;
  --wd-ink: #0b0b0f;  /* aligned to site-wide --ink from css/main.css */
}

/* ---------- BACK pill  (matches threespin v2-back pill) ---------- */
.wd-back {
  padding: calc(var(--nav-h, 64px) + 22px) var(--pad-x) 0;
}
.wd-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--bg-alt, #efece7);
  color: var(--mute, #7a7a80);
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.wd-back a:hover {
  background: var(--ink, #0b0b0f);
  color: var(--bg, #f6f5f2);
}
@media (max-width: 560px) {
  .wd-back a { padding: 8px 16px; font-size: 10px; letter-spacing: 0.12em; }
}

/* ---------- WORK HEAD -------------------------------------------- */
.wd-head {
  padding: clamp(36px, 4vw, 56px) var(--pad-x) clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: clamp(24px, 4vw, 72px);
}
.wd-head__cat {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
  display: inline-flex;
  gap: 10px;
}
.wd-head__cat .num { color: var(--wd-ink); font-weight: 700; }
.wd-head__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(56px, 10.5vw, 156px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--wd-ink);
  margin: 0;
  text-transform: uppercase;
}
.wd-head__lede {
  font-family: var(--f-kr);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 36ch;
  margin: 0 0 14px;
}
.wd-head__lede b { color: var(--wd-ink); font-weight: 700; }
@media (max-width: 900px) {
  .wd-head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .wd-head__title { font-size: clamp(48px, 14vw, 84px); }
}

/* ---------- HERO IMAGE (padded) ---------------------------------- */
.wd-hero {
  padding: 0 var(--pad-x);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.wd-hero__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e8e6e0;
  overflow: hidden;
}
.wd-hero__frame::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #9a958b;
}

/* ---------- META STRIP ------------------------------------------- */
.wd-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: clamp(28px, 3.5vw, 48px) var(--pad-x);
  border-bottom: 1px solid var(--hair);
  margin-bottom: clamp(60px, 7vw, 100px);
}
.wd-meta__item { display: flex; flex-direction: column; gap: 10px; }
.wd-meta__k {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute);
}
.wd-meta__v {
  font-family: var(--f-kr); font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 700; color: var(--wd-ink); letter-spacing: -0.01em;
}
@media (max-width: 720px) {
  .wd-meta { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

/* ---------- WORDMARK + BILINGUAL INTRO --------------------------- */
.wd-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.7fr;
  padding: 0 var(--pad-x) clamp(80px, 10vw, 160px);
  gap: clamp(24px, 5vw, 96px);
  align-items: start;
}
.wd-intro__mark-wrap { position: relative; padding-top: 6px; }
/* Award marks (max 3) — mirrors the home "Recognitions" list so both read as one system */
.wd-awards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.wd-award {
  display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: center;
}
.wd-award__symbol {
  width: 76px; height: 76px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: transparent;
}
.wd-award__symbol img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wd-award__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wd-award__year { font-family: var(--f-mono); font-size: 11px; color: var(--mute); letter-spacing: 0.08em; }
.wd-award__name { font-family: var(--f-kr); font-size: 19px; font-weight: 700; color: var(--wd-ink); letter-spacing: -0.01em; line-height: 1.3; }
.wd-award__note { font-family: var(--f-kr); font-size: 13px; color: var(--ink-2); letter-spacing: -0.005em; line-height: 1.45; }
.wd-intro__body { display: flex; flex-direction: column; gap: 32px; padding-top: 18px; }
.wd-intro__h {
  /* Korean sentence heading — keep Pretendard, but align size/weight to
     the .wd-textrow__label scale so both headings read as one system. */
  font-family: var(--f-kr);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  color: var(--wd-ink);
  line-height: 1.4;
  margin: 0 0 14px;
}
.wd-intro__kor {
  font-family: 'Pretendard', 'Inter', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  letter-spacing: -0.01em !important;
  color: var(--ink) !important;
  font-weight: 400;
  margin: 0;
}
.wd-intro__kor b { color: var(--ink); font-weight: 700; }

/* Added: English lede under Korean lede + English sub-heading in intro */
.wd-intro__h-en {
  font-family: 'Pretendard', 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--mute);
  margin: -8px 0 14px;
}
.wd-intro__eng {
  font-family: 'Pretendard', 'Inter', system-ui, sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
  letter-spacing: -0.01em !important;
  color: var(--mute) !important;
  font-weight: 400;
  margin: 0;
}
@media (max-width: 900px) {
  .wd-intro { grid-template-columns: 1fr; gap: 32px; }
  .wd-awards { flex-direction: row; flex-wrap: wrap; gap: 20px 28px; }
  .wd-award { grid-template-columns: 60px 1fr; gap: 14px; }
  .wd-award__symbol { width: 60px; height: 60px; }
  .wd-award__name { font-size: 17px; }
}

/* =================================================================
   DARK PANEL  (PADDED — inner blocks respect side margin)
   ================================================================= */
.wd-dark {
  background: #000;
  color: var(--ink-on-dark);
  padding: clamp(64px, 8vw, 112px) var(--pad-x);
}
.wd-dark + .wd-dark { padding-top: 0; }
/* When a fade bridge follows the dark panel, drop the panel's own
   bottom padding so the fade starts at true black and reads as a
   continuation, not a stacked band. */
.wd-dark:has(+ .wd-fade) { padding-bottom: clamp(28px, 4vw, 56px); }

/* wide 16:9 grey image inside dark — padded (not full-bleed) */
.wd-dark-img {
  width: 100%; aspect-ratio: 16 / 9;
  background: var(--wd-dark-grey);
  position: relative; overflow: hidden;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.wd-dark-img::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #c0c0c0;
}
/* When a real photo is present, suppress the placeholder label */
.wd-dark-img:has(img)::after { content: none; }
.wd-dark-img:has(img) { background: transparent; }

.wd-dark-row {
  display: grid;
  /* 라벨은 항상 좁게(120px), 본문은 남은 공간 전체 — 큰 화면에서도 조기 개행 방지 */
  grid-template-columns: 120px 1fr;
  gap: clamp(16px, 2vw, 32px);
  margin-bottom: clamp(60px, 7vw, 96px);
  align-items: start;
}
/* Aligned with `.wd-textrow__label` (Contact `.avail__card h3` spec).
   Only the color differs — dark-panel needs cream ink for contrast. */
.wd-dark-row__mark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink-on-dark);
  text-transform: uppercase;
}
/* Dark panel body: ENG first (primary, brighter), KOR beneath (muted, smaller).
   Font sizes tuned to match the reference — same scale as Contact-page copy,
   just re-colored for a dark surface. */
.wd-dark-row__body {
  display: flex; flex-direction: column;
  gap: 12px;
  /* 그리드 셀 폭 전체 사용 — 큰 화면에서 텍스트 박스가 절반만 차지하는
     오류(120ch 캡으로 900px 부근에서 조기 종료) 수정.
     min-width: 0 은 그리드 자식이 콘텐츠 크기로 눌려 좁아지는 것을 방지. */
  max-width: 100%;
  min-width: 0;
}
/* Dark-panel bilingual pair — unified metrics; readable colors on black.
   NOTE: 국문 color 은 통일 규칙(#0b0b0f)이 아닌 다크 배경용 밝은 톤 유지 */
/* 다크 배경 할레이션 보정 + 사이트 웜톤 팔레트 준수:
   - color: 사이트 표준 토큰(--body-on-dark / --mute-on-dark) 사용
   - weight 400 → 350 로 낮춰 흰 글자가 굵어 보이는 착시 완화 */
.wd-dark-row__kor {
  font-family: 'Pretendard', 'Inter', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  letter-spacing: -0.01em !important;
  color: var(--ink-on-dark) !important;    /* #f6f5f2 — WADE 라벨과 동일 톤 */
  font-weight: 350;
  margin: 0;
}
.wd-dark-row__eng {
  font-family: 'Pretendard', 'Inter', system-ui, sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
  letter-spacing: -0.01em !important;
  color: var(--mute-on-dark) !important;   /* #8a8680 */
  font-weight: 350;
  margin: 0;
}
@media (max-width: 800px) {
  .wd-dark-row { grid-template-columns: 1fr; gap: 12px; }
}

.wd-dots {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
  margin: 0 0 clamp(48px, 6vw, 80px);
  padding: clamp(20px, 3vw, 48px) clamp(20px, 5vw, 88px) 0;
}
/* 원형 이미지 슬롯 — 이미지가 있으면 표시, 없으면 placeholder 라벨 노출 */
.wd-dot {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--wd-dark-grey);
  position: relative;
  overflow: hidden;
}
.wd-dot img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  /* 피사체가 중앙 정사각형 안에 있어야 원형 크롭 후에도 잘리지 않음 */
}
.wd-dot:not(:has(img))::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #c0c0c0;
  text-align: center;
  padding: 0 12px;
}
@media (max-width: 720px) {
  .wd-dots { grid-template-columns: 1fr; gap: 24px; padding: 0; }
  .wd-dot { max-width: 240px; margin: 0 auto; width: 100%; }
}

/* Cream sketch strip — sits inside the dark panel (padded to side margins) */
.wd-sketchstrip {
  width: 100%; aspect-ratio: 16 / 7;
  background: var(--wd-cream);
  position: relative; overflow: hidden;
}
.wd-sketchstrip::after {
  content: attr(data-label);
  position: absolute; top: 20px; left: 24px;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #b5b0a5;
}
.wd-sketchstrip__grid {
  position: absolute; inset: 50px 40px 30px;
  display: grid; grid-template-columns: repeat(10, 1fr);
  grid-auto-rows: 1fr; gap: 6px;
}
.wd-sketchstrip__grid > div { background: #e6e2d8; border: 1px solid #dad5c8; }

/* =================================================================
   FULL-BLEED IMAGE UTILITY
   Used for: overhang, duo (grip+display), tall close-up,
             big grip macro, strap tall, related object, final lifestyle
   ================================================================= */
.wd-bleed { padding: 0; }
.wd-bleed__frame {
  position: relative; width: 100%; overflow: hidden;
  background: var(--wd-grey);
}
.wd-bleed__frame::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #7a7a7a;
}
/* When a real photo is present, suppress the label pseudo-element */
.wd-bleed__frame--photo::after { content: none; display: none; }
.wd-bleed__frame--photo { background: transparent; }
.wd-bleed__frame--photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}

/* Overhang wide 16:9 with soft bottom shadow overlap into next block */
.wd-bleed--overhang .wd-bleed__frame { aspect-ratio: 16 / 9; }
.wd-bleed--overhang .wd-bleed__frame::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 22%;
  background: linear-gradient(to bottom, rgba(217,217,217,0) 0%, rgba(140,140,140,0.35) 100%);
  pointer-events: none; z-index: 1;
}
/* When the overhang holds a real photo, don't wash it with a grey overlay */
.wd-bleed--overhang .wd-bleed__frame--photo::before { display: none; }

/* ================================================================
   DARK → LIGHT FADE bridge
   Sits between the dark statement panel and the full-bleed product
   scene. Fades from pure black at the top into the cream page bg,
   so the transition feels cinematic rather than a hard cut.
   ================================================================ */
.wd-fade {
  height: clamp(120px, 16vw, 220px);
  background: linear-gradient(
    to bottom,
    #000 0%,
    rgba(0, 0, 0, 0.75) 22%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0) 100%
  ), var(--bg, #f6f5f2);
  margin-bottom: clamp(24px, 4vw, 56px);
}

/* ================================================================
   Grip + Display duo — PADDED (side margins), small gap,
   top-aligned (short square on left, taller portrait on right).
   Matches reference Fig. 07a/07b layout.
   ================================================================ */
.wd-bleed-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Fig. 07a / 07b — 두 이미지 사이 여백 제거(딱 붙게) */
  gap: 0;
  padding: 0 var(--pad-x);
  align-items: start;
}
.wd-bleed-duo > div {
  position: relative;
  background: var(--wd-grey);
  overflow: hidden;
}
.wd-bleed-duo > div::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #7a7a7a;
}
/* Both cells share Fig.07b's 3/4 portrait ratio for a matched pair. */
.wd-bleed-duo--sq-tall > div:nth-child(1),
.wd-bleed-duo--sq-tall > div:nth-child(2) { aspect-ratio: 3 / 4; }
@media (max-width: 720px) {
  .wd-bleed-duo { grid-template-columns: 1fr; padding: 0 var(--pad-x); }
  .wd-bleed-duo--sq-tall > div { aspect-ratio: 4 / 3; }
}

/* Full-bleed close-up variants */
.wd-bleed--tall .wd-bleed__frame { aspect-ratio: 1000 / 1080; } /* Fig. 08 · 요청 비율 */
.wd-bleed--macro .wd-bleed__frame { aspect-ratio: 16 / 9; background: #eef1f4; }
.wd-bleed--strap .wd-bleed__frame { aspect-ratio: 1.5 / 1; background: #f2eee8; } /* Fig. 12 · 요청 비율 */
.wd-bleed--related .wd-bleed__frame { aspect-ratio: 4 / 3; background: #d0cbc2; }
.wd-bleed--final .wd-bleed__frame { aspect-ratio: 4 / 3; }

/* =================================================================
   PADDED IMAGE BLOCKS
   ================================================================= */

/* Text row (padded) —
   라벨은 항상 좁게(120px), 본문은 남은 공간 전체 사용. */
.wd-textrow {
  display: grid; grid-template-columns: 120px 1fr;
  gap: clamp(16px, 2vw, 32px);
  padding: clamp(28px, 3.5vw, 44px) var(--pad-x) clamp(48px, 6vw, 88px);
  align-items: start;
}
/* Aligned with Contact page (`.avail__card`) type system:
   label = display heading (Archivo Black uppercase), eng = --f-text 13px,
   kor = --f-kr 14px --ink lh 1.65 */
.wd-textrow__label {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--wd-ink);
  text-transform: uppercase;
}
/* Order: KOR first (primary, darker) then ENG (secondary, muted & smaller).
   Using column-reverse keeps DOM order (eng before kor) unchanged. */
.wd-textrow__body {
  display: flex; flex-direction: column;
  gap: 10px;
  /* 그리드 셀 폭 전체 사용 — 큰 화면에서 텍스트 박스가 절반만 차지하는
     현상 방지(과거 120ch 캡 → 900px 부근에서 조기 종료). */
  max-width: 100%;
  min-width: 0;
}
/* Unified KR body copy — site-wide rule */
.wd-textrow__kor {
  font-family: 'Pretendard', 'Inter', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  letter-spacing: -0.01em !important;
  color: var(--ink) !important;
  font-weight: 400;
  margin: 0;
}
/* Unified EN secondary copy */
.wd-textrow__eng {
  font-family: 'Pretendard', 'Inter', system-ui, sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
  letter-spacing: -0.01em !important;
  color: var(--mute) !important;
  font-weight: 400;
  margin: 0;
}
@media (max-width: 800px) {
  .wd-textrow { grid-template-columns: 1fr; gap: 10px; }
}

/* Big square (padded, 1:1) */
.wd-bigsquare { padding: 0 var(--pad-x); }
.wd-bigsquare__frame {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--wd-dark-grey); overflow: hidden;
}
.wd-bigsquare__frame::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #c0c0c0;
}

/* ================================================================
   FULL-BLEED SCENE with dark fade overlay on top.
   Reference behavior: the product hero image spans the full viewport
   width, and the top ~20-30% is veiled by a black-to-transparent
   gradient so it reads as a continuation of the dark panel above
   (no separate .wd-fade band underneath).
   ================================================================ */
.wd-scene-bleed { position: relative; padding: 0; }
.wd-scene-bleed__frame {
  position: relative; width: 100%; overflow: hidden;
  /* Fig. 04 · Product Scene — 요청 비율 1000:1080 */
  aspect-ratio: 1000 / 1080;
  background: var(--wd-grey);
}
.wd-scene-bleed__frame img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.wd-scene-bleed__frame::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  /* Fig. 04 상단 검정 그라데이션 — 세로 길이 1/2로 축소 (22% → 11%) */
  height: 11%;
  background: linear-gradient(
    to bottom,
    #000 0%,
    rgba(0, 0, 0, 0.85) 20%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.25) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}
/* Placeholder label (only shown when the frame has no <img>) */
.wd-scene-bleed__frame:not(:has(img))::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #7a7a7a;
  z-index: 1;
}

/* 3-column square grid — full-bleed (no side padding) */
.wd-trirow {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(5px, 0.7vw, 10px);
  padding: clamp(40px, 4.8vw, 64px) 0 0;
}
.wd-trirow__cell {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--wd-dark-grey); overflow: hidden;
}
.wd-trirow__cell::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #c0c0c0;
}
@media (max-width: 720px) {
  .wd-trirow { grid-template-columns: 1fr; }
  .wd-trirow__cell { aspect-ratio: 4 / 3; }
}

/* Two-hand scenario (padded, square) */
.wd-scenario { padding: clamp(40px, 5vw, 72px) var(--pad-x) 0; }
/* When a caption row sits directly above, its bottom padding already
   supplies the vertical gap — kill the scenario's own top padding to
   avoid a doubled space. */
.wd-textrow + .wd-scenario { padding-top: 0; }
.wd-scenario__frame {
  position: relative; aspect-ratio: 1 / 1;
  background: #ececec; overflow: hidden;
}
.wd-scenario__frame::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #7a7a7a;
}

/* Camera / USB duo (padded, 3:4) */
.wd-detailduo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 24px);
  padding: clamp(24px, 3vw, 40px) var(--pad-x) 0;
}
.wd-detailduo > div {
  position: relative; aspect-ratio: 3 / 4;
  background: var(--wd-grey); overflow: hidden;
}
.wd-detailduo > div::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #7a7a7a;
}
@media (max-width: 720px) {
  .wd-detailduo { grid-template-columns: 1fr; }
}

/* ================================================================
   Split caption row for Camera / USB — aligned to the image duo above.
   Layout matches the reference: label + copy sit UNDER their own image
   column (2× 1fr, same gap as .wd-detailduo). Left column left-aligned,
   right column right-aligned. Label is smaller / not uppercase so it
   reads as a caption, not a section marker.
   ================================================================ */
.wd-textrow--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 24px); /* match .wd-detailduo gap */
  /* Unified vertical rhythm — same top/bottom padding as .wd-textrow
     so every caption block on this page reads with identical spacing. */
  padding: clamp(28px, 3.5vw, 44px) var(--pad-x) clamp(48px, 6vw, 88px);
  align-items: start;
}
.wd-textrow--split .wd-textrow__col {
  display: flex; flex-direction: column; gap: 10px;
}
.wd-textrow--split .wd-textrow__col--right {
  text-align: right;
  align-items: flex-end;
}
/* Unified caption label — matches .wd-textrow__label / .wd-dark-row__mark
   so every caption heading on this page reads as one system:
   Archivo Black · 900 · uppercase · same clamp size · letter-spacing 0. */
.wd-textrow--split .wd-textrow__caplabel {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--wd-ink);
  margin: 0 0 10px;
  text-transform: uppercase;
}
.wd-textrow--split .wd-textrow__eng {
  font-family: 'Pretendard', 'Inter', system-ui, sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
  letter-spacing: -0.01em !important;
  color: var(--mute) !important;
  font-weight: 400;
  margin: 0;
  max-width: 42ch;
}
.wd-textrow--split .wd-textrow__col--right .wd-textrow__eng { margin-left: auto; }
.wd-textrow--split .wd-textrow__kor {
  font-family: 'Pretendard', 'Inter', system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  letter-spacing: -0.01em !important;
  color: var(--ink) !important;
  font-weight: 400;
  margin: 0;
  max-width: 42ch;
}
.wd-textrow--split .wd-textrow__col--right .wd-textrow__kor { margin-left: auto; }
@media (max-width: 720px) {
  .wd-textrow--split { grid-template-columns: 1fr; gap: 24px; }
  .wd-textrow--split .wd-textrow__col--right { text-align: left; align-items: flex-start; }
  .wd-textrow--split .wd-textrow__col--right .wd-textrow__eng,
  .wd-textrow--split .wd-textrow__col--right .wd-textrow__kor { margin-left: 0; }
}

/* ================================================================
   Dark prototype grid — 2 rows, matches reference layout:
     Unified 6-image gallery — 3 columns × 2 rows, all 4:3
     foam mockups (top) → resin prints (bottom), same lighting rhythm
   ================================================================ */
.wd-protogrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.wd-protogrid > div {
  background: #2f2f2f;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}
.wd-protogrid > div::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #c0c0c0;
}
.wd-protogrid > div:has(img)::after { content: none; }
@media (max-width: 720px) {
  .wd-protogrid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   BW people mosaic — 2×2, asymmetric widths:
     row 1 → [1/3 square]  [2/3 wide]
     row 2 → [2/3 wide]    [1/3 square]
   ================================================================ */
.wd-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.wd-mosaic__row {
  display: grid;
  gap: 6px;
}
.wd-mosaic__row--a { grid-template-columns: 1fr 2fr; }
.wd-mosaic__row--b { grid-template-columns: 2fr 1fr; }
.wd-mosaic > div > div {
  background: #4a4a4a;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
}
.wd-mosaic > div > div::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #c0c0c0;
}
.wd-mosaic > div > div:has(img)::after { content: none; }
.wd-mosaic__row--a > div:nth-child(2),
.wd-mosaic__row--b > div:nth-child(1) { aspect-ratio: 2 / 1; }
@media (max-width: 720px) {
  .wd-mosaic__row--a,
  .wd-mosaic__row--b { grid-template-columns: 1fr; }
  .wd-mosaic > div > div { aspect-ratio: 4 / 3 !important; }
}

/* Thin black band before pager */
.wd-band { height: clamp(56px, 7vw, 96px); background: #000; }

/* Pager sits directly under the black band — kill the default top margin/border
   from work.css so there's no awkward gap between the band and the pager. */
.wd-band + .pager {
  margin-top: 0;
  border-top: 0;
}

/* Big pager */
.wd-pager {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: clamp(52px, 7vw, 96px) var(--pad-x) clamp(56px, 8vw, 112px);
  gap: 24px; align-items: end;
}
.wd-pager a {
  text-decoration: none; color: var(--wd-ink);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease;
}
.wd-pager a:hover { transform: translateY(-2px); }
.wd-pager .r { text-align: right; align-items: flex-end; }
.wd-pager__lbl {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute);
}
.wd-pager__title {
  font-family: var(--f-display);
  font-weight: 900; font-size: clamp(32px, 4.2vw, 68px);
  line-height: 1; letter-spacing: -0.02em; text-transform: uppercase;
}

/* =================================================================
   MOBILE IMAGE OPTIMISATION  (≤ 720px)
   PC 규칙은 그대로. 모바일에서만 이미지가 화면 폭을 최대한 쓰도록
   좌우 여백을 줄이고, 작게 쪼개지는 그리드를 풀어 크게 보여준다.
   ================================================================= */
@media (max-width: 720px) {
  /* 모바일에서 페이지 좌우 여백을 살짝 좁혀 이미지 폭 확보 */
  .wd-dark { padding-left: 16px; padding-right: 16px; }
  .wd-dark:has(+ .wd-fade) { padding-bottom: 24px; }

  /* 다크 패널 내부 와이드 이미지 — 좌우 여백을 뚫어 풀블리드로 */
  .wd-dark-img {
    width: calc(100% + 32px); margin-left: -16px; margin-right: -16px;
    aspect-ratio: 4 / 3;
    margin-bottom: 36px;
  }

  /* 원형 3개 — 240px 제한 해제, 2열 그리드로 크게 */
  .wd-dots { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0; margin-bottom: 40px; }
  .wd-dot { max-width: none; width: 100%; margin: 0; }
  .wd-dot:nth-child(3) { grid-column: 1 / -1; max-width: calc(50% - 8px); margin: 0 auto; }

  /* 패딩형 이미지 블록 → 풀블리드 */
  .wd-bigsquare,
  .wd-scenario,
  .wd-detailduo,
  .wd-bleed-duo { padding-left: 0; padding-right: 0; }
  .wd-bigsquare__frame,
  .wd-scenario__frame { aspect-ratio: 4 / 5; }

  /* 2장 나란히 → 세로로 1장씩, 3:4 세로 비율 유지 */
  .wd-bleed-duo { gap: 6px; }
  .wd-bleed-duo--sq-tall > div { aspect-ratio: 3 / 4; }
  .wd-detailduo { grid-template-columns: 1fr; gap: 6px; }
  .wd-detailduo > div { aspect-ratio: 4 / 5; }

  /* 3열 정사각 → 1열 4:3 (기존) 유지하되 간격만 조정 */
  .wd-trirow { gap: 6px; padding-top: 32px; }

  /* 풀블리드 이미지들 — 너무 긴 세로 비율은 모바일에서 4:5로 */
  .wd-bleed--tall .wd-bleed__frame,
  .wd-scene-bleed__frame { aspect-ratio: 4 / 5; }
  .wd-bleed--macro .wd-bleed__frame { aspect-ratio: 4 / 3; }
  .wd-bleed--strap .wd-bleed__frame { aspect-ratio: 4 / 3; }
  .wd-bleed--related .wd-bleed__frame,
  .wd-bleed--final .wd-bleed__frame { aspect-ratio: 4 / 3; }

  /* 프로토타입 6장 — 2열 → 1열 크게 */
  .wd-protogrid {
    grid-template-columns: 1fr; gap: 6px;
    width: calc(100% + 32px); margin-left: -16px; margin-right: -16px;
  }

  /* 인물 모자이크 — 풀블리드 1열 */
  .wd-mosaic { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; }
  .wd-mosaic > div > div { aspect-ratio: 4 / 3 !important; }

  /* 텍스트 블록 상하 여백을 조금 줄여 이미지 사이 리듬 유지 */
  .wd-textrow { padding-top: 28px; padding-bottom: 28px; }
  .wd-band { height: 40px; }
}

/* ---------- 2026.10 추가: 실제 이미지가 들어간 칸 ---------- */
.wd-dark-img img, .wd-bigsquare__frame img, .wd-trirow__cell img, .wd-bleed-duo > div img,
.wd-bleed__frame img, .wd-scenario__frame img, .wd-detailduo > div img, .wd-protogrid > div img,
.wd-mosaic > div > div img, .wd-dot img, .wd-scene-bleed__frame img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.wd-dark-img:has(img)::after, .wd-bigsquare__frame:has(img)::after, .wd-trirow__cell:has(img)::after,
.wd-bleed-duo > div:has(img)::after, .wd-bleed__frame:has(img)::after, .wd-scenario__frame:has(img)::after,
.wd-detailduo > div:has(img)::after, .wd-protogrid > div:has(img)::after, .wd-mosaic > div > div:has(img)::after,
.wd-dot:has(img)::after, .wd-scene-bleed__frame:has(img)::after { content: none; }
.st-contain { object-fit: contain !important; }
/* 칸 아래 작은 캡션 */
.st-cap {
  display: block; margin-top: 10px; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.wd-dark .st-cap { color: var(--mute-on-dark); }
.wd-award__symbol--text {
  display: grid; place-items: center; border: 1px solid var(--hair); border-radius: 50%;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink);
}
/* 역할 칩 */
.st-role { display: flex; flex-wrap: wrap; gap: 8px; }
.st-role span { padding: 6px 12px; border: 1px solid rgba(246,245,242,0.25); border-radius: 100px;
  font-family: var(--f-kr); font-size: 13px; color: var(--body-on-dark); }
/* 숫자 강조 줄 (dark 안) */
.st-facts { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 0;
  border-top: 1px solid rgba(246,245,242,0.18); margin-bottom: clamp(44px, 5vw, 72px); }
.st-fact { padding: 28px 24px 0 0; }
.st-fact + .st-fact { padding-left: 24px; border-left: 1px solid rgba(246,245,242,0.18); }
.st-fact__v { display: block; font-family: var(--f-display); font-size: clamp(40px, 5vw, 80px); line-height: 1;
  color: var(--ink-on-dark); letter-spacing: -0.02em; }
.st-fact__k { display: block; margin-top: 12px; font-family: var(--f-kr); font-size: 14px; color: var(--mute-on-dark); }
@media (max-width: 720px) {
  .st-facts { grid-template-columns: 1fr; }
  .st-fact + .st-fact { padding-left: 0; border-left: 0; border-top: 1px solid rgba(246,245,242,0.18); padding-top: 20px; }
}
/* 제품 라인업 그리드 (CMF & Facelift) */
.st-lineup { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px);
  padding: clamp(24px, 3vw, 40px) var(--pad-x) clamp(56px, 7vw, 96px); }
.st-lineup__cell { margin: 0; }
.st-lineup__cell img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; display: block; }
.st-lineup__cell figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); }
.st-lineup__more { aspect-ratio: 1 / 1; border: 1px dashed var(--mute-2); display: flex; flex-direction: column;
  justify-content: center; gap: 8px; padding: 20px; font-family: var(--f-kr); font-size: 13px; color: var(--mute); line-height: 1.5; }
.st-lineup__more b { font-family: var(--f-display); font-size: 20px; color: var(--ink); }
@media (max-width: 900px) { .st-lineup { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .st-lineup { grid-template-columns: repeat(2, 1fr); } }

.st-lineup__cell { min-width: 0; }
.st-lineup__cell img { height: auto; }

/* 2칸 이미지 아래 캡션 */
.st-pair-caps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px);
  padding: 12px var(--pad-x) 0; font-family: var(--f-kr); font-size: 13px; line-height: 1.5; color: var(--mute); }
.st-pair-caps b { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); margin-right: 8px; }
@media (max-width: 720px) { .st-pair-caps { grid-template-columns: 1fr; } }
/* contain 이미지: 여백(padding)이 판 안쪽으로 들어가게 */
img.st-contain { box-sizing: border-box; }
/* 라인업: 이미지 박스를 정사각으로 고정해 캡션 기준선 통일 */
.st-lineup { align-items: start; }
.st-lineup__cell img { aspect-ratio: 1 / 1 !important; height: auto; }

/* 라벨 열: 긴 라벨(TECHNOLOGY, TRANSPARENT DISPLAY 등)이 본문과 붙지 않게 폭·간격 확보 (리뷰 2026.10) */
.wd-dark-row, .wd-textrow { grid-template-columns: 200px minmax(0, 1fr); column-gap: clamp(28px, 3vw, 48px); }
.wd-dark-row__mark, .wd-textrow__label { min-width: 0; overflow-wrap: break-word; font-size: clamp(17px, 1.4vw, 20px); }
@media (max-width: 800px) {
  .wd-dark-row, .wd-textrow { grid-template-columns: 1fr; }
}

/* 2칸 캡션은 라벨이 본문 위에 오는 원래 구조 유지: 200px 라벨 열 규칙에서 제외 (리뷰 회귀 수정) */
.wd-textrow.wd-textrow--split { grid-template-columns: 1fr 1fr; column-gap: clamp(12px, 1.6vw, 24px); }
@media (max-width: 720px) { .wd-textrow.wd-textrow--split { grid-template-columns: 1fr; } }

.wd-bleed__frame video { display: block; width: 100%; height: 100%; object-fit: cover; }

.st-tri-caps { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .st-tri-caps { grid-template-columns: 1fr; } }

/* 원형 2개일 때 가운데 정렬 */
.wd-dots.wd-dots--2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
@media (max-width: 720px) { .wd-dots.wd-dots--2 { grid-template-columns: repeat(2, 1fr); } }

/* 2026-10-14 면접관 리뷰: 국내 지원용 — 영어 본문 문단은 숨기고 한국어만(제목·라벨 영어는 유지).
   데이터(story_pages.py)는 그대로라 영문판이 필요하면 이 블록만 지우면 됨. */
.wd-intro__eng,
.wd-dark-row__eng,
.wd-textrow__eng { display: none !important; }

/* 리서치 Pain → Solution 카드 (TS700 Research, 2026-10-14) */
.st-issues {
  display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  padding: 0 var(--pad-x) clamp(48px, 6vw, 88px);
}
.st-issue {
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 6px;
  padding: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; gap: 6px;
}
.st-issue__t {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(15px, 1.2vw, 18px); line-height: 1.1; margin: 0 0 10px;
}
.st-issue__k {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); margin: 8px 0 0;
}
.st-issue__k--sol { color: #2f6bff; }
.st-issue__v { font-family: 'Pretendard', 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.65; color: var(--ink); margin: 0; }
@media (max-width: 1100px) { .st-issues { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .st-issues { grid-template-columns: 1fr; } }

/* 이미지 크게 보기 (js/main.js, 상세 페이지) */
.lb { position: fixed; inset: 0; z-index: 1000; background: #0b0b0b;
  display: flex; align-items: center; justify-content: center; overflow: auto; cursor: zoom-out; }
.lb img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; object-fit: contain; cursor: default; }
@media (max-width: 720px) {
  /* 휴대폰: 가로로 긴 보드는 화면 폭의 2.3배로 키워 옆으로 밀어 보게 */
  .lb--wide { justify-content: flex-start; }
  .lb--wide img { max-width: none; max-height: none; width: 230vw; height: auto; margin: 0 16px; }
}
.lb__close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 44px; cursor: pointer; }

/* 챕터 머리 (한 페이지에 제품이 둘일 때, 2026-10-14 H500) */
.st-chapter { padding: clamp(72px, 9vw, 140px) var(--pad-x) clamp(24px, 3vw, 40px);
  border-top: 1px solid rgba(0,0,0,.12); display: grid; grid-template-columns: 120px 1fr; column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.st-chapter__no { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--mute); align-self: start; padding-top: 10px; }
.st-chapter__t { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; margin: 0;
  font-size: clamp(40px, 6vw, 88px); line-height: .95; letter-spacing: -0.02em; }
.st-chapter__line { grid-column: 2; margin: 18px 0 0; font-family: 'Pretendard', 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); }
@media (max-width: 800px) { .st-chapter { grid-template-columns: 1fr; } .st-chapter__line { grid-column: 1; } }

/* ---------- 면접관 리뷰 반영 (2026-10-14) ---------- */
/* 마지막 블랙 패널의 목업·공정 사진: 흑백으로 톤 통일 */
.wd-protogrid img { filter: grayscale(1) contrast(1.04); }
/* 휴대폰: 주석 보드는 글자가 작으니 크게 보기 안내 */
@media (max-width: 720px) {
  .st-board-cap span::after { content: " · 탭하면 크게 보기"; color: var(--mute); }
}

/* 핵심 라벨 가독성 (10px → 12px) */
.st-issue__k { font-size: 12px; letter-spacing: .08em; }
.meta__item .k { font-size: 12px; letter-spacing: .12em; }
