/* Keep the hero flush with the header; breadcrumbs follow it in document order. */
.page-main { padding-top: 0; }
.page-main > .page-hero { margin-top: 0; margin-bottom: 0; }
.page-main > .breadcrumbs { padding-block: 18px 32px; }
.page-main > .breadcrumbs + section { margin-top: 0; }
/* The page's existing heading and introduction stay in the document flow. */
.page-hero, .valuation-hero.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 330px;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px) 76px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius:0;
  background: var(--navy);
  color: #fff;
  box-shadow:none;
}
.page-hero::before, .page-hero::after { display: none; }
.page-hero > :not(.page-hero__media):not(.page-hero__notice) { position: relative; z-index: 1; }
.page-hero .page-hero__media { position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.page-hero__media picture, .page-hero__media img { display: block; width: 100%; height: 100%; }
.page-hero__media img { object-fit: cover; object-position: center; }
.page-hero__media[data-hero-category="building"] img { object-position: 65% 32%; }
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 18, .92), rgba(8, 10, 18, .74) 48%, rgba(8, 10, 18, .27)), linear-gradient(0deg, rgba(8, 10, 18, .75), transparent 45%);
}
.page-hero__media--empty { background: linear-gradient(125deg, var(--navy), var(--navy-2)); }
.page-hero h1 { max-width: 24em; color: #fff; overflow-wrap: anywhere; text-wrap: balance; }
.page-hero .room-title__building, .page-hero .eyebrow { color: #e5c775; }
.page-hero .valuation-eyebrow, .page-hero .valuation-hero__aside > span { color: #e5c775; }
.page-hero .valuation-hero__aside { background: rgba(5, 6, 11, .76); }
.page-hero p, .page-hero .note, .page-hero .page-summary { color: #edf2f3; }
.page-hero a { color: #fff; text-decoration-color: rgba(255, 255, 255, .7); }
.page-hero a:hover { color: #f0d790; }
.page-hero a:focus-visible { outline: 3px solid #f0d790; outline-offset: 5px; }
.page-hero .page-summary { border-color: rgba(255, 255, 255, .26); }
.page-hero .notice { border-color: rgba(255, 255, 255, .35); background: rgba(8, 10, 18, .65); color: #fff; }
.page-hero .lede { max-width: none; padding: 0; border: 0; border-radius:0; background: transparent; box-shadow:none; }
.page-hero .lede::before { display: none; }
.page-hero .page-hero__notice {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 4vw, 48px);
  bottom: 16px;
  left: clamp(20px, 4vw, 48px);
  max-width: none;
  margin: 0;
  color: #f2f5f6;
  font-size: .7rem;
  line-height: 1.65;
  text-align: right;
}
.index-cover.page-hero { min-height: 420px; }
.page-hero .index-cover__eyebrow { color: #e5c775; }
.page-hero .index-cover__count { background: rgba(5, 6, 11, .76); border: 1px solid rgba(255, 255, 255, .22); box-shadow:none; }
.building-hero.page-hero { display: block; min-height: 400px; }
.building-hero.page-hero .building-hero__copy { max-width: 52rem; height: auto; }
@media (max-width: 680px) {
  .page-hero, .index-cover.page-hero, .building-hero.page-hero, .valuation-hero.page-hero { min-height: 320px; padding: 30px 22px 86px; border-radius:0; }
  .page-hero__media::after { background: linear-gradient(90deg, rgba(8, 10, 18, .83), rgba(8, 10, 18, .62)), linear-gradient(0deg, rgba(8, 10, 18, .8), transparent 60%); }
  .page-hero .page-hero__notice { right: 18px; left: 18px; bottom: 16px; text-align: left; font-size: .66rem; }
  .page-hero .index-cover__count { max-width: 290px; }
}
/* Play once on entry; the default (including reduced motion and print) stays still. */
@media screen and (prefers-reduced-motion: no-preference) {
  .page-hero__media img {
    animation: hero-image-arrive 4.8s cubic-bezier(.2, .65, .3, 1) both;
  }
  .page-hero h1,
  .page-hero .eyebrow,
  .page-hero .index-cover__eyebrow,
  .page-hero p:not(.page-hero__notice),
  .page-hero .index-cover__count {
    animation: hero-copy-arrive .85s cubic-bezier(.2, .7, .25, 1) both;
  }
  .page-hero h1 { animation-delay: .08s; }
  .page-hero p:not(.page-hero__notice) { animation-delay: .18s; }
  .page-hero .index-cover__count { animation-delay: .28s; }
  .page-hero .eyebrow,
  .page-hero .valuation-eyebrow { animation-delay: 0s; }
  .page-hero:focus-within h1,
  .page-hero:focus-within p,
  .page-hero:focus-within .index-cover__count { animation: none; }
  @keyframes hero-image-arrive {
    from { transform: scale(1.055); }
    to { transform: scale(1); }
  }
  @keyframes hero-copy-arrive {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media print {
  .page-hero { min-height: 0 !important; padding: 20px !important; color: #111; background: #fff; box-shadow:none; }
  .page-hero__media, .page-hero .page-hero__notice { display: none; }
  .page-hero h1, .page-hero p, .page-hero a, .page-hero .note, .page-hero .page-summary { color: #111; }
}
