/* Shared residence and price-page opener; reveals in place without a loader. */
.residence-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 3.5vw, 64px);
  padding: 24px var(--gutter) 32px var(--edge);
  background: var(--bg);
}
.residence-hero-copy { align-self: center; min-width: 0; padding: 24px 0; }
.residence-hero .breadcrumb {
  margin-bottom: clamp(20px, 3vh, 36px);
  font-size: .92rem;
  letter-spacing: .12em;
  animation: residence-rise .8s var(--ease-out) .1s both;
}
.residence-hero-title {
  margin: 0;
  font-size: clamp(3rem, 5.7vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.residence-hero-kicker {
  display: block;
  max-width: 36em;
  margin-bottom: 20px;
  font: 500 .7rem/1.7 var(--font-body);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--accent);
  animation: residence-rise .9s var(--ease-out) .2s both;
}
.residence-title-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.residence-title-line > span { display: block; animation: residence-word 1.2s var(--ease-out) .32s both; }
.residence-title-line:last-child > span { animation-delay: .48s; }
.residence-hero-title em { color: var(--accent); font-style: normal; font-weight: inherit; }
.residence-hero-lead { max-width: 440px; margin-top: 24px; animation: residence-rise 1s var(--ease-out) .65s both; }
.residence-hero-lead p { margin: 0; color: var(--ink-soft); font-size: clamp(18px, 0.4vw + 16px, 20px); line-height: 1.75; }
.residence-hero-lead p + p { margin-top: 0; }
.residence-hero-actions { margin-top: 26px; align-items: center; }
.residence-hero-actions .btn { animation: residence-rise .9s var(--ease-out) .8s both; }
.residence-hero-actions .btn + .btn { animation-delay: .92s; }
.residence-hero-facts { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; margin: 36px 0 0; }
.residence-hero-facts > div {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  animation: residence-rise .9s var(--ease-out) 1s both;
}
.residence-hero-facts > div:nth-child(2) { animation-delay: 1.1s; }
.residence-hero-facts > div:nth-child(3) { animation-delay: 1.2s; }
.residence-hero-facts dt { color: var(--muted); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; }
.residence-hero-facts dd { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(1rem, 1.4vw, 1.45rem); line-height: 1.3; }
.residence-hero-facts small { display: block; margin-top: 7px; color: var(--muted); font: 400 .72rem/1.5 var(--font-body); }
.residence-hero-media {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 570px;
  height: clamp(570px, calc(100svh - 144px), 820px);
  margin: 0;
  overflow: hidden;
  background: var(--beige);
  animation: residence-frame 1.6s var(--ease-out) .12s both;
}
.residence-hero-media::after { content: ""; position: absolute; inset: 45% 0 0; z-index: 1; background: linear-gradient(transparent, rgba(33, 29, 26, .8)); pointer-events: none; }
.residence-hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; animation: residence-settle 2.4s var(--ease-out) both; }
.residence-hero-media figcaption {
  position: absolute;
  z-index: 2;
  bottom: 32px;
  left: 28px;
  right: 28px;
  color: var(--on-dark);
  animation: residence-rise 1s var(--ease-out) 1.05s both;
}
.residence-hero-media figcaption > span { display: block; max-width: 14em; font-family: var(--font-display); font-size: clamp(1.7rem, 2.5vw, 2.7rem); line-height: 1.15; letter-spacing: -.02em; }
.residence-hero-media figcaption small { display: block; margin-top: 12px; font-size: .7rem; line-height: 1.5; letter-spacing: .05em; }
.residence-hero-mark { position: absolute; z-index: 2; top: 24px; left: 28px; padding: 9px 12px; background: var(--bg); color: var(--accent); font-size: .6rem; letter-spacing: .18em; animation: residence-rise .8s var(--ease-out) .85s both; }
@keyframes residence-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes residence-word { from { transform: translateY(115%) rotate(2deg); } to { transform: none; } }
@keyframes residence-frame { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes residence-settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (min-width: 1600px) { .residence-hero { padding-right: var(--edge); } }
@media (max-width: 1100px) and (min-width: 901px) {
  .residence-hero { gap: 24px; }
  .residence-hero-actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 900px) {
  .residence-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px var(--gutter) 24px; }
  .residence-hero-copy { padding: 12px 0 0; }
  .residence-hero .breadcrumb { margin-bottom: 20px; }
  .residence-hero-title { font-size: clamp(2.6rem, 9.5vw, 4rem); }
  .residence-hero-kicker { max-width: none; }
  .residence-hero-lead { max-width: 560px; margin-top: 18px; }
  .residence-hero-facts { margin-top: 28px; }
  .residence-hero-media { height: clamp(300px, 58vw, 500px); min-height: 0; }
  .residence-hero-media > img { object-position: center; }
}
@media (max-width: 480px) {
  .residence-hero-kicker { font-size: .6rem; letter-spacing: .12em; margin-bottom: 16px; }
  .residence-hero .breadcrumb { font-size: .92rem; }
  .residence-hero-facts { gap: 12px; }
  .residence-hero-facts dt { font-size: .51rem; letter-spacing: .06em; }
  .residence-hero-facts dd { font-size: .98rem; }
  .residence-hero-facts small { font-size: .63rem; }
  .residence-hero-media figcaption { left: 20px; right: 20px; bottom: 24px; }
  .residence-hero-mark { top: 20px; left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .residence-hero *, .residence-hero *::before, .residence-hero *::after { animation: none !important; }
}
@media print {
  .residence-hero * { animation: none !important; }
}

/* These three pages follow the same column, type and spacing as the rest of the site. */
.residence-hero {
  width: min(1320px, 100%);
  margin: 28px auto 8px;
  padding: 8px var(--gutter) 12px;
  gap: clamp(36px, 4vw, 80px);
  align-items: center;
}
.residence-hero-title { font-size: clamp(2.8rem, 4.8vw, 5rem); font-weight: 500; line-height: 1.02; letter-spacing: -.03em; }
.residence-hero-kicker { max-width: 34em; }
.residence-hero-lead { max-width: 36em; }
.residence-hero-media { border-radius: 22px; min-height: 0; height: clamp(480px, 62vh, 680px); }
.residence-hero-media > img { border-radius: 22px; }

body.cinematic-residence .jl-overview .about-grid {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(0, 1.35fr);
  justify-items: start;
  align-items: start;
  text-align: left;
  gap: clamp(28px, 4vw, 72px);
  border-top: 0;
  padding-top: 0;
}
body.cinematic-residence .jl-overview .about-head,
body.cinematic-residence .jl-overview .about-head h2,
body.cinematic-residence .jl-overview .about-copy,
body.cinematic-residence .jl-overview .about-copy p {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
body.cinematic-residence .jl-overview .about-head h2 {
  max-width: 11em;
  font-size: clamp(2.15rem, 3.2vw, 3.3rem);
}
body.cinematic-residence .jl-overview .about-copy { max-width: none; }
body.cinematic-residence .jl-overview .about-copy p { max-width: 62ch; }

body.cinematic-residence .section-head {
  justify-content: flex-start;
  text-align: left;
}
body.cinematic-residence .section-head > :only-child,
body.cinematic-residence .section-head h2,
body.cinematic-residence .section-head p {
  margin-inline: 0;
  text-align: left;
}
body.cinematic-residence .section-head::after { left: 0; transform: none; }

body.cinematic-residence .photo-break {
  height: auto;
  aspect-ratio: 16 / 7;
  margin: 0 auto;
  width: min(1224px, calc(100% - 2 * var(--gutter)));
  border-radius: 22px;
  background: transparent;
}
body.cinematic-residence .photo-break img {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
}
body.cinematic-residence .split-media { border-radius: 22px; overflow: hidden; }
body.cinematic-residence .split-media img { border-radius: 22px; }
body.cinematic-residence .split-copy,
body.cinematic-residence .fp-copy,
body.cinematic-residence .two-col { text-align: left; }
body.cinematic-residence .tab-list { justify-content: flex-start; }
body.cinematic-residence .fp-img { border-radius: 22px; }
body.cinematic-residence .table-wrap { text-align: left; }
body.cinematic-residence .note { max-width: 62ch; text-align: left; }

@media (max-width: 900px) {
  .residence-hero { margin: 0 auto; padding: 20px var(--gutter) 24px; }
  .residence-hero-media { height: clamp(280px, 58vw, 460px); border-radius: 18px; }
  .residence-hero-media > img { border-radius: 18px; }
  body.cinematic-residence .jl-overview .about-grid { grid-template-columns: 1fr; }
  body.cinematic-residence .photo-break { aspect-ratio: 16 / 10; border-radius: 18px; }
  body.cinematic-residence .photo-break img { border-radius: 18px; }
}

body.cinematic-residence[data-page="/price-floor-plans"] .jl-overview .about-grid {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 0;
}
body.cinematic-residence[data-page="/price-floor-plans"] .jl-overview .about-head .eyebrow {
  margin-bottom: 0;
}
body.cinematic-residence[data-page="/price-floor-plans"] .jl-overview .about-head,
body.cinematic-residence[data-page="/price-floor-plans"] .jl-overview .about-copy,
body.cinematic-residence[data-page="/price-floor-plans"] .jl-overview .about-copy p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
body.cinematic-residence[data-page="/price-floor-plans"] .jl-overview .about-copy { max-width: 760px; }
body.cinematic-residence[data-page="/price-floor-plans"] .jl-overview .about-copy p { max-width: 42em; }

/* The opening line above the residence description reads in exactly the same type as the
   paragraph below it; only a line's worth of space separates the two. */
.residence-hero-lead .rh-standfirst { margin: 0; }

/* Mobile: three facts across is too narrow on a phone, so they stack in two rows */
@media (max-width: 560px) {
  .residence-hero-facts { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .residence-hero-facts > div:first-child { grid-column: 1 / -1; }
  .residence-hero-facts dd { font-size: 1.02rem; }
}
