/* One continuous masthead leaves the first frame visible underneath the site navigation. */
body > .cinema-mast {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter); background: linear-gradient(to bottom,rgb(24 22 25 / .74),rgb(24 22 25 / .28) 70%,transparent);
}
.cinema-mast .brand { justify-self: start; }
.cinema-mast .cinema-primary { display: flex; gap: clamp(1.45rem,3.3vw,4.5rem); }
.cinema-mast .cinema-primary a, .cinema-menu summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  font: 550 .85rem/1.2 "Helvetica Neue",Arial,sans-serif; color: white; text-decoration: none;
}
.cinema-mast .cinema-primary a[aria-current] { text-decoration: underline; text-decoration-color: var(--ncc-gold); text-underline-offset: .55rem; }
.cinema-menu { position: relative; justify-self: end; }
.cinema-menu summary { gap: .7rem; cursor: pointer; list-style: none; }
.cinema-menu summary::-webkit-details-marker { display: none; }
.cinema-menu summary i { width: 22px; height: 8px; border-block: 1px solid white; }
.cinema-menu-panel {
  position: absolute; top: calc(100% + .55rem); right: 0; width: min(350px,90vw);
  padding: 1.6rem 1.8rem; background: var(--ncc-surface); color: var(--ncc-ink); box-shadow: 0 12px 44px #15141b40;
}
.cinema-mast .cinema-menu-panel nav { display: grid; gap: .25rem; }
.cinema-mast .cinema-menu-panel a { display: block; color: var(--ncc-ink); padding: .45rem 0; }
.cinema-menu-panel .cinema-destinations a { font: 400 2.05rem/1.08 var(--display); letter-spacing: -.025em; }
.cinema-menu-panel .cinema-sections { margin-top: 1.25rem; padding-top: .8rem; border-top: 1px solid var(--ncc-stone); }
.cinema-menu-panel .cinema-sections a { font: 500 .86rem/1.5 "Helvetica Neue",Arial,sans-serif; }

main > .film-hero[data-cut] { height: min(83svh,63vw); max-height: none; min-height: min(525px,60vw); aspect-ratio: auto; }
.film-hero[data-cut]::after {
  background: linear-gradient(0deg,rgb(20 18 21 / .82),transparent 54%),
              linear-gradient(90deg,rgb(21 19 22 / .54),rgb(21 19 22 / .07) 69%);
}
.film-hero[data-cut] :is(.film-copy,.hero-inner) { padding-bottom: clamp(2.4rem,4.3vw,4.5rem); }
.film-hero[data-cut] .film-links { gap: 1.35rem; }
.film-hero[data-cut] .film-links .film-link { position: absolute; left: -9999px; }
.film-hero[data-cut] .film-links .film-link:focus-visible { position: static; }
.watch-film {
  pointer-events: auto; display: inline-flex; gap: .65rem; align-items: center; min-height: 44px;
  border: 0; padding: 0 .2rem; background: transparent; color: white; font: 600 .94rem "Helvetica Neue",Arial,sans-serif; cursor: pointer;
}
.watch-film i { display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .75); border-radius: 50%; width: 32px; height: 32px; }
.watch-film i::before { content: ''; margin-left: 2px; border-left: 7px solid white; border-block: 4px solid transparent; }
.watch-film:is(:focus-visible,:hover) i { background: rgb(255 255 255 / .2); }
body main .film-hero[data-cut] .film-gallery span,body main .film-hero[data-cut] .motion-switch {
  top: auto; bottom: clamp(2.5rem,4.3vw,4.8rem); background: rgb(34 32 36 / .46);
}
body main .film-hero[data-cut] .motion-switch { right: var(--gutter); }
body main .film-hero[data-cut] .film-gallery span { right: calc(var(--gutter) + 46px); }
html.screening-open { overflow: hidden; }
dialog.screening {
  margin: auto; box-sizing: border-box; padding: clamp(10px,1.2vw,22px); width: min(91vw,1180px); max-width: 94vw;
  max-height: 91dvh; overflow-y: auto; overscroll-behavior: contain; background:var(--os-panel); color:var(--os-text);
  border:1px solid var(--os-rule); box-shadow: 0 22px 90px #14131870;
}
.screening::backdrop { background: rgb(22 21 24 / .74); backdrop-filter: blur(8px); }
.screening-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .65rem; }
.screening-top h2 { font: 400 clamp(1.45rem,3vw,2.4rem)/1.05 var(--display); margin: 0; }
.screening-close {
  display: inline-flex; align-items:center; gap:.55rem; height:44px; padding:0 .6rem;
  font: 500 .82rem/1 "Helvetica Neue",Arial,sans-serif; cursor:pointer; color:inherit; background:transparent; border:0;
}
.screening-close b { font:400 1.65rem/1 Arial,sans-serif; }
.screening-film { display:block; margin:auto; width:100%; max-height:60dvh; object-fit:contain; background:#171619; aspect-ratio:16/9; }
.screening-caption { color:var(--os-muted); padding-block: .65rem .35rem; font: 500 .78rem/1.4 "Helvetica Neue",Arial,sans-serif; }
@media(max-width:900px) {
  .cinema-mast .cinema-primary { gap: 1.3rem; }
}
@media(max-width:690px) {
  html body > header.site-mast.overlay { position: relative; }
  body > .cinema-mast { --mast-height: 65px; display:flex; }
  .cinema-mast .cinema-primary { display:none; }
  .cinema-menu-panel { width: min(340px,90vw); }
  main > .film-hero[data-cut],body > main > .film-hero[data-cut]:first-child { height:auto; min-height: 0; aspect-ratio: 1.15; }
  .film-hero[data-cut] :is(.film-copy,.hero-inner) { padding: 1.25rem 5% 1.2rem; }
  .film-hero[data-cut] .film-links { gap: .85rem; margin-top: .85rem; }
  .watch-film { font-size: .82rem; gap: .4rem; }
  .watch-film i { height: 27px; width:27px; }
  body main .film-hero[data-cut] .film-gallery span,body main .film-hero[data-cut] .motion-switch { top: .9rem; bottom: auto; }
  body > main > .film-hero[data-cut]:first-child :is(.film-gallery span, .motion-switch) { top: .9rem; bottom: auto; }
  .screening-top { margin-bottom:.3rem; }
  .screening-top h2 { font-size:1.45rem; }
  .screening-caption { font-size:.7rem; }
}
@media(prefers-reduced-motion:no-preference) {
  .cinema-menu[open] .cinema-menu-panel,.screening[open] { animation: screening-in .25s ease-out; }
  @keyframes screening-in { from { opacity: .35; translate: 0 6px; } }
}
body .cinema-mast .cinema-menu-panel nav a { display: block; }
@media(max-width:380px) {
  .builder-film .hero-inner .eyebrow { display: none; }
}
.screening .screening-sound {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; flex: none; margin-left: auto;
  padding: .35rem .5rem; border:0; color:var(--os-muted); background: transparent;
  font: 550 .78rem/1 "Helvetica Neue",Arial,sans-serif; cursor: pointer;
}
.screening-sound::before { content: ''; width: 11px; height: 10px; background: currentColor; clip-path: polygon(0 40%,15% 40%,15% 60%,0 60%,0 40%,40% 40%,40% 0,59% 0,59% 100%,40% 100%,40% 40%,83% 40%,83% 18%,100% 18%,100% 82%,83% 82%,83% 40%); }
.screening .screening-sound[aria-pressed=true] { color:var(--os-text); text-decoration:underline; text-underline-offset:.2em; }
@media(max-width:500px) {
 .screening .screening-top { gap: .3rem; }
 .screening .screening-sound { font-size:.68rem; gap:.28rem; padding-inline:.1rem; }
 .screening .screening-close { font-size:.68rem; gap:.2rem; padding-inline:.15rem; }
 .screening .screening-top h2 { max-width:12ch; }
}
.closing-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(58%, 1420px, 129svh);
  background: #242724;
  color: white;
}
.closing-view { grid-area: 1 / 2; }
.closing-view { align-self: center; min-width: 0; }
.closing-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5056 / 3392;
  cursor: pointer;
}
.closing-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.closing-copy {
  grid-area: 1 / 1;
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-content: end;
  justify-items: start;
  padding: clamp(2.5rem, 5vw, 6rem) var(--gutter);
}
.closing-entry, .closing-copy::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.closing-entry { z-index: -2; object-fit: cover; object-position: center 45%; }
.closing-copy::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #121712b8, #141b1570 78%), linear-gradient(0deg, #161b17bf, #181f1920 84%);
}
.closing-copy address { display: grid; gap: .1rem; margin-top: 1.15rem; }
.closing-copy address a { display: inline-flex; align-items: center; width: fit-content; min-height: 36px; color: white; }
.closing-copy h2 { font: 400 clamp(4rem, 8vw, 9rem)/.94 var(--display); letter-spacing: -.045em; }
.closing-copy h2 em { font-weight: 400; }
.builder-page .studio-footer { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.7rem 2rem; padding:1.2rem var(--gutter); color:var(--os-muted); background:var(--os-panel); border-top:1px solid var(--os-rule); font:500 .77rem/1.5 Arial,sans-serif; }
.studio-footer a { color:inherit; }
@media(max-width:760px) {
  .closing-scene { grid-template-columns: minmax(0,1fr); }
  .closing-view { grid-area: 1 / 1; }
  .closing-copy { grid-area: 2 / 1; padding: 2.6rem var(--gutter); }
  .closing-entry { object-position: center 35%; }
}

/* Keep direct estate links at larger widths; the menu contains them on smaller screens. */
@media(max-width:1050px) {
  .cinema-mast .cinema-primary a.estate-shortcut { display:none; }
}
.cinema-menu-panel { max-height:calc(100dvh - var(--mast-height) - 1.25rem); overflow-y:auto; overscroll-behavior:contain; }
