.hero-bg { background: #09080a; }
.hero-still, .hero-teaser {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-teaser { opacity: 0; }
.hero-bg.video-playing .hero-teaser { opacity: 1; }

.film-invitation {
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 38px) 20px;
  background: var(--black);
}
.film-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 192px;
  min-height: 48px;
  padding: 11px 28px;
  border: 1px solid #fff;
  border-radius: 0;
  color: var(--black);
  background: #fff;
  font: 500 18px/1.2 'Cormorant Garamond', serif;
  letter-spacing: .075em;
  text-align: center;
  cursor: pointer;
}
@media (hover: hover) {
  .film-link:hover {
    border-color: var(--cream);
    background: var(--cream);
  }
}

html.film-modal-open { overflow: hidden; }
.film-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #09080a;
  color: var(--cream);
}
.film-dialog::backdrop { background: #09080a; }
.film-stage { position: relative; width: 100%; height: 100%; background: #09080a; }
.film-dialog video { display: block; width: 100%; height: 100%; object-fit: contain; background: #09080a; }
.film-dialog-close {
  position: absolute;
  z-index: 2;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 0;
  background: #09080acc;
  color: var(--cream);
  font: 500 15px/1 'Cormorant Garamond', serif;
  cursor: pointer;
}
.film-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  text-align: center;
  pointer-events: none;
}
.film-error[hidden] { display: none; }
.film-link:focus-visible, .film-dialog-close:focus-visible,
.plan-card:focus-visible, .plan-dialog button:focus-visible {
  outline: 2px solid #a09376;
  outline-offset: 4px;
}


.residence-plans { isolation:isolate; padding:88px max(28px,5.5vw) 96px; background:var(--cream); color:var(--black); scroll-margin-top:85px; }
.plans-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; max-width:1320px; margin:0 auto 38px; }
.plans-eyebrow { font-size:13px; letter-spacing:.28em; text-transform:uppercase; color:#716958; margin:0 0 18px; }
.plans-heading h2 { font:400 clamp(36px,4vw,62px)/1.05 'Cormorant Garamond',serif; margin:0; }
.plans-heading>p { font-size:19px; line-height:1.45; max-width:310px; margin:0; color:#645e54; }
.plans-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:30px; max-width:1320px; margin:auto; }
.plan-card { display:block; width:100%; padding:0; border:0; background:var(--cream); color:inherit; text-align:left; cursor:zoom-in; font:inherit; }
.plan-card img { width:100%; height:auto; aspect-ratio:2000/2828; object-fit:contain; display:block; background:transparent; mix-blend-mode:multiply; }
.plan-card-label { display:flex; align-items:baseline; justify-content:space-between; padding:20px 0 12px; border-bottom:1px solid #b6ac9b; }
.plan-card-label .plan-name { font-size:clamp(22px,2.3vw,32px); }
.plan-card-label small { font-size:12px; letter-spacing:.12em; color:#716958; }
.plans-note { max-width:1320px; margin:26px auto 0; font-size:16px; line-height:1.5; color:#645e54; }
.plan-dialog { isolation:isolate; width:calc(100vw - 48px); max-width:1500px; height:calc(100vh - 48px); height:calc(100dvh - 48px); max-height:none; padding:0; border:0; background:var(--cream); color:var(--black); margin:auto; }
.plan-dialog::backdrop { background:#09080ae6; }
.plan-dialog-shell { height:100%; display:flex; flex-direction:column; }
.plan-toolbar { display:flex; align-items:center; gap:10px; padding:12px 18px; border-bottom:1px solid #d3cbbb; flex-wrap:wrap; }
.plan-toolbar h3 { font-size:24px; font-weight:400; margin:0 auto 0 0; }
.plan-toolbar button, .plan-bottom button { min-width:44px; min-height:44px; border:1px solid #b6ac9b; background:transparent; color:inherit; font:inherit; font-size:18px; cursor:pointer; }
.plan-toolbar button:disabled { opacity:.35; }
.plan-viewer-stage { position:relative; flex:1; min-height:0; }
.plan-viewport { display:flex; box-sizing:border-box; padding:12px; width:100%; height:100%; overflow:auto; overscroll-behavior:contain; background:var(--cream); }
.plan-sheet { margin:auto; background:transparent; flex-shrink:0; }
.plan-sheet img { display:block; width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.plan-status { position:absolute; bottom:18px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:12px; max-width:calc(100% - 32px); padding:8px 14px; background:#f4efe6f2; border:1px solid #d3cbbb; color:#645e54; font-size:16px; line-height:1.3; text-align:center; }
.plan-status[hidden], .plan-status button[hidden] { display:none; }
.plan-status button { min-width:44px; min-height:44px; padding:6px 12px; border:1px solid #b6ac9b; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.plan-bottom { display:flex; align-items:center; justify-content:center; gap:24px; padding:10px; }
@media(min-width:701px) and (max-width:1100px) {
  .plans-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .residence-plans { padding:58px 24px 64px; }
  .plans-heading { display:block; margin-bottom:28px; }
  .plans-heading>p { margin-top:18px; max-width:none; font-size:18px; }
  .plans-grid { grid-template-columns:1fr; gap:36px; }
  .plan-card img { max-height:540px; }
  .plan-card-label { padding-top:14px; }
  .plan-card-label .plan-name { font-size:28px; }
  .plan-dialog { width:100vw; height:100vh; height:100dvh; max-width:none; }
  .plan-toolbar { padding:10px; gap:6px; }
  .plan-toolbar h3 { font-size:21px; }
}
