/* ---------- tokens ---------- */
:root {
  --bg: #f2f1ed;
  --fg: #121212;
  --muted: #6c6b66;
  --line: rgba(18, 18, 18, 0.12);
  --pill: rgba(255, 255, 255, 0.72);
  --pill-active: #121212;
  --pill-active-fg: #f2f1ed;
  --card: #e4e3de;
  /* 크기 단계: 모바일 / 태블릿(768+) / 데스크톱(1200+) / 와이드(1800+) — 창 크기에 비례해 무한히 커지지 않게 고정값 */
  --pad: 16px;
  --fs-lead: 26px;
  --fs-display: 64px;
  --fs-title: 48px;
  --fs-xl: 52px;
  --fs-year: 40px;
  --fs-card: 24px;
  --logo-w: 100%;
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  --font: "Instrument Sans", "Pretendard Variable", Pretendard, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0d; --fg: #ecebe6; --muted: #9c9b95; --line: rgba(236, 235, 230, 0.12);
    --pill: rgba(30, 30, 28, 0.72); --pill-active: #ecebe6; --pill-active-fg: #0e0e0d; --card: #1a1a18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e0d; --fg: #ecebe6; --muted: #9c9b95; --line: rgba(236, 235, 230, 0.12);
  --pill: rgba(30, 30, 28, 0.72); --pill-active: #ecebe6; --pill-active-fg: #0e0e0d; --card: #1a1a18;
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --pad: 32px; --fs-lead: clamp(28px, 4vw, 88px); --fs-display: 104px; --fs-title: 80px; --fs-xl: 88px; --fs-year: 64px; --fs-card: 28px; --logo-w: 680px; }
}
@media (min-width: 1200px) {
  :root { --pad: 48px; --fs-display: 140px; --fs-title: 112px; --fs-xl: 120px; --fs-year: 84px; --fs-card: 32px; --logo-w: 900px; }
}
@media (min-width: 1800px) {
  :root { --pad: 64px; --fs-display: 160px; --fs-title: 128px; --fs-xl: 136px; --fs-year: 96px; --fs-card: 36px; --logo-w: 1040px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 15px/1.35 var(--font); letter-spacing: -0.01em;
  font-kerning: normal; font-feature-settings: "kern" 1; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color 0.4s, color 0.4s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
em { font-style: normal; color: var(--muted); }
::selection { background: var(--fg); color: var(--bg); }
.label { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.js [data-split], .js [data-reveal] { opacity: 0; }
/* 줄바꿈: 제목은 줄 길이를 고르게, 본문은 마지막 줄에 한 단어만 남지 않게. .nb 구간은 절대 안 끊김 */
h1, h2, h3, .hero__lead, .about__lead, .cta, .next__title, .soon { text-wrap: balance; }
p, li, .row .t, .row .c, .tile__cap span { text-wrap: pretty; }
.nb { white-space: nowrap; }
@media (max-width: 767px) { .br-d { display: none; } }
.w, .wi { display: inline-block; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--fg); color: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; padding: var(--pad);
  clip-path: inset(0 0 0 0);
}
.loader__top { display: flex; justify-content: space-between; font-size: 13px; }
.loader__num { font-size: clamp(96px, 22vw, 360px); line-height: 0.9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60; display: flex; justify-content: space-between; align-items: flex-start;
  padding: 14px var(--pad); font-size: 13px; line-height: 1.25; pointer-events: none;
  transition: transform 0.6s var(--ease), opacity 0.6s;
}
.hdr > * { pointer-events: auto; }
.hdr.is-hidden { transform: translateY(-110%); opacity: 0; }
.brand { transition: filter 0.6s var(--ease); }
.brand small { display: block; color: var(--muted); font-size: 13px; }
.theme { transition: transform 0.5s var(--ease); }
@media (hover: hover) {
  .brand:hover { filter: blur(2.5px); }
  .theme:hover { scale: 1.06; }
}

/* 라벨 교체 호버: 위 글자가 블러되며 올라가고 아래 글자가 선명하게 들어옴 */
.sw { position: relative; display: inline-block; vertical-align: top; }
.sw > span { display: block; transition: transform 0.55s var(--ease), filter 0.55s var(--ease), opacity 0.55s var(--ease); }
.sw > span + span { position: absolute; inset: 0; transform: translateY(70%); filter: blur(6px); opacity: 0; }
@media (hover: hover) {
  a:hover > .sw > span:first-child, button:hover > .sw > span:first-child { transform: translateY(-70%); filter: blur(6px); opacity: 0; }
  a:hover > .sw > span + span, button:hover > .sw > span + span { transform: none; filter: none; opacity: 1; }
}
.hdr__r { display: flex; align-items: center; gap: 14px; }
.clock { font-variant-numeric: tabular-nums; }
.clock span { color: var(--muted); }
.theme {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--pill);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.theme svg { width: 14px; height: 14px; transition: transform 0.6s var(--ease); }
[data-theme="dark"] .theme svg { transform: rotate(180deg); }

/* ---------- dock nav ---------- */
.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 60; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--pill);
  border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.dock a { position: relative; z-index: 1; padding: 8px 15px; font-size: 13px; border-radius: 999px; color: var(--muted); transition: color 0.35s; white-space: nowrap; }
.dock a:hover { color: var(--fg); }
.dock a.is-active { color: var(--pill-active-fg); }
.dock__ind {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--pill-active);
  transition: transform 0.6s var(--ease), width 0.6s var(--ease);
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--pad) 0; }
.hero__inner { padding-bottom: 6vh; }
.hero__lead { margin: 0; max-width: 22em; font-size: var(--fs-lead); line-height: 1.08; letter-spacing: -0.035em; font-weight: 400; }
.hero__lead .dim { color: var(--muted); }
/* 각 칸 폭을 내용에 맞춰서 지정한 줄바꿈 그대로 보이게 */
.hero__meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 24px 32px; margin-top: 5vh; font-size: 13px; }
.hero__meta p { margin: 4px 0 0; }
/* 로고 이미지(assets/logo.webp)를 마스크로 써서 테마 글자색을 따라감. 좌우 패딩에 딱 맞춤 */
.mark {
  width: var(--logo-w); max-width: 100%; aspect-ratio: 2000 / 682; margin: 0 0 4vh;
  background: currentColor;
  -webkit-mask: url("../assets/logo.webp") no-repeat left top / contain;
  mask: url("../assets/logo.webp") no-repeat left top / contain;
}

/* ---------- section heads ---------- */
.sec-intro { padding: 22vh var(--pad) 0; overflow: hidden; }
.display { margin: 0; font-weight: 400; font-size: var(--fs-display); line-height: 1; letter-spacing: -0.035em; white-space: nowrap; }
.display__n { font-size: 13px; letter-spacing: 0; color: var(--muted); vertical-align: top; margin-left: 8px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 14px 0 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.sec-head .label { font-size: 13px; }

/* ---------- official: horizontal ---------- */
.work { height: 100svh; }
.work__pin { height: 100%; display: flex; flex-direction: column; padding: 70px 0 84px; }
.work__viewport { flex: 1; min-height: 0; overflow: hidden; }
.work__track { display: flex; gap: 14px; height: 100%; width: max-content; padding: 0 var(--pad); will-change: transform; }
.card {
  position: relative; flex: 0 0 auto; height: 100%; aspect-ratio: var(--ar); max-width: 82vw;
  border-radius: 18px; overflow: hidden; background: var(--card); isolation: isolate; transform-origin: 50% 60%;
}
.card__media { position: absolute; inset: 0; overflow: hidden; }
/* 패럴랙스용 여유는 가로·세로 같은 비율로(5%) → 원본 비율 유지, 위아래가 과하게 잘리지 않음 */
.card__media img { position: absolute; top: -5%; left: -5%; width: 110%; max-width: none; height: 110%; object-fit: cover; transition: filter 0.9s var(--ease), scale 1.1s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 50%); transition: opacity 0.6s; z-index: 1; }
.card__no, .card__info { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
/* 레퍼런스식 포커스 호버: 평소엔 흐린 커버, 올리면 선명해지고 글자는 블러로 사라짐 */
@media (hover: hover) and (pointer: fine) {
  .card__media img { filter: blur(26px) saturate(115%); scale: 1.18; }
  .card:hover .card__media img { filter: blur(0px) saturate(100%); scale: 1.02; }
  .card:hover::after { opacity: 0; }
  .card:hover .card__no, .card:hover .card__info { opacity: 0; transform: scale(0.98); filter: blur(8px); }
}
.card__no { position: absolute; top: 16px; left: 18px; z-index: 2; color: #fff; font-size: 13px; mix-blend-mode: difference; }
.card__info { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.card__title { margin: 0; font-size: var(--fs-card); font-weight: 400; letter-spacing: -0.035em; line-height: 1.1; }
.card__title .wip { color: rgba(255, 255, 255, 0.7); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.tags span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }
.work__foot { display: flex; align-items: center; gap: 18px; padding: 14px var(--pad) 0; font-size: 13px; }
.work__counter { font-variant-numeric: tabular-nums; min-width: 52px; }
.work__bar { flex: 1; height: 1px; background: var(--line); }
.work__bar i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* ---------- speculative: parallax columns ---------- */
.spec__tabs { display: flex; gap: 6px; padding: 5vh var(--pad) 0; }
.spec__tab {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; font-size: 14px; transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.spec__tab .label { font-size: 12px; color: inherit; opacity: 0.6; }
.spec__tab.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.spec__grid[hidden] { display: none; }
.spec__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.2vw, 36px); padding: 8vh var(--pad) 18vh; align-items: start; }
.spec__col { display: flex; flex-direction: column; gap: clamp(48px, 10vh, 140px); }
.spec__col:nth-child(2) { padding-top: 22vh; }
.spec__col:nth-child(3) { padding-top: 8vh; }
.tile { display: block; }
.tile__media { overflow: hidden; border-radius: 12px; aspect-ratio: var(--ar); background: var(--card); clip-path: inset(0 0 0 0 round 12px); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s var(--ease), filter 0.9s var(--ease); }
.tile__cap { transition: opacity 0.6s var(--ease); }
/* 썸네일은 처음부터 선명하게, 올리면 블러되며 View 커서 (확대로 블러 가장자리 번짐 가림) */
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__media img { filter: blur(18px) saturate(115%); scale: 1.14; }
  .spec__grid:hover .tile:not(:hover) .tile__cap { opacity: 0.5; }
}
.tile__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; font-size: 14px; line-height: 1.3; }
.tile__cap .label { white-space: nowrap; }

/* ---------- index ---------- */
.idx { padding: 10vh var(--pad) 8vh; }
.yr { display: grid; grid-template-columns: minmax(110px, 1fr) 3fr; gap: 24px; border-bottom: 1px solid var(--line); }
.yr__label { position: sticky; top: 64px; align-self: start; padding: 14px 0; font-size: var(--fs-year); line-height: 0.9; letter-spacing: -0.035em; }
.yr__label sup { font-size: 13px; letter-spacing: 0; color: var(--muted); vertical-align: top; margin-left: 6px; }
.yr__list { list-style: none; margin: 0; padding: 0; }
.row { position: relative; display: grid; grid-template-columns: 4.5em 1.7fr 1fr; gap: 16px; padding: 13px 10px 13px 0; border-top: 1px solid var(--line); font-size: 14px; isolation: isolate; transition: color 0.35s, padding 0.5s var(--ease), opacity 0.4s, filter 0.4s; }
@media (hover: hover) { .yr__list:hover .row:not(:hover) { opacity: 0.5; filter: blur(1px); } }
.yr__list .row:first-child { border-top: 0; }
.row::before { content: ""; position: absolute; inset: -1px -10px 0 -10px; background: var(--fg); z-index: -1; transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.5s var(--ease); border-radius: 6px; }
.row:hover { color: var(--bg); padding-left: 10px; }
.row:hover::before { transform: scaleY(1); }
.row .m { color: var(--muted); font-variant-numeric: tabular-nums; transition: color 0.35s; }
.row:hover .m { color: inherit; }
.row .c { text-align: right; color: var(--muted); transition: color 0.35s; }
.row:hover .c { color: inherit; }
.row--note { grid-template-columns: 1fr; font-size: 14px; color: var(--muted); padding: 12px 0; }
.row--note::before { display: none; }
.row--note:hover { color: var(--muted); padding-left: 0; }
.idx__more { overflow: hidden; height: 0; }
.idx__toggle {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13px;
}
.idx__toggle i { font-style: normal; display: inline-block; transition: transform 0.6s var(--ease); }
.idx__toggle.is-open i { transform: rotate(45deg); }

/* ---------- about ---------- */
.about { padding: 18vh var(--pad) 10vh; }
.about__lead { margin: 4vh 0 0; max-width: 24em; font-size: var(--fs-lead); line-height: 1.08; letter-spacing: -0.035em; }
.about__body { max-width: 40em; margin: 4vh 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
/* 작업 방식: 제목 왼쪽, 세 단계 오른쪽 */
.method { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 32px; margin-top: 12vh; padding-top: 14px; border-top: 1px solid var(--line); }
.method__head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.method__title { margin: 10px 0 0; font-size: var(--fs-card); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; }
.method__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.method__steps h4 { margin: 10px 0 8px; font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.method__steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.method__outro { grid-column: 2; margin: 2vh 0 0; font-size: 18px; letter-spacing: -0.01em; }
.about__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 14vh; font-size: 14px; }
.about__cols h3 { margin: 0 0 12px; font-size: 13px; font-weight: 400; color: var(--muted); }
.about__cols ul { list-style: none; margin: 0 0 20px; padding: 0; }
.about__cols li { padding: 2px 0; }
.about__cols li.sub { color: var(--muted); margin-top: 10px; }
.about__cols a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.about__cols a:hover { background-size: 100% 1px; }

/* ---------- gallery: 3D 구 드래그 ---------- */
.gal { padding: 14vh var(--pad) 0; }
.gal .sec-head { align-items: center; border-bottom: 0; }
.gal__title { display: inline-flex; align-items: center; gap: 12px; }
/* 셔플 버튼: 테마 버튼과 같은 원형 필, 누르면 아이콘이 한 바퀴 */
.gal__shuffle {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--pill);
  cursor: pointer; display: grid; place-items: center; padding: 0; transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.gal__shuffle svg { width: 14px; height: 14px; transform: rotate(var(--spin, 0deg)); transition: transform 1.2s var(--ease); }
@media (hover: hover) { .gal__shuffle:hover { background: var(--fg); color: var(--bg); } }
.gal__stage {
  position: relative; height: max(560px, 100svh); margin: 2vh calc(var(--pad) * -1) 0; overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
}
.gal__stage.is-drag { cursor: grabbing; }
.gal__item { position: absolute; left: 0; top: 0; transform-origin: 0 0; aspect-ratio: var(--ar); border-radius: 14px; overflow: hidden; background: var(--card); will-change: transform; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* ---------- footer ---------- */
.ftr { padding: 22vh var(--pad) 90px; }
.cta { display: inline-block; margin-top: 2vh; font-size: var(--fs-xl); line-height: 1; letter-spacing: -0.035em; }
/* 큰 글자는 글자 교체 대신: 회색 줄이 밝아지고 화살표가 들어옴 */
.cta em { transition: color 0.6s var(--ease); }
.cta__arrow { display: inline-block; margin-left: 0.08em; font-size: 0.45em; vertical-align: top; opacity: 0; filter: blur(6px); transform: translate(-0.4em, 0.4em); transition: opacity 0.5s var(--ease), filter 0.5s var(--ease), transform 0.6s var(--ease); }
@media (hover: hover) {
  .cta:hover em { color: var(--fg); }
  .cta:hover .cta__arrow { opacity: 1; filter: none; transform: none; }
}
.ftr__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 12vh; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.ftr__grid p { margin: 4px 0 0; }
.ftr__grid a:hover { color: var(--muted); }
.ftr__bottom { display: flex; justify-content: space-between; margin-top: 10vh; font-size: 13px; color: var(--muted); }
.ftr__bottom button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-size: 13px; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--fg);
  transition: width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease), opacity 0.3s;
}
.cursor.is-link { width: 30px; height: 30px; margin: -15px 0 0 -15px; opacity: 0.18; }
.cursor.is-view { width: 0; height: 0; margin: 0; opacity: 0; }
.cursor.is-out { opacity: 0; }
@media (pointer: coarse) { .cursor { display: none; } }

/* VIEW 라벨: 사이트 폰트 그대로의 작은 알약 (js/main.js viewLabel) */
.vlabel { position: fixed; left: 0; top: 0; z-index: 260; pointer-events: none; }
.vlabel__p {
  position: relative; display: block; translate: -50% -50%; padding: 6px 12px 7px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: 13px; line-height: 1.2; white-space: nowrap;
  opacity: 0; scale: 0.6; filter: blur(8px);
  transition: opacity 0.4s var(--ease), scale 0.5s var(--ease), filter 0.4s var(--ease);
}
.vlabel.is-on .vlabel__p { opacity: 1; scale: 1; filter: blur(0); }
.vlabel.is-press .vlabel__p { scale: 0.88; }
.vlabel__bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; }

/* 모바일 탭 로딩: 이미지가 블러되고 VIEW 라벨 로딩선이 채워진 뒤 이동 */
.card.is-loading .card__media img, .tile.is-loading .tile__media img, .next.is-loading .next__img img {
  filter: blur(16px) brightness(0.8) saturate(115%); scale: 1.08; transition: filter 0.5s var(--ease), scale 0.6s var(--ease);
}
.card.is-loading .card__info, .card.is-loading .card__no { opacity: 0; filter: blur(8px); }

/* ---------- project page ---------- */
.proj__head { padding: 22vh var(--pad) 6vh; }
.proj__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 3vh; }
.proj__close:hover { color: var(--fg); }
.proj__title { margin: 0; font-size: var(--fs-title); line-height: 1; letter-spacing: -0.035em; font-weight: 400; }
.proj__intro { max-width: 46em; margin-top: 5vh; font-size: 15px; line-height: 1.6; }
.proj__intro p, .proj__cap p { margin: 0 0 0.9em; }
.proj__cap { padding: 14px var(--pad) 9vh; font-size: 13px; line-height: 1.5; color: var(--muted); }
.proj__cap p { margin: 0; }
.gallery + .gallery { margin-top: 14px; }
.gallery video { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj__info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 6vh; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.proj__info p { margin: 4px 0 0; }
.proj__desc { margin: 0; font-size: 15px; line-height: 1.4; max-width: 34em; }
.proj__hero { margin: 0 0 14px; padding: 0 var(--pad); }
.proj__hero-in { overflow: hidden; border-radius: 18px; aspect-ratio: var(--ar); max-height: 92svh; width: 100%; background: var(--card); }
.proj__hero img { width: 100%; height: 116%; margin-top: -8%; object-fit: cover; }
/* 한 장짜리 작업: 미술관 벽에 건 것처럼 화면 높이 안에 온전히, 가운데, 위아래 넉넉한 여백 */
.proj__hero--solo { display: flex; justify-content: center; padding: 4vh var(--pad) 16vh; }
.proj__hero--solo .proj__hero-in { width: min(100%, calc(80svh * var(--ar))); max-height: none; border-radius: 4px; }
.proj__hero--solo img { height: 100%; margin-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 var(--pad); }
.gallery .tile__media { border-radius: 14px; clip-path: inset(0 0 0 0 round 14px); }
.gallery .wide { grid-column: span 2; }
.gallery .solo { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
/* 무드보드(벤토): 열마다 비율 그대로 쌓음, 짝수 열은 스크롤에 어긋나게 흐르므로 아래 캡션과 여유 */
.board { display: flex; align-items: flex-start; gap: 14px; padding: 0 var(--pad); }
.board__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.board .tile__media { position: relative; border-radius: 14px; clip-path: inset(0 0 0 0 round 14px); }
/* 캡처 원본의 가장자리 테두리·점 표시가 보이지 않게 사방 5%씩 잘라냄 (비율은 그대로) */
.board .tile__media img { position: absolute; inset: -5%; width: 110%; max-width: none; height: 110%; }
.board + .proj__cap { padding-top: 84px; }
.soon { padding: 10vh var(--pad); font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.03em; color: var(--muted); }
/* 다음 프로젝트: 제목은 왼쪽, 미리보기 이미지는 오른쪽 자기 칸에 (겹치거나 잘리지 않게) */
.next { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: var(--pad); align-items: end; margin-top: 18vh; padding: 14px var(--pad) var(--pad); border-top: 1px solid var(--line); }
.next > .label { grid-column: 1; grid-row: 1; align-self: start; }
.next__title { grid-column: 1; grid-row: 2; }
.next__title { display: block; margin-top: 2vh; padding-bottom: 0.08em; font-size: var(--fs-xl); line-height: 1; letter-spacing: -0.035em; transition: filter 0.8s var(--ease), opacity 0.8s; }
@media (hover: hover) {
  .next__title { filter: blur(6px); opacity: 0.85; }
  .next:hover .next__title { filter: none; opacity: 1; }
}
.next__img {
  /* 썸네일은 원본 비율 그대로: 세로는 높이 240px 기준, 가로는 최대 360px 폭 */
  grid-column: 2; grid-row: 1 / span 2; align-self: start; width: min(calc(240px * var(--ar)), 360px); aspect-ratio: var(--ar); border-radius: 12px; overflow: hidden;
  clip-path: inset(100% 0 0 0 round 12px); transition: clip-path 0.8s var(--ease);
}
@media (min-width: 1200px) { .next__img { width: min(calc(280px * var(--ar)), 420px); } }
/* 3단 묶음(태블릿부터): 6칸 그리드에서 2칸씩, 줄 끝에 남은 1~2장은 가운데 */
@media (min-width: 768px) {
  .gallery--3 { grid-template-columns: repeat(6, 1fr); }
  .gallery--3 .tile__media, .gallery--3 .solo { grid-column: span 2; justify-self: stretch; width: auto; }
  .gallery--3 .wide { grid-column: 1 / -1; }
  .gallery--3 .o3a { grid-column: 3 / span 2; }
  .gallery--3 .o3b { grid-column: 2 / span 2; }
}
.next__img img { width: 100%; height: 100%; object-fit: cover; scale: 1.2; transition: scale 1.2s var(--ease); }
.next:hover .next__img { clip-path: inset(0 0 0 0 round 12px); }
.next:hover .next__img img { scale: 1; }

/* ---------- page + theme transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.45s cubic-bezier(0.4, 0, 1, 1) both vt-out; }
::view-transition-new(root) { animation: 0.8s cubic-bezier(0.2, 0.7, 0, 1) 0.1s both vt-in; }
::view-transition-group(hero) { animation-duration: 0.9s; animation-timing-function: cubic-bezier(0.7, 0, 0.1, 1); }
@keyframes vt-out { to { opacity: 0; filter: blur(10px); transform: scale(0.98); } }
@keyframes vt-in { from { opacity: 0; filter: blur(10px); transform: translateY(4vh); } }
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  .hero__meta, .about__cols, .ftr__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__meta { justify-content: stretch; }
  .hero__meta > div:nth-child(-n + 2) { grid-column: 1 / -1; }
  .proj__info { grid-template-columns: repeat(2, 1fr); }
  .proj__desc { grid-column: 1 / -1; }
  .work { height: auto; }
  .work__pin { padding: 60px 0 0; }
  .work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .work__track { height: 62svh; }
  .card { scroll-snap-align: center; max-width: 86vw; }
  .card__info { flex-direction: column; align-items: flex-start; }
  .tags { justify-content: flex-start; }
  .spec__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .spec__col { display: contents; }
  .yr { grid-template-columns: 1fr; gap: 0; }
  .yr__label { position: static; padding-bottom: 4px; }
  .row { grid-template-columns: 3.6em 1fr; }
  .row .c { grid-column: 2; text-align: left; margin-top: -10px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: auto; }
  .gallery .solo { width: 100%; }
  .method { grid-template-columns: 1fr; }
  .method__steps { grid-template-columns: 1fr; }
  .method__outro { grid-column: 1; }
  .next__img { display: none; }
  .gal__stage { height: 74svh; }
  /* 메뉴 6개가 화면 안에 들어오도록: 독을 화면 폭에 맞추고 칸을 균등 분배 */
  .dock { width: calc(100% - 16px); bottom: 12px; }
  .dock a { flex: 1; padding: 8px 0; font-size: 12px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
