/* BARK V10.16: original artwork, seamless grip-to-vine release. */
body.bark-forest-home {
  --bark-arrival-scene:
    linear-gradient(90deg,rgba(3,15,8,.06),rgba(2,16,8,.08) 25%,rgba(2,16,8,.34) 47%,rgba(2,14,7,.82) 81%,rgba(2,13,7,.88)),
    linear-gradient(0deg,rgba(3,17,9,.9),rgba(3,17,9,.18) 24%,transparent 55%),
    url('/assets/bark-arrival-wide.webp');
}
body.bark-forest-home .site-shell {position:relative;isolation:isolate;overflow:clip;background:#08190f}
body.bark-forest-home .site-shell::before {
  content:"";position:absolute;inset:0 0 auto;height:100vh;height:100svh;
  background:var(--bark-arrival-scene) center center/cover no-repeat;
  pointer-events:none;z-index:0;
}
body.bark-forest-home .site-header {position:sticky;z-index:50;background:rgba(4,16,9,.76);backdrop-filter:blur(14px);border-bottom:1px solid rgba(171,231,104,.2)}
body.bark-forest-home .hero {position:relative;z-index:1;min-height:calc(100svh - 83px);display:flex;flex-direction:column;justify-content:space-between;background:transparent;border-color:rgba(173,228,105,.23)}
body.bark-forest-home .hero::before,body.bark-forest-home .hero-glow {display:none}
body.bark-forest-home .hero-topline {padding-top:24px}
body.bark-forest-home .hero-grid {flex:1;display:flex;align-items:center;justify-content:flex-end;min-height:0;padding:26px 0 30px}
body.bark-forest-home .hero-copy {width:min(100%,600px);margin-left:auto}
body.bark-forest-home .hero h1 {font-size:clamp(58px,5.35vw,86px);line-height:.89;text-shadow:0 5px 23px #03130abe}
body.bark-forest-home .hero-copy>p {max-width:510px;color:#e8f3de;text-shadow:0 3px 11px #000b}
body.bark-forest-home .hero-proof {margin-top:35px;text-shadow:0 2px 8px #000b}
body.bark-forest-home .hero-proof small {color:#c5dbb7}
body.bark-forest-home .pill {background:rgba(6,24,14,.80);border-color:rgba(171,235,91,.68);backdrop-filter:blur(5px)}
body.bark-forest-home .hero-bottom {position:relative;padding-bottom:23px;color:#d7e9c6;text-shadow:0 2px 8px #000b}
body.bark-forest-home .stats-band {position:relative;z-index:1}
/* A single opacity drives all intro-to-homepage content. No separate hidden header reveal. */
body.bark-gate-visible .site-header,
body.bark-gate-visible .hero-topline,
body.bark-gate-visible .hero-grid,
body.bark-gate-visible .hero-bottom {
  opacity:var(--bark-ui-progress,0);
  transform:translate3d(0,calc((1 - var(--bark-ui-progress,0))*3px),0);
  transition:none;pointer-events:none;
}
body.bark-site-ready .site-header,
body.bark-site-ready .hero-topline,
body.bark-site-ready .hero-grid,
body.bark-site-ready .hero-bottom {opacity:1;transform:none;pointer-events:auto}

/* Entrance: the real page is beneath this transparent overlay. */
.bark-gate[hidden] {display:none!important}
.bark-gate {position:fixed;inset:0;z-index:2000;isolation:isolate;overflow:hidden;background:#06150b;color:#f4f8e5}
.bark-gate.is-opening {background:transparent}
.bark-gate:focus {outline:none}
body.bark-gate-locked {overflow:hidden}
.bark-gate__inside {position:absolute;inset:0;z-index:1;overflow:hidden;opacity:0;pointer-events:none}
.bark-gate.is-opening .bark-gate__inside {opacity:var(--bark-scene-veil,1)}
.bark-gate__portal-ring,.bark-gate__walker,.bark-gate__handoff,.bark-gate__portal-particles,.bark-gate__firefly {display:none!important}
.bark-gate__leaf {position:absolute;inset:0;z-index:2;background:#07190d url('/assets/bark-vault-entrance.webp') center center/cover no-repeat;backface-visibility:hidden;will-change:transform;transition:none!important}
.bark-gate__leaf--left {clip-path:polygon(0 0,50.04% 0,50.04% 100%,0 100%)}
.bark-gate__leaf--right {clip-path:polygon(49.96% 0,100% 0,100% 100%,49.96% 100%)}
.bark-gate__vine {position:absolute;inset:0;width:100%;height:100%;z-index:6;opacity:0;pointer-events:none;overflow:visible}
/* Keep the vine in front of the bridge/treehouse cutout (z-index:5), while
   the enclosing .bark-gate__inside stays below the vault doors (z-index:2). */
.bark-gate__vine path {stroke-linecap:round;stroke-linejoin:round;fill:none;vector-effect:non-scaling-stroke}
.bark-gate__vine .bark-vine-shadow {stroke:#102d18;stroke-width:10.5;opacity:.86;filter:drop-shadow(0 1px 2px rgba(2,16,7,.85))}
.bark-gate__vine .bark-vine-main {stroke:#648d40;stroke-width:6.4}
.bark-gate__vine .bark-vine-glint {stroke:#a1c975;stroke-width:1.4;opacity:.55}
.bark-gate__swinger {position:absolute;left:0;top:0;z-index:4;width:clamp(190px,23vw,316px);aspect-ratio:225/177;opacity:0;pointer-events:none;transform-origin:70% 23%;will-change:transform,opacity;contain:layout style}
.bark-gate__character {position:relative;width:100%;height:100%;isolation:isolate;transform-origin:58% 42%;will-change:transform}
.bark-gate__character .bark-rig-layer {position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;backface-visibility:hidden}
.bark-rig-cape-tail {z-index:1;transform-origin:33.3% 62.7%}
.bark-rig-cape-core {z-index:2;transform-origin:48% 56%}
.bark-rig-torso {z-index:3}
.bark-rig-leg-far {z-index:4;transform-origin:54% 74%}
.bark-rig-leg-near {z-index:5;transform-origin:47% 75%}
.bark-rig-arm {position:absolute;inset:0;z-index:4;transform-origin:64.44% 49.15%;pointer-events:none;backface-visibility:hidden}
.bark-rig-arm .bark-rig-layer {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.bark-rig-arm-fur {z-index:1}
.bark-rig-grip {z-index:2;opacity:1}
.bark-rig-open-palm {z-index:3;opacity:0}
.bark-gate__forest-foreground {position:absolute;inset:0;z-index:5;pointer-events:none;background:url('/assets/bark-forest-foreground-wide.webp') center center/cover no-repeat}
.bark-gate__lighting {position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(180deg,rgba(2,10,5,.08),transparent 45%,rgba(2,10,5,.22));opacity:0;transition:none}
.bark-gate__center-glow {position:absolute;z-index:3;left:50%;top:51%;width:min(30vw,470px);aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;background:radial-gradient(circle,rgba(245,200,80,.15),rgba(245,177,33,.025) 50%,transparent 70%);animation:gateBreathe 3.6s ease-in-out infinite}
.bark-gate.is-opening .bark-gate__center-glow {opacity:0;transition:opacity .25s ease}
.bark-gate__vault-target {position:absolute;z-index:6;top:51%;left:50%;width:clamp(150px,20vw,340px);aspect-ratio:1;transform:translate(-50%,-50%);border:2px solid transparent;border-radius:50%;background:radial-gradient(circle,rgba(255,204,87,.05),transparent 68%);cursor:pointer;animation:monkeyGlowSoft 3.7s ease-in-out infinite;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.bark-gate__vault-target:hover {border-color:rgba(255,227,157,.24);background:radial-gradient(circle,rgba(255,215,94,.10),transparent 69%)}
.bark-gate__vault-target:focus-visible {outline:2px solid #ebf7b0;outline-offset:4px}
.bark-gate.is-opening .bark-gate__vault-target {opacity:0;pointer-events:none;transition:opacity .25s ease}
.bark-gate__hint {position:absolute;z-index:7;top:calc(51% + clamp(88px,10.8vw,178px) + 14px);left:50%;transform:translate(-50%,0);pointer-events:none;white-space:nowrap;font:800 10px/1.4 Arial,sans-serif;letter-spacing:.135em;color:#f0e8c7;text-shadow:0 2px 12px #001108;opacity:.78;transition:opacity .24s ease,transform .24s ease;text-align:center}
.bark-gate__hint::before {content:'';display:block;margin:0 auto 8px;width:1px;height:10px;background:linear-gradient(180deg,rgba(250,225,150,.06),rgba(250,225,150,.82))}
.bark-gate__hint-touch {display:none}
.bark-gate.is-opening .bark-gate__hint {opacity:0;transform:translate(-50%,7px)}
.bark-gate__skip {position:absolute;z-index:9;top:calc(env(safe-area-inset-top,0px) + 13px);right:calc(env(safe-area-inset-right,0px) + 16px);min-height:44px;min-width:70px;padding:10px 11px;border:1px solid transparent;border-radius:6px;color:rgba(244,249,226,.88);background:rgba(5,22,11,.34);font-size:10px;letter-spacing:.12em;font-weight:800;cursor:pointer;transition:background .22s ease,color .22s ease}
.bark-gate__skip:hover {background:rgba(5,22,11,.76);color:#fff}
.bark-gate__skip:focus-visible {outline:2px solid #daf58b;outline-offset:3px}
.bark-gate__visually-hidden,.bark-gate__status {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.bark-gate-replay {padding:0;border:0;background:none;color:#b3ed63;font-size:10px;letter-spacing:.08em;font-weight:850;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.bark-gate-replay:hover {color:#e6ffbd}
@keyframes gateBreathe {0%,100%{opacity:.48}50%{opacity:.75}}
@keyframes monkeyGlowSoft {0%,100%{box-shadow:0 0 0 rgba(255,209,94,0)}55%{box-shadow:0 0 28px rgba(255,200,74,.13)}}
@media(max-width:820px) {
  body.bark-forest-home .hero {min-height:calc(100svh - 75px)}
  body.bark-forest-home .hero-grid {padding:20px 0 35px}
  body.bark-forest-home .hero-copy {width:min(100%,610px);margin-left:auto}
  body.bark-forest-home .hero h1 {font-size:clamp(57px,10vw,86px)}
}
@media(max-width:680px) {
  body.bark-forest-home {--bark-arrival-scene:linear-gradient(180deg,rgba(2,12,7,.30),rgba(2,12,7,.26) 33%,rgba(2,13,8,.57) 62%,rgba(2,12,7,.92)),url('/assets/bark-arrival-tall.webp')}
  body.bark-forest-home .hero {min-height:calc(100svh - 75px)}
  body.bark-forest-home .hero-topline {padding-top:17px}
  body.bark-forest-home .hero-grid {align-items:flex-end;justify-content:center;padding:24px 0 22px}
  body.bark-forest-home .hero-copy {width:100%;max-width:440px;margin:0 auto}
  body.bark-forest-home .hero h1 {font-size:clamp(53px,12.7vw,76px);margin:17px 0}
  body.bark-forest-home .hero-copy>p {font-size:14px;line-height:1.6;margin-bottom:20px}
  body.bark-forest-home .hero-proof {margin-top:22px}
  body.bark-forest-home .hero-bottom {padding-bottom:12px}
  .bark-gate__swinger {width:clamp(150px,45vw,205px)}
  .bark-gate__vault-target {width:56vw}
  .bark-gate__vine .bark-vine-shadow {stroke-width:11.5}
  .bark-gate__vine .bark-vine-main {stroke-width:7.1}
  .bark-gate__forest-foreground {background-image:url('/assets/bark-forest-foreground-tall.webp')}
  .bark-gate__hint {top:calc(51% + 28vw + 14px);font-size:9px;letter-spacing:.15em}
  .bark-gate__skip {top:calc(env(safe-area-inset-top,0px) + 10px);right:calc(env(safe-area-inset-right,0px) + 12px)}
}
@media(hover:none),(pointer:coarse) {.bark-gate__hint-desktop{display:none}.bark-gate__hint-touch{display:inline}}
@media(max-height:560px) {.bark-gate__hint{top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 18px)}}
@media(prefers-reduced-motion:reduce) {
  .bark-gate__vault-target,.bark-gate__center-glow {animation:none!important}
  .bark-gate__leaf,.bark-gate__hint {transition:none!important}
  body.bark-gate-visible .site-header,body.bark-gate-visible .hero-topline,body.bark-gate-visible .hero-grid,body.bark-gate-visible .hero-bottom {transform:none!important}
}
