/* VOICE   a working designer's studio site: confident, plain, the work does the talking
   IDEA    structure after sienazadro.xyz (ticker band, pill navigation, captioned project grid),
           dressed in the palette of the 백 명 data visualisation: fluorescent yellow, pink, lavender, red
   PICTURE the works themselves: 24 projects in a three-column grid on the first screen
   COLOUR  paper #f7f6f3, ink #161616, yellow band, pink for the active page, lavender for year boxes,
           red on hover, warm grey behind images; all set in content.js
   TYPE    Inter Tight 600 for Latin, Noto Sans KR for Hangeul
   LAYOUT  laptop: sticky yellow band, title and filters, 3-column grid; 720px: 2 columns; phone: 1 column */

:root {
  --paper: #f7f6f3;
  --ink: #161616;
  --yellow: #e4ff3c;
  --pink: #f3a3d9;
  --lav: #a7adf7;
  --red: #fe0e00;
  --grey: #cfcec9;
  color-scheme: light;
}
* {
  box-sizing: border-box;
  min-width: 0;
}
html {
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 "Inter Tight",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    system-ui,
    sans-serif;
  overflow-x: clip;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
p {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* top band */
.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--yellow);
  border-bottom: 1px solid var(--ink);
}
.mq {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 22px;
}
.mq-in {
  display: inline-flex;
  animation: mq 60s linear infinite;
}
.mq-in span {
  padding-right: 0;
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}
.bar {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  padding: 8px max(2vw, 16px);
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.mark:empty {
  display: none;
}
.logo .en {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
.pill:hover {
  background: var(--ink);
  color: var(--paper);
}
.pill.on {
  background: var(--pink);
  border-radius: 4px;
}
.pill.on:hover {
  background: var(--ink);
  color: var(--paper);
}
.nav .pill {
  min-width: 112px;
}
.ct {
  background: var(--paper);
}
.pill.sm {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}
.pill i {
  font-style: normal;
  font-weight: 500;
  opacity: 0.6;
}
.pill.sm.on {
  background: var(--lav);
}

/* page */
.page {
  padding: 28px max(2vw, 16px) 0;
}
.ph {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}
h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 .en {
  color: color-mix(in srgb, var(--ink) 45%, var(--paper));
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 20px;
}
.card {
  display: grid;
  gap: 8px;
  align-content: start;
}
.thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--grey);
}
.thumb img,
.noimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .thumb img {
  transform: scale(1.035);
}
.card h2 {
  margin: 4px 0 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.card:hover h2 {
  color: var(--red);
}
.tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tag b {
  font-weight: 600;
  border: 1px solid var(--ink);
  padding: 0 5px;
  line-height: 16px;
  background: var(--lav);
}

/* project */
.proj h1 {
  max-width: 20em;
}
.box {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 8px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--lav);
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 24px 48px;
  margin: 36px 0 48px;
}
.txt {
  display: grid;
  gap: 1em;
  font-size: clamp(17px, 1.35vw, 19px);
  font-weight: 500;
  line-height: 1.6;
  max-width: 44em;
}
.meta {
  margin: 0;
  align-self: start;
  border-top: 1.5px solid var(--ink);
}
.meta div {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, var(--paper));
  font-size: 14px;
}
.meta dt {
  font-weight: 600;
}
.meta dd {
  margin: 0;
}
.lks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.imgs {
  display: grid;
  gap: 40px;
}
.imgs figure {
  margin: 0;
}
.imgs img {
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  background: #fff;
}
figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 60em;
}
.pn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1.5px solid var(--ink);
}
.pn .pill {
  max-width: min(36em, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* research & cv */
.dir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  padding-bottom: 40px;
  border-bottom: 1.5px solid var(--ink);
}
.dir > div {
  display: grid;
  gap: 1em;
  align-content: start;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.65;
}
.lbl {
  display: inline-block;
  justify-self: start;
  padding: 2px 8px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 600;
}
.lead {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  max-width: 34em;
}
.page > .lks {
  margin: 20px 0 8px;
}
.blk {
  padding-top: 44px;
}
.blk h2 {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
}
.rows li {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr) minmax(0, 14em);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, var(--paper));
  font-size: 15px;
}
.rows li:hover {
  background: color-mix(in srgb, var(--yellow) 55%, var(--paper));
}
.rows .d {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rows .t {
  font-weight: 600;
}
.rows .n {
  text-align: right;
}

/* footer */
.ft {
  margin-top: 96px;
  background: var(--pink);
  border-top: 1px solid var(--ink);
  padding: 28px max(2vw, 16px) 24px;
}
.ft .big {
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 44em;
}
.fr {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 24px;
  font-size: 13.5px;
  font-weight: 600;
}
.fr a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.err {
  padding: 40px 16px;
  font-size: 18px;
  max-width: 40em;
}

@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav .pill {
    min-width: 0;
  }
}
@media (max-width: 720px) {
  .logo .en {
    display: none;
  }
  .dir {
    grid-template-columns: minmax(0, 1fr);
  }
  .rows li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .rows .n {
    text-align: left;
    opacity: 0.7;
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bar {
    gap: 8px;
  }
  .nav {
    order: 3;
    width: 100%;
  }
  .nav .pill {
    flex: 1;
    padding: 0 8px;
  }
  .pn {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mq-in {
    animation: none;
  }
  * {
    transition: none !important;
  }
}
@media print {
  .hdr,
  .ft,
  .filters {
    display: none;
  }
}

.ph:has(.filters) h1 {
  display: none;
}
/* 메뉴 버튼 다듬기 */
.nav {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}
.nav .pill {
  min-width: 0;
  min-height: 32px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
.nav .pill:hover {
  background: var(--grey);
  color: var(--ink);
}
.nav .pill.on,
.nav .pill.on:hover {
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}
.pill.ct {
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--lav);
  font-size: 15px;
  font-weight: 500;
}
.pill.ct:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ===== 작업 화면 5:5 (왼쪽 목록 / 오른쪽 상세) ===== */
body.is-split {
  overflow: hidden;
}
body.is-split #foot {
  display: none;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: calc(100dvh - var(--hh, 80px));
}
.split > .left,
.split > .right {
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
}
.right {
  border-left: 1px solid var(--ink);
}
.lt {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  padding: 12px max(2vw, 16px);
}
.list .row {
  display: grid;
  grid-template-columns: 4.4em minmax(0, 1fr);
  gap: 16px;
  padding: 13px max(2vw, 16px);
  border-bottom: 1px solid var(--ink);
}
.row .ry {
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.row .rb {
  display: grid;
  gap: 3px;
}
.row .rc {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.row b {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.row .rr {
  font-size: 13.5px;
  color: color-mix(in srgb, var(--ink) 60%, var(--paper));
}
.row:hover {
  background: color-mix(in srgb, var(--grey) 45%, var(--paper));
}
.row.on {
  background: var(--lav);
}
.row.on .rr {
  color: var(--ink);
}
.none {
  padding: 20px max(2vw, 16px);
}
.dt {
  padding: 22px max(2vw, 20px) 48px;
}
.dt h1 {
  font-size: clamp(26px, 2.6vw, 40px);
  letter-spacing: -0.03em;
}
.dt .intro {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 24px 0 36px;
}
.dt .txt {
  font-size: 16px;
  line-height: 1.65;
}
.dt .imgs {
  gap: 28px;
}
.dt .imgs img {
  max-height: none;
}
.dt .pn {
  justify-content: space-between;
}
.back {
  display: none;
}
@media (max-width: 900px) {
  body.is-split {
    overflow: auto;
  }
  .split {
    display: block;
    height: auto;
  }
  .split > .left,
  .split > .right {
    overflow: visible;
  }
  .right {
    border-left: 0;
  }
  .split.detail .left {
    display: none;
  }
  .split:not(.detail) .right {
    display: none;
  }
  .lt {
    top: var(--hh, 80px);
  }
  .back {
    display: inline-flex;
    margin-bottom: 14px;
  }
}

/* 휴대폰에서도 상단 이름 보이기 */
@media (max-width: 720px) {
  .logo .en {
    display: inline;
    font-size: 17px;
  }
}

/* About 페이지: 첫 섹션 위 여백 줄이기 */
.about>.blk:first-of-type{padding-top:8px}

/* 왼쪽 목록 촘촘하게 */
.list .row{padding-top:10px;padding-bottom:10px}
.row .rb{gap:1px}

/* 분류 버튼과 목록 사이 여백 */
.lt{padding-top:18px;padding-bottom:22px}

/* Contact 테두리 */
.pill.ct{border:1px solid var(--ink)}

/* 모든 영어를 대문자로 (이 줄을 지우면 원래대로) */
*{text-transform:uppercase!important}

/* 왼쪽 목록 줄 간격 더 촘촘하게 */
.list .row{padding-top:9px;padding-bottom:9px;align-items:baseline}
.row .rb{gap:0}
.row .rc{line-height:1.25}
.row b{line-height:1.2}
.row .ry{padding-top:0;line-height:1.25}

/* 연도와 분류를 같은 줄·같은 크기로 */
.list .row{align-items:start}
.row .ry,.row .rc{font-size:13px;font-weight:500;line-height:1.3;letter-spacing:.04em;padding-top:0;margin:0}

/* 왼쪽 목록 선을 점선으로 */
.list .row{border-bottom:1px dotted var(--ink)}

/* 분류와 작업명 사이 행간 */
.row .rb{gap:2px}

/* 왼쪽 목록: 예시 그대로 (연도 칸 넓게, 얇은 글자, 일정한 행간) */
.list .row{grid-template-columns:30% minmax(0,1fr);gap:0 16px;padding:14px max(2vw,16px) 12px;align-items:start}
.row .ry,.row .rc{font-size:14px;line-height:1.2;letter-spacing:.02em;font-weight:400}
.row .ry{font-weight:500;padding-left:max(2vw,8px)}
.row .rb{gap:3px}
.row b{font-size:19px;line-height:1.15;font-weight:400;letter-spacing:.01em}
@media(max-width:560px){.list .row{grid-template-columns:4.2em minmax(0,1fr)}.row .ry{padding-left:0}}

/* 분류·작업명을 연도 쪽으로 붙이기 */
.list .row{grid-template-columns:17% minmax(0,1fr)}

/* 오른쪽 작업 사진 80% 크기 */
.dt .imgs figure{width:80%;margin-left:auto;margin-right:auto}
@media(max-width:900px){.dt .imgs figure{width:100%}}

/* 사진 캡션: 작게, 검정 */
.dt figcaption{font-size:12px;line-height:1.5;color:var(--ink)}

/* 사진의 흰 배경이 바탕색에 녹아들게 */
.dt .imgs img{background:transparent;mix-blend-mode:multiply}

/* CV에서 강조한 칸 (content.js의 highlight: true) */
.rows li.hl,.rows li.hl:hover{background:var(--lav)}

/* RESEARCH 제목과 본문 사이 간격 */
.dir{margin-top:56px}

/* RESEARCH 제목 위 여백 */
.page:has(.dir){padding-top:64px}

/* 흐르는 띠: 검정 바탕, 라벤더 글자 */
.mq{background:var(--ink);color:var(--lav)}

/* 메뉴 띠: 회색 대신 바탕색 (검정 띠와 어울리게) */
.hdr{background:var(--paper)}


/* 메뉴 아래 전체 바탕을 회색으로 (메뉴 띠는 흰색 유지) */
:root{--bg2:color-mix(in srgb,var(--grey) 24%,var(--paper))}
body{background:var(--bg2)}
.lt{background:var(--bg2)}

/* 하단 띠: 블랙 바탕, 라벤더 글자 */
.ft{background:var(--ink);color:var(--lav);border-top:0}

/* 하단 띠 높이 줄이기 */
.ft{padding-top:16px;padding-bottom:16px}
.ft .big:empty{display:none}
.ft .big:empty+.fr{margin-top:0}

/* 하단 띠 글자 가운데 정렬 */
.ft{text-align:center}
.fr{justify-content:center}

/* LAB 페이지 */
.page.lab{padding-top:64px}
.page.lab .lead{max-width:44em;margin-top:40px}
.areas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1.5px solid var(--ink)}
.area{padding:18px 24px 22px 0;border-bottom:1px dotted var(--ink)}
.area+.area{padding-left:24px;border-left:1px dotted var(--ink)}
.area .an{font-size:13px;font-weight:500;letter-spacing:.04em}
.area h3{margin:6px 0 8px;font-size:20px;font-weight:600;letter-spacing:-.01em;line-height:1.2}
.area p{font-size:15px;line-height:1.6}
.join .lead{margin-top:16px}
@media(max-width:900px){.areas{grid-template-columns:minmax(0,1fr)}.area+.area{padding-left:0;border-left:0}}

.join .pill.on{background:var(--lav)}
@media(max-width:560px){.nav .pill{font-size:12.5px;padding:0 4px;min-height:30px}}

/* LAB 페이지에서는 하단 띠 숨김 */
body[data-view="lab"] #foot{display:none}

.page.lab .lead:first-child{margin-top:0}
