/* ────────────────────────────────────────────────
   Luna Cheong 張儀君 — Personal Artist Website
   Quiet editorial · Japanese minimalism · Gallery
   ──────────────────────────────────────────────── */

:root {
  --bg:        #faf9f7;
  --surface:   #ffffff;
  --fg:        #1a1816;
  --muted:     #888888;
  --border:    #e8e4df;
  --accent:    #b5967a;

  --font:      "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", monospace;

  --nav-h:     56px;
  --ease:      cubic-bezier(0.25, 0, 0.1, 1);
  --ease-out:  cubic-bezier(0.0, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Base ──────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  cursor: auto;
  animation: page-in 380ms var(--ease-out);
}

@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Cursor (hidden — using browser default) ────── */
#cursor-dot, #cursor-ring { display: none; }

/* ── Navigation ────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  z-index: 500;
}

body.page-home nav {
  background: transparent;
}

body.page-inner nav {
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.85;
  transition: opacity 180ms;
  white-space: nowrap;
}

.nav-brand:hover { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--fg);
  opacity: 0.5;
  transition: opacity 180ms;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* ── Lightbox ──────────────────────────────────── */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250, 249, 247, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

#lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 90vw;
  max-height: 90vh;
}

#lightbox-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 200ms;
}

#lightbox-ph.ph-warm    { background: #e0dbd5; }
#lightbox-ph.ph-cool    { background: #d8dde2; }
#lightbox-ph.ph-neutral { background: #e4e0dc; }
#lightbox-ph.ph-pale    { background: #e8e6e1; }

#lightbox-ph span {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

#lightbox-caption {
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--muted);
}

#lightbox-close {
  position: absolute;
  top: 28px;
  right: 40px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px;
  transition: color 160ms;
}

#lightbox-close:hover { color: var(--fg); }

#lightbox-prev, #lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 22px;
  color: var(--muted);
  padding: 20px 20px;
  transition: color 160ms;
  line-height: 1;
  z-index: 10;
  user-select: none;
}
#lightbox-prev { left: 8px; }
#lightbox-next { right: 8px; }
#lightbox-prev:hover, #lightbox-next:hover { color: var(--fg); }

body.page-home #lightbox-prev,
body.page-home #lightbox-next { color: rgba(255,255,255,0.35); }
body.page-home #lightbox-prev:hover,
body.page-home #lightbox-next:hover { color: #fff; }

/* ── Placeholder images ─────────────────────────── */
.ph-img {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: opacity 220ms;
}

.ph-img:hover { opacity: 0.85; }

.ph-warm    { background: #e0dbd5; }
.ph-cool    { background: #d8dde2; }
.ph-neutral { background: #e4e0dc; }
.ph-pale    { background: #e8e6e1; }

.ph-img::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 7px 9px;
  font-size: 9px;
  letter-spacing: 0.07em;
  color: rgba(26, 24, 22, 0.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Homepage collage ───────────────────────────── */
body.page-home {
  overflow: hidden;
  background: #c5c4c1;
  color: var(--fg);
}

body.page-home .nav-brand,
body.page-home .nav-links a {
  color: var(--fg);
}

body.page-home #lightbox {
  background: rgba(0, 0, 0, 0.92);
}

body.page-home #lightbox-ph span,
body.page-home #lightbox-caption,
body.page-home #lightbox-close {
  color: rgba(255, 255, 255, 0.5);
}

body.page-home #lightbox-close:hover { color: #ffffff; }

/* ── Lightbox page navigation button ───────────── */
.lb-page-btn {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 22px;
  margin-top: 8px;
  transition: letter-spacing 320ms cubic-bezier(0.2, 0, 0, 1),
              filter 320ms ease,
              opacity 320ms ease;
}
.lb-page-btn:hover {
  letter-spacing: 0.42em;
  filter: url(#speed-blur);
  opacity: 0.35;
}

#collage {
  position: fixed;
  inset: 0;
}

.collage-item {
  position: absolute;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 220ms, filter 500ms ease, opacity 300ms ease;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.18);
  top: -9999px;
  left: -9999px;
  opacity: 0;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.collage-item:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.26);
  z-index: 50 !important;
  transform: rotate(var(--rot, 0deg)) scale(1.03) !important;
  filter: blur(0px) saturate(1) !important;
  animation-play-state: paused !important;
}

@keyframes collage-drift {
  0%   { transform: rotate(var(--rot, 0deg)) translateY(0px); }
  100% { transform: rotate(var(--rot, 0deg)) translateY(-8px); }
}

@media (hover: hover) {
  .collage-item {
    filter: blur(5px) saturate(0.75);
    animation: collage-drift 4s ease-in-out infinite alternate;
    animation-delay: var(--drift-delay, 0s);
  }
}

/* Mobile: keep the scattered collage (smaller pieces) with the dreamy blur + gentle drift */
@media (max-width: 599px) {
  .collage-item {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
    filter: blur(4px) saturate(0.78);
    animation: collage-drift 4.5s ease-in-out infinite alternate;
    animation-delay: var(--drift-delay, 0s);
  }
}

/* ── Inner page base ─────────────────────────────── */
.inner-page {
  max-width: 1020px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 72px) 44px 120px;
}

.section-label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 64px;
}

/* ── Exhibitions ─────────────────────────────────── */
.exhibition {
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}

.exhibition:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.exhibition__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 10px;
}

.exhibition__year {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.exhibition__title {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.exhibition__gallery {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 28px;
}

.exhibition__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.exhibition__images .ph-img {
  aspect-ratio: 4/3;
  width: 100%;
}

/* ── Works ───────────────────────────────────────── */
.works-year {
  margin-bottom: 104px;   /* 高雅感:系列之間多留白(2026-06-13 Luna) */
}

.works-year__heading {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.works-year__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);   /* 桌機圖太大 → 5 欄縮小 */
  gap: 26px 20px;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.work-item .ph-img,
.work-item img {
  aspect-ratio: 3/4;
  width: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.work-item__title {
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--fg);
  opacity: 0.65;
}

/* ── Photography ─────────────────────────────────── */
.photo-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 60px;
}

.photo-label-jp {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.photo-label-en {
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
}

.photo-grid {
  columns: 3;
  column-gap: 9px;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 9px;
  display: block;
}

.photo-item .ph-img {
  width: 100%;
  display: block;
}

/* ── CV ──────────────────────────────────────────── */
.cv-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
}

.cv-identity {
  grid-column: 1 / -1;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.cv-identity h1 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.cv-identity p {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.cv-col-label {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}

.cv-col-body {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}

.cv-entry {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 14px;
  margin-bottom: 18px;
  align-items: start;
}

.cv-entry:last-child { margin-bottom: 0; }

.cv-entry-year {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.cv-entry-text {
  font-size: 12.5px;
  line-height: 1.6;
}

.cv-entry-text em {
  font-style: italic;
}

.cv-entry-text .cv-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Essays ──────────────────────────────────────── */
.essays-list {
  display: flex;
  flex-direction: column;
}

.essay-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 200ms;
}

.essay-item:first-child { border-top: 1px solid var(--border); }

.essay-num {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}

.essay-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.4;
  margin-bottom: 7px;
  cursor: none;
  transition: opacity 180ms;
}

.essay-item:hover .essay-title { opacity: 0.65; }

.essay-year {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.essay-excerpt {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 520px;
}

/* ── Exhibition subtitle ─────────────────────────── */
.exhibition__subtitle {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Work bilingual labels ───────────────────────── */
.work-item__en {
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.8;
  margin-top: 1px;
}

.work-item__desc {
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--muted);
  opacity: 0.55;
  margin-top: 2px;
}

/* ── Essay bilingual excerpt ─────────────────────── */
.essay-excerpt-en {
  font-style: italic;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ── CV bilingual section label ──────────────────── */
.cv-col-label-en {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 3px;
}

/* ── Exhibition card link affordance ────────────── */
.exhibition__title a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  transition: letter-spacing 320ms cubic-bezier(0.2,0,0,1), filter 320ms ease, opacity 320ms ease;
}

.exhibition__title a:hover {
  letter-spacing: 0.32em;
  filter: url(#speed-blur-lg);
  opacity: 0.45;
}

.exhibition__view-link {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 28px;
  transition: opacity 180ms;
}

.exhibition__view-link:hover { opacity: 0.65; }

/* ── Exhibition detail page ──────────────────────── */
.ex-back-link {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.10em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 56px;
  transition: color 180ms;
}

.ex-back-link:hover { color: var(--fg); }

.ex-press-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.6;
  margin-top: 16px;
  margin-bottom: 8px;
  transition: opacity 180ms, color 180ms;
}
.ex-press-link::before { content: '↗'; font-size: 10px; }
.ex-press-link:hover { opacity: 1; color: var(--accent); }

.ex-detail-header {
  margin-bottom: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.ex-detail-meta {
  display: flex;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 20px;
}

.ex-detail-location {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ex-detail-title {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.ex-detail-subtitle {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.10em;
  color: var(--muted);
}

.ex-detail-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 80px;
}

.ex-detail-intro__zh {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: #f5ede5;
  border-radius: 0 4px 4px 0;
}

.ex-detail-intro__zh p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--fg);
}

.ex-detail-intro__zh p + p { margin-top: 10px; }

.ex-detail-intro__en {
  background: #f5f5f3;
  padding: 16px 20px;
  border-radius: 4px;
}

.ex-detail-intro__en p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  font-style: italic;
}

.ex-detail-intro__en p + p { margin-top: 10px; }

.ex-detail-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 80px;
}

/* ── Exhibition poster ──────────────────────────── */
.ex-poster {
  display: block;
  max-width: 360px;
  width: 100%;
  margin: 0 auto 40px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 200ms;
}
.ex-poster:hover { opacity: 0.88; }
a.ex-poster-link {
  display: block;
  max-width: 360px;
  margin: 0 auto 40px;
}
a.ex-poster-link img {
  width: 100%;
  border-radius: 4px;
  display: block;
  transition: opacity 200ms;
}
a.ex-poster-link:hover img { opacity: 0.88; }

/* ── Ex banner (full-width top image) ──────────── */
.ex-banner {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 40px;
  display: block;
}

/* ── Artist quote block ─────────────────────────── */
.ex-quote {
  background: #f5f5f3;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  font-style: italic;
}
.ex-quote p + p { margin-top: 10px; }

/* ── Artwork block (per-artwork section) ─────────── */
.artwork-block {
  margin-bottom: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.artwork-block__label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.artwork-block__title {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  line-height: 1.4;
}
.artwork-block__zh {
  font-size: 13px;
  line-height: 1.9;
  color: var(--fg);
  margin-bottom: 16px;
  white-space: pre-line;
}
.artwork-block__en {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 20px;
  white-space: pre-line;
}
.artwork-block__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.artwork-block__tag {
  font-size: 9.5px;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: var(--border);
  padding: 3px 10px;
  border-radius: 2px;
}
.artwork-block__images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.artwork-block__images img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
/* artwork images with caption (映日常霧視) */
.artwork-block__fig { }
.artwork-block__figcap {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}
/* video embed */
.artwork-block__video {
  margin-top: 16px;
}
.artwork-block__video video {
  width: 100%;
  border-radius: 4px;
  display: block;
}
.artwork-block__video-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
}
/* 展覽現場 3-col grid */
.ex-venue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 48px;
}
.ex-venue-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
/* artworks figure grid with captions */
.artworks-fig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}
.artworks-fig-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.artworks-fig-grid figcaption {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--fg);
  margin-top: 6px;
}
.artworks-fig-grid figcaption span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .artwork-block__images { grid-template-columns: repeat(2, 1fr); }
  .artworks-fig-grid { grid-template-columns: repeat(2, 1fr); }
  .ex-venue-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .artwork-block__images { grid-template-columns: repeat(2, 1fr); }
  .artworks-fig-grid { grid-template-columns: repeat(2, 1fr); }
  .ex-venue-grid { grid-template-columns: 1fr; }
}

.ex-detail-images .ph-img {
  aspect-ratio: 4/3;
  width: 100%;
}

.artwork-list-label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.artwork-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.artwork-item__name {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.artwork-item__name em {
  display: block;
  font-style: italic;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 5px;
}

.artwork-item__medium {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 3px;
}

.artwork-item__dim {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.artwork-item__desc {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .inner-page { padding-left: 24px; padding-right: 24px; }
  .exhibition__images { grid-template-columns: repeat(2, 1fr); }
  .works-year__grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { columns: 2; }
  .cv-grid { grid-template-columns: 140px 1fr; }
  .artwork-item { grid-template-columns: 1fr; gap: 16px; }
  .ex-detail-images { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
  :root { --nav-h: 52px; }
  nav { padding: 0 16px; }
  .nav-brand { display: none; }
  nav { justify-content: center; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 9px; letter-spacing: 0.05em; }

  .inner-page {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: calc(var(--nav-h) + 44px);
    padding-bottom: 80px;
  }

  .section-label { margin-bottom: 40px; }

  .exhibition__images { grid-template-columns: 1fr; }
  .exhibition { padding-bottom: 52px; margin-bottom: 52px; }

  .works-year__grid { grid-template-columns: repeat(2, 1fr); }

  .photo-grid { columns: 1; }

  .cv-grid { grid-template-columns: 1fr; }
  .cv-col-label { display: none; }
  .cv-identity { margin-bottom: 44px; }

  .essay-item { grid-template-columns: 28px 1fr; gap: 0 16px; padding: 28px 0; }
  .essay-title { font-size: 14px; }
  .ex-detail-title { font-size: 26px; }
  .ex-detail-intro { gap: 24px; }
  .ex-detail-images { grid-template-columns: 1fr; }
  .artwork-item { padding: 32px 0; }
}

/* ── 雞皮疙瘩 Goosebump tremor(首頁 collage,游標靠近時)── */
.collage-item { position: absolute; }
.collage-item img { will-change: transform; }
.collage-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: var(--gb, 0);
  transition: opacity 0.18s linear;
  mix-blend-mode: overlay;
}
