/* ===================================================================
   ADDED FEATURES — story / amenities / lifestyle, social, featured
   pop-up, section nav, scroll progress. Loaded after styles.css.
   =================================================================== */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.1s linear; pointer-events: none;
}

/* ---------- Section-dot navigation (scroll-spy) ---------- */
.section-dots {
  position: fixed; top: 50%; left: 1.6rem; right: auto; transform: translateY(-50%);
  z-index: 900; display: flex; flex-direction: column; gap: 1rem;
}
.section-dot {
  position: relative; width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--grey-300); background: transparent;
  transition: var(--transition); display: block;
}
.section-dot::after {
  content: ''; position: absolute; inset: 2px; border-radius: 50%;
  background: var(--accent); transform: scale(0); transition: var(--transition);
}
.section-dot.active { border-color: var(--accent); }
.section-dot.active::after { transform: scale(1); }
.section-dot:hover { border-color: var(--accent); }
.section-dot-label {
  position: absolute; left: 22px; right: auto; top: 50%; transform: translateY(-50%) translateX(-8px);
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--black); background: var(--white); padding: 0.35rem 0.7rem; border-radius: 100px;
  box-shadow: 0 6px 20px rgba(36, 28, 21,0.1); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.section-dot:hover .section-dot-label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Social icons (shared) ---------- */
.social-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--grey-200); color: var(--grey-700);
  transition: color 0.3s ease, border-color 0.3s ease; overflow: visible;
}
.social-icon::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  transform: scale(0); transition: transform 0.4s var(--ease); z-index: 0;
}
.social-icon svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.social-icon:hover { color: var(--white); border-color: transparent; }
.social-icon:hover::before { transform: scale(1); }
.social-whatsapp:hover::before  { background: #25D366; box-shadow: 0 10px 24px rgba(37,211,102,0.4); }
.social-facebook:hover::before  { background: #1877F2; box-shadow: 0 10px 24px rgba(24,119,242,0.4); }
.social-instagram:hover::before { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); box-shadow: 0 10px 24px rgba(220,39,67,0.4); }
.social-linkedin:hover::before  { background: #0A66C2; box-shadow: 0 10px 24px rgba(10,102,194,0.4); }

/* On touch devices the :hover state sticks after tapping (icon stays "active").
   Neutralise the hover styling where hover isn't truly supported. */
@media (hover: none) {
  .social-icon:hover { color: var(--grey-700) !important; border-color: var(--grey-200) !important; transform: none !important; }
  .social-icon:hover::before { transform: scale(0) !important; }
  .social-icon:hover svg { transform: none !important; }
  .site-footer .social-icon:hover { color: var(--grey-700) !important; border-color: var(--grey-300) !important; }
}

/* Footer social row */
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.75rem; }
.site-footer .social-icon { border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.7); }
.site-footer .social-icon:hover { color: var(--white); }

/* Floating social rail — FAG-Glass-style expandable tabs, flush to the left
   edge, vertically centred. Collapsed = a coloured icon tab; on hover the tab
   slides open to reveal the platform name. WhatsApp + Instagram lead. */
.social-rail {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 900;
  display: flex; flex-direction: column; gap: 7px;
}
.social-tab {
  position: relative; display: flex; align-items: center;
  width: 46px; height: 46px; overflow: hidden; color: #fff; background: var(--dark);
  border-radius: 0 24px 24px 0; box-shadow: 0 6px 18px rgba(36,28,21,0.18);
  transition: width 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.social-tab-icon { flex: 0 0 46px; display: flex; align-items: center; justify-content: center; }
.social-tab-icon svg { width: 19px; height: 19px; transition: transform 0.4s var(--ease); }
.social-tab-label {
  white-space: nowrap; font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; padding-right: 1.15rem;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.social-tab:hover { width: 170px; box-shadow: 0 12px 28px rgba(36,28,21,0.3); }
.social-tab:hover .social-tab-label { opacity: 1; }
.social-tab:hover .social-tab-icon svg { transform: scale(1.12) rotate(-6deg); }
/* LinkedIn glyph fills the whole viewBox (no internal padding like the others),
   so it reads bigger — trim it down to match the others' optical size. */
.social-rail .social-linkedin .social-tab-icon svg { width: 16.5px; height: 16.5px; }
/* WhatsApp glyph is near-symmetric, so the shared -6deg tilt is barely visible;
   give it a stronger rotation so it reads like the other icons on hover. */
.social-rail .social-whatsapp:hover .social-tab-icon svg { transform: scale(1.12) rotate(-12deg); }
/* On touch devices :hover sticks after tapping (tab stays expanded). Reset it
   to the resting state so it collapses back after a tap. */
@media (hover: none) {
  .social-tab:hover { width: 46px !important; box-shadow: 0 6px 18px rgba(36,28,21,0.18) !important; }
  .social-tab:hover .social-tab-label { opacity: 0 !important; }
  .social-tab:hover .social-tab-icon svg { transform: none !important; }
}
@media (hover: none) and (max-width: 768px) { .social-tab:hover { width: 40px !important; } }
@media (hover: none) and (max-width: 576px) { .social-tab:hover { width: 38px !important; } }
@media (hover: none) and (max-width: 480px) { .social-tab:hover { width: 34px !important; } }
/* Brand colours */
.social-rail .social-whatsapp  { background: #25D366; }
.social-rail .social-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-rail .social-facebook  { background: #1877F2; }
.social-rail .social-linkedin  { background: #0A66C2; }
/* WhatsApp priority pulse */
.social-rail .social-whatsapp { animation: socialPulse 2.6s ease-in-out infinite; }
@keyframes socialPulse {
  0%,100% { box-shadow: 0 6px 18px rgba(36,28,21,0.18), 0 0 0 0 rgba(37,211,102,0.5); }
  50%     { box-shadow: 0 6px 18px rgba(36,28,21,0.18), 0 0 0 10px rgba(37,211,102,0); }
}

/* ---------- BRAND STORY (emotional narrative) ---------- */
.brand-story {
  position: relative; background: var(--black); color: var(--white);
  overflow: hidden; text-align: center;
}
.brand-story-bg {
  position: absolute; inset: -12% 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: grayscale(0.25) brightness(0.78) contrast(1.02); will-change: transform;
}
/* Overlay removed — the markup no longer renders it. Kept neutralised in case
   the element reappears from cache/another template. */
.brand-story-overlay { display: none; }
.brand-story-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.brand-story .section-label { color: var(--accent-light); justify-content: center; }
.brand-story .section-label::before { background: var(--accent-light); }
.brand-story-heading {
  font-family: var(--serif); font-weight: 400; line-height: 1.18;
  font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.015em; color: var(--white);
  margin-bottom: 2rem;
  /* layered shadow keeps the heading legible straight over the image (no overlay) */
  text-shadow: 0 1px 2px rgba(36, 28, 21, 0.55), 0 2px 26px rgba(36, 28, 21, 0.7);
}
.brand-story-heading em {
  font-style: italic; color: var(--accent-light);
  /* stronger, darker halo so the gold reads clearly over the image */
  text-shadow: 0 1px 2px rgba(36, 28, 21, 0.9), 0 2px 16px rgba(36, 28, 21, 0.75);
}
.brand-story-text {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 400; line-height: 1.9;
  color: #fff;
  text-shadow: 0 1px 2px rgba(36, 28, 21, 0.6), 0 1px 18px rgba(36, 28, 21, 0.65);
}
.brand-story-text p { margin-bottom: 1.2rem; }
.brand-story-signature {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88); margin-top: 2.5rem;
  text-shadow: 0 1px 2px rgba(36, 28, 21, 0.55), 0 1px 14px rgba(36, 28, 21, 0.6);
}

/* ---------- AMENITIES & TECHNOLOGY (visual storytelling cards) ---------- */
.amenities { background: var(--white); }
.amenities-header { max-width: 660px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.amenities-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2vw, 2rem);
}
.amenity-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--off-white);
  border: 1px solid var(--grey-200); border-radius: 4px; overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease),
              border-color 0.55s var(--ease), background 0.55s var(--ease);
}
/* Stable hover hit-area: the card lifts on hover, so this pseudo counter-moves
   by the same amount to stay anchored in the original spot. That keeps the
   pointer over the card at the border instead of falling off (stops the vibration). */
.amenity-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; z-index: 0;
  transition: var(--transition);
}
.amenity-card:hover::before { transform: translateY(8px); }
.amenity-card > * { position: relative; z-index: 1; }
.amenity-card::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; z-index: 4;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease);
}
.amenity-card:hover { transform: translateY(-8px); border-color: transparent; background: var(--white); }
.amenity-card:hover::after { transform: scaleX(1); }

/* --- Media zone: short video clip / lifestyle image / icon fallback --- */
.amenity-media {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
}
.amenity-media img,
.amenity-media .amenity-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.12); will-change: transform;
  transition: transform 1s var(--ease), filter 0.7s var(--ease);
}
.amenity-card.has-media:hover .amenity-media img,
.amenity-card.has-media:hover .amenity-media .amenity-video {
  transform: scale(1.06); filter: grayscale(0);
}
/* readability scrim over the photo/video so the icon badge + index read clearly */
.amenity-card.has-media .amenity-media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(36, 28, 21, 0.55) 0%, rgba(36, 28, 21, 0) 58%);
}
/* icon-only cards: tinted panel with a prominent gold ring icon */
.amenity-card.icon-only .amenity-media {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--beige) 100%);
}

/* Icon badge */
.amenity-media-icon {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: var(--transition);
}
/* small frosted badge anchored bottom-left over media */
.amenity-card.has-media .amenity-media-icon {
  position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2;
  width: 46px; height: 46px;
  background: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.4); color: #fff;
}
.amenity-card.has-media .amenity-media-icon svg { width: 20px; height: 20px; }
.amenity-card.has-media:hover .amenity-media-icon { background: var(--accent); border-color: var(--accent); }
/* large centred ring icon for cards without media */
.amenity-card.icon-only .amenity-media-icon {
  width: 78px; height: 78px;
  background: transparent; border: 1px solid rgba(var(--accent-rgb), 0.45); color: var(--accent);
}
.amenity-card.icon-only .amenity-media-icon svg { width: 32px; height: 32px; }
.amenity-card.icon-only:hover .amenity-media-icon {
  background: var(--accent); border-color: var(--accent); color: var(--white);
  transform: rotate(-6deg); box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.32);
}

/* Editorial index numeral (top-right) */
.amenity-card .amenity-index {
  position: absolute; z-index: 3;
  top: clamp(1rem, 1.5vw, 1.4rem); right: clamp(1.1rem, 1.6vw, 1.5rem);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1;
  color: var(--grey-400); transition: color 0.55s var(--ease);
}
.amenity-card.has-media .amenity-index { color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 10px rgba(36, 28, 21, 0.5); }
.amenity-card.has-media:hover .amenity-index { color: #fff; }
.amenity-card.icon-only:hover .amenity-index { color: var(--accent); }

/* --- Body: infographic stat + title --- */
.amenity-body {
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 2.2vw, 2.1rem) clamp(1.5rem, 2vw, 2rem) clamp(1.85rem, 2.4vw, 2.35rem);
}
.amenity-stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.1rem 0.55rem; margin-bottom: 0.7rem; }
.amenity-stat-num { font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1; color: var(--accent); }
.amenity-stat-label {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey-500);
}
.amenity-card h3 {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--black);
  margin: 0 0 0.5rem; line-height: 1.25; letter-spacing: -0.01em;
}
.amenity-card p { font-size: 0.9rem; color: var(--grey-500); line-height: 1.75; font-weight: 300; }

/* ---------- LIFESTYLE STORYTELLING ---------- */
.lifestyle { background: var(--off-white); }
.lifestyle-header { max-width: 640px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.lifestyle-blocks { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 7rem); }
.lifestyle-block {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.lifestyle-block:nth-child(even) .lifestyle-block-media { order: 2; }
.lifestyle-block-media {
  position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3;
}
.lifestyle-block-media img,
.lifestyle-block-media .lifestyle-block-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.35) contrast(1.04); transition: filter 0.6s var(--ease); will-change: transform;
}
.lifestyle-block:hover .lifestyle-block-media img,
.lifestyle-block:hover .lifestyle-block-media .lifestyle-block-video { filter: grayscale(0); }
.lifestyle-block-eyebrow {
  position: absolute; top: 1.2rem; left: 1.2rem; z-index: 2;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--white); background: rgba(36, 28, 21,0.55); backdrop-filter: blur(8px);
  padding: 0.45rem 0.9rem; border-radius: 100px;
}
.lifestyle-block-text h3 {
  font-family: var(--serif); font-weight: 400; color: var(--black);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.01em;
}
.lifestyle-block-text p { font-size: 1.02rem; color: var(--grey-500); line-height: 1.9; font-weight: 300; }

/* ---------- FEATURED PROJECT POP-UP ---------- */
body.popup-lock { overflow: hidden; }
body.nav-open { overflow: hidden; }
.featured-popup {
  position: fixed; inset: 0; z-index: 1500;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.featured-popup.open { opacity: 1; visibility: visible; }
/* Light frosted veil (TARC-style): the site + logo stay visible behind the
   popup — never a black screen. A whisper of warm-white frost + soft blur
   focuses the card without hiding the brand. */
.featured-popup-overlay { position: absolute; inset: 0; background: rgba(250, 246, 239, 0.38); backdrop-filter: blur(3px) saturate(1.05); -webkit-backdrop-filter: blur(3px) saturate(1.05); }
.featured-popup-card {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr;
  width: min(840px, 100%); max-height: 90vh; background: var(--white); border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 80px rgba(36, 28, 21, 0.22), 0 6px 20px rgba(36, 28, 21, 0.1);
  transform: translateY(24px) scale(0.97); transition: transform 0.5s var(--ease);
}
.featured-popup.open .featured-popup-card { transform: translateY(0) scale(1); }
.featured-popup-close {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.85); color: var(--black); font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.featured-popup-close:hover { background: var(--accent); color: var(--white); transform: rotate(90deg); }
/* Brand panel — the project image sits under a warm espresso veil so the
   white+gold brand logo reads boldly and premium. This is the "brand clearly
   visible" panel; the body stays light. */
.featured-popup-media { position: relative; min-height: 320px; background: var(--black); overflow: hidden; }
.featured-popup-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) contrast(1.05) brightness(0.78); }
.featured-popup-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(155deg, rgba(36,28,21,0.9) 0%, rgba(36,28,21,0.66) 48%, rgba(61,48,34,0.74) 100%);
}
.featured-popup-brand {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 1.35rem; padding: clamp(2rem, 4vw, 3rem);
}
.featured-popup-logo { width: clamp(150px, 62%, 210px); height: auto; filter: drop-shadow(0 8px 22px rgba(36, 28, 21,0.4)); }
.featured-popup-eyebrow {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--accent-light); background: none; padding: 0;
}
.featured-popup-rule { width: 52px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.featured-popup-body {
  padding: clamp(2rem, 4.5vw, 3rem); overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center;
}
.featured-popup-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--black); line-height: 1.15; }
.featured-popup-loc { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-top: 0.5rem; }
.featured-popup-text { font-size: 0.95rem; color: var(--grey-500); line-height: 1.8; font-weight: 300; margin-top: 1rem; }
.featured-popup-meta { display: flex; gap: 2rem; margin: 1.5rem 0; }
.featured-popup-meta dt { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 0.25rem; }
.featured-popup-meta dd { font-family: var(--serif); font-size: 1.3rem; color: var(--black); }
.featured-popup-btn { margin-top: 0.5rem; }

/* ---------- Touch-device tap states (no hover) ---------- */
.is-touch .project-overlay { background: linear-gradient(to top, rgba(36, 28, 21,0.74) 0%, rgba(36, 28, 21,0.05) 60%); }
.is-touch .project-arrow { opacity: 1; transform: translateY(0); }
.is-touch .project-card img { filter: grayscale(0.2); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .social-rail .social-whatsapp { animation: none; }
  [data-parallax] { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1366px) {
  .lifestyle-header { margin-bottom: 2.25rem; }
}
@media (max-width: 1024px) {
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .section-dots { display: none; }
}
@media (max-width: 768px) {
  .amenities-grid { grid-template-columns: 1fr; }
  .lifestyle-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .lifestyle-block:nth-child(even) .lifestyle-block-media { order: 0; }
  .featured-popup-card { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; }
  .featured-popup-media { min-height: 230px; }
  .featured-popup-logo { width: clamp(140px, 48%, 190px); }
  .featured-popup-btn {
    align-self: center;
    font-size: 0.62rem;
    padding: 0.7rem 1.4rem;
  }
}

/* Keep the floating social rail visible on tablets/phones, scaled down. */
@media (max-width: 768px) {
  .social-rail { gap: 5px; }
  .social-tab { width: 40px; height: 40px; }
  .social-tab-icon { flex: 0 0 40px; }
  .social-tab-icon svg { width: 17px; height: 17px; }
  .social-tab:hover { width: 150px; }
}
@media (max-width: 576px) {
  .social-tab { width: 38px; height: 38px; }
  .social-tab-icon { flex: 0 0 38px; }
  .social-tab:hover { width: 140px; }
}
@media (max-width: 480px) {
  .social-rail { gap: 4px; }
  .social-tab { width: 34px; height: 34px; }
  .social-tab-icon { flex: 0 0 34px; }
  .social-tab-icon svg { width: 15px; height: 15px; }
  .social-tab-label { font-size: 0.62rem; padding-right: 0.9rem; }
  .social-tab:hover { width: 128px; }
}

/* ---------- Mobile header: keep the hamburger visible in every state ---------- */
@media (max-width: 768px) {
  /* Don't let the scrolled header collapse below a tappable height */
  .site-header.scrolled { height: auto; min-height: 56px; padding: 0.45rem 0; }
  .site-header.scrolled .header-inner { height: auto; min-height: 46px; }

  /* Always render the toggle, above overlays, with a clear hit area */
  .menu-toggle { display: flex !important; position: relative; z-index: 1300; padding: 8px; }
  .menu-toggle span { width: 24px; height: 2px; background: var(--white); }

  /* High contrast in both states: dark bars on the white scrolled header */
  .site-header.scrolled .menu-toggle span { background: var(--black); }

  /* When the menu is open the backdrop is dark, so keep bars light
     (more specific than the .scrolled rule so it wins in either state) */
  .site-header .nav-links.active ~ .menu-toggle span,
  .site-header.scrolled .nav-links.active ~ .menu-toggle span { background: var(--white); }

  /* ROOT CAUSE FIX: a scrolled header with backdrop-filter becomes the
     containing block for its position:fixed child (.nav-links), trapping
     the full-screen menu inside the ~56px header (it "squeezes to the top").
     Dropping the filter on mobile sizes the overlay to the viewport again. */
  .site-header.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,0.98); }

  /* Full-screen mobile menu: clear the header bar and scroll internally
     if there are many items, instead of overflowing the viewport. */
  .nav-links { padding: 5.5rem 1.5rem 2.5rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* Lock background scroll while the menu is open (graceful no-op where
     :has() is unsupported). */
  body:has(.site-header .nav-links.active) { overflow: hidden; }
}



/* ---------- Hero scroll cue: clickable (scrolls to bottom of page) ---------- */
.hero-scroll-cue { cursor: pointer; transition: color 0.4s var(--ease); }
.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible { color: rgba(255,255,255,0.85); outline: none; }
.hero-scroll-cue:hover .dot,
.hero-scroll-cue:focus-visible .dot { border-color: var(--accent-light); transform: translateY(3px); }

/* ===================================================================
   ARCHIVE / BLOG LISTING
   =================================================================== */
/* Light archive header (was a flat black-dominant band). */
.archive-hero {
  background: var(--off-white); color: var(--black);
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--grey-100);
}
.archive-hero .section-label { color: var(--accent-dark); }
.archive-hero .section-label::before { background: var(--accent); }
.archive-hero-title {
  font-family: var(--serif); font-weight: 400; color: var(--black);
  font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.08;
  letter-spacing: -0.02em; margin-top: 0.5rem;
}
.archive-hero-desc { color: var(--grey-500); font-weight: 300; max-width: 620px; margin-top: 1.25rem; line-height: 1.8; }

/* Keep the fixed header readable over the now-light archive hero
   (mirrors the body.error404 pattern). */
body.archive .site-header:not(.scrolled) .logo-on-dark { display: none; }
body.archive .site-header:not(.scrolled) .logo-on-light { display: block; }
body.archive .site-header:not(.scrolled) .nav-links a:not(.nav-cta) { color: var(--grey-500); }
body.archive .site-header:not(.scrolled) .nav-links a:not(.nav-cta):hover { color: var(--black); }
body.archive .site-header:not(.scrolled) .menu-toggle span { background: var(--black); }

.archive-section { background: var(--white); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.archive-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--grey-100); border-radius: 4px; overflow: hidden;
  transition: var(--transition);
}
/* keep the scroll-reveal smooth (don't let the card transition clobber it) */
.archive-card.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: opacity, transform; }
.archive-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(36, 28, 21,0.08); border-color: var(--grey-200); }
.archive-card-media { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--cream); position: relative; }
.archive-card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.04); transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.archive-card:hover .archive-card-media img { transform: scale(1.05); filter: grayscale(0); }
.archive-card-media-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.5rem; opacity: 0.4; }
.archive-card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.archive-card-meta { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-400); display: flex; gap: 0.5rem; align-items: center; }
.archive-card-meta .dot { color: var(--accent); }
.archive-card-title { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.25; margin: 0.6rem 0 0.75rem; letter-spacing: -0.01em; }
.archive-card-title a { color: var(--black); transition: color 0.4s var(--ease); }
.archive-card-title a:hover { color: var(--accent); }
.archive-card-excerpt { font-size: 0.9rem; color: var(--grey-500); line-height: 1.75; font-weight: 300; margin-bottom: 1.25rem; }
.archive-card-more { margin-top: auto; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.archive-card-more .arrow { transition: transform 0.3s ease; }
.archive-card-more:hover .arrow { transform: translateX(4px); }

/* Pagination (custom class so it never collides with the header .nav-links) */
.archive-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.archive-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 0.6rem;
  border: 1px solid var(--grey-200); border-radius: 100px;
  font-family: var(--mono); font-size: 0.78rem; color: var(--grey-700);
  transition: var(--transition);
}
.archive-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.archive-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--white); }
.archive-pagination .page-numbers.dots { border: none; min-width: auto; }

@media (max-width: 1024px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .archive-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   404: header sits over a light hero, so show the dark logo + dark nav
   from the top (instead of the light-on-dark variant used elsewhere).
   =================================================================== */
body.error404 .site-header:not(.scrolled) .logo-on-dark { display: none; }
body.error404 .site-header:not(.scrolled) .logo-on-light { display: block; }
body.error404 .site-header:not(.scrolled) .nav-links a:not(.nav-cta) { color: var(--grey-500); }
body.error404 .site-header:not(.scrolled) .nav-links a:not(.nav-cta):hover { color: var(--black); }
body.error404 .site-header:not(.scrolled) .menu-toggle span { background: var(--black); }

/* ===================================================================
   ===== CLIENT PALETTE REVISION — warm light luxury ================
   Loads last, so these win the cascade. Two big mid-page sections that
   used a black background are flipped to soft beige with warm-brown ink,
   and turquoise is introduced as the secondary (interactive) accent.
   Gold (--accent) remains the primary accent; deep espresso (--black)
   now warms the hero, footer and thin ticker bands.
   =================================================================== */

/* ---------- Testimonials: black -> soft beige ---------- */
.testimonials { background: var(--cream); }
.testimonials-header { border-bottom-color: rgba(36, 28, 21, 0.1); }
.testimonials .section-title { color: var(--black); }
.testimonials .section-subtitle { color: var(--grey-500); }
.t-counter { color: var(--grey-500); }
.t-btn { border-color: rgba(36, 28, 21, 0.15); color: var(--black); }
.t-btn:hover { border-color: var(--turquoise); color: var(--turquoise); }
.t-quote { color: var(--black); }
.t-author { color: var(--black); }
.t-role { color: var(--grey-500); }
.t-image::after { border-color: rgba(36, 28, 21, 0.08); }

/* ---------- Process: black -> warm off-white ---------- */
.process-section { background: var(--off-white); }
.process-section::before { color: rgba(36, 28, 21, 0.035); }
.process-section .section-title { color: var(--black); }
.process-section .section-subtitle { color: var(--grey-500); }
.process-steps { border-top-color: rgba(36, 28, 21, 0.12); border-left-color: rgba(36, 28, 21, 0.08); }
.process-step { border-right-color: rgba(36, 28, 21, 0.08); }
.process-step:hover { background: rgba(36, 28, 21, 0.02); }
.process-step h4 { color: var(--black); }
.process-step p { color: var(--grey-500); }
.process-step-meta { color: var(--grey-400); }

/* ---------- Turquoise secondary accent (interactive touches) ---------- */
.scroll-progress { background: linear-gradient(90deg, var(--accent), var(--turquoise)); }
.section-dot::after { background: var(--turquoise); }
.section-dot.active { border-color: var(--turquoise); }
.section-dot:hover { border-color: var(--turquoise); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--turquoise); }

/* ---------- Typography refinement (Playfair / Jost) ---------- */
/* Keep animated counters from shifting width in the proportional label font. */
.stat-number, .about-stat-num, .t-counter { font-variant-numeric: tabular-nums; }

/* ===================================================================
   ===== HOMEPAGE VISUAL REFINEMENT — premium luxury polish =========
   Additive layer (loads last): more generous rhythm, stronger heading
   hierarchy, refined/warmer image treatment, softer depth. Structural
   layout is left untouched.
   =================================================================== */

/* --- Rhythm & breathing room (balanced, not excessive) --- */
.section { padding: clamp(4.25rem, 6vw, 2.25rem) 0; }
.stats-bar { padding: clamp(2.5rem, 4.5vw, 2rem) 0; }
.about-top { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* --- Visual hierarchy: eyebrows, titles, subtitles --- */
.section-label { font-size: 0.64rem; letter-spacing: 0.36em; color: var(--accent-dark); gap: 0.9rem; }
.section-label::before { width: 32px; background: var(--accent); }
.section-title { font-size: clamp(2.7rem, 5vw, 4.1rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.section-subtitle { font-size: 1.05rem; max-width: 560px; line-height: 1.9; }
.about-headline { font-size: clamp(2.4rem, 4.4vw, 3.7rem); line-height: 1.16; letter-spacing: -0.02em; }

/* --- Stats: more presence --- */
.stat-number { font-size: clamp(2.8rem, 4.6vw, 3.9rem); letter-spacing: -0.01em; }
.stat-label { letter-spacing: 0.26em; color: var(--grey-500); }

/* --- Image treatment: refined, warmer, softly framed --- */
.project-card { border-radius: 6px; }
.project-card img { 
  /* filter: grayscale(0.55) contrast(1.03) brightness(0.98); */
   transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.project-card:hover img { filter: grayscale(0) contrast(1.03); transform: scale(1.05); }
.project-card::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px;
}
.lifestyle-block-media { border-radius: 6px; box-shadow: 0 22px 50px rgba(36, 28, 21, 0.1); }
.lifestyle-block-media img,
.lifestyle-block-media .lifestyle-block-video { filter: grayscale(0.45) contrast(1.03); transition: transform 1.2s var(--ease), filter 0.7s var(--ease); }
.lifestyle-block:hover .lifestyle-block-media img,
.lifestyle-block:hover .lifestyle-block-media .lifestyle-block-video { transform: scale(1.04); filter: grayscale(0); }

/* --- Cards: softer, warmer depth --- */
.amenity-card { border-radius: 6px; }
.amenity-card:hover { box-shadow: 0 32px 64px -24px rgba(36, 28, 21, 0.18); }

/* --- Responsive: the luxury spacing/heading bumps above are unscoped and
       load after styles.css, so they would otherwise override the theme's
       mobile rules. Re-assert comfortable values for tablet/phone here. --- */
@media (max-width: 768px) {
  .section { padding: clamp(3rem, 8vw, 4.25rem) 0; }
  .stats-bar { padding: 2.5rem 0; }
  .section-title { font-size: clamp(2.1rem, 7vw, 3rem); }
  .about-headline { font-size: clamp(2rem, 7vw, 3rem); }
  .stat-number { font-size: clamp(1.2rem, 9vw, 3rem); }
}
@media (max-width: 575px) {
  .section { padding: 2.5rem 0; }
  .stats-bar { padding: 1.75rem 0; }
}

/* ===================================================================
   ===== LIGHT ANCHOR SECTIONS — premium warm stone (no dark theme) ==
   Replaces every flat espresso (--black) BACKGROUND — footer, marquee,
   CTA ticker, preloader — with the warm --stone tone + dark ink. (The
   espresso stays as the text colour; photographic heroes are untouched.)
   =================================================================== */
.site-footer { background: var(--stone); border-top: 1px solid var(--grey-200); }
.site-footer .logo-on-dark { display: none; }
.site-footer .logo-on-light { display: block; }

.footer-top { border-bottom-color: rgba(36, 28, 21, 0.12); }
.footer-brand p { color: var(--charcoal); }
.footer-col h4 { color: var(--black); }
.footer-col a { color: var(--charcoal); }
.footer-col a:hover { color: var(--accent-dark); }
.footer-col a.active { color: var(--black); }
.footer-contact-item { color: var(--charcoal); }
.footer-contact-link:hover { color: var(--accent-dark); }
.footer-bottom { color: var(--grey-700); }
.footer-bottom a { color: var(--grey-700); }
.footer-bottom a:hover { color: var(--black); }

/* Footer social icons on the light ground (brand colour still fills on hover) */
.site-footer .social-icon { border-color: var(--grey-300); color: var(--grey-700); }
.site-footer .social-icon:hover { color: var(--white); }

/* Marquee band */
.marquee { background: var(--stone); }
.marquee-item { color: rgba(36, 28, 21, 0.55); }

/* CTA ticker band (outline text) + the CTA bar that sits inside it */
.cta-ticker-section { background: var(--stone); }
.cta-ticker-text { -webkit-text-stroke-color: rgba(36, 28, 21, 0.32); }
.cta-ticker-text:hover { color: var(--black); -webkit-text-stroke-color: var(--black); }
.cta-bar { border-top-color: rgba(36, 28, 21, 0.12); }
.cta-bar-inner p { color: var(--grey-700); }

/* Preloader */
.preloader { background: var(--stone); }
.preloader-text { color: rgba(36, 28, 21, 0.6); }

/* ---------- About section — luxury image (replaces the old stats column) ---------- */
.about-media {
  position: relative;
  align-self: start;
  overflow: hidden;
  border-radius: 3px;
  background: var(--stone);
  /* champagne-gold offset panel + soft editorial depth */
  box-shadow:
    18px 18px 0 -1px rgba(var(--accent-rgb), 0.18),
    0 34px 60px -34px rgba(36, 28, 21, 0.55);
}

/* thin gold inner hairline + bottom vignette for a framed, premium read */
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 3px;
  background: linear-gradient(
    to top,
    rgba(36, 28, 21, 0.28) 0%,
    rgba(36, 28, 21, 0) 38%
  );
}

.about-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  filter: grayscale(0.18) contrast(1.02);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s ease;
}

.about-media:hover img {
  transform: scale(1.05);
  filter: grayscale(0);
}

/* keep the image alongside the long text as it scrolls (two-column layout only) */
@media (min-width: 1025px) {
  .about-media {
    position: sticky;
    top: 120px;
  }
}

/* ---------- About section — refined feature list ---------- */
.about-feature {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--grey-200);
  transition: border-color 0.4s ease;
}

.about-feature:hover {
  border-bottom-color: var(--accent);
}

.feature-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  min-width: 26px;
}

.about-feature h4 {
  transition: color 0.4s ease;
}

.about-feature:hover h4 {
  color: var(--accent-dark);
}

@media (max-width: 992px) {
  .about-media img {
    min-height: 380px;
  }
}

@media (max-width: 768px) {
  .about-media {
    box-shadow:
      10px 10px 0 -1px rgba(var(--accent-rgb), 0.18),
      0 24px 44px -30px rgba(36, 28, 21, 0.5);
  }

  .about-media img {
    min-height: 300px;
  }
}

/* ===================================================================
   NAVIGATION — contrast on the dark photographic hero
   Resting menu items were rgba(255,255,255,0.6) (too dim over the hero
   video, and on the dark mobile panel). Brighten them + add a soft
   shadow only while the header sits transparent over the hero.
   =================================================================== */
.nav-links a { color: rgba(255, 255, 255, 0.92); }
.site-header:not(.scrolled) .nav-links a:not(.nav-cta) {
  text-shadow: 0 1px 2px rgba(36, 28, 21, 0.55), 0 1px 12px rgba(36, 28, 21, 0.45);
}
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active { color: #fff; }

/* Scrolled (light) header: dark, shadow-free links with solid contrast */
.site-header.scrolled .nav-links a { color: var(--grey-700); text-shadow: none; }
.site-header.scrolled .nav-links a:not(.nav-cta):hover,
.site-header.scrolled .nav-links a:not(.nav-cta).active { color: var(--black); }

/* Logo: lift the gold wordmark off the dark hero with a soft halo (brand
   colour preserved). Removed once the header turns light on scroll. */
.site-header:not(.scrolled) .logo-on-dark {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

/* ===================================================================
   INNER PAGE HERO — heading + intro legibility over the banner photo
   The <h1> had no shadow, the italic em was a washed-out grey, and the
   intro text was thin 300-weight with no shadow — all hard to read on a
   bright banner. Strengthen contrast + lift the typography.
   =================================================================== */
.page-hero-content > .hero-tag {
  color: var(--accent-light);
  text-shadow: 0 1px 8px rgba(36, 28, 21, 0.5);
}
.page-hero-content h1 {
  text-shadow: 0 2px 4px rgba(36, 28, 21, 0.45), 0 4px 30px rgba(36, 28, 21, 0.6);
}
/* italic accent reads as on-brand gold instead of low-contrast grey */
.page-hero-content h1 .hero-line-lg em { color: var(--accent-light); }

.page-hero-content .hero-text {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 1px 2px rgba(36, 28, 21, 0.55), 0 1px 16px rgba(36, 28, 21, 0.6);
}
