/* =========================================================
   BOLD LAYER — 초대형 그로테스크 타이포 · 알약 태그 · 인라인 이미지 칩
   · 다크 섹션 · 확장 패널 · Spotlight 인덱스 · 스크롤 가로 타이포
   (style.css 위에 덧씌우는 레이어)
   ========================================================= */
:root {
  /* 영문: Montserrat (기본·디스플레이) + Times New Roman (세리프 액센트), 한글: Pretendard */
  --font-en: "Montserrat", "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  --font-display: "Montserrat", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --font-mono: "Montserrat", "Pretendard Variable", Pretendard, system-ui, sans-serif;  /* 메타 라벨도 Montserrat */
  --font-serif: "Times New Roman", Times, "Noto Serif KR", serif;
  --dark: #1C1C1C;               /* 순수 #000 대신 */
  --on-dark: #F4F4F1;
  --key: #FDFAA9;                /* 메인 키 컬러 = 전체 배경 */
  --bg: #FDFAA9;
  --surface: #F3EE9A;            /* 배경보다 한 톤 깊은 노랑 — 이미지 자리·패널 */
  --paper: #FFFDE8;              /* 밝은 크림 — 대비용 면 */
  --pop: var(--key);
  --accent: #272727;
  --fs-mega: clamp(46px, 9.1vw, 150px);
}
::selection { background: var(--ink); color: var(--key); }
body { background: var(--bg); }
.progress { background: var(--ink); }

/* Times New Roman 세리프 액센트 */
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; text-transform: none; letter-spacing: -0.02em; }
/* 형광펜 하이라이트 */
.hl { color: var(--key); background: linear-gradient(transparent 10%, var(--ink) 10%, var(--ink) 94%, transparent 94%); padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- display type ---------- */
.mega {
  font-family: var(--font-display);
  font-size: var(--fs-mega);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}
.mline {
  display: flex; align-items: center; gap: 0.12em;
  white-space: nowrap;
  overflow: hidden;              /* 줄 마스크 */
  padding: 0.02em 0 0.04em;
}
.mline > * {
  transform: translateY(110%);
  transition: transform 900ms var(--ease);
  transition-delay: calc(var(--li, 0) * 90ms + 80ms);
}
.mega.is-in .mline > * { transform: none; }
.mgap { flex: 1 1 0; min-width: 0.2em; }
.mw { display: inline-block; }

/* pill tag — 레퍼런스의 작은 라벨 */
.tag {
  position: relative;
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 12px;
  border: 1.5px solid currentColor; border-radius: 999px;
  font-family: var(--font-en); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 1;
  overflow: hidden; isolation: isolate;
  flex: none;
  vertical-align: middle;
}
.mega .tag { align-self: center; margin: 0 0.05em; }
.tag::before {           /* hover 시 아래에서 채워짐 */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: currentColor;
  transform: translateY(101%);
  transition: transform 320ms var(--ease);
}
.tag > span { transition: color 200ms; }
a.tag:hover::before, a.tag:focus-visible::before, .tag[aria-current="page"]::before { transform: none; }
a.tag:hover > span, a.tag:focus-visible > span, .tag[aria-current="page"] > span { color: var(--bg); mix-blend-mode: normal; }
.tag-inv { color: var(--on-dark); }
.tag-inv:hover > span, .tag-inv:focus-visible > span { color: var(--dark) !important; }
.tag-static { cursor: default; }

/* inline image chip */
.mchip {
  position: relative; display: inline-block; flex: none;
  width: 1.38em; height: 0.74em;
  border-radius: 0.06em; overflow: hidden;
  background: var(--dark);
  transition: transform 520ms var(--ease-spring), width 520ms var(--ease);
  z-index: 1;
}
.mchip .media { position: absolute; inset: 0; background: var(--dark); }
.mchip .ph { background: var(--dark); }
.mchip .mchip-n { position: absolute; left: 8px; top: 7px; font-size: 11px; color: var(--on-dark); letter-spacing: 0.04em; mix-blend-mode: difference; }
.mchip:hover, .mchip:focus-visible { width: 2.1em; }
.mchip img { transition: transform 900ms var(--ease); }
.mchip:hover img { transform: scale(1.08); }

/* ---------- header (pill nav) ---------- */
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
.site-header .brand { justify-self: start; }
.tag-nav { pointer-events: auto; display: flex; gap: 6px; }
.tag-nav .tag { height: 28px; padding: 0 14px; font-size: 12.5px; }
.tag-contact { pointer-events: auto; justify-self: end; height: 28px; }
.site-header::before { background: linear-gradient(var(--bg) 55%, rgba(253,250,169,0)); }
.site-header { transition: color 300ms var(--ease); }
.site-header.on-dark { color: var(--on-dark); }
.site-header.on-dark::before { background: linear-gradient(var(--dark) 55%, rgba(28,28,28,0)); }
.site-header.on-dark .brand small { color: rgba(244,244,241,0.6); }
.site-header.on-dark .tag[aria-current="page"] > span, .site-header.on-dark a.tag:hover > span { color: var(--dark); }

/* ---------- meta bar (Swiss grid) ---------- */
.mono { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.45; }
.meta-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gutter);
  padding: 12px 0; border-top: 1.5px solid var(--ink);
}
.is-home .meta-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.meta-bar .r, .block-head .r { justify-self: end; text-align: right; }

/* ---------- HOME hero ---------- */
body.is-home { height: 100svh; overflow: hidden; }
.hero { padding-top: calc(var(--header-h) + 8px); height: 100svh; min-height: 0; display: flex; flex-direction: column; }
.hero-mega { font-size: min(var(--fs-mega), 15svh); margin-top: auto; padding-top: clamp(40px, 10vh, 120px); }
.hero-foot {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 24px;
  padding: clamp(24px, 4vh, 44px) 0 var(--grid-margin);
}
.big-arrow { font-family: var(--font-display); font-size: clamp(64px, 9vw, 150px); line-height: 0.7; font-weight: 400; }
.hero-tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(24px, 2.6vw, 40px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; justify-self: end; text-align: right; }
.hero-foot > div { justify-self: end; text-align: right; max-width: 40ch; }
.hero-intro { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

/* ---------- block head ---------- */
.block { padding-top: clamp(80px, 12vw, 180px); }
.block-head {
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--grid-gutter);
  padding: 12px 0; border-top: 1.5px solid currentColor; margin-bottom: 18px;
}
.block-head h2 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 22px; letter-spacing: -0.01em; text-transform: none; line-height: 1; }

/* ---------- discipline panels (expanding) ---------- */
.panels { display: flex; gap: 8px; height: clamp(420px, 62vh, 640px); }
.panel {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px; overflow: hidden;
  transition: flex-grow 750ms var(--ease);
}
.panel.is-active { flex-grow: 3.2; }
.panel.tone-0 { background: var(--surface); color: var(--ink); }
.panel.tone-1 { background: var(--dark); color: var(--on-dark); }
.panel.tone-2 { background: var(--paper); color: var(--ink); }
.panel-top { display: flex; justify-content: space-between; gap: 12px; }
.panel-img {
  position: absolute; left: 16px; right: 16px; top: 48px; bottom: 34%;
  opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity 400ms var(--ease), transform 700ms var(--ease);
}
.panel-img .media { position: absolute; inset: 0; }
.panel.is-active .panel-img { opacity: 1; transform: none; transition-delay: 220ms; }
.panel-list { opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: auto; margin-bottom: 8px; }
.panel-label {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 92px); line-height: 0.86; letter-spacing: -0.045em; font-weight: 800 !important;
  white-space: nowrap;
  transform-origin: 0 100%;
  transition: transform 750ms var(--ease);
}
.panel:not(.is-active) .panel-label { transform: scale(0.62); }

/* ---------- dark sections ---------- */
.dark { background: var(--dark); color: var(--on-dark); }
.dark ::selection { background: var(--on-dark); color: var(--dark); }
.spot-sec { margin-top: clamp(80px, 12vw, 180px); padding: 18px 0 clamp(80px, 10vw, 140px); }

/* Spotlight index — 가운데 정렬 초대형 리스트 */
.spot { text-align: center; padding-top: clamp(28px, 5vw, 64px); }
.spot li + li { margin-top: 0.02em; }
.spot-row {
  position: relative; display: inline-flex; align-items: center; gap: 0.16em;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 7.4vw, 120px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800 !important;
  transition: color 300ms var(--ease), opacity 300ms;
}
.spot-thumb { position: relative; flex: none; width: 0.62em; height: 0.62em; overflow: hidden; border-radius: 0.04em; background: rgba(244,244,241,0.12); }
.spot-thumb .media { position: absolute; inset: 0; background: transparent; }
.spot-thumb .ph { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(244,244,241,0.12) 5px 6px); }
.spot-row sup { position: absolute; left: 100%; top: 0.3em; margin-left: 0.4em; white-space: nowrap; letter-spacing: 0.04em; font-weight: 400; color: rgba(244,244,241,0.6); }
.spot.is-peeking .spot-row { color: rgba(244,244,241,0.18); }
.spot.is-peeking .spot-row:hover, .spot.is-peeking .spot-row:focus-visible { color: var(--on-dark); }
.spot-row:focus-visible { outline-color: var(--on-dark); }
.peek-lg { width: clamp(280px, 30vw, 460px); z-index: 45; mix-blend-mode: normal; }

/* ---------- scroll run (가로로 흐르는 타이포) ---------- */
.run { position: relative; height: 260vh; }
.run-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px);
}
.run-text {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(72px, 15vw, 260px); line-height: 0.85; letter-spacing: -0.045em; font-weight: 800 !important;
  white-space: nowrap; padding-left: var(--grid-margin);
  will-change: transform; width: max-content;
}
.run-strip { display: flex; gap: 12px; width: max-content; will-change: transform; padding-left: var(--grid-margin); }
.run-card { display: block; width: clamp(200px, 22vw, 340px); }
.run-card .media { aspect-ratio: 4 / 3; }
.run-card .mono { display: block; margin-top: 8px; }

/* ---------- footer (dark mega) ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); border-top: 0; margin-top: 0; padding: clamp(80px, 14vw, 220px) 0 18px; }
.foot-mega { font-weight: 700; }
.foot-mega .tag { height: 28px; }
.site-footer .foot-row { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--grid-gutter); margin-top: clamp(48px, 8vw, 120px); padding-top: 12px; border-top: 1px solid rgba(244,244,241,0.2); }
.site-footer .foot-row > :last-child { justify-self: end; }
.site-footer .foot-links { font-size: 11px; justify-content: center; }
.site-footer .ulink { color: var(--on-dark); }
main + .site-footer, .run + .site-footer { margin-top: 0; }
body:not(.is-home) .site-footer { margin-top: clamp(80px, 10vw, 160px); }

/* ---------- WORKS ---------- */
.works-hero { padding-top: calc(var(--header-h) + 8px); }
.works-hero .mega { margin-top: clamp(48px, 9vh, 110px); }
.works-hero .mline { align-items: flex-end; }
.works-hero .big-arrow { font-size: 0.9em; line-height: 0.75; }
.works-hero .count-sup { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; align-self: flex-start; margin-top: 0.4em; }
.works-bar { border-bottom: 1.5px solid var(--ink); }
.tab { font-family: var(--font-en); text-transform: uppercase; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; border: 1.5px solid transparent; }
.tab:not(:disabled):not([aria-pressed="true"]) { border-color: var(--line); }
.tab:not(:disabled):not([aria-pressed="true"]):hover { border-color: var(--ink); }

/* list → Spotlight 형태 */
.w-list.spot-mode { text-align: left; padding-top: 18px; }
.w-row {
  grid-template-columns: 70px minmax(0, 1fr) 180px 40px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.w-row .n { grid-column: auto; align-self: start; padding-top: 0.5em; }
.w-row .t {
  grid-column: auto; display: flex; align-items: center; gap: 0.2em;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(36px, 5.8vw, 100px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800 !important;
}
.w-row .t small { font-family: var(--font-en); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink-3); align-self: flex-start; margin: 0.6em 0 0 0.6em; }
.w-row .row-thumb { position: relative; flex: none; width: 0.66em; height: 0.66em; border-radius: 0.04em; overflow: hidden; background: var(--surface); }
.w-row .row-thumb .media { position: absolute; inset: 0; }
.w-row .c { grid-column: auto; text-align: right; }
.w-row .y { display: none; }
.w-row .a { grid-column: auto; }
.w-row .c .mono { display: block; }
.w-list.is-peeking .w-row { color: rgba(39,39,39,0.16); }

/* grid → 확장 패널 */
.xg-item .media { height: clamp(320px, 42vw, 560px); }
.xg-item a { position: relative; display: block; }
.xg-cap { grid-template-columns: 1fr auto; }
.xg-cap h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 40px); letter-spacing: -0.045em; line-height: 0.95; }

/* ---------- PROJECT cover (centered editorial) ---------- */
.cover { padding-top: calc(var(--header-h) + 8px); text-align: center; }
.cover .meta-bar { text-align: left; }
.cover-title { margin-top: clamp(36px, 7vh, 80px); }
.cover-title .mline { justify-content: center; }
.cover-sub-mega { font-size: calc(var(--fs-mega) * 0.56); }
.cover-sub-mega .mline { justify-content: center; }
.cover-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--grid-gutter); align-items: center; margin: clamp(20px, 3vw, 36px) 0;
}
.cover-side { text-align: left; max-width: 26ch; font-size: 11px; }
.cover-side.r { justify-self: end; text-align: right; }
.cover-side p + p { margin-top: 10px; }
.cover-img { cursor: zoom-in; }
.case-title { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; letter-spacing: -0.05em; }
.case-hero { display: none; }      /* 커버에서 이미 보여줌 */
.cs-head { border-top-width: 1.5px; }
.cs-head h2 { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; letter-spacing: -0.04em; font-size: clamp(26px, 2.8vw, 44px); line-height: 0.95; }
.next-proj { background: var(--dark); color: var(--on-dark); border: 0; padding: 18px 18px 22px; margin-bottom: 0; }
.next-proj .np-title { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; }

/* ---------- ABOUT ---------- */
.about-top { padding-top: calc(var(--header-h) + 8px); }
.about-top .mega { margin: clamp(40px, 8vh, 100px) 0 clamp(32px, 5vw, 64px); }
.about-statement { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; }
.ag { border-top-width: 1.5px; }
.ag h2 { font-family: var(--font-mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-list a { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.05em; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1023px) {
  .w-row { grid-template-columns: 50px minmax(0, 1fr) 130px 30px; }
  .cover-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .cover-side.r { display: none; }
}

@media (max-width: 767px) {
  :root { --fs-mega: clamp(40px, 13.4vw, 72px); }
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .site-header .brand { display: none; }
  .tag-nav .tag { height: 26px; padding: 0 10px; font-size: 11.5px; }
  .tag-contact { height: 26px; padding: 0 10px; font-size: 11.5px; }

  .meta-bar { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .meta-bar > :nth-child(n+3) { display: none; }
  .mline { flex-wrap: wrap; white-space: normal; row-gap: 6px; overflow: visible; }
  .mline > * { transform: none; opacity: 0; transition: opacity 700ms var(--ease); transition-delay: calc(var(--li, 0) * 90ms); }
  .mega.is-in .mline > * { opacity: 1; }
  .mega .tag { height: 22px; padding: 0 9px; font-size: 10.5px; }
  .hero { height: 100svh; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-foot > div { justify-self: start; text-align: left; }
  .big-arrow { display: none; }
  .block-head { grid-template-columns: auto 1fr; }
  .block-head .r { display: none; }

  .panels { flex-direction: column; height: auto; }
  .panel { min-height: 120px; }
  .panel.is-active { min-height: 360px; }
  .panel-img { bottom: 96px; }
  .panel:not(.is-active) .panel-label { transform: scale(0.75); }

  .spot { text-align: left; }
  .spot-row { font-size: clamp(36px, 11vw, 60px); }
  .spot-row sup { position: static; align-self: flex-start; margin: 0.2em 0 0 0.2em; font-size: 9.5px; }
  .run { height: 200vh; }

  .site-footer .foot-row { grid-template-columns: 1fr; gap: 10px; }
  .site-footer .foot-row > :last-child { justify-self: start; }
  .site-footer .foot-links { justify-content: flex-start; }

  .w-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; }
  .w-row .n, .w-row .a { display: none; }
  .w-row .thumb { display: none; }
  .w-row .t { grid-column: 1; font-size: clamp(32px, 10vw, 52px); }
  .w-row .t small { display: none; }
  .w-row .c { grid-column: 2; align-self: center; }

  .cover-stage { grid-template-columns: 1fr; }
  .cover-side { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mline > * { transform: none !important; opacity: 1 !important; }
  .run { height: auto; }
  .run-sticky { position: static; height: auto; padding: 60px 0; }
  .run-text, .run-strip { width: auto; flex-wrap: wrap; white-space: normal; }
}

/* =========================================================
   KEY COLOR #FDFAA9 · 연락처
   ========================================================= */
.site-footer .hl, .dark .hl { color: var(--ink); background: linear-gradient(transparent 10%, var(--key) 10%, var(--key) 94%, transparent 94%); }
.tag-inv::before { background: var(--key); }
.tag-inv:hover, .tag-inv:focus-visible { border-color: var(--key); }
.spot-row:hover .spot-thumb { box-shadow: 0 0 0 3px var(--key); }
.tab[aria-pressed="true"] { color: var(--key); }
.tabs .tab-ind { background: var(--ink); }
.toc a.is-active .bar { background: var(--ink); }
.case-mobile-toc a.is-active { background: var(--ink); color: var(--key); border-color: var(--ink); }
.panel.tone-2 .panel-label .hl { background: none; }

.contact-list { gap: 10px; }
.contact-list a { text-transform: none; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 0.35em; flex-wrap: wrap; }
.contact-list a:hover { background: linear-gradient(transparent 58%, var(--paper) 58%); }
.contact-k { font-size: 0.42em; letter-spacing: 0; min-width: 3.4em; color: var(--ink-2); }
@media (max-width: 767px) { .contact-list a { font-size: clamp(22px, 6.4vw, 30px); } }

/* About photo (Figma 이력서 사진) */
.about-photo { grid-column: 1 / span 4; margin-top: 48px; }
.about-photo .media { background: var(--surface); }
.about-bio { align-self: end; }
@media (max-width: 767px) { .about-photo { grid-column: 1 / -1; max-width: 70%; } }

/* ---------- 케이스: 이어지는 하나의 작업물 ---------- */
.case-body { padding-top: clamp(24px, 4vh, 48px); }
.cs-section { padding: 0; }
.cs-blocks > * + * { margin-top: 0; }
.cs-blocks .b-cols, .cs-blocks .b-sticky .s-imgs { gap: 0; }
.cs-blocks figure.b-img figcaption, .cs-blocks .b-fig figcaption { margin: 8px 0 14px; }
.cs-blocks .b-scroller { padding: 0; gap: 0; }
.cs-text-h { display: block; color: var(--ink-2); margin-bottom: 12px; }
.cs-text > * + *, .cs-note > * + * { margin-top: 14px; }
.cs-note { border-top: 1.5px solid var(--ink); padding-top: 12px; font-size: 15px; opacity: 0; transform: translateY(6px); transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.cs-note:empty { display: none; }
.cs-note.is-in { opacity: 1; transform: none; }
.cs-note .b-text.is-lead { font-size: 19px; max-width: none; }
.cs-note .b-quote { font-size: 18px; }
/* 데스크톱: 글은 왼쪽 패널로, 오른쪽은 이미지만 이어짐 */
@media (min-width: 768px) {
  .cs-section:not(.is-textonly) > .cs-text { display: none; }
  .cs-section.is-textonly > .cs-text { padding: clamp(32px, 4vw, 56px) 0; }
}
@media (max-width: 767px) {
  .cs-note { display: none; }
  .cs-text { padding: 28px 0 18px; }
}
/* 이어지는 작업물 안에서는 이미지마다 따로 튀어나오는 효과를 끔 */
.cs-blocks .bloom { clip-path: none; }
.cs-blocks .bloom > * { transform: none; }

/* 홈 표지: 화살표 삭제 후 태그라인만 오른쪽 */
.is-home .hero-foot { grid-template-columns: 1fr; }
/* 목록 미리보기: 슬라이드 비율(16:9) 그대로, 잘리지 않게 · 기울기 없음 */
.peek, .peek-lg { aspect-ratio: 16 / 9; width: clamp(320px, 34vw, 560px); box-shadow: 0 18px 50px rgba(28,28,28,0.18); }
.w-row .row-thumb { width: 1.1em; height: 0.62em; }
/* 프로젝트 본문은 첫 장(표지 슬라이드)부터 이어짐 */
.case-body > .case-hero { display: block; margin: 0; }
.case-body > .case-hero.bloom { clip-path: none; }
.case-body > .case-hero.bloom > * { transform: none; }

/* About: 소개 자리에 들어간 이력 목록 (좁은 칼럼용) */
.about-bio.has-groups { align-self: start; color: var(--ink); }
.about-bio.has-groups .ag { display: block; padding: 12px 0 36px; }
.about-bio.has-groups .ag h2 { margin-bottom: 8px; }
.about-bio.has-groups .ag li { grid-template-columns: 56px minmax(0, 1fr) auto; font-size: 15px; }
.about-bio.has-groups .ag li .p, .about-bio.has-groups .ag li .tt, .about-bio.has-groups .ag li .d { grid-column: auto; }
.about-bio.has-groups .ag li .d { text-align: right; }
@media (max-width: 767px) { .about-bio.has-groups .ag li { grid-template-columns: 48px minmax(0, 1fr); } .about-bio.has-groups .ag li .d { grid-column: 2; text-align: left; } }
/* 프로필 사진: 흰 배경을 노랑에 녹이고(multiply) 살짝 투명하게 */
.about-photo .media { background: transparent; }
.about-photo img { display: block; }   /* 노랑 톤·투명도는 이미지 파일에 직접 적용 (assets/profile.webp) */
/* 프로젝트 이미지: 오른쪽(모바일은 양옆) 여백 없이 화면 끝까지 */
html, body { overflow-x: clip; }
.case-body { padding-top: 0; }
@media (min-width: 768px) {
  /* 왼쪽 패널은 사이트 그리드에 맞추고, 오른쪽 이미지는 화면 끝에서 50px 여백 */
  .case-wrap { max-width: none; padding-left: max(var(--grid-margin), calc((100% - var(--viewport-width)) / 2 + var(--grid-margin))); padding-right: 50px; }
}
@media (max-width: 767px) {
  .case-body { margin-left: calc(-1 * var(--grid-margin)); margin-right: calc(-1 * var(--grid-margin)); }
  .case-body .next-proj { margin-left: var(--grid-margin); margin-right: var(--grid-margin); }
  .case-body .case-mobile-toc { margin: 0; }
}

/* 모바일 상단 정리: 헤더 배경을 꽉 채워 뒤 콘텐츠가 비치지 않게, 목차 바는 헤더 바로 아래에 불투명하게 */
@media (max-width: 767px) {
  .site-header::before { inset: 0; background: var(--bg); }
  .site-header.on-dark::before { background: var(--dark); }
  .case-mobile-toc { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
/* 홈 표지: 작품 이미지 없이, 화면 가운데 정렬 */
.is-home .hero-mega { margin: auto 0; padding-top: 0; }
.is-home .hero-mega .mline { justify-content: center; }
.is-home .hero-mega .mgap { flex: 0 0 0.3em; }
.is-home .hero-foot { padding-top: 0; }
.is-home .hero-foot > div { justify-self: center; text-align: center; max-width: none; }
.is-home .hero-tagline { text-align: center; }

/* =========================================================
   HOME — 포스터 표지 (괄호 타이포 + 작품 이미지)
   ========================================================= */
.poster { position: relative; display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(var(--header-h) + 14px); padding-bottom: 22px; }
.pc { font-family: var(--font-en); font-size: clamp(14px, 1.35vw, 22px); line-height: 1.25; letter-spacing: -0.01em; }
.pc-tl { grid-row: 1; }
.pfoot { grid-row: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.pc-bl { font-family: var(--font-serif); font-style: italic; font-size: clamp(16px, 1.6vw, 26px); }
.pc-br { text-align: right; }
.is-home .hero-tagline { text-align: left; }

.ptype {
  grid-row: 2; align-self: center;
  font-family: var(--font-en); font-weight: 400; text-transform: uppercase;
  font-size: min(7vw, 10.5svh); line-height: 1.02; letter-spacing: -0.035em;
  display: flex; flex-direction: column; gap: 0.16em;
}
.pline { display: flex; align-items: center; justify-content: space-between; gap: 0.18em; white-space: nowrap; min-width: 0; }
.pw { display: inline-block; transform: translateY(0.35em); opacity: 0; transition: transform 900ms var(--ease), opacity 700ms var(--ease); }
.pw.ko { font-family: Pretendard, var(--font-en); font-weight: 300; letter-spacing: -0.06em; }
.poster-in .pw { transform: none; opacity: 1; }
.pline:nth-child(2) .pw { transition-delay: 80ms; } .pline:nth-child(3) .pw { transition-delay: 160ms; } .pline:nth-child(4) .pw { transition-delay: 240ms; }

.pimg {
  position: relative; flex: none; display: block; width: var(--w); aspect-ratio: var(--r);
  overflow: hidden; background: var(--surface);
  translate: var(--mx, 0) var(--my, 0);
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path 900ms var(--ease) calc(300ms + var(--k) * 70ms), transform 500ms var(--ease);
}
.pimg.at-top { align-self: flex-start; } .pimg.at-bot { align-self: flex-end; }
.poster-in .pimg { clip-path: inset(0 0 0 0); }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--ease); }
.pimg:hover { transform: scale(1.06); z-index: 2; }
.pimg:hover img { transform: scale(1.08); }
.pcap { position: absolute; left: 6px; bottom: 5px; font-size: 9px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); opacity: 0; transition: opacity 250ms; white-space: nowrap; }
.pimg:hover .pcap, .pimg:focus-visible .pcap { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pw, .pimg { transition: none; transform: none; opacity: 1; clip-path: none; translate: none; } }

@media (max-width: 767px) {
  .ptype { font-size: min(10.4vw, 8svh); gap: 0.22em; }
  .pline { flex-wrap: wrap; justify-content: flex-start; white-space: nowrap; gap: 0.12em 0.2em; }
  .pimg { width: min(calc(var(--w) * 0.7), 1.3em); }
  .pimg.at-top, .pimg.at-bot { align-self: center; }
  .pfoot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pc-br { text-align: left; font-size: 12px; }
  .pc { font-size: 13px; }
}

/* =========================================================
   HOME — 서류 폴더 표지 + 책상 위 작업물
   ========================================================= */
.desk { position: relative; height: 100svh; overflow: hidden; padding: calc(var(--header-h) + 24px) var(--grid-margin) 28px; display: grid; place-items: center; }
.paper {
  background-color: #FFFDE6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .32 0 0 0 0 .1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.folder { position: relative; width: min(1080px, 82vw); height: min(64svh, 600px); margin-top: 3.2em; }
.folder-back { position: absolute; inset: -14px 18px auto; height: 60%; background: #E9E28A; border-radius: 14px 14px 0 0; }
.folder-tabs { position: absolute; left: 0; right: 0; top: -3.1em; display: flex; gap: 0; padding-left: 4%; z-index: 1; }
.ftab {
  position: relative; display: grid; place-items: center; height: 3.3em; padding: 0 2.6em; margin-right: -0.6em;
  font-family: var(--font-serif); font-size: clamp(13px, 1.15vw, 17px); color: var(--ink);
  background: #F1EA94; border-radius: 16px 16px 0 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform 300ms var(--ease), background 200ms;
  z-index: calc(3 - var(--i));
}
.ftab::after { content: ""; position: absolute; right: -18px; bottom: 0; width: 22px; height: 70%; background: inherit; clip-path: polygon(0 0, 30% 0, 100% 100%, 0 100%); }
.ftab:hover { transform: translateY(-6px); background: #FFFDE6; }
.folder-front {
  position: absolute; inset: 0; border-radius: 6px 22px 10px 10px; z-index: 2;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 30px 60px -30px rgba(80,70,0,.35);
  display: grid; place-items: center; text-align: left;
}
.clip { position: absolute; left: 7%; top: -26px; width: 22px; height: 70px; z-index: 3; transform: rotate(-4deg); }
.cover-copy { display: grid; justify-items: start; font-family: var(--font-en); color: var(--ink); }
.cv-hello { font-size: clamp(14px, 1.3vw, 20px); letter-spacing: 0.02em; margin-bottom: -0.4em; margin-left: 0.4em; }
.cv-year { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: min(15vw, 22svh); line-height: 0.95; letter-spacing: -0.04em; }
.cv-paren { margin-left: 0.04em; }
.cv-name { justify-self: end; margin: -0.55em -0.5em 0 0; transform: rotate(-2deg); }
.cv-name span { display: inline-block; background: var(--ink); color: var(--key); font-family: var(--font-serif); font-style: italic; font-size: min(6.4vw, 9svh); line-height: 1; padding: 0.06em 0.32em 0.14em; }
.cv-title { font-weight: 500; font-size: min(7.4vw, 10.5svh); letter-spacing: -0.06em; line-height: 1; margin-top: 0.05em; }
.cv-sub { justify-self: end; text-align: right; margin-top: 0.9em; font-size: clamp(12px, 1.05vw, 16px); letter-spacing: -0.01em; line-height: 1.5; }
.cv-sub em { font-family: var(--font-serif); font-size: 1.15em; }
.sticker {
  position: absolute; right: 7%; top: 44%; transform: rotate(8deg);
  background: #A8C8F0; color: #1d2b46; padding: 10px 14px 12px; font-size: 10.5px; line-height: 1.3; letter-spacing: .06em;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); transition: transform 300ms var(--ease);
}
.sticker b { display: block; font-size: 22px; letter-spacing: 0; margin-top: 4px; }
.sticker:hover { transform: rotate(3deg) scale(1.05); }

.desk-cards { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.dcard {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); pointer-events: auto; touch-action: none;
  background: #fff; padding: 6px 6px 22px; box-shadow: 0 10px 24px -10px rgba(40,35,0,.45);
  transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot)) scale(.6); opacity: 0;
  transition: transform 700ms var(--ease) calc(200ms + var(--i) * 80ms), opacity 500ms var(--ease) calc(200ms + var(--i) * 80ms), box-shadow 200ms;
  cursor: grab; user-select: none;
}
.desk-in .dcard { transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot)); opacity: 1; }
.dcard img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; pointer-events: none; }
.dcap { position: absolute; left: 8px; bottom: 5px; font-size: 9px; color: var(--ink-2); white-space: nowrap; }
.dcard:hover { box-shadow: 0 18px 34px -12px rgba(40,35,0,.55); }
.dcard.is-drag { cursor: grabbing; transition: none; box-shadow: 0 26px 40px -14px rgba(40,35,0,.6); }
@media (prefers-reduced-motion: reduce) { .dcard { transition: none; opacity: 1; transform: translate(var(--dx,0),var(--dy,0)) rotate(var(--rot)); } }

@media (max-width: 767px) {
  .desk { padding-top: calc(var(--header-h) + 40px); }
  .folder { width: 100%; height: 52svh; margin-top: 2.4em; }
  .ftab { padding: 0 0.8em; font-size: 10px; height: 2.8em; }
  .folder-tabs { top: -2.6em; padding-left: 2%; }
  .cv-year { font-size: 26vw; }
  .cv-name span { font-size: 10vw; }
  .cv-title { font-size: 9.6vw; }
  .cv-sub { font-size: 11px; }
  .sticker { right: 4%; top: 6%; font-size: 8.5px; padding: 7px 9px; }
  .sticker b { font-size: 16px; }
  .dcard { width: calc(var(--w) * 1.9); padding: 4px 4px 14px; }
  .dcard:nth-child(n+5) { display: none; }
  /* 모바일: 카드는 폴더 위·아래 빈 곳에만 */
  .dcard:nth-child(1) { left: 4%;  top: auto; bottom: 2%; }
  .dcard:nth-child(2) { left: 66%; top: 9%; }
  .dcard:nth-child(3) { left: 6%;  top: 10%; }
  .dcard:nth-child(4) { left: 60%; top: auto; bottom: 3%; }
  .dcap { display: none; }
}

/* 표지 문구 v2 — DESIGN PORTFOLIO (of) UX/UI · (Sarang, Kim) */
.folder-front { place-items: stretch; }
.cover-copy { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 56px) clamp(28px, 4.4vw, 64px) clamp(24px, 3.4vw, 44px); height: 100%; }
.cv-welcome { font-family: var(--font-serif); font-style: italic; font-size: clamp(16px, 1.6vw, 24px); }
.cv-welcome span { font-family: var(--font-en); font-style: normal; font-size: 0.8em; letter-spacing: 0.02em; }
.cover-copy .cv-title { font-family: var(--font-en); font-weight: 700; font-size: min(7.2vw, 11svh); letter-spacing: -0.035em; line-height: 0.95; margin-top: 0.15em; text-transform: uppercase; }
.cv-of { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: min(6.6vw, 10svh); line-height: 1; letter-spacing: -0.02em; margin-top: 0.08em; }
.cv-of-a { font-weight: 400; font-size: 0.72em; }
.cv-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cover-copy .cv-name { font-family: var(--font-en); font-weight: 500; font-size: min(5.2vw, 8svh); letter-spacing: -0.02em; line-height: 1; margin: 0; transform: none; white-space: nowrap; }
.cv-meta { display: grid; gap: 6px; font-family: Pretendard, var(--font-en); font-size: clamp(11px, 0.95vw, 15px); padding-bottom: 0.3em; }
.cv-meta b { font-weight: 700; }
.cv-meta span { display: flex; flex-wrap: wrap; gap: 4px 1.4em; }
.cv-meta i { font-style: normal; color: transparent; -webkit-text-stroke: 0.7px var(--ink); }
@media (max-width: 767px) {
  .cover-copy .cv-title { font-size: 10.4vw; }
  .cv-of { font-size: 10vw; }
  .cv-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cover-copy .cv-name { font-size: 9vw; }
  .cv-meta { font-size: 11px; }
  .cv-meta span { gap: 4px 1em; }
}

/* =========================================================
   HOME — 피그마 표지 기반 클린 커버 (c2)
   ========================================================= */
.c2 { display: flex; flex-direction: column; }
.c2-body { container-type: inline-size; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 6vh, 72px) 0 clamp(48px, 10vh, 110px); min-height: 0; }
.c2-welcome { font-family: var(--font-en); font-size: clamp(15px, 1.4vw, 22px); margin-bottom: 0.4em; }
.c2-welcome i { font-family: var(--font-serif); font-size: 1.15em; }
.c2-title { font-family: var(--font-en); font-weight: 700; text-transform: uppercase; font-size: min(10.1cqi, 16svh); line-height: 0.92; letter-spacing: -0.04em; white-space: nowrap; }
.c2-of { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 0.1em; }
.c2-of p { font-family: var(--font-serif); font-style: italic; font-size: min(7.9cqi, 12.5svh); line-height: 1; letter-spacing: -0.02em; }
.c2-of b { font-weight: 700; }
.c2-of-a { font-size: 0.72em; }
.c2-chips { display: flex; gap: 12px; }
.c2-chip { position: relative; display: block; width: min(11vw, 18svh); aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--surface); }
.c2-chip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease); }
.c2-chip span { position: absolute; left: 6px; top: 5px; font-size: 9px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.c2-chip:hover img { transform: scale(1.08); }
.c2-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.c2-name { font-family: var(--font-en); font-weight: 500; font-size: min(6.9cqi, 11svh); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.c2-meta { display: grid; gap: 8px; font-family: Pretendard, var(--font-en); font-size: clamp(12px, 1.05vw, 17px); padding-bottom: 0.4em; }
.c2-meta b { font-weight: 700; }
.c2-meta span { display: flex; flex-wrap: wrap; gap: 6px 2em; }
.c2-meta i { font-style: normal; font-weight: 300; letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 0.5px rgba(39, 39, 39, 0.5); }

/* 등장: 줄마다 아래에서 위로 */
.c2-l, .c2-chip, .c2-welcome, .c2-meta { display: inline-block; transform: translateY(30%); opacity: 0; transition: transform 900ms var(--ease), opacity 700ms var(--ease); }
.c2-of p.c2-l { display: block; }
.c2-in .c2-l, .c2-in .c2-chip, .c2-in .c2-welcome, .c2-in .c2-meta { transform: none; opacity: 1; }
.c2-of .c2-l { transition-delay: 90ms; } .c2-chip { transition-delay: 220ms; } .c2-chip + .c2-chip { transition-delay: 290ms; } .c2-chip + .c2-chip + .c2-chip { transition-delay: 360ms; }
.c2-name .c2-l { transition-delay: 160ms; } .c2-meta { transition-delay: 260ms; }
@media (prefers-reduced-motion: reduce) { .c2-l, .c2-chip, .c2-welcome, .c2-meta { transform: none; opacity: 1; transition: none; } }

@media (max-width: 767px) {
  .c2-title { white-space: normal; font-size: 16.4cqi; }
  .c2-of { flex-direction: column; align-items: flex-start; gap: 18px; }
  .c2-of p { font-size: 13cqi; }
  .c2-chip { width: 26vw; }
  .c2-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .c2-name { font-size: 11.4cqi; }
  .c2-meta { font-size: 11.5px; }
  .c2-meta span { gap: 4px 1em; }
}

/* 사이드 정보: 배경문 ↔ 구분선 ↔ Contents 간격을 섹션 간격(28px)과 동일하게 */
.case-info .toc { padding-top: 31px; }
.case-info .toc > .cap { display: block; line-height: 1; }
.case-info .toc ol { margin-top: 16px; }
