.cinema-lake {
  --frame-ratio: 1.648148148;
  --frame-window: 8.333333% 5.05618%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: clamp(660px, 80svh, 960px);
  overflow: hidden;
  background: #1e2926 url("moonlit-lake.webp") center 52% / cover no-repeat;
}
.cinema-lake::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgb(17 15 20 / 31%);
}
.lake-surface {
  position:absolute; inset:0; z-index:-2; width:100%; height:100%;
  object-fit:cover; object-position:center 52%; pointer-events:none; opacity:0;
}
.lake-surface.is-ready { opacity:1; }
.lake-heading { text-align: center; padding: 2.2rem 1rem 0; color: #f1e5cb; }
.lake-heading h1 { font-size: clamp(5.3rem, 8.2vw, 9.2rem); line-height: 1.15; }
.lake-gallery {
  position: relative; width: min(87%, 1070px); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center;
  gap: 6%; flex: 1; min-height: 380px; padding: 3.2rem 0 4.15rem;
}
.lake-film {
  position: relative; isolation: isolate; display: block; width: clamp(235px, 25vw, 345px);
  color: #ffedc7; text-align: center; --tilt: -4deg;
}
.lake-film:nth-child(2) { --tilt: 4deg; margin-top: 12%; }
.floating-portrait { display: block; position: relative; z-index: 2; transform: rotate(var(--tilt)); transform-origin: center 75%; }
.film-dialog[data-frame="belladonna"] { --frame-image:url("belladonna-scroll-frame.webp"); }
.film-dialog[data-frame="jealous"] { --frame-image:url("jealous-regency-frame.webp"); }
.frame-box { position:relative; display:block; width:100%; aspect-ratio:var(--frame-ratio); }
.frame-box::after {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:var(--frame-image) center / 100% 100% no-repeat;
}
.frame-window { position:absolute; inset:var(--frame-window); display:block; overflow:hidden; background:#111315; }
.portrait {
  position: relative; display: block; padding: 6px; overflow: hidden;
  aspect-ratio: 1.60; border-radius: 50%; background: #47372a; border: 2px solid #e0c393;
  box-shadow: inset 0 0 0 1px #251c22, inset 0 0 0 3px #aa865b, 0 0 0 2px #554130, 0 0 0 3px #c2a374, 0 10px 22px #070e13ab;
}
.portrait img,.water-reflection img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.portrait::after { content: ""; position: absolute; inset: 2px; border: 1px dotted #ffe7ad; border-radius: inherit; pointer-events: none; }
.gilt-crown,.gilt-crown::before,.gilt-crown::after { position: absolute; background: url("gilt-embroidery.webp") center/contain no-repeat; pointer-events: none; }
.gilt-crown { width: 18%; aspect-ratio: 1; top: -15%; left: 41%; filter: drop-shadow(0 2px 1px #312216bf); }
.gilt-crown::before,.gilt-crown::after { content:""; width: 70%; height: 70%; bottom: -3%; }
.gilt-crown::before { right: 63%; transform: rotate(-53deg); }
.gilt-crown::after { left: 63%; transform: rotate(53deg); }
.locket-play {
  display:grid; place-items:center; position:absolute; z-index:2; bottom:-6px; left:50%; transform:translateX(-50%);
  border-radius:50%; width:32px; height:32px; background:#492334; border:1px solid #daba86;
  box-shadow:inset 0 0 0 2px #492334,inset 0 0 0 3px #a28257,0 2px 4px #1c1021;
}
.locket-play::after { content:""; margin-left:2px; border-left:7px solid #fce2b0; border-block:5px solid transparent; }
/* Paired bright crests and dark troughs let the rings read against moonlit water. */
.waterline {
  position:absolute; z-index:-1; top:54%; left:-22%; width:144%; height:27%;
  pointer-events:none; transform:rotate(-2deg);
}
.lake-film:nth-child(2) .waterline { transform:rotate(2deg); }
.waterline i {
  position:absolute; inset:0;
  background:url("lake-ripple.webp") center/100% 100% no-repeat;
  opacity:.5;
}
.waterline i:nth-child(2) { transform:scale(.86,.75); opacity:.35; }
.waterline i:nth-child(3) { transform:scale(1.17,1.24); opacity:.26; }
.waterline i:nth-child(n+4) { opacity:0; }
.water-reflection {
  position:absolute; top:58%; left:5%; width:90%; height:34%; opacity:.40;
  overflow:hidden; border-radius:50%; transform:scaleY(-1) skewX(-5deg);
  mask-image:linear-gradient(to top,#000 5%,transparent 92%); filter:blur(2px); pointer-events:none;
}
.water-reflection img { object-position:center; }
.film-caption { display:flex; flex-direction:column; align-items:center; position:relative; z-index:3; margin-top:1.18rem; color:#f6edda; }
.film-name { font:italic 400 clamp(1.65rem,2.6vw,2.65rem)/1.14 var(--text); }
.film-format { margin-top:.25rem; font-size:1rem; line-height:1.45; font-variant-caps:small-caps; letter-spacing:.055em; color:#e9ddc4; }
.motion-control { cursor:pointer; background:#221823c9; color:#f5e4bf; border:1px solid #b1a5898c; border-radius:20px; font:italic 400 .95rem var(--text); padding:.45rem 1rem; min-height:38px; margin:0 0 1.25rem; }
.motion-control[hidden] { display:none; }

.lake-film .floating-portrait { transition:transform .35s ease,filter .35s; }
.lake-film:is(:hover,:focus-visible) .floating-portrait, .lake-film.surfacing .floating-portrait {
  transform:translateY(-8px) rotate(0deg); filter:brightness(1.09);
}
.cinema-lake[data-motion] .waterline i {
  animation:lake-ripple 6s linear infinite;
  animation-delay:calc(var(--phase, 0s) + var(--offset, 0s));
}
.lake-film:nth-child(2) { --phase:-.8s; }
.waterline i:nth-child(2) { --offset:-1.2s; }
.waterline i:nth-child(3) { --offset:-2.4s; }
.waterline i:nth-child(4) { --offset:-3.6s; }
.waterline i:nth-child(5) { --offset:-4.8s; }
.cinema-lake[data-motion] .water-reflection img { animation:lake-reflection 3s ease-in-out infinite alternate; }
.cinema-lake[data-motion="paused"] :is(.waterline i,.water-reflection img) { animation-play-state:paused; }
@keyframes lake-ripple {
  0% { transform:scale(.52,.49); opacity:0; }
  17% { opacity:1; }
  47% { opacity:.81; }
  72% { opacity:.54; }
  100% { transform:scale(1.34,1.60); opacity:0; }
}
@keyframes lake-reflection {
  from { transform:scale(1.08) skewX(-4deg); }
  to { transform:scale(1.1,.94) skewX(5deg); }
}

.film-dialog {
  width:min(92vw,1180px,calc((100vh - 6.8rem) * var(--frame-ratio,1.6)));
  width:min(92vw,1180px,calc((100dvh - 6.8rem) * var(--frame-ratio,1.6)));
  max-width:92vw; max-height:none; border:0; padding:0; overflow:visible; background:transparent; box-shadow:none;
}
.film-dialog[open] { animation:none; }
.film-dialog::backdrop { background:#080a10ed; }
.player-frame { filter:drop-shadow(0 10px 24px #030509d9); }
.projection iframe { display:block; width:100%; height:100%; border:0; }
.dismiss-film {
  position:absolute; bottom:100%; right:-.25rem; display:grid; place-items:center; width:44px; height:44px;
  background:transparent; border:0; color:#f0dba8; cursor:pointer;
}
.dismiss-film::before,.dismiss-film::after { content:""; position:absolute; width:18px; height:1.5px; background:currentColor; transform:rotate(45deg); }
.dismiss-film::after { transform:rotate(-45deg); }
.dismiss-film:focus-visible { outline-offset:-4px; }
@media(max-width:700px) {
  .cinema-lake { min-height:clamp(740px,92svh,925px);background-position:53% center; }
  .lake-surface { object-position:53% center; }
  .lake-heading { padding:2rem .7rem .3rem; }
  .lake-heading h1 {font-size:clamp(4.6rem,15vw,6.1rem);}
  .lake-gallery { width:min(88%,465px);grid-template-columns:1fr;gap:2.2rem;padding:2.2rem 0 2.5rem; }
  .lake-film {width:clamp(174px,55vw,254px);justify-self:start;margin-left:3%;}
  .lake-film:nth-child(2) {margin:0 3% 0 0;justify-self:end;}
  .film-name {font-size:clamp(1.6rem,6vw,2rem);}
  .film-format {font-size:.94rem;}
  .film-caption {margin-top:.9rem;}
  .locket-play {width:28px;height:28px;}
  .film-dialog {width:min(96vw,calc((100dvh - 6.8rem) * var(--frame-ratio,1.6)));max-width:96vw;}
}
