/* ══════════════════════════════════════════════════
   lisamlum.com — homepage cinematic chapters
   Loaded by index.html only. Three units:
   1. .hr-compare   — Home Refresh before/after drag slider
   2. .sale-chapters — numbered process chapters (deep navy)
   3. .community-switcher — interactive city list + stage
   Uses site.css tokens; no new colors, no gradients
   beyond photographic scrims.
   ══════════════════════════════════════════════════ */

/* ── 1. Home Refresh compare slider ── */
.hr-compare { max-width: 960px; margin: 0 auto var(--s-10,40px); }
.hrc-frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--deep-navy);
  cursor: ew-resize;
}
.hrc-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hrc-before {
  filter: saturate(0.18) brightness(0.78) contrast(0.9);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.hrc-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1px;
  background: rgba(255,255,255,0.9);
  transform: translateX(-0.5px);
  pointer-events: none;
}
.hrc-knob {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
  box-shadow: 0 1px 20px rgba(0,0,0,0.25);
}
.hrc-knob::before,
.hrc-knob::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.hrc-knob::before { border-right: 5px solid var(--black); }
.hrc-knob::after { border-left: 5px solid var(--black); }
.hrc-label {
  position: absolute;
  bottom: var(--s-5,20px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(10,10,10,0.45);
  padding: 8px 14px;
  pointer-events: none;
  transition: opacity 0.3s;
}
.hrc-label-before { left: var(--s-5,20px); }
.hrc-label-after { right: var(--s-5,20px); }
.hrc-frame[data-pos="low"] .hrc-label-before,
.hrc-frame[data-pos="high"] .hrc-label-after { opacity: 0; }
.hrc-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.hrc-range:focus-visible ~ .hrc-knob {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 560px) {
  .hrc-label { font-size: 9px; letter-spacing: 2px; padding: 6px 10px; }
  .hrc-label-before { bottom: auto; top: var(--s-4,16px); left: var(--s-4,16px); }
  .hrc-label-after { bottom: var(--s-4,16px); right: var(--s-4,16px); }
}
.hrc-caption {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  margin: var(--s-4,16px) auto 0;
  max-width: 560px;
  line-height: 1.6;
}

/* ── 2. How a sale unfolds (deep navy chapters) ── */
.sale-chapters {
  background: var(--deep-navy);
  padding: var(--s-30,120px) var(--s-14,56px);
}
.sc-inner { max-width: 1400px; margin: 0 auto; }
.sc-header { max-width: 720px; margin-bottom: var(--s-16,64px); }
.sc-header .intro-label { color: var(--mauve); margin-bottom: var(--s-4,16px); }
.sc-header h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin-bottom: var(--s-5,20px);
}
.sc-header h2 em { font-style: italic; }
.sc-lead {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 560px;
}
.sc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6,24px);
  margin-bottom: var(--s-16,64px);
}
.sc-card {
  position: relative;
  padding: var(--s-8,32px) var(--s-6,24px) var(--s-8,32px) var(--s-8,32px);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.02);
}
/* corner brackets: brighter ticks over the hairline frame */
.sc-card::before,
.sc-card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.sc-card::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid rgba(255,255,255,0.65);
  border-left: 1px solid rgba(255,255,255,0.65);
}
.sc-card::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid rgba(255,255,255,0.65);
  border-right: 1px solid rgba(255,255,255,0.65);
}
.sc-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--mauve);
  letter-spacing: 1px;
  margin-bottom: var(--s-6,24px);
}
.sc-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-bottom: var(--s-3,12px);
}
.sc-card p {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  line-height: 1.7;
}
.sc-cta { text-align: center; }
.sc-cta .btn-chapter {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 17px 40px;
  background: #fff;
  color: var(--black);
  text-decoration: none;
  border: 1px solid #fff;
  transition: background 0.3s, color 0.3s;
}
.sc-cta .btn-chapter:hover { background: transparent; color: #fff; }
.sc-cta-note {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  margin-top: var(--s-4,16px);
}
.sc-cta-note a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .sc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sale-chapters { padding: var(--s-20,80px) var(--s-6,24px); }
  .sc-grid { grid-template-columns: 1fr; gap: var(--s-4,16px); margin-bottom: var(--s-12,48px); }
}

/* ── 3. Community switcher ── */
.community-switcher {
  display: grid;
  grid-template-columns: minmax(360px, 5fr) 7fr;
  gap: var(--s-16,64px);
  align-items: stretch;
}
.cs-list { display: flex; flex-direction: column; }
.cs-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: baseline;
  gap: var(--s-4,16px);
  padding: var(--s-5,20px) var(--s-2,8px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  transition: padding-left 0.35s ease;
}
.cs-list .cs-item:first-child { border-top: 1px solid rgba(255,255,255,0.12); }
.cs-item-num {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
}
.cs-item-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  transition: color 0.35s;
}
.cs-item-median {
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  transition: color 0.35s;
}
.cs-item:hover .cs-item-name,
.cs-item:focus-visible .cs-item-name,
.cs-item.active .cs-item-name { color: #fff; }
.cs-item.active { padding-left: var(--s-4,16px); }
.cs-item.active .cs-item-num { color: var(--mauve); }
.cs-item.active .cs-item-median { color: rgba(255,255,255,0.7); }
.cs-item:focus-visible { outline: 1px solid rgba(255,255,255,0.6); outline-offset: 2px; }

.cs-stage { position: relative; min-height: 560px; overflow: hidden; }
.cs-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.cs-stage-img.visible { opacity: 1; }
.cs-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.72) 100%);
  pointer-events: none;
}
.cs-stage-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s-8,32px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-6,24px);
}
.cs-stage-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: rgba(255,255,255,0.92);
  max-width: 380px;
  line-height: 1.45;
}
.cs-stage-stat {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: var(--s-2,8px);
}
.cs-stage-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: border-color 0.25s;
}
.cs-stage-link:hover { border-color: #fff; }

/* Switcher is a desktop instrument; the classic grid serves small screens. */
@media (max-width: 959px) {
  .community-switcher { display: none; }
}
@media (min-width: 960px) {
  .communities .community-grid { display: none; }
}
