/* Reveal more woodland with wider windows; keep the central scene height-based. */
.forest-study .scene-heading { top: 18%; }

.forest-study .forest-light {
  background: radial-gradient(circle, #f7fbf2cc, #f1f8e980 7%, #e8f3e33b 24%, #e7f0e214 45%, transparent 70%);
}

/* Hide the native pointer only when its visible light replacement is running. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.forest-study:has(.forest-light.is-visible),
  body.forest-study:has(.forest-light.is-visible) * { cursor: none; }

  .forest-study.has-forest-reveal .scene-heading { isolation: isolate; }
  .forest-study.has-forest-reveal .scene-heading::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -70px -120px;
    background: linear-gradient(105deg, #e5ede378, #e7ede348 55%, #e3ece21a);
    mask-image: linear-gradient(to right, transparent, #000 24%, #000 72%, transparent), linear-gradient(to bottom, transparent, #000 30%, #000 66%, transparent);
    mask-composite: intersect;
    opacity: .7;
    transition: opacity 1600ms ease;
  }
  .forest-study.has-forest-reveal .scene-heading h1 {
    color: #7c9185;
    opacity: .035;
    filter: blur(2.6px);
    transition: color 1600ms ease, opacity 1600ms ease, filter 1600ms ease;
  }
  .forest-study.has-forest-reveal .scene-heading.is-name-lit::before,
  .forest-study.has-forest-reveal .scene-heading.is-name-lit h1 { transition-duration: 800ms; }
  .forest-study.has-forest-reveal .scene-heading.is-name-lit::before { opacity: .24; }
  .forest-study.has-forest-reveal .scene-heading.is-name-lit h1 {
    color: #40534a;
    opacity: .72;
    filter: none;
  }
  .forest-study.has-forest-reveal:has(:focus-visible) .scene-heading::before { opacity: .08; transition-duration: 120ms; }
  .forest-study.has-forest-reveal:has(:focus-visible) .scene-heading h1 {
    color: #21372f;
    opacity: .96;
    filter: none;
    transition-duration: 120ms;
  }
}

@media (aspect-ratio > 4/3) and (min-height: 501px) {
  .forest-study .painted-frame {
    --frame-h: max(100svh, 33.333333vw);
    --frame-anchor: 1;
    width: max(300svh, 100%);
  }

  .forest-study .scene::before { content: none; }
  .forest-study .scene-art { -webkit-mask-image: none; mask-image: none; }

  .forest-study .portal-notes { left: 30.8%; top: 55%; width: 6.5%; height: 32%; }
  .forest-study .portal-work { left: 40.7%; top: 58%; width: 7.2%; height: 24%; }
  .forest-study .portal-pressed { left: 54.1%; top: 60%; width: 5.5%; height: 23%; }
  .forest-study .portal-greenhouse { left: 61.3%; top: 70%; width: 7.6%; height: 27%; }
}
