/* ============================================================
   Hamihamoo — "Darkroom" 리디자인 시안
   어두운 암실 + 안전등 주황빛. 밝은 '인화지' 모드도 지원.
   ============================================================ */

:root {
  --bg: #0e0e0d;
  --bg-2: #161614;
  --bg-3: #20201d;
  --ink: #f1eee6;
  --ink-2: #b3b0a6;
  --ink-3: #75736b;
  --line: rgba(241, 238, 230, .12);
  --line-2: rgba(241, 238, 230, .22);
  --accent: #ff5a36;
  --accent-ink: #120a07;
  --glass: rgba(22, 22, 20, .72);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);

  --f-display: "Instrument Serif", "Noto Serif KR", Georgia, serif;
  --f-body: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --gutter: clamp(16px, 3.2vw, 44px);
  --top-h: 64px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f0e9;
  --bg-2: #ebe7de;
  --bg-3: #e0dbcf;
  --ink: #171613;
  --ink-2: #57544c;
  --ink-3: #8b877c;
  --line: rgba(23, 22, 19, .12);
  --line-2: rgba(23, 22, 19, .24);
  --accent: #d9431f;
  --accent-ink: #fff8f3;
  --glass: rgba(243, 240, 233, .78);
  --shadow: 0 20px 50px -24px rgba(40, 30, 10, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s ease, color .5s ease;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
body.locked { overflow: hidden; }

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.serif { font-family: var(--f-display); font-weight: 400; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.accent { color: var(--accent); }

/* ---------- 스크롤 진행 막대 ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 90; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* 맨 위로 돌아가는 동안: 진행 막대가 굵게 빛나며 거꾸로 줄어들어요 */
.progress i { transition: height .3s ease, box-shadow .3s ease; }
body.rewinding .progress { height: 4px; }
body.rewinding .progress i { box-shadow: 0 0 14px 2px var(--accent); }

/* ---------- 맨 위로 버튼 ---------- */
.to-top {
  position: fixed; right: var(--gutter); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 84;
  width: 48px; height: 48px; border-radius: 50%; color: var(--ink);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow); opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
  transition: opacity .4s ease, transform .5s var(--ease);
}
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--accent); }
.to-top svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top path { transform: rotate(90deg); transform-origin: 24px 24px; transition: transform .4s var(--ease); }
.to-top:hover path { transform: rotate(90deg) translateX(-2px); }
.to-top .ring-bg { fill: none; stroke: var(--line); stroke-width: 2; }
.to-top .ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }
body.locked .to-top { opacity: 0; pointer-events: none; }

/* ---------- 상단 바 ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: transform .5s var(--ease), background-color .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.topbar.solid { background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.topbar.hidden { transform: translateY(-100%); }
.topbar.on-hero:not(.solid) { color: #f6f3ec; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor;
  display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-size: 21px; line-height: 1;
  transition: transform .6s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-20deg); }
.logo-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.logo-name small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 9.5px; letter-spacing: .18em; opacity: .65; margin-top: 1px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  height: 36px; min-width: 36px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13px; border: 1px solid transparent; transition: background-color .25s, border-color .25s;
}
.icon-btn:hover { background: rgba(127, 127, 120, .14); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.outline { border-color: var(--line-2); }

/* ---------- 하단 내비게이션 (도크) ---------- */
.dock {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 85;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 5px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  transition: transform .6s var(--ease), opacity .4s;
  max-width: calc(100vw - 24px);
}
.dock.away { transform: translate(-50%, 140%); opacity: 0; }
.dock a {
  position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2);
  white-space: nowrap; transition: color .3s;
}
.dock a:hover { color: var(--ink); }
.dock a.active { color: var(--accent-ink); }
.dock-ind {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--accent);
  transition: transform .55s var(--ease), width .55s var(--ease);
}

/* ---------- 페이지(뷰) ---------- */
#view { min-height: 100vh; transition: transform .8s var(--ease), filter .8s ease; }
/* 사진을 열면 뒤 페이지가 살짝 물러나고 흐려져요 */
body.lb-on #view { transform: scale(.955); filter: blur(6px) brightness(.6); }
.page { padding: calc(var(--top-h) + 40px) var(--gutter) 140px; }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: clamp(28px, 5vw, 56px); }
.page-kicker { margin-bottom: 14px; color: var(--accent); }
.page-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 9vw, 132px); line-height: .88; letter-spacing: -.035em; }
.page-title em { font-style: italic; color: var(--ink-2); }
.page-sub { max-width: 340px; color: var(--ink-2); font-size: 14px; text-align: right; }

/* 글자 하나씩 등장 */
.split .ch { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); animation: chIn 1s var(--ease) forwards; animation-delay: calc(var(--i) * 28ms + var(--base, 0ms)); }
@keyframes chIn { to { opacity: 1; transform: none; filter: none; } }

/* 스크롤 등장 */
.rv { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity .9s ease, transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; filter: none; }

/* ---------- 사진 카드 ---------- */
.ph { position: relative; margin: 0; cursor: zoom-in; }
.ph-frame { position: relative; overflow: hidden; background: var(--tint, var(--bg-3)); }
.ph-frame { transition: transform .35s var(--ease); }
.ph img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity .9s ease, transform 1.4s var(--ease), filter .6s ease;
}
.ph img.ok { opacity: 1; transform: none; }
/* 마우스를 올리면 아래에서 올라오는 사진 정보 */
.ph-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none;
  padding: 48px 14px 12px; color: #f6f3ec;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.42) 40%, rgba(0,0,0,.78));
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.ph-info > * { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .6s var(--ease); }
.ph-info-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; transition-delay: .08s; }
.ph-info-top b { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.05; }
.ph-info-top .mono { opacity: .7; font-size: 10px; }
.ph-exif { margin-top: 5px; font-size: 10px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition-delay: .15s; }
.ph:active .ph-frame { transform: scale(.975); }
@media (hover: hover) and (pointer: fine) {
  .ph:hover img.ok { transform: scale(1.045); transition: opacity .9s ease, transform 1.8s var(--ease); }
  .ph:hover .ph-info { transform: none; }
  .ph:hover .ph-info > * { opacity: 1; transform: none; }
  .mosaic:hover .ph:not(:hover) img.ok, .tl-grid:hover .ph:not(:hover) img.ok { filter: brightness(.72) saturate(.85); }
}
.ph-cap { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--ink-3); }
.ph-cap b { color: var(--ink-2); font-weight: 400; }

/* ---------- 홈: 히어로 ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #f6f3ec; background: #0b0b0a; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slide.on img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(0, 0, 0); } to { transform: scale(1.0) translate3d(-1.5%, -1%, 0); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 45%, rgba(0,0,0,.7) 100%); pointer-events: none; }
.hero-inner { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) clamp(96px, 13vh, 140px); }
.hero-kicker { margin-bottom: 18px; opacity: .8; }
.hero-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(64px, 13.5vw, 230px); line-height: .82; letter-spacing: -.045em; }
.hero-title em { font-style: italic; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 30px; margin-top: 30px; }
.hero-note { font-size: 15px; line-height: 1.7; max-width: 340px; opacity: .92; white-space: pre-line; }
.hero-note small { display: block; margin-top: 10px; opacity: .6; }
.hero-bars { display: flex; gap: 6px; align-items: center; }
.hero-bar { width: 42px; height: 18px; background: rgba(255,255,255,.25); overflow: hidden; cursor: pointer; padding: 8px 0; background-clip: content-box; }
.hero-bar i { display: block; height: 2px; background: #fff; transform-origin: left; transform: scaleX(0); }
.hero-bar.done i { transform: scaleX(1); }
.hero-bar.on i { animation: bar var(--dur, 6s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.hero-meta { display: flex; gap: 22px; margin-top: 14px; opacity: .75; justify-content: flex-end; }
.scroll-cue { position: absolute; left: 50%; bottom: 96px; z-index: 2; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .7; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(#fff, transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 홈: 소개 문장 ---------- */
.statement { padding: clamp(90px, 14vw, 180px) var(--gutter); max-width: 1300px; }
.statement p { margin: 0; font-family: var(--f-display); font-size: clamp(30px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -.02em; }
.statement .w { display: inline-block; opacity: .16; transition: opacity .5s ease; }
.statement .w.lit { opacity: 1; }
.statement-meta { display: flex; gap: 40px; margin-top: 40px; color: var(--ink-3); flex-wrap: wrap; }
.statement-meta b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 44px; color: var(--ink); letter-spacing: -.02em; line-height: 1; margin-bottom: 6px; }

/* ---------- 홈: 대표작 가로 스크롤 ---------- */
.hs { position: relative; }
.hs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hs-head { display: flex; justify-content: space-between; align-items: end; padding: 0 var(--gutter); margin-bottom: 28px; }
.hs-head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 6vw, 88px); line-height: .9; letter-spacing: -.03em; }
.hs-head h2 em { color: var(--ink-2); }
.hs-track { display: flex; gap: clamp(16px, 2.4vw, 36px); padding: 0 var(--gutter); will-change: transform; align-items: flex-end; }
.hs-card { flex: 0 0 auto; }
.hs-card .ph-frame { height: min(62vh, 640px); aspect-ratio: var(--r, 1.5); }
.hs-card .ph-cap { font-size: 11px; }
.hs-count { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.hs-count b { color: var(--ink); font-weight: 400; }

/* ---------- 아카이브 ---------- */
.archive { padding: 80px var(--gutter) 160px; }
.archive-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.archive-head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 7vw, 108px); line-height: .88; letter-spacing: -.035em; }
.archive-head h2 sup { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; vertical-align: top; margin-left: 8px; color: var(--accent); position: relative; top: 14px; }
.toolbar {
  position: sticky; top: 10px; z-index: 40; margin: 0 calc(var(--gutter) * -1) 28px; padding: 10px var(--gutter);
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  transition: background-color .3s, top .5s var(--ease);
}
.toolbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.toolbar.stuck { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
body.top-visible .toolbar { top: var(--top-h); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); position: relative; }
.seg button { position: relative; z-index: 1; white-space: nowrap; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); transition: color .3s; }
.seg button.on { color: var(--bg); }
.seg .seg-ind { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); transition: all .25s; white-space: nowrap;
}
.pill:hover { border-color: var(--line-2); color: var(--ink); }
.pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill svg { width: 15px; height: 15px; }
.dots { display: inline-flex; gap: 5px; align-items: center; padding: 0 6px; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 1px solid rgba(127,127,127,.35); transition: transform .3s var(--ease), box-shadow .3s; position: relative; }
.dot:hover { transform: scale(1.18); }
.dot.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.spacer { flex: 1; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; height: 34px; padding: 0 30px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.select::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--ink-3); pointer-events: none; }
.select option { background: var(--bg-2); color: var(--ink); }
.count-line { color: var(--ink-3); margin: -10px 0 22px; }

/* 보기 1: 모자이크 (원본 비율 유지하며 줄 맞춤) */
.mosaic { --row: clamp(170px, 16vw, 300px); display: flex; flex-wrap: wrap; gap: clamp(8px, 1vw, 14px); }
.mosaic .ph { flex: var(--r, 1.5) 1 calc(var(--r, 1.5) * var(--row, 260px)); height: var(--row, 260px); min-width: 0; }
.mosaic .ph-frame { height: 100%; }
.mosaic::after { content: ""; flex: 999 1 0; }

/* 보기 3: 날짜별 */
.timeline { display: grid; gap: 70px; }
.tl-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; }
.tl-date { position: sticky; top: calc(var(--top-h) + 70px); align-self: start; }
.tl-date b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 64px; line-height: .9; letter-spacing: -.03em; }
.tl-date span { display: block; margin-top: 8px; color: var(--ink-3); }
.tl-grid { columns: 3; column-gap: 12px; }
.tl-grid .ph { break-inside: avoid; margin-bottom: 12px; }
.tl-grid .ph-frame { aspect-ratio: auto; }
.tl-grid .ph img { height: auto; }

.empty { padding: 80px 0; text-align: center; color: var(--ink-3); }

/* ---------- 홈: 하단 초대 ---------- */
.invite { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.invite a { padding: 50px var(--gutter); border-right: 1px solid var(--line); position: relative; overflow: hidden; transition: color .4s; }
.invite a:last-child { border-right: 0; }
.invite a::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.invite a:hover { color: var(--accent-ink); }
.invite a:hover::before { transform: none; }
.invite b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 3.6vw, 54px); line-height: 1; margin: 18px 0 10px; }
.invite span { font-size: 13.5px; opacity: .75; }
.invite { position: relative; z-index: 0; isolation: isolate; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px var(--gutter) 110px; border-top: 1px solid var(--line); color: var(--ink-3); flex-wrap: wrap; }

/* ---------- 프로젝트 목록 ---------- */
.plist { border-top: 1px solid var(--line); }
.prow {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) 200px 90px 30px; gap: 20px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .5s var(--ease), color .3s;
}
.prow h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 64px); line-height: 1; letter-spacing: -.025em; transition: transform .6s var(--ease); }
.prow .arrow { font-size: 22px; transition: transform .5s var(--ease); color: var(--ink-3); }
.plist:hover .prow { color: var(--ink-3); }
.plist .prow:hover { color: var(--ink); }
.prow:hover h3 { transform: translateX(14px); font-style: italic; }
.prow:hover .arrow { transform: translateX(6px) rotate(-45deg); color: var(--accent); }
.prow-desc { font-size: 13px; color: var(--ink-3); }
.pfloat {
  position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 4 / 5; z-index: 30; pointer-events: none; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .35s ease, scale .5s var(--ease);
  border-radius: 2px; box-shadow: var(--shadow);
}
.pfloat.on { opacity: 1; scale: 1; }
.pfloat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.pcards { display: none; }

/* ---------- 프로젝트 상세 ---------- */
.pd-hero { position: relative; height: 92vh; height: 92svh; min-height: 520px; overflow: hidden; color: #f6f3ec; }
.pd-hero img { width: 100%; height: 100%; object-fit: cover; }
.pd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 35%, rgba(0,0,0,.75)); }
.pd-hero-inner { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 0 var(--gutter) 60px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
.pd-hero h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 10vw, 170px); line-height: .86; letter-spacing: -.04em; }
.pd-intro { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 80px var(--gutter); border-bottom: 1px solid var(--line); }
.pd-intro p { margin: 0; font-family: var(--f-display); font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -.01em; white-space: pre-line; }
.pd-facts { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 30px; align-content: start; justify-content: start; }
.pd-facts span { color: var(--ink-3); }
.pd-photos { padding: 70px var(--gutter); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 3vw, 44px) clamp(12px, 2vw, 28px); align-items: start; }
.pd-photos .ph { grid-column: span 6; }
.pd-photos .ph:nth-child(5n+1) { grid-column: 1 / -1; }
.pd-photos .ph:nth-child(5n+2) { grid-column: 2 / span 5; }
.pd-photos .ph:nth-child(5n+3) { grid-column: 8 / span 5; margin-top: 18vh; }
.pd-photos .ph:nth-child(5n+4) { grid-column: 1 / span 7; }
.pd-photos .ph:nth-child(5n+5) { grid-column: 9 / span 4; margin-top: 10vh; }
.pd-photos .ph img { height: auto; }
.pd-next { display: block; padding: 90px var(--gutter) 150px; border-top: 1px solid var(--line); text-align: center; }
.pd-next span { color: var(--ink-3); }
.pd-next b { display: block; margin-top: 16px; font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 8vw, 130px); line-height: .9; letter-spacing: -.035em; transition: color .3s, letter-spacing .6s var(--ease); }
.pd-next:hover b { color: var(--accent); font-style: italic; letter-spacing: -.02em; }

/* ---------- 색 막대 (Work 사진 목록의 색 필터) ---------- */
.palette { flex: none; width: 100%; display: flex; gap: 3px; height: 30px; margin-top: 4px; transition: height .5s var(--ease); }
.toolbar.stuck .palette { height: 12px; }
.spec { flex: var(--n) 1 0; min-width: 12px; background: var(--c); position: relative; border-radius: 3px; border: 1px solid rgba(127,127,127,.22); transition: flex-grow .8s var(--ease), transform .4s var(--ease), opacity .4s; }
.spec:hover { transform: translateY(-3px); }
.palette.has-on .spec:not(.on) { opacity: .25; }
.spec.on { flex-grow: calc(var(--n) * 4); }
.spec-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); background: var(--ink); color: var(--bg); padding: 3px 8px; border-radius: 5px; font-size: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }
.spec:hover .spec-tip { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 별자리 ---------- */
.cons { position: fixed; inset: 0; background: var(--bg); }
.cons canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.cons canvas.drag { cursor: grabbing; }
.cons-ui { position: absolute; left: var(--gutter); top: calc(var(--top-h) + 20px); z-index: 2; max-width: 440px; pointer-events: none; }
.cons-ui > * { pointer-events: auto; }
.cons-ui h1 { margin: 0 0 10px; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: .9; letter-spacing: -.035em; pointer-events: none; }
.cons-ui p { margin: 0 0 18px; color: var(--ink-2); font-size: 13.5px; pointer-events: none; }
.cons-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cons-search { width: 100%; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); padding: 0 16px; font-size: 13px; backdrop-filter: blur(10px); }
.cons-panel {
  position: absolute; right: var(--gutter); top: calc(var(--top-h) + 20px); width: 300px; z-index: 2;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  transform: translateX(calc(100% + 40px)); transition: transform .6s var(--ease);
}
.cons-panel.on { transform: none; }
.cons-panel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.cons-panel h4 { margin: 12px 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 26px; }
.cons-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.cons-links img { aspect-ratio: 1; border-radius: 4px; cursor: pointer; transition: transform .3s var(--ease); }
.cons-links img:hover { transform: scale(1.06); }
.cons-tip { position: absolute; z-index: 3; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 11px; padding: 5px 9px; border-radius: 6px; transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .2s; white-space: nowrap; font-family: var(--f-mono); }
.cons-tip.on { opacity: 1; }
.cons-legend { position: absolute; left: var(--gutter); bottom: 100px; z-index: 2; color: var(--ink-3); display: flex; gap: 16px; flex-wrap: wrap; }
.cons-legend i { display: inline-block; width: 18px; height: 2px; vertical-align: middle; margin-right: 6px; background: var(--c); }

/* ---------- 방명록 ---------- */
.gb { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.gb-form { position: sticky; top: calc(var(--top-h) + 24px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.gb-form h3 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 34px; }
.gb-form p { margin: 0 0 18px; color: var(--ink-3); font-size: 13px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 11px 13px; font-size: 14.5px;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field .cnt { text-align: right; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px;
  transition: transform .2s var(--ease), filter .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.small { height: 36px; padding: 0 16px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.gb-status { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; min-height: 18px; }
.gb-wall { columns: 2; column-gap: 16px; }
.note { break-inside: avoid; margin-bottom: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.note { position: relative; }
.note.new { border-color: var(--accent); }
/* 막 붙인 글에는 테이프 한 조각 */
.note.new::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 18px; background: color-mix(in srgb, var(--accent) 38%, transparent); transform: translateX(-50%) rotate(-3deg); border-radius: 2px; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
.note p { margin: 0 0 16px; font-size: 15px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.note footer { display: flex; justify-content: space-between; color: var(--ink-3); gap: 10px; }
.note footer b { color: var(--ink); font-weight: 600; font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 13px; }
.note:nth-child(4n+1) p { font-family: var(--f-display); font-size: 22px; line-height: 1.3; }

/* ---------- 작가 소개 (오른쪽 서랍) ---------- */
.drawer-back { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.drawer-back.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 96; width: min(520px, 100vw); background: var(--bg-2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .7s var(--ease); overflow-y: auto; padding: 28px 32px 60px;
}
.drawer.on { transform: none; }
.drawer-close { position: absolute; top: 18px; right: 18px; }
.about-img { width: 120px; height: 150px; object-fit: cover; border-radius: 2px; margin: 30px 0 26px; filter: grayscale(1); transition: filter .6s; }
.about-img:hover { filter: none; }
.drawer h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 64px; line-height: .9; letter-spacing: -.03em; }
.drawer .role { margin: 12px 0 26px; color: var(--accent); }
.drawer .body { font-size: 15.5px; line-height: 1.85; white-space: pre-line; color: var(--ink-2); }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 30px 0; }
.about-stats div { background: var(--bg-2); padding: 16px; }
.about-stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 1; margin-bottom: 4px; }
.about-stats span { color: var(--ink-3); }
.signoff { font-family: var(--f-display); font-style: italic; font-size: 30px; }

/* ---------- 크게 보기 (라이트박스) ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(8, 8, 7, .985); color: #f1eee6; }
.lb.on { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: minmax(0, 1fr) auto; }
.lb.no-info { grid-template-columns: minmax(0, 1fr) 0; }
.lb-stage { position: relative; overflow: hidden; grid-row: 1; grid-column: 1; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-img { position: absolute; max-width: calc(100% - 140px); max-height: calc(100% - 80px); object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .45s var(--ease); cursor: zoom-in; }
.lb-img.zoomed { cursor: zoom-out; }
.lb-fly { position: fixed; z-index: 101; object-fit: cover; pointer-events: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #f1eee6; opacity: .55; transition: opacity .2s, background-color .2s; }
.lb-nav:hover { opacity: 1; background: rgba(255,255,255,.08); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-top { position: absolute; top: 16px; left: 20px; right: 16px; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.lb-top .mono { color: #8d897d; }
.lb-tools { display: flex; gap: 4px; }
.lb-tools .icon-btn { color: #f1eee6; }
.lb-tools .icon-btn:hover { background: rgba(255,255,255,.1); }
.lb-tools .icon-btn.on { color: var(--accent); }
.lb-slidebar { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; }
.lb-slidebar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.lb-info { grid-row: 1 / span 2; grid-column: 2; border-left: 1px solid rgba(255,255,255,.08); padding: 70px 26px 26px; overflow-y: auto; background: #121211; }
.lb.no-info .lb-info { display: none; }
.lb-info .num { color: #ff7a52; }
.lb-info h3 { margin: 10px 0 2px; font-family: var(--f-display); font-weight: 400; font-size: 50px; line-height: .95; letter-spacing: -.02em; }
.lb-info .year { color: #8d897d; }
.exif { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); margin: 26px 0; border-radius: 8px; overflow: hidden; }
.exif div { background: #121211; padding: 12px 14px; }
.exif div.wide { grid-column: 1 / -1; }
.exif span { display: block; color: #75736b; margin-bottom: 3px; }
.exif b { font-weight: 400; font-size: 15px; }
.lb-color { display: flex; align-items: center; gap: 10px; }
.lb-color i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 1px solid rgba(255,255,255,.25); }
.lb-projects { margin-top: 22px; }
.lb-projects a { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.lb-projects a:hover { color: #ff7a52; }
.lb-strip { grid-row: 2; grid-column: 1; display: flex; gap: 6px; padding: 10px 20px 16px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.lb-strip::-webkit-scrollbar { display: none; }
.lb-strip img { width: 56px; height: 40px; object-fit: cover; flex: 0 0 auto; opacity: .35; cursor: pointer; transition: opacity .3s, transform .4s var(--ease); border-radius: 2px; }
.lb-strip img:hover { opacity: .8; }
.lb-strip img.on { opacity: 1; transform: translateY(-4px); box-shadow: 0 0 0 1.5px #ff7a52; }

/* ---------- 마우스 따라다니는 커서 ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; transform: scale(0); transition: transform .45s var(--ease); mix-blend-mode: normal; }
.cursor.on { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- 알림 ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 130; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 13.5px; transition: all .5s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 페이지 전환 ---------- */
.topbar { view-transition-name: topbar; }
.dock { view-transition-name: dock; }
.curtain { position: fixed; inset: 0; z-index: 110; background: var(--accent); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
@supports (view-transition-name: none) {
  ::view-transition-old(root) { animation: vtOut .45s var(--ease-io) both; }
  ::view-transition-new(root) { animation: vtIn .7s var(--ease) both; }
}
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-24px); filter: blur(6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(36px); } }


/* ---------- 관리 (스튜디오) ---------- */
.studio { padding: calc(var(--top-h) + 30px) var(--gutter) 140px; }
.gate { min-height: 70vh; display: grid; place-items: center; }
.gate-box { width: min(420px, 100%); text-align: center; }
.gate-box .logo-mark { margin: 0 auto 22px; width: 54px; height: 54px; font-size: 32px; }
.gate-box h1 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 400; font-size: 56px; line-height: 1; }
.gate-box p { color: var(--ink-2); margin: 0 0 24px; font-size: 14px; }
.gate-box .field { text-align: left; }
.st-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.st-head h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: .9; letter-spacing: -.03em; }
.st-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.st-tabs button { padding: 12px 16px; font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s, border-color .3s; }
.st-tabs button:hover { color: var(--ink); }
.st-tabs button.on { color: var(--ink); border-color: var(--accent); }
.st-tabs button i { font-style: normal; font-size: 11px; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.drop {
  display: block;
  border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 54px 20px; text-align: center; transition: all .3s var(--ease); cursor: pointer; position: relative; background: var(--bg-2);
}
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); transform: scale(1.01); }
.drop b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 38px; margin: 10px 0 6px; }
.drop span { color: var(--ink-3); font-size: 13px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.queue { display: grid; gap: 12px; margin-top: 20px; }
.qitem { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); position: relative; overflow: hidden; animation: noteIn .6s var(--ease); }
.qitem img { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; }
.qfields { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; gap: 8px; }
.qfields .field { margin: 0; }
.qfields input, .qfields select { padding: 8px 10px; font-size: 13.5px; }
.qmeta { color: var(--ink-3); margin-top: 6px; }
.qbar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); width: 0; transition: width .3s ease; }
.qitem.done { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.st-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.mgr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mcard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); transition: border-color .25s, transform .4s var(--ease); position: relative; }
.mcard.dirty { border-color: var(--accent); }
.mcard.sel { box-shadow: 0 0 0 2px var(--accent); }
.mcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; cursor: pointer; }
.mcard .mbody { padding: 10px; display: grid; gap: 6px; }
.mcard input, .mcard select { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 7px 9px; font-size: 12.5px; }
.mcard .mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mcard .mfoot { display: flex; justify-content: space-between; align-items: center; }
.mcheck { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 6px; background: rgba(0,0,0,.5); border: 1.5px solid #fff; display: grid; place-items: center; color: #fff; font-size: 13px; }
.mcard.sel .mcheck { background: var(--accent); border-color: var(--accent); }
.link-danger { color: #ff6b5a; font-size: 12.5px; }
.link-danger:hover { text-decoration: underline; }
.fx-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 26px; align-items: start; }
.fx-box { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--bg-2); }
.fx-box h3 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 30px; }
.fx-box > p { margin: 0 0 14px; color: var(--ink-3); font-size: 13px; }
.fx-list { display: grid; gap: 8px; min-height: 80px; }
.fx-item { display: grid; grid-template-columns: 26px 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); transition: transform .35s var(--ease); }
.fx-item[draggable="true"] { cursor: grab; }
.fx-item.dragging { opacity: .4; }
.fx-item img { width: 72px; height: 50px; object-fit: cover; border-radius: 6px; }
.fx-item .n { text-align: center; color: var(--accent); }
.fx-item .ctl { display: flex; gap: 2px; }
.fx-item .ctl button { width: 28px; height: 28px; border-radius: 6px; color: var(--ink-2); }
.fx-item .ctl button:hover { background: var(--bg-3); color: var(--ink); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.pick { position: relative; cursor: pointer; border-radius: 6px; overflow: hidden; }
.pick img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s var(--ease), opacity .3s; }
.pick:hover img { transform: scale(1.06); }
.pick.on::after { content: attr(data-n); position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; font-weight: 700; font-size: 20px; }
.pick .cover-tag { position: absolute; left: 4px; top: 4px; z-index: 1; font-size: 9px; background: #000; color: #fff; padding: 1px 5px; border-radius: 4px; }
.pj-list { display: grid; gap: 8px; }
.pj-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; }
.pj-item.on { border-color: var(--accent); }
.pj-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.pj-item b { display: block; font-weight: 600; }
.settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; max-width: 900px; }
.settings-form .wide { grid-column: 1 / -1; }
.settings-form h4 { grid-column: 1 / -1; margin: 18px 0 8px; font-family: var(--f-display); font-weight: 400; font-size: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.settings-form h4:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

/* ---------- 반응형 ---------- */
@media (max-width: 1000px) {
  .lb.on { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; }
  .lb-info { grid-row: 3; grid-column: 1; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); padding: 18px 20px 24px; max-height: 34vh; }
  .lb-info h3 { font-size: 34px; }
  .exif { margin: 14px 0; }
  .lb-img { max-width: calc(100% - 24px); max-height: calc(100% - 70px); }
  .lb-nav { display: none; }
  .tl-group { grid-template-columns: 1fr; gap: 14px; }
  .tl-date { position: static; display: flex; align-items: baseline; gap: 14px; }
  .tl-date b { font-size: 44px; }
  .prow { grid-template-columns: 50px minmax(0, 1fr) 30px; }
  .prow .prow-desc, .prow .prow-count { display: none; }
  .pd-intro { grid-template-columns: 1fr; }
  .gb { grid-template-columns: 1fr; }
  .gb-form { position: static; }
  .fx-cols { grid-template-columns: 1fr; }
  .qitem { grid-template-columns: 90px minmax(0, 1fr); }
  .qitem img { width: 90px; height: 70px; }
  .qitem > .qside { grid-column: 1 / -1; }
  .qfields { grid-template-columns: 1fr 1fr; }
  .qfields .field:nth-child(2) { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  :root { --top-h: 56px; }
  .logo-name small { display: none; }
  .top-actions .label { display: none; }
  .dock { left: 12px; right: 12px; transform: none; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .dock::-webkit-scrollbar { display: none; }
  .dock.away { transform: translateY(140%); }
  .dock a { padding: 9px 13px; font-size: 13px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 18px; }
  .hero-meta { justify-content: flex-start; }
  .scroll-cue { display: none; }
  .page-head { grid-template-columns: 1fr; }
  .page-sub { text-align: left; }
  .hs-sticky { position: static; height: auto; padding: 70px 0; }
  .hs { height: auto !important; }
  .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; scrollbar-width: none; padding-bottom: 6px; }
  .hs-track::-webkit-scrollbar { display: none; }
  .hs-card { scroll-snap-align: center; }
  .hs-card .ph-frame { height: auto; width: 78vw; max-height: 60vh; }
  .statement-meta { gap: 26px; }
  .statement-meta b { font-size: 34px; }
  .toolbar-row { gap: 7px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .toolbar-row > * { flex-shrink: 0; }
  .toolbar-row::-webkit-scrollbar { display: none; }
  .toolbar .spacer { display: none; }
  .mosaic { --row: 108px !important; gap: 6px; }
  .tl-grid { columns: 2; column-gap: 8px; }
  .tl-grid .ph { margin-bottom: 8px; }
  .invite { grid-template-columns: 1fr; }
  .invite a { border-right: 0; border-bottom: 1px solid var(--line); padding: 34px var(--gutter); }
  .plist { display: none; }
  .pcards { display: grid; gap: 34px; }
  .pcard .ph-frame { aspect-ratio: 4 / 5; }
  .pcard h3 { margin: 12px 0 2px; font-family: var(--f-display); font-weight: 400; font-size: 38px; line-height: 1; }
  .pd-hero-inner { grid-template-columns: 1fr; }
  .pd-photos { grid-template-columns: 1fr; padding-top: 40px; }
  .pd-photos .ph, .pd-photos .ph:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .palette { gap: 2px; height: 26px; }
  .cons-ui { right: var(--gutter); max-width: none; }
  .cons-ui p { display: none; }
  .cons-panel { left: 12px; right: 12px; width: auto; top: auto; bottom: 86px; display: grid; grid-template-columns: 110px 1fr; gap: 12px; transform: translateY(calc(100% + 120px)); }
  .cons-panel h4 { margin-top: 0; font-size: 22px; }
  .cons-panel .cons-links { grid-column: 1 / -1; grid-template-columns: repeat(6, 1fr); }
  .cons-legend { display: none; }
  .gb-wall { columns: 1; }
  .drawer { padding: 24px 22px 60px; }
  .mgr-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .settings-form { grid-template-columns: 1fr; }
  .demo-badge { display: none; }
  .to-top { right: 14px; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 62px); width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html:not(.force-motion) .rv { opacity: 1; transform: none; filter: none; }
  /* 다음 사진까지 남은 시간을 알려주는 막대는 정보라서 항상 차오르게 둬요 */
  .hero-bar.on i { animation-duration: var(--dur, 6s) !important; }
}

