/* =============================================
   STUDIO SHARBAT — style.css
   Aesthetic: Silent Luxury · Parchment & Violet
   ============================================= */

@font-face {
  font-family: 'Adine Kirnberg Alternate';
  src: url('https://db.onlinewebfonts.com/t/0f787f6831cee55260cb3aa468514de1.woff2') format('woff2'),
       url('https://db.onlinewebfonts.com/t/0f787f6831cee55260cb3aa468514de1.woff') format('woff'),
       url('https://db.onlinewebfonts.com/t/0f787f6831cee55260cb3aa468514de1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --midnight:    #271535;
  --grape:       #7e58b6;   /* old grape: #6A4598 */
  --lilac-ash:   #776e6c;   /* muted text/meta — darkened for legibility. Old light value: #8a7d7b */
  --parchment:   #f8f5f3;
  --parchment-2: #f0ece8;
  --coffee:      #2a1c18;
  --coffee-mid:  #392725;
  --coffee-soft: #4a3c3a;
  --grape-light: #6d5573;
  --grape-pale:  #e8e2ec;
  --wine-blood:  #241621;

  --bg:          var(--parchment);
  --bg-2:        var(--parchment-2);
  --bg-dark:     var(--midnight);
  --text:        var(--coffee);
  --text-body:   var(--coffee-soft);
  --text-dim:    var(--lilac-ash);
  --accent:      var(--grape);
  --accent-light:var(--grape-light);
  --border:      rgba(89,67,103,0.15);
  --border-mid:  rgba(89,67,103,0.28);

  --nav-h:       72px;
  --serif:       'Cormorant Garamond', 'Georgia', serif;
  --serif-upright:'Cormorant Upright', 'Georgia', serif;
  --body:        'EB Garamond', 'Georgia', serif;
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Standardized type scale */
  --fs-label:    16px;   /* eyebrows, small labels, buttons, meta */
  --fs-body:     18px;   /* body text, inputs, nav */
  --fs-lead:     20px;   /* lead paragraphs */
}

html { font-size: 110%; scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  background: var(--parchment);
  color: var(--coffee);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.section-label {
  display: block;
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grape);
  margin-bottom: 1rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  background: var(--grape);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--grape);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary:hover {
  background: var(--midnight);
  border-color: var(--midnight);
  color: var(--parchment);
}

.btn-ghost {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: transparent;
  color: var(--grape);
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--border-mid);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-ghost:hover {
  border-color: var(--grape);
  background: var(--grape-pale);
  color: var(--midnight);
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.nav-scrolled {
  background: rgba(248,245,243,0.94);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(14px);
}
.nav-logo-name {
  font-family: 'Adine Kirnberg Alternate', 'Great Vibes', cursive;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--coffee-mid);
  text-shadow: none;
  line-height: 1;
  position: relative;
  top: 3px;
  transition: color var(--transition), text-shadow var(--transition);
  -webkit-font-smoothing: antialiased;
}
/* Home page — nav is white over the dark hero (top of page); once scrolled onto the
   white content it reverts to the normal light bar with dark text. */
body.page-home .nav:not(.nav-scrolled) .nav-logo-name {
  color: #ffffff !important;
  text-shadow: 1px 2px 3px rgba(0,0,0,0.4) !important;
}
body.page-home .nav:not(.nav-scrolled) .nav-links a {
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.35) !important;
}
body.page-home .nav:not(.nav-scrolled) .nav-cart {
  color: rgba(255,255,255,0.95) !important;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.35)) !important;
}
body.page-home .nav:not(.nav-scrolled) .nav-links a:hover { color: #d3b2f4 !important; }
/* The nav search dropdown sits inside .nav-links, so its result rows must NOT inherit the
   home-hero white text + drop shadow meant for the nav links. */
.nav-links .ss-dropdown a, .nav-links .ss-dropdown a * {
  color: var(--coffee-mid) !important;
  text-shadow: none !important;
}
.nav-links .ss-dropdown .ss-result-meta { color: var(--lilac-ash) !important; }
body.page-home .nav:not(.nav-scrolled) {
  /* --hero-nav-bg is sampled from the current hero image (JS); falls back to brown */
  background: var(--hero-nav-bg, rgba(42,28,24,0.30));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  margin-left: 4rem;
}
/* Desktop: links centered on the page (logo left, cart right) */
@media (min-width: 901px) {
  .nav-links { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
}
.nav-links a {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-body);
  text-shadow: none;
  transition: color var(--transition), text-shadow var(--transition);
  -webkit-font-smoothing: antialiased;
}
.nav-links a:hover { color: var(--grape) !important; text-shadow: none !important; }

.nav-cart {
  position: relative;
  color: var(--text-body);
  filter: none;
  transition: color var(--transition), filter var(--transition);
  display: flex;
  align-items: center;
}
.nav-cart:hover { color: var(--grape) !important; filter: none !important; }

.cart-count {
  position: absolute;
  top: -6px; right: -8px;
  width: 16px; height: 16px;
  background: var(--grape);
  color: var(--parchment);
  font-size: 16px;
  font-family: var(--body);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--coffee-mid);   /* dark by default (light pages) */
}
.nav-scrolled .nav-burger span { background: var(--coffee-mid); }
/* White only over the dark home hero (matches the white nav text there) */
body.page-home .nav:not(.nav-scrolled) .nav-burger span { background: rgba(255,255,255,0.88); }



/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  background: var(--midnight);
}
.hero-image-wrap::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  bottom: 0;
  height: 180px;
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, transparent 100%);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-img.loaded { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 3, 22, 0)    0%,
    rgba(8, 3, 22, 0.0)  65%,
    rgba(8, 3, 22, 0.35) 76%,
    rgba(8, 3, 22, 0.72) 86%,
    rgba(8, 3, 22, 0.72) 94%,
    rgba(8, 3, 22, 0.90) 100%
  );
}

/* View Gallery — elegant serif label + circular arrow, lower-right near the scroll hint */
.hero-cta {
  position: absolute;
  bottom: 7.4rem;
  right: 12%;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 0.95rem;
  text-decoration: none;
  opacity: 0;
  animation: heroReveal 1.4s ease forwards;
  animation-delay: 1.05s;
}
.hero-cta-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 25px;
  color: #f2e8d6;                 /* warm ivory */
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.4s cubic-bezier(0.22,1,0.36,1);
}
.hero-cta:hover .hero-cta-text { background-size: 100% 1px; }
.hero-cta-circle {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(242,232,214,0.7);
  display: inline-flex; align-items: center; justify-content: center;
  color: #f2e8d6;                /* warm ivory */
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.hero-cta:hover .hero-cta-circle {
  background: #f2e8d6; color: var(--coffee-mid); border-color: #f2e8d6;
  transform: translateX(5px);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 6rem 5rem;
  animation: heroReveal 1.4s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.hero-band {
  position: absolute;
  bottom: 6.5rem;
  left: 0;
  z-index: 3;
  padding: 1.0rem 8rem 1.0rem 5rem;
  width: 820px;
  max-width: 100%;
  /* --hero-band-rgb is sampled from the current hero image (JS); falls back to purple */
  background: linear-gradient(
    to right,
    rgba(var(--hero-band-rgb, 39,21,53), 0.65) 0%,
    rgba(var(--hero-band-rgb, 39,21,53), 0.55) 58%,
    rgba(var(--hero-band-rgb, 39,21,53), 0.20) 82%,
    transparent 100%
  );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 70%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black 70%, transparent 100%);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: band-wipe 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.5s forwards;
}
/* Text inside band rises up independently */
.hero-band .hero-eyebrow,
.hero-band .hero-title,
.hero-band .hero-title-rule,
.hero-band .hero-sub {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1.4s ease forwards;
}
.hero-band .hero-eyebrow    { animation-delay: 0.5s; }
.hero-band .hero-title      { animation-delay: 0.65s; }
.hero-band .hero-title-rule { animation-delay: 0.8s; margin: 1.25rem 0 1.1rem; }
.hero-band .hero-sub        { animation-delay: 0.9s; margin-bottom: 0; }
@keyframes band-wipe {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to   { clip-path: inset(0 0% 0 0);   opacity: 1; }
}

.hero-eyebrow {
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f2e8d6;
  text-shadow: 1px 2px 0 rgba(0,0,0,0.6);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(62px, 9.9vw, 106px);
  font-weight: 300;
  line-height: 0.95;
  color: #f2e8d6;
  margin-bottom: 1.2rem;
}
/* Second name line — nudged forward and sliding in from the left */
.hero-line-2 {
  display: inline-block;
  margin-left: 0.32em;
  opacity: 0;
  animation: sharbatSlide 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}
@keyframes sharbatSlide {
  from { opacity: 0; transform: translateX(-42px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-highlight {
  display: inline;
  /* Highlight band temporarily disabled */
  background: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.6em 0 0.1em;
}

.hero-title em {
  font-style: italic;
  color: #d3b2f4;
}

.hero-title-rule {
  margin: 1rem 0 1.4rem;
  display: flex;
  align-items: center;
}
.hero-title-rule span {
  display: block;
  width: 52px;
  height: 1.5px;
  background: rgba(211,178,244,0.55);
  position: relative;
}

.hero-sub {
  font-family: var(--body);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: rgba(242,232,214,0.82);
  margin-bottom: 2.2rem;
}

.hero .btn-primary {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  color: rgba(255,255,255,0.95);
}
.hero .btn-primary:hover {
  background: rgba(211,178,244,0.18);
  border-color: #d3b2f4;
  color: #d3b2f4;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: heroReveal 1s ease forwards;
  animation-delay: 1.2s;
}
.hero-scroll-hint span {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,218,198,0.8);      /* warm ivory */
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(176,162,160,0.7), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* --- ABOUT STRIP --- */
.about-strip {
  padding: 7rem 3rem;
  background: var(--parchment-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-strip-text h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: var(--coffee-mid);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.about-strip-text h2 em { font-style: italic; color: var(--grape); }
.about-strip-text p {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.about-strip-text .btn-ghost { margin-top: 1rem; }
.about-strip-image { position: relative; }
.about-img-tint {
  position: relative;
  display: inline-block;
  width: 100%;
}
.about-img-tint::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(60,10,90,0.18);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.about-strip-image img,
.about-img-tint img {
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.about-strip-image img.visible,
.about-img-tint img.visible {
  opacity: 1;
  transform: translateY(0);
  animation: velvet-shadows 0.65s cubic-bezier(0.22,0.61,0.36,1) 0.5s forwards;
}
@keyframes velvet-shadows {
  0%   { box-shadow: 0px 0px 0 rgba(62,38,106,0.0),  0px 0px 0 rgba(62,38,106,0.0); }
  40%  { box-shadow: 7px 8px 0 rgba(62,38,106,0.58), 2px 2px 0 rgba(62,38,106,0.08); }
  100% { box-shadow: 7px 8px 0 rgba(62,38,106,0.55), 14px 16px 0 rgba(62,38,106,0.28); }
}

.about-strip-caption {
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--lilac-ash);
  font-style: italic;
}
.about-strip-caption-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.about-strip-caption-link:hover { color: var(--grape); text-decoration: underline; }

/* --- FEATURED WORKS --- */
.featured {
  padding: 7rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.featured-header { margin-bottom: 3rem; }
.featured-header h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  color: var(--coffee-mid);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.painting-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.painting-card-img-wrap {
  aspect-ratio: 21/20;
  overflow: hidden;
  position: relative;
}
.painting-card-img-wrap img { transition: transform 0.75s ease; }
.painting-card:hover .painting-card-img-wrap img { transform: scale(1.04); }

.painting-card-info {
  position: absolute;
  bottom: 1.2rem;
  left: 0;
  display: flex;
  align-items: center;
}
.painting-card-info::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245,240,235,0.9);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  clip-path: polygon(0% 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  backdrop-filter: blur(4px);
}
.painting-card:hover .painting-card-info::before { transform: scaleX(1); }
.painting-card-title {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: transparent;
  letter-spacing: 0.04em;
  padding: 0.45rem 2rem 0.45rem 1.4rem;
  /* Exit: text clears quickly, before the ribbon finishes retracting */
  transition: color 0.16s ease;
  white-space: nowrap;
  text-shadow: none;
}
/* Enter: text fades in after the ribbon has started sweeping */
.painting-card:hover .painting-card-title { color: var(--coffee-mid); transition: color 0.3s ease 0.15s; }

.featured-footer { margin-top: 3rem; text-align: center; }

/* --- PRINT CTA --- */
.print-cta {
  background: #f0ece8;
  border-top: 1px solid var(--border);
  padding: 7rem 3rem;
}
.print-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.print-cta-left { padding-top: 0.1rem; }
.print-cta-left .section-label { color: var(--grape); }
.print-cta-left h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 300;
  color: var(--coffee-mid);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.print-cta-left h2 em { font-style: italic; color: var(--grape); }
.print-cta-left > p {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 2rem;
}
.print-cta-actions {
  display: flex;
  align-items: center;
  gap: 5.2rem;
  flex-wrap: wrap;
}
.print-process-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}
.print-process-link:hover { color: var(--grape); border-color: var(--grape); }
.print-cta .btn-primary {
  background: var(--grape);
  border-color: var(--grape);
  color: var(--parchment);
}
.print-cta .btn-primary:hover {
  background: var(--midnight);
  border-color: var(--midnight);
  color: var(--parchment);
}

.print-cta-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.print-spec-row {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.print-spec-icon {
  flex-shrink: 0;
  width: 32px;
  padding-top: 2px;
  color: var(--grape);
  opacity: 0.7;
}
.print-spec-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--coffee-mid);
  margin-bottom: 0.15rem;
}
.print-spec-text span {
  font-family: var(--body);
  font-size: 16px;
  color: var(--lilac-ash);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* --- FOOTER --- */
.footer {
  background: var(--wine-blood);
  border-top: 1px solid rgba(176,162,160,0.1);
  padding: 4rem 3rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(176,162,160,0.1);
}
.footer-logo {
  font-family: 'Adine Kirnberg Alternate', 'Great Vibes', cursive;
  font-size: 40px;
  font-weight: 400;
  color: #c9bcc4;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
}
.footer-tagline {
  font-size: 16px;
  color: var(--lilac-ash);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.footer-insta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin-bottom: 0.6rem;
}
.footer-insta-arrow {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.footer-insta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition), letter-spacing var(--transition);
  margin-bottom: 0.2rem;
  cursor: pointer;
}
.footer-insta:hover { color: #fff; letter-spacing: 0.11em; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac-ash);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--parchment); }
.footer-social { display: flex; gap: 1rem; align-items: center; }
.footer-social a { color: var(--lilac-ash); transition: color var(--transition); }
.footer-social a:hover { color: var(--parchment); }
/* Footer sits on a dark background — keep its muted text lighter than the darkened
   light-background token so it stays legible. */
.footer-tagline,
.footer-links a,
.footer-social a,
.footer-bottom a:hover { color: #a1938f; }
.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p,
.footer-bottom a {
  font-size: 16px;
  color: rgba(198,186,183,0.75);
  letter-spacing: 0.06em;
}
.footer-bottom div { display: flex; gap: 1.5rem; }
.footer-bottom a:hover { color: var(--lilac-ash); }

/* --- GALLERY PAGE --- */
.gallery-page {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 6rem;
  background: var(--parchment);
}
.gallery-page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.gallery-page-header h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  color: var(--coffee-mid);
}
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.4rem 1.2rem;
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-body);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--grape);
  color: var(--grape);
  background: var(--grape-pale);
}
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
}

/* --- PAINTING PAGE --- */
.painting-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
  background: var(--parchment);
}

.footer-subscribe-head {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--parchment);
  margin-bottom: 0.25rem;
}

/* --- FOOTER TAGLINE CHROME SHINE --- */
.footer-tagline-text {
  font-family: var(--body);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
}
.footer-shine-band {
  display: inline-block;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,0.88);
  vertical-align: middle;
  font-size: 20px;
}
.footer-shine-band .footer-insta {
  color: rgba(255,255,255,0.88);
  font-size: 20px;
  letter-spacing: 0.06em;
}
.footer-shine-band svg { color: inherit; }
.footer-brand-divider {
  width: 36px;
  height: 1px;
  background: rgba(176,162,160,0.25);
  margin: 2rem 0 1rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: fixed;
    top: var(--nav-h);
    right: 0; left: auto;
    z-index: 99;   /* above page content (some pages create stacking contexts) */
    width: 230px; max-width: 82vw;
    background: rgba(248,245,243,0.98);
    padding: 1.6rem 1.5rem;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(39,21,53,0.16);
  }
  /* Dropdown matches the section it sits over. Default (above) is light with the nav's
     dark links. On the home hero the nav is dark (and its links already white) → dark panel. */
  body.page-home .nav:not(.nav-scrolled) .nav-links.nav-open {
    background: rgba(39,21,53,0.96); border-color: rgba(255,255,255,0.12);
  }
  .nav-burger { display: flex; }
  /* Cart sits toward the right on mobile, with a comfortable gap before the burger */
  .nav-cart { margin-left: auto; margin-right: 1.4rem; }
  .hero-content { padding: 0 1.5rem 4rem; }
  .hero-scroll-hint { right: 1.5rem; }
  /* Band text pulled toward the left edge; sits above the CTA */
  .hero-band { padding: 0.85rem 2.5rem 0.85rem 1.5rem; bottom: 9rem; }
  /* CTA drops below the band (was overlapping it at right:12%) */
  .hero-cta { right: auto; left: 1.5rem; bottom: 3rem; }
  .hero-cta-text { font-size: 21px; }
  .hero-cta-circle { width: 40px; height: 40px; }
  .about-strip,
  .featured,
  .print-cta { padding: 4rem 1.5rem; }
  .about-strip-inner,
  .print-cta-inner { grid-template-columns: 1fr; gap: 3rem; }
  .featured-grid,
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner > * { min-width: 0; }
  .footer { padding: 3rem 1.5rem 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 1rem 1.5rem; }
  /* Mailing form: input must shrink so the row never runs off-screen (input has inline width:200px) */
  .footer-mailing { width: 100%; max-width: 360px; }
  .footer-mailing input[type="email"] { width: auto !important; flex: 1 1 auto; min-width: 0; }
  .footer-mailing button { flex-shrink: 0; }
}

@media (max-width: 540px) {
  .featured-grid,
  .gallery-grid { grid-template-columns: 1fr; }
}

/* --- MAILING LIST --- */
.mailing-section {
  background: var(--midnight);
  padding: 6rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Subtle radial glow */
.mailing-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 940px; height: 560px;
  /* Fade fully transparent by ~68% so the box edges (edge-midpoints sit at ~71%
     of a farthest-corner ellipse) never show a rectangular cutoff. */
  background: radial-gradient(ellipse at center, rgba(140,96,196,0.24) 0%, rgba(122,84,174,0.11) 26%, rgba(106,69,152,0.04) 47%, transparent 68%);
  pointer-events: none;
  z-index: 15;   /* sit above the background art (below the text at z-20) */
}
.mailing-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}
.mailing-eyebrow {
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(211,178,244,0.55);
  margin-bottom: 1rem;
}
.mailing-heading {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  font-style: italic;
  color: var(--parchment);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.mailing-sub {
  font-family: var(--body);
  font-size: 18px;
  color: rgba(220,210,215,0.8);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.mailing-fields {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto 0.8rem;
  position: relative;
}
/* Cursor-following spotlight — lights up the box where the cursor is (JS sets --spot-*) */
.mailing-fields::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 95px at var(--spot-x, 50%) var(--spot-y, 50%), rgba(214,180,255,0.55), transparent 70%);
  opacity: var(--spot-o, 0);
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}
.mailing-fields input[type="email"] {
  flex: 1;
  min-width: 0;   /* let the field shrink so the band stays centered (no right overflow) on mobile */
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(176,162,160,0.2);
  border-right: none;
  color: rgba(248,245,243,0.9);
  font-family: var(--body);
  font-size: 16px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.mailing-fields input[type="email"]:focus {
  border-color: rgba(211,178,244,0.4);
}
.mailing-fields input[type="email"]::placeholder {
  color: rgba(220,210,215,0.5);
}
.mailing-fields button {
  background: rgba(106,69,152,0.8);
  border: 1px solid rgba(211,178,244,0.2);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.mailing-fields button:hover {
  background: var(--grape);
}
.mailing-note {
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: rgba(220,210,215,0.55);
}
.mailing-success {
  display: none;
}
.mailing-success p {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  color: rgba(211,178,244,0.7);
}

/* ── MAILING DISCOUNT MODAL ── */
.ss-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,10,25,0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 1.5rem;
}
.ss-modal.open { opacity: 1; visibility: visible; }
.ss-modal-card {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  width: min(760px, 100%); max-height: 90vh; overflow: hidden;
  background: var(--parchment);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.45s cubic-bezier(0.2,0.8,0.3,1);
}
.ss-modal.open .ss-modal-card { transform: none; }
.ss-modal-art { background-position: center; background-size: cover; background-repeat: no-repeat; min-height: 380px; }
/* min-height ≥ the form state's height so the success state doesn't shrink the card */
.ss-modal-body { padding: 2.6rem 2.4rem; display: flex; flex-direction: column; justify-content: center; min-height: 460px; box-sizing: border-box; }
.ss-modal-art { min-height: 460px; }
.ss-modal-close {
  position: absolute; top: 0.8rem; right: 0.9rem; z-index: 2;
  background: rgba(255,255,255,0.65); border: none; border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer; font-size: 16px; color: var(--coffee-mid);
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background 0.2s;
}
.ss-modal-close:hover { background: #fff; }
.ss-modal-eyebrow { font-family: var(--body); font-size: 16px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--grape); margin-bottom: 0.9rem; }
.ss-modal-title { font-family: var(--serif); font-size: clamp(28px,3.4vw,38px); font-weight: 300; color: var(--coffee-mid); line-height: 1.1; margin-bottom: 0.8rem; }
.ss-modal-title em { font-style: italic; color: var(--grape); }
.ss-modal-sub { font-family: var(--body); font-size: 16px; color: var(--text-body); line-height: 1.7; margin-bottom: 1.6rem; }
.ss-modal-form { display: flex; flex-direction: column; gap: 0.7rem; }
.ss-modal-form input {
  border: 1px solid var(--border-mid); background: #fff; padding: 0.7rem 0.9rem;
  font-family: var(--body); font-size: 16px; color: var(--coffee-mid); outline: none;
}
.ss-modal-form input:focus { border-color: var(--grape); }
.ss-modal-form button {
  background: var(--grape); color: var(--parchment); border: none; cursor: pointer;
  padding: 0.75rem; font-family: var(--body); font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.25s;
}
.ss-modal-form button:hover { background: var(--midnight); }
.ss-modal-dismiss {
  background: none; border: none; cursor: pointer; margin-top: 0.9rem; padding: 0;
  font-family: var(--body); font-size: 16px; color: var(--lilac-ash); letter-spacing: 0.04em;
  text-decoration: underline; text-underline-offset: 3px; align-self: center;
}
.ss-modal-dismiss:hover { color: var(--grape); }
/* Form + success message stacked in one cell → the box height never changes on submit */
.ss-modal-swap { display: grid; }
.ss-modal-swap > * { grid-area: 1 / 1; align-self: center; }
.ss-modal-done { visibility: hidden; font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--grape); }
@media (max-width: 640px) {
  .ss-modal-card { grid-template-columns: 1fr; }
  .ss-modal-art { min-height: 150px; }
  .ss-modal-body { padding: 2rem 1.6rem; }
}

/* ── GALLERY MAILING BANNER ── */
.gallery-banner {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 90;
  height: var(--banner-h, 44px);
  display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  padding: 0 3rem;
  background: #bda9d6;                 /* dusty lilac-grape */
  color: var(--midnight);
  box-shadow: 0 2px 10px rgba(89,67,103,0.22);
  overflow: hidden;                    /* clips content as it collapses on dismiss */
  transition: opacity 0.3s ease;
  /* Elegant left-to-right wipe-in on first view */
  animation: bannerWipe 0.7s cubic-bezier(0.25,0.46,0.45,0.94) 0.5s both;
}
@keyframes bannerWipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.gallery-banner p { font-family: var(--body); font-size: 16px; letter-spacing: 0.05em; color: rgba(39,21,53,0.85); }
.gallery-banner p strong { color: var(--midnight); font-weight: 600; }
.gallery-banner form { display: flex; gap: 0.5rem; }
/* Sleek underline field (no chunky box) on the lilac band */
.gallery-banner input {
  border: none; border-bottom: 1px solid rgba(39,21,53,0.4); background: transparent;
  color: var(--midnight); font-family: var(--body); font-size: 16px;
  padding: 0.28rem 0.15rem; outline: none; width: 190px;
  transition: border-color 0.2s;
}
.gallery-banner input:focus { border-bottom-color: var(--midnight); }
.gallery-banner input::placeholder { color: rgba(39,21,53,0.5); }
.gallery-banner button[type=submit] {
  background: none; color: var(--midnight); border: none; cursor: pointer;
  font-family: var(--body); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.28rem 0.1rem; white-space: nowrap;
  border-bottom: 1px solid var(--midnight); transition: opacity 0.2s;
}
.gallery-banner button[type=submit]:hover { opacity: 0.6; background: none; }
.gallery-banner-close {
  position: absolute; right: 1rem; background: none; border: none; cursor: pointer;
  color: rgba(39,21,53,0.55); font-size: 17px; line-height: 1; padding: 0.3rem;
}
.gallery-banner-close:hover { color: var(--midnight); }
.gallery-banner-done { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--grape); }
@media (max-width: 760px) {
  /* Reserve room on the right for the ✕ close so the Join button never sits under it */
  .gallery-banner { padding: 0 2.6rem 0 1rem; gap: 0.5rem; font-size: 13px; }
  .gallery-banner p { font-size: 13px; }
  .gallery-banner .gallery-banner-long { display: none; }
  .gallery-banner form { gap: 0.4rem; }
  /* Smaller input so the label text stays on one line */
  .gallery-banner input { width: 120px; padding: 0.22rem 0.6rem; }
  .gallery-banner button[type=submit] { padding: 0.22rem 0.6rem; }
}
@media (max-width: 420px) {
  .gallery-banner input { width: 92px; }
}


/* ── SEARCH ──────────────────────────────────────────────── */
.ss-nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.ss-nav-search-wrap { display: flex; align-items: center; }
.ss-search-icon-btn {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center;
  padding: 0; transition: color 0.2s;
  /* Match nav-links a color in scrolled state */
  color: var(--text-body);
}
.ss-search-icon-btn:hover { color: var(--grape) !important; }
/* White icon only over the dark hero (top of home). Once scrolled it reverts to
   the default dark icon like the rest of the nav. */
body.page-home .nav:not(.nav-scrolled) .ss-search-icon-btn {
  color: rgba(255,255,255,0.95) !important;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.35)) !important;
}
body.page-home .nav:not(.nav-scrolled) .ss-search-icon-btn:hover { color: #d3b2f4 !important; }
/* Scrolled state */
.nav-scrolled .ss-search-icon-btn { color: var(--text-body); filter: none; }

.ss-search-input-wrap {
  position: absolute;
  left: calc(100% + 0.5rem);   /* desktop: opens to the RIGHT of the icon */
  top: 50%; transform: translateY(-50%);
  display: flex; align-items: center;
  background: rgba(248,245,243,0.97);
  border: 1px solid rgba(89,67,103,0.25);
  border-radius: 999px;         /* pill */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  width: 0; opacity: 0;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
  pointer-events: none;
  z-index: 200;
}
.ss-search-input-wrap.open {
  width: 190px; opacity: 1; pointer-events: all;
}
.ss-search-input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--body); font-size: 16px; color: var(--coffee-mid);
  padding: 0.38rem 0.4rem 0.38rem 1rem; min-width: 0;  /* match gallery pill height */
}
.ss-search-input::placeholder { color: var(--lilac-ash); }
.ss-search-clear {
  background: none; border: none; cursor: pointer;
  color: var(--lilac-ash); padding: 0 0.6rem;
  font-size: 18px; line-height: 1; display: none;
}
.ss-search-clear.visible { display: block; }

/* Shared dropdown */
.ss-dropdown, .ss-gallery-dropdown {
  position: absolute;
  background: rgba(248,245,243,0.99);
  border: 1px solid rgba(89,67,103,0.15);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  max-height: 420px; overflow-y: auto;
  display: none; z-index: 300;
}
/* Match the gallery search dropdown: flush under the input, same width, sharp corners */
.ss-dropdown { top: calc(100% + 6px); left: calc(100% + 0.5rem); width: 260px; }
.ss-dropdown.visible, .ss-gallery-dropdown.visible { display: block; }
/* Mobile: tapping search opens a clean full-width bar directly below the nav, with the
   results panel spanning the whole screen right beneath it (the desktop expand-to-the-right
   runs off-screen and the narrow menu squished the results). */
@media (max-width: 900px) {
  .ss-search-input-wrap {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    transform: none; width: auto; border-radius: 0;
    border: none; border-bottom: 1px solid var(--border);
    background: var(--parchment);
    box-shadow: 0 6px 16px rgba(20,10,35,0.12);
    padding: 0.3rem 1rem 0.3rem 0.6rem; box-sizing: border-box; z-index: 350;
  }
  .ss-search-input-wrap.open { width: auto; }
  .ss-search-input { font-size: 16px; padding: 0.55rem 0.4rem 0.55rem 0.8rem; }
  .ss-dropdown {
    position: fixed; top: calc(var(--nav-h) + 51px); left: 0; right: 0;
    width: auto; max-height: 68vh; border-radius: 0;
    border-left: none; border-right: none; z-index: 349;
    box-shadow: 0 10px 22px rgba(20,10,35,0.18);
  }
}
.ss-dropdown-empty {
  padding: 1.2rem 1rem;
  font-family: var(--body); font-size: 16px;
  color: var(--lilac-ash); font-style: italic;
}
.ss-result {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid rgba(89,67,103,0.08);
  transition: background 0.15s; cursor: pointer;
}
.ss-result:last-child { border-bottom: none; }
.ss-result:hover, .ss-result.focused { background: rgba(106,69,152,0.06); }
.ss-result-img {
  width: 44px; height: 44px; object-fit: cover;
  flex-shrink: 0; background: var(--parchment-2);
}
.ss-result-info { flex: 1; min-width: 0; }
.ss-result-title {
  font-family: var(--serif); font-size: 18px; font-style: italic;
  color: var(--coffee-mid); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ss-result-meta {
  font-family: var(--body); font-size: 16px;
  color: var(--lilac-ash); letter-spacing: 0.06em; margin-top: 1px;
}
.ss-result-sold {
  font-family: var(--body); font-size: 16px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #a0614a; flex-shrink: 0;
}
/* Page/section results in the global search */
.ss-result-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(106,69,152,0.08); color: var(--grape);
}
.ss-result-kind {
  font-family: var(--body); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lilac-ash); flex-shrink: 0;
  border: 1px solid rgba(89,67,103,0.2); border-radius: 999px;
  padding: 0.1rem 0.5rem;
}
.ss-result--page .ss-result-title { font-style: normal; }

/* Gallery pill */
.ss-pill-wrap {
  position: relative;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.38rem 1rem;
  border: 1px solid rgba(89,67,103,0.22);
  border-radius: 999px;
  background: rgba(248,245,243,0.6);
  min-width: 180px; max-width: 330px; flex: 1;
}
.ss-pill-input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--body); font-size: 16px; color: var(--coffee-mid);
  min-width: 0;
}
.ss-pill-input::placeholder { color: rgba(89,67,103,0.35); }
.ss-gallery-dropdown {
  top: calc(100% + 6px); left: 0; right: 0; min-width: 280px;
}