/* ============ LaEncontramos · Sixty Floors Above Everything ============ */
:root {
  --ink: #0d0c0a;
  --ink-2: #12110e;
  --ink-3: #1a1814;
  --hair: rgba(212, 183, 122, 0.18);
  --gold: #c9a35c;
  --gold-bright: #d9b878;
  --paper: #ece7dd;
  --paper-dim: rgba(236, 231, 221, 0.62);
  --paper-faint: rgba(236, 231, 221, 0.38);
  --serif: "Cormorant Garamond", "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.ico { width: 1.35em; height: 1.35em; color: var(--gold); flex: none; }

/* ============================== NAV ============================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(20px, 4vw, 56px);
  background: linear-gradient(rgba(13,12,10,.72), transparent);
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.monogram {
  font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: .04em;
  color: var(--gold); border: 1px solid var(--hair);
  width: 40px; height: 40px; display: grid; place-items: center;
}
.nav-sep { width: 1px; height: 22px; background: var(--hair); }
.nav-name { font-size: 12px; letter-spacing: .34em; color: var(--paper); }
.nav-loc { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .26em; color: var(--paper-dim); }
.nav-loc .ico { width: 1.1em; height: 1.1em; }

/* ======================== PROGRESS RAIL ======================== */
.rail {
  position: fixed; right: clamp(16px, 3vw, 48px); top: 50%; transform: translateY(-50%);
  z-index: 30; opacity: 0; pointer-events: none; transition: opacity .5s ease;
}
.rail.on { opacity: 1; }
.rail ol { list-style: none; display: flex; flex-direction: column; gap: 34px; position: relative; }
.rail ol::before {
  content: ""; position: absolute; top: 10px; bottom: 10px;
  right: 43px; width: 1px; background: var(--hair);
}
.rail li { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.rail-label { font-size: 10px; letter-spacing: .3em; color: var(--paper-faint); transition: color .4s; white-space: nowrap; }
.rail-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--paper-faint);
  background: transparent; transition: all .4s; position: relative; z-index: 1;
}
.rail-num { font-size: 10px; letter-spacing: .18em; color: var(--paper-faint); transition: color .4s; }
.rail li.active .rail-label { color: var(--paper); }
.rail li.active .rail-num { color: var(--gold); }
.rail li.active .rail-dot {
  border-color: var(--gold); background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 163, 92, .18);
}
.rail li.passed .rail-dot { border-color: var(--gold); background: rgba(201,163,92,.45); }

/* ============================== HERO ============================== */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg img { animation: heroDrift 24s ease-out forwards; transform-origin: 60% 40%; }
@keyframes heroDrift { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,12,10,.82) 0%, rgba(13,12,10,.35) 46%, rgba(13,12,10,.12) 70%, rgba(13,12,10,.55) 100%),
              linear-gradient(rgba(13,12,10,.25), transparent 30%, transparent 70%, var(--ink) 100%);
}
.hero-copy { position: relative; z-index: 2; padding-left: clamp(20px, 5vw, 72px); max-width: 900px; }
.hero-copy h1 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.08; letter-spacing: .04em; color: var(--paper); white-space: nowrap;
}
@media (max-width: 700px) { .hero-copy h1 { white-space: normal; } }
.hero-copy h1 .gold { color: var(--gold-bright); }
.hero-sub {
  margin-top: 30px; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.75;
  color: var(--paper-dim); font-weight: 300; letter-spacing: .02em;
}
.hero-loc { margin-top: 26px; font-size: 11px; letter-spacing: .3em; color: var(--paper-faint); }
.scroll-cue {
  position: absolute; left: clamp(20px, 5vw, 72px); bottom: 44px; z-index: 2;
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  font-size: 10px; letter-spacing: .3em; color: var(--paper-dim);
}
.cue-circle {
  width: 42px; height: 42px; border: 1px solid var(--hair); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold);
}
.cue-circle svg { width: 16px; height: 16px; animation: cueNudge 2.6s ease-in-out infinite; }
@keyframes cueNudge { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* =========================== FACTS STRIP =========================== */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  background: var(--ink-2); position: relative; z-index: 3;
}
.fact {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 34px 12px; border-right: 1px solid var(--hair);
}
.fact:last-child { border-right: none; }
.fact .ico { width: 30px; height: 30px; }
.fact strong { font-family: var(--serif); font-weight: 400; font-size: 30px; display: block; line-height: 1; }
.fact span { font-size: 10px; letter-spacing: .24em; color: var(--paper-faint); display: block; margin-top: 7px; }

/* ========================= SCROLL-SCRUB TOUR ========================= */
.tour { position: relative; height: 520vh; background: var(--ink); }
.tour-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#tourCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.space-title {
  position: absolute; left: clamp(20px, 5vw, 72px); bottom: 56px; z-index: 3;
  display: flex; align-items: baseline; gap: 18px;
  opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease;
}
.space-title.show { opacity: 1; transform: none; }
.space-num { font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.space-name {
  font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: .12em; color: var(--paper);
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.tour-hint {
  position: absolute; right: clamp(20px, 5vw, 200px); bottom: 60px; z-index: 3;
  font-size: 10px; letter-spacing: .3em; color: var(--paper-faint);
  transition: opacity .8s;
}
.tour-hint.off { opacity: 0; }

/* ============================== GALLERY ============================== */
.kicker {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .34em; color: var(--paper);
}
.kicker .rule { height: 1px; width: 64px; background: var(--gold); display: inline-block; }
.gallery { padding: 96px clamp(20px, 5vw, 72px) 24px; background: var(--ink); }
.gallery-grid {
  margin-top: 44px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.gallery-grid figure { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--ink-3); }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.6,.2,1), opacity .4s;
}
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute; left: 12px; bottom: 10px; font-size: 9px; letter-spacing: .26em;
  color: var(--paper-dim); text-shadow: 0 1px 8px rgba(0,0,0,.8);
}

/* ======================= AMENITIES + PRICE ======================= */
.lower {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px);
  padding: 72px clamp(20px, 5vw, 72px) 96px; align-items: center;
  background: var(--ink);
}
.amenity-list {
  list-style: none; margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px;
}
.amenity-list li {
  display: flex; align-items: center; gap: 16px;
  font-size: 14.5px; letter-spacing: .04em; color: var(--paper-dim);
  padding-bottom: 14px; border-bottom: 1px solid rgba(212,183,122,.10);
}
.price { text-align: center; }
.price-figure {
  font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 4.6vw, 68px);
  color: var(--gold-bright); letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.price-rule { display: block; width: 72px; height: 1px; background: var(--hair); margin: 26px auto; }
.price-words { font-size: 10px; letter-spacing: .3em; color: var(--paper-faint); }

/* ======================= REQUEST A SHOWING ======================= */
.showing {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(28px, 4vw, 64px);
  padding: 84px clamp(20px, 5vw, 72px);
  background: var(--ink-2); border-top: 1px solid var(--hair);
}
.showing-form h2 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: .12em;
}
.showing-sub { margin-top: 12px; font-size: 13.5px; color: var(--paper-dim); font-style: italic; font-family: var(--serif); font-size: 17px; }
#showingForm { margin-top: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
#showingForm input {
  background: transparent; border: 1px solid rgba(212,183,122,.22);
  color: var(--paper); font-family: var(--sans); font-weight: 300; font-size: 13.5px;
  padding: 15px 18px; letter-spacing: .04em; width: 100%;
  transition: border-color .3s; border-radius: 0; color-scheme: dark;
}
#showingForm input::placeholder { color: var(--paper-faint); letter-spacing: .06em; }
#showingForm input:focus { outline: none; border-color: var(--gold); }
.btn-gold {
  background: var(--gold); color: #17140e; border: none; cursor: pointer;
  font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .26em;
  padding: 17px 42px; margin-top: 10px; transition: background .3s;
}
.btn-gold:hover { background: var(--gold-bright); }
.form-ok { margin-top: 18px; font-size: 13px; color: var(--gold-bright); letter-spacing: .04em; }

.agent-card {
  border-left: 1px solid var(--hair); padding-left: clamp(24px, 3vw, 48px);
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.agent-photo {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid var(--hair); background: var(--ink-3);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 26px; color: var(--gold);
}
.agent-info { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.agent-info strong { font-size: 14px; letter-spacing: .18em; font-weight: 500; }
.agent-info span { color: var(--paper-dim); }
.agent-info a { color: var(--gold); text-decoration: none; letter-spacing: .03em; }
.agent-info a:hover { color: var(--gold-bright); }

/* ============================== FOOTER ============================== */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--hair);
  font-size: 10.5px; letter-spacing: .18em; color: var(--paper-faint);
}
.footer nav { display: flex; gap: 34px; }
.footer a { color: var(--paper-faint); text-decoration: none; letter-spacing: .22em; transition: color .3s; }
.footer a:hover { color: var(--gold); }
.footer-right { display: flex; gap: 26px; }

/* ============================ REVEALS ============================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal .amenity-list li { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible .amenity-list li { opacity: 1; transform: none; }
.reveal.visible .amenity-list li:nth-child(1) { transition-delay: .05s; }
.reveal.visible .amenity-list li:nth-child(2) { transition-delay: .1s; }
.reveal.visible .amenity-list li:nth-child(3) { transition-delay: .15s; }
.reveal.visible .amenity-list li:nth-child(4) { transition-delay: .2s; }
.reveal.visible .amenity-list li:nth-child(5) { transition-delay: .25s; }
.reveal.visible .amenity-list li:nth-child(6) { transition-delay: .3s; }
.reveal.visible .amenity-list li:nth-child(7) { transition-delay: .35s; }
.reveal.visible .amenity-list li:nth-child(8) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg img, .cue-circle svg { animation: none; }
  .reveal, .reveal .amenity-list li { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: none; }
  .fact { border-bottom: 1px solid var(--hair); }
  .fact:nth-child(3), .fact:nth-child(4) { border-bottom: none; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .lower, .showing { grid-template-columns: 1fr; }
  .agent-card { border-left: none; border-top: 1px solid var(--hair); padding: 32px 0 0; }
  .rail { right: 12px; }
  .rail-label { display: none; }
  .footer { flex-direction: column; gap: 16px; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .nav-loc { display: none; }
  .nav-name { letter-spacing: .22em; }
}
