/* Journey: one scroll-driven video behind the top of the home page, from the hero through the four units and "made by hand".
   Scroll runs the camera backwards through the clip: sky over the valley -> the house -> balcony -> living room.
   Layers, bottom to top: video, side sun glow, warm haze + vignette, progress bar. The dark wood woodshop layer (#craft) then rises over it. */
.journey{position:fixed;inset:0;z-index:1;pointer-events:none;background:#14100c center/cover no-repeat;overflow:hidden;contain:strict;transition:opacity .35s linear}
/* poster until the first frames are decoded: the opening frame of the journey */
.journey.land{background-image:url(video/scrub/frames-land/f_0001.webp)}
.journey.port{background-image:url(video/scrub/frames-port/f_0001.webp)}
.journey.gone{opacity:0}
.scrub-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;will-change:transform;filter:contrast(1.04) saturate(1.05);opacity:0}
.scrub-canvas.on{opacity:1}

/* a. side glow in the colour of the sun, breathing very slowly */
.scrub-glow{position:absolute;inset:0;mix-blend-mode:screen;opacity:.18;
  background:
    radial-gradient(ellipse 35% 75% at 0% 45%,rgb(255 190 110 / .95),rgb(255 190 110 / 0) 100%),
    radial-gradient(ellipse 35% 75% at 100% 45%,rgb(255 190 110 / .95),rgb(255 190 110 / 0) 100%);
  animation:scrub-breathe 26s ease-in-out infinite alternate}
@keyframes scrub-breathe{
  from{opacity:.15;background-position:-2% 0,102% 0}
  to{opacity:.21;background-position:2% 4%,98% -4%}
}
/* b. gentle warm haze, plus a darker cinematic vignette at the edges */
.scrub-haze{position:absolute;inset:0}
.scrub-haze::before{content:"";position:absolute;inset:0;mix-blend-mode:soft-light;opacity:.12;
  background:linear-gradient(160deg,rgb(255 214 150),rgb(255 176 96) 55%,rgb(214 130 70))}
.scrub-haze::after{content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse 120% 95% at 50% 48%,#0000 58%,#0000002e 82%,#00000059 100%),
             linear-gradient(180deg,#00000038 0,#0000 22%,#0000 70%,#00000047 100%)}
.scrub-bar{position:absolute;top:0;inset-inline:0;height:3px;background:#c99a55;transform:scaleX(0);transform-origin:100% 50%;will-change:transform}

/* everything between the top and the units floats over the video */
.has-journey main > .hero,.has-journey main > .units,.has-journey main > .marquee,.has-journey .journey-gap{position:relative;z-index:2}
.has-journey .hero{position:relative;background:transparent;min-height:max(100svh,720px);perspective:none}
/* no full-width scrim (its edge showed as a hard line over the video): a feathered glow behind the headline only */
.has-journey .hero::after{content:none}
.has-journey .hero-copy{isolation:isolate}
.has-journey .hero-copy::before{content:"";position:absolute;z-index:-1;left:50%;top:50%;width:min(1300px,150vw);height:150%;
  transform:translate(-50%,-58%);pointer-events:none;
  background:radial-gradient(closest-side,#0d0a0780 0%,#0d0a0759 38%,#0d0a0726 66%,#0d0a0700 100%)}
.has-journey .hero-copy h1,.has-journey .hero-copy p{text-shadow:0 2px 26px #000a}
/* booking bar: a floating glass card that hovers over the video, price line inside */
.has-journey .bookbar{inset-inline:clamp(14px,3vw,40px);bottom:clamp(86px,11vh,110px)}
@media (min-width:901px){.has-journey .hero-copy{padding-bottom:clamp(250px,32vh,300px)}}
.has-journey .bookbar .wrap{padding-inline:0}
.has-journey .bookbar form{background:rgba(20,16,12,.45);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);
  border:1px solid #ffffff2e;border-radius:28px;padding:8px;gap:6px;box-shadow:0 30px 80px -20px #000a,0 8px 24px -12px #0007}
.has-journey .bookbar label{border-radius:18px}
.has-journey .bookbar .note{padding:6px 12px 4px}
@media (max-width:900px){
  .has-journey .bookbar{position:relative;inset:auto;margin:0 clamp(12px,4vw,24px) 28px}
  .has-journey .bookbar form{border-radius:24px}
  .has-journey .bookbar label:first-child{border-radius:18px}
}
@media (min-width:901px){
  .has-journey .hero{position:relative}
  .has-journey .hero + section{border-radius:0;box-shadow:none}
}

/* the four units float over the video: heading and each unit's text sit on warm paper cards */
.has-journey .units{background:none;position:relative;z-index:2;padding-block:clamp(90px,14vh,160px)}
.has-journey .unit-list{gap:50vh}
.has-journey .units .sec-head{max-width:860px;background:#fffaf2eb;border-radius:var(--r-card,22px);
  padding:clamp(26px,4vw,48px) clamp(22px,4vw,48px);box-shadow:0 40px 80px -40px #0008}
.has-journey .u-body{background:#fffaf2eb;border-radius:var(--r-card,22px);padding:clamp(22px,3vw,40px);
  box-shadow:0 40px 80px -40px #0008}
.has-journey .u-media{box-shadow:0 40px 90px -40px #000b}

/* marquee: no strip, light outlined words straight over the landscape */
.has-journey .marquee{background:none;border:0;padding-block:clamp(40px,8vh,90px)}
.has-journey .marquee span{-webkit-text-stroke:1.2px #fff6e8;text-shadow:0 2px 24px #0006}
.has-journey .marquee span:nth-of-type(3n+2){color:#fff6e8}
.has-journey .marquee i{background:#f1dfbd}

/* "made by hand" also floats over the video: heading card + four feature cards, same paper style as the units */
.has-journey main > .intro{position:relative;z-index:2;background:none;padding-block:clamp(90px,16vh,180px) 0}
.has-journey .made-card{max-width:900px;margin:0 auto;background:#fffaf2eb;border-radius:var(--r-card,22px);
  padding:clamp(28px,4.5vw,56px) clamp(22px,4vw,52px);box-shadow:0 40px 80px -40px #0008}
.has-journey .intro .offer-icons{margin-top:30vh;gap:clamp(12px,1.6vw,20px)}
.has-journey .intro .offer-icons > div{background:#fffaf2eb;border-radius:var(--r-card,22px);padding:clamp(18px,2vw,28px) clamp(14px,1.6vw,22px);
  box-shadow:0 30px 60px -34px #0008}

/* the camera settles in the living room, then the dark wood woodshop (#craft) rises over the video */
.journey-gap{height:70vh}
.has-journey .wood-rise{border-radius:44px 44px 0 0;box-shadow:0 -40px 70px -30px #000a;margin-top:0}

/* reduced motion (system or the site's "stop animations"): a still of the sky frame, no breathing */
@media (prefers-reduced-motion:reduce){.scrub-glow{animation:none}.journey-gap{height:30vh}}
html.a11y-still .scrub-glow{animation:none}
html.a11y-still .journey-gap{height:30vh}
.journey.still .scrub-bar{display:none}

/* wellness rises as its own page over the pinned gallery (stacking order is numbered in scrub.js);
   it paints above the gallery, so the stained-glass arch standing on its top edge is never covered. */
.has-journey #wellness{border-radius:44px 44px 0 0;box-shadow:0 -30px 60px rgba(0,0,0,.35)}
/* same mechanism as the photo band -> packages cover: the gallery before wellness is pinned (sticky, by its
   bottom edge, since it is taller than the screen; top is set in scrub.js), and wellness slides up over it */
.has-journey #gallery{position:sticky;top:0}
.has-journey #wellness{margin-top:0}

/* stacking after the journey: from the woodshop on, every section paints above the one before it
   (z-index is numbered in scrub.js). A single shared value let the pinned gallery stay on top of
   everything below it, since a sticky element stays stuck to the end of <main>. */
