/* PIROHOVIE V11 — retained project styles, targeted visual changes. No schema changes. */

/* Forest: match the mid-distance silhouette language. Two proportional SVGs avoid
   the stretched, needle-thin trees on portrait devices. Low saplings mark the
   fox / deer / bear clearings; the entire foreground stays behind speech. */
.forest-scene .forest-layer.front {
  background-image: url('/assets/forest/front-v11.svg') !important;
  background-size:100% 100% !important;
  background-repeat:no-repeat !important;
  background-position:center bottom !important;
  width:110% !important;left:-5% !important;bottom:-2px !important;
  height:clamp(155px,12.8vw,242px) !important;
  z-index:8 !important;
}
.forest-scene .forest-creature {pointer-events:auto;cursor:pointer;}
.forest-scene .forest-hut {
  background:none !important;
  pointer-events:auto !important;
  cursor:pointer;
  z-index:4 !important;
}
.forest-scene .forest-hut > svg {
  display:block;width:100%;height:100%;overflow:visible;pointer-events:auto;
  filter:drop-shadow(0 4px 3px rgba(29,57,39,.07));
}
.forest-hut .hut-smoke {pointer-events:none;}
.forest-hut .hut-smoke .smoke-cloud path {fill:none;stroke:#859a87;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;}
.forest-hut .smoke-cloud {transform-box:fill-box;transform-origin:50% 100%;opacity:0;animation:v11SmokeRise 4.5s ease-out infinite;}
.forest-hut .smoke-2 {animation-delay:-1.5s;animation-duration:5.1s;}
.forest-hut .smoke-3 {animation-delay:-3.1s;animation-duration:5.6s;}
@keyframes v11SmokeRise {
  0%{transform:translate(0,13px) scale(.78);opacity:0}
  20%{opacity:.58}
  65%{opacity:.4}
  100%{transform:translate(19px,-32px) scale(1.3);opacity:0}
}
/* The family is SVG artwork registered to the windows, not a fixed overlay
   that drifts when the chalet changes aspect ratio. */
.forest-hut .hut-family {opacity:0;pointer-events:none;transform-box:fill-box;transform-origin:50% 83%;transform:translateY(13px) scale(.79);
  transition:opacity .85s ease,transform 1.15s cubic-bezier(.16,.75,.23,1);}
.forest-hut:is(:hover,:focus-visible,.hut-active) .hut-family {opacity:.86;transform:translateY(0) scale(1);}
.forest-hut .hut-family .wave {transform-box:fill-box;transform-origin:20% 100%;}
.forest-hut:is(:hover,:focus-visible,.hut-active) .hut-family .wave {animation:v11FamilyWave 1.2s ease-in-out infinite alternate;}
.forest-hut .hut-family .family-p2 .wave,.forest-hut .hut-family .family-p4 .wave {animation-delay:-.6s!important;}
@keyframes v11FamilyWave {0%{transform:rotate(-12deg)}100%{transform:rotate(22deg)}}
@media(max-width:700px){
  .forest-scene .forest-layer.front {
    background-image:url('/assets/forest/front-v11-mobile.svg') !important;
    height:clamp(112px,31vw,158px) !important;
    background-size:100% 100% !important;
    width:110% !important;left:-5% !important;
  }
  .forest-scene .forest-hut{pointer-events:auto!important;}
}

/* Forest animals: additional micro-expressions. Scroll motion remains V10. */
.forest-deer .deer-eye-x,.forest-deer .deer-smile,.forest-fox .fox-eye-x,.forest-fox .fox-mouth-chat {opacity:0;transition:opacity .32s ease;}
.forest-deer .deer-eye-normal,.forest-deer .deer-mouth-normal,.forest-fox .fox-eye-normal,.forest-fox .fox-mouth-normal {transition:opacity .32s ease;}
.forest-deer:is(:hover,:focus-visible,.animal-active) .deer-eye-x,
.forest-deer:is(:hover,:focus-visible,.animal-active) .deer-smile,
.forest-fox:is(:hover,:focus-visible,.animal-active) .fox-eye-x,
.forest-fox:is(:hover,:focus-visible,.animal-active) .fox-mouth-chat {opacity:1;}
.forest-deer:is(:hover,:focus-visible,.animal-active) .deer-eye-normal,
.forest-deer:is(:hover,:focus-visible,.animal-active) .deer-mouth-normal,
.forest-fox:is(:hover,:focus-visible,.animal-active) .fox-eye-normal,
.forest-fox:is(:hover,:focus-visible,.animal-active) .fox-mouth-normal {opacity:0;}
.forest-fox .fox-ear {transform-box:fill-box;transform-origin:55% 80%;will-change:transform;}
.forest-fox:is(:hover,:focus-visible,.animal-active) .fox-ear-a {animation:v11FoxEarA .43s ease-in-out infinite alternate;}
.forest-fox:is(:hover,:focus-visible,.animal-active) .fox-ear-b {animation:v11FoxEarB .52s ease-in-out infinite alternate;}
.forest-fox:is(:hover,:focus-visible,.animal-active) .fox-mouth-chat {animation:v11FoxSpeak .35s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 30%;}
@keyframes v11FoxEarA{from{transform:rotate(-9deg)}to{transform:rotate(12deg)}}
@keyframes v11FoxEarB{from{transform:rotate(8deg)}to{transform:rotate(-9deg)}}
@keyframes v11FoxSpeak{from{transform:scaleY(.55)}to{transform:scaleY(1.18)}}
.forest-scene .forest-fox:is(:hover,:focus-visible,.animal-active){z-index:15!important;}
.forest-fox .fox-speech{left:88%!important;bottom:106%!important;max-width:min(270px,68vw);border-radius:24px 24px 22px 4px;}
.forest-fox .fox-speech::after{
  content:"";position:absolute;left:-7px;top:calc(100% - 3px);width:52px;height:95px;
  background:#fffdf3;clip-path:polygon(0 0,85% 0,12% 100%);
  filter:drop-shadow(2px 2px 0 #805b3f);pointer-events:none;
}
.forest-fox:is(:hover,:focus-visible,.animal-active) .fox-speech{opacity:1!important;visibility:visible!important;transform:translate3d(0,0,0) scale(1)!important;}
/* Touch parity: animal-active is set by the existing pointer handler. */
.forest-bear.animal-active .bear-mouth-open{opacity:1;transform:scaleY(1)}
.forest-bear.animal-active .bear-mouth-closed{opacity:0}
/* Both paws lift when growling. The original wave continues outside hover. */
.forest-bear .bear-left-arm {transform-box:fill-box;transform-origin:88% 10%;will-change:transform;}
.forest-bear .bear-claws{opacity:0;transition:opacity .3s ease;}
.forest-bear:is(:hover,:focus-visible,.animal-active) .bear-left-arm{animation:v11BearLeft .95s ease-in-out infinite alternate;}
.forest-bear:is(:hover,:focus-visible,.animal-active) .bear-arm{animation:v11BearRight .95s ease-in-out infinite alternate;}
.forest-bear:is(:hover,:focus-visible,.animal-active) .bear-claws{opacity:1;}
@keyframes v11BearLeft{from{transform:rotate(34deg)}to{transform:rotate(62deg)}}
@keyframes v11BearRight{from{transform:rotate(-104deg)}to{transform:rotate(-136deg)}}

/* One image, as in V9: no opacity switching or second image at all. */
.story-left-image .story-rotating-photo{animation:none!important;}
.story-left-image{isolation:auto!important;}

/* The rotating rainbow-like conic sheen formerly escaped the green CTA's
   edges. Replace it with a restrained in-bounds travelling highlight. */
.explore-button.cinema-button {isolation:isolate!important;overflow:hidden!important;border-radius:2px;}
.explore-button.cinema-button::before{
  content:"";position:absolute!important;inset:0!important;
  border-radius:inherit!important;pointer-events:none!important;
  background:linear-gradient(106deg,transparent 26%,rgba(241,255,229,.10) 42%,rgba(244,255,232,.18) 50%,transparent 70%)!important;
  transform:translate3d(-120%,0,0)!important;
  transition:transform 1.25s cubic-bezier(.16,.72,.23,1)!important;
}
.explore-button.cinema-button:is(:hover,:focus-visible)::before{transform:translate3d(130%,0,0)!important;}
/* Hover any part of experience image/card, not only the title. Reversible 1s. */
.experience-card h3{transform-origin:left center;transition:color 1s cubic-bezier(.18,.64,.2,1),transform 1s cubic-bezier(.16,.73,.22,1)!important;}
.experience-card:is(:hover,:focus-visible) h3{color:#82593d!important;transform:scale(1.085);}

/* Same logo bitmap at all times; dark twig floats inside its white square,
   then disappears over the natural-colored original. Sizes never jump. */
#site-header .brand{isolation:isolate;}
#site-header .brand .brand-white-twig{
  position:absolute;z-index:2;pointer-events:none;
  top:26%;left:11.8%;height:40%;width:14%;color:#2e513c;
  opacity:1;transition:opacity .85s ease;display:flex;align-items:center;justify-content:center;
}
#site-header .brand .brand-white-twig svg {width:100%;height:100%;display:block;}
#site-header.scrolled .brand .brand-white-twig {opacity:0;}
#site-header.menu-open .brand .brand-white-twig {opacity:1;}

/* More forest outlines in the footer. Parallax uses the individual translate
   property so the existing breathing/rotating transform animation remains. */
.site-footer .footer-atmosphere .footer-leaf {
  translate:0 var(--v11-parallax-y,0px);transition:translate .24s ease-out;
  will-change:translate,transform;
}
@media(prefers-reduced-motion:reduce){
 .forest-hut .hut-smoke,.forest-hut .hut-family .wave,.forest-bear .bear-arm,.forest-bear .bear-left-arm,.forest-fox .fox-ear,.forest-fox .fox-mouth-chat{animation:none!important;}
 .forest-hut .hut-family,.forest-deer .deer-eye-x,.forest-deer .deer-smile,.forest-fox .fox-eye-x,.forest-fox .fox-mouth-chat{transition:none!important;}
 .site-footer .footer-atmosphere .footer-leaf{translate:0 0;transition:none;will-change:auto;}
}
