/* ─── Reset + base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body, #root { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "Bodoni Moda", "Cormorant Garamond", "Times New Roman", Georgia, serif;
  font-weight: 300;
  font-size: 15px;
  color: #1a1612;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: #fafaf8;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── App shell + wall tones ────────────────────────────────────────────────── */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; }

.app.wall-pure       { background: #ffffff; }
.app.wall-warm       { background: #f6f3ee; }
.app.wall-gradient   { background: linear-gradient(180deg, #f4efe8 0%, #ece6dc 100%); }

.app.wall-warm::before, .app.wall-gradient::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,0.012) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* Type variants ─ luxury display families ──────────────────────────────────── */
/* Default: Bodoni Moda for headlines + wordmark, Cormorant for body. */
.app.type-couture .wm-name,
.app.type-couture .page-h,
.app.type-couture .panel-title,
.app.type-couture .cap-subject {
  font-family: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.005em;
}
.app.type-couture .page-h {
  font-weight: 400;
  font-variation-settings: "opsz" 96;
}
.app.type-couture .page-body p,
.app.type-couture .page-lead,
.app.type-couture .panel-note,
.app.type-couture .press-desc,
.app.type-couture body {
  font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
}

.app.type-serif .wm-name,
.app.type-serif .page-h,
.app.type-serif .panel-title,
.app.type-serif .cap-subject {
  font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.005em;
}

.app.type-sans .wm-name,
.app.type-sans .page-h,
.app.type-sans .panel-title,
.app.type-sans .cap-subject {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.025em;
  font-weight: 300;
}

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: relative; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 48px 0 48px;
  flex: 0 0 auto;
  transition: opacity 1800ms ease, transform 800ms cubic-bezier(.22,.61,.36,1);
}
.nav--hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.wm-name {
  font-size: 26px;
  color: #111;
  letter-spacing: 0.02em;
}
.wm-short { display: none; }
.nav-list {
  display: flex; gap: 36px;
  list-style: none; margin: 0; padding: 0;
}
.nav-link {
  font-family: "Bodoni Moda", "Cormorant Garamond", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(20,20,20,0.55);
  padding: 6px 0;
  position: relative;
  transition: color 240ms ease;
}
.nav-link:hover { color: #111; }
.nav-link.is-active { color: #111; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: #111;
}

/* ─── Stage / Wall ──────────────────────────────────────────────────────────── */
.stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wall { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.wall-rail {
  display: flex; align-items: center;
  gap: var(--gap, 140px);
  overflow-x: auto; overflow-y: hidden;
  scroll-behavior: auto;
  scrollbar-width: none;
  cursor: grab;
  padding: 0;
  height: 100%;
  min-height: 0;
}
.painting-btn { overflow: hidden; }
.wall-rail.is-grabbing { cursor: grabbing; }
.wall-rail::-webkit-scrollbar { display: none; }
.rail-pad-l, .rail-pad-r { flex: 0 0 12vw; height: 1px; }

.painting {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  display: flex; flex-direction: column; align-items: center;
}
.painting-btn {
  width: 100%; height: 100%;
  position: relative;
  filter:
    drop-shadow(0 2px 3px rgba(0,0,0,0.06))
    drop-shadow(0 18px 28px rgba(0,0,0,0.10))
    drop-shadow(0 38px 60px rgba(0,0,0,0.07));
  transition: transform 600ms cubic-bezier(.22,.61,.36,1), filter 400ms ease;
}
.painting-btn:hover {
  transform: translateY(-3px);
  filter:
    drop-shadow(0 3px 4px rgba(0,0,0,0.08))
    drop-shadow(0 24px 36px rgba(0,0,0,0.13))
    drop-shadow(0 48px 72px rgba(0,0,0,0.10));
}
.painting-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.painting-cap {
  position: absolute; left: 0; right: 0;
  bottom: -38px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(20,20,20,0.55);
  text-transform: none;
  opacity: 0; transform: translateY(-2px);
  transition: opacity 280ms ease, transform 280ms ease;
  pointer-events: none;
  font-family: "Bodoni Moda", "Cormorant Garamond", serif;
}
.painting:hover .painting-cap { opacity: 1; transform: translateY(0); }
.cap-subject { font-weight: 500; color: rgba(20,20,20,0.82); letter-spacing: 0.04em; }
.cap-note { font-style: italic; color: rgba(20,20,20,0.5); }
.cap-price { color: #1a1612; font-weight: 500; letter-spacing: 0.06em; }
.cap-sold { color: rgba(20,20,20,0.35); font-style: italic; letter-spacing: 0.14em; text-transform: uppercase; font-size: 10px; }

.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12vh;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.025) 100%);
  pointer-events: none;
}
.app.wall-pure .floor { display: none; }

.hint {
  position: absolute; left: 0; right: 0; bottom: 18px;
  text-align: center;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(20,20,20,0.28);
  margin: 0;
  font-weight: 400;
  pointer-events: none;
  font-family: "Bodoni Moda", serif;
}

/* ─── Side Panel ────────────────────────────────────────────────────────────── */
.panel-scrim {
  position: fixed; inset: 0; background: rgba(20,20,20,0.22);
  z-index: 80; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fadeIn 240ms ease both;
}
.panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(580px, 92vw);
  background: #ffffff;
  z-index: 90;
  display: grid; grid-template-rows: 1fr auto;
  box-shadow: -40px 0 80px rgba(0,0,0,0.10);
  animation: slideIn 380ms cubic-bezier(.22,.61,.36,1) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.panel-close {
  position: absolute; top: 22px; right: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: #555;
  transition: background 200ms ease, color 200ms ease;
  z-index: 2;
}
.panel-close:hover { background: rgba(0,0,0,0.05); color: #111; }

.panel-img-wrap {
  background: #f4f1ec;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 56px 28px 56px;
  overflow: hidden;
}
.panel-img-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,0.12)) drop-shadow(0 30px 60px rgba(0,0,0,0.08));
}

.panel-meta { padding: 32px 48px 40px 48px; border-top: 1px solid rgba(0,0,0,0.06); }
.panel-eyebrow { font-family: "Bodoni Moda", serif; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(20,20,20,0.45); margin-bottom: 12px; }
.panel-title { margin: 0 0 4px 0; font-size: 36px; line-height: 1.05; font-weight: 400; color: #111; letter-spacing: -0.012em; }
.panel-note { font-size: 16px; color: rgba(20,20,20,0.55); margin: 6px 0 22px 0; font-style: italic; }
.panel-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin: 18px 0 28px 0; }
.panel-spec > div { display: flex; flex-direction: column; gap: 4px; }
.panel-spec span { font-family: "Bodoni Moda", serif; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(20,20,20,0.4); }
.panel-spec em { font-style: normal; font-size: 14px; color: #1a1612; font-family: "Cormorant Garamond", serif; }
.panel-spec em.is-avail { color: #6a4f1c; font-weight: 500; }
.panel-spec em.is-sold  { color: rgba(20,20,20,0.45); font-style: italic; }
.panel-price-row { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid rgba(0,0,0,0.06); }
.panel-price { font-family: "Cormorant Garamond", serif; letter-spacing: 0.01em; color: #1a1612; }

.panel-cta {
  display: inline-block;
  padding: 16px 32px; border-radius: 999px;
  background: #111; color: #fff;
  font-family: "Bodoni Moda", serif;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 200ms ease, transform 200ms ease;
}
.panel-cta:hover { background: #000; transform: translateY(-1px); }
.panel-cta--ghost { background: transparent; color: #1a1612; border: 1px solid rgba(0,0,0,0.25); }
.panel-cta--ghost:hover { background: #1a1612; color: #fff; }
.panel-fine { font-family: "Cormorant Garamond", serif; font-size: 13px; color: rgba(20,20,20,0.55); margin: 16px 0 0 0; line-height: 1.6; font-style: italic; }

/* ─── Sub-pages (About, Press, Commissions) ─────────────────────────────────── */
main { flex: 1; min-height: 0; overflow-y: auto; }
.page { padding: 88px 48px 140px; }
.page-inner { max-width: 880px; margin: 0 auto; }
.page-eyebrow { font-family: "Bodoni Moda", serif; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(20,20,20,0.5); margin: 0 0 20px 0; }
.page-h { margin: 0 0 40px 0; font-size: 64px; line-height: 1.02; font-weight: 400; color: #111; letter-spacing: -0.018em; text-wrap: balance; }
.page-body p { font-family: "Cormorant Garamond", serif; font-size: 21px; line-height: 1.55; color: rgba(20,20,20,0.82); margin: 0 0 22px 0; max-width: 62ch; text-wrap: pretty; }
.page-body .page-lede {
  font-size: 26px; line-height: 1.4; color: #1a1612; margin-bottom: 28px;
  font-style: italic;
}

.page-lead { font-family: "Cormorant Garamond", serif; font-size: 21px; line-height: 1.55; color: rgba(20,20,20,0.82); max-width: 60ch; margin: 0 0 36px 0; text-wrap: pretty; }

/* About page ornamental rule */
.page--about .page-h::before {
  content: ""; display: block; width: 56px; height: 1px; background: #1a1612; margin: 0 0 28px 0; opacity: 0.7;
}

.press-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(0,0,0,0.12); }
.press-item { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid rgba(0,0,0,0.12); }
.press-year { font-family: "Bodoni Moda", serif; font-size: 13px; color: rgba(20,20,20,0.5); padding-top: 4px; letter-spacing: 0.08em; }
.press-title { margin: 0 0 8px 0; font-size: 22px; font-weight: 400; color: #111; font-family: "Bodoni Moda", serif; letter-spacing: -0.005em; }
.press-desc { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 17px; color: rgba(20,20,20,0.65); line-height: 1.6; font-style: italic; }

/* Commissions hero with portrait */
.comm-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
.comm-hero-text { padding-bottom: 8px; }
.comm-portrait {
  margin: 0;
  position: relative;
}
.comm-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  filter:
    drop-shadow(0 2px 3px rgba(0,0,0,0.06))
    drop-shadow(0 22px 38px rgba(0,0,0,0.14))
    drop-shadow(0 50px 80px rgba(0,0,0,0.08));
}
.comm-portrait figcaption {
  font-family: "Bodoni Moda", serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(20,20,20,0.5);
  text-align: right;
  margin-top: 16px;
}

.contact { margin: 28px 0 36px 0; border-top: 1px solid rgba(0,0,0,0.12); }
.contact-row { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,0.12); }
.contact-row span { font-family: "Bodoni Moda", serif; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(20,20,20,0.45); padding-top: 4px; }
.contact-row em { font-style: normal; font-family: "Cormorant Garamond", serif; font-size: 19px; color: #111; }
a.contact-row em { transition: color 200ms ease; }
a.contact-row:hover em { color: #6a4f1c; text-decoration: underline; text-underline-offset: 4px; }

.page-cta {
  display: inline-block;
  padding: 16px 34px; border-radius: 999px;
  background: #111; color: #fff;
  font-family: "Bodoni Moda", serif;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  transition: background 200ms ease, transform 200ms ease;
}
.page-cta:hover { background: #000; transform: translateY(-1px); }

/* ─── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .nav { padding: 20px 20px 0 20px; align-items: baseline; }
  .nav-list { gap: 16px; }
  .nav-link { font-size: 10.5px; letter-spacing: 0.16em; padding: 4px 0; }
  .wm-full { display: none; }
  .wm-short { display: inline; }
  .wm-name { font-size: 20px; letter-spacing: 0.08em; }
  .page { padding: 56px 22px 100px; }
  .page-h { font-size: 40px; }
  .page-body p { font-size: 18px; }
  .page-body .page-lede { font-size: 21px; }
  .panel-img-wrap { padding: 40px 28px 18px; }
  .panel-meta { padding: 26px 28px 32px; }
  .panel-title { font-size: 28px; }
  .panel-spec { grid-template-columns: 1fr; }
  .rail-pad-l, .rail-pad-r { flex: 0 0 6vw; }
  .comm-hero { grid-template-columns: 1fr; gap: 32px; }
  .comm-portrait { max-width: 360px; }
}

/* ─── Short-and-wide viewports (landscape phones) — side-by-side panel ────── */
@media (max-height: 600px) and (min-width: 700px) {
  .panel {
    width: min(900px, 100vw);
    grid-template-rows: 1fr;
    grid-template-columns: 42% 58%;
  }
  .panel-img-wrap {
    padding: 28px 24px 28px 36px;
  }
  .panel-meta {
    padding: 28px 36px 28px 28px;
    border-top: none;
    border-left: 1px solid rgba(0,0,0,0.06);
    overflow-y: auto;
    min-height: 0;
  }
  .panel-title { font-size: 28px; }
  .panel-spec { gap: 12px 24px; margin: 14px 0 20px 0; }
  .panel-cta { padding: 13px 26px; font-size: 11px; }
  .panel-fine { font-size: 12px; margin-top: 12px; }
  .panel-close { top: 14px; right: 14px; }
}
