/* ==========================================================================
   ATELIER — design tokens & shared styles
   ========================================================================== */

:root {
  --bg: #FAF4EB;
  --bg-panel: #F2E8DA;
  --bg-panel-2: #e6ddcb;
  --fg: #302E2B;
  --fg-muted: #73645A;
  --border: #E6D7C3;
  --dark-btn: #3B2B22;
  --dark-btn-hover: #4D3A2E;
  --cream: #FAF4EB;
  --terra: #a85c37;
  --error: #a83c2e;
  --radius: 2px;
  --maxw: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  margin: 0;
}

p { margin: 0; }

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--terra); }

button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 64px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--dark-btn);
  color: var(--cream);
  padding: 17px 32px;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--dark-btn-hover); color: var(--cream); }
.btn.block { width: 100%; }
.btn.outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}
.btn.outline:hover { background: var(--fg); color: var(--cream); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  background: var(--bg);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 42px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links a { padding-bottom: 5px; border-bottom: 1px solid transparent; }
.nav-links a.active { border-bottom-color: var(--fg); }

.nav-icons {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-icons a, .nav-icons button {
  display: flex;
  background: none;
  border: none;
  padding: 0;
  color: var(--fg);
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--terra);
  color: var(--cream);
  font-size: 10px;
  line-height: 1;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}
.cart-badge[hidden] { display: none; }

.nav-toggle { display: none; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 64px 0;
  font-size: 12px;
  color: var(--fg-muted);
  max-width: var(--maxw);
  margin: 0 auto;
}
.breadcrumb svg { flex-shrink: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 64px 40px;
  margin-top: 40px;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 160px; }
.footer-col .display { font-size: 15px; margin-bottom: 4px; }
.footer-col a, .footer-col span { font-size: 13px; color: var(--fg-muted); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Cards / grids ---------- */

.card-art {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-art .thumb {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-panel);
  border-radius: var(--radius);
}
.card-art .thumb svg { width: 100%; height: 100%; }
.card-art .name { font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.card-art .sub { font-size: 12px; color: var(--fg-muted); }
.card-art .price { font-size: 13px; margin-top: 2px; }

.collections-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 22px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px;
}
.category-card { display: flex; flex-direction: column; gap: 16px; }
.category-card .thumb { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); background: var(--bg-panel); }
.category-card .thumb svg { width: 100%; height: 100%; }

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

/* ---------- Swatches ---------- */

.swatch-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: var(--fg);
}
.swatch-dots {
  display: flex;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 3px;
}
.swatch-group.selected .swatch-dots { border-color: var(--fg); }
.swatch-dots span { width: 12px; height: 26px; }
.swatch-label {
  font-size: 10.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 400;
}
.swatch-group.selected .swatch-label { font-weight: 600; }

.size-pill {
  cursor: pointer;
  padding: 13px 20px;
  font-size: 12px;
  letter-spacing: 0.5px;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
}
.size-pill.selected { background: var(--dark-btn); color: var(--cream); border-color: var(--dark-btn); }

/* ---------- Misc rows ---------- */

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.row .label { color: var(--fg-muted); }

.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--fg-muted);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark-btn);
  color: var(--cream);
  padding: 14px 26px;
  font-size: 13px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .wrap, .breadcrumb, .footer-grid, .footer-bottom { padding-left: 24px; padding-right: 24px; }
  .nav { padding: 20px 24px; }
  .breadcrumb { padding: 16px 24px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 40;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav-toggle {
    display: flex;
    background: none;
    border: none;
    color: var(--fg);
    padding: 0;
  }

  .collections-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-grid { grid-template-columns: 1fr; }
  .artwork-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .inspiration-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #how-it-works-steps { grid-template-columns: repeat(3, minmax(0,1fr)) !important; row-gap: 28px !important; }

  .product-layout { grid-template-columns: 1fr !important; padding: 24px 24px 60px !important; gap: 32px !important; }
}

@media (max-width: 520px) {
  .collections-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .artwork-grid { grid-template-columns: 1fr; }
  .inspiration-grid { grid-template-columns: 1fr; }
  h1.display { font-size: 34px !important; }
  #how-it-works-steps { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

@media (max-width: 900px) {
  .hero-banner { aspect-ratio: 4 / 3 !important; }
  .hero-banner img { object-position: 32% center; }
  .hero-text-pad { left: 6% !important; top: 8% !important; max-width: 48% !important; }
}

@media (max-width: 640px) {
  .hero-banner { aspect-ratio: 1 / 1.05 !important; }
  .hero-banner img { object-position: 30% center; }
  .hero-banner h1.display { font-size: 28px !important; }
  .hero-text-pad { left: 6% !important; top: 7% !important; max-width: 62% !important; gap: 12px !important; }
}

/* ---------- Explore / Customize flow (artwork detail, real-photo pieces) ---------- */

.explore-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.explore-tab {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0 22px 14px 0;
  margin-right: 4px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.explore-tab.active { color: var(--fg); border-bottom-color: var(--fg); font-weight: 600; }
.explore-tab:hover { color: var(--fg); }

.frame-swatch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: var(--fg);
}
.frame-swatch .frame-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--border) inset;
  display: block;
}
.frame-swatch.selected .frame-dot { border-color: var(--fg); }
.frame-swatch .frame-label {
  font-size: 10.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.frame-swatch.selected .frame-label { font-weight: 600; }

/* Explore screen layout: big image left, title / tabs / thumbnails right */
.xp-back {
  display: inline-flex; gap: 8px; align-items: center; margin-bottom: 22px;
  font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-muted);
}
.xp-back:hover { color: var(--fg); }

.xp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: "media head" "media tabs" "media side";
  column-gap: 28px;
}
.xp-media {
  grid-area: media; position: relative; aspect-ratio: 4 / 5;
  overflow: hidden; background: var(--bg-panel); border-radius: var(--radius);
}
.xp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.9); color: var(--fg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14); cursor: pointer; transition: background 0.15s ease;
}
.xp-arrow:hover { background: #fff; }
.xp-arrow.prev { left: 18px; }
.xp-arrow.next { right: 18px; }

.xp-head {
  grid-area: head; display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--border);
}
.xp-title { font-size: 52px; font-weight: 500; line-height: 1; letter-spacing: 1px; }
.xp-subtitle { font-size: 24px; font-weight: 500; }
.xp-rule { display: block; width: 32px; height: 1px; background: var(--fg-muted); margin: 6px 0; }
.xp-desc { font-size: 13.5px; line-height: 1.75; color: var(--fg-muted); max-width: 420px; }

.xp-tabs { grid-area: tabs; margin-bottom: 18px; }
.explore-tab .n { font-weight: 600; margin-right: 4px; }

.xp-side { grid-area: side; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.xp-side-thumb, .xp-strip-thumb {
  padding: 0; border: 2px solid transparent; background: var(--bg-panel);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
}
.xp-side-thumb { flex: 1 1 0; min-height: 90px; }
.xp-side-thumb.active, .xp-strip-thumb.active { border-color: var(--fg); }
.xp-strip { display: none; }

.xp-bottom {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px;
  margin-top: 36px;
}
.xp-name { display: flex; align-items: center; gap: 22px; }
.xp-name h2 { font-size: 32px; font-weight: 500; }
.xp-name .xp-rule { width: 48px; margin: 0; }
.xp-specs { display: flex; flex-wrap: wrap; margin-top: 18px; }
.xp-spec { padding: 0 28px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; }
.xp-spec:first-child { padding-left: 0; border-left: none; }
.xp-spec-label { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-muted); }
.xp-spec-value { font-size: 13.5px; }

.xp-tagline {
  display: flex; align-items: center; gap: 24px; margin-top: 44px;
  font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--fg-muted);
}
.xp-tagline::before, .xp-tagline::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.xp-tagline span { text-align: center; }

@media (max-width: 900px) {
  #explore-root { padding: 24px 24px 40px !important; }

  .xp-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "head" "tabs" "media" "strip";
  }
  .xp-title { font-size: 42px; }
  .xp-subtitle { font-size: 21px; }
  .xp-head { border-bottom: 1px solid var(--border); }
  .xp-side { display: none; }
  .xp-strip {
    grid-area: strip; display: grid; gap: 10px; margin-top: 12px;
    grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  }
  .xp-strip-thumb { aspect-ratio: 5 / 4; }
  .xp-arrow { width: 38px; height: 38px; }
  .xp-arrow.prev { left: 12px; }
  .xp-arrow.next { right: 12px; }

  .xp-bottom { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 30px; }
  .xp-bottom .btn { width: 100%; }
  .xp-specs { display: grid; grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .xp-spec { padding: 0 0 0 16px; }
  .xp-spec:nth-child(odd) { padding-left: 0; border-left: none; }
  .xp-tagline { margin-top: 34px; gap: 14px; letter-spacing: 2px; font-size: 10.5px; }
  .xp-tagline::before, .xp-tagline::after { min-width: 24px; }
  .xp-tabs { justify-content: space-between; }
  .xp-tabs .explore-tab { padding-right: 0; margin-right: 0; letter-spacing: 1px; font-size: 10.5px; }
}

/* "4. See it in your space" inline room preview */
.sp-room { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-panel); border-radius: var(--radius); }
.sp-room > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-art {
  position: absolute; transform: translate(-50%, -50%); box-sizing: content-box; /* frame sits outside the artwork; height follows the image so it is never cropped */
  box-shadow: 0 0 0 1px rgba(20, 16, 10, 0.06), 0 8px 22px rgba(20, 16, 10, 0.28);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.sp-art.dragging { cursor: grabbing; }
.sp-art-inner { width: 100%; overflow: hidden; }
.sp-art-inner img, .sp-art-inner svg { width: 100%; height: auto; display: block; pointer-events: none; }
.sp-art-inner svg { aspect-ratio: 3 / 4; }
.sp-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.sp-btn {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: none; padding: 0;
  font: inherit; font-size: 12.5px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.sp-btn[hidden] { display: none; }
.sp-hint { font-size: 11.5px; color: var(--fg-muted); margin-left: auto; }

/* ==========================================================================
   Gallery refinement — lighter type, more air, passe-partout mats,
   museum-style wall labels, quiet motion.
   ========================================================================== */
h1, h2, h3, .display { font-weight: 400; letter-spacing: 0.01em; color: #3B2B22; }
.eyebrow { font-size: 11px; letter-spacing: 0.32em; }
.btn { letter-spacing: 0.22em; font-weight: 400; }
.logo { font-weight: 500; letter-spacing: 0.42em; }
.card-art .name { font-weight: 500; }

.section { padding-top: 120px; padding-bottom: 120px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 64px; }
.section-title { font-size: 42px; font-weight: 300; line-height: 1.15; }
.section-rule { display: block; width: 40px; height: 1px; background: var(--fg-muted); opacity: 0.6; }

/* Passe-partout mat around each artwork */
.art-card { display: flex; flex-direction: column; gap: 20px; color: var(--fg); }
.art-card:hover { color: var(--fg); }
.mat {
  background: #FFFCF7; padding: 2%;
  box-shadow: 0 1px 2px rgba(42, 38, 32, 0.06), 0 14px 30px -20px rgba(42, 38, 32, 0.4);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}
.art-card:hover .mat { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(42, 38, 32, 0.06), 0 24px 42px -22px rgba(42, 38, 32, 0.5); }
.mat-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-panel); box-shadow: inset 0 0 0 1px rgba(42, 38, 32, 0.06); }
.mat-img > img, .mat-img > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mat-img .alt { opacity: 0; transition: opacity 0.8s ease; }
@media (hover: hover) { .art-card:hover .mat-img .alt { opacity: 1; } }

/* Museum wall label */
.wall-label { display: flex; flex-direction: column; gap: 4px; }
.wall-label .t { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.2; }
.wall-label .m { font-size: 11.5px; color: var(--fg-muted); letter-spacing: 0.02em; }
.wall-label .p { font-size: 12px; letter-spacing: 0.04em; margin-top: 4px; }

.artwork-grid { gap: 72px 44px; }
.collections-grid { gap: 32px; }
.category-grid { gap: 64px 48px; }

/* Split hero */
.hero2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(80vh, 760px); }
.hero2-text {
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  padding: 80px 64px 80px max(64px, calc((100vw - var(--maxw)) / 2 + 64px));
}
.hero2-title { font-size: 62px; font-weight: 300; line-height: 1.04; }
.hero2-text p { font-size: 15px; line-height: 1.85; color: var(--fg-muted); max-width: 380px; }
.hero2-media { position: relative; overflow: hidden; background: var(--bg-panel); }
.hero2-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% center; }

/* Three steps */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; max-width: 1000px; margin: 0 auto; }
.step3 { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.step3 .n { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 32px; color: var(--fg-muted); line-height: 1; }
.step3 .h { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.step3 p { font-size: 13.5px; color: var(--fg-muted); line-height: 1.8; max-width: 270px; }

/* Image + text feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 88px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-panel); }
.feature-media img, .feature-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-text { display: flex; flex-direction: column; gap: 22px; max-width: 430px; }
.feature-text .section-title { text-align: left; }
.feature-text p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.9; }
.signature { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 23px; }

/* Quiet fade-in on scroll */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .mat, .mat-img .alt { transition: none; }
}

@media (max-width: 900px) {
  .section { padding-top: 84px; padding-bottom: 84px; }
  .section-head { margin-bottom: 44px; }
  .section-title { font-size: 33px; }
  .hero2 { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero2-text { padding: 52px 24px 44px; gap: 22px; }
  .hero2-title { font-size: 44px; }
  .hero2-media { aspect-ratio: 4 / 3; }
  .steps3 { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature.reverse .feature-media { order: 0; }
  .artwork-grid { gap: 52px 20px; }
  .collections-grid { gap: 36px 18px; }
  .wall-label .t { font-size: 20px; }
}
@media (max-width: 520px) {
  .artwork-grid { gap: 52px; }
  .mat { padding: 1.75%; }
}

.xp-palette { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.xp-pal-head { display: flex; align-items: baseline; gap: 16px; }
.xp-pal-label { font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; }
.xp-pal-name { font-size: 22px; font-weight: 500; font-style: italic; color: var(--fg-muted); }
.xp-pal-row {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
  max-width: calc((100% - 28px) * 1.3 / 2.3);
}
.xp-pal-card { min-width: 0; gap: 10px; }
.xp-pal-img {
  display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden;
  background: var(--bg-panel); border-radius: var(--radius);
  outline: 1px solid transparent; outline-offset: 3px; transition: outline-color 0.15s ease;
}
.xp-pal-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.xp-pal-card:hover .xp-pal-img img { transform: scale(1.04); }
.xp-pal-card.selected .xp-pal-img { outline-color: var(--fg); }
.xp-pal-card .swatch-dots span { width: 10px; height: 18px; }
@media (max-width: 900px) {
  .xp-palette { margin-top: 26px; }
  .xp-pal-row { max-width: none; gap: 8px; }
  .xp-pal-card { gap: 8px; }
  .xp-pal-card .swatch-dots span { width: 8px; height: 14px; }
  .xp-pal-row .swatch-label { font-size: 9.5px; letter-spacing: 0.4px; }
}

/* Bolder "Choose your palette" heading with more breathing room above it */
.xp-palette--bold { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--border); gap: 22px; }
.xp-palette--bold .xp-pal-label { font-size: 13px; font-weight: 600; letter-spacing: 2.5px; color: #3B2B22; }
.xp-palette--bold .xp-pal-name { font-size: 24px; color: #73645A; }
@media (max-width: 900px) {
  .xp-palette--bold { margin-top: 44px; padding-top: 26px; gap: 20px; }
  .xp-palette--bold .xp-pal-label { font-size: 12.5px; letter-spacing: 2px; }
}

/* Home hero: full-width room photo with the text on the wall (desktop) */
.hero2.hero-full { position: relative; display: block; min-height: min(82vh, 760px); }
.hero2.hero-full .hero2-media { position: absolute; inset: 0; background: #e9d6c1; }
.hero2.hero-full .hero2-media img { object-position: center; }
.hero2.hero-full .hero2-text {
  position: relative; z-index: 1; min-height: min(82vh, 760px);
  max-width: calc(560px + max(64px, (100vw - var(--maxw)) / 2 + 64px));
}
.hero2.hero-full .hero2-text p { color: #5a4a3e; }
.hero2.hero-full .eyebrow { color: #4d3f35; }
.hero2.hero-full .section-rule { background: #4d3f35; }

/* Mobile "poster" hero — the portrait room photo with the title, eyebrow and button laid over it */
.hero2-title em { font-style: italic; }
@media (max-width: 900px) {
  .hero2.hero-poster { position: relative; display: block; min-height: 0; padding: 0; background: #ece0d2; }
  .hero2.hero-poster .hero2-media { position: relative; inset: auto; aspect-ratio: auto; background: none; }
  .hero2.hero-poster .hero2-media img { position: static; width: 100%; height: auto; display: block; }
  .hero2.hero-poster .hero2-text { position: absolute; inset: 0; z-index: 1; display: block; padding: 0; min-height: 0; max-width: none; text-align: center; }
  .hero2.hero-poster .eyebrow { position: absolute; top: 4.4%; left: 0; right: 0; font-size: 2.5vw; letter-spacing: 0.36em; line-height: 1.75; color: #3f332b; }
  .hero2.hero-poster h1.hero2-title { position: absolute; top: 11.4%; left: 0; right: 0; font-size: 10.6vw !important; line-height: 1.02; font-weight: 400; color: #2f241d; }
  .hero2.hero-poster .section-rule, .hero2.hero-poster .hero2-text p { display: none; }
  .hero2.hero-poster .hero2-text > div:last-child { position: absolute; top: 90.2%; left: 17%; width: 66%; }
  .hero2.hero-poster .btn { width: 100%; height: 9.4vw; padding: 0; font-size: 2.9vw; letter-spacing: 0.2em; }
  .hero2.hero-poster .btn::after { content: '\2192'; margin-left: 0.9em; font-size: 1.3em; letter-spacing: 0; }
}

/* "Coming soon" cards for collections / pieces without finished photos */
.art-card.is-soon { cursor: default; }
.art-card.is-soon:hover .mat { transform: none; }
.art-card.is-soon .mat-img > img, .art-card.is-soon .mat-img > svg { filter: saturate(0.55) brightness(1.06); opacity: 0.6; }
.soon-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; white-space: nowrap;
  background: rgba(250, 244, 235, 0.92); color: #3B2B22; padding: 10px 18px;
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
}
.wall-label .soon { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-muted); }
.section-sub { font-size: 14px; color: var(--fg-muted); max-width: 440px; line-height: 1.8; }

/* Palette icon: separate rounded colour chips (like the palette card design) */
.swatch-dots { gap: 4px; padding: 4px; border-radius: 8px; }
.swatch-dots span { width: 16px; height: 16px; border-radius: 4px; }
.xp-pal-card .swatch-dots { gap: 3px; padding: 0; border: none; }
.xp-pal-card .swatch-dots span { width: 15px; height: 15px; border-radius: 3px; }
.xp-pal-card.selected .swatch-dots { border: none; }
@media (max-width: 900px) {
  .xp-pal-card .swatch-dots { gap: 2px; }
  .xp-pal-card .swatch-dots span { width: 10px; height: 10px; border-radius: 2px; }
}

/* Desktop: palette cards fill the full page width */
@media (min-width: 901px) {
  .xp-pal-row { max-width: none; gap: 24px; }
  .xp-pal-card { gap: 14px; }
  .xp-pal-card .swatch-dots { gap: 5px; }
  .xp-pal-card .swatch-dots span { width: 22px; height: 22px; border-radius: 5px; }
  .xp-pal-card .swatch-label { font-size: 12px; letter-spacing: 0.18em; }
}

/* Explore tabs: allow swiping on narrow screens without showing a scrollbar */
.explore-tabs { scrollbar-width: none; }
.explore-tabs::-webkit-scrollbar { display: none; }

/* Coming soon: empty panel until the real photos arrive */
.mat-img.soon-empty { background: #EFE5D8; box-shadow: inset 0 0 0 1px rgba(42, 38, 32, 0.05); }
.mat-img.soon-empty .soon-badge { background: transparent; color: #8a7a6c; }
