/*
 * The site design ("salon"): the homepage, /about and /contact. Light, luminous and editorial: a blown-up painting as atmosphere, a big
 * serif voice, and the art itself hung at its real proportions on a calm paper sheet.
 *
 * Loads after style.css and v2.css, which still style the chat widget's internals and the lightbox; this
 * file owns the page and re-skins those pieces where they appear here. Everything is scoped under .salon, so
 * the older pages still on landing.css (/app, /classic) are untouched.
 *
 * Fluid throughout: type, spacing and the grid scale continuously with the viewport (clamp + auto-fill), with
 * breakpoints only where the layout genuinely changes shape (the concierge becomes a bottom sheet on phones).
 *
 * The backdrop comes from SiteBackdrop.kt as --backdrop-lg / --backdrop-sm / --backdrop-focus / --backdrop-tint.
 */

.salon {
  /* palette, drawn from the painting: paper, ink, terracotta roofs, ochre fields, sky */
  --s-paper: #f7f3ea;
  --s-paper-hi: #fbf9f4;
  --s-ink: #1b201c;
  --s-ink-soft: #454b44;
  --s-muted: #7b7d71;
  --s-line: rgba(27, 32, 28, 0.12);
  --s-terracotta: #b4532f;
  --s-ochre: #c99a4b;
  --s-sky: #a9bfcc;

  --s-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --s-sans: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;

  --s-gutter: clamp(1.1rem, 4.2vw, 4.5rem);
  --s-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --scroll-p: 0; /* 0 at the top, 1 one viewport down - set by salon.js */

  background: var(--backdrop-tint, #c9c7b0);
  color: var(--s-ink);
  font-family: var(--s-sans);
  font-size: clamp(16px, 0.2vw + 15px, 18px);
  line-height: 1.55;
  letter-spacing: 0;
  min-height: 100svh;
  overflow-x: hidden;
}
/* Pages without the older style.css (about, contact) need their own baseline. */
.salon { margin: 0; }
.salon *, .salon *::before, .salon *::after { box-sizing: border-box; }
.salon h1, .salon h2, .salon h3 { color: var(--s-ink); font-family: var(--s-display); }
.salon ::selection { background: rgba(180, 83, 47, 0.18); }
.salon-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ================= backdrop: the painting, blown up ================================================== */
.salon-backdrop {
  position: fixed;
  inset: -8vh -6vw; /* room to drift without exposing an edge */
  z-index: -2;
  background-color: var(--backdrop-tint);
  background-image: var(--backdrop-lg);
  background-position: var(--backdrop-focus, 50% 50%);
  background-size: cover;
  background-repeat: no-repeat;
  /* Close enough to read the brushwork. Drifts up and in slightly as you scroll. */
  transform: translate3d(0, calc(var(--scroll-p) * -5vh), 0) scale(calc(1.12 + var(--scroll-p) * 0.05));
  will-change: transform;
}
@media (max-width: 1280px) {
  .salon-backdrop { background-image: var(--backdrop-sm); }
}
/* A luminous veil: light at the top so the painting sings behind the headline, warming to paper as you scroll. */
.salon-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 18% 38%, rgba(251, 249, 244, 0.72) 0%, rgba(251, 249, 244, 0.18) 55%, rgba(251, 249, 244, 0) 75%),
    linear-gradient(180deg, rgba(247, 243, 234, 0.1) 0%, rgba(247, 243, 234, 0.05) 50%, rgba(247, 243, 234, 0.35) 100%);
  opacity: calc(1 + var(--scroll-p) * 0.4);
}

/* ================= header ============================================================================ */
.salon-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.8rem, 1.6vw, 1.3rem) var(--s-gutter);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s var(--s-ease);
}
.salon-bar.is-scrolled {
  background: rgba(247, 243, 234, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 var(--s-line);
  padding-block: 0.7rem;
}
.salon-mark {
  font-family: var(--s-display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.03em;
  color: var(--s-ink);
  text-decoration: none;
}
.salon-nav { display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.6rem); }
.salon-nav-link {
  color: var(--s-ink);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}
.salon-nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--s-ease);
}
.salon-nav-link:hover::after { transform: scaleX(1); }
@media (max-width: 640px) { .salon-nav-link { display: none; } }

.salon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.5rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 32, 28, 0.16);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--s-ink);
  font: 500 0.92rem/1 var(--s-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--s-ease), background 0.25s ease, box-shadow 0.25s ease;
}
.salon-pill:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.85); }
.salon-pill-ink { background: var(--s-ink); color: var(--s-paper-hi); border-color: var(--s-ink); }
.salon-pill-ink:hover { background: #2c332d; }
#concierge-open { position: relative; }
#concierge-open.has-news::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #e07a52;
  border: 2px solid var(--s-paper-hi);
  animation: salon-ping 1.6s infinite;
}
.salon-heart { color: var(--s-terracotta); font-size: 0.95rem; }
.salon-saved.bump { animation: salon-bump 0.5s var(--s-ease); }
@keyframes salon-bump { 40% { transform: scale(1.14); } }

/* ================= hero ============================================================================== */
.salon-hero {
  position: relative;
  min-height: 92svh; /* leaves the sheet peeking up from the bottom: there's more below */
  display: flex;
  align-items: center;
  padding: clamp(6.5rem, 14vh, 9rem) var(--s-gutter) clamp(5.5rem, 12vh, 7.5rem);
}
.salon-hero-inner { width: min(100%, 64rem); }
.salon-kicker {
  display: block;
  font: 600 0.74rem/1.2 var(--s-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--s-ink-soft);
  margin-bottom: clamp(0.9rem, 2vh, 1.4rem);
}
.salon-title {
  font-family: var(--s-display);
  font-weight: 560;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2.7rem, 1rem + 6vw, 7.2rem);
  line-height: 0.96;
  letter-spacing: -0.028em;
  max-width: 13ch;
  margin: 0;
  text-wrap: balance;
}
.salon-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--s-terracotta);
  letter-spacing: -0.03em;
}
.salon-lede {
  margin: clamp(1.1rem, 2.6vh, 1.8rem) 0 0;
  max-width: 40ch;
  font-size: clamp(1.02rem, 0.9rem + 0.45vw, 1.28rem);
  line-height: 1.5;
  color: var(--s-ink-soft);
  text-wrap: pretty;
}

/* the one search box: the main way in */
.salon-search {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: min(100%, 44rem);
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 60px -28px rgba(38, 44, 28, 0.55), 0 2px 6px rgba(38, 44, 28, 0.06);
  transition: box-shadow 0.35s ease, transform 0.35s var(--s-ease), background 0.35s ease;
}
.salon-search:focus-within {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 30px 70px -26px rgba(38, 44, 28, 0.6), 0 0 0 3px rgba(180, 83, 47, 0.22);
}
.salon-search-input {
  flex: 1;
  min-width: 0;
  height: 3.2rem;
  padding: 0 0.6rem 0 1.15rem;
  border: 0;
  background: transparent;
  font: 400 clamp(1rem, 0.95rem + 0.3vw, 1.15rem) var(--s-sans);
  color: var(--s-ink);
  outline: none;
}
.salon-search-input::placeholder { color: #80837a; transition: opacity 0.3s ease; }
.salon-search-input.is-cycling::placeholder { opacity: 0; }
.salon-search-photo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 3.2rem;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--s-ink-soft);
  font: 500 0.9rem var(--s-sans);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.salon-search-photo:hover { background: rgba(27, 32, 28, 0.06); color: var(--s-ink); }
.salon-search-go {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 3.2rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--s-ink);
  color: var(--s-paper-hi);
  font: 600 0.98rem var(--s-sans);
  cursor: pointer;
  transition: background 0.25s ease;
}
.salon-search-go:hover { background: #2c332d; }
.salon-search-go-arrow { display: inline-block; transition: transform 0.3s var(--s-ease); }
.salon-search-go:hover .salon-search-go-arrow { transform: translateX(4px); }
@media (max-width: 560px) {
  .salon-search-photo-label { display: none; }
  .salon-search-go > span:first-child { display: none; }
  .salon-search-go { padding: 0 1.15rem; font-size: 1.15rem; }
}

/* prompt chips: one tap to a search, in the display face so they read as ideas rather than filters */
.salon-prompts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  max-width: 52rem;
}
.salon-prompts-label {
  font: 600 0.72rem var(--s-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--s-ink-soft);
  margin-right: 0.3rem;
}
.salon-prompt {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 32, 28, 0.16);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--s-ink);
  font: italic 400 1rem/1.2 var(--s-display);
  cursor: pointer;
  opacity: 0;
  animation: salon-rise 0.8s var(--s-ease) forwards;
  animation-delay: calc(0.5s + var(--i, 0) * 0.07s);
  transition: background 0.25s ease, transform 0.25s var(--s-ease), border-color 0.25s ease;
}
.salon-prompt:hover { background: rgba(255, 255, 255, 0.88); transform: translateY(-2px); border-color: rgba(27, 32, 28, 0.3); }
.salon-prompt-backdrop { border-color: rgba(180, 83, 47, 0.45); color: var(--s-terracotta); }

/* the museum label for the backdrop */
.salon-credit {
  position: absolute;
  left: var(--s-gutter);
  bottom: clamp(1.4rem, 4vh, 2.4rem);
  margin: 0;
  max-width: 36ch;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--s-ink-soft);
}
.salon-credit-artist { font-weight: 600; color: var(--s-ink); }
.salon-credit-source {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--s-muted);
}
.salon-cue {
  position: absolute;
  right: var(--s-gutter);
  bottom: clamp(1.4rem, 4vh, 2.4rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s-ink);
  text-decoration: none;
  font: italic 400 1.05rem var(--s-display);
}
.salon-cue-arrow {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 1px solid rgba(27, 32, 28, 0.25);
  font-style: normal;
  animation: salon-bob 2.4s ease-in-out infinite;
}
@keyframes salon-bob { 50% { transform: translateY(5px); } }
@media (max-width: 720px) {
  .salon-cue { display: none; }
}

/* entrance: the hero composes itself */
.salon-kicker, .salon-title, .salon-lede, .salon-search {
  opacity: 0;
  animation: salon-rise 1s var(--s-ease) forwards;
}
.salon-hero .salon-kicker { animation-delay: 0.05s; }
.salon-title { animation-delay: 0.12s; }
.salon-lede { animation-delay: 0.24s; }
.salon-search { animation-delay: 0.34s; }
@keyframes salon-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ================= the paper sheet: styles + the hang ================================================ */
.salon-sheet, .salon-footer {
  position: relative;
  background: rgba(250, 248, 243, 0.95);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);
  backdrop-filter: blur(28px) saturate(1.1);
}
.salon-sheet {
  border-radius: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0 0;
  padding: clamp(1.8rem, 4.5vw, 3.8rem) var(--s-gutter) clamp(2rem, 5vw, 4rem);
  box-shadow: 0 -40px 80px -50px rgba(30, 36, 24, 0.45);
}
.salon-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1rem, 2.2vw, 1.6rem);
}
.salon-h2 {
  margin: 0;
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.salon-subhead {
  margin: 0.55rem 0 0;
  max-width: 58ch;
  color: var(--s-ink-soft);
}

/* style rail: big tactile tiles you can flick through */
.salon-styles { margin-bottom: clamp(2.4rem, 6vw, 4.5rem); }
.salon-styles:has(.salon-style-rail:not(.show)) { display: none; }
.salon-rail-arrows { display: flex; gap: 0.4rem; }
.salon-arrow {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--s-line);
  background: transparent;
  color: var(--s-ink);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--s-ease);
}
.salon-arrow:hover { background: #fff; transform: scale(1.05); }
@media (hover: none) { .salon-rail-arrows { display: none; } }

.salon-style-rail {
  display: none;
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--s-gutter);
  margin: 0 calc(var(--s-gutter) * -1);
  padding: 0.3rem var(--s-gutter) 0.8rem;
  scrollbar-width: none;
  cursor: grab;
}
.salon-style-rail::-webkit-scrollbar { display: none; }
.salon-style-rail.show { display: flex; }
.salon-style-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.salon-style-rail.is-dragging .style-tile { pointer-events: none; }
.salon .style-tile {
  position: relative;
  flex: 0 0 auto;
  width: clamp(9.5rem, 15vw, 14rem);
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: clamp(14px, 1.4vw, 20px);
  overflow: hidden;
  background: linear-gradient(160deg, var(--s-sky), #e9dfc6 55%, var(--s-ochre));
  scroll-snap-align: start;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.45s var(--s-ease), box-shadow 0.45s var(--s-ease);
}
.salon .style-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--s-ease);
}
.salon .style-tile::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(16, 18, 14, 0.62));
  z-index: 0;
}
.salon .style-tile-label {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.8rem;
  z-index: 1;
  text-align: left;
  font: italic 450 clamp(1.05rem, 0.9rem + 0.5vw, 1.35rem)/1.1 var(--s-display);
  color: #fffdf8;
}
.salon .style-tile-all::after { display: none; }
.salon .style-tile-all .style-tile-label { color: var(--s-ink); font-size: clamp(1.4rem, 1rem + 1vw, 2rem); top: 0.9rem; bottom: auto; }
.salon .style-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(30, 36, 24, 0.6); }
.salon .style-tile:hover img { transform: scale(1.07); }
.salon .style-tile.is-active { box-shadow: 0 0 0 2px var(--s-paper-hi), 0 0 0 4px var(--s-ink); }

/* ================= the hang: pieces at their real proportions ======================================= */
.salon-hang { scroll-margin-top: 5rem; }
/* "Your search" sits above the heading only while the wall holds the user's own results. */
.salon-hang-kicker { display: none; }
.salon-hang.is-matches .salon-hang-kicker { display: block; color: var(--s-terracotta); margin-bottom: 0.6rem; }
.salon-hang.is-matches #gallery-eyebrow { animation: salon-rise 0.7s var(--s-ease); }
/* While a search runs, the current wall steps back and the subhead breathes. */
.salon-grid { transition: opacity 0.5s ease, filter 0.5s ease; }
.salon-hang.is-searching .salon-grid { opacity: 0.28; filter: saturate(0.6); pointer-events: none; }
.salon-hang.is-searching .salon-subhead { animation: salon-breathe 1.8s ease-in-out infinite; }
.salon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(160px, 19vw, 300px), 1fr));
  column-gap: clamp(1rem, 2.6vw, 2.6rem);
  align-items: start;
}
/* With salon.js each card spans rows by its own height, so tall and wide works pack like a salon wall. */
.salon-grid.is-masonry { grid-auto-rows: 6px; }

.salon .salon-grid .chat-art-card {
  position: relative;
  width: auto;
  margin: 0 0 clamp(1.6rem, 3vw, 2.6rem);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.salon .salon-grid .art-card-link {
  display: block;
  width: auto;
  border: 0;
  background: none;
  overflow: visible;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}
.salon .salon-grid .art-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  min-height: 120px; /* keeps a slot while the image loads */
  object-fit: contain;
  border-radius: 2px;
  background: rgba(27, 32, 28, 0.05);
  box-shadow: 0 1px 2px rgba(20, 22, 16, 0.1), 0 22px 36px -24px rgba(20, 22, 16, 0.55);
  transition: transform 0.6s var(--s-ease), box-shadow 0.6s var(--s-ease);
}
.salon .salon-grid .art-thumb[data-loaded] { min-height: 0; background: none; }
.salon .salon-grid .art-card-link:hover .art-thumb {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(20, 22, 16, 0.08), 0 36px 50px -26px rgba(20, 22, 16, 0.6);
}
.salon .salon-grid .art-info { padding: 0.85rem 0 0; }
.salon .salon-grid .art-title {
  font: 450 clamp(0.98rem, 0.92rem + 0.2vw, 1.08rem)/1.28 var(--s-display);
  letter-spacing: -0.005em;
  color: var(--s-ink);
}
.salon .salon-grid .art-price {
  margin-top: 0.35rem;
  font: 600 0.92rem var(--s-sans);
  color: var(--s-ink);
}
/* "From $X" already says the price varies; the full note stays in the lightbox. */
.salon .salon-grid .art-price-note { display: none; }
/* A piece whose image won't load isn't worth a broken frame on the wall. */
.salon .salon-grid .chat-art-card.is-broken { display: none; }
.salon .style-tile img.is-broken { display: none; }
.salon .salon-grid .art-meta {
  margin-top: 0.15rem;
  font: 500 0.68rem var(--s-sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--s-muted);
}
.salon .salon-grid .art-badge-row { margin-top: 0.45rem; }
/* the old system's monospace labels, brought into this type system */
.salon .art-format-badge, .salon .price-tier-badge,
.salon .art-why-toggle, .salon .art-why li,
.salon .chat-summary, .salon .chat-summary * {
  font-family: var(--s-sans);
  letter-spacing: 0.02em;
}
.salon .art-format-badge, .salon .price-tier-badge {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}
.salon .art-why-toggle { font-size: 0.8rem; color: var(--s-ink-soft); }
.salon .chat-summary { border-bottom-color: var(--s-line); }
.salon .chat-summary button, .salon .chat-summary span {
  border-radius: 999px;
  font-size: 0.8rem;
}

/* save / dismiss: float over the corner of the piece, revealed on hover (always there on touch) */
.salon .salon-grid .chat-art-feedback {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  gap: 0.35rem;
  padding: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s var(--s-ease);
}
.salon .salon-grid .chat-art-card:hover .chat-art-feedback,
.salon .salon-grid .chat-art-card:focus-within .chat-art-feedback { opacity: 1; transform: none; }
@media (hover: none) { .salon .salon-grid .chat-art-feedback { opacity: 1; transform: none; } }
.salon .salon-grid .feedback-btn {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45);
  color: var(--s-ink);
}
.salon .salon-grid .feedback-btn:hover { background: #fff; }

/* a piece arriving: rises into place, staggered by salon.js */
.salon .salon-grid .chat-art-card.salon-enter { opacity: 0; transform: translateY(26px); }
.salon .salon-grid .chat-art-card.salon-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.9s var(--s-ease);
  transition-delay: var(--delay, 0s);
}

.salon .gallery-loading {
  grid-column: 1 / -1;
  padding: 4rem 0;
  text-align: center;
  font: italic 400 clamp(1.3rem, 1rem + 1.2vw, 2rem) var(--s-display);
  color: var(--s-ink-soft);
  animation: salon-breathe 1.8s ease-in-out infinite;
}
@keyframes salon-breathe { 50% { opacity: 0.45; } }

/* ================= secondary pages: /about, /contact ================================================= */
/* The same painting, a shorter hero, then the story on paper. */
.salon-hero-page { min-height: 74svh; align-items: flex-end; }
.salon-hero-contact { min-height: 88svh; }
.salon-nav-link[aria-current="page"]::after { transform: scaleX(1); }

.salon-prose { padding-bottom: clamp(3rem, 8vw, 6rem); }
.salon-prose em { font-style: italic; font-weight: 400; color: var(--s-terracotta); }
.salon-block { max-width: 78rem; } /* left-aligned with the header and hero */
.salon-block + .salon-block { margin-top: clamp(3.5rem, 9vw, 7rem); }
.salon-block > .salon-kicker { color: var(--s-terracotta); }
.salon-block > .salon-h2 { max-width: 20ch; text-wrap: balance; }

/* how it works: three numbered columns, hung from hairlines */
.salon-steps {
  list-style: none;
  margin: clamp(1.8rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.8rem, 4vw, 3.5rem);
}
.salon-step { border-top: 1px solid var(--s-ink); padding-top: 1.1rem; }
.salon-step-num {
  display: block;
  font: italic 400 clamp(2.6rem, 1.8rem + 2.4vw, 4rem)/1 var(--s-display);
  color: var(--s-terracotta);
  margin-bottom: 1rem;
}
.salon-step h3, .salon-quality h3 {
  margin: 0 0 0.55rem;
  font: 500 clamp(1.2rem, 1rem + 0.6vw, 1.5rem)/1.2 var(--s-display);
  letter-spacing: -0.015em;
  color: var(--s-ink);
}
.salon-step p, .salon-quality p { margin: 0; color: var(--s-ink-soft); max-width: 42ch; }

/* the one bold, dark moment on the page */
.salon-band {
  background: var(--s-ink);
  color: var(--s-paper);
  border-radius: clamp(18px, 2.4vw, 30px);
  padding: clamp(2.2rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
}
.salon-band > .salon-kicker { color: #e3a07f; }
.salon-band .salon-h2 { color: var(--s-paper-hi); max-width: 18ch; }
.salon-band em { color: #e3a07f; }
.salon-band-body {
  margin: clamp(1.2rem, 3vw, 2rem) 0 0;
  max-width: 60ch;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem);
  color: rgba(247, 243, 234, 0.78);
}
.salon-band-body a { color: var(--s-paper-hi); text-decoration-color: rgba(247, 243, 234, 0.4); text-underline-offset: 0.2em; }
.salon-band-body a:hover { text-decoration-color: currentColor; }
.salon-band-body strong { font-weight: 600; }

/* four qualities in a quiet two-by-two */
.salon-qualities {
  margin: clamp(1.6rem, 3.5vw, 2.6rem) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
}
.salon-quality { border-top: 1px solid var(--s-line); padding: 1.3rem 0 1.5rem; }

/* the closing invitation back to the search */
.salon-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem 2rem;
  border-top: 1px solid var(--s-line);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}
.salon-sheet-slim .salon-invite { border-top: 0; padding-top: 0; }
.salon-sheet-slim { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.salon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  height: 3.4rem;
  padding: 0 1.7rem;
  border-radius: 999px;
  background: var(--s-ink);
  color: var(--s-paper-hi);
  font: 600 1rem var(--s-sans);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.3s var(--s-ease);
}
.salon-button:hover { background: #2c332d; transform: translateY(-1px); }
.salon-button span { transition: transform 0.3s var(--s-ease); }
.salon-button:hover span { transform: translateX(3px); }

/* contact: the address, set large enough to be the page */
.salon-mail {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  font: 400 clamp(1.6rem, 0.9rem + 3.2vw, 3.6rem)/1.1 var(--s-display);
  letter-spacing: -0.02em;
  color: var(--s-ink);
  text-decoration: none;
  opacity: 0;
  animation: salon-rise 1s var(--s-ease) 0.34s forwards;
}
.salon-mail-address {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: 0.08em;
  overflow-wrap: anywhere;
  transition: background-size 0.4s var(--s-ease), color 0.25s ease;
}
.salon-mail:hover .salon-mail-address { color: var(--s-terracotta); }
.salon-mail-arrow { color: var(--s-terracotta); transition: transform 0.35s var(--s-ease); }
.salon-mail:hover .salon-mail-arrow { transform: translateX(6px); }
@media (max-width: 720px) {
  .salon-hero-page, .salon-hero-contact { padding-bottom: 7.5rem; }
  .salon-qualities { grid-template-columns: 1fr; }
}

/* ================= footer ============================================================================ */
.salon-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 2rem;
  padding: 2rem var(--s-gutter) 3rem;
  border-top: 1px solid var(--s-line);
  color: var(--s-ink-soft);
  font-size: 0.88rem;
}
.salon-footer nav { display: flex; gap: 1.2rem; }
.salon-footer a { color: var(--s-ink); text-decoration: none; }
.salon-footer a:hover { text-decoration: underline; }
.salon-mark-small { font-size: 1.3rem; }
.salon-footer-note { flex-basis: 100%; margin: 0; color: var(--s-muted); font-size: 0.8rem; }

/* ================= concierge: the conversation, when it has something to say ======================== */
.salon-concierge {
  position: fixed;
  z-index: 50;
  top: clamp(4.6rem, 9vh, 5.6rem);
  right: clamp(0.75rem, 1.6vw, 1.5rem);
  bottom: clamp(0.75rem, 1.6vw, 1.5rem);
  width: min(26rem, calc(100vw - 1.5rem));
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: rgba(251, 249, 244, 0.93);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  backdrop-filter: blur(26px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 40px 90px -40px rgba(24, 28, 18, 0.55), 0 2px 10px rgba(24, 28, 18, 0.08);
  transform: translateX(calc(100% + 2rem));
  visibility: hidden;
  transition: transform 0.6s var(--s-ease), visibility 0s linear 0.6s;
}
.salon-concierge.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.6s var(--s-ease), visibility 0s;
}
.salon-concierge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.1rem 1.2rem 0.6rem 1.35rem;
}
.salon-concierge-head .salon-kicker { margin-bottom: 0.3rem; }
.salon-concierge-title {
  margin: 0;
  font: 500 1.45rem/1.1 var(--s-display);
  letter-spacing: -0.02em;
}
.salon-close {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 1px solid var(--s-line);
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--s-ink);
  cursor: pointer;
}
.salon-close:hover { background: #fff; }

/* On wide screens the hang makes room for the open sheet instead of hiding under it. */
@media (min-width: 1100px) {
  .salon-main, .salon-footer { transition: padding-right 0.6s var(--s-ease); }
  .salon.concierge-open .salon-sheet,
  .salon.concierge-open .salon-footer { padding-right: calc(min(26rem, 34vw) + var(--s-gutter) + 0.5rem); }
}

/* the chat widget, re-skinned for the sheet */
.salon .salon-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 1.2rem 0.9rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.salon .salon-chat .chat-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 0.4rem 0.15rem 0.8rem;
}
.salon .salon-chat .chat-message { font-size: 0.97rem; line-height: 1.5; }
.salon .salon-chat .chat-message.assistant {
  color: var(--s-ink);
  background: #fff;
  border: 0;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 1px 2px rgba(20, 22, 16, 0.06);
}
.salon .salon-chat .chat-message.user {
  background: var(--s-ink);
  color: var(--s-paper-hi);
  border-radius: 18px 18px 4px 18px;
}
.salon .salon-chat .chat-message.note { color: var(--s-ink-soft); }
.salon .salon-chat .chat-chip {
  border-radius: 999px;
  border: 1px solid rgba(27, 32, 28, 0.18);
  background: #fff;
  color: var(--s-ink);
  font-family: var(--s-sans);
}
.salon .salon-chat .chat-chip:hover { border-color: var(--s-ink); background: #fff; }
.salon .salon-chat .chat-input-row {
  border-radius: 18px;
  border: 1px solid rgba(27, 32, 28, 0.14);
  background: #fff;
}
.salon .salon-chat .chat-input-row:focus-within { border-color: rgba(180, 83, 47, 0.55); box-shadow: 0 0 0 3px rgba(180, 83, 47, 0.12); }
.salon .salon-chat #chat-send-btn { background: var(--s-ink); color: var(--s-paper-hi); border-radius: 50%; }

.salon-wall {
  border-top: 1px solid var(--s-line);
  padding: 0.7rem 1.35rem 0.9rem;
}
.salon-wall summary {
  cursor: pointer;
  font: 600 0.74rem var(--s-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s-ink-soft);
  list-style: none;
}
.salon-wall summary::-webkit-details-marker { display: none; }
.salon-wall summary::after { content: " +"; }
.salon-wall[open] summary::after { content: " –"; }
.salon-wall .wall-controls { padding-top: 0.8rem; display: grid; gap: 0.8rem; }

/* the dock: back into the conversation; glows when it has news */
.salon-dock {
  display: none;
  position: fixed;
  z-index: 45;
  right: clamp(0.9rem, 2vw, 1.8rem);
  bottom: clamp(0.9rem, 2vw, 1.8rem);
  align-items: center;
  gap: 0.6rem;
  height: 3.3rem;
  padding: 0 1.35rem 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--s-ink);
  color: var(--s-paper-hi);
  font: 600 0.98rem var(--s-sans);
  box-shadow: 0 18px 40px -16px rgba(20, 24, 16, 0.6);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.5s var(--s-ease), opacity 0.4s ease;
}
.salon-dock:hover { transform: translateY(-2px); }
.salon-dock.is-hidden { opacity: 0; transform: translateY(140%); pointer-events: none; }
.salon-dock-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(251, 249, 244, 0.45);
}
.salon-dock.has-news .salon-dock-dot { background: #e07a52; box-shadow: 0 0 0 0 rgba(224, 122, 82, 0.6); animation: salon-ping 1.6s infinite; }
@keyframes salon-ping { 70% { box-shadow: 0 0 0 10px rgba(224, 122, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 122, 82, 0); } }

/* phones: the concierge rises as a bottom sheet instead of sliding in from the side */
@media (max-width: 720px) {
  /* On phones the conversation is a thumb's reach away at the bottom, not up in the header. */
  .salon-dock { display: inline-flex; }
  #concierge-open { display: none; }
  .salon-concierge {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(82svh, 44rem);
    border-radius: 24px 24px 0 0;
    transform: translateY(105%);
  }
  .salon-concierge.is-open { transform: none; }
  .salon-hero { align-items: flex-end; }
}

/* ================= the lightbox's wall, unchanged in behaviour, quieter in chrome ===================== */
.salon .lightbox { font-family: var(--s-sans); }

/* ================= motion preferences ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .salon *, .salon *::before, .salon *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .salon-backdrop { transform: scale(1.12); }
}

/* ================= "Your taste" panel (taste-panel.js) ================================================ */
.taste-open { overflow: hidden; }
.taste-scrim {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(27, 32, 28, 0.28);
}
.taste-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 901;
  display: flex;
  flex-direction: column;
  width: min(28rem, 100vw);
  background: var(--s-paper-hi, #fbf9f4);
  color: var(--s-ink, #1b201c);
  font-family: var(--s-sans, system-ui, sans-serif);
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.14);
  transform: translateX(100%);
  transition: transform 0.22s var(--s-ease, ease);
  outline: none;
}
.taste-panel.visible { transform: none; }
.taste-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem 0.6rem;
}
.taste-title { margin: 0; font-family: var(--s-display, Georgia, serif); font-size: 1.9rem; font-weight: 500; }
.taste-close {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(27, 32, 28, 0.16);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}
.taste-body { flex: 1; overflow-y: auto; padding: 0 1.5rem 2rem; }
.taste-lede { margin: 0 0 1.2rem; color: var(--s-ink-soft, #454b44); }
.taste-loading, .taste-error { color: var(--s-muted, #7b7d71); }
.taste-section { padding: 1.1rem 0; border-top: 1px solid rgba(27, 32, 28, 0.1); }
.taste-h3, .salon .taste-h3 { margin: 0 0 0.35rem; font-family: var(--s-sans, sans-serif); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.taste-hint { display: block; margin: 0 0 0.7rem; color: var(--s-muted, #7b7d71); font-size: 0.86rem; line-height: 1.45; }
.taste-list { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.taste-row { display: grid; grid-template-columns: minmax(6rem, 1fr) auto 4.5rem 2.6rem auto; align-items: center; gap: 0.6rem; }
.taste-muted .taste-row { grid-template-columns: 1fr auto auto; }
.taste-name { font-weight: 500; }
.taste-strength { padding: 0.12rem 0.5rem; border-radius: 999px; font-size: 0.72rem; white-space: nowrap; }
.taste-strong { background: rgba(180, 83, 47, 0.14); color: #8e3d1f; }
.taste-emerging { background: rgba(27, 32, 28, 0.06); color: var(--s-ink-soft, #454b44); }
.taste-bar { height: 0.35rem; border-radius: 999px; background: rgba(27, 32, 28, 0.08); overflow: hidden; }
.taste-bar-fill { display: block; height: 100%; background: var(--s-terracotta, #b4532f); }
.taste-share { font-size: 0.82rem; color: var(--s-muted, #7b7d71); text-align: right; font-variant-numeric: tabular-nums; }
.taste-list:not(.taste-muted) .taste-row:not(:has(.taste-notme)) { grid-template-columns: minmax(6rem, 1fr) auto 4.5rem 2.6rem; }
.taste-notme {
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(27, 32, 28, 0.18);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.taste-notme:hover, .taste-notme:focus-visible { background: rgba(27, 32, 28, 0.06); }
.taste-muted { margin-top: 0.8rem; }
.taste-muted .taste-name { text-decoration: line-through; color: var(--s-muted, #7b7d71); }
.taste-muted-note { font-size: 0.8rem; color: var(--s-muted, #7b7d71); }
.taste-palette { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.taste-swatch { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgba(27, 32, 28, 0.12); }
.taste-saved { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.taste-saved-item { display: grid; gap: 0.25rem; }
.taste-saved-link { display: block; aspect-ratio: 4 / 5; border-radius: 0.5rem; overflow: hidden; background: rgba(27, 32, 28, 0.06); color: inherit; text-decoration: none; }
.taste-saved-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.taste-saved-title { display: block; padding: 0.5rem; font-size: 0.8rem; }
.taste-saved-price { font-size: 0.78rem; color: var(--s-muted, #7b7d71); }
.taste-toggle { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; }
.taste-toggle input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--s-ink, #1b201c); }
.taste-toggle-text { display: grid; gap: 0.25rem; }
.taste-toggle-text .taste-hint { margin: 0; }
.taste-reset {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(27, 32, 28, 0.22);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.taste-reset-yes { margin: 0; background: var(--s-ink, #1b201c); color: var(--s-paper-hi, #fbf9f4); border-color: var(--s-ink, #1b201c); }
.taste-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1rem; font-size: 0.88rem; }
/* The display rules above override the browser's own [hidden] rule: keep hidden really hidden (and out of the tab order). */
.taste-panel[hidden],
.taste-scrim[hidden],
.taste-confirm[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .taste-panel { transition: none; } }

.taste-collections { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.4rem 0 0.9rem; }
.taste-chip {
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(27, 32, 28, 0.16);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.taste-chip[aria-pressed="true"] { background: var(--s-ink, #1b201c); border-color: var(--s-ink, #1b201c); color: var(--s-paper-hi, #fbf9f4); }
.taste-chip-add { border-style: dashed; }
.taste-collection-tools { display: flex; gap: 0.4rem; margin-left: auto; }
.taste-collection-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.9rem; }
.taste-collection-form.taste-confirm { margin-top: 0; }
.taste-input {
  flex: 1;
  min-width: 10rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(27, 32, 28, 0.22);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
}
.taste-collection-form .taste-reset { margin: 0; }
.taste-move {
  width: 100%;
  padding: 0.2rem 0.3rem;
  border: 1px solid rgba(27, 32, 28, 0.14);
  border-radius: 0.4rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.76rem;
}

/* "For you" tile and its controls (v2.js seedForYou) */
.salon .style-tile-for-you { background: linear-gradient(150deg, #f2dccd, #e8c3a8 55%, #d99b78); }
.salon .style-tile-for-you .style-tile-label::after { content: " ♥"; color: var(--s-terracotta); font-style: normal; }
.for-you-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; margin-top: 0.8rem; font-size: 0.88rem; color: var(--s-ink-soft, #454b44); }
.for-you-controls[hidden] { display: none; }
.for-you-range { display: inline-flex; align-items: center; gap: 0.55rem; }
.for-you-range input { width: 9rem; accent-color: var(--s-terracotta, #b4532f); }
.for-you-variety { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.for-you-variety input { accent-color: var(--s-ink, #1b201c); }
