/* Hi-Res Homes 1125p42 — checklist hero lights-on scroll reveal. */
.hrh-lights {
  --hrl-p: 0;
  position: relative;
  margin: 2rem 0 0;
  width: 100%;
  aspect-ratio: 848 / 1130;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #1a2332;
  border: 1px solid rgba(35, 71, 134, 0.22);
  box-shadow: 0 1px 2px rgba(29, 47, 85, 0.1), 0 22px 48px -18px rgba(29, 47, 85, 0.45);
  isolation: isolate;
}
.hrh-lights picture, .hrh-lights img { display: block; width: 100%; height: 100%; }
.hrh-lights img { object-fit: cover; user-select: none; -webkit-user-drag: none; }
.hrh-lights-lit { position: absolute; inset: 0; opacity: var(--hrl-p); will-change: opacity; }
.hrh-lights::after {
  /* faint navy inner edge so the photo sits in the palette */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hrh-lights-cap {
  position: absolute; left: 0.9rem; bottom: 0.8rem; z-index: 2;
  padding: 0.28rem 0.7rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; color: #f4f1ea;
  background: rgba(18, 24, 33, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: calc(var(--hrl-p) * var(--hrl-p));
}

/* Desktop: hero text left, photo top-right. */
@media (min-width: 900px) {
  .hrh-prep-hero > .hrh-prep-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 29vw, 400px);
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
  .hrh-prep-hero > .hrh-prep-wrap > * { grid-column: 1; min-width: 0; }
  .hrh-prep-hero > .hrh-prep-wrap > .hrh-lights {
    grid-column: 2; grid-row: 1 / span 6; margin: 0; align-self: start; justify-self: end;
  }
}
@media (max-width: 899.98px) {
  .hrh-lights { margin-top: 2rem; }
}

/* Reduced motion: static lit frame. */
@media (prefers-reduced-motion: reduce) {
  .hrh-lights { --hrl-p: 1 !important; }
  .hrh-lights-lit { opacity: 1 !important; will-change: auto; }
  .hrh-lights-cap { display: none; }
}

/* Dark mode: keep the card legible against #121821. */
html[data-theme="dark"] .hrh-lights {
  border-color: rgba(158, 182, 224, 0.28);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 50px -16px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(158, 182, 224, 0.08);
}

/* Print: static lit frame only, compact so the checklist stays at two pages. */
@media print {
  .hrh-prep-hero > .hrh-prep-wrap { display: grid !important; grid-template-columns: 1fr 0.9in; column-gap: 0.2in; align-items: start; }
  .hrh-prep-hero > .hrh-prep-wrap > * { grid-column: 1; }
  .hrh-prep-hero > .hrh-prep-wrap > .hrh-lights {
    display: block !important; grid-column: 2; grid-row: 1 / span 4; margin: 0; width: 0.9in; border-radius: 0.12in;
    border: 1px solid #ccc; box-shadow: none; background: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .hrh-lights-lit { opacity: 1 !important; }
  .hrh-lights-cap { display: none !important; }
}
