/* Homepage house journey. The house is pinned under the header; the steps
   scroll beneath it one snap at a time; nothing is ever drawn over it. */

:root {
  --stage-h: clamp(17rem, 58svh, 44rem);
  --band: calc(100svh - var(--header) - var(--stage-h));
  --paper: #fbf8f2;
  --ink: #1d1714;
  --ink-soft: #5b4f48;
  --blue: var(--gold);
  --blue-deep: var(--gold-deep);
}
@media (max-width: 760px) {
  :root { --stage-h: clamp(15rem, 41svh, 23rem); }
}

/* snapping is switched on by the script only while the journey is in view */
/* the site's anchor scroll-padding would shift every stop, so it is zeroed here */
html.jr-snap { scroll-snap-type: y mandatory; scroll-padding-top: 0; }

body { background: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------ stage ---- */
.jr { position: relative; }
.jr__stage {
  position: sticky; top: var(--header); z-index: 3;
  height: var(--stage-h); overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 0 rgb(29 23 20 / .08), 0 14px 30px -26px rgb(29 23 20 / .5);
}
.jr__sky, .jr__sky i { position: absolute; inset: 0; }
.jr__sky i { transition: opacity 1.6s var(--ease); }
.jr__sky-clear { background: linear-gradient(180deg, #a9cbe6 0%, #d5e6f1 55%, #eef2ea 100%); }
.jr__sky-grey  { background: linear-gradient(180deg, #8e979c 0%, #b4b8b5 55%, #cfcbbf 100%); opacity: 0; }
.jr__sky-gold  { background: linear-gradient(180deg, #5fa7e0 0%, #a8d4f2 46%, #fff1d0 100%); opacity: 0; }
.jr__sun {
  position: absolute; width: 46rem; aspect-ratio: 1; right: -14rem; top: -22rem;
  background: radial-gradient(closest-side, rgb(255 244 214 / .95), rgb(255 226 160 / .35) 45%, transparent);
  opacity: .35; transition: opacity 1.6s var(--ease), transform 2.4s var(--ease);
  pointer-events: none;
}
.jr__stage[data-stage="1"] .jr__sky-grey,
.jr__stage[data-stage="2"] .jr__sky-grey { opacity: 1; }
.jr__stage[data-stage="1"] .jr__sun,
.jr__stage[data-stage="2"] .jr__sun { opacity: 0; transform: translateY(-4rem); }
.jr__stage[data-stage="3"] .jr__sky-grey { opacity: .45; }
.jr__stage[data-stage="8"] .jr__sky-gold { opacity: 1; }
.jr__stage[data-stage="8"] .jr__sun { opacity: 1; transform: translate(-6rem, 5rem) scale(1.15); }

.jr__house {
  position: absolute; margin: 0;
  left: 50%; bottom: 1.6rem;
  height: calc(var(--stage-h) - 4.2rem);
  aspect-ratio: 1800 / 1156;
  max-width: calc(100% - 2rem);
  transform: translateX(-50%);
}
@supports not (aspect-ratio: 1) { .jr__house { width: 70%; } }
.jr__house canvas, .jr__fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.jr__fallback { object-fit: contain; }
.jr.is-ready .jr__fallback { display: none; }

/* lawn: starts at the foundation line and runs off both sides */
.jr__lawn {
  position: absolute; top: 89.5%; left: -60vw; right: -60vw; height: 60vh;
  background:
    radial-gradient(48% 9% at 50% 0, rgb(20 30 14 / .32), transparent 70%),
    linear-gradient(180deg, #7f9a5a 0%, #6d8a4b 22%, #5f7c42 100%);
  transition: filter 1.6s var(--ease);
}
.jr__stage[data-stage="1"] .jr__lawn,
.jr__stage[data-stage="2"] .jr__lawn { filter: saturate(.45) brightness(.85) sepia(.35); }
.jr__stage[data-stage="8"] .jr__lawn { filter: saturate(1.35) brightness(1.08); }

/* spray mist that drifts across during the wash */
.jr__spray {
  position: absolute; inset: -6% -4%; pointer-events: none; opacity: 0;
  background:
    radial-gradient(30% 22% at var(--sx, 50%) var(--sy, 30%), rgb(255 255 255 / .55), transparent 70%);
  mix-blend-mode: screen; transition: opacity .4s;
}
.jr.is-washing .jr__spray { opacity: 1; }

/* progress track along the stage foot */
.jr__track {
  position: absolute; left: 50%; bottom: .55rem; transform: translateX(-50%);
  display: flex; gap: .3rem; margin: 0; padding: .28rem; list-style: none;
  background: rgb(251 248 242 / .82); backdrop-filter: blur(8px);
  border-radius: 99px; box-shadow: 0 4px 14px -8px rgb(0 0 0 / .45);
  font: 600 .68rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase;
  transition: opacity .5s var(--ease);
}
.jr__track li { padding: .35rem .6rem; border-radius: 99px; color: var(--ink-soft); transition: background-color .35s, color .35s; }
.jr__track li.is-done { color: var(--ink); }
.jr__track li.is-now { background: var(--blue-deep); color: #fff; }
.jr__stage[data-stage="0"] .jr__track { opacity: 0; }
@media (max-width: 760px) {
  .jr__house { bottom: 2.3rem; height: calc(var(--stage-h) - 3.6rem); }
  .jr__track { font-size: .6rem; gap: .1rem; }
  .jr__track li { padding: .3rem .42rem; }
}

/* ------------------------------------------------------------ steps ---- */
.jr__step {
  min-height: max(15rem, var(--band)); height: auto;
  scroll-snap-align: start; scroll-snap-stop: always;
  scroll-margin-top: calc(var(--header) + var(--stage-h));
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem); align-content: center;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(.8rem, 2.4svh, 1.6rem) var(--g);
  color: var(--ink);
}
.jr.is-ready .jr__step > * {
  opacity: 0; transform: translateY(1.4rem);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.jr.is-ready .jr__step.is-on > * { opacity: 1; transform: none; }
.jr.is-ready .jr__step.is-on > .jr__side { transition-delay: .12s; }

/* Content remains readable if scripts or an image fail. Short viewports allow
   their controls to grow naturally instead of clipping behind the next step. */
.jr:not(.is-ready) .jr__stage { position: relative; top: 0; }
@media (max-height: 700px) {
  html.jr-snap { scroll-snap-type: y proximity; }
  .jr.is-ready .jr__step > * { opacity: 1; transform: none; }
}
@media (max-width: 360px) {
  .site-header .wrap { gap: .4rem; }
  .site-header .brand img { max-width: 5.8rem; }
  .head-act { gap: .4rem; }
  .head-act .tel { padding: .6rem .45rem; font-size: .78rem; }
}

.jr__step h1, .jr__step h2 {
  margin: 0 0 .5rem; font: var(--display-weight) clamp(1.45rem, 1rem + 1.6vw, 2.5rem)/1.08 var(--display);
  letter-spacing: -.01em; text-wrap: balance;
}
.jr__step h1 { font-size: clamp(1.7rem, 1rem + 2.2vw, 3rem); }
.jr__step h1 em { font-style: italic; color: var(--blue-deep); }
.jr__step p { margin: 0; font: 400 clamp(.92rem, .86rem + .25vw, 1.06rem)/1.5 var(--text); color: var(--ink-soft); max-width: 36rem; }
.jr__step .jr__lede { color: var(--ink); }

.jr__side { align-self: center; min-width: 0; }
.jr__act { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.3rem; }
.jr__act .btn { display: inline-flex; width: auto; margin: 0; }
.jr__act .tel { font: 700 1.05rem/1 var(--text); color: var(--ink); text-decoration: none; }
.jr__ticks { display: flex; gap: 1.1rem; margin: .9rem 0 0; padding: 0; list-style: none; font: 600 .78rem/1 var(--text); color: var(--ink-soft); }
.jr__ticks li::before { content: ""; display: inline-block; width: .42rem; height: .42rem; margin-right: .4rem; border-radius: 50%; background: var(--blue); vertical-align: .08rem; }
.jr__call { font: var(--display-weight) clamp(1.2rem, 1rem + .9vw, 1.7rem)/1.2 var(--display) !important; color: var(--blue-deep) !important; }
.jr__hint { margin-top: .35rem !important; font-size: .9rem !important; }

/* choices */
.jr__pick { border: 0; margin: 0; padding: 0; }
.jr__pick legend { padding: 0; margin-bottom: .6rem; font: 700 .74rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.jr__pick input { position: absolute; opacity: 0; pointer-events: none; }
.jr__pick.is-waiting legend::after {
  content: "  Pick one"; color: var(--blue-deep); animation: jr-nudge 1.4s var(--ease) infinite;
}
@keyframes jr-nudge { 50% { opacity: .35; } }

.jr__opt, .jr__chk {
  display: block; position: relative; cursor: pointer;
  padding: .7rem .9rem .7rem 2.6rem; margin-bottom: .5rem;
  border: 1.5px solid rgb(29 23 20 / .14); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .15s var(--ease);
}
.jr__opt span, .jr__chk span { display: block; font: 400 .86rem/1.4 var(--text); color: var(--ink-soft); }
.jr__opt b, .jr__chk b { display: block; font: 700 .98rem/1.25 var(--text); color: var(--ink); }
.jr__chk b { display: inline; margin-right: .3rem; }
.jr__opt::before, .jr__chk::before {
  content: ""; position: absolute; left: .9rem; top: .9rem; width: 1.05rem; height: 1.05rem;
  border: 2px solid rgb(29 23 20 / .3); border-radius: 50%; background: #fff;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.jr__chk::before { border-radius: 5px; }
.jr__opt:hover, .jr__chk:hover { border-color: var(--blue); }
.jr__opt:active, .jr__chk:active { transform: scale(.985); }
.jr__opt:has(input:checked), .jr__chk:has(input:checked) { border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgb(75 160 217 / .18); }
.jr__opt:has(input:checked)::before { background: var(--blue-deep); border-color: var(--blue-deep); box-shadow: inset 0 0 0 3px #fff; }
.jr__chk:has(input:checked)::before { background: var(--blue-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--blue-deep); }
.jr__pick :focus-visible + span, .jr__pick :focus-visible + i { outline: 3px solid var(--blue); outline-offset: 3px; }
.jr__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .5rem; }
.jr__checks legend { grid-column: 1 / -1; }
.jr__chk { padding: .62rem .7rem .62rem 2.35rem; margin-bottom: .45rem; }
.jr__chk::before { top: .72rem; left: .75rem; }
.jr__chk span { font-size: .8rem; }
/* prep runs in order: the next step is lit, later steps wait their turn */
.jr__chk.is-locked { opacity: .5; }
.jr__chk.is-next { border-color: var(--blue); }
.jr__chk.is-next::before { border-color: var(--blue-deep); }
.jr__chk.is-nudge { animation: jr-shake .45s var(--ease); }
@keyframes jr-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.jr__swatches { display: flex; flex-wrap: wrap; gap: .55rem .5rem; align-content: start; }
.jr__swatches legend { width: 100%; }
.jr__swatches label { display: grid; justify-items: center; gap: .32rem; width: 4.3rem; cursor: pointer; text-align: center; }
.jr__swatches label > span { font: 600 .7rem/1.15 var(--text); color: var(--ink-soft); }
.jr__swatches i {
  display: block; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--c); border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px rgb(29 23 20 / .18), 0 6px 12px -8px rgb(0 0 0 / .6);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.jr__swatches label:hover i { transform: translateY(-2px); }
.jr__swatches label:has(input:checked) i { transform: scale(1.08); box-shadow: 0 0 0 2.5px var(--blue-deep), 0 8px 16px -8px rgb(0 0 0 / .6); }
.jr__swatches label:has(input:checked) > span { color: var(--ink); }
.jr__any i { background: conic-gradient(#d24b43, #e2b23c, #8fa58a, #4ba0d9, #34507a, #9a5bb0, #d24b43); }
.jr__any input[type=color] { position: absolute; inset: 0; width: 100%; height: 2.9rem; opacity: 0; pointer-events: auto; cursor: pointer; }
.jr__any { position: relative; }
.jr__any.is-set i { background: var(--c); }
.jr__grain { background:
  repeating-linear-gradient(96deg, rgb(255 255 255 / .12) 0 2px, transparent 2px 7px),
  repeating-linear-gradient(88deg, rgb(0 0 0 / .14) 0 1px, transparent 1px 5px), var(--c) !important; }
.jr__group { width: 100%; margin: .2rem 0 -.1rem !important; font: 700 .68rem/1 var(--text) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft) !important; }
.jr__door label { width: 3.8rem; }
.jr__door i { width: 2.5rem; height: 2.5rem; }

.jr__wood {
  float: right; width: 5.2rem; height: auto; margin: .2rem 0 .4rem 1rem; border-radius: 8px;
  box-shadow: 0 8px 18px -10px rgb(0 0 0 / .55);
}
.jr__again {
  margin-top: .9rem; padding: .4rem 0; border: 0; background: none; cursor: pointer;
  font: 600 .85rem/1 var(--text); color: var(--ink-soft); text-decoration: underline; text-underline-offset: .2em;
}

@media (max-width: 760px) {
  .jr__step { grid-template-columns: 1fr; gap: .8rem; align-content: start; padding-top: 1.1rem; }
  .jr__step--hero { align-content: center; }
  .jr__step h2 { font-size: 1.38rem; margin-bottom: .35rem; }
  .jr__step p { font-size: .9rem; line-height: 1.45; }
  .jr__opt { padding: .55rem .75rem .55rem 2.4rem; margin-bottom: .4rem; }
  .jr__opt::before { top: .7rem; left: .75rem; }
  .jr__opt span { font-size: .8rem; }
  .jr__swatches { gap: .45rem .2rem; }
  .jr__swatches label { width: 3.9rem; }
  .jr__swatches i { width: 2.5rem; height: 2.5rem; }
  .jr__wood { width: 3.6rem; }
  .jr__door label { width: 3.6rem; }
  .jr__door i { width: 2.2rem; height: 2.2rem; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .jr__step p { font-size: .9rem; }
  .jr__opt span { display: none; }
}

/* ------------------------------------------------------------- dock ---- */
.dock {
  position: fixed; z-index: 40; display: flex; align-items: center; gap: .8rem;
  left: 1rem; bottom: 1rem; padding: .55rem .6rem .55rem .55rem;
  background: rgb(251 248 242 / .94); backdrop-filter: blur(10px);
  border: 1px solid rgb(29 23 20 / .1); border-radius: 14px;
  box-shadow: 0 18px 40px -22px rgb(0 0 0 / .55);
  transform: translateY(140%); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
}
.dock.is-on { transform: none; opacity: 1; }
/* while the house is flying in, the card is there but its thumbnail waits */
.dock.is-landing canvas { visibility: hidden; }
.dock.is-measure { transform: none !important; transition: none !important; }
.jr-flyer {
  position: fixed; z-index: 45; margin: 0; pointer-events: none;
  transform-origin: 0 0; will-change: transform;
  filter: drop-shadow(0 18px 24px rgb(0 0 0 / .28));
}
.dock canvas { width: 7.5rem; height: auto; border-radius: 8px; background: linear-gradient(#a8d4f2, #e9f3f7 70%, #7f9a5a 70%); }
.dock p { margin: 0; max-width: 12rem; font: 600 .78rem/1.35 var(--text); color: var(--ink); }
.dock .btn { display: inline-flex; width: auto; margin: 0; padding: .8em 1em; font-size: .74rem; }
@media (max-width: 760px) {
  .dock {
    top: var(--header); bottom: auto; left: 0; right: 0; border-radius: 0; border-width: 0 0 1px;
    padding: .35rem var(--g); gap: .6rem; transform: translateY(-120%);
  }
  .dock canvas { width: 4.6rem; border-radius: 5px; }
  .dock p { flex: 1; font-size: .72rem; }
  .dock .btn { padding: .7em .8em; font-size: .66rem; }
}

/* ------------------------------------------------------------- rest ---- */
.rest { scroll-snap-align: start; scroll-margin-top: var(--header); color: var(--ink); }
.rest .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--g); }
.rest__sec { padding: var(--section) 0; }
.rest__sec + .rest__sec { border-top: 1px solid rgb(29 23 20 / .08); }
.rest h2 { margin: 0 0 .8rem; font: var(--display-weight) clamp(1.7rem, 1.1rem + 2vw, 2.9rem)/1.08 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.rest h3 { margin: 0 0 .4rem; font: 700 1.05rem/1.3 var(--text); }
.rest p { margin: 0; font: 400 1.02rem/1.6 var(--text); color: var(--ink-soft); max-width: 42rem; }
.rest a { color: inherit; }
.rest__lede { margin-bottom: 2.2rem !important; }
.rest__split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }

.rest__svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.rest__svc > li { padding: 1.3rem 1.3rem 1.1rem; background: #fff; border: 1px solid rgb(29 23 20 / .08); border-radius: 12px; }
.rest__cat { display: block; margin-bottom: .7rem; font: var(--display-weight) 1.28rem/1.15 var(--display); text-decoration: none; }
.rest__cat:hover { color: var(--blue-deep); }
.rest__svc ul { margin: 0; padding: 0; list-style: none; }
.rest__svc ul a { display: block; padding: .32rem 0; font: 400 .93rem/1.3 var(--text); color: var(--ink-soft); text-decoration: none; border-top: 1px solid rgb(29 23 20 / .06); }
.rest__svc ul a:hover { color: var(--blue-deep); }

.rest__steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.rest__steps li { position: relative; padding: 0 0 1.6rem 3.4rem; counter-increment: s; }
.rest__steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue-deep); color: #fff; font: 700 .95rem/1 var(--text);
}
.rest__steps p { font-size: .96rem; }

.rest__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.rest__cards article { padding: 1.5rem; background: #fff; border: 1px solid rgb(29 23 20 / .08); border-radius: 12px; }
.rest__cards p { font-size: .95rem; }
.rest__owner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 4rem; margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.6rem, 4vw, 3rem); border-radius: 16px; background: #1f2c3d; color: #f4f1ea; }
.rest__owner p { color: #c9cfd6; }
.rest__cred { margin-top: 1rem !important; color: #fff !important; font-weight: 600 !important; }
.rest__more { display: inline-block; margin-top: 1.2rem; font: 700 .9rem/1 var(--text); color: #9fd0f0 !important; }
.rest__list { margin: 0; padding: 0; list-style: none; align-self: center; }
.rest__list li { padding: .7rem 0 .7rem 1.8rem; border-bottom: 1px solid rgb(255 255 255 / .12); font: 500 .98rem/1.3 var(--text); position: relative; }
.rest__list li::before { content: ""; position: absolute; left: 0; top: .95rem; width: .8rem; height: .45rem; border: solid #9fd0f0; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }

.rest__towns { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.rest__towns a { display: block; padding: .55rem .95rem; border-radius: 99px; background: #fff; border: 1px solid rgb(29 23 20 / .1); font: 500 .92rem/1 var(--text); text-decoration: none; }
.rest__towns a:hover { border-color: var(--blue-deep); color: var(--blue-deep); }

.rest__qs details { border-bottom: 1px solid rgb(29 23 20 / .12); }
.rest__qs summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; }
.rest__qs summary::-webkit-details-marker { display: none; }
.rest__qs summary::after { content: "+"; position: absolute; right: .2rem; top: .9rem; font: 400 1.5rem/1 var(--text); color: var(--blue-deep); }
.rest__qs details[open] summary::after { content: "\2212"; }
.rest__qs summary h3 { margin: 0; display: inline; }
.rest__qs details p { padding-bottom: 1.2rem; font-size: .97rem; }

.rest__close { background: linear-gradient(180deg, #fbf8f2, #eaf3f9); text-align: center; }
.rest__close p { margin: 0 auto 1.8rem; }
.rest__close .jr__act { justify-content: center; }

@media (max-width: 760px) {
  .rest__split, .rest__owner { grid-template-columns: 1fr; }
  .rest { padding-bottom: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .jr__step > *, .jr__sky i, .jr__sun, .jr__lawn, .dock { transition: none !important; }
  .jr__pick.is-waiting legend::after { animation: none; }
}
