/*
 * Home page only (docs/jxp-demo-content-and-home.md section 4). Ported from the approved
 * scroll-craft prototype. Loaded after scrollcraft.css and main.css.
 *
 * Contrast (spec 4.9): off-white on charcoal 16.6:1, soft text on charcoal 9.0:1 and on surface
 * 8.1:1, charcoal on gold 9.0:1, #4a4e58 on off-white 7.7:1, #8a6a1c on off-white 4.7:1. Gold
 * text on dark sections is the prototype's gold, #d8b45a (9.0:1 on charcoal, 8.1:1 on surface;
 * spec 10.2 A8). Gold text is never used on a light background: light sections use #8a6a1c.
 */
:root {
  --sc-canvas: #14171f; --sc-surface: #1d212b; --sc-ink: #f6f6f4; --sc-ink-soft: #b9b8b2;
  --sc-accent: #d8b45a; --sc-accent-ink: #14171f;
  --h-paper: #f6f6f4; --h-ink-dark: #14171f; --h-ink-dark-soft: #4a4e58; --h-gold-dark: #8a6a1c;
  --h-gold-text: #d8b45a;
  --h-line: rgba(246, 246, 244, .14); --h-line-dark: rgba(20, 23, 31, .14);
  --h-gutter: clamp(1.25rem, 5vw, 4.5rem);
  --h-max: 1240px;
}
/* The engine's reset turns smooth scrolling on; the header is sticky, so anchors stop below it. */
html { scroll-padding-top: 5.5rem; }

.jxp-home { overflow-x: clip; }
.jxp-home .h-wrap { max-width: var(--h-max); margin: 0 auto; padding: 0 var(--h-gutter); }
.jxp-home .h-dark { background: var(--sc-canvas); color: var(--sc-ink); }
.jxp-home .h-light { background: var(--h-paper); color: var(--h-ink-dark); }
.jxp-home .h-dark a { color: var(--sc-ink); }
.jxp-home .h-light a { color: var(--h-ink-dark); }

.jxp-home h1, .jxp-home h2, .jxp-home h3 { margin: 0; }
.jxp-home h1 { font-size: clamp(2.375rem, 4.3vw, 4rem); line-height: 1.03; letter-spacing: -.04em; font-weight: 820; max-width: 15ch; text-wrap: balance; }
.jxp-home h2 { font-size: clamp(1.875rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 780; max-width: 20ch; text-wrap: balance; }
.jxp-home h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 720; }
.jxp-home .h-eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--h-gold-text); margin: 0 0 1rem; }
.jxp-home .h-light .h-eyebrow { color: var(--h-gold-dark); }
.jxp-home .h-lede { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--sc-ink-soft); max-width: 46ch; margin: 1.25rem 0 0; }
.jxp-home .h-light .h-lede, .jxp-home .h-light .h-muted { color: var(--h-ink-dark-soft); }
.jxp-home .h-section { padding: clamp(4.5rem, 11vh, 8rem) 0; }
.jxp-home .h-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.jxp-home .h-head__side { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

/* Buttons and links. 48 px pills, as in the prototype. */
.jxp-home .h-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid currentColor; cursor: pointer; text-align: center; }
.jxp-home a.h-btn--gold { background: var(--sc-accent); color: var(--h-ink-dark); border-color: var(--sc-accent); }
.jxp-home a.h-btn--gold:hover { background: #e4c470; border-color: #e4c470; }
.jxp-home a.h-btn--ghost { color: var(--sc-ink); }
.jxp-home a.h-btn--ghost:hover { background: rgba(246, 246, 244, .08); }
.jxp-home a.h-btn--dark { background: var(--h-ink-dark); color: var(--sc-ink); border-color: var(--h-ink-dark); }
.jxp-home .h-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.jxp-home p .h-link { display: inline; min-height: 0; }

/* Focus (spec 4.9): a 2 px ring offset 3 px. Gold on charcoal, charcoal on off-white and white. */
.jxp-home :focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 4px; }
.jxp-home .h-light :focus-visible, .jxp-home .h-cta-card :focus-visible { outline-color: var(--h-ink-dark); }
.jxp-home .hero-form-frame__inner :focus-visible { outline: 2px solid var(--h-ink-dark); outline-offset: 3px; }

/* 1. Hero: copy and a three-photo collage at three depths. */
.jxp-home .h-hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vh, 6.5rem) 0 clamp(3rem, 8vh, 5rem); }
.jxp-home .h-hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.jxp-home .h-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }
.jxp-home .h-hero__phone { margin: 1rem 0 0; font-size: .9375rem; color: var(--sc-ink-soft); }
.jxp-home .h-hero__phone a { color: var(--sc-ink); font-weight: 650; }
.jxp-home .h-collage { position: relative; aspect-ratio: 1 / .78; --mx: 0; --my: 0; }
.jxp-home .h-ph { position: absolute; margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.jxp-home .h-ph__in { width: 100%; height: 100%; transform: none; }
.jxp-home .h-ph img { width: 100%; height: 100%; object-fit: cover; }
.jxp-home .h-ph--a { left: 0; top: 3%; width: 76%; aspect-ratio: 16 / 10; z-index: 1; }
.jxp-home .h-ph--b { right: 0; top: 14%; width: 37%; aspect-ratio: 4 / 5; z-index: 2; }
.jxp-home .h-ph--c { left: 12%; bottom: 0; width: 50%; aspect-ratio: 16 / 10; z-index: 3; outline: 6px solid var(--sc-canvas); }
.jxp-home .h-ph--b img { object-position: 45% 50%; }
.jxp-home .h-ph--c img { object-position: 50% 40%; }
/* Pointer response sits on the inner layer, so it never fights the engine's parallax on the figure. */
.jxp-home .h-collage.is-pointer .h-ph--a .h-ph__in { transform: translate(calc(var(--mx) * -6px), calc(var(--my) * -4px)); }
.jxp-home .h-collage.is-pointer .h-ph--b .h-ph__in { transform: translate(calc(var(--mx) * -12px), calc(var(--my) * -8px)); }
.jxp-home .h-collage.is-pointer .h-ph--c .h-ph__in { transform: translate(calc(var(--mx) * -20px), calc(var(--my) * -12px)); }
.jxp-home .h-promise { list-style: none; margin: clamp(3rem, 7vh, 4.5rem) 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--h-line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 2rem; font-size: .9375rem; }
.jxp-home .h-promise li { display: flex; gap: .6rem; align-items: baseline; }
.jxp-home .h-promise li::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sc-accent); transform: translateY(-1px); }

/* 2. Two ways to plan. */
.jxp-home .h-ways-section { padding-top: clamp(2rem, 5vh, 3rem); }
.jxp-home .h-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.jxp-home .h-way { position: relative; border-radius: 18px; overflow: hidden; min-height: 26rem; display: flex; align-items: flex-end; color: var(--sc-ink); isolation: isolate; background: var(--sc-surface); }
.jxp-home .h-way img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.jxp-home .h-way::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14, 16, 22, .92) 8%, rgba(14, 16, 22, .55) 48%, rgba(14, 16, 22, .05)); }
.jxp-home .h-way:hover img { transform: scale(1.03); }
.jxp-home .h-way__body { padding: clamp(1.5rem, 3vw, 2.5rem); max-width: 34rem; }
.jxp-home .h-way__body p { margin: .75rem 0 1.25rem; color: #d6d5d0; }
.jxp-home .h-way__body .h-way__ctas { margin: 0; }

/* 3. Rentals rail: native horizontal scroll-snap, focusable, arrow buttons beside the heading. */
.jxp-home .h-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(15rem, 24vw, 19rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem var(--h-gutter) 1.25rem; scroll-padding: 0 var(--h-gutter); scrollbar-width: thin; }
.jxp-home .h-rail > * { scroll-snap-align: start; }
.jxp-home .h-rail:focus-visible { outline-offset: -2px; }
.jxp-home .h-cat { display: grid; grid-template-rows: auto 1fr; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--h-line-dark); text-decoration: none; color: var(--h-ink-dark); transition: transform .25s, box-shadow .25s; }
.jxp-home .h-cat:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20, 23, 31, .12); }
.jxp-home .h-cat img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.jxp-home .h-cat__body { padding: 1rem 1.1rem 1.2rem; }
.jxp-home .h-cat p { margin: .35rem 0 0; font-size: .9375rem; color: var(--h-ink-dark-soft); }
.jxp-home .h-rail-nav { display: none; gap: .5rem; }
html.jxp-script .jxp-home .h-rail-nav { display: flex; }
.jxp-home .h-rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--h-ink-dark); background: none; color: var(--h-ink-dark); cursor: pointer; font-size: 1.1rem; padding: 0; }
.jxp-home .h-rail-nav button:hover { background: rgba(20, 23, 31, .06); }

/* 4. Party ideas. */
.jxp-home .h-ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.jxp-home .h-idea { display: grid; grid-template-rows: auto 1fr; background: var(--sc-surface); border: 1px solid var(--h-line); border-radius: 16px; overflow: hidden; text-decoration: none; }
.jxp-home .h-idea img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; }
.jxp-home .h-idea__body { padding: 1.25rem 1.35rem 1.4rem; display: grid; gap: .5rem; align-content: start; }
.jxp-home .h-idea p { margin: 0; color: var(--sc-ink-soft); font-size: .9688rem; }
.jxp-home .h-idea__more { margin-top: .35rem; color: var(--h-gold-text); font-weight: 700; font-size: .9375rem; }
.jxp-home .h-idea:hover { border-color: rgba(216, 180, 90, .55); }
.jxp-home .h-idea:hover .h-idea__more { text-decoration: underline; }

/* 5. How it works: one pinned act; the progress line reads the act's --sc-p. */
.jxp-home .h-how { position: relative; }
.jxp-home .h-how__stage { display: flex; align-items: center; padding: clamp(4.5rem, 11vh, 8rem) 0; }
.jxp-home .h-how .sc-stage { padding: 0; }
.jxp-home .h-how__wrap { width: 100%; }
.jxp-home .h-track { position: relative; height: 3px; background: var(--h-line-dark); border-radius: 3px; margin: 2.5rem 0 2rem; overflow: hidden; }
.jxp-home .h-track i { position: absolute; inset: 0 auto 0 0; width: calc(clamp(0, var(--sc-p, 0) * 1.15, 1) * 100%); background: var(--sc-accent); border-radius: 3px; }
.jxp-home .h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.jxp-home .h-step b { display: block; font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 820; letter-spacing: -.04em; line-height: 1; color: var(--h-gold-dark); margin-bottom: .75rem; }
.jxp-home .h-step p { margin: .5rem 0 0; color: var(--h-ink-dark-soft); font-size: .9688rem; }

/* 6. Why choose us, with a CTA card that is sticky on desktop only. */
.jxp-home .h-why { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.jxp-home .h-why h2 { margin-bottom: 2.5rem; }
.jxp-home .h-why__points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
.jxp-home .h-why__points h3 { margin-bottom: .4rem; }
.jxp-home .h-why__points p { margin: 0; color: var(--sc-ink-soft); }
.jxp-home .h-why__points li::before { content: ""; display: block; width: 2rem; height: 3px; background: var(--sc-accent); margin-bottom: 1rem; border-radius: 3px; }
.jxp-home .h-cta-card { background: var(--sc-accent); color: var(--h-ink-dark); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.25rem); position: sticky; top: 6rem; }
.jxp-home .h-cta-card h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.jxp-home .h-cta-card p { margin: .75rem 0 1.5rem; }

/* 7. Bigger events band. */
.jxp-home .h-events { padding-bottom: clamp(4.5rem, 11vh, 8rem); }
.jxp-home .h-band { position: relative; overflow: hidden; border-radius: 22px; isolation: isolate; color: var(--sc-ink); background: var(--sc-surface); }
.jxp-home .h-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.jxp-home .h-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 16, 22, .94) 30%, rgba(14, 16, 22, .45)); }
.jxp-home .h-band__in { padding: clamp(2.5rem, 7vw, 5rem); max-width: 40rem; }
.jxp-home .h-band p { color: #d6d5d0; margin: 1rem 0 1.75rem; }
.jxp-home .h-band .h-eyebrow { margin-bottom: 1rem; }

/* 8. Service area. */
.jxp-home .h-area-section { padding-top: 0; }
.jxp-home .h-regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.jxp-home .h-region { background: var(--sc-surface); border: 1px solid var(--h-line); border-radius: 16px; padding: 1.5rem 1.5rem 1.4rem; }
.jxp-home .h-region__tag { margin: .35rem 0 1rem; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--h-gold-text); }
.jxp-home .h-region ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; }
.jxp-home .h-region li { padding-left: 1rem; position: relative; }
.jxp-home .h-region li::before { content: ""; position: absolute; left: 0; top: .7em; width: .35rem; height: .35rem; border-radius: 50%; background: var(--sc-ink-soft); }
.jxp-home .h-region .h-muted { color: var(--sc-ink-soft); font-size: .9375rem; margin: 0; }
.jxp-home .h-region--ask { background: linear-gradient(160deg, rgba(216, 180, 90, .16), rgba(216, 180, 90, .04)), var(--sc-surface); border-color: rgba(216, 180, 90, .4); display: grid; align-content: start; gap: .75rem; }
.jxp-home .h-region--ask p { margin: 0 0 .5rem; color: var(--sc-ink-soft); }

/* 9. FAQ: native details, 44 px summaries. */
.jxp-home .h-faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); }
.jxp-home .h-faq__all { margin: 1.5rem 0 0; }
.jxp-home .h-faq details { border-top: 1px solid var(--h-line-dark); }
.jxp-home .h-faq details:last-of-type { border-bottom: 1px solid var(--h-line-dark); }
.jxp-home .h-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-weight: 680; font-size: 1.0625rem; min-height: 44px; box-sizing: border-box; }
.jxp-home .h-faq summary::-webkit-details-marker { display: none; }
.jxp-home .h-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--h-gold-dark); }
.jxp-home .h-faq details[open] summary::after { content: "\2013"; }
.jxp-home .h-faq details p { margin: 0 0 1.25rem; color: var(--h-ink-dark-soft); max-width: 60ch; }

/* 10. Quote: facts beside the existing lead form, in its solid white frame. */
.jxp-home .h-quote__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.jxp-home .h-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.jxp-home .h-facts li { display: grid; gap: .15rem; padding-top: 1rem; border-top: 1px solid var(--h-line); }
.jxp-home .h-facts b { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sc-ink-soft); font-weight: 700; }
.jxp-home .h-facts a { font-weight: 650; }
.jxp-home .h-facts__line { display: block; }
.jxp-home .hero-form-frame { border-radius: 18px; }
.jxp-home .hero-form-frame__inner { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 14px; }
.jxp-home .jxp-fields--hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.jxp-home .jxp-fields--hero > .jxp-field--full { grid-column: 1 / -1; }
.jxp-home .jxp-field--interests fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.jxp-home .jxp-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.jxp-home .jxp-choice--row, .jxp-home .jxp-fields--hero .jxp-choice { align-items: center; min-height: 44px; padding-block: 0; }
.jxp-home .jxp-choice--row input, .jxp-home .jxp-fields--hero .jxp-choice input { margin-top: 0; accent-color: var(--h-ink-dark); }

/* ------------------------------------------------------------ tablet and phone */
@media (max-width: 1080px) {
  .jxp-home .h-ideas { grid-template-columns: 1fr 1fr; }
  .jxp-home .h-why { grid-template-columns: 1fr; }
  .jxp-home .h-cta-card { position: static; }
  .jxp-home .h-regions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .jxp-home .h-hero__grid, .jxp-home .h-ways, .jxp-home .h-faq__grid, .jxp-home .h-quote__grid { grid-template-columns: 1fr; }
  .jxp-home .h-collage { order: -1; aspect-ratio: 1 / .8; }
  .jxp-home .h-hero__ctas { flex-direction: column; }
  .jxp-home .h-hero__ctas .h-btn { width: 100%; }
  .jxp-home .h-promise { grid-template-columns: 1fr 1fr; }
  .jxp-home .h-way { min-height: 22rem; }
  .jxp-home .h-rail { grid-auto-columns: 74vw; }
  html.jxp-script .jxp-home .h-rail-nav { display: none; }
  .jxp-home .h-ideas { grid-template-columns: 1fr; }
  .jxp-home .h-steps { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .jxp-home .h-why__points { grid-template-columns: 1fr; }
  .jxp-home .jxp-fields--hero, .jxp-home .jxp-checks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .jxp-home .h-regions { grid-template-columns: 1fr; }
}
/* A very short window (for example 200 percent zoom on a laptop) cannot hold the pinned stage, so
   the steps scroll as ordinary content there instead of being clipped. */
@media (max-height: 540px) {
  .jxp-home .h-how .sc-stage { position: relative; height: auto; overflow: visible; padding: clamp(3rem, 8vh, 5rem) 0; }
}

/* ------------------------------------------------------------ no JavaScript, or the engine did not mount
   Every element the engine would reveal stays visible and in place, so the page reads as one
   normal long page. The head script sets jxp-js; it comes off again if the engine never mounts. */
html:not(.jxp-js) [data-sc-in],
html:not(.jxp-js) [data-sc-stagger] > *,
html:not(.jxp-js) [data-sc-cue] { opacity: 1 !important; transform: none !important; transition: none !important; }
html:not(.jxp-js) .jxp-home [data-sc-parallax] { transform: none !important; }

/* ------------------------------------------------------------ reduced motion (spec 4.6)
   Enforced here rather than left to the engine: no parallax or pointer motion, no reveal
   movement (a short fade at most), every step visible throughout the pinned act, and the
   progress line drawn in full. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .jxp-home [data-sc-parallax], .jxp-home .h-ph__in, .jxp-home .h-collage.is-pointer .h-ph__in { transform: none !important; }
  .jxp-home [data-sc-in], .jxp-home [data-sc-stagger] > * { transform: none !important; }
  .jxp-home [data-sc-cue] { opacity: 1 !important; transform: none !important; }
  .jxp-home .h-track i { width: 100%; }
  .jxp-home .h-way img, .jxp-home .h-cat, .jxp-home .h-idea { transition: none; }
  .jxp-home .h-way:hover img, .jxp-home .h-cat:hover { transform: none; }
}
