/* ============================================================
   บ้านพิมพ์ศิลป์ — Gallery Website
   Theme: Dark Loft · Single Spotlight · Mysterious Contemporary
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ===== TOKENS ===== */
:root {
  /* Dark palette */
  --black:        #080808;
  --deep:         #0F0F0F;
  --surface:      #141414;
  --surface-2:    #1A1A1A;
  --concrete:     #2A2A28;

  /* Text */
  --warm-white:   #F0EDE6;
  --text-60:      rgba(240,237,230,0.60);
  --text-35:      rgba(240,237,230,0.35);
  --text-15:      rgba(240,237,230,0.15);

  /* Accent — warm tungsten */
  --gold:         #C8A96E;
  --gold-50:      rgba(200,169,110,0.50);
  --gold-glow:    rgba(200,169,110,0.10);
  --gold-border:  rgba(200,169,110,0.25);

  /* Border */
  --border:       rgba(240,237,230,0.06);
  --border-hover: rgba(240,237,230,0.12);

  /* Fonts — Anuphan (Thai + Latin, clean modern) */
  --serif:  'Anuphan', system-ui, sans-serif;
  --sans:   'Anuphan', system-ui, sans-serif;

  /* Motion */
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --slow:   0.6s;
  --mid:    0.35s;
}

/* ===== BASE ===== */
body {
  background: var(--black);
  color: var(--warm-white);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== CONTAINERS ===== */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.container--narrow{ max-width: 680px;  margin: 0 auto; padding: 0 48px; }

/* ===== SHARED LABELS / TITLES ===== */
.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--warm-white);
  line-height: 1.08;
}

.section-header { margin-bottom: 60px; }

/* ===== SCROLL FADE ===== */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.fade-in.visible             { opacity: 1; transform: translateY(0); }
.fade-in--d1 { transition-delay: 0.10s; }
.fade-in--d2 { transition-delay: 0.20s; }
.fade-in--d3 { transition-delay: 0.30s; }

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  transition: background var(--mid) var(--ease), border-color var(--mid);
  border-bottom: 1px solid transparent;
}

#nav.is-scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--warm-white);
  letter-spacing: 0.02em;
}

.nav__logo span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold-50);
  font-family: var(--sans);
  font-weight: 400;
  margin-left: 8px;
  vertical-align: middle;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-60);
  transition: color var(--mid);
}

.nav__links a:hover { color: var(--warm-white); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--warm-white);
  transition: transform var(--mid), opacity var(--mid);
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 96px;
  overflow: hidden;
  background: var(--black);
}

/* Single warm spotlight — the ONLY light source */
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 28% 60%,
      rgba(200,169,110,0.11) 0%,
      rgba(200,169,110,0.04) 40%,
      transparent 70%);
  animation: spotBreathe 7s ease-in-out infinite;
}

@keyframes spotBreathe {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 1.15; }
}

/* Vignette — edges stay dark */
.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 90% at 50% 50%,
    transparent 40%, rgba(8,8,8,0.6) 100%);
}

/* Hero background — koi-005 pyrography, emerges from right into dark
   mask: black/transparent = ซ่อน, white = แสดง                     */
.hero__bg-img {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('../images/traces-of-growth.jpg');
  background-size: cover;
  background-position: right center;
  opacity: 0.32;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 20%,
    rgba(255,255,255,0.30) 45%,
    rgba(255,255,255,0.85) 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 20%,
    rgba(255,255,255,0.30) 45%,
    rgba(255,255,255,0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 64px;
}

.hero__eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-50);
  margin-bottom: 24px;
}

.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7.5vw, 6rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--warm-white);
  letter-spacing: -0.01em;
  max-width: 700px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 48px;
  right: 64px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll-text {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-35);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 52px;
  background: var(--border);
  overflow: hidden;
  position: relative;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollDrop 2.4s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { top: -100%; }
  100% { top:  100%; }
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  padding: 130px 0;
  background: var(--deep);
  border-top: 1px solid var(--border);
}

.about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}

/* Portrait */
.about__portrait-wrap { position: relative; }

.about__portrait {
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

/* Real portrait image */
.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about__portrait-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 40% 30%,
    rgba(200,169,110,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.about__caption {
  font-size: 0.68rem;
  color: var(--text-35);
  letter-spacing: 0.04em;
  margin-top: 14px;
}

/* Text side */
.about__name {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.04;
  color: var(--warm-white);
  margin-bottom: 10px;
}

.about__subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-35);
  margin-bottom: 14px;
}

.about__location {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold-50);
  margin-bottom: 36px;
}

.about__rule {
  width: 44px;
  height: 1px;
  background: var(--gold-border);
  margin-bottom: 36px;
}

.about__bio {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-60);
}

.about__bio + .about__bio { margin-top: 1.4em; }

.about__cta {
  display: inline-block;
  margin-top: 44px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-white);
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 5px;
  transition: border-color var(--mid), color var(--mid);
}

.about__cta:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
#philosophy {
  padding: 110px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.philosophy__quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--warm-white);
  text-align: center;
  margin-bottom: 56px;
}

.philosophy__rule {
  width: 1px;
  height: 56px;
  background: var(--gold-border);
  margin: 0 auto 56px;
}

.philosophy__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.philosophy__body p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-60);
  text-align: center;
}

/* ============================================================
   GALLERY (FEATURED + KOI + EXPRESSIONISM)
   ============================================================ */
#gallery {
  padding: 130px 0;
  background: var(--black);
  border-top: 1px solid var(--border);
  transition: background 0.7s var(--ease);
}

/* Mood — subtle background shift per filter
   ขาวอุ่นขึ้น / เทากลาง / ดำลึกสุด */
#gallery.mood-white { background: #14110d; }  /* warm-tinted near-black */
#gallery.mood-gray  { background: #0c0c0d; }  /* neutral mid dark */
#gallery.mood-black { background: #020202; }  /* deepest black */

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 2px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 20px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-35);
  transition: all var(--mid);
}

.filter-btn:hover { color: var(--warm-white); border-color: var(--border-hover); }
.filter-btn.is-active { color: var(--gold); border-color: var(--gold-border); }

/* Gallery section block */
.gallery-section { display: block; }
.gallery-section.is-hidden { display: none; }

/* Mood note — บรรยายอารมณ์ของแต่ละหมวด */
.gallery__mood-note {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-50, rgba(255,255,255,0.5));
  letter-spacing: 0.02em;
  margin: -56px 0 48px;
}

/* Section divider between Koi and Expressionism */
.gallery__divider {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 88px 0;
}

.gallery__divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border), transparent);
}

.gallery__divider-label {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.gallery-grid--featured {
  margin-bottom: 0;
}

/* ============================================================
   ARTWORK CARD
   ============================================================ */
.artwork-card {
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    border-color var(--mid) var(--ease),
    box-shadow   0.5s   var(--ease);
}

.artwork-card:hover {
  border-color: var(--gold-border);
  box-shadow:
    0 0 50px var(--gold-glow),
    0 0 1px  rgba(200,169,110,0.2);
}

.artwork-card:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

/* Image area */
.artwork-card__image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--deep);
}

.artwork-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.artwork-card__placeholder {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

/* Simulated spotlight on placeholder */
.artwork-card__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 45% 35%,
    rgba(200,169,110,0.10) 0%, transparent 65%);
}

/* Hover scale */
.artwork-card:hover .artwork-card__image img,
.artwork-card:hover .artwork-card__placeholder {
  transform: scale(1.04);
}

/* Hover overlay "View" */
.artwork-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,8,8,0);
  transition: background 0.4s var(--ease);
}

.artwork-card__view {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-white);
  border: 1px solid rgba(240,237,230,0.4);
  padding: 9px 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.artwork-card:hover .artwork-card__overlay { background: rgba(8,8,8,0.25); }
.artwork-card:hover .artwork-card__view    { opacity: 1; transform: translateY(0); }

/* Card info */
.artwork-card__info {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--border);
}

.artwork-card__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--warm-white);
  margin-bottom: 5px;
  line-height: 1.3;
}

.artwork-card__meta {
  font-size: 0.68rem;
  color: var(--text-35);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.artwork-card__status {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status--available     { color: var(--gold); }
.status--in_collection { color: var(--text-35); }

.artwork-card--hidden { display: none; }

/* ============================================================
   PROCESS
   ============================================================ */
#process {
  padding: 130px 0;
  background: var(--deep);
  border-top: 1px solid var(--border);
}

.process__steps {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.process__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.process__step--rev { direction: rtl; }
.process__step--rev > * { direction: ltr; }

.process__img-wrap { position: relative; }

.process__img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.process__img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.process__placeholder {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Spotlight on process placeholder */
.process__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 40% 30%,
    rgba(200,169,110,0.08) 0%, transparent 65%);
}

.process__img-note {
  font-size: 0.64rem;
  color: var(--text-15);
  letter-spacing: 0.05em;
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

.process__num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 18px;
}

.process__title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--warm-white);
  margin-bottom: 20px;
}

.process__text {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-60);
}

/* ============================================================
   EXHIBITION / STORY
   ============================================================ */
#exhibition {
  padding: 110px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

#exhibition .section-header { text-align: center; }

.exhibition__story {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 2;
  color: var(--text-60);
  text-align: center;
  margin-bottom: 72px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.exhibition__list {
  border-top: 1px solid var(--border);
}

.exhibition__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.exhibition__badge {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid;
  text-align: center;
  margin-top: 3px;
}

.exhibition__badge--upcoming { border-color: var(--gold-border); color: var(--gold); }
.exhibition__badge--past     { border-color: var(--border);      color: var(--text-35); }

.exhibition__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--warm-white);
  margin-bottom: 6px;
}

.exhibition__meta {
  font-size: 0.72rem;
  color: var(--text-35);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.exhibition__desc {
  font-size: 0.85rem;
  color: var(--text-60);
  line-height: 1.7;
  font-style: italic;
}

.exhibition__todo-note {
  font-size: 0.65rem;
  color: var(--gold-50);
  letter-spacing: 0.06em;
  text-align: center;
  margin-top: 20px;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding: 130px 0;
  background: var(--black);
  text-align: center;
  border-top: 1px solid var(--border);
}

.contact__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 300;
  line-height: 1.06;
  color: var(--warm-white);
  margin-bottom: 28px;
  margin-top: 12px;
}

.contact__text {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text-60);
  max-width: 480px;
  margin: 0 auto 52px;
}

.contact__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 34px;
  border: 1px solid var(--gold-border);
  color: var(--warm-white);
  background: transparent;
  transition: background var(--mid), border-color var(--mid), color var(--mid);
}

.btn-inquiry:hover {
  background: rgba(200,169,110,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-inquiry .btn-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.contact__note {
  font-size: 0.7rem;
  color: var(--text-35);
  letter-spacing: 0.06em;
}

/* ============================================================
   INSTAGRAM
   ============================================================ */
#instagram {
  padding: 90px 0;
  background: var(--deep);
  border-top: 1px solid var(--border);
  text-align: center;
}

.instagram__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.instagram__handle {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--warm-white);
  letter-spacing: 0.04em;
}

.instagram__desc {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-60);
  max-width: 360px;
}

.instagram__btn {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-white);
  border: 1px solid var(--gold-border);
  padding: 13px 34px;
  background: transparent;
  transition: background var(--mid), border-color var(--mid), color var(--mid);
}

.instagram__btn:hover {
  background: rgba(200,169,110,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  padding: 72px 0 56px;
  background: #050505;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer__brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--warm-white);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.footer__sub {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-35);
  margin-bottom: 6px;
}

.footer__location {
  font-size: 0.68rem;
  color: var(--gold-50);
  letter-spacing: 0.08em;
  margin-bottom: 36px;
}

.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer__links a {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-35);
  transition: color var(--mid);
}

.footer__links a:hover { color: var(--warm-white); }
.footer__sep { color: var(--text-15); font-size: 0.5rem; }

.footer__copy {
  font-size: 0.64rem;
  color: var(--text-15);
  line-height: 1.9;
}

.footer__todo {
  font-size: 0.62rem;
  color: var(--gold-50);
  margin-top: 8px;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(28px) scale(0.98);
  transition: transform 0.4s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: var(--concrete) transparent;
}

.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

/* Close strip */
.modal__close-strip {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px 0;
  background: var(--surface);
}

.modal__close-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-35);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: border-color var(--mid), color var(--mid);
}

.modal__close-btn:hover { border-color: var(--gold-border); color: var(--warm-white); }

/* Modal body */
.modal__body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 500px;
  margin-top: -34px;
}

.modal__image-side {
  background: var(--deep);
  padding: 48px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.modal__image {
  flex: 1;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal__image-placeholder {
  position: absolute;
  inset: 0;
}

/* Spotlight on modal placeholder */
.modal__image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 45% 35%,
    rgba(200,169,110,0.12) 0%, transparent 65%);
}

.modal__img-note {
  font-size: 0.64rem;
  color: var(--text-15);
  text-align: center;
  margin-top: 14px;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* Modal detail */
.modal__detail {
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
}

.modal__status {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.modal__title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--warm-white);
  line-height: 1.12;
  margin-bottom: 4px;
}

.modal__title-en {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-35);
  margin-bottom: 32px;
}

.modal__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.modal__meta-row { display: flex; gap: 20px; align-items: baseline; }

.modal__meta-label {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-35);
  min-width: 60px;
  flex-shrink: 0;
}

.modal__meta-value {
  font-size: 0.8rem;
  color: var(--text-60);
}

.modal__note-label {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-35);
  margin-bottom: 12px;
}

.modal__note-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text-60);
  flex: 1;
  margin-bottom: 36px;
}

.modal__actions { display: flex; flex-direction: column; gap: 10px; }

.modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 20px;
  border: 1px solid var(--gold-border);
  color: var(--warm-white);
  background: transparent;
  transition: background var(--mid), border-color var(--mid), color var(--mid);
}

.modal__btn:hover {
  background: rgba(200,169,110,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

.modal__btn .btn-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.modal__sold-note {
  font-size: 0.82rem;
  color: var(--text-35);
  line-height: 1.8;
}

.modal__sold-note a {
  color: var(--warm-white);
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 1px;
  transition: border-color var(--mid);
}

.modal__sold-note a:hover { border-color: var(--gold); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  width: 42px;
  height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--mid), transform var(--mid), border-color var(--mid);
}

.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { border-color: var(--gold-border); }

.scroll-top svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .modal__body { grid-template-columns: 1fr; }
  .modal__image-side { padding: 32px; min-height: 260px; border-right: none; border-bottom: 1px solid var(--border); }
  .modal__detail { padding: 36px 32px; }
  .modal__body { margin-top: 0; }
}

@media (max-width: 768px) {
  .container, .container--narrow { padding: 0 24px; }
  .nav__inner { padding: 0 24px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(16px);
    padding: 16px 0;
    transform: translateY(-110%);
    transition: transform var(--mid) var(--ease);
    border-bottom: 1px solid var(--border);
    z-index: 800;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { display: block; padding: 14px 28px; }

  .hero__content { padding: 0 28px; }
  .hero__scroll  { right: 28px; bottom: 40px; }

  #about { padding: 88px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 44px; }

  #gallery { padding: 88px 0; }
  .gallery-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .process__step,
  .process__step--rev { grid-template-columns: 1fr; direction: ltr; gap: 36px; }

  .exhibition__item { grid-template-columns: 1fr; gap: 14px; }

  .contact__buttons { flex-direction: column; align-items: center; }
  .btn-inquiry { width: 100%; max-width: 320px; }

  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-height: 96vh; border-bottom: none; }

  .scroll-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .gallery-grid { max-width: 100%; }
  .filter-bar { flex-wrap: wrap; }
}

/* ============================================================
   MODAL — SHARE BUTTON
   ============================================================ */
.modal__share-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal__share-btn {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-35);
  padding: 4px 0;
  cursor: pointer;
  transition: color var(--mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal__share-btn::before {
  content: '↗';
  font-size: 0.72rem;
  color: var(--text-15);
  transition: color var(--mid);
}

.modal__share-btn:hover,
.modal__share-btn:hover::before {
  color: var(--gold);
}

/* ============================================================
   NAV ACTIVE STATE (for commission page)
   ============================================================ */
.nav__links a.is-active { color: var(--gold); }

/* ============================================================
   ARTWORK CARD — PLACEHOLDER TITLE OVERLAY
   ============================================================ */
.artwork-card__placeholder-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(240,237,230,0.45);
  line-height: 1.4;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* ============================================================
   ARTWORK CARD — SERIES BADGE
   ============================================================ */
.artwork-card__series {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(8,8,8,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 10px;
  border: 1px solid var(--gold-border);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 28px);
}
