.sanctuary-estates-profile {
  --estate-forest: #182720;
  --estate-ink: #111d18;
  --estate-brass: #ceb982;
  --estate-ivory: #faf5e9;
  --estate-sage: #dbe3d2;
  --estate-inset: clamp(1.25rem, 4.5vw, 6rem);
  --estate-sans: "NCC Navigation", "Helvetica Neue", Arial, sans-serif;
}

.sanctuary-estates-profile .sanctuary-hero {
  display: grid;
  align-items: end;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  color: var(--estate-ivory);
  background: var(--estate-forest);
}
.sanctuary-hero .hero-image .profile-film::before {
  background: linear-gradient(0deg, rgb(12 24 16 / 82%), rgb(12 24 16 / 38%) 13%, transparent 30%);
}
.sanctuary-hero .hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .25rem clamp(1.25rem, 3vw, 4rem);
  width: 100%;
  padding: clamp(.8rem, 1.65vw, 2.25rem) var(--estate-inset);
}
.sanctuary-hero .hero-body .edition-label {
  grid-column: 1;
  gap: .75em;
  margin: 0;
  color: var(--estate-ivory);
  font: 600 clamp(.76rem, .89vw, .95rem)/1.3 var(--estate-sans);
  letter-spacing: .1em;
}
.sanctuary-hero .hero-body .edition-label::before {
  width: 1.65rem;
  height: 1px;
  background: var(--estate-brass);
}
.sanctuary-hero .hero-locality {
  display: inline-flex;
  align-items: center;
  gap: .75em;
}
.sanctuary-hero .hero-locality::after {
  content: "";
  width: 1px;
  height: .9em;
  background: var(--estate-brass);
  transform: rotate(18deg);
}
.sanctuary-hero .hero-body h1 {
  grid-column: 1;
  margin: 0;
  color: var(--estate-ivory);
  font: 400 clamp(3.75rem, 6.85vw, 9rem)/.96 var(--display);
  letter-spacing: -.045em;
}
.sanctuary-hero .hero-body h1 em { color: var(--estate-sage); }
.sanctuary-hero .hero-body .profile-action {
  grid-area: 2 / 2;
  justify-self: end;
  gap: 0;
  min-height: 44px;
  margin: 0 clamp(2.5rem, 8.5vw, 10rem) .3rem 0;
  padding: .25rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--estate-brass);
  color: var(--estate-ivory);
  font: 600 .95rem/1.4 var(--estate-sans);
}
.sanctuary-hero .hero-body .profile-action:is(:hover, :focus-visible) {
  color: white;
  background: transparent;
  border-color: white;
}
.sanctuary-hero .intro-toggle {
  right: var(--estate-inset);
  border-color: rgb(250 245 233 / 75%);
  color: var(--estate-ivory);
  background: rgb(17 29 24 / 78%);
}
.sanctuary-hero .intro-toggle:hover { background: var(--estate-forest); }

/* Reserve room for the film chapters on laptops while keeping the complete elevations in view. */
@media (min-width: 736px) {
  .sanctuary-estates-profile .sanctuary-hero {
    --film-space: calc(100svh - clamp(74px, 5.75vw, 92px) - 68px);
    height: clamp(50vw, var(--film-space), 56.25vw);
  }
}
@media (min-width: 1600px), (min-width: 1100px) and (min-resolution: 1.5dppx) {
  .sanctuary-estates-profile .sanctuary-hero {
    aspect-ratio: 12 / 5;
    height: clamp(38.75vw, var(--film-space), 41.6667vw);
  }
}

/* On small displays the title has its own space below the complete film frame. */
@media (max-width: 735px) {
  .sanctuary-estates-profile .sanctuary-hero.photo-hero[data-scene] {
    display: block;
    min-height: 0;
    aspect-ratio: auto;
  }
  .sanctuary-estates-profile .sanctuary-hero[data-scene] .hero-image {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .sanctuary-estates-profile .sanctuary-hero[data-scene] .profile-film::before { content: none; }
  .sanctuary-estates-profile .sanctuary-hero[data-scene] .hero-body {
    display: block;
    padding: clamp(1.1rem, 4vw, 1.65rem) var(--estate-inset) 1rem;
  }
  .sanctuary-estates-profile .sanctuary-hero[data-scene] .edition-label { margin-bottom: .4rem; }
  .sanctuary-estates-profile .sanctuary-hero[data-scene] h1 {
    font-size: clamp(3.12rem, 12.6vw, 5rem);
  }
  .sanctuary-estates-profile .sanctuary-hero[data-scene] .profile-action {
    display: inline-flex;
    margin: .42rem 0 0;
    padding: .2rem 0;
  }
  .sanctuary-estates-profile .sanctuary-hero[data-scene] .intro-toggle { right: var(--estate-inset); }
}

/* Beyond cinema proportions, reserve space beside the elevation for the title. */
@media (min-width: 1600px) and (min-aspect-ratio: 16 / 5) {
  .sanctuary-estates-profile .sanctuary-hero.photo-hero {
    display: flex;
    align-items: center;
    height: calc(100svh - 92px);
    aspect-ratio: auto;
  }
  .sanctuary-hero .hero-image {
    position: relative;
    inset: auto;
    z-index: 0;
    flex: none;
    width: auto;
    height: 100%;
    aspect-ratio: 27 / 10;
  }
  .sanctuary-estates-profile .sanctuary-hero[data-scene] .hero-image :is(img, video) { object-position: center 10%; }
  .sanctuary-hero .hero-image .profile-film::before { content: none; }
  .sanctuary-hero .hero-body {
    display: block;
    min-width: 0;
    flex: 1;
    padding: 2rem var(--estate-inset);
  }
  .sanctuary-hero .hero-body h1 { margin: .7rem 0 1.35rem; }
  .sanctuary-hero .hero-body .profile-action { margin: 0; }
  .sanctuary-hero .intro-toggle { left: var(--estate-inset); right: auto; }
}
