/* =========================================================================
   Kingspoint Private Residences — SEM2 Scroll-driven Landing
   Design system: Daylight Gallery (LOCKED 2026-04-17)
   ========================================================================= */

:root {
  --ivory: #F7F2EA;
  --ivory-deep: #EFE8DB;
  --emerald: #1F3A2F;
  --emerald-soft: #2C4C3E;
  --bronze: #9B7A3F;
  --bronze-30: rgba(155,122,63,0.30);
  --bronze-60: rgba(155,122,63,0.60);
  --charcoal: #1A1A1A;
  --charcoal-70: rgba(26,26,26,0.70);

  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body: "Inter Tight", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(24px, 5vw, 80px);
  --edge: clamp(32px, 8vw, 120px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body { min-height: 100vh; }
img { max-width: 100%; display: block; }

::selection { background: var(--emerald); color: var(--ivory); }

/* --- utility / primitives --- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-block;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bronze-30);
  margin-bottom: 28px;
}
.micro {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-block;
  margin-right: 10px;
}
em { font-family: var(--f-display); font-style: italic; color: var(--emerald); font-weight: 400; }
em.gold, .gold { color: var(--bronze); }

/* =========================================================================
   FIXED BACKGROUND LAYERS
   ========================================================================= */
.noise-svg { position: absolute; width: 0; height: 0; }

#atmosphere {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  filter: url(#grainFilter);
  opacity: 0.28;
  mix-blend-mode: multiply;
}

/* =========================================================================
   STAGE VIEWPORT — pinned fullscreen image stages
   ========================================================================= */
.stage-viewport {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--emerald);
}

.stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.stage.active { opacity: 1; }

.stage-media {
  position: absolute;
  inset: -4%;
  overflow: hidden;
}
.stage-media img,
.stage-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 6s ease-out;
  filter: saturate(0.92) contrast(1.02);
}
.stage.active .stage-media img,
.stage.active .stage-media video {
  transform: scale(1.00);
}

/* Parallax image (stage-2): driven by JS, no CSS transition fighting */
.stage-media img.parallax-img {
  transition: none !important;
  will-change: transform;
}
.stage.active .stage-media img.parallax-img {
  /* JS handles the transform via inline style — don't reset */
  transform: none;
}

/* Autoplay hero video: always running, no wait for .active */
.stage-media video.hero-video {
  transform: scale(1.02);
  transition: transform 6s ease-out;
}
.stage.active .stage-media video.hero-video {
  transform: scale(1.00);
}

/* Ivory-tinted gradient veil for readability */
.stage-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(247, 242, 234, 0.55) 0%,
      rgba(247, 242, 234, 0.25) 35%,
      rgba(31, 58, 47, 0.00) 60%,
      rgba(31, 58, 47, 0.35) 100%);
  pointer-events: none;
}
.stage-veil.strong {
  background:
    linear-gradient(100deg,
      rgba(247, 242, 234, 0.82) 0%,
      rgba(247, 242, 234, 0.65) 45%,
      rgba(247, 242, 234, 0.35) 100%);
}

/* Per-stage color/tint overrides for cinematic shifts */
.stage[data-stage="1"] .stage-media > * { filter: saturate(0.88) contrast(1.02) brightness(0.82); }
.stage[data-stage="1"] .stage-veil {
  background:
    radial-gradient(ellipse 80% 70% at 50% 55%,
      rgba(15, 15, 26, 0.60) 0%,
      rgba(15, 15, 26, 0.40) 45%,
      rgba(15, 15, 26, 0.10) 85%),
    linear-gradient(180deg,
      rgba(15, 15, 26, 0.35) 0%,
      rgba(15, 15, 26, 0.10) 40%,
      rgba(15, 15, 26, 0.45) 100%);
}
.stage[data-stage="2"] .stage-media > * { filter: saturate(0.88) contrast(1.04) brightness(0.86); }
.stage[data-stage="2"] .stage-veil {
  background:
    linear-gradient(95deg,
      rgba(15, 15, 26, 0.62) 0%,
      rgba(15, 15, 26, 0.38) 42%,
      rgba(15, 15, 26, 0.15) 70%,
      rgba(15, 15, 26, 0.30) 100%);
}
.stage[data-stage="3"] .stage-media > * { filter: saturate(0.92) contrast(1.06) brightness(0.90); }
.stage[data-stage="3"] .stage-veil {
  background:
    linear-gradient(260deg,
      rgba(15, 15, 26, 0.65) 0%,
      rgba(15, 15, 26, 0.38) 45%,
      rgba(15, 15, 26, 0.15) 100%);
}
.stage[data-stage="4"] .stage-media > * { filter: saturate(1.10) contrast(1.08) brightness(0.96); }
.stage[data-stage="5"] .stage-media > * { filter: saturate(0.92) contrast(1.06); }
.stage[data-stage="6"] .stage-media > * { filter: saturate(0.80) contrast(1.02) brightness(1.05); }

/* =========================================================================
   TOP FRAME
   ========================================================================= */
.top-frame {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--edge);
  pointer-events: none;
}
.top-frame > * { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--bronze);
  color: var(--bronze);
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.01em;
}
.brand-name em { font-size: 1em; color: var(--bronze); }
.brand.small .brand-name { font-size: 14px; }
.brand.small .brand-mark { width: 30px; height: 30px; font-size: 13px; }

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.top-nav .eyebrow,
.top-nav .nav-eyebrow {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  font-size: 12px;
  color: #E7C77A;
  text-shadow: 0 1px 8px rgba(0,0,0,0.75), 0 0 2px rgba(0,0,0,0.9);
  letter-spacing: 0.28em;
}
.nav-eyebrow { display: none; }
@media (min-width: 1280px) { .nav-eyebrow { display: inline-block; } }

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(14px, 2.2vw, 28px);
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 0;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.22,0.61,0.36,1);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--bronze); }

.brand { text-decoration: none; }
.brand:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(247, 242, 234, 0.25);
  padding: 9px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover { border-color: var(--bronze); }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 42;
  background: linear-gradient(160deg, var(--emerald) 0%, #0F1F18 100%);
  padding: 120px var(--edge) 60px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22,0.61,0.36,1);
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav-links a {
  display: block;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.1;
  color: var(--ivory);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(247, 242, 234, 0.1);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-nav-links a:hover { color: var(--bronze); padding-left: 8px; }
.mobile-nav-cta a {
  color: var(--bronze);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 24px;
  border-bottom: none;
  border-top: 1px solid var(--bronze-60);
  padding-top: 24px;
}

/* =========================================================================
   PRODUCT SPEC BUTTONS (Emerald / Sapphire CTAs)
   ========================================================================= */
.spec-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.spec-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.spec-btn {
  background: var(--emerald);
  color: var(--ivory);
  border: 1px solid var(--emerald);
}
.spec-btn:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  transform: translateY(-1px);
}
.spec-btn-ghost {
  background: transparent;
  color: var(--emerald);
  border: 1px solid var(--bronze-30);
}
.spec-btn-ghost:hover {
  color: var(--bronze);
  border-color: var(--bronze);
  background: transparent;
  transform: translateY(-1px);
}

.brand-name,
.brand-mark {
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.brand-mark { box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }

/* =========================================================================
   PROGRESS RAIL (right edge)
   ========================================================================= */
.progress-rail {
  position: fixed;
  top: 0; bottom: 0; right: 0;
  width: 72px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.progress-rail-inner {
  position: relative;
  width: 1px;
  height: 50vh;
  background: var(--bronze-30);
  margin-bottom: 20px;
}
.progress-fill {
  position: absolute;
  top: 0; left: -1px;
  width: 3px;
  height: 0%;
  background: var(--bronze);
  transition: height 0.25s ease-out;
}
.progress-ticks {
  position: absolute;
  top: 25vh;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: calc(50vh / 6);
  height: 50vh;
  justify-content: space-between;
}
.tick {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  opacity: 0.45;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: opacity 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.tick::before {
  content: attr(data-n);
  display: block;
  margin-bottom: 10px;
  color: var(--bronze);
  opacity: 0.7;
}
.tick.active { opacity: 1; color: var(--emerald); }
.tick.active::before { color: var(--emerald); }

/* =========================================================================
   SCROLL TRACK (invisible spacers that drive the pinned stages)
   ========================================================================= */
.scroll-track {
  position: relative;
  z-index: 10;
}
.scene {
  height: 100vh;
  min-height: 680px;
  position: relative;
  display: flex;
  padding: 0 var(--edge);
  pointer-events: none;
}
/* Video chapters: scroll-budget tightly matches video duration so every
   scroll tick advances the footage — no dead zones at top or bottom.
   Height 150vh = 50vh of scrubbing after the overlay is pinned at top. */
.scene#scene-1, .scene#scene-2 {
  height: 150vh;
  display: block;
  padding-top: 0;
  padding-bottom: 0;
}
.scene#scene-1 > .overlay,
.scene#scene-2 > .overlay {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--edge) 80px;
}
.scene#scene-1 > .overlay-hero { align-items: center; text-align: center; }

/* Video chapters: light text on darkened video background for contrast */
.scene#scene-1 .display,
.scene#scene-1 .headline,
.scene#scene-2 .headline,
.scene#scene-3 .headline {
  color: var(--ivory);
  text-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.35);
}
.scene#scene-1 .lede,
.scene#scene-1 .body,
.scene#scene-2 .body,
.scene#scene-3 .body {
  color: rgba(247, 242, 234, 0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.scene#scene-1 .display em,
.scene#scene-1 .headline em,
.scene#scene-2 .headline em,
.scene#scene-3 .headline em {
  color: var(--bronze);
}
.scene#scene-1 .eyebrow,
.scene#scene-2 .eyebrow,
.scene#scene-3 .eyebrow {
  color: var(--bronze);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.scene#scene-1 .hero-bottom,
.scene#scene-1 .spec,
.scene#scene-1 .compass { color: rgba(247, 242, 234, 0.85); }
.scene#scene-1 .hairline { background: rgba(247, 242, 234, 0.4); }
.scene#scene-2 .detail-grid { color: var(--ivory); }
.scene#scene-2 .detail-grid .big,
.scene#scene-1 .spec-num { color: var(--ivory); }
.scene#scene-2 .detail-grid .micro,
.scene#scene-2 .detail-grid .unit,
.scene#scene-1 .spec-unit { color: rgba(247, 242, 234, 0.75); }
.scene .overlay,
.scene .cta-panel {
  pointer-events: auto;
}

/* =========================================================================
   OVERLAY CONTENT BLOCKS
   ========================================================================= */
.overlay {
  position: relative;
  z-index: 2;
  max-width: 640px;
  align-self: center;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22,0.61,0.36,1);
}
.scene.in-view .overlay { opacity: 1; transform: translateY(0); }

.overlay-hero {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  align-self: center;
}
.overlay-hero .eyebrow {
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.overlay-hero .eyebrow::before,
.overlay-hero .eyebrow::after {
  content: "";
  width: 40px; height: 1px;
  background: var(--bronze-30);
}

.overlay-left { margin-right: auto; padding-right: 80px; }
.overlay-right { margin-left: auto; padding-left: 80px; }

/* ---- Typography ---- */
.display {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(54px, 9vw, 140px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin: 0 0 36px;
}
.display em {
  font-weight: 400;
  font-size: 1em;
}

/* Hero logo replaces wordmark text */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.display-logo {
  margin: 0 0 36px;
  display: flex;
  justify-content: center;
}
.hero-logo {
  width: clamp(280px, 44vw, 640px);
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.45)) drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}

/* =========================================================================
   PROMO SECTION — 2-product teaser (after hero, before flythrough)
   ========================================================================= */
.scene-promo {
  height: auto;
  min-height: 100vh;
  position: relative;
  z-index: 11;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-deep) 100%);
  padding: 120px var(--edge) 100px;
  display: block;
  pointer-events: auto;
}
.scene-promo::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(15,15,26,0.35) 0%, rgba(247,242,234,0) 100%);
  pointer-events: none;
}
.promo-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.promo-head {
  text-align: center;
  margin-bottom: 56px;
}
.promo-head .eyebrow {
  border-bottom: none;
  padding-bottom: 0;
}
.promo-head .headline {
  font-size: clamp(32px, 4.2vw, 54px);
  margin: 8px 0 0;
}
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.promo-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--ivory);
  border: 1px solid var(--bronze-30);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.4s ease, border-color 0.3s ease;
  box-shadow: 0 20px 60px -40px rgba(31,58,47,0.25);
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px -30px rgba(31,58,47,0.35);
  border-color: var(--bronze-60);
}
.promo-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--emerald);
}
.promo-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}
.promo-card:hover .promo-media img { transform: scale(1.08); }
.promo-body {
  padding: 32px 34px 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.promo-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
  color: var(--charcoal);
}
.promo-title em { font-weight: 400; }
.promo-sub {
  font-size: 14px;
  color: var(--charcoal-70);
  margin: 0 0 10px;
  font-family: var(--f-body);
}
.promo-price {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 22px;
  color: var(--charcoal);
  padding: 16px 0;
  border-top: 1px solid var(--bronze-30);
  border-bottom: 1px solid var(--bronze-30);
  margin: 6px 0 14px;
}
.promo-price em {
  font-weight: 400;
  color: var(--charcoal);
  font-size: 30px;
  letter-spacing: -0.01em;
}
.promo-price span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-left: 6px;
}
.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-top: 6px;
}
.promo-cta svg { transition: transform 0.3s ease; }
.promo-card:hover .promo-cta svg { transform: translateX(4px); }
.headline {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  margin: 0 0 28px;
}
.headline em { font-weight: 400; }

.headline-product {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--charcoal);
  margin: 0 0 28px;
}
.headline-product em { font-weight: 400; }

.lede {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--charcoal-70);
  margin: 0 0 48px;
}
.body {
  font-size: 16px;
  line-height: 1.65;
  max-width: 46ch;
  color: var(--charcoal-70);
  margin: 0 0 20px;
}
.tag {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  color: var(--emerald);
  margin: -16px 0 24px;
}

/* ---- Hero bottom row ---- */
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 60px;
  color: var(--charcoal-70);
}
.spec {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.spec .spec-num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--emerald);
}
.spec .spec-unit {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bronze);
}
.hairline {
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: var(--bronze-30);
}
.compass {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--bronze);
}

/* ---- Detail grid (stage 2) ---- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--bronze-30);
  max-width: 420px;
}
.detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-grid .big {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--emerald);
  letter-spacing: -0.02em;
}
.detail-grid .unit {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* Rotating headline (scene-2) — crossfade each statement */
.headline-rotator {
  transition: opacity 0.55s cubic-bezier(0.22,0.61,0.36,1), transform 0.55s cubic-bezier(0.22,0.61,0.36,1);
  will-change: opacity, transform;
}
.headline-rotator.fade-out {
  opacity: 0;
  transform: translateY(-12px);
}

/* ---- Product spec panel (stages 4 & 6) ---- */
.overlay-spec {
  background: rgba(247, 242, 234, 0.88);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding: 48px 56px;
  border: 1px solid var(--bronze-30);
  max-width: 560px;
}
.overlay-spec .eyebrow { margin-bottom: 24px; }

.price-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
  border-top: 1px solid var(--bronze-30);
  border-bottom: 1px solid var(--bronze-30);
  margin-bottom: 24px;
}
.price {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.price em { font-weight: 400; font-size: 1em; }
.price-unit {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-left: 8px;
  font-style: normal;
}

.spec-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-item .big {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  color: var(--emerald);
}
.spec-item .unit {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}
.spec-tail {
  margin-top: 22px;
  font-size: 13px;
  color: var(--charcoal-70);
  font-family: var(--f-body);
}

/* ---- Amenity list (stage 5) ---- */
.amenity-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
}
.amenity-list li {
  display: flex;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--bronze-30);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 20px;
  color: var(--charcoal);
}
.amenity-list .micro { margin-right: 18px; min-width: 32px; }

/* =========================================================================
   STAGE 7 — CTA / Form
   ========================================================================= */
.scene-cta {
  padding: 0;
  align-items: stretch;
  justify-content: flex-end;
}
.cta-panel {
  position: relative;
  z-index: 3;
  width: min(560px, 92vw);
  margin-right: var(--edge);
  align-self: center;
  background: var(--ivory);
  border: 1px solid var(--bronze-30);
  padding: 48px 52px 40px;
  box-shadow: 0 40px 80px -40px rgba(31,58,47,0.3);
}
.cta-panel .headline {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 18px;
}
.cta-panel .body { margin-bottom: 32px; }

.brochure-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field:nth-child(1), .field:nth-child(3), .field:nth-child(4) { grid-column: 1 / -1; }

.field label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  display: flex;
  align-items: baseline;
}
.field label .micro {
  color: var(--emerald);
  margin-right: 8px;
}
.field input,
.field select {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bronze-30);
  padding: 6px 0 10px;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%239B7A3F' stroke-width='1' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 18px;
}
.field input:focus,
.field select:focus {
  border-bottom-color: var(--emerald);
}
.field input:invalid:not(:placeholder-shown) {
  border-bottom-color: #a04040;
}

.cta-btn {
  grid-column: 1 / -1;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 26px;
  background: var(--emerald);
  color: var(--ivory);
  border: none;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.cta-btn:hover {
  background: var(--charcoal);
  transform: translateY(-1px);
}
.cta-btn svg { transition: transform 0.3s ease; }
.cta-btn:hover svg { transform: translateX(4px); }

.micro-foot {
  grid-column: 1 / -1;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  text-align: center;
  margin: 6px 0 0;
  opacity: 0.75;
}

.form-success {
  text-align: center;
  padding: 20px 0;
}
.form-success .headline {
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 18px 0 12px;
}

/* =========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================= */
.announce {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 45;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--emerald-soft) 100%);
  color: var(--ivory);
  border-bottom: 1px solid var(--bronze-60);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.22,0.61,0.36,1);
}
.announce.closed { transform: translateY(-100%); }
body.announce-open { padding-top: 44px; }
.announce-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 11px var(--edge);
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.announce-dot {
  width: 8px; height: 8px;
  background: var(--bronze);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--bronze-60);
  animation: announcePulse 2.4s ease-out infinite;
  flex-shrink: 0;
}
@keyframes announcePulse {
  0%   { box-shadow: 0 0 0 0 rgba(155,122,63,0.5); }
  100% { box-shadow: 0 0 0 12px rgba(155,122,63,0); }
}
.announce-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-text strong {
  font-weight: 600;
  color: var(--bronze);
  margin-right: 10px;
}
.announce-text em {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--bronze);
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.announce-cta {
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid var(--bronze-60);
  padding: 7px 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.announce-cta:hover { background: var(--bronze); border-color: var(--bronze); }
.announce-close {
  background: transparent;
  border: none;
  color: var(--ivory);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.announce-close:hover { opacity: 1; }

/* Shift fixed top-frame down when the announcement bar is visible */
body.announce-open .top-frame { top: 44px; }

/* =========================================================================
   GENERIC CONTENT SECTION
   ========================================================================= */
.content-section {
  position: relative;
  z-index: 11;
  background: var(--ivory);
  padding: clamp(80px, 10vw, 140px) var(--edge);
}
.content-section + .content-section { border-top: 1px solid var(--bronze-30); }
.content-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-head {
  max-width: 820px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}
.section-head .eyebrow {
  border-bottom: none;
  padding-bottom: 0;
}
.section-head .headline {
  font-size: clamp(32px, 4.4vw, 56px);
  margin: 12px 0 18px;
}
.section-lede {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--charcoal-70);
  margin: 0;
}

/* =========================================================================
   STATS STRIP
   ========================================================================= */
.stats-section {
  background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-soft) 100%);
  color: var(--ivory);
  padding: clamp(70px, 8vw, 110px) var(--edge);
}
.stats-section + .content-section { border-top: none; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px;
  border-left: 1px solid rgba(247, 242, 234, 0.18);
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  color: var(--ivory);
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.stat-num em {
  color: var(--bronze);
  font-weight: 400;
  font-size: 1em;
}
.stat-num small {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 242, 234, 0.75);
  font-weight: 400;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bronze);
}
.stat-note {
  font-size: 13px;
  color: rgba(247, 242, 234, 0.7);
}

/* =========================================================================
   FEATURES (3 PILLARS)
   ========================================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.feature {
  background: var(--ivory-deep);
  border: 1px solid var(--bronze-30);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.feature:hover { border-color: var(--bronze-60); transform: translateY(-4px); }
.feature-num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--bronze);
}
.feature-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0;
}
.feature-title em { font-weight: 400; }
.feature-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal-70);
  margin: 0;
}

/* =========================================================================
   FACILITIES (6 ICON GRID)
   ========================================================================= */
.facilities-section { background: var(--ivory-deep); }
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
}
.facility {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0;
}
.facility-icon {
  color: var(--emerald);
  width: 40px; height: 40px;
}
.facility-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 20px;
  margin: 0;
  color: var(--charcoal);
}
.facility-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--charcoal-70);
  margin: 0;
}

/* =========================================================================
   LOCATION & PROXIMITY
   ========================================================================= */
.location-section { background: var(--ivory); }
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--bronze-30);
  border: 1px solid var(--bronze-30);
}
.loc-item {
  background: var(--ivory);
  padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 36px);
  display: flex;
  align-items: baseline;
  gap: 20px;
  transition: background 0.3s ease;
}
.loc-item:hover { background: var(--ivory-deep); }
.loc-mins {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 38px;
  color: var(--emerald);
  line-height: 1;
  min-width: 60px;
}
.loc-name {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.35;
  color: var(--charcoal);
}

/* =========================================================================
   INVESTMENT / MRT
   ========================================================================= */
.investment-section { background: var(--ivory-deep); }
.investment-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--charcoal);
  border: 1px solid var(--bronze-30);
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.mrt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mrt-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--bronze-30);
}
.mrt-list li:last-child { border-bottom: none; }
.mrt-list .loc-mins { font-size: 32px; min-width: 54px; }
.mrt-list .loc-name { font-size: 17px; }

/* =========================================================================
   VIRTUAL TOUR
   ========================================================================= */
.tour-section { background: var(--charcoal); color: var(--ivory); }
.tour-section .section-head .headline { color: var(--ivory); }
.tour-section .section-head .headline em { color: var(--bronze); }
.tour-section .section-head .eyebrow { color: var(--bronze); }
.tour-video {
  max-width: 1000px;
  margin: 0 auto;
  border-color: rgba(155, 122, 63, 0.4);
}

/* =========================================================================
   GALLERY VISIT CTA
   ========================================================================= */
.gallery-cta-section { background: var(--emerald); color: var(--ivory); }
.gallery-cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.gallery-cta-copy .eyebrow { color: var(--bronze); border-color: var(--bronze-60); }
.gallery-cta-copy .headline { color: var(--ivory); margin-bottom: 18px; font-size: clamp(32px, 4vw, 48px); }
.gallery-cta-copy .headline em { color: var(--bronze); }
.gallery-cta-copy .section-lede { color: rgba(247, 242, 234, 0.78); }
.gallery-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.cta-btn-primary,
.cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.cta-btn-primary {
  background: var(--bronze);
  color: var(--emerald);
  border: 1px solid var(--bronze);
}
.cta-btn-primary:hover { background: var(--ivory); border-color: var(--ivory); transform: translateY(-1px); }
.cta-btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(247, 242, 234, 0.45);
}
.cta-btn-ghost:hover { background: rgba(247, 242, 234, 0.08); border-color: var(--ivory); }

/* =========================================================================
   FOOTER / LEGAL
   ========================================================================= */
.legal {
  position: relative;
  z-index: 12;
  background: var(--ivory);
  border-top: 1px solid var(--bronze-30);
  padding: clamp(60px, 7vw, 96px) var(--edge) 48px;
}
.legal-top {
  max-width: 1200px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--bronze-30);
}
.legal-brand .brand { margin-bottom: 18px; }
.legal-brand .brand-name { color: var(--charcoal); }
.footer-tag {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  color: var(--charcoal-70);
  margin: 0;
}
.footer-heading {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--emerald); }
.footer-contact address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--charcoal-70);
  margin: 0 0 18px;
}
.footer-contact-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
  font-size: 14px;
}
.footer-contact-line .micro { margin: 0 0 2px; color: var(--bronze); }
.footer-contact-line a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-contact-line a:hover { color: var(--emerald); }
.footer-socials {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bronze-30);
  color: var(--bronze);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-socials a:hover { background: var(--emerald); color: var(--ivory); border-color: var(--emerald); }

.legal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.disclaimer {
  font-size: 12px;
  line-height: 1.7;
  color: var(--charcoal-70);
  margin: 0;
  max-width: 68ch;
}
.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--bronze-30);
  padding-top: 24px;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* =========================================================================
   BROCHURE GATE MODAL
   ========================================================================= */
.bm-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(15, 15, 26, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bm-modal[hidden] { display: none; }
.bm-modal.open { opacity: 1; }
.bm-panel {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--bronze-30);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.55);
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 44px 44px 38px;
  transform: translateY(12px);
  transition: transform 0.4s cubic-bezier(0.22,0.61,0.36,1);
}
.bm-modal.open .bm-panel { transform: translateY(0); }
.bm-close {
  position: absolute;
  top: 10px; right: 14px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--charcoal-70);
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.2s ease;
}
.bm-close:hover { color: var(--emerald); }
.bm-head { margin-bottom: 28px; }
.bm-head .eyebrow {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 14px;
}
.bm-head .headline {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
}
.bm-lede {
  font-size: 14px;
  line-height: 1.55;
  color: var(--charcoal-70);
  margin: 0;
}
.bm-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.bm-form .field { gap: 8px; }
.bm-opt {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--charcoal-70);
  letter-spacing: 0.15em;
  margin-left: 6px;
  text-transform: none;
}
.bm-form .cta-btn { margin-top: 6px; }
.bm-form .cta-btn[disabled] { opacity: 0.55; cursor: wait; }
.bm-error {
  margin: 4px 0 0;
  font-size: 13px;
  color: #a04040;
}
.bm-success {
  text-align: center;
  padding: 8px 0 4px;
}
.bm-success .eyebrow { border-bottom: none; padding-bottom: 0; }
.bm-success .headline { font-size: 24px; margin: 14px 0 10px; }
.bm-success a { color: var(--emerald); }
@media (max-width: 768px) {
  .bm-panel { padding: 32px 24px 28px; }
  .bm-head .headline { font-size: 22px; }
}

/* =========================================================================
   WHATSAPP BUBBLE
   ========================================================================= */
.wa-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.wa-root.visible { opacity: 1; transform: translateY(0); }

.wa-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #25d366;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-bubble:hover { transform: scale(1.06); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5); }
.wa-bubble::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0.4;
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.wa-pop {
  width: 300px;
  background: var(--ivory);
  border: 1px solid var(--bronze-30);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.25);
  padding: 18px 18px 16px;
  font-family: var(--f-body);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.wa-pop:not([hidden]) { opacity: 1; transform: translateY(0); display: block; }

.wa-pop-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bronze-30);
  margin-bottom: 14px;
  position: relative;
}
.wa-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--ivory);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
}
.wa-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--charcoal);
}
.wa-status {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #25d366;
  margin-top: 2px;
}
.wa-close {
  position: absolute;
  right: -4px; top: -4px;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--charcoal-70);
  cursor: pointer;
  padding: 4px 8px;
}
.wa-msg p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--ivory-deep);
  padding: 10px 14px;
  border-radius: 2px 12px 12px 12px;
}
.wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.wa-cta:hover { background: #1fb755; }

/* =========================================================================
   RESPONSIVE — Mobile
   ========================================================================= */
@media (max-width: 768px) {
  :root { --edge: 24px; }

  #atmosphere { display: none; }
  .grain { opacity: 0.18; }

  .top-frame { padding: 18px var(--edge); }
  .brand-name { font-size: 13px; }
  .top-nav .eyebrow { display: none; }

  .progress-rail { display: none; }

  .scene {
    padding: 100px var(--edge) 60px;
    height: 100vh;
    align-items: center;
  }
  .overlay {
    margin-top: 0;
    padding: 0;
    max-width: 100%;
  }
  .overlay-left, .overlay-right { margin: 0; padding: 0; }

  .display { font-size: clamp(44px, 13vw, 72px); }
  .headline { font-size: clamp(28px, 7vw, 40px); }
  .headline-product { font-size: clamp(48px, 14vw, 80px); }

  .hero-bottom { flex-direction: column; gap: 14px; margin-top: 40px; }
  .hairline { max-width: 120px; }

  .detail-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .overlay-spec {
    padding: 32px 28px;
  }
  .spec-row { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Form scene: let it grow to fit content so the submit button isn't clipped
     when the form is taller than the phone's viewport. */
  .scene-cta {
    padding: 80px 0 60px;
    justify-content: center;
    height: auto;
    min-height: 0;
  }
  .cta-panel {
    margin: 0 var(--edge);
    padding: 32px 24px 28px;
    width: auto;
  }
  .brochure-form { grid-template-columns: 1fr; gap: 18px; }
  .field:nth-child(1), .field:nth-child(3) { grid-column: auto; }

  .legal-inner { grid-template-columns: 1fr; gap: 24px; }
  .legal .brand { grid-row: auto; }

  .wa-root { right: 16px; bottom: 16px; }
  .wa-pop { width: 260px; }

  .hero-logo { width: clamp(220px, 70vw, 400px); }

  .scene-promo { padding: 80px var(--edge) 60px; }
  .promo-grid { grid-template-columns: 1fr; gap: 20px; }
  .promo-body { padding: 24px 22px 26px; }
  .promo-head { margin-bottom: 36px; }

  /* Top frame: hide brand name on mobile (KP mark only). Swap desktop nav for hamburger. */
  .brand-name { display: none; }
  .nav-links { display: none; }
  .top-nav .eyebrow,
  .top-nav .nav-eyebrow { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Announcement bar: compact single-line on mobile, fixed so the top-frame
     sits stacked right below it (not obscured). */
  .announce-inner { padding: 10px var(--edge); gap: 10px; font-size: 10px; letter-spacing: 0.14em; }
  .announce-text { font-size: 10px; white-space: normal; line-height: 1.4; }
  .announce-text em { font-size: 12px; }
  .announce-cta { display: none; }
  body.announce-open { padding-top: 54px; }
  body.announce-open .top-frame { top: 54px; }
  .top-frame { padding: 14px var(--edge); }

  /* Emerald 70 headline: make sure space between word and number */
  .headline-product { font-size: clamp(40px, 13vw, 72px); }

  /* Content sections */
  .content-section { padding: 64px var(--edge); }
  .section-head { margin-bottom: 36px; }
  .section-head .headline { font-size: clamp(26px, 7vw, 38px); }

  /* Stats: 2x2 grid on mobile */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .stat { border-left: none; border-top: 1px solid rgba(247, 242, 234, 0.14); padding-top: 24px; }
  .stat:first-child, .stat:nth-child(2) { border-top: none; padding-top: 0; }
  .stat-num { font-size: clamp(48px, 14vw, 72px); }

  /* Features: stack */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature { padding: 28px 24px; }

  /* Facilities: 2-col on mobile */
  .facilities-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .facility { padding: 16px 0; gap: 10px; }
  .facility-title { font-size: 17px; }
  .facility-body { font-size: 13px; }

  /* KPR: single column, readout unpinned */

  /* Location: single column list */
  .location-grid { grid-template-columns: 1fr; }
  .loc-item { padding: 22px 20px; gap: 16px; }
  .loc-mins { font-size: 32px; min-width: 54px; }
  .loc-name { font-size: 15px; }

  /* Investment: stack */
  .investment-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Gallery CTA: stack */
  .gallery-cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .gallery-cta-actions { flex-direction: column; }

  /* Footer: stack columns */
  .legal-top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; margin-bottom: 36px; }
  .legal-inner { grid-template-columns: 1fr; gap: 18px; }
}

/* Phablet/small tablet tweaks */
@media (max-width: 1024px) and (min-width: 769px) {
  .facilities-grid { grid-template-columns: 1fr 1fr; }
  .legal-top { grid-template-columns: 1fr 1fr; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.2s !important;
  }
  #atmosphere { display: none; }
  .stage-media img, .stage-media video { transform: none !important; }
  .overlay { opacity: 1 !important; transform: none !important; }
  .stage { opacity: 1 !important; }
}
