/* The film uses exactly the main residence photograph's desaturation. The
   text shade is separate so the asset itself retains all architectural detail. */
.film-story {
  position: relative;
  height: 300svh;
  background: #000;
  color: var(--cream, #e9e5dc);
  isolation: isolate;
}
.film-story-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 440px;
  overflow: hidden;
  background: #000;
}
.film-story-media,
.film-story-poster,
.film-story-video,
.film-story-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.film-story-media { background: #000; }
.film-story-poster,
.film-story-video {
  object-fit: contain;
  object-position: center;
  filter: saturate(.7);
}
.film-story-video {
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.film-story[data-film-state="ready"][data-film-mode="scroll"] .film-story-video { opacity: 1; }
.film-story-shade {
  pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / .35), transparent 27%, transparent 42%, rgb(0 0 0 / .72) 100%);
}
.film-story-topline {
  position: absolute;
  top: 35px;
  left: 4.2vw;
  right: 4.2vw;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}
.film-story-address {
  font: 9px/1.7 var(--sans, sans-serif);
  letter-spacing: .13em;
}
.film-story-address > span {
  display: block;
  color: var(--accent, #bbac8f);
  font-size: 7px;
  margin-top: 3px;
}
.film-story-skip {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  min-height: 44px;
  margin-top: -12px;
  font-size: 10px;
  color: var(--cream, #e9e5dc);
}
.film-story-skip > span { font-size: 20px; }
.film-story-skip:hover { color: var(--accent, #bbac8f); }
.film-story-copy {
  position: absolute;
  left: 4.2vw;
  bottom: 104px;
  display: grid;
  pointer-events: none;
}
.film-story-beat { grid-area: 1 / 1; opacity: 0; }
.film-story-beat:first-child { opacity: 1; }
.film-story-kicker {
  display: block;
  font: 8px/1.6 var(--sans, sans-serif);
  letter-spacing: .15em;
  margin-bottom: 21px;
  color: var(--cream, #e9e5dc);
}
.film-story-beat p {
  font: 400 clamp(54px, 6.3vw, 105px)/1.02 var(--serif, serif);
  letter-spacing: -.04em;
  font-optical-sizing: auto;
  font-synthesis: none;
}
.film-story-beat em { font-weight: 400; }
.film-story-bottom {
  position: absolute;
  bottom: 32px;
  left: 4.2vw;
  right: 4.2vw;
  display: grid;
  grid-template-columns: 1fr minmax(160px, 27vw) 1fr;
  align-items: center;
  gap: 28px;
  font: 8px/1.6 var(--sans, sans-serif);
  letter-spacing: .1em;
}
.film-story-instruction > span { margin-left: 12px; font-size: 14px; }
.film-story-position { display: flex; align-items: center; gap: 15px; font-variant-numeric: tabular-nums; }
.film-story-track { position: relative; display: block; width: 100%; height: 1px; background: rgb(233 229 220 / .25); }
.film-story-track > span { position: absolute; inset: 0; background: var(--accent, #bbac8f); transform: scaleX(0); transform-origin: left; }
.film-story-chapter { justify-self: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.film-story-chapter > span { margin: 0 7px; color: var(--accent, #bbac8f); }
.film-story-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.film-story[data-film-mode="still"],
.film-story[data-film-state="error"] { height: auto; }
.film-story[data-film-mode="still"] .film-story-stage,
.film-story[data-film-state="error"] .film-story-stage { position: relative; height: min(850px, 100svh); }
.film-story[data-film-mode="still"] .film-story-position,
.film-story[data-film-mode="still"] .film-story-chapter,
.film-story[data-film-state="error"] .film-story-position,
.film-story[data-film-state="error"] .film-story-chapter { visibility: hidden; }

@media (min-width: 701px) {
  /* Let the architecture fill the pinned desktop stage at every aspect ratio. */
  .film-story-poster,
  .film-story-video { object-fit: cover; object-position: 50% 50%; }
  .film-story-copy { max-width: 91.6vw; }
  .film-story-beat p { font-size: clamp(54px, 6.7vw, 112px); }
  .film-story-beat em { font-size: 1.06em; letter-spacing: -.055em; }
}

@media (max-width: 700px) {
  .film-story { height: 250svh; }
  .film-story-stage { min-height: 550px; }
  .film-story-topline { top: 29px; left: 6vw; right: 6vw; gap: 20px; }
  .film-story-address { font-size: 8px; letter-spacing: .09em; }
  .film-story-address > span { font-size: 6px; }
  .film-story-skip { gap: 12px; font-size: 8px; }
  .film-story-skip > span { font-size: 18px; }
  /* Preserve the complete architectural composition on portrait screens. */
  .film-story-media { top: 24svh; bottom: auto; height: auto; aspect-ratio: 16 / 9; }
  .film-story-shade { background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / .06) 48%, #000 71%); }
  .film-story-copy { left: 6vw; bottom: 111px; }
  .film-story-kicker { font-size: 6px; letter-spacing: .13em; margin-bottom: 15px; }
  .film-story-beat p { font-size: clamp(43px, 11vw, 72px); line-height: 1.06; }
  .film-story-bottom { bottom: 28px; left: 6vw; right: 6vw; grid-template-columns: 1fr auto; gap: 19px; font-size: 6px; }
  .film-story-instruction { grid-column: 1; }
  .film-story-instruction > span { margin-left: 8px; font-size: 11px; }
  .film-story-position { grid-column: 1 / -1; grid-row: 2; gap: 11px; }
  .film-story-chapter { grid-column: 2; grid-row: 1; }
  .film-story[data-film-mode="still"] .film-story-stage,
  .film-story[data-film-state="error"] .film-story-stage { height: 90svh; }
}

@media (max-width: 700px) and (max-height: 680px) {
  .film-story-media { top: 20svh; }
  .film-story-beat p { font-size: 10vw; }
  .film-story-copy { bottom: 104px; }
  .film-story-kicker { margin-bottom: 9px; }
}

@media (min-width: 701px) and (max-height: 600px) {
  .film-story-copy { bottom: 82px; }
  .film-story-beat p { font-size: clamp(42px, 8vh, 64px); }
  .film-story-kicker { margin-bottom: 12px; }
  .film-story-topline { top: 25px; }
  .film-story-bottom { bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .film-story { height: auto; }
  .film-story-stage { position: relative; }
  .film-story-video { display: none; }
  .film-story-beat { transform: none !important; }
}

/* RIFT integration: preserve the existing FEEL SOMETHING composition and tone. */
.film-story{background:var(--ink);color:var(--acid);height:320svh}
.film-story-stage,.film-story-media{background:var(--ink)}
.film-story-poster,.film-story-video{filter:var(--photo-grade)}
.film-story-shade{background:linear-gradient(180deg,#11110e26,transparent 35%,#11110e70 100%)}
.film-story-topline{top:auto;bottom:34px;left:3vw;right:3vw;align-items:center;z-index:3}
.film-story-address,.film-story-skip{font-family:inherit;letter-spacing:0;font-size:11px;line-height:1.3;color:var(--acid)}
.film-story-skip{margin:0;min-height:44px}.film-story-skip:hover{color:var(--acid);text-decoration:underline;text-underline-offset:5px}
.film-story-copy{left:auto;right:3vw;top:9%;bottom:auto;text-align:right;max-width:200px}
.film-story-kicker{font-family:inherit;font-size:12px;line-height:1.3;letter-spacing:0;color:var(--acid);margin:0}
.film-story-headline{position:absolute;left:3vw;bottom:16%;font-size:10.8vw;line-height:.86;letter-spacing:-.065em;font-weight:500;pointer-events:none;color:var(--acid);text-shadow:0 2px 18px #11110e26}
.film-story-headline>span{margin-left:8vw}
.film-story-bottom{bottom:93px;left:3vw;right:3vw;display:flex;justify-content:flex-end;font-family:inherit;font-size:10px;letter-spacing:0;gap:22px}
.film-story-position{width:180px}.film-story-track{background:rgba(213,255,0,.25)}.film-story-track>span{background:var(--acid)}.film-story-chapter{display:none}
.film-story[data-film-mode=still],.film-story[data-film-state=error]{height:auto}
.film-story[data-film-mode=still] .film-story-stage,.film-story[data-film-state=error] .film-story-stage{height:100svh;min-height:570px}
.film-story[data-film-mode=still] .film-story-bottom,.film-story[data-film-state=error] .film-story-bottom{display:none}
@media(max-width:760px){.film-story{height:260svh}.film-story-stage{min-height:600px}.film-story-topline{left:5vw;right:5vw;bottom:18px;gap:12px}.film-story-address,.film-story-skip{font-size:10px}.film-story-media{top:0;bottom:auto;height:78svh;aspect-ratio:auto}.film-story-poster{object-fit:cover;object-position:78% center}.film-story-video{object-fit:cover;object-position:var(--film-focus,78%) center}.film-story-copy{right:5vw;top:30px}.film-story-kicker{font-size:11px}.film-story-headline{left:5vw;bottom:23%;font-size:14vw;line-height:.92}.film-story-headline>span{margin-left:0}.film-story-shade{background:linear-gradient(180deg,#11110e26,transparent 35%,#11110e0d 53%,var(--ink) 79%)}.film-story-bottom{bottom:91px;left:5vw;right:5vw;justify-content:space-between;gap:18px;font-size:9px}.film-story-position{width:40%}.film-story[data-film-mode=still],.film-story[data-film-state=error]{height:auto}}
@media(min-width:761px) and (max-height:650px){.film-story-headline{font-size:9vw;bottom:22%}.film-story-bottom{bottom:80px}.film-story-topline{bottom:15px}}
