/* Hamburger nav, the real per-painting Inquire overlay, and the
   per-painting detail/picker page (/painting/NN/). Kept separate from
   scroll-reveal.css/style.css (which stay focused on the pinned-scroll
   gallery mechanism itself) and from the disposable inquire-demo.css used
   by the /staging/ comparison demos. */

/* ---- Hamburger nav ---- */
.hamburger-btn {
  background: none;
  border: none;
  width: 20px;
  height: 14px;
  position: relative;
  cursor: pointer;
  padding: 0;
}
.hamburger-btn span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.hamburger-btn span:nth-child(1) { top: 0; }
.hamburger-btn span:nth-child(2) { top: 6px; }
.hamburger-btn span:nth-child(3) { top: 12px; }
.hamburger-btn.is-open span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mimic-nav-panel {
  position: fixed;
  inset: 0;
  background: #141414;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mimic-nav-panel.is-open { opacity: 1; pointer-events: auto; }
.mimic-nav-panel a {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 300;
  color: oklch(97% 0.012 80);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.mimic-nav-panel a.is-active { color: oklch(72% 0.1 45); }
.mimic-nav-panel a:hover { color: oklch(72% 0.1 45); }
.mimic-nav-panel__close {
  position: absolute;
  top: 28px;
  right: 32px;
  background: none;
  border: none;
  color: oklch(97% 0.012 80);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ---- Real per-painting Inquire overlay ---- */
/* Style = option 6 from /staging/inquire-button-styles/ (ghost text, no
   border) - picked 2026-10-07. Every Inquire trigger site-wide (the
   caption-area button, the swipe-end link, and each /painting/NN/ page's
   own trigger) shares this one class, so this is the only place a future
   style change needs to happen. */
.inquire-trigger {
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: oklch(72% 0.1 45);
  background: none;
  border: none;
  padding: 10px 4px;
  cursor: pointer;
  display: inline-block;
}
.inquire-trigger:hover { color: oklch(97% 0.012 80); }
.reveal-overlay .inquire-trigger {
  margin-top: 18px;
  pointer-events: auto; /* .reveal-overlay itself is pointer-events:none by design */
}

.inquire-swipe-end {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 56px;
}
.inquire-swipe-end p {
  color: oklch(80% 0.02 75);
  font-size: 14px;
  max-width: 280px;
}
/* Short teaser - the full artist statement lives in the Inquire overlay
   (.inquire-overlay-statement below). Same source text, just CSS-clamped
   here rather than authored separately. */
.inquire-statement-preview {
  color: oklch(90% 0.012 80);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inquire-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 24px;
}
.inquire-overlay-backdrop.is-open { opacity: 1; pointer-events: auto; }
.inquire-overlay-panel {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  max-width: 420px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
/* Full artist statement - defensive max-height/scroll above since this can
   run long once real statements replace the placeholder text. */
.inquire-overlay-statement {
  font-size: 14px;
  line-height: 1.65;
  color: oklch(88% 0.012 80);
  margin: 0 0 20px;
  white-space: pre-line;
}
.inquire-overlay-backdrop.is-open .inquire-overlay-panel { transform: translateY(0); }
.inquire-overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: oklch(80% 0.02 75);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.inquire-overlay-panel h3 {
  margin: 0 0 6px;
  font-weight: 300;
  font-size: 1.4rem;
  color: oklch(97% 0.012 80);
  letter-spacing: 0.01em;
}
.inquire-overlay-panel p.inquire-sub {
  margin: 0 0 24px;
  font-size: 13px;
  color: oklch(80% 0.02 75);
  line-height: 1.5;
}
.inquire-overlay-panel p.inquire-meta {
  margin: 0 0 20px;
  font-size: 12px;
  color: oklch(72% 0.1 45);
}
.inquire-field { margin-bottom: 14px; }
.inquire-field label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: oklch(72% 0.02 75); margin-bottom: 6px; }
.inquire-field input, .inquire-field textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 10px 12px;
  color: oklch(97% 0.012 80);
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.inquire-field textarea { resize: vertical; min-height: 70px; }
.inquire-submit {
  width: 100%;
  background: oklch(72% 0.1 45);
  border: none;
  border-radius: 4px;
  padding: 12px;
  color: #141414;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
}
.inquire-submit:disabled { opacity: 0.6; cursor: default; }
.inquire-sent {
  font-size: 15px;
  color: oklch(97% 0.012 80);
  text-align: center;
  padding: 20px 0;
}
.inquire-error {
  font-size: 12px;
  color: oklch(65% 0.18 30);
  text-align: center;
  margin-top: 10px;
}
.inquire-demo-note {
  font-size: 11px;
  color: oklch(60% 0.02 75);
  margin-top: 14px;
  text-align: center;
}

/* ---- Per-painting detail/picker page (/painting/NN/) ---- */
/* body's default background (style.css's --bg) is the light cream
   header/footer color - override it here or the light detail-page text is
   nearly invisible. .header has no background of its own - it just
   inherits body's - so overriding body also breaks the header's contrast
   unless restored here. */
body:has(.inquire-detail) { background: var(--page-bg); }
body:has(.inquire-detail) .header { background: var(--bg); }
.inquire-detail {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  color: oklch(90% 0.012 80);
}
.inquire-detail__hero { text-align: center; margin-bottom: 32px; }
.inquire-detail__hero img { max-width: 100%; max-height: 72vh; }
.inquire-detail__title { font-weight: 300; font-size: clamp(1rem, 1.8vw, 1.2rem); margin: 14px 0 4px; }
.inquire-detail__meta { font-size: 11px; color: oklch(80% 0.02 75); }
.inquire-detail__section-label {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: oklch(72% 0.1 45); margin: 32px 0 14px; text-align: center;
}
/* Horizontal thumbnail strip that doubles as a picker - click a thumb and
   it becomes the hero image (js/nav-inquire.js). Keeps the distance from
   landing to the inquire form short, on phone and desktop both. */
.inquire-detail__picker {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.inquire-detail__picker-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  padding: 0;
  border-radius: 0; /* paintings always square-cornered (2026-11-15) */
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.inquire-detail__picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inquire-detail__picker-thumb.is-active { border-color: oklch(72% 0.1 45); }
.inquire-detail__form {
  margin: 36px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 440px;
  text-align: center;
}
.inquire-detail__form .inquire-field { text-align: left; }

@media (max-width: 640px) {
  .inquire-detail__hero img { max-height: 36vh; }
  .inquire-detail__picker-thumb { width: 64px; height: 64px; }
}

/* ---- About page ---- */
.about-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  color: oklch(90% 0.012 80);
  background: var(--page-bg);
  min-height: 100vh;
}
.about-page p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 22px;
  font-weight: 300;
}
/* Body copy is weight 300, so a plain <strong> only steps up to 400 and
   barely reads as bold - force a real bold. */
.about-page strong { font-weight: 700; }
.about-page__portrait {
  display: block;
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto 40px;
  border-radius: 4px;
}
body:has(.about-page) { background: var(--page-bg); }
body:has(.about-page) .header { background: var(--bg); }

@media (max-width: 640px) {
  .inquire-overlay-panel { padding: 24px; }
  .about-page { padding: 48px 20px 72px; }
}

/* ---- Gallery page (/gallery/) ---- */
/* Same dark-background-override pattern as .inquire-detail and
   .about-page - body's own default is the light cream header/footer
   color, and .header has no background of its own. */
body:has(.gallery-page) { background: var(--page-bg); }
body:has(.gallery-page) .header { background: var(--bg); }
.gallery-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 96px;
  color: oklch(90% 0.012 80);
}
/* Short pages (Exhibitions has one card) would otherwise pull the footer
   up mid-screen. Body becomes a full-height column and main takes the
   slack, so the footer sits at the bottom of the screen; on long pages
   nothing changes. width:100% keeps main full-width inside the flex
   column (margin:auto would otherwise shrink it to its content). */
body:has(> .gallery-page) { display: flex; flex-direction: column; min-height: 100svh; }
body:has(> .gallery-page) > .gallery-page { flex: 1 0 auto; width: 100%; }
.gallery-page__heading {
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 48px;
  text-align: center;
}
.gallery-series__heading {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(72% 0.1 45);
  margin: 0 0 24px;
}
.gallery-series + .gallery-series { margin-top: 56px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}
.gallery-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
/* object-fit: contain, never cover - the artwork itself is never cropped.
   Fixed 3:4 dark box per card keeps the grid even regardless of each
   painting's proportions (restored 2026-10-21 per client - she preferred
   this to the justified-rows/trimmed look). Background is the photos'
   own baked-in backdrop color (#1f1f1f) and there's no padding, so the
   photo fills the box with no visible seam/rim between the two grays. */
.gallery-card__image-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #1f1f1f;
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-card__image-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.gallery-card:hover .gallery-card__image-frame img { transform: scale(1.03); }
.gallery-card__sold-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: oklch(72% 0.1 45);
  color: #141414;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.gallery-card__title {
  font-weight: 300;
  font-size: 12px;
  margin: 0 0 2px;
  color: oklch(97% 0.012 80);
}
.gallery-card__meta {
  font-size: 10px;
  line-height: 1.45;
  color: oklch(72% 0.02 75);
  margin: 0;
}
/* balance = wrapped lines come out even, not one long line + a dangling word */
.gallery-card__title, .gallery-card__meta { text-align: center; text-wrap: balance; }

/* Exhibitions index: one wide feature card per exhibition (her pick, option
   D on /staging/exhibition-tiles/) - the landscape event photo at its own
   shape, no gray box, centered, bigger captions. */
.exhibition-feature { max-width: 760px; margin: 0 auto; }
.exhibition-feature .gallery-card + .gallery-card { margin-top: 56px; }
.exhibition-feature .gallery-card__image-frame { aspect-ratio: auto; background: none; }
.exhibition-feature .gallery-card__image-frame img { width: 100%; }
.exhibition-feature .gallery-card__title { font-size: 18px; }
.exhibition-feature .gallery-card__meta { font-size: 12px; }

@media (max-width: 640px) {
  .gallery-page { padding: 40px 20px 72px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; }
}
