/* ==========================================================================
   VaCa Marquetry — Luxury Design System v4
   Portrait-first · clean artwork · no overlays · no filters
   ========================================================================== */

/* --- 1. Design Tokens ---------------------------------------------------- */
:root {
  --bone:          #F7F3EC;
  --bone-soft:     #EDE7D9;
  --bone-deep:     #DDD3BC;
  --walnut:        #261608;
  --charcoal:      #3A2D22;
  --brass:         #A87C45;
  --brass-light:   #C9A570;
  --brass-dark:    #7D5C30;
  --espresso:      #1A0E06;
  --cream-text:    #EDE7D9;
  --line:          rgba(38, 22, 8, 0.09);
  --line-on-dark:  rgba(237, 231, 217, 0.13);

  --font-editorial: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs:   6px;
  --space-sm:  14px;
  --space-md:  28px;
  --space-lg:  56px;
  --space-xl:  96px;
  --space-2xl: 148px;
  --space-3xl: 200px;

  --container-max: 1320px;
  --radius: 1px;
}

/* --- 2. Reset & Base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Prevent horizontal scroll without breaking position:fixed elements
     (using html instead of body avoids the Safari fixed-element clipping bug) */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--charcoal);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Do NOT set overflow-x: hidden on body — it clips position:fixed children
     in Safari/iOS. html overflow-x: hidden above is sufficient. */
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--walnut);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
h4 { font-size: clamp(1rem, 1.3vw, 1.15rem); }

p { margin: 0 0 var(--space-sm); }
a { color: inherit; text-decoration: none; }

/* All images: clean, no filter, no opacity, natural colors preserved */
img {
  max-width: 100%;
  display: block;
  /* NO filter, NO opacity, NO brightness, NO blend-mode */
}

/* --- 3. Typography Utilities --------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-dark);     /* darkened for 4.5:1 contrast on bone (was --brass 3.37:1) */
  margin-bottom: var(--space-sm);
}
.eyebrow.on-dark { color: var(--brass-light); }

.hero-heading {
  font-family: var(--font-editorial);
  font-size: clamp(3.2rem, 5.5vw, 6rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--walnut);
  margin: 0 0 var(--space-md);
}
.hero-heading em {
  font-style: italic;
  color: var(--brass);
}

.section-title {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--walnut);
  margin: 0 0 var(--space-sm);
}

.section-title.on-dark { color: var(--cream-text); }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--charcoal);
  opacity: 0.78;
}

.art-title {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--walnut);
}

.text-center  { text-align: center; }
.opacity-75   { opacity: 0.75; }
.mt-lg        { margin-top: var(--space-lg); }
.mt-md        { margin-top: var(--space-md); }

/* --- 4. Seam divider ---------------------------------------------------- */
.seam {
  position: relative;
  width: 64px;
  height: 1px;
  background: var(--line);
  margin: var(--space-md) 0;
}
.seam::after {
  content: '';
  position: absolute;
  left: 0; top: -2px;
  width: 16px; height: 5px;
  background: var(--brass);
}
.seam.center { margin-left: auto; margin-right: auto; }
.seam.on-dark { background: var(--line-on-dark); }
.seam.on-dark::after { background: var(--brass-light); }

/* --- 5. Container -------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(var(--space-md), 5vw, var(--space-xl));
}

/* --- 6. Section defaults ------------------------------------------------- */
section { padding: var(--space-2xl) 0; }
@media (max-width: 768px) { section { padding: var(--space-xl) 0; } }

/* Anchored sections clear the 80px sticky header */
section[id], [id].wall-section { scroll-margin-top: 96px; }

.section-dark {
  background: var(--espresso);
  color: var(--cream-text);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--cream-text); }

.section-soft { background: var(--bone-soft); }

.section-header { max-width: 640px; margin-bottom: var(--space-lg); }
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --- 7. Navigation ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(247, 243, 236, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* Nav: logo-left | links-center | cta-right — all on one line */
.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 80px;
  padding: 0 clamp(var(--space-md), 5vw, var(--space-xl));
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-editorial);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--walnut);
  flex-shrink: 0;
  line-height: 1;
  justify-self: start;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  justify-self: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brass-dark);             /* darkened for 4.5:1 contrast on bone (was --brass 3.37:1) */
  border-bottom-color: var(--brass-dark);
}

.nav-cta {
  display: none;
}
/* Desktop nav CTA — luxury minimal ghost, overrides .btn-primary */
@media (min-width: 1001px) {
  .btn.nav-cta {
    display: inline-block;
    padding: 7px 18px;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: transparent;
    color: var(--walnut);
    border: 1px solid rgba(76, 43, 15, 0.38);   /* walnut at 38% opacity */
    border-radius: 0;
    box-shadow: none;
    line-height: 1;
    vertical-align: middle;
    transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
  }
  .btn.nav-cta:hover {
    background: transparent;
    color: var(--brass-dark);
    border-color: var(--brass-dark);
    box-shadow: none;
  }
}
.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.3rem;
  color: var(--walnut);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  justify-self: end;
}

@media (max-width: 1000px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
  }
  .nav-links {
    position: fixed;
    top: 80px; left: 0; right: 0;
    z-index: 200;                          /* explicit: above header(100), below cookie(99998)/WA(99999) */
    background: var(--bone);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 280ms ease, opacity 280ms ease;
    padding-bottom: var(--space-sm);
    /* Prevent nav dropdown from creating a horizontal scroll */
    max-width: 100vw;
    overflow-x: hidden;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; }
  body.nav-open { overflow: hidden; }    /* prevent body scroll while mobile nav is open */
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px var(--space-md); border-bottom: none; white-space: normal; }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] { border-bottom: none; }
  .nav-toggle { display: block; }
}

/* --- 8. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 17px 44px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  transition: background-color 200ms ease, color 200ms ease,
              border-color 200ms ease, box-shadow 200ms ease;
}

.btn-primary {
  background: var(--walnut);
  color: var(--bone);
  border-color: var(--walnut);
}
.btn-primary:hover {
  background: var(--brass-dark);
  border-color: var(--brass-dark);
  box-shadow: 0 6px 28px rgba(38, 22, 8, 0.22);
}

.btn-secondary {
  background: transparent;
  border-color: var(--walnut);
  color: var(--walnut);
}
.btn-secondary:hover {
  background: var(--walnut);
  color: var(--bone);
  box-shadow: 0 4px 20px rgba(38, 22, 8, 0.14);
}

.btn-brass {
  background: var(--brass);
  color: var(--bone);
  border-color: var(--brass);
}
.btn-brass:hover {
  background: var(--brass-dark);
  border-color: var(--brass-dark);
  box-shadow: 0 6px 24px rgba(168, 124, 69, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  padding: 17px 0;
  border: none;
  letter-spacing: 0.10em;
  position: relative;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  left: 0; bottom: 12px;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 260ms ease;
}
.btn-ghost:hover { color: var(--walnut); }
.btn-ghost:hover::after { transform: scaleX(1); }

.section-dark .btn-secondary {
  border-color: var(--cream-text);
  color: var(--cream-text);
}
.section-dark .btn-secondary:hover {
  background: var(--cream-text);
  color: var(--espresso);
}
.section-dark .btn-ghost { color: var(--cream-text); }

/* --- 9. Homepage Hero — full-height split -------------------------------- */
.hero-section { padding: 0; }

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
  max-height: 980px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  max-width: 700px;
  margin-left: auto;
}

/* Hero image: full-bleed portrait, NO filter, NO overlay */
.hero-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bone-soft);
}
.hero-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* zero filters — original artwork colors preserved */
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
  }
  .hero-image-wrap {
    height: 68vw;
    min-height: 300px;
    max-height: 560px;
    order: -1;
  }
  .hero-copy {
    margin-left: 0;
    max-width: none;
    padding: var(--space-lg) var(--space-md) var(--space-xl);
  }
  .hero-heading { font-size: clamp(2.6rem, 8vw, 3.8rem); }
}

/* --- 10. Page inner hero (portraits page, etc.) -------------------------- */
.page-hero-section { padding: var(--space-2xl) 0 var(--space-lg); }

.page-hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: var(--space-xl);
}

/* Portrait-first: 2:3 ratio for hero artwork */
.page-hero-image {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bone-soft);
}
.page-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  /* NO filter */
}

@media (max-width: 900px) {
  .page-hero-split { grid-template-columns: 1fr; }
  .page-hero-image { aspect-ratio: 3/4; order: -1; }
}

/* --- 11. Trust strip ---------------------------------------------------- */
.trust-strip {
  background: var(--espresso);
  padding: 32px 0;
}
.trust-strip p {
  font-family: var(--font-editorial);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--cream-text);
  text-align: center;
  margin: 0;
  letter-spacing: 0.01em;
}

/* --- 12. Grids ----------------------------------------------------------- */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2              { grid-template-columns: 1fr; }
  .grid-3              { grid-template-columns: repeat(2, 1fr); }
  .grid-4              { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- 13. Portrait card — 2:3 ratio, NO filter ----------------------------- */
/*
   The primary card unit for vertical artworks.
   Ratio 2:3 = standard portrait painting format.
   Image colors and tones are preserved exactly.
*/
.art-card {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
}

.art-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;       /* portrait-first: taller than wide */
  background: var(--bone-soft);
  border-radius: 6px;
}
.art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* NO filter: brightness / contrast / opacity / blur — artwork colors as shot */
  transition: transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.art-card:hover .art-thumb img {
  transform: scale(1.04);
}

.art-info {
  padding: 14px 0 var(--space-md);
  border-top: 1px solid var(--line);
}
.art-info h4 {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--walnut);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}
.art-meta {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.70;             /* raised from 0.5 (2.84:1) → 4.92:1 on bone */
  margin: 0;
  display: block;
}

/* --- 14. Commission panels — portrait 2:3, tight grid -------------------- */
.commission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.commission-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: var(--bone-soft);
}
.commission-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* NO filter */
  transition: transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.commission-thumb:hover img { transform: scale(1.04); }

@media (max-width: 700px) {
  .commission-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
}

/* --- 15. Collection grid ——————————————————————————————————————————————————
   Container : .gallery-editorial  (set in collection.html)
   Cards     : .art-card — all cards uniform size, strict N-column grid.
   NOTE: selectors .collection-grid / .art-grid / .art-grid do NOT exist.  */

/* Grid container — strict 3 columns on desktop, larger premium cards */
.gallery-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

/* Regular cards */
.gallery-editorial .art-card {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* Scoped thumb ratios — override base 2/3 only inside collection grid.
   Same ratio at every breakpoint keeps every card the same height in its row. */
.gallery-editorial .art-thumb {
  aspect-ratio: 4 / 3;
}

/* Collection images: contain, not cover — the entire artwork must stay
   visible with no cropped faces or composition edges. var(--bone-soft),
   set on .art-thumb's base rule, shows through as a neutral mat behind
   any letterboxing rather than leaving hard empty space. */
.gallery-editorial .art-thumb img {
  object-fit: contain;
  object-position: center center;
}

/* Tablet: 2 columns */
@media (max-width: 860px) {
  .gallery-editorial {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  /* 5 cards / 2 columns leaves the last card alone in its row. Center it
     at normal card width instead of flush-left against an empty cell. */
  .gallery-editorial .art-card:last-child:nth-child(2n+1) {
    grid-column: 1 / -1;
    max-width: calc((100% - 24px) / 2);
    margin: 0 auto;
  }
}

/* Mobile: 1 column */
@media (max-width: 500px) {
  .gallery-editorial {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* 1 column: every card fills its own row. Reset the tablet orphan rule
     above, which would otherwise still apply at mobile widths too. */
  .gallery-editorial .art-card:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
}

/* --- 16. Wall feature — artwork on a wall, edge-to-edge ------------------ */
/*
   Full-width presentation of wall.jpg: artwork displayed in situ.
   No overlays. No filters. The wall image speaks for itself.
*/
.wall-section { padding: 0; }

.wall-feature {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bone-soft);
}
.wall-feature img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* NO filter, NO overlay, NO opacity — original room + artwork tones */
}

/* Tall variant for narrower wall shots */
.wall-feature.tall { aspect-ratio: 4/3; }

.wall-caption {
  padding: var(--space-md) 0 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  border-top: 1px solid var(--line);
  margin-top: 1px;
}
.wall-caption .eyebrow { margin-bottom: 0; }
.wall-caption p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1rem;
  color: var(--walnut);
  margin: 0;
  opacity: 0.7;
}

/* --- 17. Lifestyle feature — editorial room context ---------------------- */
/*
   lifestyle.jpg: artwork in an interior / editorial setting.
   3:2 landscape ratio. Pure image, no CSS effects.
*/
.lifestyle-feature {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--bone-soft);
}
.lifestyle-feature img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* NO filter */
}

/* --- 18. Detail pair — two detail images side by side ------------------- */
.detail-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.detail-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bone-soft);
}
.detail-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* NO filter */
}
@media (max-width: 600px) {
  .detail-pair { grid-template-columns: 1fr; }
}

/* --- 19. Feature split (two-column layout) ------------------------------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
}
.feature-media {
  position: relative;
  overflow: hidden;
  background: var(--bone-soft);
}
.feature-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* NO filter */
}

@media (max-width: 840px) {
  .feature-split { grid-template-columns: 1fr; gap: var(--space-md); }
  .feature-media { order: -1; }
}

/* --- 20. Feature cards / benefit cards ---------------------------------- */
.card {
  background: var(--bone);
  border: 1px solid var(--line);
  padding: var(--space-lg);
}
.section-dark .card {
  background: rgba(237, 231, 217, 0.04);
  border-color: var(--line-on-dark);
}
.section-soft .card { background: var(--bone); }

.card-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--brass);
  display: flex;
  align-items: center; justify-content: center;
  color: var(--brass);
  margin-bottom: var(--space-md);
  font-family: var(--font-editorial);
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* --- 21. Stats strip ----------------------------------------------------- */
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-editorial);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--brass-light);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-text);
  opacity: 0.58;
}

/* --- 22. Process timeline ------------------------------------------------ */
.timeline { display: flex; flex-direction: column; }

.timeline-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--line);
}
.timeline-step:last-child { border-bottom: 1px solid var(--line); }

.timeline-num {
  font-family: var(--font-editorial);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--brass);
  line-height: 1;
  padding-top: 6px;
}

/* Timeline media: detail images, NO filter */
.timeline-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--bone-soft);
  border: 1px solid var(--line);
  margin-top: var(--space-sm);
}
.timeline-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* NO filter — wood tones preserved */
}

@media (max-width: 640px) {
  .timeline-step { grid-template-columns: 1fr; gap: var(--space-sm); }
  .timeline-num  { font-size: 1.8rem; }
}

/* --- 23. Pricing tiers --------------------------------------------------- */
.pricing-tier {
  border: 1px solid var(--line);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  background: var(--bone);
  position: relative;
}
.pricing-tier.featured { border-color: var(--brass); }
.pricing-tier.featured::before {
  content: 'Most Commissioned';
  position: absolute;
  top: -11px; left: var(--space-lg);
  background: var(--brass);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 12px;
}
.pricing-tier h3 {
  font-family: var(--font-editorial);
  font-size: 1.7rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 4px;
  color: var(--walnut);
}
.pricing-detail {
  font-size: 0.78rem;
  opacity: 0.6;
  margin-bottom: var(--space-sm);
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--walnut);
  margin-top: auto;
  padding-top: var(--space-md);
  margin-bottom: var(--space-md);
}

/* --- 24. Forms ----------------------------------------------------------- */
.form-card {
  background: var(--bone);
  border: 1px solid var(--line);
  padding: var(--space-xl) clamp(var(--space-lg), 5vw, var(--space-xl));
  max-width: 720px;
  margin: 0 auto;
}
.field { margin-bottom: var(--space-md); }
.field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  border: 1px solid var(--bone-deep);
  background: white;
  border-radius: var(--radius);
  color: var(--charcoal);
  transition: border-color 180ms ease, box-shadow 180ms ease;
  appearance: none; -webkit-appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(168, 124, 69, 0.11);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.upload-zone {
  display: block;
  border: 1px dashed var(--brass);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  font-size: 0.82rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 200ms ease;
}
.upload-zone:hover { background: rgba(168, 124, 69, 0.05); }

.form-microcopy {
  font-size: 0.76rem;
  opacity: 0.75;                /* raised for 4.5:1 contrast on bone (was 0.55 = 3.24:1) */
  margin-top: var(--space-sm);
  text-align: center;
  letter-spacing: 0.03em;
}

/* --- 25. FAQ accordion --------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: left;
  background: none; border: none;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--walnut);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  line-height: 1.4;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: var(--space-md); }
.faq-icon {
  color: var(--brass);
  font-size: 1.1rem; font-weight: 300;
  flex-shrink: 0;
  transition: transform 200ms ease;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* --- 26. Collection filter bar ------------------------------------------ */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-xl);
}
.filter-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  text-decoration: none;
}
.filter-btn:hover {
  background: var(--bone-soft);
  border-color: var(--walnut);
  color: var(--walnut);
}
.filter-btn.active {
  background: var(--walnut);
  border-color: var(--walnut);
  color: var(--cream-text);
}

/* --- 27. Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--walnut);
  color: var(--cream-text);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-logo {
  font-family: var(--font-editorial);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--cream-text);
  display: block;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-text);
  opacity: 0.55;             /* raised from 0.5 (4.40:1) → 5.03:1 on walnut; selector h4→h3 to match HTML */
  margin: 0 0 var(--space-sm);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li {
  margin-bottom: 8px;
}
.site-footer a {
  color: var(--cream-text);
  text-decoration: none;
  font-size: 0.88rem;
  opacity: 0.75;
  transition: opacity 200ms ease;
}
.site-footer a:hover {
  opacity: 1;
}
.site-footer p {
  color: var(--cream-text);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(237, 231, 217, 0.65); /* explicit color replaces opacity:0.45 → 6.45:1 on walnut (was 3.82:1) */
  gap: var(--space-md);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
}

/* --- 28. Artwork detail page --------------------------------------------- */

/* ── Back link ─────────────────────────────────────────────────────────── */
.artwork-back {
  padding: var(--space-md) 0 var(--space-sm);
}
.artwork-back a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.6;
  transition: opacity 200ms ease, color 200ms ease;
}
.artwork-back a:hover {
  opacity: 1;
  color: var(--brass-dark);
}

/* ── Two-column split: dominant image left, structured text right ───────── */
.artwork-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

/* ── Left column: sticky image pane ────────────────────────────────────── */
.artwork-primary {
  position: sticky;
  top: 100px;   /* clears 80px nav + breathing room */
}

/* Primary image frame — cinematic shadow, rounded, zoom cursor */
.artwork-primary-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bone-soft);
  box-shadow:
    0  4px 16px rgba(26, 14, 6, 0.12),
    0 24px 64px rgba(26, 14, 6, 0.16);
  cursor: zoom-in;
}

/* Primary image */
#aw-primary-img {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.artwork-primary-frame:hover #aw-primary-img {
  transform: scale(1.03);
}

/* ── Right column: structured metadata panel ────────────────────────────── */
.artwork-detail {
  padding-top: 8px;
}

/* Availability badge */
.artwork-availability {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0;
  margin-bottom: var(--space-sm);
}
.artwork-availability.available {
  background: #e8f4e8;
  color: #2d6a2d;
  border: 1px solid #b8d8b8;
}
.artwork-availability.sold {
  background: var(--bone-soft);
  color: var(--charcoal);
  border: 1px solid var(--line);
  opacity: 0.70;
}
.artwork-availability.not_for_sale {
  background: transparent;
  color: var(--brass-dark);
  border: 1px solid var(--brass);
  letter-spacing: 0.12em;
}
.artwork-availability.collection {
  background: transparent;
  color: var(--brass-dark);
  border: 1px solid var(--brass);
  letter-spacing: 0.12em;
}

/* Title */
.artwork-title {
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--walnut);
  line-height: 1.1;
  margin: var(--space-sm) 0;
}

/* Specs table — hairline-divided rows */
.artwork-specs {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  border-top: 1px solid var(--line);
}
.artwork-specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.spec-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.50;
  flex-shrink: 0;
  padding-right: 16px;
}
.spec-value {
  text-align: right;
  color: var(--walnut);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Price — editorial italic, brass tone */
.artwork-price {
  font-family: var(--font-editorial);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-style: italic;
  color: var(--brass-dark);
  margin: var(--space-sm) 0 var(--space-md);
}

/* CTA button group */
.artwork-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-md);
}

/* Fine-print notes beneath CTA */
.artwork-note {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--charcoal);
  opacity: 0.58;
  margin: 0 0 4px;
}

/* .artwork-frame kept for legacy compat — not used in current HTML */
.artwork-frame {
  position: relative;
  background: var(--bone-soft);
  border: 1px solid var(--line);
  padding: var(--space-sm);
}
.artwork-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── Mobile: stack to single column ────────────────────────────────────── */
@media (max-width: 860px) {
  .artwork-split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .artwork-primary {
    position: static;    /* un-stick on mobile — avoid scroll lock */
  }
  #aw-primary-img {
    max-height: 72vw;
  }
}

/* ── Gallery strip — luxury museum viewing experience ─────────────────────
   Injected by artwork-loader.js into #aw-gallery (.artwork-gallery).
   Pure CSS enhancement — no JS changes.                                   */

/* Container: horizontal cinematic scroll with breathing room */
.artwork-gallery {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 32px 40px 40px;    /* top / sides / bottom — last image off edge = depth */
  margin-top: var(--space-md, 24px);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;        /* smooth momentum on iOS */
  scrollbar-width: thin;
  scrollbar-color: var(--brass, #A87C45) transparent;
  /* Subtle inset shadow to reinforce the gallery-wall depth feeling */
  background: linear-gradient(
    to bottom,
    var(--bone-soft, #EDE7D9) 0%,
    var(--bone, #F7F3EC) 100%
  );
  border-top: 1px solid var(--line, rgba(38,22,8,.09));
  border-bottom: 1px solid var(--line, rgba(38,22,8,.09));
}

/* Each thumb is a framed gallery piece */
.artwork-gallery-thumb {
  flex: 0 0 180px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bone-soft, #EDE7D9);
  border-radius: 6px;
  cursor: zoom-in;
  scroll-snap-align: center;
  /* Cinematic shadow: soft ambient layer + close contact shadow */
  box-shadow:
    0 2px  6px rgba(26, 14,  6, 0.08),
    0 8px 24px rgba(26, 14,  6, 0.12),
    0 0   0 1px rgba(38, 22, 8, 0.06);
  /* Transition covers transform + shadow + opacity */
  transition:
    transform  500ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity    350ms ease;
}

/* Image fill — no distortion under any condition */
.artwork-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 6px;           /* match parent clip */
  transition: transform 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Museum spotlight: dim siblings when any thumb is hovered */
.artwork-gallery:hover .artwork-gallery-thumb {
  opacity: 0.68;
}

/* Hovered piece: lift, strengthen shadow, stay at full brightness */
.artwork-gallery:hover .artwork-gallery-thumb:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0  4px 12px rgba(26, 14,  6, 0.14),
    0 18px 40px rgba(26, 14,  6, 0.22),
    0  0   0 1px rgba(38, 22, 8, 0.10);
}
.artwork-gallery-thumb:hover img {
  transform: scale(1.03);       /* subtle inner zoom without thumb overflow */
}

/* Mobile: smaller thumbs, reduced padding */
@media (max-width: 600px) {
  .artwork-gallery {
    gap: 20px;
    padding: 24px 24px 32px;
  }
  .artwork-gallery-thumb { flex: 0 0 130px; }
}

/* --- Not for Sale page --------------------------------------------------- */
.nfs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
/* 4-card variant: 2 cols on desktop, 1 on mobile */
.nfs-grid-wide {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1100px) {
  .nfs-grid-wide {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }
}
@media (max-width: 700px) { .nfs-grid, .nfs-grid-wide { grid-template-columns: 1fr; } }

/* Placeholder card (TBD) */
.nfs-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bone-soft);
  border: 1px dashed var(--brass);
  opacity: 0.65;
}
.nfs-placeholder-inner { text-align: center; }

.nfs-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.nfs-thumb {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: var(--space-md);
  background: var(--bone-soft);
}
.nfs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}
.nfs-card:hover .nfs-thumb img { transform: scale(1.025); }

.nfs-badges { margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.badge-private,
.badge-nfs {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 1px;
  line-height: 1.4;
}
.badge-private {
  background: transparent;
  color: var(--brass-dark);
  border: 1px solid var(--brass);
}
.badge-nfs {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--line);
  opacity: 0.55;
}
.nfs-title {
  font-family: var(--font-editorial);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  color: var(--walnut);
  margin: 0 0 8px;
  line-height: 1.15;
}
.nfs-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.5;
  margin-bottom: 10px;
}
.nfs-desc {
  font-size: 0.875rem;
  color: var(--charcoal);
  opacity: 0.72;
  line-height: 1.65;
  max-width: 380px;
}

/* --- Exhibitions page ----------------------------------------------------- */
.exh-section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.exh-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 12px;
}
.exh-title {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--walnut);
  margin: 0 0 12px;
}
.exh-subtitle {
  font-size: 0.88rem;
  opacity: 0.65;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}
/* Photo grid */
.exh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: var(--space-lg);
}
@media (max-width: 900px) { .exh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .exh-grid { grid-template-columns: 1fr; } }

.exh-grid-wide {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .exh-grid-wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .exh-grid-wide { grid-template-columns: 1fr; } }

.exh-thumb {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bone-soft);
}
.exh-thumb.portrait { aspect-ratio: 3/4; }
.exh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}
.exh-thumb:hover img { transform: scale(1.03); }

/* Video grid */
.exh-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: var(--space-lg);
}
@media (max-width: 700px) { .exh-video-grid { grid-template-columns: 1fr; } }

.exh-video-wrap {
  background: var(--espresso);
  overflow: hidden;
}
.exh-video-wrap video {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

/* Award card */
.award-card {
  display: flex;
  gap: var(--space-lg);
  align-items:flex-start;
}
.award-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  color: var(--brass);
}
.award-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(201,165,112,0.70);
  margin: 0 0 4px;
}
.award-title {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cream-text);
  margin: 0 0 4px;
}
.award-body {
  font-size: 0.88rem;
  opacity: 0.65;
  margin: 0;
}

/* ================================================================
   WHATSAPP FLOATING BUTTON
   ================================================================ */
.wa-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.28), 0 1px 6px rgba(0,0,0,0.14);
  transition: transform 200ms ease, box-shadow 200ms ease, bottom 260ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,0,0,0.34); }
.wa-float svg { width: 28px; height: 28px; }

body.has-cookie-banner .wa-float {
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 600px) {
  .wa-float {
    width: 52px;
    height: 52px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: 14px;
  }
  .wa-float svg { width: 26px; height: 26px; }
  body.has-cookie-banner .wa-float {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

/* ================================================================
   COOKIE CONSENT BANNER
   ================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: var(--espresso);
  border-top: 1px solid rgba(201,165,112,0.22);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateY(110%);
  transition: transform 300ms cubic-bezier(0.25,0.46,0.45,0.94);
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
.cookie-banner.is-visible { transform: translateY(0); }

.cookie-text {
  flex: 1;
  font-size: 0.81rem;
  line-height: 1.55;
  color: rgba(247,243,236,0.62);
  margin: 0;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-cookie {
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 9px 20px;
  min-height: 40px;
  min-width: 80px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity 160ms ease;
}
.btn-cookie:hover { opacity: 0.82; }
.btn-cookie-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--espresso);
}
.btn-cookie-ghost {
  background: transparent;
  border-color: rgba(247,243,236,0.22);
  color: rgba(247,243,236,0.55);
}

@media (max-width: 580px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
  }
  .cookie-actions { width: 100%; }
  .btn-cookie { flex: 1; text-align: center; }
}

/* ================================================================
   MUSEUM VIEWER — VaCa Marquetry
   Centered floating frame, blurred gallery atmosphere backdrop,
   gold-tone mat border. Zoom constrained inside the frame.
   ================================================================ */
.lb-trigger { cursor: zoom-in !important; transition: opacity 180ms ease; }
.lb-trigger:hover { opacity: 0.88; }
body.lb-open { overflow: hidden; }

.vaca-lb {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  background: rgba(6, 3, 1, 0.60);
  backdrop-filter: blur(20px) brightness(0.20) saturate(0.45);
  -webkit-backdrop-filter: blur(20px) brightness(0.20) saturate(0.45);
}
.vaca-lb.is-open { opacity: 1; pointer-events: all; }

.lb-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(247,243,236,0.07);
  border: 1px solid rgba(247,243,236,0.14);
  border-radius: 50%;
  color: rgba(247,243,236,0.60);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 160ms ease, color 160ms ease;
}
.lb-close:hover {
  background: rgba(247,243,236,0.14);
  color: rgba(247,243,236,0.90);
}

.lb-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
  padding: 0 8px;
}

.lb-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(247,243,236,0.07);
  border: 1px solid rgba(247,243,236,0.13);
  border-radius: 50%;
  color: rgba(247,243,236,0.58);
  cursor: pointer;
  margin: 0 18px;
  font-size: 1.2rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 160ms ease, color 160ms ease;
}
.lb-arrow:hover {
  background: rgba(247,243,236,0.14);
  color: rgba(247,243,236,0.90);
}
.lb-arrow.is-hidden { visibility: hidden; pointer-events: none; }

.lb-frame-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.lb-museum-frame {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(201, 165, 112, 0.30);
  background: rgba(10, 6, 2, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(201,165,112,0.09),
    0 40px 100px rgba(0,0,0,0.80),
    0 10px 36px rgba(0,0,0,0.55),
    0 2px 8px rgba(0,0,0,0.40);
  transform: scale(0.95) translateY(12px);
  opacity: 0;
  transition:
    transform 360ms cubic-bezier(0.25,0.46,0.45,0.94),
    opacity 300ms ease;
}
.vaca-lb.is-open .lb-museum-frame {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition-delay: 80ms;
}

.lb-img-container {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(76vw, 1000px);
  max-height: min(74vh, 700px);
  cursor: zoom-in;
}
.lb-img-container.is-zoomed  { cursor: grab; }
.lb-img-container.is-dragging { cursor: grabbing; }

.lb-img {
  display: block;
  max-width: min(76vw, 1000px);
  max-height: min(74vh, 700px);
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  opacity: 0;
  transition: opacity 260ms ease;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.lb-img.is-loaded { opacity: 1; }

.lb-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: rgba(201,165,112,0.40);
  pointer-events: none;
  z-index: 2;
}
.lb-loader.is-visible { display: flex; }
.lb-loader svg { animation: lb-spin 1.2s linear infinite; }
@keyframes lb-spin { to { transform: rotate(360deg); } }

.lb-frame-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  min-height: 18px;
  padding: 0 2px;
  gap: 12px;
}
.lb-caption {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 0.87rem;
  color: rgba(247,243,236,0.50);
  margin: 0;
  flex: 1;
}
.lb-counter {
  font-size: 0.59rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(201,165,112,0.42);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .lb-close  { top: 12px; right: 12px; width: 38px; height: 38px; }
  .lb-viewer { padding: 0 2px; }
  .lb-arrow  { width: 38px; height: 38px; margin: 0 6px; }
  .lb-museum-frame { padding: 9px; }
  .lb-img-container {
    max-width: min(88vw, 100vw);
    max-width: min(88vw, 100vw);
    max-height: min(68vh, 1000px);
  }
}

/* ================================================================
   STABILITY PATCH v3 — 2026-06
   Fixes: artist hero distortion, collection h3 title styling,
   bio-chapter layout, NFS hover cursor.
   ================================================================ */

/* ── Artist page hero ─────────────────────────────────────────── */
.artist-hero-wrap {
  position: relative;
  width: 100%;
  height: clamp(320px, 70vh, 800px);
  overflow: hidden;
  background: var(--espresso);
}
.artist-hero-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.artist-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  background: linear-gradient(to top, rgba(6,3,1,0.72) 0%, transparent 100%);
  color: var(--cream-text);
}
.artist-hero-caption .eyebrow {
  color: rgba(201,165,112,0.80);
}
.artist-hero-caption h1 {
  font-family: var(--font-editorial);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream-text);
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
  line-height: 1.05;
}
@media (max-width: 600px) {
  .artist-hero-wrap { height: clamp(260px, 55vw, 420px); }
  .artist-hero-caption { padding: var(--space-lg) var(--space-md) var(--space-md); }
}

/* ── Biography chapters ───────────────────────────────────────── */
.bio-chapter {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line);
}
.bio-chapter:last-of-type { border-bottom: none; }
.bio-chapter h3 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin: 0 0 var(--space-sm);
}
.bio-chapter p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin: 0;
}

/* ── Collection grid — h3 title fix ──────────────────────────── */
.art-info h3 {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--walnut);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}

/* ── NFS cards — lightbox-enabled card cursor ────────────────── */
.nfs-card[data-lb-group] { cursor: default; }
.nfs-card[data-lb-group] .nfs-thumb img { cursor: zoom-in; }


/* ╔══════════════════════════════════════════════════════════════════╗
   ║  LAYOUT ARCHITECTURE PATCH — v4                                 ║
   ║  Applied: 2026-06                                               ║
   ║  Goals:                                                         ║
   ║   • picture elements: block display + fill their containers     ║
   ║   • .art-description: styled body text                          ║
   ║   • Layout aliases for .page-container / .content-wrapper       ║
   ║     (.section-block / .image-grid) — CSS-only, no HTML rewrite  ║
   ║   • Mobile stack improvements                                   ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* ── 1. picture element — block display prevents inline baseline gap ─
   Default display:inline on <picture> creates a 4-5px whitespace gap
   at the bottom of every image container (baseline alignment artefact).
   Setting display:block + line-height:0 eliminates this entirely.    */
/* picture: display:contents makes it transparent to layout.
   The <img> inside resolves width/height directly against the
   image container (.art-thumb, .nfs-thumb, etc.) — no intermediate
   containing block, no height:100% resolution failure.
   img { display:block } (global rule) already eliminates baseline gap. */
picture {
  display: inline;   /* explicit browser default — NOT block (avoids containing-block break) */
}

/* ── 2. picture container-fill — REMOVED
   With picture { display: contents }, the <img> is a direct child
   of the container (.art-thumb etc.) and fills it via the existing
   .art-thumb img { width:100%; height:100%; } rules.
   No picture-level width/height override needed.                     */

/* ── 3. .art-description — card body text ───────────────────────────
   <span class="art-description"> exists in collection cards but had
   no CSS rule — rendered as plain inline text.                       */
.art-description {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--charcoal);
  opacity: 0.72;
  margin-top: 6px;
  /* Clamp to 2 lines — luxury brevity */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 4. Layout architecture aliases ─────────────────────────────────
   Maps semantic class names onto existing layout patterns.
   No HTML changes needed — add these classes alongside existing ones
   or use them as standalone aliases.                                 */
.page-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(var(--space-md), 5vw, var(--space-xl));
}
.content-wrapper {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.section-block {
  padding: var(--space-2xl) 0;
}
/* .image-grid — luxury 6-col editorial grid (same as gallery-editorial) */
.image-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-lg);
}
.image-grid .art-card         { grid-column: span 2; }
.image-grid .art-card.feature { grid-column: span 3; }

@media (max-width: 960px) {
  .image-grid { grid-template-columns: repeat(2, 1fr); }
  .image-grid .art-card,
  .image-grid .art-card.feature { grid-column: span 1; }
}
@media (max-width: 500px) {
  .image-grid { grid-template-columns: 1fr; }
}

/* ── 5. Mobile structure improvements ───────────────────────────────
   Ensure no section, card, or image causes horizontal overflow.
   Supplements html { overflow-x: hidden } already in place.         */

/* All top-level grid containers collapse safely at small viewports */
@media (max-width: 560px) {
  .feature-split,
  .artwork-split,
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: var(--space-md);
  }
  /* Remove any inline height that could distort portrait images */
  .hero-image-wrap {
    height: 75vw;
    min-height: 240px;
    max-height: 440px;
  }
  /* NFS grid: single column on small phones */
  .nfs-grid,
  .nfs-grid-wide {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  /* Commission grid: 1 col below 560 (already 2-col at 700) */
  .commission-grid {
    grid-template-columns: 1fr;
  }
  /* Detail pair: already 1 col at 600, keep consistent */
  .detail-pair {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ── 6. Container max-width guard — REMOVED
   main > section > * was too broad: it targeted grid containers
   that are direct children of <section> (e.g. .atmosphere-grid),
   adding box-sizing:border-box which interfered with gap calculation.
   Container max-width is handled per-component via .container class. */

/* ── 7. Prevent stray inline images from breaking flow ──────────────
   Mirrors the base img rule for SVG/canvas too.                     */
svg, canvas, video, iframe {
  display: block;
  max-width: 100%;
}

/* ── 8. NFS cards: consistent hover for div.nfs-card (non-link) ─────
   <a class="nfs-card"> already has :hover. <div.nfs-card> needs it. */
div.nfs-card:not(.nfs-card-tbd):hover .nfs-thumb img {
  transform: scale(1.025);
}
div.nfs-card:not(.nfs-card-tbd) {
  cursor: default;
}


/* ╔══════════════════════════════════════════════════════════════════╗
   ║  UNIFIED IMAGE SYSTEM — v5                                      ║
   ║  Applied: 2026-06                                               ║
   ║  Fixes:                                                         ║
   ║   • .process-grid / .process-cell — was MISSING, caused chaos  ║
   ║   • .atmosphere-grid / .atm-* — was MISSING, unsized images    ║
   ║   • .image-frame — new unified container class                  ║
   ║   • .exh-photo-set — was missing spacing                       ║
   ║   • Mobile breakpoints for all new grids                        ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* ── PROCESS GRID (artist page — 6 working process photos) ───────────
   Was entirely absent from CSS. Images were rendering at natural size
   with no grid structure, causing the "random image sizes" issue.    */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: var(--space-lg);
}
.process-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bone-soft);
  cursor: zoom-in;
}
.process-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.process-cell:hover img { transform: scale(1.03); }
.process-cell-caption {
  padding: 8px 12px 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--charcoal);
  opacity: 0.70;
  font-style: italic;
  text-align: center;
  background: var(--bone);
  border-top: 1px solid var(--line);
}
/* Materials grid uses inline style="grid-template-columns:repeat(2,1fr)"
   — that inline style is kept intentional for the 2-col materials layout */

@media (max-width: 720px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ── ATMOSPHERE GRID (artist page — 5 studio ambiance photos) ─────────
   Was entirely absent from CSS. Bento-style layout: row 1 spans
   three cells (5-4-3 columns), row 2 is a 50/50 wide pair.           */
.atmosphere-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-top: 4px;
  /* NO padding — full bleed edge to edge */
}
.atmosphere-grid > div {
  overflow: hidden;
  background: var(--bone-soft);
  cursor: zoom-in;
}
.atmosphere-grid > div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.atmosphere-grid > div:hover img { transform: scale(1.03); }
/* Individual cell column spans + aspect ratios */
.atm-a { grid-column: span 5; aspect-ratio: 4/3; }
.atm-b { grid-column: span 4; aspect-ratio: 4/3; }
.atm-c { grid-column: span 3; aspect-ratio: 4/3; }
.atm-d { grid-column: span 6; aspect-ratio: 16/9; }
.atm-e { grid-column: span 6; aspect-ratio: 16/9; }

@media (max-width: 840px) {
  .atmosphere-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  .atm-a, .atm-b, .atm-c,
  .atm-d, .atm-e {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
}
@media (max-width: 480px) {
  .atmosphere-grid { grid-template-columns: 1fr; }
  .atm-a, .atm-b, .atm-c,
  .atm-d, .atm-e {
    aspect-ratio: 3/2;
  }
}

/* ── EXHIBITION PHOTO SET spacing ─────────────────────────────────────
   .exh-photo-set had no CSS — groups a cover + grid, needs spacing.  */
.exh-photo-set {
  margin-bottom: var(--space-xl);
}

/* ── UNIFIED IMAGE FRAME — .image-frame ──────────────────────────────
   New utility container class for any image that needs:
   constrained aspect ratio + cover fill + hover zoom.
   Use alongside aspect-ratio modifiers below.                         */
.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--bone-soft);
  border-radius: 6px;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.image-frame:hover img { transform: scale(1.02); }
/* Aspect ratio modifiers */
.image-frame.ratio-1-1  { aspect-ratio: 1/1; }
.image-frame.ratio-4-3  { aspect-ratio: 4/3; }
.image-frame.ratio-3-2  { aspect-ratio: 3/2; }
.image-frame.ratio-16-9 { aspect-ratio: 16/9; }
.image-frame.ratio-2-3  { aspect-ratio: 2/3; }
.image-frame.ratio-3-4  { aspect-ratio: 3/4; }

/* ── GLOBAL img[width]/img[height] override — REMOVED
   The global img[width], img[height] { height: auto !important } rule
   with !important was overriding height:100% on container-fill images,
   collapsing art-thumb / nfs-thumb / process-cell heights.
   width/height HTML attributes were already removed from all img tags
   in the previous HTML audit pass, so this rule is no longer needed. */

/* ═══════════════════════════════════════════════════════════════════
   FINAL UI POLISH — v10
   1. Collection: transparent background on art-thumb (no mat block)
   2. Craft page: hero-media image constraint + process grid
   3. Artist page: awards-wrap grid + image containment
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Collection — no empty background blocks ─────────────────────
   object-fit:contain inside bone-soft background shows the mat colour
   as a prominent block. Set transparent so only the artwork is visible. */
.gallery-editorial .art-thumb {
  background: transparent;
}
/* Remove the border around the image-only focus area */
.gallery-editorial .art-card .art-info {
  border-top: none;
  padding-top: 10px;
}

/* ── 2. Craft page — hero-media image constraint ─────────────────────
   .hero-media had zero CSS rules; image rendered at full natural size.
   Constrain to a premium editorial ratio with proper overflow. */
.hero-media {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bone-soft);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
@media (max-width: 860px) {
  .hero-media {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* ── 3. Artist page — awards-wrap grid + image constraint ────────────
   .awards-wrap had zero CSS; image had no container constraint.
   2-column grid: certificate image left, text right. */
.awards-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.awards-wrap > div:first-child {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bone-soft);
  aspect-ratio: 3 / 4;
  box-shadow: 0 4px 16px rgba(26,14,6,.10), 0 1px 4px rgba(26,14,6,.06);
}
.awards-wrap > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  cursor: zoom-in;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.awards-wrap > div:first-child:hover img {
  transform: scale(1.03);
}
.awards-wrap .awards-text {
  padding-top: 8px;
}
@media (max-width: 700px) {
  .awards-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Packaging pair ──────────────────────────────────────────────────
   Two packaging images side by side, consistent sizing. */
.packaging-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: var(--space-lg);
}
.packaging-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 4px;
  cursor: zoom-in;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.packaging-pair img:hover { transform: scale(1.02); }
@media (max-width: 600px) {
  .packaging-pair { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE UX PATCH — v11 (2026-07)
   Additive overrides only — no desktop layout or visual-design changes.
   1. 16px form inputs on mobile — prevents iOS focus auto-zoom
   2. >=44px touch targets — mobile nav toggle + lightbox controls
   3. prefers-reduced-motion support
   ═══════════════════════════════════════════════════════════════════ */

/* 1 — iOS Safari force-zooms the viewport when a focused field is < 16px.
   Bump to 16px on small screens only; desktop keeps its 0.94rem sizing. */
@media (max-width: 600px) {
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
}

/* 2 — Minimum 44x44px touch targets. The nav toggle is only shown at
   <=1000px, so this override lives inside that same breakpoint (later rule
   wins) and never affects the desktop hidden state. */
@media (max-width: 1000px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}
/* Lightbox close/arrows drop to 38px at <=600px above — raise to 44px. */
@media (max-width: 600px) {
  .lb-close { width: 44px; height: 44px; }
  .lb-arrow { width: 44px; height: 44px; }
}

/* 3 — Respect reduced-motion: neutralize animations, transitions and
   smooth-scroll. End states are preserved; only the movement is removed. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
