/* =============================================================================
   ADELINA DUARTE 4 — editorial luxury stylesheet
   A premium "flagship development" sub-brand built on Pontifex DNA:
   Cormorant Garamond (display serif) + Hanken Grotesk (body), forest/terracotta
   on warm cream — airy, full-bleed, hairline-ruled, slow-moving. Tokens in :root.
   ============================================================================= */

:root {
  /* ---- Pontifex brand palette ---- */
  --charcoal: #15171B;
  --ink: #1A1C20;
  --cream: #F5F1EA;
  --cream-deep: #EBE3D6;
  --warm-white: #FFFEFC;
  --forest: #2A2724;
  --forest-dark: #1B1916;
  --sage: #9A9183;
  --sage-light: #B8AFA0;
  --sand: #E9E1D4;
  --sand-dark: #D8CDBC;
  --line: #E2D9CB;            /* hairline colour */
  --slate: #2B2926;
  --slate-light: #5C574E;
  --muted: #8C857A;
  --terracotta: #8B2E26;
  --terracotta-light: #A23A31;
  --terracotta-dark: #651E18;
  --whatsapp: #25D366;

  /* ---- Typefaces (swap these two lines to change all fonts) ---- */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;  /* elegant display serif */
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;     /* refined grotesque */

  --maxw: 1300px;
  --gutter: 40px;

  /* refined "expo-out" easing for slow, considered motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 4px 24px rgba(21,23,27,0.05);
  --shadow-md: 0 18px 50px rgba(21,23,27,0.09);
  --shadow-lg: 0 40px 90px rgba(21,23,27,0.16);
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--slate);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--terracotta); color: #fff; }

h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 500; }
/* Cormorant runs lighter than DM Serif — give numerals & the wordmark more weight. */
.stat-num, .hero-badge strong, .floor-head h4, .unit-tile .u-name,
.unit-tile .u-price, .step-num, .detail-head .u-name,
.detail-price .big, .result-count strong, .pay-table .pt-value,
.sec-num, .brand-mark { font-weight: 600; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--terracotta); outline-offset: 3px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 3000; background: var(--terracotta); color: #fff; padding: 12px 20px; font-weight: 600; }
.skip-link:focus { left: 12px; top: 12px; }

/* ----------------------------------------------------------------- Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 150px 0; position: relative; }
.section + .section { padding-top: 150px; }

/* Editorial section heading: number · hairline · uppercase label */
.sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.sec-num { font-family: var(--font-serif); font-size: 15px; color: var(--terracotta); letter-spacing: 1px; }
.sec-head .section-label { margin: 0; }
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--slate-light); }
.section-title { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -0.005em; color: var(--ink); }
.section-title em { font-style: italic; color: var(--terracotta); }
.section-intro { max-width: 600px; margin-top: 28px; font-size: 19px; line-height: 1.7; color: var(--slate-light); }
.center { text-align: center; }
.center .sec-head { justify-content: center; }
.center .sec-head::after { display: none; }
.center .sec-head::before { content: ""; width: 40px; height: 1px; background: var(--line); }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ----------------------------------------------------------------- Buttons */
.btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: all 0.5s var(--ease); border: none; white-space: nowrap;
}
.btn-primary { background: var(--terracotta); color: #fff; padding: 19px 40px; }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 18px 36px; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--terracotta); padding: 10px 0; letter-spacing: 1.6px; position: relative; }
.btn-ghost::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 1px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.btn-ghost:hover::after { transform: scaleX(1); }
.btn-block { width: 100%; }
.btn-sm { padding: 13px 22px; font-size: 11px; }

/* ----------------------------------------------------------------- Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 30px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.5s var(--ease);
}
.nav.scrolled { background: rgba(250,246,241,0.85); backdrop-filter: blur(14px); padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; gap: 1px; text-decoration: none; line-height: 1; }
.brand-mark { font-family: var(--font-serif); font-size: 25px; color: var(--ink); letter-spacing: 0.2px; }
.brand-sub { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-link { font-size: 13px; font-weight: 500; color: var(--slate); text-decoration: none; letter-spacing: 0.4px; transition: color 0.4s var(--ease); position: relative; }
.nav-link:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.nav-link:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-link:hover { color: var(--terracotta); }
.nav-link.nav-cta { background: var(--terracotta); color: #fff; padding: 12px 22px; font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.nav-link.nav-cta:hover { background: var(--terracotta-dark); color: #fff; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); }
.lang-btn { background: transparent; border: none; padding: 8px 13px; font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--muted); cursor: pointer; transition: all 0.4s var(--ease); }
.lang-btn.active { background: var(--forest); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; padding: 6px; }
.nav-toggle span { width: 28px; height: 1.5px; background: var(--ink); transition: all 0.4s var(--ease); }
.mobile-menu { display: none; }

/* ----------------------------------------------------------------- Hero (full-bleed editorial) */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; background: var(--cream); overflow: hidden; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 54vw; overflow: hidden; background: var(--cream) url("images/hero-exterior.jpg") center/cover no-repeat; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.hero.in .hero-media > img { transform: scale(1); }

/* ---- Cinematic hero: cross-fading Ken Burns slideshow ---- */
.hero-slideshow { position: absolute; inset: 0; }
.hero-slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: opacity, transform; animation: heroKen 32s var(--ease-soft) infinite; }
.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 8s; }
.hero-slideshow img:nth-child(3) { animation-delay: 16s; }
.hero-slideshow img:nth-child(4) { animation-delay: 24s; }
/* 4 slides, 8s apart over a 32s loop. Each is visible 0–30% of the loop (≈9.6s),
   so consecutive slides overlap by ~1.6s — a true cross-dissolve with no empty gap. */
@keyframes heroKen {
  0%   { opacity: 0; transform: scale(1.03); }
  5%   { opacity: 1; }
  25%  { opacity: 1; transform: scale(1.10); }
  30%  { opacity: 0; transform: scale(1.13); }
  100% { opacity: 0; transform: scale(1.03); }
}
/* Drone / flythrough video drop-in (see index.html comment) */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow img { animation: none; opacity: 0; transform: none; }
  .hero-slideshow img:first-child { opacity: 1; }
}
.hero-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--cream) 0%, rgba(250,246,241,0.55) 22%, rgba(250,246,241,0) 48%); z-index: 1; }
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 620px; padding: 120px 0 60px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--forest); margin-bottom: 30px; }
.hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--forest); display: inline-block; }
.hero-title { font-size: clamp(58px, 9vw, 132px); line-height: 0.96; letter-spacing: -0.01em; color: var(--ink); font-weight: 600; }
.hero-title em { font-style: italic; color: var(--terracotta); }
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .ln > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero.in .hero-title .ln:nth-child(1) > span { transition-delay: 0.15s; transform: none; }
.hero.in .hero-title .ln:nth-child(2) > span { transition-delay: 0.30s; transform: none; }
.hero-fade { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero.in .hero-fade { opacity: 1; transform: none; }
.hero.in .hero-loc { transition-delay: 0.5s; }
.hero.in .hero-tagline { transition-delay: 0.6s; }
.hero.in .hero-btns { transition-delay: 0.7s; }
.hero.in .hero-trust { transition-delay: 0.8s; }
.hero-loc { margin-top: 30px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--slate-light); font-weight: 600; }
.hero-tagline { margin-top: 26px; font-size: 20px; line-height: 1.65; color: var(--slate); max-width: 470px; }
.hero-btns { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.hero-badge { position: absolute; bottom: 40px; right: calc(var(--gutter) + 78px); z-index: 3; background: var(--warm-white); padding: 22px 30px; box-shadow: var(--shadow-md); text-align: left; }
.hero-badge .lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); display: block; }
.hero-badge strong { font-family: var(--font-serif); font-size: 34px; color: var(--terracotta); display: block; line-height: 1.1; }
.hero-badge .sub { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--slate-light); }
.hero-scroll { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 44px; border: 1px solid var(--muted); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; }
.hero-scroll span { width: 3px; height: 8px; background: var(--terracotta); border-radius: 2px; animation: scrolldot 1.8s var(--ease-soft) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }

/* ----------------------------------------------------------------- Stat strip */
.stats { background: var(--cream-deep); padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.stat { text-align: center; padding: 8px 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat-num { font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 48px); line-height: 1; color: var(--ink); }
.stat-label { margin-top: 12px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* ----------------------------------------------------------------- Story */
.story-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 90px; align-items: center; }
.story-media { aspect-ratio: 3/4; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story-media:hover img { transform: scale(1.04); }
.story p { margin-top: 24px; font-size: 18px; line-height: 1.8; color: var(--slate-light); }
.story blockquote { margin-top: 36px; padding-left: 26px; border-left: 2px solid var(--terracotta); font-family: var(--font-serif); font-size: 26px; font-style: italic; color: var(--forest); line-height: 1.4; }

/* ----------------------------------------------------------------- Cinematic band (video-ready) */
.cine { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ink); }
.cine-media { position: absolute; inset: 0; }
.cine-video { width: 100%; height: 100%; object-fit: cover; }
.cine-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,26,0.55) 0%, rgba(20,22,26,0.42) 45%, rgba(20,22,26,0.66) 100%); }
.cine-inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.cine-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--sage-light); margin-bottom: 26px; }
.cine-quote { font-family: var(--font-serif); font-weight: 500; font-size: clamp(34px, 5vw, 64px); line-height: 1.1; color: var(--warm-white); letter-spacing: -0.005em; max-width: 16ch; margin: 0 auto; }
.cine-quote em { font-style: italic; color: var(--terracotta-light); }
.cine-sub { margin-top: 26px; font-size: 16px; letter-spacing: 1px; color: rgba(255,255,255,0.82); }

/* ----------------------------------------------------------------- Location */
.location { background: var(--warm-white); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.loc-map { position: relative; aspect-ratio: 4/3; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.loc-map img, .loc-map iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
/* On touch, a live map iframe traps page scroll — disable its pointer events and
   let the "Open in Google Maps" button handle interaction. Re-enable on real cursors. */
.loc-map iframe { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .loc-map iframe { pointer-events: auto; } }
.loc-map-link { position: absolute; left: 12px; top: 12px; background: var(--warm-white); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 10px 15px; text-decoration: none; box-shadow: var(--shadow-md); transition: all 0.4s var(--ease); z-index: 2; }
.loc-map-link:hover { background: var(--terracotta); color: #fff; }
.loc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); }
.loc-card { background: var(--warm-white); padding: 28px; }
.loc-card .ic { font-family: var(--font-serif); font-size: 30px; color: var(--terracotta); line-height: 1; }
.loc-card h4 { margin-top: 14px; font-size: 16px; color: var(--ink); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.2px; }
.loc-card p { margin-top: 8px; font-size: 14px; color: var(--slate-light); line-height: 1.6; }

/* ================================================================= STUDIOS (board) */
.explorer { background: var(--cream); }
.explorer-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.explorer-head .sec-head { justify-content: center; }
.explorer-head .sec-head::after { display: none; }
.explorer-head .sec-head::before { content: ""; width: 40px; height: 1px; background: var(--line); }
.explorer-head .section-intro { margin-left: auto; margin-right: auto; }

.explorer-panel { background: var(--warm-white); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.controls-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 44px; border-bottom: 1px solid var(--line); }
.result-count { font-size: 16px; color: var(--slate-light); }
.result-count strong { font-family: var(--font-serif); font-size: 26px; color: var(--terracotta); }
.price-pill { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--forest); background: rgba(61,90,62,0.09); padding: 9px 16px; }

/* Availability board */
.board { padding: 44px; }
.floor { margin-bottom: 40px; }
.floor:last-child { margin-bottom: 0; }
.floor-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.floor-head h4 { font-family: var(--font-serif); font-size: 24px; color: var(--ink); }
.floor-head .line { flex: 1; height: 1px; background: var(--line); }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

.unit-tile { position: relative; text-align: left; background: var(--warm-white); border: 1px solid var(--line); cursor: pointer; transition: all 0.5s var(--ease); display: grid; grid-template-columns: 116px 1fr; overflow: hidden; }
.unit-tile::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--sage); z-index: 1; }
.unit-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.unit-tile.selected { box-shadow: 0 0 0 1.5px var(--terracotta); border-color: var(--terracotta); }
.unit-tile .u-plan { background: var(--cream-deep); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.unit-tile .u-plan img { width: 100%; height: 100%; object-fit: cover; object-position: var(--plan-pos, center); transition: transform 0.7s var(--ease); }
.unit-tile:hover .u-plan img { transform: scale(1.05); }
.unit-tile .u-info { padding: 22px 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; }
.unit-tile .u-name { font-family: var(--font-serif); font-size: 27px; color: var(--ink); line-height: 1; padding-right: 40px; }
.unit-tile .u-area { font-size: 13px; color: var(--slate-light); }
.unit-tile .u-area b { color: var(--slate); font-weight: 600; }
.unit-tile .u-price { font-family: var(--font-serif); font-size: 24px; color: var(--terracotta); margin-top: auto; line-height: 1.2; }
.unit-tile .u-price small { font-family: var(--font-body); font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.3px; }
.unit-tile .u-heart { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.4s var(--ease); padding: 0; z-index: 2; }
.unit-tile .u-heart:hover { border-color: var(--terracotta); transform: scale(1.1); }
.unit-tile .u-heart svg { width: 15px; height: 15px; stroke: var(--terracotta); fill: none; }
.unit-tile.selected .u-heart svg { fill: var(--terracotta); }

/* ----------------------------------------------------------------- Selection tray */
.tray { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100; transform: translateY(110%); transition: transform 0.6s var(--ease); background: var(--ink); color: var(--cream); box-shadow: 0 -16px 50px rgba(0,0,0,0.25); }
.tray.open { transform: translateY(0); }
.tray-inner { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tray-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage-light); }
.tray-items { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.tray-chip { background: rgba(255,255,255,0.08); padding: 7px 10px 7px 13px; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; }
.tray-chip button { background: none; border: none; color: var(--sage-light); cursor: pointer; font-size: 16px; line-height: 1; }
.tray-chip button:hover { color: #fff; }

/* ----------------------------------------------------------------- Finishes */
.fin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fin-card { background: var(--warm-white); border: 1px solid var(--line); transition: all 0.6s var(--ease); display: flex; flex-direction: column; }
.fin-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.fin-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.fin-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.fin-card:hover .fin-thumb img { transform: scale(1.05); }
.fin-body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.fin-body h3 { font-size: 30px; color: var(--ink); line-height: 1; }
.fin-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.fin-list li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.6; color: var(--slate-light); }
.fin-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--terracotta); }

/* ----------------------------------------------------------------- Gallery */
/* 1 large image left + 2 stacked right — no awkward letterbox crops. */
.gallery-grid { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: repeat(2, 285px); gap: 16px; }
.gallery-item { overflow: hidden; cursor: pointer; position: relative; background: var(--sand); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(21,23,27,0.35)); opacity: 0; transition: opacity 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item.large { grid-row: 1 / span 2; }

/* ----------------------------------------------------------------- Payment plan (on forest) */
.journey { background: var(--forest); color: var(--cream); }
.journey .section-title { color: var(--warm-white); }
.journey .section-label { color: var(--sage-light); }
.journey .section-intro { color: var(--sage-light); }
.journey .sec-num { color: var(--terracotta-light); }
.journey .sec-head::after { background: rgba(255,255,255,0.18); }
.pay-table { margin-top: 50px; border: 1px solid rgba(255,255,255,0.16); }
.pt-row { display: grid; grid-template-columns: 1.4fr 0.5fr 0.8fr 0.6fr 1.8fr; gap: 18px; align-items: center; padding: 22px 30px; border-bottom: 1px solid rgba(255,255,255,0.12); transition: background 0.4s var(--ease); }
.pt-row:last-child { border-bottom: none; }
.pt-row.pt-head { background: rgba(0,0,0,0.12); padding: 16px 30px; }
.pt-row.pt-head span { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage-light); font-weight: 600; }
.pt-row.pt-body:hover { background: var(--forest-dark); }
.pt-row.pt-total { background: rgba(0,0,0,0.18); }
.pt-stage { font-size: 17px; color: var(--warm-white); font-weight: 600; }
.pt-pct { font-family: var(--font-serif); font-size: 26px; color: var(--terracotta-light); }
.pt-value { font-size: 17px; color: var(--warm-white); }
.pt-when { font-size: 13px; color: var(--sage-light); letter-spacing: 0.3px; }
.pt-milestone { font-size: 14px; color: var(--sage-light); line-height: 1.5; }
.pt-total .pt-stage, .pt-total .pt-value { color: #fff; }
.pt-total .pt-pct { color: #fff; }
.pay-note { margin-top: 30px; font-size: 13px; color: var(--sage-light); letter-spacing: 0.4px; line-height: 1.7; max-width: 760px; }

/* ----------------------------------------------------------------- Register form */
.register { background: var(--warm-white); }
.reg-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
.reg-pitch .early { display: inline-block; background: rgba(196,89,59,0.08); color: var(--terracotta-dark); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 16px; margin-bottom: 26px; }
.reg-pitch p { margin-top: 22px; font-size: 18px; line-height: 1.7; color: var(--slate-light); }
.form { background: var(--cream); padding: 44px; border: 1px solid var(--line); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--slate); margin-bottom: 9px; }
.field input, .field select, .field textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--line); background: var(--warm-white); font-family: inherit; font-size: 15px; color: var(--ink); transition: border-color 0.4s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline: none; }
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-hint { font-size: 13px; color: var(--slate-light); margin-top: 4px; }
.form-success { display: none; text-align: center; padding: 40px; }
.form-success.show { display: block; }
.form-success .ic { width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 50%; background: var(--forest); display: flex; align-items: center; justify-content: center; }
.form-success .ic svg { stroke: #fff; width: 32px; height: 32px; fill: none; }
.form-success h3 { font-size: 32px; color: var(--ink); }
.form-success p { margin-top: 12px; color: var(--slate-light); }

/* ----------------------------------------------------------------- FAQ */
.faq-list { max-width: 860px; margin: 50px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 30px 44px 30px 0; font-size: 19px; font-weight: 600; color: var(--ink); cursor: pointer; position: relative; letter-spacing: 0.2px; transition: color 0.4s var(--ease); }
.faq-q:hover { color: var(--terracotta); }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--terracotta); transition: transform 0.4s var(--ease); }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a-inner { padding: 0 0 30px; color: var(--slate-light); font-size: 16px; line-height: 1.7; max-width: 680px; }

/* ----------------------------------------------------------------- Footer */
.footer { background: var(--ink); color: var(--sage-light); padding: 90px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; }
.footer .brand-mark { color: var(--cream); font-size: 30px; }
.footer .brand-sub { color: var(--terracotta-light); }
.footer-blurb { margin-top: 22px; font-size: 14px; max-width: 340px; line-height: 1.7; }
.footer h5 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage); margin-bottom: 20px; }
.footer a { display: block; color: var(--sage-light); text-decoration: none; font-size: 14px; margin-bottom: 12px; transition: color 0.4s var(--ease); }
.footer a:hover { color: var(--terracotta-light); }
.footer-contact p { font-size: 14px; margin-bottom: 12px; line-height: 1.6; }
.footer-bottom { margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--sage); letter-spacing: 0.3px; }

/* ----------------------------------------------------------------- WhatsApp */
.wa-btn { position: fixed; bottom: 28px; right: 28px; z-index: 900; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(37,211,102,0.4); transition: all 0.4s var(--ease); text-decoration: none; }
.wa-btn:hover { transform: scale(1.08); }
.wa-btn svg { width: 32px; height: 32px; fill: #fff; }

/* ----------------------------------------------------------------- Overlays */
.overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(21,23,27,0.55); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity 0.4s var(--ease); }
.overlay.open { display: flex; opacity: 1; }
.modal { background: var(--warm-white); max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; transform: translateY(20px); transition: transform 0.5s var(--ease); }
.overlay.open .modal { transform: none; }
.modal-wide { max-width: 820px; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); border: none; font-size: 20px; color: var(--slate); cursor: pointer; z-index: 2; transition: all 0.4s var(--ease); }
.modal-close:hover { background: var(--terracotta); color: #fff; }
.modal-pad { padding: 44px; }
.modal h3 { font-size: 34px; color: var(--ink); }

/* Studio detail modal */
.detail-media { aspect-ratio: 16/9; background: var(--cream-deep); overflow: hidden; }
.detail-media img { width: 100%; height: 100%; object-fit: contain; }
.detail-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.detail-head .u-name { font-family: var(--font-serif); font-size: 40px; color: var(--ink); line-height: 1; }
.detail-head .u-floor { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 28px 0; }
.detail-specs .spec { border-left: 1px solid var(--line); padding-left: 14px; }
.detail-specs .spec span { display: block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.detail-specs .spec strong { font-size: 18px; color: var(--ink); font-weight: 600; }
.detail-price { display: flex; align-items: baseline; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.detail-price .big { font-family: var(--font-serif); font-size: 42px; color: var(--terracotta); }
.detail-price .perm { font-size: 14px; color: var(--slate-light); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Willingness-to-pay control (optional price-discovery) */
.wtp { margin-top: 18px; padding: 22px; background: var(--cream); border: 1px solid var(--line); }
.wtp label { display: block; font-size: 14px; font-weight: 600; color: var(--forest); margin-bottom: 4px; }
.wtp .wtp-sub { font-size: 13px; color: var(--slate-light); margin-bottom: 14px; }
.wtp input[type=range] { width: 100%; accent-color: var(--terracotta); }
.wtp .wtp-val { text-align: center; font-family: var(--font-serif); font-size: 28px; color: var(--terracotta); margin-top: 10px; }

/* =================================================================
   MOTION ELEVATION — restrained, editorial scroll choreography.
   All transform/opacity (compositor-friendly); fully disabled under
   prefers-reduced-motion (see block at end of file).
   ================================================================= */

/* Block reveal — considered rise + fade (slightly less travel, longer = calmer) */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.05s var(--ease), transform 1.05s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Staggered reveal — children rise in sequence (used on grids) */
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.27s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.45s; }

/* Hairline rule draws in when its section head reveals */
.reveal .sec-head::after, .reveal.sec-head::after { transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.15s; }
.reveal.in .sec-head::after, .reveal.in.sec-head::after { transform: scaleX(1); }

/* Slim scroll-progress thread (top of viewport) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200; background: var(--terracotta); transform: scaleX(0); transform-origin: left; will-change: transform; pointer-events: none; }

/* Parallax media — img overscaled so the translate never reveals an edge */
.parallax { overflow: hidden; }
.parallax img { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); will-change: transform; }

/* ================================================================= Responsive */
@media (max-width: 1024px) {
  .hero-media { width: 46vw; }
  .hero-inner { max-width: 52%; }
  .story-grid, .loc-grid, .reg-grid { grid-template-columns: 1fr; gap: 50px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 0; }
  .stat:nth-child(4) { border-left: none; }
  .fin-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 240px; }
  .gallery-item.large { grid-column: 1 / 3; grid-row: 1; }
  .section { padding: 110px 0; }
  .pt-row { grid-template-columns: 1.2fr 0.5fr 0.9fr 1.8fr; }
  .pt-row .pt-when, .pt-head span:nth-child(4) { display: none; }
}
@media (max-width: 768px) {
  :root { --gutter: 22px; }
  .nav { padding: 18px var(--gutter); }
  .nav.scrolled { padding: 14px var(--gutter); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: none; position: fixed; inset: 0; z-index: 1500; background: var(--cream); flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { font-size: 26px; font-family: var(--font-serif); color: var(--ink); text-decoration: none; }
  .mobile-menu .lang-toggle { margin-top: 12px; }
  .mobile-close { position: absolute; top: 22px; right: 22px; background: none; border: none; font-size: 34px; color: var(--slate); cursor: pointer; }

  .hero { align-items: flex-start; flex-direction: column; justify-content: flex-start; }
  .hero-media { position: absolute; inset: 0; width: 100%; }
  .hero-media::before { background: linear-gradient(180deg, rgba(250,246,241,0.78) 0%, rgba(250,246,241,0.3) 38%, rgba(250,246,241,0.75) 75%, var(--cream) 100%); }
  .hero-inner { max-width: 100%; padding: 104px 0 70px; }
  .hero-title { font-size: clamp(52px, 16vw, 88px); }
  .hero-badge { position: static; margin: 4px 0 40px var(--gutter); display: inline-block; }
  .hero-scroll { display: none; }

  .section { padding: 80px 0; }
  .section-title { font-size: clamp(34px, 9vw, 48px); }
  .controls-foot, .board { padding-left: 24px; padding-right: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .field-row { grid-template-columns: 1fr; }
  .detail-specs { grid-template-columns: 1fr; }
  .modal-pad { padding: 30px; }
  .story-grid, .loc-grid, .reg-grid { gap: 40px; }
  .pt-row { grid-template-columns: 1fr 0.5fr 1fr; row-gap: 4px; padding: 18px 22px; }
  .pt-row .pt-milestone, .pt-head span:nth-child(5) { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(5) { border-left: none; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 250px; }
  .gallery-item.large { grid-column: auto; grid-row: auto; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn-primary, .hero-btns .btn-outline { width: 100%; }
  .loc-cards { grid-template-columns: 1fr; }
  .unit-tile { grid-template-columns: 92px 1fr; }
}

/* ================================================================= Reduced motion
   Anyone who prefers reduced motion sees the full page, instantly, no scroll FX. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .reveal.in .section-title { opacity: 1 !important; transform: none !important; }
  .reveal .sec-head::after, .reveal.sec-head::after { transform: scaleX(1) !important; }
  .parallax img { transform: none !important; }
  .scroll-progress { display: none; }
  .hero-slideshow img, .cine-video { animation: none !important; }
}
