/*
  Purpose: Styles for the Related Premier Collection page (index.html).
  Author:  Related Premier Collection team
  Created: 2026-10-29
*/
/* ----- TOKENS ----- */
:root {
  /* Layout */
  --scroll-offset: 6rem; /* reserves space for the fixed header so focused elements are not obscured (WCAG 2.4.11) */

  /* Palette */
  --cream: #fafbfc;
  --cream-soft: #eef0f3;
  --ivory: #ffffff;
  --plum: #1D0F20;
  --plum-deep: #1D0F20;
  --plum-soft: #5a3046;
  --ink: #1a1416;
  --graphite: #564a4f;
  --mist: #c9bfb7;
  --ink-rgb: 26 20 22; /* base of --ink, for deriving scrim opacities */
  --error: #9b1c1c; /* form error text/border; ~8:1 on white, ~7.8:1 on cream (verify with WebAIM) */

  /* Metallic gradient (silver) */
  --gold-1: #c4c4c8;
  --gold-2: #8a8a90;
  --gold-3: #e8e8ec;
  --gold-grad: linear-gradient(135deg, #e8e8ec 0%, #a8a8ae 35%, #6e6e74 70%, #a8a8ae 100%);
  --silver-grad-text: linear-gradient(135deg, #e8e8ec 0%, #d6d6da 45%, #c4c4c8 100%); /* lighter floor than --gold-grad so gradient text stays legible over photos (WCAG 1.4.3) */
  --gold-grad-soft: linear-gradient(135deg, #e8e8ec 0%, #a8a8ae 100%);
  --gold-line: linear-gradient(90deg, transparent 0%, #a8a8ae 20%, #e8e8ec 50%, #a8a8ae 80%, transparent 100%);

  /* Type */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale */
  --fs-display: clamp(3.5rem, 8vw, 7.5rem);
  --fs-h1: clamp(2.5rem, 5vw, 4.5rem);
  --fs-h2: clamp(2rem, 4vw, 3.25rem);
  --fs-h3: clamp(1.5rem, 2.5vw, 2.25rem);
  --fs-eyebrow: 0.72rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  /* Spacing */
  --section-pad: clamp(5rem, 9vw, 9rem);
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --max-w: 1440px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: var(--scroll-offset); scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  letter-spacing: 0.005em;
}
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { text-decoration: none; color: inherit; }

/* ----- A11Y: FOCUS STATES ----- */
/* Keyboard focus rings; verify contrast against adjacent colors. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
  border-radius: 2px;
}
/* On dark/hero backgrounds, gold offers stronger contrast than plum */
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.modal-visual :focus-visible,
.lightbox :focus-visible,
.site-header.hero-mode :focus-visible {
  outline-color: var(--gold-3);
}

/* ----- A11Y: SKIP LINK ----- */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1rem 1.5rem;
  background: var(--plum);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ----- A11Y: SCREEN READER ONLY ----- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced-motion !important overrides prevent later component rules restoring motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-slide { transition: opacity 0.2s linear !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-eyebrow, .hero-title, .hero-sub, .hero-actions, .hero-indicator {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ----- UTILITY ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-grad);
}
.serif {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.005em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.serif-italic { font-style: italic; }

/* Fraunces optical sizing: display sizes get high opsz for delicate serifs,
   inline italics get moderate opsz so they don't get too thin */
.hero-title,
.building-name,
.intro-copy,
.cta-band h2 {
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.collection-header h2,
.amenities-header h3,
.availability-header h3,
.gallery-header h3,
.modal-form h2,
.modal-visual-content h3,
.form-thanks h3 {
  font-variation-settings: "opsz" 96, "SOFT" 50;
}
.building-pitch,
.collection-header .meta,
.availability-header .note,
.unit-title,
.unit-price,
.stat-num,
.building-tag {
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.brand-mark .collection,
.hero-count,
.intro-number {
  font-variation-settings: "opsz" 60, "SOFT" 50;
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.rule-gold {
  height: 1px;
  background: var(--gold-line);
  border: none;
  width: 100%;
}

/* ----- HEADER ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(250, 251, 252, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  padding: 1rem var(--gutter);
  border-bottom: 1px solid rgba(61, 31, 47, 0.08);
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}
.brand-mark .logo-svg {
  display: block;
  height: 18px;
  width: auto;
  color: var(--plum);
  transition: color 0.4s var(--ease);
}
.brand-mark .logo-svg path { fill: currentColor; }
.brand-mark .divider {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent 0%, var(--gold-2) 30%, var(--gold-3) 70%, transparent 100%);
  transition: opacity 0.4s var(--ease);
}
.brand-mark .collection {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.005em;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.site-header.hero-mode .brand-mark .logo-svg { color: var(--cream); }
.site-header.hero-mode .brand-mark .collection { color: var(--cream); }
.site-header.hero-mode .nav-link { color: rgba(250, 246, 240, 0.85); }
.site-header.hero-mode .nav-link:hover { color: var(--cream); }

.primary-nav { display: flex; gap: 2.5rem; align-items: center; }
.nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold-grad);
  transition: width 0.4s var(--ease);
}
.nav-link:hover::after { width: 100%; }

.cta-pill {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 1.65rem;
  border: 1px solid var(--plum);
  color: var(--plum);
  border-radius: 999px;
  transition: all 0.4s var(--ease);
  background: transparent;
  min-height: 44px;
}
.cta-pill:hover {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
}
.site-header.hero-mode .cta-pill {
  border-color: rgba(250, 246, 240, 0.6);
  color: var(--cream);
}
.site-header.hero-mode .cta-pill:hover {
  background: var(--cream);
  color: var(--plum);
  border-color: var(--cream);
}

.mobile-menu-toggle { display: none; }

/* ----- HERO ----- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  color: var(--cream);
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Contrast assumption: existing image scrim is intended to support readable text.
     DEVELOPER REVIEW: verify 4.5:1 normal text and 3:1 large text against real images at mobile and desktop sizes. */
  background: linear-gradient(
    180deg,
    rgb(var(--ink-rgb) / 0.72) 0%,
    rgb(var(--ink-rgb) / 0.65) 25%,
    rgb(var(--ink-rgb) / 0.74) 50%,
    rgb(var(--ink-rgb) / 0.88) 80%,
    rgb(var(--ink-rgb) / 0.92) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(4rem, 8vh, 7rem);
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-eyebrow {
  color: var(--gold-3);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.6s forwards;
}
.hero-eyebrow::before { background: var(--gold-grad); }

.hero-title {
  font-size: var(--fs-display);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out) 0.8s forwards;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  background: var(--silver-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(250, 251, 252, 0.95);
  max-width: 48ch;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out) 1s forwards;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out) 1.2s forwards;
}
.btn-primary {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.1rem 2.25rem;
  background: var(--gold-grad);
  color: var(--plum-deep);
  border-radius: 0;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f0f0f2 0%, #b8b8be 50%, #7c7c82 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary svg { position: relative; z-index: 1; transition: transform 0.4s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(250, 246, 240, 0.4);
  transition: all 0.4s var(--ease);
}
.btn-ghost:hover { border-bottom-color: var(--gold-3); color: var(--gold-3); }

.hero-indicator {
  position: absolute;
  bottom: 2rem;
  right: var(--gutter);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out) 1.4s forwards;
}
.hero-dots { display: flex; gap: 4px; }
.hero-dot {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.hero-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 1px;
  background: rgba(250, 246, 240, 0.4);
  transition: all 0.5s var(--ease);
}
.hero-dot.active::after { background: var(--gold-3); width: 40px; }
.hero-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(250, 246, 240, 0.75);
  font-weight: 400;
}
.hero-pause {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 240, 0.35);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  margin-left: 0.5rem;
}
.hero-pause:hover { border-color: var(--gold-3); color: var(--gold-3); }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

/* ----- INTRO STATEMENT ----- */
.intro {
  padding: var(--section-pad) 0;
  background: var(--cream);
  position: relative;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
.intro-label {
  position: sticky;
  top: 8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.intro-number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4rem;
  font-weight: 300;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.intro-copy {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.intro-copy em {
  font-style: italic;
  color: var(--plum);
}
.intro-copy .accent {
  position: relative;
  display: inline-block;
}
.intro-copy .accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-grad);
}

/* ----- BUILDING NAVIGATION ----- */
.collection-nav {
  padding: 3rem 0 0;
  background: var(--cream);
  position: relative;
}
.collection-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.collection-header h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.05;
  max-width: 18ch;
}
.collection-header h2 em { font-style: italic; color: var(--plum); }
.collection-header .meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--graphite);
  text-align: right;
}

.building-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.building-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--cream-soft);
  transition: transform 0.6s var(--ease);
  text-align: left;
  width: 100%;
}
.building-card:hover { transform: translateY(-4px); }
.building-card-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.building-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.building-card:hover .building-card-image img { transform: scale(1.06); }
.building-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Card-label scrim: intended for 4.5:1 normal and 3:1 large text contrast;
     verify against the final photos. */
  background: linear-gradient(
    180deg,
    rgb(var(--ink-rgb) / 0.7) 0%,
    rgb(var(--ink-rgb) / 0.6) 15%,
    transparent 35%,
    transparent 40%,
    rgb(var(--ink-rgb) / 0.75) 100%
  );
}
.building-card-number {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream);
  z-index: 2;
  letter-spacing: 0.02em;
}
.building-card-number::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold-3);
  margin-right: 10px;
  vertical-align: middle;
}
.building-card-info {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  color: var(--cream);
}
.building-card-info h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.85rem;
  line-height: 1.05;
  margin-bottom: 0.4rem;
}
.building-card-info .location {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}
.building-card-meta {
  padding: 0;
  border-top: 1px solid rgba(61, 31, 47, 0.1);
  background: var(--cream);
}
.building-card-meta .view {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--plum);
  font-weight: 600;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.building-card-meta .view svg { transition: transform 0.3s var(--ease); }
.building-card:hover .building-card-meta .view {
  background: var(--gold-3);
  color: var(--ink);
}
.building-card:hover .building-card-meta .view svg { transform: translateX(4px); }

/* Availability notice panel. */
.coming-soon-panel {
  border: 1px solid rgba(61, 31, 47, 0.12);
  padding: 3.5rem 2rem;
  text-align: center;
}
.building-section.alt .coming-soon-panel { background: var(--cream); }
.coming-soon-panel p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--graphite);
}

/* ----- BUILDING SECTIONS ----- */
.building-section {
  padding: var(--section-pad) 0;
  background: var(--cream);
  position: relative;
}
.building-section.alt {
  background: var(--cream-soft);
}
.building-section + .building-section { padding-top: 0; }

.building-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}
.building-hero.reverse .building-hero-image { order: 2; }
.building-hero-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.building-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.building-hero-info { padding: 1rem 0; }
.building-tag {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--plum);
  margin-bottom: 1rem;
}
.building-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.98;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}
.building-name em { font-style: italic; }
.building-address {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 2rem;
  font-weight: 500;
}
.building-pitch {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  max-width: 42ch;
  margin-bottom: 2rem;
}
.building-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(61, 31, 47, 0.12);
  max-width: 500px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat-num {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1;
  color: var(--plum);
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 500;
}

/* ----- AMENITIES ----- */
.amenities-block {
  padding: 4rem 0;
  border-top: 1px solid rgba(61, 31, 47, 0.1);
  border-bottom: 1px solid rgba(61, 31, 47, 0.1);
  margin-bottom: 5rem;
}
.amenities-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: end;
}
.amenities-header h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h3);
  line-height: 1.05;
}
.amenities-header h3 em { font-style: italic; }
.amenities-header p {
  font-size: 1rem;
  color: var(--graphite);
  max-width: 50ch;
  line-height: 1.65;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(61, 31, 47, 0.1);
  border-left: 1px solid rgba(61, 31, 47, 0.1);
  border-right: 1px solid rgba(61, 31, 47, 0.1);
}
.amenity {
  background: var(--cream);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.4s var(--ease);
}
.building-section.alt .amenity { background: var(--cream-soft); }

/* Hover image — fades in and softly scales, with a dark gradient
   for text legibility. Sourced per-tile via the --amenity-img custom
   property set inline on each .amenity. */
.amenity::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--amenity-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s var(--ease), transform 1.6s var(--ease);
  z-index: -2;
}
.amenity::after {
  content: '';
  position: absolute;
  inset: 0;
  /* DEVELOPER REVIEW: verify text contrast over these images; no asset-specific measurements have been performed. */
  background: linear-gradient(180deg, rgb(var(--ink-rgb) / 0.3) 0%, rgb(var(--ink-rgb) / 0.78) 100%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  z-index: -1;
}
.amenity:hover { background: var(--ivory); }
.amenity:hover::before { opacity: 1; transform: scale(1); }
.amenity:hover::after { opacity: 1; }

.amenity-icon {
  width: 32px;
  height: 32px;
  color: var(--plum);
  display: flex;
  align-items: center;
  transition: color 0.45s var(--ease);
}
.amenity-icon svg { width: 100%; height: 100%; stroke-width: 1; }
.amenity-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.25;
  margin-top: auto;
  color: var(--ink);
  transition: color 0.45s var(--ease);
}
.amenity-desc {
  font-size: 0.82rem;
  color: var(--graphite);
  line-height: 1.5;
  transition: color 0.45s var(--ease);
}
.amenity:hover .amenity-icon { color: var(--cream); }
.amenity:hover .amenity-name { color: var(--cream); }
.amenity:hover .amenity-desc { color: rgba(250, 251, 252, 0.85); }

/* Tiles without photography retain a plain background on hover. */
.amenity.no-photo { cursor: default; }
.amenity.no-photo:hover { background: var(--cream); }
.building-section.alt .amenity.no-photo:hover { background: var(--cream-soft); }
.amenity.no-photo::before,
.amenity.no-photo::after { display: none; }
.amenity.no-photo:hover .amenity-icon { color: var(--plum); }
.amenity.no-photo:hover .amenity-name { color: var(--ink); }
.amenity.no-photo:hover .amenity-desc { color: var(--graphite); }

/* ----- AVAILABILITY ----- */
.availability-block { margin-bottom: 5rem; }
.availability-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.availability-header h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h3);
}
.availability-header h3 em { font-style: italic; }
.availability-header .note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--graphite);
  font-size: 1rem;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Units slider — used when there are more residences than fit at once.
   Desktop shows 3 cards; tablet 2; mobile 1. Manual prev/next nav. */
.availability-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.units-slider {
  position: relative;
}
.units-slider-viewport {
  overflow: hidden;
  /* Padding/negative margin lets card hover (translateY + shadow) breathe
     past the clipped viewport. */
  padding: 0.5rem 0 2.25rem;
  margin: -0.5rem 0 -2.25rem;
}
.units-slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.65s var(--ease);
  will-change: transform;
}
.units-slider-track > .unit-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
}
.units-slider-nav {
  display: flex;
  gap: 0.5rem;
}
.units-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(61, 31, 47, 0.22);
  background: transparent;
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.units-slider-btn:hover:not([disabled]) {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
}
.units-slider-btn[disabled] {
  opacity: 0.25;
  cursor: default;
}
.units-slider-btn svg { display: block; }
.unit-card {
  background: var(--ivory);
  border: 1px solid rgba(61, 31, 47, 0.08);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.unit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(189, 148, 86, 0.4);
  box-shadow: 0 30px 60px -20px rgba(61, 31, 47, 0.15);
}
.unit-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.unit-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.unit-card:hover .unit-image img { transform: scale(1.05); }

/* Slideshow inside .unit-image — auto-cycles on card hover, manual via dots */
.unit-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 1.2s var(--ease);
}
.unit-slide.active { opacity: 1; }

.unit-slide-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0;
  padding: 2px 6px;
  background: rgba(26, 20, 22, 0.55); /* Intended to provide 3:1 indicator contrast; verify against photos. */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.unit-card:hover .unit-slide-dots,
.unit-slide-dots:focus-within { opacity: 1; } /* also show for keyboard users (WCAG 2.4.7) */
/* 24x24 hit area (WCAG 2.5.8); the visible dot is drawn by ::before. */
.unit-slide-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.unit-slide-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(250, 251, 252, 0.55);
  transition: width 0.3s var(--ease), background 0.3s var(--ease), border-radius 0.3s var(--ease);
}
.unit-slide-dot:hover::before { background: rgba(250, 251, 252, 0.85); }
.unit-slide-dot.active::before {
  background: var(--cream);
  width: 18px;
  border-radius: 3px;
}

/* Prev/next arrow overlays on each residence card — visible on hover or
   when keyboard-focused, so the user can step through the slideshow. */
.unit-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(26, 20, 22, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.4s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.unit-card:hover .unit-slide-arrow,
.unit-slide-arrow:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.unit-slide-arrow:hover { background: rgba(26, 20, 22, 0.72); }
.unit-slide-prev { left: 0.85rem; }
.unit-slide-next { right: 0.85rem; }
.unit-slide-arrow svg { display: block; }
.unit-image.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-soft);
}
.unit-image.coming-soon span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--graphite);
  letter-spacing: 0.02em;
}
.unit-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--cream);
  padding: 0.4rem 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--plum);
}
.unit-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.unit-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 500;
}
.unit-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.15;
}
.unit-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(61, 31, 47, 0.08);
  border-bottom: 1px solid rgba(61, 31, 47, 0.08);
  font-size: 0.85rem;
  color: var(--graphite);
}
.unit-specs span strong { color: var(--ink); font-weight: 500; }
.unit-price {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--plum);
  margin-top: auto;
}
.unit-inquire {
  margin-top: 0.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.unit-inquire:hover { border-bottom-color: var(--plum); }
.unit-floorplan {
  display: flex;
  gap: 1.25rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.unit-floorplan button {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--plum);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.4s var(--ease);
}
.unit-floorplan button:hover { border-bottom-color: var(--plum); }

/* ----- GALLERY ----- */
.gallery-block { margin-bottom: 0; }
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 2.5rem;
}
.gallery-header h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h3);
}
.gallery-header h3 em { font-style: italic; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 1rem;
}
.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--mist);
  padding: 0;
  border: none;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), opacity 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); opacity: 0.92; }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(61, 31, 47, 0);
  transition: background 0.4s var(--ease);
}
.gallery-item:hover::after { background: rgba(61, 31, 47, 0.08); }
.gallery-item.span-2 { grid-column: span 2; }
.gallery-item.row-2 { grid-row: span 2; }

/* ----- CALL TO ACTION BAR ----- */
.cta-band {
  background: var(--plum-deep);
  color: var(--cream);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold-line);
}
.cta-band::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 168, 174, 0.18) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.cta-band h2 em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-band p {
  color: rgba(250, 246, 240, 0.75);
  max-width: 50ch;
  font-size: 1.05rem;
  line-height: 1.6;
}
.cta-band .btn-primary {
  align-self: end;
  justify-self: start;
}

/* ----- FOOTER ----- */
.site-footer {
  background: var(--plum-deep);
  color: var(--cream);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(168, 168, 174, 0.2);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .brand-mark .logo-svg { color: var(--cream); height: 20px; }
.footer-brand .brand-mark .collection { color: var(--cream); }
.footer-brand p {
  margin-top: 1.25rem;
  color: rgba(250, 246, 240, 0.6);
  max-width: 32ch;
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-col .footer-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a,
.footer-col .footer-inquiry {
  color: rgba(250, 246, 240, 0.75);
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover,
.footer-col .footer-inquiry:hover { color: var(--gold-3); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 246, 240, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(250, 246, 240, 0.5);
  letter-spacing: 0.08em;
}

/* ----- INQUIRY MODAL ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 20, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-panel {
  background: var(--cream);
  max-width: 980px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  transform: translateY(30px);
  transition: transform 0.6s var(--ease-out);
}
.modal-overlay.open .modal-panel { transform: translateY(0); }

.modal-visual {
  background-image: url('images/inquire_image.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 500px;
}
.modal-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61, 31, 47, 0.2) 0%, rgba(61, 31, 47, 0.7) 100%);
}
.modal-visual-content {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  right: 2rem;
  color: var(--cream);
  z-index: 2;
}
.modal-visual-content .eyebrow {
  color: var(--gold-3);
  margin-bottom: 1rem;
}
.modal-visual-content .eyebrow::before { background: var(--gold-3); }
.modal-visual-content h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 1.05;
}
.modal-visual-content h3 em { font-style: italic; }

.modal-form {
  padding: 3rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  transition: all 0.3s var(--ease);
  z-index: 3;
}
.modal-close:hover { background: var(--plum); color: var(--cream); }
.modal-close svg { width: 16px; height: 16px; }

.modal-form .eyebrow { margin-bottom: 1rem; }
.modal-form h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.modal-form h2 em { font-style: italic; color: var(--plum); }
.modal-form > p {
  color: var(--graphite);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(61, 31, 47, 0.25);
  transition: border-color 0.3s var(--ease);
  min-height: 44px;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: var(--plum);
  border-bottom-width: 2px;
  padding-bottom: calc(0.85rem - 1px);
  background: rgba(61, 31, 47, 0.03);
}
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 4px;
}
.form-textarea { resize: vertical; min-height: 60px; }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--graphite); opacity: 1; } /* Use the body palette for placeholder text. */

/* Required marker, error text and error summary. Errors are conveyed with text and a heavier
   border, never colour alone (WCAG 1.4.1). Error containers are always in the DOM and hidden
   with a class so JS can toggle them (see main.js, FORM VALIDATION). */
.form-note { font-size: var(--fs-small); color: var(--graphite); margin-top: 1.25rem; }
.form-required { margin-left: 0.15em; }
.form-error { display: none; font-size: var(--fs-small); line-height: 1.4; color: var(--error); margin: 0; }
.form-error.is-visible { display: block; }
.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"] { border-bottom: 2px solid var(--error); }
.form-error-summary { display: none; margin-top: 1rem; padding: 0.75rem 1rem; border: 2px solid var(--error); color: var(--error); font-size: var(--fs-small); line-height: 1.4; }
.form-error-summary.has-errors { display: block; }
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233D1F2F' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 24px; }

.form-actions { margin-top: 2rem; }
.form-actions .btn-primary {
  width: 100%;
  justify-content: center;
}

.form-thanks {
  text-align: center;
  padding: 2rem 0;
  display: none;
}
.form-thanks.active { display: block; }
.form-thanks .checkmark {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--gold-grad);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-thanks h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.form-thanks h3 em { font-style: italic; }
.form-thanks p { color: var(--graphite); line-height: 1.55; max-width: 40ch; margin: 0 auto; }

/* ----- LIGHTBOX ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 20, 22, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border: 1px solid rgba(250, 246, 240, 0.3);
  border-radius: 50%;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { border-color: var(--gold-3); color: var(--gold-3); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 1px solid rgba(250, 246, 240, 0.3);
  border-radius: 50%;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.lightbox-nav:hover { border-color: var(--gold-3); color: var(--gold-3); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  color: rgba(250, 246, 240, 0.7);
  font-size: 0.95rem;
}

/* Optional image caption. */
.lightbox-caption {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 60ch;
  padding: 0 2rem;
  color: var(--cream);
  text-align: center;
  pointer-events: none;
  display: none;
}
.lightbox.has-caption .lightbox-caption { display: block; }
.lightbox.has-caption #lightboxImg { max-height: calc(100vh - 16rem); }
.lightbox-caption-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin-bottom: 0.4rem;
}
.lightbox-caption-desc {
  color: rgba(250, 251, 252, 0.78);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ----- FLOORPLAN LIGHTBOX ----- */
.floorplan-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 20, 22, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.floorplan-lightbox.open { opacity: 1; visibility: visible; }
.floorplan-lightbox iframe {
  width: 100%;
  height: 100%;
  max-width: 1000px;
  background: var(--cream);
  border: none;
}

/* Amenity tiles */
.amenity { cursor: pointer; }
.amenity:focus-visible {
  outline: 2px solid var(--gold-3);
  outline-offset: -2px;
}

/* ----- STICKY MOBILE CTA ----- */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 95;
  padding: 1rem;
  background: var(--plum-deep);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 40px -10px rgba(26, 20, 22, 0.3);
  border-top: 1px solid var(--gold-2);
}

/* ----- REVEAL ANIMATIONS ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-label { position: static; flex-direction: row; align-items: center; gap: 2rem; }
  .building-cards { grid-template-columns: 1fr 1fr; }
  .building-hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .building-hero.reverse .building-hero-image { order: -1; }
  .building-hero-image { aspect-ratio: 16/10; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities-header { grid-template-columns: 1fr; gap: 1rem; }
  .units-grid { grid-template-columns: repeat(2, 1fr); }
  .units-slider-track > .unit-card { flex: 0 0 calc((100% - 1.5rem) / 2); }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .gallery-item.span-2, .gallery-item.row-2 { grid-column: span 1; grid-row: span 1; }
  .cta-band-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band .btn-primary { justify-self: start; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .modal-panel { grid-template-columns: 1fr; max-height: 95vh; }
  .modal-visual { min-height: 200px; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: all 0.3s var(--ease);
  }
  .site-header.hero-mode .mobile-menu-toggle span { background: var(--cream); }

  .hero { min-height: 600px; }
  .hero-content { padding-bottom: 6rem; }
  .hero-indicator { bottom: 1rem; }
  .hero-sub { font-size: 1rem; }

  .building-cards { grid-template-columns: 1fr; }

  .amenities-grid { grid-template-columns: 1fr; }
  .amenity { min-height: 140px; }
  .units-grid { grid-template-columns: 1fr; }
  .units-slider-track > .unit-card { flex: 0 0 100%; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .building-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .sticky-mobile-cta { display: block; min-height: 44px; }
  .site-footer { padding-bottom: 6rem; } /* room for sticky CTA */

  .modal-form { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .intro-label { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .collection-header { flex-direction: column; align-items: flex-start; }
  .collection-header .meta { text-align: left; }
  .building-stats { grid-template-columns: 1fr; }
}

/* Subtle texture overlay */
.texture-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Footer actions and slideshow pause controls. */
.footer-inquiry { font: inherit; color: inherit; text-align: left; min-height: 24px; }
.unit-slide-pause { min-width: 44px; min-height: 24px; color: var(--cream); font-size: var(--fs-small); padding-inline: 0.5rem; }
.unit-slide-pause[aria-pressed="true"] { text-decoration: underline; }
.unit-slide-pause:focus-visible { outline-color: var(--cream); }
.unit-floorplan button { min-height: 24px; }
html { scroll-padding-bottom: var(--scroll-offset); }
@media (max-width: 768px) {
  .primary-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 1rem var(--gutter); background: var(--cream); }
  .site-header .primary-nav.is-open .nav-link { color: var(--ink); min-height: 44px; padding-block: 0.75rem; }
}

/* Keep native PDF fallback access and keyboard focus visible outside the iframe. */
.floorplan-lightbox :focus-visible { outline-color: var(--cream); }
.floorplan-help { position: absolute; bottom: 1rem; left: 2rem; right: 2rem; color: var(--cream); text-align: center; font-size: var(--fs-small); }
.floorplan-help a { display: inline-block; min-height: 24px; text-decoration: underline; }
@media (max-width: 768px) {
  .floorplan-lightbox { padding: 4rem 1rem 6rem; }
  .floorplan-help { left: 1rem; right: 1rem; }
}
