/* ---------- tokens ---------- */
:root {
  --bg: #fbfbfb;
  --fg: #121212;
  --muted: #6c6b66;
  --line: rgba(18, 18, 18, 0.12);
  --pill: rgba(255, 255, 255, 0.72);
  --pill-active: #121212;
  --pill-active-fg: #fbfbfb;
  --card: #e4e3de;
  /* 크기 단계: 모바일 / 태블릿(768+) / 데스크톱(1200+) / 와이드(1800+) — 창 크기에 비례해 무한히 커지지 않게 고정값 */
  --pad: 16px;
  --fs-lead: 26px;
  --fs-display: 64px;
  --fs-title: 48px;
  --fs-xl: 52px;
  --fs-year: 20px;
  --fs-card: 24px;
  /* 작은 글자·본문 단위: 1280px 폭까지 1px, 그보다 넓으면 화면 폭에 비례해 커짐(히어로 문구와 같은 방식, 최대 1.8px) */
  --u: clamp(1px, 0.078vw, 1.8px);
  --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: 24px; --fs-card: 28px; --logo-w: 680px; }
}
@media (min-width: 1200px) {
  :root { --pad: 48px; --fs-display: 140px; --fs-title: 112px; --fs-xl: 120px; --fs-year: 28px; --fs-card: 32px; --logo-w: 900px; }
}
@media (min-width: 1800px) {
  :root { --pad: 64px; --fs-display: 160px; --fs-title: 128px; --fs-xl: 136px; --fs-year: 32px; --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 calc(15 * var(--u))/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: calc(13 * var(--u)); 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: #0a0a0a; color: #f2f1ed;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: var(--pad);
  clip-path: inset(0 0 0 0);
}
.loader__top { align-self: stretch; display: flex; justify-content: space-between; min-height: 1.25em; font-size: calc(13 * var(--u)); }
/* 모드 다이얼: 판(--d) 위쪽 반만 보이고 아래는 흐려짐. 바늘은 고정, 판이 돎 */
.dial {
  --d: clamp(320px, 78vw, 110vh);
  position: relative; width: var(--d); height: calc(var(--d) * 0.54); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent);
  font-size: max(11px, calc(var(--d) * 0.026)); font-weight: 500; letter-spacing: -0.01em;
}
.dial__wheel { position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); will-change: transform; }
.dial__tick, .dial__opt { position: absolute; inset: 0; rotate: var(--a); }
.dial__tick::before { content: ""; position: absolute; left: 50%; top: 2%; width: 1.5px; height: 3.2%; translate: -50% 0; background: currentColor; opacity: 0.85; }
.dial__opt b { position: absolute; left: 50%; top: 13%; translate: -50% 0; display: grid; place-items: center; white-space: nowrap; font-weight: 500; line-height: 1; transition: background 0.35s, color 0.35s, scale 0.45s var(--ease); }
.dial__pill { padding: 0.42em 0.8em; border: 1.5px solid currentColor; border-radius: 999px; }
.dial__dot { width: 2.1em; height: 2.1em; border-radius: 50%; background: currentColor; }
.dial__dot, .dial__pill { color: inherit; }
.dial__dot { color: #0a0a0a; background: #f2f1ed; }
.dial__txt { padding: 0.42em 0.2em; }
.dial__opt.is-on .dial__pill { background: #f2f1ed; color: #0a0a0a; }
.dial__opt.is-on b { scale: 1.12; }
.dial__needle { position: absolute; left: 50%; top: 0; width: 2px; height: 7.5%; translate: -50% 0; background: currentColor; }

/* ---------- 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: calc(13 * var(--u)); 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: calc(13 * var(--u)); }
.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: calc(34 * var(--u)); height: calc(34 * var(--u)); 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: calc(14 * var(--u)); height: calc(14 * var(--u)); 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: 0.62em 1.15em; font-size: calc(13 * var(--u)); 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 { display: block; margin-bottom: 0.22em; 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: calc(13 * var(--u)); }
.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: calc(13 * var(--u)); 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: calc(13 * var(--u)); }
.sec-head .label { font-size: calc(13 * var(--u)); }

/* ---------- 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 {
  /* 가로로 긴 커버는 폭 제한(--card-max)에 걸리면 높이를 줄여 원본 구도가 잘리지 않게 */
  --card-max: 82vw;
  position: relative; flex: 0 0 auto; align-self: center; height: min(100%, calc(var(--card-max) / var(--ar))); aspect-ratio: var(--ar); max-width: var(--card-max);
  border-radius: 18px; overflow: hidden; background: var(--card); isolation: isolate; transform-origin: 50% 60%;
}
.card__media { position: absolute; inset: 0; overflow: hidden; }
/* 커버는 카드에 꼭 맞게(여유·패럴랙스 없음) → 선명해졌을 때 원본 구도가 잘리지 않음 */
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; 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; }
  .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: calc(13 * var(--u)); 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: calc(12 * var(--u)); padding: 0.42em 0.84em; 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: calc(13 * var(--u)); }
.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: calc(14 * var(--u)); transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.spec__tab .label { font-size: calc(12 * var(--u)); 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: calc(14 * var(--u)); 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: calc(13 * var(--u)); 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: calc(14 * var(--u)); 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: calc(14 * var(--u)); 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: calc(13 * var(--u));
}
.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: calc(16 * var(--u)); line-height: 1.6; color: var(--muted); }
/* 작업 방식: 제목 왼쪽, 세 단계 오른쪽 */
.method { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 32px; margin-top: 20vh; padding-top: 14px; border-top: 1px solid var(--line); }
.method__head p { margin: 6px 0 0; font-size: calc(14 * var(--u)); 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: calc(22 * var(--u)); font-weight: 400; letter-spacing: -0.02em; }
.method__steps p { margin: 0; font-size: calc(14 * var(--u)); line-height: 1.55; color: var(--muted); }
.method__outro { grid-column: 2; margin: 2vh 0 0; font-size: calc(18 * var(--u)); letter-spacing: -0.01em; }
.about__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 22vh; font-size: calc(14 * var(--u)); word-break: keep-all; }
.about__cols h3 { margin: 0 0 12px; font-size: calc(13 * var(--u)); 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.label { font-size: inherit; }
.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: calc(34 * var(--u)); height: calc(34 * var(--u)); 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: calc(13 * var(--u)); }
.ftr__grid p { margin: 4px 0 0; }
.ftr__grid a:hover { color: var(--muted); }
/* 명함: 실물(스페셜리티즈 펄 118, 923×578 비율)과 같은 배치. 은은한 진주광 + 검은 글자, 각진 모서리, 9겹 두께 */
.biz { --w: min(max(19vw, 340px), 70vw, 520px); position: relative; display: grid; place-items: center; min-height: max(100svh, 560px); perspective: 2200px; }
.biz__stage { position: relative; width: var(--w); aspect-ratio: 923 / 578; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; }
.biz__card { position: absolute; inset: 0; transform-style: preserve-3d; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.biz__card.is-drag { cursor: grabbing; }
.biz__face, .biz__slice { position: absolute; inset: 0; }
.biz__slice { background: linear-gradient(180deg, #ecebe6, #d9d6cf); transform: translateZ(calc(var(--z) * var(--w) * 0.009)); }
.biz__face {
  overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; color: #111;
  font-size: calc(var(--w) * 0.0398); line-height: 1.45;
  /* 펄지: 따뜻한 흰 바탕 + 아주 고운 종이 결 + 각도에 따라 옅게 도는 진주빛 */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(125deg, #f4f2ee 0%, #f8f7f4 40%, #efede8 100%);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.biz__face--front { transform: translateZ(calc(var(--w) * 0.0045)); text-align: center; }
.biz__face--back { transform: rotateY(180deg) translateZ(calc(var(--w) * 0.0045)); }
.biz__face p { position: absolute; margin: 0; white-space: nowrap; }
.biz__face .r { margin-left: 0.12em; }
/* 앞면: 가운데 정렬, 실물 기준 세로 위치(줄 가운데) 18% · 54.7% · 87% */
.biz__l1, .biz__l2, .biz__l3 { left: 0; right: 0; translate: 0 -50%; }
.biz__l1 { top: 18%; }
.biz__l2 { top: 54.7%; }
.biz__l3 { top: 87%; }
/* 뒷면: 왼쪽 6.8% 기준선, 큰 로고 + 아래 두 칸(두 번째 칸은 51.6%에서 시작) */
.biz__face h3 { position: absolute; left: 6.8%; top: 8.4%; margin: 0; font-weight: 400; font-size: calc(var(--w) * 0.119); line-height: 1.05; letter-spacing: -0.012em; }
.biz__face h3 sup { font-size: 0.46em; vertical-align: 0.95em; margin-left: 0.1em; }
.biz__who, .biz__reach { bottom: 8.6%; color: #2b2b2b; }
.biz__who { left: 6.8%; }
.biz__reach { left: 51.6%; }
/* 진주광: 각도에 따라 아주 옅은 분홍·하늘·연두 빛과 하이라이트가 천천히 지나감 */
.biz__shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: 0.55;
  background:
    radial-gradient(90% 70% at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%),
    linear-gradient(115deg, rgba(255, 214, 230, 0.55), rgba(214, 236, 255, 0.55) 35%, rgba(226, 255, 236, 0.5) 65%, rgba(255, 236, 214, 0.55)) var(--sx, 50%) 0 / 220% 100% no-repeat;
}
.biz__shadow { position: absolute; left: 6%; right: 6%; bottom: -12%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent); filter: blur(16px); pointer-events: none; }
.ftr__bottom { display: flex; justify-content: space-between; margin-top: 0; font-size: calc(13 * var(--u)); color: var(--muted); }
.ftr__bottom button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-size: calc(13 * var(--u)); }

/* ---------- 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: calc(13 * var(--u)); 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: calc(13 * var(--u)); 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: calc(15 * var(--u)); line-height: 1.6; }
.proj__intro p, .proj__cap p { margin: 0 0 0.9em; }
.proj__cap { padding: 14px var(--pad) 9vh; font-size: calc(13 * var(--u)); 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: calc(13 * var(--u)); }
.proj__info p { margin: 4px 0 0; }
.proj__desc { margin: 0; font-size: calc(15 * var(--u)); 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: 14px; }
.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) {
  /* 모바일 글자 단위: 0.88배 (작은 글자 11.4px, 본문 13.2px) — 레퍼런스(orkr) 모바일 크기에 맞춤 */
  :root { --u: 0.88px; }
  .hero__meta, .about__cols, .ftr__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__meta { justify-content: stretch; grid-template-columns: 1fr auto; }
  .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__viewport.is-dragging { scroll-snap-type: none; user-select: none; }
  .dial { --d: 96vw; }
  .work__track { height: auto; }
  /* 모바일 카드는 4:5 고정 (모바일용 mcover가 있으면 그 이미지, 없으면 cover 가운데 크롭) */
  .card { scroll-snap-align: center; height: auto; width: min(86vw, 62svh * 0.8); max-width: none; aspect-ratio: 4 / 5; }
  .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:not(.row--note) { 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: calc(100svh - 170px); }
  /* 메뉴 6개가 화면 안에 들어오도록: 독을 화면 폭에 맞추고, 글자 길이만큼 칸을 잡은 뒤 남는 폭을 똑같이 나눔 → 글자 사이 간격이 고르게 */
  .dock { width: calc(100% - 16px); bottom: 12px; gap: 0; }
  .dock a { flex: 1 1 auto; padding: 8px 7px; font-size: 12.5px; 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; }
}
