/* EUNSEOK HAN — site and admin styles
   One tone on purpose: white paper, black ink, bold titles over regular text.
   The work brings all of the colour. Layout: a full-bleed photograph on the
   home page, then quiet left-aligned pages built on one grid. */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --grey: #6b6b6b;      /* secondary text, 5.3:1 on white */
  --rule: #e3e3e3;      /* hairlines */
  --wash: #f4f4f4;      /* empty image frames, hover fills */
  --danger: #b3261e;    /* admin only: destructive actions */

  --display: "Archivo", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(16px, 3.2vw, 44px);
  --head: 76px;
  --maxw: 1480px;

  --fs-xs: 12px;
  --fs-s: 13.5px;
  --fs-m: 16px;
  --fs-l: 19px;
  --fs-xl: clamp(28px, 3.2vw, 40px);
  --fs-xxl: clamp(34px, 4.9vw, 66px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-m);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
:lang(ko), .ko { word-break: keep-all; line-height: 1.8; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- loading ---------- */
.boot { min-height: 100svh; display: grid; place-items: center; }
.boot svg { width: 180px; height: auto; opacity: .12; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--head);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .5s ease, background-color .25s ease;
}
.is-scrolled .site-header { border-bottom-color: var(--rule); }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: inherit; flex: none; }
.logo svg { height: 20px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); margin: 0; padding: 0; list-style: none; }
.nav a, .menu-btn {
  font-size: 13px; font-weight: 700; font-stretch: 110%;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 8px 0; display: inline-block; background: none; border: 0; cursor: pointer;
}
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 currentColor; }
.nav a:hover { box-shadow: inset 0 -2px 0 currentColor; }
.menu-btn { display: none; }
.menu .menu-close { display: inline-block; }

/* home: header floats over the photograph */
.is-home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.is-home[data-tone="dark"] .site-header { color: #fff; }
/* past the photograph the header turns back into the plain white bar */
body.is-home.past-hero .site-header { background: var(--paper); color: var(--ink); border-bottom-color: var(--rule); }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; padding: 0 var(--pad) 32px;
}
.menu-top { height: var(--head); display: flex; align-items: center; justify-content: space-between; }
.menu ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 6px; }
.menu ul a {
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(30px, 9vw, 44px);
  line-height: 1.15; text-decoration: none; letter-spacing: -.01em;
}
.menu ul a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.menu-foot { margin-top: auto; font-size: var(--fs-s); color: var(--grey); display: grid; gap: 4px; }
.menu-foot a { color: var(--ink); }

@media (max-width: 860px) {
  .site-header .nav { display: none; }
  .menu-btn { display: inline-block; }
  .logo svg { height: 15px; }
  :root { --head: 64px; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 480px; overflow: hidden; background: var(--wash); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.is-on { opacity: 1; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--fx) var(--fy);
  transform-origin: var(--fx) var(--fy);
  transform: scale(var(--z));
}
@media (max-aspect-ratio: 4/5) {
  .slide img { object-position: var(--mx) var(--my); transform-origin: var(--mx) var(--my); transform: scale(var(--mz)); }
}
.hero::before, .hero::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none;
  transition: opacity .8s ease; opacity: 0;
}
.hero::before { top: 0; height: 150px; background: linear-gradient(rgba(0,0,0,.34), rgba(0,0,0,0)); }
.hero::after { bottom: 0; height: 130px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.30)); }
.hero[data-tone="dark"]::before, .hero[data-tone="dark"]::after { opacity: 1; }
.hero-ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad) 26px; font-size: var(--fs-s); color: var(--ink);
  transition: color .5s ease;
}
.hero[data-tone="dark"] .hero-ui { color: #fff; }
.hero-caption { text-decoration: none; font-weight: 600; }
.hero-caption:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-count {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-variant-numeric: tabular-nums; font-weight: 600;
}

/* ---------- home: below the photograph ----------
   Follows the client's reference page: one large sentence, the current
   exhibition as a photograph beside bold facts, a row of selected works and
   the artist's statement. Headlines here use Archivo at normal width, set
   tight, so they read as a statement rather than as page titles. */
.h-now {
  max-width: var(--maxw); margin: 0 auto; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--head) + clamp(24px, 3.4vw, 52px)) var(--pad) clamp(28px, 3.6vw, 52px);
}
.h-only { max-width: var(--maxw); margin: 0 auto; padding: calc(var(--head) + clamp(48px, 7vw, 110px)) var(--pad) 0; }
.h-tag {
  margin: 0; max-width: 17ch; text-wrap: balance;
  font-family: var(--display); font-weight: 780; font-size: clamp(28px, 4vw, 64px);
  line-height: 1.02; letter-spacing: -.04em;
}
.h-tag:lang(ko) { letter-spacing: -.02em; line-height: 1.2; max-width: 20em; }
.h-tag-ko { margin: 14px 0 0; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: var(--grey); }
.h-now-main {
  flex: 1 1 auto; min-height: 0; margin-top: clamp(20px, 3vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: end;
}
.h-now-main.no-media { grid-template-columns: minmax(0, 1fr); }
.h-now-media { position: relative; display: block; height: 100%; min-height: 260px; }
.h-now-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.chip { display: inline-block; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 700; line-height: 1; padding: .45em .55em .4em; }
.h-now h2 {
  margin: 14px 0 18px; text-wrap: balance;
  font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.6vw, 78px);
  line-height: .9; letter-spacing: -.045em;
}
.h-now h2 a { text-decoration: none; }
.h-now h2 a:hover { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .1em; }
.h-facts { margin: 0; font-size: 16px; line-height: 1.55; }
.h-facts b, .h-facts span { display: block; }
.h-facts b { font-weight: 700; }
.h-more { margin: 22px 0 0; }
.h-more a { font-size: 16px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.h-more a:hover { color: var(--grey); }
@media (max-width: 900px), (max-height: 620px) {
  .h-now { min-height: 0; }
  .h-now-main { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .h-now-media { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
}

.h-sec { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 9vw, 140px) var(--pad) 0; }
.h-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 24px; }
.h-label, .h-link {
  margin: 0; font-size: 12px; font-weight: 800; font-stretch: 110%;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
.h-link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; white-space: nowrap; }
.h-link:hover { color: var(--grey); }

/* selected works: justified rows, every photograph keeps its proportions */
.jg { --row: clamp(150px, 20vw, 300px); --gx: clamp(12px, 1.4vw, 20px); display: flex; flex-wrap: wrap; gap: 36px var(--gx); }
.jg::after { content: ""; flex: 100000 1 0px; margin-left: calc(-1 * var(--gx)); } /* the last row keeps its natural size */
.jg-it {
  --ar: 1; flex: calc(var(--ar) * 100) 1 calc(var(--row) * var(--ar));
  max-width: calc(var(--row) * var(--ar) * 1.7); min-width: 0; display: block; text-decoration: none;
}
.jg-ph { display: block; aspect-ratio: var(--ar); background: var(--wash); overflow: hidden; }
.jg-ph img { width: 100%; height: 100%; object-fit: cover; }
.jg-t, .jg-m { display: block; font-size: 14px; line-height: 1.45; }
.jg-t { margin-top: 12px; font-weight: 700; }
.jg-m { color: var(--grey); }
.jg-it:hover .jg-t { text-decoration: underline; text-underline-offset: 3px; }
/* phones: two even columns of square frames, as on the Collection page */
@media (max-width: 640px) {
  .jg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .jg::after { content: none; }
  .jg-it { max-width: none; }
  .jg-ph { aspect-ratio: 1 / 1; background: var(--paper); }
  .jg-ph img { object-fit: contain; }
}

.h-stmt {
  display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2.5fr); gap: 14px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--rule); padding-top: 18px;
}
.h-stmt-txt { font-size: 15.5px; line-height: 1.75; }
.h-stmt-txt .bilingual { gap: 24px 44px; }
.h-stmt-more { margin: 26px 0 0; }
@media (max-width: 760px) { .h-stmt { grid-template-columns: minmax(0, 1fr); } }
.is-home .site-footer { margin-top: clamp(80px, 10vw, 140px); }

/* ---------- pages ---------- */
.page { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--pad) 120px; }
.page-title {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: var(--fs-xxl); line-height: .98; letter-spacing: -.025em;
  margin: 28px 0 40px; text-wrap: balance;
}
.lead { max-width: 64ch; margin: -14px 0 44px; font-size: 17px; }
.lead p { margin: 0 0 .35em; }
.lead .ko { color: var(--grey); font-size: 16px; }
.muted { color: var(--grey); }
.back {
  display: inline-block; margin: 24px 0 0; font-size: var(--fs-s); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px;
}

/* text-only switches used for filters and sub-pages */
.switch { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0 0 36px; padding: 0; list-style: none; }
.switch button, .switch a {
  background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none;
  font-size: 15px; font-weight: 500; color: var(--grey);
}
.switch button:hover, .switch a:hover { color: var(--ink); }
.switch [aria-current="true"], .switch [aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 currentColor; }

/* ---------- collection: works grouped by collection ---------- */
.col-group + .col-group { margin-top: clamp(72px, 8vw, 120px); }
.col-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0 0 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.col-h h2 {
  margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(22px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -.015em;
}
.col-h h2 a { text-decoration: none; }
.col-h h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }
.col-y, .col-n { font-size: 15px; color: var(--grey); }
.col-n { margin-left: auto; }
.col-desc { margin: -6px 0 40px; font-size: 16px; }
.col-desc .bilingual { max-width: 1040px; }

/* ---------- work grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 28px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 14px; } }
.card { margin: 0; }
.card a { display: block; text-decoration: none; }
.frame { aspect-ratio: 1 / 1; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: contain; }
.card .cap { margin-top: 14px; display: grid; gap: 1px; font-size: 14px; line-height: 1.45; }
.card .t { font-weight: 700; }
.card a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.card .m { color: var(--grey); }
.card .p { font-variant-numeric: tabular-nums; }
.empty { padding: 48px 0; color: var(--grey); }

/* ---------- work detail ---------- */
.work { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: clamp(28px, 5vw, 88px); align-items: start; margin-top: 28px; }
@media (max-width: 860px) { .work { grid-template-columns: 1fr; } }
.work-media .main { position: relative; aspect-ratio: 1 / 1; background: var(--paper); display: grid; place-items: center; }
.work-media .main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumbs button { width: 68px; height: 68px; padding: 0; border: 1px solid var(--rule); background: var(--paper); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.work-info { position: sticky; top: calc(var(--head) + 24px); }
@media (max-width: 860px) { .work-info { position: static; } }
.work-title {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: var(--fs-xl); line-height: 1.04; letter-spacing: -.015em; margin: 0 0 10px; text-wrap: balance;
}
.work-sub { color: var(--grey); margin: 0 0 28px; }
.specs { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px 16px; margin: 0 0 28px; font-size: 14.5px; }
.specs dt { color: var(--grey); }
.specs dd { margin: 0; }
.price { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0 0 18px; }
.price .state { font-size: 14px; font-weight: 600; color: var(--grey); margin-left: 10px; letter-spacing: .02em; }
.price .state.only { margin-left: 0; font-size: 16px; }
.desc p { margin: 0 0 1em; max-width: 62ch; }
.desc .ko { color: #222; }
.notice { font-size: var(--fs-s); color: var(--grey); margin: 16px 0 0; max-width: 52ch; }
.notice p { margin: 0 0 .6em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: .03em;
}
.btn:hover { background: #2a2a2a; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--wash); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- forms (public) ---------- */
.form { display: grid; gap: 16px; max-width: 560px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-size: var(--fs-s); font-weight: 600; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border: 1px solid #b9b9b9; border-radius: 0; background: var(--paper);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.form textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14.5px; padding: 14px 16px; background: var(--wash); }
.form-msg p { margin: 0 0 .5em; }
.form-msg p:last-child { margin: 0; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
.about .switch { flex-direction: column; gap: 10px; position: sticky; top: calc(var(--head) + 24px); }
.about .switch a { font-size: 17px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 8px; }
  .about .switch { flex-direction: row; position: static; gap: 6px 24px; }
}
.about-figure { margin: 0 0 40px; max-width: 520px; }
.about-figure figcaption { font-size: var(--fs-s); color: var(--grey); margin-top: 10px; }
.bilingual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.bilingual.single { grid-template-columns: minmax(0, 1fr); }
.bilingual > div { max-width: 62ch; }
.bilingual p { margin: 0 0 1.1em; }
.bilingual.stack { grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (max-width: 1000px) { .bilingual { grid-template-columns: 1fr; } }
.section-title { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 26px; letter-spacing: -.01em; margin: 0 0 28px; }

.cv { display: grid; gap: 44px; max-width: 920px; }
.cv h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.cv ul { list-style: none; margin: 0; padding: 0; }
.cv li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.cv li:last-child { border-bottom: 1px solid var(--rule); }
.cv .y { font-variant-numeric: tabular-nums; color: var(--grey); }

/* ---------- exhibitions ---------- */
.ex-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.ex-list li { border-top: 1px solid var(--rule); }
.ex-row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 132px; gap: 20px; align-items: start;
  padding: 20px 0; text-decoration: none; min-height: 92px;
}
.ex-row:hover .ex-t { text-decoration: underline; text-underline-offset: 4px; }
.ex-y { font-variant-numeric: tabular-nums; color: var(--grey); padding-top: 1px; }
.ex-t { display: block; font-size: 19px; font-weight: 500; line-height: 1.3; }
.ex-t.solo { font-weight: 800; }
.ex-v { display: block; color: var(--grey); font-size: 14.5px; margin-top: 4px; }
.ex-thumb { width: 132px; height: 88px; background: var(--paper); }
.ex-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .ex-row { grid-template-columns: 52px minmax(0, 1fr); }
  .ex-thumb { display: none; }
}
.ex-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 48px; margin: 28px 0 56px; align-items: start; }
@media (max-width: 900px) { .ex-head { grid-template-columns: 1fr; gap: 24px; } }
.ex-head .page-title { margin: 0 0 20px; }
.gallery { columns: 3 280px; column-gap: 24px; }
.gallery button { display: block; width: 100%; margin: 0 0 24px; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; break-inside: avoid; }
.gallery img { width: 100%; height: auto; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 560px); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-big { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; text-decoration: none; word-break: break-all; }
.contact-big:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact-list { display: grid; gap: 22px; margin: 36px 0 0; }
.contact-list dt { font-size: var(--fs-s); color: var(--grey); margin-bottom: 2px; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 28px var(--pad) 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  font-size: var(--fs-s); color: var(--grey); border-top: 1px solid var(--rule);
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .links { display: flex; gap: 24px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(255,255,255,.985); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--pad); font-size: var(--fs-s); }
.lb-stage { display: grid; place-items: center; padding: 0 var(--pad); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn { background: none; border: 0; cursor: pointer; font-weight: 700; font-size: 14px; padding: 10px 0; }
.lb-count { font-variant-numeric: tabular-nums; color: var(--grey); }

/* ---------- editor shortcut + preview banner ---------- */
.edit-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-size: 13px; font-weight: 700; padding: 11px 16px; letter-spacing: .02em;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
}
.preview-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 12px var(--pad); background: var(--ink); color: var(--paper); font-size: 14px;
}
.preview-bar .btn { min-height: 38px; padding: 0 16px; background: var(--paper); color: var(--ink); }
.preview-bar .btn-line { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }

@media (prefers-reduced-motion: reduce) {
  .slide, .hero::before, .hero::after, .site-header, .hero-ui { transition: none; }
}

/* =====================================================================
   ADMIN
   ===================================================================== */
.admin { min-height: 100svh; background: #fafafa; font-size: 14px; line-height: 1.5; }
.admin input, .admin select, .admin textarea { font: inherit; color: var(--ink); }
.ad-top {
  position: sticky; top: 0; z-index: 50; height: 60px; background: var(--paper); border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px;
}
.ad-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.ad-brand svg { height: 13px; width: auto; }
.ad-brand span { color: var(--grey); font-weight: 600; }
.ad-actions { display: flex; align-items: center; gap: 10px; }
.ad-status { font-size: 13px; color: var(--grey); margin-right: 6px; }
.ad-status.dirty { color: var(--ink); font-weight: 700; }
.admin .btn { min-height: 38px; padding: 0 16px; font-size: 13px; letter-spacing: .01em; }
.ad-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: calc(100svh - 60px); }
.ad-nav { border-right: 1px solid var(--rule); background: var(--paper); padding: 16px 10px; position: sticky; top: 60px; height: calc(100svh - 60px); overflow: auto; }
.ad-nav button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; text-align: left;
  background: none; border: 0; padding: 10px 12px; cursor: pointer; font-size: 14px; font-weight: 500;
}
.ad-nav button:hover { background: var(--wash); }
.ad-nav button[aria-current="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.ad-nav .count { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.ad-main { padding: 28px clamp(16px, 3vw, 40px) 120px; min-width: 0; }
.ad-main h2 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 26px; margin: 0 0 6px; letter-spacing: -.01em; }
.ad-main h3 { font-size: 15px; margin: 0 0 12px; }
.ad-help { color: var(--grey); margin: 0 0 22px; max-width: 70ch; }
.ad-card { background: var(--paper); border: 1px solid var(--rule); padding: 20px; margin: 0 0 18px; }
.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.ad-grid .full { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .ad-body { grid-template-columns: 1fr; }
  .ad-nav { position: static; height: auto; display: flex; overflow-x: auto; gap: 4px; padding: 8px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .ad-nav button { width: auto; white-space: nowrap; }
  .ad-nav .count { display: none; }
  .ad-grid { grid-template-columns: 1fr; }
  .ad-status { display: none; }
}
.fld { display: grid; gap: 6px; min-width: 0; align-content: start; }
.fld > span { font-size: 12.5px; font-weight: 700; }
.fld > small { color: var(--grey); font-size: 12px; }
.fld input[type="text"], .fld input[type="number"], .fld input[type="url"], .fld input[type="email"], .fld input[type="password"], .fld input[type="date"], .fld select, .fld textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #c9c9c9; background: var(--paper); border-radius: 0;
}
.fld input[type="text"], .fld input[type="number"], .fld input[type="url"], .fld input[type="email"], .fld input[type="password"], .fld input[type="date"], .fld select { height: 40px; }
.fld .seg { justify-self: start; }
.fld textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.fld textarea.tall { min-height: 220px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: #000; }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { background: var(--paper); border: 0; padding: 8px 14px; cursor: pointer; font-size: 13px; font-weight: 600; }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.ad-list { display: grid; gap: 0; background: var(--paper); border: 1px solid var(--rule); }
.ad-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--rule); }
.ad-row:first-child { border-top: 0; }
.ad-row .th { width: 56px; height: 56px; background: var(--wash); display: grid; place-items: center; overflow: hidden; }
.ad-row .th img { width: 100%; height: 100%; object-fit: contain; }
.ad-row .tt { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-row .mm { color: var(--grey); font-size: 12.5px; }
.ad-row .acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ib {
  background: var(--paper); border: 1px solid #c9c9c9; min-width: 34px; height: 34px; padding: 0 10px;
  cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.ib:hover { border-color: var(--ink); }
.ib[disabled] { opacity: .35; cursor: default; }
.ib.danger { color: var(--danger); }
.ib.danger:hover { border-color: var(--danger); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border: 1px solid currentColor; margin-left: 6px; vertical-align: 1px; }
.pill.sold { color: var(--grey); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.toolbar input[type="search"] { padding: 9px 11px; border: 1px solid #c9c9c9; min-width: 220px; border-radius: 0; }

.imgs { display: flex; flex-wrap: wrap; gap: 12px; }
.imgs .it { width: 138px; }
.imgs .it .th { width: 138px; height: 138px; background: var(--wash); border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; }
.imgs .it img { width: 100%; height: 100%; object-fit: contain; }
.imgs .it .acts { display: flex; gap: 4px; margin-top: 6px; }
.imgs .it .acts .ib { min-width: 0; height: 28px; padding: 0 4px; font-size: 12px; flex: 1; white-space: nowrap; }
.imgs .add { width: 138px; height: 138px; border: 1.5px dashed #9a9a9a; background: var(--paper); cursor: pointer; font-weight: 700; font-size: 13px; }
.imgs .add:hover { border-color: var(--ink); }
.badge-cover { font-size: 11px; font-weight: 700; margin-top: 4px; }

/* hero focal editor */
.focal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .focal { grid-template-columns: 1fr; } }
.focal-pick { position: relative; background: var(--wash); cursor: crosshair; user-select: none; touch-action: none; }
.focal-pick img { width: 100%; height: auto; pointer-events: none; }
.focal-dot {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #000; pointer-events: none;
}
.previews { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.pv { display: grid; gap: 6px; font-size: 12px; color: var(--grey); }
.pv-frame { position: relative; overflow: hidden; background: var(--wash); border: 1px solid #000; }
.pv-frame.desk { width: 340px; aspect-ratio: 16 / 10; }
.pv-frame.mob { width: 128px; aspect-ratio: 9 / 19; }
.pv-frame img { width: 100%; height: 100%; object-fit: cover; }
.pv-frame .pv-logo { position: absolute; left: 7%; top: 7%; width: 34%; color: #000; }
.pv-frame.mob .pv-logo { width: 52%; }
.pv-frame .pv-logo svg { width: 100%; height: auto; display: block; }
.pv-frame.dark .pv-logo { color: #fff; }
.range { display: flex; align-items: center; gap: 10px; }
.range input { flex: 1; accent-color: #000; }
.range output { font-variant-numeric: tabular-nums; width: 46px; text-align: right; }

/* featured works picker */
.pickw { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pickw button { position: relative; display: block; padding: 0; border: 1px solid var(--rule); background: var(--paper); cursor: pointer; text-align: left; min-width: 0; }
.pickw button:hover { border-color: var(--ink); }
.pickw button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pickw .ph { display: block; aspect-ratio: 1; background: var(--wash); }
.pickw img { width: 100%; height: 100%; object-fit: contain; }
.pickw .nm { display: block; padding: 6px 8px 7px; font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickw .in { display: block; padding: 0 8px 7px; margin-top: -4px; font-size: 11px; line-height: 1.3; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickw .no { position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; }

/* modal + toast */
.modal-back { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.42); display: grid; place-items: center; padding: 20px; }
.modal { background: var(--paper); width: min(920px, 100%); max-height: calc(100svh - 40px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.modal.small { width: min(460px, 100%); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--rule); font-weight: 700; }
.modal-b { padding: 20px; overflow: auto; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--rule); display: flex; justify-content: flex-end; gap: 8px; }
.drop {
  border: 1.5px dashed #9a9a9a; padding: 28px; text-align: center; background: #fcfcfc; cursor: pointer;
  display: grid; gap: 6px; place-items: center; margin-bottom: 18px;
}
.drop.over { border-color: var(--ink); background: var(--wash); }
.drop strong { font-size: 15px; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.lib button { aspect-ratio: 1; padding: 0; border: 1px solid var(--rule); background: var(--wash); cursor: pointer; }
.lib button:hover { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lib img { width: 100%; height: 100%; object-fit: contain; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: 14px; font-weight: 600; max-width: calc(100% - 32px);
}
.toast.err { background: var(--danger); }
.notice-box { border: 1px solid var(--ink); background: var(--paper); padding: 14px 16px; margin: 0 0 18px; }
.notice-box p { margin: 0 0 .4em; }
.notice-box p:last-child { margin: 0; }
.login { min-height: 100svh; display: grid; place-items: center; padding: 24px; background: #fafafa; }
.login form { width: min(380px, 100%); background: var(--paper); border: 1px solid var(--rule); padding: 28px; display: grid; gap: 14px; }
.login svg { height: 15px; width: auto; margin-bottom: 8px; }
.cv-ed .grp { border: 1px solid var(--rule); padding: 14px; margin-bottom: 14px; background: #fcfcfc; }
.cv-ed .rowi { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 8px; margin-bottom: 6px; }
.cv-ed .rowi input { padding: 7px 9px; border: 1px solid #c9c9c9; width: 100%; border-radius: 0; }
.inq { display: grid; gap: 4px; }
.inq .msg { white-space: pre-wrap; background: #fcfcfc; border: 1px solid var(--rule); padding: 10px 12px; margin-top: 6px; }

/* ---------- draft preview bar (preview link only: html.is-draft) ---------- */
.draft-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 28px;
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px;
  background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; overflow: hidden;
}
.draft-bar .long { font-weight: 400; opacity: .8; }
@media (max-width: 640px) { .draft-bar .long { display: none; } }
html.is-draft body { padding-top: 28px; }
html.is-draft .site-header { top: 28px; }
html.is-draft .hero { height: calc(100svh - 28px); }
html.is-draft .work-info, html.is-draft .about .switch { top: calc(var(--head) + 52px); }
html.is-draft .ad-top { top: 28px; }
html.is-draft .ad-nav { top: 88px; height: calc(100svh - 88px); }
html.is-draft .menu { top: 28px; }
.is-home .edit-fab { bottom: 64px; }
