/* PIROHOVIE V9 — targeted fixes over V8, no destructive DB changes. */
:root{--v9-wood:#75523a}
/* 01 Critical fix: V8 accidentally changed absolute slides to position:relative,
   stacking three clips vertically and hiding scenes 2–3. All media must share
   the same viewport-sized layer; the scroll JS controls only their opacity. */
.hero-scroll .hero-sticky{position:sticky!important;top:0!important;isolation:isolate}
.hero-scroll .hero-scenes{position:absolute!important;inset:0!important;overflow:hidden!important}
.hero-scroll .hero-scenes .hero-scene{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;overflow:hidden!important}
.hero-scroll .hero-scene .hero-video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover;display:block;z-index:0}
.hero-scroll .hero-scene .hero-frame-canvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block;z-index:1}
.hero-scroll .hero-scene .hero-shade{position:absolute;inset:0;z-index:2}
.hero-topline .hero-altitude{display:flex;flex-direction:column;text-align:right;gap:5px;align-items:flex-end;line-height:1.05!important;opacity:1!important}
.hero-altitude b{white-space:nowrap;font-size:clamp(16px,1.5vw,22px);font-weight:700;letter-spacing:.1em}
.hero-altitude small{font-size:clamp(11px,.85vw,14px);letter-spacing:.16em;white-space:nowrap}
@media(max-width:700px){.hero-topline .hero-altitude{display:flex!important}.hero-altitude b{font-size:14px}.hero-altitude small{font-size:10px}}
/* 02 Header white sticky paper fades in over one second, not in one frame. */
#site-header{background:transparent!important;transition:height .65s ease,color .65s ease,box-shadow 1s ease!important;isolation:isolate}
#site-header::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(244,240,231,.97);box-shadow:0 5px 30px rgba(15,34,20,.07);backdrop-filter:blur(17px);opacity:0;transition:opacity 1s cubic-bezier(.16,.65,.2,1);pointer-events:none}
#site-header.scrolled::before{opacity:1}
#site-header.menu-open::before{opacity:0}
/* 03 Consistent brown discovery pill, wide like the lead text, with an owl sitting on it. */
.intro-right .forest-branch-button{display:flex!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:69px!important;padding:21px 28px!important;margin-top:60px!important;background:#75523a!important;border:1px solid #aa8765!important;border-radius:999px!important;box-shadow:inset 0 2px 5px #fff2,0 15px 28px #33281c2d!important;filter:none!important;color:#fff!important;justify-content:center!important;text-align:center}
.intro-right .forest-branch-button:hover{background:#8a664c!important;box-shadow:0 17px 34px #33281c35!important}
.intro-right .forest-branch-button::before,.intro-right .forest-branch-button::after{display:none!important}
.intro-right .forest-branch-button .branch-owl{left:50%!important;bottom:calc(100% - 3px)!important;transform:translateX(-50%)!important;width:clamp(68px,5.9vw,92px)!important}
.intro-right .forest-branch-button .branch-owl svg{height:auto}
.intro-right .forest-branch-button .branch-label{font-size:clamp(13px,1.1vw,17px)!important;font-weight:700;letter-spacing:.11em!important}
@media(max-width:700px){.intro-right{max-width:100%}.intro-right .forest-branch-button{margin:68px auto 0!important;width:100%!important}}
/* 04 Lower foreground trees expose the animal characters and larger chalet. */
.forest-scene{pointer-events:none}
.forest-scene .forest-layer.front{background-image:url('/assets/forest/front-v9.svg')!important;height:clamp(160px,22vw,325px)!important;left:-7%!important;width:114%!important;bottom:-3px!important;z-index:8!important;background-size:100% 100%!important;background-repeat:no-repeat!important}
.forest-scene .forest-hut{z-index:4!important;left:max(25px,calc((100vw - 1640px)/2 + 104px))!important;bottom:-1px!important;width:clamp(430px,50vw,920px)!important;height:clamp(283px,34vw,610px)!important}
.forest-scene .forest-creature{z-index:7!important;bottom:-1px!important;pointer-events:auto;cursor:pointer}
.forest-scene .forest-fox{left:7.5%!important}
.forest-scene .forest-deer{left:48%!important}
.forest-scene .forest-bear{right:6%!important}
.forest-creature svg{pointer-events:none}
/* Speech bubble rises above forest; decorative forest is aria-hidden on the page. */
.fox-speech{position:absolute;left:42%;bottom:91%;z-index:30;width:max-content;max-width:min(310px,70vw);padding:15px 20px;color:#254432;background:#fffdf3;border:2px solid #805b3f;border-radius:22px 22px 22px 5px;font:700 clamp(12px,1.1vw,16px)/1.4 Arial,sans-serif;letter-spacing:.01em;text-align:center;box-shadow:0 15px 28px #20322332;opacity:0;visibility:hidden;transform:translate3d(0,15px,0) scale(.93);transition:opacity .42s ease,transform .42s cubic-bezier(.15,.8,.2,1),visibility .42s;pointer-events:none}
.forest-fox:is(:hover,:focus-visible) .fox-speech{opacity:1;visibility:visible;transform:translate3d(0,0,0) scale(1)}
.forest-creature .bear-mouth-open{opacity:0;transform-box:fill-box;transform-origin:50% 40%;transform:scaleY(.10);transition:opacity .35s,transform .38s cubic-bezier(.18,.7,.2,1)}
.forest-bear:is(:hover,:focus-visible) .bear-mouth-open{opacity:1;transform:scaleY(1)}
.forest-bear:is(:hover,:focus-visible) .bear-mouth-closed{opacity:0;transition:opacity .22s}
.forest-deer .deer-jaw{transform-box:fill-box;transform-origin:52% 0;transition:transform .4s}
.forest-deer:is(:hover,:focus-visible) .deer-jaw{animation:deerChew .67s ease-in-out infinite alternate}
@keyframes deerChew{from{transform:translateY(0)}to{transform:translateY(5px) rotate(3deg)}}
@media(max-width:900px){.forest-scene .forest-hut{left:5vw!important;width:75vw!important;height:53vw!important}}
@media(max-width:700px){
 .forest-scene{height:clamp(280px,79vw,395px)!important}
 .forest-scene .forest-layer.front{background-image:url('/assets/forest/front-v9-mobile.svg')!important;height:clamp(110px,36vw,158px)!important;left:-3%!important;width:106%!important;bottom:-1px!important;background-size:100% 100%!important}
 .forest-scene .forest-hut{width:clamp(235px,69vw,330px)!important;height:clamp(183px,53vw,257px)!important;left:4%!important}
 .forest-scene .forest-fox{left:2%!important;width:clamp(94px,28vw,143px)!important}
 .forest-scene .forest-deer{left:43%!important;width:clamp(83px,25vw,132px)!important}
 .forest-scene .forest-bear{right:-1%!important;width:clamp(96px,30vw,150px)!important}
 .fox-speech{left:25%;bottom:100%;max-width:240px;font-size:13px;padding:11px 13px}
}
/* 05 Gallery: long, subtle reversible zoom + wood-colored circular arrow. */
.gallery-tile{overflow:hidden}
.gallery-tile>img{transform:scale(1)!important;transition:transform 2.7s cubic-bezier(.14,.66,.24,1)!important;will-change:transform}
.gallery-tile:is(:hover,:focus-visible)>img{transform:scale(1.075)!important;transition-duration:5s!important}
.gallery-tile .tile-plus{transition:background-color .46s ease,color .46s ease,transform .7s cubic-bezier(.14,.8,.25,1)!important}
.gallery-tile:is(:hover,:focus-visible) .tile-plus{background:#75523a!important;color:#fff!important;transform:rotate(45deg)!important}
/* 06 Reservation title: each word acquires heavier weight in scroll sequence. */
.contact-progress-heading .scroll-bold-word{display:inline-block;font-weight:400;transition:font-weight .45s ease,text-shadow .45s ease,color .45s ease;will-change:font-weight}
.contact-progress-heading .scroll-bold-word.is-bold{font-weight:700;text-shadow:0 .01em .018em #e8ead627}
@media(prefers-reduced-motion:reduce){.contact-progress-heading .scroll-bold-word{font-weight:700!important}}
/* 07 Respect smaller/mobile screen proportions and pointer-less devices. */
@media(hover:none){.forest-creature{cursor:default}.gallery-tile>img{transition-duration:1.5s!important}}
@media(prefers-reduced-motion:reduce){.forest-creature .bear-mouth-open,.forest-deer .deer-jaw,.fox-speech{animation:none!important;transition:none!important}}
/* 08 Reliable viewport-wide CHATA PIROHOVIE: override every legacy grid and
   fixed-width line. JS measures untransformed glyph widths and fits the letters. */
.site-footer .footer-big.footer-wordmark-wrap{display:block!important;position:relative!important;width:100vw!important;max-width:none!important;max-height:none!important;min-height:0!important;margin:clamp(30px,4.5vw,70px) 0 -2px calc(50% - 50vw)!important;padding:0!important;overflow:visible!important}
.site-footer .footer-wordmark{display:flex!important;flex-flow:row nowrap!important;align-items:flex-end!important;justify-content:center!important;gap:0!important;width:100%!important;max-width:100%!important;white-space:nowrap!important;overflow:visible!important;box-sizing:border-box!important;line-height:1!important;font-size:clamp(90px,13vw,300px);padding:clamp(28px,4vw,72px) 0 0!important;letter-spacing:-.08em!important;font-weight:700!important;text-transform:uppercase!important;user-select:none}
.site-footer .footer-wordmark .footer-wordline{display:inline-flex!important;width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;align-items:flex-end!important;justify-content:center!important;overflow:visible!important;white-space:nowrap!important;line-height:1.08!important;font-size:inherit!important}
.site-footer .footer-wordmark .footer-glyph{display:inline-block!important;flex:0 0 auto!important;line-height:1.15!important;font-size:inherit!important;white-space:pre!important;vertical-align:bottom!important;overflow:visible!important}
.site-footer .footer-wordmark .footer-glyph-inner{display:inline-block!important;line-height:1.12!important;transition:transform 1s cubic-bezier(.17,.75,.18,1),filter 1s ease,color 1s ease!important;overflow:visible!important}
.site-footer .footer-wordmark .footer-space{display:inline-block!important;flex:0 0 .10em!important;width:.10em!important}
.site-footer .footer-wordmark .footer-glyph[data-word=first]{color:rgba(137,105,79,.21)!important}
.site-footer .footer-wordmark .footer-glyph[data-word=second]{color:rgba(47,83,61,.20)!important}
@media(max-width:700px){
 .site-footer .footer-wordmark{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:center!important;padding:22px 0 5px!important;gap:0!important;white-space:normal!important}
 .site-footer .footer-wordmark .footer-wordline{display:inline-flex!important;flex:0 0 auto!important;width:max-content!important;max-width:none!important;line-height:1.1!important}
 .site-footer .footer-wordmark .footer-wordline.is-second{font-size:inherit!important}
 .site-footer .footer-big.footer-wordmark-wrap{margin-top:30px!important}
}
.forest-fox.animal-active .fox-speech{opacity:1;visibility:visible;transform:translate3d(0,0,0) scale(1)}
.forest-bear.animal-active .bear-mouth-open{opacity:1;transform:scaleY(1)}
.forest-bear.animal-active .bear-mouth-closed{opacity:0}
.forest-deer.animal-active .deer-jaw{animation:deerChew .67s ease-in-out infinite alternate}
/* Root cause of tiny V5–V8 lettering: original site.css had the global
   `.footer-big span{font-size:.14em}` rule, which shrank NESTED glyph inners
   to 14% of their intended size. Reset the innermost text explicitly. */
.site-footer .footer-big .footer-wordmark .footer-glyph-inner{font-size:inherit!important;letter-spacing:inherit!important}
/* Reserve actual vertical space for the owl instead of letting it cover copy. */
.intro-right .forest-branch-button{margin-top:118px!important}
@media(max-width:700px){.intro-right .forest-branch-button{margin-top:130px!important}}
