/*
 * Site frame (spec 7.4): 96px header with the menu left, logo centred and
 * account actions right; full-screen menu overlay; footer. Square corners,
 * 56px side margins (24px on phones), max width 1440px.
 */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  display: block;
}

/* The skip link moves focus here; the main area itself needs no ring. */
.site-main:focus {
  outline: none;
}

/* Header ------------------------------------------------------------------ */
/* It stays at the top of the window. Once the page scrolls it turns to
   frosted ebony and a little shorter (assets/js/site-header.js adds
   .is-scrolled). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  height: var(--site-header-height);
  padding: 0 var(--site-margin);
  background: var(--ebony);
  border-bottom: 1px solid rgba(239, 231, 218, 0.08);
  color: var(--ivory);
  transition: height 280ms var(--ease-standard), background-color 280ms var(--ease-standard), border-color 280ms var(--ease-standard);
}

.site-header.is-scrolled {
  height: 72px;
  background: rgba(20, 17, 14, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(239, 231, 218, 0.1);
}

/* Over the home film: transparent, no rule, over a gradient to 60% ebony so
   the labels stay legible on any frame of film (handoff section 6). It is
   fixed, so it is still there, frosted, once the film has scrolled away. */
.site-header--over-film {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(20,17,14,.6), rgba(20,17,14,0));
  border-bottom-color: transparent;
}

.site-header--over-film.is-scrolled {
  background: rgba(20, 17, 14, 0.84);
  border-bottom-color: rgba(239, 231, 218, 0.1);
}

/* The main sections beside the menu button, on screens wide enough for them. */
.site-header__start {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 36px;
  min-width: 0;
}

.site-header__nav {
  display: none;
}

.site-header__nav-list {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__nav-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  color: var(--sand);
  font-size: 12px;
  font-weight: var(--weight-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-standard);
}

.site-header__nav-link:hover,
.site-header__nav-link[aria-current="page"] {
  color: var(--ivory);
}

.site-header__nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 8px;
}

@media (min-width: 1240px) {
  .site-header__nav {
    display: block;
  }
}

.site-header__menu,
.menu-overlay__close {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: var(--target-min);
  min-height: var(--target-min);
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.site-header__menu-label,
.menu-overlay__close-label,
.site-header__signin,
.site-header__account-label {
  font-size: var(--type-label-size);
  font-weight: var(--weight-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-header__logo,
.menu-overlay__logo {
  justify-self: center;
  display: block;
  padding: var(--space-3) 0;
}

.site-header__logo .logo,
.menu-overlay__logo .logo {
  width: 136px;
}

.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__signin {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  color: var(--ivory);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color var(--motion-fast) var(--ease-standard);
}

.site-header__signin:hover {
  text-decoration-color: var(--brass);
}

/* Shown on phones and over film, where SIGN IN folds into the account icon. */
.site-header__icon-link {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--target-min);
  height: var(--target-min);
  color: var(--ivory);
}

.site-header--over-film .site-header__signin {
  display: none;
}

.site-header--over-film .site-header__icon-link {
  display: inline-flex;
}

/* RESERVE is a secondary button, a little shorter than the 52px default to
   sit inside the header (component inventory site-header). */
.site-header__reserve.btn--site,
.menu-overlay__reserve.btn--site {
  height: 46px;
  padding: 0 22px;
}

.site-header__account {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target-min);
  color: var(--ivory);
}

.site-header__account-label {
  font-size: 13px;
  letter-spacing: 0.16em;
}

.site-header__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--smoke);
  border-radius: 50%;
  background: var(--walnut-2);
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0;
}

.site-header__account:hover .site-header__avatar {
  border-color: var(--brass);
}

/* Phones: 24px margins, icon-only menu, and SIGN IN folds into the account
   icon. RESERVE moves to the menu overlay's header, one tap away, because
   the three columns cannot hold it beside a 96px-minimum logo. */
@media (max-width: 639px) {
  .site-header {
    gap: var(--space-2);
  }

  .site-header__menu-label,
  .site-header__account-label,
  .menu-overlay__close-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .site-header__signin,
  .site-header__reserve {
    display: none;
  }

  .site-header__icon-link {
    display: inline-flex;
  }

  .site-header__logo .logo,
  .menu-overlay__logo .logo {
    width: 104px;
  }

  .menu-overlay__close {
    justify-content: center;
  }
}

/* Menu overlay ------------------------------------------------------------ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ebony);
  color: var(--ivory);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-fast) var(--ease-standard);
}

.menu-overlay[hidden] {
  display: none;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* The page behind the open menu must not scroll. */
body.menu-open {
  overflow: hidden;
}

.menu-overlay__header {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  height: var(--site-header-height);
  padding: 0 var(--site-margin);
}

.menu-overlay__reserve {
  justify-self: end;
}

/* Phones: the close button and RESERVE differ in width, so equal side
   columns would push RESERVE off a 320px screen; the logo centres in the
   remaining space instead. */
@media (max-width: 639px) {
  .menu-overlay__header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--space-2);
  }

  .menu-overlay__reserve.btn--site {
    height: var(--target-min);
    padding: 0 var(--space-3);
    letter-spacing: 0.14em;
  }
}

.menu-overlay__body {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--space-8);
  padding: var(--space-6) var(--site-margin) var(--space-9);
}

.menu-overlay__primary {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.menu-overlay__primary-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 40px;
  line-height: 1.1;
  color: var(--ivory);
  transition: color var(--motion-fast) var(--ease-standard);
}

.menu-overlay__primary-link:hover {
  color: var(--brass);
}

.menu-overlay__groups {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.menu-overlay__label {
  margin: 0 0 var(--space-3);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: var(--weight-label);
  line-height: 1.4;
  color: var(--sand);
}

.menu-overlay__links,
.menu-overlay__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 16px;
  line-height: 1.5;
}

.menu-overlay__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ivory);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.menu-overlay__link:hover {
  text-decoration-color: var(--brass);
}

/* The featured residence tile is a desktop luxury; phones get the links. */
.menu-overlay__feature {
  display: none;
}

@media (min-width: 960px) {
  .menu-overlay__body {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    align-content: stretch;
    gap: var(--space-9);
    padding: var(--space-8) var(--site-margin) var(--space-9);
  }

  .menu-overlay__nav,
  .menu-overlay__groups {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .menu-overlay__primary-link {
    font-size: 72px;
  }

  .menu-overlay__feature {
    display: block;
    min-height: 320px;
  }

  .menu-overlay__feature .placeholder {
    height: 100%;
    aspect-ratio: auto;
  }
}

/* Footer ------------------------------------------------------------------ */
/* The brand line and the concierge desk beside three columns of links, then
   a quiet lower bar with the year and the legal placeholders. */
.site-footer {
  padding: var(--space-10) var(--site-margin) var(--space-6);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(184, 150, 104, 0.07), transparent 60%),
    var(--walnut);
  border-top: 1px solid rgba(239, 231, 218, 0.08);
  color: var(--ivory);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-9);
  max-width: var(--site-max-width);
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-9);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 26rem;
}

.site-footer__logo {
  display: inline-block;
  align-self: flex-start;
}

.site-footer__logo .logo {
  width: 132px;
}

.site-footer__line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 26px;
  line-height: 1.25;
  color: var(--ivory);
}

.site-footer__desk {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(239, 231, 218, 0.1);
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-6);
}

.site-footer__heading {
  margin: 0 0 16px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: var(--weight-label);
  line-height: 1.4;
  color: var(--brass-light);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.site-footer__link {
  color: var(--ivory);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}

.site-footer__link:hover {
  color: var(--brass-light);
  text-decoration-color: var(--brass-light);
}

.site-footer__pending {
  color: var(--stone);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(239, 231, 218, 0.08);
  font-size: 13px;
}

.site-footer__legal {
  margin: 0;
  color: var(--sand);
}

.site-footer__fine {
  display: flex;
  gap: var(--space-5);
}

@media (min-width: 960px) {
  .site-footer {
    padding: 120px var(--site-margin) var(--space-7);
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-10);
  }

  .site-footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__line {
    font-size: 30px;
  }
}

/* Touch screens: every link in a list gets a 44px target. */
@media (pointer: coarse) {
  .menu-overlay__link,
  .site-footer__link,
  .breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: var(--target-min);
  }

  .menu-overlay__links,
  .site-footer__list {
    gap: 0;
  }
}

/* Page content ------------------------------------------------------------ */
.site-hero {
  position: relative;
}

.site-hero .placeholder {
  border-radius: 0;
}

/* Error pages (404, 403, 500). */
.site-error {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: var(--space-11) var(--site-margin) 120px;
}

.site-error__text {
  max-width: 60ch;
  color: var(--sand);
}

/* ==========================================================================
 * Editorial pieces (phase 1 spec section 6): page width and rhythm, eyebrows
 * and section heads, cards and grids, magazine spreads, tabs, story text,
 * films, the gallery and its dialog, share links, chips, the filter bar,
 * bands, breadcrumbs and the preview notice. Square corners throughout; page
 * files add only what one page needs.
 * ========================================================================== */

/* Width and rhythm: the 1440px frame with the side margins inside it. */
.site-container {
  width: 100%;
  max-width: var(--site-max-width);
  margin-inline: auto;
  padding-inline: var(--site-margin);
}

.site-section {
  padding-block: var(--space-9);
}

.site-page-head {
  padding-top: var(--space-9);
}

@media (min-width: 960px) {
  .site-section {
    padding-block: var(--space-11);
  }

  .site-page-head {
    padding-top: var(--space-10);
  }
}

/* Eyebrow: the name of a section above its heading, in sentence case (the
   brand keeps capitals for navigation, buttons and the logo), small and in
   brass so the heading under it leads. */
.eyebrow {
  margin: 0;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: var(--weight-label);
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-wrap: wrap;
  color: var(--brass-light);
}

/* Section heads ------------------------------------------------------------ */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.section-head__titles {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.section-head--h1 .section-head__heading {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-leading);
}

.section-head__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.section-head__helper {
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sand);
}

@media (min-width: 960px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
  }

  .section-head__aside {
    align-items: flex-end;
    text-align: right;
  }
}

/* Links that lead on ("View all residences", "Read the story"): readable
   sentence case over a brass rule that brightens on hover. */
.site-cta-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  font-size: 15px;
  font-weight: var(--weight-label);
  letter-spacing: 0.01em;
  color: var(--ivory);
  text-decoration-line: underline;
  text-decoration-color: var(--brass-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: text-decoration-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}

.site-cta-link:hover {
  color: var(--brass-light);
  text-decoration-color: var(--brass-light);
}

/* Cards ------------------------------------------------------------------------ */
.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  min-width: 0;
}

.site-card__media {
  position: relative;
  overflow: hidden;
  background: var(--walnut);
}

.site-card__media--16-9 {
  aspect-ratio: 16 / 9;
}

.site-card__media--4-3 {
  aspect-ratio: 4 / 3;
}

.site-card__media--1-1 {
  aspect-ratio: 1 / 1;
}

.site-card__media--3-4 {
  aspect-ratio: 3 / 4;
}

.site-card__media--21-9 {
  aspect-ratio: 21 / 9;
}

.site-card__media picture,
.site-card__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.site-card__media img {
  object-fit: cover;
}

.site-card__media .placeholder {
  height: 100%;
  aspect-ratio: auto;
}

.site-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.site-card__kicker {
  font-size: 13px;
  line-height: 1.4;
  color: var(--sand);
}

.site-card__title {
  font-size: 26px;
  line-height: 1.15;
}

.site-card--large .site-card__title {
  font-weight: var(--weight-display);
  font-size: 32px;
  line-height: 1.1;
}

/* The title's link stretches over the whole card, so the card is one target
   and screen readers hear one link. */
.site-card__link {
  color: var(--ivory);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color var(--motion-fast) var(--ease-standard);
}

.site-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.site-card--linked:hover .site-card__link {
  text-decoration-color: var(--brass);
}

.site-card__link:focus-visible {
  outline-offset: 4px;
}

.site-card__meta {
  font-size: var(--type-small-size);
  line-height: var(--type-small-leading);
  color: var(--sand);
}

.site-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 15px;
  color: var(--ivory);
}

.site-card__price .price__amount {
  font-size: 22px;
}

.site-card__price .price__privilege {
  flex-basis: 100%;
  margin: 0;
}

.site-card__from,
.site-card__nights {
  color: var(--sand);
}

.site-card__nights {
  flex-basis: 100%;
  font-size: 13px;
}

.site-card__note {
  font-size: var(--type-small-size);
  color: var(--brass);
}

.site-card__cta {
  margin-top: var(--space-1);
  font-size: 13.5px;
  font-weight: var(--weight-label);
  letter-spacing: 0.01em;
  color: var(--brass);
}

.site-card--placeholder .site-card__title {
  color: var(--sand);
}

@media (min-width: 960px) {
  .site-card--large .site-card__title {
    font-size: 36px;
  }
}

/* Card grids: one column on phones, two from 640px, the asked-for count from 960px. */
.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8) var(--site-gutter);
}

.card-grid__item {
  display: flex;
  min-width: 0;
}

@media (min-width: 640px) {
  .card-grid--2,
  .card-grid--3,
  .card-grid--4,
  .card-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .card-grid--3,
  .card-grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .card-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Magazine spreads: image and text in alternating widths on the 12-column
   grid (handoff section 6, Layout). */
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
}

.spread__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--walnut);
}

.spread__media picture,
.spread__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.spread__media img {
  object-fit: cover;
}

.spread__media .placeholder {
  height: 100%;
  aspect-ratio: auto;
}

.spread__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  max-width: 36rem;
}

.spread__number {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-style: italic;
  font-size: 22px;
  color: var(--brass);
}

.spread__title {
  font-weight: var(--weight-display);
  font-size: 40px;
  line-height: 1.05;
}

.spread__place {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--sand);
}

.spread__text {
  font-size: var(--type-lead-size);
  line-height: var(--type-lead-leading);
  font-weight: var(--weight-lead);
  color: var(--ivory);
}

.spread__facts {
  font-size: var(--type-small-size);
  color: var(--sand);
}

@media (min-width: 960px) {
  .spread {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--site-gutter);
  }

  .spread__media {
    grid-column: 1 / span 7;
    grid-row: 1;
    aspect-ratio: 5 / 4;
  }

  .spread__body {
    grid-column: 9 / span 4;
    grid-row: 1;
  }

  .spread--reverse .spread__media {
    grid-column: 6 / span 7;
  }

  .spread--reverse .spread__body {
    grid-column: 1 / span 4;
  }

  .spread__title {
    font-size: 56px;
  }
}

/* Tabs --------------------------------------------------------------------------- */
.site-tabs {
  overflow-x: auto;
  border-bottom: 1px solid var(--smoke);
}

/* ul.… outranks base.css ul[class], which resets list margins and padding. */
ul.site-tabs__list {
  display: flex;
  gap: var(--space-6);
  max-width: var(--site-max-width);
  margin-inline: auto;
  padding-inline: var(--site-margin);
}

.site-tabs__link {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 2px solid transparent;
  font-size: var(--type-small-size);
  color: var(--sand);
  white-space: nowrap;
  transition: color var(--motion-fast) var(--ease-standard);
}

.site-tabs__link:hover {
  color: var(--ivory);
}

/* The current tab carries a rule as well as brighter text. */
.site-tabs__link[aria-current="page"] {
  border-bottom-color: var(--brass);
  color: var(--ivory);
}

/* Story text ------------------------------------------------------------------- */
.story-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
}

.story-text h2,
.story-text h3 {
  margin-top: var(--space-4);
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-leading);
}

.story-quote {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
  border-left: 1px solid var(--brass);
}

.story-quote p {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 26px;
  line-height: 1.3;
}

.story-figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.story-figure picture,
.story-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.story-figure figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--sand);
}

@media (min-width: 960px) {
  .story-quote p {
    font-size: 32px;
  }
}

/* Films ---------------------------------------------------------------------------- */
.film {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ebony);
}

.film__video,
.film--still picture,
.film--still img {
  display: block;
  width: 100%;
  height: 100%;
}

.film__video,
.film--still img {
  object-fit: cover;
}

.film--still .placeholder {
  height: 100%;
  aspect-ratio: auto;
}

/* The home film's fade-up (handoff section 6, Motion): the one orchestrated
   moment. film.js adds the pending classes only when motion is welcome. */
.film--pending .film__video {
  opacity: 0;
}

.film--pending.is-ready .film__video {
  opacity: 1;
  transition: opacity var(--motion-film) var(--ease-standard);
}

.film-follow--pending {
  opacity: 0;
}

.film-follow--pending.is-shown {
  opacity: 1;
  transition: opacity var(--motion-film) var(--ease-standard);
}

.film__toggle {
  position: absolute;
  right: var(--site-margin);
  bottom: var(--space-6);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  padding: 0 var(--space-4);
  background: rgba(20,17,14,.6);
  border: 1px solid var(--smoke);
  color: var(--ivory);
  font-size: var(--type-label-size);
  font-weight: var(--weight-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color var(--motion-fast) var(--ease-standard);
}

.film__toggle:hover {
  border-color: var(--brass);
}

.film .film__icon--play,
.film.is-paused .film__icon--pause {
  display: none;
}

.film.is-paused .film__icon--play {
  display: block;
}

.film__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding: 0 0 0 4px;
  border: 1px solid var(--ivory);
  border-radius: 50%;
  background: rgba(20,17,14,.35);
  color: var(--ivory);
  transform: translate(-50%, -50%);
  transition: border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}

.film__play:hover {
  border-color: var(--brass);
  color: var(--brass);
}

/* Gallery ----------------------------------------------------------------------------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.gallery__item {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--walnut);
}

.gallery__item--hero {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.gallery__item picture,
.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery__item img {
  object-fit: cover;
}

.gallery__item .placeholder {
  height: 100%;
  aspect-ratio: auto;
}

.gallery__all {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-1);
  padding: var(--space-4);
  background: var(--walnut-2);
  color: var(--ivory);
  transition: background-color var(--motion-fast) var(--ease-standard);
}

a.gallery__all:hover {
  background: var(--smoke-soft);
}

/* The next photograph behind the label, dimmed; it lifts on hover. */
.gallery__all-peek {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gallery__all-peek .picture,
.gallery__all-peek .picture__img {
  width: 100%;
  height: 100%;
}

.gallery__all-peek .picture__img {
  object-fit: cover;
  opacity: 0.38;
  transition: opacity 400ms var(--ease-standard), transform 600ms var(--ease-standard);
}

.gallery__all:hover .gallery__all-peek .picture__img {
  opacity: 0.55;
  transform: scale(1.03);
}

.gallery__all-label,
.gallery__all-count {
  position: relative;
  z-index: 1;
}

.gallery__all-label {
  font-size: 16px;
  font-weight: var(--weight-label);
  letter-spacing: 0.01em;
}

.gallery__all-count {
  font-size: 13px;
  color: var(--sand);
}

.gallery__all--empty .gallery__all-label {
  color: var(--sand);
}

@media (min-width: 960px) {
  .gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: min(640px, 46vw);
  }

  .gallery__item {
    aspect-ratio: auto;
  }

  .gallery__item--hero {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* The photographs dialog fills the screen. Opened without JavaScript it is a
   non-modal dialog, so it is fixed in place here as well. */
.gallery-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  background: var(--ebony);
  color: var(--ivory);
}

.gallery-dialog[open] {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.gallery-dialog::backdrop {
  background: var(--ebony);
}

body.dialog-open {
  overflow: hidden;
}

.gallery-dialog__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--site-margin);
  background: var(--ebony);
  border-bottom: 1px solid var(--smoke);
}

.gallery-dialog__title {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-leading);
}

.gallery-dialog__close {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0 var(--space-4);
  border: 1px solid var(--ivory);
  color: var(--ivory);
  font-size: var(--type-label-size);
  font-weight: var(--weight-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-dialog__close:hover {
  background: var(--walnut-2);
}

ul.gallery-dialog__list {
  display: grid;
  gap: var(--space-7);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-7) var(--site-margin) var(--space-10);
}

.gallery-dialog__figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.gallery-dialog__figure picture,
.gallery-dialog__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-dialog__caption {
  font-size: 13px;
  color: var(--sand);
}

/* Share -------------------------------------------------------------------------------- */
.share {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.share__label {
  font-size: 13px;
  color: var(--sand);
}

.share__list {
  display: flex;
  flex-direction: column;
}

.share__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0;
  background: none;
  border: 0;
  color: var(--ivory);
  font-size: 15px;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.share__link:hover {
  text-decoration-color: var(--brass);
}

.share__status {
  min-height: 1.5em;
  font-size: 13px;
  color: var(--ok);
}

/* Chips (amenities): square, bordered, never a button. */
.site-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-chip {
  padding: 10px 16px;
  border: 1px solid var(--smoke);
  font-size: var(--type-small-size);
  line-height: 1.3;
  color: var(--ivory);
}

/* Filter bar: a plain GET form, native date inputs in the dark scheme. */
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--walnut);
  border: 1px solid var(--smoke);
}

.filter-bar input[type="date"] {
  color-scheme: dark;
}

.filter-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .filter-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    align-items: start;
  }

  .filter-bar__actions {
    padding-top: 29px;
  }
}

/* Bands: full-bleed walnut sections between the ebony ones. */
.band {
  background: var(--walnut);
  border-block: 1px solid var(--smoke-soft);
}

/* Breadcrumbs ------------------------------------------------------------------------- */
.breadcrumb {
  font-size: 13px;
  color: var(--sand);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  margin-right: var(--space-2);
  color: var(--stone);
}

.breadcrumb a {
  color: var(--sand);
}

/* Empty results and previews ------------------------------------------------------------ */
.site-empty {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-8) 0;
  color: var(--sand);
}

.site-empty__title {
  font-family: var(--font-display);
  font-weight: var(--weight-display-small);
  font-size: var(--type-h3-size);
  color: var(--ivory);
}

.site-preview-notice {
  padding: var(--space-3) var(--site-margin);
  background: var(--pending-bg);
  color: var(--pending);
  font-size: var(--type-small-size);
  text-align: center;
}

/* Menu overlay: the featured residence tile (phase 1). */
.menu-overlay__feature-link {
  position: relative;
  display: block;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  background: var(--walnut);
  color: var(--ivory);
}

.menu-overlay__feature-link picture,
.menu-overlay__feature-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.menu-overlay__feature-link img {
  object-fit: cover;
}

.menu-overlay__feature-link .placeholder {
  height: 100%;
  aspect-ratio: auto;
}

/* The caption sits over a gradient to 60% ebony (handoff section 6). */
.menu-overlay__feature-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,17,14,0) 55%, rgba(20,17,14,.6));
}

.menu-overlay__feature-caption {
  position: absolute;
  left: var(--space-5);
  right: var(--space-5);
  bottom: var(--space-4);
  z-index: 1;
  font-size: 13.5px;
  font-weight: var(--weight-label);
  letter-spacing: 0.01em;
}

.menu-overlay__feature-link:hover .menu-overlay__feature-caption {
  color: var(--brass-light);
}
