/* =========================================================================
   Logo intro + page transitions (intro.js drives it; CSS sets the first paint).
   html.oh-intro-boot  : set in <head> before paint -> overlay covers the page
   html.oh-intro-quick : returning visitor / page change -> logo already in place
   html.oh-intro-out   : leaving the page (overlay comes back)
   Fails safe: without JS, or if the script dies, the overlay hides after 5 s.
   ========================================================================= */
.oh-intro{position:fixed;inset:0;z-index:400;pointer-events:none;display:none;--w:min(300px,58vw);--h:calc(var(--w) * var(--oh-intro-ratio,.507))}
.oh-intro-boot .oh-intro,.oh-intro-out .oh-intro{display:block}
.oh-intro-boot .oh-intro{pointer-events:auto;animation:ohIntroFail 0s 5s forwards}
@keyframes ohIntroFail{to{visibility:hidden;pointer-events:none}}

.oh-intro-bg{position:absolute;inset:0;background:var(--cream,#FFF8E7)}
.oh-intro-mark{position:absolute;left:50%;top:50%;width:var(--w);transform:translate(-50%,-58%);transform-origin:50% 50%;clip-path:inset(100% 0 0 0);will-change:transform}
.oh-intro-mark img{display:block;width:100%;height:auto;max-width:none}
.oh-intro-quick .oh-intro-mark,.oh-intro-out .oh-intro-mark{clip-path:inset(0 0 0 0)}

.oh-intro-foot{position:absolute;left:0;right:0;top:calc(50% + var(--h) * .42 + 26px);text-align:center}
.oh-intro-line{width:150px;height:1px;margin:0 auto;background:rgba(20,83,45,.16);overflow:hidden}
.oh-intro-line i{display:block;height:100%;background:var(--green-700,#166534);transform:scaleX(0);transform-origin:left}
.oh-intro-tag{margin:16px 0 0;font:italic 500 clamp(1rem,2.4vw,1.25rem)/1.3 var(--oh-font-heading),Georgia,serif;letter-spacing:.08em;color:var(--green-900,#14532D);opacity:0}
.oh-intro-quick .oh-intro-foot,.oh-intro-out .oh-intro-foot{display:none}

/* the header logo waits for the flying one */
.oh-intro-boot #nav .logo{opacity:0;animation:ohLogoFail 0s 5s forwards}
.oh-intro-out #nav .logo{opacity:0}
@keyframes ohLogoFail{to{opacity:1}}

@media(prefers-reduced-motion:reduce){.oh-intro{display:none!important}.oh-intro-boot #nav .logo{opacity:1;animation:none}}
.elementor-editor-active .oh-intro{display:none!important}
.elementor-editor-active #nav .logo{opacity:1!important}
