/* Scroll-addressed stage-one approach; removed entirely at both anchors. */
.lake-approach { display:none; position:fixed; inset:0; z-index:2; overflow:hidden; pointer-events:none; }
html[data-dive="moving"] .lake-approach[data-active] { display:block; }
.camera[data-lake-look] .sky-distance { translate:0 var(--look-sky); }
.camera[data-lake-look] .sunlit-rim { translate:0 var(--look-rim); }
.camera[data-lake-look] .sky-light { translate:0 var(--look-light); }
.lake-approach-mist {
  position:absolute; inset:0;
  background:linear-gradient(180deg,
    rgba(174,207,224,0) var(--mist-cool),
    rgba(187,217,230,.18) var(--mist-sky),
    rgba(214,232,234,.59) var(--mist-light),
    rgba(235,241,237,.87) var(--mist-silt),
    rgba(246,245,240,.98) var(--mist-warm),
    #f9f7f4 var(--mist-paper));
}
.lake-approach-shore { position:absolute; top:var(--shore-top); left:var(--shore-x); width:var(--shore-width); max-width:none; height:auto; transform:translateX(-43%) scaleY(var(--shore-depth,1)); transform-origin:top center; mask-image:linear-gradient(transparent,#000 17%,#000 min(85%,calc(var(--shore-near-edge,100%) - 5%)),transparent min(100%,calc(var(--shore-near-edge,100%) + 9%))),linear-gradient(to left,transparent,#000 10%,#000); mask-composite:intersect; }
.lake-approach-wisp { position:absolute; display:block; transform-origin:center; background:linear-gradient(163deg,#fffbef,#f8f5eb 68%,#e7ebed); mask:url("../high-wisps.webp") center / 100% 100% no-repeat; }
.lake-approach-far { left:47%; top:var(--far-y); width:clamp(91px,17vw,250px); height:clamp(19px,3.9vw,55px); transform:rotate(-8deg); opacity:var(--far-opacity); }
.lake-approach-near { left:5%; top:var(--near-y); width:clamp(126px,21vw,314px); height:clamp(27px,5.5vw,83px); transform:rotate(-13deg); opacity:var(--near-opacity); }
.lake-approach-mid { right:5%; top:var(--mid-y); width:clamp(107px,17vw,239px); height:clamp(24px,4.3vw,56px); transform:rotate(7deg) scaleX(-1); opacity:var(--mid-opacity); }

/* Reveal the approved overhead artwork behind the same near-air boundary;
   no opacity transition, resize, perspective distortion, or resampling. */
html .lake-frame[data-stage-one] { background:transparent; }
html .lake-frame[data-stage-one] .lake-landscape {
  mask-image:linear-gradient(177deg,transparent calc(var(--stage-reveal) - 8%),#000 calc(var(--stage-reveal) + 11%));
}
@media(prefers-reduced-motion:reduce) {
  .lake-approach { display:none !important; }
  .camera[data-lake-look] :is(.sky-distance,.sunlit-rim,.sky-light) { translate:none; }
}

/* Blend the paper margin at the handoff only. No rectangular paper edge
   crosses the moving paint, and this mask opens completely before rest. */
html .lake-frame[data-stage-one] .lake-picture {
  mask-image:linear-gradient(90deg,transparent,#000 var(--stage-edge),#000 calc(100% - var(--stage-edge)),transparent),
    linear-gradient(180deg,transparent,#000 var(--stage-edge),#000 calc(100% - var(--stage-edge)),transparent);
  mask-composite:intersect;
}

/* Keep the exiting cobalt inside the incoming lake's footprint. The remote
   shore drifts up as before, but its last wash is grazed away around the
   native lake rather than hanging above it as another horizontal plate. */
.lake-approach-shore-window { position:absolute; inset:0; }
.lake-approach[data-wet-handoff] .lake-approach-shore-window {
  mask-image:radial-gradient(ellipse var(--wet-rx) var(--wet-ry) at var(--wet-x) var(--wet-y),#000 66%,transparent);
}
.lake-approach[data-shore-gone] .lake-approach-shore-window { visibility:hidden; }

/* The rotating bridge replaces only the distant shoreline plate. The sky,
   passing wisps, and actual native fourth-chapter frame keep their own layers. */
.lake-turn { position:absolute; inset:0; width:100%; height:100%; display:none; pointer-events:none; }
.lake-approach[data-turn="mesh"] .lake-turn { display:block; }
.lake-approach[data-turn] .lake-approach-shore-window { display:none; }
