/* LuxeAfford local HTML demo — Chamber & Bloom tokens (demo choice) */
:root {
  --void: #14110f;
  --chamber: #1c1816;
  --raised: #2a2421;
  --ivory: #f3eee6;
  --blush: #c9a39a;
  --blush-ink: #8f6a64;
  --display: "Fraunces", "Times New Roman", serif;
  --ui: "Figtree", "Segoe UI", sans-serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ivory);
  font-family: var(--ui);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--pad); top: 0.5rem; z-index: 40; background: var(--blush); color: var(--void); padding: 0.4rem 0.75rem; }

.demo-banner {
  background: var(--raised);
  color: var(--blush);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.4rem var(--pad);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: var(--void);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(201, 163, 154, 0.12);
}
.wordmark {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  line-height: 0;
}
.wordmark img {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: 11.5rem;
  max-height: 2.35rem;
  object-fit: contain;
  object-position: left center;
}
.nav-families {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: 1.25rem;
}
.family {
  position: relative;
}
.family > a, .family > span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  cursor: pointer;
}
.family.is-current > a, .family.is-current > span { color: var(--blush); }
.family-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  padding: 0.75rem 0;
  background: var(--chamber);
}
.family:hover .family-panel, .family:focus-within .family-panel { display: block; }
.family-panel a {
  display: block;
  padding: 0.35rem 1rem;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}
.family-panel a:hover { color: var(--blush); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(243, 238, 230, 0.25);
  color: var(--ivory);
  font: inherit;
  padding: 0.35rem 0.7rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-fill { background: var(--blush); color: var(--void); border-color: var(--blush); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-wide { width: 100%; border-radius: 0.25rem; padding: 0.85rem 1.15rem; }
.header-cta { flex: 0 0 auto; }
.header-cta.quiet { background: transparent; color: var(--ivory); border: 0; text-decoration: underline; font-weight: 400; }

.hero {
  position: relative;
  min-height: min(88vh, 46rem);
  display: flex;
  align-items: flex-end;
  padding: 4rem var(--pad) 3.5rem;
  background: var(--void) center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,17,15,0.82) 0%, rgba(20,17,15,0.15) 55%, rgba(20,17,15,0.35) 100%),
              linear-gradient(0deg, rgba(20,17,15,0.55), transparent 45%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 36rem; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
}
.hero h1 em {
  font-family: var(--script);
  font-style: normal;
  color: var(--blush);
  font-size: 0.85em;
}
.asset-note { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--blush); opacity: 0.7; margin-top: 0.75rem; }

.band { padding: 4.5rem var(--pad); }
.band-chamber { background: var(--chamber); }
.band h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
  margin: 0 0 2rem;
}
.lede { max-width: 36rem; margin: 0 auto 2rem; text-align: center; color: rgba(243,238,230,0.78); }

.need-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
}
.need-grid a:first-child { grid-row: 1 / span 2; }
.need-grid a {
  position: relative;
  display: block;
  text-decoration: none;
  min-height: 10rem;
  overflow: hidden;
}
.need-grid a img, .mosaic a img, .gallery img, .curation a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.need-grid a:first-child img { min-height: 22rem; }
.cap {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  font-size: 0.95rem;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
}
.mosaic a:first-child { grid-row: 1 / span 2; }
.mosaic a { position: relative; display: block; min-height: 9rem; overflow: hidden; text-decoration: none; }
.mosaic a:first-child img { min-height: 20rem; }

.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}
.editorial h2 { text-align: left; margin-bottom: 1rem; }
.editorial img { width: 100%; max-height: 22rem; object-fit: cover; }

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.6rem;
  max-width: var(--max);
  margin: 0 auto;
}
.gallery .dom { grid-row: 1 / span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 10rem; }
.gallery .dom img { min-height: 22rem; }

.close {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.5rem var(--pad);
  background: var(--void) center / cover no-repeat;
  position: relative;
}
.close::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,17,15,0.75), rgba(20,17,15,0.15));
}
.close-inner { position: relative; z-index: 1; }
.close h2 { text-align: left; margin-bottom: 1rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
  background: var(--void);
}
.site-footer .wordmark img {
  height: 1.75rem;
  max-height: 1.75rem;
  max-width: 9rem;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: rgba(243,238,230,0.7); text-decoration: none; }
.foot-links a { text-decoration: none; }

.page-hero { min-height: min(78vh, 40rem); }

.family-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
}
.family-band a { position: relative; display: block; overflow: hidden; min-height: 12rem; text-decoration: none; }

.intake-page { background: var(--ivory); color: var(--void); }
.intake-page .site-header, .intake-page .site-footer, .intake-page .demo-banner {
  background: var(--void);
  color: var(--ivory);
}
.intake-page .demo-banner { color: var(--blush); }
.intake-shell {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem var(--pad) 5rem;
}
.intake-shell h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-align: center;
  margin: 0 0 0.5rem;
}
.intake-shell .sub { text-align: center; color: var(--blush-ink); margin-bottom: 2rem; }
.progress {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--blush-ink);
}
.progress .is-current { color: var(--void); border-bottom: 1px solid var(--blush-ink); }
.branch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}
.branch {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.branch img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.branch span { display: block; font-size: 0.82rem; margin-top: 0.35rem; }
.branch.is-picked img { outline: 2px solid var(--blush-ink); }
.field { margin: 0.9rem 0; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%;
  font: inherit;
  color: var(--void);
  background: #fff;
  border: 1px solid #d9cfc4;
  border-radius: 0.2rem;
  padding: 0.5rem 0.65rem;
}
textarea { min-height: 6rem; resize: vertical; }
.err { color: #8f3a32; font-size: 0.85rem; }
.confirm { display: none; max-width: 36rem; margin: 4rem auto; padding: var(--pad); }
.confirm.is-open { display: block; }
.step { display: none; }
.step.is-on { display: block; }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--chamber);
  z-index: 30;
  padding: 4.5rem var(--pad) 2rem;
}
.menu-overlay.is-open { display: block; }
.menu-overlay a { display: block; padding: 0.55rem 0; text-decoration: none; font-size: 1.15rem; }
.menu-overlay .close-menu { position: absolute; top: 1rem; right: var(--pad); background: none; border: 0; color: var(--ivory); font: inherit; }

@media (max-width: 900px) {
  .need-grid, .mosaic, .editorial, .gallery, .family-band, .branch-grid {
    grid-template-columns: 1fr;
  }
  .need-grid a:first-child, .mosaic a:first-child, .gallery .dom { grid-row: auto; }
  .need-grid a:first-child img, .mosaic a:first-child img, .gallery .dom img { min-height: 14rem; }
  .hero { min-height: 70vh; align-items: flex-end; }
  .nav-families { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 720px) {
  .branch-grid { grid-template-columns: 1fr 1fr; }
}
