/* ============================================================
   GIOVANNI VASQUEZ · SYNERGY REALTY ADVISORS
   Brand colors:
     red    #ed1c23   navy  #1b1464
     orange #ff9600   gray  #50504a
   ============================================================ */

:root {
  --red:    #ed1c23;
  --navy:   #1b1464;
  --orange: #ff9600;
  --gray:   #50504a;
  --ink:    #14123a;       /* deep text */
  --paper:  #ffffff;
  --mist:   #f4f5f9;       /* light section bg */
  --line:   #e6e7ef;

  --radius-pill: 999px;
  --shadow-sm: 0 6px 20px rgba(20, 18, 58, .08);
  --shadow-md: 0 18px 50px rgba(20, 18, 58, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);          /* strong ease-out (Emil) */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);  /* strong ease-in-out for on-screen movement */

  --nav-h: 76px;
  --maxw: 1180px;

  /* semantic z-index scale */
  --z-base: 1;
  --z-search-card: 5;
  --z-nav: 100;
  --z-intro: 1000;

  --font-display: 'Space Grotesk', system-ui, sans-serif;     /* tech display: headings, prices, the name */
  --font-head: 'Inter', system-ui, sans-serif;               /* UI, labels, buttons, legible numbers */
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Keyboard focus — visible, on-brand, never removed without replacement */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; }
/* don't show the ring on mouse/touch, only keyboard */
:focus:not(:focus-visible) { outline: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section__title  { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.04; color: var(--navy); letter-spacing: -.01em; text-wrap: balance; }
.section__eyebrow{ font-family: var(--font-head); font-weight: 700; letter-spacing: 3px; font-size: .78rem; color: var(--red); margin-bottom: 10px; }
.section__lead   { color: var(--gray); font-size: 1.08rem; max-width: 620px; margin-top: 12px; }

/* ============================================================
   BUTTONS — round pills, hover swaps color
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 14px 30px; cursor: pointer; border: 2px solid transparent;
  border-radius: var(--radius-pill);
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .16s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn--pill { letter-spacing: .3px; }

/* primary = red, hovers to navy */
.btn--primary   { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(237,28,35,.32); }
.btn--primary:hover   { background: var(--navy); box-shadow: 0 12px 30px rgba(27,20,100,.40); transform: translateY(-2px); }

/* secondary = navy, hovers to orange */
.btn--secondary { background: var(--navy); color: #fff; }
.btn--secondary:hover { background: var(--orange); color: var(--ink); transform: translateY(-2px); }

/* ghost on dark hero = outline white -> fills red */
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }

/* ghost on light bg = outline navy -> fills navy */
.btn--ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost-dark:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* nav cta */
.btn--nav-cta { padding: 10px 22px; background: var(--red); color: #fff; }
.btn--nav-cta:hover { background: var(--navy); }

/* ============================================================
   BRAND INTRO OVERLAY (first visit)
   ============================================================ */
.intro { position: fixed; inset: 0; z-index: var(--z-intro); background: #05060f;
  display: grid; place-items: center; align-content: center; gap: 16px; overflow: hidden;
  opacity: 1; transition: opacity 600ms var(--ease); cursor: pointer; }
.intro.is-hiding { opacity: 0; pointer-events: none; }
.intro__name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  text-align: center; line-height: .9; font-size: clamp(2.4rem, 9vw, 6rem); color: #fff; }
.intro__name span { display: block; opacity: 0; filter: blur(16px); transform: translateY(14px);
  animation: introMaterialize 1.1s cubic-bezier(.22, 1, .36, 1) forwards; }
.intro__name span:nth-child(1) { animation-delay: .2s; }
.intro__name span:nth-child(2) { animation-delay: .46s; }
@keyframes introMaterialize { to { opacity: 1; filter: blur(0); transform: none; } }
.intro__accent { background: linear-gradient(100deg, #35e0ff, #cfeaff 45%, #ff5a6a);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.intro__sub { font-family: var(--font-head); font-size: clamp(.7rem, 1.8vw, .9rem); letter-spacing: .22em;
  text-transform: uppercase; color: rgba(170,200,255,.7); text-align: center;
  opacity: 0; animation: introMaterialize 1s ease .8s forwards; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ============================================================
   STICKY NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; }

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo  { height: 40px; width: auto; }
.nav__brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; letter-spacing: 1px;
  color: #fff; transition: color .4s var(--ease); }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: #fff;
  position: relative; transition: color .3s var(--ease); }
.nav__links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__links a.nav__offmarket { color: var(--orange); font-weight: 700; }
.nav.is-scrolled .nav__links a.nav__offmarket { color: var(--red); }

/* scrolled state -> solid white nav, dark text */
.nav.is-scrolled { background: #fff; box-shadow: var(--shadow-sm); }
.nav.is-scrolled .nav__brand-text { color: var(--navy); }
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav.is-scrolled .nav__links a.btn--nav-cta { color: #fff; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.nav.is-scrolled .nav__toggle span { background: var(--navy); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO — listings carousel
   ============================================================ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; background: #0d0a36; }

/* carousel slides */
.hero__carousel { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__slide.is-active { opacity: 1; }
/* blurred, darkened version of the photo fills the frame (hides letterbox + low-res edges) */
.hero__slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(22px) brightness(.6); transform: scale(1.18); }
/* the actual photo, shown whole (no crop, no zoom) */
.hero__slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__slide.is-active .hero__slide-bg { animation: heroZoom 10s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.22); } to { transform: scale(1.14); } }

/* readability overlay (dark on left where text sits) */
.hero__overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(13,10,40,.92) 0%, rgba(13,10,40,.70) 40%, rgba(13,10,40,.25) 72%, rgba(13,10,40,.15) 100%),
              linear-gradient(0deg, rgba(13,10,40,.55) 0%, transparent 40%); }

.hero__content { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto;
  padding: 0 24px; width: 100%; }

/* slide caption (price + address) bottom-right */
.hero__caption { position: absolute; right: clamp(20px, 5vw, 70px); bottom: 96px; z-index: 3;
  text-align: right; max-width: 60%; opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hero__caption.show { opacity: 1; transform: none; }
.hero__caption .cap-badge { display: inline-block; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: 1px;
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 8px; }
.hero__caption .cap-price { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1; letter-spacing: -.01em; }
.hero__caption .cap-addr { font-size: .9rem; color: #e3e3f2; margin-top: 4px; }
.hero__caption .cap-link { display: block; color: #fff; }
.hero__caption .cap-view { display: inline-block; margin-top: 8px; font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; color: #fff; opacity: .85; transition: opacity .25s var(--ease); }
.hero__caption .cap-link:hover .cap-view { opacity: 1; }

/* arrows */
.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: grid; place-items: center; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.hero__arrow svg { width: 24px; height: 24px; }
.hero__arrow:hover { background: var(--red); transform: translateY(-50%) scale(1.08); }
.hero__arrow--prev { left: clamp(12px, 2vw, 28px); }
.hero__arrow--next { right: clamp(12px, 2vw, 28px); }

/* dots */
.hero__dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; gap: 10px; }
.hero__dots button { width: 26px; height: 10px; border-radius: 6px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background-color .3s var(--ease); padding: 0; }
.hero__dots button.is-active { background: var(--red); }
.hero__eyebrow { font-family: var(--font-head); font-weight: 700; letter-spacing: 4px; font-size: .8rem; color: var(--orange); margin-bottom: 18px; }
.hero__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 9vw, 6rem);
  line-height: .94; letter-spacing: -0.005em; text-wrap: balance; }
.hero__title span { display: block; }
.hero__title-accent { color: var(--red); }
.hero__title-pa { font-size: .34em; font-weight: 500; letter-spacing: 0; color: #fff; vertical-align: baseline; }
.hero__sub { margin-top: 22px; font-size: clamp(1rem, 2vw, 1.3rem); max-width: 560px; color: #e9e9f2; }
.hero__cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.hero__scroll-dot { position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80%,100% { opacity: 0; top: 22px; } }

/* ============================================================
   SEARCH
   ============================================================ */
.search { background: var(--mist); padding: 0 0 80px; }
.search__card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-md);
  padding: clamp(28px, 5vw, 54px); margin-top: -70px; position: relative; z-index: var(--z-search-card); text-align: center; }
.search__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--navy); letter-spacing: -.01em; }
.search__lead { color: var(--gray); margin-top: 6px; }

.search__tabs { display: inline-flex; gap: 6px; background: var(--mist); padding: 6px; border-radius: var(--radius-pill); margin: 24px 0 20px; }
.search__tab { font-family: var(--font-head); font-weight: 700; font-size: .9rem; border: 0; cursor: pointer;
  padding: 10px 26px; border-radius: var(--radius-pill); background: transparent; color: var(--gray);
  transition: background-color .3s var(--ease), color .3s var(--ease); }
.search__tab.is-active { background: var(--navy); color: #fff; }

.search__type { display: flex; gap: 22px; justify-content: center; margin-bottom: 16px; color: var(--gray); font-weight: 500; }
.search__type label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.search__type input { accent-color: var(--red); width: 16px; height: 16px; }

.search__row { display: flex; gap: 12px; max-width: 760px; margin: 0 auto; }
.search__input { flex: 1; border: 2px solid var(--line); border-radius: var(--radius-pill);
  padding: 16px 24px; font-size: 1rem; font-family: var(--font-body); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.search__input::placeholder { color: #6b6b73; opacity: 1; } /* ≥4.5:1 on white */
.search__input:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(237,28,35,.12); }
.search__go { white-space: nowrap; }

.search__hint { margin-top: 18px; color: var(--gray); font-size: .9rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: var(--radius-pill);
  padding: 6px 16px; margin: 4px; cursor: pointer; font-family: var(--font-body); font-size: .85rem; color: var(--navy);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================================
   QUICK ACTIONS
   ============================================================ */
.actions { padding: 90px 0; }
.actions .section__title { text-align: center; margin-bottom: 50px; }
.actions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.action-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px 32px;
  text-align: center; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative; overflow: hidden; }
.action-card::before { content: ''; position: absolute; inset: 0; height: 5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.action-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.action-card:hover::before { transform: scaleX(1); }
.action-card__icon { margin-bottom: 16px; color: var(--navy); transition: color .4s var(--ease), transform .4s var(--ease); }
.action-card__icon svg { width: 52px; height: 52px; }
.action-card:hover .action-card__icon { color: var(--red); transform: translateY(-2px); }
.action-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--navy); margin-bottom: 10px; letter-spacing: -.01em; }
.action-card p { color: var(--gray); font-size: .98rem; }
.action-card__cta { display: inline-block; margin-top: 18px; font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: .9rem;
  transition: gap .3s var(--ease); }

/* ============================================================
   NEW DEVELOPMENTS BAND
   ============================================================ */
.band--developments { background: linear-gradient(135deg, var(--navy) 0%, #0d0a36 100%); color: #fff; padding: 96px 0; }
.band__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.band__eyebrow { color: var(--orange); font-family: var(--font-head); font-weight: 700; letter-spacing: 3px; font-size: .78rem; margin-bottom: 12px; }
.band__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 4.5vw, 3.5rem); margin-bottom: 18px; letter-spacing: -.01em; }
.band__text p { color: #d8d8e8; margin-bottom: 26px; max-width: 520px; }
.band__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { text-align: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 26px 12px; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: #fff; display: inline; letter-spacing: -.01em; }
.stat__suffix { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--red); }
.stat__label { display: block; margin-top: 6px; font-size: .82rem; letter-spacing: .5px; color: #c4c4d8; text-transform: uppercase; }

/* ============================================================
   COMMERCIAL
   ============================================================ */
.commercial { padding: 96px 0; background: var(--mist); }
.commercial__head { text-align: center; margin-bottom: 48px; }
.commercial__head .section__lead { margin: 12px auto 0; }
.commercial__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.commercial__item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 12px; text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease); cursor: default; }
.commercial__item .ci-icon { display: inline-flex; color: var(--navy); transition: color .35s var(--ease); }
.commercial__item .ci-icon svg { width: 38px; height: 38px; }
.commercial__item h4 { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--navy); margin-top: 12px; transition: color .35s var(--ease); }
.commercial__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: var(--navy); }
.commercial__item:hover h4 { color: #fff; }
.commercial__item:hover .ci-icon { color: #fff; }
.commercial__cta { text-align: center; margin-top: 44px; }

/* ============================================================
   LISTINGS
   ============================================================ */
.listings { padding: 96px 0; }
.listings__head { text-align: center; margin-bottom: 50px; }
.listings__head .section__lead { margin: 12px auto 0; }
.listings__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: block; color: inherit; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card__view { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; color: var(--red); transition: opacity .3s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 56px rgba(20,18,58,.24), 0 0 0 1.5px rgba(237,28,35,.30); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__badge { position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: 1px; padding: 6px 14px; border-radius: var(--radius-pill); }
.card__price { position: absolute; bottom: 14px; left: 14px; background: rgba(13,10,40,.85); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; padding: 8px 16px; border-radius: 10px; }
.card__body { padding: 22px; }
.card__type { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .68rem;
  letter-spacing: .5px; text-transform: uppercase; color: var(--red); background: rgba(237,28,35,.08);
  padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 10px; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--navy); margin-bottom: 4px; letter-spacing: -.01em; }
.card__addr { color: var(--gray); font-size: .9rem; margin-bottom: 10px; }
.card__desc {
  color: var(--gray); font-size: .9rem; line-height: 1.5; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { display: flex; gap: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.card__meta span { display: flex; flex-direction: column; gap: 2px; }
.card__meta b { color: var(--ink); font-weight: 700; font-size: .95rem; line-height: 1.1; }
.card__meta em { color: var(--gray); font-size: .72rem; font-style: normal; letter-spacing: .3px; text-transform: uppercase; }
.listings__more { text-align: center; margin-top: 50px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 96px 0; background: var(--mist); }
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about__photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--navy), #0d0a36); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo img.is-missing { display: none; }
.about__photo::after { content: 'Add your photo\A static/img/giovanni.jpg'; white-space: pre; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center; color: rgba(255,255,255,.5);
  font-family: var(--font-head); font-size: .8rem; letter-spacing: 1px; z-index: -1; }
.about__text p { color: var(--gray); margin-bottom: 16px; max-width: 560px; }
.about__placeholder { background: #fff7e6; border: 1px solid #ffd98a; padding: 12px 16px; border-radius: 10px; font-size: .92rem; color: var(--gray); }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stat--dark { background: #fff; border: 1px solid var(--line); }
.stat--dark .stat__num { color: var(--navy); }
.stat--dark .stat__label { color: var(--gray); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 96px 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact__details { list-style: none; margin-top: 30px; }
.contact__details li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__details strong { font-family: var(--font-head); color: var(--navy); font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; }
.contact__details a, .contact__details span { color: var(--gray); margin-top: 2px; transition: color .25s var(--ease); }
.contact__details a:hover { color: var(--red); }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; box-shadow: var(--shadow-sm); }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 16px 16px 16px; font-size: 1rem;
  font-family: var(--font-body); background: #fff; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); resize: vertical; }
.field textarea { border-radius: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(237,28,35,.10); }
.field label { position: absolute; left: 16px; top: 16px; color: var(--gray); pointer-events: none;
  transition: .2s var(--ease); background: #fff; padding: 0 6px; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: -9px; font-size: .76rem; color: var(--red); font-weight: 600; }
.label--static { position: static; padding: 0 0 6px; display: block; font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); font-weight: 600; }
.field select { appearance: none; }
.contact__submit { grid-column: 1 / -1; }
.contact__status { grid-column: 1 / -1; font-size: .92rem; font-weight: 600; margin-top: -4px; min-height: 20px; }
.contact__status.ok { color: #128a4b; }
.contact__status.err { color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0d0a36; color: #c4c4d8; padding: 56px 0 30px; }
.footer__map { display: grid; grid-template-columns: minmax(220px, .5fr) 1.5fr; gap: 36px; align-items: stretch;
  padding-bottom: 48px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__map-info { display: flex; flex-direction: column; justify-content: center; }
.footer__map-eyebrow { font-family: var(--font-head); font-weight: 700; letter-spacing: 3px;
  font-size: .74rem; color: var(--orange); margin-bottom: 12px; }
.footer__map-addr { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.35; color: #fff; }
.footer__map-cta { align-self: flex-start; margin-top: 22px; color: #fff; border-color: rgba(255,255,255,.5); }
.footer__map-cta:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer__map-frame { position: relative; z-index: 0; border-radius: 16px; overflow: hidden;
  min-height: 360px; border: 1px solid rgba(255,255,255,.12); }
.footer__map-frame .leaflet-tile-pane { filter: grayscale(.18); } /* subtle desaturation on the dark footer */
@media (max-width: 760px) {
  .footer__map { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .footer__map-cta { align-self: center; }
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer__brand img { height: 54px; background: #fff; border-radius: 12px; padding: 8px; }
.footer__brand p { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: .95rem; text-align: left; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.footer__social a:hover { background: var(--red); transform: translateY(-4px); }
.footer__legal { font-size: .82rem; color: #a6a6c2; } /* lifted for ≥4.5:1 on #0d0a36 */

/* ============================================================
   LISTING DETAIL PAGE
   ============================================================ */
.ld { padding-top: var(--nav-h); }
.ld__loading, .ld__missing { padding: 80px 24px; text-align: center; }
.ld__missing .btn { margin-top: 20px; }

.ld__hero { position: relative; aspect-ratio: 16 / 9; max-height: 540px; background: #0d0a36;
  overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ld__hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(28px) brightness(.5); transform: scale(1.2); }
.ld__hero img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.ld__badge { position: absolute; top: 20px; left: 20px; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: 1px;
  padding: 7px 16px; border-radius: var(--radius-pill); }

/* ---- cinematic listing hero (full-screen photo + Ken Burns + reveal) ---- */
.ld__cine { position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: #05060f; display: flex; align-items: flex-end; }
.ld__cine-photo { position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.34); will-change: transform; }  /* parallax driven by listing-detail.js */
.ld__cine-scrim { position: absolute; inset: 0; background: linear-gradient(to top,
  rgba(5,6,15,.94) 5%, rgba(5,6,15,.5) 38%, rgba(5,6,15,.15) 66%, rgba(5,6,15,.45) 100%); }
.ld__cine-inner { position: relative; z-index: 2; color: #fff; padding-bottom: clamp(54px, 10vh, 120px); }
.ld__cine .ld__back { display: block; width: max-content; color: rgba(255,255,255,.82); margin-bottom: 22px; }
.ld__cine .ld__back:hover { color: #fff; }
.ld__cine-tag { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.ld__cine-price { font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem); line-height: .92; letter-spacing: -.02em; }
.ld__cine-title { font-family: var(--font-display); font-weight: 500; color: #fff;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem); margin-top: 14px; }
.ld__cine-addr { color: rgba(228,238,255,.82); font-size: 1.02rem; margin-top: 8px; }
.ld__cine-cta { margin-top: 28px; }
.ld__cine-inner > * { opacity: 0; transform: translateY(26px);
  animation: ldUp .8s cubic-bezier(.22, 1, .36, 1) forwards; }
.ld__cine-inner > *:nth-child(1) { animation-delay: .15s; } .ld__cine-inner > *:nth-child(2) { animation-delay: .26s; }
.ld__cine-inner > *:nth-child(3) { animation-delay: .37s; } .ld__cine-inner > *:nth-child(4) { animation-delay: .48s; }
.ld__cine-inner > *:nth-child(5) { animation-delay: .58s; } .ld__cine-inner > *:nth-child(6) { animation-delay: .68s; }
@keyframes ldUp { to { opacity: 1; transform: none; } }
.ld__scrollcue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.ld__scrollcue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: scrolldot 1.6s infinite; }
@media (prefers-reduced-motion: reduce) {
  .ld__cine-photo { animation: none; transform: scale(1.05); }
  .ld__cine-inner > * { animation: none; opacity: 1; transform: none; }
}

.ld__body { display: grid; grid-template-columns: 1fr 360px; gap: 48px;
  padding-top: 56px; padding-bottom: 80px; align-items: start; }
.ld__back { display: inline-block; margin-bottom: 18px; font-family: var(--font-head);
  font-weight: 600; font-size: .85rem; color: var(--gray); }
.ld__back:hover { color: var(--red); }

.ld__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  flex-wrap: wrap; margin-bottom: 26px; }
.ld__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy); letter-spacing: -.01em; line-height: 1.05; margin-top: 8px; }
.ld__addr { color: var(--gray); margin-top: 6px; font-size: 1.05rem; }
.ld__price { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--red); white-space: nowrap; }

.ld__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 36px; }
.ld__fact { background: #fff; padding: 16px 18px; }
.ld__fact dt { font-family: var(--font-head); font-size: .72rem; letter-spacing: .5px; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.ld__fact dd { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .98rem; }

.ld__section { margin-bottom: 36px; }
.ld__h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--navy); margin-bottom: 14px; }
.ld__section p { color: var(--gray); max-width: 70ch; line-height: 1.7; }
.ld__map { position: relative; z-index: 0; height: 380px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }

.ld__agent { position: sticky; top: calc(var(--nav-h) + 20px); }
.ld__agent-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow-sm); text-align: center; }
.ld__agent-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: top center;
  margin: 0 auto 14px; border: 3px solid var(--mist); }
.ld__agent-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.ld__agent-title { color: var(--gray); font-size: .9rem; margin: 6px 0 18px; }
.ld__agent-cta { width: 100%; }
.ld__agent-contact { list-style: none; margin-top: 18px; text-align: left; }
.ld__agent-contact li { display: flex; justify-content: space-between; padding: 10px 0;
  border-top: 1px solid var(--line); font-size: .92rem; }
.ld__agent-contact li span { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.ld__agent-contact a { color: var(--gray); }
.ld__agent-contact a:hover { color: var(--red); }

/* ---- listing gallery + floorplan + lightbox ---- */
.ld__gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.ld__shot { position: relative; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 12px; overflow: hidden;
  cursor: pointer; background-size: cover; background-position: center; background-color: var(--mist);
  transition: box-shadow .4s var(--ease); }
.ld__shot:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.ld__shot:hover { box-shadow: var(--shadow-md); }
.ld__shot::after { content: "\2922"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.5); width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(5,6,15,.5); color: #fff;
  font-size: 19px; opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
.ld__shot:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (max-width: 560px) { .ld__shot:first-child { grid-column: auto; aspect-ratio: 4 / 3; } }
.ld__floor { display: block; width: 100%; aspect-ratio: 16 / 10; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px;
  background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #fff; }
.ld__lb { position: fixed; inset: 0; z-index: 10000; background: rgba(5,6,15,.95);
  display: none; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ld__lb.is-open { display: flex; }
.ld__lb-img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.ld__lb-close, .ld__lb-nav { position: absolute; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 1.6rem;
  line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.ld__lb-close:hover, .ld__lb-nav:hover { background: rgba(255,255,255,.2); }
.ld__lb-close { top: 18px; right: 22px; }
.ld__lb-nav { top: 50%; transform: translateY(-50%); }
.ld__lb-prev { left: 18px; } .ld__lb-next { right: 18px; }
.ld__lb-cap { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: 80vw;
  display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; text-align: center; }
.ld__lb-cap-title { font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.ld__lb-count { font-family: var(--font-head); font-size: .78rem; letter-spacing: .12em; color: rgba(255,255,255,.7); }
.ld__lb-play { position: absolute; bottom: 20px; right: 24px; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: #fff; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background .25s; }
.ld__lb-play:hover { background: rgba(255,255,255,.22); }
.ld__lb-play.is-playing { background: var(--red); border-color: var(--red); }
.ld__lb-play span { font-size: .85em; }

/* gallery header + virtual-tour button */
.ld__gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.ld__gallery-head .ld__h2 { margin-bottom: 0; }
.ld__tour { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; color: var(--navy); background: transparent; border: 1px solid var(--navy); border-radius: 999px;
  padding: 8px 17px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
.ld__tour:hover { background: var(--navy); color: #fff; }
.ld__tour span { font-size: .72em; }
@media (max-width: 600px) { .ld__lb-nav { width: 42px; height: 42px; } .ld__lb-cap, .ld__lb-play { bottom: 14px; } .ld__lb-play { right: 14px; } }

@media (max-width: 900px) {
  .ld__body { grid-template-columns: 1fr; }
  .ld__agent { position: static; }
}

/* ============================================================
   OFF-MARKET CTA STRIP (home page)
   ============================================================ */
.offmarket-cta { background: linear-gradient(120deg, var(--red) 0%, #b3121a 100%); color: #fff; }
.offmarket-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap; padding: 56px 24px; }
.offmarket-cta__eyebrow { font-family: var(--font-head); font-weight: 700; letter-spacing: 3px;
  font-size: .74rem; opacity: .85; margin-bottom: 10px; }
.offmarket-cta__title { font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.01em; }
.offmarket-cta__lead { margin-top: 8px; max-width: 48ch; color: rgba(255,255,255,.9); }
.offmarket-cta__btn { background: #fff; color: var(--navy); white-space: nowrap; }
.offmarket-cta__btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
@media (max-width: 760px) { .offmarket-cta__inner { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   OFF-MARKET FUNNEL PAGE
   ============================================================ */
.funnel-page { background: linear-gradient(160deg, var(--navy) 0%, #0d0a36 70%, #000 100%);
  color: #fff; min-height: 100vh; min-height: 100svh; }
.funnel-page::before { content: ''; position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(80% 60% at 80% 10%, rgba(237,28,35,.22), transparent 60%); pointer-events: none; }

.fnav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px); }
.fnav__brand { display: flex; align-items: center; gap: 12px; }
.fnav__brand img { height: 38px; background: #fff; border-radius: 9px; padding: 5px; }
.fnav__brand span { font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .5px; color: #fff; }
.fnav__back { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: #c4c4d8; }
.fnav__back:hover { color: #fff; }

.funnel { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 160px); min-height: calc(100svh - 160px); padding: 20px; }
.funnel__inner { width: 100%; max-width: 640px; text-align: center; }

.funnel__progress { margin-bottom: 30px; }
.funnel__progress-bar { height: 5px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; }
.funnel__progress-bar span { display: block; height: 100%; width: 100%; transform-origin: left center;
  transform: scaleX(.08); background: var(--red); border-radius: 999px; transition: transform .45s var(--ease); }
.funnel__progress-text { margin-top: 10px; font-family: var(--font-head); font-weight: 600;
  font-size: .76rem; letter-spacing: 1px; color: #9b9bba; text-transform: uppercase; }

.fn-step { animation: fnIn .45s var(--ease) both; }
@keyframes fnIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fn-eyebrow { font-family: var(--font-head); font-weight: 700; letter-spacing: 3px; font-size: .76rem;
  color: var(--orange); margin-bottom: 14px; }
.fn-q { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.fn-lead { color: #c8c8e0; margin-top: 14px; font-size: 1.05rem; max-width: 30rem; margin-inline: auto; }

.fn-intent { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.fn-intent-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 18px;
  padding: 30px 22px; cursor: pointer; text-align: center; color: #fff;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease); }
.fn-intent-card:hover { transform: translateY(-6px); border-color: var(--red); background: rgba(237,28,35,.10); }
.fn-intent-icon { display: inline-flex; color: var(--orange); margin-bottom: 14px; }
.fn-intent-icon svg { width: 42px; height: 42px; }
.fn-intent-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 8px; }
.fn-intent-card p { color: #b8b8d2; font-size: .9rem; }

.fn-options { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.fn-option { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; text-align: left;
  background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.16); border-radius: 14px;
  padding: 18px 22px; color: #fff; cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .15s var(--ease); }
.fn-option:hover { border-color: var(--red); background: rgba(237,28,35,.10); }
.fn-option:active { transform: scale(.99); }
.fn-option.is-selected { border-color: var(--red); background: rgba(237,28,35,.16); }

.fn-input { width: 100%; margin-top: 30px; background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.2); border-radius: 14px; padding: 17px 20px;
  font-size: 1.05rem; font-family: var(--font-body); color: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.fn-input::placeholder { color: #9595b5; }
.fn-input:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(237,28,35,.18); }
.fn-textarea { resize: vertical; min-height: 110px; }
.fn-contact { display: flex; flex-direction: column; gap: 12px; }
.fn-contact .fn-input { margin-top: 0; }
.fn-contact .fn-input:first-child { margin-top: 30px; }
.fn-error { color: #ff8b8b; font-size: .9rem; font-weight: 600; margin-top: 12px; min-height: 18px; }

.funnel__controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; }
.funnel__back { background: none; border: 0; cursor: pointer; font-family: var(--font-head); font-weight: 600;
  font-size: .92rem; color: #b8b8d2; transition: color .25s var(--ease); }
.funnel__back:hover { color: #fff; }
.funnel__next { min-width: 180px; }
.funnel__next:disabled { opacity: .6; cursor: default; }
.funnel__trust { position: relative; z-index: 2; text-align: center; color: #8c8caa; font-size: .82rem;
  padding: 0 20px 28px; max-width: 560px; margin: 0 auto; }

.fn-thanks .fn-check { width: 72px; height: 72px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 2.2rem; display: grid; place-items: center; margin: 0 auto 22px;
  animation: fnPop .5s var(--ease) both; }
@keyframes fnPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fn-thanks .btn { margin-top: 24px; }

@media (max-width: 560px) {
  .fn-intent { grid-template-columns: 1fr; }
  .fnav__brand span { display: none; }
}

/* ============================================================
   IDX SEARCH PAGE
   ============================================================ */
.idx-page { padding-top: var(--nav-h); }
.idx-head { text-align: center; padding: 34px 24px 20px; max-width: var(--maxw); margin: 0 auto; }
.idx-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy); letter-spacing: -.01em; }
.idx-lead { color: var(--gray); margin-top: 10px; max-width: 640px; margin-inline: auto; }
.idx-frame-wrap { width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 16px 40px; }
.idx-frame { width: 100%; height: calc(100vh - 240px); min-height: 680px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; display: block; }
@media (max-width: 760px) { .idx-frame { height: calc(100vh - 190px); min-height: 560px; } }

/* ============================================================
   LEGAL / PRIVACY PAGE
   ============================================================ */
.legal { padding: calc(var(--nav-h) + 50px) 0 80px; }
.legal .container { max-width: 760px; }
.legal__date { color: var(--gray); font-weight: 600; margin: 6px 0 28px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy); margin: 34px 0 12px; }
.legal p, .legal li { color: var(--gray); line-height: 1.75; max-width: 70ch; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 1.2rem; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--red); text-decoration: underline; }
.legal__note { font-size: .88rem; font-style: italic; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer__legal a { color: #fff; text-decoration: underline; }

/* ============================================================
   3D HERO — floating low-poly Miami skyline (Three.js)
   One-flag toggle vs. the classic carousel via data-hero-mode
   on .hero-area. Brand palette: crimson #a8232b, navy #1a2244,
   gold #c9a04e.
   ============================================================ */
.hero-area { position: relative; }
/* the toggle: show exactly one hero based on the wrapper attribute */
.hero-area[data-hero-mode="3d"]       [data-hero="carousel"] { display: none !important; }
.hero-area[data-hero-mode="carousel"] [data-hero="3d"]       { display: none !important; }

.hero3d {
  position: relative; width: 100%;
  height: 100vh; height: 100svh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  /* Atmosphere AND graceful fallback: navy → crimson. Shows through where the
     transparent canvas has no geometry, and is all you see if WebGL is missing. */
  background: linear-gradient(165deg, #1a2244 0%, #1a2244 48%, #2a1733 76%, #a8232b 128%);
}
.hero3d__fallback {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;  /* behind canvas */
}
.hero3d__fallback svg { width: 100%; height: 100%; display: block; }
/* once the live 3D renders, fade the static skyline out */
.hero3d.webgl-ok .hero3d__fallback { opacity: 0; transition: opacity 800ms ease; }

.hero3d__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  z-index: 1;                              /* above fallback, BEHIND the text overlay */
  opacity: 0; transition: opacity 1200ms ease;   /* lazy fade-in after init */
}
.hero3d.is-ready .hero3d__canvas { opacity: 1; }
.hero3d__overlay {
  position: relative; z-index: 2;          /* ABOVE the canvas, always crisp */
  text-align: center; padding: 0 24px; max-width: 920px;
}
.hero3d__title {
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(3rem, 10vw, 7rem); line-height: .9; letter-spacing: -.03em;
  text-transform: uppercase;
}
.hero3d__name-line {
  display: block; will-change: transform, opacity;
  opacity: 0; transform: translateY(46px);
  animation: heroNameUp 1s cubic-bezier(.22, 1, .36, 1) forwards;
  text-shadow: 0 6px 50px rgba(0,0,0,.5);
}
.hero3d__name-line:nth-child(1) { animation-delay: .15s; }
.hero3d__name-line:nth-child(2) { animation-delay: .34s; }
@keyframes heroNameUp { to { opacity: 1; transform: none; } }
/* the surname glows holographic to merge with the city behind it */
.hero3d__name-accent {
  background: linear-gradient(100deg, #35e0ff 0%, #cfeaff 42%, #ff5a6a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(53,224,255,.40)) drop-shadow(0 0 46px rgba(255,90,106,.25));
}
@media (prefers-reduced-motion: reduce) {
  .hero3d__name-line { animation: none; opacity: 1; transform: none; }
}
/* the name is clickable to replay the reveal (overlay is otherwise inert) */
.hero3d__title { pointer-events: auto; cursor: pointer; position: relative; }
.hero3d__ident-lib { display: none; }
/* per-letter scramble: each letter of the name flashes through the icons that are
   "me" (borders draw on via createDrawable), then settles into its letter */
.gv-ch { display: inline-block; position: relative; }
.gv-ch__txt { transition: opacity .16s ease; }
.gv-ch.is-scrambling .gv-ch__txt { opacity: 0; }
.gv-ch__ico { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 0.82em; height: 0.82em; pointer-events: none; display: grid; place-items: center;
  opacity: 0; transition: opacity .12s ease; }
.gv-ch.is-scrambling .gv-ch__ico { opacity: 1; }
.gv-ch__ico svg { width: 100%; height: 100%; overflow: visible; }
.gv-ch__ico svg * { fill: none; stroke: url(#hero3dSigGrad); stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(53,224,255,.55)); }
.gv-ch__ico img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 5px rgba(53,224,255,.4)); }
/* background-clip:text doesn't survive per-letter spans, so re-apply the holo
   gradient to each accent letter instead of the whole line */
.hero3d__name-accent .gv-ch__txt {
  background: linear-gradient(100deg, #35e0ff 0%, #cfeaff 42%, #ff5a6a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero3d__sub {
  font-family: var(--font-head); font-weight: 500; color: #e6d6b0;  /* warm gold tint */
  text-transform: uppercase; letter-spacing: 3px;
  font-size: clamp(.82rem, 2vw, 1.1rem); margin-top: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero3d__cta {
  margin-top: 34px; background: #a8232b; color: #fff; border: 2px solid #a8232b;
  box-shadow: 0 12px 30px rgba(168,35,43,.42);
}
.hero3d__cta:hover { background: #c9a04e; border-color: #c9a04e; color: #1a2244; transform: translateY(-2px); }

/* Let clicks pass THROUGH the overlay to the 3D towers — only the button +
   hint stay interactive — so visitors can click towers behind the headline. */
.hero3d__overlay { pointer-events: none; }
.hero3d__cta { pointer-events: auto; }
.hero3d__hint {
  margin-top: 24px; font-family: var(--font-head); font-weight: 600;
  font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(201,160,78,.92); transition: opacity .6s ease;
}
.hero3d.interacted .hero3d__hint { opacity: 0; }

/* Floating listing card on a "stick" — pops out above a pinned tower.
   Clickable: this is what opens the listing (hover/tap never navigates). */
.h3dcard {
  position: absolute; left: 0; top: 0; z-index: 4; width: 244px;
  pointer-events: auto; cursor: pointer;
  background: rgba(8,12,26,.82); border: 1px solid rgba(53,224,255,.5); border-radius: 14px;
  overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(53,224,255,.12), 0 0 26px rgba(53,224,255,.22);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  opacity: 0; transform: translateY(8px) scale(.97);
  transition: opacity .2s ease, transform .2s ease;
}
.h3dcard.show { opacity: 1; transform: none; }
.h3dcard::after {                                   /* caret pointing down to the stick */
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px;
  margin-left: -6px; transform: rotate(45deg);
  background: rgba(8,12,26,.82); border-right: 1px solid rgba(53,224,255,.5); border-bottom: 1px solid rgba(53,224,255,.5);
}
.h3dcard__media { height: 102px; background: #06101e; }
.h3dcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h3dcard__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.h3dcard__badge { font-family: var(--font-head); font-weight: 700; font-size: .62rem; letter-spacing: 1.5px; text-transform: uppercase; color: #35e0ff; }
.h3dcard__price { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.4rem; line-height: 1; }
.h3dcard__addr  { font-family: var(--font-head); font-size: .78rem; color: rgba(225,240,255,.82); }
.h3dcard__cta   { font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .3px; color: #ff7a85; margin-top: 4px; }
.hero3d .hero__scroll { z-index: 2; }      /* reuse the original scroll indicator */
@media (prefers-reduced-motion: reduce) {
  .hero3d__canvas { transition: none; opacity: 1; }
}


/* ============================================================
   HOW WE GET LISTINGS SOLD (immersive dark)
   ============================================================ */
.sell { position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #141a37 0%, #0a0e1f 58%, #070a18 100%);
  padding: clamp(70px, 10vw, 120px) 0; }
.sell__eyebrow { color: #5fe0ff; }
.sell__title { color: #fff; max-width: 20ch; }
.sell__lead { color: rgba(220,232,255,.72); }
.sell__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; margin-top: 44px; }
.sell__card { background: rgba(255,255,255,.035); border: 1px solid rgba(120,160,220,.18);
  border-radius: 18px; padding: 28px 26px; will-change: transform;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease); }
.sell__card:hover { border-color: rgba(95,224,255,.5); background: rgba(95,224,255,.06); }
.sell__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(95,224,255,.12); color: #5fe0ff; margin-bottom: 16px; }
.sell__icon svg { width: 26px; height: 26px; }
.sell__card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: #fff; margin-bottom: 8px; }
.sell__card p { color: rgba(214,226,250,.74); font-size: .96rem; line-height: 1.6; }
.sell__cta { margin-top: 40px; text-align: center; }

/* About: CTA row + LinkedIn button */
.about__cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.about__linkedin { display: inline-flex; align-items: center; gap: 8px; }
.about__linkedin svg { flex: 0 0 auto; }

/* Cursor glow (fine-pointer dark sections only — added by effects.js) */
.cursor-glow { position: fixed; top: 0; left: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px;
  border-radius: 50%; pointer-events: none; z-index: 60; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(circle, rgba(95,224,255,.15), rgba(95,224,255,0) 70%); mix-blend-mode: screen; }

/* ============================================================
   IMMERSIVE PATHWAY TO LISTINGS (scroll-driven journey)
   ============================================================ */
.pathway { position: relative; height: 260vh; background: #060a16; }
.pathway__stage { position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center; isolation: isolate; }
.pathway__grid { position: absolute; left: -60%; right: -60%; bottom: -12%; height: 78%;
  background-image: linear-gradient(rgba(95,224,255,.18) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(95,224,255,.10) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center 0;
  transform: perspective(420px) rotateX(70deg); transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 6%, transparent 78%);
          mask-image: linear-gradient(to top, #000 6%, transparent 78%); }
.pathway__svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.pathway__track { fill: none; stroke: rgba(95,224,255,.14); stroke-width: 2.5; }
.pathway__progress { fill: none; stroke: #5fe0ff; stroke-width: 3.5; stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(95,224,255,.85)); }
.pathway__orb { fill: #fff; filter: drop-shadow(0 0 10px #5fe0ff) drop-shadow(0 0 22px #5fe0ff); }
.pathway__copy { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 24px; max-width: 760px; }
.pathway__eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: .22em;
  font-size: .72rem; text-transform: uppercase; color: #5fe0ff; margin-bottom: 18px; }
.pathway__title { font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(2rem, 6vw, 4rem); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance;
  transition: opacity .25s var(--ease), transform .25s var(--ease); }
.pathway__enter { position: absolute; left: 50%; bottom: -120px; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700;
  font-size: .9rem; letter-spacing: .04em; color: #05060f; background: #5fe0ff; padding: 13px 26px;
  border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease), bottom .5s var(--ease); }
.pathway__enter.is-on { opacity: 1; pointer-events: auto; bottom: 38px; }
.pathway__enter span { display: inline-block; animation: scrolldot 1.6s infinite; }
@media (prefers-reduced-motion: reduce) {
  .pathway { height: auto; }
  .pathway__stage { position: relative; height: 78vh; }
}

/* ============================================================
   PAGE TRANSITION (cinematic fade between pages)
   ============================================================ */
.pgtrans {
  position: fixed; inset: 0; z-index: 9999; background: #05060f;
  opacity: 0; pointer-events: none; transition: opacity .42s ease;
}
body.pg-leaving .pgtrans { opacity: 1; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(42px) scale(.985); filter: blur(7px);
  transition: opacity .85s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero__slide { transition: opacity .01ms; }
}

/* Touch devices: a tap fires :hover and the lift would "stick". Neutralize the
   position/shadow shift on no-hover pointers (press feedback via :active stays). */
@media (hover: none) {
  .action-card:hover, .commercial__item:hover, .card:hover,
  .btn:hover, .footer__social a:hover, .hero__arrow:hover {
    transform: none;
  }
  .action-card:hover, .card:hover { box-shadow: var(--shadow-sm); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .band__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .actions__grid { grid-template-columns: 1fr; }
  .commercial__grid { grid-template-columns: repeat(3, 1fr); }
  .listings__grid { grid-template-columns: repeat(2, 1fr); }
  .about__photo { max-width: 420px; }

  /* hero carousel: tighten caption on tablet */
  .hero__caption { bottom: 110px; max-width: 70%; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; background: #fff; flex-direction: column; gap: 0;
    padding: 10px 0 18px; box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .4s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { color: var(--ink); width: 100%; padding: 14px 24px; }
  .nav__links a.btn--nav-cta { margin: 10px 24px 0; width: calc(100% - 48px); }
  .nav__toggle { display: flex; }
  .nav__brand-text { color: #fff; }
  .nav.is-scrolled .nav__brand-text { color: var(--navy); }

  /* detail-page nav: no hamburger — keep its two links inline */
  .nav--detail .nav__links { position: static; transform: none; flex-direction: row; gap: 12px;
    background: transparent; box-shadow: none; padding: 0; }
  .nav--detail .nav__links a { width: auto; padding: 6px 0; font-size: .82rem; color: var(--ink); }
  .nav--detail .nav__links a.btn--nav-cta { margin: 0; width: auto; }
  .nav--detail .nav__brand-text { font-size: .8rem; }

  .hero__title { font-size: clamp(2.6rem, 14vw, 4rem); }
  .hero__overlay { background: linear-gradient(180deg, rgba(13,10,40,.5) 0%, rgba(13,10,40,.85) 100%); }
  .hero__caption { display: none; } /* hide price caption on small phones to keep it clean */
  .hero__arrow { width: 42px; height: 42px; }
  .hero__arrow svg { width: 20px; height: 20px; }
  .search__row { flex-direction: column; }
  .commercial__grid { grid-template-columns: repeat(2, 1fr); }
  .listings__grid { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; padding: 26px; }
  .field--full, .contact__submit, .contact__status { grid-column: 1; }
}
