/* The copy sits in the empty upper-left clearing, above the keeper. */
.forest-hero .hero-grid{align-items:flex-start;padding:clamp(112px,13svh,154px) 26px 110px clamp(26px,3.1vw,60px)}
.forest-hero .hero-copy{width:min(40vw,510px);margin:0;transform:none}
.forest-hero .eyebrow{font-size:11px;margin-bottom:20px}
.forest-hero h1{font-size:clamp(62px,min(5.2vw,8.8svh),98px);line-height:1.01;letter-spacing:-.012em;margin-bottom:32px;perspective:850px}
.forest-hero .hero-copy>p{font-size:15px;line-height:1.65;max-width:370px;margin-bottom:0}
.forest-hero .actions{margin:20px 0;gap:12px}
.forest-hero .actions .button{font-size:14px;min-height:52px;padding:13px 18px;gap:18px}
.forest-hero .hero-meta{padding-top:13px;gap:22px;font-size:11px}
.forest-hero .hero-meta b{font-size:16px}
.forest-shade{background:linear-gradient(90deg,#020b0c99 0%,#02090b44 27%,transparent 54%),linear-gradient(0deg,#030b0bd9,transparent 20%,transparent 85%,#02090b20)}

/* Solid raised letters, wet highlights and attached, stretching droplets. */
.forest-hero h1 .goo-row{display:block;width:max-content;position:relative;color:#eff9df;--goo:#eff9df;--goo-shadow:#6e8e68;--goo-light:#fff}
.forest-hero h1 .goo-word{position:relative;display:block;width:max-content;isolation:isolate}
.forest-hero h1 .goo-char{display:inline-block;position:relative;color:var(--goo);font:inherit;letter-spacing:inherit;text-shadow:0 1px var(--goo-shadow),0 2px var(--goo-shadow),0 3px #35533d,0 4px #23382d,1px 6px 0 #10251b,3px 10px 12px #0009;transform-origin:50% 85%;transition:transform .45s cubic-bezier(.2,.8,.2,1),text-shadow .4s}
.forest-hero h1 .goo-char:after{content:attr(data-letter);position:absolute;inset:0;color:transparent;background:linear-gradient(170deg,#fff9,transparent 31%,transparent 63%,#d9ffce77 65%,transparent 68%);background-clip:text;-webkit-background-clip:text;text-shadow:none;pointer-events:none}
.forest-hero h1 .goo-lime{--goo:#d4ff88;--goo-shadow:#80a83c;--goo-light:#f3ffd2;margin-top:5px}
.goo-row:hover .goo-char{animation:goo-letter .95s calc(var(--letter)*.045s) ease-in-out both;text-shadow:0 1px #b3dc71,0 3px #65883d,0 5px #294a24,0 9px 12px #0008,0 0 25px #caff7a60}
.forest-hero h1 .goo-drips{position:absolute;left:0;right:0;bottom:.085em;height:0;display:block;pointer-events:none;z-index:-1}
.goo-drips i{position:absolute;top:-4px;left:9%;width:.075em;height:.16em;border-radius:0 0 70% 70%;background:linear-gradient(90deg,var(--goo-shadow),var(--goo) 35%,var(--goo-light) 62%,var(--goo) 80%);box-shadow:2px 3px 2px #0004;transform-origin:top;animation:goo-stretch 5.8s ease-in-out infinite}
.goo-drips i:after{content:'';position:absolute;left:-14%;bottom:-.035em;width:128%;height:.095em;border-radius:45% 45% 55% 55%;background:inherit;box-shadow:inset 1px 0 1px #fff6}
.goo-drips i:nth-child(2){left:31%;width:.055em;animation-delay:-2.5s;animation-duration:6.9s}
.goo-drips i:nth-child(3){left:73%;width:.065em;animation-delay:-4s;animation-duration:5.3s}
.goo-drips i:nth-child(4){left:92%;width:.045em;animation-delay:-1.2s;animation-duration:7.4s}
.goo-row:not(.goo-lime) .goo-drips i{height:.065em;width:.045em;animation-name:goo-stretch-short}
.goo-lime .goo-drips i:nth-child(2):after{animation:goo-fall 6.9s -2.5s ease-in infinite}

/* Navigation is deliberately readable on a large desktop screen. */
.header .navlinks{font-size:clamp(16px,1.1vw,20px);font-weight:600;gap:clamp(12px,1.6vw,28px)}
.header .navlinks a{position:relative;padding:12px 14px;border-radius:7px;transition:color .25s,text-shadow .25s,background .25s,transform .25s}
.header .navlinks a:before{content:'';position:absolute;inset:0;border-radius:inherit;border:1px solid #d1ff9633;background:linear-gradient(115deg,#b4ff5522,transparent 65%);opacity:0;transform:perspective(300px) rotateX(20deg) scale(.92);transition:.3s}
.header .navlinks a:after{content:'';position:absolute;bottom:4px;height:2px;left:15%;right:15%;background:#ddffa1;box-shadow:0 0 8px #caff76,0 0 20px #caff76;transform:scaleX(0);transition:transform .3s}
.header .navlinks a:hover,.header .navlinks a:focus-visible{color:#efffc7;text-shadow:0 0 10px #d7ffad,0 0 22px #c3ff7577;transform:translateY(-2px);outline:none}
.header .navlinks a:hover:before,.header .navlinks a:focus-visible:before{opacity:1;transform:none}
.header .navlinks a:hover:after,.header .navlinks a:focus-visible:after{transform:scaleX(1)}

/* Keep the three socket areas pinned to their source-image positions.
   Only these small soft-edged areas use the poster; wind and river keep moving. */
.forest-film{mask-image:radial-gradient(ellipse 2.2% 4.8% at 66.39% 26.1%,transparent 60%,#000 100%),radial-gradient(ellipse 2.2% 4.8% at 62.38% 42.1%,transparent 60%,#000 100%),radial-gradient(ellipse 2.3% 4.8% at 94.02% 19%,transparent 60%,#000 100%);mask-composite:intersect}
.forest-world .bulb-target{width:4.05%;transform:translate(-50%,-34%);transform-origin:50% 34%}

/* Both faces share one rotor. No filter on its ancestors: filters flatten 3D. */
.floating-deck{transform-style:preserve-3d}
.scene-card,.scene-card:hover,.scene-card:focus-visible{filter:none;overflow:visible}
.scene-card .card-rotor{position:absolute;inset:0;display:block;transform-style:preserve-3d;transform:rotateY(0deg);transition:transform .85s cubic-bezier(.2,.65,.15,1);will-change:transform}
.scene-card.is-flipped .card-rotor{transform:rotateY(180deg)}
.scene-card .card-front,.scene-card.is-flipped .card-front{transform:rotateY(0deg) translateZ(1px)}
.scene-card .card-back,.scene-card.is-flipped .card-back{transform:rotateY(180deg) translateZ(1px)}
.scene-card .card-face{backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:inset 0 0 0 4px #d1ed9b10,inset 1px 1px 0 #eeffca50,3px 4px 0 #172b20,0 20px 22px #0008}
.scene-card.is-flipped{z-index:5}
.scene-card .card-back strong{font-size:14px;line-height:1.45}
.scene-card:focus-visible{outline:2px solid #e1ffc3;outline-offset:8px;border-radius:10px}
.deck-hint{font-size:11px}

/* A single flicker value lights the emitter, nearby ground and masked person. */
.forest-world{--lantern-power:.78}
.keeper-camp{position:absolute;left:27.1%;top:73%;width:8.4%;aspect-ratio:1;z-index:3;pointer-events:none}
.keeper-camp img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:brightness(.88) saturate(.84) drop-shadow(2px 6px 5px #000b)}
.lantern-flame{position:absolute;left:28.8%;top:54.5%;width:4.5%;height:6.5%;border-radius:60% 50% 30% 30%;background:#fff5bd;box-shadow:0 0 5px #fff0ad,0 0 16px #ffb74c;opacity:var(--lantern-power);mix-blend-mode:screen}
.lantern-halo{position:absolute;left:-40%;top:-14%;width:144%;height:144%;background:radial-gradient(ellipse,#ffc36b66, #ffa23c22 28%,transparent 64%);mix-blend-mode:screen;opacity:calc(var(--lantern-power)*.72)}
.camp-pool{position:absolute;left:-120%;top:30%;width:290%;height:140%;background:radial-gradient(ellipse at 55% 50%,#ffbc623b,#ec922a17 35%,transparent 66%);transform:rotate(-13deg);mix-blend-mode:screen;opacity:var(--lantern-power)}
.forest-world .keeper{filter:brightness(.98) saturate(.82) drop-shadow(-1px -1px 1px #b4eaff40) drop-shadow(2px 8px 5px #0009)}
.keeper-relight{position:absolute;inset:0;pointer-events:none;opacity:var(--lantern-power);background:radial-gradient(ellipse at 68% 57%,#ffc67e85,#ffb85830 39%,transparent 75%);mask:url('/assets/optimized/keeper-relaxed-person.2281c7c14819.webp') center/100% 100% no-repeat;mix-blend-mode:screen;animation:relaxed-breath 7s ease-in-out infinite;transform-origin:45% 80%}
.keeper.is-aiming .keeper-relight{opacity:0}
.keeper-rest:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 90% 60%,#ffb75224,transparent 70%);mask:url('/assets/optimized/keeper-relaxed-rock.6fac6c678f24.webp') center/100% 100% no-repeat;mix-blend-mode:screen;opacity:var(--lantern-power)}

/* The marked control panel: larger copy, clear controls and short labels. */
.forest-hud{right:24px;bottom:96px;min-width:390px;padding:18px 21px;gap:16px;border-color:#d4ff9866;background:linear-gradient(130deg,#223e2ce8,#061a16f2);box-shadow:inset 0 1px 0 #d6ffab33,0 14px 45px #0009,0 0 24px #baff4d0e}
.hud-dot{width:9px;height:9px;flex-shrink:0}
.hud-copy{gap:7px;min-width:0;font:700 16px/1.3 Arial,sans-serif;letter-spacing:.04em;flex:1}
.hud-copy small{font:12px/1.5 Arial,sans-serif;letter-spacing:0;color:#c2d6b9;max-width:235px}
.forest-tool{min-width:50px;height:58px;gap:3px;align-content:center;font-size:22px;line-height:1;border-color:#c9ff8355;transition:background .25s,box-shadow .25s}
.forest-tool small{display:block;font:9px/1.2 Arial,sans-serif;color:#c9dfa9}
.forest-tool:hover,.forest-tool:focus-visible{background:#d4ff5433;box-shadow:0 0 20px #d4ff5445;border-color:#e4ffb0}
.forest-tool[aria-pressed=true] small{color:#17320e}

@keyframes goo-stretch{0%,100%{height:.12em;transform:scaleX(1)}50%{height:.29em;transform:scaleX(.8)}70%{height:.2em}}
@keyframes goo-stretch-short{0%,100%{height:.045em}50%{height:.12em}70%{height:.08em}}
@keyframes goo-fall{0%,62%,100%{transform:none;opacity:1}80%{transform:translateY(.23em) scale(.75,1.4);opacity:0}81%{transform:none;opacity:0}}
@keyframes goo-letter{0%,100%{transform:none}45%{transform:translateY(-5px) rotateX(-12deg) scaleY(1.08)}70%{transform:translateY(2px) scaleY(.97)}}
@media(min-width:1600px){.forest-hud{min-width:440px;padding:21px 24px}.hud-copy{font-size:18px}.hud-copy small{font-size:14px}.forest-tool{min-width:56px;height:62px}.forest-tool small{font-size:10px}}
@media(min-width:701px) and (max-height:800px){.forest-hero .hero-grid{padding-top:112px}.forest-hero h1{font-size:clamp(54px,7.8svh,62px);margin-bottom:24px}.forest-hero .eyebrow{margin-bottom:14px}.forest-hero .hero-copy>p{font-size:13px}.forest-hero .actions{margin:15px 0}.forest-hero .actions .button{font-size:12px;min-height:47px;padding:10px 13px;gap:12px}.forest-hero .hero-meta{padding-top:10px}.forest-hud{bottom:88px;padding:14px 16px;min-width:360px}.hud-copy{font-size:15px}.hud-copy small{font-size:11px}.forest-tool{height:50px;min-width:44px}}
@media(min-width:701px) and (max-width:1050px){.header .nav.wrap{gap:12px;padding-inline:20px}.header .navlinks{font-size:14px;gap:4px}.header .navlinks a{padding:12px 8px}.header .brand{font-size:21px}.forest-hero .hero-copy{width:44vw}.forest-hero h1{font-size:clamp(57px,6.3vw,70px)}.forest-hero .actions .button{padding:11px 12px;font-size:12px;gap:10px}.forest-hud{min-width:340px}.hud-copy small{max-width:190px}.deck-hint{font-size:9px}}
@media(max-width:700px){
 .header .navlinks{font-size:19px;gap:4px}.header .navlinks a{padding:14px 10px}.header .navlinks a:after{left:10px;right:auto;width:80px}
 .forest-hero{height:1230px;min-height:1230px}.forest-hero .hero-grid{padding:112px 7% 0}
 .forest-hero .hero-copy{width:100%;max-width:510px}.forest-hero .eyebrow{font-size:9px;margin-bottom:18px}
 .forest-hero h1{font-size:clamp(63px,16.6vw,95px);margin-bottom:30px;line-height:1.01}
 .forest-hero .hero-copy>p{font-size:13px}.forest-hero .actions{margin:21px 0}.forest-hero .actions .button{font-size:12px;gap:11px;padding:12px 13px;min-height:48px}
 .forest-hero .hero-meta{font-size:10px;gap:20px}.forest-hero .hero-meta b{font-size:14px}.forest-hero .hero-meta span+span{padding-left:20px}
 .forest-viewport{top:510px;bottom:70px}.forest-shade{background:linear-gradient(#030b0b 0%,#030b0b 36%,#030b0b66 46%,transparent 60%,#030b0b 99%)}
 .keeper-camp{left:73.2%;top:74%;width:8.5%}.forest-world .bulb-target{width:4.05%}
 .forest-hud{left:5%;right:5%;bottom:85px;min-width:0;padding:15px 12px;gap:10px}.hud-copy{font-size:14px;letter-spacing:.02em}.hud-copy small{font-size:11px;max-width:170px}
 .forest-tool{min-width:43px;height:53px;font-size:21px}.forest-tool small{font-size:8px}.hud-dot{width:6px;height:6px}
 .floating-deck{bottom:20%;transform:scale(.76);right:2%}.deck-hint{bottom:18%;font-size:8px;max-width:215px}
}
@media(max-width:370px){.forest-hero .actions .button{font-size:11px;gap:7px;padding:11px}.forest-hud{padding:12px 10px;gap:7px}.hud-copy{font-size:12px}.hud-copy small{font-size:10px}.forest-tool{min-width:39px}}
.motion-paused .goo-drips i,.motion-paused .goo-drips i:after,.motion-paused .goo-char,.motion-paused .keeper-relight,.forest-offscreen .goo-drips i,.forest-offscreen .goo-drips i:after{animation:none!important}
.motion-paused .card-rotor{transition:none}
@media(prefers-reduced-motion:reduce){.goo-drips i,.goo-drips i:after,.goo-row:hover .goo-char,.keeper-relight{animation:none!important}.scene-card .card-rotor,.header .navlinks a,.header .navlinks a:before,.header .navlinks a:after{transition:none}.header .navlinks a:hover{transform:none}}

.forest-hero .hero-bottom .hero-meta{border:0;padding:0;margin:0;gap:24px;font:11px/1.4 Arial,sans-serif;pointer-events:none}.forest-hero .hero-bottom .hero-meta b{font:16px/1.4 monospace}.forest-hero .hero-bottom .hero-meta span+span{padding-left:24px}
@media(max-width:700px){.forest-hero .hero-bottom{width:90%;gap:12px}.forest-hero .hero-bottom .hero-meta{gap:13px;font-size:9px}.forest-hero .hero-bottom .hero-meta b{font-size:12px}.forest-hero .hero-bottom .hero-meta span+span{padding-left:13px}.forest-hero .hero-bottom a{font-size:7px;max-width:115px}}
